Flaky test spec/features/merge_request/user_merges_when_pipeline_succeeds_spec.rb[1:1:1:1:1:1]

Summary

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.

Job #4241097827 failed for 73effeff:

Failures:
  1) Merge request > User merges when pipeline succeeds when there is active pipeline for merge request enabling Merge when pipeline succeeds when enabled immediately behaves like Merge when pipeline succeeds activator activates the Merge when pipeline succeeds feature
     Got 1 failure and 1 other error:
     Shared Example Group: "Merge when pipeline succeeds activator" called from ./spec/features/merge_request/user_merges_when_pipeline_succeeds_spec.rb:49
     1.1) Failure/Error: expect(page).to have_content "Source branch will not be deleted"
            expected to find text "Source branch will not be deleted" in "Skip to content GitLab / Help P Project-2 Name Project information Repository Issues 0 Merge requests 1 CI/CD Security and Compliance Deployments Packages and registries Infrastructure Monitor Analytics Wiki Snippets Settings Collapse sidebar Sidney Jones2 Project-2 Name Merge requests !1 Bug NS-04 Edit Code Open Sidney Jones2 requested to merge master into feature just now Overview 0 Commits 29 Pipelines 1 Changes 20 Add a to do 👍 0 👎 0 Add reaction Pipeline #23 pending for b83d6e39 on master Approve Approval is optional Set by Sidney Jones2 to be merged automatically when the pipeline succeeds Cancel auto-merge Squash commits What is squashing? Edit commit message The source branch is 1 commit behind the target branch · 29 commits and 1 merge commit will be added to feature. Merge when pipeline succeeds Select merge moment Activity All activity Sidney Jones2 enabled an automatic merge when the pipeline for b83d6e39 succeeds just now Insert comment template Switch to rich text Preview Supports Markdown. For quick actions, type /. Comment Toggle dropdown Close merge request 0 Assignees Edit None - assign yourself 0 Reviewers Edit None - assign yourself Labels Edit None Milestone Edit None Time tracking No estimate or time spent 1 Participant Notifications and other merge request actions have moved to this menu. Okay!"
            Timeout (45s) 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_merges_when_pipeline_succeeds_spec.rb:41:in `block (5 levels) in <main>'
          # ./spec/spec_helper.rb:419:in `block (3 levels) in <top (required)>'
          # ./spec/support/sidekiq_middleware.rb:18:in `with_sidekiq_server_middleware'
          # ./spec/spec_helper.rb:411:in `block (2 levels) in <top (required)>'
          # ./spec/spec_helper.rb:407:in `block (3 levels) in <top (required)>'
          # ./lib/gitlab/application_context.rb:61:in `with_raw_context'
          # ./spec/spec_helper.rb:407:in `block (2 levels) in <top (required)>'
          # ./spec/spec_helper.rb:242:in `block (2 levels) in <top (required)>'
          # ./spec/support/system_exit_detected.rb:7:in `block (2 levels) in <main>'
          # ./spec/support/fast_quarantine.rb:39: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:
            webpack-internal:///gzws 163:12 "[gl-button]: Accessible name missing. Please add inner text or aria-label." button.btn.gl-mr-2.btn-default.btn-sm.gl-button.btn-default-tertiary.btn-icon
            webpack-internal:///gzws 163:12 "[gl-button]: Accessible name missing. Please add inner text or aria-label." button.btn.js-zen-enter.gl-ml-2.btn-default.btn-sm.gl-button.btn-default-tertiary.btn-icon
            webpack-internal:///gzws 163:12 "[gl-button]: Accessible name missing. Please add inner text or aria-label." button.btn.btn-default.btn-md.gl-button.btn-icon
            webpack-internal:///gzws 163:12 "[gl-button]: Accessible name missing. Please add inner text or aria-label." button.btn.gl-vertical-align-top.btn-default.btn-sm.gl-button.btn-default-tertiary.btn-icon
            webpack-internal:///gzws 163:12 "[gl-button]: Accessible name missing. Please add inner text or aria-label." button.btn.gl-vertical-align-top.btn-default.btn-sm.gl-button.btn-default-tertiary.btn-icon
          # ./spec/support/capybara.rb:216:in `block (2 levels) in <main>'
          # ./spec/spec_helper.rb:419:in `block (3 levels) in <top (required)>'
          # ./spec/support/sidekiq_middleware.rb:18:in `with_sidekiq_server_middleware'
          # ./spec/spec_helper.rb:411:in `block (2 levels) in <top (required)>'
          # ./spec/spec_helper.rb:407:in `block (3 levels) in <top (required)>'
          # ./lib/gitlab/application_context.rb:61:in `with_raw_context'
          # ./spec/spec_helper.rb:407:in `block (2 levels) in <top (required)>'
          # ./spec/spec_helper.rb:242:in `block (2 levels) in <top (required)>'
          # ./spec/support/system_exit_detected.rb:7:in `block (2 levels) in <main>'
          # ./spec/support/fast_quarantine.rb:39: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 2 minutes 0.4 seconds (files took 43.13 seconds to load)
1 example, 1 failure
Failed examples:
rspec './spec/features/merge_request/user_merges_when_pipeline_succeeds_spec.rb[1:1:1:1:1:1]' # Merge request > User merges when pipeline succeeds when there is active pipeline for merge request enabling Merge when pipeline succeeds when enabled immediately behaves like Merge when pipeline succeeds activator activates the Merge when pipeline succeeds feature