@nocobase/test 1.6.4 → 1.7.0-alpha.2
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.
|
@@ -56,7 +56,7 @@ interface Resource {
|
|
|
56
56
|
sort: (params?: SortActionParams) => Promise<supertest.Response>;
|
|
57
57
|
[name: string]: (params?: ActionParams) => Promise<supertest.Response>;
|
|
58
58
|
}
|
|
59
|
-
interface ExtendedAgent extends SuperAgentTest {
|
|
59
|
+
export interface ExtendedAgent extends SuperAgentTest {
|
|
60
60
|
login: (user: any, roleName?: string) => Promise<ExtendedAgent>;
|
|
61
61
|
loginUsingId: (userId: number, roleName?: string) => Promise<ExtendedAgent>;
|
|
62
62
|
resource: (name: string, resourceOf?: any) => Resource;
|
package/lib/e2e/e2eUtils.js
CHANGED
|
@@ -916,6 +916,7 @@ async function expectSettingsMenu({
|
|
|
916
916
|
}) {
|
|
917
917
|
await page.waitForTimeout(100);
|
|
918
918
|
await showMenu();
|
|
919
|
+
await page.waitForTimeout(2e3);
|
|
919
920
|
for (const option of supportedOptions) {
|
|
920
921
|
await (0, import_test.expect)(page.getByRole("menuitem", { name: option, exact: option === "Edit" })).toBeVisible();
|
|
921
922
|
}
|
|
@@ -56,7 +56,7 @@ interface Resource {
|
|
|
56
56
|
sort: (params?: SortActionParams) => Promise<supertest.Response>;
|
|
57
57
|
[name: string]: (params?: ActionParams) => Promise<supertest.Response>;
|
|
58
58
|
}
|
|
59
|
-
interface ExtendedAgent extends SuperAgentTest {
|
|
59
|
+
export interface ExtendedAgent extends SuperAgentTest {
|
|
60
60
|
login: (user: any, roleName?: string) => Promise<ExtendedAgent>;
|
|
61
61
|
loginUsingId: (userId: number, roleName?: string) => Promise<ExtendedAgent>;
|
|
62
62
|
resource: (name: string, resourceOf?: any) => Resource;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/test",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0-alpha.2",
|
|
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.7.0-alpha.2",
|
|
55
55
|
"@playwright/test": "^1.45.3",
|
|
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": "01751fa626d5692137e3decdac3c66a742b8ea80"
|
|
80
80
|
}
|