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
11a59b93
Valider
11a59b93
rédigé
13 years ago
par
Gonzalo Rodriguez
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
Add cukes scenarios: playing with the aspects-dropdown and posting.
parent
4331e746
Aucune branche associée trouvée
Branches contenant la validation
Aucune étiquette associée trouvée
Étiquettes contenant la validation
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
features/posts_from_main_page.feature
+44
-1
44 ajouts, 1 suppression
features/posts_from_main_page.feature
features/step_definitions/custom_web_steps.rb
+1
-1
1 ajout, 1 suppression
features/step_definitions/custom_web_steps.rb
avec
45 ajouts
et
2 suppressions
features/posts_from_main_page.feature
+
44
−
1
Voir le fichier @
11a59b93
...
@@ -3,7 +3,7 @@ Feature: posting from the main page
...
@@ -3,7 +3,7 @@ Feature: posting from the main page
In order to enlighten humanity for the good of society
In order to enlighten humanity for the good of society
As a rock star
As a rock star
I want to tell the world I am eating a yogurt
I want to tell the world I am eating a yogurt
Background
:
Background
:
Given
a user with username
"bob"
Given
a user with username
"bob"
And
a user with username
"alice"
And
a user with username
"alice"
...
@@ -149,3 +149,46 @@ Feature: posting from the main page
...
@@ -149,3 +149,46 @@ Feature: posting from the main page
When
I am on the aspects page
When
I am on the aspects page
And
I select only
"NotPostingThingsHere"
aspect
And
I select only
"NotPostingThingsHere"
aspect
Then
I should not see
"I am eating a yogurt and also cornflakes"
Then
I should not see
"I am eating a yogurt and also cornflakes"
Scenario
:
change post target aspects with the aspect-dropdown before posting
When
I expand the publisher
And
I press the aspect dropdown
And
I toggle the aspect
"PostingTo"
And
I append
"I am eating a yogurt"
to the publisher
And
I press
"Share"
And
I wait for the ajax to finish
And
I am on the aspects page
And
I select only
"PostingTo"
aspect
Then
I should see
"I am eating a yogurt"
When
I am on the aspects page
And
I select only
"NotPostingThingsHere"
aspect
Then
I should not see
"I am eating a yogurt"
Scenario
:
post 2 in a row using the aspects-dropdown
When
I expand the publisher
And
I press the aspect dropdown
And
I toggle the aspect
"PostingTo"
And
I append
"I am eating a yogurt"
to the publisher
And
I press
"Share"
And
I wait for the ajax to finish
And
I expand the publisher
And
I press the aspect dropdown
And
I toggle the aspect
"Besties"
And
I append
"And cornflakes also"
to the publisher
And
I press
"Share"
And
I wait for the ajax to finish
And
I am on the aspects page
And
I select only
"PostingTo"
aspect
Then
I should see
"I am eating a yogurt"
Then
I should see
"And cornflakes also"
When
I am on the aspects page
And
I select only
"Besties"
aspect
Then
I should not see
"I am eating a yogurt"
Then
I should see
"And cornflakes also"
When
I am on the aspects page
And
I select only
"NotPostingThingsHere"
aspect
Then
I should not see
"I am eating a yogurt"
Then
I should not see
"And cornflakes also"
Ce diff est replié.
Cliquez pour l'agrandir.
features/step_definitions/custom_web_steps.rb
+
1
−
1
Voir le fichier @
11a59b93
...
@@ -17,7 +17,7 @@ end
...
@@ -17,7 +17,7 @@ end
And
/^I toggle the aspect "([^"]*)"$/
do
|
aspect_name
|
And
/^I toggle the aspect "([^"]*)"$/
do
|
aspect_name
|
aspect
=
@me
.
aspects
.
where
(
:name
=>
aspect_name
).
first
aspect
=
@me
.
aspects
.
where
(
:name
=>
aspect_name
).
first
find
(
"li[data-aspect_id='
#{
aspect
.
id
}
']"
).
click
find
(
"
.dropdown
li[data-aspect_id='
#{
aspect
.
id
}
']"
).
click
end
end
Then
/^the publisher should be collapsed$/
do
Then
/^the publisher should be collapsed$/
do
...
...
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