Skip to content

E2E test: refresh project page to check for licence

Jay McCure requested to merge jmc-421853 into master

What does this MR do and why?

Resolves #421853 (closed)

In #421853 (closed) occasionally the licence does not show on the page, but on checking after the test finishes, the licence is always present.

This MR refreshes the page to ensure there is no race condition between the licence file commit and loading the page.

On first load sometimes the license is missing: Screenshot_2023-09-14_at_09.31.57

It should be: Screenshot_2023-09-14_at_09.32.09

How to set up and validate locally

QA_LOG_LEVEL=DEBUG QA_GITLAB_URL=http://192.168.4.31:3000 GITLAB_QA_PASSWORD_1=XXX bundle exec rspec qa/specs/features/browser_ui/3_create/repository/license_detection_spec.rb

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Jay McCure

Merge request reports