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
12678bde
Valider
12678bde
rédigé
il y a 9 ans
par
Faldrian
Validation de
Steffen van Bergerem
il y a 9 ans
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
Added cucumber step to add multiple posts in one step
closes #6118
parent
0fa571d5
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Modifications
3
Masquer les modifications d'espaces
En ligne
Côte à côte
Affichage de
3 fichiers modifiés
Changelog.md
+1
-0
1 ajout, 0 suppression
Changelog.md
features/mobile/more-button.feature
+3
-31
3 ajouts, 31 suppressions
features/mobile/more-button.feature
features/step_definitions/posts_steps.rb
+7
-0
7 ajouts, 0 suppression
features/step_definitions/posts_steps.rb
avec
11 ajouts
et
31 suppressions
Changelog.md
+
1
−
0
Voir le fichier @
12678bde
...
...
@@ -8,6 +8,7 @@
## Bug fixes
*
Precompile facebox images
[
#6105
](
https://github.com/diaspora/diaspora/pull/6105
)
*
Fix wrong closing a-tag
[
#6111
](
https://github.com/diaspora/diaspora/pull/6111
)
*
Fix mobile more-button wording when there are less than 15 posts
[
#6118
](
https://github.com/diaspora/diaspora/pull/6118
)
## Features
*
Add configuration options for some debug logs
[
#6090
](
https://github.com/diaspora/diaspora/pull/6090
)
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
features/mobile/more-button.feature
+
3
−
31
Voir le fichier @
12678bde
@javascript
@mobile
Feature
:
posting from the mobile main page
Feature
:
using the more button on mobile stream
As a mobile user
I want to navigate the stream
And I want to test the text of the more-button in different environments
...
...
@@ -23,21 +23,8 @@ Feature: posting from the mobile main page
Scenario
:
There are 15 posts
Given
I am on the home page
Given
there are 15 public posts from
"bob@bob.bob"
And
"bob@bob.bob"
has a public post with text
"post 1"
And
"bob@bob.bob"
has a public post with text
"post 2"
And
"bob@bob.bob"
has a public post with text
"post 3"
And
"bob@bob.bob"
has a public post with text
"post 4"
And
"bob@bob.bob"
has a public post with text
"post 5"
And
"bob@bob.bob"
has a public post with text
"post 6"
And
"bob@bob.bob"
has a public post with text
"post 7"
And
"bob@bob.bob"
has a public post with text
"post 8"
And
"bob@bob.bob"
has a public post with text
"post 9"
And
"bob@bob.bob"
has a public post with text
"post 10"
And
"bob@bob.bob"
has a public post with text
"post 11"
And
"bob@bob.bob"
has a public post with text
"post 12"
And
"bob@bob.bob"
has a public post with text
"post 13"
And
"bob@bob.bob"
has a public post with text
"post 14"
And
"bob@bob.bob"
has a public post with text
"post 15"
When
I go to the stream page
Then
I should see
"More"
...
...
@@ -47,22 +34,7 @@ Feature: posting from the mobile main page
Scenario
:
There are 15 +1 posts
Given
I am on the home page
And
"bob@bob.bob"
has a public post with text
"post 1"
And
"bob@bob.bob"
has a public post with text
"post 2"
And
"bob@bob.bob"
has a public post with text
"post 3"
And
"bob@bob.bob"
has a public post with text
"post 4"
And
"bob@bob.bob"
has a public post with text
"post 5"
And
"bob@bob.bob"
has a public post with text
"post 6"
And
"bob@bob.bob"
has a public post with text
"post 7"
And
"bob@bob.bob"
has a public post with text
"post 8"
And
"bob@bob.bob"
has a public post with text
"post 9"
And
"bob@bob.bob"
has a public post with text
"post 10"
And
"bob@bob.bob"
has a public post with text
"post 11"
And
"bob@bob.bob"
has a public post with text
"post 12"
And
"bob@bob.bob"
has a public post with text
"post 13"
And
"bob@bob.bob"
has a public post with text
"post 14"
And
"bob@bob.bob"
has a public post with text
"post 15"
And
"bob@bob.bob"
has a public post with text
"post 16"
Given
there are 16 public posts from
"bob@bob.bob"
When
I go to the stream page
Then
I should see
"More"
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
features/step_definitions/posts_steps.rb
+
7
−
0
Voir le fichier @
12678bde
...
...
@@ -27,6 +27,13 @@ Given /^"([^"]*)" has a public post with text "([^"]*)"$/ do |email, text|
user
.
post
(
:status_message
,
:text
=>
text
,
:public
=>
true
,
:to
=>
user
.
aspect_ids
)
end
Given
/^there are (\d+) public posts from "([^"]*)"$/
do
|
n_posts
,
email
|
user
=
User
.
find_by_email
(
email
)
(
1
..
n_posts
.
to_i
).
each
do
|
n
|
user
.
post
(
:status_message
,
text:
"post nr.
#{
n
}
"
,
public:
true
,
to:
user
.
aspect_ids
)
end
end
Given
/^"([^"]*)" has a non public post with text "([^"]*)"$/
do
|
email
,
text
|
user
=
User
.
find_by_email
(
email
)
user
.
post
(
:status_message
,
:text
=>
text
,
:public
=>
false
,
:to
=>
user
.
aspect_ids
)
...
...
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