chore(ci): Setup visual regression testing with BackstopJS
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 6s
Build & Deploy / 🧪 QA (push) Successful in 1m52s
Build & Deploy / 🏗️ Build (push) Successful in 4m1s
Build & Deploy / 🚀 Deploy (push) Successful in 28s
Build & Deploy / ⚡ Lighthouse (push) Successful in 3m0s
Build & Deploy / 🧪 Smoke Test (push) Successful in 3m13s
Build & Deploy / ♿ WCAG (push) Failing after 1m48s
Build & Deploy / 🔔 Notify (push) Has been cancelled
Build & Deploy / 📸 Visual Diff (push) Has been cancelled

This commit is contained in:
2026-02-21 23:30:22 +01:00
parent cef86717d9
commit 8c9f51b74a
7 changed files with 607 additions and 3 deletions

View File

@@ -66,6 +66,7 @@
"@vitejs/plugin-react": "^5.1.4",
"@vitest/ui": "^4.0.16",
"autoprefixer": "^10.4.23",
"backstopjs": "^6.3.25",
"cheerio": "^1.2.0",
"critters": "^0.0.25",
"eslint": "^9.18.0",
@@ -99,6 +100,10 @@
"check:mdx": "node scripts/validate-mdx.mjs",
"check:a11y": "pa11y-ci",
"check:wcag": "tsx ./scripts/wcag-sitemap.ts",
"backstop:reference": "backstop reference --docker",
"backstop:test": "backstop test --docker",
"backstop:approve": "backstop approve --docker",
"backstop:ci": "backstop test",
"cms:branding:local": "DIRECTUS_URL=${DIRECTUS_URL:-http://cms.klz.localhost} npx tsx --env-file=.env scripts/setup-directus-branding.ts",
"cms:branding:testing": "DIRECTUS_URL=https://cms.testing.klz-cables.com npx tsx --env-file=.env scripts/setup-directus-branding.ts",
"cms:branding:staging": "DIRECTUS_URL=https://cms.staging.klz-cables.com npx tsx --env-file=.env scripts/setup-directus-branding.ts",