@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.
- package/package.json +3 -3
- package/es/client/commonSettingsChecker/blockTitle.d.ts +0 -9
- package/es/client/commonSettingsChecker/fieldTitle.d.ts +0 -9
- package/es/client/commonSettingsChecker/index.d.ts +0 -10
- package/es/client/formItemChecker/collectionField.d.ts +0 -13
- package/es/client/formItemChecker/common.d.ts +0 -21
- package/es/client/formItemChecker/icon.d.ts +0 -11
- package/es/client/formItemChecker/index.d.ts +0 -31
- package/es/client/formItemChecker/input.d.ts +0 -11
- package/es/client/formItemChecker/number.d.ts +0 -11
- package/es/client/formItemChecker/radio.d.ts +0 -11
- package/es/client/formItemChecker/textarea.d.ts +0 -11
- package/es/client/index.d.ts +0 -24
- package/es/client/index.mjs +0 -2002
- package/es/client/renderAppOptions.d.ts +0 -11
- package/es/client/renderHookWithApp.d.ts +0 -19
- package/es/client/renderSettings.d.ts +0 -15
- package/es/client/renderSingleSettings.d.ts +0 -15
- package/es/client/settingsChecker/delete.d.ts +0 -16
- package/es/client/settingsChecker/index.d.ts +0 -26
- package/es/client/settingsChecker/modal.d.ts +0 -16
- package/es/client/settingsChecker/select.d.ts +0 -18
- package/es/client/settingsChecker/switch.d.ts +0 -16
- package/es/client/utils/checkModal.d.ts +0 -21
- package/es/client/utils/checkSchema.d.ts +0 -9
- package/es/client/utils/index.d.ts +0 -11
- package/es/client/utils/utils.d.ts +0 -10
- package/es/e2e/defineConfig.d.ts +0 -10
- package/es/e2e/e2eUtils.d.ts +0 -341
- package/es/e2e/index.d.ts +0 -11
- package/es/e2e/index.mjs +0 -21064
- package/es/e2e/templatesOfCollection.d.ts +0 -49
- package/es/e2e/templatesOfPage.d.ts +0 -585
- package/es/index.d.ts +0 -9
- package/es/index.mjs +0 -226
- package/es/scripts/test-db-creator.d.ts +0 -9
- package/es/scripts/test-db-distributor.d.ts +0 -9
- package/es/server/index.d.ts +0 -26
- package/es/server/mockServer.d.ts +0 -83
- package/es/web/index.d.ts +0 -62
- package/es/web/index.mjs +0 -1600
- package/es/web/utils.d.ts +0 -9
- package/lib/client/commonSettingsChecker/blockTitle.d.ts +0 -9
- package/lib/client/commonSettingsChecker/blockTitle.js +0 -65
- package/lib/client/commonSettingsChecker/fieldTitle.d.ts +0 -9
- package/lib/client/commonSettingsChecker/fieldTitle.js +0 -65
- package/lib/client/commonSettingsChecker/index.d.ts +0 -10
- package/lib/client/commonSettingsChecker/index.js +0 -32
- package/lib/client/formItemChecker/collectionField.d.ts +0 -13
- package/lib/client/formItemChecker/collectionField.js +0 -61
- package/lib/client/formItemChecker/common.d.ts +0 -21
- package/lib/client/formItemChecker/common.js +0 -45
- package/lib/client/formItemChecker/icon.d.ts +0 -11
- package/lib/client/formItemChecker/icon.js +0 -69
- package/lib/client/formItemChecker/index.d.ts +0 -31
- package/lib/client/formItemChecker/index.js +0 -65
- package/lib/client/formItemChecker/input.d.ts +0 -11
- package/lib/client/formItemChecker/input.js +0 -61
- package/lib/client/formItemChecker/number.d.ts +0 -11
- package/lib/client/formItemChecker/number.js +0 -61
- package/lib/client/formItemChecker/radio.d.ts +0 -11
- package/lib/client/formItemChecker/radio.js +0 -66
- package/lib/client/formItemChecker/textarea.d.ts +0 -11
- package/lib/client/formItemChecker/textarea.js +0 -61
- package/lib/client/index.d.ts +0 -24
- package/lib/client/index.js +0 -97
- package/lib/client/renderAppOptions.d.ts +0 -11
- package/lib/client/renderAppOptions.js +0 -61
- package/lib/client/renderHookWithApp.d.ts +0 -19
- package/lib/client/renderHookWithApp.js +0 -58
- package/lib/client/renderSettings.d.ts +0 -15
- package/lib/client/renderSettings.js +0 -78
- package/lib/client/renderSingleSettings.d.ts +0 -15
- package/lib/client/renderSingleSettings.js +0 -49
- package/lib/client/settingsChecker/delete.d.ts +0 -16
- package/lib/client/settingsChecker/delete.js +0 -59
- package/lib/client/settingsChecker/index.d.ts +0 -26
- package/lib/client/settingsChecker/index.js +0 -73
- package/lib/client/settingsChecker/modal.d.ts +0 -16
- package/lib/client/settingsChecker/modal.js +0 -49
- package/lib/client/settingsChecker/select.d.ts +0 -18
- package/lib/client/settingsChecker/select.js +0 -85
- package/lib/client/settingsChecker/switch.d.ts +0 -16
- package/lib/client/settingsChecker/switch.js +0 -91
- package/lib/client/utils/checkModal.d.ts +0 -21
- package/lib/client/utils/checkModal.js +0 -87
- package/lib/client/utils/checkSchema.d.ts +0 -9
- package/lib/client/utils/checkSchema.js +0 -45
- package/lib/client/utils/index.d.ts +0 -11
- package/lib/client/utils/index.js +0 -34
- package/lib/client/utils/utils.d.ts +0 -10
- package/lib/client/utils/utils.js +0 -54
- package/lib/e2e/defineConfig.d.ts +0 -10
- package/lib/e2e/defineConfig.js +0 -87
- package/lib/e2e/e2eUtils.d.ts +0 -341
- package/lib/e2e/e2eUtils.js +0 -704
- package/lib/e2e/index.d.ts +0 -11
- package/lib/e2e/index.js +0 -34
- package/lib/e2e/templatesOfCollection.d.ts +0 -49
- package/lib/e2e/templatesOfCollection.js +0 -729
- package/lib/e2e/templatesOfPage.d.ts +0 -585
- package/lib/e2e/templatesOfPage.js +0 -19796
- package/lib/index.d.ts +0 -9
- package/lib/index.js +0 -30
- package/lib/scripts/test-db-creator.d.ts +0 -9
- package/lib/scripts/test-db-creator.js +0 -185
- package/lib/scripts/test-db-distributor.d.ts +0 -9
- package/lib/scripts/test-db-distributor.js +0 -243
- package/lib/server/index.d.ts +0 -26
- package/lib/server/index.js +0 -114
- package/lib/server/mockServer.d.ts +0 -83
- package/lib/server/mockServer.js +0 -221
- package/lib/web/dataSource2.json +0 -139
- package/lib/web/dataSourceMainCollections.json +0 -819
- package/lib/web/dataSourceMainData.json +0 -287
- package/lib/web/index.d.ts +0 -62
- package/lib/web/index.js +0 -298
- package/lib/web/utils.d.ts +0 -9
- 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.
|
|
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.
|
|
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": "
|
|
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>;
|
package/es/client/index.d.ts
DELETED
|
@@ -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';
|