Skip to content

Commit

Permalink
docs: note about several step files, see #109
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalets committed Mar 19, 2024
1 parent 43f1a99 commit bb87097
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/writing-steps/playwright-style.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ When('I click link {string}', async ({ page }, name: string) => {

> Usually step functions are async, but it is not required
?> Calling `const { Given, When, Then } = createBdd()` at the top of each step file is totally ok, because it returns lightweight wrappers without heavy operations

## Fixtures
To use [fixtures](https://playwright.dev/docs/test-fixtures#with-fixtures) in step definitions:

Expand Down

0 comments on commit bb87097

Please sign in to comment.