@muonic/muon 0.0.2-beta.31 → 0.0.2-beta.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/package.json +2 -2
- package/scripts/rollup-plugins.mjs +1 -0
- package/tests/helpers/index.js +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.0.2-beta.33](https://github.com/centrica-engineering/muon/compare/v0.0.2-beta.32...v0.0.2-beta.33) (2023-08-01)
|
|
6
|
+
|
|
7
|
+
### [0.0.2-beta.32](https://github.com/centrica-engineering/muon/compare/v0.0.2-beta.31...v0.0.2-beta.32) (2023-07-26)
|
|
8
|
+
|
|
5
9
|
### [0.0.2-beta.31](https://github.com/centrica-engineering/muon/compare/v0.0.2-beta.30...v0.0.2-beta.31) (2023-07-24)
|
|
6
10
|
|
|
7
11
|
### [0.0.2-beta.30](https://github.com/centrica-engineering/muon/compare/v0.0.2-beta.29...v0.0.2-beta.30) (2023-07-24)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@muonic/muon",
|
|
3
|
-
"version": "0.0.2-beta.
|
|
3
|
+
"version": "0.0.2-beta.33",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"postcss-clean": "1.2.2",
|
|
46
46
|
"postcss-extend-rule": "4.0.0",
|
|
47
47
|
"postcss-import": "15.1.0",
|
|
48
|
-
"postcss-preset-env": "
|
|
48
|
+
"postcss-preset-env": "9.1.0",
|
|
49
49
|
"postcss-simple-vars": "7.0.1",
|
|
50
50
|
"rollup-plugin-import-css": "3.3.1",
|
|
51
51
|
"rollup-plugin-lit-css": "4.0.1",
|
package/tests/helpers/index.js
CHANGED
|
@@ -2,19 +2,20 @@ import { expect } from '@open-wc/testing';
|
|
|
2
2
|
import { executeServerCommand } from '@web/test-runner-commands';
|
|
3
3
|
|
|
4
4
|
export const defaultChecks = async (el, options = {}) => {
|
|
5
|
-
const { ignoredRules, ignoredTags } = options || {};
|
|
5
|
+
const { ignoredRules, ignoredTags, ignoredAccessibilityTags } = options || {};
|
|
6
6
|
const ignoredAttributes = options.ignoredAttributes || [];
|
|
7
7
|
const snapshotOptions = await executeServerCommand('run-snapshots');
|
|
8
8
|
if (snapshotOptions?.run === true) {
|
|
9
9
|
await expect(el).shadowDom.to.equalSnapshot({
|
|
10
|
-
ignoreAttributes: [...ignoredAttributes, 'style'] // @TODO: until we can work out why Chromium is weird
|
|
10
|
+
ignoreAttributes: [...ignoredAttributes, 'style'], // @TODO: until we can work out why Chromium is weird
|
|
11
|
+
ignoreTags: ignoredTags
|
|
11
12
|
});
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
if (!options.skipAccessibility) {
|
|
15
16
|
await expect(el).to.be.accessible({
|
|
16
17
|
ignoredRules,
|
|
17
|
-
ignoredTags
|
|
18
|
+
ignoredTags: ignoredAccessibilityTags
|
|
18
19
|
});
|
|
19
20
|
}
|
|
20
21
|
};
|