Flaky test: spec/features/merge_request/user_sees_discussions_navigation_spec.rb[1:1:1:1:1:3] # Merge request > User sees discussions navigation Code discussions Overview page discussions navigation behaves like a page with a thread navigation with act

Summary

Master-broken incident: gitlab-org/quality/engineering-productivity/master-broken-incidents#918 (closed)

Job #3785967333 failed for e2a28a6a:

Failures:
  1) Merge request > User sees discussions navigation Code discussions Overview page discussions navigation behaves like a page with a thread navigation with active threads navigates through active threads
     Got 1 failure and 1 other error:
     Shared Example Group: "a page with a thread navigation" called from ./spec/features/merge_request/user_sees_discussions_navigation_spec.rb:110
     1.1) Failure/Error: expect(page).to have_selector(second_discussion_selector, obscured: false)
            expected to find visible css ".discussion[data-discussion-id='949734b17c08a798682f1f4927f0dd8fa2d9f877']" but there were no matches. Also found "Hide thread\nSidney Jones1 @namespace1 started a thread on the diff just now\nfiles/images/wm.svg\n0 → 100644\n1 <?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\nSidney Jones1\n@namespace1\n· just now\nAuthor\nOwner\nMy title 5\nResolve thread", which matched the selector but not all filters. 
            Timeout (30s) reached while running a waiting Capybara finder.
            Consider using a non-waiting finder.
            See https://www.cloudbees.com/blog/faster-rails-tests
          # ./spec/features/merge_request/user_sees_discussions_navigation_spec.rb:58:in `block (5 levels) in <main>'
          # ./spec/spec_helper.rb:509:in `block (3 levels) in <top (required)>'
          # ./spec/support/sidekiq_middleware.rb:18:in `with_sidekiq_server_middleware'
          # ./spec/spec_helper.rb:501:in `block (2 levels) in <top (required)>'
          # ./spec/spec_helper.rb:497:in `block (3 levels) in <top (required)>'
          # ./lib/gitlab/application_context.rb:59:in `with_raw_context'
          # ./spec/spec_helper.rb:497:in `block (2 levels) in <top (required)>'
          # ./spec/spec_helper.rb:239:in `block (2 levels) in <top (required)>'
          # ./spec/support/system_exit_detected.rb:7:in `block (2 levels) in <main>'
          # ./spec/support/database/prevent_cross_joins.rb:108:in `block (3 levels) in <main>'
          # ./spec/support/database/prevent_cross_joins.rb:62:in `with_cross_joins_prevented'
          # ./spec/support/database/prevent_cross_joins.rb:108:in `block (2 levels) in <main>'
     1.2) Failure/Error: raise JSConsoleError, message
          JSConsoleError:
            Unexpected browser console output:
            security - Error with Permissions-Policy header: Origin trial controlled feature not enabled: 'interest-cohort'.
            webpack-internal:///gzws 129:12 "[gl-button]: Accessible name missing. Please add inner text or aria-label."
            https://www.gravatar.com/avatar/c922747a93b40d1ea88262bf1aebee62?s=48&d=identicon - Failed to load resource: net::ERR_CONNECTION_RESET
            https://www.gravatar.com/avatar/c922747a93b40d1ea88262bf1aebee62?s=80&d=identicon - Failed to load resource: net::ERR_CONNECTION_RESET
            https://localhost/com.snowplowanalytics.snowplow/tp2 - Failed to load resource: net::ERR_CONNECTION_REFUSED
            https://www.gravatar.com/avatar/c922747a93b40d1ea88262bf1aebee62?s=80&d=identicon - Failed to load resource: net::ERR_CONNECTION_RESET
            https://www.gravatar.com/avatar/c922747a93b40d1ea88262bf1aebee62?s=80&d=identicon - Failed to load resource: net::ERR_CONNECTION_RESET
            https://localhost/com.snowplowanalytics.snowplow/tp2 - Failed to load resource: net::ERR_CONNECTION_REFUSED
          # ./spec/support/capybara.rb:221:in `block (2 levels) in <main>'
          # ./spec/spec_helper.rb:509:in `block (3 levels) in <top (required)>'
          # ./spec/support/sidekiq_middleware.rb:18:in `with_sidekiq_server_middleware'
          # ./spec/spec_helper.rb:501:in `block (2 levels) in <top (required)>'
          # ./spec/spec_helper.rb:497:in `block (3 levels) in <top (required)>'
          # ./lib/gitlab/application_context.rb:59:in `with_raw_context'
          # ./spec/spec_helper.rb:497:in `block (2 levels) in <top (required)>'
          # ./spec/spec_helper.rb:239:in `block (2 levels) in <top (required)>'
          # ./spec/support/system_exit_detected.rb:7:in `block (2 levels) in <main>'
          # ./spec/support/database/prevent_cross_joins.rb:108:in `block (3 levels) in <main>'
          # ./spec/support/database/prevent_cross_joins.rb:62:in `with_cross_joins_prevented'
          # ./spec/support/database/prevent_cross_joins.rb:108:in `block (2 levels) in <main>'
Finished in 1 minute 24.33 seconds (files took 1 minute 5.79 seconds to load)
1 example, 1 failure
Failed examples:
rspec './spec/features/merge_request/user_sees_discussions_navigation_spec.rb[1:1:1:1:1:3]' # Merge request > User sees discussions navigation Code discussions Overview page discussions navigation behaves like a page with a thread navigation with active threads navigates through active threads
Randomized with seed 8064

merge_request_user_sees_discussions_navigation_code_discussions_overview_page_discussions_navigation_behaves_like_a_page_with_a_thread_navigation_with_active_threads_navigates_through_active_threads

merge_request_user_sees_discussions_navigation_code_discussions_overview_page_discussions_navigation_behaves_like_a_page_with_a_thread_navigation_with_active_threads_navigates_through_active_threads

Steps to reproduce

Please refer to Flaky tests documentation to learn more about how to reproduce them.

Proposed Resolution

Please refer to the Resolution guidance to learn more about resolution of broken master.

Once the flaky failure has been fixed on the default branch, open merge requests to cherry-pick the fix to the active stable branches.