openxiangda-cli 2.0.0-alpha.122 → 2.0.0-alpha.123
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openxiangda-cli",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.123",
|
|
4
4
|
"description": "Thin application-level CLI for OpenXiangda 2.0.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
],
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@oclif/core": "4.13.3",
|
|
24
|
-
"openxiangda-contracts": "2.0.0-alpha.
|
|
25
|
-
"openxiangda-devkit-core": "2.0.0-alpha.
|
|
26
|
-
"openxiangda-mcp": "2.0.0-alpha.
|
|
27
|
-
"openxiangda-skill-kit": "2.0.0-alpha.
|
|
24
|
+
"openxiangda-contracts": "2.0.0-alpha.59",
|
|
25
|
+
"openxiangda-devkit-core": "2.0.0-alpha.77",
|
|
26
|
+
"openxiangda-mcp": "2.0.0-alpha.77",
|
|
27
|
+
"openxiangda-skill-kit": "2.0.0-alpha.98"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"tsx": "4.23.12",
|
|
@@ -477,11 +477,21 @@ test('renders the generic desktop and mobile application todo center without a s
|
|
|
477
477
|
await expect(page.getByRole('heading', { name: '待办中心' })).toBeVisible();
|
|
478
478
|
await expect(page.getByText('设备采购申请待审批').first()).toBeVisible();
|
|
479
479
|
await expect(page.getByText('¥28,600').first()).toBeVisible();
|
|
480
|
+
await page.getByRole('button', { name: '去处理', exact: true }).first().click();
|
|
481
|
+
await expect(page).toHaveURL(
|
|
482
|
+
new RegExp(`/admin/operations/purchases/${instanceId}\\?taskId=${taskId}`)
|
|
483
|
+
);
|
|
484
|
+
await expect(page.getByTestId('custom-workflow-detail')).toContainText(
|
|
485
|
+
`${instanceId} / ${taskId}`
|
|
486
|
+
);
|
|
480
487
|
|
|
481
488
|
await page.setViewportSize({ width: 390, height: 844 });
|
|
482
489
|
await page.goto('/workflow-experience.e2e.html?initial=/m/todos');
|
|
483
490
|
await expect(page.locator('.oxa-todo-center-mobile')).toBeVisible();
|
|
484
|
-
await page.getByRole('button', { name: '去处理' }).click();
|
|
491
|
+
await page.getByRole('button', { name: '去处理', exact: true }).first().click();
|
|
492
|
+
await expect(page).toHaveURL(
|
|
493
|
+
new RegExp(`/m/purchases/${instanceId}\\?taskId=${taskId}`)
|
|
494
|
+
);
|
|
485
495
|
await expect(page.getByTestId('custom-workflow-detail')).toContainText(
|
|
486
496
|
`${instanceId} / ${taskId}`
|
|
487
497
|
);
|
package/template/package.json
CHANGED
|
@@ -38,6 +38,7 @@ export type ResourceCode = (typeof resourceCodes)[number];
|
|
|
38
38
|
export type Capability = (typeof capabilities)[number];
|
|
39
39
|
export type AppOperation = (typeof appOperations)[keyof typeof appOperations];
|
|
40
40
|
export type AppRoute = (typeof appRoutes)[keyof typeof appRoutes];
|
|
41
|
+
export type AppRouteCode = AppRoute["code"];
|
|
41
42
|
export type AdminPage = (typeof adminPages)[number];
|
|
42
43
|
export type AdminNavigationGroup = (typeof adminNavigation)[number];
|
|
43
44
|
export type AppPerspective = (typeof appPerspectives)[number];
|