Skip to content

E2E test: retry instance template tab

Jay McCure requested to merge jmc-instance-template-fix into master

What does this MR do and why?

(hopefully) Resolves https://gitlab.com/gitlab-org/gitlab/-/issues/460321

In https://gitlab.com/gitlab-org/gitlab/-/issues/460321 this spec intermittently failures in staging-canary seemingly because the click to switch tabs isn't doing anything. I have not been able to reproduce this locally against staging-canary. This change retries this tab click 3 times. This will at least tell us if it is some sort of race condition with the test OR a legitimate issue with the app.

Note: we already try refreshing the page which does not seem to help. This adds an additional retry without refreshing the page.

How to set up and validate locally

QA_LOG_LEVEL=DEBUG QA_GITLAB_URL=https://gdk.test:3443 GITLAB_QA_PASSWORD_1=x GITLAB_QA_PASSWORD_2=x bundle exec rspec qa/specs/features/ee/browser_ui/3_create/repository/project_templates_spec.rb:99

Edited by Jay McCure

Merge request reports