We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
.toHaveLength()
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
It's a feature request to add one more case to prefer-to-have-count rule.
prefer-to-have-count
The following code should be considered invalid:
expect(await page.getByText("test").all()).toHaveLength(2);
The following code should be considered valid:
await expect(page.getByText("test")).toHaveCount(2);
The text was updated successfully, but these errors were encountered:
149ddc2
🎉 This issue has been resolved in version 1.7.0 🎉
The release is available on:
Your semantic-release bot 📦🚀
Sorry, something went wrong.
No branches or pull requests
It's a feature request to add one more case to
prefer-to-have-count
rule.The following code should be considered invalid:
The following code should be considered valid:
The text was updated successfully, but these errors were encountered: