E2E test: close dropdown after resetting
What does this MR do and why?
If a dropdown has a current selection and the tests try to clear that selection, the drop down remained open. This MR ensures the dropdown is closed when clearing a dropdown. It's possible that clicking reset in a dropdown used to close the dropdown also, but it currently doesn't.
This case occurred in #417677 (closed) where the test failed on a previous attempt, but since it was an admin setting, the setting remained for the next test run.
How to set up and validate locally
Scenario one (normal scenario):
No custom project template set.
bundle exec rspec qa/specs/features/ee/browser_ui/3_create/repository/project_templates_spec.rb
Scenario two (what occurred in #417677 (closed)):
As an admin, set any custom project template and save (e.g. http://192.168.4.31:3000/admin/application_settings/templates)
bundle exec rspec qa/specs/features/ee/browser_ui/3_create/repository/project_templates_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.