Context:
- Playwright Version: 1.26.1
- Operating System: Mac
- Node.js version: 14.6
- Browser: All
import { test, expect } from '@playwright/test';
test('wait', async ({ page }) => {
await page.goto('https://www.github.com/');
await page.waitForLoadState('networkidle');
await page.waitForLoadState('networkidle');
});
Describe the bug
As the second waitForLoadState is immediately resolved. Playwright won't add a new trace line.
From the user's standpoint. If I write two waitForLoadState calls, I should get two lines on the trace viewer. This is a naive example, but it could be confusing if you need to debug a more complicated scenario, and I see that the trace is not reflecting my code.
Context:
Describe the bug
As the second
waitForLoadStateis immediately resolved. Playwright won't add a new trace line.From the user's standpoint. If I write two
waitForLoadStatecalls, I should get two lines on the trace viewer. This is a naive example, but it could be confusing if you need to debug a more complicated scenario, and I see that the trace is not reflecting my code.