Add functional in user section
This commit is contained in:
parent
9c574464a6
commit
25c5763780
7 changed files with 59 additions and 1 deletions
|
@ -17,3 +17,10 @@ Feature: Groups
|
|||
Given project from group has merge requests assigned to me
|
||||
When I visit group merge requests page
|
||||
Then I should see merge requests from this group assigned to me
|
||||
|
||||
Scenario: I should add user to projects in Group
|
||||
Given I have new user "John"
|
||||
When I visit group page
|
||||
When I visit group people page
|
||||
When I select user "John" from list with role "Reporter"
|
||||
Then I should see user "John" in team list
|
||||
|
|
|
@ -32,6 +32,25 @@ class Groups < Spinach::FeatureSteps
|
|||
end
|
||||
end
|
||||
|
||||
Given 'I have new user "John"' do
|
||||
create(:user, name: "John")
|
||||
end
|
||||
|
||||
When 'I select user "John" from list with role "Reporter"' do
|
||||
user = User.find_by_name("John")
|
||||
within "#new_team_member" do
|
||||
select user.name, :from => "user_ids"
|
||||
select "Reporter", :from => "project_access"
|
||||
end
|
||||
click_button "Add"
|
||||
end
|
||||
|
||||
Then 'I should see user "John" in team list' do
|
||||
user = User.find_by_name("John")
|
||||
projects_with_access = find(".ui-box .well-list li")
|
||||
projects_with_access.should have_content("John")
|
||||
end
|
||||
|
||||
Given 'project from group has issues assigned to me' do
|
||||
create :issue,
|
||||
project: project,
|
||||
|
|
|
@ -21,6 +21,10 @@ module SharedPaths
|
|||
visit merge_requests_group_path(current_group)
|
||||
end
|
||||
|
||||
When 'I visit group people page' do
|
||||
visit people_group_path(current_group)
|
||||
end
|
||||
|
||||
# ----------------------------------------
|
||||
# Dashboard
|
||||
# ----------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue