@nocobase/plugin-workflow-test 1.6.0-beta.8 → 1.7.0-alpha.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: "Details" });
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: "Actions" }).getByRole("switch");
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-approvalRecords"
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: "Details" });
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: "Actions" }).getByRole("switch");
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-Distinct").locator('input.ant-checkbox-input[type="checkbox"]');
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 });
@@ -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,jobs`;
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
  });
@@ -8,11 +8,11 @@
8
8
  */
9
9
 
10
10
  module.exports = {
11
- "@nocobase/client": "1.6.0-beta.8",
12
- "@nocobase/utils": "1.6.0-beta.8",
11
+ "@nocobase/client": "1.7.0-alpha.1",
12
+ "@nocobase/utils": "1.7.0-alpha.1",
13
13
  "lodash": "4.17.21",
14
- "@nocobase/test": "1.6.0-beta.8",
15
- "@nocobase/server": "1.6.0-beta.8",
16
- "@nocobase/data-source-manager": "1.6.0-beta.8",
17
- "@nocobase/database": "1.6.0-beta.8"
14
+ "@nocobase/test": "1.7.0-alpha.1",
15
+ "@nocobase/server": "1.7.0-alpha.1",
16
+ "@nocobase/data-source-manager": "1.7.0-alpha.1",
17
+ "@nocobase/database": "1.7.0-alpha.1"
18
18
  };
@@ -65,6 +65,11 @@ var posts_default = {
65
65
  name: "read",
66
66
  defaultValue: 0
67
67
  },
68
+ {
69
+ type: "double",
70
+ name: "score",
71
+ defaultValue: 0
72
+ },
68
73
  {
69
74
  type: "date",
70
75
  name: "createdAt"
@@ -32,6 +32,7 @@ declare const _default: {
32
32
  run(node: any, input: any, processor: any): {
33
33
  status: number;
34
34
  };
35
+ resume(node: any, job: any): any;
35
36
  test(): {
36
37
  status: number;
37
38
  };
@@ -64,6 +64,12 @@ var instructions_default = {
64
64
  status: 0
65
65
  };
66
66
  },
67
+ resume(node, job) {
68
+ if (node.config.status != null) {
69
+ job.set("status", node.config.status);
70
+ }
71
+ return job;
72
+ },
67
73
  test() {
68
74
  return {
69
75
  status: 0
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.6.0-beta.8",
5
+ "version": "1.7.0-alpha.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": "2257b50e1cf0b2a2873673a630e5ecc80ec2e01a"
14
+ "gitHead": "e411c9728b4d1f16b0beac16e40dd3499352b052"
15
15
  }