End-to-end test your Stencil web components cross-browser and cross-platform using Playwright.
pnpm install
npx turbo run build --filter=stencil-playwright
Once the project has been built, you can test the changes in packages/stencil-demo
.
Running the following commands to test with Playwright.
npx playwright test
# The path to your test file, a directory or a regex pattern
npx playwright test src/components/my-component/my-component.e2e.ts
This project is configured with changesets. To create a new release version, run:
npx changeset version
Follow the on-screen prompts to create a major or minor version bump. Commit your changes and merge into main.
Run the Release workflow from the Github Actions tab.
If the Release action fails, confirm if changesets opened a pull request or pushed a branch to origin for the changelog updates. If so, merge these changes into main
and re-run the release workflow.