@mablhq/mabl-cli 1.56.2 → 1.56.6
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/playwrightBrowserLauncher/playwrightPage.js +2 -2
- package/commands/tests/tests_cmds/import.js +1 -1
- package/core/execution/ApiTestUtils.js +2 -2
- package/execution/index.js +1 -1
- package/execution/index.js.LICENSE.txt +1 -9
- package/mablApi/index.js +1 -1
- package/mablscriptFind/index.js +1 -1
- package/mablscriptFind/index.js.LICENSE.txt +0 -8
- package/package.json +1 -1
- package/proxy/index.js +1 -1
- package/resources/mablFind.js +1 -1
- package/util/analytics.js +10 -0
|
@@ -159,8 +159,8 @@ class PlaywrightPage extends events_1.default {
|
|
|
159
159
|
(0, logUtils_1.logInternal)(`Unable to register event ${event.toString()}. Error: ${error}`);
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
|
-
async screenshot(
|
|
163
|
-
return
|
|
162
|
+
async screenshot(options) {
|
|
163
|
+
return this.page.screenshot(options);
|
|
164
164
|
}
|
|
165
165
|
sendCharacter(key) {
|
|
166
166
|
return this.page.keyboard.insertText(key);
|
|
@@ -227,7 +227,7 @@ function saveTests(workspaceId, name, apiClient, importedTests) {
|
|
|
227
227
|
? name
|
|
228
228
|
: `${name} (${index + 1} of ${importedTests.length})`, flow)))
|
|
229
229
|
.then((journey) => {
|
|
230
|
-
loggingProvider_1.logger.info(`Saved test ${journey.invariant_id} : ${env_1.BASE_APP_URL}/workspaces/${journey.organization_id}/train/
|
|
230
|
+
loggingProvider_1.logger.info(`Saved test ${journey.invariant_id} : ${env_1.BASE_APP_URL}/workspaces/${journey.organization_id}/train/tests/${journey.invariant_id}/current`);
|
|
231
231
|
return journey;
|
|
232
232
|
}));
|
|
233
233
|
return Promise.all(savePromises);
|
|
@@ -463,7 +463,7 @@ function valueToUnquotedString(value) {
|
|
|
463
463
|
exports.valueToUnquotedString = valueToUnquotedString;
|
|
464
464
|
function getResponseContentType(response) {
|
|
465
465
|
var _a, _b;
|
|
466
|
-
const contentType = (_b = (_a = response === null || response === void 0 ? void 0 : response.
|
|
466
|
+
const contentType = (_b = (_a = response === null || response === void 0 ? void 0 : response.headers) === null || _a === void 0 ? void 0 : _a.find((header) => header.key.toLowerCase() === 'content-type')) === null || _b === void 0 ? void 0 : _b.value;
|
|
467
467
|
return contentType === null || contentType === void 0 ? void 0 : contentType.toLowerCase();
|
|
468
468
|
}
|
|
469
469
|
exports.getResponseContentType = getResponseContentType;
|
|
@@ -509,7 +509,7 @@ function getActualValue(assertion, apiStepExecutionResult, variables) {
|
|
|
509
509
|
const { assertTarget, bodyPath, headerName } = assertion;
|
|
510
510
|
switch (assertTarget) {
|
|
511
511
|
case newman_types_1.AssertionTarget.Header:
|
|
512
|
-
return lodash_1.default.find((_a = apiStepExecutionResult.response) === null || _a === void 0 ? void 0 : _a.
|
|
512
|
+
return lodash_1.default.find((_a = apiStepExecutionResult.response) === null || _a === void 0 ? void 0 : _a.headers, (header) => caseInsensitiveEquals(header.key, headerName));
|
|
513
513
|
case newman_types_1.AssertionTarget.JSONBody:
|
|
514
514
|
const contentType = getResponseContentType(apiStepExecutionResult.response);
|
|
515
515
|
const content = readBody((_b = apiStepExecutionResult.response) === null || _b === void 0 ? void 0 : _b.stream, contentType);
|