Skip to content

Commit

Permalink
docs: hide custom fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalets committed Nov 14, 2023
1 parent 99b92fa commit 759aa5f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/writing-steps.md
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,9 @@ setWorldConstructor(CustomWorld);

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

<!--
uncomment after release!

### Custom fixtures
Along with built-in fixtures you can use any custom fixture in cucumber-style steps.
To get fixture call `this.useFixture(fixtureName)` method inside step body.
Expand Down Expand Up @@ -303,3 +306,4 @@ When<MyWorld>('I open todo page', async function () {
const fixtureName = 'todoPage';
const todoPage = this.useFixture(fixtureName);
```
-->

0 comments on commit 759aa5f

Please sign in to comment.