@zap-wunschlachen/wl-shared-components 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (254) hide show
  1. package/.github/workflows/playwright.yml +215 -0
  2. package/.github/workflows/static.yml +62 -0
  3. package/.prettierrc +5 -0
  4. package/.storybook/main.ts +18 -0
  5. package/.storybook/preview.ts +37 -0
  6. package/.storybook/storyWrapper.vue +18 -0
  7. package/.storybook/withVuetifyTheme.decorator.ts +21 -0
  8. package/App.vue +95 -0
  9. package/README.md +56 -0
  10. package/heroicons.ts +75 -0
  11. package/index.html +19 -0
  12. package/package.json +66 -0
  13. package/playwright.config.ts +35 -0
  14. package/public/audio/dummy_pink_noise.wav +0 -0
  15. package/public/background.svg +60 -0
  16. package/public/javascript.svg +1 -0
  17. package/public/style.css +187 -0
  18. package/public/technologies.svg +22 -0
  19. package/src/assets/css/base.css +235 -0
  20. package/src/assets/css/variables.css +96 -0
  21. package/src/assets/fonts/Outfit-Black.ttf +0 -0
  22. package/src/assets/fonts/Outfit-Bold.ttf +0 -0
  23. package/src/assets/fonts/Outfit-ExtraBold.ttf +0 -0
  24. package/src/assets/fonts/Outfit-ExtraLight.ttf +0 -0
  25. package/src/assets/fonts/Outfit-Light.ttf +0 -0
  26. package/src/assets/fonts/Outfit-Medium.ttf +0 -0
  27. package/src/assets/fonts/Outfit-Regular.ttf +0 -0
  28. package/src/assets/fonts/Outfit-SemiBold.ttf +0 -0
  29. package/src/assets/fonts/Outfit-Thin.ttf +0 -0
  30. package/src/components/Accordion/Accordion.css +59 -0
  31. package/src/components/Accordion/AccordionGroup.vue +51 -0
  32. package/src/components/Accordion/AccordionItem.vue +66 -0
  33. package/src/components/Appointment/Card/Actions.css +30 -0
  34. package/src/components/Appointment/Card/Actions.vue +66 -0
  35. package/src/components/Appointment/Card/Card.css +49 -0
  36. package/src/components/Appointment/Card/Card.vue +55 -0
  37. package/src/components/Appointment/Card/Details.css +51 -0
  38. package/src/components/Appointment/Card/Details.vue +44 -0
  39. package/src/components/Audio/Audio.vue +188 -0
  40. package/src/components/Audio/Waveform.vue +118 -0
  41. package/src/components/Button/Button.vue +119 -0
  42. package/src/components/CheckBox/CheckBox.css +185 -0
  43. package/src/components/CheckBox/Checkbox.vue +130 -0
  44. package/src/components/DateInput/DateInput.css +3 -0
  45. package/src/components/DateInput/DateInput.vue +263 -0
  46. package/src/components/Dialog/Dialog.css +6 -0
  47. package/src/components/Dialog/Dialog.vue +29 -0
  48. package/src/components/EditField/EditField.css +20 -0
  49. package/src/components/EditField/EditField.vue +202 -0
  50. package/src/components/IconBullet/IconBullet.vue +86 -0
  51. package/src/components/IconBullet/IconBulletList.vue +41 -0
  52. package/src/components/Icons/Audio/CloudFailed.vue +21 -0
  53. package/src/components/Icons/Audio/CloudSaved.vue +22 -0
  54. package/src/components/Icons/Audio/Delete.vue +16 -0
  55. package/src/components/Icons/Audio/Pause.vue +19 -0
  56. package/src/components/Icons/Audio/Play.vue +16 -0
  57. package/src/components/Icons/CalendarNotification.vue +126 -0
  58. package/src/components/Icons/Chair.vue +32 -0
  59. package/src/components/Icons/ChairNotification.vue +35 -0
  60. package/src/components/Icons/Circle.vue +66 -0
  61. package/src/components/Icons/FavIcon.vue +22 -0
  62. package/src/components/Icons/FilledCircle.vue +11 -0
  63. package/src/components/Icons/Group3.vue +46 -0
  64. package/src/components/Icons/RingNotification.vue +54 -0
  65. package/src/components/Icons/SolidArrowRight.vue +14 -0
  66. package/src/components/Icons/calendar.vue +17 -0
  67. package/src/components/Icons/checkbox.vue +19 -0
  68. package/src/components/Icons/outlineChecked.vue +27 -0
  69. package/src/components/Icons/play.vue +6 -0
  70. package/src/components/Input/Input.css +187 -0
  71. package/src/components/Input/Input.vue +247 -0
  72. package/src/components/Laboratory/AppointmentCard/AppointmentCard.css +7 -0
  73. package/src/components/Laboratory/AppointmentCard/AppointmentCard.vue +116 -0
  74. package/src/components/Laboratory/ChatBoxImage/ChatBoxImage.vue +81 -0
  75. package/src/components/Laboratory/ChatMessage/ChatMessage.vue +113 -0
  76. package/src/components/Laboratory/ChatMessage/ChatMessageBadge.css +4 -0
  77. package/src/components/Laboratory/ChatMessage/ChatMessageBadge.vue +99 -0
  78. package/src/components/Laboratory/ChatNotification/ChatNotification.vue +130 -0
  79. package/src/components/Laboratory/DocumentCard/DocumentCard.css +3 -0
  80. package/src/components/Laboratory/DocumentCard/DocumentCard.vue +50 -0
  81. package/src/components/Laboratory/DocumentCard/DocumentCardItem.vue +53 -0
  82. package/src/components/Laboratory/InfoCard/InfoCard.vue +162 -0
  83. package/src/components/Laboratory/MainColumnsBar/MainColumnsBar.vue +102 -0
  84. package/src/components/Laboratory/ProgressCircle/ProgressCircle.vue +152 -0
  85. package/src/components/Laboratory/ProgressLinear/ProgressLinear.css +33 -0
  86. package/src/components/Laboratory/ProgressLinear/ProgressLinear.vue +75 -0
  87. package/src/components/Laboratory/SelectionColumnBar/SelectionColumnBar.vue +92 -0
  88. package/src/components/Laboratory/StatusNotification/StatusNotification.vue +49 -0
  89. package/src/components/Laboratory/TagLabel/TagLabel.vue +126 -0
  90. package/src/components/Laboratory/TagLabelGroup/TagLabelGroup.vue +97 -0
  91. package/src/components/Laboratory/TicketCard/TicketCard.css +3 -0
  92. package/src/components/Laboratory/TicketCard/TicketCard.vue +143 -0
  93. package/src/components/Laboratory/TimeLine/TimeLineEvent.css +18 -0
  94. package/src/components/Laboratory/TimeLine/TimeLineEvent.vue +119 -0
  95. package/src/components/Laboratory/TimeLine/Timeline.css +4 -0
  96. package/src/components/Laboratory/TimeLine/Timeline.vue +30 -0
  97. package/src/components/Modal/Modal.css +6 -0
  98. package/src/components/Modal/Modal.vue +23 -0
  99. package/src/components/NotificationBubble/NotificationBubble.css +4 -0
  100. package/src/components/NotificationBubble/NotificationBubble.vue +90 -0
  101. package/src/components/OtpInput/OtpInput.css +39 -0
  102. package/src/components/OtpInput/OtpInput.vue +144 -0
  103. package/src/components/PhoneInput/PhoneInput.css +32 -0
  104. package/src/components/PhoneInput/PhoneInput.vue +114 -0
  105. package/src/components/Select/Select.css +150 -0
  106. package/src/components/Select/Select.vue +304 -0
  107. package/src/components/TextArea/TextArea.css +3 -0
  108. package/src/components/TextArea/TextArea.vue +126 -0
  109. package/src/components/TickBox/TickBox.css +49 -0
  110. package/src/components/TickBox/TickBox.vue +126 -0
  111. package/src/components/index.ts +20 -0
  112. package/src/constants/buttonEnums.ts +0 -0
  113. package/src/constants/iconEnums.ts +4 -0
  114. package/src/i18n/i18n.ts +16 -0
  115. package/src/i18n/locales/de.json +19 -0
  116. package/src/i18n/locales/en.json +19 -0
  117. package/src/index.ts +31 -0
  118. package/src/main.ts +11 -0
  119. package/src/plugins/vuetify.ts +131 -0
  120. package/src/shims-vue.d.ts +10 -0
  121. package/src/stories/Accordion.stories.ts +650 -0
  122. package/src/stories/Audio.stories.ts +29 -0
  123. package/src/stories/Button.stories.ts +263 -0
  124. package/src/stories/CheckBox.stories.ts +348 -0
  125. package/src/stories/DateInput.stories.ts +54 -0
  126. package/src/stories/Dialog.stories.ts +147 -0
  127. package/src/stories/EditField.stories.ts +79 -0
  128. package/src/stories/IconBullet/IconBullet.stories.ts +201 -0
  129. package/src/stories/IconBullet/IconBulletList.stories.ts +275 -0
  130. package/src/stories/Input.stories.ts +351 -0
  131. package/src/stories/Laboratory/Cards/AppointmentCard/AppointmentCard.stories.ts +260 -0
  132. package/src/stories/Laboratory/Cards/DocumentCard/DocumentCard.stories.ts +176 -0
  133. package/src/stories/Laboratory/Cards/DocumentCard/DocumentCardItem.stories.ts +119 -0
  134. package/src/stories/Laboratory/Cards/InfoCard/InfoCard.stories.ts +320 -0
  135. package/src/stories/Laboratory/Cards/TicketCard/TicketCard.stories.ts +335 -0
  136. package/src/stories/Laboratory/Chat/ChatBoxImage.stories.ts +82 -0
  137. package/src/stories/Laboratory/Chat/ChatMessage.stories.ts +198 -0
  138. package/src/stories/Laboratory/Chat/ChatMessageBadge.stories.ts +204 -0
  139. package/src/stories/Laboratory/Chat/ChatNotification.stories.ts +144 -0
  140. package/src/stories/Laboratory/Chat/ProgressLinear.stories.ts +186 -0
  141. package/src/stories/Laboratory/Chat/StatusNotification.stories.ts +111 -0
  142. package/src/stories/Laboratory/MainColumnsBar.stories.ts +48 -0
  143. package/src/stories/Laboratory/ProgressCircle.stories.ts +261 -0
  144. package/src/stories/Laboratory/SelectionColumnBar.stories.ts +234 -0
  145. package/src/stories/Laboratory/TagLabel.stories.ts +418 -0
  146. package/src/stories/Laboratory/TagLabelGroup.stories.ts +234 -0
  147. package/src/stories/Laboratory/Timeline.stories.ts +403 -0
  148. package/src/stories/NotificationBubble.stories.ts +194 -0
  149. package/src/stories/OtpInput.stories.ts +101 -0
  150. package/src/stories/PhoneInput.stories.ts +53 -0
  151. package/src/stories/Select.stories.ts +419 -0
  152. package/src/stories/TextArea.stories.ts +112 -0
  153. package/src/stories/TickBox.stories.ts +294 -0
  154. package/src/stories/assets/accessibility.png +0 -0
  155. package/src/stories/assets/accessibility.svg +1 -0
  156. package/src/stories/assets/addon-library.png +0 -0
  157. package/src/stories/assets/assets.png +0 -0
  158. package/src/stories/assets/avif-test-image.avif +0 -0
  159. package/src/stories/assets/context.png +0 -0
  160. package/src/stories/assets/discord.svg +1 -0
  161. package/src/stories/assets/docs.png +0 -0
  162. package/src/stories/assets/figma-plugin.png +0 -0
  163. package/src/stories/assets/github.svg +1 -0
  164. package/src/stories/assets/share.png +0 -0
  165. package/src/stories/assets/styling.png +0 -0
  166. package/src/stories/assets/testing.png +0 -0
  167. package/src/stories/assets/theming.png +0 -0
  168. package/src/stories/assets/tutorials.svg +1 -0
  169. package/src/stories/assets/youtube.svg +1 -0
  170. package/src/stories/v-icon.stories.ts +91 -0
  171. package/src/types/index.ts +21 -0
  172. package/src/vite-env.d.ts +1 -0
  173. package/tests/e2e/README.md +221 -0
  174. package/tests/e2e/accessibility.spec.ts +639 -0
  175. package/tests/e2e/accordion.spec.ts +42 -0
  176. package/tests/e2e/additional-components.spec.ts +438 -0
  177. package/tests/e2e/all-components.spec.ts +135 -0
  178. package/tests/e2e/button-fixed.spec.ts +59 -0
  179. package/tests/e2e/button.spec.ts +76 -0
  180. package/tests/e2e/checkbox.spec.ts +50 -0
  181. package/tests/e2e/date-input.spec.ts +46 -0
  182. package/tests/e2e/debug.spec.ts +52 -0
  183. package/tests/e2e/dialog.spec.ts +58 -0
  184. package/tests/e2e/input.spec.ts +55 -0
  185. package/tests/e2e/laboratory-components.spec.ts +321 -0
  186. package/tests/e2e/otp-input.spec.ts +50 -0
  187. package/tests/e2e/select.spec.ts +52 -0
  188. package/tests/e2e/storybook-utils.ts +59 -0
  189. package/tests/e2e/test-basic.spec.ts +34 -0
  190. package/tests/e2e/visual-regression.spec.ts +351 -0
  191. package/tests/unit/components/Accordion/AccordionGroup.spec.ts +343 -0
  192. package/tests/unit/components/Accordion/AccordionItem.spec.ts +384 -0
  193. package/tests/unit/components/Audio/Audio.spec.ts +404 -0
  194. package/tests/unit/components/Audio/Waveform.spec.ts +484 -0
  195. package/tests/unit/components/Core/Button.spec.ts +337 -0
  196. package/tests/unit/components/Core/Checkbox.spec.ts +545 -0
  197. package/tests/unit/components/Core/DateInput.spec.ts +691 -0
  198. package/tests/unit/components/Core/Dialog.spec.ts +486 -0
  199. package/tests/unit/components/Core/EditField.spec.ts +783 -0
  200. package/tests/unit/components/Core/Input.spec.ts +513 -0
  201. package/tests/unit/components/Core/Modal.spec.ts +519 -0
  202. package/tests/unit/components/Core/NotificationBubble.spec.ts +607 -0
  203. package/tests/unit/components/Core/OtpInput.spec.ts +709 -0
  204. package/tests/unit/components/Core/PhoneInput.spec.ts +620 -0
  205. package/tests/unit/components/Core/Select.spec.ts +713 -0
  206. package/tests/unit/components/Core/TextArea.spec.ts +566 -0
  207. package/tests/unit/components/Core/TickBox.spec.ts +780 -0
  208. package/tests/unit/components/IconBullet/IconBullet.spec.ts +357 -0
  209. package/tests/unit/components/IconBullet/IconBulletList.spec.ts +372 -0
  210. package/tests/unit/components/Icons/Audio/CloudFailed.spec.ts +109 -0
  211. package/tests/unit/components/Icons/Audio/CloudSaved.spec.ts +150 -0
  212. package/tests/unit/components/Icons/Audio/Delete.spec.ts +159 -0
  213. package/tests/unit/components/Icons/Audio/Pause.spec.ts +209 -0
  214. package/tests/unit/components/Icons/Audio/Play.spec.ts +218 -0
  215. package/tests/unit/components/Icons/CalendarNotification.spec.ts +187 -0
  216. package/tests/unit/components/Icons/Chair.spec.ts +235 -0
  217. package/tests/unit/components/Icons/ChairNotification.spec.ts +312 -0
  218. package/tests/unit/components/Icons/Circle.spec.ts +256 -0
  219. package/tests/unit/components/Icons/FavIcon.spec.ts +252 -0
  220. package/tests/unit/components/Icons/FilledCircle.spec.ts +275 -0
  221. package/tests/unit/components/Icons/Group3.spec.ts +356 -0
  222. package/tests/unit/components/Icons/RingNotification.spec.ts +394 -0
  223. package/tests/unit/components/Icons/calendar.spec.ts +287 -0
  224. package/tests/unit/components/Icons/checkbox.spec.ts +316 -0
  225. package/tests/unit/components/Icons/outlineChecked.spec.ts +435 -0
  226. package/tests/unit/components/Icons/play.spec.ts +309 -0
  227. package/tests/unit/components/Laboratory/AppointmentCard.spec.ts +168 -0
  228. package/tests/unit/components/Laboratory/ChatBoxImage.spec.ts +180 -0
  229. package/tests/unit/components/Laboratory/ChatMessage.spec.ts +264 -0
  230. package/tests/unit/components/Laboratory/ChatMessageBadge.spec.ts +283 -0
  231. package/tests/unit/components/Laboratory/ChatNotification.spec.ts +257 -0
  232. package/tests/unit/components/Laboratory/DocumentCard.spec.ts +229 -0
  233. package/tests/unit/components/Laboratory/DocumentCardItem.spec.ts +237 -0
  234. package/tests/unit/components/Laboratory/InfoCard.spec.ts +309 -0
  235. package/tests/unit/components/Laboratory/MainColumnsBar.spec.ts +252 -0
  236. package/tests/unit/components/Laboratory/ProgressCircle.spec.ts +291 -0
  237. package/tests/unit/components/Laboratory/ProgressLinear.spec.ts +276 -0
  238. package/tests/unit/components/Laboratory/SelectionColumnBar.spec.ts +289 -0
  239. package/tests/unit/components/Laboratory/StatusNotification.spec.ts +297 -0
  240. package/tests/unit/components/Laboratory/TagLabel.spec.ts +354 -0
  241. package/tests/unit/components/Laboratory/TagLabelGroup.spec.ts +378 -0
  242. package/tests/unit/components/Laboratory/TicketCard.spec.ts +352 -0
  243. package/tests/unit/components/Laboratory/TimeLineEvent.spec.ts +382 -0
  244. package/tests/unit/components/Laboratory/Timeline.spec.ts +420 -0
  245. package/tests/unit/constants/iconEnums.spec.ts +40 -0
  246. package/tests/unit/i18n/i18n.spec.ts +89 -0
  247. package/tests/unit/plugins/vuetify.spec.ts +221 -0
  248. package/tests/unit/setup.ts +190 -0
  249. package/tests/unit/src/components/index.spec.ts +193 -0
  250. package/tests/unit/src/index.spec.ts +183 -0
  251. package/tests/unit/src/main.spec.ts +152 -0
  252. package/tsconfig.json +26 -0
  253. package/vite.config.ts +29 -0
  254. package/vitest.config.ts +84 -0
