Commit fcff4257 authored by Stan Hu's avatar Stan Hu
Browse files

Fix flaky spec in user_suggests_changes_on_diff_spec.rb

The test appears to be failing occasionally because the diff notes
aren't always visible within the browser when the diff view is
reloaded. We fix this by clicking on the "Jump to first unresolved
thread" button to ensure the notes are shown.

parent 181bb515
......@@ -139,6 +139,10 @@ describe 'User comments on a diff', :js do
# Making sure it's not a Front-end cache.
visit(diffs_project_merge_request_path(project, merge_request))
page.within '.line-resolve-all-container' do
page.within("[id='#{hash}']") do
Supports Markdown
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