For historical reasons, most of the Playwright tests in my codebase use test.expect(...) instead of directly importing expect from Playwright. I don't really know why, it might have something to do with the use of fixtures.
The playwright/expect-expect lint does not support the use of test.expect(...), and I need to either disable this lint, or rewrite all my tests to use the bare expect(...) version.
Is there a reason why this is the case, or is it just not very common that people use test.expect and I've run into a bug here? In that case, I'm happy to create a pull request to fix this.
For historical reasons, most of the Playwright tests in my codebase use
test.expect(...)
instead of directly importingexpect
from Playwright. I don't really know why, it might have something to do with the use of fixtures.The
playwright/expect-expect
lint does not support the use oftest.expect(...)
, and I need to either disable this lint, or rewrite all my tests to use the bareexpect(...)
version.Is there a reason why this is the case, or is it just not very common that people use
test.expect
and I've run into a bug here? In that case, I'm happy to create a pull request to fix this.