@mablhq/mabl-cli 1.16.11 → 1.16.16
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/commands/tests/testsUtil.js +3 -3
- package/execution/index.js +1 -1
- package/mablApi/index.js +1 -1
- package/mablscriptFind/index.js +1 -1
- package/package.json +1 -1
- package/resources/mablFind.js +1 -1
- package/util/resourceUtil.js +21 -6
|
@@ -199,7 +199,7 @@ function removeTempBrowserPreferencesDirectory(tempDirPath) {
|
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
201
|
async function createBrowser(browserWidth, browserHeight, headless, containerTesting, tempBrowserPreferencesDirectory, options) {
|
|
202
|
-
const { credentials, browserPath, disableIsolation, extraHttpHeaders, ignoreCertificateErrors, emulationConfig, enableExtensions, runnerType, loggerFunc, } = options || {};
|
|
202
|
+
const { credentials, browserPath, disableIsolation, extraHttpHeaders, ignoreCertificateErrors, emulationConfig, enableExtensions, runnerType, loggerFunc, resourcesDirectoryOverride, } = options || {};
|
|
203
203
|
const chromePath = browserPath !== null && browserPath !== void 0 ? browserPath : findChrome();
|
|
204
204
|
if (!chromePath.length) {
|
|
205
205
|
messaging_1.mablEventEmitter.log(chalk.yellow('Could not find a local install of Chrome to use, please ensure you have it installed and try again'));
|
|
@@ -215,8 +215,8 @@ async function createBrowser(browserWidth, browserHeight, headless, containerTes
|
|
|
215
215
|
}
|
|
216
216
|
disableFeaturesFlags.push('site-per-process');
|
|
217
217
|
launchArgs.push(`--disable-features=${disableFeaturesFlags.join(',')}`);
|
|
218
|
-
const fakeMicrophoneMedia = resourceUtil_1.findResource('media/mabl_test_audio.wav');
|
|
219
|
-
const fakeWebcamMedia = resourceUtil_1.findResource('media/mabl_test_pattern.y4m');
|
|
218
|
+
const fakeMicrophoneMedia = resourceUtil_1.findResource('media/mabl_test_audio.wav', resourcesDirectoryOverride);
|
|
219
|
+
const fakeWebcamMedia = resourceUtil_1.findResource('media/mabl_test_pattern.y4m', resourcesDirectoryOverride);
|
|
220
220
|
const defaultDeviceDescriptor = addLaunchArgs(launchArgs, browserWidth, browserHeight, fakeMicrophoneMedia, fakeWebcamMedia, ignoreCertificateErrors, emulationConfig);
|
|
221
221
|
let ignoreDefaultArgs;
|
|
222
222
|
if (enableExtensions) {
|