@mablhq/mabl-cli 1.12.33 → 1.12.38
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/browserLauncher/browserLauncherFactory.js +6 -2
- package/browserLauncher/playwrightBrowserLauncher/playwrightBrowserLauncher.js +1 -0
- package/browserLauncher/playwrightBrowserLauncher/playwrightHttpResponse.js +3 -0
- package/browserLauncher/puppeteerBrowserLauncher/puppeteerHttpResponse.js +3 -0
- package/commands/tests/testsUtil.js +6 -3
- package/commands/tests/tests_cmds/run-cloud.js +1 -1
- package/commands/tests/tests_cmds/run.js +20 -2
- package/execution/index.js +1 -1
- package/index.d.ts +7 -0
- package/package.json +1 -1
- package/util/actionabilityUtil.js +8 -3
package/index.d.ts
CHANGED
|
@@ -26,6 +26,9 @@ declare module '@mablhq/mabl-cli' {
|
|
|
26
26
|
Playwright = 'playwright',
|
|
27
27
|
Puppeteer = 'puppeteer',
|
|
28
28
|
}
|
|
29
|
+
export interface HttpHeadersType {
|
|
30
|
+
[key: string]: string;
|
|
31
|
+
}
|
|
29
32
|
export interface TestRunConfig {
|
|
30
33
|
authToken?: string;
|
|
31
34
|
basicAuthCredentialsId?: string;
|
|
@@ -33,6 +36,10 @@ declare module '@mablhq/mabl-cli' {
|
|
|
33
36
|
branchChangesOnly?: boolean;
|
|
34
37
|
credentialsId?: string;
|
|
35
38
|
environmentId?: string;
|
|
39
|
+
/**
|
|
40
|
+
* An object containing additional HTTP headers to be sent with every request.
|
|
41
|
+
*/
|
|
42
|
+
extraHttpHeaders?: HttpHeadersType;
|
|
36
43
|
filterHttpRequests: boolean;
|
|
37
44
|
fromPlanId?: string;
|
|
38
45
|
headless?: boolean;
|
package/package.json
CHANGED
|
@@ -35,11 +35,16 @@ async function checkActionabilityAtWithRetries(elementHandle, executionContext,
|
|
|
35
35
|
var _a, _b, _c, _d;
|
|
36
36
|
let actionabilityResult;
|
|
37
37
|
try {
|
|
38
|
-
actionabilityResult = await ExecutorUtils_1.runWithRetries(() => checkActionabilityAt(elementHandle, executionContext), 10, [
|
|
38
|
+
actionabilityResult = await ExecutorUtils_1.runWithRetries(() => checkActionabilityAt(elementHandle, executionContext), 10, [
|
|
39
|
+
'Element not at point',
|
|
40
|
+
'Element not clickable at point',
|
|
41
|
+
NO_CLICKABLE_POINT_ERROR,
|
|
42
|
+
], executionContext);
|
|
39
43
|
}
|
|
40
44
|
catch (error) {
|
|
41
|
-
if (failIfClickablePointWasNotFound &&
|
|
42
|
-
|
|
45
|
+
if (failIfClickablePointWasNotFound &&
|
|
46
|
+
error.message === NO_CLICKABLE_POINT_ERROR) {
|
|
47
|
+
throw new Error(NO_CLICKABLE_POINT_ERROR);
|
|
43
48
|
}
|
|
44
49
|
logUtils_1.logWebUIAndCliOutput(`Found element may not be actionable`, loggingProvider_1.LogLevel.Warn, executionContext, {
|
|
45
50
|
executionPhase: messaging_1.ExecutionPhase.DURING_ACTION,
|