@ukic/canary-web-components 2.0.0-canary.25 → 2.0.0-canary.27
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/core.cjs.js +1 -1
- package/dist/cjs/ic-accordion.cjs.entry.js +1 -1
- package/dist/cjs/ic-accordion.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-alert.cjs.entry.js +1 -1
- package/dist/cjs/ic-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-data-table.cjs.entry.js +5 -3
- package/dist/cjs/ic-data-table.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-empty-state_2.cjs.entry.js +15 -9
- package/dist/cjs/ic-empty-state_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-pagination_4.cjs.entry.js +6 -6
- package/dist/cjs/ic-pagination_4.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-popover-menu.cjs.entry.js +18 -12
- package/dist/cjs/ic-popover-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-search-bar.cjs.entry.js +14 -27
- package/dist/cjs/ic-search-bar.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-context.cjs.entry.js +68 -145
- package/dist/cjs/ic-tab-context.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-panel.cjs.entry.js +5 -13
- package/dist/cjs/ic-tab-panel.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab.cjs.entry.js +9 -10
- package/dist/cjs/ic-tab.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toast-region.cjs.entry.js +6 -0
- package/dist/cjs/ic-toast-region.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-typography.cjs.entry.js +3 -1
- package/dist/cjs/ic-typography.cjs.entry.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/ic-data-table/ic-data-table.css +5 -1
- package/dist/collection/components/ic-data-table/ic-data-table.js +4 -2
- package/dist/collection/components/ic-data-table/ic-data-table.js.map +1 -1
- package/dist/collection/components/ic-data-table/story-data.js +46 -5
- package/dist/collection/components/ic-data-table/story-data.js.map +1 -1
- package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.js +46 -14
- package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.js.map +1 -1
- package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.types.js +2 -0
- package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.types.js.map +1 -0
- package/dist/collection/components/ic-pagination-bar/test/basic/ic-pagination-bar.spec.js +20 -2
- package/dist/collection/components/ic-pagination-bar/test/basic/ic-pagination-bar.spec.js.map +1 -1
- package/dist/components/ic-accordion.js +1 -1
- package/dist/components/ic-accordion.js.map +1 -1
- package/dist/components/ic-alert2.js +1 -1
- package/dist/components/ic-alert2.js.map +1 -1
- package/dist/components/ic-data-table.js +5 -3
- package/dist/components/ic-data-table.js.map +1 -1
- package/dist/components/ic-pagination-bar2.js +18 -10
- package/dist/components/ic-pagination-bar2.js.map +1 -1
- package/dist/components/ic-popover-menu.js +20 -13
- package/dist/components/ic-popover-menu.js.map +1 -1
- package/dist/components/ic-search-bar.js +14 -27
- package/dist/components/ic-search-bar.js.map +1 -1
- package/dist/components/ic-select2.js +5 -5
- package/dist/components/ic-select2.js.map +1 -1
- package/dist/components/ic-tab-context.js +68 -145
- package/dist/components/ic-tab-context.js.map +1 -1
- package/dist/components/ic-tab-panel.js +6 -17
- package/dist/components/ic-tab-panel.js.map +1 -1
- package/dist/components/ic-tab.js +9 -10
- package/dist/components/ic-tab.js.map +1 -1
- package/dist/components/ic-text-field2.js +1 -1
- package/dist/components/ic-text-field2.js.map +1 -1
- package/dist/components/ic-toast-region.js +6 -0
- package/dist/components/ic-toast-region.js.map +1 -1
- package/dist/components/ic-typography2.js +3 -1
- package/dist/components/ic-typography2.js.map +1 -1
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/{p-13993bf3.entry.js → p-01bc462e.entry.js} +2 -2
- package/dist/core/p-01bc462e.entry.js.map +1 -0
- package/dist/core/p-05ae9a59.entry.js +2 -0
- package/dist/core/p-05ae9a59.entry.js.map +1 -0
- package/dist/core/{p-989310a8.entry.js → p-0cf856e4.entry.js} +2 -2
- package/dist/core/p-0cf856e4.entry.js.map +1 -0
- package/dist/core/{p-2ee5d3fb.entry.js → p-34b333de.entry.js} +2 -2
- package/dist/core/p-34b333de.entry.js.map +1 -0
- package/dist/core/{p-6b1fcf87.entry.js → p-383ba7e8.entry.js} +2 -2
- package/dist/core/p-383ba7e8.entry.js.map +1 -0
- package/dist/core/p-6ca98c5d.entry.js +2 -0
- package/dist/core/p-6ca98c5d.entry.js.map +1 -0
- package/dist/core/{p-0ec04c16.entry.js → p-a7331e7c.entry.js} +2 -2
- package/dist/core/p-a7331e7c.entry.js.map +1 -0
- package/dist/core/p-b535c802.entry.js +2 -0
- package/dist/core/p-b535c802.entry.js.map +1 -0
- package/dist/core/{p-fa77211d.entry.js → p-cb156309.entry.js} +2 -2
- package/dist/core/p-cb156309.entry.js.map +1 -0
- package/dist/core/p-e50af3df.entry.js +2 -0
- package/dist/core/p-e50af3df.entry.js.map +1 -0
- package/dist/core/p-f5fbfbc9.entry.js +2 -0
- package/dist/core/p-f5fbfbc9.entry.js.map +1 -0
- package/dist/core/p-fc007ce4.entry.js +2 -0
- package/dist/core/p-fc007ce4.entry.js.map +1 -0
- package/dist/esm/core.js +1 -1
- package/dist/esm/ic-accordion.entry.js +1 -1
- package/dist/esm/ic-accordion.entry.js.map +1 -1
- package/dist/esm/ic-alert.entry.js +1 -1
- package/dist/esm/ic-alert.entry.js.map +1 -1
- package/dist/esm/ic-data-table.entry.js +5 -3
- package/dist/esm/ic-data-table.entry.js.map +1 -1
- package/dist/esm/ic-empty-state_2.entry.js +15 -9
- package/dist/esm/ic-empty-state_2.entry.js.map +1 -1
- package/dist/esm/ic-pagination_4.entry.js +6 -6
- package/dist/esm/ic-pagination_4.entry.js.map +1 -1
- package/dist/esm/ic-popover-menu.entry.js +18 -12
- package/dist/esm/ic-popover-menu.entry.js.map +1 -1
- package/dist/esm/ic-search-bar.entry.js +14 -27
- package/dist/esm/ic-search-bar.entry.js.map +1 -1
- package/dist/esm/ic-tab-context.entry.js +68 -145
- package/dist/esm/ic-tab-context.entry.js.map +1 -1
- package/dist/esm/ic-tab-panel.entry.js +5 -13
- package/dist/esm/ic-tab-panel.entry.js.map +1 -1
- package/dist/esm/ic-tab.entry.js +9 -10
- package/dist/esm/ic-tab.entry.js.map +1 -1
- package/dist/esm/ic-toast-region.entry.js +6 -0
- package/dist/esm/ic-toast-region.entry.js.map +1 -1
- package/dist/esm/ic-typography.entry.js +3 -1
- package/dist/esm/ic-typography.entry.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/ic-data-table/story-data.d.ts +15 -0
- package/dist/types/components/ic-pagination-bar/ic-pagination-bar.d.ts +9 -4
- package/dist/types/components/ic-pagination-bar/ic-pagination-bar.types.d.ts +4 -0
- package/dist/types/components.d.ts +13 -3
- package/hydrate/index.js +157 -234
- package/package.json +6 -6
- package/dist/collection/components/ic-select-with-multi/test/a11y/ic-select.test.a11y.js +0 -146
- package/dist/collection/components/ic-select-with-multi/test/a11y/ic-select.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-select-with-multi/test/basic/ic-select.e2e.js +0 -2040
- package/dist/collection/components/ic-select-with-multi/test/basic/ic-select.e2e.js.map +0 -1
- package/dist/core/p-0ec04c16.entry.js.map +0 -1
- package/dist/core/p-13993bf3.entry.js.map +0 -1
- package/dist/core/p-216fbd5e.entry.js +0 -2
- package/dist/core/p-216fbd5e.entry.js.map +0 -1
- package/dist/core/p-2ee5d3fb.entry.js.map +0 -1
- package/dist/core/p-3ba4335c.entry.js +0 -2
- package/dist/core/p-3ba4335c.entry.js.map +0 -1
- package/dist/core/p-40e5fa80.entry.js +0 -2
- package/dist/core/p-40e5fa80.entry.js.map +0 -1
- package/dist/core/p-6af080d3.entry.js +0 -2
- package/dist/core/p-6af080d3.entry.js.map +0 -1
- package/dist/core/p-6b1fcf87.entry.js.map +0 -1
- package/dist/core/p-9777ebb1.entry.js +0 -2
- package/dist/core/p-9777ebb1.entry.js.map +0 -1
- package/dist/core/p-989310a8.entry.js.map +0 -1
- package/dist/core/p-c98ce508.entry.js +0 -2
- package/dist/core/p-c98ce508.entry.js.map +0 -1
- package/dist/core/p-fa77211d.entry.js.map +0 -1
- package/dist/types/components/ic-select-with-multi/test/a11y/ic-select.test.a11y.d.ts +0 -1
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ukic/canary-web-components",
|
3
|
-
"version": "2.0.0-canary.
|
3
|
+
"version": "2.0.0-canary.27",
|
4
4
|
"description": "A web component UI library compiled with StencilJS",
|
5
5
|
"main": "dist/index.cjs.js",
|
6
6
|
"module": "./dist/index.js",
|
@@ -32,9 +32,9 @@
|
|
32
32
|
"lint:fix": "echo '*** Linting CSS ***' && stylelint --config ../../.stylelintrc.json src/**/*.css --fix && echo '*** Linting standard files ***' && eslint --config ../../.eslintrc.js src --fix",
|
33
33
|
"start": "npx http-server storybook-static -s",
|
34
34
|
"kill": "kill-port 8080 --graceful",
|
35
|
-
"loki-tests": "loki --requireReference --port 8080 --chromeTolerance=1 --chromeRetries=1 --chromeConcurrency=1 && npm run kill",
|
36
|
-
"loki-tests:ci:canary": "loki --requireReference --port 8080 --chromeFlags=\"--no-sandbox --headless --hide-scrollbars --disable-gpu\" --chromeTolerance=1 --chromeRetries=1 --chromeConcurrency=1 && npm run kill",
|
37
|
-
"loki-tests:update": "loki update --port 8080 --chromeTolerance=1 --chromeRetries=1 --chromeConcurrency=1 && npm run kill",
|
35
|
+
"loki-tests": "loki --requireReference --port 8080 --chromeTolerance=1 --chromeRetries=1 --chromeConcurrency=1 --passWithNoStories && npm run kill",
|
36
|
+
"loki-tests:ci:canary": "loki --requireReference --port 8080 --chromeFlags=\"--no-sandbox --headless --hide-scrollbars --disable-gpu\" --chromeTolerance=1 --chromeRetries=1 --chromeConcurrency=1 --passWithNoStories && npm run kill",
|
37
|
+
"loki-tests:update": "loki update --port 8080 --chromeTolerance=1 --chromeRetries=1 --chromeConcurrency=1 --passWithNoStories && npm run kill",
|
38
38
|
"test-visual": "npm-run-all --parallel start loki-tests",
|
39
39
|
"test-visual:ci:canary": "npm-run-all --parallel start loki-tests:ci:canary",
|
40
40
|
"test-visual:update": "npm run build-storybook && npm-run-all --parallel start loki-tests:update",
|
@@ -43,7 +43,7 @@
|
|
43
43
|
"dependencies": {
|
44
44
|
"@popperjs/core": "^2.11.2",
|
45
45
|
"@stencil/core": "^4.9.0",
|
46
|
-
"@ukic/web-components": "^2.
|
46
|
+
"@ukic/web-components": "^2.29.1"
|
47
47
|
},
|
48
48
|
"peerDependencies": {
|
49
49
|
"@ukic/fonts": "^2.3.0"
|
@@ -89,5 +89,5 @@
|
|
89
89
|
"webpack": "^5.76.0"
|
90
90
|
},
|
91
91
|
"license": "MIT",
|
92
|
-
"gitHead": "
|
92
|
+
"gitHead": "3722eb9496a95846172a9a41c70055d75265cdd6"
|
93
93
|
}
|
@@ -1,146 +0,0 @@
|
|
1
|
-
import { fixture } from "@open-wc/testing-helpers";
|
2
|
-
import { axe } from "jest-axe";
|
3
|
-
import { checkShadowElementRendersCorrectly } from "../../../../utils/testa11y.helpers";
|
4
|
-
describe("ic-select", () => {
|
5
|
-
it("passes accessibility (single)", async () => {
|
6
|
-
const el = await fixture(`<ic-select
|
7
|
-
label="Select component"
|
8
|
-
helper-text="Helper text"
|
9
|
-
required
|
10
|
-
validation-status="error"
|
11
|
-
validation-text="Validation text"
|
12
|
-
></ic-select>
|
13
|
-
<script>
|
14
|
-
var select = document.querySelector("ic-select");
|
15
|
-
var option = "Value 1";
|
16
|
-
select.options = [
|
17
|
-
{
|
18
|
-
label: "Label 1",
|
19
|
-
value: "Value 1",
|
20
|
-
description: "Description 1",
|
21
|
-
},
|
22
|
-
{
|
23
|
-
label: "Label 2",
|
24
|
-
value: "Value 2",
|
25
|
-
description: "Description 2",
|
26
|
-
},
|
27
|
-
{
|
28
|
-
label: "Label 3",
|
29
|
-
children: [
|
30
|
-
{
|
31
|
-
label: "Label 4",
|
32
|
-
value: "Value 4",
|
33
|
-
description: "Description 4",
|
34
|
-
},
|
35
|
-
{
|
36
|
-
label: "Label 5",
|
37
|
-
value: "Value 5",
|
38
|
-
description: "Description 5",
|
39
|
-
},
|
40
|
-
],
|
41
|
-
},
|
42
|
-
];
|
43
|
-
select.addEventListener("icChange", function (event) {
|
44
|
-
option = event.detail.value;
|
45
|
-
select.value = option;
|
46
|
-
});
|
47
|
-
</script>`);
|
48
|
-
checkShadowElementRendersCorrectly(el);
|
49
|
-
expect(await axe(el)).toHaveNoViolations();
|
50
|
-
});
|
51
|
-
it("passes accessibility (multi)", async () => {
|
52
|
-
const el = await fixture(`<ic-select
|
53
|
-
label="Select component"
|
54
|
-
helper-text="Helper text"
|
55
|
-
required
|
56
|
-
multiple
|
57
|
-
validation-status="error"
|
58
|
-
validation-text="Validation text"
|
59
|
-
></ic-select>
|
60
|
-
<script>
|
61
|
-
var select = document.querySelector("ic-select");
|
62
|
-
var option = "Value 1";
|
63
|
-
select.options = [
|
64
|
-
{
|
65
|
-
label: "Label 1",
|
66
|
-
value: "Value 1",
|
67
|
-
description: "Description 1",
|
68
|
-
},
|
69
|
-
{
|
70
|
-
label: "Label 2",
|
71
|
-
value: "Value 2",
|
72
|
-
description: "Description 2",
|
73
|
-
},
|
74
|
-
{
|
75
|
-
label: "Label 3",
|
76
|
-
children: [
|
77
|
-
{
|
78
|
-
label: "Label 4",
|
79
|
-
value: "Value 4",
|
80
|
-
description: "Description 4",
|
81
|
-
},
|
82
|
-
{
|
83
|
-
label: "Label 5",
|
84
|
-
value: "Value 5",
|
85
|
-
description: "Description 5",
|
86
|
-
},
|
87
|
-
],
|
88
|
-
},
|
89
|
-
];
|
90
|
-
select.addEventListener("icChange", function (event) {
|
91
|
-
option = event.detail.value;
|
92
|
-
select.value = option;
|
93
|
-
});
|
94
|
-
</script>`);
|
95
|
-
checkShadowElementRendersCorrectly(el);
|
96
|
-
expect(await axe(el)).toHaveNoViolations();
|
97
|
-
});
|
98
|
-
it("passes accessibility (searchable)", async () => {
|
99
|
-
const el = await fixture(`<ic-select
|
100
|
-
label="Select component"
|
101
|
-
helper-text="Helper text"
|
102
|
-
required
|
103
|
-
searchable
|
104
|
-
validation-status="error"
|
105
|
-
validation-text="Validation text"
|
106
|
-
></ic-select>
|
107
|
-
<script>
|
108
|
-
var select = document.querySelector("ic-select");
|
109
|
-
var option = "Value 1";
|
110
|
-
select.options = [
|
111
|
-
{
|
112
|
-
label: "Label 1",
|
113
|
-
value: "Value 1",
|
114
|
-
description: "Description 1",
|
115
|
-
},
|
116
|
-
{
|
117
|
-
label: "Label 2",
|
118
|
-
value: "Value 2",
|
119
|
-
description: "Description 2",
|
120
|
-
},
|
121
|
-
{
|
122
|
-
label: "Label 3",
|
123
|
-
children: [
|
124
|
-
{
|
125
|
-
label: "Label 4",
|
126
|
-
value: "Value 4",
|
127
|
-
description: "Description 4",
|
128
|
-
},
|
129
|
-
{
|
130
|
-
label: "Label 5",
|
131
|
-
value: "Value 5",
|
132
|
-
description: "Description 5",
|
133
|
-
},
|
134
|
-
],
|
135
|
-
},
|
136
|
-
];
|
137
|
-
select.addEventListener("icChange", function (event) {
|
138
|
-
option = event.detail.value;
|
139
|
-
select.value = option;
|
140
|
-
});
|
141
|
-
</script>`);
|
142
|
-
checkShadowElementRendersCorrectly(el);
|
143
|
-
expect(await axe(el)).toHaveNoViolations();
|
144
|
-
});
|
145
|
-
});
|
146
|
-
//# sourceMappingURL=ic-select.test.a11y.js.map
|
package/dist/collection/components/ic-select-with-multi/test/a11y/ic-select.test.a11y.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"ic-select.test.a11y.js","sourceRoot":"","sources":["../../../../../src/components/ic-select-with-multi/test/a11y/ic-select.test.a11y.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,EAAE,kCAAkC,EAAE,MAAM,oCAAoC,CAAC;AAExF,QAAQ,CAAC,WAAW,EAAE,GAAG,EAAE;IACzB,EAAE,CAAC,+BAA+B,EAAE,KAAK,IAAI,EAAE;QAC7C,MAAM,EAAE,GAAG,MAAM,OAAO,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAyCb,CAAC,CAAC;QACd,kCAAkC,CAAC,EAAE,CAAC,CAAC;QACvC,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,kBAAkB,EAAE,CAAC;IAC7C,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,8BAA8B,EAAE,KAAK,IAAI,EAAE;QAC5C,MAAM,EAAE,GAAG,MAAM,OAAO,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBA0Cb,CAAC,CAAC;QACd,kCAAkC,CAAC,EAAE,CAAC,CAAC;QACvC,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,kBAAkB,EAAE,CAAC;IAC7C,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,mCAAmC,EAAE,KAAK,IAAI,EAAE;QACjD,MAAM,EAAE,GAAG,MAAM,OAAO,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBA0Cb,CAAC,CAAC;QACd,kCAAkC,CAAC,EAAE,CAAC,CAAC;QACvC,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,kBAAkB,EAAE,CAAC;IAC7C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { fixture } from \"@open-wc/testing-helpers\";\nimport { axe } from \"jest-axe\";\nimport { checkShadowElementRendersCorrectly } from \"../../../../utils/testa11y.helpers\";\n\ndescribe(\"ic-select\", () => {\n it(\"passes accessibility (single)\", async () => {\n const el = await fixture(`<ic-select\n label=\"Select component\"\n helper-text=\"Helper text\"\n required\n validation-status=\"error\"\n validation-text=\"Validation text\"\n ></ic-select>\n <script>\n var select = document.querySelector(\"ic-select\");\n var option = \"Value 1\";\n select.options = [\n {\n label: \"Label 1\",\n value: \"Value 1\",\n description: \"Description 1\",\n },\n {\n label: \"Label 2\",\n value: \"Value 2\",\n description: \"Description 2\",\n },\n {\n label: \"Label 3\",\n children: [\n {\n label: \"Label 4\",\n value: \"Value 4\",\n description: \"Description 4\",\n },\n {\n label: \"Label 5\",\n value: \"Value 5\",\n description: \"Description 5\",\n },\n ],\n },\n ];\n select.addEventListener(\"icChange\", function (event) {\n option = event.detail.value;\n select.value = option;\n });\n </script>`);\n checkShadowElementRendersCorrectly(el);\n expect(await axe(el)).toHaveNoViolations();\n });\n\n it(\"passes accessibility (multi)\", async () => {\n const el = await fixture(`<ic-select\n label=\"Select component\"\n helper-text=\"Helper text\"\n required\n multiple\n validation-status=\"error\"\n validation-text=\"Validation text\"\n ></ic-select>\n <script>\n var select = document.querySelector(\"ic-select\");\n var option = \"Value 1\";\n select.options = [\n {\n label: \"Label 1\",\n value: \"Value 1\",\n description: \"Description 1\",\n },\n {\n label: \"Label 2\",\n value: \"Value 2\",\n description: \"Description 2\",\n },\n {\n label: \"Label 3\",\n children: [\n {\n label: \"Label 4\",\n value: \"Value 4\",\n description: \"Description 4\",\n },\n {\n label: \"Label 5\",\n value: \"Value 5\",\n description: \"Description 5\",\n },\n ],\n },\n ];\n select.addEventListener(\"icChange\", function (event) {\n option = event.detail.value;\n select.value = option;\n });\n </script>`);\n checkShadowElementRendersCorrectly(el);\n expect(await axe(el)).toHaveNoViolations();\n });\n\n it(\"passes accessibility (searchable)\", async () => {\n const el = await fixture(`<ic-select\n label=\"Select component\"\n helper-text=\"Helper text\"\n required\n searchable\n validation-status=\"error\"\n validation-text=\"Validation text\"\n ></ic-select>\n <script>\n var select = document.querySelector(\"ic-select\");\n var option = \"Value 1\";\n select.options = [\n {\n label: \"Label 1\",\n value: \"Value 1\",\n description: \"Description 1\",\n },\n {\n label: \"Label 2\",\n value: \"Value 2\",\n description: \"Description 2\",\n },\n {\n label: \"Label 3\",\n children: [\n {\n label: \"Label 4\",\n value: \"Value 4\",\n description: \"Description 4\",\n },\n {\n label: \"Label 5\",\n value: \"Value 5\",\n description: \"Description 5\",\n },\n ],\n },\n ];\n select.addEventListener(\"icChange\", function (event) {\n option = event.detail.value;\n select.value = option;\n });\n </script>`);\n checkShadowElementRendersCorrectly(el);\n expect(await axe(el)).toHaveNoViolations();\n });\n});\n"]}
|