Skip to content
Snippets Groups Projects
Commit 655b836b authored by Andrey Kumanyaev's avatar Andrey Kumanyaev
Browse files

test reanimated

parent c8bf5905
No related branches found
No related tags found
1 merge request!2389Feature/add user to projects in group (issue #2298)
Loading
Loading
@@ -20,7 +20,6 @@ Feature: Groups
 
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"
And I select user "John" from list with role "Reporter"
Then I should see user "John" in team list
Loading
Loading
@@ -9,7 +9,7 @@ class Groups < Spinach::FeatureSteps
end
 
And 'I have group with projects' do
@group = create(:group)
@group = create(:group, owner: current_user)
@project = create(:project, group: @group)
@event = create(:closed_issue_event, project: @project)
 
Loading
Loading
@@ -36,7 +36,7 @@ class Groups < Spinach::FeatureSteps
create(:user, name: "John")
end
 
When 'I select user "John" from list with role "Reporter"' do
And '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"
Loading
Loading
@@ -46,8 +46,7 @@ class Groups < Spinach::FeatureSteps
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 = find(".ui-box .well-list")
projects_with_access.should have_content("John")
end
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment