summaryrefslogtreecommitdiff
path: root/features/admin
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2015-12-01 20:47:26 -0200
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2015-12-01 20:53:43 -0200
commit67cc6b0642573fe443126042dd36b15f05bc539c (patch)
treeb96ee2828722a7363d45e2ef6d4b5a2b9a478867 /features/admin
parent9ab7bdf7739935bf79c2e033212726a4be421a26 (diff)
downloadgitlab-ce-67cc6b0642573fe443126042dd36b15f05bc539c.tar.gz
Signed in admin should be able to add/remove himself to a project
Diffstat (limited to 'features/admin')
-rw-r--r--features/admin/projects.feature16
1 files changed, 16 insertions, 0 deletions
diff --git a/features/admin/projects.feature b/features/admin/projects.feature
index f7cec04eb75..c5ee80136c8 100644
--- a/features/admin/projects.feature
+++ b/features/admin/projects.feature
@@ -27,3 +27,19 @@ Feature: Admin Projects
And I visit admin project page
When I transfer project to group 'Web'
Then I should see project transfered
+
+ @javascript
+ Scenario: Signed in admin should be able to add himself to a project
+ Given "John Doe" owns private project "Enterprise"
+ When I visit project "Enterprise" members page
+ When I select current user as "Developer"
+ Then I should see current user as "Developer"
+
+ @javascript
+ Scenario: Signed in admin should be able to remove himself from a project
+ Given "John Doe" owns private project "Enterprise"
+ And current user is developer of project "Enterprise"
+ When I visit project "Enterprise" members page
+ Then I should see current user as "Developer"
+ When I click on the "Remove User From Project" button for current user
+ Then I should not see current user as "Developer"