xmlui 0.10.13 → 0.10.15

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.
Files changed (217) hide show
  1. package/dist/lib/{index-Db5iQkFp.mjs → index-axjeT2uJ.mjs} +1626 -1080
  2. package/dist/lib/index.css +1 -1
  3. package/dist/lib/{initMock-B9LtmFJG.mjs → initMock-BoTWMs19.mjs} +1 -1
  4. package/dist/lib/language-server-web-worker.mjs +1 -1
  5. package/dist/lib/language-server.mjs +1 -1
  6. package/dist/lib/{metadata-utils-D90qqMGc.mjs → metadata-utils-CtY0QcvH.mjs} +2 -1
  7. package/dist/lib/{server-common-lmBDLpUh.mjs → server-common-Cine5nRR.mjs} +1 -1
  8. package/dist/lib/xmlui.d.ts +99 -6
  9. package/dist/lib/xmlui.mjs +78 -42
  10. package/dist/metadata/{collectedComponentMetadata-BN8eg9Gr.mjs → collectedComponentMetadata-CQywuPDB.mjs} +17448 -16984
  11. package/dist/metadata/{initMock-J7pN8owj.mjs → initMock-Bi5kF5Af.mjs} +1 -1
  12. package/dist/metadata/style.css +1 -1
  13. package/dist/metadata/xmlui-metadata.mjs +1 -1
  14. package/dist/metadata/xmlui-metadata.umd.js +3 -3
  15. package/dist/scripts/bin/build-lib.js +21 -13
  16. package/dist/scripts/bin/viteConfig.js +3 -1
  17. package/dist/scripts/package.json +2 -3
  18. package/dist/scripts/src/abstractions/scripting/Token.js +2 -0
  19. package/dist/scripts/src/abstractions/scripting/TryScope.js +2 -0
  20. package/dist/scripts/src/abstractions/scripting/modules.js +2 -0
  21. package/dist/scripts/src/components/APICall/APICall.spec.js +910 -0
  22. package/dist/scripts/src/components/Accordion/Accordion.spec.js +969 -0
  23. package/dist/scripts/src/components/Animation/Animation.js +50 -0
  24. package/dist/scripts/src/components/App/App.spec.js +219 -0
  25. package/dist/scripts/src/components/AppHeader/AppHeader.spec.js +169 -0
  26. package/dist/scripts/src/components/AppState/AppState.js +32 -2
  27. package/dist/scripts/src/components/AppState/AppState.spec.js +268 -0
  28. package/dist/scripts/src/components/AppState/AppStateNative.js +27 -3
  29. package/dist/scripts/src/components/AutoComplete/AutoComplete.spec.js +383 -0
  30. package/dist/scripts/src/components/Avatar/Avatar.spec.js +1543 -0
  31. package/dist/scripts/src/components/Backdrop/Backdrop.spec.js +131 -0
  32. package/dist/scripts/src/components/Badge/Badge.spec.js +2214 -0
  33. package/dist/scripts/src/components/Bookmark/Bookmark.spec.js +230 -0
  34. package/dist/scripts/src/components/Breakout/Breakout.spec.js +56 -0
  35. package/dist/scripts/src/components/Button/Button-style.spec.js +274 -0
  36. package/dist/scripts/src/components/Button/Button.js +5 -1
  37. package/dist/scripts/src/components/Button/Button.spec.js +454 -0
  38. package/dist/scripts/src/components/Card/Card.spec.js +150 -0
  39. package/dist/scripts/src/components/Carousel/Carousel.spec.js +343 -0
  40. package/dist/scripts/src/components/Carousel/CarouselNative.js +2 -2
  41. package/dist/scripts/src/components/ChangeListener/ChangeListener.spec.js +169 -0
  42. package/dist/scripts/src/components/Charts/AreaChart/AreaChart.spec.js +999 -0
  43. package/dist/scripts/src/components/Charts/BarChart/BarChart.spec.js +597 -0
  44. package/dist/scripts/src/components/Charts/DonutChart/DonutChart.spec.js +608 -0
  45. package/dist/scripts/src/components/Charts/LabelList/LabelList.spec.js +539 -0
  46. package/dist/scripts/src/components/Charts/Legend/Legend.spec.js +558 -0
  47. package/dist/scripts/src/components/Charts/LineChart/LineChart.spec.js +450 -0
  48. package/dist/scripts/src/components/Charts/PieChart/PieChart.spec.js +584 -0
  49. package/dist/scripts/src/components/Charts/PieChart/PieChartNative.js +41 -2
  50. package/dist/scripts/src/components/Charts/RadarChart/RadarChart.spec.js +571 -0
  51. package/dist/scripts/src/components/Charts/Tooltip/TooltipContent.spec.js +449 -0
  52. package/dist/scripts/src/components/Checkbox/Checkbox.spec.js +964 -0
  53. package/dist/scripts/src/components/CodeBlock/CodeBlock.spec.js +196 -0
  54. package/dist/scripts/src/components/ColorPicker/ColorPicker.spec.js +283 -0
  55. package/dist/scripts/src/components/ColorPicker/ColorPickerNative.js +9 -26
  56. package/dist/scripts/src/components/Column/doc-resources/list-component-data.js +53 -0
  57. package/dist/scripts/src/components/ComponentProvider.js +6 -2
  58. package/dist/scripts/src/components/ContentSeparator/ContentSeparator.spec.js +338 -0
  59. package/dist/scripts/src/components/DateInput/DateInput.spec.js +918 -0
  60. package/dist/scripts/src/components/DatePicker/DatePicker.spec.js +362 -0
  61. package/dist/scripts/src/components/DatePicker/DatePickerNative.js +3 -3
  62. package/dist/scripts/src/components/DropdownMenu/DropdownMenu.spec.js +331 -0
  63. package/dist/scripts/src/components/DropdownMenu/DropdownMenuNative.js +7 -9
  64. package/dist/scripts/src/components/EmojiSelector/EmojiSelector.spec.js +29 -0
  65. package/dist/scripts/src/components/ExpandableItem/ExpandableItem.spec.js +435 -0
  66. package/dist/scripts/src/components/FileInput/FileInput.spec.js +249 -0
  67. package/dist/scripts/src/components/FileUploadDropZone/FileUploadDropZone.spec.js +296 -0
  68. package/dist/scripts/src/components/FlowLayout/FlowLayout.spec.js +518 -0
  69. package/dist/scripts/src/components/Footer/Footer.spec.js +991 -0
  70. package/dist/scripts/src/components/Form/Form.spec.js +1257 -0
  71. package/dist/scripts/src/components/FormItem/FormItem.spec.js +723 -0
  72. package/dist/scripts/src/components/FormItem/ItemWithLabel.js +3 -3
  73. package/dist/scripts/src/components/FormSection/FormSection.js +6 -31
  74. package/dist/scripts/src/components/Fragment/Fragment.spec.js +50 -0
  75. package/dist/scripts/src/components/Heading/H1.spec.js +66 -0
  76. package/dist/scripts/src/components/Heading/H2.spec.js +66 -0
  77. package/dist/scripts/src/components/Heading/H3.spec.js +66 -0
  78. package/dist/scripts/src/components/Heading/H4.spec.js +66 -0
  79. package/dist/scripts/src/components/Heading/H5.spec.js +66 -0
  80. package/dist/scripts/src/components/Heading/H6.spec.js +66 -0
  81. package/dist/scripts/src/components/Heading/Heading.spec.js +897 -0
  82. package/dist/scripts/src/components/HtmlTags/HtmlTags.spec.js +69 -0
  83. package/dist/scripts/src/components/IFrame/IFrame.spec.js +527 -0
  84. package/dist/scripts/src/components/Icon/ArrowDropDown.js +11 -0
  85. package/dist/scripts/src/components/Icon/ArrowDropUp.js +11 -0
  86. package/dist/scripts/src/components/Icon/ArrowLeft.js +11 -0
  87. package/dist/scripts/src/components/Icon/ArrowRight.js +11 -0
  88. package/dist/scripts/src/components/Icon/ChevronDownIcon.js +7 -0
  89. package/dist/scripts/src/components/Icon/ChevronUpIcon.js +7 -0
  90. package/dist/scripts/src/components/Icon/Icon.spec.js +527 -0
  91. package/dist/scripts/src/components/Icon/SunIcon.js +10 -0
  92. package/dist/scripts/src/components/Image/Image.js +2 -1
  93. package/dist/scripts/src/components/Image/Image.spec.js +198 -0
  94. package/dist/scripts/src/components/Image/ImageNative.js +30 -2
  95. package/dist/scripts/src/components/Input/InputLabel.js +25 -0
  96. package/dist/scripts/src/components/Input/index.js +5 -0
  97. package/dist/scripts/src/components/Items/Items.spec.js +397 -0
  98. package/dist/scripts/src/components/Link/Link.spec.js +894 -0
  99. package/dist/scripts/src/components/List/List.spec.js +927 -0
  100. package/dist/scripts/src/components/List/doc-resources/list-component-data.js +53 -0
  101. package/dist/scripts/src/components/Markdown/Markdown.spec.js +188 -0
  102. package/dist/scripts/src/components/ModalDialog/ModalDialog.spec.js +162 -0
  103. package/dist/scripts/src/components/NavGroup/NavGroup.spec.js +212 -0
  104. package/dist/scripts/src/components/NavGroup/NavGroupNative.js +15 -7
  105. package/dist/scripts/src/components/NavLink/NavLink.spec.js +864 -0
  106. package/dist/scripts/src/components/NavPanel/NavPanel.spec.js +864 -0
  107. package/dist/scripts/src/components/NoResult/NoResult.spec.js +863 -0
  108. package/dist/scripts/src/components/NumberBox/NumberBox.spec.js +1237 -0
  109. package/dist/scripts/src/components/Option/Option.spec.js +472 -0
  110. package/dist/scripts/src/components/PageMetaTitle/PageMetaTitle.spec.js +80 -0
  111. package/dist/scripts/src/components/Pagination/Pagination.spec.js +1003 -0
  112. package/dist/scripts/src/components/ProfileMenu/ProfileMenu.js +20 -0
  113. package/dist/scripts/src/components/ProgressBar/ProgressBar.spec.js +166 -0
  114. package/dist/scripts/src/components/Queue/Queue.spec.js +626 -0
  115. package/dist/scripts/src/components/RadioGroup/RadioGroup.spec.js +479 -0
  116. package/dist/scripts/src/components/Redirect/Redirect.spec.js +527 -0
  117. package/dist/scripts/src/components/ResponsiveBar/ResponsiveBar.spec.js +76 -0
  118. package/dist/scripts/src/components/Select/Select.spec.js +527 -0
  119. package/dist/scripts/src/components/SelectionStore/SelectionStoreNative.js +3 -1
  120. package/dist/scripts/src/components/Slider/Slider.js +2 -0
  121. package/dist/scripts/src/components/Slider/Slider.spec.js +574 -0
  122. package/dist/scripts/src/components/Slider/SliderNative.js +63 -26
  123. package/dist/scripts/src/components/Slot/Slot.spec.js +368 -0
  124. package/dist/scripts/src/components/SpaceFiller/SpaceFiller.spec.js +184 -0
  125. package/dist/scripts/src/components/Spinner/Spinner.spec.js +161 -0
  126. package/dist/scripts/src/components/Splitter/HSplitter.spec.js +104 -0
  127. package/dist/scripts/src/components/Splitter/Splitter.spec.js +543 -0
  128. package/dist/scripts/src/components/Splitter/VSplitter.spec.js +104 -0
  129. package/dist/scripts/src/components/Stack/CHStack.spec.js +86 -0
  130. package/dist/scripts/src/components/Stack/CVStack.spec.js +86 -0
  131. package/dist/scripts/src/components/Stack/HStack.spec.js +67 -0
  132. package/dist/scripts/src/components/Stack/Stack.spec.js +654 -0
  133. package/dist/scripts/src/components/Stack/VStack.spec.js +67 -0
  134. package/dist/scripts/src/components/Switch/Switch.spec.js +829 -0
  135. package/dist/scripts/src/components/Table/Table.js +7 -1
  136. package/dist/scripts/src/components/Table/Table.spec.js +555 -0
  137. package/dist/scripts/src/components/Table/TableNative.js +4 -1
  138. package/dist/scripts/src/components/Table/doc-resources/list-component-data.js +53 -0
  139. package/dist/scripts/src/components/Table/useRowSelection.js +215 -1
  140. package/dist/scripts/src/components/TableOfContents/TableOfContents.spec.js +838 -0
  141. package/dist/scripts/src/components/Tabs/Tabs.spec.js +875 -0
  142. package/dist/scripts/src/components/Text/Text.spec.js +1075 -0
  143. package/dist/scripts/src/components/TextArea/TextArea.spec.js +714 -0
  144. package/dist/scripts/src/components/TextBox/TextBox.js +1 -5
  145. package/dist/scripts/src/components/TextBox/TextBox.spec.js +687 -0
  146. package/dist/scripts/src/components/TextBox/TextBoxNative.js +10 -15
  147. package/dist/scripts/src/components/Theme/Theme.spec.js +124 -0
  148. package/dist/scripts/src/components/Theme/ThemeNative.js +2 -6
  149. package/dist/scripts/src/components/TimeInput/TimeInput.js +1 -5
  150. package/dist/scripts/src/components/TimeInput/TimeInput.spec.js +1122 -0
  151. package/dist/scripts/src/components/TimeInput/TimeInputNative.js +2 -9
  152. package/dist/scripts/src/components/Timer/Timer.spec.js +358 -0
  153. package/dist/scripts/src/components/ToneChangerButton/ToneChangerButton.spec.js +414 -0
  154. package/dist/scripts/src/components/ToneSwitch/ToneSwitch.spec.js +89 -0
  155. package/dist/scripts/src/components/Tooltip/Tooltip.spec.js +418 -0
  156. package/dist/scripts/src/components/chart-color-schemes.js +43 -0
  157. package/dist/scripts/src/components-core/ApiBoundComponent.js +38 -24
  158. package/dist/scripts/src/components-core/CompoundComponent.js +1 -1
  159. package/dist/scripts/src/components-core/RestApiProxy.js +84 -8
  160. package/dist/scripts/src/components-core/behaviors/BehaviorContext.js +54 -0
  161. package/dist/scripts/src/components-core/behaviors/CoreBehaviors.js +80 -0
  162. package/dist/scripts/src/components-core/descriptorHelper.js +1 -0
  163. package/dist/scripts/src/components-core/devtools/InspectorDialogVisibilityContext.js +8 -0
  164. package/dist/scripts/src/components-core/parts.js +4 -1
  165. package/dist/scripts/src/components-core/renderers.js +31 -0
  166. package/dist/scripts/src/components-core/rendering/AppRoot.js +2 -1
  167. package/dist/scripts/src/components-core/rendering/ComponentAdapter.js +31 -46
  168. package/dist/scripts/src/components-core/rendering/nodeUtils.js +6 -0
  169. package/dist/scripts/src/components-core/script-runner/simplify-expression.js +386 -0
  170. package/dist/scripts/src/components-core/theming/component-layout-resolver.js +153 -0
  171. package/dist/scripts/src/components-core/theming/layout-resolver.js +2 -0
  172. package/dist/scripts/src/components-core/theming/parse-layout-props.js +98 -0
  173. package/dist/scripts/src/components-core/theming/themes/solid.js +16 -0
  174. package/dist/scripts/src/components-core/utils/audio-utils.js +83 -0
  175. package/dist/scripts/src/index-standalone.js +61 -0
  176. package/dist/scripts/src/index.js +39 -1
  177. package/dist/scripts/src/language-server/server-common.js +151 -0
  178. package/dist/scripts/src/language-server/server-web-worker.js +47 -0
  179. package/dist/scripts/src/language-server/server.js +42 -0
  180. package/dist/scripts/src/language-server/services/common/docs-generation.js +73 -0
  181. package/dist/scripts/src/language-server/services/common/lsp-utils.js +9 -0
  182. package/dist/scripts/src/language-server/services/common/syntax-node-utilities.js +135 -0
  183. package/dist/scripts/src/language-server/services/completion.js +270 -0
  184. package/dist/scripts/src/language-server/services/diagnostic.js +19 -0
  185. package/dist/scripts/src/language-server/services/format.js +430 -0
  186. package/dist/scripts/src/language-server/services/hover.js +164 -0
  187. package/dist/scripts/src/language-server/xmlui-metadata-generated.mjs +16266 -0
  188. package/dist/scripts/src/logging/xmlui.js +21 -0
  189. package/dist/scripts/src/parsers/common/utils.js +19 -0
  190. package/dist/scripts/src/syntax/monaco/grammar.monacoLanguage.js +286 -0
  191. package/dist/scripts/src/syntax/monaco/index.js +14 -0
  192. package/dist/scripts/src/syntax/monaco/xmlui-dark.js +25 -0
  193. package/dist/scripts/src/syntax/monaco/xmlui-light.js +25 -0
  194. package/dist/scripts/src/syntax/monaco/xmluiscript.monacoLanguage.js +310 -0
  195. package/dist/scripts/src/syntax/textMate/index.js +14 -0
  196. package/dist/scripts/src/syntax/textMate/xmlui-dark.json +631 -0
  197. package/dist/scripts/src/syntax/textMate/xmlui-light.json +565 -0
  198. package/dist/scripts/src/syntax/textMate/xmlui.json +564 -0
  199. package/dist/scripts/src/syntax/textMate/xmlui.tmLanguage.json +341 -0
  200. package/dist/scripts/src/testing/ComponentDrivers.js +1327 -0
  201. package/dist/scripts/src/testing/assertions.js +444 -0
  202. package/dist/scripts/src/testing/component-test-helpers.js +389 -0
  203. package/dist/scripts/src/testing/drivers/DateInputDriver.js +19 -0
  204. package/dist/scripts/src/testing/drivers/ModalDialogDriver.js +10 -0
  205. package/dist/scripts/src/testing/drivers/NumberBoxDriver.js +44 -0
  206. package/dist/scripts/src/testing/drivers/SliderDriver.js +20 -0
  207. package/dist/scripts/src/testing/drivers/TextBoxDriver.js +20 -0
  208. package/dist/scripts/src/testing/drivers/TimeInputDriver.js +22 -0
  209. package/dist/scripts/src/testing/drivers/TimerDriver.js +64 -0
  210. package/dist/scripts/src/testing/fixtures.js +513 -0
  211. package/dist/scripts/src/testing/infrastructure/TestBed.js +17 -0
  212. package/dist/scripts/src/testing/infrastructure/main.js +9 -0
  213. package/dist/scripts/src/testing/infrastructure/public/mockServiceWorker.js +266 -0
  214. package/dist/scripts/src/testing/themed-app-test-helpers.js +139 -0
  215. package/dist/standalone/xmlui-standalone.es.d.ts +172 -10
  216. package/dist/standalone/xmlui-standalone.umd.js +36 -36
  217. package/package.json +2 -3
