@checksum-ai/runtime 1.1.10 → 1.1.12-alpha
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/checksumlib.js +104 -3
- package/cli.js +29 -56
- package/index.d.ts +12 -0
- package/index.js +128 -248
- package/package.json +2 -2
- package/repl.js +1 -1
- package/scripts/patch.js +36 -325
- package/scripts/playwright_patches/1.41.2.js +270 -0
- package/scripts/playwright_patches/1.46.0.js +265 -0
- package/test-run-monitor.js +12 -13
- package/.DS_Store +0 -0
package/index.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export interface IChecksumPage extends Page {
|
|
|
17
17
|
checksumSelector: (id: string) => IChecksumPage;
|
|
18
18
|
checksumAI: ChecksumAIMethod;
|
|
19
19
|
resolveAssetsFolder: (assets: string[]) => string[];
|
|
20
|
+
getPage(index: number): Promise<IChecksumPage>;
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
class Wrapper<ExtendedMatchers, T> {
|
|
@@ -203,4 +204,15 @@ export function init(base: ChecksumTestType<PlaywrightTestArgs>): {
|
|
|
203
204
|
defineChecksumTest: (title: string, testId: string) => string;
|
|
204
205
|
expect: IChecksumExpect;
|
|
205
206
|
checksumAI: (description: string, testFunction: Function) => Promise<any>;
|
|
207
|
+
getEnvironment: ({
|
|
208
|
+
name,
|
|
209
|
+
userRole,
|
|
210
|
+
}: {
|
|
211
|
+
name?: string;
|
|
212
|
+
userRole?: string;
|
|
213
|
+
}) => {
|
|
214
|
+
environment: ChecksumConfigEnvironment;
|
|
215
|
+
user: EnvironmentUser;
|
|
216
|
+
login: ReturnType<typeof getLogin>;
|
|
217
|
+
};
|
|
206
218
|
};
|