browserstack-node-sdk 1.70.2 → 1.71.0
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/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/detox/a11ySetup.js +1 -1
- package/src/bin/detox/command.js +1 -1
- package/src/bin/detox/modifyDetoxConf.js +1 -1
- package/src/bin/detox/traEmitter.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -1
- package/src/bin/jasmine/command.js +1 -1
- package/src/bin/jasmine/test.setup.js +1 -1
- package/src/bin/jasmine/testRunMap.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadErrors.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/newman/command.js +1 -1
- package/src/bin/newman/helper.js +1 -1
- package/src/bin/newman/reporter/index.js +1 -1
- package/src/bin/newman/scriptRunner.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/node-generic/client.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/reporterArgs.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/puppeteer/patches.js +1 -1
- package/src/bin/puppeteer/sessionDetails.js +1 -1
- package/src/bin/puppeteer/test.setup.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/testcafe/a11y-runner.js +1 -1
- package/src/bin/testcafe/command.js +1 -1
- package/src/bin/testcafe/reporter/index.js +1 -1
- package/src/bin/testcafe/reporter/tcUtils.js +1 -1
- package/src/bin/testcafe/session-registry.js +1 -1
- package/src/bin/testcafe/stdout-interceptor.js +1 -1
- package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
- package/src/bin/testcafe/w3c-driver.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/puppeteer-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/mochaTestFramework.js +1 -1
- package/src/bin/v2/framework/newmanTestFramework.js +1 -1
- package/src/bin/v2/framework/nodeGenericTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
- package/src/bin/v2/framework/seleniumAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testcafeTestFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
- package/src/bin/v2/modules/testcafeDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/runStateStore.js +1 -1
- package/src/bin/v2/sdkErrorHandler.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/caCertHelper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/driverInitErrorReporter.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/puppeteer-helper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/stackFrameUtils.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';const a15_0x3b3ae=a15_0x3725;function a15_0x2e70(){const _0x2355da=['200596jKoQzt','hkOLj','replace','options','bstack-accesskey','integrations','67266tTFIoX','info','128ghRlln','../../helpers/BrowserStackSetup','winstonLogger','setProxySettings','bstackAccesskey','WEdaA','command','BrowserStack\x20access\x20key\x20missing.','https','115042olIdla','toString','browserstackLocal','join','describe','port','ZSDQl','error','qPwRM','DyOWa','gESJI','string','trim','232554biQOUO','DYotS','map','setupBrowserstackLocal','accessKey','demandOption','hosts','browserStackLocalOptions','missing','help','Connection\x20established\x20successfully.','OUEuR','invalid','WdjhO','connect','443','39977HlXGZz','type','CyJMn','../../helpers/helper','demandCommand','3ItAQDp','split','pIfiZ','bZHpk','qbzAn','epilogue','Hosts\x20not\x20valid','integrations-repeater','FAXey','protocol','exports','bstackAccessKey','localIdentifier','config','hZdiS','1183740WrQvrk','footer','undefined','only','135164HCTMsa'];a15_0x2e70=function(){return _0x2355da;};return a15_0x2e70();}(function(_0xcd7995,_0x5bc518){const _0x36c075=a15_0x3725,_0x1c3857=_0xcd7995();while(!![]){try{const _0x3aca59=-parseInt(_0x36c075(0x195))/0x1+-parseInt(_0x36c075(0x1a6))/0x2+-parseInt(_0x36c075(0x181))/0x3*(-parseInt(_0x36c075(0x194))/0x4)+parseInt(_0x36c075(0x190))/0x5+parseInt(_0x36c075(0x1b3))/0x6+parseInt(_0x36c075(0x17c))/0x7*(parseInt(_0x36c075(0x19d))/0x8)+parseInt(_0x36c075(0x19b))/0x9;if(_0x3aca59===_0x5bc518)break;else _0x1c3857['push'](_0x1c3857['shift']());}catch(_0x719c7){_0x1c3857['push'](_0x1c3857['shift']());}}}(a15_0x2e70,0x24a0f));function a15_0x3725(_0x9999ea,_0x2cd8b3){const _0x2e700f=a15_0x2e70();return a15_0x3725=function(_0x372581,_0x24dd60){_0x372581=_0x372581-0x17a;let _0x487d39=_0x2e700f[_0x372581];return _0x487d39;},a15_0x3725(_0x9999ea,_0x2cd8b3);}const {default:BrowserStackSetup}=require(a15_0x3b3ae(0x19e)),logger=require('../../helpers/logger')[a15_0x3b3ae(0x19f)],{URL}=require('url'),helper=require(a15_0x3b3ae(0x17f)),{HELP_MESSAGES,ERROR_MESSAGES}=require('./constants'),validHosts=function(_0x5bea8f){const _0x4b87c2=a15_0x3b3ae;return _0x5bea8f[_0x4b87c2(0x182)](',')['every'](_0xaa275d=>{const _0x2e6a1f=_0x4b87c2;try{new URL(_0xaa275d[_0x2e6a1f(0x1b2)]());}catch(_0x3e8359){return![];}return!![];});},parseOnPremHosts=function(_0x26b42e){const _0x4607fe=a15_0x3b3ae,_0x24687d={};_0x24687d[_0x4607fe(0x1c0)]=function(_0x4d7ca8,_0x124637){return _0x4d7ca8===_0x124637;},_0x24687d[_0x4607fe(0x184)]='https:',_0x24687d[_0x4607fe(0x18f)]=_0x4607fe(0x17b),_0x24687d[_0x4607fe(0x1ac)]=function(_0x4e4fa9,_0x1424a8){return _0x4e4fa9===_0x1424a8;},_0x24687d[_0x4607fe(0x1af)]=_0x4607fe(0x1a5);const _0x1110a4=_0x24687d;return _0x26b42e[_0x4607fe(0x182)](',')[_0x4607fe(0x1b5)](_0x1fa981=>{const _0x4106d7=_0x4607fe,_0x303103=new URL(_0x1fa981[_0x4106d7(0x1b2)]()),_0x531c3f=_0x303103['hostname'],_0x330d58=_0x303103[_0x4106d7(0x1ab)]||(_0x1110a4[_0x4106d7(0x1c0)](_0x303103['protocol'],_0x1110a4[_0x4106d7(0x184)])?_0x1110a4['hZdiS']:'80'),_0x133300=_0x303103[_0x4106d7(0x18a)][_0x4106d7(0x197)](':',''),_0x27712d=_0x1110a4[_0x4106d7(0x1ac)](_0x133300,_0x1110a4[_0x4106d7(0x1af)])?0x1:0x0;return _0x531c3f+','+_0x330d58+','+_0x27712d;});},connectCommandBuilder=function(_0x590b37){const _0x44f7ba=a15_0x3b3ae,_0x36529e={};_0x36529e['qPwRM']=_0x44f7ba(0x1b1);const _0x2adfd7=_0x36529e,_0x106ac4={};_0x106ac4['describe']=HELP_MESSAGES['options'][_0x44f7ba(0x18c)],_0x106ac4[_0x44f7ba(0x17d)]=_0x2adfd7[_0x44f7ba(0x1ae)];const _0x11dc80={};_0x11dc80[_0x44f7ba(0x1aa)]=HELP_MESSAGES[_0x44f7ba(0x198)][_0x44f7ba(0x1b9)],_0x11dc80[_0x44f7ba(0x17d)]=_0x2adfd7['qPwRM'],_0x11dc80[_0x44f7ba(0x1b8)]=!![];const _0x1edfd9={};return _0x1edfd9[_0x44f7ba(0x199)]=_0x106ac4,_0x1edfd9[_0x44f7ba(0x1b9)]=_0x11dc80,_0x590b37[_0x44f7ba(0x198)](_0x1edfd9);},connectCommandHandler=async function(_0x4d8d76){const _0x421dd=a15_0x3b3ae,_0x4da118={'Gwoiu':_0x421dd(0x19a),'DYotS':function(_0x979c42,_0x2f74a2){return _0x979c42===_0x2f74a2;},'WEdaA':_0x421dd(0x192),'FAXey':_0x421dd(0x1a4),'CyJMn':'Integration\x20hosts\x20missing.','OUEuR':function(_0x2b4a9e,_0x5120e0){return _0x2b4a9e(_0x5120e0);},'zJlvY':_0x421dd(0x187),'LwDVD':_0x421dd(0x188),'gESJI':_0x421dd(0x1bd),'pIfiZ':'Failed\x20to\x20establish\x20connection.'};try{const _0x359b16=new BrowserStackSetup(_0x4d8d76,_0x4da118['Gwoiu']);_0x4d8d76[_0x421dd(0x1a1)]&&(_0x359b16[_0x421dd(0x18e)][_0x421dd(0x1b7)]=_0x4d8d76[_0x421dd(0x1a1)]);if(_0x4da118[_0x421dd(0x1b4)](typeof _0x359b16['config']['accessKey'],_0x4da118[_0x421dd(0x1a2)])){logger['error'](_0x4da118[_0x421dd(0x189)]);throw new Error(ERROR_MESSAGES[_0x421dd(0x18c)][_0x421dd(0x1bb)]);}const _0x3b3154=_0x4d8d76[_0x421dd(0x1b9)];if(_0x4da118[_0x421dd(0x1b4)](typeof _0x3b3154,_0x4da118['WEdaA'])){logger[_0x421dd(0x1ad)](_0x4da118[_0x421dd(0x17e)]);throw new Error(ERROR_MESSAGES['hosts'][_0x421dd(0x1bb)]);}if(!_0x4da118[_0x421dd(0x1be)](validHosts,_0x3b3154)){logger[_0x421dd(0x1ad)](_0x4da118['zJlvY']);throw new Error(ERROR_MESSAGES[_0x421dd(0x1b9)][_0x421dd(0x1bf)]);}const _0x453650=_0x4da118[_0x421dd(0x1be)](parseOnPremHosts,_0x3b3154);_0x359b16[_0x421dd(0x18e)][_0x421dd(0x1a8)]=!![],_0x359b16[_0x421dd(0x18e)][_0x421dd(0x1ba)][_0x421dd(0x18d)]=_0x4da118['LwDVD'],_0x359b16[_0x421dd(0x18e)][_0x421dd(0x1ba)][_0x421dd(0x193)]=_0x453650[_0x421dd(0x1a9)](','),helper[_0x421dd(0x1a0)](_0x359b16[_0x421dd(0x18e)]),await _0x359b16[_0x421dd(0x1b6)](),logger[_0x421dd(0x19c)](_0x4da118[_0x421dd(0x1b0)]);}catch(_0x5d6d35){logger['error'](_0x4da118[_0x421dd(0x183)]);throw new Error(_0x5d6d35[_0x421dd(0x1a7)]());}};function run(_0x2b5219){const _0xda5e1f=a15_0x3b3ae,_0x3f27f4={};_0x3f27f4[_0xda5e1f(0x185)]=_0xda5e1f(0x17a),_0x3f27f4[_0xda5e1f(0x196)]='help';const _0x1ef864=_0x3f27f4;_0x2b5219['usage'](HELP_MESSAGES[_0xda5e1f(0x1a3)]['root'])[_0xda5e1f(0x1a3)](_0x1ef864['qbzAn'],HELP_MESSAGES['command'][_0xda5e1f(0x17a)],connectCommandBuilder,connectCommandHandler)[_0xda5e1f(0x180)]()[_0xda5e1f(0x1bc)](_0x1ef864[_0xda5e1f(0x196)])[_0xda5e1f(0x186)](HELP_MESSAGES[_0xda5e1f(0x1a3)][_0xda5e1f(0x191)]);}module[a15_0x3b3ae(0x18b)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a16_0x1212dd=a16_0x23e6;(function(_0x2cd246,_0x38158c){var _0x456a02=a16_0x23e6,_0x1c0ffb=_0x2cd246();while(!![]){try{var _0x2a9154=-parseInt(_0x456a02(0xbd))/0x1*(-parseInt(_0x456a02(0xb7))/0x2)+parseInt(_0x456a02(0xb5))/0x3+parseInt(_0x456a02(0xb3))/0x4*(parseInt(_0x456a02(0xa9))/0x5)+parseInt(_0x456a02(0xaf))/0x6+parseInt(_0x456a02(0xbb))/0x7+-parseInt(_0x456a02(0xaa))/0x8+parseInt(_0x456a02(0xb4))/0x9*(-parseInt(_0x456a02(0xbe))/0xa);if(_0x2a9154===_0x38158c)break;else _0x1c0ffb['push'](_0x1c0ffb['shift']());}catch(_0x37b7b6){_0x1c0ffb['push'](_0x1c0ffb['shift']());}}}(a16_0x297b,0x539f9));var a16_0x45cf2e={};a16_0x45cf2e[a16_0x1212dd(0xba)]='Specify\x20your\x20BrowserStack\x20access\x20key\x20for\x20authentication\x20with\x20our\x20services.',a16_0x45cf2e[a16_0x1212dd(0xac)]=a16_0x1212dd(0xae);function a16_0x297b(){var _0x55bf35=['2512722EQIotv','root','HELP_MESSAGES','command','4ZLbDoE','9lSAyLJ','1069875KYxWNl','BrowserStack\x20access\x20key\x20missing.\x20Specify\x20your\x20BrowserStack\x20access\x20key\x20for\x20authentication\x20with\x20our\x20services.','2IxAQAM','Integrate\x20BrowserStack\x20with\x20your\x20favorite\x20third-party\x20tools\x20for\x20faster\x20and\x20efficient\x20testing.','Integration\x20hosts\x20are\x20not\x20in\x20the\x20right\x20format.\x20Specify\x20a\x20comma\x20separated\x20list\x20of\x20hosts\x20(eg:\x20http://your-jira.yourdomain.com:8080,..)\x20for\x20the\x20integration.','bstackAccessKey','4211851bLghLZ','Connect\x20new\x20integration\x20from\x20a\x20list\x20of\x20supported\x20tools.','306388PYBjjw','13755270AUijwW','footer','invalid','3184460WsnVHZ','4818696MUNPjY','options','hosts','missing','This\x20option\x20allows\x20you\x20to\x20provide\x20additional\x20configuration\x20specific\x20to\x20your\x20environment.\x20Specify\x20a\x20comma\x20separated\x20list\x20of\x20hosts\x20(eg:\x20http://your-jira.yourdomain.com:8080,..)\x20for\x20the\x20integration.'];a16_0x297b=function(){return _0x55bf35;};return a16_0x297b();}var a16_0x2881eb={};a16_0x2881eb[a16_0x1212dd(0xb0)]=a16_0x1212dd(0xb8),a16_0x2881eb['connect']=a16_0x1212dd(0xbc),a16_0x2881eb[a16_0x1212dd(0xbf)]='Use\x20\x22browserstack-cli\x20integrations\x20<command_group>\x20-h/--help\x22\x20for\x20additional\x20help\x20and\x20details\x20about\x20BrowserStack\x20integrations.';var a16_0x53388f={};function a16_0x23e6(_0x1c5d5b,_0x5494ec){var _0x297bed=a16_0x297b();return a16_0x23e6=function(_0x23e6a8,_0x3662f7){_0x23e6a8=_0x23e6a8-0xa8;var _0x304830=_0x297bed[_0x23e6a8];return _0x304830;},a16_0x23e6(_0x1c5d5b,_0x5494ec);}a16_0x53388f[a16_0x1212dd(0xab)]=a16_0x45cf2e,a16_0x53388f[a16_0x1212dd(0xb2)]=a16_0x2881eb,exports[a16_0x1212dd(0xb1)]=a16_0x53388f;var a16_0x5ef1a6={};a16_0x5ef1a6[a16_0x1212dd(0xad)]=a16_0x1212dd(0xb6);var a16_0x2d062e={};a16_0x2d062e[a16_0x1212dd(0xad)]='Integration\x20hosts\x20missing.\x20Specify\x20a\x20comma\x20separated\x20list\x20of\x20hosts\x20(eg:\x20http://your-jira.yourdomain.com:8080,..)\x20for\x20the\x20integration.',a16_0x2d062e[a16_0x1212dd(0xa8)]=a16_0x1212dd(0xb9);var a16_0x1f9fd5={};a16_0x1f9fd5[a16_0x1212dd(0xba)]=a16_0x5ef1a6,a16_0x1f9fd5[a16_0x1212dd(0xac)]=a16_0x2d062e,exports['ERROR_MESSAGES']=a16_0x1f9fd5;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a17_0x14c970=a17_0x54ed;function a17_0x54ed(_0x3c71ce,_0x5172cd){const _0x1ca658=a17_0x1ca6();return a17_0x54ed=function(_0x54ed44,_0x532e70){_0x54ed44=_0x54ed44-0xbc;let _0x443244=_0x1ca658[_0x54ed44];return _0x443244;},a17_0x54ed(_0x3c71ce,_0x5172cd);}(function(_0x397248,_0x766040){const _0x25cb2f=a17_0x54ed,_0x28834d=_0x397248();while(!![]){try{const _0x58d8d9=-parseInt(_0x25cb2f(0xe7))/0x1*(-parseInt(_0x25cb2f(0x136))/0x2)+parseInt(_0x25cb2f(0x10c))/0x3+parseInt(_0x25cb2f(0x113))/0x4+parseInt(_0x25cb2f(0x141))/0x5*(-parseInt(_0x25cb2f(0xbe))/0x6)+-parseInt(_0x25cb2f(0x111))/0x7+parseInt(_0x25cb2f(0xc8))/0x8*(-parseInt(_0x25cb2f(0x131))/0x9)+-parseInt(_0x25cb2f(0x117))/0xa;if(_0x58d8d9===_0x766040)break;else _0x28834d['push'](_0x28834d['shift']());}catch(_0x513501){_0x28834d['push'](_0x28834d['shift']());}}}(a17_0x1ca6,0x8f218));const path=require(a17_0x14c970(0x11d)),fs=require('fs'),{v4:uuidv4}=require('uuid'),testhubUtils=require('../../../helpers/testhub/utils'),{FRAMEWORKS}=require('../../../helpers/test-observability/constants'),SessionHandler=require('../../../helpers/test-observability/sessionHandler'),{isTestObservabilitySession,PathHelper,debug,failureData}=require('../../../helpers/test-observability/utils'),testRunMap=require(a17_0x14c970(0xd4)),_specStartTimes=new Map(),JASMINE_FRAMEWORK_LABEL=a17_0x14c970(0x102),a17_0x1c4a67={};a17_0x1c4a67[a17_0x14c970(0x127)]='passed',a17_0x1c4a67['failed']=a17_0x14c970(0x13f),a17_0x1c4a67['pending']=a17_0x14c970(0xfb),a17_0x1c4a67[a17_0x14c970(0xce)]='skipped';const STATUS_MAP=a17_0x1c4a67;function a17_0x1ca6(){const _0x5212c2=['add','icPCE','CgxHq','zTlyG','mPPEo','has','trim','.git','IZRcw','set','specStarted','HWVUW','parentSuiteId','CNjrv','isArray','pending','CCdgb','appendTesthubParams','JASMINE','jasmineStarted','toISOString','Exception\x20in\x20jasmine\x20specDone\x20for\x20','Jasmine','relative','GHKfL','Exception\x20deriving\x20jasmine\x20scopes\x20for\x20','LlOXN','tayOr','length','_fileNameByFullName','code','join','3120999RQFjWB','shouldProcessEventForTesthub','\x20:\x20','GsGWW','eDbOT','101458RggUTf','filename','1047116rPxwFa','JjPHg','AssertionError','OpmQS','4668740VEahgZ','stack','_collapseFailedExpectations','status','backtrace','endsWith','path','fRoMe','RNiXm','SlcJd','monnz','setCurrentTestData','oOvOQ','mIRll','feVVa','actual','passed','khjGb','specDone','_suitesById','gcDDP','TestRunSkipped','_resolveFilePath','unWhD','duration','QxTrQ','18zwIJvK','QKlab','fullName','JXpzw','wCwUa','26sHJYri','remove','Vzjmg','xtPtm','JQkFw','_sendSpecEvent','suiteDone','UURfI','gfgJD','failed','TestRunFinished','135635MsRVqj','number','SyihN','66xvCobr','ZaisR','finished_at','exports','_scopes','expanded','vOKJQ','lang','HaJBX','LQQlg','1035752oIiGFX','KicXO','split','zgplk','PwUcU','slice','excluded','dirname','TestRunStarted','failure','_findGitConfig','err','../testRunMap','javascript','aPyQd','push','skipped','match','fileNameByFullName','rmZlw','jasmineDone','ZfwJY','message','expected','vpDND','_paths','lGzUy','prefixTestPath','get','matcherName','description','24835rNmlta','started_at','uploadEventData','Exception\x20in\x20populating\x20jasmine\x20test\x20data\x20for\x20event\x20','failedExpectations'];a17_0x1ca6=function(){return _0x5212c2;};return a17_0x1ca6();}class BrowserStackJasmineReporter{constructor(_0x4ce9fe={}){const _0x551746=a17_0x14c970,_0x3cbc9c={'IZRcw':function(_0x3eb7b0){return _0x3eb7b0();}};this['testObservability']=_0x3cbc9c[_0x551746(0xf4)](isTestObservabilitySession),this[_0x551746(0xe1)]=new PathHelper({'cwd':process['cwd']()},undefined),this[_0x551746(0x109)]=_0x4ce9fe&&_0x4ce9fe[_0x551746(0xda)]||{},this['_suitesById']=new Map();}[a17_0x14c970(0xff)](){}['suiteStarted'](_0x338dce){const _0x2e12f1=a17_0x14c970,_0x4d2f19={'oOvOQ':function(_0x5115a0,_0x3dc60f){return _0x5115a0!==_0x3dc60f;},'CExWU':function(_0x33cb34,_0x9bfb94){return _0x33cb34!==_0x9bfb94;},'gRnkF':function(_0x59921a,_0x134056){return _0x59921a(_0x134056);}};try{_0x338dce&&_0x4d2f19[_0x2e12f1(0x123)](_0x338dce['id'],undefined)&&_0x4d2f19['CExWU'](_0x338dce['id'],null)&&this[_0x2e12f1(0x12a)][_0x2e12f1(0xf5)](_0x338dce['id'],{'description':_0x338dce['description'],'parentSuiteId':_0x338dce['parentSuiteId']});}catch(_0x6b566c){_0x4d2f19['gRnkF'](debug,'Exception\x20in\x20jasmine\x20suiteStarted\x20for\x20'+(_0x338dce&&_0x338dce[_0x2e12f1(0x133)])+_0x2e12f1(0x10e)+_0x6b566c);}}[a17_0x14c970(0xf6)](_0x231e5a){const _0x3f306a=a17_0x14c970,_0x535215={'CNjrv':function(_0x1d8d96,_0xd9ae8e){return _0x1d8d96!==_0xd9ae8e;},'mPPEo':function(_0x1c41a6){return _0x1c41a6();},'CCdgb':_0x3f306a(0xd0),'YkFXa':function(_0x1f2ae4,_0x3b7460){return _0x1f2ae4(_0x3b7460);}};try{if(_0x535215[_0x3f306a(0xf9)](testhubUtils[_0x3f306a(0x10d)](),!![]))return;const _0x1659c0=_0x535215[_0x3f306a(0xf0)](uuidv4);testRunMap['set'](_0x231e5a['id'],_0x1659c0),this[_0x3f306a(0x13b)](_0x231e5a,_0x1659c0,_0x535215[_0x3f306a(0xfc)]);}catch(_0x368243){_0x535215['YkFXa'](debug,'Exception\x20in\x20jasmine\x20specStarted\x20for\x20'+(_0x231e5a&&_0x231e5a[_0x3f306a(0x133)])+_0x3f306a(0x10e)+_0x368243);}}[a17_0x14c970(0x129)](_0x3b9ae8){const _0x464b2d=a17_0x14c970,_0x2ea428={'LlOXN':function(_0xeb491c,_0x306942){return _0xeb491c!==_0x306942;},'GsGWW':function(_0x59bf2b){return _0x59bf2b();},'EGsZF':function(_0x5e0166,_0x3ff61f){return _0x5e0166===_0x3ff61f;},'QxTrQ':'excluded','OpmQS':'TestRunSkipped','CgxHq':_0x464b2d(0x140),'GHKfL':function(_0xb882b7,_0x1f669b){return _0xb882b7(_0x1f669b);}};try{if(_0x2ea428[_0x464b2d(0x106)](testhubUtils['shouldProcessEventForTesthub'](),!![]))return;const _0x350e80=testRunMap[_0x464b2d(0xe4)](_0x3b9ae8['id'])||_0x2ea428[_0x464b2d(0x10f)](uuidv4),_0x362e3a=_0x2ea428['EGsZF'](_0x3b9ae8[_0x464b2d(0x11a)],_0x2ea428[_0x464b2d(0x130)])?_0x2ea428[_0x464b2d(0x116)]:_0x2ea428[_0x464b2d(0xee)];this['_sendSpecEvent'](_0x3b9ae8,_0x350e80,_0x362e3a);}catch(_0x422752){_0x2ea428[_0x464b2d(0x104)](debug,_0x464b2d(0x101)+(_0x3b9ae8&&_0x3b9ae8[_0x464b2d(0x133)])+_0x464b2d(0x10e)+_0x422752);}finally{_0x3b9ae8&&(testRunMap[_0x464b2d(0x137)](_0x3b9ae8['id']),_specStartTimes['delete'](_0x3b9ae8['id']));}}[a17_0x14c970(0x13c)](){}[a17_0x14c970(0xdc)](){}[a17_0x14c970(0x13b)](_0x1769d1,_0x3c246a,_0x33e6d2){const _0x1b6912=a17_0x14c970,_0x46ee6e={'aPyQd':function(_0x29d988,_0x31c0f5){return _0x29d988===_0x31c0f5;},'HaJBX':_0x1b6912(0x140),'ckMgh':function(_0x1cf346,_0x2ac1f4){return _0x1cf346===_0x2ac1f4;},'wCwUa':_0x1b6912(0x12c),'JjPHg':'File\x20path\x20could\x20not\x20be\x20found','RNiXm':function(_0x1a7445,_0x13ce47,_0x5b4996){return _0x1a7445(_0x13ce47,_0x5b4996);},'gfgJD':_0x1b6912(0xd3),'PwUcU':'TestRunStarted','ZfwJY':function(_0x6032a3,_0x4808ae){return _0x6032a3!==_0x4808ae;},'HWVUW':function(_0x462ad9,_0x2526d9){return _0x462ad9!==_0x2526d9;},'ZaisR':function(_0x3ec0fe,_0x569c57){return _0x3ec0fe===_0x569c57;},'fqOkR':_0x1b6912(0xd5),'eaGdn':function(_0x3497ee,_0x3c2010){return _0x3497ee&&_0x3c2010;},'rmZlw':_0x1b6912(0xd8),'QKlab':'passed','UURfI':function(_0x45b959,_0x44c785){return _0x45b959===_0x44c785;},'JQkFw':_0x1b6912(0xbc),'unWhD':_0x1b6912(0x115),'TxRBJ':'UnhandledError','eDbOT':function(_0x39c853,_0x5a9208){return _0x39c853===_0x5a9208;},'feVVa':_0x1b6912(0xe8),'zTlyG':_0x1b6912(0xc0),'fRoMe':_0x1b6912(0xd1),'khjGb':'failure_backtrace','vpDND':_0x1b6912(0x11b),'NGnhb':'failure_reason_expanded','icPCE':_0x1b6912(0xc3),'VSuQo':function(_0x226bbc,_0x399757){return _0x226bbc===_0x399757;},'vOKJQ':function(_0x20d3b2,_0xb49f7){return _0x20d3b2(_0xb49f7);}};try{const _0x88efc8=_0x46ee6e[_0x1b6912(0xd6)](_0x33e6d2,_0x46ee6e['HaJBX'])||_0x46ee6e['ckMgh'](_0x33e6d2,_0x46ee6e['wCwUa']),_0x37b687=this[_0x1b6912(0x12d)](_0x1769d1),_0x59d36a=_0x37b687?this[_0x1b6912(0xe1)][_0x1b6912(0xe3)](_0x37b687):_0x46ee6e[_0x1b6912(0x114)],_0x26fa42=_0x37b687?this[_0x1b6912(0xd2)](path[_0x1b6912(0xcf)](_0x37b687)):null,_0xc9bf6f=this[_0x1b6912(0x119)](_0x1769d1[_0x1b6912(0xeb)]),_0x2ca5ef=_0xc9bf6f?_0xc9bf6f['message']:undefined,_0x3e7a69=_0xc9bf6f?_0x46ee6e[_0x1b6912(0x11f)](failureData,_0xc9bf6f,_0x46ee6e[_0x1b6912(0x13e)]):[],_0x3cdfd8=new Date()[_0x1b6912(0x100)](),_0x29c372=this[_0x1b6912(0xc2)](_0x1769d1);_0x46ee6e[_0x1b6912(0xd6)](_0x33e6d2,_0x46ee6e[_0x1b6912(0xcc)])&&_0x1769d1&&_0x46ee6e[_0x1b6912(0xdd)](_0x1769d1['id'],undefined)&&_0x46ee6e[_0x1b6912(0xf7)](_0x1769d1['id'],null)&&_specStartTimes[_0x1b6912(0xf5)](_0x1769d1['id'],_0x3cdfd8);const _0x13b5a0=_0x46ee6e[_0x1b6912(0xbf)](_0x33e6d2,_0x46ee6e['PwUcU'])?_0x3cdfd8:_0x1769d1&&_specStartTimes[_0x1b6912(0xe4)](_0x1769d1['id'])||null,_0x3fad2d={};_0x3fad2d[_0x1b6912(0xc5)]=_0x46ee6e['fqOkR'],_0x3fad2d[_0x1b6912(0x10a)]=null;const _0xd73553={'framework':JASMINE_FRAMEWORK_LABEL,'uuid':_0x3c246a,'name':_0x1769d1[_0x1b6912(0xe6)],'body':_0x3fad2d,'scope':_0x29c372['join']('\x20'),'scopes':_0x29c372,'identifier':_0x1769d1[_0x1b6912(0x133)],'file_name':_0x59d36a,'vc_filepath':_0x46ee6e['eaGdn'](_0x26fa42,_0x37b687)?path[_0x1b6912(0x103)](_0x26fa42,_0x37b687):null,'location':_0x59d36a,'result':_0x46ee6e['ZaisR'](_0x33e6d2,_0x46ee6e[_0x1b6912(0x135)])?_0x46ee6e[_0x1b6912(0xdb)]:STATUS_MAP[_0x1769d1[_0x1b6912(0x11a)]]||_0x46ee6e[_0x1b6912(0x132)],'failure_reason':_0x2ca5ef,'duration_in_ms':_0x46ee6e[_0x1b6912(0x13d)](typeof _0x1769d1[_0x1b6912(0x12f)],_0x46ee6e[_0x1b6912(0x13a)])?_0x1769d1[_0x1b6912(0x12f)]:null,'started_at':_0x13b5a0,'finished_at':_0x88efc8?_0x3cdfd8:null,'failure':_0x3e7a69,'failure_type':!_0x2ca5ef?null:_0x2ca5ef[_0x1b6912(0xd9)](/AssertionError/)?_0x46ee6e[_0x1b6912(0x12e)]:_0x46ee6e['TxRBJ'],'retry_of':null};_0x46ee6e[_0x1b6912(0x110)](_0x33e6d2,_0x46ee6e[_0x1b6912(0x135)])&&!_0xd73553[_0x46ee6e[_0x1b6912(0x125)]]&&(_0xd73553[_0x46ee6e[_0x1b6912(0x125)]]=_0xd73553[_0x46ee6e[_0x1b6912(0xef)]]);const _0x49299f=_0xd73553[_0x46ee6e[_0x1b6912(0x11e)]][0x0];_0x49299f&&(_0xd73553[_0x46ee6e[_0x1b6912(0x128)]]=_0x49299f[_0x46ee6e[_0x1b6912(0xe0)]],_0xd73553[_0x46ee6e['NGnhb']]=_0x49299f[_0x46ee6e[_0x1b6912(0xed)]]);testhubUtils[_0x1b6912(0xfd)](_0xd73553,_0x33e6d2,_0x1769d1,FRAMEWORKS[_0x1b6912(0xfe)]);const _0x31cbfb={'event_type':_0x46ee6e['VSuQo'](_0x33e6d2,_0x46ee6e[_0x1b6912(0x135)])?_0x46ee6e[_0x1b6912(0xc6)]:_0x33e6d2,'test_run':_0xd73553};return testhubUtils[_0x1b6912(0x122)](FRAMEWORKS[_0x1b6912(0xfe)],_0x31cbfb),SessionHandler[_0x1b6912(0xe9)](_0x31cbfb);}catch(_0x3894f4){_0x46ee6e[_0x1b6912(0xc4)](debug,_0x1b6912(0xea)+_0x33e6d2+_0x1b6912(0x10e)+_0x3894f4);}}[a17_0x14c970(0xc2)](_0x20386){const _0x25934e=a17_0x14c970,_0x4aa844={'SyihN':function(_0x271c61,_0x361f94){return _0x271c61!==_0x361f94;},'xtPtm':function(_0x3a13c7,_0x1f073d){return _0x3a13c7>_0x1f073d;},'gcDDP':function(_0x33c88f,_0x5f0145){return _0x33c88f(_0x5f0145);},'dyQSz':function(_0x5921a0,_0x29a65f){return _0x5921a0-_0x29a65f;}};try{const _0x4db489=[];let _0xdc5e07=_0x20386&&_0x20386['parentSuiteId'];const _0x1e214c=new Set();while(_0x4aa844[_0x25934e(0xbd)](_0xdc5e07,undefined)&&_0x4aa844[_0x25934e(0xbd)](_0xdc5e07,null)&&this['_suitesById']['has'](_0xdc5e07)&&!_0x1e214c[_0x25934e(0xf1)](_0xdc5e07)){_0x1e214c[_0x25934e(0xec)](_0xdc5e07);const _0x2a2592=this[_0x25934e(0x12a)][_0x25934e(0xe4)](_0xdc5e07);_0x2a2592&&_0x2a2592[_0x25934e(0xe6)]&&_0x4db489[_0x25934e(0xd7)](_0x2a2592[_0x25934e(0xe6)]),_0xdc5e07=_0x2a2592?_0x2a2592[_0x25934e(0xf8)]:null;}if(_0x4aa844[_0x25934e(0x139)](_0x4db489[_0x25934e(0x108)],0x0))return _0x4db489['reverse']();}catch(_0x258bd7){_0x4aa844[_0x25934e(0x12b)](debug,_0x25934e(0x105)+(_0x20386&&_0x20386[_0x25934e(0x133)])+_0x25934e(0x10e)+_0x258bd7);}const _0x119c2d=_0x20386&&_0x20386[_0x25934e(0x133)]||'',_0x15c947=_0x20386&&_0x20386[_0x25934e(0xe6)]||'';let _0x1b1401=_0x119c2d;return _0x15c947&&_0x119c2d[_0x25934e(0x11c)](_0x15c947)&&(_0x1b1401=_0x119c2d[_0x25934e(0xcd)](0x0,_0x4aa844['dyQSz'](_0x119c2d[_0x25934e(0x108)],_0x15c947[_0x25934e(0x108)]))[_0x25934e(0xf2)]()),_0x1b1401?_0x1b1401[_0x25934e(0xca)](/\s+/):[];}[a17_0x14c970(0x12d)](_0x54cbfd){const _0x88dd2a=a17_0x14c970,_0x37d2c0={};_0x37d2c0['tayOr']=function(_0x5cdfc9,_0x3a4479){return _0x5cdfc9===_0x3a4479;},_0x37d2c0[_0x88dd2a(0xe2)]=function(_0x19e3ef,_0x311fad){return _0x19e3ef+_0x311fad;},_0x37d2c0['Vzjmg']=function(_0x5455dc,_0x53ecb0){return _0x5455dc>_0x53ecb0;};const _0x4238e0=_0x37d2c0;if(_0x54cbfd&&_0x54cbfd[_0x88dd2a(0x112)])return _0x54cbfd[_0x88dd2a(0x112)];if(_0x54cbfd&&_0x54cbfd[_0x88dd2a(0x133)]){if(this[_0x88dd2a(0x109)][_0x54cbfd[_0x88dd2a(0x133)]])return this[_0x88dd2a(0x109)][_0x54cbfd['fullName']];let _0x17dd5b=null,_0x3fa4ea=-0x1;for(const _0x357a15 of Object['keys'](this[_0x88dd2a(0x109)])){(_0x4238e0[_0x88dd2a(0x107)](_0x54cbfd['fullName'],_0x357a15)||_0x54cbfd[_0x88dd2a(0x133)]['startsWith'](_0x4238e0['lGzUy'](_0x357a15,'\x20')))&&_0x4238e0[_0x88dd2a(0x138)](_0x357a15[_0x88dd2a(0x108)],_0x3fa4ea)&&(_0x17dd5b=this[_0x88dd2a(0x109)][_0x357a15],_0x3fa4ea=_0x357a15[_0x88dd2a(0x108)]);}if(_0x17dd5b)return _0x17dd5b;}return null;}['_collapseFailedExpectations'](_0x5df786){const _0x11adb3=a17_0x14c970,_0xf392c3={};_0xf392c3[_0x11adb3(0x121)]=function(_0x12fc8f,_0xb0399b){return _0x12fc8f===_0xb0399b;},_0xf392c3[_0x11adb3(0xcb)]='Spec\x20failed';const _0x9cd6f1=_0xf392c3;if(!Array[_0x11adb3(0xfa)](_0x5df786)||_0x9cd6f1['monnz'](_0x5df786['length'],0x0))return undefined;const _0xe6e0a6=[],_0x5912d6=[];for(const _0x225579 of _0x5df786){_0x225579&&_0x225579[_0x11adb3(0xde)]&&_0xe6e0a6[_0x11adb3(0xd7)](_0x225579[_0x11adb3(0xde)]),_0x225579&&_0x225579[_0x11adb3(0x118)]&&_0x5912d6['push'](_0x225579['stack']);}const _0x97d880=_0x5df786[0x0]||{},_0x56639d=_0xe6e0a6['join']('\x0a')||_0x97d880[_0x11adb3(0xde)]||_0x9cd6f1[_0x11adb3(0xcb)],_0xfa60f7=_0x5912d6[_0x11adb3(0x10b)]('\x0a\x0a')||_0x97d880[_0x11adb3(0x118)]||_0x56639d,_0xe0b9ad={};return _0xe0b9ad[_0x11adb3(0xde)]=_0x56639d,_0xe0b9ad[_0x11adb3(0x118)]=_0xfa60f7,_0xe0b9ad['matcherName']=_0x97d880[_0x11adb3(0xe5)],_0xe0b9ad['expected']=_0x97d880[_0x11adb3(0xdf)],_0xe0b9ad['actual']=_0x97d880[_0x11adb3(0x126)],_0xe0b9ad;}[a17_0x14c970(0xd2)](_0x4357ff){const _0x41c337=a17_0x14c970,_0x25dd39={};_0x25dd39[_0x41c337(0x120)]=function(_0xcce5c8,_0x1be04d){return _0xcce5c8===_0x1be04d;},_0x25dd39['KicXO']=function(_0x497d5e,_0x425012){return _0x497d5e===_0x425012;},_0x25dd39['LQQlg']=function(_0x419eb1,_0x5e3929){return _0x419eb1===_0x5e3929;},_0x25dd39[_0x41c337(0x134)]=_0x41c337(0xf3),_0x25dd39[_0x41c337(0x124)]='config';const _0x44123c=_0x25dd39,_0x4afa02=path['sep'];if(_0x44123c[_0x41c337(0x120)](_0x4357ff,null)||_0x44123c[_0x41c337(0x120)](_0x4357ff,'')||_0x44123c[_0x41c337(0xc9)](_0x4357ff,_0x4afa02)||_0x44123c[_0x41c337(0xc7)](_0x4357ff,path[_0x41c337(0xcf)](_0x4357ff)))return null;try{return fs['statSync'](path['join'](_0x4357ff,_0x44123c[_0x41c337(0x134)],_0x44123c[_0x41c337(0x124)])),_0x4357ff;}catch(_0x7caa38){return this['_findGitConfig'](path['dirname'](_0x4357ff));}}}module[a17_0x14c970(0xc1)]=BrowserStackJasmineReporter;
|
|
1
|
+
'use strict';const a17_0x524b63=a17_0x3a43;function a17_0x29f6(){const _0x196b4e=['excluded','yFbQk','NscFj','\x20:\x20','description','KPxDc','jeTIT','number','startsWith','ZCiQr','Exception\x20in\x20jasmine\x20specDone\x20for\x20','stack','OwTEE','YvgXM','qJHFU','../../../helpers/test-observability/utils','Exception\x20in\x20populating\x20jasmine\x20test\x20data\x20for\x20event\x20','Exception\x20in\x20jasmine\x20suiteStarted\x20for\x20','javascript','yHbPR','setCurrentTestData','failure','ZQhpz','prefixTestPath','pending','length','toISOString','TestRunFinished','exports','parentSuiteId','YthFM','UcGgE','fDGsq','PopFq','JASMINE','delete','4468mVuMgx','testObservability','240lvpuMM','KWiML','specStarted','actual','fileNameByFullName','statSync','rmtui','FWuTT','_scopes','../../../helpers/test-observability/constants','Exception\x20deriving\x20jasmine\x20scopes\x20for\x20','../../../helpers/testhub/utils','push','XawjT','slHtO','uDLuw','failure_backtrace','TestRunSkipped','path','fullName','matcherName','suiteDone','kEVYK','filename','jasmineStarted','TfeWA','jasmineDone','SZQVN','5465622FgjCBi','463198kuqdjQ','finished_at','ojGZX','fxYFX','code','AssertionError','get','uuid','cwoIz','Lzpab','status','aFslb','passed','LkVTv','TestRunStarted','nFCtT','Exception\x20in\x20jasmine\x20specStarted\x20for\x20','keys','dirname','7bSQbIQ','slice','failed','set','pROIt','2798388WiLNvJ','KNdPk','isArray','pWhBd','sep','_fileNameByFullName','MWaEu','failure_reason_expanded','_paths','_resolveFilePath','tGhzd','Jasmine','split','3936978ikdSag','message','err','lorAp','File\x20path\x20could\x20not\x20be\x20found','vljJy','YSnaa','UnhandledError','join','failedExpectations','duration','shouldProcessEventForTesthub','_findGitConfig','specDone','jJbvu','expected','remove','_sendSpecEvent','QHyGn','893808matxNJ','endsWith','kcUhk','has','add','JdnNd','skipped','IXdRl','4865mofEYp','started_at','RWRRx','_collapseFailedExpectations','_suitesById','BMADs','relative','8257864xuxwPn'];a17_0x29f6=function(){return _0x196b4e;};return a17_0x29f6();}(function(_0x1680a4,_0x5bf84f){const _0x1b029e=a17_0x3a43,_0x23c7bc=_0x1680a4();while(!![]){try{const _0x3bf8e5=-parseInt(_0x1b029e(0x1e5))/0x1+parseInt(_0x1b029e(0x1fd))/0x2+parseInt(_0x1b029e(0x20a))/0x3+-parseInt(_0x1b029e(0x1c6))/0x4*(parseInt(_0x1b029e(0x225))/0x5)+parseInt(_0x1b029e(0x1e4))/0x6+-parseInt(_0x1b029e(0x1f8))/0x7*(-parseInt(_0x1b029e(0x22c))/0x8)+-parseInt(_0x1b029e(0x21d))/0x9*(parseInt(_0x1b029e(0x1c8))/0xa);if(_0x3bf8e5===_0x5bf84f)break;else _0x23c7bc['push'](_0x23c7bc['shift']());}catch(_0x6b23db){_0x23c7bc['push'](_0x23c7bc['shift']());}}}(a17_0x29f6,0xb010b));const path=require(a17_0x524b63(0x1da)),fs=require('fs'),{v4:uuidv4}=require(a17_0x524b63(0x1ec)),testhubUtils=require(a17_0x524b63(0x1d3)),{FRAMEWORKS}=require(a17_0x524b63(0x1d1)),SessionHandler=require('../../../helpers/test-observability/sessionHandler'),{isTestObservabilitySession,PathHelper,debug,failureData}=require(a17_0x524b63(0x23c)),testRunMap=require('../testRunMap'),_specStartTimes=new Map(),JASMINE_FRAMEWORK_LABEL=a17_0x524b63(0x208),a17_0x9e1b25={};a17_0x9e1b25[a17_0x524b63(0x1f1)]=a17_0x524b63(0x1f1),a17_0x9e1b25[a17_0x524b63(0x1fa)]=a17_0x524b63(0x1fa),a17_0x9e1b25['pending']=a17_0x524b63(0x1ba),a17_0x9e1b25[a17_0x524b63(0x22d)]=a17_0x524b63(0x223);function a17_0x3a43(_0xdca122,_0x5b0785){const _0x29f652=a17_0x29f6();return a17_0x3a43=function(_0x3a432c,_0x223c35){_0x3a432c=_0x3a432c-0x1ba;let _0x3415ab=_0x29f652[_0x3a432c];return _0x3415ab;},a17_0x3a43(_0xdca122,_0x5b0785);}const STATUS_MAP=a17_0x9e1b25;class BrowserStackJasmineReporter{constructor(_0x5e372c={}){const _0xeab0e2=a17_0x524b63,_0x413bd8={'VXItG':function(_0xbee965){return _0xbee965();}};this[_0xeab0e2(0x1c7)]=_0x413bd8['VXItG'](isTestObservabilitySession),this[_0xeab0e2(0x205)]=new PathHelper({'cwd':process['cwd']()},undefined),this[_0xeab0e2(0x202)]=_0x5e372c&&_0x5e372c[_0xeab0e2(0x1cc)]||{},this[_0xeab0e2(0x229)]=new Map();}[a17_0x524b63(0x1e0)](){}['suiteStarted'](_0x1d81b6){const _0xf48347=a17_0x524b63,_0x5b8bf3={'PopFq':function(_0x9a6236,_0x35e376){return _0x9a6236!==_0x35e376;},'yHbPR':function(_0x268c03,_0x301a0e){return _0x268c03(_0x301a0e);}};try{_0x1d81b6&&_0x5b8bf3['PopFq'](_0x1d81b6['id'],undefined)&&_0x5b8bf3[_0xf48347(0x1c3)](_0x1d81b6['id'],null)&&this[_0xf48347(0x229)][_0xf48347(0x1fb)](_0x1d81b6['id'],{'description':_0x1d81b6[_0xf48347(0x231)],'parentSuiteId':_0x1d81b6[_0xf48347(0x1bf)]});}catch(_0x57e9b1){_0x5b8bf3[_0xf48347(0x240)](debug,_0xf48347(0x23e)+(_0x1d81b6&&_0x1d81b6[_0xf48347(0x1db)])+_0xf48347(0x230)+_0x57e9b1);}}[a17_0x524b63(0x1ca)](_0x5b1c2b){const _0x784b10=a17_0x524b63,_0x2e7747={'IXWTo':function(_0x2d7a39,_0x20ca03){return _0x2d7a39!==_0x20ca03;},'KWiML':function(_0x5e89f4){return _0x5e89f4();},'cwoIz':_0x784b10(0x1f3),'ojGZX':function(_0x535b9a,_0x13a358){return _0x535b9a(_0x13a358);}};try{if(_0x2e7747['IXWTo'](testhubUtils[_0x784b10(0x215)](),!![]))return;const _0x3ad051=_0x2e7747[_0x784b10(0x1c9)](uuidv4);testRunMap[_0x784b10(0x1fb)](_0x5b1c2b['id'],_0x3ad051),this[_0x784b10(0x21b)](_0x5b1c2b,_0x3ad051,_0x2e7747[_0x784b10(0x1ed)]);}catch(_0x657f13){_0x2e7747[_0x784b10(0x1e7)](debug,_0x784b10(0x1f5)+(_0x5b1c2b&&_0x5b1c2b['fullName'])+_0x784b10(0x230)+_0x657f13);}}[a17_0x524b63(0x217)](_0x4b0a01){const _0x296ed7=a17_0x524b63,_0x2e9fbd={'QHyGn':function(_0x5c0b51,_0x33609a){return _0x5c0b51!==_0x33609a;},'ZCiQr':function(_0x13ee4f){return _0x13ee4f();},'yFbQk':function(_0x47b70d,_0x219f39){return _0x47b70d===_0x219f39;},'YSnaa':_0x296ed7(0x22d),'PqXYL':_0x296ed7(0x1d9),'BMADs':_0x296ed7(0x1bd),'fDGsq':function(_0x545d08,_0x490ec0){return _0x545d08(_0x490ec0);}};try{if(_0x2e9fbd[_0x296ed7(0x21c)](testhubUtils[_0x296ed7(0x215)](),!![]))return;const _0x375134=testRunMap[_0x296ed7(0x1eb)](_0x4b0a01['id'])||_0x2e9fbd[_0x296ed7(0x236)](uuidv4),_0xd394cd=_0x2e9fbd[_0x296ed7(0x22e)](_0x4b0a01[_0x296ed7(0x1ef)],_0x2e9fbd[_0x296ed7(0x210)])?_0x2e9fbd['PqXYL']:_0x2e9fbd[_0x296ed7(0x22a)];this[_0x296ed7(0x21b)](_0x4b0a01,_0x375134,_0xd394cd);}catch(_0x43e192){_0x2e9fbd[_0x296ed7(0x1c2)](debug,_0x296ed7(0x237)+(_0x4b0a01&&_0x4b0a01[_0x296ed7(0x1db)])+_0x296ed7(0x230)+_0x43e192);}finally{_0x4b0a01&&(testRunMap[_0x296ed7(0x21a)](_0x4b0a01['id']),_specStartTimes[_0x296ed7(0x1c5)](_0x4b0a01['id']));}}[a17_0x524b63(0x1dd)](){}[a17_0x524b63(0x1e2)](){}['_sendSpecEvent'](_0x1f2148,_0x487855,_0x1ad683){const _0x5ec8f0=a17_0x524b63,_0x53fe95={'lorAp':function(_0x4db7af,_0x5937cb){return _0x4db7af===_0x5937cb;},'tGhzd':_0x5ec8f0(0x1bd),'FWuTT':'TestRunSkipped','YvgXM':_0x5ec8f0(0x20e),'OwTEE':function(_0x323bfd,_0x2a0cb4,_0x1d93a0){return _0x323bfd(_0x2a0cb4,_0x1d93a0);},'nFCtT':_0x5ec8f0(0x20c),'UcGgE':_0x5ec8f0(0x1f3),'kEVYK':function(_0x3b988a,_0x449ce6){return _0x3b988a!==_0x449ce6;},'XbCyL':function(_0x12e24e,_0x16f57e){return _0x12e24e!==_0x16f57e;},'Xeftb':function(_0x144912,_0x360cdc){return _0x144912===_0x360cdc;},'aFslb':_0x5ec8f0(0x23f),'IXdRl':function(_0xeff2f8,_0xcf59ef){return _0xeff2f8&&_0xcf59ef;},'YWRom':_0x5ec8f0(0x223),'YthFM':_0x5ec8f0(0x1f1),'LkVTv':function(_0x29b366,_0x195d1d){return _0x29b366===_0x195d1d;},'ZQhpz':_0x5ec8f0(0x234),'KPxDc':_0x5ec8f0(0x1ea),'qJHFU':_0x5ec8f0(0x211),'MWaEu':function(_0x4372ed,_0x336381){return _0x4372ed===_0x336381;},'vljJy':_0x5ec8f0(0x226),'JdnNd':_0x5ec8f0(0x1e6),'sKIUD':_0x5ec8f0(0x242),'KNdPk':_0x5ec8f0(0x1d8),'RWRRx':'backtrace','NscFj':_0x5ec8f0(0x204),'FViLf':'expanded','eLHsA':function(_0x218bb5,_0xb9997f){return _0x218bb5===_0xb9997f;},'CmuqX':function(_0x3c0995,_0xd716d0){return _0x3c0995(_0xd716d0);}};try{const _0x535813=_0x53fe95[_0x5ec8f0(0x20d)](_0x1ad683,_0x53fe95[_0x5ec8f0(0x207)])||_0x53fe95[_0x5ec8f0(0x20d)](_0x1ad683,_0x53fe95[_0x5ec8f0(0x1cf)]),_0x13e845=this[_0x5ec8f0(0x206)](_0x1f2148),_0x3cb908=_0x13e845?this[_0x5ec8f0(0x205)][_0x5ec8f0(0x244)](_0x13e845):_0x53fe95[_0x5ec8f0(0x23a)],_0x1fda5f=_0x13e845?this[_0x5ec8f0(0x216)](path[_0x5ec8f0(0x1f7)](_0x13e845)):null,_0x5028eb=this[_0x5ec8f0(0x228)](_0x1f2148[_0x5ec8f0(0x213)]),_0x47aa42=_0x5028eb?_0x5028eb[_0x5ec8f0(0x20b)]:undefined,_0x521472=_0x5028eb?_0x53fe95[_0x5ec8f0(0x239)](failureData,_0x5028eb,_0x53fe95[_0x5ec8f0(0x1f4)]):[],_0x356a62=new Date()[_0x5ec8f0(0x1bc)](),_0x2a533c=this[_0x5ec8f0(0x1d0)](_0x1f2148);_0x53fe95['lorAp'](_0x1ad683,_0x53fe95[_0x5ec8f0(0x1c1)])&&_0x1f2148&&_0x53fe95[_0x5ec8f0(0x1de)](_0x1f2148['id'],undefined)&&_0x53fe95['XbCyL'](_0x1f2148['id'],null)&&_specStartTimes[_0x5ec8f0(0x1fb)](_0x1f2148['id'],_0x356a62);const _0x5e7f43=_0x53fe95['Xeftb'](_0x1ad683,_0x53fe95['UcGgE'])?_0x356a62:_0x1f2148&&_specStartTimes[_0x5ec8f0(0x1eb)](_0x1f2148['id'])||null,_0x55afd0={};_0x55afd0['lang']=_0x53fe95[_0x5ec8f0(0x1f0)],_0x55afd0[_0x5ec8f0(0x1e9)]=null;const _0x338633={'framework':JASMINE_FRAMEWORK_LABEL,'uuid':_0x487855,'name':_0x1f2148[_0x5ec8f0(0x231)],'body':_0x55afd0,'scope':_0x2a533c[_0x5ec8f0(0x212)]('\x20'),'scopes':_0x2a533c,'identifier':_0x1f2148['fullName'],'file_name':_0x3cb908,'vc_filepath':_0x53fe95[_0x5ec8f0(0x224)](_0x1fda5f,_0x13e845)?path[_0x5ec8f0(0x22b)](_0x1fda5f,_0x13e845):null,'location':_0x3cb908,'result':_0x53fe95[_0x5ec8f0(0x20d)](_0x1ad683,_0x53fe95[_0x5ec8f0(0x1cf)])?_0x53fe95['YWRom']:STATUS_MAP[_0x1f2148[_0x5ec8f0(0x1ef)]]||_0x53fe95[_0x5ec8f0(0x1c0)],'failure_reason':_0x47aa42,'duration_in_ms':_0x53fe95[_0x5ec8f0(0x1f2)](typeof _0x1f2148[_0x5ec8f0(0x214)],_0x53fe95[_0x5ec8f0(0x243)])?_0x1f2148[_0x5ec8f0(0x214)]:null,'started_at':_0x5e7f43,'finished_at':_0x535813?_0x356a62:null,'failure':_0x521472,'failure_type':!_0x47aa42?null:_0x47aa42['match'](/AssertionError/)?_0x53fe95[_0x5ec8f0(0x232)]:_0x53fe95[_0x5ec8f0(0x23b)],'retry_of':null};_0x53fe95[_0x5ec8f0(0x203)](_0x1ad683,_0x53fe95[_0x5ec8f0(0x1cf)])&&!_0x338633[_0x53fe95['vljJy']]&&(_0x338633[_0x53fe95[_0x5ec8f0(0x20f)]]=_0x338633[_0x53fe95[_0x5ec8f0(0x222)]]);const _0x4e71e8=_0x338633[_0x53fe95['sKIUD']][0x0];_0x4e71e8&&(_0x338633[_0x53fe95[_0x5ec8f0(0x1fe)]]=_0x4e71e8[_0x53fe95[_0x5ec8f0(0x227)]],_0x338633[_0x53fe95[_0x5ec8f0(0x22f)]]=_0x4e71e8[_0x53fe95['FViLf']]);testhubUtils['appendTesthubParams'](_0x338633,_0x1ad683,_0x1f2148,FRAMEWORKS[_0x5ec8f0(0x1c4)]);const _0x5784e8={'event_type':_0x53fe95['eLHsA'](_0x1ad683,_0x53fe95[_0x5ec8f0(0x1cf)])?_0x53fe95['tGhzd']:_0x1ad683,'test_run':_0x338633};return testhubUtils[_0x5ec8f0(0x241)](FRAMEWORKS[_0x5ec8f0(0x1c4)],_0x5784e8),SessionHandler['uploadEventData'](_0x5784e8);}catch(_0x3611ef){_0x53fe95['CmuqX'](debug,_0x5ec8f0(0x23d)+_0x1ad683+_0x5ec8f0(0x230)+_0x3611ef);}}['_scopes'](_0x2fcfe7){const _0x1bfcf6=a17_0x524b63,_0x521b32={'kcUhk':function(_0x20da5a,_0x541e76){return _0x20da5a!==_0x541e76;},'Lzpab':function(_0x3024a4,_0x519de6){return _0x3024a4!==_0x519de6;},'aaoeD':function(_0x5ea78b,_0x131c9f){return _0x5ea78b>_0x131c9f;},'HBELx':function(_0x546cdf,_0x53ebf8){return _0x546cdf(_0x53ebf8);},'cfLgj':function(_0x212a6d,_0x238cd8){return _0x212a6d-_0x238cd8;}};try{const _0x4c83b4=[];let _0x27fb7d=_0x2fcfe7&&_0x2fcfe7[_0x1bfcf6(0x1bf)];const _0x22bf66=new Set();while(_0x521b32[_0x1bfcf6(0x21f)](_0x27fb7d,undefined)&&_0x521b32[_0x1bfcf6(0x1ee)](_0x27fb7d,null)&&this[_0x1bfcf6(0x229)][_0x1bfcf6(0x220)](_0x27fb7d)&&!_0x22bf66['has'](_0x27fb7d)){_0x22bf66[_0x1bfcf6(0x221)](_0x27fb7d);const _0x395cce=this['_suitesById'][_0x1bfcf6(0x1eb)](_0x27fb7d);_0x395cce&&_0x395cce[_0x1bfcf6(0x231)]&&_0x4c83b4[_0x1bfcf6(0x1d4)](_0x395cce[_0x1bfcf6(0x231)]),_0x27fb7d=_0x395cce?_0x395cce[_0x1bfcf6(0x1bf)]:null;}if(_0x521b32['aaoeD'](_0x4c83b4[_0x1bfcf6(0x1bb)],0x0))return _0x4c83b4['reverse']();}catch(_0x5c899f){_0x521b32['HBELx'](debug,_0x1bfcf6(0x1d2)+(_0x2fcfe7&&_0x2fcfe7[_0x1bfcf6(0x1db)])+_0x1bfcf6(0x230)+_0x5c899f);}const _0x576224=_0x2fcfe7&&_0x2fcfe7[_0x1bfcf6(0x1db)]||'',_0x41810d=_0x2fcfe7&&_0x2fcfe7[_0x1bfcf6(0x231)]||'';let _0x447266=_0x576224;return _0x41810d&&_0x576224[_0x1bfcf6(0x21e)](_0x41810d)&&(_0x447266=_0x576224[_0x1bfcf6(0x1f9)](0x0,_0x521b32['cfLgj'](_0x576224[_0x1bfcf6(0x1bb)],_0x41810d[_0x1bfcf6(0x1bb)]))['trim']()),_0x447266?_0x447266[_0x1bfcf6(0x209)](/\s+/):[];}['_resolveFilePath'](_0x1bd53d){const _0x221892=a17_0x524b63,_0x151477={};_0x151477[_0x221892(0x1d7)]=function(_0x562dbf,_0x100e85){return _0x562dbf===_0x100e85;},_0x151477[_0x221892(0x1fc)]=function(_0x561850,_0x4fc1ae){return _0x561850+_0x4fc1ae;},_0x151477[_0x221892(0x1ce)]=function(_0x97445c,_0x20a0b5){return _0x97445c>_0x20a0b5;};const _0x4d8a9b=_0x151477;if(_0x1bd53d&&_0x1bd53d[_0x221892(0x1df)])return _0x1bd53d[_0x221892(0x1df)];if(_0x1bd53d&&_0x1bd53d[_0x221892(0x1db)]){if(this['_fileNameByFullName'][_0x1bd53d['fullName']])return this[_0x221892(0x202)][_0x1bd53d[_0x221892(0x1db)]];let _0xfc86e6=null,_0x4b5daf=-0x1;for(const _0x4493c1 of Object[_0x221892(0x1f6)](this['_fileNameByFullName'])){(_0x4d8a9b[_0x221892(0x1d7)](_0x1bd53d[_0x221892(0x1db)],_0x4493c1)||_0x1bd53d[_0x221892(0x1db)][_0x221892(0x235)](_0x4d8a9b['pROIt'](_0x4493c1,'\x20')))&&_0x4d8a9b[_0x221892(0x1ce)](_0x4493c1[_0x221892(0x1bb)],_0x4b5daf)&&(_0xfc86e6=this[_0x221892(0x202)][_0x4493c1],_0x4b5daf=_0x4493c1[_0x221892(0x1bb)]);}if(_0xfc86e6)return _0xfc86e6;}return null;}[a17_0x524b63(0x228)](_0x428931){const _0x61be0d=a17_0x524b63,_0x5695cd={};_0x5695cd[_0x61be0d(0x200)]=function(_0x1b2d1f,_0x5df45c){return _0x1b2d1f===_0x5df45c;},_0x5695cd[_0x61be0d(0x1e1)]='Spec\x20failed';const _0xe4da42=_0x5695cd;if(!Array[_0x61be0d(0x1ff)](_0x428931)||_0xe4da42[_0x61be0d(0x200)](_0x428931[_0x61be0d(0x1bb)],0x0))return undefined;const _0x3a7d59=[],_0x2c6a95=[];for(const _0x67dce5 of _0x428931){_0x67dce5&&_0x67dce5[_0x61be0d(0x20b)]&&_0x3a7d59[_0x61be0d(0x1d4)](_0x67dce5[_0x61be0d(0x20b)]),_0x67dce5&&_0x67dce5['stack']&&_0x2c6a95[_0x61be0d(0x1d4)](_0x67dce5['stack']);}const _0x460140=_0x428931[0x0]||{},_0x15826c=_0x3a7d59[_0x61be0d(0x212)]('\x0a')||_0x460140[_0x61be0d(0x20b)]||_0xe4da42[_0x61be0d(0x1e1)],_0x34f34b=_0x2c6a95[_0x61be0d(0x212)]('\x0a\x0a')||_0x460140['stack']||_0x15826c,_0x442b37={};return _0x442b37[_0x61be0d(0x20b)]=_0x15826c,_0x442b37[_0x61be0d(0x238)]=_0x34f34b,_0x442b37[_0x61be0d(0x1dc)]=_0x460140['matcherName'],_0x442b37[_0x61be0d(0x219)]=_0x460140[_0x61be0d(0x219)],_0x442b37[_0x61be0d(0x1cb)]=_0x460140[_0x61be0d(0x1cb)],_0x442b37;}[a17_0x524b63(0x216)](_0x3aff7f){const _0xcbf3aa=a17_0x524b63,_0x3795eb={};_0x3795eb[_0xcbf3aa(0x218)]=function(_0x59ed15,_0x1994b3){return _0x59ed15===_0x1994b3;},_0x3795eb[_0xcbf3aa(0x1d5)]=function(_0x3f1059,_0x245537){return _0x3f1059===_0x245537;},_0x3795eb[_0xcbf3aa(0x1e8)]=function(_0x321095,_0x360b91){return _0x321095===_0x360b91;},_0x3795eb[_0xcbf3aa(0x1e3)]=function(_0x1a65b8,_0x279f67){return _0x1a65b8===_0x279f67;},_0x3795eb['slHtO']='.git',_0x3795eb['jeTIT']='config';const _0x76e35e=_0x3795eb,_0x5e5289=path[_0xcbf3aa(0x201)];if(_0x76e35e[_0xcbf3aa(0x218)](_0x3aff7f,null)||_0x76e35e['XawjT'](_0x3aff7f,'')||_0x76e35e[_0xcbf3aa(0x1e8)](_0x3aff7f,_0x5e5289)||_0x76e35e['SZQVN'](_0x3aff7f,path[_0xcbf3aa(0x1f7)](_0x3aff7f)))return null;try{return fs[_0xcbf3aa(0x1cd)](path[_0xcbf3aa(0x212)](_0x3aff7f,_0x76e35e[_0xcbf3aa(0x1d6)],_0x76e35e[_0xcbf3aa(0x233)])),_0x3aff7f;}catch(_0xb00bcf){return this[_0xcbf3aa(0x216)](path[_0xcbf3aa(0x1f7)](_0x3aff7f));}}}module[a17_0x524b63(0x1be)]=BrowserStackJasmineReporter;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a18_0x58225b=a18_0x573c;function a18_0x573c(_0x2b6bd1,_0x4483b1){const _0x46a969=a18_0x46a9();return a18_0x573c=function(_0x573c12,_0x2a992d){_0x573c12=_0x573c12-0x12d;let _0x30ba2c=_0x46a969[_0x573c12];return _0x30ba2c;},a18_0x573c(_0x2b6bd1,_0x4483b1);}(function(_0x19efb1,_0x147a22){const _0x5c76d8=a18_0x573c,_0x346f3d=_0x19efb1();while(!![]){try{const _0x4c029a=-parseInt(_0x5c76d8(0x19e))/0x1+-parseInt(_0x5c76d8(0x166))/0x2+parseInt(_0x5c76d8(0x146))/0x3*(-parseInt(_0x5c76d8(0x132))/0x4)+parseInt(_0x5c76d8(0x1bc))/0x5+parseInt(_0x5c76d8(0x1ba))/0x6+parseInt(_0x5c76d8(0x16e))/0x7+parseInt(_0x5c76d8(0x187))/0x8*(parseInt(_0x5c76d8(0x1b2))/0x9);if(_0x4c029a===_0x147a22)break;else _0x346f3d['push'](_0x346f3d['shift']());}catch(_0x38ae66){_0x346f3d['push'](_0x346f3d['shift']());}}}(a18_0x46a9,0x711d8));const fs=require('fs'),path=require(a18_0x58225b(0x1cd)),util=require(a18_0x58225b(0x1b7)),{spawn}=require(a18_0x58225b(0x139)),glob=require('glob'),pLimit=require(a18_0x58225b(0x18e)),logger=require(a18_0x58225b(0x176))[a18_0x58225b(0x172)],helper=require(a18_0x58225b(0x147)),utilities=require('../../helpers/utilities'),constants=require(a18_0x58225b(0x1b4)),TestHubHandler=require(a18_0x58225b(0x183)),testOpsHelper=require(a18_0x58225b(0x167)),{debug}=require(a18_0x58225b(0x167)),{FRAMEWORKS}=require(a18_0x58225b(0x18f)),PerformanceTester=require('../../helpers/performance/performance-tester'),PerformanceEvents=require(a18_0x58225b(0x191))[a18_0x58225b(0x190)],BrowserstackCLI=require(a18_0x58225b(0x17c)),{checkPwandBootstrapCli}=require('../../helpers/playwright-helper'),{checkPuppeteerAndBootstrapCli,getPuppeteerVersion}=require(a18_0x58225b(0x13d)),getMaxWorkers=(_0x31f313,_0x7aa229)=>{const _0x58c49b=a18_0x58225b,_0x64ba0={'obNIA':function(_0x22ac66,_0x38f00f){return _0x22ac66(_0x38f00f);}};let _0xff6a35=0x1;if(!helper['isUndefined'](_0x7aa229[_0x58c49b(0x1b6)]))_0xff6a35=_0x64ba0[_0x58c49b(0x1a6)](parseInt,_0x7aa229['parallelsPerPlatform']);else!helper[_0x58c49b(0x1c1)](_0x31f313[_0x58c49b(0x168)])&&(_0xff6a35=_0x31f313[_0x58c49b(0x168)]);return _0xff6a35;},resolveJasmineConfigPath=()=>{const _0x49852f=a18_0x58225b,_0xa23aea={};_0xa23aea[_0x49852f(0x14f)]='spec/support/jasmine.json';const _0x1f0fb1=_0xa23aea,_0x20546b=[];process[_0x49852f(0x19f)][_0x49852f(0x13f)]&&_0x20546b[_0x49852f(0x196)](path[_0x49852f(0x188)](process[_0x49852f(0x1be)](),process['env'][_0x49852f(0x13f)]));_0x20546b[_0x49852f(0x196)](path[_0x49852f(0x188)](process[_0x49852f(0x1be)](),_0x1f0fb1[_0x49852f(0x14f)]));for(const _0x20e91d of _0x20546b){try{if(fs[_0x49852f(0x16d)](_0x20e91d))return _0x20e91d;}catch(_0x5c4a0d){}}return null;},enumerateSpecFiles=_0x5b0d5a=>{const _0x436139=a18_0x58225b,_0x53a608={'MULNB':function(_0x223866,_0x3b271f){return _0x223866(_0x3b271f);},'pnONz':function(_0x13f6bf,_0xfe325){return _0x13f6bf>_0xfe325;},'seXTu':function(_0x778129,_0x168582){return _0x778129<_0x168582;},'IFLuK':function(_0xa9090d,_0x24552c){return _0xa9090d===_0x24552c;},'yqhBQ':_0x436139(0x198),'qnVjs':function(_0x51bf38,_0x2fd94f){return _0x51bf38>_0x2fd94f;},'yKHAX':function(_0xc21f3b,_0x305254,_0x48412f){return _0xc21f3b(_0x305254,_0x48412f);},'vsUOs':function(_0x5cab02){return _0x5cab02();},'TCPwq':_0x436139(0x165),'DcdZl':_0x436139(0x186),'zXVyj':function(_0xef76df,_0x872399){return _0xef76df>_0x872399;},'RnMiO':_0x436139(0x1ab),'rIDUZ':function(_0x55809e,_0x3a83db){return _0x55809e(_0x3a83db);}};try{if(testOpsHelper['shouldReRunObservabilityTests']()){const _0x356a98=testOpsHelper[_0x436139(0x1c7)](process['env'][_0x436139(0x18b)]);if(Array[_0x436139(0x1ac)](_0x356a98)&&_0x53a608['pnONz'](_0x356a98[_0x436139(0x177)],0x0))return _0x356a98[_0x436139(0x162)](_0x3a15f3=>path[_0x436139(0x188)](process[_0x436139(0x1be)](),_0x3a15f3['trim']()))['filter'](Boolean);}}catch(_0x173412){_0x53a608[_0x436139(0x17e)](debug,_0x436139(0x1cb)+util['format'](_0x173412));}const _0x5e8f13=[];try{for(let _0x5b872c=0x1;_0x53a608[_0x436139(0x145)](_0x5b872c,_0x5b0d5a[_0x436139(0x177)]);_0x5b872c++){const _0x13c903=_0x5b0d5a[_0x5b872c];_0x53a608[_0x436139(0x1c4)](typeof _0x13c903,_0x53a608[_0x436139(0x161)])&&!_0x13c903['startsWith']('-')&&_0x5e8f13['push'](_0x13c903);}}catch(_0x86804d){}const _0x43bd21={'cwd':process['cwd'](),'absolute':!![],'nodir':!![]},_0x3f40cb=(_0x4caf5d,_0x9f92a)=>{const _0x2d48f9=_0x436139,_0xee395e=[];for(const _0x424a89 of _0x4caf5d){try{const _0x4bf409=_0x9f92a?path[_0x2d48f9(0x158)]['join'](_0x9f92a,_0x424a89):_0x424a89,_0x4c3de3=glob[_0x2d48f9(0x154)](_0x4bf409,_0x43bd21);Array[_0x2d48f9(0x1ac)](_0x4c3de3)&&_0xee395e[_0x2d48f9(0x196)](..._0x4c3de3);}catch(_0x142559){_0x53a608[_0x2d48f9(0x17e)](debug,_0x2d48f9(0x149)+_0x424a89+_0x2d48f9(0x163)+util[_0x2d48f9(0x15d)](_0x142559));}}return _0xee395e;};if(_0x53a608[_0x436139(0x137)](_0x5e8f13[_0x436139(0x177)],0x0)){const _0x553e19=_0x53a608[_0x436139(0x134)](_0x3f40cb,_0x5e8f13,null);if(_0x53a608['qnVjs'](_0x553e19[_0x436139(0x177)],0x0))return Array[_0x436139(0x199)](new Set(_0x553e19));return _0x5e8f13['map'](_0x402f5a=>path['resolve'](process[_0x436139(0x1be)](),_0x402f5a));}try{const _0x3629ff=_0x53a608[_0x436139(0x144)](resolveJasmineConfigPath);if(_0x3629ff){const _0x4d0bbd=JSON[_0x436139(0x1ca)](fs[_0x436139(0x1b3)](_0x3629ff,_0x53a608[_0x436139(0x17d)])),_0x53ee5e=_0x4d0bbd['spec_dir']||_0x53a608['DcdZl'],_0x85336=Array['isArray'](_0x4d0bbd[_0x436139(0x17a)])&&_0x53a608['zXVyj'](_0x4d0bbd[_0x436139(0x17a)]['length'],0x0)?_0x4d0bbd['spec_files']:[_0x53a608['RnMiO']],_0x5aa0e1=_0x53a608[_0x436139(0x134)](_0x3f40cb,_0x85336,_0x53ee5e);if(_0x53a608['zXVyj'](_0x5aa0e1[_0x436139(0x177)],0x0))return Array[_0x436139(0x199)](new Set(_0x5aa0e1));}}catch(_0x1365f5){_0x53a608[_0x436139(0x1b1)](debug,'Exception\x20reading\x20jasmine.json\x20for\x20spec\x20enumeration\x20:\x20'+util[_0x436139(0x15d)](_0x1365f5));}return null;};async function run(_0x49e841,_0x3bb526,_0x3a8c0f){const _0x2f6ec5=a18_0x58225b,_0x317e75={'cJcoq':function(_0x1142fc,_0x4dbf8a){return _0x1142fc>_0x4dbf8a;},'dVgCK':function(_0x6a9316,_0x5e4cd6){return _0x6a9316>_0x5e4cd6;},'qNFPK':_0x2f6ec5(0x180),'zPunt':function(_0x4b9841,_0x3ca20c){return _0x4b9841(_0x3ca20c);},'CiYxj':function(_0x5712e7,_0x459332){return _0x5712e7||_0x459332;},'decqU':function(_0x33e819,_0x4d1146){return _0x33e819(_0x4d1146);},'eZvNo':function(_0x3d3f6d,_0x1398b9){return _0x3d3f6d(_0x1398b9);},'mQPgm':function(_0x5bc8a7,_0xa56668){return _0x5bc8a7>_0xa56668;},'rjxha':function(_0x23d9ee,_0x8efd91,_0x20d03a,_0x1145e7){return _0x23d9ee(_0x8efd91,_0x20d03a,_0x1145e7);},'RlLIn':_0x2f6ec5(0x131),'GRUEs':_0x2f6ec5(0x1a7),'mDuCh':function(_0x6f464d,_0x82812e){return _0x6f464d===_0x82812e;},'HHRFh':'win32','EKbdS':_0x2f6ec5(0x181),'ZBYYo':'close','wMdaF':'error','ObZRg':_0x2f6ec5(0x14b),'grUUE':function(_0x1fdbb4){return _0x1fdbb4();},'vtyOZ':function(_0x671815,_0x5dd72f,_0x4e1349,_0x55a1de){return _0x671815(_0x5dd72f,_0x4e1349,_0x55a1de);},'GKSmq':function(_0x1359c4,_0x2f1416){return _0x1359c4!=_0x2f1416;},'IpWDj':'true','GwtGd':function(_0x12adba,_0x3de4d1){return _0x12adba(_0x3de4d1);},'xEiIm':function(_0x12a26d,_0x3280ed){return _0x12a26d(_0x3280ed);},'xrLeo':function(_0xadf757,_0xbaa5fe,_0x516ebb){return _0xadf757(_0xbaa5fe,_0x516ebb);},'DfOgw':function(_0x2c5ed2,_0xd1502e){return _0x2c5ed2*_0xd1502e;},'QBIAD':function(_0x3c74f0,_0x491472){return _0x3c74f0(_0x491472);},'XBMds':function(_0x335871,_0x211c61){return _0x335871(_0x211c61);},'Ompes':'test.setup.js','LTfdp':function(_0x1483bd,_0x44e0e0){return _0x1483bd(_0x44e0e0);},'GzadT':function(_0x5e0f98,_0x229e44){return _0x5e0f98(_0x229e44);},'FuLOA':function(_0x2559fb,_0x46b291){return _0x2559fb<_0x46b291;},'lezCO':function(_0x50fd1e,_0x2ab81f){return _0x50fd1e>_0x2ab81f;},'EEQDE':function(_0x456e1a,_0x5a2101){return _0x456e1a>_0x5a2101;},'dlrls':function(_0x3163a0,_0x4de5c5){return _0x3163a0(_0x4de5c5);}},_0x2caf72=helper['getPackageVersion'](_0x317e75[_0x2f6ec5(0x169)]);global[_0x2f6ec5(0x14d)]=!!_0x2caf72;const _0x5b23a3=_0x317e75[_0x2f6ec5(0x1bf)](getPuppeteerVersion);global[_0x2f6ec5(0x1b9)]=!!_0x5b23a3;helper['isBrowserstackInfra']()&&(await _0x3a8c0f[_0x2f6ec5(0x13b)](_0x49e841),await helper[_0x2f6ec5(0x170)](_0x3a8c0f['config']));if(_0x2caf72)await _0x317e75['vtyOZ'](checkPwandBootstrapCli,_0x2caf72,constants[_0x2f6ec5(0x173)][_0x2f6ec5(0x19c)],_0x3a8c0f);else _0x5b23a3&&await _0x317e75[_0x2f6ec5(0x156)](checkPuppeteerAndBootstrapCli,_0x5b23a3,constants[_0x2f6ec5(0x173)]['JASMINE'],_0x3a8c0f);if(!_0x3a8c0f[_0x2f6ec5(0x13c)])return;_0x317e75['GKSmq'](_0x3a8c0f[_0x2f6ec5(0x13c)][_0x2f6ec5(0x18d)],null)?process['env'][_0x2f6ec5(0x140)]=_0x3a8c0f['config']['testObservability']:process[_0x2f6ec5(0x19f)][_0x2f6ec5(0x140)]=_0x317e75[_0x2f6ec5(0x15c)];!helper[_0x2f6ec5(0x1c1)](_0x3a8c0f[_0x2f6ec5(0x13c)][_0x2f6ec5(0x1a4)])&&(process[_0x2f6ec5(0x19f)][_0x2f6ec5(0x192)]=JSON[_0x2f6ec5(0x153)](_0x3a8c0f[_0x2f6ec5(0x13c)][_0x2f6ec5(0x1a4)]));try{await TestHubHandler[_0x2f6ec5(0x143)](FRAMEWORKS['JASMINE'],_0x3a8c0f);}catch(_0x11bcf8){logger[_0x2f6ec5(0x150)](_0x2f6ec5(0x12d)+util[_0x2f6ec5(0x15d)](_0x11bcf8)),_0x317e75[_0x2f6ec5(0x13e)](debug,_0x2f6ec5(0x1c0)+util[_0x2f6ec5(0x15d)](_0x11bcf8));}let _0x503a80=![],_0x5bdaae=[];try{_0x503a80=helper['useW3C'](_0x3a8c0f[_0x2f6ec5(0x13c)]),_0x5bdaae=helper[_0x2f6ec5(0x1c2)](_0x3a8c0f['config'],_0x503a80,constants[_0x2f6ec5(0x173)]['JASMINE']),process['env']['BROWSERSTACK_CAPABILITIES']=JSON[_0x2f6ec5(0x153)](_0x5bdaae);}catch(_0x538447){_0x317e75[_0x2f6ec5(0x14a)](debug,_0x2f6ec5(0x1ae)+util[_0x2f6ec5(0x15d)](_0x538447));}let _0x744cc4=null,_0x1e2fb3=![];try{_0x744cc4=helper[_0x2f6ec5(0x195)](_0x3a8c0f[_0x2f6ec5(0x13c)]),_0x1e2fb3=helper[_0x2f6ec5(0x184)](_0x3a8c0f[_0x2f6ec5(0x13c)]);}catch(_0x3021ad){_0x317e75[_0x2f6ec5(0x174)](debug,_0x2f6ec5(0x155)+util[_0x2f6ec5(0x15d)](_0x3021ad));}let _0x19b054={};try{_0x19b054=helper[_0x2f6ec5(0x15e)](_0x3a8c0f['config'],_0x503a80,constants[_0x2f6ec5(0x173)][_0x2f6ec5(0x19c)]);}catch(_0xf2fc5b){_0x317e75[_0x2f6ec5(0x14a)](debug,_0x2f6ec5(0x17f)+util[_0x2f6ec5(0x15d)](_0xf2fc5b));}const _0x5d4be0=_0xbc1e75=>{const _0x570daf=_0x2f6ec5,_0x5c6c7d=Array[_0x570daf(0x1ac)](_0x5bdaae)&&_0x317e75[_0x570daf(0x189)](_0x5bdaae[_0x570daf(0x177)],_0xbc1e75)?_0x5bdaae[_0xbc1e75]:Array[_0x570daf(0x1ac)](_0x5bdaae)&&_0x317e75[_0x570daf(0x19b)](_0x5bdaae[_0x570daf(0x177)],0x0)?_0x5bdaae[0x0]:{};return Object[_0x570daf(0x138)]({'server':_0x744cc4,'capability':_0x5c6c7d,'proxySettings':_0x3a8c0f[_0x570daf(0x13c)][_0x570daf(0x175)],'platform':helper[_0x570daf(0x1c8)](_0x5c6c7d),'browserStackLogLevel':_0x3a8c0f[_0x570daf(0x13c)][_0x570daf(0x160)],'platformIndex':_0xbc1e75,'framework':constants[_0x570daf(0x173)][_0x570daf(0x19c)],'platformCaps':_0x1e2fb3?Object[_0x570daf(0x138)]({'index':_0xbc1e75},_0x3a8c0f[_0x570daf(0x13c)][_0x570daf(0x12e)][_0xbc1e75]):{'index':_0xbc1e75}},_0x19b054);};let _0x3a9f32=0x1,_0x2d846a=0x1,_0x41e92f=0x1;try{_0x3a9f32=_0x317e75[_0x2f6ec5(0x14c)](getMaxWorkers,_0x49e841,_0x3a8c0f['config']),_0x2d846a=_0x1e2fb3?_0x3a8c0f[_0x2f6ec5(0x13c)]['platforms'][_0x2f6ec5(0x177)]:0x1,_0x41e92f=_0x317e75['DfOgw'](_0x2d846a,_0x3a9f32),process[_0x2f6ec5(0x19f)][_0x2f6ec5(0x179)]=_0x317e75[_0x2f6ec5(0x16f)](String,_0x41e92f);}catch(_0x81f919){_0x317e75[_0x2f6ec5(0x12f)](debug,_0x2f6ec5(0x130)+util['format'](_0x81f919));}try{BrowserstackCLI[_0x2f6ec5(0x13a)]()[_0x2f6ec5(0x18a)]&&(process['env'][_0x2f6ec5(0x148)]=BrowserstackCLI[_0x2f6ec5(0x13a)]()[_0x2f6ec5(0x18a)]);}catch(_0x14d42a){_0x317e75[_0x2f6ec5(0x16f)](debug,'Exception\x20propagating\x20binary\x20session\x20id\x20for\x20Jasmine\x20children\x20:\x20'+util[_0x2f6ec5(0x15d)](_0x14d42a));}const _0x116130=[];try{const _0x272079=path[_0x2f6ec5(0x188)](__dirname,_0x317e75[_0x2f6ec5(0x1a5)]);fs['existsSync'](_0x272079)?_0x116130['push'](_0x2f6ec5(0x182)+_0x272079):_0x317e75['decqU'](debug,_0x2f6ec5(0x16b)+_0x272079+_0x2f6ec5(0x1c6));}catch(_0x1374ab){_0x317e75[_0x2f6ec5(0x1a2)](debug,'Exception\x20building\x20Jasmine\x20helper\x20injection\x20args\x20:\x20'+util[_0x2f6ec5(0x15d)](_0x1374ab));}const _0x418fbd=_0x3bb526[_0x2f6ec5(0x197)](0x1),_0x444474=_0x317e75['GzadT'](enumerateSpecFiles,_0x3bb526),_0x2b2945=[];for(let _0x3ba79e=0x0;_0x317e75['FuLOA'](_0x3ba79e,_0x2d846a);_0x3ba79e++){if(_0x317e75[_0x2f6ec5(0x19b)](_0x3a9f32,0x1)&&Array[_0x2f6ec5(0x1ac)](_0x444474)&&_0x317e75[_0x2f6ec5(0x15f)](_0x444474['length'],0x0))for(const _0x768b0c of _0x444474){const _0x18cb66={};_0x18cb66[_0x2f6ec5(0x1a3)]=_0x3ba79e,_0x18cb66[_0x2f6ec5(0x1b5)]=[_0x768b0c],_0x2b2945[_0x2f6ec5(0x196)](_0x18cb66);}else{const _0x3d9d77={};_0x3d9d77['platformIndex']=_0x3ba79e,_0x3d9d77[_0x2f6ec5(0x1b5)]=_0x444474,_0x2b2945[_0x2f6ec5(0x196)](_0x3d9d77);}}logger[_0x2f6ec5(0x1c3)](_0x2f6ec5(0x1bd)+_0x2d846a+'\x20platform(s),\x20parallelsPerPlatform='+_0x3a9f32+'\x20('+_0x2b2945[_0x2f6ec5(0x177)]+_0x2f6ec5(0x142)+_0x41e92f+_0x2f6ec5(0x185)),PerformanceTester['end'](PerformanceEvents[_0x2f6ec5(0x15a)]);const _0x17f944=_0x302892=>new Promise(_0x2261ca=>{const _0x3298a5=_0x2f6ec5,_0x13459c={'kiNmf':function(_0x50fdb7,_0x176fd7){const _0x1bcb50=a18_0x573c;return _0x317e75[_0x1bcb50(0x1a8)](_0x50fdb7,_0x176fd7);}};let _0x5b661b;try{const _0x1c9e33=_0x317e75[_0x3298a5(0x1cc)](_0x5d4be0,_0x302892['platformIndex']);_0x5b661b=Object[_0x3298a5(0x138)]({},process[_0x3298a5(0x19f)],{'BROWSERSTACK_JASMINE_CONFIG':JSON[_0x3298a5(0x153)](_0x1c9e33),'BROWSERSTACK_CAPABILITIES':JSON[_0x3298a5(0x153)]([_0x1c9e33[_0x3298a5(0x1c5)]]),'BROWSERSTACK_MAX_RETRIES':'0'});}catch(_0xc01e93){_0x317e75[_0x3298a5(0x1cc)](debug,'Exception\x20building\x20child\x20env\x20for\x20platformIndex\x20'+_0x302892[_0x3298a5(0x1a3)]+_0x3298a5(0x18c)+util[_0x3298a5(0x15d)](_0xc01e93)),_0x5b661b=Object[_0x3298a5(0x138)]({},process[_0x3298a5(0x19f)]);}const _0x428e98=Array[_0x3298a5(0x1ac)](_0x302892[_0x3298a5(0x1b5)])?_0x302892[_0x3298a5(0x1b5)]:[],_0x1d9329=_0x317e75[_0x3298a5(0x141)](_0x428e98['length'],0x0)?_0x418fbd[_0x3298a5(0x1a9)](_0x34f54d=>typeof _0x34f54d===_0x3298a5(0x198)&&_0x34f54d[_0x3298a5(0x15b)]('-')):_0x418fbd,_0x3bc5d9=[..._0x116130,..._0x1d9329,..._0x428e98];try{const _0x9e1ba8=_0x317e75[_0x3298a5(0x156)](spawn,_0x317e75[_0x3298a5(0x171)],[_0x317e75[_0x3298a5(0x133)],..._0x3bc5d9],{'shell':_0x317e75[_0x3298a5(0x193)](process['platform'],_0x317e75[_0x3298a5(0x1a1)]),'stdio':_0x317e75[_0x3298a5(0x14e)],'env':_0x5b661b});_0x9e1ba8['on'](_0x317e75[_0x3298a5(0x1b0)],_0x49a290=>{const _0x5bfb65=_0x3298a5;logger[_0x5bfb65(0x1aa)](_0x5bfb65(0x16a)+_0x302892['platformIndex']+_0x5bfb65(0x164)+(_0x428e98['length']?_0x428e98[_0x5bfb65(0x136)](','):_0x317e75[_0x5bfb65(0x194)])+_0x5bfb65(0x16c)+_0x49a290),_0x317e75[_0x5bfb65(0x14a)](_0x2261ca,_0x317e75[_0x5bfb65(0x159)](_0x49a290,0x0));}),_0x9e1ba8['on'](_0x317e75[_0x3298a5(0x17b)],_0x2219e9=>{const _0x223911=_0x3298a5;_0x13459c['kiNmf'](debug,_0x223911(0x1bb)+_0x302892[_0x223911(0x1a3)]+')\x20:\x20'+util[_0x223911(0x15d)](_0x2219e9)),_0x13459c['kiNmf'](_0x2261ca,0x1);});}catch(_0xf791e3){_0x317e75[_0x3298a5(0x1a8)](debug,_0x3298a5(0x1b8)+_0x302892[_0x3298a5(0x1a3)]+')\x20:\x20'+util['format'](_0xf791e3)),_0x317e75[_0x3298a5(0x14a)](_0x2261ca,0x1);}}),_0x366316=_0x317e75[_0x2f6ec5(0x135)](pLimit,_0x317e75[_0x2f6ec5(0x1af)](_0x41e92f,0x0)?_0x41e92f:0x1),_0x1276fb=await Promise[_0x2f6ec5(0x180)](_0x2b2945['map'](_0xa86521=>_0x366316(()=>_0x17f944(_0xa86521))));PerformanceTester[_0x2f6ec5(0x151)](PerformanceEvents[_0x2f6ec5(0x1ad)]);const _0xbf15b0=_0x1276fb[_0x2f6ec5(0x1c9)](_0x38f91d=>_0x38f91d!==0x0)||0x0;process[_0x2f6ec5(0x19a)]=_0xbf15b0,logger['debug'](_0x2f6ec5(0x178)+_0xbf15b0);const _0x28ea80=BrowserstackCLI['isCLIEnabled']();try{await TestHubHandler[_0x2f6ec5(0x152)](),await BrowserstackCLI['getInstance']()['stop']();}catch(_0x373d05){_0x317e75['dlrls'](debug,'Exception\x20in\x20stop\x20build\x20request\x20to\x20TestHub\x20:\x20'+util[_0x2f6ec5(0x15d)](_0x373d05));}testOpsHelper[_0x2f6ec5(0x157)](),await utilities[_0x2f6ec5(0x1a0)](_0x3a8c0f,_0x28ea80);}function a18_0x46a9(){const _0x102485=['map','\x27\x20:\x20',',\x20specs=','utf8','388646aUcOmU','../../helpers/test-observability/utils','maxWorkers','ObZRg','jasmine\x20child\x20(platformIndex=','Jasmine\x20SDK\x20helper\x20not\x20found\x20at\x20',')\x20exited\x20with\x20code\x20','existsSync','2907870arRlgI','QBIAD','handleApp','RlLIn','winstonLogger','FRAMEWORKS','xEiIm','proxySettings','../../helpers/logger','length','All\x20jasmine\x20children\x20exited;\x20final\x20exit\x20code\x20','BROWSERSTACK_JASMINE_PARALLELS','spec_files','wMdaF','../v2/browserstackCLI','TCPwq','MULNB','Exception\x20preparing\x20Jasmine\x20multi-driver\x20config;\x20spawning\x20children\x20single-driver\x20:\x20','all','inherit','--helper=','../../helpers/testhub/testhubHandler','validPlatformsPresent','\x20concurrent)','spec','8OHgtKF','resolve','cJcoq','binSessionId','BROWSERSTACK_RERUN_TESTS','\x20:\x20','testObservability','p-limit','../../helpers/test-observability/constants','EVENTS','../../helpers/performance/constants','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','mDuCh','qNFPK','getHubUrl','push','slice','string','from','exitCode','dVgCK','JASMINE','exports','896400MqLzur','env','finalExecution','HHRFh','LTfdp','platformIndex','accessibilityOptions','Ompes','obNIA','jasmine','decqU','filter','debug','**/*[sS]pec.?(m)js','isArray','SDK_CLEANUP','Exception\x20preparing\x20Jasmine\x20capabilities;\x20spawning\x20children\x20without\x20injected\x20caps\x20:\x20','EEQDE','ZBYYo','rIDUZ','9011619qZkjxm','readFileSync','../utils/constants','specArgs','parallelsPerPlatform','util','Exception\x20spawning\x20Jasmine\x20child\x20(platformIndex=','__isPuppeteerInstalled','61320HDdUPK','Jasmine\x20child\x20spawn\x20error\x20(platformIndex=','1993520hmfjUJ','Running\x20your\x20Jasmine\x20tests\x20across\x20','cwd','grUUE','Exception\x20in\x20TestHubHandler.launchBuild\x20for\x20Jasmine\x20:\x20','isUndefined','prepareCapabilities','info','IFLuK','capability',';\x20proceeding\x20without\x20injection','parseFileNames','getPlatformName','find','parse','Exception\x20parsing\x20BROWSERSTACK_RERUN_TESTS\x20for\x20spec\x20selection\x20:\x20','eZvNo','path','[jasmine]\x20Failed\x20to\x20launch\x20BrowserStack\x20build;\x20tests\x20will\x20run\x20but\x20results\x20may\x20not\x20appear\x20on\x20the\x20dashboard.\x20Error:\x20','platforms','XBMds','Exception\x20computing\x20Jasmine\x20fan-out\x20concurrency;\x20falling\x20back\x20to\x20single\x20worker\x20:\x20','npx','8PRbkzP','GRUEs','yKHAX','GzadT','join','qnVjs','assign','child_process','getInstance','initialize','config','../../helpers/puppeteer-helper','GwtGd','JASMINE_CONFIG_PATH','BROWSERSTACK_TEST_OBSERVABILITY_YML','mQPgm','\x20work-item(s),\x20max\x20','launchBuild','vsUOs','seXTu','407373xbpcWx','../../helpers/helper','BROWSERSTACK_CLI_BIN_SESSION_ID','Exception\x20globbing\x20Jasmine\x20spec\x20pattern\x20\x27','zPunt','@playwright/test','xrLeo','__isPlaywrightInstalled','EKbdS','QZPPe','error','start','stop','stringify','globSync','Exception\x20resolving\x20Jasmine\x20hub\x20URL\x20/\x20platforms;\x20using\x20safe\x20defaults\x20:\x20','rjxha','printBuildLink','posix','CiYxj','SDK_SETUP','startsWith','IpWDj','format','getMultiDriverWorkerConfig','lezCO','logLevel','yqhBQ'];a18_0x46a9=function(){return _0x102485;};return a18_0x46a9();}module[a18_0x58225b(0x19d)]=run;
|
|
2
|
+
'use strict';const a18_0x25add2=a18_0x433d;function a18_0x433d(_0x86b438,_0x1feaa7){const _0x94034c=a18_0x9403();return a18_0x433d=function(_0x433da3,_0x249f60){_0x433da3=_0x433da3-0x188;let _0x1993c3=_0x94034c[_0x433da3];return _0x1993c3;},a18_0x433d(_0x86b438,_0x1feaa7);}function a18_0x9403(){const _0xdff9eb=['capability','__isPuppeteerInstalled','rBglr','**/*[sS]pec.?(m)js','nuaOu','accessibilityOptions','2175282eHSqxW','FzsvN','../../helpers/performance/performance-tester','YnAQT','stringify','Exception\x20preparing\x20Jasmine\x20multi-driver\x20config;\x20spawning\x20children\x20single-driver\x20:\x20','40620yazvpl','spec_files','ozZOb','uwCoo','hWaNL','29645XKMcQP','maSsL','platforms','Exception\x20building\x20child\x20env\x20for\x20platformIndex\x20','7877219Ipijbb','p-limit','exitCode','SDK_SETUP','win32','../utils/constants','Exception\x20reading\x20jasmine.json\x20for\x20spec\x20enumeration\x20:\x20','true','stop','40XodlSX','TblfF','APvxL','Exception\x20resolving\x20Jasmine\x20hub\x20URL\x20/\x20platforms;\x20using\x20safe\x20defaults\x20:\x20','string','Exception\x20spawning\x20Jasmine\x20child\x20(platformIndex=','../../helpers/testhub/testhubHandler','nTvdb','../../helpers/performance/constants','isUndefined','FCdmv','xtJef','Exception\x20globbing\x20Jasmine\x20spec\x20pattern\x20\x27','vfQEf','getPackageVersion','npx','jDjOF','980ieicMe','spec_dir','platformIndex','eYPaI','Exception\x20preparing\x20Jasmine\x20capabilities;\x20spawning\x20children\x20without\x20injected\x20caps\x20:\x20','join','all','All\x20jasmine\x20children\x20exited;\x20final\x20exit\x20code\x20','../../helpers/logger','util','\x20concurrent)','push','find','MIkuZ','debug','existsSync','isCLIEnabled','JASMINE','logLevel','filter','assign','../../helpers/playwright-helper','57wBBupm','Exception\x20propagating\x20binary\x20session\x20id\x20for\x20Jasmine\x20children\x20:\x20','XVnDS','format','map','../../helpers/test-observability/utils','env','BROWSERSTACK_TEST_OBSERVABILITY_YML','test.setup.js','\x20:\x20','spec','mNaFA','handleApp','child_process','startsWith','iFkAB','close','PLqaA','specArgs','nnDUY','BROWSERSTACK_JASMINE_PARALLELS','initialize','1828hqxotM','Exception\x20computing\x20Jasmine\x20fan-out\x20concurrency;\x20falling\x20back\x20to\x20single\x20worker\x20:\x20',')\x20:\x20','getHubUrl','Jasmine\x20child\x20spawn\x20error\x20(platformIndex=','jasmine\x20child\x20(platformIndex=','../../helpers/puppeteer-helper','ThBPO','getMultiDriverWorkerConfig','1616AATJGa','error','FRDwI','globSync','../../helpers/utilities','getInstance','isArray','yffIq','14380SzAnrN','binSessionId','Running\x20your\x20Jasmine\x20tests\x20across\x20','POwHp','WiElM','parallelsPerPlatform','2467287GCVTGz','from','--helper=','@playwright/test','resolve','validPlatformsPresent','MbbRv','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','shouldReRunObservabilityTests','end','BROWSERSTACK_RERUN_TESTS','Exception\x20parsing\x20BROWSERSTACK_RERUN_TESTS\x20for\x20spec\x20selection\x20:\x20','posix','zTRmV','config','glob','../v2/browserstackCLI','FRAMEWORKS','NWLEe','utf8','parseFileNames','Exception\x20in\x20TestHubHandler.launchBuild\x20for\x20Jasmine\x20:\x20','path','\x27\x20:\x20','length','testObservability','\x20platform(s),\x20parallelsPerPlatform=','sdxjG','spec/support/jasmine.json','useW3C','maxWorkers','HNeZX','LzzXA','__isPlaywrightInstalled','getPlatformName','Wmzry','iPAjC','printBuildLink','SDK_CLEANUP','bFTvc','jasmine','SScQz','BROWSERSTACK_CAPABILITIES','cwd','\x20work-item(s),\x20max\x20','BDeTU',',\x20specs=','zCKAF','finalExecution'];a18_0x9403=function(){return _0xdff9eb;};return a18_0x9403();}(function(_0x5ced69,_0x2370da){const _0x35ace2=a18_0x433d,_0x50d0eb=_0x5ced69();while(!![]){try{const _0x49c4fc=parseInt(_0x35ace2(0x1a5))/0x1*(-parseInt(_0x35ace2(0x1bb))/0x2)+parseInt(_0x35ace2(0x20f))/0x3+parseInt(_0x35ace2(0x1c4))/0x4*(parseInt(_0x35ace2(0x1cc))/0x5)+-parseInt(_0x35ace2(0x209))/0x6+-parseInt(_0x35ace2(0x218))/0x7+-parseInt(_0x35ace2(0x221))/0x8*(-parseInt(_0x35ace2(0x1d2))/0x9)+-parseInt(_0x35ace2(0x18f))/0xa*(parseInt(_0x35ace2(0x214))/0xb);if(_0x49c4fc===_0x2370da)break;else _0x50d0eb['push'](_0x50d0eb['shift']());}catch(_0x364eab){_0x50d0eb['push'](_0x50d0eb['shift']());}}}(a18_0x9403,0xb52c7));const fs=require('fs'),path=require(a18_0x25add2(0x1e8)),util=require(a18_0x25add2(0x198)),{spawn}=require(a18_0x25add2(0x1b2)),glob=require(a18_0x25add2(0x1e1)),pLimit=require(a18_0x25add2(0x219)),logger=require(a18_0x25add2(0x197))['winstonLogger'],helper=require('../../helpers/helper'),utilities=require(a18_0x25add2(0x1c8)),constants=require(a18_0x25add2(0x21d)),TestHubHandler=require(a18_0x25add2(0x227)),testOpsHelper=require('../../helpers/test-observability/utils'),{debug}=require(a18_0x25add2(0x1aa)),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),PerformanceTester=require(a18_0x25add2(0x20b)),PerformanceEvents=require(a18_0x25add2(0x229))['EVENTS'],BrowserstackCLI=require(a18_0x25add2(0x1e2)),{checkPwandBootstrapCli}=require(a18_0x25add2(0x1a4)),{checkPuppeteerAndBootstrapCli,getPuppeteerVersion}=require(a18_0x25add2(0x1c1)),getMaxWorkers=(_0xbaaf1d,_0xcace)=>{const _0x458621=a18_0x25add2,_0x274d5c={'FRDwI':function(_0x573896,_0x12bbfd){return _0x573896(_0x12bbfd);}};let _0x57e45d=0x1;if(!helper[_0x458621(0x22a)](_0xcace[_0x458621(0x1d1)]))_0x57e45d=_0x274d5c[_0x458621(0x1c6)](parseInt,_0xcace['parallelsPerPlatform']);else!helper['isUndefined'](_0xbaaf1d['maxWorkers'])&&(_0x57e45d=_0xbaaf1d[_0x458621(0x1f0)]);return _0x57e45d;},resolveJasmineConfigPath=()=>{const _0x406704=a18_0x25add2,_0x32b2f6={};_0x32b2f6['PLqaA']=_0x406704(0x1ee);const _0x2d4720=_0x32b2f6,_0x20a84d=[];process[_0x406704(0x1ab)]['JASMINE_CONFIG_PATH']&&_0x20a84d[_0x406704(0x19a)](path[_0x406704(0x1d6)](process[_0x406704(0x1fd)](),process[_0x406704(0x1ab)]['JASMINE_CONFIG_PATH']));_0x20a84d['push'](path[_0x406704(0x1d6)](process[_0x406704(0x1fd)](),_0x2d4720[_0x406704(0x1b6)]));for(const _0x48279f of _0x20a84d){try{if(fs[_0x406704(0x19e)](_0x48279f))return _0x48279f;}catch(_0x151ca3){}}return null;},enumerateSpecFiles=_0x16dcb0=>{const _0x32a5bc=a18_0x25add2,_0x462f86={'xtJef':function(_0x4e08d7,_0x397492){return _0x4e08d7(_0x397492);},'IlcyN':function(_0x45e1e6,_0xa9a986){return _0x45e1e6>_0xa9a986;},'sdxjG':function(_0x48f2ff,_0x1e95ec){return _0x48f2ff<_0x1e95ec;},'dLUoz':function(_0x517da9,_0x1b4d69){return _0x517da9===_0x1b4d69;},'KdGRi':_0x32a5bc(0x225),'BDeTU':function(_0x3c9c22,_0x587efb){return _0x3c9c22>_0x587efb;},'MbbRv':function(_0x478348,_0x4260f8,_0x18913a){return _0x478348(_0x4260f8,_0x18913a);},'hWaNL':function(_0x2b4d35,_0x399ec4){return _0x2b4d35>_0x399ec4;},'yffIq':function(_0x10a03c){return _0x10a03c();},'POwHp':_0x32a5bc(0x1e5),'SScQz':_0x32a5bc(0x1af),'jDjOF':function(_0x4d4a23,_0x35e437){return _0x4d4a23>_0x35e437;},'APvxL':_0x32a5bc(0x206),'mNaFA':function(_0x39a5f6,_0x3e66a0,_0x156a28){return _0x39a5f6(_0x3e66a0,_0x156a28);},'RiHtl':function(_0x51cc92,_0x5bd2d7){return _0x51cc92(_0x5bd2d7);}};try{if(testOpsHelper[_0x32a5bc(0x1da)]()){const _0x1c05c5=testOpsHelper[_0x32a5bc(0x1e6)](process[_0x32a5bc(0x1ab)][_0x32a5bc(0x1dc)]);if(Array[_0x32a5bc(0x1ca)](_0x1c05c5)&&_0x462f86['IlcyN'](_0x1c05c5[_0x32a5bc(0x1ea)],0x0))return _0x1c05c5[_0x32a5bc(0x1a9)](_0x4b2826=>path[_0x32a5bc(0x1d6)](process['cwd'](),_0x4b2826['trim']()))[_0x32a5bc(0x1a2)](Boolean);}}catch(_0x17d89c){_0x462f86['xtJef'](debug,_0x32a5bc(0x1dd)+util['format'](_0x17d89c));}const _0x359a59=[];try{for(let _0x46545d=0x1;_0x462f86[_0x32a5bc(0x1ed)](_0x46545d,_0x16dcb0[_0x32a5bc(0x1ea)]);_0x46545d++){const _0x217de5=_0x16dcb0[_0x46545d];_0x462f86['dLUoz'](typeof _0x217de5,_0x462f86['KdGRi'])&&!_0x217de5[_0x32a5bc(0x1b3)]('-')&&_0x359a59[_0x32a5bc(0x19a)](_0x217de5);}}catch(_0x25d900){}const _0x530174={'cwd':process[_0x32a5bc(0x1fd)](),'absolute':!![],'nodir':!![]},_0x2e4fb7=(_0x786fc,_0x5e30f4)=>{const _0x197367=_0x32a5bc,_0x3d0df2=[];for(const _0x47dfa8 of _0x786fc){try{const _0x54dec7=_0x5e30f4?path[_0x197367(0x1de)][_0x197367(0x194)](_0x5e30f4,_0x47dfa8):_0x47dfa8,_0x5fc843=glob[_0x197367(0x1c7)](_0x54dec7,_0x530174);Array['isArray'](_0x5fc843)&&_0x3d0df2['push'](..._0x5fc843);}catch(_0x532777){_0x462f86[_0x197367(0x189)](debug,_0x197367(0x18a)+_0x47dfa8+_0x197367(0x1e9)+util['format'](_0x532777));}}return _0x3d0df2;};if(_0x462f86[_0x32a5bc(0x1ff)](_0x359a59[_0x32a5bc(0x1ea)],0x0)){const _0x4e4317=_0x462f86[_0x32a5bc(0x1d8)](_0x2e4fb7,_0x359a59,null);if(_0x462f86[_0x32a5bc(0x213)](_0x4e4317[_0x32a5bc(0x1ea)],0x0))return Array[_0x32a5bc(0x1d3)](new Set(_0x4e4317));return _0x359a59['map'](_0x1a6bad=>path[_0x32a5bc(0x1d6)](process[_0x32a5bc(0x1fd)](),_0x1a6bad));}try{const _0x47e280=_0x462f86[_0x32a5bc(0x1cb)](resolveJasmineConfigPath);if(_0x47e280){const _0x24aa5b=JSON['parse'](fs['readFileSync'](_0x47e280,_0x462f86[_0x32a5bc(0x1cf)])),_0x5cfc1c=_0x24aa5b[_0x32a5bc(0x190)]||_0x462f86[_0x32a5bc(0x1fb)],_0x5133fa=Array[_0x32a5bc(0x1ca)](_0x24aa5b[_0x32a5bc(0x210)])&&_0x462f86['jDjOF'](_0x24aa5b[_0x32a5bc(0x210)]['length'],0x0)?_0x24aa5b['spec_files']:[_0x462f86[_0x32a5bc(0x223)]],_0x1a832e=_0x462f86[_0x32a5bc(0x1b0)](_0x2e4fb7,_0x5133fa,_0x5cfc1c);if(_0x462f86[_0x32a5bc(0x18e)](_0x1a832e[_0x32a5bc(0x1ea)],0x0))return Array[_0x32a5bc(0x1d3)](new Set(_0x1a832e));}}catch(_0x487629){_0x462f86['RiHtl'](debug,_0x32a5bc(0x21e)+util[_0x32a5bc(0x1a8)](_0x487629));}return null;};async function run(_0x584b03,_0x41ddb2,_0x21ccda){const _0x2daadb=a18_0x25add2,_0x12c387={'FCdmv':function(_0x3cb1e5,_0x11d251){return _0x3cb1e5>_0x11d251;},'LUaVf':function(_0x3629e3,_0x1c7bd3){return _0x3629e3>_0x1c7bd3;},'idxAR':_0x2daadb(0x195),'TblfF':function(_0x2b776d,_0x5b71cf){return _0x2b776d(_0x5b71cf);},'uhIHf':function(_0x2dad4c,_0x1ca57a){return _0x2dad4c||_0x1ca57a;},'nuaOu':function(_0x5c49dc,_0x4b5bc){return _0x5c49dc(_0x4b5bc);},'YnAQT':function(_0x14c8a2,_0x3b408e){return _0x14c8a2(_0x3b408e);},'vfQEf':function(_0x458480,_0x1b6272,_0x4df943,_0x3ca675){return _0x458480(_0x1b6272,_0x4df943,_0x3ca675);},'ECmVh':_0x2daadb(0x18d),'WqXpT':_0x2daadb(0x1fa),'iFkAB':function(_0x34cbb0,_0x20951f){return _0x34cbb0===_0x20951f;},'lnrrv':_0x2daadb(0x21c),'Wmzry':'inherit','LzzXA':_0x2daadb(0x1b5),'uDhjc':_0x2daadb(0x1c5),'maSsL':function(_0x53efef,_0x39493e){return _0x53efef(_0x39493e);},'eYPaI':_0x2daadb(0x1d5),'zTRmV':function(_0x23f31d){return _0x23f31d();},'iPAjC':function(_0x455050,_0x57ae22){return _0x455050!=_0x57ae22;},'FwTUF':_0x2daadb(0x21f),'GVyQe':function(_0x55f5ce,_0x24d8fc){return _0x55f5ce(_0x24d8fc);},'nnDUY':function(_0x114e50,_0x36fcfb,_0x3fc48e){return _0x114e50(_0x36fcfb,_0x3fc48e);},'FzsvN':function(_0x2d9427,_0x18ad98){return _0x2d9427*_0x18ad98;},'WiElM':function(_0x45301d,_0x5392b3){return _0x45301d(_0x5392b3);},'nTvdb':function(_0x554982,_0x380906){return _0x554982(_0x380906);},'XPEGQ':_0x2daadb(0x1ad),'ThBPO':function(_0xa95e2d,_0xcf1862){return _0xa95e2d(_0xcf1862);},'RDKyi':function(_0x4bac39,_0x569dde){return _0x4bac39<_0x569dde;},'rBglr':function(_0x529d92,_0x43d195){return _0x529d92>_0x43d195;},'NWLEe':function(_0x5058b8,_0x3a7024){return _0x5058b8(_0x3a7024);},'ozZOb':function(_0x41d302,_0x3c29bf){return _0x41d302>_0x3c29bf;},'XVnDS':function(_0x2e7052,_0x68f0e8){return _0x2e7052(_0x68f0e8);}},_0x23c647=helper[_0x2daadb(0x18c)](_0x12c387[_0x2daadb(0x192)]);global[_0x2daadb(0x1f3)]=!!_0x23c647;const _0x5d5b90=_0x12c387[_0x2daadb(0x1df)](getPuppeteerVersion);global[_0x2daadb(0x204)]=!!_0x5d5b90;helper['isBrowserstackInfra']()&&(await _0x21ccda[_0x2daadb(0x1ba)](_0x584b03),await helper[_0x2daadb(0x1b1)](_0x21ccda['config']));if(_0x23c647)await _0x12c387[_0x2daadb(0x18b)](checkPwandBootstrapCli,_0x23c647,constants['FRAMEWORKS'][_0x2daadb(0x1a0)],_0x21ccda);else _0x5d5b90&&await _0x12c387['vfQEf'](checkPuppeteerAndBootstrapCli,_0x5d5b90,constants[_0x2daadb(0x1e3)][_0x2daadb(0x1a0)],_0x21ccda);if(!_0x21ccda[_0x2daadb(0x1e0)])return;_0x12c387[_0x2daadb(0x1f6)](_0x21ccda[_0x2daadb(0x1e0)][_0x2daadb(0x1eb)],null)?process[_0x2daadb(0x1ab)][_0x2daadb(0x1ac)]=_0x21ccda[_0x2daadb(0x1e0)]['testObservability']:process[_0x2daadb(0x1ab)][_0x2daadb(0x1ac)]=_0x12c387['FwTUF'];!helper['isUndefined'](_0x21ccda[_0x2daadb(0x1e0)][_0x2daadb(0x208)])&&(process[_0x2daadb(0x1ab)][_0x2daadb(0x1d9)]=JSON[_0x2daadb(0x20d)](_0x21ccda['config'][_0x2daadb(0x208)]));try{await TestHubHandler['launchBuild'](FRAMEWORKS[_0x2daadb(0x1a0)],_0x21ccda);}catch(_0x424630){logger[_0x2daadb(0x1c5)]('[jasmine]\x20Failed\x20to\x20launch\x20BrowserStack\x20build;\x20tests\x20will\x20run\x20but\x20results\x20may\x20not\x20appear\x20on\x20the\x20dashboard.\x20Error:\x20'+util[_0x2daadb(0x1a8)](_0x424630)),_0x12c387['GVyQe'](debug,_0x2daadb(0x1e7)+util['format'](_0x424630));}let _0x5956a1=![],_0x3a107a=[];try{_0x5956a1=helper[_0x2daadb(0x1ef)](_0x21ccda[_0x2daadb(0x1e0)]),_0x3a107a=helper['prepareCapabilities'](_0x21ccda[_0x2daadb(0x1e0)],_0x5956a1,constants['FRAMEWORKS'][_0x2daadb(0x1a0)]),process[_0x2daadb(0x1ab)][_0x2daadb(0x1fc)]=JSON[_0x2daadb(0x20d)](_0x3a107a);}catch(_0x44938e){_0x12c387[_0x2daadb(0x215)](debug,_0x2daadb(0x193)+util[_0x2daadb(0x1a8)](_0x44938e));}let _0x50fcfb=null,_0x583607=![];try{_0x50fcfb=helper[_0x2daadb(0x1be)](_0x21ccda[_0x2daadb(0x1e0)]),_0x583607=helper[_0x2daadb(0x1d7)](_0x21ccda['config']);}catch(_0x569af6){_0x12c387[_0x2daadb(0x215)](debug,_0x2daadb(0x224)+util[_0x2daadb(0x1a8)](_0x569af6));}let _0x527f26={};try{_0x527f26=helper[_0x2daadb(0x1c3)](_0x21ccda[_0x2daadb(0x1e0)],_0x5956a1,constants[_0x2daadb(0x1e3)]['JASMINE']);}catch(_0x245dc4){_0x12c387[_0x2daadb(0x222)](debug,_0x2daadb(0x20e)+util[_0x2daadb(0x1a8)](_0x245dc4));}const _0x145165=_0xb156b8=>{const _0x28c7ea=_0x2daadb,_0x1bacc8=Array[_0x28c7ea(0x1ca)](_0x3a107a)&&_0x12c387[_0x28c7ea(0x188)](_0x3a107a[_0x28c7ea(0x1ea)],_0xb156b8)?_0x3a107a[_0xb156b8]:Array[_0x28c7ea(0x1ca)](_0x3a107a)&&_0x12c387['LUaVf'](_0x3a107a['length'],0x0)?_0x3a107a[0x0]:{};return Object[_0x28c7ea(0x1a3)]({'server':_0x50fcfb,'capability':_0x1bacc8,'proxySettings':_0x21ccda[_0x28c7ea(0x1e0)]['proxySettings'],'platform':helper[_0x28c7ea(0x1f4)](_0x1bacc8),'browserStackLogLevel':_0x21ccda['config'][_0x28c7ea(0x1a1)],'platformIndex':_0xb156b8,'framework':constants[_0x28c7ea(0x1e3)]['JASMINE'],'platformCaps':_0x583607?Object[_0x28c7ea(0x1a3)]({'index':_0xb156b8},_0x21ccda[_0x28c7ea(0x1e0)]['platforms'][_0xb156b8]):{'index':_0xb156b8}},_0x527f26);};let _0x352a6a=0x1,_0x177923=0x1,_0x188b86=0x1;try{_0x352a6a=_0x12c387[_0x2daadb(0x1b8)](getMaxWorkers,_0x584b03,_0x21ccda[_0x2daadb(0x1e0)]),_0x177923=_0x583607?_0x21ccda[_0x2daadb(0x1e0)][_0x2daadb(0x216)][_0x2daadb(0x1ea)]:0x1,_0x188b86=_0x12c387[_0x2daadb(0x20a)](_0x177923,_0x352a6a),process['env'][_0x2daadb(0x1b9)]=_0x12c387[_0x2daadb(0x1d0)](String,_0x188b86);}catch(_0x32f87f){_0x12c387[_0x2daadb(0x228)](debug,_0x2daadb(0x1bc)+util['format'](_0x32f87f));}try{BrowserstackCLI[_0x2daadb(0x1c9)]()[_0x2daadb(0x1cd)]&&(process[_0x2daadb(0x1ab)]['BROWSERSTACK_CLI_BIN_SESSION_ID']=BrowserstackCLI[_0x2daadb(0x1c9)]()[_0x2daadb(0x1cd)]);}catch(_0x81047b){_0x12c387['nTvdb'](debug,_0x2daadb(0x1a6)+util[_0x2daadb(0x1a8)](_0x81047b));}const _0x18342f=[];try{const _0x11762e=path[_0x2daadb(0x1d6)](__dirname,_0x12c387['XPEGQ']);fs[_0x2daadb(0x19e)](_0x11762e)?_0x18342f[_0x2daadb(0x19a)](_0x2daadb(0x1d4)+_0x11762e):_0x12c387[_0x2daadb(0x222)](debug,'Jasmine\x20SDK\x20helper\x20not\x20found\x20at\x20'+_0x11762e+';\x20proceeding\x20without\x20injection');}catch(_0x4a7765){_0x12c387[_0x2daadb(0x1c2)](debug,'Exception\x20building\x20Jasmine\x20helper\x20injection\x20args\x20:\x20'+util[_0x2daadb(0x1a8)](_0x4a7765));}const _0x58ea90=_0x41ddb2['slice'](0x1),_0x3b706b=_0x12c387[_0x2daadb(0x215)](enumerateSpecFiles,_0x41ddb2),_0x533a2c=[];for(let _0x5912a6=0x0;_0x12c387['RDKyi'](_0x5912a6,_0x177923);_0x5912a6++){if(_0x12c387[_0x2daadb(0x205)](_0x352a6a,0x1)&&Array[_0x2daadb(0x1ca)](_0x3b706b)&&_0x12c387[_0x2daadb(0x205)](_0x3b706b[_0x2daadb(0x1ea)],0x0))for(const _0x21c927 of _0x3b706b){const _0x48fdfd={};_0x48fdfd[_0x2daadb(0x191)]=_0x5912a6,_0x48fdfd[_0x2daadb(0x1b7)]=[_0x21c927],_0x533a2c[_0x2daadb(0x19a)](_0x48fdfd);}else{const _0x2a4312={};_0x2a4312[_0x2daadb(0x191)]=_0x5912a6,_0x2a4312['specArgs']=_0x3b706b,_0x533a2c[_0x2daadb(0x19a)](_0x2a4312);}}logger['info'](_0x2daadb(0x1ce)+_0x177923+_0x2daadb(0x1ec)+_0x352a6a+'\x20('+_0x533a2c['length']+_0x2daadb(0x1fe)+_0x188b86+_0x2daadb(0x199)),PerformanceTester[_0x2daadb(0x1db)](PerformanceEvents[_0x2daadb(0x21b)]);const _0x320e1b=_0x38221a=>new Promise(_0x18bc6e=>{const _0x3260e9=_0x2daadb,_0x1bcf5f={'uwCoo':_0x12c387['idxAR'],'zCKAF':function(_0x38b490,_0x219f09){return _0x12c387['TblfF'](_0x38b490,_0x219f09);},'HNeZX':function(_0x242dd8,_0x1617da){return _0x12c387['uhIHf'](_0x242dd8,_0x1617da);},'MIkuZ':function(_0x1d63fd,_0x7d70bf){return _0x12c387['nuaOu'](_0x1d63fd,_0x7d70bf);},'bFTvc':function(_0x447b72,_0x538ab2){const _0x5c5dc1=a18_0x433d;return _0x12c387[_0x5c5dc1(0x20c)](_0x447b72,_0x538ab2);}};let _0x31cf8e;try{const _0x31c9dc=_0x12c387[_0x3260e9(0x207)](_0x145165,_0x38221a['platformIndex']);_0x31cf8e=Object[_0x3260e9(0x1a3)]({},process['env'],{'BROWSERSTACK_JASMINE_CONFIG':JSON[_0x3260e9(0x20d)](_0x31c9dc),'BROWSERSTACK_CAPABILITIES':JSON[_0x3260e9(0x20d)]([_0x31c9dc[_0x3260e9(0x203)]]),'BROWSERSTACK_MAX_RETRIES':'0'});}catch(_0x43b490){_0x12c387[_0x3260e9(0x207)](debug,_0x3260e9(0x217)+_0x38221a[_0x3260e9(0x191)]+_0x3260e9(0x1ae)+util['format'](_0x43b490)),_0x31cf8e=Object[_0x3260e9(0x1a3)]({},process[_0x3260e9(0x1ab)]);}const _0x4ca9c2=Array[_0x3260e9(0x1ca)](_0x38221a['specArgs'])?_0x38221a[_0x3260e9(0x1b7)]:[],_0x174926=_0x12c387[_0x3260e9(0x188)](_0x4ca9c2[_0x3260e9(0x1ea)],0x0)?_0x58ea90['filter'](_0x14f211=>typeof _0x14f211==='string'&&_0x14f211[_0x3260e9(0x1b3)]('-')):_0x58ea90,_0x3f6dd2=[..._0x18342f,..._0x174926,..._0x4ca9c2];try{const _0x2df376=_0x12c387[_0x3260e9(0x18b)](spawn,_0x12c387['ECmVh'],[_0x12c387['WqXpT'],..._0x3f6dd2],{'shell':_0x12c387[_0x3260e9(0x1b4)](process['platform'],_0x12c387['lnrrv']),'stdio':_0x12c387[_0x3260e9(0x1f5)],'env':_0x31cf8e});_0x2df376['on'](_0x12c387[_0x3260e9(0x1f2)],_0x2912d2=>{const _0x294888=_0x3260e9;logger['debug'](_0x294888(0x1c0)+_0x38221a['platformIndex']+_0x294888(0x200)+(_0x4ca9c2[_0x294888(0x1ea)]?_0x4ca9c2['join'](','):_0x1bcf5f[_0x294888(0x212)])+')\x20exited\x20with\x20code\x20'+_0x2912d2),_0x1bcf5f[_0x294888(0x201)](_0x18bc6e,_0x1bcf5f[_0x294888(0x1f1)](_0x2912d2,0x0));}),_0x2df376['on'](_0x12c387['uDhjc'],_0xd1ccdc=>{const _0x56dd83=_0x3260e9;_0x1bcf5f[_0x56dd83(0x19c)](debug,_0x56dd83(0x1bf)+_0x38221a[_0x56dd83(0x191)]+_0x56dd83(0x1bd)+util[_0x56dd83(0x1a8)](_0xd1ccdc)),_0x1bcf5f[_0x56dd83(0x1f9)](_0x18bc6e,0x1);});}catch(_0x5b42e1){_0x12c387['TblfF'](debug,_0x3260e9(0x226)+_0x38221a[_0x3260e9(0x191)]+_0x3260e9(0x1bd)+util[_0x3260e9(0x1a8)](_0x5b42e1)),_0x12c387[_0x3260e9(0x215)](_0x18bc6e,0x1);}}),_0x42af41=_0x12c387[_0x2daadb(0x1e4)](pLimit,_0x12c387[_0x2daadb(0x211)](_0x188b86,0x0)?_0x188b86:0x1),_0x2686c5=await Promise[_0x2daadb(0x195)](_0x533a2c[_0x2daadb(0x1a9)](_0x35e4b8=>_0x42af41(()=>_0x320e1b(_0x35e4b8))));PerformanceTester['start'](PerformanceEvents[_0x2daadb(0x1f8)]);const _0x573293=_0x2686c5[_0x2daadb(0x19b)](_0x3fcca4=>_0x3fcca4!==0x0)||0x0;process[_0x2daadb(0x21a)]=_0x573293,logger[_0x2daadb(0x19d)](_0x2daadb(0x196)+_0x573293);const _0x15bf2d=BrowserstackCLI[_0x2daadb(0x19f)]();try{await TestHubHandler[_0x2daadb(0x220)](),await BrowserstackCLI[_0x2daadb(0x1c9)]()[_0x2daadb(0x220)]();}catch(_0x43cdf3){_0x12c387[_0x2daadb(0x1a7)](debug,'Exception\x20in\x20stop\x20build\x20request\x20to\x20TestHub\x20:\x20'+util[_0x2daadb(0x1a8)](_0x43cdf3));}testOpsHelper[_0x2daadb(0x1f7)](),await utilities[_0x2daadb(0x202)](_0x21ccda,_0x15bf2d);}module['exports']=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a19_0x450c3b=a19_0x7cc4;(function(_0x2ee9b7,_0x2ce9ae){const _0x47a460=a19_0x7cc4,_0x336054=_0x2ee9b7();while(!![]){try{const _0x375176=-parseInt(_0x47a460(0x19b))/0x1*(-parseInt(_0x47a460(0x161))/0x2)+parseInt(_0x47a460(0x1b8))/0x3+parseInt(_0x47a460(0x1b6))/0x4*(-parseInt(_0x47a460(0x1bc))/0x5)+-parseInt(_0x47a460(0x19c))/0x6*(parseInt(_0x47a460(0x167))/0x7)+-parseInt(_0x47a460(0x1b3))/0x8+-parseInt(_0x47a460(0x164))/0x9+parseInt(_0x47a460(0x1bb))/0xa*(parseInt(_0x47a460(0x182))/0xb);if(_0x375176===_0x2ce9ae)break;else _0x336054['push'](_0x336054['shift']());}catch(_0x59d947){_0x336054['push'](_0x336054['shift']());}}}(a19_0x28cc,0xe59ca));const util=require(a19_0x450c3b(0x18a)),logger=require('../../helpers/logger')[a19_0x450c3b(0x168)],helper=require(a19_0x450c3b(0x16e)),globals=require(a19_0x450c3b(0x1a7)),{shouldProcessEventForTesthub}=require('../../helpers/testhub/utils'),testHubConstants=require(a19_0x450c3b(0x1d3)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a19_0x450c3b(0x17b)),accessibilityRetryHelper=require('../../helpers/accessibility-automation/accessibilityRetryHelper'),testRunMap=require(a19_0x450c3b(0x1b7));let _activeResultId=null,_activeFullName=null,_activeResultRef=null,_bstackConfig=null;try{const rawConfig=process['env'][a19_0x450c3b(0x181)]||process[a19_0x450c3b(0x16c)][a19_0x450c3b(0x19f)];rawConfig!==undefined&&(_bstackConfig=JSON[a19_0x450c3b(0x1a3)](rawConfig));}catch(a19_0x4a1253){logger[a19_0x450c3b(0x1b5)]('[jasmine\x20setup]\x20Failed\x20to\x20parse\x20BrowserStack\x20config\x20from\x20env:\x20'+util[a19_0x450c3b(0x178)](a19_0x4a1253));}try{if(_bstackConfig&&!helper[a19_0x450c3b(0x1ba)](a19_0x450c3b(0x169))){const vzgWmv=a19_0x450c3b(0x190)[a19_0x450c3b(0x179)]('|');let osyjwF=0x0;while(!![]){switch(vzgWmv[osyjwF++]){case'0':shouldProcessEventForTesthub()?require(a19_0x450c3b(0x17e))[a19_0x450c3b(0x1c8)](_bstackConfig,null,!![]):require('../../index')[a19_0x450c3b(0x1c8)](_bstackConfig);continue;case'1':global['__platformCaps']=_bstackConfig[a19_0x450c3b(0x1ec)]||{};continue;case'2':global[a19_0x450c3b(0x162)]=_bstackConfig[a19_0x450c3b(0x16a)];continue;case'3':helper[a19_0x450c3b(0x166)]()?(global[a19_0x450c3b(0x1ea)]=helper[a19_0x450c3b(0x1ad)](_bstackConfig[a19_0x450c3b(0x1b0)]),global[a19_0x450c3b(0x1bf)]=helper['isTrue'](_bstackConfig[a19_0x450c3b(0x1d6)])):(global['__skipSessionName']=!![],global[a19_0x450c3b(0x1bf)]=!![]);continue;case'4':logger[a19_0x450c3b(0x1b5)](a19_0x450c3b(0x189));continue;}break;}}}catch(a19_0x26844b){logger['debug']('[jasmine\x20setup]\x20Exception\x20during\x20WebDriver\x20patch\x20load:\x20'+util[a19_0x450c3b(0x178)](a19_0x26844b));}const _fileNameByFullName={};function a19_0x7cc4(_0x2e407e,_0x15bfb1){const _0x28cc9f=a19_0x28cc();return a19_0x7cc4=function(_0x7cc485,_0x2701d4){_0x7cc485=_0x7cc485-0x161;let _0xe70aa3=_0x28cc9f[_0x7cc485];return _0xe70aa3;},a19_0x7cc4(_0x2e407e,_0x15bfb1);}try{if(typeof describe==='function'&&typeof global!==a19_0x450c3b(0x1d1)){const _origDescribe=describe,_describeTitleStack=[],_resolveCallerFile=()=>{const _0xe3b104=a19_0x450c3b,_0x6ce389={'VNGZf':function(_0x4afb57,_0x38b9d5){return _0x4afb57(_0x38b9d5);},'wUJVy':_0xe3b104(0x19a),'XuaIa':function(_0x239582,_0x1812d1){return _0x239582(_0x1812d1);},'xTgRx':'node:','vwpnn':_0xe3b104(0x175)},_0x7173a8=Error['prepareStackTrace'];try{const _0x4cc508=new Error();Error[_0xe3b104(0x18c)]=(_0x4aaf61,_0xeb3cd2)=>_0xeb3cd2;const _0x38d332=_0x4cc508[_0xe3b104(0x188)];Error['prepareStackTrace']=_0x7173a8;if(Array[_0xe3b104(0x173)](_0x38d332))for(const _0x242b7e of _0x38d332){const _0x481457=_0x242b7e[_0xe3b104(0x1cd)]&&_0x242b7e['getFileName']();if(_0x481457&&!_0x481457[_0xe3b104(0x1e8)](_0xe3b104(0x170)+_0x6ce389[_0xe3b104(0x1c4)](require,_0x6ce389['wUJVy'])[_0xe3b104(0x1a1)]+'jasmine'+_0x6ce389[_0xe3b104(0x186)](require,_0x6ce389[_0xe3b104(0x17a)])[_0xe3b104(0x1a1)])&&!_0x481457['startsWith'](_0x6ce389['xTgRx'])&&!_0x481457[_0xe3b104(0x1e8)](_0x6ce389[_0xe3b104(0x194)]))return _0x481457;}}catch(_0x367a78){Error[_0xe3b104(0x18c)]=_0x7173a8;}return null;},_wrappedDescribe=function(_0x3f95eb,_0xd5edcd){const _0xd4ba8f=a19_0x450c3b,_0x3096f1={'zJlbE':function(_0x212476){return _0x212476();},'xrfBu':function(_0x1aca5a,_0x49f4c7){return _0x1aca5a&&_0x49f4c7;},'fdCTE':function(_0x388ec1,_0x5025b0,_0x1264a4){return _0x388ec1(_0x5025b0,_0x1264a4);}};let _0xa9b69f=null;try{_0xa9b69f=_0x3096f1['zJlbE'](_resolveCallerFile);}catch(_0x138d6b){}_describeTitleStack[_0xd4ba8f(0x1ed)](_0x3f95eb);const _0x4c53f9=_describeTitleStack[_0xd4ba8f(0x1cc)]('\x20');_0x3096f1['xrfBu'](_0xa9b69f,_0x4c53f9)&&(_fileNameByFullName[_0x4c53f9]=_0xa9b69f);try{return _0x3096f1[_0xd4ba8f(0x1ca)](_origDescribe,_0x3f95eb,_0xd5edcd);}finally{_describeTitleStack[_0xd4ba8f(0x1c0)]();}};Object['keys'](_origDescribe)[a19_0x450c3b(0x1e6)](_0x2f58e0=>{_wrappedDescribe[_0x2f58e0]=_origDescribe[_0x2f58e0];}),global[a19_0x450c3b(0x1c5)]=_wrappedDescribe;}}catch(a19_0x4b3ef3){logger[a19_0x450c3b(0x1b5)](a19_0x450c3b(0x18e)+util[a19_0x450c3b(0x178)](a19_0x4b3ef3));}try{if(typeof jasmine!=='undefined'&&jasmine[a19_0x450c3b(0x1ef)]){const BrowserStackJasmineReporter=require('./bstack-reporter/customReporter'),a19_0x202214={};a19_0x202214[a19_0x450c3b(0x195)]=_fileNameByFullName,jasmine[a19_0x450c3b(0x1ef)]()['addReporter'](new BrowserStackJasmineReporter(a19_0x202214)),logger[a19_0x450c3b(0x1b5)]('[jasmine\x20setup]\x20BrowserStack\x20reporter\x20registered\x20additively\x20via\x20jasmine.getEnv().addReporter');}else logger[a19_0x450c3b(0x1b5)](a19_0x450c3b(0x1a0));}catch(a19_0x5157c8){logger['debug'](a19_0x450c3b(0x1e9)+util['format'](a19_0x5157c8));}try{typeof jasmine!=='undefined'&&jasmine[a19_0x450c3b(0x1ef)]&&jasmine[a19_0x450c3b(0x1ef)]()[a19_0x450c3b(0x1d5)]({'specStarted'(_0x5371f9){const _0x21a5c2=a19_0x450c3b,_0x56f7cb={};_0x56f7cb['bEokb']=function(_0x37a700,_0x452361){return _0x37a700||_0x452361;};const _0x42195b=_0x56f7cb;_activeResultId=_0x5371f9&&_0x5371f9['id'],_activeFullName=_0x5371f9&&_0x5371f9[_0x21a5c2(0x172)],_activeResultRef=_0x42195b[_0x21a5c2(0x1be)](_0x5371f9,null);},'specDone'(){}});}catch(a19_0xe6880b){logger[a19_0x450c3b(0x1b5)](a19_0x450c3b(0x183)+util[a19_0x450c3b(0x178)](a19_0xe6880b));}const _resolveAutoScanning=()=>{const _0xd2f2c=a19_0x450c3b,_0x3f3f9f={};_0x3f3f9f[_0xd2f2c(0x1c1)]=function(_0x4dc69b,_0xcde35b){return _0x4dc69b===_0xcde35b;};const _0xc72da3=_0x3f3f9f;let _0x3423c4=!![];try{const _0x218214=JSON[_0xd2f2c(0x1a3)](process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']||'{}');_0xc72da3[_0xd2f2c(0x1c1)](_0x218214[_0xd2f2c(0x1b9)],![])&&(_0x3423c4=![]);}catch(_0x475bdf){logger['debug'](_0xd2f2c(0x16d)+_0x475bdf[_0xd2f2c(0x1da)]);}return _0x3423c4;};try{typeof beforeEach==='function'&&beforeEach(function bstackA11yBeforeEach(){const _0x5a9c28=a19_0x450c3b,_0x1d47e9={'knHxb':function(_0x38721d){return _0x38721d();},'xpLdj':function(_0x214965,_0x415d17,_0x5e37c3){return _0x214965(_0x415d17,_0x5e37c3);},'afagI':function(_0x436fd0,_0xb55d46){return _0x436fd0&&_0xb55d46;},'VEgWT':_0x5a9c28(0x1eb),'MPGXU':'bstackA11yScanOptions'};try{const _0x221e64=_0x1d47e9[_0x5a9c28(0x187)](_resolveAutoScanning),_0x16429d=_0x1d47e9[_0x5a9c28(0x1c6)](shouldScanTestForAccessibility,null,![]),_0x244e07=_0x1d47e9[_0x5a9c28(0x1a8)](_0x221e64,_0x16429d);globals[_0x5a9c28(0x1d2)](_0x1d47e9[_0x5a9c28(0x1b4)],_0x244e07),globals[_0x5a9c28(0x1d2)](_0x1d47e9[_0x5a9c28(0x1f0)],null);}catch(_0x1a0cfc){logger[_0x5a9c28(0x1b5)](_0x5a9c28(0x196)+util[_0x5a9c28(0x178)](_0x1a0cfc));}}),typeof afterEach===a19_0x450c3b(0x1e1)&&afterEach(async function bstackA11ySessionAndScanAfterEach(){const _0x527422=a19_0x450c3b,_0x315dab={'UThgf':function(_0x5a695c,_0x302688){return _0x5a695c>_0x302688;},'uyGvd':function(_0x137cdb,_0x372e70){return _0x137cdb>_0x372e70;},'lvrTI':_0x527422(0x19e),'chYXg':function(_0x3dffe5,_0x456322){return _0x3dffe5+_0x456322;},'LHwhg':_0x527422(0x199),'LMFoD':_0x527422(0x171),'XjKGk':_0x527422(0x1a6),'IgQlo':_0x527422(0x1bd),'PPAvG':_0x527422(0x176),'ukwXB':_0x527422(0x185),'PtyOq':function(_0x54c557){return _0x54c557();},'kUXHV':_0x527422(0x177),'gPpiS':function(_0x3dedab,_0x5e41c1){return _0x3dedab>_0x5e41c1;},'eelWF':_0x527422(0x1eb),'MaFzd':_0x527422(0x1ce),'tAdqf':'[jasmine\x20setup]\x20Accessibility\x20scan\x20completed\x20successfully','iavCC':_0x527422(0x165),'EvsyI':'[jasmine\x20setup]\x20Auto\x20scan\x20disabled;\x20skipping\x20scan,\x20saving\x20accumulated\x20results','HPhpk':_0x527422(0x1c3),'hjnsv':_0x527422(0x1dd),'MGNpN':_0x527422(0x1d7)};try{if(Array[_0x527422(0x173)](global['__drivers'])&&_0x315dab[_0x527422(0x18b)](global['__drivers']['length'],0x1)){const _0x48e7e7=global[_0x527422(0x1d4)][0x0];try{await _0x48e7e7['session_'],await _0x48e7e7['initQuit']();}catch(_0x2ebe59){logger[_0x527422(0x1b5)](_0x527422(0x193)+util[_0x527422(0x178)](_0x2ebe59));}global[_0x527422(0x1d4)]['shift']();}}catch(_0x4c459a){logger[_0x527422(0x1b5)](_0x527422(0x174)+util[_0x527422(0x178)](_0x4c459a));}try{if(Array[_0x527422(0x173)](global['__drivers'])&&_0x315dab[_0x527422(0x192)](global['__drivers'][_0x527422(0x1f2)],0x0)&&global[_0x527422(0x1d4)][0x0]){const _0xeadfe3=_activeFullName||global[_0x527422(0x1f3)];if(!global['__skipSessionName']&&_0xeadfe3){global[_0x527422(0x1f3)]=_0xeadfe3;try{await global[_0x527422(0x1d4)][0x0][_0x527422(0x1d9)]('browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20'+JSON[_0x527422(0x1e2)](_0xeadfe3)+'}}'),global['__drivers'][0x0]['sessionNameSet__']=!![];}catch(_0x47beb3){logger[_0x527422(0x1b5)](_0x527422(0x1df)+util[_0x527422(0x178)](_0x47beb3));}}if(!global[_0x527422(0x1bf)])try{const _0x4d5b6f=_activeResultRef&&Array[_0x527422(0x173)](_activeResultRef[_0x527422(0x1e7)])?_activeResultRef[_0x527422(0x1e7)]:[],_0x2fbcf8=_0x315dab[_0x527422(0x192)](_0x4d5b6f[_0x527422(0x1f2)],0x0),_0x5ea7a4=_0x2fbcf8?_0x4d5b6f[0x0]&&_0x4d5b6f[0x0][_0x527422(0x1da)]||_0x315dab['lvrTI']:null;try{await global[_0x527422(0x1d4)][0x0]['executeScript'](_0x527422(0x19d)+JSON[_0x527422(0x1e2)](_0x2fbcf8?_0x315dab[_0x527422(0x17f)](_0x315dab[_0x527422(0x1c9)],_0x5ea7a4):_0x315dab[_0x527422(0x1b1)])+_0x527422(0x1ac)+(_0x2fbcf8?_0x315dab['XjKGk']:_0x315dab[_0x527422(0x1db)])+_0x527422(0x1e3));}catch(_0x479bed){logger['debug'](_0x527422(0x191)+util[_0x527422(0x178)](_0x479bed));}_0x2fbcf8&&(global[_0x527422(0x1a9)]=!![]),await helper[_0x527422(0x1aa)](global[_0x527422(0x1d4)][0x0],_0x2fbcf8?_0x315dab['PPAvG']:_0x315dab[_0x527422(0x1af)],_0x5ea7a4);}catch(_0x53f82a){logger[_0x527422(0x1b5)](_0x527422(0x1de)+util[_0x527422(0x178)](_0x53f82a));}}}catch(_0x41e4b2){logger[_0x527422(0x1b5)](_0x527422(0x198)+util['format'](_0x41e4b2));}try{if(_0x315dab['PtyOq'](isAccessibilityAutomationSession)&&globals[_0x527422(0x1cb)](_0x315dab[_0x527422(0x17d)])&&Array[_0x527422(0x173)](global['__drivers'])&&_0x315dab['gPpiS'](global[_0x527422(0x1d4)][_0x527422(0x1f2)],0x0)&&global[_0x527422(0x1d4)][0x0]){const _0x22fe6a=testRunMap[_0x527422(0x1cf)](_activeResultId),_0xb63848={};_0xb63848[_0x527422(0x1a4)]=_0x22fe6a,_0xb63848[_0x527422(0x16f)]=process[_0x527422(0x16c)][testHubConstants[_0x527422(0x1ee)][_0x527422(0x1e0)]],_0xb63848['thJwtToken']=process['env'][testHubConstants['ENV_VAR'][_0x527422(0x1d8)]];const _0x2dcc7c=_0xb63848;logger[_0x527422(0x1b5)](_0x527422(0x1e5)+JSON[_0x527422(0x1e2)](_0x2dcc7c));if(globals['getGlobal'](_0x315dab[_0x527422(0x1ab)])){logger[_0x527422(0x1b5)](_0x315dab[_0x527422(0x1dc)]);const _0x2e74e2=await accessibilityRetryHelper[_0x527422(0x1a2)](global[_0x527422(0x1d4)][0x0],global[_0x527422(0x1f1)]);_0x2e74e2?logger['debug'](_0x315dab[_0x527422(0x163)]):logger[_0x527422(0x18f)](_0x315dab[_0x527422(0x1c7)]);}else logger[_0x527422(0x1b5)](_0x315dab[_0x527422(0x1b2)]);globals[_0x527422(0x1cb)](_0x315dab[_0x527422(0x1a5)])&&(_0x2dcc7c['is_mobile_session']=!![]);const _0x318427=await accessibilityRetryHelper[_0x527422(0x1ae)](global[_0x527422(0x1d4)][0x0],_0x2dcc7c);_0x318427?logger[_0x527422(0x1b5)](_0x315dab[_0x527422(0x1c2)]):logger[_0x527422(0x18f)](_0x315dab[_0x527422(0x180)]);}}catch(_0x43ea49){logger['error'](_0x527422(0x16b)+util[_0x527422(0x178)](_0x43ea49));}});}catch(a19_0x4f6514){logger[a19_0x450c3b(0x1b5)](a19_0x450c3b(0x184)+util[a19_0x450c3b(0x178)](a19_0x4f6514));}try{typeof afterAll===a19_0x450c3b(0x1e1)&&afterAll(async function bstackFinalDriverQuit(){const _0x1ad820=a19_0x450c3b,_0x4d8cae={};_0x4d8cae[_0x1ad820(0x17c)]=function(_0x10955b,_0x477c69){return _0x10955b>_0x477c69;};const _0x54117a=_0x4d8cae;try{Array['isArray'](global[_0x1ad820(0x1d4)])&&_0x54117a[_0x1ad820(0x17c)](global[_0x1ad820(0x1d4)][_0x1ad820(0x1f2)],0x0)&&global['__drivers'][0x0]&&(await global[_0x1ad820(0x1d4)][0x0][_0x1ad820(0x1e4)],await global[_0x1ad820(0x1d4)][0x0][_0x1ad820(0x197)]());}catch(_0x28b5c2){logger[_0x1ad820(0x1b5)](_0x1ad820(0x18d)+util[_0x1ad820(0x178)](_0x28b5c2));}});}catch(a19_0x2f962a){logger['debug'](a19_0x450c3b(0x1d0)+util['format'](a19_0x2f962a));}function a19_0x28cc(){const _0x2def8b=['108FizEgu','browserstackPlatformIndex','tAdqf','5370174QMxhpq','[jasmine\x20setup]\x20Accessibility\x20scan\x20failed\x20after\x20retry\x20attempts','isBrowserstackInfra','7qpfQsm','winstonLogger','@playwright/test','platformIndex','[jasmine\x20setup]\x20Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20this\x20spec.\x20Error:\x20','env','[jasmine\x20setup]\x20Error\x20parsing\x20autoScanning\x20config,\x20using\x20default\x20(true):\x20','../../helpers/helper','thBuildUuid','bin','Passed','fullName','isArray','[jasmine\x20setup]\x20Exception\x20in\x20stale-driver\x20shift\x20check:\x20','jasmine-core','failed','isAccessibilityPlatform','format','split','wUJVy','../../helpers/accessibility-automation/helper','lfmXF','kUXHV','../../index','chYXg','MGNpN','BROWSERSTACK_JASMINE_CONFIG','11NAzmXq','[jasmine\x20setup]\x20Exception\x20registering\x20a11y\x20result-id\x20bridge\x20reporter:\x20','[jasmine\x20setup]\x20Exception\x20registering\x20a11y\x20beforeEach/afterEach\x20hooks:\x20','passed','XuaIa','knHxb','stack','[jasmine\x20setup]\x20Patching\x20Selenium\x20WebDriver\x20(browserstackAgentV2,\x20same-scope\x20require)','util','UThgf','prepareStackTrace','[jasmine\x20setup]\x20Exception\x20in\x20final\x20driver\x20quit:\x20','[jasmine\x20setup]\x20Exception\x20installing\x20describe-wrap\x20filename\x20capture:\x20','warn','4|0|1|2|3','[jasmine\x20setup]\x20Exception\x20annotating\x20Automate\x20session:\x20','uyGvd','[jasmine\x20setup]\x20Exception\x20quitting\x20stale\x20driver\x20before\x20shift:\x20','vwpnn','fileNameByFullName','[jasmine\x20setup]\x20Exception\x20in\x20a11y\x20beforeEach:\x20','initQuit','[jasmine\x20setup]\x20Exception\x20in\x20Automate\x20session\x20name/status\x20block:\x20','Failed:\x20','path','1006QmySSn','581862fRBxrJ','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','Spec\x20failed','CONFIG','[jasmine\x20setup]\x20global\x20`jasmine`\x20not\x20available\x20at\x20helper\x20load;\x20reporter\x20not\x20registered','sep','performScanWithRetry','parse','thTestRunUuid','HPhpk','error','../../helpers/globals','afagI','__sessionFailed','markSessionStatus','eelWF',',\x22level\x22:\x20\x22','isTrue','saveAccessibilityResultsWithRetry','ukwXB','skipSessionName','LMFoD','EvsyI','4120088BYNGCC','VEgWT','debug','5851708MOeLGs','./testRunMap','1266114sDFfXN','autoScanning','getPackageVersion','31357290YrIkWp','5IWWOff','info','bEokb','__skipSessionStatus','pop','cEWCe','hjnsv','isMobilePlatform','VNGZf','describe','xpLdj','iavCC','browserstackAgentV2','LHwhg','fdCTE','getGlobal','join','getFileName','[jasmine\x20setup]\x20Performing\x20accessibility\x20scan\x20with\x20retry\x20before\x20saving\x20results','get','[jasmine\x20setup]\x20Exception\x20registering\x20afterAll\x20final\x20quit\x20hook:\x20','undefined','setGlobal','../../helpers/testhub/constants','__drivers','addReporter','skipSessionStatus','[jasmine\x20setup]\x20Failed\x20to\x20save\x20accessibility\x20results\x20after\x20retry\x20attempts','BROWSERSTACK_TESTHUB_JWT','executeScript','message','IgQlo','MaFzd','[jasmine\x20setup]\x20Accessibility\x20results\x20saved\x20successfully','[jasmine\x20setup]\x20Exception\x20marking\x20Automate\x20session\x20status:\x20','[jasmine\x20setup]\x20Exception\x20setting\x20Automate\x20session\x20name:\x20','BROWSERSTACK_TESTHUB_UUID','function','stringify','\x22}}','session_','[jasmine\x20setup]\x20Accessibility\x20extension\x20data\x20for\x20current\x20spec:\x20','forEach','failedExpectations','includes','[jasmine\x20setup]\x20Exception\x20registering\x20BrowserStack\x20reporter:\x20','__skipSessionName','bstackA11yShouldScan','platformCaps','push','ENV_VAR','getEnv','MPGXU','browserstackSessionName','length','sessionName'];a19_0x28cc=function(){return _0x2def8b;};return a19_0x28cc();}module['exports']={};
|
|
1
|
+
'use strict';const a19_0x85041f=a19_0xdfd6;(function(_0x1b4f0c,_0x1dbf9a){const _0x5f168b=a19_0xdfd6,_0x139110=_0x1b4f0c();while(!![]){try{const _0x40d6ef=-parseInt(_0x5f168b(0x15b))/0x1*(parseInt(_0x5f168b(0x185))/0x2)+-parseInt(_0x5f168b(0x1ba))/0x3*(parseInt(_0x5f168b(0x194))/0x4)+parseInt(_0x5f168b(0x151))/0x5*(-parseInt(_0x5f168b(0x181))/0x6)+-parseInt(_0x5f168b(0x17c))/0x7*(-parseInt(_0x5f168b(0x1b7))/0x8)+parseInt(_0x5f168b(0x156))/0x9+parseInt(_0x5f168b(0x14d))/0xa+parseInt(_0x5f168b(0x19e))/0xb*(parseInt(_0x5f168b(0x16e))/0xc);if(_0x40d6ef===_0x1dbf9a)break;else _0x139110['push'](_0x139110['shift']());}catch(_0x484376){_0x139110['push'](_0x139110['shift']());}}}(a19_0x2fb1,0x1b8db));const util=require(a19_0x85041f(0x18e)),logger=require(a19_0x85041f(0x184))['winstonLogger'],helper=require(a19_0x85041f(0x16d)),globals=require(a19_0x85041f(0x1b6)),{shouldProcessEventForTesthub}=require(a19_0x85041f(0x1c2)),testHubConstants=require(a19_0x85041f(0x15a)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a19_0x85041f(0x1ab)),accessibilityRetryHelper=require('../../helpers/accessibility-automation/accessibilityRetryHelper'),testRunMap=require(a19_0x85041f(0x140));let _activeResultId=null,_activeFullName=null,_activeResultRef=null,_bstackConfig=null;try{const rawConfig=process['env'][a19_0x85041f(0x195)]||process['env']['CONFIG'];rawConfig!==undefined&&(_bstackConfig=JSON[a19_0x85041f(0x17d)](rawConfig));}catch(a19_0x2ee185){logger[a19_0x85041f(0x149)]('[jasmine\x20setup]\x20Failed\x20to\x20parse\x20BrowserStack\x20config\x20from\x20env:\x20'+util['format'](a19_0x2ee185));}try{if(_bstackConfig&&!helper[a19_0x85041f(0x172)]('@playwright/test')){const tiSizc=a19_0x85041f(0x187)['split']('|');let OqCPaR=0x0;while(!![]){switch(tiSizc[OqCPaR++]){case'0':global[a19_0x85041f(0x1b5)]=_bstackConfig['platformIndex'];continue;case'1':shouldProcessEventForTesthub()?require(a19_0x85041f(0x146))['browserstackAgentV2'](_bstackConfig,null,!![]):require(a19_0x85041f(0x146))[a19_0x85041f(0x18f)](_bstackConfig);continue;case'2':logger[a19_0x85041f(0x149)](a19_0x85041f(0x16a));continue;case'3':helper[a19_0x85041f(0x18b)]()?(global[a19_0x85041f(0x1ad)]=helper[a19_0x85041f(0x14e)](_bstackConfig[a19_0x85041f(0x141)]),global[a19_0x85041f(0x1b3)]=helper[a19_0x85041f(0x14e)](_bstackConfig[a19_0x85041f(0x1be)])):(global['__skipSessionName']=!![],global[a19_0x85041f(0x1b3)]=!![]);continue;case'4':global[a19_0x85041f(0x1a9)]=_bstackConfig[a19_0x85041f(0x17e)]||{};continue;}break;}}}catch(a19_0x34b484){logger[a19_0x85041f(0x149)](a19_0x85041f(0x1a8)+util[a19_0x85041f(0x191)](a19_0x34b484));}const _fileNameByFullName={};function a19_0x2fb1(){const _0x5bf5b1=['jasmine','initQuit','aUhIN','kYkff','aDsDu','[jasmine\x20setup]\x20Exception\x20during\x20WebDriver\x20patch\x20load:\x20','__platformCaps','LAbYs','../../helpers/accessibility-automation/helper','FryBd','__skipSessionName','[jasmine\x20setup]\x20Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20this\x20spec.\x20Error:\x20','warn','hCaWQ','gTaVC','thTestRunUuid','__skipSessionStatus','error','browserstackPlatformIndex','../../helpers/globals','689816HGZZxv','DNiep','__drivers','425514qHCHfG','stack','CitLi','setGlobal','skipSessionStatus','BROWSERSTACK_TESTHUB_JWT','startsWith','[jasmine\x20setup]\x20Exception\x20in\x20a11y\x20beforeEach:\x20','../../helpers/testhub/utils','addReporter','sep',',\x22level\x22:\x20\x22','function','./testRunMap','skipSessionName','[jasmine\x20setup]\x20Exception\x20installing\x20describe-wrap\x20filename\x20capture:\x20','emukz','[jasmine\x20setup]\x20Exception\x20registering\x20afterAll\x20final\x20quit\x20hook:\x20','[jasmine\x20setup]\x20Exception\x20setting\x20Automate\x20session\x20name:\x20','../../index','isArray','[jasmine\x20setup]\x20Accessibility\x20results\x20saved\x20successfully','debug','pop','BROWSERSTACK_TESTHUB_UUID','jasmine-core','1016860QAKAfc','isTrue','UhBWr','join','197435EaaVPu','[jasmine\x20setup]\x20Accessibility\x20scan\x20completed\x20successfully','thJwtToken','xtWpB','[jasmine\x20setup]\x20Error\x20parsing\x20autoScanning\x20config,\x20using\x20default\x20(true):\x20','1121724iLBYBY','length','[jasmine\x20setup]\x20Failed\x20to\x20save\x20accessibility\x20results\x20after\x20retry\x20attempts','aNAEU','../../helpers/testhub/constants','5JEIxma','[jasmine\x20setup]\x20Exception\x20registering\x20a11y\x20beforeEach/afterEach\x20hooks:\x20','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','[jasmine\x20setup]\x20Exception\x20marking\x20Automate\x20session\x20status:\x20','session_','gbNgr','ENV_VAR','isAccessibilityPlatform','viSJc','ZRqRW','env','performScanWithRetry','Spec\x20failed','bstackA11yShouldScan','AmaNL','[jasmine\x20setup]\x20Patching\x20Selenium\x20WebDriver\x20(browserstackAgentV2,\x20same-scope\x20require)','RrxQL','includes','../../helpers/helper','1317972zXmAUS','getGlobal','TKXHU','failedExpectations','getPackageVersion','Failed:\x20','NbFug','thBuildUuid','executeScript','push','prepareStackTrace','stringify','get','getEnv','7MqaASC','parse','platformCaps','wtkIi','message','30yhtlXy','is_mobile_session','romTC','../../helpers/logger','75964XGTsWO','bin','2|1|4|0|3','rSyqk','Cxkdh','getFileName','isBrowserstackInfra','saveAccessibilityResultsWithRetry','pLGXO','util','browserstackAgentV2','[jasmine\x20setup]\x20Exception\x20quitting\x20stale\x20driver\x20before\x20shift:\x20','format','KUrBQ','markSessionStatus','4efOOwi','BROWSERSTACK_JASMINE_CONFIG','SmKsL','failed','[jasmine\x20setup]\x20Exception\x20registering\x20BrowserStack\x20reporter:\x20','vzxLY','fileNameByFullName','Passed','isMobilePlatform','vUIHI','33PmmHAq','undefined','sessionName','__sessionFailed','[jasmine\x20setup]\x20Exception\x20in\x20final\x20driver\x20quit:\x20'];a19_0x2fb1=function(){return _0x5bf5b1;};return a19_0x2fb1();}try{if(typeof describe===a19_0x85041f(0x13f)&&typeof global!=='undefined'){const _origDescribe=describe,_describeTitleStack=[],_resolveCallerFile=()=>{const _0x25f034=a19_0x85041f,_0x3e3e44={'FryBd':function(_0x3f6f52,_0x45ceef){return _0x3f6f52(_0x45ceef);},'NbFug':'path','romTC':'node:','AmaNL':_0x25f034(0x14c)},_0x3a5d41=Error[_0x25f034(0x178)];try{const _0x44fe56=new Error();Error[_0x25f034(0x178)]=(_0x261ab0,_0x75173a)=>_0x75173a;const _0x5b9f31=_0x44fe56[_0x25f034(0x1bb)];Error[_0x25f034(0x178)]=_0x3a5d41;if(Array[_0x25f034(0x147)](_0x5b9f31))for(const _0x319d28 of _0x5b9f31){const _0x1635b8=_0x319d28[_0x25f034(0x18a)]&&_0x319d28[_0x25f034(0x18a)]();if(_0x1635b8&&!_0x1635b8['includes'](_0x25f034(0x186)+_0x3e3e44[_0x25f034(0x1ac)](require,_0x3e3e44[_0x25f034(0x174)])[_0x25f034(0x1c4)]+_0x25f034(0x1a3)+_0x3e3e44['FryBd'](require,_0x3e3e44[_0x25f034(0x174)])['sep'])&&!_0x1635b8[_0x25f034(0x1c0)](_0x3e3e44[_0x25f034(0x183)])&&!_0x1635b8[_0x25f034(0x16c)](_0x3e3e44[_0x25f034(0x169)]))return _0x1635b8;}}catch(_0x31c4f4){Error[_0x25f034(0x178)]=_0x3a5d41;}return null;},_wrappedDescribe=function(_0x59ef0c,_0x9963f0){const _0x2af275=a19_0x85041f,_0x15bb25={'TKXHU':function(_0x1f02ed){return _0x1f02ed();},'hCaWQ':function(_0x25b8b3,_0x116bce){return _0x25b8b3&&_0x116bce;},'QOoXx':function(_0x3fc412,_0x2d8d2c,_0x4ecb01){return _0x3fc412(_0x2d8d2c,_0x4ecb01);}};let _0x5ba0fa=null;try{_0x5ba0fa=_0x15bb25[_0x2af275(0x170)](_resolveCallerFile);}catch(_0x4707b1){}_describeTitleStack[_0x2af275(0x177)](_0x59ef0c);const _0x4ee2dc=_describeTitleStack[_0x2af275(0x150)]('\x20');_0x15bb25[_0x2af275(0x1b0)](_0x5ba0fa,_0x4ee2dc)&&(_fileNameByFullName[_0x4ee2dc]=_0x5ba0fa);try{return _0x15bb25['QOoXx'](_origDescribe,_0x59ef0c,_0x9963f0);}finally{_describeTitleStack[_0x2af275(0x14a)]();}};Object['keys'](_origDescribe)['forEach'](_0x54ca13=>{_wrappedDescribe[_0x54ca13]=_origDescribe[_0x54ca13];}),global['describe']=_wrappedDescribe;}}catch(a19_0x11d199){logger[a19_0x85041f(0x149)](a19_0x85041f(0x142)+util['format'](a19_0x11d199));}try{if(typeof jasmine!==a19_0x85041f(0x19f)&&jasmine[a19_0x85041f(0x17b)]){const BrowserStackJasmineReporter=require('./bstack-reporter/customReporter'),a19_0x41bed7={};a19_0x41bed7[a19_0x85041f(0x19a)]=_fileNameByFullName,jasmine[a19_0x85041f(0x17b)]()[a19_0x85041f(0x1c3)](new BrowserStackJasmineReporter(a19_0x41bed7)),logger[a19_0x85041f(0x149)]('[jasmine\x20setup]\x20BrowserStack\x20reporter\x20registered\x20additively\x20via\x20jasmine.getEnv().addReporter');}else logger['debug']('[jasmine\x20setup]\x20global\x20`jasmine`\x20not\x20available\x20at\x20helper\x20load;\x20reporter\x20not\x20registered');}catch(a19_0x3449c4){logger[a19_0x85041f(0x149)](a19_0x85041f(0x198)+util['format'](a19_0x3449c4));}try{typeof jasmine!==a19_0x85041f(0x19f)&&jasmine[a19_0x85041f(0x17b)]&&jasmine[a19_0x85041f(0x17b)]()[a19_0x85041f(0x1c3)]({'specStarted'(_0x16ca85){const _0xf66f61=a19_0x85041f,_0x5d0a89={};_0x5d0a89[_0xf66f61(0x160)]=function(_0x1419d1,_0x39ff01){return _0x1419d1||_0x39ff01;};const _0x58ff47=_0x5d0a89;_activeResultId=_0x16ca85&&_0x16ca85['id'],_activeFullName=_0x16ca85&&_0x16ca85['fullName'],_activeResultRef=_0x58ff47[_0xf66f61(0x160)](_0x16ca85,null);},'specDone'(){}});}catch(a19_0x34f0d2){logger[a19_0x85041f(0x149)]('[jasmine\x20setup]\x20Exception\x20registering\x20a11y\x20result-id\x20bridge\x20reporter:\x20'+util[a19_0x85041f(0x191)](a19_0x34f0d2));}const _resolveAutoScanning=()=>{const _0x25535f=a19_0x85041f,_0x3e3b6a={};_0x3e3b6a[_0x25535f(0x164)]=function(_0x179bad,_0x51038a){return _0x179bad===_0x51038a;};const _0x36296e=_0x3e3b6a;let _0x293899=!![];try{const _0x2c7c93=JSON['parse'](process[_0x25535f(0x165)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']||'{}');_0x36296e[_0x25535f(0x164)](_0x2c7c93['autoScanning'],![])&&(_0x293899=![]);}catch(_0x4bd412){logger[_0x25535f(0x149)](_0x25535f(0x155)+_0x4bd412[_0x25535f(0x180)]);}return _0x293899;};function a19_0xdfd6(_0x114c25,_0x23785e){const _0x2fb131=a19_0x2fb1();return a19_0xdfd6=function(_0xdfd693,_0x21b8b2){_0xdfd693=_0xdfd693-0x13e;let _0x4c344a=_0x2fb131[_0xdfd693];return _0x4c344a;},a19_0xdfd6(_0x114c25,_0x23785e);}try{typeof beforeEach===a19_0x85041f(0x13f)&&beforeEach(function bstackA11yBeforeEach(){const _0x21241b=a19_0x85041f,_0x317b78={'RrxQL':function(_0x2f1b99){return _0x2f1b99();},'aUhIN':function(_0x4ef52b,_0x1077de,_0x27afca){return _0x4ef52b(_0x1077de,_0x27afca);},'viSJc':function(_0x500c23,_0x2d4d6f){return _0x500c23&&_0x2d4d6f;},'aNAEU':_0x21241b(0x168),'gTaVC':'bstackA11yScanOptions'};try{const _0x45dead=_0x317b78[_0x21241b(0x16b)](_resolveAutoScanning),_0x560220=_0x317b78[_0x21241b(0x1a5)](shouldScanTestForAccessibility,null,![]),_0x201546=_0x317b78[_0x21241b(0x163)](_0x45dead,_0x560220);globals[_0x21241b(0x1bd)](_0x317b78[_0x21241b(0x159)],_0x201546),globals['setGlobal'](_0x317b78[_0x21241b(0x1b1)],null);}catch(_0x9c55e1){logger[_0x21241b(0x149)](_0x21241b(0x1c1)+util[_0x21241b(0x191)](_0x9c55e1));}}),typeof afterEach==='function'&&afterEach(async function bstackA11ySessionAndScanAfterEach(){const _0x4aefb5=a19_0x85041f,_0x2f1725={'vUIHI':function(_0x12c481,_0x198274){return _0x12c481>_0x198274;},'VYKXL':function(_0x179909,_0x5ae04b){return _0x179909>_0x5ae04b;},'kYkff':_0x4aefb5(0x167),'xtWpB':function(_0x34de74,_0x1c8df8){return _0x34de74+_0x1c8df8;},'vzxLY':_0x4aefb5(0x173),'EhDVR':_0x4aefb5(0x19b),'TTvYu':_0x4aefb5(0x1b4),'pszFZ':'info','DNiep':_0x4aefb5(0x197),'sJrAM':'passed','Cxkdh':function(_0x3cd2e1){return _0x3cd2e1();},'wtkIi':_0x4aefb5(0x162),'LAbYs':function(_0xf2c02,_0x24c38a){return _0xf2c02>_0x24c38a;},'SmKsL':_0x4aefb5(0x168),'emukz':'[jasmine\x20setup]\x20Performing\x20accessibility\x20scan\x20with\x20retry\x20before\x20saving\x20results','CitLi':_0x4aefb5(0x152),'ONnvm':'[jasmine\x20setup]\x20Accessibility\x20scan\x20failed\x20after\x20retry\x20attempts','rSyqk':'[jasmine\x20setup]\x20Auto\x20scan\x20disabled;\x20skipping\x20scan,\x20saving\x20accumulated\x20results','KUrBQ':_0x4aefb5(0x19c),'aDsDu':_0x4aefb5(0x148),'pLGXO':_0x4aefb5(0x158)};try{if(Array[_0x4aefb5(0x147)](global[_0x4aefb5(0x1b9)])&&_0x2f1725[_0x4aefb5(0x19d)](global[_0x4aefb5(0x1b9)][_0x4aefb5(0x157)],0x1)){const _0xce5763=global[_0x4aefb5(0x1b9)][0x0];try{await _0xce5763[_0x4aefb5(0x15f)],await _0xce5763[_0x4aefb5(0x1a4)]();}catch(_0x274382){logger[_0x4aefb5(0x149)](_0x4aefb5(0x190)+util['format'](_0x274382));}global['__drivers']['shift']();}}catch(_0x510ce7){logger[_0x4aefb5(0x149)]('[jasmine\x20setup]\x20Exception\x20in\x20stale-driver\x20shift\x20check:\x20'+util['format'](_0x510ce7));}try{if(Array[_0x4aefb5(0x147)](global[_0x4aefb5(0x1b9)])&&_0x2f1725[_0x4aefb5(0x19d)](global[_0x4aefb5(0x1b9)][_0x4aefb5(0x157)],0x0)&&global[_0x4aefb5(0x1b9)][0x0]){const _0x2cec1d=_activeFullName||global[_0x4aefb5(0x1a0)];if(!global[_0x4aefb5(0x1ad)]&&_0x2cec1d){global['sessionName']=_0x2cec1d;try{await global[_0x4aefb5(0x1b9)][0x0][_0x4aefb5(0x176)]('browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20'+JSON[_0x4aefb5(0x179)](_0x2cec1d)+'}}'),global[_0x4aefb5(0x1b9)][0x0]['sessionNameSet__']=!![];}catch(_0x5305c9){logger[_0x4aefb5(0x149)](_0x4aefb5(0x145)+util['format'](_0x5305c9));}}if(!global['__skipSessionStatus'])try{const _0x30df68=_activeResultRef&&Array['isArray'](_activeResultRef[_0x4aefb5(0x171)])?_activeResultRef[_0x4aefb5(0x171)]:[],_0xc6ff56=_0x2f1725['VYKXL'](_0x30df68[_0x4aefb5(0x157)],0x0),_0x51af25=_0xc6ff56?_0x30df68[0x0]&&_0x30df68[0x0][_0x4aefb5(0x180)]||_0x2f1725[_0x4aefb5(0x1a6)]:null;try{await global[_0x4aefb5(0x1b9)][0x0][_0x4aefb5(0x176)](_0x4aefb5(0x15d)+JSON[_0x4aefb5(0x179)](_0xc6ff56?_0x2f1725[_0x4aefb5(0x154)](_0x2f1725[_0x4aefb5(0x199)],_0x51af25):_0x2f1725['EhDVR'])+_0x4aefb5(0x13e)+(_0xc6ff56?_0x2f1725['TTvYu']:_0x2f1725['pszFZ'])+'\x22}}');}catch(_0x4892e3){logger[_0x4aefb5(0x149)]('[jasmine\x20setup]\x20Exception\x20annotating\x20Automate\x20session:\x20'+util[_0x4aefb5(0x191)](_0x4892e3));}_0xc6ff56&&(global[_0x4aefb5(0x1a1)]=!![]),await helper[_0x4aefb5(0x193)](global[_0x4aefb5(0x1b9)][0x0],_0xc6ff56?_0x2f1725[_0x4aefb5(0x1b8)]:_0x2f1725['sJrAM'],_0x51af25);}catch(_0x8e391d){logger[_0x4aefb5(0x149)](_0x4aefb5(0x15e)+util[_0x4aefb5(0x191)](_0x8e391d));}}}catch(_0x58be8a){logger[_0x4aefb5(0x149)]('[jasmine\x20setup]\x20Exception\x20in\x20Automate\x20session\x20name/status\x20block:\x20'+util['format'](_0x58be8a));}try{if(_0x2f1725[_0x4aefb5(0x189)](isAccessibilityAutomationSession)&&globals[_0x4aefb5(0x16f)](_0x2f1725[_0x4aefb5(0x17f)])&&Array[_0x4aefb5(0x147)](global[_0x4aefb5(0x1b9)])&&_0x2f1725[_0x4aefb5(0x1aa)](global[_0x4aefb5(0x1b9)][_0x4aefb5(0x157)],0x0)&&global[_0x4aefb5(0x1b9)][0x0]){const _0x16c17c=testRunMap[_0x4aefb5(0x17a)](_activeResultId),_0x1602c8={};_0x1602c8[_0x4aefb5(0x1b2)]=_0x16c17c,_0x1602c8[_0x4aefb5(0x175)]=process['env'][testHubConstants[_0x4aefb5(0x161)][_0x4aefb5(0x14b)]],_0x1602c8[_0x4aefb5(0x153)]=process[_0x4aefb5(0x165)][testHubConstants[_0x4aefb5(0x161)][_0x4aefb5(0x1bf)]];const _0x5ec3c9=_0x1602c8;logger[_0x4aefb5(0x149)]('[jasmine\x20setup]\x20Accessibility\x20extension\x20data\x20for\x20current\x20spec:\x20'+JSON[_0x4aefb5(0x179)](_0x5ec3c9));if(globals[_0x4aefb5(0x16f)](_0x2f1725[_0x4aefb5(0x196)])){logger[_0x4aefb5(0x149)](_0x2f1725[_0x4aefb5(0x143)]);const _0x3ded62=await accessibilityRetryHelper[_0x4aefb5(0x166)](global[_0x4aefb5(0x1b9)][0x0],global['browserstackSessionName']);_0x3ded62?logger[_0x4aefb5(0x149)](_0x2f1725[_0x4aefb5(0x1bc)]):logger[_0x4aefb5(0x1af)](_0x2f1725['ONnvm']);}else logger[_0x4aefb5(0x149)](_0x2f1725[_0x4aefb5(0x188)]);globals[_0x4aefb5(0x16f)](_0x2f1725[_0x4aefb5(0x192)])&&(_0x5ec3c9[_0x4aefb5(0x182)]=!![]);const _0x17ae8d=await accessibilityRetryHelper[_0x4aefb5(0x18c)](global[_0x4aefb5(0x1b9)][0x0],_0x5ec3c9);_0x17ae8d?logger['debug'](_0x2f1725[_0x4aefb5(0x1a7)]):logger['warn'](_0x2f1725[_0x4aefb5(0x18d)]);}}catch(_0x337e34){logger[_0x4aefb5(0x1b4)](_0x4aefb5(0x1ae)+util['format'](_0x337e34));}});}catch(a19_0x2e3982){logger[a19_0x85041f(0x149)](a19_0x85041f(0x15c)+util[a19_0x85041f(0x191)](a19_0x2e3982));}try{typeof afterAll===a19_0x85041f(0x13f)&&afterAll(async function bstackFinalDriverQuit(){const _0x1dbada=a19_0x85041f,_0x362e31={};_0x362e31[_0x1dbada(0x14f)]=function(_0x5b4b65,_0x209ab9){return _0x5b4b65>_0x209ab9;};const _0x240b15=_0x362e31;try{Array[_0x1dbada(0x147)](global['__drivers'])&&_0x240b15['UhBWr'](global[_0x1dbada(0x1b9)][_0x1dbada(0x157)],0x0)&&global[_0x1dbada(0x1b9)][0x0]&&(await global[_0x1dbada(0x1b9)][0x0][_0x1dbada(0x15f)],await global[_0x1dbada(0x1b9)][0x0]['initQuit']());}catch(_0x451511){logger['debug'](_0x1dbada(0x1a2)+util[_0x1dbada(0x191)](_0x451511));}});}catch(a19_0x1b8767){logger['debug'](a19_0x85041f(0x144)+util[a19_0x85041f(0x191)](a19_0x1b8767));}module['exports']={};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a20_0x519686=a20_0x2411;(function(_0x5a91bf,_0x4fc8ed){const _0x2b1894=a20_0x2411,_0x3c0ce8=_0x5a91bf();while(!![]){try{const _0x3aef9a=-parseInt(_0x2b1894(0x194))/0x1*(-parseInt(_0x2b1894(0x199))/0x2)+parseInt(_0x2b1894(0x193))/0x3*(parseInt(_0x2b1894(0x192))/0x4)+parseInt(_0x2b1894(0x19f))/0x5+-parseInt(_0x2b1894(0x196))/0x6*(parseInt(_0x2b1894(0x1a0))/0x7)+-parseInt(_0x2b1894(0x19d))/0x8+-parseInt(_0x2b1894(0x1a1))/0x9+parseInt(_0x2b1894(0x191))/0xa;if(_0x3aef9a===_0x4fc8ed)break;else _0x3c0ce8['push'](_0x3c0ce8['shift']());}catch(_0x3e3565){_0x3c0ce8['push'](_0x3c0ce8['shift']());}}}(a20_0x1d31,0xd7541));function a20_0x2411(_0x45c2ba,_0x56e068){const _0x1d3101=a20_0x1d31();return a20_0x2411=function(_0x241110,_0xbd86b3){_0x241110=_0x241110-0x191;let _0x3b7113=_0x1d3101[_0x241110];return _0x3b7113;},a20_0x2411(_0x45c2ba,_0x56e068);}function a20_0x1d31(){const _0x1a3aae=['xaRjX','_size','BfMba','12549984ASpdrd','get','6216635VQzJNr','175eFNwdl','7828992LCyoQa','22125360oTeAHw','304CZjGWu','6117rOYLfK','381PVsmLi','QuSNQ','284442TEGrLO','set','hRHeq','4698xUijJp'];a20_0x1d31=function(){return _0x1a3aae;};return a20_0x1d31();}const _specUuidById=new Map();exports[a20_0x519686(0x197)]=(_0x537548,_0x285c67)=>{const _0xc9e693=a20_0x519686,_0x14aad0={};_0x14aad0['BfMba']=function(_0xc22f66,_0x43ee25){return _0xc22f66===_0x43ee25;};const _0x3e9672=_0x14aad0;if(_0x3e9672[_0xc9e693(0x19c)](_0x537548,undefined)||_0x3e9672[_0xc9e693(0x19c)](_0x537548,null))return;_specUuidById['set'](_0x537548,_0x285c67);},exports[a20_0x519686(0x19e)]=_0x5b56d8=>{const _0x321e7c=a20_0x519686,_0x590aff={};_0x590aff[_0x321e7c(0x198)]=function(_0x5412a5,_0x45335d){return _0x5412a5===_0x45335d;},_0x590aff[_0x321e7c(0x19a)]=function(_0x5cf334,_0x454118){return _0x5cf334===_0x454118;};const _0x39f91d=_0x590aff;if(_0x39f91d[_0x321e7c(0x198)](_0x5b56d8,undefined)||_0x39f91d['xaRjX'](_0x5b56d8,null))return undefined;return _specUuidById[_0x321e7c(0x19e)](_0x5b56d8);},exports['remove']=_0xf93e25=>{const _0x39b7be=a20_0x519686,_0x518045={};_0x518045[_0x39b7be(0x195)]=function(_0x21ef6f,_0xe7e1a0){return _0x21ef6f===_0xe7e1a0;};const _0xacd820=_0x518045;if(_0xacd820[_0x39b7be(0x195)](_0xf93e25,undefined)||_0xacd820[_0x39b7be(0x195)](_0xf93e25,null))return;_specUuidById['delete'](_0xf93e25);},exports[a20_0x519686(0x19b)]=()=>_specUuidById['size'];
|
package/src/bin/jest/command.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a21_0x152de0=a21_0x1978;(function(_0x53ae36,_0x5604da){const _0x15359e=a21_0x1978,_0x1c494a=_0x53ae36();while(!![]){try{const _0x5dbb0f=parseInt(_0x15359e(0x179))/0x1*(parseInt(_0x15359e(0xbd))/0x2)+-parseInt(_0x15359e(0x18f))/0x3+-parseInt(_0x15359e(0x112))/0x4+-parseInt(_0x15359e(0xad))/0x5*(-parseInt(_0x15359e(0xde))/0x6)+-parseInt(_0x15359e(0x14f))/0x7+-parseInt(_0x15359e(0x17d))/0x8+parseInt(_0x15359e(0x175))/0x9;if(_0x5dbb0f===_0x5604da)break;else _0x1c494a['push'](_0x1c494a['shift']());}catch(_0x1b5d4b){_0x1c494a['push'](_0x1c494a['shift']());}}}(a21_0xaa41,0x4d181));function a21_0xaa41(){const _0x76b849=['default','JgRHk','getMultiDriverWorkerConfig','../../helpers/logger','data-hooks.js','accessibility','../../helpers/test-orchestration/testOrchestrationHandler','readInitialOptions','../../helpers/performance/constants','dirname','Skipping\x20accessibility\x20env\x20setup\x20for\x20Playwright\x20due\x20to:\x20','--config','343616yAZkkg','platforms','AgSXZ','BROWSERSTACK_CAPABILITIES','wmoon','stringify','../v2/browserstackCLI','testEnvironment','testEnvironmentOptions','LQPOj','child\x20process\x20exited\x20with\x20code\x20','../../helpers/performance/performance-tester','info','../../helpers/puppeteer-helper','testContextOptions','parse','wVaFW','slice','SDK_CLEANUP','testObservability','false','timeout__','Found:\x20','win32','recursive','__isPlaywrightInstalled','launchBuild','JRyhV','jest','lUaLH','JEST_TEST_ORDER','Error\x20while\x20parsing\x20','dLOqu','replace','moduleNameMapper','Playwright\x20not\x20detected\x20or\x20error\x20setting\x20up\x20Jest-Playwright\x20integration:','getHubUrl','setupBrowserstackLocal','jest.config.','checkAccessibilityPlatformConfig','assign','shouldProcessEventForTesthub','reorderTestFiles','findTestFiles','DLznO','start','finalExecution','jest_browserstack.config.cjs','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','TugWY','bDFPv','requirePWModule','reporters','DtCsE','LQhvB','filterBrowserstackArgs','skipSessionName','browserStackPercyOptions','message','UfSFU','JEST','1331029PwIWkU','Test\x20orchestration\x20is\x20enabled,\x20initializing\x20orchestration\x20handler','Creating\x20','../../helpers/percy/utils','printBuildLink','format','jest-circus','parallels__','sCKhf','capabilities','jest_browserstack_results.json','[Jest\x20Command]\x20Could\x20not\x20configure\x20puppeteer-core\x20moduleNameMapper:\x20','abortBuildOnFailure','FRAMEWORKS','PACKAGE_TYPE','join','util','zwkrJ','runInBand','setupFiles','workingDir','getErrorMessageFromResults','jest_browserstack.config.js','exitCode','LtqdT','reGhI','resolveModule','isEmpty','wjwJY','VyFOi','platform','yNXBE','jRyxE','dbwiD','isCLIEnabled','maxWorkers','path','uyYJb','4046904lrlIrv','package.json','requireModule','\x0amodule.exports\x20=\x20config;','2449oBdZLD','USER_CONFIG_DETAILS_PATH','BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM','[Jest\x20Command]\x20Added\x20puppeteer-core/internal\x20moduleNameMapper\x20for\x20','265056hahCsZ','uSFci','parallelsPerPlatform','force','BROWSERSTACK_FRAMEWORK','EVENTS','json','useW3C','SDK_SETUP','^puppeteer-core/internal/(.*)','rmSync','retries__','../utils/clientTroubleshootingService','jest-runner','env','PYuXz','accessibilityOptions','RfPQb','1276098NqwWqf','runner','isUndefined','apply','puppeteer-core/package.json','QlxsU','length','testSequencer','\x20with\x20browserstack\x20jest\x20configs','browserStackLogLevel','serial__','push','QXdwu','config','inherit','testRunner','lvzzX','Exception\x20in\x20stop\x20build\x20request\x20to\x20TestHub\x20:\x20','Deleted\x20fail-fast\x20state\x20folder:\x20','dnnKt','jest-runner-','257810dSnNEU','WeXcm','getInstance','jest.setup.js','readFileSync','existsSync','../../helpers/testhub/utils','failureThresholdCount','BubMF','initialize','customSequencer.js','maxRetries','KYiIG','jest-config','platformCaps','stop','280vcgOxN','npx','end','isNotUndefined','../../helpers/helper','Unable\x20to\x20find\x20jest-circus,\x20','../../helpers/test-observability/constants','../../helpers/accessibility-automation/helper','cwd','../utils/constants','yOGEP','IXuif','dsamm','isRunning','puppeteer','VVItQ','playwright','error','winstonLogger','\x20:\x20',',\x20CLI\x20running:\x20','yGZzG','isTestOrchestrationEnabled','retryTestsOnFailure','testTimeout','pyntv','tmKew','parseTestOrchestrationOptions','ajlqE','resolve','wZBnY','BROWSERSTACK_TEST_OBSERVABILITY_YML','writeFileSync','30QMzCfL','\x0a\x0a\x20\x20\x20\x20\x20\x20const\x20fs\x20=\x20require(\x27fs\x27);\x0a\x20\x20\x20\x20\x20\x20const\x20path\x20=\x20require(\x27path\x27);\x0a\x20\x20\x20\x20\x20\x20const\x20helper\x20=\x20require(\x27../../../helpers/helper\x27);\x0a\x0a\x20\x20\x20\x20\x20\x20(async\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20{createTestScheduler}\x20=\x20requireModule(\x27@jest/core\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20tempScheduler\x20=\x20await\x20createTestScheduler({reporters:\x20[]},\x20{});\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20ReporterDispatcher\x20=\x20tempScheduler._dispatcher.constructor;\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20var\x20_someFunc\x20=\x20ReporterDispatcher.prototype.onRunComplete;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ReporterDispatcher.prototype.onRunComplete\x20=\x20async\x20function\x20(testContexts,\x20results)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20results.numTotalTestSuites\x20=\x20results.numTotalTestSuites\x20*\x20','customTestRunner.js','test-observability','Playwright\x20detected,\x20adding\x20Jest-Playwright\x20setup','true','DCNbL','dUKmf','DQZmg','@jest/core/build/ReporterDispatcher.js','RZbPQ','BROWSERSTACK_TEST_ACCESSIBILITY_YML','test.setup.js','\x0a\x0a\x20\x20\x20\x20\x20\x20const\x20ReporterDispatcher\x20=\x20_interopRequireDefault(requireModule(\x27@jest/core/build/ReporterDispatcher.js\x27,\x20\x27@jest/core\x27)).default;\x0a\x20\x20\x20\x20\x20\x20const\x20fs\x20=\x20require(\x27fs\x27);\x0a\x20\x20\x20\x20\x20\x20const\x20path\x20=\x20require(\x27path\x27);\x0a\x20\x20\x20\x20\x20\x20const\x20helper\x20=\x20require(\x27../../../helpers/helper\x27);\x0a\x20\x20\x20\x20\x20\x20var\x20_someFunc\x20=\x20ReporterDispatcher.prototype.onRunComplete;\x0a\x20\x20\x20\x20\x20\x20ReporterDispatcher.prototype.onRunComplete\x20=\x20async\x20function\x20(testContexts,\x20results)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20results.numTotalTestSuites\x20=\x20results.numTotalTestSuites\x20*\x20','UURvt','isBrowserstackInfra','AoJLb','\x0a\x20\x20\x20\x20\x20\x20',',\x20BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM=','../../helpers/test-observability/utils','cjs','handleApp','VjlfJ','proxySettings','jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js','ZKXeN','debug','dGjyo','Modifying\x20jest\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','Showing\x20jest\x20logs\x20and\x20reporter\x20logs.','__isPuppeteerInstalled','RSwvO','qAbyv','jest-circus/build/runner.js','customImplements','mjs','setupFilesAfterEnv','Deleting\x20','startsWith','skipSessionStatus'];a21_0xaa41=function(){return _0x76b849;};return a21_0xaa41();}const fs=require('fs'),path=require(a21_0x152de0(0x173)),util=require(a21_0x152de0(0x15f)),{spawn}=require('child_process'),logger=require(a21_0x152de0(0x109))[a21_0x152de0(0xcf)],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require(a21_0x152de0(0xc1)),utilities=require('../../helpers/utilities'),constants=require(a21_0x152de0(0xc6)),accessibilityHelper=require('../../helpers/accessibility-automation/helper'),{updateTestRerunConfig}=require('./test-observability/helper'),testOpsHelper=require(a21_0x152de0(0xf1)),{debug}=require(a21_0x152de0(0xf1)),TestDetails=require('./test-observability/test-details'),{getPercyOptions}=require(a21_0x152de0(0x152)),TestHubHandler=require('../../helpers/testhub/testhubHandler'),testhubUtils=require(a21_0x152de0(0xb3)),{FRAMEWORKS}=require(a21_0x152de0(0xc3)),PerformanceTester=require(a21_0x152de0(0x11d)),PerformanceEvents=require(a21_0x152de0(0x10e))[a21_0x152de0(0x182)],TestOrchestrationHandler=require(a21_0x152de0(0x10c)),BrowserstackCLI=require(a21_0x152de0(0x118)),{checkPwandBootstrapCli}=require('../../helpers/playwright-helper'),{checkPuppeteerAndBootstrapCli,getPuppeteerVersion}=require(a21_0x152de0(0x11f)),ClientTroubleShootingService=require(a21_0x152de0(0x189)),{checkAccessibilityPlatformConfig}=require(a21_0x152de0(0xc4)),getUserJestConfigs=async(_0x5bd3a9,_0xe29038)=>{const _0xace41=a21_0x152de0,_0x5b0ab6={'uyYJb':'jest-config/build/readConfigFileAndSetRootDir.js','lUaLH':_0xace41(0xba),'KYiIG':function(_0x2b6578,_0x57284f){return _0x2b6578||_0x57284f;},'dLOqu':function(_0x596fa9,_0x5bcd14){return _0x596fa9(_0x5bcd14);},'uSFci':_0xace41(0x176),'WeXcm':'Getting\x20your\x20jest\x20configs\x20from\x20package.json','DQZmg':_0xace41(0x101),'mZQvz':_0xace41(0xf2),'TLWrZ':_0xace41(0x183)};let _0x2832f4;try{_0x2832f4=helper[_0xace41(0x177)](_0x5b0ab6[_0xace41(0x174)],_0x5b0ab6[_0xace41(0x12f)]);}catch{const _0x1ad9c8=helper[_0xace41(0x177)](_0x5b0ab6['lUaLH']);_0x2832f4={'default':async _0x39c9a5=>{const _0x45c5f4=_0xace41,_0x4615f0=await _0x1ad9c8[_0x45c5f4(0x10d)](_0x39c9a5,{});return _0x4615f0[_0x45c5f4(0xa5)];}};}const _0x4442bf=_0xe29038['findIndex'](_0x483a2d=>_0x483a2d===_0xace41(0x111));if(!helper[_0xace41(0x9a)](_0x5bd3a9[_0xace41(0xa5)])){logger['info']('Getting\x20your\x20jest\x20configs\x20from\x20'+_0x5bd3a9[_0xace41(0xa5)]),process[_0xace41(0x18b)][_0xace41(0x17a)]=_0x5bd3a9[_0xace41(0xa5)];const _0x52d21c=await(0x0,_0x2832f4[_0xace41(0x106)])(path['resolve'](_0x5bd3a9[_0xace41(0xa5)]));return _0xe29038['splice'](_0x4442bf,0x2),_0x5b0ab6[_0xace41(0xb9)](_0x52d21c,{});}const _0x51fa98=_0x5b0ab6[_0xace41(0x132)](require,path[_0xace41(0x15e)](process[_0xace41(0xc5)](),_0x5b0ab6[_0xace41(0x17e)]));if(_0x51fa98['jest'])return logger[_0xace41(0x11e)](_0x5b0ab6[_0xace41(0xae)]),_0x51fa98[_0xace41(0x12e)];const _0x389ff8=['js',_0x5b0ab6[_0xace41(0xe6)],_0x5b0ab6['mZQvz'],_0x5b0ab6['TLWrZ'],'ts'];for(const _0x5c0d29 of _0x389ff8){const _0x58c993=path[_0xace41(0x15e)](process['cwd'](),_0xace41(0x138)+_0x5c0d29);if(fs[_0xace41(0xb2)](_0x58c993)){process[_0xace41(0x18b)][_0xace41(0x17a)]=_0x58c993;const _0x232cf2=await(0x0,_0x2832f4[_0xace41(0x106)])(_0x58c993);return _0x232cf2;}}return{};},getSerial=(_0x5008db,_0x3f8a6d)=>{const _0x312596=a21_0x152de0,_0x3a552a={};_0x3a552a[_0x312596(0x107)]=_0x312596(0xe3),_0x3a552a[_0x312596(0x13e)]=function(_0x2b10a5,_0x489ae4){return _0x2b10a5>_0x489ae4;},_0x3a552a['DtCsE']=_0x312596(0x126);const _0x31f24d=_0x3a552a;let _0x3c5ad0=_0x31f24d['JgRHk'];return _0x31f24d['DLznO'](_0x5008db['length'],0x1)&&(!_0x3f8a6d[_0x312596(0x161)]&&(helper[_0x312596(0x9a)](_0x3f8a6d[_0x312596(0x172)])||_0x31f24d[_0x312596(0x13e)](_0x3f8a6d[_0x312596(0x172)],0x1)))&&(_0x3c5ad0=_0x31f24d[_0x312596(0x147)]),_0x3c5ad0;},getMaxWorkers=(_0x51cf71,_0x5e369f,_0x1c996e)=>{const _0x250911=a21_0x152de0,_0x568625={'nwKLB':function(_0x2ef7ce,_0x5e1c70){return _0x2ef7ce(_0x5e1c70);}};let _0x32e26f=0x1;if(!helper[_0x250911(0x9a)](_0x5e369f[_0x250911(0x17f)]))_0x32e26f=_0x568625['nwKLB'](parseInt,_0x5e369f[_0x250911(0x17f)]);else{if(!helper[_0x250911(0x9a)](_0x51cf71[_0x250911(0x172)]))_0x32e26f=_0x51cf71[_0x250911(0x172)];else!helper[_0x250911(0x9a)](_0x1c996e[_0x250911(0x172)])&&(_0x32e26f=_0x1c996e[_0x250911(0x172)]);}return _0x32e26f;};function a21_0x1978(_0x3e60dd,_0x162672){const _0xaa41fb=a21_0xaa41();return a21_0x1978=function(_0x197897,_0x3972b9){_0x197897=_0x197897-0x99;let _0x5168a7=_0xaa41fb[_0x197897];return _0x5168a7;},a21_0x1978(_0x3e60dd,_0x162672);}async function run(_0x4f59c2,_0x2ffabc,_0x205d9c){const _0x3e8fc9=a21_0x152de0,_0x1947f1={'bDFPv':_0x3e8fc9(0x12e),'VjlfJ':function(_0x2c7d96,_0xd117f7){return _0x2c7d96(_0xd117f7);},'UURvt':'@playwright/test','lvzzX':function(_0x507c20){return _0x507c20();},'tmKew':function(_0x13b113,_0x5cb7b8,_0x327df1,_0x25ca24){return _0x13b113(_0x5cb7b8,_0x327df1,_0x25ca24);},'yGZzG':function(_0x3aa873,_0x415940,_0x56b810,_0x5957d2){return _0x3aa873(_0x415940,_0x56b810,_0x5957d2);},'ajlqE':function(_0x270f14,_0x5954a0){return _0x270f14!=_0x5954a0;},'sCKhf':_0x3e8fc9(0xe3),'LtqdT':function(_0x5d006e,_0x248a8c,_0x4df98f){return _0x5d006e(_0x248a8c,_0x4df98f);},'uhqzD':_0x3e8fc9(0xfa),'IXuif':function(_0x8f4232,_0x253788){return _0x8f4232(_0x253788);},'mcRlh':_0x3e8fc9(0x126),'RZbPQ':function(_0x41771f,_0x3bb178){return _0x41771f*_0x3bb178;},'wZBnY':function(_0x1df4a9,_0x93bd07){return _0x1df4a9===_0x93bd07;},'dGjyo':_0x3e8fc9(0x141),'wVaFW':_0x3e8fc9(0x165),'dnnKt':_0x3e8fc9(0x100),'wmoon':_0x3e8fc9(0x159),'cOGtw':_0x3e8fc9(0xe0),'HKvFH':'customTestRunnerTemplate.js','dbwiD':'customEnvironment.js','VyFOi':function(_0x10620d,_0x589a47){return _0x10620d!==_0x589a47;},'PYuXz':_0x3e8fc9(0x18a),'QlxsU':_0x3e8fc9(0xac),'BubMF':_0x3e8fc9(0xb0),'dUKmf':_0x3e8fc9(0xb7),'jRyxE':_0x3e8fc9(0xf6),'dsamm':_0x3e8fc9(0x155),'mnhik':_0x3e8fc9(0xff),'ahpRV':function(_0xcf87eb,_0xd0f85b){return _0xcf87eb(_0xd0f85b);},'cMQdD':_0x3e8fc9(0xe1),'TugWY':_0x3e8fc9(0x10a),'uVPPv':'customCircus.js','yNXBE':'test_before.setup.js','LQhvB':'skipping\x20test_before\x20setup\x20since\x20selenium\x20not\x20found','QXdwu':_0x3e8fc9(0xcd),'TzACq':_0x3e8fc9(0xe2),'AgSXZ':_0x3e8fc9(0xea),'pyntv':_0x3e8fc9(0x135),'DCNbL':function(_0x2332a3,_0x2edc38){return _0x2332a3&&_0x2edc38;},'RSwvO':'Puppeteer\x20detected,\x20adding\x20Jest-Puppeteer\x20setup','VVItQ':_0x3e8fc9(0xcb),'UfSFU':_0x3e8fc9(0x9c),'JRyhV':'default','qAbyv':_0x3e8fc9(0xe7),'ZKXeN':'@jest/core','reGhI':_0x3e8fc9(0x150),'AoJLb':function(_0x383d30,_0xe143e1){return _0x383d30>_0xe143e1;},'zwkrJ':_0x3e8fc9(0xfb),'wlQqZ':'--config','XscuQ':_0x3e8fc9(0xbe),'wjwJY':function(_0x3e6784,_0x4286f1){return _0x3e6784===_0x4286f1;},'yOGEP':_0x3e8fc9(0x129),'LQPOj':_0x3e8fc9(0xa6),'RfPQb':'close'},_0x438cfc=helper['getPackageVersion'](_0x1947f1['UURvt']);global[_0x3e8fc9(0x12b)]=!!_0x438cfc;const _0x331a3a=_0x1947f1[_0x3e8fc9(0xa8)](getPuppeteerVersion);global[_0x3e8fc9(0xfc)]=!!_0x331a3a;helper[_0x3e8fc9(0xed)]()&&(await _0x205d9c[_0x3e8fc9(0xb6)](_0x4f59c2),await helper[_0x3e8fc9(0xf3)](_0x205d9c[_0x3e8fc9(0xa5)]));if(_0x438cfc)await _0x1947f1[_0x3e8fc9(0xd7)](checkPwandBootstrapCli,_0x438cfc,constants[_0x3e8fc9(0x15c)][_0x3e8fc9(0x14e)],_0x205d9c);else _0x331a3a&&await _0x1947f1[_0x3e8fc9(0xd2)](checkPuppeteerAndBootstrapCli,_0x331a3a,constants[_0x3e8fc9(0x15c)][_0x3e8fc9(0x14e)],_0x205d9c);!BrowserstackCLI[_0x3e8fc9(0xaf)]()[_0x3e8fc9(0xca)]()&&await _0x205d9c[_0x3e8fc9(0x137)]();if(!_0x205d9c[_0x3e8fc9(0xa5)])return;_0x1947f1[_0x3e8fc9(0xd9)](_0x205d9c[_0x3e8fc9(0xa5)][_0x3e8fc9(0x125)],null)?process[_0x3e8fc9(0x18b)][_0x3e8fc9(0xdc)]=_0x205d9c[_0x3e8fc9(0xa5)][_0x3e8fc9(0x125)]:process[_0x3e8fc9(0x18b)][_0x3e8fc9(0xdc)]=_0x1947f1[_0x3e8fc9(0x157)];const _0x4450d6=new TestOrchestrationHandler(_0x205d9c['config']),_0x11edf6=await _0x1947f1['LtqdT'](getUserJestConfigs,_0x4f59c2,_0x2ffabc);logger[_0x3e8fc9(0x11e)](_0x1947f1['uhqzD']);const _0x1fe2ff=Object[_0x3e8fc9(0x13a)]({},_0x11edf6);_0x1fe2ff[_0x3e8fc9(0x11a)]=Object[_0x3e8fc9(0x13a)]({},_0x1fe2ff[_0x3e8fc9(0x11a)],{'server':helper[_0x3e8fc9(0x136)](_0x205d9c[_0x3e8fc9(0xa5)]),'environment':_0x11edf6[_0x3e8fc9(0x119)]}),_0x1fe2ff['testEnvironmentOptions'][_0x3e8fc9(0x14b)]=_0x1947f1[_0x3e8fc9(0xc8)](getPercyOptions,_0x205d9c['config']);const _0x686108=helper[_0x3e8fc9(0x184)](_0x205d9c[_0x3e8fc9(0xa5)]);!helper[_0x3e8fc9(0x9a)](_0x205d9c[_0x3e8fc9(0xa5)][_0x3e8fc9(0x18d)])&&(process[_0x3e8fc9(0x18b)][_0x3e8fc9(0x142)]=JSON[_0x3e8fc9(0x117)](_0x205d9c[_0x3e8fc9(0xa5)][_0x3e8fc9(0x18d)]));if(!BrowserstackCLI['getInstance']()[_0x3e8fc9(0xca)]()){const _0x44abc7=await TestHubHandler[_0x3e8fc9(0x12c)](FRAMEWORKS[_0x3e8fc9(0x14e)],_0x205d9c);}const _0x4f2238=helper['prepareCapabilities'](_0x205d9c[_0x3e8fc9(0xa5)],_0x686108,constants['FRAMEWORKS'][_0x3e8fc9(0x14e)]);process['env'][_0x3e8fc9(0x115)]=JSON[_0x3e8fc9(0x117)](_0x4f2238);let _0xe3afcd=_0x205d9c['config'][_0x3e8fc9(0x10b)];_0xe3afcd=_0xe3afcd||accessibilityHelper[_0x3e8fc9(0x139)](_0x205d9c['config']),process[_0x3e8fc9(0x18b)][_0x3e8fc9(0xe9)]=_0xe3afcd,logger[_0x3e8fc9(0xf8)]('[Jest\x20Command]\x20Accessibility\x20enabled:\x20'+_0xe3afcd+_0x3e8fc9(0xd1)+BrowserstackCLI[_0x3e8fc9(0xaf)]()['isRunning']());if(_0x438cfc)try{const _0x462eab=_0x1947f1[_0x3e8fc9(0xf4)](checkAccessibilityPlatformConfig,_0x205d9c[_0x3e8fc9(0xa5)]);process[_0x3e8fc9(0x18b)][_0x3e8fc9(0x17b)]=_0x462eab?_0x1947f1[_0x3e8fc9(0x157)]:_0x1947f1['mcRlh'],logger['debug']('[Jest\x20Command]\x20Playwright\x20detected,\x20setting\x20accessibility\x20platform:\x20'+_0x462eab+_0x3e8fc9(0xf0)+process[_0x3e8fc9(0x18b)][_0x3e8fc9(0x17b)]);}catch(_0x18351d){logger['debug'](_0x3e8fc9(0x110)+util[_0x3e8fc9(0x154)](_0x18351d));}_0x1fe2ff[_0x3e8fc9(0x11a)][_0x3e8fc9(0x158)]=_0x4f2238,_0x1fe2ff[_0x3e8fc9(0x11a)][_0x3e8fc9(0xa2)]=_0x1947f1['LtqdT'](getSerial,_0x4f2238,_0x4f59c2),_0x1fe2ff[_0x3e8fc9(0x11a)][_0x3e8fc9(0x156)]=_0x1947f1['yGZzG'](getMaxWorkers,_0x4f59c2,_0x205d9c['config'],_0x11edf6),_0x1fe2ff[_0x3e8fc9(0x11a)][_0x3e8fc9(0xf5)]=_0x205d9c[_0x3e8fc9(0xa5)][_0x3e8fc9(0xf5)],_0x1fe2ff[_0x3e8fc9(0x11a)][_0x3e8fc9(0x127)]=_0x1947f1[_0x3e8fc9(0xe8)](_0x4f59c2[_0x3e8fc9(0xd5)],0x1)||0x1388,_0x1fe2ff[_0x3e8fc9(0x11a)][_0x3e8fc9(0x14a)]=_0x205d9c[_0x3e8fc9(0xa5)][_0x3e8fc9(0x120)][_0x3e8fc9(0x14a)],_0x1fe2ff['testEnvironmentOptions'][_0x3e8fc9(0x105)]=_0x205d9c[_0x3e8fc9(0xa5)][_0x3e8fc9(0x120)][_0x3e8fc9(0x105)],_0x1fe2ff[_0x3e8fc9(0x11a)][_0x3e8fc9(0xa1)]=_0x205d9c[_0x3e8fc9(0xa5)]['logLevel'],_0x1fe2ff['testEnvironmentOptions']['turboScaleUrl']=_0x205d9c[_0x3e8fc9(0xa5)]['turboScaleUrl'],_0x1fe2ff[_0x3e8fc9(0x11a)][_0x3e8fc9(0xbb)]=_0x205d9c[_0x3e8fc9(0xa5)][_0x3e8fc9(0x113)],Object[_0x3e8fc9(0x13a)](_0x1fe2ff[_0x3e8fc9(0x11a)],helper[_0x3e8fc9(0x108)](_0x205d9c['config'],_0x686108,constants[_0x3e8fc9(0x15c)][_0x3e8fc9(0x14e)]));const _0x4423dc=helper[_0x3e8fc9(0xd8)](_0x205d9c[_0x3e8fc9(0xa5)]);if(!helper[_0x3e8fc9(0x16a)](_0x4423dc)){helper[_0x3e8fc9(0xc0)](_0x4423dc['retryTestsOnFailure'])&&(_0x1fe2ff[_0x3e8fc9(0x11a)][_0x3e8fc9(0x188)]=_0x4423dc[_0x3e8fc9(0xd4)][_0x3e8fc9(0xb8)]);if(helper[_0x3e8fc9(0xc0)](_0x4423dc[_0x3e8fc9(0x15b)])&&helper['isNotUndefined'](_0x4423dc[_0x3e8fc9(0x15b)][_0x3e8fc9(0x163)])){const _0x1124f8={};_0x1124f8[_0x3e8fc9(0xb4)]=_0x4423dc['abortBuildOnFailure']['maxFailures'],_0x1124f8[_0x3e8fc9(0x163)]=_0x4423dc['abortBuildOnFailure'][_0x3e8fc9(0x163)],_0x1fe2ff['testEnvironmentOptions']['failFast']=_0x1124f8;}}let _0x411222='';_0x1947f1[_0x3e8fc9(0xdb)](helper['getPackageType'](),constants[_0x3e8fc9(0x15d)]['MODULE'])?_0x411222=_0x1947f1[_0x3e8fc9(0xf9)]:_0x411222=_0x1947f1[_0x3e8fc9(0x122)];const _0x27dabe=_0x411222,_0x3f324c=path['join'](__dirname,_0x1947f1['dnnKt'],_0x1947f1[_0x3e8fc9(0x116)]),_0x42a34c=path['join'](__dirname,_0x1947f1[_0x3e8fc9(0xab)],_0x1947f1['cOGtw']),_0x1a5955=path[_0x3e8fc9(0x15e)](__dirname,_0x1947f1['dnnKt'],_0x1947f1['HKvFH']);_0x1fe2ff[_0x3e8fc9(0x119)]&&(process['env']['BSTACK_JEST_TEST_ENV']=_0x1fe2ff[_0x3e8fc9(0x119)]);_0x1fe2ff[_0x3e8fc9(0x119)]=path['join'](__dirname,_0x1947f1[_0x3e8fc9(0xab)],_0x1947f1[_0x3e8fc9(0x170)]);const _0x257f1d=_0x11edf6['runner'];if(_0x257f1d&&_0x1947f1[_0x3e8fc9(0x16c)](_0x257f1d,_0x1947f1[_0x3e8fc9(0x18c)])){const _0xa2893c=_0x257f1d[_0x3e8fc9(0x104)](_0x1947f1[_0x3e8fc9(0x9d)])?_0x257f1d:_0x3e8fc9(0xac)+_0x257f1d;process[_0x3e8fc9(0x18b)]['BSTACK_USER_JEST_RUNNER']=_0xa2893c,logger[_0x3e8fc9(0x11e)]('Preserving\x20user\x27s\x20Jest\x20runner:\x20'+_0xa2893c);}_0x1fe2ff[_0x3e8fc9(0x99)]=_0x42a34c,_0x1fe2ff[_0x3e8fc9(0x102)]=_0x1fe2ff[_0x3e8fc9(0x102)]||[],_0x1fe2ff[_0x3e8fc9(0x102)][_0x3e8fc9(0xa3)](path['join'](__dirname,_0x1947f1[_0x3e8fc9(0xb5)]));_0x4450d6['isTestOrchestrationEnabled']()&&(_0x1fe2ff[_0x3e8fc9(0x9f)]=path['join'](__dirname,_0x1947f1[_0x3e8fc9(0xab)],_0x1947f1[_0x3e8fc9(0xe5)]));if(testhubUtils['shouldProcessEventForTesthub']()||BrowserstackCLI['getInstance']()['isCliEnabled']()){let _0x57148f=null;try{_0x57148f=helper['requireModule'](_0x1947f1[_0x3e8fc9(0x16f)],_0x1947f1[_0x3e8fc9(0xc9)]);}catch(_0x543e34){try{_0x57148f=helper[_0x3e8fc9(0x177)](_0x1947f1['mnhik'],_0x1947f1['dsamm']);}catch(_0x439961){_0x1947f1['ahpRV'](debug,_0x3e8fc9(0xc2)+_0x439961);}}_0x57148f&&(testhubUtils['shouldProcessEventForTesthub']()&&_0x1fe2ff[_0x3e8fc9(0x102)][_0x3e8fc9(0xa3)](path[_0x3e8fc9(0x15e)](__dirname,_0x1947f1['cMQdD'],_0x1947f1[_0x3e8fc9(0x143)])),_0x1fe2ff[_0x3e8fc9(0xa7)]=path[_0x3e8fc9(0x15e)](__dirname,_0x1947f1[_0x3e8fc9(0xab)],_0x1947f1['uVPPv']));}_0x1fe2ff['setupFiles']=_0x1fe2ff['setupFiles']||[];try{helper['requireSeleniumWebdriver'](),_0x1fe2ff[_0x3e8fc9(0x162)][_0x3e8fc9(0xa3)](path[_0x3e8fc9(0x15e)](__dirname,_0x1947f1[_0x3e8fc9(0x16e)]));}catch{logger[_0x3e8fc9(0xf8)](_0x1947f1[_0x3e8fc9(0x148)]);}try{helper[_0x3e8fc9(0x145)][_0x3e8fc9(0x9b)](null,[_0x1947f1[_0x3e8fc9(0xec)],_0x1947f1[_0x3e8fc9(0xa4)]]),logger[_0x3e8fc9(0xf8)](_0x1947f1['TzACq']),_0x1fe2ff[_0x3e8fc9(0x162)][_0x3e8fc9(0xa3)](path['join'](__dirname,_0x1947f1[_0x3e8fc9(0x114)]));}catch(_0x30933e){logger[_0x3e8fc9(0xf8)](_0x1947f1[_0x3e8fc9(0xd6)],_0x30933e);}if(_0x1947f1[_0x3e8fc9(0xe4)](!_0x438cfc,_0x331a3a)){try{logger[_0x3e8fc9(0xf8)](_0x1947f1[_0x3e8fc9(0xfd)]),_0x1fe2ff[_0x3e8fc9(0x102)][_0x3e8fc9(0xa3)](path[_0x3e8fc9(0x15e)](__dirname,'..',_0x1947f1[_0x3e8fc9(0xcc)],_0x1947f1[_0x3e8fc9(0x114)]));}catch(_0x4c47da){logger['debug']('Puppeteer\x20setup\x20error:\x20'+_0x4c47da[_0x3e8fc9(0x14c)]);}try{const _0x6a6b6e=require[_0x3e8fc9(0xda)](_0x1947f1[_0x3e8fc9(0x14d)]),_0x525430=path[_0x3e8fc9(0x10f)](_0x6a6b6e)[_0x3e8fc9(0x133)](/\\/g,'/'),_0x3a76d6={};_0x3a76d6[_0x3e8fc9(0x186)]=_0x525430+'/internal/$1',_0x1fe2ff[_0x3e8fc9(0x134)]=Object[_0x3e8fc9(0x13a)]({},_0x1fe2ff['moduleNameMapper']||{},_0x3a76d6),logger[_0x3e8fc9(0xf8)](_0x3e8fc9(0x17c)+_0x525430);}catch(_0x499028){logger[_0x3e8fc9(0xf8)](_0x3e8fc9(0x15a)+_0x499028[_0x3e8fc9(0x14c)]);}}_0x1fe2ff[_0x3e8fc9(0x146)]=_0x1fe2ff['reporters']||[_0x1947f1[_0x3e8fc9(0x12d)]],_0x1947f1[_0x3e8fc9(0x167)](updateTestRerunConfig,_0x1fe2ff,_0x205d9c);const _0x419ac1=fs[_0x3e8fc9(0xb1)](_0x1a5955),_0x3b4a85=helper[_0x3e8fc9(0x169)](_0x1947f1[_0x3e8fc9(0xfe)],_0x1947f1[_0x3e8fc9(0xf7)]);!_0x3b4a85[_0x3e8fc9(0xce)]?fs[_0x3e8fc9(0xdd)](_0x1fe2ff[_0x3e8fc9(0x99)],_0x3e8fc9(0xef)+_0x419ac1+_0x3e8fc9(0xeb)+_0x205d9c[_0x3e8fc9(0xa5)][_0x3e8fc9(0x113)][_0x3e8fc9(0x9e)]+';\x0a\x20\x20\x20\x20\x20\x20\x20\x20fs.writeFileSync(path.join(__dirname,\x20\x27jest_browserstack_results.json\x27),\x20JSON.stringify(results));\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20_someFunc.call(this,\x20testContexts,\x20results);\x0a\x20\x20\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20\x20\x20var\x20_onTestFileResultOrig\x20=\x20ReporterDispatcher.prototype.onTestFileResult;\x0a\x20\x20\x20\x20\x20\x20ReporterDispatcher.prototype.onTestFileResult\x20=\x20async\x20function\x20(test,\x20testResult,\x20result)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20testResult.platform\x20=\x20helper.getPlatformName(test.context.config.capability);\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20_onTestFileResultOrig.call(this,\x20test,\x20testResult,\x20result);\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20'):fs[_0x3e8fc9(0xdd)](_0x1fe2ff[_0x3e8fc9(0x99)],_0x3e8fc9(0xef)+_0x419ac1+_0x3e8fc9(0xdf)+_0x205d9c[_0x3e8fc9(0xa5)]['platforms'][_0x3e8fc9(0x9e)]+';\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20fs.writeFileSync(path.join(__dirname,\x20\x27jest_browserstack_results.json\x27),\x20JSON.stringify(results));\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20_someFunc.call(this,\x20testContexts,\x20results);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20var\x20_onTestFileResultOrig\x20=\x20ReporterDispatcher.prototype.onTestFileResult;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ReporterDispatcher.prototype.onTestFileResult\x20=\x20async\x20function\x20(test,\x20testResult,\x20result)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20testResult.platform\x20=\x20helper.getPlatformName(test.context.config.capability);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20_onTestFileResultOrig.call(this,\x20test,\x20testResult,\x20result);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20})();\x0a\x20\x20\x20\x20');logger[_0x3e8fc9(0x11e)](_0x3e8fc9(0x151)+_0x27dabe+_0x3e8fc9(0xa0)),fs[_0x3e8fc9(0xdd)](_0x27dabe,'const\x20config='+JSON[_0x3e8fc9(0x117)](_0x1fe2ff)+_0x3e8fc9(0x178));if(_0x4450d6[_0x3e8fc9(0xd3)]()){logger[_0x3e8fc9(0xf8)](_0x1947f1[_0x3e8fc9(0x168)]);const _0x1cb5c9=await _0x4450d6[_0x3e8fc9(0x13d)](_0x1fe2ff,_0x2ffabc['slice'](0x1),_0x27dabe);logger[_0x3e8fc9(0xf8)](_0x3e8fc9(0x128)+JSON[_0x3e8fc9(0x117)](_0x1cb5c9)+'\x20test\x20files\x20to\x20run.');const _0x46fa97=await _0x4450d6[_0x3e8fc9(0x13c)](_0x1cb5c9);logger['debug']('Reodered\x20Test\x20Files:\x20'+JSON['stringify'](_0x46fa97)),_0x46fa97&&_0x1947f1[_0x3e8fc9(0xee)](_0x46fa97[_0x3e8fc9(0x9e)],0x0)&&(process['env'][_0x3e8fc9(0x130)]=_0x46fa97?.[_0x3e8fc9(0x15e)](','));}logger[_0x3e8fc9(0x11e)](_0x1947f1[_0x3e8fc9(0x160)]);testhubUtils[_0x3e8fc9(0x13b)]()&&TestDetails['setup']();helper[_0x3e8fc9(0x149)]({},_0x2ffabc),PerformanceTester[_0x3e8fc9(0xbf)](PerformanceEvents[_0x3e8fc9(0x185)]);const _0x25ee44=[_0x1947f1['bDFPv'],_0x1947f1['wlQqZ'],_0x27dabe,..._0x2ffabc[_0x3e8fc9(0x123)](0x1)];process['env'][_0x3e8fc9(0x181)]=process[_0x3e8fc9(0x18b)][_0x3e8fc9(0x181)]||_0x1947f1[_0x3e8fc9(0x144)];const _0x5ca9cb=_0x1947f1[_0x3e8fc9(0xd2)](spawn,_0x1947f1['XscuQ'],_0x25ee44,{'shell':_0x1947f1[_0x3e8fc9(0x16b)](process[_0x3e8fc9(0x16d)],_0x1947f1[_0x3e8fc9(0xc7)]),'stdio':_0x1947f1[_0x3e8fc9(0x11b)],'env':Object['assign']({},process[_0x3e8fc9(0x18b)])});_0x5ca9cb['on'](_0x1947f1[_0x3e8fc9(0x18e)],async _0x28e517=>{const _0x416c7d=_0x3e8fc9;PerformanceTester[_0x416c7d(0x13f)](PerformanceEvents[_0x416c7d(0x124)]),process[_0x416c7d(0x166)]=_0x28e517,logger[_0x416c7d(0xf8)](_0x416c7d(0x11c)+_0x28e517),logger[_0x416c7d(0x11e)](_0x416c7d(0x103)+_0x27dabe);if(helper['isNotUndefined'](_0x4423dc)&&helper[_0x416c7d(0xc0)](_0x4423dc[_0x416c7d(0x15b)])&&fs['existsSync'](_0x4423dc[_0x416c7d(0x15b)]['workingDir']))try{const _0x4ff8b7={};_0x4ff8b7[_0x416c7d(0x12a)]=!![],_0x4ff8b7[_0x416c7d(0x180)]=!![],fs[_0x416c7d(0x187)](_0x4423dc[_0x416c7d(0x15b)][_0x416c7d(0x163)],_0x4ff8b7),logger[_0x416c7d(0xf8)](_0x416c7d(0xaa)+_0x4423dc[_0x416c7d(0x15b)][_0x416c7d(0x163)]);}catch(_0x445556){logger[_0x416c7d(0xce)]('Error\x20while\x20deleting\x20fail-fast\x20state\x20folder:\x20'+_0x445556);}let _0x41ea1d=null;if(fs[_0x416c7d(0xb2)](_0x3f324c)){_0x41ea1d=fs[_0x416c7d(0xb1)](_0x3f324c);try{_0x41ea1d=JSON[_0x416c7d(0x121)](_0x41ea1d);}catch(_0x56276c){logger[_0x416c7d(0xf8)](_0x416c7d(0x131)+_0x3f324c+',\x20'+_0x41ea1d+_0x416c7d(0xd0)+_0x56276c);}fs['unlinkSync'](_0x3f324c);}fs['unlinkSync'](_0x27dabe),fs['unlinkSync'](_0x42a34c),_0x41ea1d&&(_0x205d9c['errorMessage']=helper[_0x416c7d(0x164)](_0x41ea1d,_0x1947f1['bDFPv'],_0x205d9c));const _0x4ba05d=BrowserstackCLI[_0x416c7d(0x171)]();try{await TestHubHandler['stop'](),await BrowserstackCLI[_0x416c7d(0xaf)]()[_0x416c7d(0xbc)]();}catch(_0x3f04d9){console['log'](_0x3f04d9),_0x1947f1[_0x416c7d(0xf4)](debug,_0x416c7d(0xa9)+util[_0x416c7d(0x154)](_0x3f04d9));}testOpsHelper[_0x416c7d(0x153)](),TestDetails['shutdown'](),await utilities[_0x416c7d(0x140)](_0x205d9c,_0x4ba05d);});}module['exports']=run;
|
|
2
|
+
'use strict';const a21_0x37bcc1=a21_0xfa25;(function(_0x1ee53c,_0x2e4f4b){const _0x285a28=a21_0xfa25,_0x36e365=_0x1ee53c();while(!![]){try{const _0x4b0a93=parseInt(_0x285a28(0x27d))/0x1+-parseInt(_0x285a28(0x1f4))/0x2*(-parseInt(_0x285a28(0x212))/0x3)+-parseInt(_0x285a28(0x232))/0x4+-parseInt(_0x285a28(0x1bf))/0x5+-parseInt(_0x285a28(0x247))/0x6+-parseInt(_0x285a28(0x1f2))/0x7*(parseInt(_0x285a28(0x214))/0x8)+-parseInt(_0x285a28(0x21b))/0x9*(-parseInt(_0x285a28(0x242))/0xa);if(_0x4b0a93===_0x2e4f4b)break;else _0x36e365['push'](_0x36e365['shift']());}catch(_0x388ba3){_0x36e365['push'](_0x36e365['shift']());}}}(a21_0x1c05,0x9dc78));function a21_0xfa25(_0x2b0118,_0x1a54db){const _0x1c059c=a21_0x1c05();return a21_0xfa25=function(_0xfa25bd,_0x3cd20e){_0xfa25bd=_0xfa25bd-0x1b2;let _0x351388=_0x1c059c[_0xfa25bd];return _0x351388;},a21_0xfa25(_0x2b0118,_0x1a54db);}function a21_0x1c05(){const _0x8af88=['playwright','readFileSync',';\x0a\x20\x20\x20\x20\x20\x20\x20\x20fs.writeFileSync(path.join(__dirname,\x20\x27jest_browserstack_results.json\x27),\x20JSON.stringify(results));\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20_someFunc.call(this,\x20testContexts,\x20results);\x0a\x20\x20\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20\x20\x20var\x20_onTestFileResultOrig\x20=\x20ReporterDispatcher.prototype.onTestFileResult;\x0a\x20\x20\x20\x20\x20\x20ReporterDispatcher.prototype.onTestFileResult\x20=\x20async\x20function\x20(test,\x20testResult,\x20result)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20testResult.platform\x20=\x20helper.getPlatformName(test.context.config.capability);\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20_onTestFileResultOrig.call(this,\x20test,\x20testResult,\x20result);\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20','Puppeteer\x20detected,\x20adding\x20Jest-Puppeteer\x20setup','htWAV','../../helpers/test-orchestration/testOrchestrationHandler','format','child_process','jest-config/build/readConfigFileAndSetRootDir.js','KdGZn','nlshu','@playwright/test','[Jest\x20Command]\x20Added\x20puppeteer-core/internal\x20moduleNameMapper\x20for\x20','resolve','pLhNM','parseTestOrchestrationOptions','../v2/browserstackCLI','isRunning','jest-runner-','skipping\x20test_before\x20setup\x20since\x20selenium\x20not\x20found','ViKYd','BROWSERSTACK_FRAMEWORK','Found:\x20','WPHRv','retryTestsOnFailure','runner','util','BROWSERSTACK_TEST_OBSERVABILITY_YML','../../helpers/puppeteer-helper','TuLLo','../../helpers/BrowserStackSetup','SDMXC','initialize','reporters','rnGkx','maxWorkers','getInstance','force','isNotUndefined','apply','BROWSERSTACK_TEST_ACCESSIBILITY_YML','VYnqV','Playwright\x20detected,\x20adding\x20Jest-Playwright\x20setup','turboScaleUrl','Exception\x20in\x20stop\x20build\x20request\x20to\x20TestHub\x20:\x20','rsmTJ','requireModule','94380FnhyaS','dirname','env','writeFileSync','skipSessionName','push','jest','mjs','length','LSMzD','printBuildLink','../../helpers/playwright-helper','retries__','zzwJa','replace',';\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20fs.writeFileSync(path.join(__dirname,\x20\x27jest_browserstack_results.json\x27),\x20JSON.stringify(results));\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20_someFunc.call(this,\x20testContexts,\x20results);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20var\x20_onTestFileResultOrig\x20=\x20ReporterDispatcher.prototype.onTestFileResult;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ReporterDispatcher.prototype.onTestFileResult\x20=\x20async\x20function\x20(test,\x20testResult,\x20result)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20testResult.platform\x20=\x20helper.getPlatformName(test.context.config.capability);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20_onTestFileResultOrig.call(this,\x20test,\x20testResult,\x20result);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20})();\x0a\x20\x20\x20\x20','LthnE','log','parse','failureThresholdCount','error','Skipping\x20accessibility\x20env\x20setup\x20for\x20Playwright\x20due\x20to:\x20','abortBuildOnFailure','../../helpers/testhub/utils','debug','win32','./test-observability/helper','EIGOz','ajqRz','skipSessionStatus','AHdrN','isEmpty','path','szhcE','stop','isUndefined','IJxcz','cwd','platforms','handleApp','puppeteer-core/package.json','iFSte','jest.config.','test.setup.js','jest.setup.js','customImplements','getPackageType','Test\x20orchestration\x20is\x20enabled,\x20initializing\x20orchestration\x20handler','startsWith','[Jest\x20Command]\x20Could\x20not\x20configure\x20puppeteer-core\x20moduleNameMapper:\x20','json','99757OBVSpo','stringify','138dxtrQM','maxFailures','testObservability','Pyesw','isCliEnabled','customCircus.js','../../helpers/utilities','xKUPs','runInBand','Reodered\x20Test\x20Files:\x20','puppeteer','true','shutdown','XXQsI','config','jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js','jest_browserstack.config.js','setupFilesAfterEnv','useW3C','FRAMEWORKS','getErrorMessageFromResults','ckumw','KndGu','jvsuy','testEnvironmentOptions','npx','../../helpers/logger','slice','test-observability','../../helpers/percy/utils','46014UgjQYd','testRunner','600VCnafa','jest-runner','ueThw','const\x20config=','requirePWModule','Getting\x20your\x20jest\x20configs\x20from\x20','../../helpers/test-observability/constants','44739rkZNey','accessibility','end','customTestRunner.js','rmSync','USER_CONFIG_DETAILS_PATH','setup','splice','JoiJc','JEST_TEST_ORDER','\x20test\x20files\x20to\x20run.','exports','assign','MsdTE','\x20:\x20','SuLZn','customSequencer.js','workingDir','BSTACK_JEST_TEST_ENV','../../helpers/accessibility-automation/helper','platformCaps','SSLnp','proxySettings','3013388tuhepd','checkAccessibilityPlatformConfig','jest_browserstack.config.cjs','filterBrowserstackArgs','unlinkSync','readInitialOptions','isTestOrchestrationEnabled','Pepjg','errorMessage','recursive','parallelsPerPlatform','setupFiles','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','Unable\x20to\x20find\x20jest-circus,\x20','getHubUrl','MxGTG','1570hSFCzD','JEST','\x0a\x20\x20\x20\x20\x20\x20','JvwEx','BSTACK_USER_JEST_RUNNER','2000094VZwGDa','PpzJy','MULZo','isCLIEnabled','maxRetries','testEnvironment','winstonLogger','__isPlaywrightInstalled','./test-observability/test-details','exitCode','MyWTu','vApPe','existsSync','inherit','Zuddb','shouldProcessEventForTesthub','resolveModule','RMKUu','Playwright\x20not\x20detected\x20or\x20error\x20setting\x20up\x20Jest-Playwright\x20integration:','\x0a\x0a\x20\x20\x20\x20\x20\x20const\x20fs\x20=\x20require(\x27fs\x27);\x0a\x20\x20\x20\x20\x20\x20const\x20path\x20=\x20require(\x27path\x27);\x0a\x20\x20\x20\x20\x20\x20const\x20helper\x20=\x20require(\x27../../../helpers/helper\x27);\x0a\x0a\x20\x20\x20\x20\x20\x20(async\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20{createTestScheduler}\x20=\x20requireModule(\x27@jest/core\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20tempScheduler\x20=\x20await\x20createTestScheduler({reporters:\x20[]},\x20{});\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20ReporterDispatcher\x20=\x20tempScheduler._dispatcher.constructor;\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20var\x20_someFunc\x20=\x20ReporterDispatcher.prototype.onRunComplete;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ReporterDispatcher.prototype.onRunComplete\x20=\x20async\x20function\x20(testContexts,\x20results)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20results.numTotalTestSuites\x20=\x20results.numTotalTestSuites\x20*\x20','default','RNanC','false','mBgDK','tVeal','KHoPd','AGMTM','info','browserStackLogLevel','reorderTestFiles','test_before.setup.js','NAxzM','[Jest\x20Command]\x20Playwright\x20detected,\x20setting\x20accessibility\x20platform:\x20','ZaEzZ','join','customTestRunnerTemplate.js','ksdJb','iTGMY','moduleNameMapper','@jest/core','finalExecution','jest-config','accessibilityOptions','testContextOptions','XYqRQ','message','EVENTS','IGnBw','close','MODULE','browserStackPercyOptions','customEnvironment.js','BUMaS','djEvw','981892LXwtDE','start','HlIKs','SDK_SETUP','setupBrowserstackLocal','BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM','jest_browserstack_results.json','requireSeleniumWebdriver','lfvVt'];a21_0x1c05=function(){return _0x8af88;};return a21_0x1c05();}const fs=require('fs'),path=require(a21_0x37bcc1(0x1df)),util=require(a21_0x37bcc1(0x2a0)),{spawn}=require(a21_0x37bcc1(0x28d)),logger=require(a21_0x37bcc1(0x20e))[a21_0x37bcc1(0x24d)],{default:BrowserStackSetup}=require(a21_0x37bcc1(0x2a4)),helper=require('../../helpers/helper'),utilities=require(a21_0x37bcc1(0x1fa)),constants=require('../utils/constants'),accessibilityHelper=require(a21_0x37bcc1(0x22e)),{updateTestRerunConfig}=require(a21_0x37bcc1(0x1d9)),testOpsHelper=require('../../helpers/test-observability/utils'),{debug}=require('../../helpers/test-observability/utils'),TestDetails=require(a21_0x37bcc1(0x24f)),{getPercyOptions}=require(a21_0x37bcc1(0x211)),TestHubHandler=require('../../helpers/testhub/testhubHandler'),testhubUtils=require(a21_0x37bcc1(0x1d6)),{FRAMEWORKS}=require(a21_0x37bcc1(0x21a)),PerformanceTester=require('../../helpers/performance/performance-tester'),PerformanceEvents=require('../../helpers/performance/constants')[a21_0x37bcc1(0x275)],TestOrchestrationHandler=require(a21_0x37bcc1(0x28b)),BrowserstackCLI=require(a21_0x37bcc1(0x296)),{checkPwandBootstrapCli}=require(a21_0x37bcc1(0x1ca)),{checkPuppeteerAndBootstrapCli,getPuppeteerVersion}=require(a21_0x37bcc1(0x2a2)),ClientTroubleShootingService=require('../utils/clientTroubleshootingService'),{checkAccessibilityPlatformConfig}=require(a21_0x37bcc1(0x22e)),getUserJestConfigs=async(_0xe55762,_0x58db2d)=>{const _0x561ccb=a21_0x37bcc1,_0x4f13c9={'IhstK':_0x561ccb(0x28e),'RMKUu':_0x561ccb(0x270),'HlIKs':function(_0x116231,_0x30c725){return _0x116231||_0x30c725;},'EeWtd':function(_0x2c1e34,_0x544314){return _0x2c1e34(_0x544314);},'KndGu':'package.json','WaYns':'Getting\x20your\x20jest\x20configs\x20from\x20package.json','zzwJa':_0x561ccb(0x1c6),'iTGMY':'cjs','RXysQ':_0x561ccb(0x1f1)};let _0x55850d;try{_0x55850d=helper[_0x561ccb(0x1be)](_0x4f13c9['IhstK'],_0x4f13c9['RMKUu']);}catch{const _0x12d43d=helper[_0x561ccb(0x1be)](_0x4f13c9[_0x561ccb(0x258)]);_0x55850d={'default':async _0x10a454=>{const _0x455e49=_0x561ccb,_0x364dcb=await _0x12d43d[_0x455e49(0x237)](_0x10a454,{});return _0x364dcb[_0x455e49(0x202)];}};}const _0x226158=_0x58db2d['findIndex'](_0x44a6f3=>_0x44a6f3==='--config');if(!helper['isUndefined'](_0xe55762[_0x561ccb(0x202)])){logger['info'](_0x561ccb(0x219)+_0xe55762[_0x561ccb(0x202)]),process[_0x561ccb(0x1c1)][_0x561ccb(0x220)]=_0xe55762['config'];const _0x15bd01=await(0x0,_0x55850d[_0x561ccb(0x25b)])(path[_0x561ccb(0x293)](_0xe55762[_0x561ccb(0x202)]));return _0x58db2d[_0x561ccb(0x222)](_0x226158,0x2),_0x4f13c9[_0x561ccb(0x27f)](_0x15bd01,{});}const _0xc365bf=_0x4f13c9['EeWtd'](require,path['join'](process[_0x561ccb(0x1e4)](),_0x4f13c9[_0x561ccb(0x20a)]));if(_0xc365bf[_0x561ccb(0x1c5)])return logger[_0x561ccb(0x262)](_0x4f13c9['WaYns']),_0xc365bf[_0x561ccb(0x1c5)];const _0x47b34a=['js',_0x4f13c9[_0x561ccb(0x1cc)],_0x4f13c9[_0x561ccb(0x26c)],_0x4f13c9['RXysQ'],'ts'];for(const _0x26d233 of _0x47b34a){const _0x135dec=path[_0x561ccb(0x269)](process[_0x561ccb(0x1e4)](),_0x561ccb(0x1e9)+_0x26d233);if(fs[_0x561ccb(0x253)](_0x135dec)){process[_0x561ccb(0x1c1)][_0x561ccb(0x220)]=_0x135dec;const _0x1a3fa8=await(0x0,_0x55850d[_0x561ccb(0x25b)])(_0x135dec);return _0x1a3fa8;}}return{};},getSerial=(_0x4b750e,_0x3eeb19)=>{const _0x35163d=a21_0x37bcc1,_0x237e96={};_0x237e96[_0x35163d(0x252)]=_0x35163d(0x1ff),_0x237e96[_0x35163d(0x1dd)]=function(_0x3ac3b8,_0x1bed9e){return _0x3ac3b8>_0x1bed9e;},_0x237e96[_0x35163d(0x27b)]=_0x35163d(0x25d);const _0x16b17d=_0x237e96;let _0xb48268=_0x16b17d[_0x35163d(0x252)];return _0x16b17d[_0x35163d(0x1dd)](_0x4b750e[_0x35163d(0x1c7)],0x1)&&(!_0x3eeb19[_0x35163d(0x1fc)]&&(helper['isUndefined'](_0x3eeb19['maxWorkers'])||_0x16b17d[_0x35163d(0x1dd)](_0x3eeb19[_0x35163d(0x1b3)],0x1)))&&(_0xb48268=_0x16b17d['BUMaS']),_0xb48268;},getMaxWorkers=(_0x4f2ff9,_0x56f497,_0x2450f2)=>{const _0x1b99b9=a21_0x37bcc1,_0x297916={'IJxcz':function(_0x390630,_0x2e4f7a){return _0x390630(_0x2e4f7a);}};let _0x6900e1=0x1;if(!helper[_0x1b99b9(0x1e2)](_0x56f497[_0x1b99b9(0x23c)]))_0x6900e1=_0x297916[_0x1b99b9(0x1e3)](parseInt,_0x56f497[_0x1b99b9(0x23c)]);else{if(!helper[_0x1b99b9(0x1e2)](_0x4f2ff9['maxWorkers']))_0x6900e1=_0x4f2ff9[_0x1b99b9(0x1b3)];else!helper['isUndefined'](_0x2450f2[_0x1b99b9(0x1b3)])&&(_0x6900e1=_0x2450f2[_0x1b99b9(0x1b3)]);}return _0x6900e1;};async function run(_0x179dc0,_0x1ddb10,_0x2556b3){const _0x1beaf5=a21_0x37bcc1,_0xca4c19={'PpzJy':_0x1beaf5(0x1c5),'ckumw':function(_0x5de52b,_0x18acb3){return _0x5de52b(_0x18acb3);},'djEvw':_0x1beaf5(0x291),'rnGkx':function(_0x1e9b3c){return _0x1e9b3c();},'RNanC':function(_0x5f46b8,_0x40914f,_0x28d1a3,_0x322338){return _0x5f46b8(_0x40914f,_0x28d1a3,_0x322338);},'NAxzM':function(_0x33d7a6,_0x627bf3,_0x2a0db4,_0x5b4f91){return _0x33d7a6(_0x627bf3,_0x2a0db4,_0x5b4f91);},'xKUPs':function(_0x592e20,_0x33562d){return _0x592e20!=_0x33562d;},'ueThw':_0x1beaf5(0x1ff),'szhcE':function(_0x42f81c,_0x1bd840,_0x4b7370){return _0x42f81c(_0x1bd840,_0x4b7370);},'CKnry':'Modifying\x20jest\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','eNigD':_0x1beaf5(0x25d),'SSLnp':function(_0x47cdb0,_0x4a9e47){return _0x47cdb0*_0x4a9e47;},'ksdJb':function(_0x122cfe,_0x5711c2){return _0x122cfe===_0x5711c2;},'lfvVt':_0x1beaf5(0x234),'MxGTG':_0x1beaf5(0x204),'ZaEzZ':_0x1beaf5(0x1ec),'sIyAr':_0x1beaf5(0x283),'htWAV':_0x1beaf5(0x21e),'TuLLo':_0x1beaf5(0x26a),'JoiJc':_0x1beaf5(0x27a),'oVBZs':function(_0x1a3526,_0x34d9fc){return _0x1a3526!==_0x34d9fc;},'KHoPd':_0x1beaf5(0x215),'AGMTM':_0x1beaf5(0x298),'SDMXC':_0x1beaf5(0x1eb),'tVeal':_0x1beaf5(0x22b),'SuLZn':_0x1beaf5(0x203),'EIGOz':'jest-circus','Zuddb':'jest-circus/build/runner.js','VYnqV':function(_0x32a539,_0x1c0405){return _0x32a539(_0x1c0405);},'XYqRQ':_0x1beaf5(0x210),'ajqRz':'data-hooks.js','DKInR':_0x1beaf5(0x1f9),'rsmTJ':_0x1beaf5(0x265),'iFSte':_0x1beaf5(0x299),'JvwEx':_0x1beaf5(0x286),'ViKYd':_0x1beaf5(0x1ba),'nlshu':_0x1beaf5(0x1ea),'jvsuy':_0x1beaf5(0x259),'oiKkX':function(_0xdf5873,_0x387e41){return _0xdf5873&&_0x387e41;},'pLhNM':_0x1beaf5(0x289),'WPHRv':_0x1beaf5(0x1fe),'MyWTu':_0x1beaf5(0x1e7),'LthnE':_0x1beaf5(0x25b),'MULZo':function(_0x7fc47e,_0x5a16ec,_0x15cec9){return _0x7fc47e(_0x5a16ec,_0x15cec9);},'MsdTE':'@jest/core/build/ReporterDispatcher.js','LSMzD':_0x1beaf5(0x26e),'UvkPS':_0x1beaf5(0x1ee),'KdGZn':function(_0x42deb7,_0x991b59){return _0x42deb7>_0x991b59;},'BWfyt':'Showing\x20jest\x20logs\x20and\x20reporter\x20logs.','mBgDK':'--config','IGnBw':_0x1beaf5(0x20d),'Pyesw':function(_0x2a94e1,_0x3aed6c){return _0x2a94e1===_0x3aed6c;},'PzCkp':_0x1beaf5(0x1d8),'XXQsI':_0x1beaf5(0x254),'Pepjg':_0x1beaf5(0x277)},_0x29b9d9=helper['getPackageVersion'](_0xca4c19[_0x1beaf5(0x27c)]);global[_0x1beaf5(0x24e)]=!!_0x29b9d9;const _0xfb962e=_0xca4c19[_0x1beaf5(0x1b2)](getPuppeteerVersion);global['__isPuppeteerInstalled']=!!_0xfb962e;helper['isBrowserstackInfra']()&&(await _0x2556b3[_0x1beaf5(0x2a6)](_0x179dc0),await helper[_0x1beaf5(0x1e6)](_0x2556b3[_0x1beaf5(0x202)]));if(_0x29b9d9)await _0xca4c19['RNanC'](checkPwandBootstrapCli,_0x29b9d9,constants[_0x1beaf5(0x207)][_0x1beaf5(0x243)],_0x2556b3);else _0xfb962e&&await _0xca4c19[_0x1beaf5(0x266)](checkPuppeteerAndBootstrapCli,_0xfb962e,constants['FRAMEWORKS'][_0x1beaf5(0x243)],_0x2556b3);!BrowserstackCLI[_0x1beaf5(0x1b4)]()[_0x1beaf5(0x297)]()&&await _0x2556b3[_0x1beaf5(0x281)]();if(!_0x2556b3[_0x1beaf5(0x202)])return;_0xca4c19[_0x1beaf5(0x1fb)](_0x2556b3[_0x1beaf5(0x202)][_0x1beaf5(0x1f6)],null)?process[_0x1beaf5(0x1c1)][_0x1beaf5(0x2a1)]=_0x2556b3[_0x1beaf5(0x202)]['testObservability']:process[_0x1beaf5(0x1c1)][_0x1beaf5(0x2a1)]=_0xca4c19[_0x1beaf5(0x216)];const _0xb484ef=new TestOrchestrationHandler(_0x2556b3['config']),_0x208b65=await _0xca4c19[_0x1beaf5(0x1e0)](getUserJestConfigs,_0x179dc0,_0x1ddb10);logger['info'](_0xca4c19['CKnry']);const _0x54eb85=Object['assign']({},_0x208b65);_0x54eb85[_0x1beaf5(0x20c)]=Object[_0x1beaf5(0x227)]({},_0x54eb85['testEnvironmentOptions'],{'server':helper[_0x1beaf5(0x240)](_0x2556b3['config']),'environment':_0x208b65['testEnvironment']}),_0x54eb85[_0x1beaf5(0x20c)][_0x1beaf5(0x279)]=_0xca4c19[_0x1beaf5(0x209)](getPercyOptions,_0x2556b3[_0x1beaf5(0x202)]);const _0xed147a=helper[_0x1beaf5(0x206)](_0x2556b3['config']);!helper['isUndefined'](_0x2556b3[_0x1beaf5(0x202)][_0x1beaf5(0x271)])&&(process[_0x1beaf5(0x1c1)][_0x1beaf5(0x23e)]=JSON[_0x1beaf5(0x1f3)](_0x2556b3[_0x1beaf5(0x202)]['accessibilityOptions']));if(!BrowserstackCLI[_0x1beaf5(0x1b4)]()[_0x1beaf5(0x297)]()){const _0x227bfd=await TestHubHandler['launchBuild'](FRAMEWORKS[_0x1beaf5(0x243)],_0x2556b3);}const _0x12b151=helper['prepareCapabilities'](_0x2556b3[_0x1beaf5(0x202)],_0xed147a,constants['FRAMEWORKS']['JEST']);process['env']['BROWSERSTACK_CAPABILITIES']=JSON[_0x1beaf5(0x1f3)](_0x12b151);let _0x4b6d9e=_0x2556b3[_0x1beaf5(0x202)][_0x1beaf5(0x21c)];_0x4b6d9e=_0x4b6d9e||accessibilityHelper[_0x1beaf5(0x233)](_0x2556b3['config']),process[_0x1beaf5(0x1c1)][_0x1beaf5(0x1b8)]=_0x4b6d9e,logger[_0x1beaf5(0x1d7)]('[Jest\x20Command]\x20Accessibility\x20enabled:\x20'+_0x4b6d9e+',\x20CLI\x20running:\x20'+BrowserstackCLI[_0x1beaf5(0x1b4)]()[_0x1beaf5(0x297)]());if(_0x29b9d9)try{const _0x711759=_0xca4c19[_0x1beaf5(0x209)](checkAccessibilityPlatformConfig,_0x2556b3[_0x1beaf5(0x202)]);process[_0x1beaf5(0x1c1)][_0x1beaf5(0x282)]=_0x711759?_0xca4c19[_0x1beaf5(0x216)]:_0xca4c19['eNigD'],logger['debug'](_0x1beaf5(0x267)+_0x711759+',\x20BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM='+process[_0x1beaf5(0x1c1)][_0x1beaf5(0x282)]);}catch(_0x1ac0ef){logger[_0x1beaf5(0x1d7)](_0x1beaf5(0x1d4)+util['format'](_0x1ac0ef));}_0x54eb85['testEnvironmentOptions']['capabilities']=_0x12b151,_0x54eb85[_0x1beaf5(0x20c)]['serial__']=_0xca4c19[_0x1beaf5(0x1e0)](getSerial,_0x12b151,_0x179dc0),_0x54eb85[_0x1beaf5(0x20c)]['parallels__']=_0xca4c19[_0x1beaf5(0x266)](getMaxWorkers,_0x179dc0,_0x2556b3[_0x1beaf5(0x202)],_0x208b65),_0x54eb85['testEnvironmentOptions'][_0x1beaf5(0x231)]=_0x2556b3[_0x1beaf5(0x202)][_0x1beaf5(0x231)],_0x54eb85['testEnvironmentOptions']['timeout__']=_0xca4c19[_0x1beaf5(0x230)](_0x179dc0['testTimeout'],0x1)||0x1388,_0x54eb85[_0x1beaf5(0x20c)][_0x1beaf5(0x1c3)]=_0x2556b3['config'][_0x1beaf5(0x272)][_0x1beaf5(0x1c3)],_0x54eb85[_0x1beaf5(0x20c)][_0x1beaf5(0x1dc)]=_0x2556b3['config'][_0x1beaf5(0x272)]['skipSessionStatus'],_0x54eb85['testEnvironmentOptions'][_0x1beaf5(0x263)]=_0x2556b3['config']['logLevel'],_0x54eb85['testEnvironmentOptions'][_0x1beaf5(0x1bb)]=_0x2556b3[_0x1beaf5(0x202)][_0x1beaf5(0x1bb)],_0x54eb85[_0x1beaf5(0x20c)][_0x1beaf5(0x22f)]=_0x2556b3[_0x1beaf5(0x202)]['platforms'],Object['assign'](_0x54eb85[_0x1beaf5(0x20c)],helper['getMultiDriverWorkerConfig'](_0x2556b3[_0x1beaf5(0x202)],_0xed147a,constants[_0x1beaf5(0x207)][_0x1beaf5(0x243)]));const _0x124486=helper[_0x1beaf5(0x295)](_0x2556b3[_0x1beaf5(0x202)]);if(!helper[_0x1beaf5(0x1de)](_0x124486)){helper[_0x1beaf5(0x1b6)](_0x124486[_0x1beaf5(0x29e)])&&(_0x54eb85[_0x1beaf5(0x20c)][_0x1beaf5(0x1cb)]=_0x124486[_0x1beaf5(0x29e)][_0x1beaf5(0x24b)]);if(helper[_0x1beaf5(0x1b6)](_0x124486['abortBuildOnFailure'])&&helper[_0x1beaf5(0x1b6)](_0x124486[_0x1beaf5(0x1d5)][_0x1beaf5(0x22c)])){const _0x4abf03={};_0x4abf03[_0x1beaf5(0x1d2)]=_0x124486[_0x1beaf5(0x1d5)][_0x1beaf5(0x1f5)],_0x4abf03['workingDir']=_0x124486[_0x1beaf5(0x1d5)]['workingDir'],_0x54eb85[_0x1beaf5(0x20c)]['failFast']=_0x4abf03;}}let _0x4cff73='';_0xca4c19[_0x1beaf5(0x26b)](helper[_0x1beaf5(0x1ed)](),constants['PACKAGE_TYPE'][_0x1beaf5(0x278)])?_0x4cff73=_0xca4c19[_0x1beaf5(0x285)]:_0x4cff73=_0xca4c19[_0x1beaf5(0x241)];const _0x182b67=_0x4cff73,_0x15cca0=path[_0x1beaf5(0x269)](__dirname,_0xca4c19[_0x1beaf5(0x268)],_0xca4c19['sIyAr']),_0xaf8ac8=path[_0x1beaf5(0x269)](__dirname,_0xca4c19['ZaEzZ'],_0xca4c19[_0x1beaf5(0x28a)]),_0x46d2f7=path[_0x1beaf5(0x269)](__dirname,_0xca4c19[_0x1beaf5(0x268)],_0xca4c19[_0x1beaf5(0x2a3)]);_0x54eb85[_0x1beaf5(0x24c)]&&(process[_0x1beaf5(0x1c1)][_0x1beaf5(0x22d)]=_0x54eb85[_0x1beaf5(0x24c)]);_0x54eb85['testEnvironment']=path[_0x1beaf5(0x269)](__dirname,_0xca4c19[_0x1beaf5(0x268)],_0xca4c19[_0x1beaf5(0x223)]);const _0x2ad860=_0x208b65[_0x1beaf5(0x29f)];if(_0x2ad860&&_0xca4c19['oVBZs'](_0x2ad860,_0xca4c19[_0x1beaf5(0x260)])){const _0x24e560=_0x2ad860[_0x1beaf5(0x1ef)](_0xca4c19[_0x1beaf5(0x261)])?_0x2ad860:'jest-runner-'+_0x2ad860;process[_0x1beaf5(0x1c1)][_0x1beaf5(0x246)]=_0x24e560,logger[_0x1beaf5(0x262)]('Preserving\x20user\x27s\x20Jest\x20runner:\x20'+_0x24e560);}_0x54eb85[_0x1beaf5(0x29f)]=_0xaf8ac8,_0x54eb85[_0x1beaf5(0x205)]=_0x54eb85[_0x1beaf5(0x205)]||[],_0x54eb85[_0x1beaf5(0x205)][_0x1beaf5(0x1c4)](path['join'](__dirname,_0xca4c19[_0x1beaf5(0x2a5)]));_0xb484ef['isTestOrchestrationEnabled']()&&(_0x54eb85['testSequencer']=path[_0x1beaf5(0x269)](__dirname,_0xca4c19[_0x1beaf5(0x268)],_0xca4c19[_0x1beaf5(0x25f)]));if(testhubUtils[_0x1beaf5(0x256)]()||BrowserstackCLI[_0x1beaf5(0x1b4)]()[_0x1beaf5(0x1f8)]()){let _0x4dc428=null;try{_0x4dc428=helper[_0x1beaf5(0x1be)](_0xca4c19[_0x1beaf5(0x22a)],_0xca4c19[_0x1beaf5(0x1da)]);}catch(_0x26626c){try{_0x4dc428=helper[_0x1beaf5(0x1be)](_0xca4c19[_0x1beaf5(0x255)],_0xca4c19['EIGOz']);}catch(_0x4f50a8){_0xca4c19[_0x1beaf5(0x1b9)](debug,_0x1beaf5(0x23f)+_0x4f50a8);}}_0x4dc428&&(testhubUtils[_0x1beaf5(0x256)]()&&_0x54eb85['setupFilesAfterEnv'][_0x1beaf5(0x1c4)](path['join'](__dirname,_0xca4c19[_0x1beaf5(0x273)],_0xca4c19[_0x1beaf5(0x1db)])),_0x54eb85[_0x1beaf5(0x213)]=path[_0x1beaf5(0x269)](__dirname,_0xca4c19[_0x1beaf5(0x268)],_0xca4c19['DKInR']));}_0x54eb85[_0x1beaf5(0x23d)]=_0x54eb85[_0x1beaf5(0x23d)]||[];try{helper[_0x1beaf5(0x284)](),_0x54eb85['setupFiles'][_0x1beaf5(0x1c4)](path['join'](__dirname,_0xca4c19[_0x1beaf5(0x1bd)]));}catch{logger[_0x1beaf5(0x1d7)](_0xca4c19[_0x1beaf5(0x1e8)]);}try{helper[_0x1beaf5(0x218)][_0x1beaf5(0x1b7)](null,[_0xca4c19[_0x1beaf5(0x27c)],_0xca4c19[_0x1beaf5(0x245)]]),logger['debug'](_0xca4c19[_0x1beaf5(0x29a)]),_0x54eb85[_0x1beaf5(0x23d)]['push'](path[_0x1beaf5(0x269)](__dirname,_0xca4c19[_0x1beaf5(0x290)]));}catch(_0x3ab645){logger['debug'](_0xca4c19[_0x1beaf5(0x20b)],_0x3ab645);}if(_0xca4c19['oiKkX'](!_0x29b9d9,_0xfb962e)){try{logger[_0x1beaf5(0x1d7)](_0xca4c19[_0x1beaf5(0x294)]),_0x54eb85[_0x1beaf5(0x205)][_0x1beaf5(0x1c4)](path[_0x1beaf5(0x269)](__dirname,'..',_0xca4c19[_0x1beaf5(0x29d)],_0xca4c19['nlshu']));}catch(_0x2c8d28){logger[_0x1beaf5(0x1d7)]('Puppeteer\x20setup\x20error:\x20'+_0x2c8d28[_0x1beaf5(0x274)]);}try{const _0x4bcba6=require['resolve'](_0xca4c19[_0x1beaf5(0x251)]),_0x5a8cc5=path[_0x1beaf5(0x1c0)](_0x4bcba6)[_0x1beaf5(0x1cd)](/\\/g,'/'),_0x1b3481={};_0x1b3481['^puppeteer-core/internal/(.*)']=_0x5a8cc5+'/internal/$1',_0x54eb85[_0x1beaf5(0x26d)]=Object[_0x1beaf5(0x227)]({},_0x54eb85[_0x1beaf5(0x26d)]||{},_0x1b3481),logger[_0x1beaf5(0x1d7)](_0x1beaf5(0x292)+_0x5a8cc5);}catch(_0x263054){logger['debug'](_0x1beaf5(0x1f0)+_0x263054[_0x1beaf5(0x274)]);}}_0x54eb85[_0x1beaf5(0x2a7)]=_0x54eb85[_0x1beaf5(0x2a7)]||[_0xca4c19[_0x1beaf5(0x1cf)]],_0xca4c19[_0x1beaf5(0x249)](updateTestRerunConfig,_0x54eb85,_0x2556b3);const _0x2174ad=fs[_0x1beaf5(0x287)](_0x46d2f7),_0x57e513=helper[_0x1beaf5(0x257)](_0xca4c19[_0x1beaf5(0x228)],_0xca4c19[_0x1beaf5(0x1c8)]);!_0x57e513['error']?fs[_0x1beaf5(0x1c2)](_0x54eb85[_0x1beaf5(0x29f)],_0x1beaf5(0x244)+_0x2174ad+'\x0a\x0a\x20\x20\x20\x20\x20\x20const\x20ReporterDispatcher\x20=\x20_interopRequireDefault(requireModule(\x27@jest/core/build/ReporterDispatcher.js\x27,\x20\x27@jest/core\x27)).default;\x0a\x20\x20\x20\x20\x20\x20const\x20fs\x20=\x20require(\x27fs\x27);\x0a\x20\x20\x20\x20\x20\x20const\x20path\x20=\x20require(\x27path\x27);\x0a\x20\x20\x20\x20\x20\x20const\x20helper\x20=\x20require(\x27../../../helpers/helper\x27);\x0a\x20\x20\x20\x20\x20\x20var\x20_someFunc\x20=\x20ReporterDispatcher.prototype.onRunComplete;\x0a\x20\x20\x20\x20\x20\x20ReporterDispatcher.prototype.onRunComplete\x20=\x20async\x20function\x20(testContexts,\x20results)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20results.numTotalTestSuites\x20=\x20results.numTotalTestSuites\x20*\x20'+_0x2556b3[_0x1beaf5(0x202)][_0x1beaf5(0x1e5)][_0x1beaf5(0x1c7)]+_0x1beaf5(0x288)):fs['writeFileSync'](_0x54eb85[_0x1beaf5(0x29f)],'\x0a\x20\x20\x20\x20\x20\x20'+_0x2174ad+_0x1beaf5(0x25a)+_0x2556b3['config']['platforms']['length']+_0x1beaf5(0x1ce));logger[_0x1beaf5(0x262)]('Creating\x20'+_0x182b67+'\x20with\x20browserstack\x20jest\x20configs'),fs[_0x1beaf5(0x1c2)](_0x182b67,_0x1beaf5(0x217)+JSON['stringify'](_0x54eb85)+'\x0amodule.exports\x20=\x20config;');if(_0xb484ef[_0x1beaf5(0x238)]()){logger[_0x1beaf5(0x1d7)](_0xca4c19['UvkPS']);const _0x3674bf=await _0xb484ef['findTestFiles'](_0x54eb85,_0x1ddb10[_0x1beaf5(0x20f)](0x1),_0x182b67);logger['debug'](_0x1beaf5(0x29c)+JSON['stringify'](_0x3674bf)+_0x1beaf5(0x225));const _0x15e9ff=await _0xb484ef[_0x1beaf5(0x264)](_0x3674bf);logger[_0x1beaf5(0x1d7)](_0x1beaf5(0x1fd)+JSON[_0x1beaf5(0x1f3)](_0x15e9ff)),_0x15e9ff&&_0xca4c19[_0x1beaf5(0x28f)](_0x15e9ff[_0x1beaf5(0x1c7)],0x0)&&(process[_0x1beaf5(0x1c1)][_0x1beaf5(0x224)]=_0x15e9ff?.[_0x1beaf5(0x269)](','));}logger[_0x1beaf5(0x262)](_0xca4c19['BWfyt']);testhubUtils[_0x1beaf5(0x256)]()&&TestDetails[_0x1beaf5(0x221)]();helper[_0x1beaf5(0x235)]({},_0x1ddb10),PerformanceTester[_0x1beaf5(0x21d)](PerformanceEvents[_0x1beaf5(0x280)]);const _0x3b46af=[_0xca4c19['PpzJy'],_0xca4c19[_0x1beaf5(0x25e)],_0x182b67,..._0x1ddb10[_0x1beaf5(0x20f)](0x1)];process['env'][_0x1beaf5(0x29b)]=process[_0x1beaf5(0x1c1)][_0x1beaf5(0x29b)]||_0xca4c19[_0x1beaf5(0x248)];const _0x13c511=_0xca4c19[_0x1beaf5(0x25c)](spawn,_0xca4c19[_0x1beaf5(0x276)],_0x3b46af,{'shell':_0xca4c19[_0x1beaf5(0x1f7)](process['platform'],_0xca4c19['PzCkp']),'stdio':_0xca4c19[_0x1beaf5(0x201)],'env':Object[_0x1beaf5(0x227)]({},process[_0x1beaf5(0x1c1)])});_0x13c511['on'](_0xca4c19[_0x1beaf5(0x239)],async _0x1747af=>{const _0x377b13=_0x1beaf5;PerformanceTester[_0x377b13(0x27e)](PerformanceEvents['SDK_CLEANUP']),process[_0x377b13(0x250)]=_0x1747af,logger['debug']('child\x20process\x20exited\x20with\x20code\x20'+_0x1747af),logger[_0x377b13(0x262)]('Deleting\x20'+_0x182b67);if(helper['isNotUndefined'](_0x124486)&&helper[_0x377b13(0x1b6)](_0x124486['abortBuildOnFailure'])&&fs['existsSync'](_0x124486[_0x377b13(0x1d5)][_0x377b13(0x22c)]))try{const _0x3832f1={};_0x3832f1[_0x377b13(0x23b)]=!![],_0x3832f1[_0x377b13(0x1b5)]=!![],fs[_0x377b13(0x21f)](_0x124486['abortBuildOnFailure'][_0x377b13(0x22c)],_0x3832f1),logger['debug']('Deleted\x20fail-fast\x20state\x20folder:\x20'+_0x124486['abortBuildOnFailure'][_0x377b13(0x22c)]);}catch(_0x241c88){logger[_0x377b13(0x1d3)]('Error\x20while\x20deleting\x20fail-fast\x20state\x20folder:\x20'+_0x241c88);}let _0x520be2=null;if(fs[_0x377b13(0x253)](_0x15cca0)){_0x520be2=fs['readFileSync'](_0x15cca0);try{_0x520be2=JSON[_0x377b13(0x1d1)](_0x520be2);}catch(_0xde2225){logger[_0x377b13(0x1d7)]('Error\x20while\x20parsing\x20'+_0x15cca0+',\x20'+_0x520be2+_0x377b13(0x229)+_0xde2225);}fs[_0x377b13(0x236)](_0x15cca0);}fs['unlinkSync'](_0x182b67),fs[_0x377b13(0x236)](_0xaf8ac8),_0x520be2&&(_0x2556b3[_0x377b13(0x23a)]=helper[_0x377b13(0x208)](_0x520be2,_0xca4c19[_0x377b13(0x248)],_0x2556b3));const _0x1cb810=BrowserstackCLI[_0x377b13(0x24a)]();try{await TestHubHandler['stop'](),await BrowserstackCLI[_0x377b13(0x1b4)]()[_0x377b13(0x1e1)]();}catch(_0x2bb7cb){console[_0x377b13(0x1d0)](_0x2bb7cb),_0xca4c19[_0x377b13(0x209)](debug,_0x377b13(0x1bc)+util[_0x377b13(0x28c)](_0x2bb7cb));}testOpsHelper[_0x377b13(0x1c9)](),TestDetails[_0x377b13(0x200)](),await utilities[_0x377b13(0x26f)](_0x2556b3,_0x1cb810);});}module[a21_0x37bcc1(0x226)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a22_0x155dca=a22_0x19d4;(function(_0x4865a4,_0x29876b){const _0x333723=a22_0x19d4,_0x12aa25=_0x4865a4();while(!![]){try{const _0x8dcceb=-parseInt(_0x333723(0xe2))/0x1+parseInt(_0x333723(0xef))/0x2*(-parseInt(_0x333723(0xe7))/0x3)+-parseInt(_0x333723(0xed))/0x4+parseInt(_0x333723(0xde))/0x5+-parseInt(_0x333723(0xe4))/0x6*(parseInt(_0x333723(0xe3))/0x7)+parseInt(_0x333723(0xec))/0x8*(-parseInt(_0x333723(0xe0))/0x9)+parseInt(_0x333723(0xf1))/0xa;if(_0x8dcceb===_0x29876b)break;else _0x12aa25['push'](_0x12aa25['shift']());}catch(_0x3453a7){_0x12aa25['push'](_0x12aa25['shift']());}}}(a22_0x4954,0xa3916));const path=require(a22_0x155dca(0xe1)),{requireModule}=require(a22_0x155dca(0xdc));let initJestAdapter;try{initJestAdapter=requireModule(a22_0x155dca(0xeb),'jest-circus');}catch{initJestAdapter=requireModule(a22_0x155dca(0xf2),a22_0x155dca(0xf3));}initJestAdapter=typeof initJestAdapter===a22_0x155dca(0xe5)?initJestAdapter:initJestAdapter[a22_0x155dca(0xe8)];const FRAMEWORK_INITIALIZER=path[a22_0x155dca(0xf4)](__dirname,a22_0x155dca(0xf0));function a22_0x4954(){const _0x256299=['2HTAQNI','customJestAdapterInit.js','29981740SPfcoS','jest-circus/build/runner.js','jest-circus','join','oWSqj','initRequireModule','../../../helpers/helper','exports','5387970infbQw','requireInternalModule','1278738HFEYXj','path','768825flmXqI','351617WbSwWh','66zsLDGp','function','whbtK','1578513CpbvDX','default','includes','IQEPH','jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js','32ELIJZy','3959716vXaivx','jestAdapterInit'];a22_0x4954=function(){return _0x256299;};return a22_0x4954();}function a22_0x19d4(_0x51c367,_0x24bba3){const _0x4954aa=a22_0x4954();return a22_0x19d4=function(_0x19d4f9,_0x4005bc){_0x19d4f9=_0x19d4f9-0xda;let _0x17ebc1=_0x4954aa[_0x19d4f9];return _0x17ebc1;},a22_0x19d4(_0x51c367,_0x24bba3);}module[a22_0x155dca(0xdd)]=(..._0x1ecc2d)=>{const _0x4b8243=a22_0x155dca,_0x3b5eae={'oWSqj':_0x4b8243(0xee),'IQEPH':function(_0x1619d2,_0x11dcd3){return _0x1619d2===_0x11dcd3;},'whbtK':function(_0x524daf,..._0x469075){return _0x524daf(..._0x469075);}};return _0x1ecc2d[0x3][_0x4b8243(0xdb)]=_0x1ecc2d[0x3][_0x4b8243(0xdf)],_0x1ecc2d[0x3][_0x4b8243(0xdf)]=(..._0x52ee25)=>{const _0x2c0e68=_0x4b8243;if(_0x52ee25[0x0]&&_0x52ee25[0x0][_0x2c0e68(0xe9)](_0x3b5eae[_0x2c0e68(0xda)])&&_0x3b5eae[_0x2c0e68(0xea)](_0x52ee25[0x1],undefined))return _0x1ecc2d[0x3][_0x2c0e68(0xdb)](FRAMEWORK_INITIALIZER);return _0x1ecc2d[0x3][_0x2c0e68(0xdb)](..._0x52ee25);},_0x3b5eae[_0x4b8243(0xe6)](initJestAdapter,..._0x1ecc2d);};
|