Skip to content

[BUG] Trace view won't show a resolved waitForLoadState call #17807

@kblok

Description

@kblok

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions