browserstack-node-sdk 1.70.2 → 1.70.3
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_0x5969a7=a15_0x361c;(function(_0x1be675,_0x162afd){const _0x419481=a15_0x361c,_0x3e1195=_0x1be675();while(!![]){try{const _0x22d155=parseInt(_0x419481(0xbe))/0x1+-parseInt(_0x419481(0xcb))/0x2*(parseInt(_0x419481(0xcd))/0x3)+parseInt(_0x419481(0xc4))/0x4*(parseInt(_0x419481(0xa3))/0x5)+parseInt(_0x419481(0xaf))/0x6*(-parseInt(_0x419481(0xba))/0x7)+-parseInt(_0x419481(0xce))/0x8+parseInt(_0x419481(0xa9))/0x9+parseInt(_0x419481(0xa4))/0xa;if(_0x22d155===_0x162afd)break;else _0x3e1195['push'](_0x3e1195['shift']());}catch(_0x18aefd){_0x3e1195['push'](_0x3e1195['shift']());}}}(a15_0x273a,0x3da19));const {default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),logger=require(a15_0x5969a7(0xd9))[a15_0x5969a7(0xd8)],{URL}=require(a15_0x5969a7(0xd4)),helper=require(a15_0x5969a7(0xbc)),{HELP_MESSAGES,ERROR_MESSAGES}=require(a15_0x5969a7(0xbd)),validHosts=function(_0x5baf22){const _0x27a833=a15_0x5969a7;return _0x5baf22[_0x27a833(0x9d)](',')['every'](_0x598338=>{const _0x4c2132=_0x27a833;try{new URL(_0x598338[_0x4c2132(0xd7)]());}catch(_0x2eef48){return![];}return!![];});},parseOnPremHosts=function(_0x7fbce3){const _0x25ebe4=a15_0x5969a7,_0x12ebf1={};_0x12ebf1[_0x25ebe4(0xb3)]=function(_0x316c65,_0xf2a3ab){return _0x316c65===_0xf2a3ab;},_0x12ebf1[_0x25ebe4(0xb8)]=_0x25ebe4(0xa1),_0x12ebf1[_0x25ebe4(0xca)]=_0x25ebe4(0xe6),_0x12ebf1[_0x25ebe4(0xae)]=_0x25ebe4(0xe2);const _0x3de9db=_0x12ebf1;return _0x7fbce3[_0x25ebe4(0x9d)](',')[_0x25ebe4(0xad)](_0x3ec5b4=>{const _0xf9d837=_0x25ebe4,_0x3a95eb=new URL(_0x3ec5b4[_0xf9d837(0xd7)]()),_0x1093f1=_0x3a95eb[_0xf9d837(0xd3)],_0x637ee=_0x3a95eb[_0xf9d837(0xd1)]||(_0x3de9db[_0xf9d837(0xb3)](_0x3a95eb[_0xf9d837(0xc8)],_0x3de9db[_0xf9d837(0xb8)])?_0x3de9db[_0xf9d837(0xca)]:'80'),_0x40a03c=_0x3a95eb[_0xf9d837(0xc8)][_0xf9d837(0x9e)](':',''),_0x211518=_0x3de9db[_0xf9d837(0xb3)](_0x40a03c,_0x3de9db[_0xf9d837(0xae)])?0x1:0x0;return _0x1093f1+','+_0x637ee+','+_0x211518;});},connectCommandBuilder=function(_0x27aa6a){const _0x41bb28=a15_0x5969a7,_0x2fbbf0={};_0x2fbbf0[_0x41bb28(0xa7)]=_0x41bb28(0xc3);const _0x54fb19=_0x2fbbf0,_0x46bc44={};_0x46bc44[_0x41bb28(0xd5)]=HELP_MESSAGES[_0x41bb28(0xc5)][_0x41bb28(0xc1)],_0x46bc44['type']=_0x54fb19[_0x41bb28(0xa7)];const _0x29a326={};_0x29a326['describe']=HELP_MESSAGES['options'][_0x41bb28(0xab)],_0x29a326[_0x41bb28(0xc6)]=_0x54fb19[_0x41bb28(0xa7)],_0x29a326[_0x41bb28(0xb5)]=!![];const _0x2084fc={};return _0x2084fc[_0x41bb28(0xb0)]=_0x46bc44,_0x2084fc[_0x41bb28(0xab)]=_0x29a326,_0x27aa6a['options'](_0x2084fc);},connectCommandHandler=async function(_0x48722f){const _0x5cd2e7=a15_0x5969a7,_0x38d4fd={'ebPKN':'integrations','tIdXt':function(_0x47a72d,_0x54f573){return _0x47a72d===_0x54f573;},'reBFl':_0x5cd2e7(0xdc),'KxzIq':_0x5cd2e7(0xb1),'CLNRO':function(_0x1a6e54,_0x524f8b){return _0x1a6e54===_0x524f8b;},'wBDOp':_0x5cd2e7(0xb2),'dsCHN':function(_0x251379,_0x4e3c3d){return _0x251379(_0x4e3c3d);},'PRYTy':'Hosts\x20not\x20valid','KbGEE':function(_0x1579ed,_0x2b91a7){return _0x1579ed(_0x2b91a7);},'ymcmG':'integrations-repeater','rgscl':_0x5cd2e7(0x9f),'dRzWE':_0x5cd2e7(0xb6)};try{const _0x482efc=new BrowserStackSetup(_0x48722f,_0x38d4fd['ebPKN']);_0x48722f[_0x5cd2e7(0xa2)]&&(_0x482efc[_0x5cd2e7(0xc2)]['accessKey']=_0x48722f[_0x5cd2e7(0xa2)]);if(_0x38d4fd['tIdXt'](typeof _0x482efc[_0x5cd2e7(0xc2)][_0x5cd2e7(0xaa)],_0x38d4fd['reBFl'])){logger[_0x5cd2e7(0xc0)](_0x38d4fd['KxzIq']);throw new Error(ERROR_MESSAGES[_0x5cd2e7(0xc1)]['missing']);}const _0x4ec9dd=_0x48722f[_0x5cd2e7(0xab)];if(_0x38d4fd[_0x5cd2e7(0xe1)](typeof _0x4ec9dd,_0x38d4fd[_0x5cd2e7(0xc7)])){logger[_0x5cd2e7(0xc0)](_0x38d4fd[_0x5cd2e7(0xd0)]);throw new Error(ERROR_MESSAGES['hosts'][_0x5cd2e7(0xcc)]);}if(!_0x38d4fd[_0x5cd2e7(0xe3)](validHosts,_0x4ec9dd)){logger[_0x5cd2e7(0xc0)](_0x38d4fd[_0x5cd2e7(0xda)]);throw new Error(ERROR_MESSAGES[_0x5cd2e7(0xab)]['invalid']);}const _0x5cfb3e=_0x38d4fd[_0x5cd2e7(0xcf)](parseOnPremHosts,_0x4ec9dd);_0x482efc['config'][_0x5cd2e7(0xb4)]=!![],_0x482efc[_0x5cd2e7(0xc2)][_0x5cd2e7(0xa6)][_0x5cd2e7(0xa5)]=_0x38d4fd[_0x5cd2e7(0xbb)],_0x482efc[_0x5cd2e7(0xc2)]['browserStackLocalOptions']['only']=_0x5cfb3e[_0x5cd2e7(0xe5)](','),helper[_0x5cd2e7(0xbf)](_0x482efc[_0x5cd2e7(0xc2)]),await _0x482efc[_0x5cd2e7(0xa8)](),logger[_0x5cd2e7(0xb7)](_0x38d4fd[_0x5cd2e7(0xd2)]);}catch(_0x5d93b5){logger[_0x5cd2e7(0xc0)](_0x38d4fd[_0x5cd2e7(0xd6)]);throw new Error(_0x5d93b5[_0x5cd2e7(0xac)]());}};function a15_0x361c(_0x524735,_0x58e972){const _0x273a18=a15_0x273a();return a15_0x361c=function(_0x361cdd,_0x141181){_0x361cdd=_0x361cdd-0x9d;let _0x138ac5=_0x273a18[_0x361cdd];return _0x138ac5;},a15_0x361c(_0x524735,_0x58e972);}function run(_0x291ffa){const _0x173695=a15_0x5969a7,_0x33d8a2={};_0x33d8a2[_0x173695(0xdb)]=_0x173695(0xb9),_0x33d8a2['HyiKy']='help';const _0x16e9aa=_0x33d8a2;_0x291ffa[_0x173695(0xc9)](HELP_MESSAGES['command'][_0x173695(0xa0)])['command'](_0x16e9aa['oIWTd'],HELP_MESSAGES['command']['connect'],connectCommandBuilder,connectCommandHandler)[_0x173695(0xdf)]()['help'](_0x16e9aa[_0x173695(0xe0)])['epilogue'](HELP_MESSAGES[_0x173695(0xde)][_0x173695(0xe4)]);}module[a15_0x5969a7(0xdd)]=run;function a15_0x273a(){const _0xdc28a=['443','split','replace','Connection\x20established\x20successfully.','root','https:','bstackAccesskey','59730gbKkKC','5640790rvwNcQ','localIdentifier','browserStackLocalOptions','AegnK','setupBrowserstackLocal','2125899hUrTdE','accessKey','hosts','toString','map','akSpr','468708onDvhY','bstack-accesskey','BrowserStack\x20access\x20key\x20missing.','Integration\x20hosts\x20missing.','oBgRL','browserstackLocal','demandOption','Failed\x20to\x20establish\x20connection.','info','BbaLD','connect','35muXAYR','ymcmG','../../helpers/helper','./constants','10322WQtLKW','setProxySettings','error','bstackAccessKey','config','string','48vfgous','options','type','reBFl','protocol','usage','RDQIh','161178RDBcQR','missing','6hHNcPX','1198040HiwUBP','KbGEE','wBDOp','port','rgscl','hostname','url','describe','dRzWE','trim','winstonLogger','../../helpers/logger','PRYTy','oIWTd','undefined','exports','command','demandCommand','HyiKy','CLNRO','https','dsCHN','footer','join'];a15_0x273a=function(){return _0xdc28a;};return a15_0x273a();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a16_0x4fcd58=a16_0x1111;function a16_0x1111(_0x55486c,_0x56cc25){var _0x139d35=a16_0x139d();return a16_0x1111=function(_0x1111f8,_0x1f134f){_0x1111f8=_0x1111f8-0x9f;var _0x3e0cb2=_0x139d35[_0x1111f8];return _0x3e0cb2;},a16_0x1111(_0x55486c,_0x56cc25);}(function(_0x4e7304,_0x148b11){var _0x302afd=a16_0x1111,_0x3552aa=_0x4e7304();while(!![]){try{var _0x2f0b51=parseInt(_0x302afd(0xa9))/0x1+-parseInt(_0x302afd(0xb5))/0x2+-parseInt(_0x302afd(0xa7))/0x3*(-parseInt(_0x302afd(0xa3))/0x4)+-parseInt(_0x302afd(0xa0))/0x5*(parseInt(_0x302afd(0xa5))/0x6)+parseInt(_0x302afd(0xa8))/0x7*(parseInt(_0x302afd(0xae))/0x8)+parseInt(_0x302afd(0xab))/0x9*(parseInt(_0x302afd(0xaf))/0xa)+parseInt(_0x302afd(0xb2))/0xb*(-parseInt(_0x302afd(0xa4))/0xc);if(_0x2f0b51===_0x148b11)break;else _0x3552aa['push'](_0x3552aa['shift']());}catch(_0x2ed1a9){_0x3552aa['push'](_0x3552aa['shift']());}}}(a16_0x139d,0xb044c));var a16_0xb81197={};a16_0xb81197[a16_0x4fcd58(0xa2)]='Specify\x20your\x20BrowserStack\x20access\x20key\x20for\x20authentication\x20with\x20our\x20services.',a16_0xb81197[a16_0x4fcd58(0xb8)]='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.';var a16_0x5b6c76={};a16_0x5b6c76[a16_0x4fcd58(0xac)]='Integrate\x20BrowserStack\x20with\x20your\x20favorite\x20third-party\x20tools\x20for\x20faster\x20and\x20efficient\x20testing.',a16_0x5b6c76[a16_0x4fcd58(0xa1)]=a16_0x4fcd58(0xad),a16_0x5b6c76[a16_0x4fcd58(0xb6)]='Use\x20\x22browserstack-cli\x20integrations\x20<command_group>\x20-h/--help\x22\x20for\x20additional\x20help\x20and\x20details\x20about\x20BrowserStack\x20integrations.';var a16_0x1bd0f8={};a16_0x1bd0f8['options']=a16_0xb81197,a16_0x1bd0f8[a16_0x4fcd58(0x9f)]=a16_0x5b6c76,exports[a16_0x4fcd58(0xaa)]=a16_0x1bd0f8;var a16_0xb7926f={};a16_0xb7926f['missing']=a16_0x4fcd58(0xb4);var a16_0x8d36f3={};a16_0x8d36f3[a16_0x4fcd58(0xb7)]=a16_0x4fcd58(0xb0),a16_0x8d36f3[a16_0x4fcd58(0xb3)]=a16_0x4fcd58(0xa6);function a16_0x139d(){var _0x436180=['invalid','BrowserStack\x20access\x20key\x20missing.\x20Specify\x20your\x20BrowserStack\x20access\x20key\x20for\x20authentication\x20with\x20our\x20services.','2488304laFSkM','footer','missing','hosts','command','13810dtSrjP','connect','bstackAccessKey','8ETzCBi','458316FERqZG','2508nRrfEr','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.','2037507ABtnll','7aZJyie','978615qalJVM','HELP_MESSAGES','2322fosAmB','root','Connect\x20new\x20integration\x20from\x20a\x20list\x20of\x20supported\x20tools.','9624840AefbUg','7430KIwqsy','Integration\x20hosts\x20missing.\x20Specify\x20a\x20comma\x20separated\x20list\x20of\x20hosts\x20(eg:\x20http://your-jira.yourdomain.com:8080,..)\x20for\x20the\x20integration.','ERROR_MESSAGES','176MuFYCO'];a16_0x139d=function(){return _0x436180;};return a16_0x139d();}var a16_0x44be53={};a16_0x44be53[a16_0x4fcd58(0xa2)]=a16_0xb7926f,a16_0x44be53[a16_0x4fcd58(0xb8)]=a16_0x8d36f3,exports[a16_0x4fcd58(0xb1)]=a16_0x44be53;
|
|
@@ -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_0x3f580a=a17_0x3cd7;function a17_0x3cd7(_0x6505ed,_0x4437be){const _0x1c77f7=a17_0x1c77();return a17_0x3cd7=function(_0x3cd722,_0x9c2409){_0x3cd722=_0x3cd722-0xf5;let _0xebc53b=_0x1c77f7[_0x3cd722];return _0xebc53b;},a17_0x3cd7(_0x6505ed,_0x4437be);}(function(_0x3d2504,_0x1625fd){const _0x48e01d=a17_0x3cd7,_0x45fd5c=_0x3d2504();while(!![]){try{const _0x6e5998=-parseInt(_0x48e01d(0x147))/0x1*(parseInt(_0x48e01d(0x12b))/0x2)+parseInt(_0x48e01d(0x15e))/0x3+parseInt(_0x48e01d(0x14c))/0x4*(-parseInt(_0x48e01d(0x166))/0x5)+parseInt(_0x48e01d(0x102))/0x6+-parseInt(_0x48e01d(0x160))/0x7+parseInt(_0x48e01d(0x108))/0x8*(-parseInt(_0x48e01d(0x136))/0x9)+parseInt(_0x48e01d(0x12f))/0xa*(parseInt(_0x48e01d(0xf9))/0xb);if(_0x6e5998===_0x1625fd)break;else _0x45fd5c['push'](_0x45fd5c['shift']());}catch(_0x1aa74e){_0x45fd5c['push'](_0x45fd5c['shift']());}}}(a17_0x1c77,0x46e44));const path=require(a17_0x3f580a(0x11f)),fs=require('fs'),{v4:uuidv4}=require(a17_0x3f580a(0x15d)),testhubUtils=require('../../../helpers/testhub/utils'),{FRAMEWORKS}=require(a17_0x3f580a(0x127)),SessionHandler=require('../../../helpers/test-observability/sessionHandler'),{isTestObservabilitySession,PathHelper,debug,failureData}=require(a17_0x3f580a(0x169)),testRunMap=require(a17_0x3f580a(0x174)),_specStartTimes=new Map(),JASMINE_FRAMEWORK_LABEL=a17_0x3f580a(0x15f),a17_0x287305={};a17_0x287305[a17_0x3f580a(0x111)]=a17_0x3f580a(0x111),a17_0x287305[a17_0x3f580a(0x12d)]='failed',a17_0x287305[a17_0x3f580a(0x13b)]=a17_0x3f580a(0x13b),a17_0x287305[a17_0x3f580a(0x10c)]=a17_0x3f580a(0x175);const STATUS_MAP=a17_0x287305;class BrowserStackJasmineReporter{constructor(_0x1fe089={}){const _0x23e1e1=a17_0x3f580a,_0x1fa625={'XoCGo':function(_0x5c5491){return _0x5c5491();}};this[_0x23e1e1(0x161)]=_0x1fa625[_0x23e1e1(0x17c)](isTestObservabilitySession),this[_0x23e1e1(0x17b)]=new PathHelper({'cwd':process[_0x23e1e1(0x10b)]()},undefined),this[_0x23e1e1(0x151)]=_0x1fe089&&_0x1fe089['fileNameByFullName']||{},this[_0x23e1e1(0x164)]=new Map();}[a17_0x3f580a(0x171)](){}['suiteStarted'](_0x24b3fd){const _0x5d6bee=a17_0x3f580a,_0x2c92e7={'TNlvX':function(_0x2b416e,_0x438d7e){return _0x2b416e!==_0x438d7e;},'xDWvf':function(_0x46b97a,_0x3a0275){return _0x46b97a!==_0x3a0275;},'dyOuV':function(_0x5ccbfd,_0x5e041a){return _0x5ccbfd(_0x5e041a);}};try{_0x24b3fd&&_0x2c92e7['TNlvX'](_0x24b3fd['id'],undefined)&&_0x2c92e7[_0x5d6bee(0x106)](_0x24b3fd['id'],null)&&this['_suitesById']['set'](_0x24b3fd['id'],{'description':_0x24b3fd[_0x5d6bee(0x12c)],'parentSuiteId':_0x24b3fd[_0x5d6bee(0x101)]});}catch(_0x3ca057){_0x2c92e7[_0x5d6bee(0x167)](debug,_0x5d6bee(0x16d)+(_0x24b3fd&&_0x24b3fd[_0x5d6bee(0x120)])+'\x20:\x20'+_0x3ca057);}}[a17_0x3f580a(0x16e)](_0x18fa00){const _0x1d765d=a17_0x3f580a,_0xf4581f={'Wvygc':function(_0x7464ff,_0x1dfb75){return _0x7464ff!==_0x1dfb75;},'baoIr':function(_0x20c9d0){return _0x20c9d0();},'QSXOs':_0x1d765d(0x130),'gXvEa':function(_0x17141a,_0x3b2034){return _0x17141a(_0x3b2034);}};try{if(_0xf4581f[_0x1d765d(0x143)](testhubUtils['shouldProcessEventForTesthub'](),!![]))return;const _0x2750b0=_0xf4581f[_0x1d765d(0x146)](uuidv4);testRunMap[_0x1d765d(0x155)](_0x18fa00['id'],_0x2750b0),this[_0x1d765d(0x17f)](_0x18fa00,_0x2750b0,_0xf4581f['QSXOs']);}catch(_0x432702){_0xf4581f[_0x1d765d(0x129)](debug,_0x1d765d(0x170)+(_0x18fa00&&_0x18fa00['fullName'])+'\x20:\x20'+_0x432702);}}[a17_0x3f580a(0x13d)](_0x42e7e5){const _0xf6cfeb=a17_0x3f580a,_0x544253={'PMCjn':function(_0x20c8a8,_0x59fa48){return _0x20c8a8!==_0x59fa48;},'QmEvO':function(_0x3e7688){return _0x3e7688();},'zvRmI':function(_0x561d7a,_0xb0a893){return _0x561d7a===_0xb0a893;},'hvonq':_0xf6cfeb(0x10c),'iRamc':_0xf6cfeb(0x179),'UBIOa':'TestRunFinished','fHgUQ':function(_0x3a2ea1,_0x54400a){return _0x3a2ea1(_0x54400a);}};try{if(_0x544253[_0xf6cfeb(0x13a)](testhubUtils[_0xf6cfeb(0x139)](),!![]))return;const _0x47d4b1=testRunMap['get'](_0x42e7e5['id'])||_0x544253[_0xf6cfeb(0xf8)](uuidv4),_0x4a784c=_0x544253[_0xf6cfeb(0x124)](_0x42e7e5['status'],_0x544253['hvonq'])?_0x544253['iRamc']:_0x544253[_0xf6cfeb(0x113)];this[_0xf6cfeb(0x17f)](_0x42e7e5,_0x47d4b1,_0x4a784c);}catch(_0x385e7d){_0x544253[_0xf6cfeb(0xf5)](debug,'Exception\x20in\x20jasmine\x20specDone\x20for\x20'+(_0x42e7e5&&_0x42e7e5[_0xf6cfeb(0x120)])+_0xf6cfeb(0x15b)+_0x385e7d);}finally{_0x42e7e5&&(testRunMap[_0xf6cfeb(0x17a)](_0x42e7e5['id']),_specStartTimes['delete'](_0x42e7e5['id']));}}[a17_0x3f580a(0x150)](){}[a17_0x3f580a(0xfd)](){}['_sendSpecEvent'](_0x4a498b,_0x2356cd,_0x5dab56){const _0x366d95=a17_0x3f580a,_0x51536a={'JFlhO':function(_0x519a05,_0x11af2c){return _0x519a05===_0x11af2c;},'yDNGs':_0x366d95(0x134),'fdLFo':_0x366d95(0x179),'MzHXI':_0x366d95(0x140),'OdIGs':function(_0x6747da,_0x55d080,_0x1b3bb4){return _0x6747da(_0x55d080,_0x1b3bb4);},'iatKU':_0x366d95(0x131),'FgJSv':_0x366d95(0x130),'xeybR':function(_0xa8301e,_0x35daec){return _0xa8301e!==_0x35daec;},'SWPyY':function(_0x189c7d,_0x599bad){return _0x189c7d===_0x599bad;},'zvbKO':'javascript','LrDwl':function(_0xd895ee,_0x8762f7){return _0xd895ee&&_0x8762f7;},'EdPVn':'skipped','hSZaC':_0x366d95(0x111),'vvgWo':_0x366d95(0x105),'IYODX':_0x366d95(0x17e),'xUsrR':_0x366d95(0x14e),'CTZyU':function(_0x47c9e5,_0x103183){return _0x47c9e5===_0x103183;},'alERw':_0x366d95(0xf6),'AGtQF':_0x366d95(0x158),'JBzEu':_0x366d95(0x163),'dlrJQ':_0x366d95(0x168),'IdGPv':_0x366d95(0x125),'ejYHq':_0x366d95(0x157),'VbKmO':_0x366d95(0x10a),'jyDZi':function(_0x5b0591,_0x2f6778){return _0x5b0591===_0x2f6778;},'jkiaP':function(_0x14aaee,_0x3be60d){return _0x14aaee(_0x3be60d);}};try{const _0x1dda0d=_0x51536a[_0x366d95(0xf7)](_0x5dab56,_0x51536a[_0x366d95(0x15c)])||_0x51536a[_0x366d95(0xf7)](_0x5dab56,_0x51536a['fdLFo']),_0x14e7cd=this[_0x366d95(0x10f)](_0x4a498b),_0x5776f3=_0x14e7cd?this[_0x366d95(0x17b)]['prefixTestPath'](_0x14e7cd):_0x51536a[_0x366d95(0x138)],_0x2b704a=_0x14e7cd?this[_0x366d95(0x16a)](path['dirname'](_0x14e7cd)):null,_0x19b0f=this[_0x366d95(0x12a)](_0x4a498b[_0x366d95(0x148)]),_0x1375d1=_0x19b0f?_0x19b0f[_0x366d95(0x13f)]:undefined,_0x6e5ea4=_0x19b0f?_0x51536a[_0x366d95(0x117)](failureData,_0x19b0f,_0x51536a[_0x366d95(0x135)]):[],_0x50a0e8=new Date()['toISOString'](),_0x10c88d=this[_0x366d95(0x13e)](_0x4a498b);_0x51536a[_0x366d95(0xf7)](_0x5dab56,_0x51536a['FgJSv'])&&_0x4a498b&&_0x51536a[_0x366d95(0x104)](_0x4a498b['id'],undefined)&&_0x51536a['xeybR'](_0x4a498b['id'],null)&&_specStartTimes['set'](_0x4a498b['id'],_0x50a0e8);const _0x356452=_0x51536a[_0x366d95(0x154)](_0x5dab56,_0x51536a[_0x366d95(0xff)])?_0x50a0e8:_0x4a498b&&_specStartTimes[_0x366d95(0x14a)](_0x4a498b['id'])||null,_0x26cd5c={};_0x26cd5c[_0x366d95(0x141)]=_0x51536a[_0x366d95(0x128)],_0x26cd5c[_0x366d95(0x162)]=null;const _0x3a402f={'framework':JASMINE_FRAMEWORK_LABEL,'uuid':_0x2356cd,'name':_0x4a498b['description'],'body':_0x26cd5c,'scope':_0x10c88d['join']('\x20'),'scopes':_0x10c88d,'identifier':_0x4a498b[_0x366d95(0x120)],'file_name':_0x5776f3,'vc_filepath':_0x51536a[_0x366d95(0x14d)](_0x2b704a,_0x14e7cd)?path[_0x366d95(0x11c)](_0x2b704a,_0x14e7cd):null,'location':_0x5776f3,'result':_0x51536a[_0x366d95(0x154)](_0x5dab56,_0x51536a[_0x366d95(0xfb)])?_0x51536a[_0x366d95(0x15a)]:STATUS_MAP[_0x4a498b[_0x366d95(0xfc)]]||_0x51536a['hSZaC'],'failure_reason':_0x1375d1,'duration_in_ms':_0x51536a[_0x366d95(0xf7)](typeof _0x4a498b[_0x366d95(0x17d)],_0x51536a[_0x366d95(0x100)])?_0x4a498b['duration']:null,'started_at':_0x356452,'finished_at':_0x1dda0d?_0x50a0e8:null,'failure':_0x6e5ea4,'failure_type':!_0x1375d1?null:_0x1375d1[_0x366d95(0x176)](/AssertionError/)?_0x51536a[_0x366d95(0x121)]:_0x51536a[_0x366d95(0x173)],'retry_of':null};_0x51536a[_0x366d95(0x10d)](_0x5dab56,_0x51536a[_0x366d95(0xfb)])&&!_0x3a402f[_0x51536a[_0x366d95(0x14b)]]&&(_0x3a402f[_0x51536a[_0x366d95(0x14b)]]=_0x3a402f[_0x51536a['AGtQF']]);const _0x3ed141=_0x3a402f[_0x51536a['JBzEu']][0x0];_0x3ed141&&(_0x3a402f[_0x51536a[_0x366d95(0x132)]]=_0x3ed141[_0x51536a[_0x366d95(0x126)]],_0x3a402f[_0x51536a[_0x366d95(0x172)]]=_0x3ed141[_0x51536a[_0x366d95(0x14f)]]);testhubUtils['appendTesthubParams'](_0x3a402f,_0x5dab56,_0x4a498b,FRAMEWORKS[_0x366d95(0x11b)]);const _0x1e4bd1={'event_type':_0x51536a[_0x366d95(0x114)](_0x5dab56,_0x51536a[_0x366d95(0xfb)])?_0x51536a['yDNGs']:_0x5dab56,'test_run':_0x3a402f};return testhubUtils['setCurrentTestData'](FRAMEWORKS[_0x366d95(0x11b)],_0x1e4bd1),SessionHandler['uploadEventData'](_0x1e4bd1);}catch(_0x770767){_0x51536a['jkiaP'](debug,_0x366d95(0x137)+_0x5dab56+_0x366d95(0x15b)+_0x770767);}}[a17_0x3f580a(0x13e)](_0x11688b){const _0xf26bed=a17_0x3f580a,_0x57cc40={'XNXIV':function(_0x28da6e,_0x58dac7){return _0x28da6e!==_0x58dac7;},'Pusqq':function(_0x25c79c,_0x2537fb){return _0x25c79c!==_0x2537fb;},'cjeKa':function(_0x5e07a3,_0x5ebe09){return _0x5e07a3>_0x5ebe09;},'IkyLS':function(_0x2e65f0,_0x577c3a){return _0x2e65f0(_0x577c3a);},'VfrJf':function(_0x337d2b,_0x455c63){return _0x337d2b-_0x455c63;}};try{const _0x32f006=[];let _0x4d1c73=_0x11688b&&_0x11688b[_0xf26bed(0x101)];const _0x4d4d32=new Set();while(_0x57cc40[_0xf26bed(0x10e)](_0x4d1c73,undefined)&&_0x57cc40[_0xf26bed(0x145)](_0x4d1c73,null)&&this[_0xf26bed(0x164)][_0xf26bed(0x11e)](_0x4d1c73)&&!_0x4d4d32[_0xf26bed(0x11e)](_0x4d1c73)){_0x4d4d32[_0xf26bed(0x144)](_0x4d1c73);const _0x48c2cc=this['_suitesById'][_0xf26bed(0x14a)](_0x4d1c73);_0x48c2cc&&_0x48c2cc[_0xf26bed(0x12c)]&&_0x32f006[_0xf26bed(0x110)](_0x48c2cc[_0xf26bed(0x12c)]),_0x4d1c73=_0x48c2cc?_0x48c2cc[_0xf26bed(0x101)]:null;}if(_0x57cc40['cjeKa'](_0x32f006[_0xf26bed(0x11a)],0x0))return _0x32f006[_0xf26bed(0x12e)]();}catch(_0x513b9e){_0x57cc40[_0xf26bed(0x16f)](debug,'Exception\x20deriving\x20jasmine\x20scopes\x20for\x20'+(_0x11688b&&_0x11688b['fullName'])+'\x20:\x20'+_0x513b9e);}const _0x940050=_0x11688b&&_0x11688b['fullName']||'',_0x334f9a=_0x11688b&&_0x11688b['description']||'';let _0x41399c=_0x940050;return _0x334f9a&&_0x940050[_0xf26bed(0x178)](_0x334f9a)&&(_0x41399c=_0x940050[_0xf26bed(0x107)](0x0,_0x57cc40[_0xf26bed(0x123)](_0x940050[_0xf26bed(0x11a)],_0x334f9a[_0xf26bed(0x11a)]))[_0xf26bed(0x11d)]()),_0x41399c?_0x41399c[_0xf26bed(0x16c)](/\s+/):[];}[a17_0x3f580a(0x10f)](_0xf76d5c){const _0x1fa60d=a17_0x3f580a,_0x4b97a4={};_0x4b97a4['hmLla']=function(_0x30f973,_0x48809f){return _0x30f973===_0x48809f;},_0x4b97a4[_0x1fa60d(0x119)]=function(_0x1d9c79,_0x2c89f9){return _0x1d9c79+_0x2c89f9;},_0x4b97a4[_0x1fa60d(0x16b)]=function(_0x224164,_0x9f3721){return _0x224164>_0x9f3721;};const _0x5b0a7a=_0x4b97a4;if(_0xf76d5c&&_0xf76d5c[_0x1fa60d(0x152)])return _0xf76d5c[_0x1fa60d(0x152)];if(_0xf76d5c&&_0xf76d5c['fullName']){if(this['_fileNameByFullName'][_0xf76d5c[_0x1fa60d(0x120)]])return this[_0x1fa60d(0x151)][_0xf76d5c[_0x1fa60d(0x120)]];let _0xea6ead=null,_0x30647e=-0x1;for(const _0x560f58 of Object['keys'](this[_0x1fa60d(0x151)])){(_0x5b0a7a[_0x1fa60d(0x142)](_0xf76d5c[_0x1fa60d(0x120)],_0x560f58)||_0xf76d5c['fullName'][_0x1fa60d(0x103)](_0x5b0a7a[_0x1fa60d(0x119)](_0x560f58,'\x20')))&&_0x5b0a7a[_0x1fa60d(0x16b)](_0x560f58[_0x1fa60d(0x11a)],_0x30647e)&&(_0xea6ead=this['_fileNameByFullName'][_0x560f58],_0x30647e=_0x560f58[_0x1fa60d(0x11a)]);}if(_0xea6ead)return _0xea6ead;}return null;}[a17_0x3f580a(0x12a)](_0x4a29db){const _0x3d77e7=a17_0x3f580a,_0x52ef80={};_0x52ef80[_0x3d77e7(0x159)]=function(_0x5031d8,_0x29dbfe){return _0x5031d8===_0x29dbfe;},_0x52ef80[_0x3d77e7(0x165)]=_0x3d77e7(0xfa);const _0x29c66b=_0x52ef80;if(!Array['isArray'](_0x4a29db)||_0x29c66b[_0x3d77e7(0x159)](_0x4a29db[_0x3d77e7(0x11a)],0x0))return undefined;const _0x1b6050=[],_0x21503d=[];for(const _0x2b5158 of _0x4a29db){_0x2b5158&&_0x2b5158[_0x3d77e7(0x13f)]&&_0x1b6050[_0x3d77e7(0x110)](_0x2b5158[_0x3d77e7(0x13f)]),_0x2b5158&&_0x2b5158[_0x3d77e7(0x133)]&&_0x21503d['push'](_0x2b5158[_0x3d77e7(0x133)]);}const _0x4d5e69=_0x4a29db[0x0]||{},_0x4fe765=_0x1b6050[_0x3d77e7(0x149)]('\x0a')||_0x4d5e69[_0x3d77e7(0x13f)]||_0x29c66b['KfBKn'],_0x42e43d=_0x21503d[_0x3d77e7(0x149)]('\x0a\x0a')||_0x4d5e69[_0x3d77e7(0x133)]||_0x4fe765,_0x1bafe4={};return _0x1bafe4[_0x3d77e7(0x13f)]=_0x4fe765,_0x1bafe4[_0x3d77e7(0x133)]=_0x42e43d,_0x1bafe4[_0x3d77e7(0x13c)]=_0x4d5e69['matcherName'],_0x1bafe4['expected']=_0x4d5e69[_0x3d77e7(0x156)],_0x1bafe4[_0x3d77e7(0x112)]=_0x4d5e69['actual'],_0x1bafe4;}[a17_0x3f580a(0x16a)](_0x21132c){const _0x4d46a4=a17_0x3f580a,_0x405dcf={};_0x405dcf[_0x4d46a4(0x118)]=function(_0x3c731f,_0x2b14aa){return _0x3c731f===_0x2b14aa;},_0x405dcf[_0x4d46a4(0x153)]=function(_0x35c595,_0x2e8916){return _0x35c595===_0x2e8916;},_0x405dcf[_0x4d46a4(0x122)]=function(_0xdd7242,_0x18a89d){return _0xdd7242===_0x18a89d;},_0x405dcf[_0x4d46a4(0x116)]='.git',_0x405dcf['zlqkf']='config';const _0x41e262=_0x405dcf,_0x3341a1=path['sep'];if(_0x41e262[_0x4d46a4(0x118)](_0x21132c,null)||_0x41e262[_0x4d46a4(0x153)](_0x21132c,'')||_0x41e262[_0x4d46a4(0x153)](_0x21132c,_0x3341a1)||_0x41e262[_0x4d46a4(0x122)](_0x21132c,path[_0x4d46a4(0x115)](_0x21132c)))return null;try{return fs[_0x4d46a4(0xfe)](path[_0x4d46a4(0x149)](_0x21132c,_0x41e262[_0x4d46a4(0x116)],_0x41e262[_0x4d46a4(0x177)])),_0x21132c;}catch(_0x1273b8){return this['_findGitConfig'](path[_0x4d46a4(0x115)](_0x21132c));}}}function a17_0x1c77(){const _0x540222=['iatKU','873NrEgbb','Exception\x20in\x20populating\x20jasmine\x20test\x20data\x20for\x20event\x20','MzHXI','shouldProcessEventForTesthub','PMCjn','pending','matcherName','specDone','_scopes','message','File\x20path\x20could\x20not\x20be\x20found','lang','hmLla','Wvygc','add','Pusqq','baoIr','3494PoHkMP','failedExpectations','join','get','alERw','36ouRkqk','LrDwl','UnhandledError','VbKmO','suiteDone','_fileNameByFullName','filename','ygsYp','SWPyY','set','expected','failure_reason_expanded','finished_at','cLJTY','EdPVn','\x20:\x20','yDNGs','uuid','763020CTyFBH','Jasmine','1266083DyecTy','testObservability','code','failure','_suitesById','KfBKn','158335kHRAlu','dyOuV','failure_backtrace','../../../helpers/test-observability/utils','_findGitConfig','zGAie','split','Exception\x20in\x20jasmine\x20suiteStarted\x20for\x20','specStarted','IkyLS','Exception\x20in\x20jasmine\x20specStarted\x20for\x20','jasmineStarted','ejYHq','xUsrR','../testRunMap','skipped','match','zlqkf','endsWith','TestRunSkipped','remove','_paths','XoCGo','duration','AssertionError','_sendSpecEvent','fHgUQ','started_at','JFlhO','QmEvO','638FnksxU','Spec\x20failed','fdLFo','status','jasmineDone','statSync','FgJSv','vvgWo','parentSuiteId','2759400Ummuwm','startsWith','xeybR','number','xDWvf','slice','3488PFkAiP','exports','expanded','cwd','excluded','CTZyU','XNXIV','_resolveFilePath','push','passed','actual','UBIOa','jyDZi','dirname','gIYZn','OdIGs','dFsav','EzCoa','length','JASMINE','relative','trim','has','path','fullName','IYODX','blbYd','VfrJf','zvRmI','backtrace','IdGPv','../../../helpers/test-observability/constants','zvbKO','gXvEa','_collapseFailedExpectations','30RxrsnZ','description','failed','reverse','23570PdaIco','TestRunStarted','err','dlrJQ','stack','TestRunFinished'];a17_0x1c77=function(){return _0x540222;};return a17_0x1c77();}module[a17_0x3f580a(0x109)]=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_0x4da178=a18_0x2868;(function(_0x4e948e,_0x27ff13){const _0xa40eb=a18_0x2868,_0x102ffb=_0x4e948e();while(!![]){try{const _0x5aa3d8=-parseInt(_0xa40eb(0x18f))/0x1*(-parseInt(_0xa40eb(0x18c))/0x2)+-parseInt(_0xa40eb(0x188))/0x3+-parseInt(_0xa40eb(0x177))/0x4+parseInt(_0xa40eb(0x184))/0x5+parseInt(_0xa40eb(0x1ed))/0x6*(-parseInt(_0xa40eb(0x1cb))/0x7)+-parseInt(_0xa40eb(0x1f4))/0x8*(parseInt(_0xa40eb(0x1e0))/0x9)+parseInt(_0xa40eb(0x1b7))/0xa;if(_0x5aa3d8===_0x27ff13)break;else _0x102ffb['push'](_0x102ffb['shift']());}catch(_0x4c101e){_0x102ffb['push'](_0x102ffb['shift']());}}}(a18_0x5dfd,0x41240));function a18_0x5dfd(){const _0x112e62=['all','exports','KIHeW','from','../utils/constants','boyBG','Exception\x20spawning\x20Jasmine\x20child\x20(platformIndex=','bCxqJ','HlCfI','glob','SmicN','resolve','isUndefined','globSync','hEmDy','useW3C','\x27\x20:\x20',';\x20proceeding\x20without\x20injection','trim','../../helpers/test-observability/utils','4840400hXtqZO','SELLx','isCLIEnabled','[jasmine]\x20Failed\x20to\x20launch\x20BrowserStack\x20build;\x20tests\x20will\x20run\x20but\x20results\x20may\x20not\x20appear\x20on\x20the\x20dashboard.\x20Error:\x20','win32','Yvmbm','Exception\x20resolving\x20Jasmine\x20hub\x20URL\x20/\x20platforms;\x20using\x20safe\x20defaults\x20:\x20','--helper=','Exception\x20building\x20child\x20env\x20for\x20platformIndex\x20','gDXoZ','LGldu','handleApp','ALDcd','JASMINE_CONFIG_PATH','__isPuppeteerInstalled','stringify','specArgs','validPlatformsPresent','JptwD','logLevel','1001VTZWYC','Exception\x20preparing\x20Jasmine\x20multi-driver\x20config;\x20spawning\x20children\x20single-driver\x20:\x20','posix','kcDeN','close','qTzAW','BROWSERSTACK_CAPABILITIES','debug','RtijZ','isBrowserstackInfra','BROWSERSTACK_JASMINE_PARALLELS','DUjME','npx','parallelsPerPlatform','maxWorkers','platformIndex','assign','jasmine','prepareCapabilities','capability','jXHoe','498051PhKJBB','../../helpers/playwright-helper','filter','SDK_CLEANUP','BROWSERSTACK_TEST_OBSERVABILITY_YML','All\x20jasmine\x20children\x20exited;\x20final\x20exit\x20code\x20','startsWith','wypKS','info','error','map','../../helpers/utilities','testObservability','8838cpGZix','Cgcwm','tiuTs','Exception\x20in\x20TestHubHandler.launchBuild\x20for\x20Jasmine\x20:\x20','getInstance','../../helpers/performance/performance-tester','initialize','8cEPrgE','Exception\x20parsing\x20BROWSERSTACK_RERUN_TESTS\x20for\x20spec\x20selection\x20:\x20','OwWUQ','cwd','parse','../../helpers/performance/constants','join','Exception\x20propagating\x20binary\x20session\x20id\x20for\x20Jasmine\x20children\x20:\x20','p-limit','string','true','SDK_SETUP','Jasmine\x20child\x20spawn\x20error\x20(platformIndex=','spec','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','cyqjE','FRAMEWORKS','Exception\x20reading\x20jasmine.json\x20for\x20spec\x20enumeration\x20:\x20','isArray','XJMBY','../../helpers/logger','child_process','end','BROWSERSTACK_CLI_BIN_SESSION_ID','start','format','length','getMultiDriverWorkerConfig','pcxOH','proxySettings','WdpqJ','util','Exception\x20globbing\x20Jasmine\x20spec\x20pattern\x20\x27','config','../../helpers/puppeteer-helper','binSessionId','__isPlaywrightInstalled','accessibilityOptions','dysEP','rdsKp','642732PsGbbZ','SATQf','\x20:\x20','env','jasmine\x20child\x20(platformIndex=','PSskF','@playwright/test','KvJoV','stop','kfyOS','utf8','nEbQf','Exception\x20computing\x20Jasmine\x20fan-out\x20concurrency;\x20falling\x20back\x20to\x20single\x20worker\x20:\x20','852195nSAgRg','fZbpv','finalExecution','hPVXe','1098786rDSmpT','getHubUrl','slice','spec_files','4IPRwbL','shouldReRunObservabilityTests','zpTHK','202630nOuRei','BROWSERSTACK_RERUN_TESTS','Exception\x20building\x20Jasmine\x20helper\x20injection\x20args\x20:\x20','\x20concurrent)','existsSync','BAMeU','Running\x20your\x20Jasmine\x20tests\x20across\x20','push',')\x20:\x20','Exception\x20in\x20stop\x20build\x20request\x20to\x20TestHub\x20:\x20','JASMINE','spec/support/jasmine.json','nsexV','inherit','launchBuild','path','acrJl','OCvnM','platform','LenVA'];a18_0x5dfd=function(){return _0x112e62;};return a18_0x5dfd();}const fs=require('fs'),path=require(a18_0x4da178(0x19e)),util=require(a18_0x4da178(0x16e)),{spawn}=require(a18_0x4da178(0x164)),glob=require(a18_0x4da178(0x1ac)),pLimit=require(a18_0x4da178(0x1fc)),logger=require(a18_0x4da178(0x163))['winstonLogger'],helper=require('../../helpers/helper'),utilities=require(a18_0x4da178(0x1eb)),constants=require(a18_0x4da178(0x1a7)),TestHubHandler=require('../../helpers/testhub/testhubHandler'),testOpsHelper=require(a18_0x4da178(0x1b6)),{debug}=require(a18_0x4da178(0x1b6)),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),PerformanceTester=require(a18_0x4da178(0x1f2)),PerformanceEvents=require(a18_0x4da178(0x1f9))['EVENTS'],BrowserstackCLI=require('../v2/browserstackCLI'),{checkPwandBootstrapCli}=require(a18_0x4da178(0x1e1)),{checkPuppeteerAndBootstrapCli,getPuppeteerVersion}=require(a18_0x4da178(0x171)),getMaxWorkers=(_0x5cdae5,_0xb50167)=>{const _0x4e1aff=a18_0x4da178,_0x9483c={'COQbL':function(_0x29a644,_0x5d38e0){return _0x29a644(_0x5d38e0);}};let _0x380b12=0x1;if(!helper[_0x4e1aff(0x1af)](_0xb50167['parallelsPerPlatform']))_0x380b12=_0x9483c['COQbL'](parseInt,_0xb50167[_0x4e1aff(0x1d8)]);else!helper['isUndefined'](_0x5cdae5[_0x4e1aff(0x1d9)])&&(_0x380b12=_0x5cdae5['maxWorkers']);return _0x380b12;},resolveJasmineConfigPath=()=>{const _0x4816a5=a18_0x4da178,_0x165cec={};_0x165cec[_0x4816a5(0x19b)]=_0x4816a5(0x19a);const _0x4d6725=_0x165cec,_0xd34563=[];process['env'][_0x4816a5(0x1c4)]&&_0xd34563[_0x4816a5(0x196)](path[_0x4816a5(0x1ae)](process['cwd'](),process[_0x4816a5(0x17a)][_0x4816a5(0x1c4)]));_0xd34563[_0x4816a5(0x196)](path[_0x4816a5(0x1ae)](process[_0x4816a5(0x1f7)](),_0x4d6725['nsexV']));for(const _0x43d56a of _0xd34563){try{if(fs['existsSync'](_0x43d56a))return _0x43d56a;}catch(_0x236b0b){}}return null;},enumerateSpecFiles=_0x1c2411=>{const _0x118f41=a18_0x4da178,_0xb07dfd={'KIHeW':function(_0xea134e,_0x2e914c){return _0xea134e(_0x2e914c);},'XJMBY':function(_0x5c7cdb,_0x6d343d){return _0x5c7cdb>_0x6d343d;},'acrJl':function(_0x43f678,_0x856dfd){return _0x43f678(_0x856dfd);},'SELLx':function(_0x309697,_0xa233f3){return _0x309697<_0xa233f3;},'HlbmO':function(_0x3fc2ab,_0x353c23){return _0x3fc2ab===_0x353c23;},'cyqjE':_0x118f41(0x1fd),'qTzAW':function(_0x2a5cd1,_0x2b7518){return _0x2a5cd1>_0x2b7518;},'jXHoe':function(_0x266d8a,_0x2ab42c,_0x524341){return _0x266d8a(_0x2ab42c,_0x524341);},'SATQf':function(_0x2f25cb,_0x4d5219){return _0x2f25cb>_0x4d5219;},'pcxOH':function(_0x521d53){return _0x521d53();},'RrPSE':_0x118f41(0x181),'Yvmbm':_0x118f41(0x201),'DUjME':function(_0x4a9a35,_0x5cb239){return _0x4a9a35>_0x5cb239;},'kfyOS':'**/*[sS]pec.?(m)js','wypKS':function(_0x4fcaa0,_0x5c2072,_0x2e39ce){return _0x4fcaa0(_0x5c2072,_0x2e39ce);}};try{if(testOpsHelper[_0x118f41(0x18d)]()){const _0x559725=testOpsHelper['parseFileNames'](process[_0x118f41(0x17a)][_0x118f41(0x190)]);if(Array[_0x118f41(0x161)](_0x559725)&&_0xb07dfd[_0x118f41(0x162)](_0x559725[_0x118f41(0x169)],0x0))return _0x559725[_0x118f41(0x1ea)](_0x5c3d1b=>path['resolve'](process[_0x118f41(0x1f7)](),_0x5c3d1b[_0x118f41(0x1b5)]()))[_0x118f41(0x1e2)](Boolean);}}catch(_0x4260d5){_0xb07dfd[_0x118f41(0x19f)](debug,_0x118f41(0x1f5)+util[_0x118f41(0x168)](_0x4260d5));}const _0x4ddc06=[];try{for(let _0x5e4920=0x1;_0xb07dfd[_0x118f41(0x1b8)](_0x5e4920,_0x1c2411[_0x118f41(0x169)]);_0x5e4920++){const _0x1fd11b=_0x1c2411[_0x5e4920];_0xb07dfd['HlbmO'](typeof _0x1fd11b,_0xb07dfd[_0x118f41(0x203)])&&!_0x1fd11b[_0x118f41(0x1e6)]('-')&&_0x4ddc06['push'](_0x1fd11b);}}catch(_0x3c6441){}const _0x3c3f9f={'cwd':process['cwd'](),'absolute':!![],'nodir':!![]},_0x3eb08d=(_0xf59917,_0x234902)=>{const _0x1e822d=_0x118f41,_0x46f358=[];for(const _0x38407f of _0xf59917){try{const _0x4c31c1=_0x234902?path[_0x1e822d(0x1cd)][_0x1e822d(0x1fa)](_0x234902,_0x38407f):_0x38407f,_0x13da4c=glob[_0x1e822d(0x1b0)](_0x4c31c1,_0x3c3f9f);Array[_0x1e822d(0x161)](_0x13da4c)&&_0x46f358[_0x1e822d(0x196)](..._0x13da4c);}catch(_0x35825e){_0xb07dfd[_0x1e822d(0x1a5)](debug,_0x1e822d(0x16f)+_0x38407f+_0x1e822d(0x1b3)+util[_0x1e822d(0x168)](_0x35825e));}}return _0x46f358;};if(_0xb07dfd[_0x118f41(0x1d0)](_0x4ddc06[_0x118f41(0x169)],0x0)){const _0x224a6e=_0xb07dfd[_0x118f41(0x1df)](_0x3eb08d,_0x4ddc06,null);if(_0xb07dfd[_0x118f41(0x178)](_0x224a6e['length'],0x0))return Array[_0x118f41(0x1a6)](new Set(_0x224a6e));return _0x4ddc06[_0x118f41(0x1ea)](_0x4d5464=>path[_0x118f41(0x1ae)](process['cwd'](),_0x4d5464));}try{const _0x324cf4=_0xb07dfd[_0x118f41(0x16b)](resolveJasmineConfigPath);if(_0x324cf4){const _0x282c21=JSON[_0x118f41(0x1f8)](fs['readFileSync'](_0x324cf4,_0xb07dfd['RrPSE'])),_0x125769=_0x282c21['spec_dir']||_0xb07dfd[_0x118f41(0x1bc)],_0x1c1906=Array[_0x118f41(0x161)](_0x282c21[_0x118f41(0x18b)])&&_0xb07dfd[_0x118f41(0x1d6)](_0x282c21[_0x118f41(0x18b)]['length'],0x0)?_0x282c21['spec_files']:[_0xb07dfd[_0x118f41(0x180)]],_0x5ac2f9=_0xb07dfd[_0x118f41(0x1e7)](_0x3eb08d,_0x1c1906,_0x125769);if(_0xb07dfd[_0x118f41(0x178)](_0x5ac2f9[_0x118f41(0x169)],0x0))return Array[_0x118f41(0x1a6)](new Set(_0x5ac2f9));}}catch(_0x19984d){_0xb07dfd[_0x118f41(0x1a5)](debug,_0x118f41(0x205)+util[_0x118f41(0x168)](_0x19984d));}return null;};function a18_0x2868(_0x31b684,_0x1f1467){const _0x5dfd02=a18_0x5dfd();return a18_0x2868=function(_0x286826,_0x59cfa3){_0x286826=_0x286826-0x161;let _0x1594d4=_0x5dfd02[_0x286826];return _0x1594d4;},a18_0x2868(_0x31b684,_0x1f1467);}async function run(_0x48c8e4,_0x2f9253,_0x630b0){const _0x548220=a18_0x4da178,_0x25a584={'HlCfI':function(_0x252d56,_0x9e5a28){return _0x252d56>_0x9e5a28;},'kcDeN':function(_0x316cc2,_0x3f634b){return _0x316cc2>_0x3f634b;},'OwWUQ':_0x548220(0x1a3),'CYpta':function(_0x2c3e01,_0x2b9d44){return _0x2c3e01(_0x2b9d44);},'zpTHK':function(_0x1b4f8b,_0x56399d){return _0x1b4f8b||_0x56399d;},'PSskF':function(_0x33a0bb,_0x3cae73){return _0x33a0bb(_0x3cae73);},'Cgcwm':function(_0xe4e6f1,_0x3b9997){return _0xe4e6f1(_0x3b9997);},'dysEP':function(_0x13eb63,_0x4224d6,_0x3c8400,_0x36008a){return _0x13eb63(_0x4224d6,_0x3c8400,_0x36008a);},'LGldu':_0x548220(0x1d7),'XjGwu':_0x548220(0x1dc),'bCxqJ':function(_0x1fd4ab,_0x574965){return _0x1fd4ab===_0x574965;},'boyBG':_0x548220(0x1bb),'WdpqJ':_0x548220(0x19c),'nEbQf':_0x548220(0x1cf),'qGsOt':_0x548220(0x1e9),'fZbpv':function(_0x1c9fd7,_0x5b49a6){return _0x1c9fd7(_0x5b49a6);},'ALDcd':_0x548220(0x17d),'gDXoZ':function(_0x32210a){return _0x32210a();},'Pbday':function(_0x301b85,_0x55a296){return _0x301b85!=_0x55a296;},'OCvnM':_0x548220(0x1fe),'BAMeU':function(_0x227672,_0x88e29e){return _0x227672(_0x88e29e);},'KvJoV':function(_0x147db3,_0x599ce7,_0x6f76d2){return _0x147db3(_0x599ce7,_0x6f76d2);},'jxlcH':function(_0x42c1c3,_0x550b58){return _0x42c1c3*_0x550b58;},'VfHIc':function(_0x1cc199,_0x53efd0){return _0x1cc199(_0x53efd0);},'tiuTs':function(_0x2cb197,_0x50c262){return _0x2cb197(_0x50c262);},'KmXFi':function(_0x4b418b,_0x40bc48){return _0x4b418b(_0x40bc48);},'QCHeV':'test.setup.js','SmicN':function(_0x177cf8,_0xc11de9){return _0x177cf8<_0xc11de9;},'rdsKp':function(_0x1ae5e9,_0x145e0e){return _0x1ae5e9>_0x145e0e;},'JptwD':function(_0x25136a,_0x6d00e){return _0x25136a>_0x6d00e;},'RtijZ':function(_0xa4709d,_0x5c8151){return _0xa4709d(_0x5c8151);},'hEmDy':function(_0x4980df,_0x28b395){return _0x4980df>_0x28b395;},'ZzSjK':function(_0x1ee2da,_0x1d258c){return _0x1ee2da(_0x1d258c);}},_0x3b73d4=helper['getPackageVersion'](_0x25a584[_0x548220(0x1c3)]);global[_0x548220(0x173)]=!!_0x3b73d4;const _0x36ec81=_0x25a584[_0x548220(0x1c0)](getPuppeteerVersion);global[_0x548220(0x1c5)]=!!_0x36ec81;helper[_0x548220(0x1d4)]()&&(await _0x630b0[_0x548220(0x1f3)](_0x48c8e4),await helper[_0x548220(0x1c2)](_0x630b0[_0x548220(0x170)]));if(_0x3b73d4)await _0x25a584[_0x548220(0x175)](checkPwandBootstrapCli,_0x3b73d4,constants[_0x548220(0x204)][_0x548220(0x199)],_0x630b0);else _0x36ec81&&await _0x25a584[_0x548220(0x175)](checkPuppeteerAndBootstrapCli,_0x36ec81,constants[_0x548220(0x204)][_0x548220(0x199)],_0x630b0);if(!_0x630b0[_0x548220(0x170)])return;_0x25a584['Pbday'](_0x630b0['config'][_0x548220(0x1ec)],null)?process[_0x548220(0x17a)][_0x548220(0x1e4)]=_0x630b0[_0x548220(0x170)][_0x548220(0x1ec)]:process[_0x548220(0x17a)][_0x548220(0x1e4)]=_0x25a584[_0x548220(0x1a0)];!helper[_0x548220(0x1af)](_0x630b0[_0x548220(0x170)][_0x548220(0x174)])&&(process[_0x548220(0x17a)][_0x548220(0x202)]=JSON[_0x548220(0x1c6)](_0x630b0[_0x548220(0x170)][_0x548220(0x174)]));try{await TestHubHandler[_0x548220(0x19d)](FRAMEWORKS[_0x548220(0x199)],_0x630b0);}catch(_0x5b4063){logger[_0x548220(0x1e9)](_0x548220(0x1ba)+util['format'](_0x5b4063)),_0x25a584[_0x548220(0x194)](debug,_0x548220(0x1f0)+util[_0x548220(0x168)](_0x5b4063));}let _0x34ee47=![],_0x29a5fd=[];try{_0x34ee47=helper[_0x548220(0x1b2)](_0x630b0[_0x548220(0x170)]),_0x29a5fd=helper[_0x548220(0x1dd)](_0x630b0['config'],_0x34ee47,constants[_0x548220(0x204)][_0x548220(0x199)]),process[_0x548220(0x17a)][_0x548220(0x1d1)]=JSON[_0x548220(0x1c6)](_0x29a5fd);}catch(_0x2babfa){_0x25a584['fZbpv'](debug,'Exception\x20preparing\x20Jasmine\x20capabilities;\x20spawning\x20children\x20without\x20injected\x20caps\x20:\x20'+util[_0x548220(0x168)](_0x2babfa));}let _0x2cb7e4=null,_0x5388df=![];try{_0x2cb7e4=helper[_0x548220(0x189)](_0x630b0[_0x548220(0x170)]),_0x5388df=helper[_0x548220(0x1c8)](_0x630b0[_0x548220(0x170)]);}catch(_0xb4b66b){_0x25a584[_0x548220(0x194)](debug,_0x548220(0x1bd)+util['format'](_0xb4b66b));}let _0x5982a8={};try{_0x5982a8=helper[_0x548220(0x16a)](_0x630b0[_0x548220(0x170)],_0x34ee47,constants[_0x548220(0x204)][_0x548220(0x199)]);}catch(_0x3d8013){_0x25a584[_0x548220(0x185)](debug,_0x548220(0x1cc)+util['format'](_0x3d8013));}const _0x4b79b0=_0x274c1e=>{const _0x2fb029=_0x548220,_0x5c5d50=Array[_0x2fb029(0x161)](_0x29a5fd)&&_0x25a584[_0x2fb029(0x1ab)](_0x29a5fd['length'],_0x274c1e)?_0x29a5fd[_0x274c1e]:Array[_0x2fb029(0x161)](_0x29a5fd)&&_0x25a584[_0x2fb029(0x1ce)](_0x29a5fd['length'],0x0)?_0x29a5fd[0x0]:{};return Object[_0x2fb029(0x1db)]({'server':_0x2cb7e4,'capability':_0x5c5d50,'proxySettings':_0x630b0[_0x2fb029(0x170)][_0x2fb029(0x16c)],'platform':helper['getPlatformName'](_0x5c5d50),'browserStackLogLevel':_0x630b0[_0x2fb029(0x170)][_0x2fb029(0x1ca)],'platformIndex':_0x274c1e,'framework':constants[_0x2fb029(0x204)][_0x2fb029(0x199)],'platformCaps':_0x5388df?Object[_0x2fb029(0x1db)]({'index':_0x274c1e},_0x630b0[_0x2fb029(0x170)]['platforms'][_0x274c1e]):{'index':_0x274c1e}},_0x5982a8);};let _0xd81fff=0x1,_0x49b665=0x1,_0x4a9e4f=0x1;try{_0xd81fff=_0x25a584[_0x548220(0x17e)](getMaxWorkers,_0x48c8e4,_0x630b0[_0x548220(0x170)]),_0x49b665=_0x5388df?_0x630b0[_0x548220(0x170)]['platforms']['length']:0x1,_0x4a9e4f=_0x25a584['jxlcH'](_0x49b665,_0xd81fff),process[_0x548220(0x17a)][_0x548220(0x1d5)]=_0x25a584['VfHIc'](String,_0x4a9e4f);}catch(_0x34f170){_0x25a584[_0x548220(0x1ef)](debug,_0x548220(0x183)+util[_0x548220(0x168)](_0x34f170));}try{BrowserstackCLI[_0x548220(0x1f1)]()[_0x548220(0x172)]&&(process[_0x548220(0x17a)][_0x548220(0x166)]=BrowserstackCLI[_0x548220(0x1f1)]()[_0x548220(0x172)]);}catch(_0x22b61d){_0x25a584['KmXFi'](debug,_0x548220(0x1fb)+util[_0x548220(0x168)](_0x22b61d));}const _0x56e109=[];try{const _0x1cedc3=path[_0x548220(0x1ae)](__dirname,_0x25a584['QCHeV']);fs[_0x548220(0x193)](_0x1cedc3)?_0x56e109[_0x548220(0x196)](_0x548220(0x1be)+_0x1cedc3):_0x25a584[_0x548220(0x185)](debug,'Jasmine\x20SDK\x20helper\x20not\x20found\x20at\x20'+_0x1cedc3+_0x548220(0x1b4));}catch(_0xbca229){_0x25a584[_0x548220(0x17c)](debug,_0x548220(0x191)+util[_0x548220(0x168)](_0xbca229));}const _0x2b38e6=_0x2f9253[_0x548220(0x18a)](0x1),_0x2f9a23=_0x25a584[_0x548220(0x17c)](enumerateSpecFiles,_0x2f9253),_0x3f9ada=[];for(let _0x16452c=0x0;_0x25a584[_0x548220(0x1ad)](_0x16452c,_0x49b665);_0x16452c++){if(_0x25a584[_0x548220(0x176)](_0xd81fff,0x1)&&Array['isArray'](_0x2f9a23)&&_0x25a584[_0x548220(0x1c9)](_0x2f9a23[_0x548220(0x169)],0x0))for(const _0xae3976 of _0x2f9a23){const _0x558ddf={};_0x558ddf['platformIndex']=_0x16452c,_0x558ddf['specArgs']=[_0xae3976],_0x3f9ada[_0x548220(0x196)](_0x558ddf);}else{const _0x35fe19={};_0x35fe19[_0x548220(0x1da)]=_0x16452c,_0x35fe19['specArgs']=_0x2f9a23,_0x3f9ada['push'](_0x35fe19);}}logger[_0x548220(0x1e8)](_0x548220(0x195)+_0x49b665+'\x20platform(s),\x20parallelsPerPlatform='+_0xd81fff+'\x20('+_0x3f9ada[_0x548220(0x169)]+'\x20work-item(s),\x20max\x20'+_0x4a9e4f+_0x548220(0x192)),PerformanceTester[_0x548220(0x165)](PerformanceEvents[_0x548220(0x1ff)]);const _0x51f8f5=_0x5cf958=>new Promise(_0x53b21c=>{const _0x15b791=_0x548220,_0x2485b2={'hPVXe':function(_0x4dac07,_0x202ab1){return _0x25a584['PSskF'](_0x4dac07,_0x202ab1);},'LenVA':function(_0x2e3b1b,_0x4c2f27){const _0x5f1264=a18_0x2868;return _0x25a584[_0x5f1264(0x1ee)](_0x2e3b1b,_0x4c2f27);}};let _0x78d62b;try{const _0x16bcc9=_0x25a584['Cgcwm'](_0x4b79b0,_0x5cf958[_0x15b791(0x1da)]);_0x78d62b=Object['assign']({},process[_0x15b791(0x17a)],{'BROWSERSTACK_JASMINE_CONFIG':JSON['stringify'](_0x16bcc9),'BROWSERSTACK_CAPABILITIES':JSON[_0x15b791(0x1c6)]([_0x16bcc9[_0x15b791(0x1de)]]),'BROWSERSTACK_MAX_RETRIES':'0'});}catch(_0xb46473){_0x25a584['PSskF'](debug,_0x15b791(0x1bf)+_0x5cf958[_0x15b791(0x1da)]+_0x15b791(0x179)+util[_0x15b791(0x168)](_0xb46473)),_0x78d62b=Object[_0x15b791(0x1db)]({},process['env']);}const _0x412925=Array[_0x15b791(0x161)](_0x5cf958[_0x15b791(0x1c7)])?_0x5cf958[_0x15b791(0x1c7)]:[],_0xb84c05=_0x25a584[_0x15b791(0x1ab)](_0x412925[_0x15b791(0x169)],0x0)?_0x2b38e6[_0x15b791(0x1e2)](_0x304b05=>typeof _0x304b05===_0x15b791(0x1fd)&&_0x304b05['startsWith']('-')):_0x2b38e6,_0x2cc230=[..._0x56e109,..._0xb84c05,..._0x412925];try{const _0x1395ca=_0x25a584['dysEP'](spawn,_0x25a584[_0x15b791(0x1c1)],[_0x25a584['XjGwu'],..._0x2cc230],{'shell':_0x25a584[_0x15b791(0x1aa)](process[_0x15b791(0x1a1)],_0x25a584[_0x15b791(0x1a8)]),'stdio':_0x25a584[_0x15b791(0x16d)],'env':_0x78d62b});_0x1395ca['on'](_0x25a584[_0x15b791(0x182)],_0x25df3d=>{const _0x1e9451=_0x15b791;logger[_0x1e9451(0x1d2)](_0x1e9451(0x17b)+_0x5cf958['platformIndex']+',\x20specs='+(_0x412925[_0x1e9451(0x169)]?_0x412925[_0x1e9451(0x1fa)](','):_0x25a584[_0x1e9451(0x1f6)])+')\x20exited\x20with\x20code\x20'+_0x25df3d),_0x25a584['CYpta'](_0x53b21c,_0x25a584[_0x1e9451(0x18e)](_0x25df3d,0x0));}),_0x1395ca['on'](_0x25a584['qGsOt'],_0x16cd75=>{const _0x3a87b5=_0x15b791;_0x2485b2[_0x3a87b5(0x187)](debug,_0x3a87b5(0x200)+_0x5cf958[_0x3a87b5(0x1da)]+_0x3a87b5(0x197)+util[_0x3a87b5(0x168)](_0x16cd75)),_0x2485b2[_0x3a87b5(0x1a2)](_0x53b21c,0x1);});}catch(_0x194013){_0x25a584[_0x15b791(0x185)](debug,_0x15b791(0x1a9)+_0x5cf958['platformIndex']+_0x15b791(0x197)+util['format'](_0x194013)),_0x25a584[_0x15b791(0x1ee)](_0x53b21c,0x1);}}),_0x38971e=_0x25a584[_0x548220(0x1d3)](pLimit,_0x25a584[_0x548220(0x1b1)](_0x4a9e4f,0x0)?_0x4a9e4f:0x1),_0x199958=await Promise[_0x548220(0x1a3)](_0x3f9ada['map'](_0x36a117=>_0x38971e(()=>_0x51f8f5(_0x36a117))));PerformanceTester[_0x548220(0x167)](PerformanceEvents[_0x548220(0x1e3)]);const _0xcfb6f4=_0x199958['find'](_0xf617cc=>_0xf617cc!==0x0)||0x0;process['exitCode']=_0xcfb6f4,logger[_0x548220(0x1d2)](_0x548220(0x1e5)+_0xcfb6f4);const _0x58dc1a=BrowserstackCLI[_0x548220(0x1b9)]();try{await TestHubHandler[_0x548220(0x17f)](),await BrowserstackCLI['getInstance']()[_0x548220(0x17f)]();}catch(_0x5134c7){_0x25a584['ZzSjK'](debug,_0x548220(0x198)+util[_0x548220(0x168)](_0x5134c7));}testOpsHelper['printBuildLink'](),await utilities[_0x548220(0x186)](_0x630b0,_0x58dc1a);}module[a18_0x4da178(0x1a4)]=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_0x1aa4c3=a19_0x1dfc;(function(_0xb18b3e,_0x578eaf){const _0x37a204=a19_0x1dfc,_0x1b34c7=_0xb18b3e();while(!![]){try{const _0x43afc0=-parseInt(_0x37a204(0x108))/0x1+parseInt(_0x37a204(0x140))/0x2*(parseInt(_0x37a204(0xbf))/0x3)+-parseInt(_0x37a204(0x116))/0x4+parseInt(_0x37a204(0xf6))/0x5*(-parseInt(_0x37a204(0x10b))/0x6)+-parseInt(_0x37a204(0x12d))/0x7+-parseInt(_0x37a204(0x12c))/0x8*(parseInt(_0x37a204(0xf7))/0x9)+parseInt(_0x37a204(0xfe))/0xa;if(_0x43afc0===_0x578eaf)break;else _0x1b34c7['push'](_0x1b34c7['shift']());}catch(_0x5c6fcf){_0x1b34c7['push'](_0x1b34c7['shift']());}}}(a19_0x29ba,0x81ec0));const util=require(a19_0x1aa4c3(0xce)),logger=require(a19_0x1aa4c3(0x114))['winstonLogger'],helper=require(a19_0x1aa4c3(0x13f)),globals=require(a19_0x1aa4c3(0xc1)),{shouldProcessEventForTesthub}=require(a19_0x1aa4c3(0x113)),testHubConstants=require('../../helpers/testhub/constants'),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a19_0x1aa4c3(0xcc)),accessibilityRetryHelper=require(a19_0x1aa4c3(0xdf)),testRunMap=require(a19_0x1aa4c3(0xe5));let _activeResultId=null,_activeFullName=null,_activeResultRef=null,_bstackConfig=null;try{const rawConfig=process[a19_0x1aa4c3(0x13c)][a19_0x1aa4c3(0x13e)]||process['env'][a19_0x1aa4c3(0xea)];rawConfig!==undefined&&(_bstackConfig=JSON['parse'](rawConfig));}catch(a19_0x1d3fd9){logger[a19_0x1aa4c3(0x12a)](a19_0x1aa4c3(0x103)+util[a19_0x1aa4c3(0xb7)](a19_0x1d3fd9));}try{if(_bstackConfig&&!helper[a19_0x1aa4c3(0x12e)]('@playwright/test')){const liUUAi=a19_0x1aa4c3(0x131)[a19_0x1aa4c3(0x141)]('|');let TyVFFK=0x0;while(!![]){switch(liUUAi[TyVFFK++]){case'0':global['browserstackPlatformIndex']=_bstackConfig[a19_0x1aa4c3(0x110)];continue;case'1':helper[a19_0x1aa4c3(0xd7)]()?(global[a19_0x1aa4c3(0x11d)]=helper[a19_0x1aa4c3(0x10e)](_bstackConfig['skipSessionName']),global[a19_0x1aa4c3(0x10c)]=helper[a19_0x1aa4c3(0x10e)](_bstackConfig[a19_0x1aa4c3(0xc5)])):(global[a19_0x1aa4c3(0x11d)]=!![],global['__skipSessionStatus']=!![]);continue;case'2':global[a19_0x1aa4c3(0x124)]=_bstackConfig[a19_0x1aa4c3(0xbd)]||{};continue;case'3':shouldProcessEventForTesthub()?require(a19_0x1aa4c3(0x126))['browserstackAgentV2'](_bstackConfig,null,!![]):require(a19_0x1aa4c3(0x126))[a19_0x1aa4c3(0xe2)](_bstackConfig);continue;case'4':logger[a19_0x1aa4c3(0x12a)](a19_0x1aa4c3(0xc7));continue;}break;}}}catch(a19_0x13c51f){logger[a19_0x1aa4c3(0x12a)](a19_0x1aa4c3(0x112)+util['format'](a19_0x13c51f));}const _fileNameByFullName={};function a19_0x29ba(){const _0x12dd65=['prepareStackTrace','parse','./testRunMap','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','sep','[jasmine\x20setup]\x20Exception\x20setting\x20Automate\x20session\x20name:\x20','\x22}}','CONFIG','info','NLGim','push','yYZIl','bstackA11yScanOptions','browserstackSessionName','[jasmine\x20setup]\x20Exception\x20in\x20Automate\x20session\x20name/status\x20block:\x20','warn','[jasmine\x20setup]\x20Accessibility\x20scan\x20completed\x20successfully','[jasmine\x20setup]\x20Exception\x20installing\x20describe-wrap\x20filename\x20capture:\x20','RjeVj','215AEMRGv','2691jFkEmX','performScanWithRetry','JDxPN','path','VgfVH','isMobilePlatform','getGlobal','18020890bdsFwn','[jasmine\x20setup]\x20Exception\x20registering\x20BrowserStack\x20reporter:\x20','__drivers','[jasmine\x20setup]\x20Exception\x20registering\x20a11y\x20result-id\x20bridge\x20reporter:\x20','saveAccessibilityResultsWithRetry','[jasmine\x20setup]\x20Failed\x20to\x20parse\x20BrowserStack\x20config\x20from\x20env:\x20','jasmine-core','[jasmine\x20setup]\x20Accessibility\x20results\x20saved\x20successfully','get','[jasmine\x20setup]\x20Exception\x20in\x20final\x20driver\x20quit:\x20','91654fgeRRt','XtrrV','zeTvr','14394vliOlb','__skipSessionStatus','sessionName','isTrue','node:','platformIndex','[jasmine\x20setup]\x20Auto\x20scan\x20disabled;\x20skipping\x20scan,\x20saving\x20accumulated\x20results','[jasmine\x20setup]\x20Exception\x20during\x20WebDriver\x20patch\x20load:\x20','../../helpers/testhub/utils','../../helpers/logger','auvCi','1958412MBRDRZ','[jasmine\x20setup]\x20Exception\x20annotating\x20Automate\x20session:\x20','Mbggi','soYos','Passed','sessionNameSet__','Spec\x20failed','__skipSessionName','getFileName','fullName','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','undefined','oagui','dVZQo','__platformCaps','Failed:\x20','../../index','addReporter','wnVHc','ENV_VAR','debug','[jasmine\x20setup]\x20Exception\x20registering\x20afterAll\x20final\x20quit\x20hook:\x20','11176xIqQdn','1959503oTehbz','getPackageVersion','sCoDd','fdBkB','4|3|2|0|1','executeScript','session_','SDefY','./bstack-reporter/customReporter','WAbol','sITQI','wvGki','dgXRv','NBGKY','shift','env','Pwvwj','BROWSERSTACK_JASMINE_CONFIG','../../helpers/helper','382djNjAN','split','jasmine','[jasmine\x20setup]\x20Exception\x20in\x20stale-driver\x20shift\x20check:\x20','sVThT','[jasmine\x20setup]\x20Exception\x20quitting\x20stale\x20driver\x20before\x20shift:\x20','join','format','describe','length','yghGU','thBuildUuid','autoScanning','platformCaps','failed','1761ifyWte','[jasmine\x20setup]\x20Exception\x20marking\x20Automate\x20session\x20status:\x20','../../helpers/globals','[jasmine\x20setup]\x20Accessibility\x20extension\x20data\x20for\x20current\x20spec:\x20','__sessionFailed','isArray','skipSessionStatus','twyuc','[jasmine\x20setup]\x20Patching\x20Selenium\x20WebDriver\x20(browserstackAgentV2,\x20same-scope\x20require)','bstackA11yShouldScan','[jasmine\x20setup]\x20Error\x20parsing\x20autoScanning\x20config,\x20using\x20default\x20(true):\x20','[jasmine\x20setup]\x20BrowserStack\x20reporter\x20registered\x20additively\x20via\x20jasmine.getEnv().addReporter','[jasmine\x20setup]\x20global\x20`jasmine`\x20not\x20available\x20at\x20helper\x20load;\x20reporter\x20not\x20registered','../../helpers/accessibility-automation/helper','FQaDO','util','is_mobile_session','QrRpO','stringify','[jasmine\x20setup]\x20Exception\x20in\x20a11y\x20beforeEach:\x20','function','fileNameByFullName','startsWith','forEach','isBrowserstackInfra','error','soBFS','includes','keys','thTestRunUuid','setGlobal','message','../../helpers/accessibility-automation/accessibilityRetryHelper','fQiNI','getEnv','browserstackAgentV2'];a19_0x29ba=function(){return _0x12dd65;};return a19_0x29ba();}try{if(typeof describe==='function'&&typeof global!==a19_0x1aa4c3(0x121)){const _origDescribe=describe,_describeTitleStack=[],_resolveCallerFile=()=>{const _0x5310f7=a19_0x1aa4c3,_0x1eca79={'RUyyF':function(_0xb374a0,_0x45bcd4){return _0xb374a0(_0x45bcd4);},'sVThT':_0x5310f7(0xfa),'mHbfS':function(_0x3046cb,_0x428810){return _0x3046cb(_0x428810);},'JDxPN':_0x5310f7(0x10f),'soYos':_0x5310f7(0x104)},_0x1a9602=Error[_0x5310f7(0xe3)];try{const _0x44bd1c=new Error();Error[_0x5310f7(0xe3)]=(_0x3cd8eb,_0x511588)=>_0x511588;const _0x29a0e2=_0x44bd1c['stack'];Error[_0x5310f7(0xe3)]=_0x1a9602;if(Array['isArray'](_0x29a0e2))for(const _0x52ee1c of _0x29a0e2){const _0x247564=_0x52ee1c[_0x5310f7(0x11e)]&&_0x52ee1c[_0x5310f7(0x11e)]();if(_0x247564&&!_0x247564[_0x5310f7(0xda)]('bin'+_0x1eca79['RUyyF'](require,_0x1eca79[_0x5310f7(0xb4)])[_0x5310f7(0xe7)]+_0x5310f7(0xb2)+_0x1eca79['mHbfS'](require,_0x1eca79[_0x5310f7(0xb4)])['sep'])&&!_0x247564[_0x5310f7(0xd5)](_0x1eca79[_0x5310f7(0xf9)])&&!_0x247564['includes'](_0x1eca79[_0x5310f7(0x119)]))return _0x247564;}}catch(_0x4a74b5){Error[_0x5310f7(0xe3)]=_0x1a9602;}return null;},_wrappedDescribe=function(_0x324daa,_0xacd0fa){const _0x1b2fa5=a19_0x1aa4c3,_0x683cac={'PRKfn':function(_0x5e2921){return _0x5e2921();},'pGNlg':function(_0x21266f,_0x2a6b7a){return _0x21266f&&_0x2a6b7a;},'wvGki':function(_0x262488,_0x4acc78,_0x1c61c6){return _0x262488(_0x4acc78,_0x1c61c6);}};let _0x36841e=null;try{_0x36841e=_0x683cac['PRKfn'](_resolveCallerFile);}catch(_0x59dfe2){}_describeTitleStack[_0x1b2fa5(0xed)](_0x324daa);const _0x1d95e9=_describeTitleStack[_0x1b2fa5(0xb6)]('\x20');_0x683cac['pGNlg'](_0x36841e,_0x1d95e9)&&(_fileNameByFullName[_0x1d95e9]=_0x36841e);try{return _0x683cac[_0x1b2fa5(0x138)](_origDescribe,_0x324daa,_0xacd0fa);}finally{_describeTitleStack['pop']();}};Object[a19_0x1aa4c3(0xdb)](_origDescribe)[a19_0x1aa4c3(0xd6)](_0x390e1d=>{_wrappedDescribe[_0x390e1d]=_origDescribe[_0x390e1d];}),global[a19_0x1aa4c3(0xb8)]=_wrappedDescribe;}}catch(a19_0x3e16ec){logger[a19_0x1aa4c3(0x12a)](a19_0x1aa4c3(0xf4)+util[a19_0x1aa4c3(0xb7)](a19_0x3e16ec));}function a19_0x1dfc(_0x59f950,_0x36f227){const _0x29ba2e=a19_0x29ba();return a19_0x1dfc=function(_0x1dfc75,_0x1b9bf5){_0x1dfc75=_0x1dfc75-0xb2;let _0x125b8a=_0x29ba2e[_0x1dfc75];return _0x125b8a;},a19_0x1dfc(_0x59f950,_0x36f227);}try{if(typeof jasmine!==a19_0x1aa4c3(0x121)&&jasmine[a19_0x1aa4c3(0xe1)]){const BrowserStackJasmineReporter=require(a19_0x1aa4c3(0x135)),a19_0x39ea65={};a19_0x39ea65[a19_0x1aa4c3(0xd4)]=_fileNameByFullName,jasmine[a19_0x1aa4c3(0xe1)]()[a19_0x1aa4c3(0x127)](new BrowserStackJasmineReporter(a19_0x39ea65)),logger[a19_0x1aa4c3(0x12a)](a19_0x1aa4c3(0xca));}else logger[a19_0x1aa4c3(0x12a)](a19_0x1aa4c3(0xcb));}catch(a19_0x27d673){logger[a19_0x1aa4c3(0x12a)](a19_0x1aa4c3(0xff)+util['format'](a19_0x27d673));}try{typeof jasmine!==a19_0x1aa4c3(0x121)&&jasmine[a19_0x1aa4c3(0xe1)]&&jasmine[a19_0x1aa4c3(0xe1)]()[a19_0x1aa4c3(0x127)]({'specStarted'(_0x48cc3a){const _0x1f1c54=a19_0x1aa4c3,_0x3cd9d7={};_0x3cd9d7['FQaDO']=function(_0x48c1db,_0x193973){return _0x48c1db||_0x193973;};const _0x568497=_0x3cd9d7;_activeResultId=_0x48cc3a&&_0x48cc3a['id'],_activeFullName=_0x48cc3a&&_0x48cc3a[_0x1f1c54(0x11f)],_activeResultRef=_0x568497[_0x1f1c54(0xcd)](_0x48cc3a,null);},'specDone'(){}});}catch(a19_0x1b77c5){logger[a19_0x1aa4c3(0x12a)](a19_0x1aa4c3(0x101)+util[a19_0x1aa4c3(0xb7)](a19_0x1b77c5));}const _resolveAutoScanning=()=>{const _0x4878ac=a19_0x1aa4c3,_0x4c97ee={};_0x4c97ee[_0x4878ac(0x134)]=function(_0x41ba0e,_0x328b3b){return _0x41ba0e===_0x328b3b;};const _0x7cacee=_0x4c97ee;let _0x26b5e4=!![];try{const _0xabf660=JSON[_0x4878ac(0xe4)](process[_0x4878ac(0x13c)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']||'{}');_0x7cacee[_0x4878ac(0x134)](_0xabf660[_0x4878ac(0xbc)],![])&&(_0x26b5e4=![]);}catch(_0x1df595){logger[_0x4878ac(0x12a)](_0x4878ac(0xc9)+_0x1df595['message']);}return _0x26b5e4;};try{typeof beforeEach===a19_0x1aa4c3(0xd3)&&beforeEach(function bstackA11yBeforeEach(){const _0x4d9c44=a19_0x1aa4c3,_0x2ca3c7={'NBGKY':function(_0x1b41b9){return _0x1b41b9();},'Pwvwj':function(_0x3ed136,_0x105d59,_0x586362){return _0x3ed136(_0x105d59,_0x586362);},'yghGU':function(_0x184f7a,_0x309dca){return _0x184f7a&&_0x309dca;},'yYZIl':_0x4d9c44(0xc8),'MYIRJ':_0x4d9c44(0xef)};try{const _0xc86e0f=_0x2ca3c7[_0x4d9c44(0x13a)](_resolveAutoScanning),_0x98a01c=_0x2ca3c7[_0x4d9c44(0x13d)](shouldScanTestForAccessibility,null,![]),_0x1cfd98=_0x2ca3c7[_0x4d9c44(0xba)](_0xc86e0f,_0x98a01c);globals[_0x4d9c44(0xdd)](_0x2ca3c7[_0x4d9c44(0xee)],_0x1cfd98),globals[_0x4d9c44(0xdd)](_0x2ca3c7['MYIRJ'],null);}catch(_0x4836b7){logger[_0x4d9c44(0x12a)](_0x4d9c44(0xd2)+util['format'](_0x4836b7));}}),typeof afterEach===a19_0x1aa4c3(0xd3)&&afterEach(async function bstackA11ySessionAndScanAfterEach(){const _0x62013f=a19_0x1aa4c3,_0x341e6c={'Mbggi':function(_0x2433e8,_0x486596){return _0x2433e8>_0x486596;},'WAbol':function(_0x50a3a7,_0x301473){return _0x50a3a7>_0x301473;},'oagui':function(_0x1d6045,_0x539981){return _0x1d6045>_0x539981;},'fQiNI':_0x62013f(0x11c),'SQdKQ':function(_0x403c8d,_0x25797b){return _0x403c8d+_0x25797b;},'auvCi':_0x62013f(0x125),'NLGim':_0x62013f(0x11a),'VgfVH':_0x62013f(0xd8),'XtrrV':_0x62013f(0xeb),'dgXRv':_0x62013f(0xbe),'fdBkB':'passed','wnVHc':function(_0x169630){return _0x169630();},'sITQI':'isAccessibilityPlatform','zeTvr':_0x62013f(0xc8),'dVZQo':'[jasmine\x20setup]\x20Performing\x20accessibility\x20scan\x20with\x20retry\x20before\x20saving\x20results','QrRpO':_0x62013f(0xf3),'FHNvG':'[jasmine\x20setup]\x20Accessibility\x20scan\x20failed\x20after\x20retry\x20attempts','twyuc':_0x62013f(0x111),'hawSn':_0x62013f(0xfc),'RjeVj':_0x62013f(0x105),'soBFS':'[jasmine\x20setup]\x20Failed\x20to\x20save\x20accessibility\x20results\x20after\x20retry\x20attempts'};try{if(Array['isArray'](global[_0x62013f(0x100)])&&_0x341e6c[_0x62013f(0x118)](global[_0x62013f(0x100)][_0x62013f(0xb9)],0x1)){const _0x162632=global[_0x62013f(0x100)][0x0];try{await _0x162632[_0x62013f(0x133)],await _0x162632['initQuit']();}catch(_0x4a7529){logger['debug'](_0x62013f(0xb5)+util[_0x62013f(0xb7)](_0x4a7529));}global[_0x62013f(0x100)][_0x62013f(0x13b)]();}}catch(_0x20fbf9){logger[_0x62013f(0x12a)](_0x62013f(0xb3)+util['format'](_0x20fbf9));}try{if(Array[_0x62013f(0xc4)](global[_0x62013f(0x100)])&&_0x341e6c[_0x62013f(0x136)](global['__drivers']['length'],0x0)&&global['__drivers'][0x0]){const _0x1d270e=_activeFullName||global['sessionName'];if(!global[_0x62013f(0x11d)]&&_0x1d270e){global[_0x62013f(0x10d)]=_0x1d270e;try{await global[_0x62013f(0x100)][0x0]['executeScript'](_0x62013f(0xe6)+JSON['stringify'](_0x1d270e)+'}}'),global[_0x62013f(0x100)][0x0][_0x62013f(0x11b)]=!![];}catch(_0x18979e){logger[_0x62013f(0x12a)](_0x62013f(0xe8)+util[_0x62013f(0xb7)](_0x18979e));}}if(!global[_0x62013f(0x10c)])try{const _0x4718be=_activeResultRef&&Array['isArray'](_activeResultRef['failedExpectations'])?_activeResultRef['failedExpectations']:[],_0x4760b4=_0x341e6c['oagui'](_0x4718be['length'],0x0),_0x41e812=_0x4760b4?_0x4718be[0x0]&&_0x4718be[0x0][_0x62013f(0xde)]||_0x341e6c[_0x62013f(0xe0)]:null;try{await global[_0x62013f(0x100)][0x0][_0x62013f(0x132)](_0x62013f(0x120)+JSON[_0x62013f(0xd1)](_0x4760b4?_0x341e6c['SQdKQ'](_0x341e6c[_0x62013f(0x115)],_0x41e812):_0x341e6c[_0x62013f(0xec)])+',\x22level\x22:\x20\x22'+(_0x4760b4?_0x341e6c[_0x62013f(0xfb)]:_0x341e6c[_0x62013f(0x109)])+_0x62013f(0xe9));}catch(_0x6b1995){logger[_0x62013f(0x12a)](_0x62013f(0x117)+util[_0x62013f(0xb7)](_0x6b1995));}_0x4760b4&&(global[_0x62013f(0xc3)]=!![]),await helper['markSessionStatus'](global[_0x62013f(0x100)][0x0],_0x4760b4?_0x341e6c[_0x62013f(0x139)]:_0x341e6c[_0x62013f(0x130)],_0x41e812);}catch(_0x60b781){logger[_0x62013f(0x12a)](_0x62013f(0xc0)+util[_0x62013f(0xb7)](_0x60b781));}}}catch(_0x3c0528){logger[_0x62013f(0x12a)](_0x62013f(0xf1)+util['format'](_0x3c0528));}try{if(_0x341e6c[_0x62013f(0x128)](isAccessibilityAutomationSession)&&globals['getGlobal'](_0x341e6c[_0x62013f(0x137)])&&Array[_0x62013f(0xc4)](global[_0x62013f(0x100)])&&_0x341e6c[_0x62013f(0x122)](global['__drivers']['length'],0x0)&&global[_0x62013f(0x100)][0x0]){const _0x258d87=testRunMap[_0x62013f(0x106)](_activeResultId),_0x455ff0={};_0x455ff0[_0x62013f(0xdc)]=_0x258d87,_0x455ff0[_0x62013f(0xbb)]=process[_0x62013f(0x13c)][testHubConstants['ENV_VAR']['BROWSERSTACK_TESTHUB_UUID']],_0x455ff0['thJwtToken']=process[_0x62013f(0x13c)][testHubConstants[_0x62013f(0x129)]['BROWSERSTACK_TESTHUB_JWT']];const _0x332927=_0x455ff0;logger['debug'](_0x62013f(0xc2)+JSON[_0x62013f(0xd1)](_0x332927));if(globals[_0x62013f(0xfd)](_0x341e6c[_0x62013f(0x10a)])){logger[_0x62013f(0x12a)](_0x341e6c[_0x62013f(0x123)]);const _0x286ad8=await accessibilityRetryHelper[_0x62013f(0xf8)](global[_0x62013f(0x100)][0x0],global[_0x62013f(0xf0)]);_0x286ad8?logger[_0x62013f(0x12a)](_0x341e6c[_0x62013f(0xd0)]):logger['warn'](_0x341e6c['FHNvG']);}else logger[_0x62013f(0x12a)](_0x341e6c[_0x62013f(0xc6)]);globals[_0x62013f(0xfd)](_0x341e6c['hawSn'])&&(_0x332927[_0x62013f(0xcf)]=!![]);const _0x4517a6=await accessibilityRetryHelper[_0x62013f(0x102)](global[_0x62013f(0x100)][0x0],_0x332927);_0x4517a6?logger[_0x62013f(0x12a)](_0x341e6c[_0x62013f(0xf5)]):logger[_0x62013f(0xf2)](_0x341e6c[_0x62013f(0xd9)]);}}catch(_0x1ea714){logger[_0x62013f(0xd8)]('[jasmine\x20setup]\x20Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20this\x20spec.\x20Error:\x20'+util[_0x62013f(0xb7)](_0x1ea714));}});}catch(a19_0x55a852){logger[a19_0x1aa4c3(0x12a)]('[jasmine\x20setup]\x20Exception\x20registering\x20a11y\x20beforeEach/afterEach\x20hooks:\x20'+util['format'](a19_0x55a852));}try{typeof afterAll===a19_0x1aa4c3(0xd3)&&afterAll(async function bstackFinalDriverQuit(){const _0x2e86b4=a19_0x1aa4c3,_0xadca47={};_0xadca47[_0x2e86b4(0x12f)]=function(_0x16b1d6,_0x518182){return _0x16b1d6>_0x518182;};const _0x5169c2=_0xadca47;try{Array['isArray'](global[_0x2e86b4(0x100)])&&_0x5169c2[_0x2e86b4(0x12f)](global[_0x2e86b4(0x100)][_0x2e86b4(0xb9)],0x0)&&global[_0x2e86b4(0x100)][0x0]&&(await global[_0x2e86b4(0x100)][0x0][_0x2e86b4(0x133)],await global['__drivers'][0x0]['initQuit']());}catch(_0x4c7214){logger[_0x2e86b4(0x12a)](_0x2e86b4(0x107)+util[_0x2e86b4(0xb7)](_0x4c7214));}});}catch(a19_0xf46d8b){logger[a19_0x1aa4c3(0x12a)](a19_0x1aa4c3(0x12b)+util[a19_0x1aa4c3(0xb7)](a19_0xf46d8b));}module['exports']={};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a20_0x2fe380=a20_0xa391;(function(_0x2a8b57,_0x3d4d16){const _0x15247f=a20_0xa391,_0x284d5c=_0x2a8b57();while(!![]){try{const _0x9ff7f=parseInt(_0x15247f(0xd2))/0x1*(parseInt(_0x15247f(0xcb))/0x2)+-parseInt(_0x15247f(0xd1))/0x3*(-parseInt(_0x15247f(0xc6))/0x4)+parseInt(_0x15247f(0xd3))/0x5*(-parseInt(_0x15247f(0xca))/0x6)+-parseInt(_0x15247f(0xc9))/0x7*(-parseInt(_0x15247f(0xc4))/0x8)+-parseInt(_0x15247f(0xd5))/0x9+-parseInt(_0x15247f(0xc0))/0xa+parseInt(_0x15247f(0xd0))/0xb;if(_0x9ff7f===_0x3d4d16)break;else _0x284d5c['push'](_0x284d5c['shift']());}catch(_0x30dcd7){_0x284d5c['push'](_0x284d5c['shift']());}}}(a20_0x8cb2,0x8fa7b));function a20_0xa391(_0x3ff24d,_0x229a62){const _0x8cb20a=a20_0x8cb2();return a20_0xa391=function(_0xa39113,_0x165d2d){_0xa39113=_0xa39113-0xc0;let _0x227b59=_0x8cb20a[_0xa39113];return _0x227b59;},a20_0xa391(_0x3ff24d,_0x229a62);}const _specUuidById=new Map();function a20_0x8cb2(){const _0x52142c=['7407801CTGVKO','1461150VjKAbk','set','get','remove','40uzkDcA','WMMpJ','4oilHiF','nBdvQ','RTInD','928459ieaqRu','90xkmJDC','2882mfUyNH','cMGiH','delete','_size','size','6160737IxDIEL','1509027rMpiKE','209JlAwQq','156605jUxddB','JZTOu'];a20_0x8cb2=function(){return _0x52142c;};return a20_0x8cb2();}exports[a20_0x2fe380(0xc1)]=(_0x2f40e1,_0x4e3e36)=>{const _0x13cdc7=a20_0x2fe380,_0x5f546f={};_0x5f546f[_0x13cdc7(0xcc)]=function(_0x5e373a,_0x5139ca){return _0x5e373a===_0x5139ca;},_0x5f546f[_0x13cdc7(0xc5)]=function(_0x168c20,_0x5c8db8){return _0x168c20===_0x5c8db8;};const _0x57eefc=_0x5f546f;if(_0x57eefc['cMGiH'](_0x2f40e1,undefined)||_0x57eefc[_0x13cdc7(0xc5)](_0x2f40e1,null))return;_specUuidById[_0x13cdc7(0xc1)](_0x2f40e1,_0x4e3e36);},exports[a20_0x2fe380(0xc2)]=_0x4d7e92=>{const _0x445747=a20_0x2fe380,_0x2f0d14={};_0x2f0d14[_0x445747(0xc7)]=function(_0x153c43,_0x1472f9){return _0x153c43===_0x1472f9;},_0x2f0d14[_0x445747(0xc8)]=function(_0x22d1c7,_0x28007b){return _0x22d1c7===_0x28007b;};const _0x84f853=_0x2f0d14;if(_0x84f853[_0x445747(0xc7)](_0x4d7e92,undefined)||_0x84f853[_0x445747(0xc8)](_0x4d7e92,null))return undefined;return _specUuidById[_0x445747(0xc2)](_0x4d7e92);},exports[a20_0x2fe380(0xc3)]=_0x36873d=>{const _0x4297c0=a20_0x2fe380,_0x263636={};_0x263636[_0x4297c0(0xd4)]=function(_0x3e275b,_0x1ad14b){return _0x3e275b===_0x1ad14b;};const _0x237b13=_0x263636;if(_0x237b13[_0x4297c0(0xd4)](_0x36873d,undefined)||_0x237b13[_0x4297c0(0xd4)](_0x36873d,null))return;_specUuidById[_0x4297c0(0xcd)](_0x36873d);},exports[a20_0x2fe380(0xce)]=()=>_specUuidById[a20_0x2fe380(0xcf)];
|
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_0x5396f7=a21_0x5a5f;function a21_0x5a5f(_0x27818a,_0x4bcc47){const _0x12568a=a21_0x1256();return a21_0x5a5f=function(_0x5a5fdf,_0x5ea6a6){_0x5a5fdf=_0x5a5fdf-0x16a;let _0x322bad=_0x12568a[_0x5a5fdf];return _0x322bad;},a21_0x5a5f(_0x27818a,_0x4bcc47);}(function(_0x45894b,_0xec12aa){const _0x186c8f=a21_0x5a5f,_0x2b6bb5=_0x45894b();while(!![]){try{const _0x53ebab=parseInt(_0x186c8f(0x1fc))/0x1+parseInt(_0x186c8f(0x19c))/0x2+-parseInt(_0x186c8f(0x1b3))/0x3+parseInt(_0x186c8f(0x17d))/0x4+parseInt(_0x186c8f(0x1dd))/0x5*(parseInt(_0x186c8f(0x21f))/0x6)+parseInt(_0x186c8f(0x21e))/0x7+parseInt(_0x186c8f(0x20f))/0x8*(-parseInt(_0x186c8f(0x1aa))/0x9);if(_0x53ebab===_0xec12aa)break;else _0x2b6bb5['push'](_0x2b6bb5['shift']());}catch(_0x5bed5a){_0x2b6bb5['push'](_0x2b6bb5['shift']());}}}(a21_0x1256,0xeb74b));const fs=require('fs'),path=require('path'),util=require(a21_0x5396f7(0x1d7)),{spawn}=require('child_process'),logger=require(a21_0x5396f7(0x182))[a21_0x5396f7(0x1ee)],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require(a21_0x5396f7(0x21c)),utilities=require(a21_0x5396f7(0x181)),constants=require(a21_0x5396f7(0x219)),accessibilityHelper=require(a21_0x5396f7(0x170)),{updateTestRerunConfig}=require(a21_0x5396f7(0x1a0)),testOpsHelper=require('../../helpers/test-observability/utils'),{debug}=require(a21_0x5396f7(0x16d)),TestDetails=require(a21_0x5396f7(0x191)),{getPercyOptions}=require('../../helpers/percy/utils'),TestHubHandler=require(a21_0x5396f7(0x19a)),testhubUtils=require(a21_0x5396f7(0x220)),{FRAMEWORKS}=require(a21_0x5396f7(0x1b2)),PerformanceTester=require(a21_0x5396f7(0x198)),PerformanceEvents=require(a21_0x5396f7(0x250))['EVENTS'],TestOrchestrationHandler=require(a21_0x5396f7(0x1e6)),BrowserstackCLI=require('../v2/browserstackCLI'),{checkPwandBootstrapCli}=require(a21_0x5396f7(0x195)),{checkPuppeteerAndBootstrapCli,getPuppeteerVersion}=require(a21_0x5396f7(0x1c5)),ClientTroubleShootingService=require(a21_0x5396f7(0x204)),{checkAccessibilityPlatformConfig}=require(a21_0x5396f7(0x170)),getUserJestConfigs=async(_0x1024a6,_0xb4173f)=>{const _0x218142=a21_0x5396f7,_0x2b6ba7={'lLCdc':_0x218142(0x18c),'DnjJO':_0x218142(0x238),'EPTvA':function(_0x388d12,_0x3a4c9a){return _0x388d12||_0x3a4c9a;},'ZlJQS':function(_0x548b9f,_0x5b1a63){return _0x548b9f(_0x5b1a63);},'hRuOk':'package.json','iSKoB':_0x218142(0x1d0),'WLLKv':_0x218142(0x216),'PWouS':_0x218142(0x173),'JzTmf':'json'};let _0x10161d;try{_0x10161d=helper['requireModule'](_0x2b6ba7[_0x218142(0x186)],_0x2b6ba7[_0x218142(0x211)]);}catch{const _0x4343a4=helper[_0x218142(0x23d)](_0x2b6ba7[_0x218142(0x211)]);_0x10161d={'default':async _0x5e44c2=>{const _0x265827=await _0x4343a4['readInitialOptions'](_0x5e44c2,{});return _0x265827['config'];}};}const _0x59dc5f=_0xb4173f[_0x218142(0x1f8)](_0x2291ea=>_0x2291ea==='--config');if(!helper['isUndefined'](_0x1024a6[_0x218142(0x1c1)])){logger[_0x218142(0x256)](_0x218142(0x185)+_0x1024a6[_0x218142(0x1c1)]),process[_0x218142(0x245)]['USER_CONFIG_DETAILS_PATH']=_0x1024a6[_0x218142(0x1c1)];const _0xf3f2e1=await(0x0,_0x10161d[_0x218142(0x24b)])(path['resolve'](_0x1024a6['config']));return _0xb4173f['splice'](_0x59dc5f,0x2),_0x2b6ba7['EPTvA'](_0xf3f2e1,{});}const _0x1c1f2d=_0x2b6ba7[_0x218142(0x242)](require,path['join'](process[_0x218142(0x221)](),_0x2b6ba7[_0x218142(0x205)]));if(_0x1c1f2d[_0x218142(0x1be)])return logger[_0x218142(0x256)](_0x2b6ba7[_0x218142(0x1cf)]),_0x1c1f2d[_0x218142(0x1be)];const _0x86de6f=['js',_0x2b6ba7[_0x218142(0x1f1)],_0x2b6ba7[_0x218142(0x1ca)],_0x2b6ba7['JzTmf'],'ts'];for(const _0x3b3346 of _0x86de6f){const _0x55b436=path[_0x218142(0x1bc)](process[_0x218142(0x221)](),_0x218142(0x17f)+_0x3b3346);if(fs[_0x218142(0x246)](_0x55b436)){process[_0x218142(0x245)]['USER_CONFIG_DETAILS_PATH']=_0x55b436;const _0x308c69=await(0x0,_0x10161d['default'])(_0x55b436);return _0x308c69;}}return{};},getSerial=(_0x86b1c9,_0x188e24)=>{const _0x5eb5df=a21_0x5396f7,_0xe72f28={};_0xe72f28[_0x5eb5df(0x1ae)]=_0x5eb5df(0x224),_0xe72f28[_0x5eb5df(0x1ea)]=function(_0x15c0d2,_0x29928c){return _0x15c0d2>_0x29928c;},_0xe72f28['teJRZ']=function(_0x48a3ec,_0x4af1b5){return _0x48a3ec>_0x4af1b5;},_0xe72f28['vtxdN']=_0x5eb5df(0x22d);const _0x36816b=_0xe72f28;let _0x292414=_0x36816b[_0x5eb5df(0x1ae)];return _0x36816b['KQzkW'](_0x86b1c9['length'],0x1)&&(!_0x188e24[_0x5eb5df(0x1b1)]&&(helper['isUndefined'](_0x188e24['maxWorkers'])||_0x36816b[_0x5eb5df(0x17a)](_0x188e24[_0x5eb5df(0x16e)],0x1)))&&(_0x292414=_0x36816b['vtxdN']),_0x292414;},getMaxWorkers=(_0x16a231,_0x570fbf,_0x10f174)=>{const _0x48f734=a21_0x5396f7,_0x38efa3={'kREpv':function(_0xe23693,_0x1d64b){return _0xe23693(_0x1d64b);}};let _0x8105e6=0x1;if(!helper[_0x48f734(0x179)](_0x570fbf[_0x48f734(0x1fd)]))_0x8105e6=_0x38efa3[_0x48f734(0x1a7)](parseInt,_0x570fbf[_0x48f734(0x1fd)]);else{if(!helper[_0x48f734(0x179)](_0x16a231[_0x48f734(0x16e)]))_0x8105e6=_0x16a231['maxWorkers'];else!helper[_0x48f734(0x179)](_0x10f174[_0x48f734(0x16e)])&&(_0x8105e6=_0x10f174[_0x48f734(0x16e)]);}return _0x8105e6;};async function run(_0x3d6fbc,_0x4982e9,_0x56aabc){const _0x13cd4d=a21_0x5396f7,_0x58db57={'bvjAw':_0x13cd4d(0x1be),'xtdxm':function(_0x12ebcc,_0x47336e){return _0x12ebcc(_0x47336e);},'blYSI':_0x13cd4d(0x243),'xXjvc':function(_0x3a2128){return _0x3a2128();},'GIKnp':function(_0x3c9d38,_0x435329,_0x187ea7,_0x15a054){return _0x3c9d38(_0x435329,_0x187ea7,_0x15a054);},'IJODr':function(_0x3b01fc,_0x1d0633){return _0x3b01fc!=_0x1d0633;},'Ipppg':_0x13cd4d(0x224),'xXaQJ':function(_0x58ebd8,_0x4bcb07,_0x187dde){return _0x58ebd8(_0x4bcb07,_0x187dde);},'BvVad':_0x13cd4d(0x17c),'OCBKW':_0x13cd4d(0x22d),'zusWj':function(_0x4151d5,_0x37bea9,_0x42a82f){return _0x4151d5(_0x37bea9,_0x42a82f);},'fPStA':function(_0x43b9bf,_0x50e6bf){return _0x43b9bf*_0x50e6bf;},'qZiwk':function(_0x51fc70,_0x266bb0){return _0x51fc70===_0x266bb0;},'nDkQb':_0x13cd4d(0x227),'HgwWh':_0x13cd4d(0x230),'orlan':_0x13cd4d(0x1af),'zUobE':_0x13cd4d(0x1fa),'jLYBD':_0x13cd4d(0x1f0),'PxWsX':_0x13cd4d(0x1bd),'bjXVp':_0x13cd4d(0x24f),'PjhhV':function(_0x143a90,_0x3925ca){return _0x143a90!==_0x3925ca;},'rAjWn':_0x13cd4d(0x263),'TOToR':_0x13cd4d(0x259),'CJXJK':_0x13cd4d(0x222),'wljQI':'customSequencer.js','KptVy':_0x13cd4d(0x19d),'fUHiq':_0x13cd4d(0x171),'GAHSE':_0x13cd4d(0x1f4),'WcsGS':function(_0x3d73a9,_0x2ace79){return _0x3d73a9(_0x2ace79);},'iYsFz':'test-observability','JRXlz':_0x13cd4d(0x24e),'dtgqY':_0x13cd4d(0x1fb),'Zmlmk':'test_before.setup.js','XvxwL':_0x13cd4d(0x1fe),'iSDkz':_0x13cd4d(0x16c),'kJyBe':_0x13cd4d(0x1e2),'XDmyK':'test.setup.js','ZWSKp':_0x13cd4d(0x1b4),'bcAWA':function(_0x36d494,_0x2c6933){return _0x36d494&&_0x2c6933;},'WKQXk':_0x13cd4d(0x1d5),'gSuuH':'puppeteer','rvibY':_0x13cd4d(0x255),'yIWZw':_0x13cd4d(0x24b),'mRlfo':function(_0x379c7e,_0x5bd4ba,_0x2ed8f6){return _0x379c7e(_0x5bd4ba,_0x2ed8f6);},'Smlke':_0x13cd4d(0x233),'kqHQf':_0x13cd4d(0x187),'qeGzw':_0x13cd4d(0x1c6),'cnyAS':function(_0x3225f0,_0x3e7e69){return _0x3225f0>_0x3e7e69;},'xVpjb':_0x13cd4d(0x22b),'yOuwJ':_0x13cd4d(0x249),'dFOKE':_0x13cd4d(0x16f),'JETGz':function(_0x45b571,_0xd59593){return _0x45b571===_0xd59593;},'mLHGy':_0x13cd4d(0x1b0),'oRnEj':_0x13cd4d(0x1f7),'YRCcd':_0x13cd4d(0x214)},_0x104f7b=helper[_0x13cd4d(0x215)](_0x58db57[_0x13cd4d(0x196)]);global[_0x13cd4d(0x1e7)]=!!_0x104f7b;const _0xda8b13=_0x58db57[_0x13cd4d(0x1d3)](getPuppeteerVersion);global[_0x13cd4d(0x23b)]=!!_0xda8b13;helper[_0x13cd4d(0x1a1)]()&&(await _0x56aabc[_0x13cd4d(0x207)](_0x3d6fbc),await helper['handleApp'](_0x56aabc[_0x13cd4d(0x1c1)]));if(_0x104f7b)await _0x58db57[_0x13cd4d(0x177)](checkPwandBootstrapCli,_0x104f7b,constants['FRAMEWORKS'][_0x13cd4d(0x261)],_0x56aabc);else _0xda8b13&&await _0x58db57[_0x13cd4d(0x177)](checkPuppeteerAndBootstrapCli,_0xda8b13,constants[_0x13cd4d(0x1cb)][_0x13cd4d(0x261)],_0x56aabc);!BrowserstackCLI[_0x13cd4d(0x1a3)]()[_0x13cd4d(0x20c)]()&&await _0x56aabc[_0x13cd4d(0x206)]();if(!_0x56aabc[_0x13cd4d(0x1c1)])return;_0x58db57[_0x13cd4d(0x1d9)](_0x56aabc[_0x13cd4d(0x1c1)][_0x13cd4d(0x236)],null)?process[_0x13cd4d(0x245)]['BROWSERSTACK_TEST_OBSERVABILITY_YML']=_0x56aabc[_0x13cd4d(0x1c1)][_0x13cd4d(0x236)]:process['env'][_0x13cd4d(0x194)]=_0x58db57[_0x13cd4d(0x1eb)];const _0x5b358c=new TestOrchestrationHandler(_0x56aabc[_0x13cd4d(0x1c1)]),_0x59a8ca=await _0x58db57[_0x13cd4d(0x248)](getUserJestConfigs,_0x3d6fbc,_0x4982e9);logger[_0x13cd4d(0x256)](_0x58db57['BvVad']);const _0x39dd40=Object[_0x13cd4d(0x18d)]({},_0x59a8ca);_0x39dd40[_0x13cd4d(0x1f3)]=Object[_0x13cd4d(0x18d)]({},_0x39dd40[_0x13cd4d(0x1f3)],{'server':helper[_0x13cd4d(0x188)](_0x56aabc[_0x13cd4d(0x1c1)]),'environment':_0x59a8ca[_0x13cd4d(0x200)]}),_0x39dd40[_0x13cd4d(0x1f3)]['browserStackPercyOptions']=_0x58db57[_0x13cd4d(0x16a)](getPercyOptions,_0x56aabc[_0x13cd4d(0x1c1)]);const _0x5be9d5=helper['useW3C'](_0x56aabc['config']);!helper['isUndefined'](_0x56aabc[_0x13cd4d(0x1c1)][_0x13cd4d(0x183)])&&(process[_0x13cd4d(0x245)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON[_0x13cd4d(0x24d)](_0x56aabc['config'][_0x13cd4d(0x183)]));if(!BrowserstackCLI[_0x13cd4d(0x1a3)]()[_0x13cd4d(0x20c)]()){const _0x5765c9=await TestHubHandler[_0x13cd4d(0x1b5)](FRAMEWORKS['JEST'],_0x56aabc);}const _0x3718c3=helper[_0x13cd4d(0x18f)](_0x56aabc[_0x13cd4d(0x1c1)],_0x5be9d5,constants[_0x13cd4d(0x1cb)][_0x13cd4d(0x261)]);process['env'][_0x13cd4d(0x199)]=JSON[_0x13cd4d(0x24d)](_0x3718c3);let _0xad398c=_0x56aabc[_0x13cd4d(0x1c1)][_0x13cd4d(0x24c)];_0xad398c=_0xad398c||accessibilityHelper[_0x13cd4d(0x176)](_0x56aabc[_0x13cd4d(0x1c1)]),process[_0x13cd4d(0x245)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0xad398c,logger[_0x13cd4d(0x1ef)](_0x13cd4d(0x192)+_0xad398c+_0x13cd4d(0x1ce)+BrowserstackCLI['getInstance']()['isRunning']());if(_0x104f7b)try{const _0x3027cd=_0x58db57['xtdxm'](checkAccessibilityPlatformConfig,_0x56aabc['config']);process[_0x13cd4d(0x245)]['BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM']=_0x3027cd?_0x58db57[_0x13cd4d(0x1eb)]:_0x58db57['OCBKW'],logger[_0x13cd4d(0x1ef)]('[Jest\x20Command]\x20Playwright\x20detected,\x20setting\x20accessibility\x20platform:\x20'+_0x3027cd+_0x13cd4d(0x180)+process[_0x13cd4d(0x245)]['BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM']);}catch(_0x528859){logger[_0x13cd4d(0x1ef)](_0x13cd4d(0x208)+util['format'](_0x528859));}_0x39dd40[_0x13cd4d(0x1f3)][_0x13cd4d(0x212)]=_0x3718c3,_0x39dd40[_0x13cd4d(0x1f3)][_0x13cd4d(0x239)]=_0x58db57[_0x13cd4d(0x22a)](getSerial,_0x3718c3,_0x3d6fbc),_0x39dd40[_0x13cd4d(0x1f3)][_0x13cd4d(0x257)]=_0x58db57['GIKnp'](getMaxWorkers,_0x3d6fbc,_0x56aabc[_0x13cd4d(0x1c1)],_0x59a8ca),_0x39dd40[_0x13cd4d(0x1f3)][_0x13cd4d(0x18b)]=_0x56aabc[_0x13cd4d(0x1c1)][_0x13cd4d(0x18b)],_0x39dd40[_0x13cd4d(0x1f3)][_0x13cd4d(0x226)]=_0x58db57['fPStA'](_0x3d6fbc['testTimeout'],0x1)||0x1388,_0x39dd40[_0x13cd4d(0x1f3)][_0x13cd4d(0x1f9)]=_0x56aabc[_0x13cd4d(0x1c1)]['testContextOptions'][_0x13cd4d(0x1f9)],_0x39dd40[_0x13cd4d(0x1f3)][_0x13cd4d(0x25e)]=_0x56aabc['config']['testContextOptions']['skipSessionStatus'],_0x39dd40['testEnvironmentOptions']['browserStackLogLevel']=_0x56aabc[_0x13cd4d(0x1c1)]['logLevel'],_0x39dd40['testEnvironmentOptions']['turboScaleUrl']=_0x56aabc[_0x13cd4d(0x1c1)][_0x13cd4d(0x17e)],_0x39dd40['testEnvironmentOptions'][_0x13cd4d(0x1e1)]=_0x56aabc[_0x13cd4d(0x1c1)]['platforms'],Object[_0x13cd4d(0x18d)](_0x39dd40[_0x13cd4d(0x1f3)],helper[_0x13cd4d(0x253)](_0x56aabc['config'],_0x5be9d5,constants[_0x13cd4d(0x1cb)][_0x13cd4d(0x261)]));const _0x58c88c=helper[_0x13cd4d(0x1a4)](_0x56aabc[_0x13cd4d(0x1c1)]);if(!helper[_0x13cd4d(0x258)](_0x58c88c)){helper[_0x13cd4d(0x228)](_0x58c88c[_0x13cd4d(0x235)])&&(_0x39dd40[_0x13cd4d(0x1f3)][_0x13cd4d(0x213)]=_0x58c88c[_0x13cd4d(0x235)][_0x13cd4d(0x21a)]);if(helper[_0x13cd4d(0x228)](_0x58c88c[_0x13cd4d(0x1e5)])&&helper[_0x13cd4d(0x228)](_0x58c88c[_0x13cd4d(0x1e5)][_0x13cd4d(0x1a6)])){const _0xc90a44={};_0xc90a44[_0x13cd4d(0x1d8)]=_0x58c88c[_0x13cd4d(0x1e5)][_0x13cd4d(0x1a5)],_0xc90a44[_0x13cd4d(0x1a6)]=_0x58c88c[_0x13cd4d(0x1e5)]['workingDir'],_0x39dd40['testEnvironmentOptions'][_0x13cd4d(0x1dc)]=_0xc90a44;}}let _0x4a52ee='';_0x58db57[_0x13cd4d(0x1a9)](helper[_0x13cd4d(0x1e9)](),constants[_0x13cd4d(0x1c3)][_0x13cd4d(0x184)])?_0x4a52ee=_0x58db57[_0x13cd4d(0x1d2)]:_0x4a52ee=_0x58db57[_0x13cd4d(0x16b)];const _0x118448=_0x4a52ee,_0x534c5f=path[_0x13cd4d(0x1bc)](__dirname,_0x58db57[_0x13cd4d(0x20d)],_0x58db57[_0x13cd4d(0x202)]),_0x4538b5=path[_0x13cd4d(0x1bc)](__dirname,_0x58db57[_0x13cd4d(0x20d)],_0x58db57['jLYBD']),_0x1a092b=path['join'](__dirname,_0x58db57[_0x13cd4d(0x20d)],_0x58db57[_0x13cd4d(0x1db)]);_0x39dd40[_0x13cd4d(0x200)]&&(process[_0x13cd4d(0x245)][_0x13cd4d(0x22c)]=_0x39dd40[_0x13cd4d(0x200)]);_0x39dd40['testEnvironment']=path[_0x13cd4d(0x1bc)](__dirname,_0x58db57[_0x13cd4d(0x20d)],_0x58db57[_0x13cd4d(0x1ba)]);const _0x5e900a=_0x59a8ca['runner'];if(_0x5e900a&&_0x58db57['PjhhV'](_0x5e900a,_0x58db57[_0x13cd4d(0x25b)])){const _0x4da8bf=_0x5e900a[_0x13cd4d(0x1b8)](_0x58db57[_0x13cd4d(0x262)])?_0x5e900a:'jest-runner-'+_0x5e900a;process[_0x13cd4d(0x245)][_0x13cd4d(0x1ff)]=_0x4da8bf,logger[_0x13cd4d(0x256)]('Preserving\x20user\x27s\x20Jest\x20runner:\x20'+_0x4da8bf);}_0x39dd40[_0x13cd4d(0x25c)]=_0x4538b5,_0x39dd40[_0x13cd4d(0x1f6)]=_0x39dd40[_0x13cd4d(0x1f6)]||[],_0x39dd40['setupFilesAfterEnv'][_0x13cd4d(0x264)](path['join'](__dirname,_0x58db57['CJXJK']));_0x5b358c[_0x13cd4d(0x1c4)]()&&(_0x39dd40[_0x13cd4d(0x223)]=path[_0x13cd4d(0x1bc)](__dirname,_0x58db57['orlan'],_0x58db57[_0x13cd4d(0x1e3)]));if(testhubUtils[_0x13cd4d(0x23c)]()||BrowserstackCLI['getInstance']()[_0x13cd4d(0x1cc)]()){let _0x170ea2=null;try{_0x170ea2=helper['requireModule'](_0x58db57[_0x13cd4d(0x231)],_0x58db57['fUHiq']);}catch(_0x3aa832){try{_0x170ea2=helper[_0x13cd4d(0x23d)](_0x58db57['GAHSE'],_0x58db57[_0x13cd4d(0x1de)]);}catch(_0x3e00d0){_0x58db57[_0x13cd4d(0x232)](debug,'Unable\x20to\x20find\x20jest-circus,\x20'+_0x3e00d0);}}_0x170ea2&&(testhubUtils[_0x13cd4d(0x23c)]()&&_0x39dd40[_0x13cd4d(0x1f6)][_0x13cd4d(0x264)](path[_0x13cd4d(0x1bc)](__dirname,_0x58db57['iYsFz'],_0x58db57[_0x13cd4d(0x1a2)])),_0x39dd40['testRunner']=path['join'](__dirname,_0x58db57[_0x13cd4d(0x20d)],_0x58db57[_0x13cd4d(0x21d)]));}_0x39dd40[_0x13cd4d(0x225)]=_0x39dd40[_0x13cd4d(0x225)]||[];try{helper['requireSeleniumWebdriver'](),_0x39dd40[_0x13cd4d(0x225)][_0x13cd4d(0x264)](path['join'](__dirname,_0x58db57[_0x13cd4d(0x1e0)]));}catch{logger[_0x13cd4d(0x1ef)](_0x58db57[_0x13cd4d(0x244)]);}try{helper[_0x13cd4d(0x18e)][_0x13cd4d(0x210)](null,[_0x58db57[_0x13cd4d(0x196)],_0x58db57[_0x13cd4d(0x1c8)]]),logger[_0x13cd4d(0x1ef)](_0x58db57[_0x13cd4d(0x18a)]),_0x39dd40[_0x13cd4d(0x225)][_0x13cd4d(0x264)](path[_0x13cd4d(0x1bc)](__dirname,_0x58db57[_0x13cd4d(0x1c2)]));}catch(_0x131619){logger[_0x13cd4d(0x1ef)](_0x58db57[_0x13cd4d(0x23f)],_0x131619);}if(_0x58db57[_0x13cd4d(0x20a)](!_0x104f7b,_0xda8b13)){try{logger['debug'](_0x58db57[_0x13cd4d(0x1cd)]),_0x39dd40['setupFilesAfterEnv'][_0x13cd4d(0x264)](path[_0x13cd4d(0x1bc)](__dirname,'..',_0x58db57['gSuuH'],_0x58db57['XDmyK']));}catch(_0x3c77a1){logger[_0x13cd4d(0x1ef)](_0x13cd4d(0x197)+_0x3c77a1[_0x13cd4d(0x234)]);}try{const _0x2cd184=require[_0x13cd4d(0x1bb)](_0x58db57[_0x13cd4d(0x1ab)]),_0x5982d8=path[_0x13cd4d(0x229)](_0x2cd184)[_0x13cd4d(0x20b)](/\\/g,'/'),_0x13748e={};_0x13748e['^puppeteer-core/internal/(.*)']=_0x5982d8+'/internal/$1',_0x39dd40[_0x13cd4d(0x178)]=Object[_0x13cd4d(0x18d)]({},_0x39dd40[_0x13cd4d(0x178)]||{},_0x13748e),logger[_0x13cd4d(0x1ef)](_0x13cd4d(0x1ed)+_0x5982d8);}catch(_0x2a1b80){logger['debug'](_0x13cd4d(0x22e)+_0x2a1b80[_0x13cd4d(0x234)]);}}_0x39dd40[_0x13cd4d(0x1f2)]=_0x39dd40[_0x13cd4d(0x1f2)]||[_0x58db57['yIWZw']],_0x58db57[_0x13cd4d(0x1ec)](updateTestRerunConfig,_0x39dd40,_0x56aabc);const _0x2ea0bd=fs[_0x13cd4d(0x252)](_0x1a092b),_0x5cde02=helper[_0x13cd4d(0x20e)](_0x58db57[_0x13cd4d(0x209)],_0x58db57['kqHQf']);!_0x5cde02[_0x13cd4d(0x1d4)]?fs[_0x13cd4d(0x25d)](_0x39dd40[_0x13cd4d(0x25c)],'\x0a\x20\x20\x20\x20\x20\x20'+_0x2ea0bd+_0x13cd4d(0x190)+_0x56aabc[_0x13cd4d(0x1c1)][_0x13cd4d(0x1f5)]['length']+';\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[_0x13cd4d(0x25d)](_0x39dd40[_0x13cd4d(0x25c)],_0x13cd4d(0x175)+_0x2ea0bd+'\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'+_0x56aabc[_0x13cd4d(0x1c1)]['platforms'][_0x13cd4d(0x25a)]+_0x13cd4d(0x1d6));logger[_0x13cd4d(0x256)](_0x13cd4d(0x1c0)+_0x118448+_0x13cd4d(0x251)),fs[_0x13cd4d(0x25d)](_0x118448,'const\x20config='+JSON['stringify'](_0x39dd40)+_0x13cd4d(0x260));if(_0x5b358c[_0x13cd4d(0x1c4)]()){logger['debug'](_0x58db57[_0x13cd4d(0x17b)]);const _0x418d6c=await _0x5b358c[_0x13cd4d(0x23e)](_0x39dd40,_0x4982e9[_0x13cd4d(0x218)](0x1),_0x118448);logger['debug']('Found:\x20'+JSON[_0x13cd4d(0x24d)](_0x418d6c)+_0x13cd4d(0x1ad));const _0x1ca5db=await _0x5b358c[_0x13cd4d(0x203)](_0x418d6c);logger[_0x13cd4d(0x1ef)]('Reodered\x20Test\x20Files:\x20'+JSON[_0x13cd4d(0x24d)](_0x1ca5db)),_0x1ca5db&&_0x58db57['cnyAS'](_0x1ca5db[_0x13cd4d(0x25a)],0x0)&&(process[_0x13cd4d(0x245)][_0x13cd4d(0x241)]=_0x1ca5db?.['join'](','));}logger[_0x13cd4d(0x256)](_0x58db57[_0x13cd4d(0x23a)]);testhubUtils['shouldProcessEventForTesthub']()&&TestDetails['setup']();helper[_0x13cd4d(0x217)]({},_0x4982e9),PerformanceTester[_0x13cd4d(0x265)](PerformanceEvents[_0x13cd4d(0x22f)]);const _0x12bfda=[_0x58db57[_0x13cd4d(0x240)],_0x58db57[_0x13cd4d(0x1b9)],_0x118448,..._0x4982e9[_0x13cd4d(0x218)](0x1)];process[_0x13cd4d(0x245)][_0x13cd4d(0x247)]=process[_0x13cd4d(0x245)][_0x13cd4d(0x247)]||_0x58db57[_0x13cd4d(0x240)];const _0xf64472=_0x58db57[_0x13cd4d(0x177)](spawn,_0x58db57[_0x13cd4d(0x1b7)],_0x12bfda,{'shell':_0x58db57[_0x13cd4d(0x19e)](process[_0x13cd4d(0x1e8)],_0x58db57[_0x13cd4d(0x254)]),'stdio':_0x58db57[_0x13cd4d(0x24a)],'env':Object[_0x13cd4d(0x18d)]({},process[_0x13cd4d(0x245)])});_0xf64472['on'](_0x58db57[_0x13cd4d(0x1d1)],async _0x415024=>{const _0x45466b=_0x13cd4d;PerformanceTester[_0x45466b(0x1c7)](PerformanceEvents[_0x45466b(0x189)]),process[_0x45466b(0x1da)]=_0x415024,logger[_0x45466b(0x1ef)]('child\x20process\x20exited\x20with\x20code\x20'+_0x415024),logger[_0x45466b(0x256)]('Deleting\x20'+_0x118448);if(helper['isNotUndefined'](_0x58c88c)&&helper['isNotUndefined'](_0x58c88c[_0x45466b(0x1e5)])&&fs[_0x45466b(0x246)](_0x58c88c[_0x45466b(0x1e5)]['workingDir']))try{const _0x41d2a9={};_0x41d2a9[_0x45466b(0x25f)]=!![],_0x41d2a9['force']=!![],fs[_0x45466b(0x237)](_0x58c88c[_0x45466b(0x1e5)]['workingDir'],_0x41d2a9),logger['debug'](_0x45466b(0x19f)+_0x58c88c['abortBuildOnFailure'][_0x45466b(0x1a6)]);}catch(_0xa2a925){logger[_0x45466b(0x1d4)](_0x45466b(0x193)+_0xa2a925);}let _0x248ad0=null;if(fs['existsSync'](_0x534c5f)){_0x248ad0=fs[_0x45466b(0x252)](_0x534c5f);try{_0x248ad0=JSON[_0x45466b(0x1e4)](_0x248ad0);}catch(_0x23ec2c){logger[_0x45466b(0x1ef)](_0x45466b(0x1a8)+_0x534c5f+',\x20'+_0x248ad0+_0x45466b(0x1b6)+_0x23ec2c);}fs[_0x45466b(0x1c9)](_0x534c5f);}fs[_0x45466b(0x1c9)](_0x118448),fs[_0x45466b(0x1c9)](_0x4538b5),_0x248ad0&&(_0x56aabc[_0x45466b(0x21b)]=helper[_0x45466b(0x172)](_0x248ad0,_0x58db57[_0x45466b(0x240)],_0x56aabc));const _0xc0819a=BrowserstackCLI['isCLIEnabled']();try{await TestHubHandler[_0x45466b(0x174)](),await BrowserstackCLI[_0x45466b(0x1a3)]()[_0x45466b(0x174)]();}catch(_0x464eb3){console[_0x45466b(0x19b)](_0x464eb3),_0x58db57[_0x45466b(0x16a)](debug,_0x45466b(0x1bf)+util[_0x45466b(0x1ac)](_0x464eb3));}testOpsHelper[_0x45466b(0x201)](),TestDetails[_0x45466b(0x1df)](),await utilities['finalExecution'](_0x56aabc,_0xc0819a);});}module['exports']=run;function a21_0x1256(){const _0x599a16=['BSTACK_JEST_TEST_ENV','false','[Jest\x20Command]\x20Could\x20not\x20configure\x20puppeteer-core\x20moduleNameMapper:\x20','SDK_SETUP','jest_browserstack.config.js','KptVy','WcsGS','@jest/core/build/ReporterDispatcher.js','message','retryTestsOnFailure','testObservability','rmSync','jest-config','serial__','xVpjb','__isPuppeteerInstalled','shouldProcessEventForTesthub','requireModule','findTestFiles','ZWSKp','bvjAw','JEST_TEST_ORDER','ZlJQS','@playwright/test','XvxwL','env','existsSync','BROWSERSTACK_FRAMEWORK','xXaQJ','--config','oRnEj','default','accessibility','stringify','data-hooks.js','customEnvironment.js','../../helpers/performance/constants','\x20with\x20browserstack\x20jest\x20configs','readFileSync','getMultiDriverWorkerConfig','mLHGy','puppeteer-core/package.json','info','parallels__','isEmpty','jest-runner-','length','rAjWn','runner','writeFileSync','skipSessionStatus','recursive','\x0amodule.exports\x20=\x20config;','JEST','TOToR','jest-runner','push','end','xtdxm','HgwWh','playwright','../../helpers/test-observability/utils','maxWorkers','npx','../../helpers/accessibility-automation/helper','jest-circus','getErrorMessageFromResults','cjs','stop','\x0a\x20\x20\x20\x20\x20\x20','checkAccessibilityPlatformConfig','GIKnp','moduleNameMapper','isUndefined','teJRZ','qeGzw','Modifying\x20jest\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','6679268biuTnL','turboScaleUrl','jest.config.',',\x20BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM=','../../helpers/utilities','../../helpers/logger','accessibilityOptions','MODULE','Getting\x20your\x20jest\x20configs\x20from\x20','lLCdc','@jest/core','getHubUrl','SDK_CLEANUP','kJyBe','proxySettings','jest-config/build/readConfigFileAndSetRootDir.js','assign','requirePWModule','prepareCapabilities','\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','./test-observability/test-details','[Jest\x20Command]\x20Accessibility\x20enabled:\x20','Error\x20while\x20deleting\x20fail-fast\x20state\x20folder:\x20','BROWSERSTACK_TEST_OBSERVABILITY_YML','../../helpers/playwright-helper','blYSI','Puppeteer\x20setup\x20error:\x20','../../helpers/performance/performance-tester','BROWSERSTACK_CAPABILITIES','../../helpers/testhub/testhubHandler','log','1039352diixtJ','jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js','JETGz','Deleted\x20fail-fast\x20state\x20folder:\x20','./test-observability/helper','isBrowserstackInfra','JRXlz','getInstance','parseTestOrchestrationOptions','maxFailures','workingDir','kREpv','Error\x20while\x20parsing\x20','qZiwk','10013292ZMlXeF','rvibY','format','\x20test\x20files\x20to\x20run.','rlfYi','customImplements','win32','runInBand','../../helpers/test-observability/constants','4080930uomKvA','Playwright\x20not\x20detected\x20or\x20error\x20setting\x20up\x20Jest-Playwright\x20integration:','launchBuild','\x20:\x20','dFOKE','startsWith','yOuwJ','bjXVp','resolve','join','customTestRunnerTemplate.js','jest','Exception\x20in\x20stop\x20build\x20request\x20to\x20TestHub\x20:\x20','Creating\x20','config','XDmyK','PACKAGE_TYPE','isTestOrchestrationEnabled','../../helpers/puppeteer-helper','Test\x20orchestration\x20is\x20enabled,\x20initializing\x20orchestration\x20handler','start','iSDkz','unlinkSync','PWouS','FRAMEWORKS','isCliEnabled','WKQXk',',\x20CLI\x20running:\x20','iSKoB','Getting\x20your\x20jest\x20configs\x20from\x20package.json','YRCcd','nDkQb','xXjvc','error','Puppeteer\x20detected,\x20adding\x20Jest-Puppeteer\x20setup',';\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','util','failureThresholdCount','IJODr','exitCode','PxWsX','failFast','7043685LMVDEq','fUHiq','shutdown','Zmlmk','platformCaps','Playwright\x20detected,\x20adding\x20Jest-Playwright\x20setup','wljQI','parse','abortBuildOnFailure','../../helpers/test-orchestration/testOrchestrationHandler','__isPlaywrightInstalled','platform','getPackageType','KQzkW','Ipppg','mRlfo','[Jest\x20Command]\x20Added\x20puppeteer-core/internal\x20moduleNameMapper\x20for\x20','winstonLogger','debug','customTestRunner.js','WLLKv','reporters','testEnvironmentOptions','jest-circus/build/runner.js','platforms','setupFilesAfterEnv','inherit','findIndex','skipSessionName','jest_browserstack_results.json','customCircus.js','1698383AEeDTh','parallelsPerPlatform','skipping\x20test_before\x20setup\x20since\x20selenium\x20not\x20found','BSTACK_USER_JEST_RUNNER','testEnvironment','printBuildLink','zUobE','reorderTestFiles','../utils/clientTroubleshootingService','hRuOk','setupBrowserstackLocal','initialize','Skipping\x20accessibility\x20env\x20setup\x20for\x20Playwright\x20due\x20to:\x20','Smlke','bcAWA','replace','isRunning','orlan','resolveModule','32QzLjdw','apply','DnjJO','capabilities','retries__','close','getPackageVersion','mjs','filterBrowserstackArgs','slice','../utils/constants','maxRetries','errorMessage','../../helpers/helper','dtgqY','10349332CrTOfb','6SYrexy','../../helpers/testhub/utils','cwd','jest.setup.js','testSequencer','true','setupFiles','timeout__','jest_browserstack.config.cjs','isNotUndefined','dirname','zusWj','Showing\x20jest\x20logs\x20and\x20reporter\x20logs.'];a21_0x1256=function(){return _0x599a16;};return a21_0x1256();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a22_0x593086=a22_0x1590;function a22_0x4576(){const _0x2a4b5d=['path','6SbIgYS','default','join','38287056BiTxbL','jest-circus/build/runner.js','2828399SjfPeP','function','exports','jestAdapterInit','requireInternalModule','initRequireModule','../../../helpers/helper','984066cDpNfP','630998hfFdYJ','2651217JovsYi','zyvmu','jest-circus','3583104Cikzaz','3341960RbzgfY'];a22_0x4576=function(){return _0x2a4b5d;};return a22_0x4576();}(function(_0x3f8f2f,_0x21c0dd){const _0x5ec4b8=a22_0x1590,_0x2a8445=_0x3f8f2f();while(!![]){try{const _0x50a826=-parseInt(_0x5ec4b8(0x1f0))/0x1+-parseInt(_0x5ec4b8(0x1f1))/0x2+-parseInt(_0x5ec4b8(0x1f2))/0x3+-parseInt(_0x5ec4b8(0x1e1))/0x4+-parseInt(_0x5ec4b8(0x1e2))/0x5+parseInt(_0x5ec4b8(0x1e4))/0x6*(-parseInt(_0x5ec4b8(0x1e9))/0x7)+parseInt(_0x5ec4b8(0x1e7))/0x8;if(_0x50a826===_0x21c0dd)break;else _0x2a8445['push'](_0x2a8445['shift']());}catch(_0xe932db){_0x2a8445['push'](_0x2a8445['shift']());}}}(a22_0x4576,0x9adf1));const path=require(a22_0x593086(0x1e3)),{requireModule}=require(a22_0x593086(0x1ef));let initJestAdapter;try{initJestAdapter=requireModule('jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js',a22_0x593086(0x1f4));}catch{initJestAdapter=requireModule(a22_0x593086(0x1e8),a22_0x593086(0x1f4));}initJestAdapter=typeof initJestAdapter===a22_0x593086(0x1ea)?initJestAdapter:initJestAdapter[a22_0x593086(0x1e5)];const FRAMEWORK_INITIALIZER=path[a22_0x593086(0x1e6)](__dirname,'customJestAdapterInit.js');function a22_0x1590(_0x17d9d0,_0x3c6a53){const _0x457679=a22_0x4576();return a22_0x1590=function(_0x159030,_0x61b8e7){_0x159030=_0x159030-0x1e1;let _0x4a8251=_0x457679[_0x159030];return _0x4a8251;},a22_0x1590(_0x17d9d0,_0x3c6a53);}module[a22_0x593086(0x1eb)]=(..._0x412c32)=>{const _0x217c4a=a22_0x593086,_0x1d8619={'YBqvW':_0x217c4a(0x1ec),'zyvmu':function(_0x56274c,_0x2a2655){return _0x56274c===_0x2a2655;},'cMSle':function(_0x3dc4ba,..._0x29e7b7){return _0x3dc4ba(..._0x29e7b7);}};return _0x412c32[0x3][_0x217c4a(0x1ee)]=_0x412c32[0x3][_0x217c4a(0x1ed)],_0x412c32[0x3][_0x217c4a(0x1ed)]=(..._0xaf4dca)=>{const _0xfb9727=_0x217c4a;if(_0xaf4dca[0x0]&&_0xaf4dca[0x0]['includes'](_0x1d8619['YBqvW'])&&_0x1d8619[_0xfb9727(0x1f3)](_0xaf4dca[0x1],undefined))return _0x412c32[0x3][_0xfb9727(0x1ee)](FRAMEWORK_INITIALIZER);return _0x412c32[0x3][_0xfb9727(0x1ee)](..._0xaf4dca);},_0x1d8619['cMSle'](initJestAdapter,..._0x412c32);};
|