@checksum-ai/runtime 1.1.48 → 1.1.50-beta
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/README.md +43 -2
- package/checksumlib.js +296 -137
- package/cli.js +76 -67
- package/index.d.ts +14 -25
- package/index.js +80 -79
- package/package.json +1 -1
- package/vtg-build/asset-manifest.json +5 -3
- package/vtg-build/index.html +1 -1
- package/vtg-build/static/js/425.b1a74f40.chunk.js +2 -0
- package/vtg-build/static/js/425.b1a74f40.chunk.js.map +1 -0
- package/vtg-build/static/js/main.1225078e.js +3 -0
- package/vtg-build/static/js/main.1225078e.js.LICENSE.txt +146 -0
- package/vtg-build/static/js/main.1225078e.js.map +1 -0
- package/vtg-build/static/js/main.bb2f02ec.js +3 -0
- package/vtg-build/static/js/main.bb2f02ec.js.LICENSE.txt +146 -0
- package/vtg-build/static/js/main.bb2f02ec.js.map +1 -0
package/index.d.ts
CHANGED
|
@@ -22,6 +22,8 @@ type EnumValues<T> = T[keyof T];
|
|
|
22
22
|
export interface IVariableStore {
|
|
23
23
|
[key: string]: any;
|
|
24
24
|
}
|
|
25
|
+
// backward compatibility
|
|
26
|
+
export type IVariablesStore = IVariableStore;
|
|
25
27
|
|
|
26
28
|
type ModifyLocatorMethodToChecksumLocator<T> = {
|
|
27
29
|
[K in keyof T]: T[K] extends (...args: any[]) => Locator // Check if the property is a function returning Locator
|
|
@@ -219,34 +221,9 @@ export type ChecksumConfig = {
|
|
|
219
221
|
* Checksum API key
|
|
220
222
|
*/
|
|
221
223
|
apiKey: string;
|
|
222
|
-
/**
|
|
223
|
-
* Base URL of the tested app (i.e http://staging.example.com)
|
|
224
|
-
*/
|
|
225
|
-
baseURL: string;
|
|
226
224
|
|
|
227
225
|
environments?: ChecksumConfigEnvironment[];
|
|
228
226
|
|
|
229
|
-
/**
|
|
230
|
-
* The username/email that will be used
|
|
231
|
-
* to login into your testing environment
|
|
232
|
-
*/
|
|
233
|
-
username?: string;
|
|
234
|
-
/**
|
|
235
|
-
* The password that will be used
|
|
236
|
-
* to login into your testing environment
|
|
237
|
-
*/
|
|
238
|
-
password?: string;
|
|
239
|
-
|
|
240
|
-
/**
|
|
241
|
-
* The credentials of the users that will be used to login into your testing environment
|
|
242
|
-
*/
|
|
243
|
-
users?: {
|
|
244
|
-
role: string;
|
|
245
|
-
username?: string;
|
|
246
|
-
password?: string;
|
|
247
|
-
default?: boolean;
|
|
248
|
-
}[];
|
|
249
|
-
|
|
250
227
|
/**
|
|
251
228
|
* Checksum runtime options
|
|
252
229
|
*/
|
|
@@ -268,6 +245,18 @@ export type EnvironmentUser = {
|
|
|
268
245
|
default?: boolean;
|
|
269
246
|
};
|
|
270
247
|
|
|
248
|
+
export type ChecksumLoginFunctionParams<PayloadType = any> = {
|
|
249
|
+
environment: ChecksumConfigEnvironment;
|
|
250
|
+
user: EnvironmentUser;
|
|
251
|
+
config: ChecksumConfig;
|
|
252
|
+
payload?: PayloadType;
|
|
253
|
+
};
|
|
254
|
+
|
|
255
|
+
export type ChecksumLoginFunction<PayloadType = any> = (
|
|
256
|
+
page: IChecksumPage,
|
|
257
|
+
params: ChecksumLoginFunctionParams<PayloadType>
|
|
258
|
+
) => Promise<void>;
|
|
259
|
+
|
|
271
260
|
export function getLogin(): (
|
|
272
261
|
page: Page,
|
|
273
262
|
{ role, environment }?: { role?: string; environment?: string }
|