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

[Feature] Implement assert.poll #940

Open
mxschmitt opened this issue May 30, 2022 · 3 comments
Open

[Feature] Implement assert.poll #940

mxschmitt opened this issue May 30, 2022 · 3 comments

Comments

@mxschmitt
Copy link
Member

https://playwright.dev/docs/next/test-assertions#polling

@chaganiu
Copy link

As a workaround I have been using https://github.com/awaitility/awaitility

@co510
Copy link

co510 commented Jan 17, 2023

This was opened 8 months ago. Curious if there's been enough interest to actually implement or it's just fallen off the roadmap entirely? Personally, there are use cases where I prefer toBeVisible() with pass / failure, and other times I actually just want the boolean from isVisible(). Having the ability to poll on a method like isVisible() greatly extends the usability for async functions when I'm testing the positive and negative outcomes in subsequent tests.

@morepe
Copy link

morepe commented Aug 8, 2023

Hi, I would also be interested in a status update here. Atm we are using awaitily but I am wondering if it can be replacd with a playwright native feature

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

No branches or pull requests

4 participants