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
Browser QAPlaywrightqa/tests/playwright/e2e
AccessibilityPlaywright + axe-coreqa/tests/playwright/axe
SEOPlaywrightqa/tests/playwright/seo
VisualPlaywright screenshotsqa/tests/playwright/visual
PerformanceLighthouse CIqa/tests/playwright/perfo

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.