summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzegorz@gitlab.com>2016-12-20 13:05:54 +0000
committerGrzegorz Bizon <grzegorz@gitlab.com>2016-12-20 13:05:54 +0000
commitca7e746b44acc897c6beb3bc5c7071c24efd0692 (patch)
tree5159919935e00d52e9bc89549d9fccb27bdb24f1 /spec
parentad1a1d976c877eca16858368db0c5b3ef800db8b (diff)
parent8275efa36bd51ad0d46495341d524b215c01bfff (diff)
downloadgitlab-ce-ca7e746b44acc897c6beb3bc5c7071c24efd0692.tar.gz
Merge branch 'fix_team_member_expiration_date_spec' into 'master'
Fix member with expiration date feature spec See merge request !8186
Diffstat (limited to 'spec')
-rw-r--r--spec/features/projects/members/master_adds_member_with_expiration_date_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/features/projects/members/master_adds_member_with_expiration_date_spec.rb b/spec/features/projects/members/master_adds_member_with_expiration_date_spec.rb
index 27a83fdcd1f..b7273021c95 100644
--- a/spec/features/projects/members/master_adds_member_with_expiration_date_spec.rb
+++ b/spec/features/projects/members/master_adds_member_with_expiration_date_spec.rb
@@ -24,7 +24,7 @@ feature 'Projects > Members > Master adds member with expiration date', feature:
click_on 'Add to project'
end
- page.within '.project_member:first-child' do
+ page.within "#project_member_#{new_member.project_members.first.id}" do
expect(page).to have_content('Expires in 4 days')
end
end
@@ -35,7 +35,7 @@ feature 'Projects > Members > Master adds member with expiration date', feature:
project.team.add_users([new_member.id], :developer, expires_at: '2016-09-06')
visit namespace_project_project_members_path(project.namespace, project)
- page.within '.project_member:first-child' do
+ page.within "#project_member_#{new_member.project_members.first.id}" do
find('.js-access-expiration-date').set '2016-08-09'
wait_for_ajax
expect(page).to have_content('Expires in 3 days')