Fix specs
Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
parent
00ac7ae84a
commit
1f7353ce38
2 changed files with 1 additions and 14 deletions
|
@ -26,13 +26,6 @@ Feature: Admin Groups
|
|||
When I visit group page
|
||||
Then I should see project shared with group
|
||||
|
||||
@javascript
|
||||
Scenario: Remove user from group
|
||||
Given we have user "John Doe" in group
|
||||
When I visit admin group page
|
||||
And I remove user "John Doe" from group
|
||||
Then I should not see "John Doe" in team list
|
||||
|
||||
@javascript
|
||||
Scenario: Invite user to a group by e-mail
|
||||
When I visit admin group page
|
||||
|
|
|
@ -62,7 +62,7 @@ class Spinach::Features::AdminGroups < Spinach::FeatureSteps
|
|||
|
||||
step 'I should see "johndoe@gitlab.com" in team list in every project as "Reporter"' do
|
||||
page.within ".group-users-list" do
|
||||
expect(page).to have_content "johndoe@gitlab.com (invited)"
|
||||
expect(page).to have_content "johndoe@gitlab.com – Invited by"
|
||||
expect(page).to have_content "Reporter"
|
||||
end
|
||||
end
|
||||
|
@ -92,12 +92,6 @@ class Spinach::Features::AdminGroups < Spinach::FeatureSteps
|
|||
current_group.add_reporter(user_john)
|
||||
end
|
||||
|
||||
step 'I remove user "John Doe" from group' do
|
||||
page.within "#user_#{user_john.id}" do
|
||||
click_link 'Remove user from group'
|
||||
end
|
||||
end
|
||||
|
||||
step 'I should not see "John Doe" in team list' do
|
||||
page.within ".group-users-list" do
|
||||
expect(page).not_to have_content "John Doe"
|
||||
|
|
Loading…
Reference in a new issue