diff --git a/packages/plugins/@nocobase/plugin-workflow-form-trigger/src/client/__e2e__/workflowCRUD.test.ts b/packages/plugins/@nocobase/plugin-workflow-form-trigger/src/client/__e2e__/workflowCRUD.test.ts index 2898575caf..1a3baa8d0d 100644 --- a/packages/plugins/@nocobase/plugin-workflow-form-trigger/src/client/__e2e__/workflowCRUD.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow-form-trigger/src/client/__e2e__/workflowCRUD.test.ts @@ -162,6 +162,9 @@ test.describe('Duplicate', () => { await page.getByLabel(`action-Action-Submit-workflows-${workFlowName}`).click(); await page.waitForLoadState('networkidle'); // 3、预期结果:列表中出现筛选的工作流 + await page.getByLabel('action-Filter.Action-Filter-filter-workflows').click(); + await page.getByRole('textbox').fill(workFlowName); + await page.getByRole('button', { name: 'Submit', exact: true }).click(); await expect(page.getByText(`${workFlowName} copy`)).toBeAttached(); // 4、后置处理:删除工作流 diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/ScheduleEventTrigger/workflowCRUD.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/ScheduleEventTrigger/workflowCRUD.test.ts index 7fc25b49d3..c7384084b9 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/ScheduleEventTrigger/workflowCRUD.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/ScheduleEventTrigger/workflowCRUD.test.ts @@ -147,9 +147,11 @@ test.describe('Duplicate', () => { await page.waitForLoadState('networkidle'); await page.getByLabel(`action-Action.Link-Duplicate-workflows-${workFlowName}`).click(); await page.getByLabel(`action-Action-Submit-workflows-${workFlowName}`).click(); - + await page.waitForLoadState('networkidle'); // 3、预期结果:列表中出现筛选的工作流 - await page.reload(); + await page.getByLabel('action-Filter.Action-Filter-filter-workflows').click(); + await page.getByRole('textbox').fill(workFlowName); + await page.getByRole('button', { name: 'Submit', exact: true }).click(); await expect(page.getByText(`${workFlowName} copy`)).toBeAttached(); // 4、后置处理:删除工作流 diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/collectionEventTrigger/workflowCRUD.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/collectionEventTrigger/workflowCRUD.test.ts index 4f70b86805..4b31a33e0f 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/collectionEventTrigger/workflowCRUD.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/collectionEventTrigger/workflowCRUD.test.ts @@ -161,6 +161,9 @@ test.describe('Duplicate', () => { await page.getByLabel(`action-Action-Submit-workflows-${workFlowName}`).click(); // 3、预期结果:列表中出现筛选的工作流 + await page.getByLabel('action-Filter.Action-Filter-filter-workflows').click(); + await page.getByRole('textbox').fill(workFlowName); + await page.getByRole('button', { name: 'Submit' }).click(); await expect(page.getByText(`${workFlowName} copy`)).toBeAttached(); // 4、后置处理:删除工作流