Testing
The tests of the Storefront Application V3 protect the paths that earn revenue: browsing, the basket, sign-in and checkout. Unit tests check the code behind those paths in milliseconds. End-to-end tests drive a real browser through a customer journey. Accessibility checks scan your pages for problems that keep people out.
This section has three pages:
- Unit Testing: write and run fast tests with Vitest for mappers, services, composables and components, without a browser.
- End-to-End Testing: run the Playwright suite against your own shop. These tests are slower than unit tests, so run them less often, for example before a release or on a schedule. The Storefront Application ships no pipeline for them, see Run the suite in a pipeline.
- Accessibility Testing: scan your pages for accessibility problems with axe, as part of the Playwright suite.