Failed ee/spec/features/admin/subscriptions/admin_views_subscription_spec.rb
Summary
````
RSpec::Retry: 2nd try ./ee/spec/features/admin/subscriptions/admin_views_subscription_spec.rb:130
HTML screenshot: /builds/gitlab-org/gitlab/tmp/capybara/admin_views_subscription_with_license_file_when_activating_another_subscription_displays_an_error_when_the_activation_fails.html
Image screenshot: /tmp/capybara/admin_views_subscription_with_license_file_when_activating_another_subscription_displays_an_error_when_the_activation_fails.png
Failures:
1) Admin views Subscription with license file when activating another subscription displays an error when the activation fails
Got 0 failures and 2 other errors:
1.1) Failure/Error: super
Capybara::ElementNotFound:
Unable to find css "[role=\"dialog\"]"
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/support/capybara_slow_finder.rb:18:in `synchronize'
# ./spec/support/helpers/modal_helpers.rb:8:in `within_modal'
# ./ee/spec/features/admin/subscriptions/admin_views_subscription_spec.rb:133:in `block (4 levels) in <main>'
# ./spec/spec_helper.rb:511:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:18:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:503:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:499:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:59:in `with_raw_context'
# ./spec/spec_helper.rb:499: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/flaky_tests.rb:27: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 css "[role=\"dialog\"]"
# ./spec/support/capybara_slow_finder.rb:18:in `synchronize'
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
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
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
# ./spec/support/capybara.rb:221:in `block (2 levels) in <main>'
# ./spec/spec_helper.rb:511:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:18:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:503:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:499:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:59:in `with_raw_context'
# ./spec/spec_helper.rb:499: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/flaky_tests.rb:27: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 23.21 seconds (files took 1 minute 5.92 seconds to load)
1 example, 1 failure
Failed examples:
rspec ./ee/spec/features/admin/subscriptions/admin_views_subscription_spec.rb:130 # Admin views Subscription with license file when activating another subscription displays an error when the activation fails
[TEST PROF INFO] Time spent in factories: 00:00.635 (0.74% of total time)
Failed to write to log, write log/workhorse-test.log: file already closed
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 #3722178633 failed for 2bf9c1df: