diff options
author | Phil Hughes <me@iamphill.com> | 2016-12-09 11:35:15 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-12-09 16:39:00 +0000 |
commit | fcf332a4fa544d4a5eba200878a7b9298e5b6f6b (patch) | |
tree | df7a7197b159267e88e67caf727ca723a293fcab | |
parent | 1637ce4e6a64c154eca93444f6a62664f4e78e7a (diff) | |
download | gitlab-ce-fcf332a4fa544d4a5eba200878a7b9298e5b6f6b.tar.gz |
Group links spec update
-rw-r--r-- | features/steps/project/team_management.rb | 2 | ||||
-rw-r--r-- | spec/features/projects/members/group_links_spec.rb | 9 |
2 files changed, 8 insertions, 3 deletions
diff --git a/features/steps/project/team_management.rb b/features/steps/project/team_management.rb index 99b6397ba74..22d971fadfb 100644 --- a/features/steps/project/team_management.rb +++ b/features/steps/project/team_management.rb @@ -148,7 +148,7 @@ class Spinach::Features::ProjectTeamManagement < Spinach::FeatureSteps step 'I should see "Opensource" group user listing' do page.within '.project-members-groups' do expect(page).to have_content('OpenSource') - expect(find('select').value).to eq('40') + expect(first('.group_member')).to have_content('Master') end end end diff --git a/spec/features/projects/members/group_links_spec.rb b/spec/features/projects/members/group_links_spec.rb index cc2f695211c..94995f7cf95 100644 --- a/spec/features/projects/members/group_links_spec.rb +++ b/spec/features/projects/members/group_links_spec.rb @@ -16,12 +16,17 @@ feature 'Projects > Members > Anonymous user sees members', feature: true, js: t end it 'updates group access level' do - select 'Guest', from: "member_access_level_#{group.id}" + click_button @group_link.human_access + + page.within '.dropdown-menu' do + click_link 'Guest' + end + wait_for_ajax visit namespace_project_project_members_path(project.namespace, project) - expect(page).to have_select("member_access_level_#{group.id}", selected: 'Guest') + expect(first('.group_member')).to have_content('Guest') end it 'updates expiry date' do |