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

Rule: enforce await for expect.poll and expect.element #496

Open
sheremet-va opened this issue Aug 9, 2024 · 0 comments
Open

Rule: enforce await for expect.poll and expect.element #496

sheremet-va opened this issue Aug 9, 2024 · 0 comments

Comments

@sheremet-va
Copy link
Member

Both expect.poll and expect.element always return async assertions. It would be nice to enforce await before them:

- expect.poll(() => getElement()).toBeVisible()
+ await expect.poll(() => getElement()).toBeVisible()
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

1 participant