@myparcel-dev/pdk-admin-component-tests 1.13.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 (113) hide show
  1. package/CHANGELOG.md +260 -0
  2. package/dist/TestSuite.d.ts +21 -0
  3. package/dist/common/index.d.ts +4 -0
  4. package/dist/common/runCommonComponentTests.d.ts +1 -0
  5. package/dist/common/runCommonInputTests.d.ts +2 -0
  6. package/dist/common/runHasPropTest.d.ts +1 -0
  7. package/dist/common/runHasSlotTest.d.ts +4 -0
  8. package/dist/components/index.d.ts +36 -0
  9. package/dist/components/runBadgeTest.d.ts +1 -0
  10. package/dist/components/runBoxTest.d.ts +1 -0
  11. package/dist/components/runButtonTest.d.ts +1 -0
  12. package/dist/components/runCheckboxGroupTest.d.ts +1 -0
  13. package/dist/components/runCheckboxInputTest.d.ts +1 -0
  14. package/dist/components/runCodeEditorTest.d.ts +1 -0
  15. package/dist/components/runColTest.d.ts +1 -0
  16. package/dist/components/runCurrencyInputTest.d.ts +1 -0
  17. package/dist/components/runDropDownButtonTest.d.ts +1 -0
  18. package/dist/components/runDropOffInputTest.d.ts +1 -0
  19. package/dist/components/runFormGroupTest.d.ts +1 -0
  20. package/dist/components/runHeadingTest.d.ts +1 -0
  21. package/dist/components/runIconTest.d.ts +1 -0
  22. package/dist/components/runImageTest.d.ts +1 -0
  23. package/dist/components/runLinkTest.d.ts +1 -0
  24. package/dist/components/runLoaderTest.d.ts +1 -0
  25. package/dist/components/runModalTest.d.ts +1 -0
  26. package/dist/components/runMultiDateInputTest.d.ts +1 -0
  27. package/dist/components/runMultiSelectInputTest.d.ts +1 -0
  28. package/dist/components/runNotificationTest.d.ts +1 -0
  29. package/dist/components/runNumberInputTest.d.ts +1 -0
  30. package/dist/components/runPlainWrapperTest.d.ts +1 -0
  31. package/dist/components/runRadioGroupTest.d.ts +1 -0
  32. package/dist/components/runRadioInputTest.d.ts +1 -0
  33. package/dist/components/runRowTest.d.ts +1 -0
  34. package/dist/components/runSelectInputTest.d.ts +1 -0
  35. package/dist/components/runSettingsDividerTest.d.ts +1 -0
  36. package/dist/components/runShippingMethodsInputTest.d.ts +1 -0
  37. package/dist/components/runTabNavButtonTest.d.ts +1 -0
  38. package/dist/components/runTableColTest.d.ts +1 -0
  39. package/dist/components/runTableRowTest.d.ts +1 -0
  40. package/dist/components/runTableTest.d.ts +1 -0
  41. package/dist/components/runTextAreaTest.d.ts +1 -0
  42. package/dist/components/runTextInputTest.d.ts +1 -0
  43. package/dist/components/runTimeInputTest.d.ts +1 -0
  44. package/dist/components/runToggleInputTest.d.ts +1 -0
  45. package/dist/components/runTriStateInputTest.d.ts +1 -0
  46. package/dist/helpers/createInputOptions.d.ts +4 -0
  47. package/dist/helpers/index.d.ts +1 -0
  48. package/dist/helpers/wrapperPlugin.d.ts +2 -0
  49. package/dist/index.d.ts +3 -0
  50. package/dist/setup.d.ts +1 -0
  51. package/dist/tests/executeAdminComponentTest.d.ts +3 -0
  52. package/dist/tests/executePdkComponentTests.d.ts +2 -0
  53. package/dist/tests/index.d.ts +3 -0
  54. package/dist/tests/testMap.d.ts +4 -0
  55. package/dist/types.d.ts +10 -0
  56. package/package.json +62 -0
  57. package/src/TestSuite.ts +147 -0
  58. package/src/__tests__/__snapshots__/exports.spec.ts.snap +177 -0
  59. package/src/__tests__/exports.spec.ts +8 -0
  60. package/src/common/index.ts +4 -0
  61. package/src/common/runCommonComponentTests.ts +15 -0
  62. package/src/common/runCommonInputTests.ts +66 -0
  63. package/src/common/runHasPropTest.ts +17 -0
  64. package/src/common/runHasSlotTest.ts +25 -0
  65. package/src/components/index.ts +36 -0
  66. package/src/components/runBadgeTest.ts +9 -0
  67. package/src/components/runBoxTest.ts +17 -0
  68. package/src/components/runButtonTest.ts +37 -0
  69. package/src/components/runCheckboxGroupTest.ts +29 -0
  70. package/src/components/runCheckboxInputTest.ts +13 -0
  71. package/src/components/runCodeEditorTest.ts +11 -0
  72. package/src/components/runColTest.ts +11 -0
  73. package/src/components/runCurrencyInputTest.ts +13 -0
  74. package/src/components/runDropDownButtonTest.ts +81 -0
  75. package/src/components/runDropOffInputTest.ts +32 -0
  76. package/src/components/runFormGroupTest.ts +17 -0
  77. package/src/components/runHeadingTest.ts +12 -0
  78. package/src/components/runIconTest.ts +16 -0
  79. package/src/components/runImageTest.ts +22 -0
  80. package/src/components/runLinkTest.ts +12 -0
  81. package/src/components/runLoaderTest.ts +9 -0
  82. package/src/components/runModalTest.ts +28 -0
  83. package/src/components/runMultiDateInputTest.ts +10 -0
  84. package/src/components/runMultiSelectInputTest.ts +17 -0
  85. package/src/components/runNotificationTest.ts +40 -0
  86. package/src/components/runNumberInputTest.ts +13 -0
  87. package/src/components/runPlainWrapperTest.ts +12 -0
  88. package/src/components/runRadioGroupTest.ts +26 -0
  89. package/src/components/runRadioInputTest.ts +13 -0
  90. package/src/components/runRowTest.ts +11 -0
  91. package/src/components/runSelectInputTest.ts +30 -0
  92. package/src/components/runSettingsDividerTest.ts +16 -0
  93. package/src/components/runShippingMethodsInputTest.ts +23 -0
  94. package/src/components/runTabNavButtonTest.ts +17 -0
  95. package/src/components/runTableColTest.ts +11 -0
  96. package/src/components/runTableRowTest.ts +11 -0
  97. package/src/components/runTableTest.ts +13 -0
  98. package/src/components/runTextAreaTest.ts +12 -0
  99. package/src/components/runTextInputTest.ts +12 -0
  100. package/src/components/runTimeInputTest.ts +13 -0
  101. package/src/components/runToggleInputTest.ts +16 -0
  102. package/src/components/runTriStateInputTest.ts +15 -0
  103. package/src/helpers/createInputOptions.ts +19 -0
  104. package/src/helpers/index.ts +1 -0
  105. package/src/helpers/wrapperPlugin.ts +20 -0
  106. package/src/index.ts +5 -0
  107. package/src/setup.ts +4 -0
  108. package/src/tests/executeAdminComponentTest.ts +47 -0
  109. package/src/tests/executePdkComponentTests.ts +19 -0
  110. package/src/tests/index.ts +3 -0
  111. package/src/tests/testMap.ts +111 -0
  112. package/src/types.ts +24 -0
  113. package/src/vue.shims.d.ts +26 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,260 @@
