diff options
author | tauriedavis <taurie@gitlab.com> | 2017-06-06 14:31:47 -0700 |
---|---|---|
committer | Annabel Dunstone Gray <annabel.dunstone@gmail.com> | 2017-06-08 08:48:59 -0500 |
commit | b4c6dc1d813e179f87678116ed7625311af78c4d (patch) | |
tree | b37453ca2ef52e93fff8b713c928b816a72101b8 /features/steps | |
parent | b4056e1b0d481c079caa216595412664453df1f2 (diff) | |
download | gitlab-ce-b4c6dc1d813e179f87678116ed7625311af78c4d.tar.gz |
fixes project_group_links spec by adding click tab event
Diffstat (limited to 'features/steps')
-rw-r--r-- | features/steps/project/project_group_links.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/features/steps/project/project_group_links.rb b/features/steps/project/project_group_links.rb index 739a85e5fa4..5280a38ce81 100644 --- a/features/steps/project/project_group_links.rb +++ b/features/steps/project/project_group_links.rb @@ -5,18 +5,19 @@ class Spinach::Features::ProjectGroupLinks < Spinach::FeatureSteps include Select2Helper step 'I should see project already shared with group "Ops"' do - page.within '.enabled-groups' do + page.within '.project-members-groups' do expect(page).to have_content "Ops" end end step 'I should see project is not shared with group "Market"' do - page.within '.enabled-groups' do + page.within '.project-members-groups' do expect(page).not_to have_content "Market" end end step 'I select group "Market" for share' do + click_link 'Share with group' group = Group.find_by(path: 'market') select2(group.id, from: "#link_group_id") select "Master", from: 'link_group_access' @@ -24,7 +25,7 @@ class Spinach::Features::ProjectGroupLinks < Spinach::FeatureSteps end step 'I should see project is shared with group "Market"' do - page.within '.enabled-groups' do + page.within '.project-members-groups' do expect(page).to have_content "Market" end end |