From 01b5675d9b3e92edc7a3ca876e2005363e2477d4 Mon Sep 17 00:00:00 2001 From: Yunfei Li Date: Mon, 29 Jul 2024 16:20:05 +0200 Subject: [PATCH] Update migration-v7.md Correct the example --- docs/guides/migration-v7.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/guides/migration-v7.md b/docs/guides/migration-v7.md index 9ee01a94..766a97fd 100644 --- a/docs/guides/migration-v7.md +++ b/docs/guides/migration-v7.md @@ -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, { @@ -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 \ No newline at end of file +?> 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