@mablhq/mabl-cli 2.46.4 → 2.46.12
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/api/mablApiClient.js +19 -7
- package/core/entityValidation/stepValidation.js +15 -0
- package/core/execution/ApiTestUtils.js +3 -1
- package/execution/index.js +2 -2
- package/index.d.ts +5 -1
- package/mablApi/index.js +1 -1
- package/mablscript/types/ConditionDescriptor.js +2 -0
- package/package.json +1 -1
- package/upload/index.js +1 -1
- package/util/analytics-events.js +1 -0
package/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import {BrowserContext, Locator, Page, Frame} from 'playwright-core';
|
|
2
|
+
import {TestType} from '@playwright/test';
|
|
2
3
|
|
|
3
4
|
declare module '@mablhq/mabl-cli' {
|
|
4
5
|
export enum TestResultStatus {
|
|
@@ -147,8 +148,10 @@ export declare enum MobilePlatformEnum {
|
|
|
147
148
|
// Playwright external tool types
|
|
148
149
|
|
|
149
150
|
export interface MablToolsetOptions {
|
|
151
|
+
apiKey: string;
|
|
150
152
|
browserContext?: BrowserContext;
|
|
151
153
|
workspaceId?: string;
|
|
154
|
+
test: TestType<any, any>;
|
|
152
155
|
}
|
|
153
156
|
|
|
154
157
|
export interface GenAiAssertionResponse {
|
|
@@ -181,7 +184,7 @@ export interface DatabaseQueryResultSet {
|
|
|
181
184
|
}
|
|
182
185
|
|
|
183
186
|
export interface MablToolset {
|
|
184
|
-
constructor(options
|
|
187
|
+
constructor(options: MablToolsetOptions);
|
|
185
188
|
evaluateGenAiAssertion(
|
|
186
189
|
// TODO this is any because it needs to align with the @playwright/test package's Page and we don't have that as a dependency of the CLI right now
|
|
187
190
|
page: any,
|
|
@@ -205,6 +208,7 @@ export interface MablToolset {
|
|
|
205
208
|
environmentId?: string,
|
|
206
209
|
timeoutMillis?: number,
|
|
207
210
|
): Promise<DatabaseQueryResultSet>;
|
|
211
|
+
openPdfFile(filePath: string, page: Page): Promise<void>;
|
|
208
212
|
}
|
|
209
213
|
|
|
210
214
|
export interface MablFixtures {
|