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.
How to run the tests?
- Run
pnpm i
to installplaywright
dependencies if you haven't done so - Run
pnpm test
Setup VS Code playwright (recommended)
- Install Playwright Extension on VSCode
- Go to
Testing
section of the left panel - You should see all the test cases under
TEST EXPLORER
- 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