@nocobase/test 1.2.13-alpha → 1.3.0-alpha.20240710084543

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.
Files changed (119) hide show
  1. package/package.json +3 -3
  2. package/es/client/commonSettingsChecker/blockTitle.d.ts +0 -9
  3. package/es/client/commonSettingsChecker/fieldTitle.d.ts +0 -9
  4. package/es/client/commonSettingsChecker/index.d.ts +0 -10
  5. package/es/client/formItemChecker/collectionField.d.ts +0 -13
  6. package/es/client/formItemChecker/common.d.ts +0 -21
  7. package/es/client/formItemChecker/icon.d.ts +0 -11
  8. package/es/client/formItemChecker/index.d.ts +0 -31
  9. package/es/client/formItemChecker/input.d.ts +0 -11
  10. package/es/client/formItemChecker/number.d.ts +0 -11
  11. package/es/client/formItemChecker/radio.d.ts +0 -11
  12. package/es/client/formItemChecker/textarea.d.ts +0 -11
  13. package/es/client/index.d.ts +0 -24
  14. package/es/client/index.mjs +0 -2002
  15. package/es/client/renderAppOptions.d.ts +0 -11
  16. package/es/client/renderHookWithApp.d.ts +0 -19
  17. package/es/client/renderSettings.d.ts +0 -15
  18. package/es/client/renderSingleSettings.d.ts +0 -15
  19. package/es/client/settingsChecker/delete.d.ts +0 -16
  20. package/es/client/settingsChecker/index.d.ts +0 -26
  21. package/es/client/settingsChecker/modal.d.ts +0 -16
  22. package/es/client/settingsChecker/select.d.ts +0 -18
  23. package/es/client/settingsChecker/switch.d.ts +0 -16
  24. package/es/client/utils/checkModal.d.ts +0 -21
  25. package/es/client/utils/checkSchema.d.ts +0 -9
  26. package/es/client/utils/index.d.ts +0 -11
  27. package/es/client/utils/utils.d.ts +0 -10
  28. package/es/e2e/defineConfig.d.ts +0 -10
  29. package/es/e2e/e2eUtils.d.ts +0 -341
  30. package/es/e2e/index.d.ts +0 -11
  31. package/es/e2e/index.mjs +0 -21064
  32. package/es/e2e/templatesOfCollection.d.ts +0 -49
  33. package/es/e2e/templatesOfPage.d.ts +0 -585
  34. package/es/index.d.ts +0 -9
  35. package/es/index.mjs +0 -226
  36. package/es/scripts/test-db-creator.d.ts +0 -9
  37. package/es/scripts/test-db-distributor.d.ts +0 -9
  38. package/es/server/index.d.ts +0 -26
  39. package/es/server/mockServer.d.ts +0 -83
  40. package/es/web/index.d.ts +0 -62
  41. package/es/web/index.mjs +0 -1600
  42. package/es/web/utils.d.ts +0 -9
  43. package/lib/client/commonSettingsChecker/blockTitle.d.ts +0 -9
  44. package/lib/client/commonSettingsChecker/blockTitle.js +0 -65
  45. package/lib/client/commonSettingsChecker/fieldTitle.d.ts +0 -9
  46. package/lib/client/commonSettingsChecker/fieldTitle.js +0 -65
  47. package/lib/client/commonSettingsChecker/index.d.ts +0 -10
  48. package/lib/client/commonSettingsChecker/index.js +0 -32
  49. package/lib/client/formItemChecker/collectionField.d.ts +0 -13
  50. package/lib/client/formItemChecker/collectionField.js +0 -61
  51. package/lib/client/formItemChecker/common.d.ts +0 -21
  52. package/lib/client/formItemChecker/common.js +0 -45
  53. package/lib/client/formItemChecker/icon.d.ts +0 -11
  54. package/lib/client/formItemChecker/icon.js +0 -69
  55. package/lib/client/formItemChecker/index.d.ts +0 -31
  56. package/lib/client/formItemChecker/index.js +0 -65
  57. package/lib/client/formItemChecker/input.d.ts +0 -11
  58. package/lib/client/formItemChecker/input.js +0 -61
  59. package/lib/client/formItemChecker/number.d.ts +0 -11
  60. package/lib/client/formItemChecker/number.js +0 -61
  61. package/lib/client/formItemChecker/radio.d.ts +0 -11
  62. package/lib/client/formItemChecker/radio.js +0 -66
  63. package/lib/client/formItemChecker/textarea.d.ts +0 -11
  64. package/lib/client/formItemChecker/textarea.js +0 -61
  65. package/lib/client/index.d.ts +0 -24
  66. package/lib/client/index.js +0 -97
  67. package/lib/client/renderAppOptions.d.ts +0 -11
  68. package/lib/client/renderAppOptions.js +0 -61
  69. package/lib/client/renderHookWithApp.d.ts +0 -19
  70. package/lib/client/renderHookWithApp.js +0 -58
  71. package/lib/client/renderSettings.d.ts +0 -15
  72. package/lib/client/renderSettings.js +0 -78
  73. package/lib/client/renderSingleSettings.d.ts +0 -15
  74. package/lib/client/renderSingleSettings.js +0 -49
  75. package/lib/client/settingsChecker/delete.d.ts +0 -16
  76. package/lib/client/settingsChecker/delete.js +0 -59
  77. package/lib/client/settingsChecker/index.d.ts +0 -26
  78. package/lib/client/settingsChecker/index.js +0 -73
  79. package/lib/client/settingsChecker/modal.d.ts +0 -16
  80. package/lib/client/settingsChecker/modal.js +0 -49
  81. package/lib/client/settingsChecker/select.d.ts +0 -18
  82. package/lib/client/settingsChecker/select.js +0 -85
  83. package/lib/client/settingsChecker/switch.d.ts +0 -16
  84. package/lib/client/settingsChecker/switch.js +0 -91
  85. package/lib/client/utils/checkModal.d.ts +0 -21
  86. package/lib/client/utils/checkModal.js +0 -87
  87. package/lib/client/utils/checkSchema.d.ts +0 -9
  88. package/lib/client/utils/checkSchema.js +0 -45
  89. package/lib/client/utils/index.d.ts +0 -11
  90. package/lib/client/utils/index.js +0 -34
  91. package/lib/client/utils/utils.d.ts +0 -10
  92. package/lib/client/utils/utils.js +0 -54
  93. package/lib/e2e/defineConfig.d.ts +0 -10
  94. package/lib/e2e/defineConfig.js +0 -87
  95. package/lib/e2e/e2eUtils.d.ts +0 -341
  96. package/lib/e2e/e2eUtils.js +0 -704
  97. package/lib/e2e/index.d.ts +0 -11
  98. package/lib/e2e/index.js +0 -34
  99. package/lib/e2e/templatesOfCollection.d.ts +0 -49
  100. package/lib/e2e/templatesOfCollection.js +0 -729
  101. package/lib/e2e/templatesOfPage.d.ts +0 -585
  102. package/lib/e2e/templatesOfPage.js +0 -19796
  103. package/lib/index.d.ts +0 -9
  104. package/lib/index.js +0 -30
  105. package/lib/scripts/test-db-creator.d.ts +0 -9
  106. package/lib/scripts/test-db-creator.js +0 -185
  107. package/lib/scripts/test-db-distributor.d.ts +0 -9
  108. package/lib/scripts/test-db-distributor.js +0 -243
  109. package/lib/server/index.d.ts +0 -26
  110. package/lib/server/index.js +0 -114
  111. package/lib/server/mockServer.d.ts +0 -83
  112. package/lib/server/mockServer.js +0 -221
  113. package/lib/web/dataSource2.json +0 -139
  114. package/lib/web/dataSourceMainCollections.json +0 -819
  115. package/lib/web/dataSourceMainData.json +0 -287
  116. package/lib/web/index.d.ts +0 -62
  117. package/lib/web/index.js +0 -298
  118. package/lib/web/utils.d.ts +0 -9
  119. package/lib/web/utils.js +0 -41
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/test",
3
- "version": "1.2.13-alpha",
3
+ "version": "1.3.0-alpha.20240710084543",
4
4
  "main": "lib/index.js",
