Commit 31f04c3d authored by Rémy Coutable's avatar Rémy Coutable

Make the 'User views issue designs' test less flaky

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent ca664282
...@@ -15,12 +15,10 @@ describe 'User views issue designs', :js do ...@@ -15,12 +15,10 @@ describe 'User views issue designs', :js do
visit project_issue_path(project, issue) visit project_issue_path(project, issue)
click_link 'Designs' click_link 'Designs'
wait_for_requests
end end
it 'opens design detail' do it 'opens design detail' do
find('.js-design-list-item', match: :first).click click_link design.filename
page.within(find('.js-design-header')) do page.within(find('.js-design-header')) do
expect(page).to have_content(design.filename) expect(page).to have_content(design.filename)
......
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