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
e67c3ace
Non vérifiée
Valider
e67c3ace
rédigé
8 years ago
par
Steffen van Bergerem
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
Add cuke for deleting conversations
parent
b2d26257
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
features/desktop/conversations.feature
+15
-0
15 ajouts, 0 suppression
features/desktop/conversations.feature
features/step_definitions/conversations_steps.rb
+4
-0
4 ajouts, 0 suppression
features/step_definitions/conversations_steps.rb
avec
19 ajouts
et
0 suppression
features/desktop/conversations.feature
+
15
−
0
Voir le fichier @
e67c3ace
...
@@ -43,3 +43,18 @@ Feature: private conversations
...
@@ -43,3 +43,18 @@ Feature: private conversations
When
I sign in as
"alice@alice.alice"
When
I sign in as
"alice@alice.alice"
Then
I should have 2 unread private messages
Then
I should have 2 unread private messages
And
I should have 2 email delivery
And
I should have 2 email delivery
Scenario
:
delete a conversation
When
I sign in as
"bob@bob.bob"
And
I send a message with subject
"Greetings"
and text
"hello, alice!"
to
"Alice Awesome"
Then
I should see
"Greetings"
within
"#conversation_inbox"
When
I click on selector
".hide_conversation"
Then
I should not see
"Greetings"
within
"#conversation_inbox"
When
I sign in as
"alice@alice.alice"
Then
I should have 1 unread private message
And
I should have 1 email delivery
When
I reply with
"hey, how you doing?"
Then
I should see
"hey, how you doing?"
within
".stream_container"
When
I sign in as
"bob@bob.bob"
Then
I should have 1 email delivery
And
I should have no unread private messages
Ce diff est replié.
Cliquez pour l'agrandir.
features/step_definitions/conversations_steps.rb
+
4
−
0
Voir le fichier @
e67c3ace
...
@@ -8,6 +8,10 @@ Then /^I should have (\d+) unread private messages?$/ do |n_unread|
...
@@ -8,6 +8,10 @@ Then /^I should have (\d+) unread private messages?$/ do |n_unread|
expect
(
find
(
"header #conversations-link .badge"
)).
to
have_content
(
n_unread
)
expect
(
find
(
"header #conversations-link .badge"
)).
to
have_content
(
n_unread
)
end
end
Then
/^I should have no unread private messages$/
do
expect
(
page
).
to
have_no_css
"header #conversations-link .badge"
end
Then
/^I send a message with subject "([^"]*)" and text "([^"]*)" to "([^"]*)"$/
do
|
subject
,
text
,
person
|
Then
/^I send a message with subject "([^"]*)" and text "([^"]*)" to "([^"]*)"$/
do
|
subject
,
text
,
person
|
step
%(I am on the conversations page)
step
%(I am on the conversations page)
within
(
"#conversation_new"
,
match: :first
)
do
within
(
"#conversation_new"
,
match: :first
)
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