diff --git a/src/test/index.ts b/src/test/index.ts index 6cd84ff712..6c10099758 100644 --- a/src/test/index.ts +++ b/src/test/index.ts @@ -288,7 +288,7 @@ export const test = _baseTest.extend({ context: async ({ browser, video, _artifactsDir }, use, testInfo) => { if (testInfo.title === 'beforeAll' || testInfo.title === 'afterAll') - throw new Error(`"context" and "page" fixtures are not suppoted in ${testInfo.title}. Use browser.newContext() instead.`); + throw new Error(`"context" and "page" fixtures are not supported in ${testInfo.title}. Use browser.newContext() instead.`); let videoMode = typeof video === 'string' ? video : video.mode; if (videoMode === 'retry-with-video') diff --git a/tests/playwright-test/playwright.spec.ts b/tests/playwright-test/playwright.spec.ts index 2a05920bb6..2b5c68f79e 100644 --- a/tests/playwright-test/playwright.spec.ts +++ b/tests/playwright-test/playwright.spec.ts @@ -257,7 +257,7 @@ test('should throw when using page in beforeAll', async ({ runInlineTest }, test expect(result.exitCode).toBe(1); expect(result.passed).toBe(0); - expect(result.output).toContain(`Error: "context" and "page" fixtures are not suppoted in beforeAll. Use browser.newContext() instead.`); + expect(result.output).toContain(`Error: "context" and "page" fixtures are not supported in beforeAll. Use browser.newContext() instead.`); }); test('should report click error on sigint', async ({ runInlineTest }) => {