@@ -0,0 +1,969 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ const fixtures_1 = require("../../testing/fixtures");
13
+ const CODE = `
14
+ <Accordion>
15
+ <AccordionItem>Hello</AccordionItem>
16
+ </Accordion>
17
+ `;
18
+ // =============================================================================
19
+ // BASIC FUNCTIONALITY TESTS
20
+ // =============================================================================
21
+ (0, fixtures_1.test)("clicking on header expands content", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
22
+ yield initTestBed(`<Accordion>
23
+ <AccordionItem header="header-here">Content</AccordionItem>
24
+ </Accordion>`);
25
+ const header = page.getByText("header-here");
26
+ const content = page.getByText("Content");
27
+ yield (0, fixtures_1.expect)(content).not.toBeVisible();
28
+ yield header.click();
29
+ yield (0, fixtures_1.expect)(content).toBeVisible();
30
+ }));
31
+ (0, fixtures_1.test)("component renders custom header with headerTemplate prop", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
32
+ yield initTestBed(`
33
+ <Accordion>
34
+ <AccordionItem>
35
+ <property name="headerTemplate">
36
+ <Text>Click me</Text>
37
+ </property>
38
+ Simple header content
39
+ </AccordionItem>
40
+ </Accordion>
41
+ `, {});
42
+ const content = page.getByText("Simple header content");
43
+ yield (0, fixtures_1.expect)(content).not.toBeVisible();
44
+ const templatedButton = page.getByText("Click me");
45
+ yield templatedButton.click();
46
+ yield (0, fixtures_1.expect)(content).toBeVisible();
47
+ }));
48
+ // =============================================================================
49
+ // ACCESSIBILITY TESTS
50
+ // =============================================================================
51
+ (0, fixtures_1.test)("AccordionItem has correct accessibility attributes", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
52
+ yield initTestBed(`<Accordion>
53
+ <AccordionItem header="header-here">Content</AccordionItem>
54
+ </Accordion>`);
55
+ const header = page.getByRole("button");
56
+ yield (0, fixtures_1.expect)(header).toContainText("header-here");
57
+ yield (0, fixtures_1.expect)(header).toHaveAttribute("aria-expanded", "false");
58
+ yield header.click();
59
+ yield (0, fixtures_1.expect)(header).toHaveAttribute("aria-expanded", "true");
60
+ }));
61
+ (0, fixtures_1.test)("pressing enter on header expands content", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
62
+ yield initTestBed(`<Accordion>
63
+ <AccordionItem header="header-here">Content</AccordionItem>
64
+ </Accordion>`);
65
+ const header = page.getByRole("button");
66
+ const content = page.getByText("Content");
67
+ yield (0, fixtures_1.expect)(content).not.toBeVisible();
68
+ yield header.focus();
69
+ page.keyboard.press("Enter");
70
+ yield (0, fixtures_1.expect)(content).toBeVisible();
71
+ }));
72
+ // =============================================================================
73
+ // VISUAL STATE TESTS
74
+ // =============================================================================
75
+ (0, fixtures_1.test)("applies border to all sides with single theme var", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createAccordionDriver, }) {
76
+ const EXPECTED_COLOR = "rgb(255, 0, 0)";
77
+ const EXPECTED_WIDTH = "5px";
78
+ const EXPECTED_STYLE = "dotted";
79
+ yield initTestBed(CODE, {
80
+ testThemeVars: {
81
+ "border-Accordion": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
82
+ },
83
+ });
84
+ const component = (yield createAccordionDriver()).component;
85
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", EXPECTED_COLOR);
86
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
87
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", EXPECTED_STYLE);
88
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", EXPECTED_COLOR);
89
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", EXPECTED_WIDTH);
90
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", EXPECTED_STYLE);
91
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR);
92
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
93
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE);
94
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", EXPECTED_COLOR);
95
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", EXPECTED_WIDTH);
96
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", EXPECTED_STYLE);
97
+ }));
98
+ (0, fixtures_1.test)("applies only left border with borderLeft theme var", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createAccordionDriver, }) {
99
+ const EXPECTED_COLOR = "rgb(255, 0, 0)";
100
+ const EXPECTED_WIDTH = "5px";
101
+ const EXPECTED_STYLE = "dotted";
102
+ yield initTestBed(CODE, {
103
+ testThemeVars: {
104
+ "borderLeft-Accordion": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
105
+ },
106
+ });
107
+ const component = (yield createAccordionDriver()).component;
108
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-color", EXPECTED_COLOR);
109
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-width", EXPECTED_WIDTH);
110
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-style", EXPECTED_STYLE);
111
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-color", EXPECTED_COLOR);
112
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-width", EXPECTED_WIDTH);
113
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-style", EXPECTED_STYLE);
114
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-color", EXPECTED_COLOR);
115
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
116
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-style", EXPECTED_STYLE);
117
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", EXPECTED_COLOR);
118
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", EXPECTED_WIDTH);
119
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", EXPECTED_STYLE);
120
+ }));
121
+ (0, fixtures_1.test)("applies only right border with borderRight theme var", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createAccordionDriver, }) {
122
+ const EXPECTED_COLOR = "rgb(255, 0, 0)";
123
+ const EXPECTED_WIDTH = "5px";
124
+ const EXPECTED_STYLE = "dotted";
125
+ yield initTestBed(CODE, {
126
+ testThemeVars: {
127
+ "borderRight-Accordion": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
128
+ },
129
+ });
130
+ const component = (yield createAccordionDriver()).component;
131
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-color", EXPECTED_COLOR);
132
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-width", EXPECTED_WIDTH);
133
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-style", EXPECTED_STYLE);
134
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", EXPECTED_COLOR);
135
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", EXPECTED_WIDTH);
136
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", EXPECTED_STYLE);
137
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-color", EXPECTED_COLOR);
138
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
139
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-style", EXPECTED_STYLE);
140
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-color", EXPECTED_COLOR);
141
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-width", EXPECTED_WIDTH);
142
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-style", EXPECTED_STYLE);
143
+ }));
144
+ (0, fixtures_1.test)("applies left and right borders with borderHorizontal theme var", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createAccordionDriver, }) {
145
+ const EXPECTED_COLOR = "rgb(255, 0, 0)";
146
+ const EXPECTED_WIDTH = "5px";
147
+ const EXPECTED_STYLE = "dotted";
148
+ yield initTestBed(CODE, {
149
+ testThemeVars: {
150
+ "borderHorizontal-Accordion": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
151
+ },
152
+ });
153
+ const component = (yield createAccordionDriver()).component;
154
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-color", EXPECTED_COLOR);
155
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-width", EXPECTED_WIDTH);
156
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-style", EXPECTED_STYLE);
157
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", EXPECTED_COLOR);
158
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", EXPECTED_WIDTH);
159
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", EXPECTED_STYLE);
160
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-color", EXPECTED_COLOR);
161
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
162
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-style", EXPECTED_STYLE);
163
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", EXPECTED_COLOR);
164
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", EXPECTED_WIDTH);
165
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", EXPECTED_STYLE);
166
+ }));
167
+ (0, fixtures_1.test)("prioritizes borderLeft over borderHorizontal when both set", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createAccordionDriver, }) {
168
+ const EXPECTED_COLOR = "rgb(255, 0, 0)";
169
+ const EXPECTED_WIDTH = "5px";
170
+ const EXPECTED_STYLE = "dotted";
171
+ yield initTestBed(CODE, {
172
+ testThemeVars: {
173
+ "borderHorizontal-Accordion": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
174
+ "borderLeft-Accordion": "8px double rgb(0, 128, 0)",
175
+ },
176
+ });
177
+ const component = (yield createAccordionDriver()).component;
178
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-color", EXPECTED_COLOR);
179
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-width", EXPECTED_WIDTH);
180
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-style", EXPECTED_STYLE);
181
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", EXPECTED_COLOR);
182
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", EXPECTED_WIDTH);
183
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", EXPECTED_STYLE);
184
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-color", EXPECTED_COLOR);
185
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
186
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-style", EXPECTED_STYLE);
187
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", "rgb(0, 128, 0)");
188
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", "8px");
189
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", "double");
190
+ }));
191
+ (0, fixtures_1.test)("prioritizes borderRight over borderHorizontal when both set", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createAccordionDriver, }) {
192
+ const EXPECTED_COLOR = "rgb(255, 0, 0)";
193
+ const EXPECTED_WIDTH = "5px";
194
+ const EXPECTED_STYLE = "dotted";
195
+ yield initTestBed(CODE, {
196
+ testThemeVars: {
197
+ "borderHorizontal-Accordion": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
198
+ "borderRight-Accordion": "8px double rgb(0, 128, 0)",
199
+ },
200
+ });
201
+ const component = (yield createAccordionDriver()).component;
202
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-color", EXPECTED_COLOR);
203
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-width", EXPECTED_WIDTH);
204
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-style", EXPECTED_STYLE);
205
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", "rgb(0, 128, 0)");
206
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", "8px");
207
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", "double");
208
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-color", EXPECTED_COLOR);
209
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
210
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-style", EXPECTED_STYLE);
211
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", EXPECTED_COLOR);
212
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", EXPECTED_WIDTH);
213
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", EXPECTED_STYLE);
214
+ }));
215
+ (0, fixtures_1.test)("applies only top border with borderTop theme var", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createAccordionDriver, }) {
216
+ // TODO: Review this test, often results in flaky
217
+ const EXPECTED_COLOR = "rgb(255, 0, 0)";
218
+ const EXPECTED_WIDTH = "5px";
219
+ const EXPECTED_STYLE = "dotted";
220
+ yield initTestBed(CODE, {
221
+ testThemeVars: {
222
+ "borderTop-Accordion": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
223
+ },
224
+ });
225
+ const component = (yield createAccordionDriver()).component;
226
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", EXPECTED_COLOR);
227
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
228
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", EXPECTED_STYLE);
229
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-color", EXPECTED_COLOR);
230
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-width", EXPECTED_WIDTH);
231
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-style", EXPECTED_STYLE);
232
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-color", EXPECTED_COLOR);
233
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
234
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-style", EXPECTED_STYLE);
235
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-color", EXPECTED_COLOR);
236
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-width", EXPECTED_WIDTH);
237
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-style", EXPECTED_STYLE);
238
+ }));
239
+ (0, fixtures_1.test)("applies only bottom border with borderBottom theme var", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createAccordionDriver, }) {
240
+ const EXPECTED_COLOR = "rgb(255, 0, 0)";
241
+ const EXPECTED_WIDTH = "5px";
242
+ const EXPECTED_STYLE = "dotted";
243
+ yield initTestBed(CODE, {
244
+ testThemeVars: {
245
+ "borderBottom-Accordion": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
246
+ },
247
+ });
248
+ const component = (yield createAccordionDriver()).component;
249
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-color", EXPECTED_COLOR);
250
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-width", EXPECTED_WIDTH);
251
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-style", EXPECTED_STYLE);
252
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-color", EXPECTED_COLOR);
253
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-width", EXPECTED_WIDTH);
254
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-style", EXPECTED_STYLE);
255
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR);
256
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
257
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE);
258
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-color", EXPECTED_COLOR);
259
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-width", EXPECTED_WIDTH);
260
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-style", EXPECTED_STYLE);
261
+ }));
262
+ (0, fixtures_1.test)("applies top and bottom borders with borderVertical theme var", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createAccordionDriver, }) {
263
+ const EXPECTED_COLOR = "rgb(255, 0, 0)";
264
+ const EXPECTED_WIDTH = "5px";
265
+ const EXPECTED_STYLE = "dotted";
266
+ yield initTestBed(CODE, {
267
+ testThemeVars: {
268
+ "borderVertical-Accordion": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
269
+ },
270
+ });
271
+ const component = (yield createAccordionDriver()).component;
272
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", EXPECTED_COLOR);
273
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
274
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", EXPECTED_STYLE);
275
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-color", EXPECTED_COLOR);
276
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-width", EXPECTED_WIDTH);
277
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-style", EXPECTED_STYLE);
278
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR);
279
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
280
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE);
281
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-color", EXPECTED_COLOR);
282
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-width", EXPECTED_WIDTH);
283
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-style", EXPECTED_STYLE);
284
+ }));
285
+ (0, fixtures_1.test)("prioritizes borderTop over borderVertical when both set", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createAccordionDriver, }) {
286
+ const EXPECTED_COLOR = "rgb(255, 0, 0)";
287
+ const EXPECTED_WIDTH = "5px";
288
+ const EXPECTED_STYLE = "dotted";
289
+ yield initTestBed(CODE, {
290
+ testThemeVars: {
291
+ "borderVertical-Accordion": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
292
+ "borderTop-Accordion": "8px double rgb(0, 128, 0)",
293
+ },
294
+ });
295
+ const component = (yield createAccordionDriver()).component;
296
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", "rgb(0, 128, 0)");
297
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", "8px");
298
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", "double");
299
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-color", EXPECTED_COLOR);
300
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-width", EXPECTED_WIDTH);
301
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-style", EXPECTED_STYLE);
302
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR);
303
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
304
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE);
305
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-color", EXPECTED_COLOR);
306
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-width", EXPECTED_WIDTH);
307
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-style", EXPECTED_STYLE);
308
+ }));
309
+ (0, fixtures_1.test)("prioritizes borderBottom over borderVertical when both set", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createAccordionDriver, }) {
310
+ const EXPECTED_COLOR = "rgb(255, 0, 0)";
311
+ const EXPECTED_WIDTH = "5px";
312
+ const EXPECTED_STYLE = "dotted";
313
+ yield initTestBed(CODE, {
314
+ testThemeVars: {
315
+ "borderVertical-Accordion": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
316
+ "borderBottom-Accordion": "8px double rgb(0, 128, 0)",
317
+ },
318
+ });
319
+ const component = (yield createAccordionDriver()).component;
320
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", EXPECTED_COLOR);
321
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
322
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", EXPECTED_STYLE);
323
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-color", EXPECTED_COLOR);
324
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-width", EXPECTED_WIDTH);
325
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-style", EXPECTED_STYLE);
326
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", "rgb(0, 128, 0)");
327
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", "8px");
328
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", "double");
329
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-color", EXPECTED_COLOR);
330
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-width", EXPECTED_WIDTH);
331
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-style", EXPECTED_STYLE);
332
+ }));
333
+ (0, fixtures_1.test)("applies color to all borders with borderColor theme var", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createAccordionDriver, }) {
334
+ const EXPECTED_COLOR = "rgb(0, 128, 0)";
335
+ const EXPECTED_WIDTH = "5px";
336
+ const EXPECTED_STYLE = "dotted";
337
+ yield initTestBed(CODE, {
338
+ testThemeVars: {
339
+ "borderColor-Accordion": EXPECTED_COLOR,
340
+ },
341
+ });
342
+ const component = (yield createAccordionDriver()).component;
343
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", EXPECTED_COLOR);
344
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-width", EXPECTED_WIDTH);
345
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-style", EXPECTED_STYLE);
346
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", EXPECTED_COLOR);
347
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-width", EXPECTED_WIDTH);
348
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-style", EXPECTED_STYLE);
349
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR);
350
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
351
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-style", EXPECTED_STYLE);
352
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", EXPECTED_COLOR);
353
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-width", EXPECTED_WIDTH);
354
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-style", EXPECTED_STYLE);
355
+ }));
356
+ (0, fixtures_1.test)("prioritizes borderColor over border's color value", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createAccordionDriver, }) {
357
+ const EXPECTED_COLOR = "rgb(255, 0, 0)";
358
+ const EXPECTED_WIDTH = "5px";
359
+ const EXPECTED_STYLE = "dotted";
360
+ const UPDATED = "rgb(0, 128, 0)";
361
+ yield initTestBed(CODE, {
362
+ testThemeVars: {
363
+ "borderColor-Accordion": UPDATED,
364
+ "border-Accordion": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
365
+ },
366
+ });
367
+ const component = (yield createAccordionDriver()).component;
368
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", UPDATED);
369
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
370
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", EXPECTED_STYLE);
371
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", UPDATED);
372
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", EXPECTED_WIDTH);
373
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", EXPECTED_STYLE);
374
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", UPDATED);
375
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
376
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE);
377
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", UPDATED);
378
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", EXPECTED_WIDTH);
379
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", EXPECTED_STYLE);
380
+ }));
381
+ (0, fixtures_1.test)("applies horizontal border colors over default border", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createAccordionDriver, }) {
382
+ const EXPECTED_COLOR = "rgb(255, 0, 0)";
383
+ const EXPECTED_WIDTH = "5px";
384
+ const EXPECTED_STYLE = "dotted";
385
+ const UPDATED = "rgb(0, 128, 0)";
386
+ yield initTestBed(CODE, {
387
+ testThemeVars: {
388
+ "borderHorizontalColor-Accordion": UPDATED,
389
+ "border-Accordion": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
390
+ },
391
+ });
392
+ const component = (yield createAccordionDriver()).component;
393
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", EXPECTED_COLOR);
394
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
395
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", EXPECTED_STYLE);
396
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", UPDATED);
397
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", EXPECTED_WIDTH);
398
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", EXPECTED_STYLE);
399
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR);
400
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
401
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE);
402
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", UPDATED);
403
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", EXPECTED_WIDTH);
404
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", EXPECTED_STYLE);
405
+ }));
406
+ (0, fixtures_1.test)("prioritizes left border color over default border", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createAccordionDriver, }) {
407
+ const EXPECTED_COLOR = "rgb(255, 0, 0)";
408
+ const EXPECTED_WIDTH = "5px";
409
+ const EXPECTED_STYLE = "dotted";
410
+ const UPDATED = "rgb(0, 128, 0)";
411
+ yield initTestBed(CODE, {
412
+ testThemeVars: {
413
+ "borderLeftColor-Accordion": UPDATED,
414
+ "border-Accordion": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
415
+ },
416
+ });
417
+ const component = (yield createAccordionDriver()).component;
418
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", EXPECTED_COLOR);
419
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
420
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", EXPECTED_STYLE);
421
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", EXPECTED_COLOR);
422
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", EXPECTED_WIDTH);
423
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", EXPECTED_STYLE);
424
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR);
425
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
426
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE);
427
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", UPDATED);
428
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", EXPECTED_WIDTH);
429
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", EXPECTED_STYLE);
430
+ }));
431
+ (0, fixtures_1.test)("prioritizes right border color over default border", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createAccordionDriver, }) {
432
+ const EXPECTED_COLOR = "rgb(255, 0, 0)";
433
+ const EXPECTED_WIDTH = "5px";
434
+ const EXPECTED_STYLE = "dotted";
435
+ const UPDATED = "rgb(0, 128, 0)";
436
+ yield initTestBed(CODE, {
437
+ testThemeVars: {
438
+ "borderRightColor-Accordion": UPDATED,
439
+ "border-Accordion": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
440
+ },
441
+ });
442
+ const component = (yield createAccordionDriver()).component;
443
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", EXPECTED_COLOR);
444
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
445
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", EXPECTED_STYLE);
446
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", UPDATED);
447
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", EXPECTED_WIDTH);
448
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", EXPECTED_STYLE);
449
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR);
450
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
451
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE);
452
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", EXPECTED_COLOR);
453
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", EXPECTED_WIDTH);
454
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", EXPECTED_STYLE);
455
+ }));
456
+ (0, fixtures_1.test)("applies vertical border colors over default border", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createAccordionDriver, }) {
457
+ const EXPECTED_COLOR = "rgb(255, 0, 0)";
458
+ const EXPECTED_WIDTH = "5px";
459
+ const EXPECTED_STYLE = "dotted";
460
+ const UPDATED = "rgb(0, 128, 0)";
461
+ yield initTestBed(CODE, {
462
+ testThemeVars: {
463
+ "borderVerticalColor-Accordion": UPDATED,
464
+ "border-Accordion": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
465
+ },
466
+ });
467
+ const component = (yield createAccordionDriver()).component;
468
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", UPDATED);
469
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
470
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", EXPECTED_STYLE);
471
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", EXPECTED_COLOR);
472
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", EXPECTED_WIDTH);
473
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", EXPECTED_STYLE);
474
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", UPDATED);
475
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
476
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE);
477
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", EXPECTED_COLOR);
478
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", EXPECTED_WIDTH);
479
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", EXPECTED_STYLE);
480
+ }));
481
+ (0, fixtures_1.test)("prioritizes top border color over default border", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createAccordionDriver, }) {
482
+ const EXPECTED_COLOR = "rgb(255, 0, 0)";
483
+ const EXPECTED_WIDTH = "5px";
484
+ const EXPECTED_STYLE = "dotted";
485
+ const UPDATED = "rgb(0, 128, 0)";
486
+ yield initTestBed(CODE, {
487
+ testThemeVars: {
488
+ "borderVertical-Accordion": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
489
+ "borderTop-Accordion": "8px double rgb(0, 128, 0)",
490
+ },
491
+ });
492
+ const component = (yield createAccordionDriver()).component;
493
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", "rgb(0, 128, 0)");
494
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", "8px");
495
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", "double");
496
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-color", EXPECTED_COLOR);
497
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-width", EXPECTED_WIDTH);
498
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-style", EXPECTED_STYLE);
499
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR);
500
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
501
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE);
502
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-color", EXPECTED_COLOR);
503
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-width", EXPECTED_WIDTH);
504
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-style", EXPECTED_STYLE);
505
+ }));
506
+ (0, fixtures_1.test)("prioritizes bottom border color over default border", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createAccordionDriver, }) {
507
+ const EXPECTED_COLOR = "rgb(255, 0, 0)";
508
+ const EXPECTED_WIDTH = "5px";
509
+ const EXPECTED_STYLE = "dotted";
510
+ const UPDATED = "rgb(0, 128, 0)";
511
+ yield initTestBed(CODE, {
512
+ testThemeVars: {
513
+ "borderVertical-Accordion": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
514
+ "borderBottom-Accordion": "8px double rgb(0, 128, 0)",
515
+ },
516
+ });
517
+ const component = (yield createAccordionDriver()).component;
518
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", EXPECTED_COLOR);
519
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
520
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", EXPECTED_STYLE);
521
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-color", EXPECTED_COLOR);
522
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-width", EXPECTED_WIDTH);
523
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-style", EXPECTED_STYLE);
524
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", "rgb(0, 128, 0)");
525
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", "8px");
526
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", "double");
527
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-color", EXPECTED_COLOR);
528
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-width", EXPECTED_WIDTH);
529
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-style", EXPECTED_STYLE);
530
+ }));
531
+ (0, fixtures_1.test)("applies style to all borders with borderStyle theme var", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createAccordionDriver, }) {
532
+ const EXPECTED_COLOR = "rgb(0, 128, 0)";
533
+ const EXPECTED_WIDTH = "5px";
534
+ const EXPECTED_STYLE = "dotted";
535
+ yield initTestBed(CODE, {
536
+ testThemeVars: {
537
+ "borderStyle-Accordion": EXPECTED_STYLE,
538
+ },
539
+ });
540
+ const component = (yield createAccordionDriver()).component;
541
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-color", EXPECTED_COLOR);
542
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-width", EXPECTED_WIDTH);
543
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", EXPECTED_STYLE);
544
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-color", EXPECTED_COLOR);
545
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-width", EXPECTED_WIDTH);
546
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", EXPECTED_STYLE);
547
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-color", EXPECTED_COLOR);
548
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
549
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE);
550
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-color", EXPECTED_COLOR);
551
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-width", EXPECTED_WIDTH);
552
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", EXPECTED_STYLE);
553
+ }));
554
+ (0, fixtures_1.test)("prioritizes borderStyle over border's style value", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createAccordionDriver, }) {
555
+ const EXPECTED_COLOR = "rgb(255, 0, 0)";
556
+ const EXPECTED_WIDTH = "5px";
557
+ const EXPECTED_STYLE = "dotted";
558
+ const UPDATED = "double";
559
+ yield initTestBed(CODE, {
560
+ testThemeVars: {
561
+ "borderStyle-Accordion": UPDATED,
562
+ "border-Accordion": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
563
+ },
564
+ });
565
+ const component = (yield createAccordionDriver()).component;
566
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", EXPECTED_COLOR);
567
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
568
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", UPDATED);
569
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", EXPECTED_COLOR);
570
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", EXPECTED_WIDTH);
571
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", UPDATED);
572
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR);
573
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
574
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", UPDATED);
575
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", EXPECTED_COLOR);
576
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", EXPECTED_WIDTH);
577
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", UPDATED);
578
+ }));
579
+ (0, fixtures_1.test)("applies horizontal border styles over default border", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createAccordionDriver, }) {
580
+ const EXPECTED_COLOR = "rgb(0, 128, 0)";
581
+ const EXPECTED_WIDTH = "5px";
582
+ const EXPECTED_STYLE = "dotted";
583
+ const UPDATED = "double";
584
+ yield initTestBed(CODE, {
585
+ testThemeVars: {
586
+ "borderHorizontalStyle-Accordion": UPDATED,
587
+ "border-Accordion": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
588
+ },
589
+ });
590
+ const component = (yield createAccordionDriver()).component;
591
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", EXPECTED_COLOR);
592
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
593
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", EXPECTED_STYLE);
594
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", EXPECTED_COLOR);
595
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", EXPECTED_WIDTH);
596
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", UPDATED);
597
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR);
598
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
599
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE);
600
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", EXPECTED_COLOR);
601
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", EXPECTED_WIDTH);
602
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", UPDATED);
603
+ }));
604
+ (0, fixtures_1.test)("prioritizes left border style over default border", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createAccordionDriver, }) {
605
+ const EXPECTED_COLOR = "rgb(0, 128, 0)";
606
+ const EXPECTED_WIDTH = "5px";
607
+ const EXPECTED_STYLE = "dotted";
608
+ const UPDATED = "double";
609
+ yield initTestBed(CODE, {
610
+ testThemeVars: {
611
+ "borderLeftStyle-Accordion": UPDATED,
612
+ "border-Accordion": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
613
+ },
614
+ });
615
+ const component = (yield createAccordionDriver()).component;
616
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", EXPECTED_COLOR);
617
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
618
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", EXPECTED_STYLE);
619
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", EXPECTED_COLOR);
620
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", EXPECTED_WIDTH);
621
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", EXPECTED_STYLE);
622
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR);
623
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
624
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE);
625
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", EXPECTED_COLOR);
626
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", EXPECTED_WIDTH);
627
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", UPDATED);
628
+ }));
629
+ (0, fixtures_1.test)("prioritizes right border style over default border", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createAccordionDriver, }) {
630
+ const EXPECTED_COLOR = "rgb(0, 128, 0)";
631
+ const EXPECTED_WIDTH = "5px";
632
+ const EXPECTED_STYLE = "dotted";
633
+ const UPDATED = "double";
634
+ yield initTestBed(CODE, {
635
+ testThemeVars: {
636
+ "borderRightStyle-Accordion": UPDATED,
637
+ "border-Accordion": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
638
+ },
639
+ });
640
+ const component = (yield createAccordionDriver()).component;
641
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", EXPECTED_COLOR);
642
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
643
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", EXPECTED_STYLE);
644
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", EXPECTED_COLOR);
645
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", EXPECTED_WIDTH);
646
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", UPDATED);
647
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR);
648
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
649
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE);
650
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", EXPECTED_COLOR);
651
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", EXPECTED_WIDTH);
652
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", EXPECTED_STYLE);
653
+ }));
654
+ (0, fixtures_1.test)("applies vertical border styles over default border", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createAccordionDriver, }) {
655
+ const EXPECTED_COLOR = "rgb(0, 128, 0)";
656
+ const EXPECTED_WIDTH = "5px";
657
+ const EXPECTED_STYLE = "dotted";
658
+ const UPDATED = "double";
659
+ yield initTestBed(CODE, {
660
+ testThemeVars: {
661
+ "borderVerticalStyle-Accordion": UPDATED,
662
+ "border-Accordion": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
663
+ },
664
+ });
665
+ const component = (yield createAccordionDriver()).component;
666
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", EXPECTED_COLOR);
667
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
668
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", UPDATED);
669
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", EXPECTED_COLOR);
670
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", EXPECTED_WIDTH);
671
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", EXPECTED_STYLE);
672
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR);
673
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
674
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", UPDATED);
675
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", EXPECTED_COLOR);
676
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", EXPECTED_WIDTH);
677
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", EXPECTED_STYLE);
678
+ }));
679
+ (0, fixtures_1.test)("prioritizes top border style over default border", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createAccordionDriver, }) {
680
+ const EXPECTED_COLOR = "rgb(0, 128, 0)";
681
+ const EXPECTED_WIDTH = "5px";
682
+ const EXPECTED_STYLE = "dotted";
683
+ const UPDATED = "double";
684
+ yield initTestBed(CODE, {
685
+ testThemeVars: {
686
+ "borderTopStyle-Accordion": UPDATED,
687
+ "border-Accordion": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
688
+ },
689
+ });
690
+ const component = (yield createAccordionDriver()).component;
691
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", EXPECTED_COLOR);
692
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
693
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", UPDATED);
694
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", EXPECTED_COLOR);
695
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", EXPECTED_WIDTH);
696
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", EXPECTED_STYLE);
697
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR);
698
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
699
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE);
700
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", EXPECTED_COLOR);
701
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", EXPECTED_WIDTH);
702
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", EXPECTED_STYLE);
703
+ }));
704
+ (0, fixtures_1.test)("prioritizes bottom border style over default border", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createAccordionDriver, }) {
705
+ const EXPECTED_COLOR = "rgb(0, 128, 0)";
706
+ const EXPECTED_WIDTH = "5px";
707
+ const EXPECTED_STYLE = "dotted";
708
+ const UPDATED = "double";
709
+ yield initTestBed(CODE, {
710
+ testThemeVars: {
711
+ "borderBottomStyle-Accordion": UPDATED,
712
+ "border-Accordion": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
713
+ },
714
+ });
715
+ const component = (yield createAccordionDriver()).component;
716
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", EXPECTED_COLOR);
717
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
718
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", EXPECTED_STYLE);
719
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", EXPECTED_COLOR);
720
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", EXPECTED_WIDTH);
721
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", EXPECTED_STYLE);
722
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR);
723
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
724
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", UPDATED);
725
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", EXPECTED_COLOR);
726
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", EXPECTED_WIDTH);
727
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", EXPECTED_STYLE);
728
+ }));
729
+ (0, fixtures_1.test)("applies width to all borders with borderWidth theme var", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createAccordionDriver, }) {
730
+ const EXPECTED_COLOR = "rgb(0, 128, 0)";
731
+ const EXPECTED_WIDTH = "8px";
732
+ const EXPECTED_STYLE = "dotted";
733
+ yield initTestBed(CODE, {
734
+ testThemeVars: {
735
+ "borderWidth-Accordion": EXPECTED_WIDTH,
736
+ },
737
+ });
738
+ const component = (yield createAccordionDriver()).component;
739
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-color", EXPECTED_COLOR);
740
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
741
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-style", EXPECTED_STYLE);
742
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-color", EXPECTED_COLOR);
743
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", EXPECTED_WIDTH);
744
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-style", EXPECTED_STYLE);
745
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-color", EXPECTED_COLOR);
746
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
747
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-style", EXPECTED_STYLE);
748
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-color", EXPECTED_COLOR);
749
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", EXPECTED_WIDTH);
750
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-style", EXPECTED_STYLE);
751
+ }));
752
+ (0, fixtures_1.test)("prioritizes borderWidth over border's width value", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createAccordionDriver, }) {
753
+ const EXPECTED_COLOR = "rgb(255, 0, 0)";
754
+ const EXPECTED_WIDTH = "5px";
755
+ const EXPECTED_STYLE = "dotted";
756
+ const UPDATED = "12px";
757
+ yield initTestBed(CODE, {
758
+ testThemeVars: {
759
+ "borderWidth-Accordion": UPDATED,
760
+ "border-Accordion": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
761
+ },
762
+ });
763
+ const component = (yield createAccordionDriver()).component;
764
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", EXPECTED_COLOR);
765
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", UPDATED);
766
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", EXPECTED_STYLE);
767
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", EXPECTED_COLOR);
768
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", UPDATED);
769
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", EXPECTED_STYLE);
770
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR);
771
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", UPDATED);
772
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE);
773
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", EXPECTED_COLOR);
774
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", UPDATED);
775
+ yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", EXPECTED_STYLE);
776
+ }));
777
+ (0, fixtures_1.test)("applies padding to all sides with padding theme var", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createAccordionDriver, }) {
778
+ const EXPECTED = "100px";
779
+ yield initTestBed(CODE, {
780
+ testThemeVars: {
781
+ "padding-Accordion": EXPECTED,
782
+ },
783
+ });
784
+ const component = (yield createAccordionDriver()).component;
785
+ yield (0, fixtures_1.expect)(component).toHaveCSS("padding-top", EXPECTED);
786
+ yield (0, fixtures_1.expect)(component).toHaveCSS("padding-right", EXPECTED);
787
+ yield (0, fixtures_1.expect)(component).toHaveCSS("padding-bottom", EXPECTED);
788
+ yield (0, fixtures_1.expect)(component).toHaveCSS("padding-left", EXPECTED);
789
+ }));
790
+ (0, fixtures_1.test)("applies padding to left and right with paddingHorizontal", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createAccordionDriver, }) {
791
+ const EXPECTED = "100px";
792
+ yield initTestBed(CODE, {
793
+ testThemeVars: {
794
+ "paddingHorizontal-Accordion": EXPECTED,
795
+ },
796
+ });
797
+ const component = (yield createAccordionDriver()).component;
798
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("padding-top", EXPECTED);
799
+ yield (0, fixtures_1.expect)(component).toHaveCSS("padding-right", EXPECTED);
800
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("padding-bottom", EXPECTED);
801
+ yield (0, fixtures_1.expect)(component).toHaveCSS("padding-left", EXPECTED);
802
+ }));
803
+ (0, fixtures_1.test)("applies padding to left side with paddingLeft", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createAccordionDriver, }) {
804
+ const EXPECTED = "100px";
805
+ yield initTestBed(CODE, {
806
+ testThemeVars: {
807
+ "paddingLeft-Accordion": EXPECTED,
808
+ },
809
+ });
810
+ const component = (yield createAccordionDriver()).component;
811
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("padding-top", EXPECTED);
812
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("padding-right", EXPECTED);
813
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("padding-bottom", EXPECTED);
814
+ yield (0, fixtures_1.expect)(component).toHaveCSS("padding-left", EXPECTED);
815
+ }));
816
+ (0, fixtures_1.test)("applies padding to right side with paddingRight", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createAccordionDriver, }) {
817
+ const EXPECTED = "100px";
818
+ yield initTestBed(CODE, {
819
+ testThemeVars: {
820
+ "paddingRight-Accordion": EXPECTED,
821
+ },
822
+ });
823
+ const component = (yield createAccordionDriver()).component;
824
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("padding-top", EXPECTED);
825
+ yield (0, fixtures_1.expect)(component).toHaveCSS("padding-right", EXPECTED);
826
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("padding-bottom", EXPECTED);
827
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("padding-left", EXPECTED);
828
+ }));
829
+ (0, fixtures_1.test)("applies padding to top and bottom with paddingVertical", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createAccordionDriver, }) {
830
+ const EXPECTED = "100px";
831
+ yield initTestBed(CODE, {
832
+ testThemeVars: {
833
+ "paddingVertical-Accordion": EXPECTED,
834
+ },
835
+ });
836
+ const component = (yield createAccordionDriver()).component;
837
+ yield (0, fixtures_1.expect)(component).toHaveCSS("padding-top", EXPECTED);
838
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("padding-right", EXPECTED);
839
+ yield (0, fixtures_1.expect)(component).toHaveCSS("padding-bottom", EXPECTED);
840
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("padding-left", EXPECTED);
841
+ }));
842
+ (0, fixtures_1.test)("applies padding to top side with paddingTop", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createAccordionDriver, }) {
843
+ const EXPECTED = "100px";
844
+ yield initTestBed(CODE, {
845
+ testThemeVars: {
846
+ "paddingTop-Accordion": EXPECTED,
847
+ },
848
+ });
849
+ const component = (yield createAccordionDriver()).component;
850
+ yield (0, fixtures_1.expect)(component).toHaveCSS("padding-top", EXPECTED);
851
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("padding-right", EXPECTED);
852
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("padding-bottom", EXPECTED);
853
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("padding-left", EXPECTED);
854
+ }));
855
+ (0, fixtures_1.test)("applies padding to bottom side with paddingBottom", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createAccordionDriver, }) {
856
+ const EXPECTED = "100px";
857
+ yield initTestBed(CODE, {
858
+ testThemeVars: {
859
+ "paddingBottom-Accordion": EXPECTED,
860
+ },
861
+ });
862
+ const component = (yield createAccordionDriver()).component;
863
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("padding-top", EXPECTED);
864
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("padding-right", EXPECTED);
865
+ yield (0, fixtures_1.expect)(component).toHaveCSS("padding-bottom", EXPECTED);
866
+ yield (0, fixtures_1.expect)(component).not.toHaveCSS("padding-left", EXPECTED);
867
+ }));
868
+ (0, fixtures_1.test)("prioritizes paddingHorizontal over default padding", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createAccordionDriver, }) {
869
+ const EXPECTED = "100px";
870
+ const UPDATED = "48px";
871
+ yield initTestBed(CODE, {
872
+ testThemeVars: {
873
+ "padding-Accordion": EXPECTED,
874
+ "paddingHorizontal-Accordion": UPDATED,
875
+ },
876
+ });
877
+ const component = (yield createAccordionDriver()).component;
878
+ yield (0, fixtures_1.expect)(component).toHaveCSS("padding-top", EXPECTED);
879
+ yield (0, fixtures_1.expect)(component).toHaveCSS("padding-right", UPDATED);
880
+ yield (0, fixtures_1.expect)(component).toHaveCSS("padding-bottom", EXPECTED);
881
+ yield (0, fixtures_1.expect)(component).toHaveCSS("padding-left", UPDATED);
882
+ }));
883
+ (0, fixtures_1.test)("prioritizes paddingLeft over default padding", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createAccordionDriver, }) {
884
+ const EXPECTED = "100px";
885
+ const UPDATED = "48px";
886
+ yield initTestBed(CODE, {
887
+ testThemeVars: {
888
+ "padding-Accordion": EXPECTED,
889
+ "paddingLeft-Accordion": UPDATED,
890
+ },
891
+ });
892
+ const component = (yield createAccordionDriver()).component;
893
+ yield (0, fixtures_1.expect)(component).toHaveCSS("padding-top", EXPECTED);
894
+ yield (0, fixtures_1.expect)(component).toHaveCSS("padding-right", EXPECTED);
895
+ yield (0, fixtures_1.expect)(component).toHaveCSS("padding-bottom", EXPECTED);
896
+ yield (0, fixtures_1.expect)(component).toHaveCSS("padding-left", UPDATED);
897
+ }));
898
+ (0, fixtures_1.test)("prioritizes paddingRight over default padding", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createAccordionDriver, }) {
899
+ const EXPECTED = "100px";
900
+ const UPDATED = "48px";
901
+ yield initTestBed(CODE, {
902
+ testThemeVars: {
903
+ "padding-Accordion": EXPECTED,
904
+ "paddingRight-Accordion": UPDATED,
905
+ },
906
+ });
907
+ const component = (yield createAccordionDriver()).component;
908
+ yield (0, fixtures_1.expect)(component).toHaveCSS("padding-top", EXPECTED);
909
+ yield (0, fixtures_1.expect)(component).toHaveCSS("padding-right", UPDATED);
910
+ yield (0, fixtures_1.expect)(component).toHaveCSS("padding-bottom", EXPECTED);
911
+ yield (0, fixtures_1.expect)(component).toHaveCSS("padding-left", EXPECTED);
912
+ }));
913
+ (0, fixtures_1.test)("prioritizes paddingVertical over default padding", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createAccordionDriver, }) {
914
+ const EXPECTED = "100px";
915
+ const UPDATED = "48px";
916
+ yield initTestBed(CODE, {
917
+ testThemeVars: {
918
+ "padding-Accordion": EXPECTED,
919
+ "paddingVertical-Accordion": UPDATED,
920
+ },
921
+ });
922
+ const component = (yield createAccordionDriver()).component;
923
+ yield (0, fixtures_1.expect)(component).toHaveCSS("padding-top", UPDATED);
924
+ yield (0, fixtures_1.expect)(component).toHaveCSS("padding-right", EXPECTED);
925
+ yield (0, fixtures_1.expect)(component).toHaveCSS("padding-bottom", UPDATED);
926
+ yield (0, fixtures_1.expect)(component).toHaveCSS("padding-left", EXPECTED);
927
+ }));
928
+ (0, fixtures_1.test)("prioritizes paddingTop over default padding", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createAccordionDriver, }) {
929
+ const EXPECTED = "100px";
930
+ const UPDATED = "48px";
931
+ yield initTestBed(CODE, {
932
+ testThemeVars: {
933
+ "padding-Accordion": EXPECTED,
934
+ "paddingTop-Accordion": UPDATED,
935
+ },
936
+ });
937
+ const component = (yield createAccordionDriver()).component;
938
+ yield (0, fixtures_1.expect)(component).toHaveCSS("padding-top", UPDATED);
939
+ yield (0, fixtures_1.expect)(component).toHaveCSS("padding-right", EXPECTED);
940
+ yield (0, fixtures_1.expect)(component).toHaveCSS("padding-bottom", EXPECTED);
941
+ yield (0, fixtures_1.expect)(component).toHaveCSS("padding-left", EXPECTED);
942
+ }));
943
+ (0, fixtures_1.test)("prioritizes paddingBottom over default padding", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createAccordionDriver, }) {
944
+ const EXPECTED = "100px";
945
+ const UPDATED = "48px";
946
+ yield initTestBed(CODE, {
947
+ testThemeVars: {
948
+ "padding-Accordion": EXPECTED,
949
+ "paddingBottom-Accordion": UPDATED,
950
+ },
951
+ });
952
+ const component = (yield createAccordionDriver()).component;
953
+ yield (0, fixtures_1.expect)(component).toHaveCSS("padding-top", EXPECTED);
954
+ yield (0, fixtures_1.expect)(component).toHaveCSS("padding-right", EXPECTED);
955
+ yield (0, fixtures_1.expect)(component).toHaveCSS("padding-bottom", UPDATED);
956
+ yield (0, fixtures_1.expect)(component).toHaveCSS("padding-left", EXPECTED);
957
+ }));
958
+ // =============================================================================
959
+ // EDGE CASE TESTS
960
+ // =============================================================================
961
+ (0, fixtures_1.test)("expanded treats null as false", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
962
+ // Test with null expanded prop
963
+ yield initTestBed(`
964
+ <Accordion>
965
+ <AccordionItem expanded="{null}">Null Expanded</AccordionItem>
966
+ </Accordion>
967
+ `, {});
968
+ yield (0, fixtures_1.expect)(page.getByText("Null Expanded")).not.toBeVisible();
969
+ }));