Commit 13fb3fdcf20f505b2591cfe3fc1a1e74242a932c
Committed by
Dmitriy Zaporozhets
1 parent
17a8ee57
Exists in
master
and in
4 other branches
Repair admin section tests
Showing
2 changed files
with
11 additions
and
1 deletions
Show diff stats
features/admin/teams.feature
... | ... | @@ -17,7 +17,7 @@ Feature: Admin Teams |
17 | 17 | When I visit admin teams page |
18 | 18 | When I have clean "HardCoders" team |
19 | 19 | And I visit "HardCoders" team page |
20 | - #Then I should see only me in members table | |
20 | + When I click to "Add members" link | |
21 | 21 | When I select user "John" from user list as "Developer" |
22 | 22 | And submit form with new team member info |
23 | 23 | Then I should see "John" in teams members list as "Developer" |
... | ... | @@ -30,6 +30,7 @@ Feature: Admin Teams |
30 | 30 | When I have "Shop" project |
31 | 31 | And I visit "HardCoders" team page |
32 | 32 | Then I should see empty projects table |
33 | + When I click to "Add projects" link | |
33 | 34 | When I select project "Shop" with max access "Reporter" |
34 | 35 | And submit form with new team project info |
35 | 36 | Then I should see "Shop" project in projects list |
... | ... | @@ -43,6 +44,7 @@ Feature: Admin Teams |
43 | 44 | When I have gitlab user "Jimm" |
44 | 45 | And I visit "HardCoders" team page |
45 | 46 | Then I should see members table without "Jimm" member |
47 | + When I click to "Add members" link | |
46 | 48 | When I select user "Jimm" ub team members list as "Master" |
47 | 49 | And submit form with new team member info |
48 | 50 | Then I should see "Jimm" in teams members list as "Master" | ... | ... |
features/steps/admin/admin_teams.rb
... | ... | @@ -205,6 +205,14 @@ class AdminTeams < Spinach::FeatureSteps |
205 | 205 | find_in_list(".team_members", user).must_equal true |
206 | 206 | end |
207 | 207 | |
208 | + When 'I click to "Add members" link' do | |
209 | + click_link "Add members" | |
210 | + end | |
211 | + | |
212 | + When 'I click to "Add projects" link' do | |
213 | + click_link "Add projects" | |
214 | + end | |
215 | + | |
208 | 216 | protected |
209 | 217 | |
210 | 218 | def current_team | ... | ... |