Flaky test: ./spec/features/merge_request/user_comments_on_diff_spec.rb:139 # User comments on a diff when adding multiline comments when in side-by-side view allows comments on previously hidden lines at the top of a file
Description
Seeing that rspec ./spec/features/merge_request/user_comments_on_diff_spec.rb:139
is failureflaky-test with the first occurrence at https://gitlab.com/gitlab-org/gitlab/-/jobs/861657845.
Unable to recreate locally
1) User comments on a diff when adding multiline comments when in side-by-side view allows comments on previously hidden lines at the top of a file
Got 1 failure and 1 other error:
1.1) Failure/Error: expect(page).to have_content("Comment on lines #{start_line} to #{end_line}")
expected to find text "Comment on lines 1 to -9" in "Comment on lines 1 to 5 John Doe86 @user84 · just now Maintainer Line is wrong Reply... Resolve thread Start a new discussion... Start a new discussion..."
# ./spec/features/merge_request/user_comments_on_diff_spec.rb:181:in `block in add_comment'
# ./spec/features/merge_request/user_comments_on_diff_spec.rb:179:in `add_comment'
# ./spec/features/merge_request/user_comments_on_diff_spec.rb:145:in `block (4 levels) in <top (required)>'
# ./spec/spec_helper.rb:351:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:9:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:342:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:338:in `block (3 levels) in <top (required)>'
# ./spec/spec_helper.rb:338:in `block (2 levels) in <top (required)>'