Commit 0aa5f089 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Move another group member spec from spinach

Signed-off-by: Dmitriy Zaporozhets's avatarDmitriy Zaporozhets <>
parent 69043814
Pipeline #9342671 passed with stages
in 164 minutes and 36 seconds
......@@ -4,13 +4,6 @@ Feature: Group Members
And "John Doe" is owner of group "Owned"
And "John Doe" is guest of group "Guest"
Scenario: Guest should not be able to remove other users from group
Given "Mary Jane" is guest of group "Guest"
When I visit group "Guest" members page
Then I should see user "John Doe" in team list
Then I should see user "Mary Jane" in team list
Then I should not see the "Remove User From Group" button for "Mary Jane"
Scenario: Search member by name
Given "Mary Jane" is guest of group "Guest"
And I visit group "Guest" members page
......@@ -77,6 +77,23 @@ feature 'Groups > Members > Manage members', feature: true do
scenario 'guest can not manage other users' do
visit group_group_members_path(group)
expect(page).not_to have_button 'Add to group'
page.within(second_row) do
# Can not modify user2 role
expect(page).not_to have_button 'Developer'
# Can not remove user2
expect(page).not_to have_css('a.btn-remove')
def first_row
page.all('ul.content-list > li')[0]
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