@elench/testkit 0.1.121 → 0.1.123
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/lib/config-api/index.d.ts +1 -0
- package/lib/lint/index.mjs +1 -0
- package/lib/ui/index.d.ts +31 -6
- package/node_modules/@elench/next-analysis/package.json +1 -1
- package/node_modules/@elench/testkit-bridge/package.json +2 -2
- package/node_modules/@elench/testkit-protocol/package.json +1 -1
- package/node_modules/@elench/ts-analysis/package.json +1 -1
- package/node_modules/es-toolkit/CHANGELOG.md +801 -0
- package/node_modules/es-toolkit/src/compat/_internal/Equals.d.ts +1 -0
- package/node_modules/es-toolkit/src/compat/_internal/IsWritable.d.ts +3 -0
- package/node_modules/es-toolkit/src/compat/_internal/MutableList.d.ts +4 -0
- package/node_modules/es-toolkit/src/compat/_internal/RejectReadonly.d.ts +4 -0
- package/node_modules/esprima/ChangeLog +235 -0
- package/package.json +5 -5
|
@@ -222,6 +222,7 @@ export interface UiAuthConfig {
|
|
|
222
222
|
loginExpect?: number | number[];
|
|
223
223
|
loginPagePath?: string;
|
|
224
224
|
loginPath?: string;
|
|
225
|
+
password?: string;
|
|
225
226
|
passwordSelector?: string;
|
|
226
227
|
profiles?: Record<string, UiProvisionProfileConfig>;
|
|
227
228
|
sessionPath?: string;
|
package/lib/lint/index.mjs
CHANGED
|
@@ -635,6 +635,7 @@ async function collectTrackedFiles(productDir) {
|
|
|
635
635
|
.split("\0")
|
|
636
636
|
.map((entry) => normalizePath(entry))
|
|
637
637
|
.filter(Boolean)
|
|
638
|
+
.filter((entry) => fs.existsSync(path.join(productDir, entry)))
|
|
638
639
|
.sort((left, right) => left.localeCompare(right));
|
|
639
640
|
}
|
|
640
641
|
|
package/lib/ui/index.d.ts
CHANGED
|
@@ -18,6 +18,31 @@ export interface UiSandboxFixture {
|
|
|
18
18
|
page: import("@playwright/test").Page;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
export interface UiProvisionedOrganization {
|
|
22
|
+
id: string;
|
|
23
|
+
name: string;
|
|
24
|
+
role?: string;
|
|
25
|
+
slug?: string;
|
|
26
|
+
[key: string]: unknown;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface UiProvisionedIdentity {
|
|
30
|
+
credentials: { email: string; password: string };
|
|
31
|
+
organizations: UiProvisionedOrganization[];
|
|
32
|
+
profile: string;
|
|
33
|
+
seeded: Record<string, unknown>;
|
|
34
|
+
session: Record<string, unknown>;
|
|
35
|
+
token?: string;
|
|
36
|
+
user?: {
|
|
37
|
+
homeOrganizationId?: string | null;
|
|
38
|
+
id?: string;
|
|
39
|
+
mustChangePassword?: boolean;
|
|
40
|
+
name?: string;
|
|
41
|
+
timeZone?: string | null;
|
|
42
|
+
[key: string]: unknown;
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
|
|
21
46
|
export declare function createUiSandbox(options?: UiSandboxOptions): {
|
|
22
47
|
expect: typeof import("@playwright/test").expect;
|
|
23
48
|
test: import("@playwright/test").TestType<
|
|
@@ -31,7 +56,7 @@ export interface ProvisionedUiSandbox {
|
|
|
31
56
|
id: string;
|
|
32
57
|
backendBaseUrl: string;
|
|
33
58
|
frontendBaseUrl: string;
|
|
34
|
-
identity:
|
|
59
|
+
identity: UiProvisionedIdentity | null;
|
|
35
60
|
owner: {
|
|
36
61
|
email: string;
|
|
37
62
|
id: string;
|
|
@@ -87,12 +112,12 @@ export declare function provisionUiIdentity(
|
|
|
87
112
|
options?: Record<string, unknown>
|
|
88
113
|
): Promise<{
|
|
89
114
|
credentials: { email: string; password: string };
|
|
90
|
-
organizations:
|
|
115
|
+
organizations: UiProvisionedOrganization[];
|
|
91
116
|
profile: string;
|
|
92
117
|
seeded: Record<string, unknown>;
|
|
93
118
|
session: Record<string, unknown>;
|
|
94
119
|
token?: string;
|
|
95
|
-
user?:
|
|
120
|
+
user?: UiProvisionedIdentity["user"];
|
|
96
121
|
}>;
|
|
97
122
|
export declare function loginWithCredentials(
|
|
98
123
|
page: import("@playwright/test").Page,
|
|
@@ -102,14 +127,14 @@ export declare function loginWithCredentials(
|
|
|
102
127
|
): Promise<void>;
|
|
103
128
|
export declare function loginAsProvisioned(
|
|
104
129
|
page: import("@playwright/test").Page,
|
|
105
|
-
identity:
|
|
130
|
+
identity: UiProvisionedIdentity,
|
|
106
131
|
options?: Record<string, unknown>
|
|
107
|
-
): Promise<
|
|
132
|
+
): Promise<UiProvisionedIdentity>;
|
|
108
133
|
export declare function loginAsUiProfile(
|
|
109
134
|
page: import("@playwright/test").Page,
|
|
110
135
|
profileName?: string,
|
|
111
136
|
options?: Record<string, unknown>
|
|
112
|
-
): Promise<
|
|
137
|
+
): Promise<UiProvisionedIdentity>;
|
|
113
138
|
export declare function persistUiSessionStorage(
|
|
114
139
|
page: import("@playwright/test").Page,
|
|
115
140
|
identity: unknown,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elench/testkit-bridge",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.123",
|
|
4
4
|
"description": "Browser bridge helpers for testkit",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@elench/testkit-protocol": "0.1.
|
|
25
|
+
"@elench/testkit-protocol": "0.1.123"
|
|
26
26
|
},
|
|
27
27
|
"private": false
|
|
28
28
|
}
|