E2E test: avoid right click menu closing web ide spec
What does this MR do and why?
Attempts to resolve:
- https://gitlab.com/gitlab-org/gitlab/-/issues/467729
- https://gitlab.com/gitlab-org/gitlab/-/issues/466735
- https://gitlab.com/gitlab-org/gitlab/-/issues/467789
These failures were caused by the right click menu not being open when trying to click the Upload
menu item. I suspect that the right click menu is closed if the VS Code module is still loading ( i can recreate this manually by right clicking immediately when vs code is loading). In this MR we retry the right click if the menu isn't present. Also made these related methods private.
How to set up and validate locally
GITLAB_QA_ADMIN_ACCESS_TOKEN=x QA_LOG_LEVEL=DEBUG QA_GITLAB_URL=https://gdk.test:3443 GITLAB_QA_PASSWORD_1=x bundle exec rspec qa/specs/features/browser_ui/3_create/web_ide/upload_new_file_in_web_ide_spec.rb
Edited by Jay McCure