mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-02 10:34:27 +03:00
fix(test-runner): minor error message typo (#8489)
This commit is contained in:
parent
47ecd28a3d
commit
ed0c47a06f
@ -288,7 +288,7 @@ export const test = _baseTest.extend<TestFixtures, WorkerAndFileFixtures>({
|
||||
|
||||
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')
|
||||
|
@ -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 }) => {
|
||||
|
Loading…
Reference in New Issue
Block a user