test: do not load playwright.dev in a test (#37520)

This commit is contained in:
Dmitry Gozman 2025-09-22 15:07:48 +01:00 committed by GitHub
parent 59b849f9e8
commit 809c8be976
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -785,7 +785,7 @@ test('should use custom expect message in trace', async ({ runInlineTest }, test
]);
});
test('should not throw when merging traces multiple times', async ({ runInlineTest }, testInfo) => {
test('should not throw when merging traces multiple times', async ({ runInlineTest, server }, testInfo) => {
test.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/27286' });
const result = await runInlineTest({
@ -813,7 +813,7 @@ test('should not throw when merging traces multiple times', async ({ runInlineTe
});
test.beforeAll(async ({ page }) => {
await page.goto('https://playwright.dev');
await page.goto(${JSON.stringify(server.PREFIX + '/frames/nested-frames.html')});
});
test.afterAll(async ({ context }) => {
@ -821,7 +821,7 @@ test('should not throw when merging traces multiple times', async ({ runInlineTe
});
test('foo', async ({ page }) => {
await expect(page.locator('h1')).toContainText('Playwright');
await expect(page.frameLocator('iframe').nth(1).locator('div')).toHaveText("Hi, I'm frame");
});
`,
}, { workers: 1 });