@@ -0,0 +1,294 @@
1
+ import { ref } from 'vue';
2
+ import type { Meta, StoryObj } from '@storybook/vue3';
3
+ import TickBox from '@components/TickBox/TickBox.vue';
4
+
5
+ // Meta configuration for Storybook
6
+ const meta: Meta<typeof TickBox> = {
7
+ title: 'Wl/TickBox',
8
+ component: TickBox,
9
+ tags: ['autodocs'],
10
+ argTypes: {
11
+ label: { control: 'text', description: 'Label displayed with the TickBox' },
12
+ success: {
13
+ control: 'boolean',
14
+ description: 'Applies success styling to the TickBox',
15
+ },
16
+ error: {
17
+ control: 'boolean',
18
+ description: 'Applies error styling to the TickBox',
19
+ },
20
+ disabled: { control: 'boolean', description: 'Disables the TickBox' },
21
+ value: {
22
+ control: 'text',
23
+ description:
24
+ 'Value associated with the TickBox for array-based model binding',
25
+ },
26
+ },
27
+ parameters: {
28
+ docs: {
29
+ description: {
30
+ component: `
31
+ The \`TickBox\` component provides a checkbox input with customizable states, including success, error, and disabled styling. It supports both boolean and array-based model values.
32
+
33
+ ### Props
34
+ - **\`label\`**: Text label displayed with the TickBox.
35
+ - **\`success\`**: Applies success styling.
36
+ - **\`error\`**: Applies error styling.
37
+ - **\`disabled\`**: Disables the checkbox input.
38
+ - **\`value\`**: Used when binding the TickBox to an array, where the value represents the item added to the array.
39
+
40
+ ### Example Usage
41
+ The examples below demonstrate various configurations of the \`TickBox\` component, from simple state-based styling to using an array for managing multiple selections.
42
+ `,
43
+ },
44
+ },
45
+ },
46
+ };
47
+
48
+ export default meta;
49
+ type Story = StoryObj<typeof meta>;
50
+
51
+ /**
52
+ * Default TickBox Story
53
+ */
54
+ export const Default: Story = {
55
+ args: {
56
+ label: 'Default TickBox',
57
+ },
58
+ render(args) {
59
+ const modelValue = ref(false);
60
+ return {
61
+ components: { TickBox },
62
+ setup() {
63
+ return { args, modelValue };
64
+ },
65
+ template: `
66
+ <TickBox v-bind="args" v-model="modelValue" />
67
+ <p>Model Value: {{ modelValue }}</p>
68
+ `,
69
+ };
70
+ },
71
+ parameters: {
72
+ docs: {
73
+ source: {
74
+ code: `<TickBox label="Default TickBox" />`,
75
+ },
76
+ },
77
+ },
78
+ };
79
+
80
+ /**
81
+ * Success State TickBox Story
82
+ */
83
+ export const SuccessState: Story = {
84
+ args: {
85
+ label: 'Success TickBox',
86
+ success: true,
87
+ },
88
+ render(args) {
89
+ const modelValue = ref(false);
90
+ return {
91
+ components: { TickBox },
92
+ setup() {
93
+ return { args, modelValue };
94
+ },
95
+ template: `
96
+ <TickBox v-bind="args" v-model="modelValue" />
97
+ <p>Model Value: {{ modelValue }}</p>
98
+ `,
99
+ };
100
+ },
101
+ parameters: {
102
+ docs: {
103
+ source: {
104
+ code: `<TickBox label="Success TickBox" success />`,
105
+ },
106
+ },
107
+ },
108
+ };
109
+
110
+ /**
111
+ * Error State TickBox Story
112
+ */
113
+ export const ErrorState: Story = {
114
+ args: {
115
+ label: 'Error TickBox',
116
+ error: true,
117
+ },
118
+ render(args) {
119
+ const modelValue = ref(false);
120
+ return {
121
+ components: { TickBox },
122
+ setup() {
123
+ return { args, modelValue };
124
+ },
125
+ template: `
126
+ <TickBox v-bind="args" v-model="modelValue" />
127
+ <p>Model Value: {{ modelValue }}</p>
128
+ `,
129
+ };
130
+ },
131
+ parameters: {
132
+ docs: {
133
+ source: {
134
+ code: `<TickBox label="Error TickBox" error />`,
135
+ },
136
+ },
137
+ },
138
+ };
139
+
140
+ /**
141
+ * Disabled State TickBox Story
142
+ */
143
+ export const DisabledState: Story = {
144
+ args: {
145
+ label: 'Disabled TickBox',
146
+ disabled: true,
147
+ },
148
+ render(args) {
149
+ const modelValue = ref(false);
150
+ return {
151
+ components: { TickBox },
152
+ setup() {
153
+ return { args, modelValue };
154
+ },
155
+ template: `
156
+ <TickBox v-bind="args" v-model="modelValue" />
157
+ <p>Model Value: {{ modelValue }}</p>
158
+ `,
159
+ };
160
+ },
161
+ parameters: {
162
+ docs: {
163
+ source: {
164
+ code: `<TickBox label="Disabled TickBox" disabled />`,
165
+ },
166
+ },
167
+ },
168
+ };
169
+
170
+ /**
171
+ * TickBox with Boolean Model Value
172
+ */
173
+ export const BooleanModel: Story = {
174
+ args: {
175
+ label: 'Boolean Model TickBox',
176
+ },
177
+ render(args) {
178
+ const modelValue = ref(false);
179
+ return {
180
+ components: { TickBox },
181
+ setup() {
182
+ return { args, modelValue };
183
+ },
184
+ template: `
185
+ <TickBox v-bind="args" v-model="modelValue" />
186
+ <p>Boolean Model Value: {{ modelValue }}</p>
187
+ `,
188
+ };
189
+ },
190
+ parameters: {
191
+ docs: {
192
+ source: {
193
+ code: `
194
+ <template>
195
+ <TickBox label="Boolean Model TickBox" v-model="modelValue" />
196
+ <p>Boolean Model Value: {{ modelValue }}</p>
197
+ </template>
198
+
199
+ <script setup>
200
+ import { ref } from 'vue';
201
+
202
+ const modelValue = ref(false);
203
+ </script>
204
+ `,
205
+ },
206
+ },
207
+ },
208
+ };
209
+
210
+ /**
211
+ * TickBox with Array Model Value
212
+ */
213
+ export const ArrayModel: Story = {
214
+ args: {
215
+ label: 'Array Model TickBox',
216
+ value: 'option1',
217
+ },
218
+ render(args) {
219
+ const modelValue = ref([]);
220
+ return {
221
+ components: { TickBox },
222
+ setup() {
223
+ return { args, modelValue };
224
+ },
225
+ template: `
226
+ <TickBox v-bind="args" v-model="modelValue" />
227
+ <p>Array Model Value: {{ modelValue }}</p>
228
+ `,
229
+ };
230
+ },
231
+ parameters: {
232
+ docs: {
233
+ source: {
234
+ code: `
235
+ <template>
236
+ <TickBox label="Array Model TickBox" value="option1" v-model="modelValue" />
237
+ <p>Array Model Value: {{ modelValue }}</p>
238
+ </template>
239
+
240
+ <script setup>
241
+ import { ref } from 'vue';
242
+
243
+ const modelValue = ref([]);
244
+ </script>
245
+ `,
246
+ },
247
+ },
248
+ },
249
+ };
250
+
251
+ /**
252
+ * Multiple TickBoxes with Array Model Value
253
+ */
254
+ export const MultipleTickBoxes: Story = {
255
+ render() {
256
+ const selectedOptions = ref([]);
257
+ return {
258
+ components: { TickBox },
259
+ setup() {
260
+ return { selectedOptions };
261
+ },
262
+ template: `
263
+ <div>
264
+ <TickBox label="Option 1" value="option1" v-model="selectedOptions" success />
265
+ <TickBox label="Option 2" value="option2" v-model="selectedOptions" error />
266
+ <TickBox label="Option 3" value="option3" v-model="selectedOptions" />
267
+ <p>Selected Options: {{ selectedOptions }}</p>
268
+ </div>
269
+ `,
270
+ };
271
+ },
272
+ parameters: {
273
+ docs: {
274
+ source: {
275
+ code: `
276
+ <template>
277
+ <div>
278
+ <TickBox label="Option 1" value="option1" success v-model="selectedOptions" />
279
+ <TickBox label="Option 2" value="option2" error v-model="selectedOptions" />
280
+ <TickBox label="Option 3" value="option3" v-model="selectedOptions" />
281
+ <p>Selected Options: {{ selectedOptions }}</p>
282
+ </div>
283
+ </template>
284
+
285
+ <script setup>
286
+ import { ref } from 'vue';
287
+
288
+ const selectedOptions = ref([]);
289
+ </script>
290
+ `,
291
+ },
292
+ },
293
+ },
294
+ };
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="none" viewBox="0 0 48 48"><title>Accessibility</title><circle cx="24.334" cy="24" r="24" fill="#A849FF" fill-opacity=".3"/><path fill="#A470D5" fill-rule="evenodd" d="M27.8609 11.585C27.8609 9.59506 26.2497 7.99023 24.2519 7.99023C22.254 7.99023 20.6429 9.65925 20.6429 11.585C20.6429 13.575 22.254 15.1799 24.2519 15.1799C26.2497 15.1799 27.8609 13.575 27.8609 11.585ZM21.8922 22.6473C21.8467 23.9096 21.7901 25.4788 21.5897 26.2771C20.9853 29.0462 17.7348 36.3314 17.3325 37.2275C17.1891 37.4923 17.1077 37.7955 17.1077 38.1178C17.1077 39.1519 17.946 39.9902 18.9802 39.9902C19.6587 39.9902 20.253 39.6293 20.5814 39.0889L20.6429 38.9874L24.2841 31.22C24.2841 31.22 27.5529 37.9214 27.9238 38.6591C28.2948 39.3967 28.8709 39.9902 29.7168 39.9902C30.751 39.9902 31.5893 39.1519 31.5893 38.1178C31.5893 37.7951 31.3639 37.2265 31.3639 37.2265C30.9581 36.3258 27.698 29.0452 27.0938 26.2771C26.8975 25.4948 26.847 23.9722 26.8056 22.7236C26.7927 22.333 26.7806 21.9693 26.7653 21.6634C26.7008 21.214 27.0231 20.8289 27.4097 20.7005L35.3366 18.3253C36.3033 18.0685 36.8834 16.9773 36.6256 16.0144C36.3678 15.0515 35.2722 14.4737 34.3055 14.7305C34.3055 14.7305 26.8619 17.1057 24.2841 17.1057C21.7062 17.1057 14.456 14.7947 14.456 14.7947C13.4893 14.5379 12.3937 14.9873 12.0715 15.9502C11.7493 16.9131 12.3293 18.0044 13.3604 18.3253L21.2873 20.7005C21.674 20.8289 21.9318 21.214 21.9318 21.6634C21.9174 21.9493 21.9053 22.2857 21.8922 22.6473Z" clip-rule="evenodd"/></svg>
Binary file
Binary file
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="33" height="32" fill="none" viewBox="0 0 33 32"><g clip-path="url(#clip0_10031_177575)"><mask id="mask0_10031_177575" style="mask-type:luminance" width="33" height="25" x="0" y="4" maskUnits="userSpaceOnUse"><path fill="#fff" d="M32.5034 4.00195H0.503906V28.7758H32.5034V4.00195Z"/></mask><g mask="url(#mask0_10031_177575)"><path fill="#5865F2" d="M27.5928 6.20817C25.5533 5.27289 23.3662 4.58382 21.0794 4.18916C21.0378 4.18154 20.9962 4.20057 20.9747 4.23864C20.6935 4.73863 20.3819 5.3909 20.1637 5.90358C17.7042 5.53558 15.2573 5.53558 12.8481 5.90358C12.6299 5.37951 12.307 4.73863 12.0245 4.23864C12.003 4.20184 11.9614 4.18281 11.9198 4.18916C9.63431 4.58255 7.44721 5.27163 5.40641 6.20817C5.38874 6.21578 5.3736 6.22848 5.36355 6.24497C1.21508 12.439 0.078646 18.4809 0.636144 24.4478C0.638667 24.477 0.655064 24.5049 0.677768 24.5227C3.41481 26.5315 6.06609 27.7511 8.66815 28.5594C8.70979 28.5721 8.75392 28.5569 8.78042 28.5226C9.39594 27.6826 9.94461 26.7968 10.4151 25.8653C10.4428 25.8107 10.4163 25.746 10.3596 25.7244C9.48927 25.3945 8.66058 24.9922 7.86343 24.5354C7.80038 24.4986 7.79533 24.4084 7.85333 24.3653C8.02108 24.2397 8.18888 24.109 8.34906 23.977C8.37804 23.9529 8.41842 23.9478 8.45249 23.963C13.6894 26.3526 19.359 26.3526 24.5341 23.963C24.5682 23.9465 24.6086 23.9516 24.6388 23.9757C24.799 24.1077 24.9668 24.2397 25.1358 24.3653C25.1938 24.4084 25.19 24.4986 25.127 24.5354C24.3298 25.0011 23.5011 25.3945 22.6296 25.7232C22.5728 25.7447 22.5476 25.8107 22.5754 25.8653C23.0559 26.7955 23.6046 27.6812 24.2087 28.5213C24.234 28.5569 24.2794 28.5721 24.321 28.5594C26.9357 27.7511 29.5869 26.5315 32.324 24.5227C32.348 24.5049 32.3631 24.4783 32.3656 24.4491C33.0328 17.5506 31.2481 11.5584 27.6344 6.24623C27.6256 6.22848 27.6105 6.21578 27.5928 6.20817ZM11.1971 20.8146C9.62043 20.8146 8.32129 19.3679 8.32129 17.5913C8.32129 15.8146 9.59523 14.368 11.1971 14.368C12.8115 14.368 14.0981 15.8273 14.0729 17.5913C14.0729 19.3679 12.7989 20.8146 11.1971 20.8146ZM21.8299 20.8146C20.2533 20.8146 18.9541 19.3679 18.9541 17.5913C18.9541 15.8146 20.228 14.368 21.8299 14.368C23.4444 14.368 24.7309 15.8273 24.7057 17.5913C24.7057 19.3679 23.4444 20.8146 21.8299 20.8146Z"/></g></g><defs><clipPath id="clip0_10031_177575"><rect width="32" height="32" fill="#fff" transform="translate(0.5)"/></clipPath></defs></svg>
Binary file
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="none" viewBox="0 0 32 32"><path fill="#161614" d="M16.0001 0C7.16466 0 0 7.17472 0 16.0256C0 23.1061 4.58452 29.1131 10.9419 31.2322C11.7415 31.3805 12.0351 30.8845 12.0351 30.4613C12.0351 30.0791 12.0202 28.8167 12.0133 27.4776C7.56209 28.447 6.62283 25.5868 6.62283 25.5868C5.89499 23.7345 4.8463 23.2419 4.8463 23.2419C3.39461 22.2473 4.95573 22.2678 4.95573 22.2678C6.56242 22.3808 7.40842 23.9192 7.40842 23.9192C8.83547 26.3691 11.1514 25.6609 12.0645 25.2514C12.2081 24.2156 12.6227 23.5087 13.0803 23.1085C9.52648 22.7032 5.7906 21.3291 5.7906 15.1886C5.7906 13.4389 6.41563 12.0094 7.43916 10.8871C7.27303 10.4834 6.72537 8.85349 7.59415 6.64609C7.59415 6.64609 8.93774 6.21539 11.9953 8.28877C13.2716 7.9337 14.6404 7.75563 16.0001 7.74953C17.3599 7.75563 18.7297 7.9337 20.0084 8.28877C23.0623 6.21539 24.404 6.64609 24.404 6.64609C25.2749 8.85349 24.727 10.4834 24.5608 10.8871C25.5868 12.0094 26.2075 13.4389 26.2075 15.1886C26.2075 21.3437 22.4645 22.699 18.9017 23.0957C19.4756 23.593 19.9869 24.5683 19.9869 26.0634C19.9869 28.2077 19.9684 29.9334 19.9684 30.4613C19.9684 30.8877 20.2564 31.3874 21.0674 31.2301C27.4213 29.1086 32 23.1037 32 16.0256C32 7.17472 24.8364 0 16.0001 0ZM5.99257 22.8288C5.95733 22.9084 5.83227 22.9322 5.71834 22.8776C5.60229 22.8253 5.53711 22.7168 5.57474 22.6369C5.60918 22.5549 5.7345 22.5321 5.85029 22.587C5.9666 22.6393 6.03284 22.7489 5.99257 22.8288ZM6.7796 23.5321C6.70329 23.603 6.55412 23.5701 6.45291 23.4581C6.34825 23.3464 6.32864 23.197 6.40601 23.125C6.4847 23.0542 6.62937 23.0874 6.73429 23.1991C6.83895 23.3121 6.85935 23.4605 6.7796 23.5321ZM7.31953 24.4321C7.2215 24.5003 7.0612 24.4363 6.96211 24.2938C6.86407 24.1513 6.86407 23.9804 6.96422 23.9119C7.06358 23.8435 7.2215 23.905 7.32191 24.0465C7.41968 24.1914 7.41968 24.3623 7.31953 24.4321ZM8.23267 25.4743C8.14497 25.5712 7.95818 25.5452 7.82146 25.413C7.68156 25.2838 7.64261 25.1004 7.73058 25.0035C7.81934 24.9064 8.00719 24.9337 8.14497 25.0648C8.28381 25.1938 8.3262 25.3785 8.23267 25.4743ZM9.41281 25.8262C9.37413 25.9517 9.19423 26.0088 9.013 25.9554C8.83203 25.9005 8.7136 25.7535 8.75016 25.6266C8.78778 25.5003 8.96848 25.4408 9.15104 25.4979C9.33174 25.5526 9.45044 25.6985 9.41281 25.8262ZM10.7559 25.9754C10.7604 26.1076 10.6067 26.2172 10.4165 26.2196C10.2252 26.2238 10.0704 26.1169 10.0683 25.9868C10.0683 25.8534 10.2185 25.7448 10.4098 25.7416C10.6001 25.7379 10.7559 25.8441 10.7559 25.9754ZM12.0753 25.9248C12.0981 26.0537 11.9658 26.1862 11.7769 26.2215C11.5912 26.2554 11.4192 26.1758 11.3957 26.0479C11.3726 25.9157 11.5072 25.7833 11.6927 25.7491C11.8819 25.7162 12.0512 25.7937 12.0753 25.9248Z"/></svg>
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="33" height="32" fill="none" viewBox="0 0 33 32"><g clip-path="url(#clip0_10031_177597)"><path fill="#B7F0EF" fill-rule="evenodd" d="M17 7.87059C17 6.48214 17.9812 5.28722 19.3431 5.01709L29.5249 2.99755C31.3238 2.64076 33 4.01717 33 5.85105V22.1344C33 23.5229 32.0188 24.7178 30.6569 24.9879L20.4751 27.0074C18.6762 27.3642 17 25.9878 17 24.1539L17 7.87059Z" clip-rule="evenodd" opacity=".7"/><path fill="#87E6E5" fill-rule="evenodd" d="M1 5.85245C1 4.01857 2.67623 2.64215 4.47507 2.99895L14.6569 5.01848C16.0188 5.28861 17 6.48354 17 7.87198V24.1553C17 25.9892 15.3238 27.3656 13.5249 27.0088L3.34311 24.9893C1.98119 24.7192 1 23.5242 1 22.1358V5.85245Z" clip-rule="evenodd"/><path fill="#61C1FD" fill-rule="evenodd" d="M15.543 5.71289C15.543 5.71289 16.8157 5.96289 17.4002 6.57653C17.9847 7.19016 18.4521 9.03107 18.4521 9.03107C18.4521 9.03107 18.4521 25.1106 18.4521 26.9629C18.4521 28.8152 19.3775 31.4174 19.3775 31.4174L17.4002 28.8947L16.2575 31.4174C16.2575 31.4174 15.543 29.0765 15.543 27.122C15.543 25.1674 15.543 5.71289 15.543 5.71289Z" clip-rule="evenodd"/></g><defs><clipPath id="clip0_10031_177597"><rect width="32" height="32" fill="#fff" transform="translate(0.5)"/></clipPath></defs></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="none" viewBox="0 0 32 32"><path fill="#ED1D24" d="M31.3313 8.44657C30.9633 7.08998 29.8791 6.02172 28.5022 5.65916C26.0067 5.00026 16 5.00026 16 5.00026C16 5.00026 5.99333 5.00026 3.4978 5.65916C2.12102 6.02172 1.03665 7.08998 0.668678 8.44657C0 10.9053 0 16.0353 0 16.0353C0 16.0353 0 21.1652 0.668678 23.6242C1.03665 24.9806 2.12102 26.0489 3.4978 26.4116C5.99333 27.0703 16 27.0703 16 27.0703C16 27.0703 26.0067 27.0703 28.5022 26.4116C29.8791 26.0489 30.9633 24.9806 31.3313 23.6242C32 21.1652 32 16.0353 32 16.0353C32 16.0353 32 10.9053 31.3313 8.44657Z"/><path fill="#fff" d="M12.7266 20.6934L21.0902 16.036L12.7266 11.3781V20.6934Z"/></svg>
@@ -0,0 +1,91 @@
1
+ import { Meta, StoryObj } from '@storybook/vue3';
2
+ import { VIcon } from 'vuetify/components'; // Vuetify v-icon component
3
+
4
+ // Custom Icons Setup
5
+ const customIcons = [
6
+ 'heroicons:outline',
7
+ 'heroicons:outline-checked',
8
+ 'heroicons:calendar',
9
+ 'heroicons:calendar-notification',
10
+ 'heroicons:chair',
11
+ 'heroicons:chair-notification',
12
+ 'heroicons:group3',
13
+ 'heroicons:ring-notification',
14
+ 'heroicons:fav-icon',
15
+ ];
16
+
17
+ // Meta configuration for the VIcon component
18
+ const meta: Meta<typeof VIcon> = {
19
+ title: 'WL/VIcon',
20
+ component: VIcon,
21
+ tags: ['autodocs'],
22
+ argTypes: {
23
+ icon: { control: 'text' }, // Free text input for entering any icon name
24
+ color: { control: 'color' },
25
+ size: { control: 'text' },
26
+ },
27
+ args: {
28
+ icon: 'heroicons:calendar', // Default icon (can be any valid icon name)
29
+ color: '#000000', // Default color
30
+ size: '24', // Default size
31
+ },
32
+ };
33
+
34
+ export default meta;
35
+ type Story = StoryObj<typeof meta>;
36
+
37
+ // Define a common render template
38
+ const Template: Story = {
39
+ render: (args) => ({
40
+ components: { VIcon },
41
+ setup() {
42
+ return { args };
43
+ },
44
+ template: `<div style="padding: 16px;">
45
+ <v-icon v-bind="args" />
46
+ </div>`,
47
+ }),
48
+ };
49
+
50
+ // Custom Icons Story with dropdown options
51
+ export const CustomIcons: Story = {
52
+ render: (args) => ({
53
+ components: { VIcon },
54
+ setup() {
55
+ return { args, customIcons };
56
+ },
57
+ template: `<div style="padding: 16px;">
58
+ <v-icon :icon="customIcons[args.icon]" v-bind="args" />
59
+ </div>`,
60
+ }),
61
+ argTypes: {
62
+ icon: {
63
+ control: 'select',
64
+ options: customIcons, // Dropdown with custom icon options
65
+ },
66
+ size: { control: 'text' },
67
+ },
68
+ args: {
69
+ icon: 'RingNotification',
70
+ size: '24',
71
+ },
72
+ };
73
+
74
+ // Define different stories using the common template
75
+ export const Default: Story = { ...Template, args: {} };
76
+
77
+ export const CustomColoredIcon: Story = {
78
+ ...Template,
79
+ args: {
80
+ icon: 'heroicons:calendar',
81
+ color: '#FF0000',
82
+ },
83
+ };
84
+
85
+ export const LargeIcon: Story = {
86
+ ...Template,
87
+ args: {
88
+ icon: 'heroicons:calendar',
89
+ size: '48',
90
+ },
91
+ };
@@ -0,0 +1,21 @@
1
+ export interface AppointmentData {
2
+ id: string;
3
+ template_name: string | string[];
4
+ description: string | null;
5
+ dentist: Dentist;
6
+ start: string;
7
+ end?: string;
8
+ type: number;
9
+ address?: string,
10
+ is_confirmed?: boolean;
11
+ status?: 'upcoming' | 'past' | 'cancelled';
12
+ treatment_id?: string;
13
+ patientName?: string;
14
+ district?: string;
15
+ }
16
+
17
+ export interface Dentist {
18
+ name: string;
19
+ gender: string;
20
+ imageSrc: string;
21
+ }
@@ -0,0 +1 @@
1
+ /// <reference types="vite/client" />
@@ -0,0 +1,221 @@
1
+ # Playwright E2E Tests for WL Shared Components
2
+
3
+ This directory contains comprehensive end-to-end tests for all WL shared components using Playwright.
4
+
5
+ ## Test Coverage
6
+
7
+ ### Core Components
8
+ - **Button Component** (`button.spec.ts`)
9
+ - Default rendering and interactions
10
+ - Various button variants (outlined, text, elevated, tonal)
11
+ - Loading states and disabled states
12
+ - Different sizes and custom colors
13
+ - Keyboard navigation and accessibility
14
+ - Icon support (prepend/append)
15
+
16
+ - **Input Component** (`input.spec.ts`)
17
+ - Text input functionality
18
+ - Validation states (success, error, warning)
19
+ - Disabled state handling
20
+ - Icon support (prepend/append/inner)
21
+ - Search input functionality
22
+ - Hint text display
23
+ - Focus and keyboard interaction
24
+
25
+ - **Select Component** (`select.spec.ts`)
26
+ - Dropdown opening/closing
27
+ - Option selection
28
+ - Keyboard navigation
29
+ - Multiple selection (if supported)
30
+ - Search/filter functionality
31
+ - Clearable functionality
32
+ - Disabled states
33
+ - Accessibility attributes
34
+
35
+ - **Checkbox Component** (`checkbox.spec.ts`)
36
+ - Checking/unchecking functionality
37
+ - Keyboard interaction (Space key)
38
+ - Disabled state prevention
39
+ - Label interaction
40
+ - Visual state verification
41
+ - Indeterminate state (if supported)
42
+ - Custom styling variants
43
+
44
+ ### Form Components
45
+ - **DateInput Component** (`date-input.spec.ts`)
46
+ - Date input field rendering
47
+ - Date picker functionality
48
+ - Calendar navigation
49
+ - Date format validation
50
+ - Min/max date restrictions
51
+ - Today button functionality
52
+ - Keyboard navigation
53
+ - Outside click closing
54
+
55
+ - **OTP Input Component** (`otp-input.spec.ts`)
56
+ - Multiple input field rendering
57
+ - Auto-focus on next field
58
+ - Backspace navigation
59
+ - Numeric input restriction
60
+ - Paste functionality for complete OTP
61
+ - Different OTP lengths (4, 6, 8 digits)
62
+ - Rapid input handling
63
+ - Focus management
64
+
65
+ - **TextArea Component** (`additional-components.spec.ts`)
66
+ - Multi-line text input
67
+ - Character count display
68
+ - Resize functionality
69
+ - Validation states
70
+
71
+ - **Phone Input Component** (`additional-components.spec.ts`)
72
+ - Country selector dropdown
73
+ - Phone number input validation
74
+ - Flag display
75
+ - International formatting
76
+
77
+ ### UI Components
78
+ - **Accordion Component** (`accordion.spec.ts`)
79
+ - Multiple accordion items rendering
80
+ - Expand/collapse functionality
81
+ - Keyboard navigation (Enter/Space)
82
+ - Multiple items expanded simultaneously
83
+ - Accessibility attributes (aria-expanded)
84
+
85
+ - **Dialog/Modal Components** (`dialog.spec.ts`)
86
+ - Dialog opening/closing
87
+ - Content visibility
88
+ - Escape key closing
89
+ - Outside click closing
90
+ - Focus management
91
+ - Multiple dialogs handling
92
+ - Animations and transitions
93
+
94
+ ### Laboratory Components (`laboratory-components.spec.ts`)
95
+ - **Card Components**
96
+ - Appointment Card
97
+ - Document Card
98
+ - Info Card
99
+ - Ticket Card
100
+
101
+ - **Chat Components**
102
+ - Chat Message
103
+ - Chat Notification
104
+ - Chat Box Image
105
+ - Chat Message Badge
106
+
107
+ - **Progress Components**
108
+ - Progress Circle
109
+ - Progress Linear
110
+
111
+ - **Navigation Components**
112
+ - Main Columns Bar
113
+ - Selection Column Bar
114
+ - Timeline
115
+
116
+ - **Status Components**
117
+ - Tag Label
118
+ - Tag Label Group
119
+ - Status Notification
120
+
121
+ ### Additional Components (`additional-components.spec.ts`)
122
+ - **Audio Component**
123
+ - Audio controls
124
+ - Waveform display
125
+ - Play/pause functionality
126
+
127
+ - **Edit Field Component**
128
+ - Toggle between edit/display mode
129
+ - Save changes functionality
130
+ - Cancel editing
131
+
132
+ - **Notification Components**
133
+ - Notification Bubble
134
+ - Dismissible notifications
135
+
136
+ - **Icon Components**
137
+ - Various icon components
138
+ - Icon Bullet and Icon Bullet List
139
+
140
+ ### Cross-Component Tests
141
+ - **Integration Tests**
142
+ - Components working together
143
+ - Independent state management
144
+ - Tab navigation across components
145
+
146
+ - **Performance Tests**
147
+ - Render time verification
148
+ - Rapid interaction handling
149
+ - Memory usage optimization
150
+
151
+ - **Accessibility Tests**
152
+ - ARIA attributes verification
153
+ - Keyboard navigation
154
+ - Focus management
155
+ - Screen reader compatibility
156
+
157
+ ## Test Configuration
158
+
159
+ The tests are configured to run against Storybook at `http://localhost:7000` and include:
160
+
161
+ - **Multi-browser testing**: Chrome, Firefox, Safari, Mobile Chrome, Mobile Safari
162
+ - **Automatic screenshot capture** on failures
163
+ - **Trace recording** for debugging
164
+ - **Parallel execution** for faster test runs
165
+ - **Retry logic** for flaky tests
166
+
167
+ ## Running Tests
168
+
169
+ ```bash
170
+ # Run all tests
171
+ npm test
172
+
173
+ # Run tests in headed mode (visible browser)
174
+ npm run test:headed
175
+
176
+ # Run tests with UI mode
177
+ npm run test:ui
178
+
179
+ # View test report
180
+ npm run test:report
181
+ ```
182
+
183
+ ## Test Structure
184
+
185
+ Each test file follows a consistent pattern:
186
+
187
+ 1. **Setup**: Navigate to the component's Storybook story
188
+ 2. **Rendering Tests**: Verify component displays correctly
189
+ 3. **Interaction Tests**: Test user interactions (click, type, keyboard)
190
+ 4. **State Tests**: Verify component states (disabled, error, loading)
191
+ 5. **Accessibility Tests**: Check ARIA attributes and keyboard navigation
192
+ 6. **Edge Cases**: Test boundary conditions and error scenarios
193
+
194
+ ## Coverage Statistics
195
+
196
+ This test suite provides comprehensive coverage of:
197
+ - ✅ 15+ Core UI Components
198
+ - ✅ 10+ Form Components
199
+ - ✅ 15+ Laboratory Components
200
+ - ✅ 5+ Specialized Components
201
+ - ✅ Integration scenarios
202
+ - ✅ Accessibility compliance
203
+ - ✅ Performance benchmarks
204
+
205
+ ## Maintenance
206
+
207
+ Tests are designed to be maintainable and robust:
208
+ - Use of flexible selectors that work across different implementations
209
+ - Graceful handling of missing stories/components
210
+ - Clear test descriptions and error messages
211
+ - Modular structure for easy updates
212
+
213
+ ## Contributing
214
+
215
+ When adding new components or modifying existing ones:
216
+
217
+ 1. Add corresponding test cases to the appropriate spec file
218
+ 2. Follow the established naming conventions
219
+ 3. Include accessibility tests for new interactive elements
220
+ 4. Test both happy path and error scenarios
221
+ 5. Verify tests pass across all configured browsers