Skip to content

Commit

Permalink
Publish Next Version (#489)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] authored Jun 6, 2022
1 parent 730300e commit 7c04ebb
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 37 deletions.
22 changes: 0 additions & 22 deletions .changeset/early-pigs-beg.md

This file was deleted.

14 changes: 0 additions & 14 deletions .changeset/purple-bags-add.md

This file was deleted.

34 changes: 34 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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(`
<h1>Some html</h1>
`);

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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pleasantest",
"version": "2.1.0",
"version": "2.2.0",
"engines": {
"node": "^12.2 || 14 || 16 || 17 || 18"
},
Expand Down

0 comments on commit 7c04ebb

Please sign in to comment.