Skip to main content

Testing

Testing is split between fast app-level Vitest suites and browser-based QA checks.

AreaToolingLocation
StrapiVitestapps/strapi/tests
UIVitestapps/ui/**/*.test.ts
E2EPlaywrightqa/tests/playwright/e2e
AccessibilityPlaywright + axe-coreqa/tests/playwright/axe
SEOPlaywrightqa/tests/playwright/seo
VisualPlaywright screenshotsqa/tests/playwright/visual
PerformanceLighthouse CIqa/tests/playwright/perfo
Loadk6 (TypeScript)qa/tests/playwright/load

References​

What To Test Where​

  • Use Vitest for fast logic and API utility coverage.
  • Use Playwright E2E for user flows and route-level behavior.
  • Use axe tests for accessibility regressions.
  • Use SEO tests for metadata, robots, sitemap, and page structure.
  • Use visual tests for layout/component regressions.
  • Use Lighthouse CI for performance budgets and high-level page quality.
  • Use k6 load tests to check that the site holds expected traffic, on STG before a launch with a traffic peak.