Skip to content

[Bug]: expect.poll fails with custom timeout when debug #31501

@Diokuz

Description

@Diokuz

Version

1.45.0

Steps to reproduce

  1. Run test with --debug
  2. Click Step over (F10) every 2000 ms
  3. expect.poll fails because it has shorter timeout
      await expect
        .poll(
          async () => this.page.evaluate(() => window.STORYBOOK_RENDERER),
          {
            message: '...',
            timeout: 1000,
            intervals: [10, 100, 400, 1000],
          },
        )
        .toBeUndefined()

Expected behavior

expect.poll counts only for non-user-interactive time

Actual behavior

Timeout 1000ms exceeded while waiting on the predicate

Additional context

No response

Environment

Mac Os X


node -v
v18.12.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions