@myparcel-dev/pdk-admin-component-tests 1.14.2 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
<!-- MONOWEAVE:BELOW -->
|
|
4
4
|
|
|
5
|
+
## [2.0.1](https://github.com/myparcelnl/js-pdk/compare/@myparcel-dev/pdk-admin-component-tests@2.0.0...@myparcel-dev/pdk-admin-component-tests@2.0.1) "@myparcel-dev/pdk-admin-component-tests" (2026-07-20)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
## [2.0.0](https://github.com/myparcelnl/js-pdk/compare/@myparcel-dev/pdk-admin-component-tests@1.14.2...@myparcel-dev/pdk-admin-component-tests@2.0.0) "@myparcel-dev/pdk-admin-component-tests" (2026-06-04)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### ⚠ BREAKING CHANGES
|
|
14
|
+
|
|
15
|
+
* drive admin shipment options and checkout from the PDK capabilities API (#346)
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* drive admin shipment options and checkout from the PDK capabilities API ([#346](https://github.com/myparcelnl/js-pdk/issues/346)) ([f62b934](https://github.com/myparcelnl/js-pdk/commit/f62b9348d4f4316da28dbb97e4c335fc8aa9df80)), closes [myparcelnl/pdk#459](https://github.com/myparcelnl/pdk/issues/459) [myparcelnl/pdk#459](https://github.com/myparcelnl/pdk/issues/459) [myparcelnl/pdk#459](https://github.com/myparcelnl/pdk/issues/459)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
5
24
|
## [1.14.2](https://github.com/myparcelnl/js-pdk/compare/@myparcel-dev/pdk-admin-component-tests@1.14.1...@myparcel-dev/pdk-admin-component-tests@1.14.2) "@myparcel-dev/pdk-admin-component-tests" (2026-05-29)
|
|
6
25
|
|
|
7
26
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@myparcel-dev/pdk-admin-component-tests",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/myparcelnl/js-pdk.git",
|
|
@@ -31,22 +31,22 @@
|
|
|
31
31
|
"typecheck": "run ws:vue:typecheck \"$(pwd)\""
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@myparcel-dev/pdk-admin": "^
|
|
34
|
+
"@myparcel-dev/pdk-admin": "^2.0.1",
|
|
35
35
|
"@pinia/testing": ">= 0.1.0 < 1",
|
|
36
36
|
"@vitest/coverage-v8": "^2.1.3",
|
|
37
37
|
"@vue/test-utils": "^2.0.0",
|
|
38
38
|
"happy-dom": "^14.0.0",
|
|
39
39
|
"pinia": "^2.0.0",
|
|
40
|
-
"vitest": "^2.
|
|
40
|
+
"vitest": "^3.2.6"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"typescript": "^5.2.2",
|
|
44
|
-
"vitest": "^2.
|
|
45
|
-
"vue": "3.5.
|
|
44
|
+
"vitest": "^3.2.6",
|
|
45
|
+
"vue": "3.5.40",
|
|
46
46
|
"vue-tsc": "^2.0.0"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"vue": "3.5.
|
|
49
|
+
"vue": "3.5.40"
|
|
50
50
|
},
|
|
51
51
|
"engines": {
|
|
52
52
|
"node": ">=20"
|
package/src/TestSuite.ts
CHANGED
|
@@ -105,11 +105,11 @@ export class TestSuite<
|
|
|
105
105
|
return this.resolveOptions();
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
-
public getInputWrapper<NodeType extends Node>(wrapper: VueWrapper<
|
|
108
|
+
public getInputWrapper<NodeType extends Node>(wrapper: VueWrapper<any>): DOMWrapper<NodeType> {
|
|
109
109
|
return this.getElementWrapper('input', wrapper);
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
-
public getSelectWrapper<NodeType extends Node>(wrapper: VueWrapper<
|
|
112
|
+
public getSelectWrapper<NodeType extends Node>(wrapper: VueWrapper<any>): DOMWrapper<NodeType> {
|
|
113
113
|
return this.getElementWrapper('select', wrapper);
|
|
114
114
|
}
|
|
115
115
|
|
|
@@ -123,7 +123,7 @@ export class TestSuite<
|
|
|
123
123
|
|
|
124
124
|
private getElementWrapper<NodeType extends Node>(
|
|
125
125
|
element: string,
|
|
126
|
-
wrapper: VueWrapper<
|
|
126
|
+
wrapper: VueWrapper<any>,
|
|
127
127
|
): DOMWrapper<NodeType> {
|
|
128
128
|
const byComponentName = wrapper.findByTestId(this.componentName);
|
|
129
129
|
|
|
@@ -10,6 +10,7 @@ exports[`exports > exports from index.ts 1`] = `
|
|
|
10
10
|
"AdminInstanceContextKey",
|
|
11
11
|
"AdminModalKey",
|
|
12
12
|
"AdminView",
|
|
13
|
+
"BOX_MODE_ACTIONS",
|
|
13
14
|
"BackendEndpoint",
|
|
14
15
|
"BulkSelectCheckbox",
|
|
15
16
|
"ChildProductSettingsView",
|
|
@@ -26,13 +27,17 @@ exports[`exports > exports from index.ts 1`] = `
|
|
|
26
27
|
"FrontendEndpoint",
|
|
27
28
|
"INJECT_ADMIN_INSTANCE",
|
|
28
29
|
"INJECT_GLOBAL_PDK_ADMIN",
|
|
30
|
+
"LIST_ITEM_MODE_ACTIONS",
|
|
29
31
|
"LogLevel",
|
|
32
|
+
"MODAL_MODE_ACTIONS",
|
|
30
33
|
"ModalsView",
|
|
31
34
|
"NotificationCategory",
|
|
32
35
|
"NotificationContainer",
|
|
33
36
|
"NotificationsView",
|
|
37
|
+
"ORDER_VIEW_IN_BACKOFFICE_ID",
|
|
34
38
|
"OrderBoxView",
|
|
35
39
|
"OrderListItemView",
|
|
40
|
+
"OrderMode",
|
|
36
41
|
"PackageType",
|
|
37
42
|
"PdkAdmin",
|
|
38
43
|
"PlainElement",
|
|
@@ -42,6 +47,7 @@ exports[`exports > exports from index.ts 1`] = `
|
|
|
42
47
|
"QUERY_KEY_SHIPMENT",
|
|
43
48
|
"ResetButton",
|
|
44
49
|
"ReturnsForm",
|
|
50
|
+
"STORE_MODE_ACTIONS",
|
|
45
51
|
"ShipmentBarcode",
|
|
46
52
|
"ShipmentOptionsForm",
|
|
47
53
|
"ShipmentStatus",
|
|
@@ -148,6 +154,7 @@ exports[`exports > exports from index.ts 1`] = `
|
|
|
148
154
|
"useMultiSelectInputContext",
|
|
149
155
|
"useNotificationStore",
|
|
150
156
|
"useOrderData",
|
|
157
|
+
"useOrderMode",
|
|
151
158
|
"useOrdersData",
|
|
152
159
|
"usePdkMutation",
|
|
153
160
|
"usePrintOrdersMutation",
|
package/src/vue.shims.d.ts
CHANGED
|
@@ -12,15 +12,15 @@ declare module '*.vue' {
|
|
|
12
12
|
declare const __VUE_PROD_DEVTOOLS__: boolean;
|
|
13
13
|
|
|
14
14
|
declare module '@vue/test-utils' {
|
|
15
|
-
export
|
|
16
|
-
|
|
15
|
+
export interface VueWrapper {
|
|
16
|
+
findByTestId<K extends keyof HTMLElementTagNameMap>(
|
|
17
17
|
selector: string | string[],
|
|
18
18
|
): DOMWrapper<HTMLElementTagNameMap[K]>;
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
findByTestId<K extends keyof SVGElementTagNameMap>(
|
|
21
21
|
selector: string | string[],
|
|
22
22
|
): DOMWrapper<SVGElementTagNameMap[K]>;
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
findByTestId<T extends Element | Node = Node>(selector: string | string[]): DOMWrapper<T>;
|
|
25
25
|
}
|
|
26
26
|
}
|