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
8d7aa182
Valider
8d7aa182
rédigé
il y a 14 ans
par
Sarah Mei
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
Reorder some steps in the comments feature to make it more consistent.
parent
44ca6871
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
1
Masquer les modifications d'espaces
En ligne
Côte à côte
Affichage de
1 fichier modifié
features/comments.feature
+30
-29
30 ajouts, 29 suppressions
features/comments.feature
avec
30 ajouts
et
29 suppressions
features/comments.feature
+
30
−
29
Voir le fichier @
8d7aa182
@javascript
Feature
:
commenting
In order to tell
a
lice how great the picture of her dog is
As
a
lice's friend
In order to tell
A
lice how great the picture of her dog is
As
A
lice's friend
I want to comment on her post
Background
:
Given
a user named
"Bob Jones"
with email
"bob@bob.bob"
And
a user named
"Alice Smith"
with email
"alice@alice.alice"
And
a user with email
"bob@bob.bob"
is connected with
"alice@alice.alice"
When
I sign in as
"alice@alice.alice"
When
I sign in as
"alice@alice.alice"
And
I am on the home page
And
I expand the publisher
And
I fill in
"status_message_fake_text"
with
"Look at this dog"
And
I attach the file
"spec/fixtures/button.png"
to hidden element
"file"
within
"#file-upload"
And
I fill in
"status_message_fake_text"
with
"Look at this dog"
And
I press
"Share"
And
I wait for the ajax to finish
And
I follow
"Home"
Then
I should see
"Look at this dog"
within
".stream_element"
Then
I should see a
"img"
within
".stream_element div.photo_attachments"
And
I log out
Then
I should see
"Look at this dog"
within
".stream_element"
And
I should see a
"img"
within
".stream_element div.photo_attachments"
Then
I log out
Scenario
:
comment on a post from within a user's stream
When
I sign in as
"bob@bob.bob"
And
I am on
"alice@alice.alice"
's page
Then
I should see
"Look at this dog"
When
I focus the comment field
And
I fill in
"Comment"
with
"is that a poodle?"
And
I press
"Comment"
Then
I should see
"is that a poodle?"
within
"li.comment div.content"
And
I should see
"less than a minute ago"
within
"li.comment time"
When
I sign in as
"bob@bob.bob"
And
I am on
"alice@alice.alice"
's page
Then
I should see
"Look at this dog"
When
I focus the comment field
And
I fill in
"Comment"
with
"is that a poodle?"
And
I press
"Comment"
Then
I should see
"is that a poodle?"
within
"li.comment div.content"
And
I should see
"less than a minute ago"
within
"li.comment time"
Scenario
:
comment on a photo from the photo page
When
I sign in as
"bob@bob.bob"
And
I am on the photo page for
"alice@alice.alice"
's post
"Look at this dog"
And
I focus the comment field
And
I fill in
"Comment"
with
"hahahah"
And
I press
"Comment"
Then
I should see
"hahaha"
within
"li.comment div.content"
And
I should see
"less than a minute ago"
within
"li.comment time"
When
I sign in as
"bob@bob.bob"
And
I am on the photo page for
"alice@alice.alice"
's post
"Look at this dog"
And
I focus the comment field
And
I fill in
"Comment"
with
"hahahah"
And
I press
"Comment"
Then
I should see
"hahaha"
within
"li.comment div.content"
And
I should see
"less than a minute ago"
within
"li.comment time"
Scenario
:
comment on your own photo from the photo page
When
I sign in as
"alice@alice.alice"
And
I am on the photo page for
"alice@alice.alice"
's post
"Look at this dog"
And
I focus the comment field
And
I fill in
"Comment"
with
"hahahah"
And
I press
"Comment"
Then
I should see
"hahaha"
within
"li.comment div.content"
And
I should see
"less than a minute ago"
within
"li.comment time"
When
I sign in as
"alice@alice.alice"
And
I am on the photo page for
"alice@alice.alice"
's post
"Look at this dog"
And
I focus the comment field
And
I fill in
"Comment"
with
"hahahah"
And
I press
"Comment"
Then
I should see
"hahaha"
within
"li.comment div.content"
And
I should see
"less than a minute ago"
within
"li.comment time"
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