Flaky test spec/features/merge_request/user_creates_image_diff_notes_spec.rb[1:5: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 #3833368846 failed for ffeb81aa:
Failures:
1) Merge request > User creates image diff notes changes tab image diff onion skin behaves like onion skin resets opacity when toggling between view modes
Got 1 failure and 1 other error:
Shared Example Group: "onion skin" called from ./spec/features/merge_request/user_creates_image_diff_notes_spec.rb:230
1.1) Failure/Error: expect(find('.view-modes-menu li.active')).to have_content('Onion skin')
expected to find text "Onion skin" in "2-up"
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_creates_image_diff_notes_spec.rb:220:in `switch_to_onion_skin'
# ./spec/features/merge_request/user_creates_image_diff_notes_spec.rb:227:in `block (4 levels) in <main>'
# ./spec/spec_helper.rb:505:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:18:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:497:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:493:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:59:in `with_raw_context'
# ./spec/spec_helper.rb:493:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:241: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'.
https://www.gravatar.com/avatar/10fc7f102be8de7657fb4d80898bbfe3?s=48&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/10fc7f102be8de7657fb4d80898bbfe3?s=80&d=identicon - Failed to load resource: net::ERR_CONNECTION_RESET
https://www.gravatar.com/avatar/10fc7f102be8de7657fb4d80898bbfe3?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:505:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:18:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:497:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:493:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:59:in `with_raw_context'
# ./spec/spec_helper.rb:493:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:241: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 21.66 seconds (files took 47.02 seconds to load)
1 example, 1 failure
Failed examples:
rspec './spec/features/merge_request/user_creates_image_diff_notes_spec.rb[1:5:1:1:1]' # Merge request > User creates image diff notes changes tab image diff onion skin behaves like onion skin resets opacity when toggling between view modes
[TEST PROF INFO] Time spent in factories: 00:02.888 (3.46% of total time)
Edited by 🤖 GitLab Bot 🤖