Repository navigation
[Playwright] Backport playwright qa structure and introduce E2E testing to the website - #144
Merged
Merged
Conversation
…p from the template
…d docs with the project
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
AnnaSevelova
marked this pull request as draft
October 13, 2026 14:20
AnnaSevelova
marked this pull request as ready for review
October 16, 2026 08:54
matej-marcisovsky
approved these changes
Oct 19, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Replaces the old Playwright template setup with the current QA structure from the strapi-next-monorepo-starter (
dev), adapted to this repo, and adds tests for the main parts of the website. The QA pipeline now runs automatically every night against strapi.io.Why: the old setup was a leftover from the template — one example test, SEO and Axe on the homepage only, and visual tests that could never fail in CI. Nothing covered the blog, pricing or legal pages.
What the tests cover
How the tests are written
networkidle— deployed pages never go idle. A blocked or broken page fails right away with its HTTP status instead of a timeout.E2E_ALL_BROWSERS=trueruns everything everywhere.BASE_URLworks with or withouthttps://(e.g.strapi.io).QA pipeline (
.github/workflows/qa.yml)https://strapi.io(or theBASE_URLrepo variable). Starts once the workflow is onmain. Lighthouse stays manual.base_url.Other changes
turbo.json:BASE_URL,MOBILE_VIEWPORTS_TESTING_ENABLEDandE2E_ALL_BROWSERSinglobalEnv— without them Turbo's strict env mode hides them from the tests.write-testsagent skill (.agents/skills), QA README (qa/tests/README.md) anddocs/commands.mdupdated.fetchPage-5xx.test.ts(Vitest).TL;DR
New Playwright QA setup with tests for pages, blog, pricing (incl. stubbed checkout), legal pages, SEO, Axe and visuals, running nightly against strapi.io. SEO/Axe findings are real app issues (tickets created) and don't fail the pipeline.
Test results (against prod)
<h1>on several pages, skipped heading levels, announcement bar contrast/landmark, unnamed navigation landmarks, empty headings, short page titles.Known limitations / follow-ups
playwright.config.tsandqa.ymlmark what to revert afterwards.actions/setup-node@v4,pnpm/action-setup@v4, …): dev ticket.STRAPI_URLis configured.New environmental variables
QA only, not app env vars — all optional:
STRAPI_URL(qa/tests/playwright/.env): Strapi URL of the app under test; the preview mock tests are skipped without it.E2E_ALL_BROWSERS(qa/tests/playwright/.env): run every E2E spec in every browser.BASE_URLrepository variable: target for nightly/manual runs; defaults tohttps://strapi.io.The Lighthouse job opens a PR with the score history, which needs Settings → Actions → Allow GitHub Actions to create pull requests.
Checklist - author
Before merging
Checklist - reviewer