@nocobase/plugin-workflow-test 1.6.0-beta.9 → 1.7.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -201,7 +201,7 @@ class ApprovalPassthroughModeNode {
|
|
|
201
201
|
this.node = page.getByLabel(`Approval-${nodeName}`, { exact: true });
|
|
202
202
|
this.nodeTitle = page.getByLabel(`Approval-${nodeName}`, { exact: true }).getByRole("textbox");
|
|
203
203
|
this.nodeConfigure = this.node.locator(">div").first();
|
|
204
|
-
this.addAssigneesButton = page.getByRole("button", { name: "plus Add" });
|
|
204
|
+
this.addAssigneesButton = page.getByLabel("block-item-ArrayItems-workflows-Assignees").getByRole("button", { name: "plus Add" });
|
|
205
205
|
this.addSelectAssigneesMenu = page.getByRole("button", { name: "Select assignees" });
|
|
206
206
|
this.addQueryAssigneesMenu = page.getByRole("button", { name: "Query assignees" });
|
|
207
207
|
this.assigneesDropDown = page.getByTestId("select-single");
|
|
@@ -213,14 +213,14 @@ class ApprovalPassthroughModeNode {
|
|
|
213
213
|
this.sequentiallyRadio = page.getByLabel("Sequentially", { exact: true });
|
|
214
214
|
this.goToconfigureButton = page.getByRole("button", { name: "Go to configure" });
|
|
215
215
|
this.addBlockButton = page.getByLabel("schema-initializer-Grid-ApprovalProcessAddBlockButton-workflows");
|
|
216
|
-
this.addDetailsMenu = page.getByRole("menuitem", { name: "
|
|
216
|
+
this.addDetailsMenu = page.getByRole("menuitem", { name: "Original application content" });
|
|
217
217
|
this.detailsConfigureFieldsButton = page.getByLabel(
|
|
218
218
|
`schema-initializer-Grid-details:configureFields-${collectionName}`
|
|
219
219
|
);
|
|
220
|
-
this.addActionsMenu = page.getByRole("menuitem", { name: "
|
|
220
|
+
this.addActionsMenu = page.getByRole("menuitem", { name: "Process form" }).getByRole("switch");
|
|
221
221
|
this.actionsConfigureFieldsButton = page.getByLabel("schema-initializer-Grid-FormItemInitializers-approvalRecords");
|
|
222
222
|
this.actionsConfigureActionsButton = page.getByLabel(
|
|
223
|
-
"schema-initializer-ActionBar-ApprovalProcessAddActionButton-
|
|
223
|
+
"schema-initializer-ActionBar-ApprovalProcessAddActionButton-"
|
|
224
224
|
);
|
|
225
225
|
this.addApproveButton = page.getByRole("menuitem", { name: "Approve" }).getByRole("switch");
|
|
226
226
|
this.addRejectButton = page.getByRole("menuitem", { name: "Reject" }).getByRole("switch");
|
|
@@ -269,7 +269,7 @@ class ApprovalBranchModeNode {
|
|
|
269
269
|
this.node = page.getByLabel(`Approval-${nodeName}`, { exact: true });
|
|
270
270
|
this.nodeTitle = page.getByLabel(`Approval-${nodeName}`, { exact: true }).getByRole("textbox");
|
|
271
271
|
this.nodeConfigure = this.node.locator(">div").first();
|
|
272
|
-
this.addAssigneesButton = page.getByRole("button", { name: "plus Add" });
|
|
272
|
+
this.addAssigneesButton = page.getByLabel("block-item-ArrayItems-workflows-Assignees").getByRole("button", { name: "plus Add" });
|
|
273
273
|
this.addSelectAssigneesMenu = page.getByRole("button", { name: "Select assignees" });
|
|
274
274
|
this.addQueryAssigneesMenu = page.getByRole("button", { name: "Query assignees" });
|
|
275
275
|
this.assigneesDropDown = page.getByTestId("select-single");
|
|
@@ -281,15 +281,13 @@ class ApprovalBranchModeNode {
|
|
|
281
281
|
this.sequentiallyRadio = page.getByLabel("Sequentially", { exact: true });
|
|
282
282
|
this.goToconfigureButton = page.getByRole("button", { name: "Go to configure" });
|
|
283
283
|
this.addBlockButton = page.getByLabel("schema-initializer-Grid-ApprovalProcessAddBlockButton-workflows");
|
|
284
|
-
this.addDetailsMenu = page.getByRole("menuitem", { name: "
|
|
284
|
+
this.addDetailsMenu = page.getByRole("menuitem", { name: "Original application content" });
|
|
285
285
|
this.detailsConfigureFieldsButton = page.getByLabel(
|
|
286
286
|
`schema-initializer-Grid-details:configureFields-${collectionName}`
|
|
287
287
|
);
|
|
288
|
-
this.addActionsMenu = page.getByRole("menuitem", { name: "
|
|
288
|
+
this.addActionsMenu = page.getByRole("menuitem", { name: "Process form" }).getByRole("switch");
|
|
289
289
|
this.actionsConfigureFieldsButton = page.getByLabel("schema-initializer-Grid-FormItemInitializers-approvalRecords");
|
|
290
|
-
this.actionsConfigureActionsButton = page.getByLabel(
|
|
291
|
-
"schema-initializer-ActionBar-ApprovalProcessAddActionButton-approvalRecords"
|
|
292
|
-
);
|
|
290
|
+
this.actionsConfigureActionsButton = page.getByLabel("schema-initializer-ActionBar-");
|
|
293
291
|
this.addApproveButton = page.getByRole("menuitem", { name: "Approve" }).getByRole("switch");
|
|
294
292
|
this.addRejectButton = page.getByRole("menuitem", { name: "Reject" }).getByRole("switch");
|
|
295
293
|
this.addReturnButton = page.getByRole("menuitem", { name: "Return" }).getByRole("switch");
|
|
@@ -558,7 +556,7 @@ class AggregateNode {
|
|
|
558
556
|
this.linkedDataTableDataRadio = page.getByLabel("Data of associated collection");
|
|
559
557
|
this.collectionDropDown = page.getByLabel("block-item-DataSourceCollectionCascader-workflows-Data of collection").locator(".ant-select-selection-search-input");
|
|
560
558
|
this.aggregatedFieldDropDown = page.getByLabel("block-item-FieldsSelect-workflows-Field to aggregate").locator(".ant-select-selection-search-input");
|
|
561
|
-
this.distinctCheckBox = page.getByLabel("block-item-Checkbox-workflows
|
|
559
|
+
this.distinctCheckBox = page.getByLabel("block-item-Checkbox-workflows").locator('input.ant-checkbox-input[type="checkbox"]');
|
|
562
560
|
this.submitButton = page.getByLabel("action-Action-Submit-workflows");
|
|
563
561
|
this.cancelButton = page.getByLabel("action-Action-Cancel-workflows");
|
|
564
562
|
this.addNodeButton = page.getByLabel(`add-button-aggregate-${nodeName}`, { exact: true });
|
package/dist/e2e/e2eUtils.js
CHANGED
|
@@ -177,7 +177,7 @@ const apiGetWorkflowNodeExecutions = async (id) => {
|
|
|
177
177
|
});
|
|
178
178
|
const state = await api.storageState();
|
|
179
179
|
const headers = getHeaders(state);
|
|
180
|
-
const url = `/api/executions:list?appends[]=jobs&filter[workflowId]=${id}&fields=id,createdAt,updatedAt,key,status,workflowId
|
|
180
|
+
const url = `/api/executions:list?appends[]=jobs&filter[workflowId]=${id}&fields=id,createdAt,updatedAt,key,status,workflowId`;
|
|
181
181
|
const result = await api.get(url, {
|
|
182
182
|
headers
|
|
183
183
|
});
|
package/dist/externalVersion.js
CHANGED
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
module.exports = {
|
|
11
|
-
"@nocobase/client": "1.
|
|
12
|
-
"@nocobase/utils": "1.
|
|
11
|
+
"@nocobase/client": "1.7.0-beta.1",
|
|
12
|
+
"@nocobase/utils": "1.7.0-beta.1",
|
|
13
13
|
"lodash": "4.17.21",
|
|
14
|
-
"@nocobase/test": "1.
|
|
15
|
-
"@nocobase/server": "1.
|
|
16
|
-
"@nocobase/data-source-manager": "1.
|
|
17
|
-
"@nocobase/database": "1.
|
|
14
|
+
"@nocobase/test": "1.7.0-beta.1",
|
|
15
|
+
"@nocobase/server": "1.7.0-beta.1",
|
|
16
|
+
"@nocobase/data-source-manager": "1.7.0-beta.1",
|
|
17
|
+
"@nocobase/database": "1.7.0-beta.1"
|
|
18
18
|
};
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@nocobase/plugin-workflow-test",
|
|
3
3
|
"displayName": "Workflow: test kit",
|
|
4
4
|
"displayName.zh-CN": "工作流:测试工具包",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.7.0-beta.1",
|
|
6
6
|
"license": "AGPL-3.0",
|
|
7
7
|
"main": "dist/server/index.js",
|
|
8
8
|
"types": "./dist/server/index.d.ts",
|
|
@@ -11,5 +11,5 @@
|
|
|
11
11
|
"@nocobase/server": "1.x",
|
|
12
12
|
"@nocobase/test": "1.x"
|
|
13
13
|
},
|
|
14
|
-
"gitHead": "
|
|
14
|
+
"gitHead": "374a1bc60b3d55fd8b532a57c8fe0423eed1d11e"
|
|
15
15
|
}
|