playwright-community / eslint-plugin-playwright

ESLint plugin for Playwright
https://www.npmjs.com/package/eslint-plugin-playwright
MIT License
281 stars 39 forks source link

playwright/expect-expect should allow for the test.expect style #297

Closed MrJohz closed 4 months ago

MrJohz commented 5 months ago

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.

github-actions[bot] commented 1 month ago

:tada: This issue has been resolved in version 1.7.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: