diff options
author | Andrey Kumanyaev <me@zzet.org> | 2013-01-21 01:06:11 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-01-25 00:31:25 +0400 |
commit | 13fb3fdcf20f505b2591cfe3fc1a1e74242a932c (patch) | |
tree | 960d117bf6051b030bfcd4d544c6f9db7b60835d /features | |
parent | 17a8ee57fe7a2c2b7c18c59f88828be9d5a455a0 (diff) |
Repair admin section tests
Diffstat (limited to 'features')
-rw-r--r-- | features/admin/teams.feature | 4 | ||||
-rw-r--r-- | features/steps/admin/admin_teams.rb | 8 |
2 files changed, 11 insertions, 1 deletions
diff --git a/features/admin/teams.feature b/features/admin/teams.feature index e070a90ae02..6ca7c4cbe02 100644 --- a/features/admin/teams.feature +++ b/features/admin/teams.feature @@ -17,7 +17,7 @@ Feature: Admin Teams When I visit admin teams page When I have clean "HardCoders" team And I visit "HardCoders" team page - #Then I should see only me in members table + When I click to "Add members" link When I select user "John" from user list as "Developer" And submit form with new team member info Then I should see "John" in teams members list as "Developer" @@ -30,6 +30,7 @@ Feature: Admin Teams When I have "Shop" project And I visit "HardCoders" team page Then I should see empty projects table + When I click to "Add projects" link When I select project "Shop" with max access "Reporter" And submit form with new team project info Then I should see "Shop" project in projects list @@ -43,6 +44,7 @@ Feature: Admin Teams When I have gitlab user "Jimm" And I visit "HardCoders" team page Then I should see members table without "Jimm" member + When I click to "Add members" link When I select user "Jimm" ub team members list as "Master" And submit form with new team member info Then I should see "Jimm" in teams members list as "Master" diff --git a/features/steps/admin/admin_teams.rb b/features/steps/admin/admin_teams.rb index bba60ec496b..a1221cd1a8c 100644 --- a/features/steps/admin/admin_teams.rb +++ b/features/steps/admin/admin_teams.rb @@ -205,6 +205,14 @@ class AdminTeams < Spinach::FeatureSteps find_in_list(".team_members", user).must_equal true end + When 'I click to "Add members" link' do + click_link "Add members" + end + + When 'I click to "Add projects" link' do + click_link "Add projects" + end + protected def current_team |