Commit ee4f6f9b authored by Markus Koller's avatar Markus Koller

Fix timing problem in epics_swimlanes_spec

Some requests were still in-flight, which caused the issue with the
title "bug" not to be created.
parent 121ea8e0
......@@ -77,12 +77,14 @@ RSpec.describe 'epics swimlanes', :js do
find('.issue-count-badge-add-button').click
end
wait_for_all_requests
page.within(first('.board-new-issue-form')) do
find('.form-control').set('bug')
click_button 'Submit issue'
end
wait_for_requests
wait_for_all_requests
page.within(first('.board .issue-count-badge-count')) do
expect(page).to have_content('3')
......@@ -90,7 +92,7 @@ RSpec.describe 'epics swimlanes', :js do
page.within("[data-testid='board-lane-unassigned-issues']") do
page.within(first('.board-card')) do
issue = project.issues.find_by_title('bug')
issue = project.issues.find_by!(title: 'bug')
expect(page).to have_content(issue.to_reference)
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