Commit ca7e746b authored by Grzegorz Bizon's avatar Grzegorz Bizon

Merge branch 'fix_team_member_expiration_date_spec' into 'master'

Fix member with expiration date feature spec

See merge request !8186
parents ad1a1d97 8275efa3
...@@ -24,7 +24,7 @@ feature 'Projects > Members > Master adds member with expiration date', feature: ...@@ -24,7 +24,7 @@ feature 'Projects > Members > Master adds member with expiration date', feature:
click_on 'Add to project' click_on 'Add to project'
end 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') expect(page).to have_content('Expires in 4 days')
end end
end end
...@@ -35,7 +35,7 @@ feature 'Projects > Members > Master adds member with expiration date', feature: ...@@ -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') project.team.add_users([new_member.id], :developer, expires_at: '2016-09-06')
visit namespace_project_project_members_path(project.namespace, project) 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' find('.js-access-expiration-date').set '2016-08-09'
wait_for_ajax wait_for_ajax
expect(page).to have_content('Expires in 3 days') expect(page).to have_content('Expires in 3 days')
......
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