Skip to content

Commit

Permalink
examples: rename to basic-cjs and basic-esm
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalets committed Aug 5, 2024
1 parent 3c3423a commit 79db79b
Show file tree
Hide file tree
Showing 14 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/writing-steps/playwright-style.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ You can use [custom fixtures](https://playwright.dev/docs/test-fixtures#with-fix
});
```

See [full example of Playwright-style](https://github.com/vitalets/playwright-bdd/tree/main/examples/basic).
See [full example of Playwright-style](https://github.com/vitalets/playwright-bdd/tree/main/examples/basic-cjs).

## Accessing `$test` and `$testInfo`
You can access [`test`](https://playwright.dev/docs/api/class-test) and [`testInfo`](https://playwright.dev/docs/api/class-testinfo) in step body using special fixtures `$test` and `$testInfo` respectively. It allows to:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions scripts/examples.mjs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/**
* Build and run examples
* npm run examples
* npm run examples basic
* npm run examples basic-cjs
* npm run examples basic-esm
* npm run examples cucumber-style
* npm run examples decorators
* npm run examples esm
*/

import path from 'node:path';
Expand Down

0 comments on commit 79db79b

Please sign in to comment.