mirror of
https://github.com/strapi/strapi.git
synced 2026-05-03 16:22:30 +00:00
Shared Test App Template
This template application is shared by both e2e (Playwright) and cli (Jest) test suites. It provides a consistent base application with predefined content types, components, and configurations for testing.
Usage
Both test types use this template when generating test applications:
- E2E tests: Generate apps from this template and run Playwright browser tests
- CLI tests: Generate apps from this template and run Jest command-line tests
The template is located at tests/app-template and is automatically used by the unified test runner (tests/scripts/run-tests.js).
Updating the Template
If you make changes to this template:
- Run
yarn test:e2e:cleanoryarn test:cli:cleanto remove existing test apps - Regenerate test apps with
yarn test:e2eoryarn test:cli(or use--setupflag to force regeneration)
Changes to the template will affect both e2e and cli test suites, ensuring consistency across test types.