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
|
@@ -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.
|
|
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.
|
|
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
|
);
|