BigW Consortium Gitlab

Commit 13fb3fdc by Andrey Kumanyaev Committed by Dmitriy Zaporozhets

Repair admin section tests

parent 17a8ee57
...@@ -17,7 +17,7 @@ Feature: Admin Teams ...@@ -17,7 +17,7 @@ Feature: Admin Teams
When I visit admin teams page When I visit admin teams page
When I have clean "HardCoders" team When I have clean "HardCoders" team
And I visit "HardCoders" team page 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" When I select user "John" from user list as "Developer"
And submit form with new team member info And submit form with new team member info
Then I should see "John" in teams members list as "Developer" Then I should see "John" in teams members list as "Developer"
...@@ -30,6 +30,7 @@ Feature: Admin Teams ...@@ -30,6 +30,7 @@ Feature: Admin Teams
When I have "Shop" project When I have "Shop" project
And I visit "HardCoders" team page And I visit "HardCoders" team page
Then I should see empty projects table Then I should see empty projects table
When I click to "Add projects" link
When I select project "Shop" with max access "Reporter" When I select project "Shop" with max access "Reporter"
And submit form with new team project info And submit form with new team project info
Then I should see "Shop" project in projects list Then I should see "Shop" project in projects list
...@@ -43,6 +44,7 @@ Feature: Admin Teams ...@@ -43,6 +44,7 @@ Feature: Admin Teams
When I have gitlab user "Jimm" When I have gitlab user "Jimm"
And I visit "HardCoders" team page And I visit "HardCoders" team page
Then I should see members table without "Jimm" member 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" When I select user "Jimm" ub team members list as "Master"
And submit form with new team member info And submit form with new team member info
Then I should see "Jimm" in teams members list as "Master" Then I should see "Jimm" in teams members list as "Master"
......
...@@ -205,6 +205,14 @@ class AdminTeams < Spinach::FeatureSteps ...@@ -205,6 +205,14 @@ class AdminTeams < Spinach::FeatureSteps
find_in_list(".team_members", user).must_equal true find_in_list(".team_members", user).must_equal true
end 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 protected
def current_team def current_team
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment