Flaky test: spec/features/merge_request/user_interacts_with_batched_mr_diffs_spec.rb
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
From a foss-impact
job in https://gitlab.com/gitlab-org/gitlab/-/jobs/4234939187:
Failures:
1) Batch diffs when user visits a URL with a link directly to to a discussion which is in the first batched page of diffs scrolls to the correct discussion
Got 0 failures and 2 other errors:
1.1) Failure/Error: super
Capybara::ElementNotFound:
Unable to find visible css ".js-add-diff-note-button" within #<Capybara::Node::Element tag="div" path="/HTML/BODY[1]/DIV[3]/DIV[1]/DIV[3]/MAIN[1]/DIV[2]/DIV[3]/DIV[3]/DIV[4]/DIV[1]/DIV[3]/DIV[2]/DIV[1]/DIV[2]/DIV[4]/DIV[1]/DIV[1]/DIV[2]/DIV[1]/DIV[1]/DIV[1]/DIV[1]/DIV[1]/DIV[1]">
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/support/capybara_slow_finder.rb:18:in `synchronize'
# ./spec/support/helpers/merge_request_diff_helpers.rb:10:in `click_diff_line'
# ./spec/features/merge_request/user_interacts_with_batched_mr_diffs_spec.rb:24: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>'
# ------------------
# --- Caused by: ---
# Capybara::ElementNotFound:
# Unable to find visible css ".js-add-diff-note-button" within #<Capybara::Node::Element tag="div" path="/HTML/BODY[1]/DIV[3]/DIV[1]/DIV[3]/MAIN[1]/DIV[2]/DIV[3]/DIV[3]/DIV[4]/DIV[1]/DIV[3]/DIV[2]/DIV[1]/DIV[2]/DIV[4]/DIV[1]/DIV[1]/DIV[2]/DIV[1]/DIV[1]/DIV[1]/DIV[1]/DIV[1]/DIV[1]">
# ./spec/support/capybara_slow_finder.rb:18:in `synchronize'
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
# ./spec/support/capybara.rb:213: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 8.6 seconds (files took 34.41 seconds to load)
2 examples, 1 failure
Failed examples:
rspec ./spec/features/merge_request/user_interacts_with_batched_mr_diffs_spec.rb:51 # Batch diffs when user visits a URL with a link directly to to a discussion which is in the first batched page of diffs scrolls to the correct discussion
[TEST PROF INFO] Time spent in factories: 00:01.568 (1.2% of total time)
Failed to write to log, write log/workhorse-test.log: file already close
There is no Capybara screenshot.
Edited by 🤖 GitLab Bot 🤖