Update Gitlab Pages E2E Test for Staging
What does this MR do and why?
We currently only have a single test for Pages, and that test doesn't even focus on the static pages itself, it is more verifying the pipeline passes. I took that test and extended to actually verify pages actually load properly.
Description of the issue: #368335 (closed)
Test Case: https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/347669
Unfortunately Pages isn't enabled on review-app so we can not run it on package-and-qa. For now it's suggested we run it only on staging first. We have a separate issue in regards to adding it to review-app here: #369900.
Screenshots or screen recordings
How to set up and validate locally
bundle exec bin/qa Test::Instance::All https://staging.gitlab.com -- qa/specs/features/browser_ui/3_create/pages/qa/specs/features/browser_ui/3_create/pages/new_static_page_spec.rb (Get credentials from 1pass for gitlab-qa but feel free to ping me if you need credentials for staging.)
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.