summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authortauriedavis <taurie@gitlab.com>2017-06-06 14:31:47 -0700
committerAnnabel Dunstone Gray <annabel.dunstone@gmail.com>2017-06-08 08:48:59 -0500
commitb4c6dc1d813e179f87678116ed7625311af78c4d (patch)
treeb37453ca2ef52e93fff8b713c928b816a72101b8 /spec
parentb4056e1b0d481c079caa216595412664453df1f2 (diff)
downloadgitlab-ce-b4c6dc1d813e179f87678116ed7625311af78c4d.tar.gz
fixes project_group_links spec by adding click tab event
Diffstat (limited to 'spec')
-rw-r--r--spec/features/projects/group_links_spec.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/features/projects/group_links_spec.rb b/spec/features/projects/group_links_spec.rb
index 4e5682c8636..1a27ca3002a 100644
--- a/spec/features/projects/group_links_spec.rb
+++ b/spec/features/projects/group_links_spec.rb
@@ -16,6 +16,8 @@ feature 'Project group links', :feature, :js do
before do
visit namespace_project_settings_members_path(project.namespace, project)
+ click_on 'share-with-group-tab'
+
select2 group.id, from: '#link_group_id'
fill_in 'expires_at_groups', with: (Time.current + 4.5.days).strftime('%Y-%m-%d')
page.find('body').click
@@ -23,7 +25,7 @@ feature 'Project group links', :feature, :js do
end
it 'shows the expiration time with a warning class' do
- page.within('.enabled-groups') do
+ page.within('.project-members-groups') do
expect(page).to have_content('expires in 4 days')
expect(page).to have_selector('.text-warning')
end
@@ -43,6 +45,7 @@ feature 'Project group links', :feature, :js do
it 'does not show ancestors', :nested_groups do
visit namespace_project_settings_members_path(project.namespace, project)
+ click_on 'share-with-group-tab'
click_link 'Search for a group'
page.within '.select2-drop' do