From 63cffd3d31b4130860819fefb767199645473dba Mon Sep 17 00:00:00 2001 From: hongboji <116709317+hongboji@users.noreply.github.com> Date: Mon, 28 Oct 2024 09:01:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20sse=20causes=20=E2=80=9CwaitForLoadState?= =?UTF-8?q?(=E2=80=98networkidle=E2=80=99)=E2=80=9D=20timeout=20(#5524)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../__e2e__/schemaInitializer.test.ts | 12 ++++----- .../client/__e2e__/editLocalStorage.test.ts | 2 +- .../client/__e2e__/schemaInitializer.test.ts | 4 +-- .../src/client/__e2e__/schemaSettings.test.ts | 4 +-- .../src/client/__e2e__/configuration.test.ts | 4 +-- .../src/client/__e2e__/configuration1.test.ts | 12 ++++----- .../src/client/__e2e__/configuration2.test.ts | 22 ++++++++-------- .../src/client/__e2e__/configuration3.test.ts | 4 +-- .../src/client/__e2e__/workflowCRUD.test.ts | 14 +++++----- .../client/__e2e__/DataOfCollection.test.ts | 20 +++++++------- .../client/__e2e__/DataOfCollection1.test.ts | 20 +++++++------- .../client/__e2e__/createRecordForm1.test.ts | 18 ++++++------- .../client/__e2e__/createRecordForm2.test.ts | 18 ++++++------- .../client/__e2e__/createRecordForm3.test.ts | 24 ++++++++--------- .../client/__e2e__/createRecordForm4.test.ts | 18 ++++++------- .../client/__e2e__/createRecordForm5.test.ts | 18 ++++++------- .../client/__e2e__/customFormBlocks.test.ts | 18 ++++++------- .../client/__e2e__/customFormBlocks1.test.ts | 24 ++++++++--------- .../client/__e2e__/customFormBlocks2.test.ts | 18 ++++++------- .../client/__e2e__/customFormBlocks3.test.ts | 18 ++++++------- .../src/client/__e2e__/datablocks.test.ts | 8 +++--- .../src/client/__e2e__/datablocks1.test.ts | 18 ++++++------- .../src/client/__e2e__/datablocks2.test.ts | 12 ++++----- .../client/__e2e__/updateRecordForm.test.ts | 24 ++++++++--------- .../client/__e2e__/updateRecordForm1.test.ts | 18 ++++++------- .../client/__e2e__/updateRecordForm2.test.ts | 18 ++++++------- .../client/__e2e__/updateRecordForm3.test.ts | 18 ++++++------- .../src/client/__e2e__/workflowTodo.test.ts | 12 ++++----- .../client/__e2e__/parallelBranch1.test.ts | 8 +++--- .../client/__e2e__/parallelBranch2.test.ts | 6 ++--- .../client/__e2e__/parallelBranch3.test.ts | 4 +-- .../src/client/__e2e__/dataCURD.test.ts | 26 +++++++++---------- .../plugin-workflow-test/src/e2e/e2eUtils.ts | 2 +- .../configuration.test.ts | 4 +-- .../configuration1.test.ts | 10 +++---- .../configuration2.test.ts | 2 +- .../configuration3.test.ts | 12 ++++----- .../ScheduleEventTrigger/workflowCRUD.test.ts | 14 +++++----- .../calculationNode/formulaEngine.test.ts | 12 ++++----- .../calculationNode/mathEngine.test.ts | 12 ++++----- .../configuration1.test.ts | 10 +++---- .../configuration2.test.ts | 22 ++++++++-------- .../configuration3.test.ts | 4 +-- .../configuration4.test.ts | 4 +-- .../workflowCRUD.test.ts | 12 ++++----- .../BranchIntoYesAndNoBasicType.test.ts | 8 +++--- .../BranchIntoYesAndNoBasicType1.test.ts | 8 +++--- .../BranchIntoYesAndNoFormulaEngine.test.ts | 16 ++++++------ .../BranchIntoYesAndNoMathEngine.test.ts | 8 +++--- .../continueWhenYesBasicType.test.ts | 16 ++++++------ .../continueWhenYesFormulaEngine.test.ts | 16 ++++++------ .../continueWhenYesMathEngine.test.ts | 8 +++--- .../createRecordNode/CreateRecord.test.ts | 24 ++++++++--------- .../deleteRecordNode/DeleteRecord.test.ts | 4 +-- .../queryRecordNode/QueryRecord.test.ts | 18 ++++++------- .../updateRecordNode/updateInABatch.test.ts | 8 +++--- .../updateRecordNode/updateInABatch1.test.ts | 10 +++---- .../updateRecordNode/updateInABatch2.test.ts | 10 +++---- .../updateRecordNode/updateOneByOne.test.ts | 6 ++--- .../updateRecordNode/updateOneByOne1.test.ts | 8 +++--- .../updateRecordNode/updateOneByOne2.test.ts | 8 +++--- .../updateRecordNode/updateOneByOne3.test.ts | 6 ++--- 62 files changed, 383 insertions(+), 383 deletions(-) diff --git a/packages/core/client/src/modules/blocks/filter-blocks/__e2e__/schemaInitializer.test.ts b/packages/core/client/src/modules/blocks/filter-blocks/__e2e__/schemaInitializer.test.ts index 92ad32b637..b92340de78 100644 --- a/packages/core/client/src/modules/blocks/filter-blocks/__e2e__/schemaInitializer.test.ts +++ b/packages/core/client/src/modules/blocks/filter-blocks/__e2e__/schemaInitializer.test.ts @@ -64,7 +64,7 @@ test.describe('where filter block can be added', () => { // filter await page.getByLabel('action-Action-Filter-submit-').click({ position: { x: 10, y: 10 } }); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); for (const record of newUserRecords) { await expect(page.getByLabel('block-item-CardItem-users-table').getByText(record.nickname)).toBeVisible({ visible: record === newUserRecords[0], @@ -82,7 +82,7 @@ test.describe('where filter block can be added', () => { // reset await page.getByLabel('action-Action-Reset-users-').click({ position: { x: 10, y: 10 } }); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); for (const record of newUserRecords) { await expect(page.getByLabel('block-item-CardItem-users-table').getByText(record.nickname)).toBeVisible(); await expect(page.getByLabel('block-item-CardItem-users-list').getByText(record.nickname)).toBeVisible(); @@ -123,7 +123,7 @@ test.describe('where filter block can be added', () => { .getByRole('textbox') .fill(usersRecords[0].roles[0].name); await page.getByLabel('action-Action-Filter-submit-').click({ position: { x: 10, y: 10 } }); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); for (const record of usersRecords[0].roles) { await expect(page.getByLabel('block-item-CardItem-roles-details').getByText(record.name)).toBeVisible({ @@ -141,7 +141,7 @@ test.describe('where filter block can be added', () => { } await page.getByLabel('action-Action-Reset-roles-').click({ position: { x: 10, y: 10 } }); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); for (const record of usersRecords[0].roles) { await expect(page.getByLabel('block-item-CardItem-roles-table').getByText(record.name)).toBeVisible(); await expect(page.getByLabel('block-item-CardItem-roles-list').getByText(record.name)).toBeVisible(); @@ -172,7 +172,7 @@ test.describe('where filter block can be added', () => { await page.getByLabel('block-item-CardItem-users-filter-form').getByRole('textbox').fill(usersRecords[0].nickname); await page.getByLabel('action-Action-Filter-submit-users-filter-form').click({ position: { x: 10, y: 10 } }); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); for (const record of usersRecords) { await expect(page.getByLabel('block-item-CardItem-users-details').getByText(record.nickname)).toBeVisible({ visible: record === usersRecords[0], @@ -194,7 +194,7 @@ test.describe('where filter block can be added', () => { } await page.getByLabel('action-Action-Reset-users-').click({ position: { x: 10, y: 10 } }); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); for (const record of usersRecords) { await expect( page diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/client/__e2e__/editLocalStorage.test.ts b/packages/plugins/@nocobase/plugin-file-manager/src/client/__e2e__/editLocalStorage.test.ts index ee4a1a8e62..e2fc154ec3 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/client/__e2e__/editLocalStorage.test.ts +++ b/packages/plugins/@nocobase/plugin-file-manager/src/client/__e2e__/editLocalStorage.test.ts @@ -20,7 +20,7 @@ test.describe('File manager', () => { // 1、前置条件:1.1已登录;1.2存在一个文件管理器 await page.goto('/admin/settings/file-manager'); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByRole('button', { name: 'plus Add new' }).hover(); await page.getByRole('menuitem', { name: 'Local storage' }).click(); diff --git a/packages/plugins/@nocobase/plugin-map/src/client/__e2e__/schemaInitializer.test.ts b/packages/plugins/@nocobase/plugin-map/src/client/__e2e__/schemaInitializer.test.ts index 3e3c7bb1ec..d408b10e9d 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/__e2e__/schemaInitializer.test.ts +++ b/packages/plugins/@nocobase/plugin-map/src/client/__e2e__/schemaInitializer.test.ts @@ -29,7 +29,7 @@ test.describe('where map block can be added', () => { // 2. 点击跳转按钮去配置页面,配置好后返回刚才的页面,应该能正常显示地图 await page.getByRole('button', { name: 'Go to the configuration page' }).click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.waitForTimeout(1000); if (await page.getByRole('button', { name: 'Edit' }).first().isVisible()) { await page.getByRole('button', { name: 'Edit' }).first().click(); @@ -49,7 +49,7 @@ test.describe('where map block can be added', () => { // 4. 清空配置信息,以免影响其他测试用例 await page.goto('/admin/settings/map'); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.waitForTimeout(1000); await page.getByRole('button', { name: 'Edit' }).first().click(); await page.getByLabel('Access key').clear(); diff --git a/packages/plugins/@nocobase/plugin-map/src/client/__e2e__/schemaSettings.test.ts b/packages/plugins/@nocobase/plugin-map/src/client/__e2e__/schemaSettings.test.ts index d70113dd32..82bf101fd2 100644 --- a/packages/plugins/@nocobase/plugin-map/src/client/__e2e__/schemaSettings.test.ts +++ b/packages/plugins/@nocobase/plugin-map/src/client/__e2e__/schemaSettings.test.ts @@ -12,7 +12,7 @@ import { oneMapUsedToTestSettings } from './templates'; test.beforeEach(async ({ page }) => { await page.goto('/admin/settings/map'); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.waitForTimeout(1000); if (await page.getByRole('button', { name: 'Edit' }).first().isVisible()) { await page.getByRole('button', { name: 'Edit' }).first().click(); @@ -26,7 +26,7 @@ test.beforeEach(async ({ page }) => { test.afterEach(async ({ page }) => { await page.goto('/admin/settings/map'); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.waitForTimeout(1000); await page.getByRole('button', { name: 'Edit' }).first().click(); await page.getByLabel('Access key').clear(); diff --git a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/client/__e2e__/configuration.test.ts b/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/client/__e2e__/configuration.test.ts index 916c98378c..3d496144f7 100644 --- a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/client/__e2e__/configuration.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/client/__e2e__/configuration.test.ts @@ -69,10 +69,10 @@ test.describe('Configuration page copy to new version', () => { await page.waitForTimeout(1000); await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('more').click(); await page.getByLabel('revision').click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); // 3、预期结果:新版本工作流配置内容同旧版本一样 const formEventTriggerNode = new FormEventTriggerNode(page, workFlowName, triggerNodeCollectionName); diff --git a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/client/__e2e__/configuration1.test.ts b/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/client/__e2e__/configuration1.test.ts index 72a4c16b23..2f2733ff4f 100644 --- a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/client/__e2e__/configuration1.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/client/__e2e__/configuration1.test.ts @@ -54,7 +54,7 @@ test.describe('Configuration page to configure the Trigger node', () => { //配置工作流触发器 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const formEventTriggerNode = new FormEventTriggerNode(page, workFlowName, triggerNodeCollectionName); await formEventTriggerNode.nodeConfigure.click(); await formEventTriggerNode.collectionDropDown.click(); @@ -65,7 +65,7 @@ test.describe('Configuration page to configure the Trigger node', () => { //配置录入数据区块 const newPage = mockPage(); await newPage.goto(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('schema-initializer-Grid-page:addBlock').hover(); await page.getByRole('menuitem', { name: 'table Table' }).hover(); const dataSourcesCount = await apiGetDataSourceCount(); @@ -111,7 +111,7 @@ test.describe('Configuration page to configure the Trigger node', () => { const fieldData = triggerNodeFieldDisplayName + dayjs().format('YYYYMMDDHHmmss.SSS').toString(); await page.getByRole('textbox').fill(fieldData); await page.getByLabel(`action-Action-Submit-submit-${triggerNodeCollectionName}-form`, { exact: true }).click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.waitForTimeout(1000); // 3、预期结果:触发次数为1 const getWorkflow = await apiGetWorkflow(workflowId); @@ -157,7 +157,7 @@ test.describe('Configuration page to configure the Trigger node', () => { //配置工作流触发器 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const formEventTriggerNode = new FormEventTriggerNode(page, workFlowName, triggerNodeCollectionName); await formEventTriggerNode.nodeConfigure.click(); await formEventTriggerNode.collectionDropDown.click(); @@ -168,7 +168,7 @@ test.describe('Configuration page to configure the Trigger node', () => { //配置录入数据区块 const newPage = mockPage(); await newPage.goto(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('schema-initializer-Grid-page:addBlock').hover(); await page.getByRole('menuitem', { name: 'table Table' }).hover(); const dataSourcesCount = await apiGetDataSourceCount(); @@ -218,7 +218,7 @@ test.describe('Configuration page to configure the Trigger node', () => { await page .getByLabel(`action-Action-Submit to workflow-customize:triggerWorkflows-${triggerNodeCollectionName}-form`) .click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.waitForTimeout(1000); // 3、预期结果:触发次数为1 const getWorkflow = await apiGetWorkflow(workflowId); diff --git a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/client/__e2e__/configuration2.test.ts b/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/client/__e2e__/configuration2.test.ts index 35d92c66fa..8b78ebffb5 100644 --- a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/client/__e2e__/configuration2.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/client/__e2e__/configuration2.test.ts @@ -51,13 +51,13 @@ test.describe('Configuration Page Path Jump Workflow Management Page', () => { //配置工作流触发器 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); // 2、测试步骤:跳转到工作流管理页面 await page.getByRole('link', { name: 'Workflow' }).click(); // 3、预期结果:跳转路径正确 - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); expect(page.url()).toBe(`${process.env.APP_BASE_URL}/admin/settings/workflow`); // 4、后置处理:删除工作流 @@ -113,17 +113,17 @@ test.describe('Configuration Page Path Jump Workflow Management Page', () => { await page.waitForTimeout(1000); await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('more').click(); await page.getByLabel('revision').click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); //元素重复 await page.getByLabel('version', { exact: true }).click(); await page.getByLabel('version-1').click(); await page.getByRole('link', { name: 'Workflow' }).click(); // 3、预期结果:跳转路径正确 - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); expect(page.url()).toBe(`${process.env.APP_BASE_URL}/admin/settings/workflow`); // 4、后置处理:删除工作流 @@ -179,15 +179,15 @@ test.describe('Configuration Page Path Jump Workflow Management Page', () => { await page.waitForTimeout(1000); await page.goto('/admin/settings/workflow'); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const workflowListRecords = new WorkflowListRecords(page, workFlowName); await workflowListRecords.executionCountPopup.click(); await page.getByText('View').click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByRole('link', { name: 'Workflow', exact: true }).click(); // 3、预期结果:跳转路径正确 - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); expect(page.url()).toBe(`${process.env.APP_BASE_URL}/admin/settings/workflow`); // 4、后置处理:删除工作流 @@ -242,14 +242,14 @@ test.describe('Configuration Page Path Jump Workflow Management Page', () => { await page.waitForTimeout(1000); await page.goto('/admin/settings/workflow'); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const workflowListRecords = new WorkflowListRecords(page, workFlowName); await workflowListRecords.executionCountPopup.click(); await page.getByText('View').click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); //跳转其他执行日志界面,元素无法定位 // 3、预期结果:跳转路径正确 - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); // expect(page.url()).toBe(`${process.env.APP_BASE_URL}/admin/settings/workflow`); // 4、后置处理:删除工作流 await apiDeleteWorkflow(workflowId); diff --git a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/client/__e2e__/configuration3.test.ts b/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/client/__e2e__/configuration3.test.ts index 9a21f694ae..7fc523ce49 100644 --- a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/client/__e2e__/configuration3.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/client/__e2e__/configuration3.test.ts @@ -75,7 +75,7 @@ test.describe('Configuration page disable enable', () => { expect(getWorkflowExecuted).toBe(0); await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByRole('switch', { name: 'On Off' }).click(); await apiCreateRecordTriggerFormEvent(triggerNodeCollectionName, triggerWorkflows, { @@ -146,7 +146,7 @@ test.describe('Configuration page disable enable', () => { expect(getWorkflowExecuted).toBe(1); await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByRole('switch', { name: 'On Off' }).click(); await apiCreateRecordTriggerFormEvent(triggerNodeCollectionName, triggerWorkflows, { diff --git a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/client/__e2e__/workflowCRUD.test.ts b/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/client/__e2e__/workflowCRUD.test.ts index 7740a48112..6820502b0a 100644 --- a/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/client/__e2e__/workflowCRUD.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow-action-trigger/src/client/__e2e__/workflowCRUD.test.ts @@ -42,7 +42,7 @@ test.describe('Filter', () => { // 2、筛选工作流 await page.goto('/admin/settings/workflow'); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('action-Filter.Action-Filter-filter-workflows').click(); await page.getByRole('textbox').fill(workFlowName); await page.getByRole('button', { name: 'Submit' }).click(); @@ -59,7 +59,7 @@ test.describe('Add new', () => { test('add new Action event', async ({ page }) => { // 添加工作流 await page.goto('/admin/settings/workflow'); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('action-Action-Add new-workflows').click(); const createWorkFlow = new CreateWorkFlow(page); const workFlowName = faker.string.alphanumeric(5); @@ -101,7 +101,7 @@ test.describe('Delete', () => { // 删除工作流 await page.goto('/admin/settings/workflow'); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('action-Filter.Action-Filter-filter-workflows').click(); await page.getByRole('textbox').fill(workFlowName); await page.getByRole('button', { name: 'Submit' }).click(); @@ -133,13 +133,13 @@ test.describe('Edit', () => { // 编辑工作流 await page.goto('/admin/settings/workflow'); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel(`action-Action.Link-Edit-workflows-${workFlowName}`).click(); const editWorkFlow = new EditWorkFlow(page, workFlowName); workFlowName = faker.string.alphanumeric(5) + triggerNodeAppendText; await editWorkFlow.name.fill(workFlowName); await page.getByLabel('action-Action-Submit-workflows').click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); // 3、预期结果:编辑成功,列表中出现编辑后的工作流 await expect(page.getByText(workFlowName)).toBeAttached(); @@ -166,10 +166,10 @@ test.describe('Duplicate', () => { // 2、复制工作流 await page.goto('/admin/settings/workflow'); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel(`action-Action.Link-Duplicate-workflows-${workFlowName}`).click(); await page.getByLabel(`action-Action-Submit-workflows-${workFlowName}`).click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); // 3、预期结果:列表中出现筛选的工作流 await page.getByLabel('action-Filter.Action-Filter-filter-workflows').click(); await page.getByRole('textbox').fill(workFlowName); diff --git a/packages/plugins/@nocobase/plugin-workflow-aggregate/src/client/__e2e__/DataOfCollection.test.ts b/packages/plugins/@nocobase/plugin-workflow-aggregate/src/client/__e2e__/DataOfCollection.test.ts index 8293b85d94..7762d6860b 100644 --- a/packages/plugins/@nocobase/plugin-workflow-aggregate/src/client/__e2e__/DataOfCollection.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow-aggregate/src/client/__e2e__/DataOfCollection.test.ts @@ -79,7 +79,7 @@ test.describe('filter', () => { //配置聚合数据节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'aggregate', exact: true }).click(); @@ -185,7 +185,7 @@ test.describe('filter', () => { //配置聚合数据节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'aggregate', exact: true }).click(); @@ -296,7 +296,7 @@ test.describe('filter', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置聚合数据节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'aggregate', exact: true }).click(); @@ -412,7 +412,7 @@ test.describe('filter', () => { //配置聚合数据节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'aggregate', exact: true }).click(); @@ -524,7 +524,7 @@ test.describe('filter', () => { //配置聚合数据节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'aggregate', exact: true }).click(); @@ -636,7 +636,7 @@ test.describe('filter', () => { //配置聚合数据节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'aggregate', exact: true }).click(); @@ -743,7 +743,7 @@ test.describe('filter', () => { //配置聚合数据节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'aggregate', exact: true }).click(); @@ -859,7 +859,7 @@ test.describe('filter', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置聚合数据节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'aggregate', exact: true }).click(); @@ -984,7 +984,7 @@ test.describe('filter', () => { //配置聚合数据节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'aggregate', exact: true }).click(); @@ -1097,7 +1097,7 @@ test.describe('filter', () => { //配置聚合数据节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'aggregate', exact: true }).click(); diff --git a/packages/plugins/@nocobase/plugin-workflow-aggregate/src/client/__e2e__/DataOfCollection1.test.ts b/packages/plugins/@nocobase/plugin-workflow-aggregate/src/client/__e2e__/DataOfCollection1.test.ts index c6207a8e0b..4be1ac692c 100644 --- a/packages/plugins/@nocobase/plugin-workflow-aggregate/src/client/__e2e__/DataOfCollection1.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow-aggregate/src/client/__e2e__/DataOfCollection1.test.ts @@ -80,7 +80,7 @@ test.describe('no filter', () => { //配置聚合数据节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'aggregate', exact: true }).click(); @@ -179,7 +179,7 @@ test.describe('no filter', () => { //配置聚合数据节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'aggregate', exact: true }).click(); @@ -282,7 +282,7 @@ test.describe('no filter', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置聚合数据节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'aggregate', exact: true }).click(); @@ -387,7 +387,7 @@ test.describe('no filter', () => { //配置聚合数据节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'aggregate', exact: true }).click(); @@ -491,7 +491,7 @@ test.describe('no filter', () => { //配置聚合数据节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'aggregate', exact: true }).click(); @@ -595,7 +595,7 @@ test.describe('no filter', () => { //配置聚合数据节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'aggregate', exact: true }).click(); @@ -695,7 +695,7 @@ test.describe('no filter', () => { //配置聚合数据节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'aggregate', exact: true }).click(); @@ -801,7 +801,7 @@ test.describe('no filter', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置聚合数据节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'aggregate', exact: true }).click(); @@ -909,7 +909,7 @@ test.describe('no filter', () => { //配置聚合数据节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'aggregate', exact: true }).click(); @@ -1014,7 +1014,7 @@ test.describe('no filter', () => { //配置聚合数据节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'aggregate', exact: true }).click(); diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/createRecordForm1.test.ts b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/createRecordForm1.test.ts index f9bbb361ec..60d63d79c4 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/createRecordForm1.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/createRecordForm1.test.ts @@ -73,7 +73,7 @@ test.describe('field data entry', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置Manual节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'manual', exact: true }).click(); @@ -108,7 +108,7 @@ test.describe('field data entry', () => { await page.mouse.move(300, 0, { steps: 100 }); await page.mouse.click(300, 0); await manualNode.submitButton.click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); // 2、测试步骤:添加数据触发工作流 const triggerNodeCollectionRecordOne = @@ -125,7 +125,7 @@ test.describe('field data entry', () => { const newPage = mockPage(); await newPage.goto(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('schema-initializer-Grid-page:addBlock').hover(); await page.getByRole('menuitem', { name: 'check-square Workflow todos' }).click(); await page.mouse.move(300, 0, { steps: 100 }); @@ -213,7 +213,7 @@ test.describe('field data entry', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置Manual节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'manual', exact: true }).click(); @@ -248,7 +248,7 @@ test.describe('field data entry', () => { await page.mouse.move(300, 0, { steps: 100 }); await page.mouse.click(300, 0); await manualNode.submitButton.click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); // 2、测试步骤:添加数据触发工作流 const triggerNodeCollectionRecordOne = @@ -265,7 +265,7 @@ test.describe('field data entry', () => { const newPage = mockPage(); await newPage.goto(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('schema-initializer-Grid-page:addBlock').hover(); await page.getByRole('menuitem', { name: 'check-square Workflow todos' }).click(); await page.mouse.move(300, 0, { steps: 100 }); @@ -352,7 +352,7 @@ test.describe('field data entry', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置Manual节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'manual', exact: true }).click(); @@ -387,7 +387,7 @@ test.describe('field data entry', () => { await page.mouse.move(300, 0, { steps: 100 }); await page.mouse.click(300, 0); await manualNode.submitButton.click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); // 2、测试步骤:添加数据触发工作流 const triggerNodeCollectionRecordOne = @@ -404,7 +404,7 @@ test.describe('field data entry', () => { const newPage = mockPage(); await newPage.goto(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('schema-initializer-Grid-page:addBlock').hover(); await page.getByRole('menuitem', { name: 'check-square Workflow todos' }).click(); await page.mouse.move(300, 0, { steps: 100 }); diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/createRecordForm2.test.ts b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/createRecordForm2.test.ts index 6b997e692b..d687bf5ee8 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/createRecordForm2.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/createRecordForm2.test.ts @@ -73,7 +73,7 @@ test.describe('action button', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置Manual节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'manual', exact: true }).click(); @@ -108,7 +108,7 @@ test.describe('action button', () => { await page.mouse.move(300, 0, { steps: 100 }); await page.mouse.click(300, 0); await manualNode.submitButton.click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); // 2、测试步骤:添加数据触发工作流 const triggerNodeCollectionRecordOne = @@ -125,7 +125,7 @@ test.describe('action button', () => { const newPage = mockPage(); await newPage.goto(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('schema-initializer-Grid-page:addBlock').hover(); await page.getByRole('menuitem', { name: 'check-square Workflow todos' }).click(); await page.mouse.move(300, 0, { steps: 100 }); @@ -212,7 +212,7 @@ test.describe('action button', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置Manual节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'manual', exact: true }).click(); @@ -253,7 +253,7 @@ test.describe('action button', () => { await page.mouse.move(300, 0, { steps: 100 }); await page.mouse.click(300, 0); await manualNode.submitButton.click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); // 2、测试步骤:添加数据触发工作流 const triggerNodeCollectionRecordOne = @@ -270,7 +270,7 @@ test.describe('action button', () => { const newPage = mockPage(); await newPage.goto(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('schema-initializer-Grid-page:addBlock').hover(); await page.getByRole('menuitem', { name: 'check-square Workflow todos' }).click(); await page.mouse.move(300, 0, { steps: 100 }); @@ -357,7 +357,7 @@ test.describe('action button', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置Manual节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'manual', exact: true }).click(); @@ -398,7 +398,7 @@ test.describe('action button', () => { await page.mouse.move(300, 0, { steps: 100 }); await page.mouse.click(300, 0); await manualNode.submitButton.click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); // 2、测试步骤:添加数据触发工作流 const triggerNodeCollectionRecordOne = @@ -415,7 +415,7 @@ test.describe('action button', () => { const newPage = mockPage(); await newPage.goto(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('schema-initializer-Grid-page:addBlock').hover(); await page.getByRole('menuitem', { name: 'check-square Workflow todos' }).click(); await page.mouse.move(300, 0, { steps: 100 }); diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/createRecordForm3.test.ts b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/createRecordForm3.test.ts index b15a78bb19..6b20ec3da3 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/createRecordForm3.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/createRecordForm3.test.ts @@ -73,7 +73,7 @@ test.describe('field data entry', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置Manual节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'manual', exact: true }).click(); @@ -108,7 +108,7 @@ test.describe('field data entry', () => { await page.mouse.move(300, 0, { steps: 100 }); await page.mouse.click(300, 0); await manualNode.submitButton.click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); // 2、测试步骤:添加数据触发工作流 const triggerNodeCollectionRecordOne = @@ -125,7 +125,7 @@ test.describe('field data entry', () => { const newPage = mockPage(); await newPage.goto(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('schema-initializer-Grid-page:addBlock').hover(); await page.getByRole('menuitem', { name: 'check-square Workflow todos' }).click(); await page.mouse.move(300, 0, { steps: 100 }); @@ -220,7 +220,7 @@ test.describe('field data entry', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置Manual节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'manual', exact: true }).click(); @@ -255,7 +255,7 @@ test.describe('field data entry', () => { await page.mouse.move(300, 0, { steps: 100 }); await page.mouse.click(300, 0); await manualNode.submitButton.click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); // 2、测试步骤:添加数据触发工作流 const triggerNodeCollectionRecordOne = @@ -272,7 +272,7 @@ test.describe('field data entry', () => { const newPage = mockPage(); await newPage.goto(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('schema-initializer-Grid-page:addBlock').hover(); await page.getByRole('menuitem', { name: 'check-square Workflow todos' }).click(); await page.mouse.move(300, 0, { steps: 100 }); @@ -358,7 +358,7 @@ test.describe('field data entry', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置Manual节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'manual', exact: true }).click(); @@ -393,7 +393,7 @@ test.describe('field data entry', () => { await page.mouse.move(300, 0, { steps: 100 }); await page.mouse.click(300, 0); await manualNode.submitButton.click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); // 2、测试步骤:添加数据触发工作流 const triggerNodeCollectionRecordOne = @@ -410,7 +410,7 @@ test.describe('field data entry', () => { const newPage = mockPage(); await newPage.goto(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('schema-initializer-Grid-page:addBlock').hover(); await page.getByRole('menuitem', { name: 'check-square Workflow todos' }).click(); await page.mouse.move(300, 0, { steps: 100 }); @@ -503,7 +503,7 @@ test.describe('field data entry', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置Manual节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'manual', exact: true }).click(); @@ -538,7 +538,7 @@ test.describe('field data entry', () => { await page.mouse.move(300, 0, { steps: 100 }); await page.mouse.click(300, 0); await manualNode.submitButton.click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); // 2、测试步骤:添加数据触发工作流 const triggerNodeCollectionRecordOne = @@ -555,7 +555,7 @@ test.describe('field data entry', () => { const newPage = mockPage(); await newPage.goto(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('schema-initializer-Grid-page:addBlock').hover(); await page.getByRole('menuitem', { name: 'check-square Workflow todos' }).click(); await page.mouse.move(300, 0, { steps: 100 }); diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/createRecordForm4.test.ts b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/createRecordForm4.test.ts index 96dd497eff..d94116ef1f 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/createRecordForm4.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/createRecordForm4.test.ts @@ -73,7 +73,7 @@ test.describe('field data entry', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置Manual节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'manual', exact: true }).click(); @@ -108,7 +108,7 @@ test.describe('field data entry', () => { await page.mouse.move(300, 0, { steps: 100 }); await page.mouse.click(300, 0); await manualNode.submitButton.click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); // 2、测试步骤:添加数据触发工作流 const triggerNodeCollectionRecordOne = @@ -125,7 +125,7 @@ test.describe('field data entry', () => { const newPage = mockPage(); await newPage.goto(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('schema-initializer-Grid-page:addBlock').hover(); await page.getByRole('menuitem', { name: 'check-square Workflow todos' }).click(); await page.mouse.move(300, 0, { steps: 100 }); @@ -212,7 +212,7 @@ test.describe('field data entry', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置Manual节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'manual', exact: true }).click(); @@ -247,7 +247,7 @@ test.describe('field data entry', () => { await page.mouse.move(300, 0, { steps: 100 }); await page.mouse.click(300, 0); await manualNode.submitButton.click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); // 2、测试步骤:添加数据触发工作流 const triggerNodeCollectionRecordOne = @@ -264,7 +264,7 @@ test.describe('field data entry', () => { const newPage = mockPage(); await newPage.goto(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('schema-initializer-Grid-page:addBlock').hover(); await page.getByRole('menuitem', { name: 'check-square Workflow todos' }).click(); await page.mouse.move(300, 0, { steps: 100 }); @@ -351,7 +351,7 @@ test.describe('field data entry', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置Manual节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'manual', exact: true }).click(); @@ -386,7 +386,7 @@ test.describe('field data entry', () => { await page.mouse.move(300, 0, { steps: 100 }); await page.mouse.click(300, 0); await manualNode.submitButton.click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); // 2、测试步骤:添加数据触发工作流 const triggerNodeCollectionRecordOne = @@ -403,7 +403,7 @@ test.describe('field data entry', () => { const newPage = mockPage(); await newPage.goto(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('schema-initializer-Grid-page:addBlock').hover(); await page.getByRole('menuitem', { name: 'check-square Workflow todos' }).click(); await page.mouse.move(300, 0, { steps: 100 }); diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/createRecordForm5.test.ts b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/createRecordForm5.test.ts index 239b9c46a3..567bee2143 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/createRecordForm5.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/createRecordForm5.test.ts @@ -73,7 +73,7 @@ test.describe('field data entry', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置Manual节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'manual', exact: true }).click(); @@ -108,7 +108,7 @@ test.describe('field data entry', () => { await page.mouse.move(300, 0, { steps: 100 }); await page.mouse.click(300, 0); await manualNode.submitButton.click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); // 2、测试步骤:添加数据触发工作流 const triggerNodeCollectionRecordOne = @@ -125,7 +125,7 @@ test.describe('field data entry', () => { const newPage = mockPage(); await newPage.goto(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('schema-initializer-Grid-page:addBlock').hover(); await page.getByRole('menuitem', { name: 'check-square Workflow todos' }).click(); await page.mouse.move(300, 0, { steps: 100 }); @@ -212,7 +212,7 @@ test.describe('field data entry', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置Manual节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'manual', exact: true }).click(); @@ -247,7 +247,7 @@ test.describe('field data entry', () => { await page.mouse.move(300, 0, { steps: 100 }); await page.mouse.click(300, 0); await manualNode.submitButton.click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); // 2、测试步骤:添加数据触发工作流 const triggerNodeCollectionRecordOne = @@ -264,7 +264,7 @@ test.describe('field data entry', () => { const newPage = mockPage(); await newPage.goto(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('schema-initializer-Grid-page:addBlock').hover(); await page.getByRole('menuitem', { name: 'check-square Workflow todos' }).click(); await page.mouse.move(300, 0, { steps: 100 }); @@ -351,7 +351,7 @@ test.describe('field data entry', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置Manual节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'manual', exact: true }).click(); @@ -386,7 +386,7 @@ test.describe('field data entry', () => { await page.mouse.move(300, 0, { steps: 100 }); await page.mouse.click(300, 0); await manualNode.submitButton.click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); // 2、测试步骤:添加数据触发工作流 const triggerNodeCollectionRecordOne = @@ -403,7 +403,7 @@ test.describe('field data entry', () => { const newPage = mockPage(); await newPage.goto(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('schema-initializer-Grid-page:addBlock').hover(); await page.getByRole('menuitem', { name: 'check-square Workflow todos' }).click(); await page.mouse.move(300, 0, { steps: 100 }); diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/customFormBlocks.test.ts b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/customFormBlocks.test.ts index 200e84355e..40318d5327 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/customFormBlocks.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/customFormBlocks.test.ts @@ -75,7 +75,7 @@ test.describe('field data entry', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置Manual节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'manual', exact: true }).click(); @@ -118,7 +118,7 @@ test.describe('field data entry', () => { await page.mouse.move(300, 0, { steps: 100 }); await page.mouse.click(300, 0); await manualNode.submitButton.click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); // 2、测试步骤:添加数据触发工作流 const triggerNodeCollectionRecordOne = @@ -135,7 +135,7 @@ test.describe('field data entry', () => { const newPage = mockPage(); await newPage.goto(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('schema-initializer-Grid-page:addBlock').hover(); await page.getByRole('menuitem', { name: 'check-square Workflow todos' }).click(); await page.mouse.move(300, 0, { steps: 100 }); @@ -218,7 +218,7 @@ test.describe('field data entry', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置Manual节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'manual', exact: true }).click(); @@ -261,7 +261,7 @@ test.describe('field data entry', () => { await page.mouse.move(300, 0, { steps: 100 }); await page.mouse.click(300, 0); await manualNode.submitButton.click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); // 2、测试步骤:添加数据触发工作流 const triggerNodeCollectionRecordOne = @@ -278,7 +278,7 @@ test.describe('field data entry', () => { const newPage = mockPage(); await newPage.goto(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('schema-initializer-Grid-page:addBlock').hover(); await page.getByRole('menuitem', { name: 'check-square Workflow todos' }).click(); await page.mouse.move(300, 0, { steps: 100 }); @@ -361,7 +361,7 @@ test.describe('field data entry', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置Manual节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'manual', exact: true }).click(); @@ -410,7 +410,7 @@ test.describe('field data entry', () => { await page.mouse.move(300, 0, { steps: 100 }); await page.mouse.click(300, 0); await manualNode.submitButton.click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); // 2、测试步骤:添加数据触发工作流 const triggerNodeCollectionRecordOne = @@ -427,7 +427,7 @@ test.describe('field data entry', () => { const newPage = mockPage(); await newPage.goto(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('schema-initializer-Grid-page:addBlock').hover(); await page.getByRole('menuitem', { name: 'check-square Workflow todos' }).click(); await page.mouse.move(300, 0, { steps: 100 }); diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/customFormBlocks1.test.ts b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/customFormBlocks1.test.ts index 4cd0f765cc..ccf32a6fd3 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/customFormBlocks1.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/customFormBlocks1.test.ts @@ -71,7 +71,7 @@ test.describe('field data entry', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置Manual节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'manual', exact: true }).click(); @@ -120,7 +120,7 @@ test.describe('field data entry', () => { await page.mouse.move(300, 0, { steps: 100 }); await page.mouse.click(300, 0); await manualNode.submitButton.click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); // 2、测试步骤:添加数据触发工作流 const triggerNodeCollectionRecordOne = @@ -137,7 +137,7 @@ test.describe('field data entry', () => { const newPage = mockPage(); await newPage.goto(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('schema-initializer-Grid-page:addBlock').hover(); await page.getByRole('menuitem', { name: 'check-square Workflow todos' }).click(); await page.mouse.move(300, 0, { steps: 100 }); @@ -228,7 +228,7 @@ test.describe('field data entry', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置Manual节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'manual', exact: true }).click(); @@ -277,7 +277,7 @@ test.describe('field data entry', () => { await page.mouse.move(300, 0, { steps: 100 }); await page.mouse.click(300, 0); await manualNode.submitButton.click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); // 2、测试步骤:添加数据触发工作流 const triggerNodeCollectionRecordOne = @@ -294,7 +294,7 @@ test.describe('field data entry', () => { const newPage = mockPage(); await newPage.goto(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('schema-initializer-Grid-page:addBlock').hover(); await page.getByRole('menuitem', { name: 'check-square Workflow todos' }).click(); await page.mouse.move(300, 0, { steps: 100 }); @@ -377,7 +377,7 @@ test.describe('field data entry', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置Manual节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'manual', exact: true }).click(); @@ -426,7 +426,7 @@ test.describe('field data entry', () => { await page.mouse.move(300, 0, { steps: 100 }); await page.mouse.click(300, 0); await manualNode.submitButton.click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); // 2、测试步骤:添加数据触发工作流 const triggerNodeCollectionRecordOne = @@ -443,7 +443,7 @@ test.describe('field data entry', () => { const newPage = mockPage(); await newPage.goto(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('schema-initializer-Grid-page:addBlock').hover(); await page.getByRole('menuitem', { name: 'check-square Workflow todos' }).click(); await page.mouse.move(300, 0, { steps: 100 }); @@ -532,7 +532,7 @@ test.describe('field data entry', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置Manual节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'manual', exact: true }).click(); @@ -575,7 +575,7 @@ test.describe('field data entry', () => { await page.mouse.move(300, 0, { steps: 100 }); await page.mouse.click(300, 0); await manualNode.submitButton.click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); // 2、测试步骤:添加数据触发工作流 const triggerNodeCollectionRecordOne = @@ -592,7 +592,7 @@ test.describe('field data entry', () => { const newPage = mockPage(); await newPage.goto(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('schema-initializer-Grid-page:addBlock').hover(); await page.getByRole('menuitem', { name: 'check-square Workflow todos' }).click(); await page.mouse.move(300, 0, { steps: 100 }); diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/customFormBlocks2.test.ts b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/customFormBlocks2.test.ts index c00bcce637..1de7457937 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/customFormBlocks2.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/customFormBlocks2.test.ts @@ -71,7 +71,7 @@ test.describe('field data entry', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置Manual节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'manual', exact: true }).click(); @@ -114,7 +114,7 @@ test.describe('field data entry', () => { await page.mouse.move(300, 0, { steps: 100 }); await page.mouse.click(300, 0); await manualNode.submitButton.click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); // 2、测试步骤:添加数据触发工作流 const triggerNodeCollectionRecordOne = @@ -131,7 +131,7 @@ test.describe('field data entry', () => { const newPage = mockPage(); await newPage.goto(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('schema-initializer-Grid-page:addBlock').hover(); await page.getByRole('menuitem', { name: 'check-square Workflow todos' }).click(); await page.mouse.move(300, 0, { steps: 100 }); @@ -214,7 +214,7 @@ test.describe('field data entry', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置Manual节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'manual', exact: true }).click(); @@ -257,7 +257,7 @@ test.describe('field data entry', () => { await page.mouse.move(300, 0, { steps: 100 }); await page.mouse.click(300, 0); await manualNode.submitButton.click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); // 2、测试步骤:添加数据触发工作流 const triggerNodeCollectionRecordOne = @@ -274,7 +274,7 @@ test.describe('field data entry', () => { const newPage = mockPage(); await newPage.goto(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('schema-initializer-Grid-page:addBlock').hover(); await page.getByRole('menuitem', { name: 'check-square Workflow todos' }).click(); await page.mouse.move(300, 0, { steps: 100 }); @@ -357,7 +357,7 @@ test.describe('field data entry', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置Manual节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'manual', exact: true }).click(); @@ -400,7 +400,7 @@ test.describe('field data entry', () => { await page.mouse.move(300, 0, { steps: 100 }); await page.mouse.click(300, 0); await manualNode.submitButton.click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); // 2、测试步骤:添加数据触发工作流 const triggerNodeCollectionRecordOne = @@ -417,7 +417,7 @@ test.describe('field data entry', () => { const newPage = mockPage(); await newPage.goto(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('schema-initializer-Grid-page:addBlock').hover(); await page.getByRole('menuitem', { name: 'check-square Workflow todos' }).click(); await page.mouse.move(300, 0, { steps: 100 }); diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/customFormBlocks3.test.ts b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/customFormBlocks3.test.ts index 865f70eb57..9fafabcd88 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/customFormBlocks3.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/customFormBlocks3.test.ts @@ -71,7 +71,7 @@ test.describe('field data entry', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置Manual节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'manual', exact: true }).click(); @@ -114,7 +114,7 @@ test.describe('field data entry', () => { await page.mouse.move(300, 0, { steps: 100 }); await page.mouse.click(300, 0); await manualNode.submitButton.click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); // 2、测试步骤:添加数据触发工作流 const triggerNodeCollectionRecordOne = @@ -131,7 +131,7 @@ test.describe('field data entry', () => { const newPage = mockPage(); await newPage.goto(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('schema-initializer-Grid-page:addBlock').hover(); await page.getByRole('menuitem', { name: 'check-square Workflow todos' }).click(); await page.mouse.move(300, 0, { steps: 100 }); @@ -214,7 +214,7 @@ test.describe('field data entry', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置Manual节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'manual', exact: true }).click(); @@ -257,7 +257,7 @@ test.describe('field data entry', () => { await page.mouse.move(300, 0, { steps: 100 }); await page.mouse.click(300, 0); await manualNode.submitButton.click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); // 2、测试步骤:添加数据触发工作流 const triggerNodeCollectionRecordOne = @@ -274,7 +274,7 @@ test.describe('field data entry', () => { const newPage = mockPage(); await newPage.goto(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('schema-initializer-Grid-page:addBlock').hover(); await page.getByRole('menuitem', { name: 'check-square Workflow todos' }).click(); await page.mouse.move(300, 0, { steps: 100 }); @@ -357,7 +357,7 @@ test.describe('field data entry', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置Manual节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'manual', exact: true }).click(); @@ -400,7 +400,7 @@ test.describe('field data entry', () => { await page.mouse.move(300, 0, { steps: 100 }); await page.mouse.click(300, 0); await manualNode.submitButton.click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); // 2、测试步骤:添加数据触发工作流 const triggerNodeCollectionRecordOne = @@ -417,7 +417,7 @@ test.describe('field data entry', () => { const newPage = mockPage(); await newPage.goto(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('schema-initializer-Grid-page:addBlock').hover(); await page.getByRole('menuitem', { name: 'check-square Workflow todos' }).click(); await page.mouse.move(300, 0, { steps: 100 }); diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/datablocks.test.ts b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/datablocks.test.ts index f24c4b9539..47fa766fe4 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/datablocks.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/datablocks.test.ts @@ -103,7 +103,7 @@ test.describe('field data', () => { //配置Manual节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const preCreateRecordNodePom = new CreateRecordNode(page, preCreateRecordNodeTitle); await preCreateRecordNodePom.addNodeButton.click(); await page.getByRole('button', { name: 'manual', exact: true }).click(); @@ -140,7 +140,7 @@ test.describe('field data', () => { const newPage = mockPage(); await newPage.goto(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('schema-initializer-Grid-page:addBlock').hover(); await page.getByRole('menuitem', { name: 'check-square Workflow todos' }).click(); await page.mouse.move(300, 0, { steps: 100 }); @@ -265,7 +265,7 @@ test.describe('field data', () => { //配置Manual节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const preAggregateNodePom = new AggregateNode(page, preAggregateNodeTitle); await preAggregateNodePom.addNodeButton.click(); await page.getByRole('button', { name: 'manual', exact: true }).click(); @@ -300,7 +300,7 @@ test.describe('field data', () => { const newPage = mockPage(); await newPage.goto(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('schema-initializer-Grid-page:addBlock').hover(); await page.getByRole('menuitem', { name: 'check-square Workflow todos' }).click(); await page.mouse.move(300, 0, { steps: 100 }); diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/datablocks1.test.ts b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/datablocks1.test.ts index 5d174b0dfe..a9bb32aaa3 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/datablocks1.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/datablocks1.test.ts @@ -96,7 +96,7 @@ test.describe('field data', () => { const preAggregateNodeKey = getAggregateNode.key; await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const preManualNodePom = new ManualNode(page, preManualNodeTitle); await preManualNodePom.nodeConfigure.click(); await preManualNodePom.configureUserInterfaceButton.click(); @@ -131,7 +131,7 @@ test.describe('field data', () => { await page.mouse.move(300, 0, { steps: 100 }); await page.mouse.click(300, 0); await preManualNodePom.submitButton.click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); //配置Manual节点 await preManualNodePom.addNodeButton.click(); await page.getByRole('button', { name: 'manual', exact: true }).click(); @@ -169,7 +169,7 @@ test.describe('field data', () => { const newPage = mockPage(); await newPage.goto(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('schema-initializer-Grid-page:addBlock').hover(); await page.getByRole('menuitem', { name: 'check-square Workflow todos' }).click(); await page.mouse.move(300, 0, { steps: 100 }); @@ -270,7 +270,7 @@ test.describe('field data', () => { const preAggregateNodeKey = getAggregateNode.key; await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const preManualNodePom = new ManualNode(page, preManualNodeTitle); await preManualNodePom.nodeConfigure.click(); await preManualNodePom.configureUserInterfaceButton.click(); @@ -295,7 +295,7 @@ test.describe('field data', () => { await page.mouse.move(300, 0, { steps: 100 }); await page.mouse.click(300, 0); await preManualNodePom.submitButton.click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); //配置Manual节点 await preManualNodePom.addNodeButton.click(); await page.getByRole('button', { name: 'manual', exact: true }).click(); @@ -333,7 +333,7 @@ test.describe('field data', () => { const newPage = mockPage(); await newPage.goto(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('schema-initializer-Grid-page:addBlock').hover(); await page.getByRole('menuitem', { name: 'check-square Workflow todos' }).click(); await page.mouse.move(300, 0, { steps: 100 }); @@ -470,7 +470,7 @@ test.describe('field data', () => { const preAggregateNodeKey = getAggregateNode.key; await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const preManualNodePom = new ManualNode(page, preManualNodeTitle); await preManualNodePom.nodeConfigure.click(); await preManualNodePom.configureUserInterfaceButton.click(); @@ -508,7 +508,7 @@ test.describe('field data', () => { await page.mouse.move(300, 0, { steps: 100 }); await page.mouse.click(300, 0); await preManualNodePom.submitButton.click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); //配置Manual节点 await preManualNodePom.addNodeButton.click(); await page.getByRole('button', { name: 'manual', exact: true }).click(); @@ -546,7 +546,7 @@ test.describe('field data', () => { const newPage = mockPage(); await newPage.goto(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('schema-initializer-Grid-page:addBlock').hover(); await page.getByRole('menuitem', { name: 'check-square Workflow todos' }).click(); await page.mouse.move(300, 0, { steps: 100 }); diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/datablocks2.test.ts b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/datablocks2.test.ts index bb9f983ada..6f8e6d7650 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/datablocks2.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/datablocks2.test.ts @@ -73,7 +73,7 @@ test.describe('field data', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置Manual节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'manual', exact: true }).click(); @@ -109,7 +109,7 @@ test.describe('field data', () => { const newPage = mockPage(); await newPage.goto(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('schema-initializer-Grid-page:addBlock').hover(); await page.getByRole('menuitem', { name: 'check-square Workflow todos' }).click(); await page.mouse.move(300, 0, { steps: 100 }); @@ -186,7 +186,7 @@ test.describe('field data', () => { //配置Manual节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const preCalculationNodePom = new CalculationNode(page, preCalculationNodeTitle); await preCalculationNodePom.addNodeButton.click(); await page.getByRole('button', { name: 'manual', exact: true }).click(); @@ -221,7 +221,7 @@ test.describe('field data', () => { const newPage = mockPage(); await newPage.goto(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('schema-initializer-Grid-page:addBlock').hover(); await page.getByRole('menuitem', { name: 'check-square Workflow todos' }).click(); await page.mouse.move(300, 0, { steps: 100 }); @@ -307,7 +307,7 @@ test.describe('field data', () => { //配置Manual节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const preQueryRecordNodePom = new QueryRecordNode(page, preQueryRecordNodeTitle); await preQueryRecordNodePom.addNodeButton.click(); await page.getByRole('button', { name: 'manual', exact: true }).click(); @@ -344,7 +344,7 @@ test.describe('field data', () => { const newPage = mockPage(); await newPage.goto(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('schema-initializer-Grid-page:addBlock').hover(); await page.getByRole('menuitem', { name: 'check-square Workflow todos' }).click(); await page.mouse.move(300, 0, { steps: 100 }); diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/updateRecordForm.test.ts b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/updateRecordForm.test.ts index 037f6c73ff..dbfecebfa4 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/updateRecordForm.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/updateRecordForm.test.ts @@ -113,7 +113,7 @@ test.describe('field data update', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置Manual节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'manual', exact: true }).click(); @@ -159,7 +159,7 @@ test.describe('field data update', () => { await page.mouse.move(300, 0, { steps: 100 }); await page.mouse.click(300, 0); await manualNode.submitButton.click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); // 2、测试步骤:添加数据触发工作流 const triggerNodeCollectionRecordOne = @@ -176,7 +176,7 @@ test.describe('field data update', () => { const newPage = mockPage(); await newPage.goto(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('schema-initializer-Grid-page:addBlock').hover(); await page.getByRole('menuitem', { name: 'check-square Workflow todos' }).click(); await page.mouse.move(300, 0, { steps: 100 }); @@ -296,7 +296,7 @@ test.describe('field data update', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置Manual节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'manual', exact: true }).click(); @@ -342,7 +342,7 @@ test.describe('field data update', () => { await page.mouse.move(300, 0, { steps: 100 }); await page.mouse.click(300, 0); await manualNode.submitButton.click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); // 2、测试步骤:添加数据触发工作流 const triggerNodeCollectionRecordOne = @@ -359,7 +359,7 @@ test.describe('field data update', () => { const newPage = mockPage(); await newPage.goto(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('schema-initializer-Grid-page:addBlock').hover(); await page.getByRole('menuitem', { name: 'check-square Workflow todos' }).click(); await page.mouse.move(300, 0, { steps: 100 }); @@ -479,7 +479,7 @@ test.describe('field data update', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置Manual节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'manual', exact: true }).click(); @@ -525,7 +525,7 @@ test.describe('field data update', () => { await page.mouse.move(300, 0, { steps: 100 }); await page.mouse.click(300, 0); await manualNode.submitButton.click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); // 2、测试步骤:添加数据触发工作流 const triggerNodeCollectionRecordOne = @@ -542,7 +542,7 @@ test.describe('field data update', () => { const newPage = mockPage(); await newPage.goto(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('schema-initializer-Grid-page:addBlock').hover(); await page.getByRole('menuitem', { name: 'check-square Workflow todos' }).click(); await page.mouse.move(300, 0, { steps: 100 }); @@ -663,7 +663,7 @@ test.describe('field data update', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置Manual节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'manual', exact: true }).click(); @@ -709,7 +709,7 @@ test.describe('field data update', () => { await page.mouse.move(300, 0, { steps: 100 }); await page.mouse.click(300, 0); await manualNode.submitButton.click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); // 2、测试步骤:添加数据触发工作流 const triggerNodeCollectionRecordOne = @@ -726,7 +726,7 @@ test.describe('field data update', () => { const newPage = mockPage(); await newPage.goto(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('schema-initializer-Grid-page:addBlock').hover(); await page.getByRole('menuitem', { name: 'check-square Workflow todos' }).click(); await page.mouse.move(300, 0, { steps: 100 }); diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/updateRecordForm1.test.ts b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/updateRecordForm1.test.ts index 5a1a3bb7e0..91e49c540e 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/updateRecordForm1.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/updateRecordForm1.test.ts @@ -105,7 +105,7 @@ test.describe('field data update', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置Manual节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'manual', exact: true }).click(); @@ -151,7 +151,7 @@ test.describe('field data update', () => { await page.mouse.move(300, 0, { steps: 100 }); await page.mouse.click(300, 0); await manualNode.submitButton.click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); // 2、测试步骤:添加数据触发工作流 const triggerNodeCollectionRecordOne = @@ -168,7 +168,7 @@ test.describe('field data update', () => { const newPage = mockPage(); await newPage.goto(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('schema-initializer-Grid-page:addBlock').hover(); await page.getByRole('menuitem', { name: 'check-square Workflow todos' }).click(); await page.mouse.move(300, 0, { steps: 100 }); @@ -288,7 +288,7 @@ test.describe('field data update', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置Manual节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'manual', exact: true }).click(); @@ -334,7 +334,7 @@ test.describe('field data update', () => { await page.mouse.move(300, 0, { steps: 100 }); await page.mouse.click(300, 0); await manualNode.submitButton.click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); // 2、测试步骤:添加数据触发工作流 const triggerNodeCollectionRecordOne = @@ -351,7 +351,7 @@ test.describe('field data update', () => { const newPage = mockPage(); await newPage.goto(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('schema-initializer-Grid-page:addBlock').hover(); await page.getByRole('menuitem', { name: 'check-square Workflow todos' }).click(); await page.mouse.move(300, 0, { steps: 100 }); @@ -477,7 +477,7 @@ test.describe('field data update', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置Manual节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'manual', exact: true }).click(); @@ -523,7 +523,7 @@ test.describe('field data update', () => { await page.mouse.move(300, 0, { steps: 100 }); await page.mouse.click(300, 0); await manualNode.submitButton.click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); // 2、测试步骤:添加数据触发工作流 const triggerNodeCollectionRecordOne = @@ -540,7 +540,7 @@ test.describe('field data update', () => { const newPage = mockPage(); await newPage.goto(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('schema-initializer-Grid-page:addBlock').hover(); await page.getByRole('menuitem', { name: 'check-square Workflow todos' }).click(); await page.mouse.move(300, 0, { steps: 100 }); diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/updateRecordForm2.test.ts b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/updateRecordForm2.test.ts index 0d5dc1d69f..7153c64520 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/updateRecordForm2.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/updateRecordForm2.test.ts @@ -89,7 +89,7 @@ test.describe('field data update', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置Manual节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'manual', exact: true }).click(); @@ -135,7 +135,7 @@ test.describe('field data update', () => { await page.mouse.move(300, 0, { steps: 100 }); await page.mouse.click(300, 0); await manualNode.submitButton.click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); // 2、测试步骤:添加数据触发工作流 const triggerNodeCollectionRecordOne = @@ -152,7 +152,7 @@ test.describe('field data update', () => { const newPage = mockPage(); await newPage.goto(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('schema-initializer-Grid-page:addBlock').hover(); await page.getByRole('menuitem', { name: 'check-square Workflow todos' }).click(); await page.mouse.move(300, 0, { steps: 100 }); @@ -256,7 +256,7 @@ test.describe('field data update', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置Manual节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'manual', exact: true }).click(); @@ -302,7 +302,7 @@ test.describe('field data update', () => { await page.mouse.move(300, 0, { steps: 100 }); await page.mouse.click(300, 0); await manualNode.submitButton.click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); // 2、测试步骤:添加数据触发工作流 const triggerNodeCollectionRecordOne = @@ -319,7 +319,7 @@ test.describe('field data update', () => { const newPage = mockPage(); await newPage.goto(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('schema-initializer-Grid-page:addBlock').hover(); await page.getByRole('menuitem', { name: 'check-square Workflow todos' }).click(); await page.mouse.move(300, 0, { steps: 100 }); @@ -423,7 +423,7 @@ test.describe('field data update', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置Manual节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'manual', exact: true }).click(); @@ -469,7 +469,7 @@ test.describe('field data update', () => { await page.mouse.move(300, 0, { steps: 100 }); await page.mouse.click(300, 0); await manualNode.submitButton.click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); // 2、测试步骤:添加数据触发工作流 const triggerNodeCollectionRecordOne = @@ -486,7 +486,7 @@ test.describe('field data update', () => { const newPage = mockPage(); await newPage.goto(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('schema-initializer-Grid-page:addBlock').hover(); await page.getByRole('menuitem', { name: 'check-square Workflow todos' }).click(); await page.mouse.move(300, 0, { steps: 100 }); diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/updateRecordForm3.test.ts b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/updateRecordForm3.test.ts index fd09c1e5a8..4ea7d535d2 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/updateRecordForm3.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/updateRecordForm3.test.ts @@ -89,7 +89,7 @@ test.describe('field data update', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置Manual节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'manual', exact: true }).click(); @@ -135,7 +135,7 @@ test.describe('field data update', () => { await page.mouse.move(300, 0, { steps: 100 }); await page.mouse.click(300, 0); await manualNode.submitButton.click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); // 2、测试步骤:添加数据触发工作流 const triggerNodeCollectionRecordOne = @@ -152,7 +152,7 @@ test.describe('field data update', () => { const newPage = mockPage(); await newPage.goto(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('schema-initializer-Grid-page:addBlock').hover(); await page.getByRole('menuitem', { name: 'check-square Workflow todos' }).click(); await page.mouse.move(300, 0, { steps: 100 }); @@ -256,7 +256,7 @@ test.describe('field data update', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置Manual节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'manual', exact: true }).click(); @@ -302,7 +302,7 @@ test.describe('field data update', () => { await page.mouse.move(300, 0, { steps: 100 }); await page.mouse.click(300, 0); await manualNode.submitButton.click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); // 2、测试步骤:添加数据触发工作流 const triggerNodeCollectionRecordOne = @@ -319,7 +319,7 @@ test.describe('field data update', () => { const newPage = mockPage(); await newPage.goto(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('schema-initializer-Grid-page:addBlock').hover(); await page.getByRole('menuitem', { name: 'check-square Workflow todos' }).click(); await page.mouse.move(300, 0, { steps: 100 }); @@ -423,7 +423,7 @@ test.describe('field data update', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置Manual节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'manual', exact: true }).click(); @@ -469,7 +469,7 @@ test.describe('field data update', () => { await page.mouse.move(300, 0, { steps: 100 }); await page.mouse.click(300, 0); await manualNode.submitButton.click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); // 2、测试步骤:添加数据触发工作流 const triggerNodeCollectionRecordOne = @@ -486,7 +486,7 @@ test.describe('field data update', () => { const newPage = mockPage(); await newPage.goto(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('schema-initializer-Grid-page:addBlock').hover(); await page.getByRole('menuitem', { name: 'check-square Workflow todos' }).click(); await page.mouse.move(300, 0, { steps: 100 }); diff --git a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/workflowTodo.test.ts b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/workflowTodo.test.ts index 1347ea99a9..b3591c768b 100644 --- a/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/workflowTodo.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow-manual/src/client/__e2e__/workflowTodo.test.ts @@ -65,7 +65,7 @@ test('filter task node', async ({ page, mockPage, mockCollections, mockRecords } const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置Manual节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'manual', exact: true }).click(); @@ -100,7 +100,7 @@ test('filter task node', async ({ page, mockPage, mockCollections, mockRecords } await page.mouse.move(300, 0, { steps: 100 }); await page.mouse.click(300, 0); await manualNode.submitButton.click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); // 2、测试步骤:添加数据触发工作流 const triggerNodeCollectionRecordOne = triggerNodeFieldDisplayName + dayjs().format('YYYYMMDDHHmmss.SSS').toString(); @@ -116,7 +116,7 @@ test('filter task node', async ({ page, mockPage, mockCollections, mockRecords } const newPage = mockPage(); await newPage.goto(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('schema-initializer-Grid-page:addBlock').hover(); await page.getByRole('menuitem', { name: 'check-square Workflow todos' }).click(); await page.mouse.move(300, 0, { steps: 100 }); @@ -179,7 +179,7 @@ test('filter workflow name', async ({ page, mockPage, mockCollections, mockRecor const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置Manual节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'manual', exact: true }).click(); @@ -214,7 +214,7 @@ test('filter workflow name', async ({ page, mockPage, mockCollections, mockRecor await page.mouse.move(300, 0, { steps: 100 }); await page.mouse.click(300, 0); await manualNode.submitButton.click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); // 2、测试步骤:添加数据触发工作流 const triggerNodeCollectionRecordOne = triggerNodeFieldDisplayName + dayjs().format('YYYYMMDDHHmmss.SSS').toString(); @@ -230,7 +230,7 @@ test('filter workflow name', async ({ page, mockPage, mockCollections, mockRecor const newPage = mockPage(); await newPage.goto(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('schema-initializer-Grid-page:addBlock').hover(); await page.getByRole('menuitem', { name: 'check-square Workflow todos' }).click(); await page.mouse.move(300, 0, { steps: 100 }); diff --git a/packages/plugins/@nocobase/plugin-workflow-parallel/src/client/__e2e__/parallelBranch1.test.ts b/packages/plugins/@nocobase/plugin-workflow-parallel/src/client/__e2e__/parallelBranch1.test.ts index ad58e36446..9a994ee1e4 100644 --- a/packages/plugins/@nocobase/plugin-workflow-parallel/src/client/__e2e__/parallelBranch1.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow-parallel/src/client/__e2e__/parallelBranch1.test.ts @@ -58,7 +58,7 @@ test.describe('All succeeded', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置分支节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'parallel', exact: true }).click(); @@ -193,7 +193,7 @@ test.describe('All succeeded', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置分支节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'parallel', exact: true }).click(); @@ -327,7 +327,7 @@ test.describe('All succeeded', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置分支节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'parallel', exact: true }).click(); @@ -460,7 +460,7 @@ test.describe('All succeeded', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置分支节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'parallel', exact: true }).click(); diff --git a/packages/plugins/@nocobase/plugin-workflow-parallel/src/client/__e2e__/parallelBranch2.test.ts b/packages/plugins/@nocobase/plugin-workflow-parallel/src/client/__e2e__/parallelBranch2.test.ts index 09e4b44e8b..d4158c896a 100644 --- a/packages/plugins/@nocobase/plugin-workflow-parallel/src/client/__e2e__/parallelBranch2.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow-parallel/src/client/__e2e__/parallelBranch2.test.ts @@ -58,7 +58,7 @@ test.describe('Any succeeded', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置分支节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'parallel', exact: true }).click(); @@ -194,7 +194,7 @@ test.describe('Any succeeded', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置分支节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'parallel', exact: true }).click(); @@ -331,7 +331,7 @@ test.describe('Any succeeded', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置分支节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'parallel', exact: true }).click(); diff --git a/packages/plugins/@nocobase/plugin-workflow-parallel/src/client/__e2e__/parallelBranch3.test.ts b/packages/plugins/@nocobase/plugin-workflow-parallel/src/client/__e2e__/parallelBranch3.test.ts index 8172913357..bcf5ec99e8 100644 --- a/packages/plugins/@nocobase/plugin-workflow-parallel/src/client/__e2e__/parallelBranch3.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow-parallel/src/client/__e2e__/parallelBranch3.test.ts @@ -58,7 +58,7 @@ test.describe('Any succeeded or failed', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置分支节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'parallel', exact: true }).click(); @@ -179,7 +179,7 @@ test.describe('Any succeeded or failed', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置分支节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'parallel', exact: true }).click(); diff --git a/packages/plugins/@nocobase/plugin-workflow-sql/src/client/__e2e__/dataCURD.test.ts b/packages/plugins/@nocobase/plugin-workflow-sql/src/client/__e2e__/dataCURD.test.ts index dc38c262d8..e0685ebaff 100644 --- a/packages/plugins/@nocobase/plugin-workflow-sql/src/client/__e2e__/dataCURD.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow-sql/src/client/__e2e__/dataCURD.test.ts @@ -87,7 +87,7 @@ test.describe('select data', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置SQL节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'sql', exact: true }).click(); @@ -183,7 +183,7 @@ test.describe('select data', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置SQL节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'sql', exact: true }).click(); @@ -279,7 +279,7 @@ test.describe('select data', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置SQL节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'sql', exact: true }).click(); @@ -381,7 +381,7 @@ test.describe('select data', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置SQL节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'sql', exact: true }).click(); @@ -483,7 +483,7 @@ test.describe('select data', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置SQL节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'sql', exact: true }).click(); @@ -588,7 +588,7 @@ test.describe('select data', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置SQL节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'sql', exact: true }).click(); @@ -679,7 +679,7 @@ test.describe('insert data', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置SQL节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'sql', exact: true }).click(); @@ -767,7 +767,7 @@ test.describe('insert data', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置SQL节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'sql', exact: true }).click(); @@ -849,7 +849,7 @@ test.describe('insert data', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置SQL节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'sql', exact: true }).click(); @@ -969,7 +969,7 @@ test.describe('update data', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置SQL节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'sql', exact: true }).click(); @@ -1066,7 +1066,7 @@ test.describe('update data', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置SQL节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'sql', exact: true }).click(); @@ -1174,7 +1174,7 @@ test.describe('delete data', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置SQL节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'sql', exact: true }).click(); @@ -1271,7 +1271,7 @@ test.describe('delete data', () => { const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置SQL节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'sql', exact: true }).click(); diff --git a/packages/plugins/@nocobase/plugin-workflow-test/src/e2e/e2eUtils.ts b/packages/plugins/@nocobase/plugin-workflow-test/src/e2e/e2eUtils.ts index a9e5126403..f16c1ffa8a 100644 --- a/packages/plugins/@nocobase/plugin-workflow-test/src/e2e/e2eUtils.ts +++ b/packages/plugins/@nocobase/plugin-workflow-test/src/e2e/e2eUtils.ts @@ -1047,7 +1047,7 @@ export const userLogin = async (browser: Browser, approvalUserEmail: string, app await page.getByPlaceholder('Email').fill(approvalUserEmail); await page.getByPlaceholder('Password').fill(approvalUser); await page.getByRole('button', { name: 'Sign in' }).click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); return context; }; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/ScheduleEventTrigger/configuration.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/ScheduleEventTrigger/configuration.test.ts index 745825a7c8..b8874bb499 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/ScheduleEventTrigger/configuration.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/ScheduleEventTrigger/configuration.test.ts @@ -65,13 +65,13 @@ test.describe('Configuration page copy to new version', () => { // 2、测试步骤:等待60秒 await page.waitForTimeout(60000); await page.goto('/admin/settings/workflow'); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const workflowListRecords = new WorkflowListRecords(page, workFlowName); await workflowListRecords.configureAction.click(); await page.getByLabel('more').click(); await page.getByLabel('revision').click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const scheduleTriggerNode = new ScheduleTriggerNode(page, workFlowName, triggerNodeCollectionName); await scheduleTriggerNode.nodeConfigure.click(); // 3、预期结果:startTime时间为60秒后的时间 diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/ScheduleEventTrigger/configuration1.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/ScheduleEventTrigger/configuration1.test.ts index 685a622ad4..4ba792ba03 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/ScheduleEventTrigger/configuration1.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/ScheduleEventTrigger/configuration1.test.ts @@ -44,13 +44,13 @@ test.describe('Configuration Page Path Jump Workflow Management Page', () => { //配置工作流触发器 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); // 2、测试步骤:跳转到工作流管理页面 await page.getByRole('link', { name: 'Workflow' }).click(); // 3、预期结果:跳转路径正确 - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); expect(page.url()).toBe(`${process.env.APP_BASE_URL}/admin/settings/workflow`); // 4、后置处理:删除工作流 @@ -103,17 +103,17 @@ test.describe('Configuration Page Path Jump Workflow Management Page', () => { const getWorkflowExecuted = getWorkflowObj.executed; expect(getWorkflowExecuted).toBe(1); await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('more').click(); await page.getByLabel('revision').click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); //元素重复 await page.getByLabel('version', { exact: true }).click(); await page.getByLabel('version-1').click(); await page.getByRole('link', { name: 'Workflow' }).click(); // 3、预期结果:跳转路径正确 - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); expect(page.url()).toBe(`${process.env.APP_BASE_URL}/admin/settings/workflow`); // 4、后置处理:删除工作流 diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/ScheduleEventTrigger/configuration2.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/ScheduleEventTrigger/configuration2.test.ts index ca4c33c0ed..c8717a2209 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/ScheduleEventTrigger/configuration2.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/ScheduleEventTrigger/configuration2.test.ts @@ -53,7 +53,7 @@ test.describe('Configuration page to configure the Trigger node', () => { //配置工作流触发器 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const scheduleTriggerNode = new ScheduleTriggerNode(page, workFlowName, triggerNodeCollectionName); await scheduleTriggerNode.nodeConfigure.click(); await scheduleTriggerNode.startTimeEntryBox.click(); diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/ScheduleEventTrigger/configuration3.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/ScheduleEventTrigger/configuration3.test.ts index ef3884b679..76ca86e62d 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/ScheduleEventTrigger/configuration3.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/ScheduleEventTrigger/configuration3.test.ts @@ -62,15 +62,15 @@ test.describe('Configuration Page Path Jump Workflow Management Page', () => { // 2、测试步骤:等待60秒 await page.waitForTimeout(60000); await page.goto('/admin/settings/workflow'); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const workflowListRecords = new WorkflowListRecords(page, workFlowName); await workflowListRecords.executionCountPopup.click(); await page.getByText('View').click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByRole('link', { name: 'Workflow', exact: true }).click(); // 3、预期结果:跳转路径正确 - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); expect(page.url()).toBe(`${process.env.APP_BASE_URL}/admin/settings/workflow`); // 4、后置处理:删除工作流 @@ -120,14 +120,14 @@ test.describe('Configuration Page Path Jump Workflow Management Page', () => { // 2、测试步骤:等待60秒 await page.waitForTimeout(60000); await page.goto('/admin/settings/workflow'); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const workflowListRecords = new WorkflowListRecords(page, workFlowName); await workflowListRecords.executionCountPopup.click(); await page.getByText('View').click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); //跳转其他执行日志界面,元素无法定位 // 3、预期结果:跳转路径正确 - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); // expect(page.url()).toBe(`${process.env.APP_BASE_URL}/admin/settings/workflow`); // 4、后置处理:删除工作流 await apiDeleteWorkflow(workflowId); 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 3f3471f3b9..742ea0d720 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 @@ -29,7 +29,7 @@ test.describe('Filter', () => { // 2、筛选工作流 await page.goto('/admin/settings/workflow'); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); 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(); @@ -46,7 +46,7 @@ test.describe('Add new', () => { test('add new Schedule event', async ({ page }) => { // 添加工作流 await page.goto('/admin/settings/workflow'); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('action-Action-Add new-workflows').click(); const createWorkFlow = new CreateWorkFlow(page); const workFlowName = faker.string.alphanumeric(5); @@ -88,7 +88,7 @@ test.describe('Delete', () => { // 删除工作流 await page.goto('/admin/settings/workflow'); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); 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(); @@ -120,13 +120,13 @@ test.describe('Edit', () => { // 编辑工作流 await page.goto('/admin/settings/workflow'); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel(`action-Action.Link-Edit-workflows-${workFlowName}`).click(); const editWorkFlow = new EditWorkFlow(page, workFlowName); workFlowName = faker.string.alphanumeric(5) + triggerNodeAppendText; await editWorkFlow.name.fill(workFlowName); await page.getByLabel('action-Action-Submit-workflows').click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); // 3、预期结果:编辑成功,列表中出现编辑后的工作流 await expect(page.getByText(workFlowName)).toBeAttached(); @@ -153,10 +153,10 @@ test.describe('Duplicate', () => { // 2、复制工作流 await page.goto('/admin/settings/workflow'); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel(`action-Action.Link-Duplicate-workflows-${workFlowName}`).click(); await page.getByLabel(`action-Action-Submit-workflows-${workFlowName}`).click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); // 3、预期结果:列表中出现筛选的工作流 await page.getByLabel('action-Filter.Action-Filter-filter-workflows').click(); await page.getByRole('textbox').fill(workFlowName); diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/calculationNode/formulaEngine.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/calculationNode/formulaEngine.test.ts index 7eb4d43977..dbc9a50021 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/calculationNode/formulaEngine.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/calculationNode/formulaEngine.test.ts @@ -66,7 +66,7 @@ test('Collection event add data trigger, get trigger node single line text varia //配置计算节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'calculation', exact: true }).click(); @@ -158,7 +158,7 @@ test('Collection event add data triggers, get predecessor Formula engine arithme //配置计算节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const preCalculationNodePom = new CalculationNode(page, preCalculationNodeTitle); await preCalculationNodePom.addNodeButton.click(); await page.getByRole('button', { name: 'calculation', exact: true }).click(); @@ -260,7 +260,7 @@ test('Collection events add data triggers, get single line of text data for fron //配置计算节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const preQueryRecordNodePom = new QueryRecordNode(page, preQueryRecordNodeTitle); await preQueryRecordNodePom.addNodeButton.click(); await page.getByRole('button', { name: 'calculation', exact: true }).click(); @@ -365,7 +365,7 @@ test('Collection event add data trigger, get front added data node single line t //配置计算节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const preCreateRecordNodePom = new CreateRecordNode(page, preCreateRecordNodeTitle); await preCreateRecordNodePom.addNodeButton.click(); await page.getByRole('button', { name: 'calculation', exact: true }).click(); @@ -462,7 +462,7 @@ test('Collection event adds data triggers, fetches data from front-end aggregati //配置计算节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const preAggregateNodePom = new AggregateNode(page, preAggregateNodeTitle); await preAggregateNodePom.addNodeButton.click(); await page.getByRole('button', { name: 'calculation', exact: true }).click(); @@ -724,7 +724,7 @@ test.skip('Collection event add data trigger, get front manual node add form sin //配置计算节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const preManualNodeNodePom = new AggregateNode(page, preManualNodeNodeTitle); await preManualNodeNodePom.addNodeButton.click(); await page.getByRole('button', { name: 'calculation', exact: true }).click(); diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/calculationNode/mathEngine.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/calculationNode/mathEngine.test.ts index e608252e47..11b2335e4c 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/calculationNode/mathEngine.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/calculationNode/mathEngine.test.ts @@ -66,7 +66,7 @@ test('Collection event add data trigger, get trigger node single line text varia //配置计算节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'calculation', exact: true }).click(); @@ -157,7 +157,7 @@ test('Collection event add data triggers, get predecessor Math engine arithmetic //配置计算节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const preCalculationNodePom = new CalculationNode(page, preCalculationNodeTitle); await preCalculationNodePom.addNodeButton.click(); await page.getByRole('button', { name: 'calculation', exact: true }).click(); @@ -258,7 +258,7 @@ test('Collection events add data triggers, get single line of text data for fron //配置计算节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const preQueryRecordNodePom = new QueryRecordNode(page, preQueryRecordNodeTitle); await preQueryRecordNodePom.addNodeButton.click(); await page.getByRole('button', { name: 'calculation', exact: true }).click(); @@ -362,7 +362,7 @@ test('Collection event add data trigger, get front added data node single line t //配置计算节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const preCreateRecordNodePom = new CreateRecordNode(page, preCreateRecordNodeTitle); await preCreateRecordNodePom.addNodeButton.click(); await page.getByRole('button', { name: 'calculation', exact: true }).click(); @@ -458,7 +458,7 @@ test('Collection event adds data triggers, fetches data from front-end aggregati //配置计算节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const preAggregateNodePom = new AggregateNode(page, preAggregateNodeTitle); await preAggregateNodePom.addNodeButton.click(); await page.getByRole('button', { name: 'calculation', exact: true }).click(); @@ -719,7 +719,7 @@ test.skip('Collection event add data trigger, get front manual node add form sin //配置计算节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const preManualNodeNodePom = new AggregateNode(page, preManualNodeNodeTitle); await preManualNodeNodePom.addNodeButton.click(); await page.getByRole('button', { name: 'calculation', exact: true }).click(); diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/collectionEventTrigger/configuration1.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/collectionEventTrigger/configuration1.test.ts index be22235c1b..b1ab501afa 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/collectionEventTrigger/configuration1.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/collectionEventTrigger/configuration1.test.ts @@ -48,7 +48,7 @@ test.describe('Configuration page to configure the Trigger node', () => { //配置工作流触发器 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.nodeConfigure.click(); await collectionTriggerNode.collectionDropDown.click(); @@ -104,7 +104,7 @@ test.describe('Configuration page to configure the Trigger node', () => { //配置工作流触发器 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.nodeConfigure.click(); await collectionTriggerNode.collectionDropDown.click(); @@ -161,7 +161,7 @@ test.describe('Configuration page to configure the Trigger node', () => { //配置工作流触发器 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.nodeConfigure.click(); await collectionTriggerNode.collectionDropDown.click(); @@ -223,7 +223,7 @@ test.describe('Configuration page to configure the Trigger node', () => { //配置工作流触发器 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.nodeConfigure.click(); await collectionTriggerNode.collectionDropDown.click(); @@ -291,7 +291,7 @@ test.describe('Configuration page to configure the Trigger node', () => { //配置工作流触发器 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.nodeConfigure.click(); await collectionTriggerNode.collectionDropDown.click(); diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/collectionEventTrigger/configuration2.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/collectionEventTrigger/configuration2.test.ts index 61f4a5d1b9..9d7556f267 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/collectionEventTrigger/configuration2.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/collectionEventTrigger/configuration2.test.ts @@ -47,13 +47,13 @@ test.describe('Configuration Page Path Jump Workflow Management Page', () => { //配置工作流触发器 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); // 2、测试步骤:跳转到工作流管理页面 await page.getByRole('link', { name: 'Workflow' }).click(); // 3、预期结果:跳转路径正确 - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); expect(page.url()).toBe(`${process.env.APP_BASE_URL}/admin/settings/workflow`); // 4、后置处理:删除工作流 @@ -103,17 +103,17 @@ test.describe('Configuration Page Path Jump Workflow Management Page', () => { ]); await page.waitForTimeout(1000); await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('more').click(); await page.getByLabel('revision').click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); //元素重复 await page.getByLabel('version', { exact: true }).click(); await page.getByLabel('version-1').click(); await page.getByRole('link', { name: 'Workflow' }).click(); // 3、预期结果:跳转路径正确 - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); expect(page.url()).toBe(`${process.env.APP_BASE_URL}/admin/settings/workflow`); // 4、后置处理:删除工作流 @@ -163,15 +163,15 @@ test.describe('Configuration Page Path Jump Workflow Management Page', () => { ]); await page.waitForTimeout(1000); await page.goto('/admin/settings/workflow'); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const workflowListRecords = new WorkflowListRecords(page, workFlowName); await workflowListRecords.executionCountPopup.click(); await page.getByText('View').click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByRole('link', { name: 'Workflow', exact: true }).click(); // 3、预期结果:跳转路径正确 - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); expect(page.url()).toBe(`${process.env.APP_BASE_URL}/admin/settings/workflow`); // 4、后置处理:删除工作流 @@ -221,15 +221,15 @@ test.describe('Configuration Page Path Jump Workflow Management Page', () => { ]); await page.waitForTimeout(1000); await page.goto('/admin/settings/workflow'); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const workflowListRecords = new WorkflowListRecords(page, workFlowName); await expect(workflowListRecords.executionCountPopup).toHaveText('1'); await workflowListRecords.executionCountPopup.click(); await page.getByText('View').click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); //跳转其他执行日志界面,元素无法定位 // 3、预期结果:跳转路径正确 - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); // expect(page.url()).toBe(`${process.env.APP_BASE_URL}/admin/settings/workflow`); // 4、后置处理:删除工作流 await apiDeleteWorkflow(workflowId); diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/collectionEventTrigger/configuration3.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/collectionEventTrigger/configuration3.test.ts index e5890dc2e2..ce0cac5a38 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/collectionEventTrigger/configuration3.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/collectionEventTrigger/configuration3.test.ts @@ -68,7 +68,7 @@ test.describe('Configuration page disable enable', () => { expect(getWorkflowExecuted).toBe(1); await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByRole('switch', { name: 'On Off' }).click(); await mockRecords(triggerNodeCollectionName, [{ orgname: triggerNodeCollectionRecordOne + '1' }]); await page.waitForTimeout(1000); @@ -131,7 +131,7 @@ test.describe('Configuration page disable enable', () => { expect(getWorkflowExecuted).toBe(0); await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByRole('switch', { name: 'On Off' }).click(); await mockRecords(triggerNodeCollectionName, [{ orgname: triggerNodeCollectionRecordOne + '1' }]); await page.waitForTimeout(1000); diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/collectionEventTrigger/configuration4.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/collectionEventTrigger/configuration4.test.ts index 2790e639fb..32ac7d3e0c 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/collectionEventTrigger/configuration4.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/collectionEventTrigger/configuration4.test.ts @@ -63,10 +63,10 @@ test.describe('Configuration page copy to new version', () => { await page.waitForTimeout(1000); await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.locator('.workflow-toolbar').getByLabel('more').hover(); await page.getByLabel('revision').click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); // 3、预期结果:新版本工作流配置内容同旧版本一样 const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.nodeConfigure.click(); 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 d04d444e4e..0c61e067ad 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 @@ -41,7 +41,7 @@ test.describe('Filter', () => { // 2、筛选工作流 await page.goto('/admin/settings/workflow'); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('action-Filter.Action-Filter-filter-workflows').click(); await page.getByRole('textbox').fill(workFlowName); await page.getByRole('button', { name: 'Submit' }).click(); @@ -58,7 +58,7 @@ test.describe('Add new', () => { test('add new Collection event', async ({ page }) => { // 添加工作流 await page.goto('/admin/settings/workflow'); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('action-Action-Add new-workflows').click(); const createWorkFlow = new CreateWorkFlow(page); const workFlowName = faker.string.alphanumeric(5); @@ -100,7 +100,7 @@ test.describe('Delete', () => { // 删除工作流 await page.goto('/admin/settings/workflow'); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel('action-Filter.Action-Filter-filter-workflows').click(); await page.getByRole('textbox').fill(workFlowName); await page.getByRole('button', { name: 'Submit' }).click(); @@ -132,13 +132,13 @@ test.describe('Edit', () => { // 编辑工作流 await page.goto('/admin/settings/workflow'); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel(`action-Action.Link-Edit-workflows-${workFlowName}`).click(); const editWorkFlow = new EditWorkFlow(page, workFlowName); workFlowName = faker.string.alphanumeric(5) + triggerNodeAppendText; await editWorkFlow.name.fill(workFlowName); await page.getByLabel('action-Action-Submit-workflows').click(); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); // 3、预期结果:编辑成功,列表中出现编辑后的工作流 await expect(page.getByText(workFlowName)).toBeAttached(); @@ -165,7 +165,7 @@ test.describe('Duplicate', () => { // 2、复制工作流 await page.goto('/admin/settings/workflow'); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); await page.getByLabel(`action-Action.Link-Duplicate-workflows-${workFlowName}`).click(); await page.getByLabel(`action-Action-Submit-workflows-${workFlowName}`).click(); diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/BranchIntoYesAndNoBasicType.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/BranchIntoYesAndNoBasicType.test.ts index ce9b223deb..b30c1338cc 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/BranchIntoYesAndNoBasicType.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/BranchIntoYesAndNoBasicType.test.ts @@ -88,7 +88,7 @@ test('Collection event add data trigger, determine trigger node integer variable //配置判断节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const preQueryRecordNodePom = new QueryRecordNode(page, preQueryRecordNodeTitle); await preQueryRecordNodePom.addNodeButton.click(); await page.getByRole('button', { name: 'condition', exact: true }).hover(); @@ -236,7 +236,7 @@ test('Collection event add data trigger, determine trigger node integer variable //配置判断节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const preQueryRecordNodePom = new QueryRecordNode(page, preQueryRecordNodeTitle); await preQueryRecordNodePom.addNodeButton.click(); await page.getByRole('button', { name: 'condition', exact: true }).hover(); @@ -380,7 +380,7 @@ test('Collection event add data trigger, determine trigger node integer variable //配置判断节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const preQueryRecordNodePom = new QueryRecordNode(page, preQueryRecordNodeTitle); await preQueryRecordNodePom.addNodeButton.click(); await page.getByRole('button', { name: 'condition', exact: true }).hover(); @@ -526,7 +526,7 @@ test('Collection event add data trigger, determine trigger node integer variable //配置判断节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const preQueryRecordNodePom = new QueryRecordNode(page, preQueryRecordNodeTitle); await preQueryRecordNodePom.addNodeButton.click(); await page.getByRole('button', { name: 'condition', exact: true }).hover(); diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/BranchIntoYesAndNoBasicType1.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/BranchIntoYesAndNoBasicType1.test.ts index 320608d57a..f7bd7e8793 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/BranchIntoYesAndNoBasicType1.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/BranchIntoYesAndNoBasicType1.test.ts @@ -62,7 +62,7 @@ test('Collection event add data trigger, determines that the trigger node single //配置判断节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'condition', exact: true }).hover(); @@ -175,7 +175,7 @@ test('Collection event add data trigger, determines that the trigger node single //配置判断节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'condition', exact: true }).hover(); @@ -288,7 +288,7 @@ test('Collection event Add Data Trigger, determines that the trigger node single //配置判断节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'condition', exact: true }).hover(); @@ -403,7 +403,7 @@ test('Collection event add data trigger, determines that the trigger node single //配置判断节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'condition', exact: true }).hover(); diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/BranchIntoYesAndNoFormulaEngine.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/BranchIntoYesAndNoFormulaEngine.test.ts index 60b7292562..82fad22fdf 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/BranchIntoYesAndNoFormulaEngine.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/BranchIntoYesAndNoFormulaEngine.test.ts @@ -65,7 +65,7 @@ test('Collection event Add Data Trigger, determines that the trigger node single //配置判断节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'condition', exact: true }).hover(); @@ -192,7 +192,7 @@ test('Collection event Add Data Trigger, determines that the trigger node single //配置判断节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'condition', exact: true }).hover(); @@ -316,7 +316,7 @@ test('Collection event Add Data Trigger, determines that the trigger node single //配置判断节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'condition', exact: true }).hover(); @@ -443,7 +443,7 @@ test('Collection event Add Data Trigger, determines that the trigger node single //配置判断节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'condition', exact: true }).hover(); @@ -591,7 +591,7 @@ test('Collection event add data trigger, determine the trigger node integer vari //配置判断节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const preQueryRecordNodePom = new QueryRecordNode(page, preQueryRecordNodeTitle); await preQueryRecordNodePom.addNodeButton.click(); await page.getByRole('button', { name: 'condition', exact: true }).hover(); @@ -749,7 +749,7 @@ test('Collection event add data trigger, determine trigger node integer variable //配置判断节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const preQueryRecordNodePom = new QueryRecordNode(page, preQueryRecordNodeTitle); await preQueryRecordNodePom.addNodeButton.click(); await page.getByRole('button', { name: 'condition', exact: true }).hover(); @@ -897,7 +897,7 @@ test('Collection event add data trigger, determine trigger node integer variable //配置判断节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const preQueryRecordNodePom = new QueryRecordNode(page, preQueryRecordNodeTitle); await preQueryRecordNodePom.addNodeButton.click(); await page.getByRole('button', { name: 'condition', exact: true }).hover(); @@ -1048,7 +1048,7 @@ test('Collection event add data trigger, determine the trigger node integer vari //配置判断节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const preQueryRecordNodePom = new QueryRecordNode(page, preQueryRecordNodeTitle); await preQueryRecordNodePom.addNodeButton.click(); await page.getByRole('button', { name: 'condition', exact: true }).hover(); diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/BranchIntoYesAndNoMathEngine.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/BranchIntoYesAndNoMathEngine.test.ts index 25e05b37d9..4d62cf7baf 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/BranchIntoYesAndNoMathEngine.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/BranchIntoYesAndNoMathEngine.test.ts @@ -62,7 +62,7 @@ test('Collection event add data trigger, determine trigger node integer field va //配置判断节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'condition', exact: true }).hover(); @@ -186,7 +186,7 @@ test('Collection event Add Data Trigger, determines that the trigger node intege //配置判断节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'condition', exact: true }).hover(); @@ -307,7 +307,7 @@ test('Collection event Add Data Trigger, determines that the trigger node intege //配置判断节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'condition', exact: true }).hover(); @@ -428,7 +428,7 @@ test('Collection event add data trigger, determines that the trigger node intege //配置判断节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'condition', exact: true }).hover(); diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/continueWhenYesBasicType.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/continueWhenYesBasicType.test.ts index f94054c722..d03966fb51 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/continueWhenYesBasicType.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/continueWhenYesBasicType.test.ts @@ -66,7 +66,7 @@ test('Collection event add data trigger, determines that the trigger node single //配置判断节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'condition', exact: true }).hover(); @@ -149,7 +149,7 @@ test('Collection event add data trigger, determines that the trigger node single //配置判断节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'condition', exact: true }).hover(); @@ -233,7 +233,7 @@ test('Collection event Add Data Trigger, determines that the trigger node single //配置判断节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'condition', exact: true }).hover(); @@ -319,7 +319,7 @@ test('Collection event add data trigger, determines that the trigger node single //配置判断节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'condition', exact: true }).hover(); @@ -429,7 +429,7 @@ test('Collection event add data trigger, determine trigger node integer variable //配置判断节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const preQueryRecordNodePom = new QueryRecordNode(page, preQueryRecordNodeTitle); await preQueryRecordNodePom.addNodeButton.click(); await page.getByRole('button', { name: 'condition', exact: true }).hover(); @@ -543,7 +543,7 @@ test('Collection event add data trigger, determine trigger node integer variable //配置判断节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const preQueryRecordNodePom = new QueryRecordNode(page, preQueryRecordNodeTitle); await preQueryRecordNodePom.addNodeButton.click(); await page.getByRole('button', { name: 'condition', exact: true }).hover(); @@ -654,7 +654,7 @@ test('Collection event add data trigger, determine trigger node integer variable //配置判断节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const preQueryRecordNodePom = new QueryRecordNode(page, preQueryRecordNodeTitle); await preQueryRecordNodePom.addNodeButton.click(); await page.getByRole('button', { name: 'condition', exact: true }).hover(); @@ -770,7 +770,7 @@ test('Collection event add data trigger, determine trigger node integer variable //配置判断节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const preQueryRecordNodePom = new QueryRecordNode(page, preQueryRecordNodeTitle); await preQueryRecordNodePom.addNodeButton.click(); await page.getByRole('button', { name: 'condition', exact: true }).hover(); diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/continueWhenYesFormulaEngine.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/continueWhenYesFormulaEngine.test.ts index d50e8d7330..607f5e44e2 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/continueWhenYesFormulaEngine.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/continueWhenYesFormulaEngine.test.ts @@ -64,7 +64,7 @@ test('Collection event Add Data Trigger, Formula engine, determines that the tri //配置判断节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'condition', exact: true }).hover(); @@ -154,7 +154,7 @@ test('Collection event Add Data Trigger, Formula engine, determines that the tri //配置判断节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'condition', exact: true }).hover(); @@ -245,7 +245,7 @@ test('Collection event Add Data Trigger, Formula engine, determines that the tri //配置判断节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'condition', exact: true }).hover(); @@ -334,7 +334,7 @@ test('Collection event Add Data Trigger, Formula engine, determines that the tri //配置判断节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'condition', exact: true }).hover(); @@ -449,7 +449,7 @@ test('Collection event add data trigger, Formula engine, determine the trigger n //配置判断节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const preQueryRecordNodePom = new QueryRecordNode(page, preQueryRecordNodeTitle); await preQueryRecordNodePom.addNodeButton.click(); await page.getByRole('button', { name: 'condition', exact: true }).hover(); @@ -567,7 +567,7 @@ test('Collection event add data trigger, Formula engine, determine trigger node //配置判断节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const preQueryRecordNodePom = new QueryRecordNode(page, preQueryRecordNodeTitle); await preQueryRecordNodePom.addNodeButton.click(); await page.getByRole('button', { name: 'condition', exact: true }).hover(); @@ -683,7 +683,7 @@ test('Collection event add data trigger, Formula engine, determine trigger node //配置判断节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const preQueryRecordNodePom = new QueryRecordNode(page, preQueryRecordNodeTitle); await preQueryRecordNodePom.addNodeButton.click(); await page.getByRole('button', { name: 'condition', exact: true }).hover(); @@ -801,7 +801,7 @@ test('Collection event add data trigger, Formula engine, determine the trigger n //配置判断节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const preQueryRecordNodePom = new QueryRecordNode(page, preQueryRecordNodeTitle); await preQueryRecordNodePom.addNodeButton.click(); await page.getByRole('button', { name: 'condition', exact: true }).hover(); diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/continueWhenYesMathEngine.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/continueWhenYesMathEngine.test.ts index 1aab0f157c..90af5c55d4 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/continueWhenYesMathEngine.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/continueWhenYesMathEngine.test.ts @@ -61,7 +61,7 @@ test('Collection event add data trigger, Math engine, determine trigger node int //配置判断节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'condition', exact: true }).hover(); @@ -152,7 +152,7 @@ test('Collection event Add Data Trigger, Math engine, determines that the trigge //配置判断节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'condition', exact: true }).hover(); @@ -243,7 +243,7 @@ test('Collection event Add Data Trigger, Math engine, determines that the trigge //配置判断节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'condition', exact: true }).hover(); @@ -333,7 +333,7 @@ test('Collection event add data trigger, Math engine, determines that the trigge //配置判断节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'condition', exact: true }).hover(); diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/createRecordNode/CreateRecord.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/createRecordNode/CreateRecord.test.ts index 60d36e1014..dc611c6eb6 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/createRecordNode/CreateRecord.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/createRecordNode/CreateRecord.test.ts @@ -72,7 +72,7 @@ test('Collection event add data trigger, single row text fields for common table //配置新增数据节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'create', exact: true }).click(); @@ -175,7 +175,7 @@ test('Collection event add data trigger, normal table single line text field, se //配置新增数据节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'create', exact: true }).click(); @@ -287,7 +287,7 @@ test('Collection event add data trigger, normal table integer field, set constan //配置新增数据节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'create', exact: true }).click(); @@ -390,7 +390,7 @@ test('Collection event add data trigger, normal table integer field, set trigger //配置新增数据节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'create', exact: true }).click(); @@ -502,7 +502,7 @@ test('Collection event add data trigger, normal table numeric field, set constan //配置新增数据节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'create', exact: true }).click(); @@ -605,7 +605,7 @@ test('Collection event add data trigger, normal table numeric field, set trigger //配置新增数据节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'create', exact: true }).click(); @@ -717,7 +717,7 @@ test('Collection event add data trigger, normal table dropdown radio field, set //配置新增数据节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'create', exact: true }).click(); @@ -820,7 +820,7 @@ test('Collection event add data trigger, normal table dropdown radio field, set //配置新增数据节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'create', exact: true }).click(); @@ -932,7 +932,7 @@ test('Collection event add data trigger, normal table dropdown radio fields, set //配置新增数据节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'create', exact: true }).click(); @@ -1031,7 +1031,7 @@ test('Collection event add data trigger, normal table dropdown radio fields, set //配置新增数据节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'create', exact: true }).click(); @@ -1143,7 +1143,7 @@ test('Collection event add data trigger, normal table date field, set constant d //配置新增数据节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'create', exact: true }).click(); @@ -1253,7 +1253,7 @@ test('Collection event add data trigger, normal table date field, set trigger no //配置新增数据节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'create', exact: true }).click(); diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/deleteRecordNode/DeleteRecord.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/deleteRecordNode/DeleteRecord.test.ts index efde90609b..63c0eb522f 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/deleteRecordNode/DeleteRecord.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/deleteRecordNode/DeleteRecord.test.ts @@ -78,7 +78,7 @@ test('Collection event add data trigger, filter single line text field not null, //配置删除数据节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'destroy', exact: true }).click(); @@ -173,7 +173,7 @@ test('Collection event add data trigger, filter single line text field is trigge //配置删除数据节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'destroy', exact: true }).click(); diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/queryRecordNode/QueryRecord.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/queryRecordNode/QueryRecord.test.ts index 596f320736..1f32502b9d 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/queryRecordNode/QueryRecord.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/queryRecordNode/QueryRecord.test.ts @@ -60,7 +60,7 @@ test('Collection event add data trigger, no filter no sort query common table 1 //配置查询节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'query', exact: true }).click(); @@ -138,7 +138,7 @@ test('Collection event add data trigger, no filtering and no sorting, query comm //配置查询节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'query', exact: true }).click(); @@ -217,7 +217,7 @@ test('Collection event add data trigger, no filter ID ascending, query common ta //配置查询节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'query', exact: true }).click(); @@ -326,7 +326,7 @@ test('Collection event add data trigger, no filter ID descending, query common t const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置查询节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'query', exact: true }).click(); @@ -436,7 +436,7 @@ test('Collection event add data trigger, no filtering and no sorting, query mult //配置查询节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'query', exact: true }).click(); @@ -540,7 +540,7 @@ test('Collection event add data trigger, no filtering and no sorting, query the const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置查询节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'query', exact: true }).click(); @@ -646,7 +646,7 @@ test('Collection event add data trigger, no filtering and no sorting, query the const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置查询节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'query', exact: true }).click(); @@ -775,7 +775,7 @@ test('Collection event add data trigger, filter to meet all conditions (status_s const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置查询节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'query', exact: true }).click(); @@ -891,7 +891,7 @@ test('Collection event add data trigger, filter to satisfy any condition (status const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置查询节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'query', exact: true }).click(); diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/updateRecordNode/updateInABatch.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/updateRecordNode/updateInABatch.test.ts index e3e22271f7..6997ab725d 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/updateRecordNode/updateInABatch.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/updateRecordNode/updateInABatch.test.ts @@ -80,7 +80,7 @@ test('Collection event add data trigger, filter dropdown radio fields not null, //配置更新数据节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'update', exact: true }).click(); @@ -234,7 +234,7 @@ test('Collection event add data trigger, filter dropdown radio fields not empty, //配置更新数据节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'update', exact: true }).click(); @@ -398,7 +398,7 @@ test('Collection event add data trigger, filter date field not null, common tabl //配置更新数据节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'update', exact: true }).click(); @@ -561,7 +561,7 @@ test('Collection event add data trigger, filter date field not empty, common tab //配置更新数据节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'update', exact: true }).click(); diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/updateRecordNode/updateInABatch1.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/updateRecordNode/updateInABatch1.test.ts index 803cc5884f..ced3c2908b 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/updateRecordNode/updateInABatch1.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/updateRecordNode/updateInABatch1.test.ts @@ -85,7 +85,7 @@ test('Collection event add data trigger, filter single line text field not empty //配置更新数据节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'update', exact: true }).click(); @@ -244,7 +244,7 @@ test('Collection event add data trigger, filter single line text field not empty //配置更新数据节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'update', exact: true }).click(); @@ -408,7 +408,7 @@ test('Collection event add data trigger, filter multi-line text field not empty, //配置更新数据节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'update', exact: true }).click(); @@ -568,7 +568,7 @@ test('Collection event add data trigger, filter multiline text field not empty, //配置更新数据节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'update', exact: true }).click(); @@ -727,7 +727,7 @@ test('Collection event add data trigger, filter integer field not null, common t //配置更新数据节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'update', exact: true }).click(); diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/updateRecordNode/updateInABatch2.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/updateRecordNode/updateInABatch2.test.ts index 0b128621d7..65b0e24c63 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/updateRecordNode/updateInABatch2.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/updateRecordNode/updateInABatch2.test.ts @@ -80,7 +80,7 @@ test('Collection event add data trigger, filter integer field not empty, common //配置更新数据节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'update', exact: true }).click(); @@ -238,7 +238,7 @@ test('Collection event add data trigger, filter numeric field not null, common t //配置更新数据节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'update', exact: true }).click(); @@ -389,7 +389,7 @@ test('Collection event add data trigger, filter numeric field not empty, common //配置更新数据节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'update', exact: true }).click(); @@ -545,7 +545,7 @@ test('Collection event add data trigger, filter dropdown radio field not null, c const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置更新数据节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'update', exact: true }).click(); @@ -699,7 +699,7 @@ test('Collection event add data trigger, filter dropdown radio field not empty, //配置更新数据节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'update', exact: true }).click(); diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/updateRecordNode/updateOneByOne.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/updateRecordNode/updateOneByOne.test.ts index 88a963a1b3..b9614ce069 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/updateRecordNode/updateOneByOne.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/updateRecordNode/updateOneByOne.test.ts @@ -80,7 +80,7 @@ test('Collection event add data trigger, filter dropdown radio fields not empty, //配置更新数据节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'update', exact: true }).click(); @@ -245,7 +245,7 @@ test('Collection event add data trigger, filter date field not null, common tabl //配置更新数据节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'update', exact: true }).click(); @@ -409,7 +409,7 @@ test('Collection event add data trigger, filter date field not empty, common tab //配置更新数据节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'update', exact: true }).click(); diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/updateRecordNode/updateOneByOne1.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/updateRecordNode/updateOneByOne1.test.ts index 4401f67241..4d92836d75 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/updateRecordNode/updateOneByOne1.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/updateRecordNode/updateOneByOne1.test.ts @@ -85,7 +85,7 @@ test('Collection event add data trigger, filter single line text field not empty //配置更新数据节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'update', exact: true }).click(); @@ -245,7 +245,7 @@ test('Collection event add data trigger, filter single line text field not empty //配置更新数据节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'update', exact: true }).click(); @@ -410,7 +410,7 @@ test('Collection event add data trigger, filter multi-line text field not empty, //配置更新数据节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'update', exact: true }).click(); @@ -571,7 +571,7 @@ test('Collection event add data trigger, filter multiline text field not empty, //配置更新数据节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'update', exact: true }).click(); diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/updateRecordNode/updateOneByOne2.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/updateRecordNode/updateOneByOne2.test.ts index d55b5ff81c..8d000752d0 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/updateRecordNode/updateOneByOne2.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/updateRecordNode/updateOneByOne2.test.ts @@ -80,7 +80,7 @@ test('Collection event add data trigger, filter integer field not null, common t //配置更新数据节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'update', exact: true }).click(); @@ -233,7 +233,7 @@ test('Collection event add data trigger, filter integer field not empty, common //配置更新数据节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'update', exact: true }).click(); @@ -392,7 +392,7 @@ test('Collection event add data trigger, filter numeric field not null, common t //配置更新数据节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'update', exact: true }).click(); @@ -544,7 +544,7 @@ test('Collection event add data trigger, filter numeric field not empty, common //配置更新数据节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'update', exact: true }).click(); diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/updateRecordNode/updateOneByOne3.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/updateRecordNode/updateOneByOne3.test.ts index f33352c234..212fdd75a4 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/updateRecordNode/updateOneByOne3.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/updateRecordNode/updateOneByOne3.test.ts @@ -79,7 +79,7 @@ test('Collection event add data trigger, filter dropdown radio field not null, c const triggerNodeObj = JSON.parse(JSON.stringify(triggerNode)); //配置更新数据节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'update', exact: true }).click(); @@ -234,7 +234,7 @@ test('Collection event add data trigger, filter dropdown radio field not empty, //配置更新数据节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'update', exact: true }).click(); @@ -394,7 +394,7 @@ test('Collection event add data trigger, filter dropdown radio fields not null, //配置更新数据节点 await page.goto(`admin/workflow/workflows/${workflowId}`); - await page.waitForLoadState('networkidle'); + await page.waitForLoadState('load'); const collectionTriggerNode = new CollectionTriggerNode(page, workFlowName, triggerNodeCollectionName); await collectionTriggerNode.addNodeButton.click(); await page.getByRole('button', { name: 'update', exact: true }).click();