https://github.com/vitalets/playwright-bdd-example
Example project that uses playwright-bdd to run BDD tests
https://github.com/vitalets/playwright-bdd-example
Last synced: 6 months ago
JSON representation
Example project that uses playwright-bdd to run BDD tests
- Host: GitHub
- URL: https://github.com/vitalets/playwright-bdd-example
- Owner: vitalets
- Created: 2023-07-12T07:20:57.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-16T08:50:47.000Z (12 months ago)
- Last Synced: 2024-10-30T04:17:34.223Z (11 months ago)
- Language: TypeScript
- Homepage: https://github.com/vitalets/playwright-bdd
- Size: 621 KB
- Stars: 30
- Watchers: 2
- Forks: 41
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# playwright-bdd-example
Example project that uses [playwright-bdd](https://github.com/vitalets/playwright-bdd) to run BDD tests.
> [!IMPORTANT]
> If you are using [Yarn Plug'n'Play](https://yarnpkg.com/features/pnp), please check out [yarn-pnp](https://github.com/vitalets/playwright-bdd-example/tree/yarn-pnp) branch.## How to report a bug
1. [Fork](https://github.com/vitalets/playwright-bdd-example/fork) the repo!
2. Clone it to your local machine```
git clone https://github.com/YOUR_GITHUB_USERNAME/playwright-bdd-example.git
```3. Change directory to `playwright-bdd-example`
```
cd playwright-bdd-example
```4. Install dependencies
```
npm install
```5. Install browsers
```
npx playwright install
```6. Run tests
```
npm test
```Output:
```
Running 2 tests using 1 worker
2 passed (2.3s)
```7. Make changes reproducing a bug
8. Commit and push changes
```
git add .
git commit -m'repro for playwright-bdd issue xxx'
git push
```
9. [Open a pull-request](https://github.com/vitalets/playwright-bdd-example/pulls) and share the link