Fix specs

parent b4c6dc1d
No related merge requests found
...@@ -21,12 +21,12 @@ feature 'Project group links', :feature, :js do ...@@ -21,12 +21,12 @@ feature 'Project group links', :feature, :js do
select2 group.id, from: '#link_group_id' select2 group.id, from: '#link_group_id'
fill_in 'expires_at_groups', with: (Time.current + 4.5.days).strftime('%Y-%m-%d') fill_in 'expires_at_groups', with: (Time.current + 4.5.days).strftime('%Y-%m-%d')
page.find('body').click page.find('body').click
click_on 'Share' find('.btn-create').trigger('click')
end end
it 'shows the expiration time with a warning class' do it 'shows the expiration time with a warning class' do
page.within('.project-members-groups') do page.within('.project-members-groups') do
expect(page).to have_content('expires in 4 days') expect(page).to have_content('Expires in 4 days')
expect(page).to have_selector('.text-warning') expect(page).to have_selector('.text-warning')
end end
end end
......
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