Skip to content
GitLab
Explorer
Connexion
S'inscrire
Navigation principale
Rechercher ou aller à…
Projet
P
parlote-facil
Gestion
Activité
Membres
Labels
Programmation
Tickets
Tableaux des tickets
Jalons
Wiki
Code
Requêtes de fusion
Dépôt
Branches
Validations
Étiquettes
Graphe du dépôt
Comparer les révisions
Extraits de code
Compilation
Pipelines
Jobs
Planifications de pipeline
Artéfacts
Déploiement
Releases
Registre de paquets
Registre de conteneur
Registre de modèles
Opération
Environnements
Modules Terraform
Surveillance
Incidents
Analyse
Données d'analyse des chaînes de valeur
Analyse des contributeurs
Données d'analyse CI/CD
Données d'analyse du dépôt
Expériences du modèle
Aide
Aide
Support
Documentation de GitLab
Comparer les forfaits GitLab
Forum de la communauté
Contribuer à GitLab
Donner votre avis
Raccourcis clavier
?
Extraits de code
Groupes
Projets
Afficher davantage de fils d'Ariane
facil
parlote-facil
Validations
cd2eb429
Valider
cd2eb429
rédigé
il y a 13 ans
par
Maxwell Salzberg
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
fix cuke for inf scroll(dont rely on session for sort order)
parent
6bda512c
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Modifications
2
Masquer les modifications d'espaces
En ligne
Côte à côte
Affichage de
2 fichiers modifiés
app/helpers/stream_helper.rb
+1
-1
1 ajout, 1 suppression
app/helpers/stream_helper.rb
features/infinite_scroll.feature
+2
-2
2 ajouts, 2 suppressions
features/infinite_scroll.feature
avec
3 ajouts
et
3 suppressions
app/helpers/stream_helper.rb
+
1
−
1
Voir le fichier @
cd2eb429
...
@@ -19,7 +19,7 @@ module StreamHelper
...
@@ -19,7 +19,7 @@ module StreamHelper
else
else
time
=
@stream
.
posts
.
last
.
send
(
@stream
.
order
.
to_sym
).
to_i
time
=
@stream
.
posts
.
last
.
send
(
@stream
.
order
.
to_sym
).
to_i
end
end
aspects_path
(
:max_time
=>
time
,
:a_ids
=>
@stream
.
aspect_ids
)
aspects_path
(
:max_time
=>
time
,
:sort_order
=>
session
[
:sort_order
],
:a_ids
=>
@stream
.
aspect_ids
)
else
else
raise
'in order to use pagination for this new controller, update next_page_path in stream helper'
raise
'in order to use pagination for this new controller, update next_page_path in stream helper'
end
end
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
features/infinite_scroll.feature
+
2
−
2
Voir le fichier @
cd2eb429
...
@@ -8,6 +8,7 @@ Feature: infinite scroll
...
@@ -8,6 +8,7 @@ Feature: infinite scroll
Given
many posts from alice for bob
Given
many posts from alice for bob
And
I resize my window to 800x600
And
I resize my window to 800x600
And
I sign in as
"bob@bob.bob"
And
I sign in as
"bob@bob.bob"
And
I wait for the ajax to finish
Scenario
:
on the main stream by activity
Scenario
:
on the main stream by activity
Then
I should see 15 posts
Then
I should see 15 posts
...
@@ -25,7 +26,6 @@ Feature: infinite scroll
...
@@ -25,7 +26,6 @@ Feature: infinite scroll
Then
I should see
"No more"
Then
I should see
"No more"
When
I follow
"generic"
When
I follow
"generic"
And
I wait for the ajax to finish
Then
I should see 15 posts
Then
I should see 15 posts
And
I should see
"alice - 26 - #seeded"
And
I should see
"alice - 26 - #seeded"
...
@@ -41,8 +41,8 @@ Feature: infinite scroll
...
@@ -41,8 +41,8 @@ Feature: infinite scroll
Then
I should see
"No more"
Then
I should see
"No more"
Scenario
:
on the main stream post created time
Scenario
:
on the main stream post created time
When
I wait for the ajax to finish
And
I follow
"posted"
And
I follow
"posted"
And
I go to the home page
Then
I should see 15 posts
Then
I should see 15 posts
And
I should see
"alice - 15 - #seeded"
And
I should see
"alice - 15 - #seeded"
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
Aperçu
0%
Chargement en cours
Veuillez réessayer
ou
joindre un nouveau fichier
.
Annuler
You are about to add
0
people
to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Enregistrer le commentaire
Annuler
Veuillez vous
inscrire
ou vous
se connecter
pour commenter