openxiangda-cli 2.0.0-alpha.137 → 2.0.0-alpha.138

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.137",
3
+ "version": "2.0.0-alpha.138",
4
4
  "description": "Thin application-level CLI for OpenXiangda 2.0.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -15,7 +15,7 @@
15
15
  "@nestjs/common": "11.1.29",
16
16
  "@nestjs/core": "11.1.29",
17
17
  "@nestjs/platform-fastify": "11.1.29",
18
- "openxiangda": "2.0.0-alpha.53",
18
+ "openxiangda": "2.0.0-alpha.54",
19
19
  "reflect-metadata": "0.2.2",
20
20
  "rxjs": "7.8.2"
21
21
  },
@@ -575,9 +575,18 @@ test('renders the generic desktop and mobile application todo center without a s
575
575
  await mockWorkflow(page);
576
576
  await page.goto('/workflow-experience.e2e.html?initial=/admin/todos');
577
577
  await expect(page.getByRole('heading', { name: '待办中心' })).toBeVisible();
578
+ await expect(page.locator('.oxa-todo-table')).toBeVisible();
579
+ await expect(page.locator('.oxa-todo-preview-card')).toHaveCount(0);
578
580
  await expect(page.getByText('设备采购申请待审批').first()).toBeVisible();
579
581
  await expect(page.getByText('¥28,600').first()).toBeVisible();
580
- await page.getByRole('button', { name: '去处理', exact: true }).first().click();
582
+ await expect(page.locator('.ant-spin-spinning')).toHaveCount(0);
583
+ const unreadRequest = page.waitForRequest(request => {
584
+ const url = new URL(request.url());
585
+ return url.pathname.endsWith('/todos') && url.searchParams.get('unread') === 'true';
586
+ });
587
+ await page.getByRole('switch', { name: '仅看未读' }).click();
588
+ await unreadRequest;
589
+ await page.getByRole('button', { name: /查看详情/ }).first().click();
581
590
  await expect(page).toHaveURL(
582
591
  new RegExp(`/admin/operations/purchases/${instanceId}\\?taskId=${taskId}`)
583
592
  );
@@ -588,7 +597,8 @@ test('renders the generic desktop and mobile application todo center without a s
588
597
  await page.setViewportSize({ width: 390, height: 844 });
589
598
  await page.goto('/workflow-experience.e2e.html?initial=/m/todos');
590
599
  await expect(page.locator('.oxa-todo-center-mobile')).toBeVisible();
591
- await page.getByRole('button', { name: '去处理', exact: true }).first().click();
600
+ await expect(page.locator('.oxa-todo-preview-card')).toHaveCount(0);
601
+ await page.getByRole('button', { name: /查看详情/ }).first().click();
592
602
  await expect(page).toHaveURL(
593
603
  new RegExp(`/m/purchases/${instanceId}\\?taskId=${taskId}`)
594
604
  );
@@ -14,7 +14,7 @@
14
14
  "@ant-design/icons": "6.2.3",
15
15
  "@refinedev/core": "5.0.12",
16
16
  "antd": "6.4.3",
17
- "openxiangda": "2.0.0-alpha.53",
17
+ "openxiangda": "2.0.0-alpha.54",
18
18
  "react": "19.2.8",
19
19
  "react-dom": "19.2.8",
20
20
  "react-router-dom": "7.8.2"
@@ -23,7 +23,7 @@
23
23
  "build": "pnpm --recursive build"
24
24
  },
25
25
  "devDependencies": {
26
- "openxiangda": "2.0.0-alpha.53",
26
+ "openxiangda": "2.0.0-alpha.54",
27
27
  "typescript": "5.9.3"
28
28
  }
29
29
  }