Skip to content

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

Closed

Description

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

Activity

  1. Diokuz commented on Jul 1, 2024

    @Diokuz
    Author

    Same for the default 5000 ms timeout

    Timeout 5000ms exceeded while waiting on the predicate
    
  2. pavelfeldman commented on Sep 4, 2025

    @pavelfeldman
    Member

    Why was this issue closed?

    Thank you for your contribution to our project. This issue has been closed due to its limited upvotes and recent activity, and insufficient feedback for us to effectively act upon. Our priority is to focus on bugs that reflect higher user engagement and have actionable feedback, to ensure our bug database stays manageable.

    Should you feel this closure was in error, please create a new issue and reference this one. We're open to revisiting it given increased support or additional clarity. Your understanding and cooperation are greatly appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions