Commit 9dcb3d2c authored by Nikola Milojevic's avatar Nikola Milojevic

Merge branch 'pl-spec-issues-user-edits-fix-flaky' into 'master'

Make "user edits issue" labels feature spec less flaky

See merge request gitlab-org/gitlab!73370
parents 39e5bee5 3e158a9a
...@@ -146,8 +146,7 @@ RSpec.describe "Issues > User edits issue", :js do ...@@ -146,8 +146,7 @@ RSpec.describe "Issues > User edits issue", :js do
fill_in 'Comment', with: '/label ~syzygy' fill_in 'Comment', with: '/label ~syzygy'
click_button 'Comment' click_button 'Comment'
expect(page).to have_text('added syzygy label just now')
wait_for_requests
page.within '.block.labels' do page.within '.block.labels' do
# Remove `verisimilitude` label # Remove `verisimilitude` label
...@@ -155,8 +154,6 @@ RSpec.describe "Issues > User edits issue", :js do ...@@ -155,8 +154,6 @@ RSpec.describe "Issues > User edits issue", :js do
click_button click_button
end end
wait_for_requests
expect(page).to have_text('syzygy') expect(page).to have_text('syzygy')
expect(page).not_to have_text('verisimilitude') expect(page).not_to have_text('verisimilitude')
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