Multiple QA Failures in master related to ambiguous match for ci-badge-link
Summary
Pipeline: https://gitlab.com/gitlab-org/gitlab/-/pipelines/997487953
Multiple QA failures are occurring in master
with similar errors regarding the ci-badge-link
element, ex:
Stack trace
1) Verify UI defined variable is not inheritable when forward:pipeline_variables is false
Failure/Error: verify_job_log_does_not_show_variable_value
Capybara::Ambiguous:
Ambiguous match, found 2 elements matching visible css "[data-testid=\"ci-badge-link\"],[data-qa-selector=\"ci-badge-link\"]"
# ./qa/page/base.rb:146:in `find_element'
# ./qa/support/page/logging.rb:39:in `block in find_element'
# ./qa/support/page/logging.rb:206:in `log_slow_code'
# ./qa/support/page/logging.rb:39:in `find_element'
# ./qa/page/component/ci_badge_link.rb:40:in `status_badge'
# ./qa/page/component/ci_badge_link.rb:45:in `block in completed?'
# ./qa/page/base.rb:82:in `block in wait_until'
# ./qa/support/waiter.rb:29:in `block in wait_until'
# ./qa/support/repeater.rb:46:in `repeat_until'
# ./qa/support/waiter.rb:20:in `wait_until'
# ./qa/page/base.rb:76:in `wait_until'
# ./qa/page/component/ci_badge_link.rb:44:in `completed?'
# ./qa/page/project/job/show.rb:30:in `successful?'
# ./qa/specs/features/shared_contexts/variable_inheritance_shared_context.rb:88:in `block (2 levels) in verify_job_log_does_not_show_variable_value'
# ./qa/page/base.rb:82:in `block in wait_until'
# ./qa/support/waiter.rb:29:in `block in wait_until'
# ./qa/support/repeater.rb:46:in `repeat_until'
# ./qa/support/waiter.rb:20:in `wait_until'
# ./qa/page/base.rb:76:in `wait_until'
# ./qa/specs/features/shared_contexts/variable_inheritance_shared_context.rb:88:in `block in verify_job_log_does_not_show_variable_value'
# ./qa/scenario/actable.rb:16:in `perform'
# ./qa/specs/features/shared_contexts/variable_inheritance_shared_context.rb:87:in `verify_job_log_does_not_show_variable_value'
# ./qa/specs/features/browser_ui/4_verify/ci_variable/ui_variable_non_inheritable_when_forward_pipeline_variables_false_spec.rb:23:in `block (3 levels) in <module:QA>'
# ./qa/specs/spec_helper.rb:134:in `block (2 levels) in <top (required)>'
# /home/gitlab/spec/support/fast_quarantine.rb:22:in `block (2 levels) in <top (required)>'
# ./qa/specs/knapsack_runner.rb:17:in `run'
# ./qa/specs/runner.rb:57:in `perform'
# ./qa/scenario/template.rb:10:in `block in perform'
# ./qa/scenario/template.rb:8:in `perform'
# ./qa/scenario/template.rb:50:in `perform'
# ./qa/scenario/template.rb:10:in `block in perform'
# ./qa/scenario/template.rb:8:in `perform'
# ./qa/scenario/bootable.rb:52:in `launch!'