fix(test-runner): minor error message typo (#8489)

This commit is contained in:
Michael Rienstra 2021-08-27 01:15:16 -07:00 committed by GitHub
parent 47ecd28a3d
commit ed0c47a06f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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')

View File

@ -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 }) => {