5
5
  "module": "./src/index.ts",
6
6
  "types": "./lib/index.d.ts",
@@ -51,7 +51,7 @@
51
51
  },
52
52
  "dependencies": {
53
53
  "@faker-js/faker": "8.1.0",
54
- "@nocobase/server": "1.2.13-alpha",
54
+ "@nocobase/server": "1.3.0-alpha.20240710084543",
55
55
  "@playwright/test": "^1.44.0",
56
56
  "@testing-library/jest-dom": "^6.4.2",
57
57
  "@testing-library/react": "^14.0.0",
@@ -76,5 +76,5 @@
76
76
  "vitest-dom": "^0.1.1",
77
77
  "ws": "^8.13.0"
78
78
  },
79
- "gitHead": "b6a1c2ee330b47c2581ea2ce15ee46210e6220f2"
79
+ "gitHead": "07a8b596fc64a9779a194cb9b0dc2ca7570ed9d4"
80
80
  }
@@ -1,9 +0,0 @@
1
- /**
2
- * This file is part of the NocoBase (R) project.
3
- * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
- * Authors: NocoBase Team.
5
- *
6
- * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
- * For more information, please refer to: https://www.nocobase.com/agreement.
8
- */
9
- export declare function checkBlockTitle(oldValue?: string): Promise<void>;
@@ -1,9 +0,0 @@
1
- /**
2
- * This file is part of the NocoBase (R) project.
3
- * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
- * Authors: NocoBase Team.
5
- *
6
- * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
- * For more information, please refer to: https://www.nocobase.com/agreement.
8
- */
9
- export declare function checkFieldTitle(oldValue?: string): Promise<void>;
@@ -1,10 +0,0 @@
1
- /**
2
- * This file is part of the NocoBase (R) project.
3
- * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
- * Authors: NocoBase Team.
5
- *
6
- * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
- * For more information, please refer to: https://www.nocobase.com/agreement.
8
- */
9
- export * from './blockTitle';
10
- export * from './fieldTitle';
@@ -1,13 +0,0 @@
1
- /**
2
- * This file is part of the NocoBase (R) project.
3
- * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
- * Authors: NocoBase Team.
5
- *
6
- * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
- * For more information, please refer to: https://www.nocobase.com/agreement.
8
- */
9
- import { CommonFormItemCheckerOptions } from './common';
10
- export interface CollectionFieldCheckOptions extends CommonFormItemCheckerOptions {
11
- field: string;
12
- }
13
- export declare function collectionFieldChecker(options: CollectionFieldCheckOptions): Promise<void>;
@@ -1,21 +0,0 @@
1
- /**
2
- * This file is part of the NocoBase (R) project.
3
- * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
- * Authors: NocoBase Team.
5
- *
6
- * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
- * For more information, please refer to: https://www.nocobase.com/agreement.
8
- */
9
- export interface CommonFormItemCheckerOptions {
10
- label?: string;
11
- container?: HTMLElement;
12
- newValue?: any;
13
- oldValue?: any;
14
- Component?: string;
15
- }
16
- export interface GetFormItemElementOptions {
17
- container?: HTMLElement;
18
- Component: string;
19
- label?: string;
20
- }
21
- export declare function getFormItemElement({ container, Component, label }: GetFormItemElementOptions): Element;
@@ -1,11 +0,0 @@
1
- /**
2
- * This file is part of the NocoBase (R) project.
3
- * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
- * Authors: NocoBase Team.
5
- *
6
- * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
- * For more information, please refer to: https://www.nocobase.com/agreement.
8
- */
9
- import { CommonFormItemCheckerOptions } from './common';
10
- export type IconCheckOptions = CommonFormItemCheckerOptions;
11
- export declare function iconChecker(options: IconCheckOptions): Promise<void>;
@@ -1,31 +0,0 @@
1
- /**
2
- * This file is part of the NocoBase (R) project.
3
- * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
- * Authors: NocoBase Team.
5
- *
6
- * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
- * For more information, please refer to: https://www.nocobase.com/agreement.
8
- */
9
- import { IconCheckOptions } from './icon';
10
- import { RadioCheckOptions } from './radio';
11
- import { InputCheckOptions } from './input';
12
- import { NumberCheckOptions } from './number';
13
- import { TextareaCheckOptions } from './textarea';
14
- import { CollectionFieldCheckOptions } from './collectionField';
15
- export * from './icon';
16
- export * from './radio';
17
- export * from './icon';
18
- export type FormItemCheckOptions = ({
19
- type: 'icon';
20
- } & IconCheckOptions) | ({
21
- type: 'radio';
22
- } & RadioCheckOptions) | ({
23
- type: 'collectionField';
24
- } & CollectionFieldCheckOptions) | ({
25
- type: 'input';
26
- } & InputCheckOptions) | ({
27
- type: 'number';
28
- } & NumberCheckOptions) | ({
29
- type: 'textarea';
30
- } & TextareaCheckOptions);
31
- export declare function checkFormItems(list: FormItemCheckOptions[]): Promise<void>;
@@ -1,11 +0,0 @@
1
- /**
2
- * This file is part of the NocoBase (R) project.
3
- * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
- * Authors: NocoBase Team.
5
- *
6
- * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
- * For more information, please refer to: https://www.nocobase.com/agreement.
8
- */
9
- import { CommonFormItemCheckerOptions } from './common';
10
- export type InputCheckOptions = CommonFormItemCheckerOptions;
11
- export declare function inputChecker(options: InputCheckOptions): Promise<void>;
@@ -1,11 +0,0 @@
1
- /**
2
- * This file is part of the NocoBase (R) project.
3
- * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
- * Authors: NocoBase Team.
5
- *
6
- * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
- * For more information, please refer to: https://www.nocobase.com/agreement.
8
- */
9
- import { CommonFormItemCheckerOptions } from './common';
10
- export type NumberCheckOptions = CommonFormItemCheckerOptions;
11
- export declare function numberChecker(options: NumberCheckOptions): Promise<void>;
@@ -1,11 +0,0 @@
1
- /**
2
- * This file is part of the NocoBase (R) project.
3
- * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
- * Authors: NocoBase Team.
5
- *
6
- * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
- * For more information, please refer to: https://www.nocobase.com/agreement.
8
- */
9
- import { CommonFormItemCheckerOptions } from './common';
10
- export type RadioCheckOptions = CommonFormItemCheckerOptions;
11
- export declare function radioChecker(options: CommonFormItemCheckerOptions): Promise<void>;
@@ -1,11 +0,0 @@
1
- /**
2
- * This file is part of the NocoBase (R) project.
3
- * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
- * Authors: NocoBase Team.
5
- *
6
- * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
- * For more information, please refer to: https://www.nocobase.com/agreement.
8
- */
9
- import { CommonFormItemCheckerOptions } from './common';
10
- export type TextareaCheckOptions = CommonFormItemCheckerOptions;
11
- export declare function textareaChecker(options: TextareaCheckOptions): Promise<void>;
@@ -1,24 +0,0 @@
1
- /**
2
- * This file is part of the NocoBase (R) project.
3
- * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
- * Authors: NocoBase Team.
5
- *
6
- * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
- * For more information, please refer to: https://www.nocobase.com/agreement.
8
- */
9
- import React from 'react';
10
- import { sleep } from '../web';
11
- export * from './utils';
12
- export { renderHook } from '@testing-library/react-hooks';
13
- declare function customRender(ui: React.ReactElement, options?: {}): import("@testing-library/react").RenderResult<typeof import("@testing-library/dom/types/queries"), HTMLElement, HTMLElement>;
14
- export declare function waitForApp(): Promise<void>;
15
- export declare function renderApp(element: React.JSX.Element): Promise<import("@testing-library/react").RenderResult<typeof import("@testing-library/dom/types/queries"), HTMLElement, HTMLElement>>;
16
- export * from '@testing-library/react';
17
- export { default as userEvent } from '@testing-library/user-event';
18
- export { customRender as render, sleep };
19
- export * from './renderAppOptions';
20
- export * from './renderHookWithApp';
21
- export * from './renderSettings';
22
- export * from './renderSingleSettings';
23
- export * from './settingsChecker';
24
- export * from './commonSettingsChecker';