diff --git a/docs/src/test-fixtures-js.md b/docs/src/test-fixtures-js.md index a639383da0..f410d218d5 100644 --- a/docs/src/test-fixtures-js.md +++ b/docs/src/test-fixtures-js.md @@ -731,12 +731,12 @@ export const test = base.extend({ import { test as base } from '@playwright/test'; export const test = base.extend({ - sharedAfterEach: [async ({ page, baseURL }, use) => { + sharedBeforeEach: [async ({ page, baseURL }, use) => { await page.goto(baseURL); await use(); }, { scope: 'test', auto: true } ], // starts automatically before every test, we pass "auto" for that. - sharedBeforeEach: [async ({ page }, use) => { + sharedAfterEach: [async ({ page }, use) => { await use(); console.log('Test final URL:', page.url()); }, { scope: 'test', auto: true } ], // starts automatically after every test, we pass "auto" for that.