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 conteneurs
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
4105f90a
Valider
4105f90a
rédigé
14 years ago
par
zhitomirskiyi
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
forgot to add
parent
5eb487ed
Branches
Branches contenant la validation
Étiquettes
É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/disconnects_users.feature
+60
-0
60 ajouts, 0 suppression
features/disconnects_users.feature
spec/javascripts/contact-list-spec.js
+21
-0
21 ajouts, 0 suppression
spec/javascripts/contact-list-spec.js
avec
81 ajouts
et
0 suppression
features/disconnects_users.feature
0 → 100644
+
60
−
0
Voir le fichier @
4105f90a
@javascript
Feature
:
disconnecting users
In order to deal with life
As a User
I want to be able to disconnect from others
Background
:
Given
a user with email
"bob@bob.bob"
And
a user with email
"alice@alice.alice"
And
a user with email
"bob@bob.bob"
is connected with
"alice@alice.alice"
When
I sign in as
"bob@bob.bob"
And
I am on the aspects manage page
Then
I should see 1 contact in
"Besties"
Scenario
:
remove contact from the contact show page
When
I am on
"alice@alice.alice"
's page
And
I follow
"edit aspect membership"
And
I preemptively confirm the alert
And
I follow
"remove contact"
in the modal window
And
I wait for the ajax to finish
And
I am on the aspects manage page
Then
I should see no contacts in
"Besties"
Scenario
:
cancel removing contact from the contact show page
When
I am on
"alice@alice.alice"
's page
And
I follow
"edit aspect membership"
And
I preemptively reject the alert
And
I follow
"remove contact"
in the modal window
And
I wait for the ajax to finish
And
I am on the aspects manage page
Then
I should see 1 contact in
"Besties"
Scenario
:
remove contact from the aspect edit page
When
I go to the home page
And
I follow
"Besties"
within
"#aspect_listings"
And
I wait for the ajax to finish
And
I preemptively confirm the alert
And I press the first ".added" within "#facebox .contact_list ul > li
:
first-child"
And
I wait for the ajax to finish
And
I am on the aspects manage page
Then
I should see no contacts in
"Besties"
Scenario
:
cancel removing contact from the contact show page
When
I go to the home page
And
I follow
"Besties"
within
"#aspect_listings"
And
I wait for the ajax to finish
And
I preemptively reject the alert
And I press the first ".added" within "#facebox .contact_list ul > li
:
first-child"
And
I wait for the ajax to finish
And
I am on the aspects manage page
Then
I should see 1 contact in
"Besties"
Ce diff est replié.
Cliquez pour l'agrandir.
spec/javascripts/contact-list-spec.js
0 → 100644
+
21
−
0
Voir le fichier @
4105f90a
/* Copyright (c) 2010, Diaspora Inc. This file is
* licensed under the Affero General Public License version 3 or later. See
* the COPYRIGHT file.
*/
describe
(
"
Contact List
"
,
function
()
{
describe
(
"
disconnectUser
"
,
function
()
{
it
(
"
does an ajax call to person delete with the passed in id
"
,
function
(){
var
id
=
'
3
'
;
spyOn
(
$
,
'
ajax
'
).
andCallThrough
();
List
.
disconnectUser
(
id
);
expect
(
$
.
ajax
).
toHaveBeenCalledWith
(
url
:
"
/people/
"
+
id
,
type
:
"
DELETE
"
,
success
:
function
(){
$
(
'
.contact_list li[data-guid=
'
+
id
+
'
]
'
).
fadeOut
(
200
);
}
);
});
});
});
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