@nocobase/plugin-workflow-test 1.6.0-beta.2 → 1.6.0-beta.4
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,14 +201,14 @@ 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.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");
|
|
208
208
|
this.OrRadio = page.getByLabel("Or", { exact: true });
|
|
209
209
|
this.AndRadio = page.getByLabel("And", { exact: true });
|
|
210
210
|
this.votingRadio = page.getByLabel("Voting", { exact: true });
|
|
211
|
-
this.votingThresholdEditBox = page.getByLabel("block-item-
|
|
211
|
+
this.votingThresholdEditBox = page.getByLabel("block-item-Negotiation-workflows-Negotiation mode").getByRole("spinbutton");
|
|
212
212
|
this.parallellyRadio = page.getByLabel("Parallelly", { exact: true });
|
|
213
213
|
this.sequentiallyRadio = page.getByLabel("Sequentially", { exact: true });
|
|
214
214
|
this.goToconfigureButton = page.getByRole("button", { name: "Go to configure" });
|
|
@@ -269,14 +269,14 @@ 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.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");
|
|
276
276
|
this.OrRadio = page.getByLabel("Or", { exact: true });
|
|
277
277
|
this.AndRadio = page.getByLabel("And", { exact: true });
|
|
278
278
|
this.votingRadio = page.getByLabel("Voting", { exact: true });
|
|
279
|
-
this.votingThresholdEditBox = page.getByLabel("block-item-
|
|
279
|
+
this.votingThresholdEditBox = page.getByLabel("block-item-Negotiation-workflows-Negotiation mode").getByRole("spinbutton");
|
|
280
280
|
this.parallellyRadio = page.getByLabel("Parallelly", { exact: true });
|
|
281
281
|
this.sequentiallyRadio = page.getByLabel("Sequentially", { exact: true });
|
|
282
282
|
this.goToconfigureButton = page.getByRole("button", { name: "Go to configure" });
|
package/dist/e2e/e2eUtils.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ export declare const apiCreateRecordTriggerActionEvent: (collectionName: string,
|
|
|
27
27
|
export declare const apiTriggerCustomActionEvent: (collectionName: string, triggerWorkflows: string, data: any) => Promise<any>;
|
|
28
28
|
export declare const apiApplyApprovalEvent: (data: any) => Promise<any>;
|
|
29
29
|
export declare const apiCreateField: (collectionName: string, data: any) => Promise<any>;
|
|
30
|
+
export declare const approvalUserPassword = "1a2B3c4#";
|
|
30
31
|
export declare const userLogin: (browser: Browser, approvalUserEmail: string, approvalUser: string) => Promise<import("playwright-core").BrowserContext>;
|
|
31
32
|
declare const _default: {
|
|
32
33
|
apiCreateWorkflow: (data: any) => Promise<any>;
|
|
@@ -50,5 +51,6 @@ declare const _default: {
|
|
|
50
51
|
userLogin: (browser: Browser, approvalUserEmail: string, approvalUser: string) => Promise<import("playwright-core").BrowserContext>;
|
|
51
52
|
apiCreateField: (collectionName: string, data: any) => Promise<any>;
|
|
52
53
|
apiTriggerCustomActionEvent: (collectionName: string, triggerWorkflows: string, data: any) => Promise<any>;
|
|
54
|
+
approvalUserPassword: string;
|
|
53
55
|
};
|
|
54
56
|
export default _default;
|
package/dist/e2e/e2eUtils.js
CHANGED
|
@@ -46,6 +46,7 @@ __export(e2eUtils_exports, {
|
|
|
46
46
|
apiUpdateWorkflow: () => apiUpdateWorkflow,
|
|
47
47
|
apiUpdateWorkflowNode: () => apiUpdateWorkflowNode,
|
|
48
48
|
apiUpdateWorkflowTrigger: () => apiUpdateWorkflowTrigger,
|
|
49
|
+
approvalUserPassword: () => approvalUserPassword,
|
|
49
50
|
default: () => e2eUtils_default,
|
|
50
51
|
userLogin: () => userLogin
|
|
51
52
|
});
|
|
@@ -387,12 +388,13 @@ function getHeaders(storageState) {
|
|
|
387
388
|
}
|
|
388
389
|
return headers;
|
|
389
390
|
}
|
|
391
|
+
const approvalUserPassword = "1a2B3c4#";
|
|
390
392
|
const userLogin = async (browser, approvalUserEmail, approvalUser) => {
|
|
391
393
|
const context = await browser.newContext();
|
|
392
394
|
const page = await context.newPage();
|
|
393
395
|
await page.goto("signin");
|
|
394
396
|
await page.getByPlaceholder("Email").fill(approvalUserEmail);
|
|
395
|
-
await page.getByPlaceholder("Password").fill(
|
|
397
|
+
await page.getByPlaceholder("Password").fill(approvalUserPassword);
|
|
396
398
|
await page.getByRole("button", { name: "Sign in" }).click();
|
|
397
399
|
await page.waitForLoadState("load");
|
|
398
400
|
return context;
|
|
@@ -418,7 +420,8 @@ var e2eUtils_default = module.exports = {
|
|
|
418
420
|
apiApplyApprovalEvent,
|
|
419
421
|
userLogin,
|
|
420
422
|
apiCreateField,
|
|
421
|
-
apiTriggerCustomActionEvent
|
|
423
|
+
apiTriggerCustomActionEvent,
|
|
424
|
+
approvalUserPassword
|
|
422
425
|
};
|
|
423
426
|
// Annotate the CommonJS export names for ESM import in node:
|
|
424
427
|
0 && (module.exports = {
|
|
@@ -442,5 +445,6 @@ var e2eUtils_default = module.exports = {
|
|
|
442
445
|
apiUpdateWorkflow,
|
|
443
446
|
apiUpdateWorkflowNode,
|
|
444
447
|
apiUpdateWorkflowTrigger,
|
|
448
|
+
approvalUserPassword,
|
|
445
449
|
userLogin
|
|
446
450
|
});
|
package/dist/externalVersion.js
CHANGED
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
module.exports = {
|
|
11
|
-
"@nocobase/client": "1.6.0-beta.
|
|
12
|
-
"@nocobase/utils": "1.6.0-beta.
|
|
11
|
+
"@nocobase/client": "1.6.0-beta.4",
|
|
12
|
+
"@nocobase/utils": "1.6.0-beta.4",
|
|
13
13
|
"lodash": "4.17.21",
|
|
14
|
-
"@nocobase/test": "1.6.0-beta.
|
|
15
|
-
"@nocobase/server": "1.6.0-beta.
|
|
16
|
-
"@nocobase/data-source-manager": "1.6.0-beta.
|
|
17
|
-
"@nocobase/database": "1.6.0-beta.
|
|
14
|
+
"@nocobase/test": "1.6.0-beta.4",
|
|
15
|
+
"@nocobase/server": "1.6.0-beta.4",
|
|
16
|
+
"@nocobase/data-source-manager": "1.6.0-beta.4",
|
|
17
|
+
"@nocobase/database": "1.6.0-beta.4"
|
|
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.6.0-beta.
|
|
5
|
+
"version": "1.6.0-beta.4",
|
|
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": "4419f433716dadf34886b261d9abe20e74551044"
|
|
15
15
|
}
|