mirror of
https://github.com/microsoft/playwright.git
synced 2024-10-05 17:07:10 +03: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([
|
||||
page.waitForNavigation(),
|
||||
page.waitForResponse(server.PREFIX + '/frames/frame.html'),
|
||||
page.waitForTimeout(200).then(() => page.goto(server.PREFIX + '/frames/frame.html'))
|
||||
]);
|
||||
await page.setViewportSize({ width: 500, height: 600 });
|
||||
@ -88,6 +89,7 @@ test('should open simple trace viewer', async ({ showTraceViewer }) => {
|
||||
/page.evaluate/,
|
||||
/page.click"Click"/,
|
||||
/page.waitForNavigation/,
|
||||
/page.waitForResponse/,
|
||||
/page.waitForTimeout/,
|
||||
/page.gotohttp:\/\/localhost:\d+\/frames\/frame.html/,
|
||||
/page.setViewportSize/,
|
||||
|
Loading…
Reference in New Issue
Block a user