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

feat(waitForEvent): allow async predicate #6201

Merged
merged 1 commit into from Apr 19, 2021

Conversation

dgozman
Copy link
Contributor

@dgozman dgozman commented Apr 14, 2021

We await the predicate now.

For synchronous predicates nothing should change because the await will finish before the next protocol message arrives (thanks to makeWaitForNextTask).

Fixes #6199.

src/client/waiter.ts Outdated Show resolved Hide resolved
tests/page-wait-for-response.spec.ts Show resolved Hide resolved
We await the predicate now. For synchronous predicates,
nothing should change becase the await will finish before
the next protocol message arrives (thanks to `makeWaitForNextTask`).
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

Successfully merging this pull request may close these issues.

[Question] How to wait for several responses that differs only with body?
2 participants