@checksum-ai/runtime 1.1.12-alpha → 1.1.13

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/index.d.ts CHANGED
@@ -13,11 +13,16 @@ interface ChecksumAIMethod {
13
13
  <T>(title: string, body: () => T | Promise<T>): Promise<T>;
14
14
  }
15
15
 
16
+ export interface IVariablesStore {
17
+ [key: string]: any;
18
+ }
19
+
16
20
  export interface IChecksumPage extends Page {
17
21
  checksumSelector: (id: string) => IChecksumPage;
18
22
  checksumAI: ChecksumAIMethod;
19
23
  resolveAssetsFolder: (assets: string[]) => string[];
20
24
  getPage(index: number): Promise<IChecksumPage>;
25
+ reauthenticate: (role: string) => Promise<void>;
21
26
  }
22
27
 
23
28
  class Wrapper<ExtendedMatchers, T> {
@@ -45,6 +50,7 @@ type Poll_MakeMatchers<ExtendedMatchers, T> = ReturnType<
45
50
 
46
51
  type ChecksumMakeMatchers<MakeMatchers> = MakeMatchers & {
47
52
  checksumAI: (thought: string) => MakeMatchers;
53
+ withChecksumAI: () => Promise<void>;
48
54
  };
49
55
 
50
56
  export interface IChecksumExpect<ExtendedMatchers = {}>
@@ -186,6 +192,7 @@ export function getChecksumConfig(
186
192
 
187
193
  type ChecksumPlaywrightTestArgs = Omit<PlaywrightTestArgs, "page"> & {
188
194
  page: IChecksumPage;
195
+ variablesStore: IVariablesStore;
189
196
  };
190
197
 
191
198
  type ChecksumTestType<TestArgs> = TestType<