1
+ # Changelog
2
+
3
+ <!-- MONOWEAVE:BELOW -->
4
+
5
+ ## [1.13.0](https://github.com/myparcelnl/js-pdk/compare/@myparcel-dev/pdk-admin-component-tests@1.12.0...@myparcel-dev/pdk-admin-component-tests@1.13.0) "@myparcel-dev/pdk-admin-component-tests" (2025-12-23)
6
+
7
+
8
+ ### Features
9
+
10
+ * migrate to [@myparcel-dev](https://github.com/myparcel-dev) scope ([#289](https://github.com/myparcelnl/js-pdk/issues/289)) ([ca169be](https://github.com/myparcelnl/js-pdk/commit/ca169bec42dcf7174ce20b1bfb392ae620b6c7fd))
11
+
12
+
13
+
14
+
15
+ ## [1.11.5](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-component-tests@1.11.4...@myparcel-pdk/admin-component-tests@1.11.5) "@myparcel-pdk/admin-component-tests" (2025-11-10)
16
+
17
+
18
+
19
+
20
+ ## [1.11.0](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-component-tests@1.9.0...@myparcel-pdk/admin-component-tests@1.11.0) "@myparcel-pdk/admin-component-tests" (2025-10-10)
21
+
22
+
23
+ ### Features
24
+
25
+ * **js-pdk:** add option to list closed days for shop ([#271](https://github.com/myparcelnl/js-pdk/issues/271)) ([10fc030](https://github.com/myparcelnl/js-pdk/commit/10fc030bc1c9249ec1f788250eaa471ac170f3bb))
26
+
27
+
28
+
29
+
30
+ ## [1.5.4](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-component-tests@1.5.3...@myparcel-pdk/admin-component-tests@1.5.4) "@myparcel-pdk/admin-component-tests" (2024-11-20)
31
+
32
+
33
+
34
+
35
+ ## [1.5.3](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-component-tests@1.4.1...@myparcel-pdk/admin-component-tests@1.5.3) "@myparcel-pdk/admin-component-tests" (2024-10-24)
36
+
37
+
38
+
39
+
40
+ ## [1.4.1](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-component-tests@1.4.0...@myparcel-pdk/admin-component-tests@1.4.1) "@myparcel-pdk/admin-component-tests" (2024-10-24)
41
+
42
+
43
+
44
+
45
+ ## [1.4.0](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-component-tests@1.3.0...@myparcel-pdk/admin-component-tests@1.4.0) "@myparcel-pdk/admin-component-tests" (2024-10-23)
46
+
47
+
48
+ ### Features
49
+
50
+ * **admin:** add download logs action ([#221](https://github.com/myparcelnl/js-pdk/issues/221)) ([ac60e73](https://github.com/myparcelnl/js-pdk/commit/ac60e734127fd94df454f002c632f43a48d2eb06))
51
+
52
+
53
+
54
+
55
+ ## [1.3.0](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-component-tests@1.2.4...@myparcel-pdk/admin-component-tests@1.3.0) "@myparcel-pdk/admin-component-tests" (2024-10-16)
56
+
57
+
58
+ ### Features
59
+
60
+ * **admin:** add useToggleInputContext composable ([#223](https://github.com/myparcelnl/js-pdk/issues/223)) ([c0e1f59](https://github.com/myparcelnl/js-pdk/commit/c0e1f59604e406cefa46451b756f4331f01c93bf))
61
+
62
+
63
+ ### Bug Fixes
64
+
65
+ * **admin:** make shipping methods input optional to avoid error ([#220](https://github.com/myparcelnl/js-pdk/issues/220)) ([2f72250](https://github.com/myparcelnl/js-pdk/commit/2f722504dc99a10220416bf87b69821448a3507d))
66
+
67
+
68
+
69
+
70
+ ## [1.2.3](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-component-tests@1.2.2...@myparcel-pdk/admin-component-tests@1.2.3) "@myparcel-pdk/admin-component-tests" (2024-10-04)
71
+
72
+
73
+
74
+
75
+ ## [1.2.0](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-component-tests@1.1.1...@myparcel-pdk/admin-component-tests@1.2.0) "@myparcel-pdk/admin-component-tests" (2024-09-04)
76
+
77
+
78
+ ### Features
79
+
80
+ * **tests:** add test suite class for more streamlined test writing ([2129c48](https://github.com/myparcelnl/js-pdk/commit/2129c484ba895591716f06ce96315368aaff1db6))
81
+
82
+
83
+
84
+
85
+ ## [1.1.1](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-component-tests@1.1.0...@myparcel-pdk/admin-component-tests@1.1.1) "@myparcel-pdk/admin-component-tests" (2024-08-07)
86
+
87
+
88
+ ### Bug Fixes
89
+
90
+ * **tests:** install missing vtu wrapper plugin ([e36ce0a](https://github.com/myparcelnl/js-pdk/commit/e36ce0a0450cfec6aac178bb09c0b94933d206c1))
91
+
92
+
93
+
94
+
95
+ ## [1.1.0](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-component-tests@1.0.0...@myparcel-pdk/admin-component-tests@1.1.0) "@myparcel-pdk/admin-component-tests" (2024-06-05)
96
+
97
+
98
+ ### Features
99
+
100
+ * **admin:** add shipping methods input ([#210](https://github.com/myparcelnl/js-pdk/issues/210)) ([79758ad](https://github.com/myparcelnl/js-pdk/commit/79758ad39bd9c0dd5d2258d79f379ac5f1ccc790))
101
+
102
+
103
+
104
+
105
+ ## [1.0.0](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-component-tests@1.0.0-alpha.1...@myparcel-pdk/admin-component-tests@1.0.0) "@myparcel-pdk/admin-component-tests" (2024-04-11)
106
+
107
+
108
+ ### ⚠ BREAKING CHANGES
109
+
110
+ * update node requirement to 20
111
+
112
+ ### Miscellaneous Chores
113
+
114
+ * update node requirement to 20 ([e3f867f](https://github.com/myparcelnl/js-pdk/commit/e3f867fd3e19245154748a6858dbad4b56673fa3))
115
+
116
+
117
+
118
+
119
+ ## [1.0.0-beta.3](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-component-tests@1.0.0-beta.2...@myparcel-pdk/admin-component-tests@1.0.0-beta.3) "@myparcel-pdk/admin-component-tests" (2024-03-14)
120
+
121
+
122
+ ### Bug Fixes
123
+
124
+ * **admin-component-tests:** disable broken test ([68d1500](https://github.com/myparcelnl/js-pdk/commit/68d1500b8f6ff72d59e49f01c4e6c426c12b56a2))
125
+ * **admin-component-tests:** fix settings divider test ([3a01b62](https://github.com/myparcelnl/js-pdk/commit/3a01b62ee4ddc2b979777489b7e2ad49a5f27b09))
126
+
127
+
128
+
129
+
130
+ ## [1.0.0-beta.1](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-component-tests@1.0.0-beta.0...@myparcel-pdk/admin-component-tests@1.0.0-beta.1) "@myparcel-pdk/admin-component-tests" (2024-03-13)
131
+
132
+ ### Bug Fixes
133
+
134
+ - **admin-component-tests:** disable broken test ([68d1500](https://github.com/myparcelnl/js-pdk/commit/68d1500b8f6ff72d59e49f01c4e6c426c12b56a2))
135
+ - **admin-component-tests:** fix settings divider test ([3a01b62](https://github.com/myparcelnl/js-pdk/commit/3a01b62ee4ddc2b979777489b7e2ad49a5f27b09))
136
+
137
+ ## [1.0.0-beta.0](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-component-tests@1.0.0-alpha.1...@myparcel-pdk/admin-component-tests@1.0.0-beta.0) "@myparcel-pdk/admin-component-tests" (2024-03-06)
138
+
139
+ ### Bug Fixes
140
+
141
+ - **admin-component-tests:** fix more failing tests ([927bc9d](https://github.com/myparcelnl/js-pdk/commit/927bc9d5dcca7f378591ea95a26b66ed2de5f786))
142
+ - **admin-component-tests:** fix some errors in component tests ([550a8ed](https://github.com/myparcelnl/js-pdk/commit/550a8ed1d3fa8a3f129175b40ab1fbcc0a7a31c2))
143
+ - **admin-component-tests:** fix vitest error about using nested test() ([75b7a42](https://github.com/myparcelnl/js-pdk/commit/75b7a42340d981d01007eda02fa07c6849b1a5a4))
144
+ - split testing to separate export path ([ff576af](https://github.com/myparcelnl/js-pdk/commit/ff576af362791571f9b2e074d956d0f45316e882))
145
+
146
+ ## [1.0.0-alpha.124](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-component-tests@1.0.0-alpha.123...@myparcel-pdk/admin-component-tests@1.0.0-alpha.124) "@myparcel-pdk/admin-component-tests" (2023-11-01)
147
+
148
+ ## [1.0.0-alpha.117](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-component-tests@1.0.0-alpha.116...@myparcel-pdk/admin-component-tests@1.0.0-alpha.117) "@myparcel-pdk/admin-component-tests" (2023-10-11)
149
+
150
+ ### Features
151
+
152
+ - **admin:** support more complex translations ([aba2d2a](https://github.com/myparcelnl/js-pdk/commit/aba2d2a0f6da5d0eb54b9f93304e1d69e245fb3e))
153
+
154
+ ## [1.0.0-alpha.114](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-component-tests@1.0.0-alpha.113...@myparcel-pdk/admin-component-tests@1.0.0-alpha.114) "@myparcel-pdk/admin-component-tests" (2023-09-28)
155
+
156
+ ## [1.0.0-alpha.110](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-component-tests@1.0.0-alpha.109...@myparcel-pdk/admin-component-tests@1.0.0-alpha.110) "@myparcel-pdk/admin-component-tests" (2023-09-11)
157
+
158
+ ### Bug Fixes
159
+
160
+ - **admin:** export component prop and emit types ([ca7a3c8](https://github.com/myparcelnl/js-pdk/commit/ca7a3c83f774859494ca4c11831bbd6c7e755136))
161
+
162
+ ## [1.0.0-alpha.107](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-component-tests@1.0.0-alpha.106...@myparcel-pdk/admin-component-tests@1.0.0-alpha.107) "@myparcel-pdk/admin-component-tests" (2023-09-06)
163
+
164
+ ## [1.0.0-alpha.98](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-component-tests@1.0.0-alpha.97...@myparcel-pdk/admin-component-tests@1.0.0-alpha.98) "@myparcel-pdk/admin-component-tests" (2023-08-08)
165
+
166
+ ## [1.0.0-alpha.97](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-component-tests@1.0.0-alpha.96...@myparcel-pdk/admin-component-tests@1.0.0-alpha.97) "@myparcel-pdk/admin-component-tests" (2023-08-04)
167
+
168
+ ## [1.0.0-alpha.96](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-component-tests@1.0.0-alpha.95...@myparcel-pdk/admin-component-tests@1.0.0-alpha.96) "@myparcel-pdk/admin-component-tests" (2023-08-03)
169
+
170
+ ## [1.0.0-alpha.93](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-component-tests@1.0.0-alpha.92...@myparcel-pdk/admin-component-tests@1.0.0-alpha.93) "@myparcel-pdk/admin-component-tests" (2023-08-03)
171
+
172
+ ## [1.0.0-alpha.90](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-component-tests@1.0.0-alpha.89...@myparcel-pdk/admin-component-tests@1.0.0-alpha.90) "@myparcel-pdk/admin-component-tests" (2023-07-26)
173
+
174
+ ### Bug Fixes
175
+
176
+ - **npm:** update repository field ([e940854](https://github.com/myparcelnl/js-pdk/commit/e940854ba1d99c0fcdada8b66f88a7c7e6060272))
177
+
178
+ ## [1.0.0-alpha.85](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-component-tests@1.0.0-alpha.84...@myparcel-pdk/admin-component-tests@1.0.0-alpha.85) "@myparcel-pdk/admin-component-tests" (2023-07-11)
179
+
180
+ ## [1.0.0-alpha.84](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-component-tests@1.0.0-alpha.83...@myparcel-pdk/admin-component-tests@1.0.0-alpha.84) "@myparcel-pdk/admin-component-tests" (2023-07-11)
181
+
182
+ ## [1.0.0-alpha.82](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-component-tests@1.0.0-alpha.81...@myparcel-pdk/admin-component-tests@1.0.0-alpha.82) "@myparcel-pdk/admin-component-tests" (2023-07-04)
183
+
184
+ ## [1.0.0-alpha.80](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-component-tests@1.0.0-alpha.79...@myparcel-pdk/admin-component-tests@1.0.0-alpha.80) "@myparcel-pdk/admin-component-tests" (2023-07-03)
185
+
186
+ ### Features
187
+
188
+ - **components:** add tri-state input ([8a27655](https://github/myparcelnl/js-pdk/commit/8a27655003ff7ee0ee363f78235fbd74cc0c0096))
189
+
190
+ ## [1.0.0-alpha.79](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-component-tests@1.0.0-alpha.78...@myparcel-pdk/admin-component-tests@1.0.0-alpha.79) "@myparcel-pdk/admin-component-tests" (2023-06-28)
191
+
192
+ ### Features
193
+
194
+ - **admin:** improve carrier logic ([6783afd](https://github/myparcelnl/js-pdk/commit/6783afd7cc8f0903b1e8eedd53f11f9b0a8214fa))
195
+
196
+ ## [1.0.0-alpha.75](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-component-tests@1.0.0-alpha.74...@myparcel-pdk/admin-component-tests@1.0.0-alpha.75) "@myparcel-pdk/admin-component-tests" (2023-06-09)
197
+
198
+ ## [1.0.0-alpha.73](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-component-tests@1.0.0-alpha.72...@myparcel-pdk/admin-component-tests@1.0.0-alpha.73) "@myparcel-pdk/admin-component-tests" (2023-06-07)
199
+
200
+ ## [1.0.0-alpha.72](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-component-tests@1.0.0-alpha.71...@myparcel-pdk/admin-component-tests@1.0.0-alpha.72) "@myparcel-pdk/admin-component-tests" (2023-06-06)
201
+
202
+ ## [1.0.0-alpha.71](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-component-tests@1.0.0-alpha.70...@myparcel-pdk/admin-component-tests@1.0.0-alpha.71) "@myparcel-pdk/admin-component-tests" (2023-06-06)
203
+
204
+ ## [1.0.0-alpha.67](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-component-tests@1.0.0-alpha.66...@myparcel-pdk/admin-component-tests@1.0.0-alpha.67) "@myparcel-pdk/admin-component-tests" (2023-05-31)
205
+
206
+ ### Bug Fixes
207
+
208
+ - **meta:** fix all ts errors ([dfa0bbb](https://github/myparcelnl/js-pdk/commit/dfa0bbb308c4863ce0fb4c9a0d55f2b5fa8fdb6c))
209
+
210
+ ## [1.0.0-alpha.66](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-component-tests@1.0.0-alpha.65...@myparcel-pdk/admin-component-tests@1.0.0-alpha.66) "@myparcel-pdk/admin-component-tests" (2023-05-26)
211
+
212
+ ### Bug Fixes
213
+
214
+ - restore missing types ([903cfb9](https://github/myparcelnl/js-pdk/commit/903cfb95f161bb5b49fbb91c4f96a7e44c524db8))
215
+
216
+ ## [1.0.0-alpha.65](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-component-tests@1.0.0-alpha.64...@myparcel-pdk/admin-component-tests@1.0.0-alpha.65) "@myparcel-pdk/admin-component-tests" (2023-05-25)
217
+
218
+ ## [1.0.0-alpha.64](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-component-tests@1.0.0-alpha.63...@myparcel-pdk/admin-component-tests@1.0.0-alpha.64) "@myparcel-pdk/admin-component-tests" (2023-05-25)
219
+
220
+ ### ⚠ BREAKING CHANGES
221
+
222
+ - change all packages so imports don't need /src anymore
223
+
224
+ ### Code Refactoring
225
+
226
+ - change all packages so imports don't need /src anymore ([892306b](https://github/myparcelnl/js-pdk/commit/892306bd3307fe8d5d011bbf6eb7654f7365347a))
227
+
228
+ ## [1.0.0-alpha.54](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-component-tests@1.0.0-alpha.53...@myparcel-pdk/admin-component-tests@1.0.0-alpha.54) "@myparcel-pdk/admin-component-tests" (2023-05-02)
229
+
230
+ ## [1.0.0-alpha.53](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-component-tests@1.0.0-alpha.52...@myparcel-pdk/admin-component-tests@1.0.0-alpha.53) "@myparcel-pdk/admin-component-tests" (2023-05-02)
231
+
232
+ ### Bug Fixes
233
+
234
+ - **admin-core:** improve translate function ([506bcf6](https://github/myparcelnl/js-pdk/commit/506bcf60562027a69be8994ac9cf0081b9bcdd52))
235
+
236
+ ## [1.0.0-alpha.49](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-component-tests@1.0.0-alpha.48...@myparcel-pdk/admin-component-tests@1.0.0-alpha.49) "@myparcel-pdk/admin-component-tests" (2023-04-20)
237
+
238
+ ## [1.0.0-alpha.45](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-component-tests@1.0.0-alpha.44...@myparcel-pdk/admin-component-tests@1.0.0-alpha.45) "@myparcel-pdk/admin-component-tests" (2023-04-12)
239
+
240
+ ## [1.0.0-alpha.43](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-component-tests@1.0.0-alpha.42...@myparcel-pdk/admin-component-tests@1.0.0-alpha.43) "@myparcel-pdk/admin-component-tests" (2023-04-05)
241
+
242
+ ## [1.0.0-alpha.24](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-component-tests@1.0.0-alpha.23...@myparcel-pdk/admin-component-tests@1.0.0-alpha.24) "@myparcel-pdk/admin-component-tests" (2023-03-15)
243
+
244
+ ## [1.0.0-alpha.14](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-component-tests@1.0.0-alpha.13...@myparcel-pdk/admin-component-tests@1.0.0-alpha.14) "@myparcel-pdk/admin-component-tests" (2023-03-10)
245
+
246
+ ## [1.0.0-alpha.2](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/admin-component-tests@1.0.0-alpha.1...@myparcel-pdk/admin-component-tests@1.0.0-alpha.2) "@myparcel-pdk/admin-component-tests" (2023-02-22)
247
+
248
+ ### Features
249
+
250
+ - add checkout app ([ee2543b](https://github/myparcelnl/js-pdk/commit/ee2543bc90c643b14e668447a0d06ed173e5baae))
251
+
252
+ ### Bug Fixes
253
+
254
+ - **admin-component-tests:** add more tests ([f847553](https://github/myparcelnl/js-pdk/commit/f847553988a623a1bc04bb9a56639e94e995043e))
255
+ - **admin-demo:** improve demo ([f7c6aaa](https://github/myparcelnl/js-pdk/commit/f7c6aaaa97497e85364f369349a097c268cffd9e))
256
+ - fix all components ([d4c3e85](https://github/myparcelnl/js-pdk/commit/d4c3e85aac089a3f1c66b4b923f3728916f50edb))
257
+ - fix build errors ([8421d80](https://github/myparcelnl/js-pdk/commit/8421d80a8fc7f4173761b2787041e1f0ba546f6b))
258
+ - fix imports ([#93](https://github/myparcelnl/js-pdk/issues/93)) ([8cd0b48](https://github/myparcelnl/js-pdk/commit/8cd0b48b89f865b5ee7c05086e41b86209f207f6))
259
+ - make split between backend and frontend endpoints ([ce5ab02](https://github/myparcelnl/js-pdk/commit/ce5ab0284ff41f1b920a8ad60af31b24c7faaa42))
260
+ - rename card to box ([5e874f2](https://github/myparcelnl/js-pdk/commit/5e874f2a6207690ada336770161b678a16a2beba))
@@ -0,0 +1,21 @@
1
+ import { type Component as ComponentType } from 'vue';
2
+ import { type DOMWrapper, type VueWrapper } from '@vue/test-utils';
3
+ import { type AdminComponent } from '@myparcel-dev/pdk-admin';
4
+ import { type InteractiveElementConfiguration } from '@myparcel-dev/vue-form-builder';
5
+ import { type AdditionalOptions, type ComponentTestOptions, type TestComponentMountingOptions } from './types';
6
+ export declare class TestSuite<TestOptions extends ComponentTestOptions = ComponentTestOptions, Component extends ComponentType = ComponentType> {
7
+ private defaultOptions;
8
+ private readonly component;
9
+ private readonly componentName;
10
+ constructor(componentName: AdminComponent | string, component: Component);
11
+ runCommonComponentTests(options?: TestComponentMountingOptions<Component, TestOptions> | undefined): void;
12
+ runHasSlotTest(slot?: string): void;
13
+ runHasPropTest(prop: string, value?: unknown): void;
14
+ runCommonInputTests(additionalOptions?: AdditionalOptions): void;
15
+ createInputOptions<T>(modelValue?: T, options?: Partial<InteractiveElementConfiguration>): TestComponentMountingOptions<Component, TestOptions>;
16
+ getInputWrapper<NodeType extends Node>(wrapper: VueWrapper<Component>): DOMWrapper<NodeType>;
17
+ getSelectWrapper<NodeType extends Node>(wrapper: VueWrapper<Component>): DOMWrapper<NodeType>;
18
+ setOptions(options: TestComponentMountingOptions<Component, TestOptions>): TestComponentMountingOptions<Component, TestOptions>;
19
+ private getElementWrapper;
20
+ private resolveOptions;
21
+ }
@@ -0,0 +1,4 @@
1
+ export * from './runCommonComponentTests';
2
+ export * from './runCommonInputTests';
3
+ export * from './runHasPropTest';
4
+ export * from './runHasSlotTest';
@@ -0,0 +1 @@
1
+ export declare const runCommonComponentTests: <T extends import("../types").ComponentTestOptions = import("../types").ComponentTestOptions>(component: import("vue").Component, options?: import("@vue/test-utils").ComponentMountingOptions<T> | undefined) => void;
@@ -0,0 +1,2 @@
1
+ import { type AdditionalOptions } from '../types';
2
+ export declare const runCommonInputTests: <T extends import("../types").ComponentTestOptions = import("../types").ComponentTestOptions>(component: import("vue").Component, options?: import("@vue/test-utils").ComponentMountingOptions<T> | undefined, additionalOptions?: AdditionalOptions) => void;
@@ -0,0 +1 @@
1
+ export declare const runHasPropTest: <T extends import("../types").ComponentTestOptions = import("../types").ComponentTestOptions>(component: import("vue").Component, options: import("@vue/test-utils").ComponentMountingOptions<T> | undefined, prop: string, value?: unknown) => void;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Checks if the html content passed to the slot exists anywhere in the component.
3
+ */
4
+ export declare const runHasSlotTest: <T extends import("../types").ComponentTestOptions = import("../types").ComponentTestOptions>(component: import("vue").Component, options?: import("@vue/test-utils").ComponentMountingOptions<T> | undefined, slot?: string | undefined) => void;
@@ -0,0 +1,36 @@
1
+ export * from './runBadgeTest';
2
+ export * from './runBoxTest';
3
+ export * from './runButtonTest';
4
+ export * from './runCheckboxGroupTest';
5
+ export * from './runCheckboxInputTest';
6
+ export * from './runCodeEditorTest';
7
+ export * from './runColTest';
8
+ export * from './runCurrencyInputTest';
9
+ export * from './runDropDownButtonTest';
10
+ export * from './runDropOffInputTest';
11
+ export * from './runFormGroupTest';
12
+ export * from './runHeadingTest';
13
+ export * from './runIconTest';
14
+ export * from './runImageTest';
15
+ export * from './runLinkTest';
16
+ export * from './runLoaderTest';
17
+ export * from './runModalTest';
18
+ export * from './runMultiSelectInputTest';
19
+ export * from './runNotificationTest';
20
+ export * from './runNumberInputTest';
21
+ export * from './runPlainWrapperTest';
22
+ export * from './runRadioGroupTest';
23
+ export * from './runRadioInputTest';
24
+ export * from './runRowTest';
25
+ export * from './runSelectInputTest';
26
+ export * from './runSettingsDividerTest';
27
+ export * from './runShippingMethodsInputTest';
28
+ export * from './runTabNavButtonTest';
29
+ export * from './runTableColTest';
30
+ export * from './runTableRowTest';
31
+ export * from './runTableTest';
32
+ export * from './runTextAreaTest';
33
+ export * from './runTextInputTest';
34
+ export * from './runTimeInputTest';
35
+ export * from './runToggleInputTest';
36
+ export * from './runTriStateInputTest';
@@ -0,0 +1 @@
1
+ export declare const runBadgeTest: (component: Omit<import("vue").Component, "props">) => void;
@@ -0,0 +1 @@
1
+ export declare const runBoxTest: (component: Omit<import("vue").Component, "props">) => void;
@@ -0,0 +1 @@
1
+ export declare const runButtonTest: (component: Omit<import("vue").Component, "props">) => void;
@@ -0,0 +1 @@
1
+ export declare const runCheckboxGroupTest: (component: Omit<import("vue").Component, "props">) => void;
@@ -0,0 +1 @@
1
+ export declare const runCheckboxInputTest: (component: Omit<import("vue").Component, "props">) => void;
@@ -0,0 +1 @@
1
+ export declare const runCodeEditorTest: (component: Omit<import("vue").Component, "props">) => void;
@@ -0,0 +1 @@
1
+ export declare const runColTest: (component: Omit<import("vue").Component, "props">) => void;
@@ -0,0 +1 @@
1
+ export declare const runCurrencyInputTest: (component: Omit<import("vue").Component, "props">) => void;
@@ -0,0 +1 @@
1
+ export declare const runDropDownButtonTest: (component: Omit<import("vue").Component, "props">) => void;
@@ -0,0 +1 @@
1
+ export declare const runDropOffInputTest: (component: Omit<import("vue").Component, "props">) => void;
@@ -0,0 +1 @@
1
+ export declare const runFormGroupTest: (component: Omit<import("vue").Component, "props">) => void;
@@ -0,0 +1 @@
1
+ export declare const runHeadingTest: (component: Omit<import("vue").Component, "props">) => void;
@@ -0,0 +1 @@
1
+ export declare const runIconTest: <T extends import("../types").ComponentTestOptions = import("../types").ComponentTestOptions>(component: import("vue").Component) => void;
@@ -0,0 +1 @@
1
+ export declare const runImageTest: (component: Omit<import("vue").Component, "props">) => void;
@@ -0,0 +1 @@
1
+ export declare const runLinkTest: (component: Omit<import("vue").Component, "props">) => void;
@@ -0,0 +1 @@
1
+ export declare const runLoaderTest: (component: Omit<import("vue").Component, "props">) => void;
@@ -0,0 +1 @@
1
+ export declare const runModalTest: (component: Omit<import("vue").Component, "props">) => void;
@@ -0,0 +1 @@
1
+ export declare const runMultiDateInputTest: (component: Omit<import("vue").Component, "props">) => void;
@@ -0,0 +1 @@
1
+ export declare const runMultiSelectInputTest: (component: Omit<import("vue").Component, "props">) => void;
@@ -0,0 +1 @@
1
+ export declare const runNotificationTest: (component: Omit<import("vue").Component, "props">) => void;
@@ -0,0 +1 @@
1
+ export declare const runNumberInputTest: (component: Omit<import("vue").Component, "props">) => void;
@@ -0,0 +1 @@
1
+ export declare const runPlainWrapperTest: (component: Omit<import("vue").Component, "props">) => void;
@@ -0,0 +1 @@
1
+ export declare const runRadioGroupTest: (component: Omit<import("vue").Component, "props">) => void;
@@ -0,0 +1 @@
1
+ export declare const runRadioInputTest: (component: Omit<import("vue").Component, "props">) => void;
@@ -0,0 +1 @@
1
+ export declare const runRowTest: (component: Omit<import("vue").Component, "props">) => void;
@@ -0,0 +1 @@
1
+ export declare const runSelectInputTest: <T extends import("../types").ComponentTestOptions = import("../types").ComponentTestOptions>(component: import("vue").Component) => void;
@@ -0,0 +1 @@
1
+ export declare const runSettingsDividerTest: (component: Omit<import("vue").Component, "props">) => void;
@@ -0,0 +1 @@
1
+ export declare const runShippingMethodsInputTest: (component: Omit<import("vue").Component, "props">) => void;
@@ -0,0 +1 @@
1
+ export declare const runTabNavButtonTest: (component: Omit<import("vue").Component, "props">) => void;
@@ -0,0 +1 @@
1
+ export declare const runTableColTest: (component: Omit<import("vue").Component, "props">) => void;
@@ -0,0 +1 @@
1
+ export declare const runTableRowTest: (component: Omit<import("vue").Component, "props">) => void;
@@ -0,0 +1 @@
1
+ export declare const runTableTest: (component: Omit<import("vue").Component, "props">) => void;
@@ -0,0 +1 @@
1
+ export declare const runTextAreaTest: (component: Omit<import("vue").Component, "props">) => void;
@@ -0,0 +1 @@
1
+ export declare const runTextInputTest: (component: Omit<import("vue").Component, "props">) => void;
@@ -0,0 +1 @@
1
+ export declare const runTimeInputTest: (component: Omit<import("vue").Component, "props">) => void;
@@ -0,0 +1 @@
1
+ export declare const runToggleInputTest: (component: Omit<import("vue").Component, "props">) => void;
@@ -0,0 +1 @@
1
+ export declare const runTriStateInputTest: (component: Omit<import("vue").Component, "props">) => void;
@@ -0,0 +1,4 @@
1
+ import { type Component as ComponentType } from 'vue';
2
+ import { type InteractiveElementConfiguration } from '@myparcel-dev/vue-form-builder';
3
+ import { type TestComponentMountingOptions } from '../types';
4
+ export declare const createInputOptions: <T, Component extends ComponentType = ComponentType, Options extends Record<string, unknown> = Record<string, unknown>>(modelValue?: T, options?: Partial<InteractiveElementConfiguration>) => TestComponentMountingOptions<Component, Options>;
@@ -0,0 +1 @@
1
+ export * from './createInputOptions';
@@ -0,0 +1,2 @@
1
+ import { type VueWrapper } from '@vue/test-utils';
2
+ export declare const wrapperPlugin: (wrapper: VueWrapper) => Record<string, any>;
@@ -0,0 +1,3 @@
1
+ export * from '@myparcel-dev/pdk-admin';
2
+ export { TestSuite } from './TestSuite';
3
+ export { executeAdminComponentTest, executePdkComponentTests } from './tests';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ import { type Component } from 'vue';
2
+ import { type AdminComponent } from '@myparcel-dev/pdk-admin';
3
+ export declare const executeAdminComponentTest: (name: AdminComponent, component: Omit<Component, 'props'>) => void;
@@ -0,0 +1,2 @@
1
+ import { type AdminComponentMap } from '@myparcel-dev/pdk-admin';
2
+ export declare const executePdkComponentTests: (components?: Partial<AdminComponentMap>) => void;
@@ -0,0 +1,3 @@
1
+ export * from './executeAdminComponentTest';
2
+ export * from './executePdkComponentTests';
3
+ export * from './testMap';
@@ -0,0 +1,4 @@
1
+ import { type Component } from 'vue';
2
+ import { AdminComponent } from '@myparcel-dev/pdk-admin';
3
+ export type AdminComponentTest = (component: Omit<Component, 'props'>) => void;
4
+ export declare const testMap: Readonly<Record<AdminComponent, AdminComponentTest>>;
@@ -0,0 +1,10 @@
1
+ import { type Component as ComponentType, type Component } from 'vue';
2
+ import { type ComponentMountingOptions } from '@vue/test-utils';
3
+ export type ComponentTestOptions = {
4
+ $slots?: Record<string, unknown>;
5
+ };
6
+ export type PartialComponentTest<Args extends unknown[] = unknown[]> = <T extends ComponentTestOptions = ComponentTestOptions>(component: Component, options?: ComponentMountingOptions<T>, ...args: Args) => void;
7
+ export interface AdditionalOptions {
8
+ value?: unknown;
9
+ }
10
+ export type TestComponentMountingOptions<Component extends ComponentType = ComponentType, Options extends ComponentTestOptions = ComponentTestOptions> = ComponentMountingOptions<Component> & Options;
package/package.json ADDED
@@ -0,0 +1,62 @@
1
+ {
2
+ "name": "@myparcel-dev/pdk-admin-component-tests",
3
+ "version": "1.13.0",
4
+ "repository": {
5
+ "type": "git",
6
+ "url": "https://github.com/myparcelnl/js-pdk.git",
7
+ "directory": "apps/admin-component-tests"
8
+ },
9
+ "license": "MIT",
10
+ "sideEffects": false,
11
+ "type": "module",
12
+ "exports": {
13
+ ".": "./src/index.ts",
14
+ "./setup": "./src/setup.ts"
15
+ },
16
+ "types": "./dist/index.d.ts",
17
+ "files": [
18
+ "./src",
19
+ "./dist"
20
+ ],
21
+ "scripts": {
22
+ "build": "run ws:vue:build \"$(pwd)\"",
23
+ "clean": "run ws:clean \"$(pwd)\"",
24
+ "emit": "run ws:vue:emit \"$(pwd)\"",
25
+ "lint": "run ws:lint \"$(pwd)\"",
26
+ "lint:fix": "run ws:lint:fix \"$(pwd)\"",
27
+ "test": "run ws:test \"$(pwd)\"",
28
+ "test:coverage": "run ws:test:coverage \"$(pwd)\"",
29
+ "test:run": "run ws:test:run \"$(pwd)\"",
30
+ "test:update": "run ws:test:update \"$(pwd)\"",
31
+ "typecheck": "run ws:vue:typecheck \"$(pwd)\""
32
+ },
33
+ "dependencies": {
34
+ "@myparcel-dev/pdk-admin": "^1.13.0",
35
+ "@myparcel-dev/vue-form-builder": "^1.0.0-beta.53",
36
+ "@pinia/testing": ">= 0.1.0 < 1",
37
+ "@vitest/coverage-v8": "^2.1.3",
38
+ "@vue/test-utils": "^2.0.0",
39
+ "happy-dom": "^14.0.0",
40
+ "pinia": "^2.0.0",
41
+ "vitest": "^2.1.3"
42
+ },
43
+ "devDependencies": {
44
+ "typescript": "^5.2.2",
45
+ "vitest": "^2.1.3",
46
+ "vue": "^3.3.0",
47
+ "vue-tsc": "^2.0.0"
48
+ },
49
+ "peerDependencies": {
50
+ "vue": "^3"
51
+ },
52
+ "engines": {
53
+ "node": ">=20"
54
+ },
55
+ "volta": {
56
+ "extends": "../../package.json"
57
+ },
58
+ "publishConfig": {
59
+ "access": "public"
60
+ },
61
+ "deployGroup": "admin"
62
+ }