mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
test: tracing works with waitForResponse (#17176)
This commit is contained in:
parent
1f34531a22
commit
cbc8d1a19f
@ -57,6 +57,7 @@ test.beforeAll(async function recordTrace({ browser, browserName, browserType, s
|
|||||||
|
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
page.waitForNavigation(),
|
page.waitForNavigation(),
|
||||||
|
page.waitForResponse(server.PREFIX + '/frames/frame.html'),
|
||||||
page.waitForTimeout(200).then(() => page.goto(server.PREFIX + '/frames/frame.html'))
|
page.waitForTimeout(200).then(() => page.goto(server.PREFIX + '/frames/frame.html'))
|
||||||
]);
|
]);
|
||||||
await page.setViewportSize({ width: 500, height: 600 });
|
await page.setViewportSize({ width: 500, height: 600 });
|
||||||
@ -88,6 +89,7 @@ test('should open simple trace viewer', async ({ showTraceViewer }) => {
|
|||||||
/page.evaluate/,
|
/page.evaluate/,
|
||||||
/page.click"Click"/,
|
/page.click"Click"/,
|
||||||
/page.waitForNavigation/,
|
/page.waitForNavigation/,
|
||||||
|
/page.waitForResponse/,
|
||||||
/page.waitForTimeout/,
|
/page.waitForTimeout/,
|
||||||
/page.gotohttp:\/\/localhost:\d+\/frames\/frame.html/,
|
/page.gotohttp:\/\/localhost:\d+\/frames\/frame.html/,
|
||||||
/page.setViewportSize/,
|
/page.setViewportSize/,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user