@justeattakeaway/pie-button 0.22.0 → 0.23.0
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/.turbo/turbo-build.log
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[3:
|
|
1
|
+
[3:28:09 PM] @custom-elements-manifest/analyzer: Created new manifest.
|
|
2
2
|
react wrapper has been added!
|
|
3
3
|
[36mvite v4.3.9 [32mbuilding for production...[36m[39m
|
|
4
4
|
transforming...
|
|
@@ -9,6 +9,6 @@ computing gzip size...
|
|
|
9
9
|
[2mdist/[22m[36mreact.js [39m[1m[2m59.01 kB[22m[1m[22m[2m │ gzip: 15.91 kB[22m
|
|
10
10
|
[32m
|
|
11
11
|
[36m[vite:dts][32m Start generate declaration files...[39m
|
|
12
|
-
[32m✓ built in
|
|
13
|
-
[32m[36m[vite:dts][32m Declaration files built in
|
|
12
|
+
[32m✓ built in 20.52s[39m
|
|
13
|
+
[32m[36m[vite:dts][32m Declaration files built in 19120ms.
|
|
14
14
|
[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.23.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [Added] - axe builder to be shared as a base instance across broswer accessibility tests ([#669](https://github.com/justeattakeaway/pie/pull/669)) by [@raoufswe](https://github.com/raoufswe)
|
|
8
|
+
|
|
3
9
|
## 0.22.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/package.json
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { test, expect } from '@
|
|
2
|
-
import AxeBuilder from '@axe-core/playwright';
|
|
1
|
+
import { test, expect } from '@justeattakeaway/pie-webc-testing/src/playwright/fixtures.ts';
|
|
3
2
|
import { getAllPropCombinations, splitCombinationsByPropertyValue } from '@justeattakeaway/pie-webc-testing/src/helpers/get-all-prop-combos.ts';
|
|
4
3
|
import { PropObject, WebComponentPropValues } from '@justeattakeaway/pie-webc-testing/src/helpers/defs.ts';
|
|
5
4
|
import { PieButton } from '@/index';
|
|
@@ -17,7 +16,7 @@ const componentPropsMatrix : WebComponentPropValues[] = getAllPropCombinations(p
|
|
|
17
16
|
const componentPropsMatrixByVariant: Record<string, WebComponentPropValues[]> = splitCombinationsByPropertyValue(componentPropsMatrix, 'variant');
|
|
18
17
|
const componentVariants: string[] = Object.keys(componentPropsMatrixByVariant);
|
|
19
18
|
|
|
20
|
-
componentVariants.forEach((variant) => test(`Render all prop variations for Variant: ${variant}`, async ({
|
|
19
|
+
componentVariants.forEach((variant) => test(`Render all prop variations for Variant: ${variant}`, async ({ makeAxeBuilder, mount }) => {
|
|
21
20
|
await Promise.all(componentPropsMatrixByVariant[variant].map(async (combo: WebComponentPropValues) => {
|
|
22
21
|
await mount(
|
|
23
22
|
PieButton,
|
|
@@ -30,10 +29,7 @@ componentVariants.forEach((variant) => test(`Render all prop variations for Vari
|
|
|
30
29
|
);
|
|
31
30
|
}));
|
|
32
31
|
|
|
33
|
-
const results = await
|
|
34
|
-
.withTags(['wcag21a', 'wcag21aa', 'wcag143', 'cat.color', 'cat.aria'])
|
|
35
|
-
.disableRules(['color-contrast', 'color-contrast-enhanced'])
|
|
36
|
-
.analyze();
|
|
32
|
+
const results = await makeAxeBuilder().analyze();
|
|
37
33
|
|
|
38
34
|
expect(results.violations).toEqual([]);
|
|
39
35
|
}));
|