Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]:toPass() used with soft asserts -> fail to repeat #34554

Open
UpHouse98 opened this issue Jan 30, 2025 · 1 comment
Open

[Bug]:toPass() used with soft asserts -> fail to repeat #34554

UpHouse98 opened this issue Jan 30, 2025 · 1 comment

Comments

@UpHouse98
Copy link

Version

1.50.0

Steps to reproduce

I used the: expect( block of code that has a soft assert ).toPass()
Can not share the repo of the problem.

Image

Expected behavior

The block of code will repeat until pass or set by the params.

Actual behavior

The block of code will not repeat until pass.
Error given by the reporter: 'Testing stopped early after 1 maximum allowed failures.'

Additional context

No response

Environment

System:
    OS: Windows 10 10.0.19045
    CPU: (16) x64 11th Gen Intel(R) Core(TM) i7-11850H @ 2.50GHz
    Memory: 17.57 GB / 31.73 GB
  Binaries:
    Node: 18.19.1 - C:\Program Files\nodejs\node.EXE
    npm: 10.2.4 - C:\Program Files\nodejs\npm.CMD
  IDEs:
    VSCode: 1.96.4 - C:\Users\lorand.felhazi\AppData\Local\Programs\Microsoft VS Code\bin\code.CMD
  Languages:
    Bash: 5.2.15 - C:\Program Files\Git\usr\bin\bash.EXE
  npmPackages:
    @playwright/test: ^1.50.0 => 1.50.0
@agg23
Copy link
Contributor

agg23 commented Jan 30, 2025

Please provide a minimal repro. Are your toContainText calls timing out (or causing the wrapping toPass to time out)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants