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
862fc159
Valider
862fc159
rédigé
il y a 13 ans
par
Sarah Mei
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
Refactor reshare feature
parent
4ac6bd7d
Aucune branche associée trouvée
Aucune étiquette associée trouvée
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/reshare.feature
+26
-29
26 ajouts, 29 suppressions
features/reshare.feature
avec
26 ajouts
et
29 suppressions
features/reshare.feature
+
26
−
29
Voir le fichier @
862fc159
...
...
@@ -2,31 +2,31 @@
Feature
:
public repost
In order to make Diaspora more viral
As a User
I want to reshare my friends post
I want to reshare my friend
'
s 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"
Scenario
:
does not show the reshare button on my own posts
And
"bob@bob.bob"
has a non public post with text
"reshare this
!
"
Scenario
:
I
don't see the reshare button on my own posts
Given
"bob@bob.bob"
has a public post with text
"reshare this!"
And
"bob@bob.bob"
has a non public post with text
"
but don't
reshare this
.
"
And
I sign in as
"bob@bob.bob"
Then
I should not see
"Reshare"
Scenario
:
does not show a
reshare button on other private pots
And
"bob@bob.bob"
has a non public post with text
"reshare this
!
"
Scenario
:
I
don't see the
reshare button on other
people's
private pots
Given
"bob@bob.bob"
has a non public post with text
"
don't
reshare this
.
"
And
I sign in as
"alice@alice.alice"
Then
I should not see
"Reshare"
Scenario
:
does shows
the reshare button on my
own
posts
And
"bob@bob.bob"
has a public post with text
"reshare this!"
Scenario
:
I
see
the reshare button on my
contact's public
posts
Given
"bob@bob.bob"
has a public post with text
"reshare this!"
And
I sign in as
"alice@alice.alice"
Then
I should see
"Reshare"
Scenario
:
shows up on
the
profile page
And
"bob@bob.bob"
has a public post with text
"reshare this!"
Scenario
:
When
I reshare, it
shows up on
my
profile page
Given
"bob@bob.bob"
has a public post with text
"reshare this!"
And
I sign in as
"alice@alice.alice"
And
I preemptively confirm the alert
...
...
@@ -34,13 +34,13 @@ Feature: public repost
And
I wait for the ajax to finish
And
I wait for 2 seconds
And
I am on
"alice@alice.alice"
's page
When
I am on
"alice@alice.alice"
's page
Then
I should see
"reshare this!"
Then
I should see a
".reshare"
And
I should see
"Bob"
Scenario
:
shows up
o
n
the aspects page
And
"bob@bob.bob"
has a public post with text
"reshare this!"
Scenario
:
When
I reshare, it
shows up
i
n
my stream
Given
"bob@bob.bob"
has a public post with text
"reshare this!"
And
I sign in as
"alice@alice.alice"
And
I preemptively confirm the alert
And
I follow
"Reshare"
...
...
@@ -53,8 +53,8 @@ Feature: public repost
Then
I should see a
".reshare"
And
I should see
"Bob"
Scenario
:
can
be retract
ed
And
"bob@bob.bob"
has a public post with text
"reshare this!"
Scenario
:
I
can
delete a post that has been reshar
ed
Given
"bob@bob.bob"
has a public post with text
"reshare this!"
And
I sign in as
"alice@alice.alice"
And
I preemptively confirm the alert
And
I follow
"Reshare"
...
...
@@ -62,37 +62,34 @@ Feature: public repost
And
I go to the home page
Then
I should see a
".reshare"
And
I follow
"Your Aspects"
When
I follow
"Your Aspects"
Then
I should see
"reshare this!"
Then
I should see a
".reshare"
And
I should see
"Bob"
And
I go to the destroy user session page
When
I go to the destroy user session page
And
I sign in as
"bob@bob.bob"
And
The user deletes their first post
And
I go to the destroy user session page
And
I sign in as
"alice@alice.alice"
And
I go to the home page
When
I go to the home page
Then
I should see
"Original post deleted by author"
Scenario
:
Keeps track of
the number of reshares
And
"bob@bob.bob"
has a public post with text
"reshare this!"
Scenario
:
I
can see
the number of reshares
Given
"bob@bob.bob"
has a public post with text
"reshare this!"
And
I sign in as
"alice@alice.alice"
And
I preemptively confirm the alert
And
I follow
"Reshare"
And
I wait for the ajax to finish
And
I go to the home page
When
I go to the home page
Then
I should see a
".reshare"
And
I follow
"Your Aspects"
When
I follow
"Your Aspects"
Then
I should see
"reshare this!"
Then
I should see a
".reshare"
And
I should see a
".reshare"
And
I should see
"Bob"
And
I go to the home page
And
I should see
"1 reshare"
Scenario
:
Can have text
When
I go to the home page
Then
I should see
"1 reshare"
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