Skip to content

Flaky spec: spec/features/profiles/user_edit_profile_spec.rb:419

Flaky spec surfaced in broken master incidents:

Failures:
  1) User edit profile user status user menu adds message and emoji to user status
     Got 0 failures and 2 other errors:
     1.1) Failure/Error: super
          Capybara::ElementNotFound:
            Unable to find css ".emoji-menu-toggle-button"
            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/features/profiles/user_edit_profile_spec.rb:170:in `select_emoji'
          # ./spec/features/profiles/user_edit_profile_spec.rb:423:in `block (4 levels) in <main>'
          # ./spec/spec_helper.rb:413:in `block (3 levels) in <top (required)>'
          # ./spec/support/sidekiq_middleware.rb:18:in `with_sidekiq_server_middleware'
          # ./spec/spec_helper.rb:405:in `block (2 levels) in <top (required)>'
          # ./spec/spec_helper.rb:401:in `block (3 levels) in <top (required)>'
          # ./lib/gitlab/application_context.rb:59:in `with_raw_context'
          # ./spec/spec_helper.rb:401: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/flaky_tests.rb:27:in `block (2 levels) in <main>'
          # ./spec/support/database/prevent_cross_joins.rb:106:in `block (3 levels) in <main>'
          # ./spec/support/database/prevent_cross_joins.rb:60:in `with_cross_joins_prevented'
          # ./spec/support/database/prevent_cross_joins.rb:106:in `block (2 levels) in <main>'
          # ------------------
          # --- Caused by: ---
          # Capybara::ElementNotFound:
          #   Unable to find css ".emoji-menu-toggle-button"
          #   ./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://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'.
            webpack-internal:///hc2E 128:20 "Popper: CSS \"margin\" styles cannot be used to apply padding between the popper and its reference element or boundary. To replicate margin, use the `offset` modifier, as well as the `padding` option in the `preventOverflow` and `flip` modifiers."
            https://localhost/com.snowplowanalytics.snowplow/tp2 - Failed to load resource: net::ERR_CONNECTION_REFUSED
          # ./spec/support/capybara.rb:206:in `block (2 levels) in <main>'
          # ./spec/spec_helper.rb:413:in `block (3 levels) in <top (required)>'
          # ./spec/support/sidekiq_middleware.rb:18:in `with_sidekiq_server_middleware'
          # ./spec/spec_helper.rb:405:in `block (2 levels) in <top (required)>'
          # ./spec/spec_helper.rb:401:in `block (3 levels) in <top (required)>'
          # ./lib/gitlab/application_context.rb:59:in `with_raw_context'
          # ./spec/spec_helper.rb:401: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/flaky_tests.rb:27:in `block (2 levels) in <main>'
          # ./spec/support/database/prevent_cross_joins.rb:106:in `block (3 levels) in <main>'
          # ./spec/support/database/prevent_cross_joins.rb:60:in `with_cross_joins_prevented'
          # ./spec/support/database/prevent_cross_joins.rb:106:in `block (2 levels) in <main>'
Finished in 1 minute 26.08 seconds (files took 50.6 seconds to load)
2 examples, 1 failure
Failed examples:
rspec ./spec/features/profiles/user_edit_profile_spec.rb:419 # User edit profile user status user menu adds message and emoji to user status

https://gitlab.com/gitlab-org/quality/engineering-productivity/master-broken-incidents/uploads/caa265f34d9f8026e0fd25669f53a837/image.png

This other incident failed for similar reason but for a different spec:

rspec ./spec/features/profiles/user_edit_profile_spec.rb:385 # User edit profile user status user menu opens the emoji modal again after closing it

Edited by Jennifer Li