Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalets committed Jul 29, 2024
2 parents fd520a9 + d3e508a commit 58f09aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/guides/migration-v7.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ export const test = base.extend<{ world: World }>({
world: async ({ page }, use) => {
const world = { page };
await use(world);
}),
},
});

export const { Given, When, Then } = createBdd(test, {
Expand Down Expand Up @@ -252,4 +252,4 @@ When('I click link {string}', async function (text: string) {
### Can I get previous BddWorld in v7?
Yes. The previous `BddWorld` is extracted into a separate file [bddWorld.ts](https://github.com/vitalets/playwright-bdd/blob/v7/test/bdd-world-extracted/steps/bddWorld.ts). You can copy/paste it and tune later for your needs. Once copied, check-out [fixtures.ts](https://github.com/vitalets/playwright-bdd/blob/v7/test/bdd-world-extracted/steps/fixtures.ts) how to initialize BddWorld in your code.

?> If you've found some mistake / missing items in this guide, feel free to open [an issue](https://github.com/vitalets/playwright-bdd/issues) on GitHub
?> If you've found some mistake / missing items in this guide, feel free to open [an issue](https://github.com/vitalets/playwright-bdd/issues) on GitHub

0 comments on commit 58f09aa

Please sign in to comment.