Skip to content

Latest commit

 

History

History
36 lines (23 loc) · 945 Bytes

File metadata and controls

36 lines (23 loc) · 945 Bytes

Test Automation with TypeScript and Playwright

This repo is meant to include examples, tests, pipelines, reports, etc., for anyone interested in using TypeScript with Playwright

Setup

This project uses bun to do all bundling, transpiling, packaging, etc. Also, if you're using Gitpod, then the setup is already complete!

bun.js

  1. Install bun and source if necessary

    curl -fsSL https://bun.sh/install | bash
    source ~/.bashrc
  2. Install packages/dependencies from package.json

    npm install
  3. Run some tests to validate setup. For example:

    bun test tests/palindrome.spec.ts
  4. 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