From 7c04ebb7af35b842752ffeae61645613564fc293 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 6 Jun 2022 10:01:48 -0700 Subject: [PATCH] Publish Next Version (#489) Co-authored-by: github-actions[bot] --- .changeset/early-pigs-beg.md | 22 ---------------------- .changeset/purple-bags-add.md | 14 -------------- CHANGELOG.md | 34 ++++++++++++++++++++++++++++++++++ package.json | 2 +- 4 files changed, 35 insertions(+), 37 deletions(-) delete mode 100644 .changeset/early-pigs-beg.md delete mode 100644 .changeset/purple-bags-add.md diff --git a/.changeset/early-pigs-beg.md b/.changeset/early-pigs-beg.md deleted file mode 100644 index a0c9caf1..00000000 --- a/.changeset/early-pigs-beg.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -'pleasantest': minor ---- - -New assertion: `expect(page).toPassAxeTests()` - -This assertion is based on the [`jest-puppeteer-axe`](https://github.com/WordPress/gutenberg/tree/3b2eccc289cfc90bd99252b12fc4c6e470ce4c04/packages/jest-puppeteer-axe) package. (That package already works with Pleasantest, our new feature just formats error messages a little differently) - -It allows you to pass a page to be checked with the [axe accessibility linter](https://github.com/dequelabs/axe-core). - -```js -test( - 'Axe tests', - withBrowser(async ({ utils, page }) => { - await utils.injectHTML(` -

Some html

- `); - - await expect(page).toPassAxeTests(); - }), -); -``` diff --git a/.changeset/purple-bags-add.md b/.changeset/purple-bags-add.md deleted file mode 100644 index 966d572f..00000000 --- a/.changeset/purple-bags-add.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'pleasantest': minor ---- - -Update dependency `@testing-library/dom` to `v8.13.0`. - -This adds support to filtering `ByRole` queries by description: - -```ts -// Select by accessible role and description -await screen.getByRole('button', { - description: /^items in the trash will be/i, -}); -``` diff --git a/CHANGELOG.md b/CHANGELOG.md index 26c414a2..78baa550 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,39 @@ # pleasantest +## 2.2.0 + +### Minor Changes + +- [#494](https://github.com/cloudfour/pleasantest/pull/494) [`730300e`](https://github.com/cloudfour/pleasantest/commit/730300e354b90b250466b75484f5ea9167e552e6) Thanks [@calebeby](https://github.com/calebeby)! - New assertion: `expect(page).toPassAxeTests()` + + This assertion is based on the [`jest-puppeteer-axe`](https://github.com/WordPress/gutenberg/tree/3b2eccc289cfc90bd99252b12fc4c6e470ce4c04/packages/jest-puppeteer-axe) package. (That package already works with Pleasantest, our new feature just formats error messages a little differently) + + It allows you to pass a page to be checked with the [axe accessibility linter](https://github.com/dequelabs/axe-core). + + ```js + test( + 'Axe tests', + withBrowser(async ({ utils, page }) => { + await utils.injectHTML(` +

Some html

+ `); + + await expect(page).toPassAxeTests(); + }), + ); + ``` + +* [#459](https://github.com/cloudfour/pleasantest/pull/459) [`d36f234`](https://github.com/cloudfour/pleasantest/commit/d36f234db3067ab039e7cb92c5220e52ba9c4de4) Thanks [@renovate](https://github.com/apps/renovate)! - Update dependency `@testing-library/dom` to `v8.13.0`. + + This adds support to filtering `ByRole` queries by description: + + ```ts + // Select by accessible role and description + await screen.getByRole('button', { + description: /^items in the trash will be/i, + }); + ``` + ## 2.1.0 ### Minor Changes diff --git a/package.json b/package.json index 04c567cb..0da3819b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pleasantest", - "version": "2.1.0", + "version": "2.2.0", "engines": { "node": "^12.2 || 14 || 16 || 17 || 18" },