eslint-plugin-playwright

ESLint plugin for Playwright

MIT License

Downloads
5.5M
Stars
231
Committers
24

Bot releases are visible (Hide)

eslint-plugin-playwright - v1.6.2 Latest Release

Published by github-actions[bot] 5 months ago

1.6.2 (2024-05-22)

Bug Fixes

  • prefer-to-have-count: Support variable references (#292) (d894de6)
eslint-plugin-playwright - v1.6.1

Published by github-actions[bot] 5 months ago

1.6.1 (2024-05-13)

Bug Fixes

  • prefer-web-first-assertions: Support variable reassignment (#287) (b0fb7cd)

Documentation

  • fix usage guide flat recommended rules (#283) (1fe2c5e)
eslint-plugin-playwright - v1.6.0

Published by github-actions[bot] 6 months ago

1.6.0 (2024-04-09)

Features

  • Add support for custom rule messages (#280) (08fc723)

Documentation

eslint-plugin-playwright - v1.5.4

Published by github-actions[bot] 7 months ago

1.5.4 (2024-03-22)

Bug Fixes

  • valid-expect: Don' mark expect.anything() as invalid. (a9045db)
eslint-plugin-playwright - v1.5.3

Published by github-actions[bot] 7 months ago

1.5.3 (2024-03-20)

Bug Fixes

  • Make config TypeScript compatible (777ab12)
  • prefer-web-first-assertions: Fix error with nested call expressions (bf821f5), closes #276

Tests

  • valid-describe-callback: Add test case for async describe with tags (ae78045)
eslint-plugin-playwright - v1.5.2

Published by github-actions[bot] 8 months ago

1.5.2 (2024-03-04)

Bug Fixes

  • valid-describe-callback: Support unnamed describe (b3768f8)
eslint-plugin-playwright - v1.5.1

Published by github-actions[bot] 8 months ago

1.5.1 (2024-02-28)

Bug Fixes

  • require-hook: False positive when using new options argument (8a06748)
  • valid-describe-callback: False positive when using new options argument (c25d200), closes #266

Documentation

  • Add missing URLs to rules (26998b5)
eslint-plugin-playwright - v1.5.0

Published by github-actions[bot] 8 months ago

1.5.0 (2024-02-28)

Features

Bug Fixes

  • no-useless-not: Add support for visible and enabled options (e97a62b)

Documentation

  • no-standalone-expect: Improve documentation around best practices (95fcfd8)
eslint-plugin-playwright - v1.4.2

Published by github-actions[bot] 8 months ago

1.4.2 (2024-02-27)

Bug Fixes

  • valid-describe-callback: False positive with test.describe.configure (91988d5)

Tests

  • Add more test cases test configuration (6bc2576)
eslint-plugin-playwright - v1.4.1

Published by github-actions[bot] 8 months ago

1.4.1 (2024-02-27)

Bug Fixes

  • valid-describe-callback: Fix false negatives (dd1db89)
  • valid-title: False positives with test.use, test.describe.configure, and test.slow (33b2905), closes #258
  • valid-title: Fix more false positives and reduce future chance of error (3e99e55)

Documentation

  • Fix typos from waitForUrl to waitForURL (#256) (b325718)
eslint-plugin-playwright - v1.4.0

Published by github-actions[bot] 8 months ago

1.4.0 (2024-02-27)

Features

  • Add valid-describe-callback rule (c0bd18e)
  • Add valid-expect-in-promise rule (cbf356d)
  • Add require-to-throw-message rule (3bb8c6a)

Tests

  • require-hook: Add more test cases (7258d98)
  • require-hook: Add test for valid test.use usage (13141cc)

Refactoring

This release brings with it some major refactoring to the internals of the plugin to improve consistency, performance, and future enhancements. This should not cause any issues as we have a very extensive test suite, but if you encounter any issues, please let us know!

eslint-plugin-playwright - v1.3.1

Published by github-actions[bot] 8 months ago

1.3.1 (2024-02-24)

Bug Fixes

  • no-standalone-expect: Allow expect() calls in test hooks (5524bf7), closes #242
  • require-hook: Allow test.describe.configure outside of hooks (df7e4b2)

Tests

eslint-plugin-playwright - v1.3.0

Published by github-actions[bot] 8 months ago

1.3.0 (2024-02-19)

Features

Bug Fixes

  • no-standalone-expect: Allow expect in class methods (e2dc9aa)
eslint-plugin-playwright - v1.2.0

Published by github-actions[bot] 8 months ago

1.2.0 (2024-02-18)

Features

  • Add max-expects rule (acf80a0)
  • Add no-commented-out-tests rule (718d900)
  • Add no-conditional-expect rule (dbf91cc)
  • Add no-duplicate-hooks rule (0a28d25)
  • Add no-standalone-expect rule (#223) (8aa75d2)
  • Add prefer-hooks-in-order rule (10babed)
  • Add prefer-hooks-on-top rule (24a51d2)
eslint-plugin-playwright - v1.1.2

Published by github-actions[bot] 8 months ago

1.1.2 (2024-02-16)

Bug Fixes

  • no-unsafe-references: Ignore TypeScript type references (3b3cafd), closes #214
  • Update ESLint peer requirements to 8.40.0 (3a9c302)
eslint-plugin-playwright - v1.1.1

Published by github-actions[bot] 8 months ago

1.1.1 (2024-02-16)

Bug Fixes

  • False positives for no-unsafe-references when using Promise, window, or console (c2e9e10)
  • no-unsafe-references: Add arguments after existing array elements (50df5ba)
  • no-unsafe-references: Convert non-array params to array when adding references (b4ef27c)
eslint-plugin-playwright - v1.1.0

Published by github-actions[bot] 8 months ago

1.1.0 (2024-02-15)

Features

  • Add no-unsafe-references rule to check for unsafe references to variables within page.evaluate() (27f6236)
  • Support variable references in prefer-web-first-assertions (#210) (8dae81e)

Bug Fixes

  • Set lowest Node.js version to 16.6.0 (c8938e0)

Tests

  • Add Node 20 to CI tests (72f96bb)
eslint-plugin-playwright - v1.0.1

Published by github-actions[bot] 8 months ago

1.0.1 (2024-02-11)

Bug Fixes

  • Add missing no-get-by-title config (c0e0fde)
eslint-plugin-playwright - v1.0.0

Published by github-actions[bot] 8 months ago

1.0.0 (2024-02-11)

Features

  • Add no-get-by-title rule (d7c0753), closes #196
  • Add support for settings.globalAliases to support custom test/expect names (40759e7)
  • Remove support for global assertFunctionNames (cc3159a)
  • Rename additionalAssertFunctionNames to assertFunctionNames (ed5d7bc)

BREAKING CHANGES

  • Rename the additionalAssertFunctionNames option to assertFunctionNames. The accepted values are the same, the setting name is the only change.
  • assertFunctionNames is now only available at the rule level
eslint-plugin-playwright - v0.22.2

Published by github-actions[bot] 9 months ago

0.22.2 (2024-02-03)

Bug Fixes

  • Add toPass to missing-playwright-await test matchers (#206) (3a8f674)
  • Fix prefer-to-have-count false positive (510e71c), closes #207
  • Use checked property of toBeChecked when it is not a boolean literal (3563148), closes #205