This repo is meant to include examples, tests, pipelines, reports, etc., for anyone interested in using TypeScript with Playwright
This project uses bun to do all bundling, transpiling, packaging, etc. Also, if you're using Gitpod, then the setup is already complete!
-
Install bun and
source
if necessarycurl -fsSL https://bun.sh/install | bash source ~/.bashrc
-
Install packages/dependencies from
package.json
npm install
-
Run some tests to validate setup. For example:
bun test tests/palindrome.spec.ts
-
Run Playwright UI tests
bun pwtest tests/example.spec.ts
- If using Gitpod, open
Port 6080
to see any tests running with a headed browser. Tests are "headless" by default
- If using Gitpod, open