@nocobase/plugin-workflow-test 1.7.0-beta.6 → 1.7.0-beta.8

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.
@@ -147,10 +147,10 @@ class ApprovalTriggerNode {
147
147
  this.nodeTitle = page.getByLabel(`Trigger-${triggerName}`).getByRole("textbox");
148
148
  this.nodeConfigure = this.node.locator(">div").first();
149
149
  this.collectionDropDown = page.getByLabel("block-item-DataSourceCollectionCascader-workflows-Collection").locator(".ant-select-selection-search-input");
150
- this.dataBlocksInitiationRadio = page.getByLabel("Initiate and approve in data blocks only");
151
- this.dataBlocksAndGlobalApprovalBlocksInitiationRadio = page.getByLabel(
152
- "Initiate and approve in both data blocks and global approval blocks"
153
- );
150
+ this.dataBlocksInitiationRadio = page.getByRole("radio", { name: "Initiate in data blocks only" });
151
+ this.dataBlocksAndGlobalApprovalBlocksInitiationRadio = page.getByRole("radio", {
152
+ name: "Initiate in both data blocks"
153
+ });
154
154
  this.allowedToBeWithdrawnCheckbox = page.getByLabel("Allowed to be withdrawn");
155
155
  this.goToconfigureButton = page.getByRole("button", { name: "Go to configure" });
156
156
  this.addBlockButton = page.getByLabel(`schema-initializer-Grid-ApprovalApplyAddBlockButton-${collectionName}`);
@@ -8,11 +8,11 @@
8
8
  */
9
9
 
10
10
  module.exports = {
11
- "@nocobase/client": "1.7.0-beta.6",
12
- "@nocobase/utils": "1.7.0-beta.6",
11
+ "@nocobase/client": "1.7.0-beta.8",
12
+ "@nocobase/utils": "1.7.0-beta.8",
13
13
  "lodash": "4.17.21",
14
- "@nocobase/test": "1.7.0-beta.6",
15
- "@nocobase/server": "1.7.0-beta.6",
16
- "@nocobase/data-source-manager": "1.7.0-beta.6",
17
- "@nocobase/database": "1.7.0-beta.6"
14
+ "@nocobase/test": "1.7.0-beta.8",
15
+ "@nocobase/server": "1.7.0-beta.8",
16
+ "@nocobase/data-source-manager": "1.7.0-beta.8",
17
+ "@nocobase/database": "1.7.0-beta.8"
18
18
  };
@@ -45,11 +45,11 @@ module.exports = __toCommonJS(server_exports);
45
45
  var import_path = __toESM(require("path"));
46
46
  var import_server = require("@nocobase/server");
47
47
  var import_test = require("@nocobase/test");
48
- var import_functions = __toESM(require("./functions"));
49
- var import_triggers = __toESM(require("./triggers"));
50
- var import_instructions = __toESM(require("./instructions"));
51
48
  var import_data_source_manager = require("@nocobase/data-source-manager");
52
49
  var import_utils = require("@nocobase/utils");
50
+ var import_functions = __toESM(require("./functions"));
51
+ var import_instructions = __toESM(require("./instructions"));
52
+ var import_triggers = __toESM(require("./triggers"));
53
53
  var import_test2 = require("@nocobase/test");
54
54
  class TestCollectionPlugin extends import_server.Plugin {
55
55
  async load() {
@@ -84,7 +84,7 @@ async function getApp({
84
84
  new import_data_source_manager.SequelizeDataSource({
85
85
  name: "another",
86
86
  collectionManager: {
87
- database: (0, import_test.mockDatabase)({
87
+ database: await (0, import_test.createMockDatabase)({
88
88
  tablePrefix: `t${(0, import_utils.uid)(5)}`
89
89
  })
90
90
  },
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.7.0-beta.6",
5
+ "version": "1.7.0-beta.8",
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": "4f1d3fa20b508322cc063b424588123e4ecc1c5f"
14
+ "gitHead": "9ad35ee90db98d95dfa660645d155f4f4e81b47c"
15
15
  }