@tachybase/test 0.23.40 → 0.23.47
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/es/e2e/index.mjs +42 -46
- package/lib/e2e/e2eUtils.js +9 -13
- package/lib/e2e/templatesOfPage.js +40 -40
- package/lib/scripts/test-db-creator.js +4 -2
- package/lib/scripts/test-db-distributor.js +4 -2
- package/package.json +7 -7
- package/vitest.mjs +2 -2
package/es/e2e/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { uid } from "@tachybase/schema";
|
|
1
2
|
import "@faker-js/faker";
|
|
2
|
-
import { uid } from "@formily/shared";
|
|
3
3
|
import { defineConfig as defineConfig$1, devices, test as test$2, request, expect } from "@playwright/test";
|
|
4
4
|
export * from "@playwright/test";
|
|
5
5
|
import _ from "lodash";
|
|
@@ -61,10 +61,6 @@ class NocoPage {
|
|
|
61
61
|
this.page = page;
|
|
62
62
|
this._waitForInit = this.init();
|
|
63
63
|
}
|
|
64
|
-
url;
|
|
65
|
-
uid;
|
|
66
|
-
collectionsName;
|
|
67
|
-
_waitForInit;
|
|
68
64
|
async init() {
|
|
69
65
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
70
66
|
if ((_b = (_a = this.options) == null ? void 0 : _a.collections) == null ? void 0 : _b.length) {
|
|
@@ -265,7 +261,7 @@ const _test = test$2.extend({
|
|
|
265
261
|
});
|
|
266
262
|
const test = Object.assign(_test, {
|
|
267
263
|
/** 只运行在 postgres 数据库中 */
|
|
268
|
-
pgOnly: process.env.DB_DIALECT
|
|
264
|
+
pgOnly: process.env.DB_DIALECT === "postgres" ? _test : _test.skip
|
|
269
265
|
});
|
|
270
266
|
const getStorageItem = (key, storageState) => {
|
|
271
267
|
var _a, _b;
|
|
@@ -2716,7 +2712,7 @@ const oneEmptyTableBlockWithActions = {
|
|
|
2716
2712
|
type: "void",
|
|
2717
2713
|
"x-component": "Tabs",
|
|
2718
2714
|
"x-component-props": {},
|
|
2719
|
-
"x-initializer": "
|
|
2715
|
+
"x-initializer": "popup:addTab",
|
|
2720
2716
|
properties: {
|
|
2721
2717
|
tab1: {
|
|
2722
2718
|
_isJSONSchemaObject: true,
|
|
@@ -2790,7 +2786,7 @@ const oneEmptyTableBlockWithActions = {
|
|
|
2790
2786
|
type: "void",
|
|
2791
2787
|
"x-component": "Tabs",
|
|
2792
2788
|
"x-component-props": {},
|
|
2793
|
-
"x-initializer": "
|
|
2789
|
+
"x-initializer": "popup:addTab",
|
|
2794
2790
|
properties: {
|
|
2795
2791
|
tab1: {
|
|
2796
2792
|
_isJSONSchemaObject: true,
|
|
@@ -2889,7 +2885,7 @@ const oneEmptyTableBlockWithActions = {
|
|
|
2889
2885
|
type: "void",
|
|
2890
2886
|
"x-component": "Tabs",
|
|
2891
2887
|
"x-component-props": {},
|
|
2892
|
-
"x-initializer": "
|
|
2888
|
+
"x-initializer": "popup:addTab",
|
|
2893
2889
|
properties: {
|
|
2894
2890
|
tab1: {
|
|
2895
2891
|
_isJSONSchemaObject: true,
|
|
@@ -3489,7 +3485,7 @@ const oneTableBlockWithActionsAndFormBlocks = {
|
|
|
3489
3485
|
type: "void",
|
|
3490
3486
|
"x-component": "Tabs",
|
|
3491
3487
|
"x-component-props": {},
|
|
3492
|
-
"x-initializer": "
|
|
3488
|
+
"x-initializer": "popup:addTab",
|
|
3493
3489
|
properties: {
|
|
3494
3490
|
tab1: {
|
|
3495
3491
|
_isJSONSchemaObject: true,
|
|
@@ -3649,7 +3645,7 @@ const oneTableBlockWithActionsAndFormBlocks = {
|
|
|
3649
3645
|
type: "void",
|
|
3650
3646
|
"x-component": "Tabs",
|
|
3651
3647
|
"x-component-props": {},
|
|
3652
|
-
"x-initializer": "
|
|
3648
|
+
"x-initializer": "popup:addTab",
|
|
3653
3649
|
properties: {
|
|
3654
3650
|
tab1: {
|
|
3655
3651
|
_isJSONSchemaObject: true,
|
|
@@ -5752,7 +5748,7 @@ const oneTableBlockWithAddNewAndViewAndEditAndBasicFields = {
|
|
|
5752
5748
|
type: "void",
|
|
5753
5749
|
"x-component": "Tabs",
|
|
5754
5750
|
"x-component-props": {},
|
|
5755
|
-
"x-initializer": "
|
|
5751
|
+
"x-initializer": "popup:addTab",
|
|
5756
5752
|
properties: {
|
|
5757
5753
|
tab1: {
|
|
5758
5754
|
_isJSONSchemaObject: true,
|
|
@@ -5852,7 +5848,7 @@ const oneTableBlockWithAddNewAndViewAndEditAndBasicFields = {
|
|
|
5852
5848
|
type: "void",
|
|
5853
5849
|
"x-component": "Tabs",
|
|
5854
5850
|
"x-component-props": {},
|
|
5855
|
-
"x-initializer": "
|
|
5851
|
+
"x-initializer": "popup:addTab",
|
|
5856
5852
|
properties: {
|
|
5857
5853
|
tab1: {
|
|
5858
5854
|
_isJSONSchemaObject: true,
|
|
@@ -6377,7 +6373,7 @@ const oneTableBlockWithAddNewAndViewAndEditAndBasicFields = {
|
|
|
6377
6373
|
type: "void",
|
|
6378
6374
|
"x-component": "Tabs",
|
|
6379
6375
|
"x-component-props": {},
|
|
6380
|
-
"x-initializer": "
|
|
6376
|
+
"x-initializer": "popup:addTab",
|
|
6381
6377
|
properties: {
|
|
6382
6378
|
tab1: {
|
|
6383
6379
|
_isJSONSchemaObject: true,
|
|
@@ -7111,7 +7107,7 @@ const oneTableBlockWithAddNewAndViewAndEditAndBasicFieldsAndSubTable = {
|
|
|
7111
7107
|
type: "void",
|
|
7112
7108
|
"x-component": "Tabs",
|
|
7113
7109
|
"x-component-props": {},
|
|
7114
|
-
"x-initializer": "
|
|
7110
|
+
"x-initializer": "popup:addTab",
|
|
7115
7111
|
properties: {
|
|
7116
7112
|
tab1: {
|
|
7117
7113
|
_isJSONSchemaObject: true,
|
|
@@ -7913,7 +7909,7 @@ const oneTableBlockWithAddNewAndViewAndEditAndChoicesFields = {
|
|
|
7913
7909
|
type: "void",
|
|
7914
7910
|
"x-component": "Tabs",
|
|
7915
7911
|
"x-component-props": {},
|
|
7916
|
-
"x-initializer": "
|
|
7912
|
+
"x-initializer": "popup:addTab",
|
|
7917
7913
|
properties: {
|
|
7918
7914
|
tab1: {
|
|
7919
7915
|
_isJSONSchemaObject: true,
|
|
@@ -8013,7 +8009,7 @@ const oneTableBlockWithAddNewAndViewAndEditAndChoicesFields = {
|
|
|
8013
8009
|
type: "void",
|
|
8014
8010
|
"x-component": "Tabs",
|
|
8015
8011
|
"x-component-props": {},
|
|
8016
|
-
"x-initializer": "
|
|
8012
|
+
"x-initializer": "popup:addTab",
|
|
8017
8013
|
properties: {
|
|
8018
8014
|
tab1: {
|
|
8019
8015
|
_isJSONSchemaObject: true,
|
|
@@ -8367,7 +8363,7 @@ const oneTableBlockWithAddNewAndViewAndEditAndChoicesFields = {
|
|
|
8367
8363
|
type: "void",
|
|
8368
8364
|
"x-component": "Tabs",
|
|
8369
8365
|
"x-component-props": {},
|
|
8370
|
-
"x-initializer": "
|
|
8366
|
+
"x-initializer": "popup:addTab",
|
|
8371
8367
|
properties: {
|
|
8372
8368
|
tab1: {
|
|
8373
8369
|
_isJSONSchemaObject: true,
|
|
@@ -9209,7 +9205,7 @@ const oneTableBlockWithAddNewAndViewAndEditAndMediaFields = {
|
|
|
9209
9205
|
type: "void",
|
|
9210
9206
|
"x-component": "Tabs",
|
|
9211
9207
|
"x-component-props": {},
|
|
9212
|
-
"x-initializer": "
|
|
9208
|
+
"x-initializer": "popup:addTab",
|
|
9213
9209
|
properties: {
|
|
9214
9210
|
tab1: {
|
|
9215
9211
|
_isJSONSchemaObject: true,
|
|
@@ -9309,7 +9305,7 @@ const oneTableBlockWithAddNewAndViewAndEditAndMediaFields = {
|
|
|
9309
9305
|
type: "void",
|
|
9310
9306
|
"x-component": "Tabs",
|
|
9311
9307
|
"x-component-props": {},
|
|
9312
|
-
"x-initializer": "
|
|
9308
|
+
"x-initializer": "popup:addTab",
|
|
9313
9309
|
properties: {
|
|
9314
9310
|
tab1: {
|
|
9315
9311
|
_isJSONSchemaObject: true,
|
|
@@ -9552,7 +9548,7 @@ const oneTableBlockWithAddNewAndViewAndEditAndMediaFields = {
|
|
|
9552
9548
|
type: "void",
|
|
9553
9549
|
"x-component": "Tabs",
|
|
9554
9550
|
"x-component-props": {},
|
|
9555
|
-
"x-initializer": "
|
|
9551
|
+
"x-initializer": "popup:addTab",
|
|
9556
9552
|
properties: {
|
|
9557
9553
|
tab1: {
|
|
9558
9554
|
_isJSONSchemaObject: true,
|
|
@@ -10246,7 +10242,7 @@ const oneTableBlockWithAddNewAndViewAndEditAndDatetimeFields = {
|
|
|
10246
10242
|
type: "void",
|
|
10247
10243
|
"x-component": "Tabs",
|
|
10248
10244
|
"x-component-props": {},
|
|
10249
|
-
"x-initializer": "
|
|
10245
|
+
"x-initializer": "popup:addTab",
|
|
10250
10246
|
properties: {
|
|
10251
10247
|
tab1: {
|
|
10252
10248
|
_isJSONSchemaObject: true,
|
|
@@ -10346,7 +10342,7 @@ const oneTableBlockWithAddNewAndViewAndEditAndDatetimeFields = {
|
|
|
10346
10342
|
type: "void",
|
|
10347
10343
|
"x-component": "Tabs",
|
|
10348
10344
|
"x-component-props": {},
|
|
10349
|
-
"x-initializer": "
|
|
10345
|
+
"x-initializer": "popup:addTab",
|
|
10350
10346
|
properties: {
|
|
10351
10347
|
tab1: {
|
|
10352
10348
|
_isJSONSchemaObject: true,
|
|
@@ -10552,7 +10548,7 @@ const oneTableBlockWithAddNewAndViewAndEditAndDatetimeFields = {
|
|
|
10552
10548
|
type: "void",
|
|
10553
10549
|
"x-component": "Tabs",
|
|
10554
10550
|
"x-component-props": {},
|
|
10555
|
-
"x-initializer": "
|
|
10551
|
+
"x-initializer": "popup:addTab",
|
|
10556
10552
|
properties: {
|
|
10557
10553
|
tab1: {
|
|
10558
10554
|
_isJSONSchemaObject: true,
|
|
@@ -11314,7 +11310,7 @@ const oneTableBlockWithAddNewAndViewAndEditAndAssociationFields = {
|
|
|
11314
11310
|
type: "void",
|
|
11315
11311
|
"x-component": "Tabs",
|
|
11316
11312
|
"x-component-props": {},
|
|
11317
|
-
"x-initializer": "
|
|
11313
|
+
"x-initializer": "popup:addTab",
|
|
11318
11314
|
properties: {
|
|
11319
11315
|
tab1: {
|
|
11320
11316
|
_isJSONSchemaObject: true,
|
|
@@ -11414,7 +11410,7 @@ const oneTableBlockWithAddNewAndViewAndEditAndAssociationFields = {
|
|
|
11414
11410
|
type: "void",
|
|
11415
11411
|
"x-component": "Tabs",
|
|
11416
11412
|
"x-component-props": {},
|
|
11417
|
-
"x-initializer": "
|
|
11413
|
+
"x-initializer": "popup:addTab",
|
|
11418
11414
|
properties: {
|
|
11419
11415
|
tab1: {
|
|
11420
11416
|
_isJSONSchemaObject: true,
|
|
@@ -11725,7 +11721,7 @@ const oneTableBlockWithAddNewAndViewAndEditAndAssociationFields = {
|
|
|
11725
11721
|
type: "void",
|
|
11726
11722
|
"x-component": "Tabs",
|
|
11727
11723
|
"x-component-props": {},
|
|
11728
|
-
"x-initializer": "
|
|
11724
|
+
"x-initializer": "popup:addTab",
|
|
11729
11725
|
properties: {
|
|
11730
11726
|
tab1: {
|
|
11731
11727
|
_isJSONSchemaObject: true,
|
|
@@ -12883,7 +12879,7 @@ const oneTableBlockWithAddNewAndViewAndEditAndAdvancedFields = {
|
|
|
12883
12879
|
type: "void",
|
|
12884
12880
|
"x-component": "Tabs",
|
|
12885
12881
|
"x-component-props": {},
|
|
12886
|
-
"x-initializer": "
|
|
12882
|
+
"x-initializer": "popup:addTab",
|
|
12887
12883
|
properties: {
|
|
12888
12884
|
tab1: {
|
|
12889
12885
|
_isJSONSchemaObject: true,
|
|
@@ -12983,7 +12979,7 @@ const oneTableBlockWithAddNewAndViewAndEditAndAdvancedFields = {
|
|
|
12983
12979
|
type: "void",
|
|
12984
12980
|
"x-component": "Tabs",
|
|
12985
12981
|
"x-component-props": {},
|
|
12986
|
-
"x-initializer": "
|
|
12982
|
+
"x-initializer": "popup:addTab",
|
|
12987
12983
|
properties: {
|
|
12988
12984
|
tab1: {
|
|
12989
12985
|
_isJSONSchemaObject: true,
|
|
@@ -13266,7 +13262,7 @@ const oneTableBlockWithAddNewAndViewAndEditAndAdvancedFields = {
|
|
|
13266
13262
|
type: "void",
|
|
13267
13263
|
"x-component": "Tabs",
|
|
13268
13264
|
"x-component-props": {},
|
|
13269
|
-
"x-initializer": "
|
|
13265
|
+
"x-initializer": "popup:addTab",
|
|
13270
13266
|
properties: {
|
|
13271
13267
|
tab1: {
|
|
13272
13268
|
_isJSONSchemaObject: true,
|
|
@@ -13880,7 +13876,7 @@ const oneTableBlockWithAddNewAndViewAndEditAndSystemInfoFields = {
|
|
|
13880
13876
|
type: "void",
|
|
13881
13877
|
"x-component": "Tabs",
|
|
13882
13878
|
"x-component-props": {},
|
|
13883
|
-
"x-initializer": "
|
|
13879
|
+
"x-initializer": "popup:addTab",
|
|
13884
13880
|
properties: {
|
|
13885
13881
|
tab1: {
|
|
13886
13882
|
_isJSONSchemaObject: true,
|
|
@@ -13970,7 +13966,7 @@ const oneTableBlockWithAddNewAndViewAndEditAndSystemInfoFields = {
|
|
|
13970
13966
|
type: "void",
|
|
13971
13967
|
"x-component": "Tabs",
|
|
13972
13968
|
"x-component-props": {},
|
|
13973
|
-
"x-initializer": "
|
|
13969
|
+
"x-initializer": "popup:addTab",
|
|
13974
13970
|
properties: {
|
|
13975
13971
|
tab1: {
|
|
13976
13972
|
_isJSONSchemaObject: true,
|
|
@@ -14255,7 +14251,7 @@ const oneTableBlockWithAddNewAndViewAndEditAndSystemInfoFields = {
|
|
|
14255
14251
|
type: "void",
|
|
14256
14252
|
"x-component": "Tabs",
|
|
14257
14253
|
"x-component-props": {},
|
|
14258
|
-
"x-initializer": "
|
|
14254
|
+
"x-initializer": "popup:addTab",
|
|
14259
14255
|
properties: {
|
|
14260
14256
|
tab1: {
|
|
14261
14257
|
_isJSONSchemaObject: true,
|
|
@@ -14355,7 +14351,7 @@ const oneTableBlockWithAddNewAndViewAndEditAndSystemInfoFields = {
|
|
|
14355
14351
|
type: "void",
|
|
14356
14352
|
"x-component": "Tabs",
|
|
14357
14353
|
"x-component-props": {},
|
|
14358
|
-
"x-initializer": "
|
|
14354
|
+
"x-initializer": "popup:addTab",
|
|
14359
14355
|
properties: {
|
|
14360
14356
|
tab1: {
|
|
14361
14357
|
_isJSONSchemaObject: true,
|
|
@@ -14519,7 +14515,7 @@ const oneTableBlockWithAddNewAndViewAndEditAndSystemInfoFields = {
|
|
|
14519
14515
|
type: "void",
|
|
14520
14516
|
"x-component": "Tabs",
|
|
14521
14517
|
"x-component-props": {},
|
|
14522
|
-
"x-initializer": "
|
|
14518
|
+
"x-initializer": "popup:addTab",
|
|
14523
14519
|
properties: {
|
|
14524
14520
|
tab1: {
|
|
14525
14521
|
_isJSONSchemaObject: true,
|
|
@@ -14609,7 +14605,7 @@ const oneTableBlockWithAddNewAndViewAndEditAndSystemInfoFields = {
|
|
|
14609
14605
|
type: "void",
|
|
14610
14606
|
"x-component": "Tabs",
|
|
14611
14607
|
"x-component-props": {},
|
|
14612
|
-
"x-initializer": "
|
|
14608
|
+
"x-initializer": "popup:addTab",
|
|
14613
14609
|
properties: {
|
|
14614
14610
|
tab1: {
|
|
14615
14611
|
_isJSONSchemaObject: true,
|
|
@@ -14815,7 +14811,7 @@ const oneTableBlockWithAddNewAndViewAndEditAndSystemInfoFields = {
|
|
|
14815
14811
|
type: "void",
|
|
14816
14812
|
"x-component": "Tabs",
|
|
14817
14813
|
"x-component-props": {},
|
|
14818
|
-
"x-initializer": "
|
|
14814
|
+
"x-initializer": "popup:addTab",
|
|
14819
14815
|
properties: {
|
|
14820
14816
|
tab1: {
|
|
14821
14817
|
_isJSONSchemaObject: true,
|
|
@@ -14992,7 +14988,7 @@ const oneTableBlockWithAddNewAndViewAndEditAndSystemInfoFields = {
|
|
|
14992
14988
|
type: "void",
|
|
14993
14989
|
"x-component": "Tabs",
|
|
14994
14990
|
"x-component-props": {},
|
|
14995
|
-
"x-initializer": "
|
|
14991
|
+
"x-initializer": "popup:addTab",
|
|
14996
14992
|
properties: {
|
|
14997
14993
|
tab1: {
|
|
14998
14994
|
_isJSONSchemaObject: true,
|
|
@@ -15082,7 +15078,7 @@ const oneTableBlockWithAddNewAndViewAndEditAndSystemInfoFields = {
|
|
|
15082
15078
|
type: "void",
|
|
15083
15079
|
"x-component": "Tabs",
|
|
15084
15080
|
"x-component-props": {},
|
|
15085
|
-
"x-initializer": "
|
|
15081
|
+
"x-initializer": "popup:addTab",
|
|
15086
15082
|
properties: {
|
|
15087
15083
|
tab1: {
|
|
15088
15084
|
_isJSONSchemaObject: true,
|
|
@@ -16529,7 +16525,7 @@ const oneTableSubformWithMultiLevelAssociationFields = {
|
|
|
16529
16525
|
type: "void",
|
|
16530
16526
|
"x-component": "Tabs",
|
|
16531
16527
|
"x-component-props": {},
|
|
16532
|
-
"x-initializer": "
|
|
16528
|
+
"x-initializer": "popup:addTab",
|
|
16533
16529
|
properties: {
|
|
16534
16530
|
tab1: {
|
|
16535
16531
|
_isJSONSchemaObject: true,
|
|
@@ -17056,7 +17052,7 @@ const oneTableSubformWithMultiLevelAssociationFields = {
|
|
|
17056
17052
|
type: "void",
|
|
17057
17053
|
"x-component": "Tabs",
|
|
17058
17054
|
"x-component-props": {},
|
|
17059
|
-
"x-initializer": "
|
|
17055
|
+
"x-initializer": "popup:addTab",
|
|
17060
17056
|
properties: {
|
|
17061
17057
|
tab1: {
|
|
17062
17058
|
_isJSONSchemaObject: true,
|
|
@@ -17891,7 +17887,7 @@ const oneTableSubtableWithMultiLevelAssociationFields = {
|
|
|
17891
17887
|
type: "void",
|
|
17892
17888
|
"x-component": "Tabs",
|
|
17893
17889
|
"x-component-props": {},
|
|
17894
|
-
"x-initializer": "
|
|
17890
|
+
"x-initializer": "popup:addTab",
|
|
17895
17891
|
properties: {
|
|
17896
17892
|
tab1: {
|
|
17897
17893
|
_isJSONSchemaObject: true,
|
|
@@ -17991,7 +17987,7 @@ const oneTableSubtableWithMultiLevelAssociationFields = {
|
|
|
17991
17987
|
type: "void",
|
|
17992
17988
|
"x-component": "Tabs",
|
|
17993
17989
|
"x-component-props": {},
|
|
17994
|
-
"x-initializer": "
|
|
17990
|
+
"x-initializer": "popup:addTab",
|
|
17995
17991
|
properties: {
|
|
17996
17992
|
tab1: {
|
|
17997
17993
|
_isJSONSchemaObject: true,
|
|
@@ -18301,7 +18297,7 @@ const oneTableSubtableWithMultiLevelAssociationFields = {
|
|
|
18301
18297
|
type: "void",
|
|
18302
18298
|
"x-component": "Tabs",
|
|
18303
18299
|
"x-component-props": {},
|
|
18304
|
-
"x-initializer": "
|
|
18300
|
+
"x-initializer": "popup:addTab",
|
|
18305
18301
|
properties: {
|
|
18306
18302
|
tab1: {
|
|
18307
18303
|
_isJSONSchemaObject: true,
|
|
@@ -19019,7 +19015,7 @@ const formBlockDefaultValueTemplate = {
|
|
|
19019
19015
|
type: "void",
|
|
19020
19016
|
"x-component": "Tabs",
|
|
19021
19017
|
"x-component-props": {},
|
|
19022
|
-
"x-initializer": "
|
|
19018
|
+
"x-initializer": "popup:addTab",
|
|
19023
19019
|
properties: {
|
|
19024
19020
|
tab1: {
|
|
19025
19021
|
_isJSONSchemaObject: true,
|
|
@@ -19093,7 +19089,7 @@ const formBlockDefaultValueTemplate = {
|
|
|
19093
19089
|
type: "void",
|
|
19094
19090
|
"x-component": "Tabs",
|
|
19095
19091
|
"x-component-props": {},
|
|
19096
|
-
"x-initializer": "
|
|
19092
|
+
"x-initializer": "popup:addTab",
|
|
19097
19093
|
properties: {
|
|
19098
19094
|
tab1: {
|
|
19099
19095
|
_isJSONSchemaObject: true,
|
package/lib/e2e/e2eUtils.js
CHANGED
|
@@ -38,8 +38,8 @@ __export(e2eUtils_exports, {
|
|
|
38
38
|
test: () => test
|
|
39
39
|
});
|
|
40
40
|
module.exports = __toCommonJS(e2eUtils_exports);
|
|
41
|
+
var import_schema = require("@tachybase/schema");
|
|
41
42
|
var import_faker = require("@faker-js/faker");
|
|
42
|
-
var import_shared = require("@formily/shared");
|
|
43
43
|
var import_test = require("@playwright/test");
|
|
44
44
|
var import_lodash = __toESM(require("lodash"));
|
|
45
45
|
var import_defineConfig = require("./defineConfig");
|
|
@@ -52,10 +52,6 @@ const _NocoPage = class _NocoPage {
|
|
|
52
52
|
this.page = page;
|
|
53
53
|
this._waitForInit = this.init();
|
|
54
54
|
}
|
|
55
|
-
url;
|
|
56
|
-
uid;
|
|
57
|
-
collectionsName;
|
|
58
|
-
_waitForInit;
|
|
59
55
|
async init() {
|
|
60
56
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
61
57
|
if ((_b = (_a = this.options) == null ? void 0 : _a.collections) == null ? void 0 : _b.length) {
|
|
@@ -258,7 +254,7 @@ const _test = import_test.test.extend({
|
|
|
258
254
|
});
|
|
259
255
|
const test = Object.assign(_test, {
|
|
260
256
|
/** 只运行在 postgres 数据库中 */
|
|
261
|
-
pgOnly: process.env.DB_DIALECT
|
|
257
|
+
pgOnly: process.env.DB_DIALECT === "postgres" ? _test : _test.skip
|
|
262
258
|
});
|
|
263
259
|
const getStorageItem = /* @__PURE__ */ __name((key, storageState) => {
|
|
264
260
|
var _a, _b;
|
|
@@ -269,7 +265,7 @@ const updateUidOfPageSchema = /* @__PURE__ */ __name((uiSchema) => {
|
|
|
269
265
|
return;
|
|
270
266
|
}
|
|
271
267
|
if (uiSchema["x-uid"]) {
|
|
272
|
-
uiSchema["x-uid"] = (0,
|
|
268
|
+
uiSchema["x-uid"] = (0, import_schema.uid)();
|
|
273
269
|
}
|
|
274
270
|
if (uiSchema.properties) {
|
|
275
271
|
Object.keys(uiSchema.properties).forEach((key) => {
|
|
@@ -301,8 +297,8 @@ const createPage = /* @__PURE__ */ __name(async (options) => {
|
|
|
301
297
|
};
|
|
302
298
|
const state = await api.storageState();
|
|
303
299
|
const headers = getHeaders(state);
|
|
304
|
-
const pageUid = (0,
|
|
305
|
-
const gridName = (0,
|
|
300
|
+
const pageUid = (0, import_schema.uid)();
|
|
301
|
+
const gridName = (0, import_schema.uid)();
|
|
306
302
|
const result = await api.post(`/api/uiSchemas:insertAdjacent/default-admin-menu?position=beforeEnd`, {
|
|
307
303
|
headers,
|
|
308
304
|
data: {
|
|
@@ -331,15 +327,15 @@ const createPage = /* @__PURE__ */ __name(async (options) => {
|
|
|
331
327
|
type: "void",
|
|
332
328
|
"x-component": "Grid",
|
|
333
329
|
"x-initializer": "page:addBlock",
|
|
334
|
-
"x-uid": (0,
|
|
330
|
+
"x-uid": (0, import_schema.uid)(),
|
|
335
331
|
name: gridName
|
|
336
332
|
}
|
|
337
333
|
},
|
|
338
|
-
"x-uid": (0,
|
|
334
|
+
"x-uid": (0, import_schema.uid)(),
|
|
339
335
|
name: "page"
|
|
340
336
|
}
|
|
341
337
|
},
|
|
342
|
-
name: (0,
|
|
338
|
+
name: (0, import_schema.uid)(),
|
|
343
339
|
"x-uid": pageUid
|
|
344
340
|
},
|
|
345
341
|
wrap: null
|
|
@@ -424,7 +420,7 @@ const createRole = /* @__PURE__ */ __name(async (roleSetting) => {
|
|
|
424
420
|
});
|
|
425
421
|
const state = await api.storageState();
|
|
426
422
|
const headers = getHeaders(state);
|
|
427
|
-
const name = roleSetting.name || (0,
|
|
423
|
+
const name = roleSetting.name || (0, import_schema.uid)();
|
|
428
424
|
const result = await api.post(`/api/users/1/roles:create`, {
|
|
429
425
|
headers,
|
|
430
426
|
data: { ...roleSetting, name, title: name }
|
|
@@ -1533,7 +1533,7 @@ const oneEmptyTableBlockWithActions = {
|
|
|
1533
1533
|
type: "void",
|
|
1534
1534
|
"x-component": "Tabs",
|
|
1535
1535
|
"x-component-props": {},
|
|
1536
|
-
"x-initializer": "
|
|
1536
|
+
"x-initializer": "popup:addTab",
|
|
1537
1537
|
properties: {
|
|
1538
1538
|
tab1: {
|
|
1539
1539
|
_isJSONSchemaObject: true,
|
|
@@ -1607,7 +1607,7 @@ const oneEmptyTableBlockWithActions = {
|
|
|
1607
1607
|
type: "void",
|
|
1608
1608
|
"x-component": "Tabs",
|
|
1609
1609
|
"x-component-props": {},
|
|
1610
|
-
"x-initializer": "
|
|
1610
|
+
"x-initializer": "popup:addTab",
|
|
1611
1611
|
properties: {
|
|
1612
1612
|
tab1: {
|
|
1613
1613
|
_isJSONSchemaObject: true,
|
|
@@ -1706,7 +1706,7 @@ const oneEmptyTableBlockWithActions = {
|
|
|
1706
1706
|
type: "void",
|
|
1707
1707
|
"x-component": "Tabs",
|
|
1708
1708
|
"x-component-props": {},
|
|
1709
|
-
"x-initializer": "
|
|
1709
|
+
"x-initializer": "popup:addTab",
|
|
1710
1710
|
properties: {
|
|
1711
1711
|
tab1: {
|
|
1712
1712
|
_isJSONSchemaObject: true,
|
|
@@ -2306,7 +2306,7 @@ const oneTableBlockWithActionsAndFormBlocks = {
|
|
|
2306
2306
|
type: "void",
|
|
2307
2307
|
"x-component": "Tabs",
|
|
2308
2308
|
"x-component-props": {},
|
|
2309
|
-
"x-initializer": "
|
|
2309
|
+
"x-initializer": "popup:addTab",
|
|
2310
2310
|
properties: {
|
|
2311
2311
|
tab1: {
|
|
2312
2312
|
_isJSONSchemaObject: true,
|
|
@@ -2466,7 +2466,7 @@ const oneTableBlockWithActionsAndFormBlocks = {
|
|
|
2466
2466
|
type: "void",
|
|
2467
2467
|
"x-component": "Tabs",
|
|
2468
2468
|
"x-component-props": {},
|
|
2469
|
-
"x-initializer": "
|
|
2469
|
+
"x-initializer": "popup:addTab",
|
|
2470
2470
|
properties: {
|
|
2471
2471
|
tab1: {
|
|
2472
2472
|
_isJSONSchemaObject: true,
|
|
@@ -4569,7 +4569,7 @@ const oneTableBlockWithAddNewAndViewAndEditAndBasicFields = {
|
|
|
4569
4569
|
type: "void",
|
|
4570
4570
|
"x-component": "Tabs",
|
|
4571
4571
|
"x-component-props": {},
|
|
4572
|
-
"x-initializer": "
|
|
4572
|
+
"x-initializer": "popup:addTab",
|
|
4573
4573
|
properties: {
|
|
4574
4574
|
tab1: {
|
|
4575
4575
|
_isJSONSchemaObject: true,
|
|
@@ -4669,7 +4669,7 @@ const oneTableBlockWithAddNewAndViewAndEditAndBasicFields = {
|
|
|
4669
4669
|
type: "void",
|
|
4670
4670
|
"x-component": "Tabs",
|
|
4671
4671
|
"x-component-props": {},
|
|
4672
|
-
"x-initializer": "
|
|
4672
|
+
"x-initializer": "popup:addTab",
|
|
4673
4673
|
properties: {
|
|
4674
4674
|
tab1: {
|
|
4675
4675
|
_isJSONSchemaObject: true,
|
|
@@ -5194,7 +5194,7 @@ const oneTableBlockWithAddNewAndViewAndEditAndBasicFields = {
|
|
|
5194
5194
|
type: "void",
|
|
5195
5195
|
"x-component": "Tabs",
|
|
5196
5196
|
"x-component-props": {},
|
|
5197
|
-
"x-initializer": "
|
|
5197
|
+
"x-initializer": "popup:addTab",
|
|
5198
5198
|
properties: {
|
|
5199
5199
|
tab1: {
|
|
5200
5200
|
_isJSONSchemaObject: true,
|
|
@@ -5928,7 +5928,7 @@ const oneTableBlockWithAddNewAndViewAndEditAndBasicFieldsAndSubTable = {
|
|
|
5928
5928
|
type: "void",
|
|
5929
5929
|
"x-component": "Tabs",
|
|
5930
5930
|
"x-component-props": {},
|
|
5931
|
-
"x-initializer": "
|
|
5931
|
+
"x-initializer": "popup:addTab",
|
|
5932
5932
|
properties: {
|
|
5933
5933
|
tab1: {
|
|
5934
5934
|
_isJSONSchemaObject: true,
|
|
@@ -6730,7 +6730,7 @@ const oneTableBlockWithAddNewAndViewAndEditAndChoicesFields = {
|
|
|
6730
6730
|
type: "void",
|
|
6731
6731
|
"x-component": "Tabs",
|
|
6732
6732
|
"x-component-props": {},
|
|
6733
|
-
"x-initializer": "
|
|
6733
|
+
"x-initializer": "popup:addTab",
|
|
6734
6734
|
properties: {
|
|
6735
6735
|
tab1: {
|
|
6736
6736
|
_isJSONSchemaObject: true,
|
|
@@ -6830,7 +6830,7 @@ const oneTableBlockWithAddNewAndViewAndEditAndChoicesFields = {
|
|
|
6830
6830
|
type: "void",
|
|
6831
6831
|
"x-component": "Tabs",
|
|
6832
6832
|
"x-component-props": {},
|
|
6833
|
-
"x-initializer": "
|
|
6833
|
+
"x-initializer": "popup:addTab",
|
|
6834
6834
|
properties: {
|
|
6835
6835
|
tab1: {
|
|
6836
6836
|
_isJSONSchemaObject: true,
|
|
@@ -7184,7 +7184,7 @@ const oneTableBlockWithAddNewAndViewAndEditAndChoicesFields = {
|
|
|
7184
7184
|
type: "void",
|
|
7185
7185
|
"x-component": "Tabs",
|
|
7186
7186
|
"x-component-props": {},
|
|
7187
|
-
"x-initializer": "
|
|
7187
|
+
"x-initializer": "popup:addTab",
|
|
7188
7188
|
properties: {
|
|
7189
7189
|
tab1: {
|
|
7190
7190
|
_isJSONSchemaObject: true,
|
|
@@ -8026,7 +8026,7 @@ const oneTableBlockWithAddNewAndViewAndEditAndMediaFields = {
|
|
|
8026
8026
|
type: "void",
|
|
8027
8027
|
"x-component": "Tabs",
|
|
8028
8028
|
"x-component-props": {},
|
|
8029
|
-
"x-initializer": "
|
|
8029
|
+
"x-initializer": "popup:addTab",
|
|
8030
8030
|
properties: {
|
|
8031
8031
|
tab1: {
|
|
8032
8032
|
_isJSONSchemaObject: true,
|
|
@@ -8126,7 +8126,7 @@ const oneTableBlockWithAddNewAndViewAndEditAndMediaFields = {
|
|
|
8126
8126
|
type: "void",
|
|
8127
8127
|
"x-component": "Tabs",
|
|
8128
8128
|
"x-component-props": {},
|
|
8129
|
-
"x-initializer": "
|
|
8129
|
+
"x-initializer": "popup:addTab",
|
|
8130
8130
|
properties: {
|
|
8131
8131
|
tab1: {
|
|
8132
8132
|
_isJSONSchemaObject: true,
|
|
@@ -8369,7 +8369,7 @@ const oneTableBlockWithAddNewAndViewAndEditAndMediaFields = {
|
|
|
8369
8369
|
type: "void",
|
|
8370
8370
|
"x-component": "Tabs",
|
|
8371
8371
|
"x-component-props": {},
|
|
8372
|
-
"x-initializer": "
|
|
8372
|
+
"x-initializer": "popup:addTab",
|
|
8373
8373
|
properties: {
|
|
8374
8374
|
tab1: {
|
|
8375
8375
|
_isJSONSchemaObject: true,
|
|
@@ -9063,7 +9063,7 @@ const oneTableBlockWithAddNewAndViewAndEditAndDatetimeFields = {
|
|
|
9063
9063
|
type: "void",
|
|
9064
9064
|
"x-component": "Tabs",
|
|
9065
9065
|
"x-component-props": {},
|
|
9066
|
-
"x-initializer": "
|
|
9066
|
+
"x-initializer": "popup:addTab",
|
|
9067
9067
|
properties: {
|
|
9068
9068
|
tab1: {
|
|
9069
9069
|
_isJSONSchemaObject: true,
|
|
@@ -9163,7 +9163,7 @@ const oneTableBlockWithAddNewAndViewAndEditAndDatetimeFields = {
|
|
|
9163
9163
|
type: "void",
|
|
9164
9164
|
"x-component": "Tabs",
|
|
9165
9165
|
"x-component-props": {},
|
|
9166
|
-
"x-initializer": "
|
|
9166
|
+
"x-initializer": "popup:addTab",
|
|
9167
9167
|
properties: {
|
|
9168
9168
|
tab1: {
|
|
9169
9169
|
_isJSONSchemaObject: true,
|
|
@@ -9369,7 +9369,7 @@ const oneTableBlockWithAddNewAndViewAndEditAndDatetimeFields = {
|
|
|
9369
9369
|
type: "void",
|
|
9370
9370
|
"x-component": "Tabs",
|
|
9371
9371
|
"x-component-props": {},
|
|
9372
|
-
"x-initializer": "
|
|
9372
|
+
"x-initializer": "popup:addTab",
|
|
9373
9373
|
properties: {
|
|
9374
9374
|
tab1: {
|
|
9375
9375
|
_isJSONSchemaObject: true,
|
|
@@ -10131,7 +10131,7 @@ const oneTableBlockWithAddNewAndViewAndEditAndAssociationFields = {
|
|
|
10131
10131
|
type: "void",
|
|
10132
10132
|
"x-component": "Tabs",
|
|
10133
10133
|
"x-component-props": {},
|
|
10134
|
-
"x-initializer": "
|
|
10134
|
+
"x-initializer": "popup:addTab",
|
|
10135
10135
|
properties: {
|
|
10136
10136
|
tab1: {
|
|
10137
10137
|
_isJSONSchemaObject: true,
|
|
@@ -10231,7 +10231,7 @@ const oneTableBlockWithAddNewAndViewAndEditAndAssociationFields = {
|
|
|
10231
10231
|
type: "void",
|
|
10232
10232
|
"x-component": "Tabs",
|
|
10233
10233
|
"x-component-props": {},
|
|
10234
|
-
"x-initializer": "
|
|
10234
|
+
"x-initializer": "popup:addTab",
|
|
10235
10235
|
properties: {
|
|
10236
10236
|
tab1: {
|
|
10237
10237
|
_isJSONSchemaObject: true,
|
|
@@ -10542,7 +10542,7 @@ const oneTableBlockWithAddNewAndViewAndEditAndAssociationFields = {
|
|
|
10542
10542
|
type: "void",
|
|
10543
10543
|
"x-component": "Tabs",
|
|
10544
10544
|
"x-component-props": {},
|
|
10545
|
-
"x-initializer": "
|
|
10545
|
+
"x-initializer": "popup:addTab",
|
|
10546
10546
|
properties: {
|
|
10547
10547
|
tab1: {
|
|
10548
10548
|
_isJSONSchemaObject: true,
|
|
@@ -11700,7 +11700,7 @@ const oneTableBlockWithAddNewAndViewAndEditAndAdvancedFields = {
|
|
|
11700
11700
|
type: "void",
|
|
11701
11701
|
"x-component": "Tabs",
|
|
11702
11702
|
"x-component-props": {},
|
|
11703
|
-
"x-initializer": "
|
|
11703
|
+
"x-initializer": "popup:addTab",
|
|
11704
11704
|
properties: {
|
|
11705
11705
|
tab1: {
|
|
11706
11706
|
_isJSONSchemaObject: true,
|
|
@@ -11800,7 +11800,7 @@ const oneTableBlockWithAddNewAndViewAndEditAndAdvancedFields = {
|
|
|
11800
11800
|
type: "void",
|
|
11801
11801
|
"x-component": "Tabs",
|
|
11802
11802
|
"x-component-props": {},
|
|
11803
|
-
"x-initializer": "
|
|
11803
|
+
"x-initializer": "popup:addTab",
|
|
11804
11804
|
properties: {
|
|
11805
11805
|
tab1: {
|
|
11806
11806
|
_isJSONSchemaObject: true,
|
|
@@ -12083,7 +12083,7 @@ const oneTableBlockWithAddNewAndViewAndEditAndAdvancedFields = {
|
|
|
12083
12083
|
type: "void",
|
|
12084
12084
|
"x-component": "Tabs",
|
|
12085
12085
|
"x-component-props": {},
|
|
12086
|
-
"x-initializer": "
|
|
12086
|
+
"x-initializer": "popup:addTab",
|
|
12087
12087
|
properties: {
|
|
12088
12088
|
tab1: {
|
|
12089
12089
|
_isJSONSchemaObject: true,
|
|
@@ -12697,7 +12697,7 @@ const oneTableBlockWithAddNewAndViewAndEditAndSystemInfoFields = {
|
|
|
12697
12697
|
type: "void",
|
|
12698
12698
|
"x-component": "Tabs",
|
|
12699
12699
|
"x-component-props": {},
|
|
12700
|
-
"x-initializer": "
|
|
12700
|
+
"x-initializer": "popup:addTab",
|
|
12701
12701
|
properties: {
|
|
12702
12702
|
tab1: {
|
|
12703
12703
|
_isJSONSchemaObject: true,
|
|
@@ -12787,7 +12787,7 @@ const oneTableBlockWithAddNewAndViewAndEditAndSystemInfoFields = {
|
|
|
12787
12787
|
type: "void",
|
|
12788
12788
|
"x-component": "Tabs",
|
|
12789
12789
|
"x-component-props": {},
|
|
12790
|
-
"x-initializer": "
|
|
12790
|
+
"x-initializer": "popup:addTab",
|
|
12791
12791
|
properties: {
|
|
12792
12792
|
tab1: {
|
|
12793
12793
|
_isJSONSchemaObject: true,
|
|
@@ -13072,7 +13072,7 @@ const oneTableBlockWithAddNewAndViewAndEditAndSystemInfoFields = {
|
|
|
13072
13072
|
type: "void",
|
|
13073
13073
|
"x-component": "Tabs",
|
|
13074
13074
|
"x-component-props": {},
|
|
13075
|
-
"x-initializer": "
|
|
13075
|
+
"x-initializer": "popup:addTab",
|
|
13076
13076
|
properties: {
|
|
13077
13077
|
tab1: {
|
|
13078
13078
|
_isJSONSchemaObject: true,
|
|
@@ -13172,7 +13172,7 @@ const oneTableBlockWithAddNewAndViewAndEditAndSystemInfoFields = {
|
|
|
13172
13172
|
type: "void",
|
|
13173
13173
|
"x-component": "Tabs",
|
|
13174
13174
|
"x-component-props": {},
|
|
13175
|
-
"x-initializer": "
|
|
13175
|
+
"x-initializer": "popup:addTab",
|
|
13176
13176
|
properties: {
|
|
13177
13177
|
tab1: {
|
|
13178
13178
|
_isJSONSchemaObject: true,
|
|
@@ -13336,7 +13336,7 @@ const oneTableBlockWithAddNewAndViewAndEditAndSystemInfoFields = {
|
|
|
13336
13336
|
type: "void",
|
|
13337
13337
|
"x-component": "Tabs",
|
|
13338
13338
|
"x-component-props": {},
|
|
13339
|
-
"x-initializer": "
|
|
13339
|
+
"x-initializer": "popup:addTab",
|
|
13340
13340
|
properties: {
|
|
13341
13341
|
tab1: {
|
|
13342
13342
|
_isJSONSchemaObject: true,
|
|
@@ -13426,7 +13426,7 @@ const oneTableBlockWithAddNewAndViewAndEditAndSystemInfoFields = {
|
|
|
13426
13426
|
type: "void",
|
|
13427
13427
|
"x-component": "Tabs",
|
|
13428
13428
|
"x-component-props": {},
|
|
13429
|
-
"x-initializer": "
|
|
13429
|
+
"x-initializer": "popup:addTab",
|
|
13430
13430
|
properties: {
|
|
13431
13431
|
tab1: {
|
|
13432
13432
|
_isJSONSchemaObject: true,
|
|
@@ -13632,7 +13632,7 @@ const oneTableBlockWithAddNewAndViewAndEditAndSystemInfoFields = {
|
|
|
13632
13632
|
type: "void",
|
|
13633
13633
|
"x-component": "Tabs",
|
|
13634
13634
|
"x-component-props": {},
|
|
13635
|
-
"x-initializer": "
|
|
13635
|
+
"x-initializer": "popup:addTab",
|
|
13636
13636
|
properties: {
|
|
13637
13637
|
tab1: {
|
|
13638
13638
|
_isJSONSchemaObject: true,
|
|
@@ -13809,7 +13809,7 @@ const oneTableBlockWithAddNewAndViewAndEditAndSystemInfoFields = {
|
|
|
13809
13809
|
type: "void",
|
|
13810
13810
|
"x-component": "Tabs",
|
|
13811
13811
|
"x-component-props": {},
|
|
13812
|
-
"x-initializer": "
|
|
13812
|
+
"x-initializer": "popup:addTab",
|
|
13813
13813
|
properties: {
|
|
13814
13814
|
tab1: {
|
|
13815
13815
|
_isJSONSchemaObject: true,
|
|
@@ -13899,7 +13899,7 @@ const oneTableBlockWithAddNewAndViewAndEditAndSystemInfoFields = {
|
|
|
13899
13899
|
type: "void",
|
|
13900
13900
|
"x-component": "Tabs",
|
|
13901
13901
|
"x-component-props": {},
|
|
13902
|
-
"x-initializer": "
|
|
13902
|
+
"x-initializer": "popup:addTab",
|
|
13903
13903
|
properties: {
|
|
13904
13904
|
tab1: {
|
|
13905
13905
|
_isJSONSchemaObject: true,
|
|
@@ -15346,7 +15346,7 @@ const oneTableSubformWithMultiLevelAssociationFields = {
|
|
|
15346
15346
|
type: "void",
|
|
15347
15347
|
"x-component": "Tabs",
|
|
15348
15348
|
"x-component-props": {},
|
|
15349
|
-
"x-initializer": "
|
|
15349
|
+
"x-initializer": "popup:addTab",
|
|
15350
15350
|
properties: {
|
|
15351
15351
|
tab1: {
|
|
15352
15352
|
_isJSONSchemaObject: true,
|
|
@@ -15873,7 +15873,7 @@ const oneTableSubformWithMultiLevelAssociationFields = {
|
|
|
15873
15873
|
type: "void",
|
|
15874
15874
|
"x-component": "Tabs",
|
|
15875
15875
|
"x-component-props": {},
|
|
15876
|
-
"x-initializer": "
|
|
15876
|
+
"x-initializer": "popup:addTab",
|
|
15877
15877
|
properties: {
|
|
15878
15878
|
tab1: {
|
|
15879
15879
|
_isJSONSchemaObject: true,
|
|
@@ -16708,7 +16708,7 @@ const oneTableSubtableWithMultiLevelAssociationFields = {
|
|
|
16708
16708
|
type: "void",
|
|
16709
16709
|
"x-component": "Tabs",
|
|
16710
16710
|
"x-component-props": {},
|
|
16711
|
-
"x-initializer": "
|
|
16711
|
+
"x-initializer": "popup:addTab",
|
|
16712
16712
|
properties: {
|
|
16713
16713
|
tab1: {
|
|
16714
16714
|
_isJSONSchemaObject: true,
|
|
@@ -16808,7 +16808,7 @@ const oneTableSubtableWithMultiLevelAssociationFields = {
|
|
|
16808
16808
|
type: "void",
|
|
16809
16809
|
"x-component": "Tabs",
|
|
16810
16810
|
"x-component-props": {},
|
|
16811
|
-
"x-initializer": "
|
|
16811
|
+
"x-initializer": "popup:addTab",
|
|
16812
16812
|
properties: {
|
|
16813
16813
|
tab1: {
|
|
16814
16814
|
_isJSONSchemaObject: true,
|
|
@@ -17118,7 +17118,7 @@ const oneTableSubtableWithMultiLevelAssociationFields = {
|
|
|
17118
17118
|
type: "void",
|
|
17119
17119
|
"x-component": "Tabs",
|
|
17120
17120
|
"x-component-props": {},
|
|
17121
|
-
"x-initializer": "
|
|
17121
|
+
"x-initializer": "popup:addTab",
|
|
17122
17122
|
properties: {
|
|
17123
17123
|
tab1: {
|
|
17124
17124
|
_isJSONSchemaObject: true,
|
|
@@ -17836,7 +17836,7 @@ const formBlockDefaultValueTemplate = {
|
|
|
17836
17836
|
type: "void",
|
|
17837
17837
|
"x-component": "Tabs",
|
|
17838
17838
|
"x-component-props": {},
|
|
17839
|
-
"x-initializer": "
|
|
17839
|
+
"x-initializer": "popup:addTab",
|
|
17840
17840
|
properties: {
|
|
17841
17841
|
tab1: {
|
|
17842
17842
|
_isJSONSchemaObject: true,
|
|
@@ -17910,7 +17910,7 @@ const formBlockDefaultValueTemplate = {
|
|
|
17910
17910
|
type: "void",
|
|
17911
17911
|
"x-component": "Tabs",
|
|
17912
17912
|
"x-component-props": {},
|
|
17913
|
-
"x-initializer": "
|
|
17913
|
+
"x-initializer": "popup:addTab",
|
|
17914
17914
|
properties: {
|
|
17915
17915
|
tab1: {
|
|
17916
17916
|
_isJSONSchemaObject: true,
|
|
@@ -30,8 +30,10 @@ var import_promise = __toESM(require("mysql2/promise"));
|
|
|
30
30
|
var import_pg = __toESM(require("pg"));
|
|
31
31
|
import_dotenv.default.config({ path: import_path.default.resolve(process.cwd(), ".env.test") });
|
|
32
32
|
const _BaseClient = class _BaseClient {
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
constructor() {
|
|
34
|
+
this._client = null;
|
|
35
|
+
this.createdDBs = /* @__PURE__ */ new Set();
|
|
36
|
+
}
|
|
35
37
|
async createDB(name) {
|
|
36
38
|
if (this.createdDBs.has(name)) {
|
|
37
39
|
return;
|
|
@@ -30,7 +30,9 @@ var import_pg = __toESM(require("pg"));
|
|
|
30
30
|
import_dotenv.default.config({ path: import_path.default.resolve(process.cwd(), ".env.test") });
|
|
31
31
|
const delay = /* @__PURE__ */ __name((ms) => new Promise((resolve) => setTimeout(resolve, ms)), "delay");
|
|
32
32
|
const _DBManager = class _DBManager {
|
|
33
|
-
|
|
33
|
+
constructor() {
|
|
34
|
+
this.acquiredDBs = /* @__PURE__ */ new Map();
|
|
35
|
+
}
|
|
34
36
|
acquire(name, via) {
|
|
35
37
|
console.log("acquire", name, "via", via);
|
|
36
38
|
if (this.acquiredDBs.has(name)) {
|
|
@@ -76,8 +78,8 @@ const getDBNames = /* @__PURE__ */ __name((size, name) => {
|
|
|
76
78
|
const _BasePool = class _BasePool {
|
|
77
79
|
constructor(size) {
|
|
78
80
|
this.size = size;
|
|
81
|
+
this.dbManager = new DBManager();
|
|
79
82
|
}
|
|
80
|
-
dbManager = new DBManager();
|
|
81
83
|
async init() {
|
|
82
84
|
const promises = [];
|
|
83
85
|
for (const name of getDBNames(this.size, this.getConfiguredDatabaseName())) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tachybase/test",
|
|
3
|
-
"version": "0.23.
|
|
3
|
+
"version": "0.23.47",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -41,11 +41,10 @@
|
|
|
41
41
|
"types": "./lib/index.d.ts",
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@faker-js/faker": "8.4.1",
|
|
44
|
-
"@formily/shared": "2.3.2",
|
|
45
44
|
"@playwright/test": "^1.49.1",
|
|
46
|
-
"@testing-library/dom": "^
|
|
45
|
+
"@testing-library/dom": "^10.4.0",
|
|
47
46
|
"@testing-library/jest-dom": "^6.6.3",
|
|
48
|
-
"@testing-library/react": "^
|
|
47
|
+
"@testing-library/react": "^16.2.0",
|
|
49
48
|
"@testing-library/user-event": "^14.5.2",
|
|
50
49
|
"@types/supertest": "^2.0.16",
|
|
51
50
|
"@vitejs/plugin-react": "^4.3.4",
|
|
@@ -63,10 +62,11 @@
|
|
|
63
62
|
"sqlite3": "^5.1.7",
|
|
64
63
|
"supertest": "^6.3.4",
|
|
65
64
|
"vite": "^5.4.11",
|
|
66
|
-
"vitest": "^
|
|
65
|
+
"vitest": "^3.0.5",
|
|
67
66
|
"ws": "^8.18.0",
|
|
68
|
-
"@tachybase/database": "0.23.
|
|
69
|
-
"@tachybase/server": "0.23.
|
|
67
|
+
"@tachybase/database": "0.23.47",
|
|
68
|
+
"@tachybase/server": "0.23.47",
|
|
69
|
+
"@tachybase/schema": "0.23.47"
|
|
70
70
|
},
|
|
71
71
|
"scripts": {
|
|
72
72
|
"build": "tachybase-build --no-dts @tachybase/test"
|
package/vitest.mjs
CHANGED
|
@@ -66,7 +66,7 @@ export const defineConfig = (config = {}) => {
|
|
|
66
66
|
'**/e2e/**',
|
|
67
67
|
'**/__e2e__/**',
|
|
68
68
|
'**/{vitest,commitlint}.config.*',
|
|
69
|
-
'packages/**/{sdk,client}/**/__tests__/**/*.{test,spec}.{ts,tsx}',
|
|
69
|
+
'packages/**/{sdk,client,schema}/**/__tests__/**/*.{test,spec}.{ts,tsx}',
|
|
70
70
|
],
|
|
71
71
|
testTimeout: 300000,
|
|
72
72
|
hookTimeout: 300000,
|
|
@@ -95,7 +95,7 @@ export const defineConfig = (config = {}) => {
|
|
|
95
95
|
environment: 'jsdom',
|
|
96
96
|
css: false,
|
|
97
97
|
alias: tsConfigPathsToAlias(),
|
|
98
|
-
include: ['packages/**/{sdk,client}/**/__tests__/**/*.{test,spec}.{ts,tsx}'],
|
|
98
|
+
include: ['packages/**/{sdk,client,schema}/**/__tests__/**/*.{test,spec}.{ts,tsx}'],
|
|
99
99
|
exclude: [
|
|
100
100
|
'**/node_modules/**',
|
|
101
101
|
'**/dist/**',
|