@thangkieu/create-playwright-app

0.0.1 • Public • Published

BDD Test with Playwright

Playwright Test was created specifically to accommodate the needs of end-to-end testing. Playwright supports all modern rendering engines including Chromium, WebKit, and Firefox. Test on Windows, Linux, and macOS, locally or on CI, headless or headed with native mobile emulation of Google Chrome for Android and Mobile Safari.

Learn more about Playwright

How to run the tests?

  1. Run pnpm i to install playwright dependencies if you haven't done so
  2. Run pnpm test

Setup VS Code playwright (recommended)

  1. Install Playwright Extension on VSCode
  2. Go to Testing section of the left panel
  3. You should see all the test cases under TEST EXPLORER
  4. You should be able to run all or individual test cases

Adding your own BDD test cases

Add new BDD test cases inside bdd folder with format [bdd-test-case].test.ts

/@thangkieu/create-playwright-app/

    Package Sidebar

    Install

    npm i @thangkieu/create-playwright-app

    Weekly Downloads

    0

    Version

    0.0.1

    License

    ISC

    Unpacked Size

    10.8 kB

    Total Files

    14

    Last publish

    Collaborators

    • thangkieu