Add QA selector to the Vue label dropdown on merge request form
What does this MR do and why?
This change makes the E2E tests compatible when visible_label_selection_on_metadata
is enabled and disabled.
- an extra selector has been added
-
click_on
is used as it handles buttons and links (whenvisible_label_selection_on_metadata
is enabled the label element is a button) - use a less generic label name (previously was
label
) - convert some data-qa-selectors to data-testid
How to set up and validate locally
Feature.disable :visible_label_selection_on_metadata
bundle exec rspec qa/specs/features/browser_ui/3_create/merge_request/create_merge_request_spec.rb
Feature.enable :visible_label_selection_on_metadata
bundle exec rspec qa/specs/features/browser_ui/3_create/merge_request/create_merge_request_spec.rb
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Jay McCure