Commit 6aaa60be authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Fix flaky spec due to stale reference

Asserting that the text is inside the modal wrapper
fails because the modal may already be removed from
the DOM
parent dd9d05b4
......@@ -38,8 +38,9 @@ describe 'Merge request > User approves with password', :js do
page.within('.js-mr-approvals-modal') do
expect(page).to have_text('Approval password is invalid.')
click_button 'Cancel'
expect(page).not_to have_text('Approved by')
end
expect(page).not_to have_text('Approved by')
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