browserstack-node-sdk 1.39.0 → 1.40.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +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/integrations/command.js +1 -1
- package/src/bin/integrations/constants.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_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/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/builderPatch.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/nightwatch/command.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/sessionDetails.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/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/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/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.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/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.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/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.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/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.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/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/processHelper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.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/timeoutPromise.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 +1 @@
|
|
|
1
|
-
const a35_0x2dbbf8=a35_0x2bb4;function a35_0x2bb4(_0x5718b9,_0x34b51e){const _0x341c40=a35_0x341c();return a35_0x2bb4=function(_0x2bb409,_0x1005a1){_0x2bb409=_0x2bb409-0x1be;let _0x35cd2a=_0x341c40[_0x2bb409];return _0x35cd2a;},a35_0x2bb4(_0x5718b9,_0x34b51e);}(function(_0x514970,_0x4d3882){const _0x4919f0=a35_0x2bb4,_0x3f6a4d=_0x514970();while(!![]){try{const _0xb6fb5a=parseInt(_0x4919f0(0x240))/0x1+parseInt(_0x4919f0(0x214))/0x2+parseInt(_0x4919f0(0x246))/0x3+-parseInt(_0x4919f0(0x217))/0x4+parseInt(_0x4919f0(0x1e4))/0x5+parseInt(_0x4919f0(0x21f))/0x6+-parseInt(_0x4919f0(0x253))/0x7;if(_0xb6fb5a===_0x4d3882)break;else _0x3f6a4d['push'](_0x3f6a4d['shift']());}catch(_0x4c4da2){_0x3f6a4d['push'](_0x3f6a4d['shift']());}}}(a35_0x341c,0x210a7));const util=require(a35_0x2dbbf8(0x1be)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require('../../helpers/accessibility-automation/helper'),{percyAutoCapture}=require(a35_0x2dbbf8(0x1f3)),{sendPlatformDetails}=require('./test-observability/mochaUtils'),{isBrowserstackInfra,markSessionStatus,nestedKeyValue}=require(a35_0x2dbbf8(0x254)),PerformanceTester=require(a35_0x2dbbf8(0x243)),{AUTOMATE_EVENTS:PerformanceAutEvents,O11y_EVENTS:PerformanceO11yEvents,A11Y_EVENTS:PerformanceA11yEvents,EVENTS:PerformanceSdkEvents}=require(a35_0x2dbbf8(0x264)),scripts=require(a35_0x2dbbf8(0x1f4)),globals=require('../../helpers/globals'),logger=require(a35_0x2dbbf8(0x23b))[a35_0x2dbbf8(0x1fa)],{shouldProcessEventForTesthub}=require(a35_0x2dbbf8(0x1ce)),testHubConstants=require(a35_0x2dbbf8(0x239));exports['mochaHooks']={'beforeAll'(){const _0x8ff70b=a35_0x2dbbf8,_0x5b713b={'HCpOk':function(_0x1d05b5,_0x1679ee,_0x3cbf69,_0x282030){return _0x1d05b5(_0x1679ee,_0x3cbf69,_0x282030);},'TmWzS':'failed','UmSew':_0x8ff70b(0x1cd),'fCvDJ':function(_0x5d2ecc,_0x4297dc,_0x428404){return _0x5d2ecc(_0x4297dc,_0x428404);},'RDuXj':_0x8ff70b(0x1df),'aTDJy':function(_0x937433){return _0x937433();},'bNpEn':function(_0x43641f,_0x5d1cea,_0x3f98d7){return _0x43641f(_0x5d1cea,_0x3f98d7);},'uymHQ':_0x8ff70b(0x1d4),'Hmwqj':_0x8ff70b(0x1ed)};PerformanceTester['startMonitoring']();const _0x5afcdb='browserstack internal helper hook';PerformanceTester[_0x8ff70b(0x1c4)](PerformanceSdkEvents[_0x8ff70b(0x20f)],()=>{const _0x2a0f35=_0x8ff70b;global['__error_messages__']=[],global['__sessionFailed']=![],global[_0x2a0f35(0x22d)]=async()=>{const _0x41ea09=_0x2a0f35;let _0x101d67=![];try{await global[_0x41ea09(0x1f7)][0x0]['session_'],_0x101d67=!![],global[_0x41ea09(0x1e5)]?await _0x5b713b[_0x41ea09(0x219)](markSessionStatus,global[_0x41ea09(0x1f7)][0x0],_0x5b713b[_0x41ea09(0x228)],global['__error_messages__'][_0x41ea09(0x25f)](_0x5b713b['UmSew'])):await _0x5b713b[_0x41ea09(0x1ca)](markSessionStatus,global[_0x41ea09(0x1f7)][0x0],_0x5b713b[_0x41ea09(0x207)]);}catch(_0x155cc9){logger[_0x41ea09(0x20b)](_0x41ea09(0x231)+_0x155cc9);}global['__error_messages__']=[],global[_0x41ea09(0x1e5)]=![];if(_0x101d67)try{try{_0x5b713b['aTDJy'](shouldProcessEventForTesthub)&&(global[_0x41ea09(0x1f7)][0x0]&&await _0x5b713b[_0x41ea09(0x1ca)](sendPlatformDetails,global[_0x41ea09(0x1f7)][0x0],this['currentTest']?this[_0x41ea09(0x1e6)][_0x41ea09(0x24a)]:null));}catch(_0x5ca441){logger[_0x41ea09(0x20b)]('Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20'+_0x5ca441);}await global[_0x41ea09(0x1f7)][0x0]['initQuit']();}catch(_0x20439b){logger['debug']('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0x20439b);}};},{'platform':_0x5b713b[_0x8ff70b(0x1d0)](nestedKeyValue,global[_0x8ff70b(0x24c)],[_0x5b713b[_0x8ff70b(0x24b)]]),'hookType':_0x5b713b[_0x8ff70b(0x1d6)]})();},'beforeEach'(_0x1a828b){const _0x4f5c4d=a35_0x2dbbf8,_0x4c1a5c={'orKXl':function(_0x354227,_0x5dd37e){return _0x354227>_0x5dd37e;},'oPWFM':_0x4f5c4d(0x22f),'MtSBz':function(_0x31e777,_0x32ede3,_0x2ebefc){return _0x31e777(_0x32ede3,_0x2ebefc);},'StSNQ':_0x4f5c4d(0x1c6),'INJCE':function(_0x33d3ae){return _0x33d3ae();},'jTXpn':_0x4f5c4d(0x1c5),'DQEKp':function(_0x1bdb24,_0x29200a){return _0x1bdb24===_0x29200a;},'giTWW':_0x4f5c4d(0x1ec),'FqhrC':_0x4f5c4d(0x265),'LLwLg':_0x4f5c4d(0x209),'VYmDr':_0x4f5c4d(0x216),'yDpVj':'browserstackTestName','xtvFn':function(_0x347c48,_0x78bc57,_0x1a1f51){return _0x347c48(_0x78bc57,_0x1a1f51);},'OPwEU':_0x4f5c4d(0x1d4),'vngow':_0x4f5c4d(0x1cc)};globals[_0x4f5c4d(0x1bf)](_0x4c1a5c['yDpVj'],this[_0x4f5c4d(0x1e6)][_0x4f5c4d(0x258)]()[_0x4f5c4d(0x25f)](_0x4c1a5c[_0x4f5c4d(0x1e7)])),PerformanceTester[_0x4f5c4d(0x1c4)](PerformanceSdkEvents['SDK_HOOK'],()=>{const _0xed5677=_0x4f5c4d,_0x2f7c40={'HYSuT':function(_0x7551dc,_0x22122f){const _0x55d01f=a35_0x2bb4;return _0x4c1a5c[_0x55d01f(0x1f6)](_0x7551dc,_0x22122f);},'CaGGZ':function(_0x39aa25,_0x5f4f17){return _0x4c1a5c['orKXl'](_0x39aa25,_0x5f4f17);},'zfeYF':_0x4c1a5c['oPWFM'],'FbNTd':function(_0x5e65f4,_0x42c7ec,_0x449afa){const _0x78bb4a=a35_0x2bb4;return _0x4c1a5c[_0x78bb4a(0x218)](_0x5e65f4,_0x42c7ec,_0x449afa);},'UyLdC':_0x4c1a5c[_0xed5677(0x221)],'gXsDJ':function(_0x3c5c4e){const _0x3e7cd4=_0xed5677;return _0x4c1a5c[_0x3e7cd4(0x20d)](_0x3c5c4e);},'SBRZK':function(_0x9716bc,_0x398283){const _0x3a2dad=_0xed5677;return _0x4c1a5c[_0x3a2dad(0x1f6)](_0x9716bc,_0x398283);},'OyxjG':_0x4c1a5c['jTXpn'],'mqcbV':function(_0x34ea4c,_0x525e0e){const _0x3ffec6=_0xed5677;return _0x4c1a5c[_0x3ffec6(0x24d)](_0x34ea4c,_0x525e0e);},'azNaT':_0x4c1a5c[_0xed5677(0x20c)],'Dgjfa':_0x4c1a5c[_0xed5677(0x226)],'tzvjj':_0x4c1a5c['LLwLg'],'aHtpw':_0x4c1a5c[_0xed5677(0x1f0)],'MZFME':function(_0x65742){const _0x33a4a7=_0xed5677;return _0x4c1a5c[_0x33a4a7(0x20d)](_0x65742);}},_0x19c6ae='browserstack internal helper hook';new Promise(async _0x3b34bb=>{const _0x53b25c=_0xed5677;let _0x3f6dc6=!![];try{_0x2f7c40['HYSuT'](global['__drivers'][_0x53b25c(0x206)],0x1)&&(await global['driverCleanup'](),global[_0x53b25c(0x1f7)][_0x53b25c(0x24f)]()),_0x2f7c40[_0x53b25c(0x236)](global[_0x53b25c(0x1f7)][0x0][_0x53b25c(0x25d)],0x0)&&(_0x3f6dc6=![],await global[_0x53b25c(0x22d)]());}catch(_0x3300c1){logger['debug'](_0x53b25c(0x1da)+_0x3300c1);}try{Array[_0x53b25c(0x21c)](global[_0x53b25c(0x1f7)])&&global['__drivers'][0x0]&&(global[_0x53b25c(0x1f7)][0x0][_0x53b25c(0x21d)]=this[_0x53b25c(0x1e6)][_0x53b25c(0x258)]()['join'](_0x2f7c40[_0x53b25c(0x23d)])),global['browserstackSessionName']=this[_0x53b25c(0x1e6)][_0x53b25c(0x258)]()[_0x53b25c(0x25f)](_0x2f7c40[_0x53b25c(0x23d)]);}catch(_0x4b54f8){logger[_0x53b25c(0x20b)](_0x53b25c(0x25a)+_0x4b54f8);}this[_0x53b25c(0x1e6)][_0x53b25c(0x212)]=_0x2f7c40[_0x53b25c(0x1fb)](shouldScanTestForAccessibility,this['currentTest'][_0x53b25c(0x258)](),!![]),globals[_0x53b25c(0x1bf)](_0x2f7c40[_0x53b25c(0x255)],this[_0x53b25c(0x1e6)]['shouldScanTestForAccessibility']),this['currentTest'][_0x53b25c(0x1cf)]=!![];if(_0x2f7c40['gXsDJ'](isAccessibilityAutomationSession)&&_0x3f6dc6&&Array['isArray'](global['__drivers'])&&_0x2f7c40[_0x53b25c(0x1dd)](global[_0x53b25c(0x1f7)][_0x53b25c(0x206)],0x0)&&globals[_0x53b25c(0x244)](_0x2f7c40[_0x53b25c(0x25c)]))try{const _0x47f325=await global[_0x53b25c(0x1f7)][0x0][_0x53b25c(0x241)];if(_0x47f325){let _0x38877b=!![];const _0x50d6fe=await global[_0x53b25c(0x1f7)][0x0][_0x53b25c(0x202)]();let _0x42a28f;try{_0x42a28f=new URL(_0x50d6fe);}catch(_0x109d00){_0x38877b=![];}_0x38877b=_0x2f7c40[_0x53b25c(0x1ef)](_0x42a28f[_0x53b25c(0x251)],_0x2f7c40[_0x53b25c(0x1fe)])||_0x2f7c40[_0x53b25c(0x1ef)](_0x42a28f[_0x53b25c(0x251)],_0x2f7c40[_0x53b25c(0x210)]),_0x38877b&&(this[_0x53b25c(0x1e6)][_0x53b25c(0x212)]&&logger[_0x53b25c(0x249)](_0x2f7c40[_0x53b25c(0x1f2)])),this[_0x53b25c(0x1e6)][_0x53b25c(0x1cf)]=this[_0x53b25c(0x1e6)][_0x53b25c(0x212)],this['currentTest']['shouldScanTestForAccessibility']&&logger[_0x53b25c(0x249)](_0x2f7c40['aHtpw']);}}catch(_0x1316c4){logger[_0x53b25c(0x1ee)](_0x53b25c(0x1dc)+util['format'](_0x1316c4));}_0x2f7c40[_0x53b25c(0x233)](_0x3b34bb);})[_0xed5677(0x1fd)](()=>{const _0x316f28=_0xed5677;_0x2f7c40[_0x316f28(0x233)](_0x1a828b);});},{'platform':_0x4c1a5c[_0x4f5c4d(0x1d8)](nestedKeyValue,global[_0x4f5c4d(0x24c)],[_0x4c1a5c[_0x4f5c4d(0x1c3)]]),'hookType':_0x4c1a5c[_0x4f5c4d(0x25b)]})();},'afterEach'(_0xb0c1db){const _0x28df4d=a35_0x2dbbf8,_0xc46bde={'qoJCv':function(_0x56ab7f,_0x456414){return _0x56ab7f!==_0x456414;},'BkRmL':_0x28df4d(0x1df),'GXwiN':function(_0xa64928,_0x34b562,_0x5aa6b1){return _0xa64928(_0x34b562,_0x5aa6b1);},'jQhjY':function(_0x2d5eb2,_0x284d5e){return _0x2d5eb2+_0x284d5e;},'mBqKB':'Failed:\x20','twAdF':_0x28df4d(0x1ee),'EwzKm':'Passed','YvUTJ':_0x28df4d(0x249),'WzUWR':function(_0x19ad4b,_0x5c3939){return _0x19ad4b>_0x5c3939;},'tVjHm':function(_0x204372,_0x550195){return _0x204372===_0x550195;},'KFXIE':_0x28df4d(0x1d1),'emPyQ':function(_0x343d63,_0x5cfd0f){return _0x343d63>_0x5cfd0f;},'KnwMH':'appium:app','BBQwC':function(_0x25cd4e,_0x3129cf,_0x4e6a8b,_0x2af894){return _0x25cd4e(_0x3129cf,_0x4e6a8b,_0x2af894);},'IIeqI':_0x28df4d(0x1c5),'fyCdi':'bstackA11yShouldScan','nZklJ':_0x28df4d(0x1f8),'vUEyH':'Performing\x20scan\x20before\x20saving\x20results','rYxwk':'afterTest','OIRds':_0x28df4d(0x20a),'bEduy':function(_0x262a69){return _0x262a69();},'XpdFM':function(_0x2bdec5,_0x443653,_0x5f2592){return _0x2bdec5(_0x443653,_0x5f2592);},'waibA':function(_0x2ea8ed){return _0x2ea8ed();},'lDJQp':_0x28df4d(0x20b),'Fcyci':function(_0x23fc9f,_0x90edc5){return _0x23fc9f>_0x90edc5;},'weDKh':function(_0x47c517){return _0x47c517();},'cQzKV':'\x20-\x20','hLFsD':_0x28df4d(0x1d4),'LKwov':_0x28df4d(0x1d7)},_0x14dafb='browserstack internal helper hook';this[_0x28df4d(0x25e)](0xfde8),global['sessionName']=this[_0x28df4d(0x1e6)][_0x28df4d(0x258)]()[_0x28df4d(0x25f)](_0xc46bde[_0x28df4d(0x1f1)]),PerformanceTester[_0x28df4d(0x1c4)](PerformanceSdkEvents[_0x28df4d(0x20f)],()=>{const _0x1a3e9c=_0x28df4d,_0x319a5e={'UCAcF':_0xc46bde[_0x1a3e9c(0x1f1)],'ePHfj':function(_0xee6160){return _0xc46bde['waibA'](_0xee6160);}},_0x3a9567=async(_0x54b80c,_0x84fa0a)=>{const _0x234797=_0x1a3e9c;await global[_0x234797(0x1f7)][0x0][_0x234797(0x225)](_0x234797(0x1f5)+_0x54b80c+_0x234797(0x1f9)+_0x84fa0a+'\x22}}');};new Promise(async _0x270961=>{const _0x5cade8=_0x1a3e9c,_0x359ab3={'JBUIm':function(_0x1cd9de,_0x409c34){const _0x33fe86=a35_0x2bb4;return _0xc46bde[_0x33fe86(0x22e)](_0x1cd9de,_0x409c34);},'KOQUl':_0xc46bde[_0x5cade8(0x263)],'MPOwf':function(_0x4063f5,_0xb7faf6,_0x282d70){const _0x3d7297=_0x5cade8;return _0xc46bde[_0x3d7297(0x232)](_0x4063f5,_0xb7faf6,_0x282d70);},'zovrr':function(_0x5f0cfc,_0x1ff7e1){return _0xc46bde['jQhjY'](_0x5f0cfc,_0x1ff7e1);},'JufLz':_0xc46bde[_0x5cade8(0x1c1)],'YzZJr':_0xc46bde[_0x5cade8(0x227)],'ZMKvE':_0xc46bde[_0x5cade8(0x205)],'xfPwW':_0xc46bde['YvUTJ']};try{_0xc46bde[_0x5cade8(0x247)](global[_0x5cade8(0x1f7)]['length'],0x1)&&(await global[_0x5cade8(0x22d)](),global[_0x5cade8(0x1f7)][_0x5cade8(0x24f)](),global[_0x5cade8(0x200)]=[],global[_0x5cade8(0x1e5)]=![]);try{if(global['percy']&&_0xc46bde['tVjHm'](global[_0x5cade8(0x229)],_0xc46bde['KFXIE'])&&global[_0x5cade8(0x1f7)][0x0]){const _0x3f04c3=_0xc46bde[_0x5cade8(0x252)](global[_0x5cade8(0x250)]['length'],0x0)?!!global[_0x5cade8(0x250)][0x0][_0x5cade8(0x230)]||!!global[_0x5cade8(0x250)][0x0][_0xc46bde['KnwMH']]:![],_0x1515a3={};_0x1515a3[_0x5cade8(0x230)]=_0x3f04c3,await _0xc46bde[_0x5cade8(0x22a)](percyAutoCapture,global['__drivers'][0x0],_0xc46bde[_0x5cade8(0x22b)],_0x1515a3);}}catch(_0x2180c3){logger[_0x5cade8(0x20b)](_0x5cade8(0x1e0)+_0x2180c3);}!global[_0x5cade8(0x260)]&&(await PerformanceTester[_0x5cade8(0x1c4)](PerformanceAutEvents[_0x5cade8(0x201)],async()=>{const _0x58d945=_0x5cade8;await global[_0x58d945(0x1f7)][0x0][_0x58d945(0x225)](_0x58d945(0x245)+JSON['stringify'](this['currentTest'][_0x58d945(0x258)]()[_0x58d945(0x25f)](_0x319a5e[_0x58d945(0x1e2)]))+'}}');})(),global[_0x5cade8(0x1f7)][0x0]['sessionNameSet__']=!![]),await PerformanceTester[_0x5cade8(0x1c4)](PerformanceAutEvents[_0x5cade8(0x21a)],async()=>{const _0x2f63dd=_0x5cade8,_0x225ba8=_0x359ab3['JBUIm'](this['currentTest'][_0x2f63dd(0x220)],_0x359ab3['KOQUl']);_0x225ba8?(global[_0x2f63dd(0x1e5)]=!![],global[_0x2f63dd(0x200)][_0x2f63dd(0x257)](this['currentTest'][_0x2f63dd(0x211)][_0x2f63dd(0x1d3)]),await _0x359ab3['MPOwf'](_0x3a9567,JSON['stringify'](_0x359ab3[_0x2f63dd(0x262)](_0x359ab3[_0x2f63dd(0x203)],this[_0x2f63dd(0x1e6)][_0x2f63dd(0x211)][_0x2f63dd(0x1d3)])),_0x359ab3[_0x2f63dd(0x1c2)])):await _0x359ab3[_0x2f63dd(0x208)](_0x3a9567,JSON[_0x2f63dd(0x1ea)](_0x359ab3[_0x2f63dd(0x256)]),_0x359ab3[_0x2f63dd(0x237)]);})();}catch(_0x5411ee){logger[_0x5cade8(0x20b)](_0x5cade8(0x21e)+_0x5411ee);}try{if(this[_0x5cade8(0x1e6)][_0x5cade8(0x1cf)]&&globals[_0x5cade8(0x244)](_0xc46bde[_0x5cade8(0x23f)])&&globals['getGlobal'](_0xc46bde[_0x5cade8(0x1c8)])){logger[_0x5cade8(0x249)](_0xc46bde[_0x5cade8(0x1e1)]);const _0x5ce333={};_0x5ce333[_0x5cade8(0x23a)]=this[_0x5cade8(0x1e6)][_0x5cade8(0x24a)],_0x5ce333[_0x5cade8(0x23c)]=process[_0x5cade8(0x213)][testHubConstants['ENV_VAR'][_0x5cade8(0x1fc)]],_0x5ce333['thJwtToken']=process['env'][testHubConstants['ENV_VAR'][_0x5cade8(0x204)]];const _0x3f280e=_0x5ce333;logger['debug'](_0x5cade8(0x23e)+JSON['stringify'](_0x3f280e)),logger[_0x5cade8(0x20b)](_0xc46bde[_0x5cade8(0x1e8)]);const _0x55494f={};_0x55494f[_0x5cade8(0x1e9)]=_0xc46bde[_0x5cade8(0x20e)],await PerformanceTester['measureWrapper'](PerformanceA11yEvents[_0x5cade8(0x223)],async()=>{const _0x2350c8=_0x5cade8;logger[_0x2350c8(0x20b)](util['format'](await global[_0x2350c8(0x1f7)][0x0]['executeAsyncScript'](scripts[_0x2350c8(0x238)],{'method':global['browserstackSessionName']})));},_0x55494f)(),await PerformanceTester[_0x5cade8(0x1c4)](PerformanceA11yEvents['SAVE_RESULTS'],async()=>{const _0x245efc=_0x5cade8;await global[_0x245efc(0x1f7)][0x0]['executeAsyncScript'](scripts[_0x245efc(0x1e3)],_0x3f280e);})(),logger['info'](_0xc46bde[_0x5cade8(0x1ff)]);}}catch(_0x503a5d){logger[_0x5cade8(0x1ee)](_0x5cade8(0x1db)+this[_0x5cade8(0x1e6)]['titlePath']()+_0x5cade8(0x1d2),_0x503a5d);}try{try{if(_0xc46bde[_0x5cade8(0x1eb)](shouldProcessEventForTesthub)){global[_0x5cade8(0x1f7)][0x0]&&await _0xc46bde[_0x5cade8(0x21b)](sendPlatformDetails,global[_0x5cade8(0x1f7)][0x0],this[_0x5cade8(0x1e6)]?this['currentTest']['testAnalyticsId']:null);if(_0xc46bde[_0x5cade8(0x235)](isBrowserstackInfra)){PerformanceTester[_0x5cade8(0x1cb)](PerformanceO11yEvents[_0x5cade8(0x1c9)]);const _0x4cd744=_0x5cade8(0x1d9)+Date['now']();await _0xc46bde[_0x5cade8(0x21b)](_0x3a9567,JSON[_0x5cade8(0x1ea)](_0x4cd744),_0xc46bde[_0x5cade8(0x1de)]),PerformanceTester[_0x5cade8(0x215)](PerformanceO11yEvents['SYNC']);}}}catch(_0x340922){logger['debug'](_0x5cade8(0x1c7)+_0x340922),PerformanceTester[_0x5cade8(0x215)](PerformanceO11yEvents[_0x5cade8(0x1c9)],![],_0x340922);}_0xc46bde[_0x5cade8(0x1d5)](global['__drivers'][0x0][_0x5cade8(0x25d)],0x0)&&await global[_0x5cade8(0x22d)]();}catch(_0x4f79){logger['debug'](_0x5cade8(0x1da)+_0x4f79);}_0xc46bde[_0x5cade8(0x22c)](_0x270961);})[_0x1a3e9c(0x1fd)](()=>{const _0x56d5ef=_0x1a3e9c;_0x319a5e[_0x56d5ef(0x24e)](_0xb0c1db);});},{'platform':_0xc46bde['GXwiN'](nestedKeyValue,global[_0x28df4d(0x24c)],[_0xc46bde[_0x28df4d(0x248)]]),'hookType':_0xc46bde[_0x28df4d(0x261)]})();},'afterAll'(_0x5cbe23){const _0x4e8acb=a35_0x2dbbf8,_0x23c58a={'pCCTG':function(_0x509dea){return _0x509dea();},'EuaEr':function(_0x11bdef,_0x3ec246,_0x770c7c){return _0x11bdef(_0x3ec246,_0x770c7c);},'orZCg':_0x4e8acb(0x1d4),'oZPzS':_0x4e8acb(0x1c0)},_0x2e1e39='browserstack internal helper hook';this[_0x4e8acb(0x25e)](0xfde8),PerformanceTester[_0x4e8acb(0x1c4)](PerformanceSdkEvents[_0x4e8acb(0x20f)],()=>{const _0x53bcc6={'ZTUqB':function(_0x2d70e0){const _0x162445=a35_0x2bb4;return _0x23c58a[_0x162445(0x259)](_0x2d70e0);}};new Promise(async _0x230874=>{const _0xfdb8f4=a35_0x2bb4;await global[_0xfdb8f4(0x22d)](),_0x23c58a[_0xfdb8f4(0x259)](_0x230874);})['then']()['finally'](()=>{const _0x3f42d3=a35_0x2bb4;_0x53bcc6[_0x3f42d3(0x224)](_0x5cbe23);});},{'platform':_0x23c58a[_0x4e8acb(0x234)](nestedKeyValue,global['__platformCaps'],[_0x23c58a[_0x4e8acb(0x222)]]),'hookType':_0x23c58a[_0x4e8acb(0x242)]})();}};function a35_0x341c(){const _0x5e7f6c=['mqcbV','VYmDr','cQzKV','tzvjj','../../helpers/percy/utils','../../helpers/accessibility-automation/scripts','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','orKXl','__drivers','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20',',\x22level\x22:\x20\x22','winstonLogger','FbNTd','BROWSERSTACK_TESTHUB_UUID','then','azNaT','OIRds','__error_messages__','SESSION_NAME','getCurrentUrl','JufLz','BROWSERSTACK_TESTHUB_JWT','EwzKm','length','RDuXj','MPOwf','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','debug','giTWW','INJCE','rYxwk','SDK_HOOK','Dgjfa','err','shouldScanTestForAccessibility','env','540408oLlFsA','end','Automate\x20test\x20case\x20execution\x20has\x20started.','412672RMmhGC','MtSBz','HCpOk','SESSION_STATUS','XpdFM','isArray','browserstackSessionName','Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20','1080318rhfXoD','state','StSNQ','orZCg','PERFORM_SCAN','ZTUqB','executeScript','FqhrC','twAdF','TmWzS','percyCaptureMode','BBQwC','KFXIE','weDKh','driverCleanup','qoJCv','\x20-\x20','app','Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20','GXwiN','MZFME','EuaEr','waibA','CaGGZ','xfPwW','performScan','../../helpers/testhub/constants','thTestRunUuid','../../helpers/logger','thBuildUuid','zfeYF','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','IIeqI','193937dJXRft','session_','oZPzS','../../helpers/performance/performance-tester','getGlobal','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','526629HvgMAj','WzUWR','hLFsD','info','testAnalyticsId','uymHQ','__platformCaps','DQEKp','ePHfj','shift','capabilities','protocol','emPyQ','4571378KtQmnT','../../helpers/helper','UyLdC','ZMKvE','push','titlePath','pCCTG','Failed\x20to\x20store\x20session\x20name:\x20','vngow','OyxjG','quitCount_','timeout','join','__skipSessionName','LKwov','zovrr','BkRmL','../../helpers/performance/constants','https:','util','setGlobal','afterAll','mBqKB','YzZJr','OPwEU','measureWrapper','isAccessibilityPlatform','bstackA11yShouldScan','Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20','fyCdi','SYNC','fCvDJ','start','beforeEach','\x20|\x20','../../helpers/testhub/utils','accessibilityScanStarted','bNpEn','testcase','.\x20Error\x20:','message','index','Fcyci','Hmwqj','afterEach','xtvFn','ObservabilitySync:','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','SBRZK','lDJQp','passed','Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20','nZklJ','UCAcF','saveTestResults','359100cXZXlW','__sessionFailed','currentTest','oPWFM','vUEyH','command','stringify','bEduy','http:','beforeAll','error'];a35_0x341c=function(){return _0x5e7f6c;};return a35_0x341c();}
|
|
1
|
+
const a35_0x183446=a35_0x1eeb;(function(_0x321c,_0x39c40c){const _0x43a107=a35_0x1eeb,_0x4d5c5d=_0x321c();while(!![]){try{const _0x3f01f2=-parseInt(_0x43a107(0xe8))/0x1+-parseInt(_0x43a107(0xe7))/0x2*(parseInt(_0x43a107(0xe4))/0x3)+-parseInt(_0x43a107(0xf2))/0x4*(-parseInt(_0x43a107(0x137))/0x5)+parseInt(_0x43a107(0x112))/0x6*(-parseInt(_0x43a107(0x158))/0x7)+-parseInt(_0x43a107(0xcc))/0x8+-parseInt(_0x43a107(0x160))/0x9+parseInt(_0x43a107(0x131))/0xa*(parseInt(_0x43a107(0xff))/0xb);if(_0x3f01f2===_0x39c40c)break;else _0x4d5c5d['push'](_0x4d5c5d['shift']());}catch(_0x55543b){_0x4d5c5d['push'](_0x4d5c5d['shift']());}}}(a35_0x4bba,0xa3486));function a35_0x4bba(){const _0x17fe86=['shouldScanTestForAccessibility','zVxvC',',\x22level\x22:\x20\x22','SYNC','afterTest','initQuit','ObservabilitySync:','KtAPY','quitCount_','SAVE_RESULTS','SESSION_STATUS','RdtfS','WXSJC','KNzGM','bOXiZ','NIjMF','Automate\x20test\x20case\x20execution\x20has\x20started.','VPjmD','accessibilityScanStarted','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','appium:app','message','length','executeScript','end','MucjK','../../helpers/performance/constants','session_','8160840NPfWzl','pCRHK','browserstackTestName','../../helpers/accessibility-automation/scripts','beforeEach','Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20','getGlobal','beforeAll','saveTestResults','LNYgO','OtmBn','protocol','qZUVT','command','app','OVFIa','env','BROWSERSTACK_TESTHUB_UUID','zcUdt','../../helpers/testhub/constants','YLjyi','uPJIs','WMRrL','timeout','3FCLsPF','passed','http:','1670744ouGVCv','398232VwEwaO','zdiZH','vzxEg','gnYFt','OjXzH','Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20','setGlobal','XKssz','FUzCj','Yxpnf','202252YBCVrb','xPLvt','getCurrentUrl','../../helpers/testhub/utils','Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20','format','debug','executeAsyncScript','SESSION_NAME','vfCiC','../../helpers/helper','QGSPE','thBuildUuid','128601bkYqUd','__platformCaps','LMIFm','PERFORM_SCAN','Failed:\x20','isArray','FKuQf','kOqlE','ANSsF','push','ypdGY','state','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','mochaHooks','xthgm','druID','.\x20Error\x20:','dPOFK','ewPRu','18STvYLc','sessionName','titlePath','\x20-\x20','util','EOflt','stringify','percyCaptureMode','VJwGx','olKER','winstonLogger','Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20','kongz','tpOrN','__error_messages__','mjOCL','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','thTestRunUuid','browserstackSessionName','join','driverCleanup','GtkiB','afterAll','jcLUx','Passed','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','__sessionFailed','index','ChaKe','__drivers','error','3760swrubJ','RvnDX','err','start','ENV_VAR','bstackA11yShouldScan','5mqjLNx','wQxFb','IGREd','gPpoT','testAnalyticsId','LaXUo','ujiaK','aKxlg','capabilities','now','isAccessibilityPlatform','currentTest','ysVeM','JqJFU','FJPZa','info','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','sessionNameSet__','XdPcp','BHMdq','cEQbu','qXGGI','./test-observability/mochaUtils','kzQRy','percy','SDK_HOOK','then','performScan','Ajcnz','EtnEx','Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','testcase','2740234txttxE','__skipSessionName','../../helpers/percy/utils','WpRMJ','RbEMn','measureWrapper','AuFiu','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','3145302SxuQyX','shift','sXNBF','wLqNq'];a35_0x4bba=function(){return _0x17fe86;};return a35_0x4bba();}function a35_0x1eeb(_0x3fad80,_0x1b7c06){const _0x4bbabb=a35_0x4bba();return a35_0x1eeb=function(_0x1eeb45,_0x1d5529){_0x1eeb45=_0x1eeb45-0xbf;let _0x31b656=_0x4bbabb[_0x1eeb45];return _0x31b656;},a35_0x1eeb(_0x3fad80,_0x1b7c06);}const util=require(a35_0x183446(0x116)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require('../../helpers/accessibility-automation/helper'),{percyAutoCapture}=require(a35_0x183446(0x15a)),{sendPlatformDetails}=require(a35_0x183446(0x14d)),{isBrowserstackInfra,markSessionStatus,nestedKeyValue}=require(a35_0x183446(0xfc)),PerformanceTester=require('../../helpers/performance/performance-tester'),{AUTOMATE_EVENTS:PerformanceAutEvents,O11y_EVENTS:PerformanceO11yEvents,A11Y_EVENTS:PerformanceA11yEvents,EVENTS:PerformanceSdkEvents}=require(a35_0x183446(0xca)),scripts=require(a35_0x183446(0xcf)),globals=require('../../helpers/globals'),logger=require('../../helpers/logger')[a35_0x183446(0x11c)],{shouldProcessEventForTesthub}=require(a35_0x183446(0xf5)),testHubConstants=require(a35_0x183446(0xdf));exports[a35_0x183446(0x10c)]={'beforeAll'(){const _0x3da372=a35_0x183446,_0x3fd375={'Tmtwi':function(_0x35149d,_0x26eea9,_0x1dd982,_0x211d7e){return _0x35149d(_0x26eea9,_0x1dd982,_0x211d7e);},'dPOFK':'failed','NIjMF':'\x20|\x20','Ajcnz':function(_0x5a5d56,_0x17d76d,_0x32834f){return _0x5a5d56(_0x17d76d,_0x32834f);},'RdtfS':_0x3da372(0xe5),'WmTrH':function(_0x3399a2){return _0x3399a2();},'ANSsF':function(_0x2e51a9,_0x3b1e48,_0xf7c661){return _0x2e51a9(_0x3b1e48,_0xf7c661);},'YLjyi':function(_0x3dd8db,_0x45afb8,_0x584a2d){return _0x3dd8db(_0x45afb8,_0x584a2d);},'ujiaK':_0x3da372(0x12d),'zMCOz':_0x3da372(0xd3)};PerformanceTester['startMonitoring']();const _0x2c31ad='browserstack internal helper hook';PerformanceTester[_0x3da372(0x15d)](PerformanceSdkEvents[_0x3da372(0x150)],()=>{const _0x56eede=_0x3da372;global[_0x56eede(0x120)]=[],global[_0x56eede(0x12c)]=![],global[_0x56eede(0x126)]=async()=>{const _0xbf5c89=_0x56eede;let _0xe58338=![];try{await global['__drivers'][0x0][_0xbf5c89(0xcb)],_0xe58338=!![],global['__sessionFailed']?await _0x3fd375['Tmtwi'](markSessionStatus,global[_0xbf5c89(0x12f)][0x0],_0x3fd375[_0xbf5c89(0x110)],global[_0xbf5c89(0x120)][_0xbf5c89(0x125)](_0x3fd375[_0xbf5c89(0xbf)])):await _0x3fd375[_0xbf5c89(0x153)](markSessionStatus,global[_0xbf5c89(0x12f)][0x0],_0x3fd375[_0xbf5c89(0x16f)]);}catch(_0x7ab384){logger[_0xbf5c89(0xf8)](_0xbf5c89(0x11d)+_0x7ab384);}global[_0xbf5c89(0x120)]=[],global[_0xbf5c89(0x12c)]=![];if(_0xe58338)try{try{_0x3fd375['WmTrH'](shouldProcessEventForTesthub)&&(global[_0xbf5c89(0x12f)][0x0]&&await _0x3fd375[_0xbf5c89(0x107)](sendPlatformDetails,global[_0xbf5c89(0x12f)][0x0],this[_0xbf5c89(0x142)]?this[_0xbf5c89(0x142)]['testAnalyticsId']:null));}catch(_0x12be85){logger[_0xbf5c89(0xf8)](_0xbf5c89(0xf6)+_0x12be85);}await global[_0xbf5c89(0x12f)][0x0][_0xbf5c89(0x169)]();}catch(_0x4b74ec){logger[_0xbf5c89(0xf8)](_0xbf5c89(0x156)+_0x4b74ec);}};},{'platform':_0x3fd375[_0x3da372(0xe0)](nestedKeyValue,global[_0x3da372(0x100)],[_0x3fd375[_0x3da372(0x13d)]]),'hookType':_0x3fd375['zMCOz']})();},'beforeEach'(_0x1f2795){const _0xba8b09=a35_0x183446,_0x471829={'FUzCj':function(_0x4c3174,_0x1157d0){return _0x4c3174>_0x1157d0;},'ynLuL':_0xba8b09(0x115),'FJPZa':function(_0x9735ab,_0x74c0e6,_0x5752d3){return _0x9735ab(_0x74c0e6,_0x5752d3);},'BHMdq':_0xba8b09(0x136),'wQxFb':function(_0x5a3c43){return _0x5a3c43();},'cEQbu':_0xba8b09(0x141),'JqJFU':function(_0x3be5ae,_0x58212a){return _0x3be5ae===_0x58212a;},'kOqlE':_0xba8b09(0xe6),'gnYFt':'https:','VUnmd':_0xba8b09(0xc3),'ChaKe':_0xba8b09(0xc0),'RbEMn':_0xba8b09(0xce),'LMIFm':function(_0x597325,_0x79b110,_0x441a76){return _0x597325(_0x79b110,_0x441a76);},'kongz':_0xba8b09(0x12d),'RKmsw':_0xba8b09(0xd0)};globals[_0xba8b09(0xee)](_0x471829[_0xba8b09(0x15c)],this[_0xba8b09(0x142)][_0xba8b09(0x114)]()[_0xba8b09(0x125)](_0x471829['ynLuL'])),PerformanceTester[_0xba8b09(0x15d)](PerformanceSdkEvents['SDK_HOOK'],()=>{const _0x40b33d=_0xba8b09,_0x458b93={'HXCwM':function(_0x5ebbcf,_0x19481e){const _0x2a3585=a35_0x1eeb;return _0x471829[_0x2a3585(0xf0)](_0x5ebbcf,_0x19481e);},'WXSJC':_0x471829['ynLuL'],'EtnEx':function(_0x2b99f4,_0x5e1966,_0x2717a3){const _0x12ad68=a35_0x1eeb;return _0x471829[_0x12ad68(0x145)](_0x2b99f4,_0x5e1966,_0x2717a3);},'hcxdO':_0x471829[_0x40b33d(0x14a)],'RvnDX':function(_0x343eb7){const _0x34628d=_0x40b33d;return _0x471829[_0x34628d(0x138)](_0x343eb7);},'KNzGM':function(_0x407afa,_0x22e964){const _0x789940=_0x40b33d;return _0x471829[_0x789940(0xf0)](_0x407afa,_0x22e964);},'IGREd':_0x471829[_0x40b33d(0x14b)],'WMRrL':function(_0x2707b5,_0x11d06c){const _0x549ff2=_0x40b33d;return _0x471829[_0x549ff2(0x144)](_0x2707b5,_0x11d06c);},'WpRMJ':_0x471829[_0x40b33d(0x106)],'vzxEg':_0x471829[_0x40b33d(0xeb)],'MucjK':_0x471829['VUnmd'],'QGSPE':_0x471829[_0x40b33d(0x12e)]},_0x1c80c6='browserstack internal helper hook';new Promise(async _0x113160=>{const _0x3cff5a=_0x40b33d;let _0x33b2f0=!![];try{_0x458b93['HXCwM'](global[_0x3cff5a(0x12f)][_0x3cff5a(0xc6)],0x1)&&(await global[_0x3cff5a(0x126)](),global[_0x3cff5a(0x12f)][_0x3cff5a(0x161)]()),_0x458b93['HXCwM'](global[_0x3cff5a(0x12f)][0x0][_0x3cff5a(0x16c)],0x0)&&(_0x33b2f0=![],await global[_0x3cff5a(0x126)]());}catch(_0x36750b){logger[_0x3cff5a(0xf8)](_0x3cff5a(0x156)+_0x36750b);}try{Array[_0x3cff5a(0x104)](global[_0x3cff5a(0x12f)])&&global[_0x3cff5a(0x12f)][0x0]&&(global['__drivers'][0x0][_0x3cff5a(0x124)]=this[_0x3cff5a(0x142)]['titlePath']()['join'](_0x458b93[_0x3cff5a(0x170)])),global['browserstackSessionName']=this[_0x3cff5a(0x142)][_0x3cff5a(0x114)]()['join'](_0x458b93[_0x3cff5a(0x170)]);}catch(_0x2227db){logger[_0x3cff5a(0xf8)]('Failed\x20to\x20store\x20session\x20name:\x20'+_0x2227db);}this[_0x3cff5a(0x142)][_0x3cff5a(0x164)]=_0x458b93[_0x3cff5a(0x154)](shouldScanTestForAccessibility,this[_0x3cff5a(0x142)][_0x3cff5a(0x114)](),!![]),globals[_0x3cff5a(0xee)](_0x458b93['hcxdO'],this[_0x3cff5a(0x142)][_0x3cff5a(0x164)]),this[_0x3cff5a(0x142)][_0x3cff5a(0xc2)]=!![];if(_0x458b93[_0x3cff5a(0x132)](isAccessibilityAutomationSession)&&_0x33b2f0&&Array[_0x3cff5a(0x104)](global['__drivers'])&&_0x458b93[_0x3cff5a(0x171)](global[_0x3cff5a(0x12f)][_0x3cff5a(0xc6)],0x0)&&globals[_0x3cff5a(0xd2)](_0x458b93[_0x3cff5a(0x139)]))try{const _0x5906e4=await global[_0x3cff5a(0x12f)][0x0][_0x3cff5a(0xcb)];if(_0x5906e4){let _0x590814=!![];const _0x2d916d=await global['__drivers'][0x0][_0x3cff5a(0xf4)]();let _0xd54cb7;try{_0xd54cb7=new URL(_0x2d916d);}catch(_0x507b59){_0x590814=![];}_0x590814=_0x458b93[_0x3cff5a(0xe2)](_0xd54cb7['protocol'],_0x458b93[_0x3cff5a(0x15b)])||_0x458b93['WMRrL'](_0xd54cb7[_0x3cff5a(0xd7)],_0x458b93[_0x3cff5a(0xea)]),_0x590814&&(this[_0x3cff5a(0x142)][_0x3cff5a(0x164)]&&logger['info'](_0x458b93[_0x3cff5a(0xc9)])),this['currentTest'][_0x3cff5a(0xc2)]=this[_0x3cff5a(0x142)][_0x3cff5a(0x164)],this[_0x3cff5a(0x142)][_0x3cff5a(0x164)]&&logger[_0x3cff5a(0x146)](_0x458b93[_0x3cff5a(0xfd)]);}}catch(_0x5b8a90){logger[_0x3cff5a(0x130)](_0x3cff5a(0x147)+util[_0x3cff5a(0xf7)](_0x5b8a90));}_0x458b93[_0x3cff5a(0x132)](_0x113160);})['then'](()=>{const _0x3be2d0=_0x40b33d;_0x458b93[_0x3be2d0(0x132)](_0x1f2795);});},{'platform':_0x471829[_0xba8b09(0x101)](nestedKeyValue,global[_0xba8b09(0x100)],[_0x471829[_0xba8b09(0x11e)]]),'hookType':_0x471829['RKmsw']})();},'afterEach'(_0x59ab61){const _0x2ed8ee=a35_0x183446,_0x36b9e7={'OjXzH':_0x2ed8ee(0x115),'zcUdt':function(_0x89911e,_0x8514bf){return _0x89911e!==_0x8514bf;},'VPjmD':'passed','pCRHK':function(_0x71f911,_0x2df104,_0x23499e){return _0x71f911(_0x2df104,_0x23499e);},'qZUVT':function(_0x1bbe87,_0x35acae){return _0x1bbe87+_0x35acae;},'GtkiB':_0x2ed8ee(0x103),'XKssz':_0x2ed8ee(0x130),'FKuQf':_0x2ed8ee(0x12a),'wLqNq':_0x2ed8ee(0x146),'sXNBF':function(_0x6261aa,_0x5d80c0){return _0x6261aa>_0x5d80c0;},'mjOCL':function(_0x28a643,_0x54194d){return _0x28a643===_0x54194d;},'zdiZH':_0x2ed8ee(0x157),'uPJIs':_0x2ed8ee(0xc4),'ewPRu':function(_0x1f290a,_0x128cbf,_0x286846,_0x2a87f5){return _0x1f290a(_0x128cbf,_0x286846,_0x2a87f5);},'xthgm':_0x2ed8ee(0x141),'OVFIa':'bstackA11yShouldScan','qXGGI':_0x2ed8ee(0x12b),'VJwGx':'Performing\x20scan\x20before\x20saving\x20results','OtmBn':_0x2ed8ee(0x168),'bOXiZ':_0x2ed8ee(0x122),'druID':function(_0x51ef69){return _0x51ef69();},'xPLvt':function(_0x596de8){return _0x596de8();},'EOflt':function(_0x5ec7d9,_0x4413ff,_0x5ebf33){return _0x5ec7d9(_0x4413ff,_0x5ebf33);},'jcLUx':'debug','LNYgO':function(_0x4641db){return _0x4641db();},'Yxpnf':function(_0x208c05){return _0x208c05();},'KtAPY':function(_0x473779,_0x3ccac1,_0x387f61){return _0x473779(_0x3ccac1,_0x387f61);},'SBKaL':'index','tNdAz':'afterEach'},_0x11ff2a='browserstack internal helper hook';this[_0x2ed8ee(0xe3)](0xfde8),global[_0x2ed8ee(0x113)]=this[_0x2ed8ee(0x142)][_0x2ed8ee(0x114)]()[_0x2ed8ee(0x125)](_0x36b9e7[_0x2ed8ee(0xec)]),PerformanceTester[_0x2ed8ee(0x15d)](PerformanceSdkEvents[_0x2ed8ee(0x150)],()=>{const _0x5b4e98=_0x2ed8ee,_0x2ec41e={'zVxvC':function(_0x1827d4){const _0x16dd73=a35_0x1eeb;return _0x36b9e7[_0x16dd73(0xf1)](_0x1827d4);}},_0x1638fd=async(_0xa2d71c,_0x35202c)=>{const _0x353a3f=a35_0x1eeb;await global[_0x353a3f(0x12f)][0x0][_0x353a3f(0xc7)]('browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:'+_0xa2d71c+_0x353a3f(0x166)+_0x35202c+'\x22}}');};new Promise(async _0x2d5f69=>{const _0x388999=a35_0x1eeb,_0x485f8d={'gPpoT':_0x36b9e7['OjXzH'],'AuFiu':function(_0x1307f3,_0x1c8749){const _0x245ae8=a35_0x1eeb;return _0x36b9e7[_0x245ae8(0xde)](_0x1307f3,_0x1c8749);},'ypdGY':_0x36b9e7[_0x388999(0xc1)],'MHnKX':function(_0x2cb073,_0x378671,_0x192d5c){const _0x1f1611=_0x388999;return _0x36b9e7[_0x1f1611(0xcd)](_0x2cb073,_0x378671,_0x192d5c);},'LaXUo':function(_0x385ba5,_0x4d0088){const _0x4db216=_0x388999;return _0x36b9e7[_0x4db216(0xd8)](_0x385ba5,_0x4d0088);},'olKER':_0x36b9e7[_0x388999(0x127)],'tpOrN':_0x36b9e7[_0x388999(0xef)],'XdPcp':_0x36b9e7[_0x388999(0x105)],'aKxlg':_0x36b9e7[_0x388999(0x163)]};try{_0x36b9e7['sXNBF'](global[_0x388999(0x12f)]['length'],0x1)&&(await global[_0x388999(0x126)](),global[_0x388999(0x12f)][_0x388999(0x161)](),global['__error_messages__']=[],global[_0x388999(0x12c)]=![]);try{if(global[_0x388999(0x14f)]&&_0x36b9e7[_0x388999(0x121)](global[_0x388999(0x119)],_0x36b9e7['zdiZH'])&&global[_0x388999(0x12f)][0x0]){const _0x3b3944=_0x36b9e7['sXNBF'](global[_0x388999(0x13f)][_0x388999(0xc6)],0x0)?!!global['capabilities'][0x0][_0x388999(0xda)]||!!global[_0x388999(0x13f)][0x0][_0x36b9e7[_0x388999(0xe1)]]:![],_0x51a89e={};_0x51a89e[_0x388999(0xda)]=_0x3b3944,await _0x36b9e7[_0x388999(0x111)](percyAutoCapture,global['__drivers'][0x0],_0x36b9e7[_0x388999(0xe9)],_0x51a89e);}}catch(_0x3c7a46){logger[_0x388999(0xf8)](_0x388999(0xed)+_0x3c7a46);}!global[_0x388999(0x159)]&&(await PerformanceTester['measureWrapper'](PerformanceAutEvents[_0x388999(0xfa)],async()=>{const _0x21dfcd=_0x388999;await global[_0x21dfcd(0x12f)][0x0][_0x21dfcd(0xc7)](_0x21dfcd(0x15f)+JSON[_0x21dfcd(0x118)](this['currentTest']['titlePath']()[_0x21dfcd(0x125)](_0x485f8d[_0x21dfcd(0x13a)]))+'}}');})(),global['__drivers'][0x0][_0x388999(0x148)]=!![]),await PerformanceTester[_0x388999(0x15d)](PerformanceAutEvents[_0x388999(0x16e)],async()=>{const _0x44d009=_0x388999,_0x51eac3=_0x485f8d[_0x44d009(0x15e)](this[_0x44d009(0x142)][_0x44d009(0x10a)],_0x485f8d[_0x44d009(0x109)]);_0x51eac3?(global[_0x44d009(0x12c)]=!![],global[_0x44d009(0x120)][_0x44d009(0x108)](this[_0x44d009(0x142)][_0x44d009(0x133)][_0x44d009(0xc5)]),await _0x485f8d['MHnKX'](_0x1638fd,JSON[_0x44d009(0x118)](_0x485f8d[_0x44d009(0x13c)](_0x485f8d[_0x44d009(0x11b)],this[_0x44d009(0x142)][_0x44d009(0x133)][_0x44d009(0xc5)])),_0x485f8d[_0x44d009(0x11f)])):await _0x485f8d['MHnKX'](_0x1638fd,JSON[_0x44d009(0x118)](_0x485f8d[_0x44d009(0x149)]),_0x485f8d[_0x44d009(0x13e)]);})();}catch(_0x1ea0d2){logger[_0x388999(0xf8)](_0x388999(0x155)+_0x1ea0d2);}try{if(this['currentTest'][_0x388999(0xc2)]&&globals[_0x388999(0xd2)](_0x36b9e7[_0x388999(0x10d)])&&globals[_0x388999(0xd2)](_0x36b9e7[_0x388999(0xdb)])){logger[_0x388999(0x146)](_0x36b9e7[_0x388999(0x14c)]);const _0x108cb9={};_0x108cb9[_0x388999(0x123)]=this['currentTest'][_0x388999(0x13b)],_0x108cb9[_0x388999(0xfe)]=process[_0x388999(0xdc)][testHubConstants['ENV_VAR'][_0x388999(0xdd)]],_0x108cb9['thJwtToken']=process[_0x388999(0xdc)][testHubConstants[_0x388999(0x135)]['BROWSERSTACK_TESTHUB_JWT']];const _0x5d16d3=_0x108cb9;logger[_0x388999(0xf8)](_0x388999(0x10b)+JSON['stringify'](_0x5d16d3)),logger[_0x388999(0xf8)](_0x36b9e7[_0x388999(0x11a)]);const _0x1c3410={};_0x1c3410[_0x388999(0xd9)]=_0x36b9e7[_0x388999(0xd6)],await PerformanceTester[_0x388999(0x15d)](PerformanceA11yEvents[_0x388999(0x102)],async()=>{const _0x4156dd=_0x388999;logger[_0x4156dd(0xf8)](util[_0x4156dd(0xf7)](await global[_0x4156dd(0x12f)][0x0][_0x4156dd(0xf9)](scripts[_0x4156dd(0x152)],{'method':global[_0x4156dd(0x124)]})));},_0x1c3410)(),await PerformanceTester[_0x388999(0x15d)](PerformanceA11yEvents[_0x388999(0x16d)],async()=>{const _0x48cb18=_0x388999;await global[_0x48cb18(0x12f)][0x0][_0x48cb18(0xf9)](scripts[_0x48cb18(0xd4)],_0x5d16d3);})(),logger['info'](_0x36b9e7[_0x388999(0x172)]);}}catch(_0x5295be){logger[_0x388999(0x130)]('Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20'+this[_0x388999(0x142)]['titlePath']()+_0x388999(0x10f),_0x5295be);}try{try{if(_0x36b9e7[_0x388999(0x10e)](shouldProcessEventForTesthub)){global[_0x388999(0x12f)][0x0]&&await _0x36b9e7[_0x388999(0xcd)](sendPlatformDetails,global[_0x388999(0x12f)][0x0],this[_0x388999(0x142)]?this[_0x388999(0x142)][_0x388999(0x13b)]:null);if(_0x36b9e7[_0x388999(0xf3)](isBrowserstackInfra)){PerformanceTester[_0x388999(0x134)](PerformanceO11yEvents[_0x388999(0x167)]);const _0x2af8f3=_0x388999(0x16a)+Date[_0x388999(0x140)]();await _0x36b9e7[_0x388999(0x117)](_0x1638fd,JSON[_0x388999(0x118)](_0x2af8f3),_0x36b9e7[_0x388999(0x129)]),PerformanceTester[_0x388999(0xc8)](PerformanceO11yEvents[_0x388999(0x167)]);}}}catch(_0x49322e){logger[_0x388999(0xf8)](_0x388999(0xd1)+_0x49322e),PerformanceTester[_0x388999(0xc8)](PerformanceO11yEvents[_0x388999(0x167)],![],_0x49322e);}_0x36b9e7[_0x388999(0x162)](global[_0x388999(0x12f)][0x0][_0x388999(0x16c)],0x0)&&await global['driverCleanup']();}catch(_0x46e565){logger[_0x388999(0xf8)]('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0x46e565);}_0x36b9e7[_0x388999(0xd5)](_0x2d5f69);})[_0x5b4e98(0x151)](()=>{const _0x32a547=_0x5b4e98;_0x2ec41e[_0x32a547(0x165)](_0x59ab61);});},{'platform':_0x36b9e7[_0x2ed8ee(0x16b)](nestedKeyValue,global['__platformCaps'],[_0x36b9e7['SBKaL']]),'hookType':_0x36b9e7['tNdAz']})();},'afterAll'(_0x533f3a){const _0x24e613=a35_0x183446,_0x5d84b9={'kzQRy':function(_0x5f4d46){return _0x5f4d46();},'ysVeM':function(_0x24d1ed,_0x273693,_0x55d821){return _0x24d1ed(_0x273693,_0x55d821);},'zQkVK':_0x24e613(0x12d),'vfCiC':_0x24e613(0x128)},_0x5e8f13='browserstack internal helper hook';this[_0x24e613(0xe3)](0xfde8),PerformanceTester[_0x24e613(0x15d)](PerformanceSdkEvents['SDK_HOOK'],()=>{const _0x3154dd=_0x24e613;new Promise(async _0x5ef462=>{const _0x1395a5=a35_0x1eeb;await global[_0x1395a5(0x126)](),_0x5d84b9['kzQRy'](_0x5ef462);})[_0x3154dd(0x151)]()['finally'](()=>{const _0x33984f=_0x3154dd;_0x5d84b9[_0x33984f(0x14e)](_0x533f3a);});},{'platform':_0x5d84b9[_0x24e613(0x143)](nestedKeyValue,global[_0x24e613(0x100)],[_0x5d84b9['zQkVK']]),'hookType':_0x5d84b9[_0x24e613(0xfb)]})();}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';function
|
|
2
|
+
'use strict';function a36_0xa6e3(_0x277d10,_0x576d19){const _0x87b8fe=a36_0x87b8();return a36_0xa6e3=function(_0xa6e38a,_0x210574){_0xa6e38a=_0xa6e38a-0x1a8;let _0x51aaaa=_0x87b8fe[_0xa6e38a];return _0x51aaaa;},a36_0xa6e3(_0x277d10,_0x576d19);}const a36_0x33b4cf=a36_0xa6e3;(function(_0x45a643,_0x31b790){const _0x5b8cc7=a36_0xa6e3,_0x1a1a6d=_0x45a643();while(!![]){try{const _0x14356a=-parseInt(_0x5b8cc7(0x1b5))/0x1*(-parseInt(_0x5b8cc7(0x1f3))/0x2)+-parseInt(_0x5b8cc7(0x1e4))/0x3+parseInt(_0x5b8cc7(0x1ce))/0x4+parseInt(_0x5b8cc7(0x1ec))/0x5*(-parseInt(_0x5b8cc7(0x1da))/0x6)+-parseInt(_0x5b8cc7(0x1f5))/0x7*(-parseInt(_0x5b8cc7(0x1c2))/0x8)+parseInt(_0x5b8cc7(0x1bd))/0x9*(parseInt(_0x5b8cc7(0x1ee))/0xa)+-parseInt(_0x5b8cc7(0x1d8))/0xb;if(_0x14356a===_0x31b790)break;else _0x1a1a6d['push'](_0x1a1a6d['shift']());}catch(_0x581bcc){_0x1a1a6d['push'](_0x1a1a6d['shift']());}}}(a36_0x87b8,0x5a0de));function a36_0x87b8(){const _0x46be8a=['ipmDv','SEsHG','nightwatch.conf.js','nightwatch.json','hub.browserstack.com','platforms','isUndefined','desiredCapabilities','host','winstonLogger','Swwpx','slice','329591bYIWMS','--env','test','exports','test_settings','config','push','Deleting\x20','72HxFILx','mergeDeep','IYwkV','nightwatch','HtVyP','9944BWkIbT','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','inherit','nightwatch.cmd','XHNfB','--config','../../helpers/BrowserStackSetup','existsSync','path','stringify','forEach','join','744784UvNTho','selenium','env','QctND','now','irZSH','debug','map','UDXjC','port','2729925sUSFra','lZVSU','333012wXYFHu','cwd','platform','HbhUg','info','filter','trim','peMmx','start_process','Mxvvk','469131mycsbB','getPlatformName','splice','unlinkSync','dpWjy','nightwatch-browserstack.json','length','close','40wzOZbq','IrNwB','142130nMiNWW','split','FtufO','child\x20process\x20exited\x20with\x20code\x20','findIndex','2ugtiYX','VwlnH','3311QdEnmq','../utils/constants'];a36_0x87b8=function(){return _0x46be8a;};return a36_0x87b8();}const fs=require('fs'),path=require(a36_0x33b4cf(0x1ca)),{spawn}=require('child_process'),logger=require('../../helpers/logger')[a36_0x33b4cf(0x1b2)],{default:BrowserStackSetup}=require(a36_0x33b4cf(0x1c8)),helper=require('../../helpers/helper'),constants=require(a36_0x33b4cf(0x1a8)),getUserNightwatchConfigs=(_0x97ac7f,_0x44b461)=>{const _0x4a7717=a36_0x33b4cf,_0x3245ea={'peMmx':_0x4a7717(0x1ab),'IrNwB':_0x4a7717(0x1ac),'SEsHG':function(_0x5e26fa,_0x8672e3){return _0x5e26fa(_0x8672e3);},'VwlnH':'Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file'};let _0x5b5ed8=null,_0x36b272={};const _0xe4fcd5=_0x44b461[_0x4a7717(0x1f2)](_0x284bea=>_0x284bea==='--config');if(!helper[_0x4a7717(0x1af)](_0x97ac7f[_0x4a7717(0x1ba)])&&fs[_0x4a7717(0x1c9)](path['join'](process[_0x4a7717(0x1db)](),_0x97ac7f['config'])))_0x5b5ed8=path[_0x4a7717(0x1cd)](process['cwd'](),_0x97ac7f[_0x4a7717(0x1ba)]),_0x44b461[_0x4a7717(0x1e6)](_0xe4fcd5,0x2);else{if(fs[_0x4a7717(0x1c9)](path['join'](process[_0x4a7717(0x1db)](),_0x3245ea[_0x4a7717(0x1e1)])))_0x5b5ed8=path['join'](process[_0x4a7717(0x1db)](),_0x3245ea[_0x4a7717(0x1e1)]);else fs[_0x4a7717(0x1c9)](path['join'](process[_0x4a7717(0x1db)](),_0x3245ea['IrNwB']))&&(_0x5b5ed8=path[_0x4a7717(0x1cd)](process[_0x4a7717(0x1db)](),_0x3245ea[_0x4a7717(0x1ed)]));}return _0x5b5ed8?(logger[_0x4a7717(0x1de)]('Getting\x20your\x20nightwatch\x20configs\x20from\x20'+_0x5b5ed8),_0x36b272=_0x3245ea[_0x4a7717(0x1aa)](require,_0x5b5ed8)):logger[_0x4a7717(0x1de)](_0x3245ea[_0x4a7717(0x1f4)]),_0x36b272;},removeExistingEnvs=_0x43097f=>{const _0x521583=a36_0x33b4cf,_0x18b20d={};_0x18b20d[_0x521583(0x1d6)]=function(_0x562afd,_0x41bd57){return _0x562afd>_0x41bd57;};const _0x435465=_0x18b20d;let _0x46fa97=_0x43097f[_0x521583(0x1f2)](_0x1c6fae=>_0x1c6fae===_0x521583(0x1b6));_0x435465[_0x521583(0x1d6)](_0x46fa97,-0x1)&&_0x43097f[_0x521583(0x1e6)](_0x46fa97,0x2),_0x46fa97=_0x43097f[_0x521583(0x1f2)](_0x349996=>_0x349996==='-e'),_0x435465[_0x521583(0x1d6)](_0x46fa97,-0x1)&&_0x43097f['splice'](_0x46fa97,0x2);};function run(_0x39109f,_0x5e5fb3,_0x20eeb7){const _0x54157e=a36_0x33b4cf,_0x5a9d50={'IYwkV':_0x54157e(0x1c0),'FtufO':function(_0x3d28f5,_0x279039){return _0x3d28f5+_0x279039;},'QctND':_0x54157e(0x1b9),'YURzc':function(_0xc78e11,_0x35d03b,_0x5cf9d3){return _0xc78e11(_0x35d03b,_0x5cf9d3);},'XHNfB':_0x54157e(0x1ad),'ipmDv':_0x54157e(0x1c3),'lZVSU':function(_0x14326f,_0x251f22){return _0x14326f===_0x251f22;},'Swwpx':_0x54157e(0x1e9),'RUmNZ':function(_0x280a2f,_0x2163a7){return _0x280a2f(_0x2163a7);},'irZSH':function(_0x39f827,_0x3e7437,_0x4cbf31,_0x13fbcd){return _0x39f827(_0x3e7437,_0x4cbf31,_0x13fbcd);},'VetEb':_0x54157e(0x1c5),'Mxvvk':_0x54157e(0x1c7),'dpWjy':_0x54157e(0x1b6),'HbhUg':_0x54157e(0x1c4),'HtVyP':_0x54157e(0x1eb)};if(!_0x20eeb7[_0x54157e(0x1ba)])return;const _0x55cff4=_0x5a9d50['YURzc'](getUserNightwatchConfigs,_0x39109f,_0x5e5fb3),_0x506913={};_0x506913[_0x54157e(0x1e2)]=![];const _0x2acbe8={};_0x2acbe8[_0x54157e(0x1b1)]=_0x5a9d50[_0x54157e(0x1c6)],_0x2acbe8[_0x54157e(0x1d7)]=0x1bb;const _0x54c36d={};_0x54c36d['webdriver']=_0x506913,_0x54c36d[_0x54157e(0x1cf)]=_0x2acbe8;const _0x43a91f=_0x54c36d;logger['info'](_0x5a9d50[_0x54157e(0x1a9)]);const _0x5a74ad={..._0x55cff4},_0x416555=_0x5a74ad,_0x5779c3=helper['useW3C'](_0x20eeb7[_0x54157e(0x1ba)]),_0x2cec64=[];_0x20eeb7['config'][_0x54157e(0x1ae)][_0x54157e(0x1cc)]((_0x3b3fe4,_0x5d57c7)=>{const _0x53d7bf=_0x54157e;_0x5779c3?_0x2cec64['push'](helper['modifyBrowserStackW3CCaps'](_0x20eeb7['config'],_0x5a9d50['IYwkV'],_0x5d57c7)):_0x2cec64[_0x53d7bf(0x1bb)](helper['modifyBrowserStackCaps'](_0x20eeb7[_0x53d7bf(0x1ba)],_0x5a9d50[_0x53d7bf(0x1bf)],_0x5d57c7));});const _0x1dc190={},_0x3e50e2=[];_0x39109f[_0x54157e(0x1d0)]=_0x39109f[_0x54157e(0x1d0)]||_0x39109f['e'];const _0x4ac5de=_0x39109f[_0x54157e(0x1d0)]?_0x39109f[_0x54157e(0x1d0)][_0x54157e(0x1e0)]()[_0x54157e(0x1ef)](',')[_0x54157e(0x1d5)](_0x4acbad=>_0x4acbad[_0x54157e(0x1e0)]())[_0x54157e(0x1df)](_0x2cb135=>_0x2cb135!==''):[''];_0x5a9d50[_0x54157e(0x1d9)](_0x4ac5de[_0x54157e(0x1ea)],0x0)&&_0x4ac5de['push']('');_0x4ac5de[_0x54157e(0x1cc)](_0x48aeba=>{const _0x27965b=_0x54157e;_0x2cec64[_0x27965b(0x1cc)](_0x853ba0=>{const _0x78eb57=_0x27965b;let _0x4f71a7=_0x5a9d50[_0x78eb57(0x1f0)](helper[_0x78eb57(0x1e5)](_0x853ba0,'_'),'_'+Date[_0x78eb57(0x1d2)]());_0x48aeba&&(_0x4f71a7+='_'+_0x48aeba);if(_0x48aeba&&(!_0x55cff4[_0x5a9d50['QctND']]||!_0x55cff4[_0x5a9d50[_0x78eb57(0x1d1)]][_0x48aeba]))return;const _0x2e1fde={..._0x43a91f};_0x2e1fde[_0x78eb57(0x1b0)]=_0x853ba0;const _0x2f436b=_0x2e1fde;_0x1dc190[_0x4f71a7]=_0x48aeba?helper[_0x78eb57(0x1be)](_0x55cff4[_0x5a9d50[_0x78eb57(0x1d1)]][_0x48aeba],_0x2f436b):_0x2f436b,_0x3e50e2[_0x78eb57(0x1bb)](_0x4f71a7);});});!_0x416555['test_settings']&&(_0x416555[_0x54157e(0x1b9)]={});_0x416555[_0x54157e(0x1b9)]={..._0x416555[_0x54157e(0x1b9)],..._0x1dc190};const _0x27fde5=path[_0x54157e(0x1cd)](__dirname,_0x5a9d50[_0x54157e(0x1b3)]);fs['writeFileSync'](_0x27fde5,JSON[_0x54157e(0x1cb)](_0x416555)),_0x5a9d50['RUmNZ'](removeExistingEnvs,_0x5e5fb3);const _0x5760c2=_0x5a9d50[_0x54157e(0x1d3)](spawn,/^win/[_0x54157e(0x1b7)](process[_0x54157e(0x1dc)])?_0x5a9d50['VetEb']:_0x5a9d50[_0x54157e(0x1bf)],[_0x5a9d50[_0x54157e(0x1e3)],_0x27fde5,..._0x5e5fb3[_0x54157e(0x1b4)](0x1),_0x5a9d50[_0x54157e(0x1e8)],_0x3e50e2[_0x54157e(0x1cd)](',')],{'stdio':_0x5a9d50[_0x54157e(0x1dd)]});_0x5760c2['on'](_0x5a9d50[_0x54157e(0x1c1)],async _0x4e6a93=>{const _0x295181=_0x54157e;logger[_0x295181(0x1d4)](_0x295181(0x1f1)+_0x4e6a93),logger[_0x295181(0x1de)](_0x295181(0x1bc)+_0x27fde5),fs[_0x295181(0x1e7)](_0x27fde5);});}module[a36_0x33b4cf(0x1b8)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a37_0x44cfea=a37_0x2647;(function(_0x5db86c,_0x1e3114){const _0x51d70a=a37_0x2647,_0x3d5266=_0x5db86c();while(!![]){try{const _0x3cea0f=-parseInt(_0x51d70a(0x162))/0x1*(-parseInt(_0x51d70a(0x15b))/0x2)+parseInt(_0x51d70a(0x16f))/0x3+-parseInt(_0x51d70a(0x12b))/0x4+-parseInt(_0x51d70a(0x148))/0x5*(parseInt(_0x51d70a(0x135))/0x6)+-parseInt(_0x51d70a(0x143))/0x7+parseInt(_0x51d70a(0x138))/0x8+parseInt(_0x51d70a(0x13b))/0x9;if(_0x3cea0f===_0x1e3114)break;else _0x3d5266['push'](_0x3d5266['shift']());}catch(_0x5c0b98){_0x3d5266['push'](_0x3d5266['shift']());}}}(a37_0x4f62,0xb4aac));function a37_0x2647(_0x201eef,_0x6bb88d){const _0x4f626a=a37_0x4f62();return a37_0x2647=function(_0x2647df,_0x2762eb){_0x2647df=_0x2647df-0xff;let _0x158fbb=_0x4f626a[_0x2647df];return _0x158fbb;},a37_0x2647(_0x201eef,_0x6bb88d);}function a37_0x4f62(){const _0x5cdd09=['No\x20accessibility\x20results\x20were\x20found.','latest','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x20100.','accessibilityOptions.includeIssueType.needsReview','HTMLU','Playwright','csRcf','use','wsEndpoint','fOGvq','PiDtL','processAccessibilityCaps','accessibilityOptions','dodlr','winstonLogger','includeIssueType','executeScript','PTffw','accessibilityPlatform','command','(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20','executeAsyncScript','igAEF','OBpVv','deviceName','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','vxWWg','nyFSR','YjayJ','WebDriver','(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20\x20\x20','getAccessibilityResultsSummary','kjErD','evaluate','replace','../../helpers/accessibility-automation/scripts','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','owXDu','vHPyD','browserstack.accessibility','xKXLy','XTaTy','zuqVr','playwright-chromium','3307908XFqjcE','performScan','bestPractice','needsReview','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','aybjm','browserStackEvaluate','accessibilityOptions.wcagVersion','browserName','../../helpers/performance/performance-tester','119058tyRnmr','fZwWI','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','3475144xfeZfz','project','WvqAJ','12422835mspynH','util','chrome','currentTest','../../helpers/accessibility-automation/helper','warn','browserStackExecuteDriver','cnKaZ','622748WmKPge','env','\x20page:\x20','ESaxC','testInfo','160DGkPUN','fkXqH','QxROP','workerInfo','debug','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','CRFiO','bstackSdkArgs','FZeol','format','mGtMI','opNUY','kbOVF','browser_version','browser','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','wcagVersion','TlrvO','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','102QoydUm','accessibilityOptions.authToken','accessibilityOptions.scannerVersion','CvtSN','stringify','setAccessibilityCapabilities','accessibilityOptions.scannerProcessingTimeout','4441UUHmjg','SBQHI','scannerVersion','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','WdJyx','ncpho','scannerProcessingTimeout','MZrBf','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','LxIGW','TBCER','connectOptions','BS_A11Y_JWT','749190ojpErf','constructor','name','RuNAS'];a37_0x4f62=function(){return _0x5cdd09;};return a37_0x4f62();}const util=require(a37_0x44cfea(0x13c)),logger=require('../../helpers/logger')[a37_0x44cfea(0x10d)],{isAccessibilityAutomationSession}=require(a37_0x44cfea(0x13f)),{isUndefined,isBrowserstackInfra}=require('../../helpers/helper'),scripts=require(a37_0x44cfea(0x122)),PerformanceTester=require(a37_0x44cfea(0x134)),{A11Y_EVENTS:PerformanceA11yEvents}=require('../../helpers/performance/constants');exports[a37_0x44cfea(0x131)]=async(_0x4ba7d1,_0x5ab66b,_0x13778c={})=>{const _0x18fa33=a37_0x44cfea,_0x31fa91={};_0x31fa91['OBpVv']=_0x18fa33(0x14f);const _0x459fda=_0x31fa91;return await _0x4ba7d1[_0x18fa33(0x120)](_0x18fa33(0x113)+_0x5ab66b[_0x18fa33(0x121)](/arguments/g,_0x459fda[_0x18fa33(0x116)])+_0x18fa33(0x118)+JSON[_0x18fa33(0x15f)](_0x13778c)+')');},exports[a37_0x44cfea(0x141)]=async(_0x1a30bb,_0x3296b5,_0x336d1d={})=>{const _0x334481=a37_0x44cfea,_0x291747={};_0x291747[_0x334481(0x103)]=function(_0x3a62ff,_0x32799a){return _0x3a62ff===_0x32799a;},_0x291747[_0x334481(0x14e)]=_0x334481(0x11c),_0x291747['CvtSN']=function(_0x218566,_0x1c4214){return _0x218566===_0x1c4214;},_0x291747[_0x334481(0x163)]=_0x334481(0x104),_0x291747['QgGSl']=_0x334481(0x14f);const _0x28213c=_0x291747;if(_0x28213c[_0x334481(0x103)](_0x1a30bb[_0x334481(0x170)][_0x334481(0x171)],_0x28213c['CRFiO']))return await _0x1a30bb[_0x334481(0x114)](_0x3296b5,_0x336d1d);else{if(_0x28213c[_0x334481(0x15e)](_0x1a30bb[_0x334481(0x170)][_0x334481(0x171)],_0x28213c[_0x334481(0x163)]))return await _0x1a30bb[_0x334481(0x10f)](_0x334481(0x11d)+_0x3296b5[_0x334481(0x121)](/arguments/g,_0x28213c['QgGSl'])+_0x334481(0x14d)+JSON['stringify'](_0x336d1d)+')');}},exports[a37_0x44cfea(0x160)]=async _0x47df3f=>{const _0x5aaac2=a37_0x44cfea,_0xa107c8={};_0xa107c8[_0x5aaac2(0x13a)]=_0x5aaac2(0x132),_0xa107c8[_0x5aaac2(0x149)]=_0x5aaac2(0x161),_0xa107c8[_0x5aaac2(0x110)]='accessibilityOptions.includeIssueType.bestPractice',_0xa107c8[_0x5aaac2(0x159)]=_0x5aaac2(0x102),_0xa107c8[_0x5aaac2(0x172)]=_0x5aaac2(0x15c),_0xa107c8['TvIHM']=_0x5aaac2(0x15d);const _0x576bf8=_0xa107c8;_0x47df3f[_0x5aaac2(0x10b)]&&(_0x47df3f[_0x5aaac2(0x10b)][_0x5aaac2(0x158)]&&(_0x47df3f[_0x576bf8[_0x5aaac2(0x13a)]]=_0x47df3f[_0x5aaac2(0x10b)][_0x5aaac2(0x158)]),_0x47df3f[_0x5aaac2(0x10b)]['scannerProcessingTimeout']&&(_0x47df3f[_0x576bf8['fkXqH']]=_0x47df3f[_0x5aaac2(0x10b)][_0x5aaac2(0x168)]),_0x47df3f[_0x5aaac2(0x10b)][_0x5aaac2(0x10e)]&&(_0x47df3f[_0x576bf8[_0x5aaac2(0x110)]]=_0x47df3f['accessibilityOptions']['includeIssueType'][_0x5aaac2(0x12d)],_0x47df3f[_0x576bf8[_0x5aaac2(0x159)]]=_0x47df3f[_0x5aaac2(0x10b)][_0x5aaac2(0x10e)][_0x5aaac2(0x12e)]));const _0xcac043=JSON['parse'](process[_0x5aaac2(0x144)][_0x5aaac2(0x157)])[_0x5aaac2(0x164)];_0x47df3f[_0x576bf8['RuNAS']]=process[_0x5aaac2(0x144)][_0x5aaac2(0x16e)],_0x47df3f[_0x576bf8['TvIHM']]=_0xcac043,delete _0x47df3f[_0x5aaac2(0x10b)];},exports['getAccessibilityResults']=async _0x3fb4d7=>{const _0x1d52ff=a37_0x44cfea,_0x5f0ba3={};_0x5f0ba3[_0x1d52ff(0x146)]=_0x1d52ff(0xff),_0x5f0ba3['fZwWI']=_0x1d52ff(0x137);const _0x4fefb1=_0x5f0ba3;if(global[_0x1d52ff(0x111)])try{logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x3fb4d7,scripts.performScan)));},{command:'getAccessibilityResults'})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x3fb4d7,scripts.getResults);})();return res;}catch{return logger['error'](_0x4fefb1['ESaxC']),[];}else return logger['warn'](_0x4fefb1[_0x1d52ff(0x136)]),[];},exports[a37_0x44cfea(0x12c)]=async(_0x18e4ef,_0x3b523a='')=>{const _0x92f81c=a37_0x44cfea;logger[_0x92f81c(0x14c)]('Performing\x20scan\x20with\x20method:\x20'+_0x3b523a+_0x92f81c(0x145)+_0x18e4ef);if(global['accessibilityPlatform'])return await PerformanceTester['measureWrapper'](PerformanceA11yEvents['PERFORM_SCAN'],async()=>{const _0x42c3c6=_0x92f81c,_0x1801fd={};_0x1801fd[_0x42c3c6(0x112)]=_0x3b523a,await exports['browserStackEvaluate'](_0x18e4ef,scripts[_0x42c3c6(0x12c)],_0x1801fd);},{'command':_0x3b523a})();},exports[a37_0x44cfea(0x11e)]=async _0x28bff2=>{const _0x28e740=a37_0x44cfea,_0x33232c={};_0x33232c[_0x28e740(0x125)]='No\x20summaryResults\x20found.',_0x33232c[_0x28e740(0x109)]='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.';const _0x65ec65=_0x33232c;if(global[_0x28e740(0x111)])try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x28bff2,scripts.performScan)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x28bff2,scripts.getResultsSummary);})();return summaryResults;}catch{return logger['debug'](_0x65ec65[_0x28e740(0x125)]),{};}else return logger['warn'](_0x65ec65[_0x28e740(0x109)]),{};},exports['platformValidation']=async _0x26a28e=>{const _0x1f7d0d=a37_0x44cfea,_0x56cb65={'dodlr':function(_0x3c3006,_0xa9facf){return _0x3c3006!==_0xa9facf;},'YjayJ':_0x1f7d0d(0x12f),'cnKaZ':function(_0x3a6402,_0x30a1f4){return _0x3a6402===_0x30a1f4;},'aybjm':_0x1f7d0d(0x13d),'xKXLy':function(_0x469151,_0x1b46e9){return _0x469151===_0x1b46e9;},'mGtMI':_0x1f7d0d(0x12a),'vxWWg':_0x1f7d0d(0x15a),'kjErD':function(_0x32ce94,_0x332506){return _0x32ce94(_0x332506);},'LiaMM':function(_0x10fc43){return _0x10fc43();},'XTaTy':function(_0xdc6ea8,_0x167472){return _0xdc6ea8<_0x167472;},'QxROP':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x20100.','XBRvH':_0x1f7d0d(0x100),'igAEF':function(_0x5b66a0,_0x132f30){return _0x5b66a0>_0x132f30;},'nyFSR':_0x1f7d0d(0x123)};try{if(!_0x56cb65[_0x1f7d0d(0x10c)](_0x26a28e[_0x1f7d0d(0x117)],''))return logger[_0x1f7d0d(0x140)](_0x56cb65[_0x1f7d0d(0x11b)]),![];const _0x299b5d=_0x26a28e[_0x1f7d0d(0x156)];if(!(_0x56cb65['cnKaZ'](_0x299b5d,_0x56cb65[_0x1f7d0d(0x130)])||_0x56cb65[_0x1f7d0d(0x127)](_0x299b5d,_0x56cb65[_0x1f7d0d(0x152)])))return logger[_0x1f7d0d(0x140)](_0x56cb65[_0x1f7d0d(0x119)]),![];const _0x3bb80a=_0x56cb65[_0x1f7d0d(0x11f)](parseInt,_0x26a28e['browser_version']);!_0x56cb65['LiaMM'](isBrowserstackInfra)&&(!_0x56cb65[_0x1f7d0d(0x128)](_0x3bb80a,0x64)&&logger['warn'](_0x56cb65[_0x1f7d0d(0x14a)]));if(!(_0x56cb65[_0x1f7d0d(0x142)](_0x3bb80a,_0x56cb65['XBRvH'])||_0x56cb65[_0x1f7d0d(0x115)](_0x3bb80a,0x5e)))return logger[_0x1f7d0d(0x140)](_0x56cb65[_0x1f7d0d(0x11a)]),![];}catch(_0x31887f){logger['debug'](_0x1f7d0d(0x16a)+util['format'](_0x31887f));}return!![];},exports[a37_0x44cfea(0x10a)]=(_0x22a476,_0x5f0fca,_0x5398cc)=>{const _0x40cfa5=a37_0x44cfea,_0x2624f6={'fOGvq':function(_0x2bfb35){return _0x2bfb35();},'zuqVr':_0x40cfa5(0x126),'LxIGW':function(_0x393bb0,_0x37f33b){return _0x393bb0===_0x37f33b;},'WdJyx':_0x40cfa5(0x13d),'TBCER':'playwright-chromium','FZeol':function(_0x15f391,_0x51d0d9){return _0x15f391===_0x51d0d9;},'csRcf':_0x40cfa5(0x15a),'GiNxA':function(_0x3db023){return _0x3db023();},'MZrBf':function(_0x1c0a6e,_0x35fab5){return _0x1c0a6e>_0x35fab5;},'kbOVF':_0x40cfa5(0x101),'ncpho':_0x40cfa5(0x100),'CoBCz':function(_0x370bf1,_0xa49976){return _0x370bf1>_0xa49976;},'UFyvE':_0x40cfa5(0x123),'owXDu':function(_0x346ad2,_0x386ef0){return _0x346ad2(_0x386ef0);},'xwtFA':_0x40cfa5(0x12f),'opNUY':function(_0x5da206,_0x58e11f){return _0x5da206+_0x58e11f;}};try{if(_0x2624f6[_0x40cfa5(0x108)](isAccessibilityAutomationSession)){global['accessibilityPlatform']=!![];!_0x22a476[_0x2624f6[_0x40cfa5(0x129)]]&&(global[_0x40cfa5(0x111)]=![]);!(_0x2624f6[_0x40cfa5(0x16b)](_0x22a476['browserName'],_0x2624f6['WdJyx'])||_0x2624f6[_0x40cfa5(0x16b)](_0x22a476[_0x40cfa5(0x133)],_0x2624f6[_0x40cfa5(0x16c)])||_0x2624f6[_0x40cfa5(0x150)](_0x22a476[_0x40cfa5(0x156)],_0x2624f6[_0x40cfa5(0x166)])||_0x2624f6[_0x40cfa5(0x150)](_0x22a476[_0x40cfa5(0x156)],_0x2624f6[_0x40cfa5(0x16c)]))&&(logger[_0x40cfa5(0x140)](_0x2624f6[_0x40cfa5(0x105)]),global[_0x40cfa5(0x111)]=![]);!_0x2624f6['GiNxA'](isBrowserstackInfra)&&(!_0x2624f6[_0x40cfa5(0x169)](_0x22a476['browser_version'],0x64)&&logger['warn'](_0x2624f6[_0x40cfa5(0x154)]));!(_0x2624f6[_0x40cfa5(0x16b)](_0x22a476[_0x40cfa5(0x155)],_0x2624f6[_0x40cfa5(0x167)])||_0x2624f6['CoBCz'](_0x22a476['browser_version'],0x5e))&&(logger[_0x40cfa5(0x140)](_0x2624f6['UFyvE']),global[_0x40cfa5(0x111)]=![]);!_0x2624f6[_0x40cfa5(0x124)](isUndefined,_0x22a476[_0x40cfa5(0x117)])&&(logger[_0x40cfa5(0x140)](_0x2624f6['xwtFA']),global[_0x40cfa5(0x111)]=![]);if(!global[_0x40cfa5(0x111)]){_0x22a476[_0x2624f6['zuqVr']]=![];const _0x2a9271=_0x2624f6[_0x40cfa5(0x153)](_0x5f0fca,_0x2624f6['owXDu'](encodeURIComponent,JSON[_0x40cfa5(0x15f)](_0x22a476)));_0x5398cc&&(_0x5398cc[_0x40cfa5(0x13e)][_0x40cfa5(0x147)]['project']['use']['connectOptions'][_0x40cfa5(0x107)]=_0x2a9271,_0x5398cc[_0x40cfa5(0x14b)][_0x40cfa5(0x139)][_0x40cfa5(0x106)][_0x40cfa5(0x16d)]['wsEndpoint']=_0x2a9271);}}else global[_0x40cfa5(0x111)]=![];}catch(_0x4a22d2){logger['debug'](_0x40cfa5(0x165)+util[_0x40cfa5(0x151)](_0x4a22d2));}};
|
|
1
|
+
const a37_0x101dc6=a37_0x3230;(function(_0x5b3960,_0x5d2717){const _0x227887=a37_0x3230,_0x4fa6ff=_0x5b3960();while(!![]){try{const _0x30fb0c=-parseInt(_0x227887(0x1ac))/0x1*(parseInt(_0x227887(0x1a9))/0x2)+parseInt(_0x227887(0x144))/0x3+parseInt(_0x227887(0x1a8))/0x4*(-parseInt(_0x227887(0x187))/0x5)+parseInt(_0x227887(0x16f))/0x6*(-parseInt(_0x227887(0x164))/0x7)+-parseInt(_0x227887(0x1a3))/0x8*(-parseInt(_0x227887(0x149))/0x9)+parseInt(_0x227887(0x163))/0xa*(-parseInt(_0x227887(0x1a5))/0xb)+parseInt(_0x227887(0x1af))/0xc;if(_0x30fb0c===_0x5d2717)break;else _0x4fa6ff['push'](_0x4fa6ff['shift']());}catch(_0x44cc2a){_0x4fa6ff['push'](_0x4fa6ff['shift']());}}}(a37_0x4126,0xe0697));function a37_0x3230(_0x58f80d,_0x5c01b0){const _0x41265a=a37_0x4126();return a37_0x3230=function(_0x323035,_0x6aa647){_0x323035=_0x323035-0x13b;let _0x55683f=_0x41265a[_0x323035];return _0x55683f;},a37_0x3230(_0x58f80d,_0x5c01b0);}const util=require(a37_0x101dc6(0x17d)),logger=require(a37_0x101dc6(0x160))[a37_0x101dc6(0x15f)],{isAccessibilityAutomationSession}=require(a37_0x101dc6(0x158)),{isUndefined,isBrowserstackInfra}=require(a37_0x101dc6(0x17b)),scripts=require(a37_0x101dc6(0x184)),PerformanceTester=require('../../helpers/performance/performance-tester'),{A11Y_EVENTS:PerformanceA11yEvents}=require(a37_0x101dc6(0x166));function a37_0x4126(){const _0x32f61d=['../../helpers/performance/constants','UkCDE','browser','KkNQU','scannerProcessingTimeout','uNjPG','includes','QKexF','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','5344110LVYmBW','platformValidation','accessibilityOptions','NcyLP','bstackSdkArgs','executeScript','OcPWU','env','accessibilityOptions.wcagVersion','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','bestPractice','getAccessibilityResults','../../helpers/helper','currentTest','util','HTAdx','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','ZKgCR','playwright-chromium','KPUia','workerInfo','../../helpers/accessibility-automation/scripts','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','debug','5vzVMSW','latest','replace','executeAsyncScript','KsqHe','use','(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','measureWrapper','command','wsoJS','vFBHJ','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','kXskQ','jWBta','browser_version','wcagVersion','browserName','fNIvG','VaEyL','McbQC','KmQBs','(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20\x20\x20','MImAQ','Playwright','accessibilityOptions.includeIssueType.needsReview','WGQOz','pDZuR','1575752WpcIxi','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','11BXOdzG','stringify','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','3780692eewxUD','196978rFQbYo','ZBpho','nJELo','12UvGsej','wsEndpoint','No\x20accessibility\x20results\x20were\x20found.','65629560LumKIY','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x20100.','WebDriver','PERFORM_SCAN','fdylg','mzTGS','includeIssueType','No\x20summaryResults\x20found.','warn','browserStackExecuteDriver','MyAey','BS_A11Y_JWT','1193316mDZhLx','RtIQD','format','qGTXs','gkykr','9mfVEXz','error','TzyUd','\x20page:\x20','accessibilityOptions.includeIssueType.bestPractice','browserStackEvaluate','project','deviceName','getAccessibilityResultsSummary','HMncv','BmjjU','accessibilityPlatform','EkrGc','constructor','rkHeJ','../../helpers/accessibility-automation/helper','connectOptions','xZrdP','XPDuW','accessibilityOptions.scannerVersion','setAccessibilityCapabilities','KLmgG','winstonLogger','../../helpers/logger','needsReview','NPLcc','12362690aWxbME','14kzKMAZ','RAoSr'];a37_0x4126=function(){return _0x32f61d;};return a37_0x4126();}exports[a37_0x101dc6(0x14e)]=async(_0x39ed32,_0xb55258,_0x4dae1a={})=>{const _0x3a4da0=a37_0x101dc6,_0x16c12d={};_0x16c12d[_0x3a4da0(0x157)]=_0x3a4da0(0x173);const _0x65fff6=_0x16c12d;return await _0x39ed32['evaluate'](_0x3a4da0(0x18d)+_0xb55258['replace'](/arguments/g,_0x65fff6[_0x3a4da0(0x157)])+_0x3a4da0(0x1a4)+JSON[_0x3a4da0(0x1a6)](_0x4dae1a)+')');},exports[a37_0x101dc6(0x141)]=async(_0x5aa7d5,_0x41b5cb,_0x4d332f={})=>{const _0x2cf9d4=a37_0x101dc6,_0x33919e={};_0x33919e['HMncv']=function(_0x4050b9,_0x5c97ce){return _0x4050b9===_0x5c97ce;},_0x33919e[_0x2cf9d4(0x16b)]=_0x2cf9d4(0x1b1),_0x33919e[_0x2cf9d4(0x191)]=_0x2cf9d4(0x19f),_0x33919e[_0x2cf9d4(0x17e)]=_0x2cf9d4(0x173);const _0x4e25c0=_0x33919e;if(_0x4e25c0['HMncv'](_0x5aa7d5[_0x2cf9d4(0x156)]['name'],_0x4e25c0[_0x2cf9d4(0x16b)]))return await _0x5aa7d5[_0x2cf9d4(0x18a)](_0x41b5cb,_0x4d332f);else{if(_0x4e25c0[_0x2cf9d4(0x152)](_0x5aa7d5[_0x2cf9d4(0x156)]['name'],_0x4e25c0[_0x2cf9d4(0x191)]))return await _0x5aa7d5[_0x2cf9d4(0x174)](_0x2cf9d4(0x19d)+_0x41b5cb[_0x2cf9d4(0x189)](/arguments/g,_0x4e25c0[_0x2cf9d4(0x17e)])+_0x2cf9d4(0x193)+JSON[_0x2cf9d4(0x1a6)](_0x4d332f)+')');}},exports[a37_0x101dc6(0x15d)]=async _0x5a613d=>{const _0xcc6bcd=a37_0x101dc6,_0x251b9={};_0x251b9[_0xcc6bcd(0x19b)]=_0xcc6bcd(0x177),_0x251b9[_0xcc6bcd(0x165)]='accessibilityOptions.scannerProcessingTimeout',_0x251b9['jWBta']=_0xcc6bcd(0x14d),_0x251b9[_0xcc6bcd(0x147)]=_0xcc6bcd(0x1a0),_0x251b9[_0xcc6bcd(0x155)]='accessibilityOptions.authToken',_0x251b9['KJAgg']=_0xcc6bcd(0x15c);const _0x36a2b1=_0x251b9;_0x5a613d[_0xcc6bcd(0x171)]&&(_0x5a613d['accessibilityOptions'][_0xcc6bcd(0x197)]&&(_0x5a613d[_0x36a2b1[_0xcc6bcd(0x19b)]]=_0x5a613d[_0xcc6bcd(0x171)][_0xcc6bcd(0x197)]),_0x5a613d[_0xcc6bcd(0x171)][_0xcc6bcd(0x16a)]&&(_0x5a613d[_0x36a2b1['RAoSr']]=_0x5a613d[_0xcc6bcd(0x171)][_0xcc6bcd(0x16a)]),_0x5a613d[_0xcc6bcd(0x171)][_0xcc6bcd(0x13e)]&&(_0x5a613d[_0x36a2b1[_0xcc6bcd(0x195)]]=_0x5a613d[_0xcc6bcd(0x171)]['includeIssueType'][_0xcc6bcd(0x179)],_0x5a613d[_0x36a2b1[_0xcc6bcd(0x147)]]=_0x5a613d[_0xcc6bcd(0x171)][_0xcc6bcd(0x13e)][_0xcc6bcd(0x161)]));const _0x3f01b8=JSON['parse'](process[_0xcc6bcd(0x176)][_0xcc6bcd(0x18e)])['scannerVersion'];_0x5a613d[_0x36a2b1['EkrGc']]=process[_0xcc6bcd(0x176)][_0xcc6bcd(0x143)],_0x5a613d[_0x36a2b1['KJAgg']]=_0x3f01b8,delete _0x5a613d['accessibilityOptions'];},exports[a37_0x101dc6(0x17a)]=async _0x731de5=>{const _0x39fe8b=a37_0x101dc6,_0x24fe14={};_0x24fe14['ACUQe']=_0x39fe8b(0x1ae),_0x24fe14[_0x39fe8b(0x15b)]=_0x39fe8b(0x1a7);const _0x1bf200=_0x24fe14;if(global[_0x39fe8b(0x154)])try{logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x731de5,scripts.performScan)));},{command:'getAccessibilityResults'})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x731de5,scripts.getResults);})();return res;}catch{return logger[_0x39fe8b(0x14a)](_0x1bf200['ACUQe']),[];}else return logger['warn'](_0x1bf200[_0x39fe8b(0x15b)]),[];},exports['performScan']=async(_0x40839d,_0x57f77e='')=>{const _0x519630=a37_0x101dc6;logger[_0x519630(0x186)]('Performing\x20scan\x20with\x20method:\x20'+_0x57f77e+_0x519630(0x14c)+_0x40839d);if(global[_0x519630(0x154)])return await PerformanceTester[_0x519630(0x18f)](PerformanceA11yEvents[_0x519630(0x13b)],async()=>{const _0x443e23=_0x519630,_0x1001f0={};_0x1001f0[_0x443e23(0x190)]=_0x57f77e,await exports[_0x443e23(0x14e)](_0x40839d,scripts['performScan'],_0x1001f0);},{'command':_0x57f77e})();},exports[a37_0x101dc6(0x151)]=async _0x3f5f1f=>{const _0x39bafe=a37_0x101dc6,_0x396303={};_0x396303[_0x39bafe(0x15a)]=_0x39bafe(0x13f),_0x396303[_0x39bafe(0x19c)]='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.';const _0x1fcd8e=_0x396303;if(global[_0x39bafe(0x154)])try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x3f5f1f,scripts.performScan)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x3f5f1f,scripts.getResultsSummary);})();return summaryResults;}catch{return logger[_0x39bafe(0x186)](_0x1fcd8e[_0x39bafe(0x15a)]),{};}else return logger[_0x39bafe(0x140)](_0x1fcd8e[_0x39bafe(0x19c)]),{};},exports[a37_0x101dc6(0x170)]=async _0x2a3613=>{const _0x538f77=a37_0x101dc6,_0x43fb43={'VaEyL':function(_0x31f4f5,_0x489049){return _0x31f4f5!==_0x489049;},'KkNQU':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','ZBpho':'chrome','WGQOz':_0x538f77(0x181),'GEnKy':'chromium','gkykr':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','KsqHe':function(_0x444a60,_0x42c582){return _0x444a60(_0x42c582);},'pDZuR':function(_0x11a811){return _0x11a811();},'OcPWU':function(_0x150ed3,_0x5d1f08){return _0x150ed3<_0x5d1f08;},'NcyLP':_0x538f77(0x1b0),'mzTGS':function(_0x2b44a4,_0x2c54e1){return _0x2b44a4===_0x2c54e1;},'kXskQ':_0x538f77(0x188),'UkCDE':function(_0x25d951,_0x466466){return _0x25d951>_0x466466;},'JEyxD':_0x538f77(0x16e)};try{if(!_0x43fb43[_0x538f77(0x19a)](_0x2a3613[_0x538f77(0x150)],''))return logger['warn'](_0x43fb43[_0x538f77(0x169)]),![];const _0x117b40=_0x2a3613[_0x538f77(0x168)];if(![_0x43fb43[_0x538f77(0x1aa)],_0x43fb43[_0x538f77(0x1a1)],_0x43fb43['GEnKy']][_0x538f77(0x16c)](_0x117b40))return logger[_0x538f77(0x140)](_0x43fb43[_0x538f77(0x148)]),![];const _0x237ba2=_0x43fb43[_0x538f77(0x18b)](parseInt,_0x2a3613[_0x538f77(0x196)]);!_0x43fb43[_0x538f77(0x1a2)](isBrowserstackInfra)&&(!_0x43fb43[_0x538f77(0x175)](_0x237ba2,0x64)&&logger[_0x538f77(0x140)](_0x43fb43[_0x538f77(0x172)]));if(!(_0x43fb43[_0x538f77(0x13d)](_0x237ba2,_0x43fb43[_0x538f77(0x194)])||_0x43fb43[_0x538f77(0x167)](_0x237ba2,0x5e)))return logger[_0x538f77(0x140)](_0x43fb43['JEyxD']),![];}catch(_0x5cdd87){logger[_0x538f77(0x186)](_0x538f77(0x178)+util[_0x538f77(0x146)](_0x5cdd87));}return!![];},exports['processAccessibilityCaps']=(_0x4da3e6,_0x27452b,_0x55a081)=>{const _0x250a52=a37_0x101dc6,_0x1d4d1c={'IfiCm':function(_0x1f20da){return _0x1f20da();},'BmjjU':'browserstack.accessibility','fdylg':function(_0x529e7c,_0x44f81e){return _0x529e7c===_0x44f81e;},'nJELo':'chrome','MyAey':_0x250a52(0x181),'QKexF':function(_0x240050,_0x9fe8b9){return _0x240050===_0x9fe8b9;},'vFBHJ':_0x250a52(0x185),'HvEJx':function(_0x28ee17){return _0x28ee17();},'TzyUd':function(_0x33307d,_0x14864d){return _0x33307d>_0x14864d;},'KPUia':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x20100.','NPLcc':_0x250a52(0x188),'RtIQD':function(_0x12da06,_0xc7d9c2){return _0x12da06>_0xc7d9c2;},'KLmgG':_0x250a52(0x16e),'MImAQ':function(_0x362901,_0x21c7e0){return _0x362901(_0x21c7e0);},'ZKgCR':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','fNIvG':function(_0x4849f0,_0x4ce481){return _0x4849f0+_0x4ce481;}};try{if(_0x1d4d1c['IfiCm'](isAccessibilityAutomationSession)){global[_0x250a52(0x154)]=!![];!_0x4da3e6[_0x1d4d1c[_0x250a52(0x153)]]&&(global[_0x250a52(0x154)]=![]);!(_0x1d4d1c[_0x250a52(0x13c)](_0x4da3e6[_0x250a52(0x198)],_0x1d4d1c[_0x250a52(0x1ab)])||_0x1d4d1c[_0x250a52(0x13c)](_0x4da3e6[_0x250a52(0x198)],_0x1d4d1c[_0x250a52(0x142)])||_0x1d4d1c[_0x250a52(0x13c)](_0x4da3e6[_0x250a52(0x168)],_0x1d4d1c[_0x250a52(0x1ab)])||_0x1d4d1c[_0x250a52(0x16d)](_0x4da3e6[_0x250a52(0x168)],_0x1d4d1c[_0x250a52(0x142)]))&&(logger[_0x250a52(0x140)](_0x1d4d1c[_0x250a52(0x192)]),global['accessibilityPlatform']=![]);!_0x1d4d1c['HvEJx'](isBrowserstackInfra)&&(!_0x1d4d1c[_0x250a52(0x14b)](_0x4da3e6[_0x250a52(0x196)],0x64)&&logger[_0x250a52(0x140)](_0x1d4d1c[_0x250a52(0x182)]));!(_0x1d4d1c[_0x250a52(0x13c)](_0x4da3e6[_0x250a52(0x196)],_0x1d4d1c[_0x250a52(0x162)])||_0x1d4d1c[_0x250a52(0x145)](_0x4da3e6[_0x250a52(0x196)],0x5e))&&(logger[_0x250a52(0x140)](_0x1d4d1c[_0x250a52(0x15e)]),global['accessibilityPlatform']=![]);!_0x1d4d1c[_0x250a52(0x19e)](isUndefined,_0x4da3e6[_0x250a52(0x150)])&&(logger[_0x250a52(0x140)](_0x1d4d1c[_0x250a52(0x180)]),global[_0x250a52(0x154)]=![]);if(!global[_0x250a52(0x154)]){_0x4da3e6[_0x1d4d1c[_0x250a52(0x153)]]=![];const _0x1bc62e=_0x1d4d1c[_0x250a52(0x199)](_0x27452b,_0x1d4d1c[_0x250a52(0x19e)](encodeURIComponent,JSON[_0x250a52(0x1a6)](_0x4da3e6)));_0x55a081&&(_0x55a081[_0x250a52(0x17c)]['testInfo'][_0x250a52(0x14f)][_0x250a52(0x18c)][_0x250a52(0x159)][_0x250a52(0x1ad)]=_0x1bc62e,_0x55a081[_0x250a52(0x183)]['project'][_0x250a52(0x18c)][_0x250a52(0x159)][_0x250a52(0x1ad)]=_0x1bc62e);}}else global[_0x250a52(0x154)]=![];}catch(_0xd2a228){logger[_0x250a52(0x186)](_0x250a52(0x17f)+util[_0x250a52(0x146)](_0xd2a228));}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a38_0x527f69=a38_0x263b;(function(_0x2cbc48,_0x1de788){const _0x40f7c3=a38_0x263b,_0x2a87f5=_0x2cbc48();while(!![]){try{const _0x5a8317=parseInt(_0x40f7c3(0x101))/0x1*(-parseInt(_0x40f7c3(0x12d))/0x2)+-parseInt(_0x40f7c3(0x13b))/0x3*(parseInt(_0x40f7c3(0x14c))/0x4)+-parseInt(_0x40f7c3(0x124))/0x5*(-parseInt(_0x40f7c3(0xdb))/0x6)+-parseInt(_0x40f7c3(0xc9))/0x7+-parseInt(_0x40f7c3(0x115))/0x8+parseInt(_0x40f7c3(0x100))/0x9*(-parseInt(_0x40f7c3(0xd3))/0xa)+parseInt(_0x40f7c3(0xc1))/0xb*(parseInt(_0x40f7c3(0x114))/0xc);if(_0x5a8317===_0x1de788)break;else _0x2a87f5['push'](_0x2a87f5['shift']());}catch(_0x5c2a99){_0x2a87f5['push'](_0x2a87f5['shift']());}}}(a38_0x1985,0xecaaf));function a38_0x263b(_0x512e72,_0x62bd70){const _0x198516=a38_0x1985();return a38_0x263b=function(_0x263b64,_0x215f65){_0x263b64=_0x263b64-0xb9;let _0x239a35=_0x198516[_0x263b64];return _0x239a35;},a38_0x263b(_0x512e72,_0x62bd70);}const fs=require('fs'),path=require(a38_0x527f69(0xf8)),{spawn}=require(a38_0x527f69(0x140)),{format}=require(a38_0x527f69(0x105)),logger=require(a38_0x527f69(0x12f))['winstonLogger'],{default:BrowserStackSetup}=require(a38_0x527f69(0xd5)),helper=require(a38_0x527f69(0xc6)),utilities=require('../../helpers/utilities'),constants=require('../utils/constants'),{FRAMEWORKS}=require(a38_0x527f69(0xf9)),{getConfigLoaderPath}=require(a38_0x527f69(0x11f)),{checkAccessibilityPlatformConfig}=require(a38_0x527f69(0x14b)),{setAccessibilityCapabilities}=require(a38_0x527f69(0x137)),{printBuildLink}=require(a38_0x527f69(0xf6)),TestDetails=require(a38_0x527f69(0xfd)),TestHubHandler=require('../../helpers/testhub/testhubHandler'),PerformanceTester=require(a38_0x527f69(0x121)),BrowserstackCLI=require('../v2/browserstackCLI'),PerformanceEvents=require(a38_0x527f69(0x156))[a38_0x527f69(0xef)],CLIUtils=require(a38_0x527f69(0xd2)),TestInfo=require(a38_0x527f69(0x161)),getUserPlaywrightConfig=async(_0xf1b7bd,_0x54f712)=>{const _0x1cb1dc=a38_0x527f69,_0x57c11b={'wsIAW':function(_0x16bcc7){return _0x16bcc7();},'ulCZb':function(_0x4bbb78,_0x21aeb3){return _0x4bbb78(_0x21aeb3);},'PdVap':function(_0x57c0be,_0x1fbe01){return _0x57c0be(_0x1fbe01);},'bOFtg':_0x1cb1dc(0x15f),'GosIH':_0x1cb1dc(0x15d)},_0x1f6a99=!helper['isUndefined'](_0xf1b7bd[_0x1cb1dc(0xd0)]),_0x1e7478=_0x1f6a99?path[_0x1cb1dc(0xda)](process[_0x1cb1dc(0xc3)](),_0xf1b7bd[_0x1cb1dc(0xd0)]):process[_0x1cb1dc(0xc3)](),{resolveConfigFile:_0x2ea22e,resolveConfigLocation:_0x3c0583}=helper[_0x1cb1dc(0xff)][_0x1cb1dc(0x12b)](null,_0x57c11b['wsIAW'](getConfigLoaderPath)),_0x155953=_0x2ea22e?_0x57c11b['ulCZb'](_0x2ea22e,_0x1e7478):helper[_0x1cb1dc(0x12c)](_0x57c11b['PdVap'](_0x3c0583,_0x1e7478),[_0x57c11b[_0x1cb1dc(0x148)]]),_0x10e3cb={};if(_0x1f6a99){const _0x2046c2=_0x54f712['findIndex'](_0xb90600=>_0xb90600===_0x1cb1dc(0x130)||_0xb90600==='-c'||_0xb90600[_0x1cb1dc(0x133)](_0x1cb1dc(0x15d)));_0x54f712['splice'](_0x2046c2,_0x54f712[_0x2046c2][_0x1cb1dc(0x133)](_0x57c11b['GosIH'])?0x1:0x2);}const _0x5a5c48={};return _0x5a5c48[_0x1cb1dc(0xf8)]=_0x155953,_0x5a5c48['config']=_0x10e3cb,_0x5a5c48;},handleO11yRerun=_0x240868=>{const _0x1e7ab3=a38_0x527f69,_0x417d3d={};_0x417d3d['SPBEK']=_0x1e7ab3(0xbf);const _0x2c4ea5=_0x417d3d,_0x11bb0f=helper['isTrue'](process[_0x1e7ab3(0xb9)]['BROWSERSTACK_RERUN']);if(_0x11bb0f){const _0x1bfe92=process[_0x1e7ab3(0xb9)][_0x1e7ab3(0x10b)],_0x2ebf75=[];if(helper[_0x1e7ab3(0xfa)](_0x1bfe92)&&!helper[_0x1e7ab3(0xcb)](_0x1bfe92)){_0x1bfe92['split'](',')['map'](_0x53dd07=>{const _0x5d9b06=_0x1e7ab3;_0x2ebf75[_0x5d9b06(0xdc)]('('+_0x53dd07[_0x5d9b06(0x107)]()+')');});const _0x45d8cd='^'+_0x2ebf75[_0x1e7ab3(0x13c)]('|')+'$';_0x240868[_0x1e7ab3(0xdc)](_0x2c4ea5['SPBEK'],_0x45d8cd);}}},spawnOriginalProcess=_0x58f960=>{const _0x10a82c=a38_0x527f69,_0x2e86d5={'qreAa':function(_0x2ec364,_0x33af71,_0x420663,_0x4f7008){return _0x2ec364(_0x33af71,_0x420663,_0x4f7008);},'wahHV':'npx','dbkrE':_0x10a82c(0x127),'KHVnu':function(_0x3ead36,_0x15f137){return _0x3ead36===_0x15f137;},'reubZ':_0x10a82c(0xf7),'PNkor':_0x10a82c(0xe1)};_0x2e86d5['qreAa'](spawn,_0x2e86d5[_0x10a82c(0x129)],[_0x2e86d5['dbkrE'],..._0x58f960[_0x10a82c(0x113)](0x1)],{'shell':_0x2e86d5[_0x10a82c(0x15b)](process[_0x10a82c(0x15e)],_0x2e86d5['reubZ']),'stdio':_0x2e86d5[_0x10a82c(0xf5)],'cwd':process['cwd']()});},isTestCommand=(_0x4783d9,_0x2ab0c0)=>{const _0x119f7b=a38_0x527f69,_0xd94daf={};_0xd94daf[_0x119f7b(0x15c)]=function(_0x4a5a54,_0x344250){return _0x4a5a54>_0x344250;},_0xd94daf[_0x119f7b(0x15a)]=function(_0x5ee0f1,_0x6bca20){return _0x5ee0f1===_0x6bca20;},_0xd94daf['IoJGl']=_0x119f7b(0x11c);const _0x2df02d=_0xd94daf;if(_0x2df02d[_0x119f7b(0x15c)](_0x2ab0c0[_0x119f7b(0x160)],0x1)&&_0x2df02d[_0x119f7b(0x15a)](_0x2ab0c0[0x1],_0x2df02d[_0x119f7b(0xc5)]))return!![];return![];};async function run(_0x4f2b45,_0x3febb9,_0x2fa8eb){const _0x42347e=a38_0x527f69,_0x5b5324={'ehthk':_0x42347e(0xd7),'ErDwD':'pw_result.json','mkfMz':function(_0x16b474,_0x2c84f9){return _0x16b474+_0x2c84f9;},'ncFvj':'Error\x20in\x20getting\x20funnel\x20data\x20results','ltnLv':function(_0x217ab2,_0xfffbc0){return _0x217ab2(_0xfffbc0);},'NEaMd':function(_0x2316e0){return _0x2316e0();},'yfYWr':function(_0x5eb9d1){return _0x5eb9d1();},'jwisV':function(_0x4d4326,_0x42d02a){return _0x4d4326+_0x42d02a;},'kJfHu':'Error\x20in\x20closing\x20playwright','fAQuH':_0x42347e(0xe9),'tYsvo':function(_0x167376,_0x423a9c){return _0x167376===_0x423a9c;},'DqQYg':_0x42347e(0xd1),'ccsHK':_0x42347e(0x136),'StdmH':function(_0x56f23b,_0x3e706d){return _0x56f23b>=_0x3e706d;},'eDtbS':function(_0x3e8911,_0x57d036){return _0x3e8911===_0x57d036;},'RGHea':_0x42347e(0xde),'KTCfH':function(_0xdaa123,_0x2d69c9){return _0xdaa123!=_0x2d69c9;},'wPPEG':function(_0x4e74e5,_0x25caa3,_0x2ef3b7){return _0x4e74e5(_0x25caa3,_0x2ef3b7);},'mNgyd':function(_0x292d22,_0x151b0e){return _0x292d22(_0x151b0e);},'wMigA':function(_0x4c6ff3,_0x18a47a){return _0x4c6ff3===_0x18a47a;},'kaNsu':'true','fgulu':function(_0x4c3893,_0x556d2d){return _0x4c3893(_0x556d2d);},'NwzNg':_0x42347e(0x163),'JFlZf':_0x42347e(0xf3),'oqXAc':'playwright-browserstack-sdk.config.js','UinCr':function(_0x277b9e,_0x107bce){return _0x277b9e-_0x107bce;},'DkxKV':function(_0x4166a0,_0x365003){return _0x4166a0+_0x365003;},'nPgTL':_0x42347e(0x13a),'fEBTJ':function(_0x956486,_0xba2464){return _0x956486>_0xba2464;},'BRFeg':function(_0x5d6aaa,_0x19fee7,_0xffdab5,_0x4dd4d8){return _0x5d6aaa(_0x19fee7,_0xffdab5,_0x4dd4d8);},'NXaNQ':_0x42347e(0x117),'KmNzc':_0x42347e(0x127),'QHHMy':_0x42347e(0x11c),'nUyKg':_0x42347e(0x130),'epepP':function(_0x3558c0,_0x599a61){return _0x3558c0===_0x599a61;},'msbji':'win32','JLdnJ':_0x42347e(0xe1),'IALNQ':_0x42347e(0x12a),'hQLqQ':_0x42347e(0x134),'uMnal':function(_0x4bba4d,_0x3ddca3,_0x16e344){return _0x4bba4d(_0x3ddca3,_0x16e344);}};try{const _0x4051eb=path[_0x42347e(0x13c)](helper[_0x42347e(0x155)](),_0x5b5324['ehthk'],_0x5b5324[_0x42347e(0x145)]);fs[_0x42347e(0xf4)](_0x4051eb)&&fs['unlinkSync'](_0x4051eb);}catch(_0x2326bc){logger[_0x42347e(0xfe)](_0x5b5324['jwisV'](_0x5b5324[_0x42347e(0x119)],_0x2326bc));}if(!_0x5b5324['uMnal'](isTestCommand,_0x4f2b45,_0x3febb9)){_0x5b5324[_0x42347e(0x14e)](spawnOriginalProcess,_0x3febb9);return;}await PerformanceTester[_0x42347e(0x10d)](PerformanceEvents['SDK_PRE_INITIALIZE'],async()=>{const _0x164d16=_0x42347e,_0x591a6f={'hAqjb':function(_0x117786,_0x40850c){const _0xfb0080=a38_0x263b;return _0x5b5324[_0xfb0080(0xcc)](_0x117786,_0x40850c);},'aHdhi':_0x5b5324['ehthk'],'TSnhz':function(_0x52d331){return _0x5b5324['NEaMd'](_0x52d331);},'MmYjs':function(_0x4d4d6d){const _0x582da1=a38_0x263b;return _0x5b5324[_0x582da1(0x13f)](_0x4d4d6d);},'cKYdj':function(_0x42abdd,_0x54ee27){return _0x5b5324['jwisV'](_0x42abdd,_0x54ee27);},'KaPxa':_0x5b5324[_0x164d16(0xc2)]};if(!_0x2fa8eb[_0x164d16(0xd0)]){logger[_0x164d16(0xd4)](_0x5b5324['fAQuH']);return;}await _0x2fa8eb[_0x164d16(0xc4)](_0x4f2b45),CLIUtils[_0x164d16(0x11a)](FRAMEWORKS['PLAYWRIGHT'],FRAMEWORKS[_0x164d16(0x147)]),BrowserstackCLI['getInstance']()[_0x164d16(0xc7)](_0x2fa8eb[_0x164d16(0xd0)],_0x2fa8eb[_0x164d16(0x14a)]),await BrowserstackCLI[_0x164d16(0x146)]()['bootstrap']();const _0x2a7962=BrowserstackCLI[_0x164d16(0x146)]()[_0x164d16(0xba)]();!helper['isFalse'](_0x2a7962[_0x164d16(0xc8)])&&(process['env'][_0x164d16(0x122)]=!![]);_0x5b5324['tYsvo'](_0x2a7962[_0x164d16(0xc8)],![])&&(process[_0x164d16(0xb9)][_0x164d16(0x122)]=_0x5b5324[_0x164d16(0x106)],_0x3febb9=_0x3febb9[_0x164d16(0x153)](_0x3d4e71=>_0x3d4e71!==_0x164d16(0xd6)));const _0xef5ff8=_0x3febb9[_0x164d16(0x14f)](_0x5b5324[_0x164d16(0x154)]);(_0x5b5324['StdmH'](_0xef5ff8,0x0)||_0x5b5324[_0x164d16(0x158)](_0x2a7962['testObservability'],![]))&&(process[_0x164d16(0xb9)][_0x164d16(0xe8)]=_0x5b5324[_0x164d16(0x106)],_0x3febb9=_0x3febb9[_0x164d16(0x153)](_0x51641b=>_0x51641b!==_0x164d16(0x136)));!helper['isUndefined'](_0x2fa8eb[_0x164d16(0x14a)])&&_0x2fa8eb['cliConfig'][_0x164d16(0x131)](_0x5b5324[_0x164d16(0xe0)])&&(process[_0x164d16(0xb9)][_0x164d16(0x122)]=_0x2fa8eb[_0x164d16(0x14a)][_0x164d16(0xf1)](_0x5b5324[_0x164d16(0xe0)])||!![]);_0x5b5324[_0x164d16(0x139)](_0x2fa8eb['config'][_0x164d16(0xbc)],null)&&!helper[_0x164d16(0x118)](process[_0x164d16(0xb9)][_0x164d16(0xe8)])&&(process[_0x164d16(0xb9)][_0x164d16(0xe8)]=process[_0x164d16(0xb9)][_0x164d16(0xe8)]||_0x2fa8eb['config'][_0x164d16(0xbc)]);const _0x3198a9=!helper[_0x164d16(0xc0)](process['env'][_0x164d16(0xe8)]);_0x2fa8eb[_0x164d16(0xd0)][_0x164d16(0x159)]&&(process[_0x164d16(0xb9)][_0x164d16(0xdf)]=JSON[_0x164d16(0xcd)](_0x2fa8eb['config']['accessibilityOptions']));let _0x172ed1=![];_0x2fa8eb['config'][_0x164d16(0xcf)]&&(_0x172ed1=!![],process[_0x164d16(0xb9)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x2fa8eb[_0x164d16(0xd0)][_0x164d16(0xcf)]);const _0x3b40d5=_0x3febb9[_0x164d16(0x150)](),_0x49f922=await _0x5b5324['wPPEG'](getUserPlaywrightConfig,_0x4f2b45,_0x3febb9);if(helper['isUndefined'](_0x49f922)){_0x5b5324[_0x164d16(0x14e)](spawnOriginalProcess,_0x3b40d5);return;}const _0x199330=_0x49f922[_0x164d16(0xf8)]?path[_0x164d16(0x135)](_0x49f922['path']):process[_0x164d16(0xc3)]();process[_0x164d16(0xb9)]['BROWSERSTACK_PW_CONFIG_DIR']=_0x199330,await PerformanceTester[_0x164d16(0x10d)](PerformanceEvents['SDK_POST_INITIALIZE'],async()=>{const _0xa45e4=_0x164d16;!BrowserstackCLI[_0xa45e4(0x146)]()['isRunning']()&&await TestHubHandler[_0xa45e4(0x110)](FRAMEWORKS['PLAYWRIGHT'],_0x2fa8eb),_0x3198a9&&_0x591a6f[_0xa45e4(0x13e)](handleO11yRerun,_0x3febb9);})();if(!BrowserstackCLI[_0x164d16(0x146)]()[_0x164d16(0xca)]()){let _0x109744=_0x5b5324[_0x164d16(0xfb)](process[_0x164d16(0xb9)][_0x164d16(0x162)],_0x5b5324[_0x164d16(0x12e)]);_0x109744=_0x109744||_0x5b5324['ltnLv'](checkAccessibilityPlatformConfig,_0x2fa8eb['config']),process[_0x164d16(0xb9)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x109744,_0x109744&&_0x5b5324[_0x164d16(0x13d)](setAccessibilityCapabilities,_0x2fa8eb[_0x164d16(0xd0)]);}const _0x2dbf2f=path[_0x164d16(0x13c)](_0x49f922['path']?path[_0x164d16(0x135)](_0x49f922[_0x164d16(0xf8)]):process[_0x164d16(0xc3)](),_0x5b5324[_0x164d16(0xe4)]);fs[_0x164d16(0x157)](_0x2dbf2f,helper[_0x164d16(0xe6)](_0x2fa8eb[_0x164d16(0xd0)])),process[_0x164d16(0xb9)][_0x164d16(0x123)]=_0x2dbf2f,helper[_0x164d16(0xe7)]();let _0x2d9d2f='';_0x5b5324[_0x164d16(0x158)](helper[_0x164d16(0xed)](),constants[_0x164d16(0x10e)][_0x164d16(0x143)])?_0x2d9d2f=_0x5b5324[_0x164d16(0x128)]:_0x2d9d2f=_0x5b5324['oqXAc'];let _0x216aa5='';if(helper[_0x164d16(0xe2)](_0x49f922[_0x164d16(0xf8)])){_0x216aa5='\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a';const _0x49fb20=_0x2d9d2f[_0x164d16(0x10f)]('.');_0x49fb20[_0x5b5324[_0x164d16(0x104)](_0x49fb20[_0x164d16(0x160)],0x1)]='ts',_0x2d9d2f=_0x49fb20[_0x164d16(0x13c)]('.'),logger['debug'](_0x5b5324[_0x164d16(0xbb)](_0x5b5324['nPgTL'],_0x2d9d2f));}else _0x216aa5=_0x164d16(0x141);const _0x446639=path[_0x164d16(0x13c)](_0x49f922[_0x164d16(0xf8)]?path['dirname'](_0x49f922[_0x164d16(0xf8)]):process[_0x164d16(0xc3)](),_0x2d9d2f);let _0x26729f=_0x49f922[_0x164d16(0xf8)]?_0x49f922[_0x164d16(0xf8)]:'';_0x26729f=_0x5b5324[_0x164d16(0x11d)](_0x26729f[_0x164d16(0x160)],0x0)?path[_0x164d16(0xda)](_0x26729f):'',process[_0x164d16(0xb9)][_0x164d16(0x125)]=_0x26729f;const _0x245b92=helper['getProxyUrl'](_0x2fa8eb[_0x164d16(0xd0)]);_0x245b92&&(_0x216aa5=_0x5b5324[_0x164d16(0x132)](_0x164d16(0xf2)+_0x245b92+_0x164d16(0x142),_0x216aa5));helper[_0x164d16(0x11b)]({},_0x3febb9),fs[_0x164d16(0x157)](_0x446639,_0x216aa5),PerformanceTester[_0x164d16(0x109)](PerformanceEvents[_0x164d16(0x112)]);const _0x24c1d4=_0x5b5324[_0x164d16(0x10c)](spawn,_0x5b5324[_0x164d16(0x126)],[_0x5b5324[_0x164d16(0x11e)],_0x5b5324['QHHMy'],_0x5b5324[_0x164d16(0x152)],_0x446639,..._0x3febb9[_0x164d16(0x113)](0x2)],{'shell':_0x5b5324['epepP'](process[_0x164d16(0x15e)],_0x5b5324['msbji']),'stdio':_0x5b5324['JLdnJ'],'cwd':process[_0x164d16(0xc3)](),'env':Object[_0x164d16(0xd8)]({},process[_0x164d16(0xb9)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper['getConfigPath'](_0x4f2b45),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x2fa8eb[_0x164d16(0xd0)]['testContextOptions']['skipSessionStatus'],'BROWSERSTACK_SKIP_SESSION_NAME':_0x2fa8eb[_0x164d16(0xd0)][_0x164d16(0x116)]['skipSessionName'],'BROWSERSTACK_LOG_LEVEL':_0x2fa8eb['config']['logLevel']})}),_0x2841d4=()=>{const _0x6809f3=_0x164d16;try{const _0x4ef548=path['join'](helper[_0x6809f3(0x155)](),_0x5b5324[_0x6809f3(0x103)],_0x5b5324[_0x6809f3(0x145)]);if(fs[_0x6809f3(0xf4)](_0x4ef548)){let _0x7a32dd=fs['readFileSync'](_0x4ef548);_0x7a32dd=JSON[_0x6809f3(0xee)](_0x7a32dd),_0x2fa8eb[_0x6809f3(0xdd)]=_0x7a32dd,fs[_0x6809f3(0xec)](_0x4ef548);}}catch(_0x2dd459){logger[_0x6809f3(0xfe)](_0x5b5324[_0x6809f3(0x132)](_0x5b5324[_0x6809f3(0xf0)],_0x2dd459));}};_0x24c1d4['on'](_0x5b5324[_0x164d16(0xfc)],async _0x712bd4=>{const _0x3d99f6=_0x164d16,_0x55f033={};_0x55f033[_0x3d99f6(0xd9)]=_0x591a6f[_0x3d99f6(0x111)];const _0x508b75=_0x55f033;try{PerformanceTester[_0x3d99f6(0x14d)](PerformanceEvents[_0x3d99f6(0xbd)]),_0x591a6f[_0x3d99f6(0xea)](_0x2841d4);!BrowserstackCLI[_0x3d99f6(0x146)]()[_0x3d99f6(0xca)]()&&await TestHubHandler[_0x3d99f6(0x138)]();await BrowserstackCLI[_0x3d99f6(0x146)]()[_0x3d99f6(0x138)](),TestDetails[_0x3d99f6(0x149)](),_0x591a6f[_0x3d99f6(0xbe)](printBuildLink),await utilities[_0x3d99f6(0xe5)](_0x2fa8eb),process['exitCode']=_0x712bd4,logger[_0x3d99f6(0xfe)](_0x3d99f6(0x10a)+_0x712bd4),logger[_0x3d99f6(0x108)](_0x3d99f6(0xce)+_0x446639),fs[_0x3d99f6(0xec)](_0x446639);fs[_0x3d99f6(0xf4)](_0x2dbf2f)&&(logger[_0x3d99f6(0xfe)]('Deleting\x20'+_0x2dbf2f),fs['unlinkSync'](_0x2dbf2f));const _0xdeed5f=fs[_0x3d99f6(0xe3)](path[_0x3d99f6(0x13c)](helper[_0x3d99f6(0x155)](),_0x591a6f[_0x3d99f6(0x111)]))[_0x3d99f6(0x153)](_0x270a31=>_0x270a31[_0x3d99f6(0x133)](_0x3d99f6(0x102)));_0xdeed5f[_0x3d99f6(0x144)](_0x2ddd78=>{const _0x1425be=_0x3d99f6;fs[_0x1425be(0xec)](path[_0x1425be(0x13c)](helper[_0x1425be(0x155)](),_0x508b75[_0x1425be(0xd9)],_0x2ddd78));});}catch(_0x2d1072){logger[_0x3d99f6(0xfe)](_0x591a6f[_0x3d99f6(0x151)](_0x591a6f[_0x3d99f6(0xeb)],_0x2d1072));}});})();}function a38_0x1985(){const _0x2bd311=['../../helpers/test-observability/utils','win32','path','../../helpers/test-observability/constants','validateRerunTestList','wMigA','IALNQ','./reporter/test-details','debug','requirePWModule','6705CmcAdl','431473cWHJDz','trace_','ehthk','UinCr','util','DqQYg','trim','info','end','Playwright\x20process\x20exited\x20with\x20code\x20','BROWSERSTACK_RERUN_TESTS','BRFeg','measureWrapper','PACKAGE_TYPE','split','launchBuild','aHdhi','SDK_SETUP','slice','1026912UUYPSc','1414544SjsZRg','testContextOptions','npx','isTrue','hQLqQ','setFrameworkDetail','filterBrowserstackArgs','test','fEBTJ','KmNzc','./reporter/pwUtils','exports','../../helpers/performance/performance-tester','BROWSERSTACK_AUTOMATION','BROWSERSTACK_SETUP_CONFIG_PATH','815qZSHWo','USER_CONFIG_DETAILS_PATH','NXaNQ','playwright','JFlZf','wahHV','close','apply','nestedKeyValue','2xPEDwX','kaNsu','../../helpers/logger','--config','has','mkfMz','startsWith','Error\x20in\x20deleting\x20playwright\x20results','dirname','--disable-test-observability','./accessibility-helper','stop','KTCfH','Updated\x20config\x20file\x20name\x20to\x20-\x20','11127dluoKM','join','fgulu','hAqjb','yfYWr','child_process','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}catch{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20This\x20is\x20a\x20failsafe\x20if\x20global-agent\x20present\x20inside\x20sdk\x20node_modules\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22./node_modules/browserstack-node-sdk/node_modules/global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20};\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap();','MODULE','forEach','ErDwD','getInstance','PLAYWRIGHT','bOFtg','shutdown','cliConfig','../../helpers/accessibility-automation/helper','1744UFgEOc','start','mNgyd','indexOf','concat','cKYdj','nUyKg','filter','ccsHK','homedir','../../helpers/performance/constants','writeFileSync','eDtbS','accessibilityOptions','FtzuS','KHVnu','eCVWp','--config=','platform','resolvedConfigFile','length','../v2/TestInfo','BROWSERSTACK_TEST_ACCESSIBILITY_YML','browserstackSetupConfig.json','env','getConfig','DkxKV','testObservability','SDK_CLEANUP','MmYjs','--grep','isFalse','374peBzXV','kJfHu','cwd','initialize','IoJGl','../../helpers/helper','setBrowserstackConfig','browserstackAutomation','1653092IRqfcP','isRunning','isUndefined','ltnLv','stringify','Deleting\x20','accessibility','config','false','../v2/cliUtils','2390fRlaXA','error','../../helpers/BrowserStackSetup','--disable-browserstack-automation','.browserstack','assign','wtzLR','resolve','25746rAuuPV','push','errorMessage','automation','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','RGHea','inherit','isTypescriptProject','readdirSync','NwzNg','finalExecution','serializeToYamlString','clearTempPWConfig','BROWSERSTACK_TEST_OBSERVABILITY','BrowserStack\x20config\x20file\x20not\x20found.','TSnhz','KaPxa','unlinkSync','getPackageType','parse','EVENTS','ncFvj','get','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','playwright-browserstack-sdk.config.cjs','existsSync','PNkor'];a38_0x1985=function(){return _0x2bd311;};return a38_0x1985();}module[a38_0x527f69(0x120)]=run;
|
|
2
|
+
'use strict';const a38_0x2d1cd2=a38_0x3021;(function(_0x54c93b,_0x224d64){const _0x5f4c19=a38_0x3021,_0x5a7ae8=_0x54c93b();while(!![]){try{const _0x5c0f3f=-parseInt(_0x5f4c19(0x1ef))/0x1+parseInt(_0x5f4c19(0x256))/0x2+-parseInt(_0x5f4c19(0x1ed))/0x3+parseInt(_0x5f4c19(0x25a))/0x4*(parseInt(_0x5f4c19(0x1e8))/0x5)+parseInt(_0x5f4c19(0x237))/0x6*(parseInt(_0x5f4c19(0x272))/0x7)+parseInt(_0x5f4c19(0x251))/0x8*(parseInt(_0x5f4c19(0x1fd))/0x9)+-parseInt(_0x5f4c19(0x200))/0xa;if(_0x5c0f3f===_0x224d64)break;else _0x5a7ae8['push'](_0x5a7ae8['shift']());}catch(_0x12c779){_0x5a7ae8['push'](_0x5a7ae8['shift']());}}}(a38_0x5984,0x80453));const fs=require('fs'),path=require('path'),{spawn}=require('child_process'),{format}=require('util'),logger=require(a38_0x2d1cd2(0x1f1))[a38_0x2d1cd2(0x1e9)],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require(a38_0x2d1cd2(0x23f)),utilities=require(a38_0x2d1cd2(0x24c)),constants=require(a38_0x2d1cd2(0x1f6)),{FRAMEWORKS}=require(a38_0x2d1cd2(0x24f)),{getConfigLoaderPath}=require('./reporter/pwUtils'),{checkAccessibilityPlatformConfig}=require(a38_0x2d1cd2(0x1f9)),{setAccessibilityCapabilities}=require(a38_0x2d1cd2(0x261)),{printBuildLink}=require(a38_0x2d1cd2(0x229)),TestDetails=require(a38_0x2d1cd2(0x270)),TestHubHandler=require(a38_0x2d1cd2(0x262)),PerformanceTester=require('../../helpers/performance/performance-tester'),BrowserstackCLI=require(a38_0x2d1cd2(0x260)),PerformanceEvents=require('../../helpers/performance/constants')['EVENTS'],CLIUtils=require('../v2/cliUtils'),TestInfo=require('../v2/TestInfo'),getUserPlaywrightConfig=async(_0x24e3a7,_0x3830aa)=>{const _0x31948c=a38_0x2d1cd2,_0x4787b7={'AeqGv':function(_0x1e9015){return _0x1e9015();},'ZjAJq':function(_0x270332,_0x29f2d7){return _0x270332(_0x29f2d7);},'dEqIw':function(_0x11c888,_0x5b3a41){return _0x11c888(_0x5b3a41);},'VXjMv':_0x31948c(0x1f5),'GnjRr':'--config='},_0x145ada=!helper[_0x31948c(0x1ec)](_0x24e3a7[_0x31948c(0x24d)]),_0x104182=_0x145ada?path[_0x31948c(0x1d7)](process[_0x31948c(0x249)](),_0x24e3a7['config']):process[_0x31948c(0x249)](),{resolveConfigFile:_0xeba4c8,resolveConfigLocation:_0x185c68}=helper[_0x31948c(0x223)][_0x31948c(0x20d)](null,_0x4787b7[_0x31948c(0x24e)](getConfigLoaderPath)),_0x45a967=_0xeba4c8?_0x4787b7[_0x31948c(0x1f2)](_0xeba4c8,_0x104182):helper[_0x31948c(0x1d3)](_0x4787b7[_0x31948c(0x253)](_0x185c68,_0x104182),[_0x4787b7['VXjMv']]),_0x3d6a14={};if(_0x145ada){const _0x290502=_0x3830aa[_0x31948c(0x26e)](_0x4f4679=>_0x4f4679===_0x31948c(0x244)||_0x4f4679==='-c'||_0x4f4679['startsWith'](_0x31948c(0x228)));_0x3830aa[_0x31948c(0x243)](_0x290502,_0x3830aa[_0x290502]['startsWith'](_0x4787b7[_0x31948c(0x258)])?0x1:0x2);}const _0x5acc76={};return _0x5acc76['path']=_0x45a967,_0x5acc76[_0x31948c(0x24d)]=_0x3d6a14,_0x5acc76;},handleO11yRerun=_0xf755ce=>{const _0x4f9f4b=a38_0x2d1cd2,_0x547a19={};_0x547a19[_0x4f9f4b(0x231)]='--grep';const _0x31216e=_0x547a19,_0x3132a1=helper['isTrue'](process[_0x4f9f4b(0x221)]['BROWSERSTACK_RERUN']);if(_0x3132a1){const _0x284fc0=process[_0x4f9f4b(0x221)][_0x4f9f4b(0x1e2)],_0x828277=[];if(helper[_0x4f9f4b(0x254)](_0x284fc0)&&!helper[_0x4f9f4b(0x1ec)](_0x284fc0)){_0x284fc0['split'](',')[_0x4f9f4b(0x26c)](_0x6cc5e1=>{const _0x14cb96=_0x4f9f4b;_0x828277[_0x14cb96(0x227)]('('+_0x6cc5e1[_0x14cb96(0x25b)]()+')');});const _0x14e016='^'+_0x828277[_0x4f9f4b(0x1da)]('|')+'$';_0xf755ce['push'](_0x31216e[_0x4f9f4b(0x231)],_0x14e016);}}},spawnOriginalProcess=_0x406268=>{const _0x31389b=a38_0x2d1cd2,_0x5aab95={'xUqoP':function(_0x222c76,_0x239dd9,_0x2a5e9f,_0x2e0706){return _0x222c76(_0x239dd9,_0x2a5e9f,_0x2e0706);},'VQStQ':_0x31389b(0x1d5),'prxWE':_0x31389b(0x204),'gLFhO':function(_0x28cf5d,_0x25588a){return _0x28cf5d===_0x25588a;},'Iqhck':'win32','yMtVz':_0x31389b(0x220)};_0x5aab95['xUqoP'](spawn,_0x5aab95[_0x31389b(0x20f)],[_0x5aab95['prxWE'],..._0x406268[_0x31389b(0x269)](0x1)],{'shell':_0x5aab95[_0x31389b(0x1ee)](process[_0x31389b(0x1d6)],_0x5aab95['Iqhck']),'stdio':_0x5aab95[_0x31389b(0x245)],'cwd':process['cwd']()});},isTestCommand=(_0x30e03e,_0x556435)=>{const _0x39a156=a38_0x2d1cd2,_0x1a42a8={};_0x1a42a8[_0x39a156(0x24b)]=function(_0x2f9359,_0x36de5c){return _0x2f9359>_0x36de5c;},_0x1a42a8[_0x39a156(0x26f)]=function(_0x1323da,_0x4b82c5){return _0x1323da===_0x4b82c5;},_0x1a42a8[_0x39a156(0x20e)]=_0x39a156(0x22d);const _0x2df8c2=_0x1a42a8;if(_0x2df8c2['YtncV'](_0x556435[_0x39a156(0x215)],0x1)&&_0x2df8c2[_0x39a156(0x26f)](_0x556435[0x1],_0x2df8c2[_0x39a156(0x20e)]))return!![];return![];};async function run(_0x5f2a9f,_0x1f751b,_0x2781c3){const _0x59167c=a38_0x2d1cd2,_0x26599f={'YiNDk':_0x59167c(0x252),'LSjbi':_0x59167c(0x21e),'lFTUH':function(_0xa3821,_0x453c41){return _0xa3821+_0x453c41;},'QSwbu':_0x59167c(0x1fc),'groLk':function(_0x5bd66f){return _0x5bd66f();},'sgdds':function(_0x782b05){return _0x782b05();},'AnNVG':'Error\x20in\x20closing\x20playwright','KQcaF':function(_0x49c124,_0x27a94f){return _0x49c124(_0x27a94f);},'CoXfO':'BrowserStack\x20config\x20file\x20not\x20found.','rERQL':function(_0x28f156,_0x5320fd){return _0x28f156===_0x5320fd;},'BMdPx':'false','jObvU':'--disable-test-observability','wZPXi':function(_0x40a884,_0x54e8fc){return _0x40a884>=_0x54e8fc;},'yQwqC':_0x59167c(0x1e7),'XRkmY':function(_0x19f922,_0x49e687){return _0x19f922!=_0x49e687;},'JOdSA':function(_0x1f2fbc,_0x11a128,_0x5e5118){return _0x1f2fbc(_0x11a128,_0x5e5118);},'bdqdB':function(_0x501d12,_0x79f514){return _0x501d12(_0x79f514);},'WXPZZ':'true','srabz':function(_0x40085b,_0x3582a3){return _0x40085b(_0x3582a3);},'HvBkV':_0x59167c(0x1ea),'PZkVd':_0x59167c(0x1f0),'dPiDi':_0x59167c(0x265),'MEmhI':function(_0x527bf5,_0x60cbdd){return _0x527bf5-_0x60cbdd;},'ISwRR':function(_0x20dd41,_0x3f3669){return _0x20dd41+_0x3f3669;},'KmMqs':_0x59167c(0x1dd),'UeEis':function(_0x1666d4,_0x392412){return _0x1666d4>_0x392412;},'fDwFv':function(_0x254049,_0x5bf360,_0x22b626,_0x4a97f2){return _0x254049(_0x5bf360,_0x22b626,_0x4a97f2);},'jFhnC':_0x59167c(0x1d5),'zhYqK':'playwright','UbGGr':'test','XyOfU':_0x59167c(0x244),'nDbBy':function(_0x5ccb96,_0x59a516){return _0x5ccb96===_0x59a516;},'htquW':_0x59167c(0x25e),'DmXGK':_0x59167c(0x220),'ZsVeq':_0x59167c(0x26b),'NFzeO':function(_0x30110f,_0x43dfa8){return _0x30110f+_0x43dfa8;},'sSgwo':'Error\x20in\x20deleting\x20playwright\x20results'};try{const _0x44c19d=path[_0x59167c(0x1da)](helper[_0x59167c(0x247)](),_0x26599f[_0x59167c(0x1db)],_0x26599f[_0x59167c(0x241)]);fs[_0x59167c(0x1de)](_0x44c19d)&&fs['unlinkSync'](_0x44c19d);}catch(_0x4a2f16){logger[_0x59167c(0x21b)](_0x26599f[_0x59167c(0x239)](_0x26599f[_0x59167c(0x24a)],_0x4a2f16));}if(!_0x26599f[_0x59167c(0x235)](isTestCommand,_0x5f2a9f,_0x1f751b)){_0x26599f['srabz'](spawnOriginalProcess,_0x1f751b);return;}await PerformanceTester['measureWrapper'](PerformanceEvents[_0x59167c(0x238)],async()=>{const _0x5d3fb0=_0x59167c,_0x10a586={'aAYin':function(_0x1f9cea,_0x46786e){const _0x587ea9=a38_0x3021;return _0x26599f[_0x587ea9(0x21a)](_0x1f9cea,_0x46786e);}};if(!_0x2781c3[_0x5d3fb0(0x24d)]){logger['error'](_0x26599f[_0x5d3fb0(0x1d8)]);return;}await _0x2781c3[_0x5d3fb0(0x250)](_0x5f2a9f),CLIUtils[_0x5d3fb0(0x23a)](FRAMEWORKS[_0x5d3fb0(0x1e0)],FRAMEWORKS['PLAYWRIGHT']),BrowserstackCLI['getInstance']()[_0x5d3fb0(0x234)](_0x2781c3['config'],_0x2781c3[_0x5d3fb0(0x264)]),await BrowserstackCLI[_0x5d3fb0(0x21c)]()[_0x5d3fb0(0x230)]();const _0x135f45=BrowserstackCLI['getInstance']()[_0x5d3fb0(0x213)]();!helper[_0x5d3fb0(0x1f4)](_0x135f45[_0x5d3fb0(0x216)])&&(process[_0x5d3fb0(0x221)][_0x5d3fb0(0x246)]=!![]);_0x26599f[_0x5d3fb0(0x25c)](_0x135f45[_0x5d3fb0(0x216)],![])&&(process[_0x5d3fb0(0x221)][_0x5d3fb0(0x246)]=_0x26599f[_0x5d3fb0(0x25d)],_0x1f751b=_0x1f751b[_0x5d3fb0(0x23b)](_0x5cd4b5=>_0x5cd4b5!==_0x5d3fb0(0x217)));const _0xfd5dca=_0x1f751b[_0x5d3fb0(0x1fa)](_0x26599f[_0x5d3fb0(0x219)]);(_0x26599f[_0x5d3fb0(0x1e3)](_0xfd5dca,0x0)||_0x26599f[_0x5d3fb0(0x25c)](_0x135f45[_0x5d3fb0(0x225)],![]))&&(process[_0x5d3fb0(0x221)][_0x5d3fb0(0x23e)]=_0x26599f[_0x5d3fb0(0x25d)],_0x1f751b=_0x1f751b['filter'](_0x2e92d1=>_0x2e92d1!==_0x5d3fb0(0x267)));!helper['isUndefined'](_0x2781c3[_0x5d3fb0(0x264)])&&_0x2781c3[_0x5d3fb0(0x264)]['has'](_0x26599f[_0x5d3fb0(0x240)])&&(process[_0x5d3fb0(0x221)][_0x5d3fb0(0x246)]=_0x2781c3['cliConfig'][_0x5d3fb0(0x236)](_0x26599f[_0x5d3fb0(0x240)])||!![]);_0x26599f['XRkmY'](_0x2781c3['config'][_0x5d3fb0(0x225)],null)&&!helper[_0x5d3fb0(0x208)](process[_0x5d3fb0(0x221)]['BROWSERSTACK_TEST_OBSERVABILITY'])&&(process['env'][_0x5d3fb0(0x23e)]=process[_0x5d3fb0(0x221)][_0x5d3fb0(0x23e)]||_0x2781c3[_0x5d3fb0(0x24d)][_0x5d3fb0(0x225)]);const _0x21892c=!helper['isFalse'](process['env'][_0x5d3fb0(0x23e)]);_0x2781c3['config']['accessibilityOptions']&&(process[_0x5d3fb0(0x221)][_0x5d3fb0(0x1f3)]=JSON['stringify'](_0x2781c3[_0x5d3fb0(0x24d)]['accessibilityOptions']));let _0x572c95=![];_0x2781c3[_0x5d3fb0(0x24d)][_0x5d3fb0(0x1d9)]&&(_0x572c95=!![],process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x2781c3[_0x5d3fb0(0x24d)]['accessibility']);const _0x39c164=_0x1f751b[_0x5d3fb0(0x20a)](),_0x40f789=await _0x26599f[_0x5d3fb0(0x235)](getUserPlaywrightConfig,_0x5f2a9f,_0x1f751b);if(helper[_0x5d3fb0(0x1ec)](_0x40f789)){_0x26599f[_0x5d3fb0(0x1ff)](spawnOriginalProcess,_0x39c164);return;}const _0x2d0848=_0x40f789[_0x5d3fb0(0x263)]?path[_0x5d3fb0(0x224)](_0x40f789[_0x5d3fb0(0x263)]):process[_0x5d3fb0(0x249)]();process[_0x5d3fb0(0x221)]['BROWSERSTACK_PW_CONFIG_DIR']=_0x2d0848,await PerformanceTester[_0x5d3fb0(0x1f7)](PerformanceEvents['SDK_POST_INITIALIZE'],async()=>{const _0x3d44b4=_0x5d3fb0;!BrowserstackCLI[_0x3d44b4(0x21c)]()[_0x3d44b4(0x22c)]()&&await TestHubHandler[_0x3d44b4(0x206)](FRAMEWORKS[_0x3d44b4(0x1e0)],_0x2781c3),_0x21892c&&_0x10a586[_0x3d44b4(0x1df)](handleO11yRerun,_0x1f751b);})();if(!BrowserstackCLI[_0x5d3fb0(0x21c)]()[_0x5d3fb0(0x22c)]()){let _0x78b020=_0x26599f[_0x5d3fb0(0x25c)](process[_0x5d3fb0(0x221)][_0x5d3fb0(0x248)],_0x26599f['WXPZZ']);_0x78b020=_0x78b020||_0x26599f[_0x5d3fb0(0x1dc)](checkAccessibilityPlatformConfig,_0x2781c3[_0x5d3fb0(0x24d)]),process[_0x5d3fb0(0x221)][_0x5d3fb0(0x248)]=_0x78b020,_0x78b020&&_0x26599f[_0x5d3fb0(0x1ff)](setAccessibilityCapabilities,_0x2781c3[_0x5d3fb0(0x24d)]);}const _0x24589d=path[_0x5d3fb0(0x1da)](_0x40f789[_0x5d3fb0(0x263)]?path[_0x5d3fb0(0x224)](_0x40f789[_0x5d3fb0(0x263)]):process[_0x5d3fb0(0x249)](),_0x26599f[_0x5d3fb0(0x25f)]);fs[_0x5d3fb0(0x218)](_0x24589d,helper[_0x5d3fb0(0x202)](_0x2781c3[_0x5d3fb0(0x24d)])),process[_0x5d3fb0(0x221)][_0x5d3fb0(0x210)]=_0x24589d,helper[_0x5d3fb0(0x26a)]();let _0x3cd50e='';_0x26599f['rERQL'](helper[_0x5d3fb0(0x1d2)](),constants[_0x5d3fb0(0x211)][_0x5d3fb0(0x1e5)])?_0x3cd50e=_0x26599f[_0x5d3fb0(0x1f8)]:_0x3cd50e=_0x26599f[_0x5d3fb0(0x21f)];let _0x36b7c2='';if(helper['isTypescriptProject'](_0x40f789[_0x5d3fb0(0x263)])){_0x36b7c2='\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a';const _0x121a63=_0x3cd50e['split']('.');_0x121a63[_0x26599f['MEmhI'](_0x121a63['length'],0x1)]='ts',_0x3cd50e=_0x121a63[_0x5d3fb0(0x1da)]('.'),logger['debug'](_0x26599f[_0x5d3fb0(0x209)](_0x26599f[_0x5d3fb0(0x1e1)],_0x3cd50e));}else _0x36b7c2='\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a';const _0x2099b0=path[_0x5d3fb0(0x1da)](_0x40f789['path']?path[_0x5d3fb0(0x224)](_0x40f789['path']):process[_0x5d3fb0(0x249)](),_0x3cd50e);let _0x573f2a=_0x40f789[_0x5d3fb0(0x263)]?_0x40f789[_0x5d3fb0(0x263)]:'';_0x573f2a=_0x26599f[_0x5d3fb0(0x1fb)](_0x573f2a['length'],0x0)?path[_0x5d3fb0(0x1d7)](_0x573f2a):'',process[_0x5d3fb0(0x221)]['USER_CONFIG_DETAILS_PATH']=_0x573f2a;const _0x78d7=helper[_0x5d3fb0(0x22a)](_0x2781c3[_0x5d3fb0(0x24d)]);_0x78d7&&(_0x36b7c2=_0x26599f[_0x5d3fb0(0x233)](_0x5d3fb0(0x23d)+_0x78d7+_0x5d3fb0(0x20c),_0x36b7c2));helper['filterBrowserstackArgs']({},_0x1f751b),fs[_0x5d3fb0(0x218)](_0x2099b0,_0x36b7c2),PerformanceTester['end'](PerformanceEvents[_0x5d3fb0(0x1e4)]);const _0xbd1ab2=_0x26599f[_0x5d3fb0(0x1e6)](spawn,_0x26599f[_0x5d3fb0(0x20b)],[_0x26599f[_0x5d3fb0(0x203)],_0x26599f[_0x5d3fb0(0x259)],_0x26599f['XyOfU'],_0x2099b0,..._0x1f751b['slice'](0x2)],{'shell':_0x26599f['nDbBy'](process[_0x5d3fb0(0x1d6)],_0x26599f[_0x5d3fb0(0x201)]),'stdio':_0x26599f['DmXGK'],'cwd':process['cwd'](),'env':Object['assign']({},process[_0x5d3fb0(0x221)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x5d3fb0(0x1fe)](_0x5f2a9f),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x2781c3['config'][_0x5d3fb0(0x21d)][_0x5d3fb0(0x22f)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x2781c3[_0x5d3fb0(0x24d)]['testContextOptions']['skipSessionName'],'BROWSERSTACK_LOG_LEVEL':_0x2781c3['config'][_0x5d3fb0(0x255)]})}),_0x5614bb=()=>{const _0x5cb943=_0x5d3fb0;try{const _0x38eb7a=path[_0x5cb943(0x1da)](helper[_0x5cb943(0x247)](),_0x26599f[_0x5cb943(0x1db)],_0x26599f[_0x5cb943(0x241)]);if(fs['existsSync'](_0x38eb7a)){let _0xe38172=fs[_0x5cb943(0x222)](_0x38eb7a);_0xe38172=JSON['parse'](_0xe38172),_0x2781c3['errorMessage']=_0xe38172,fs[_0x5cb943(0x242)](_0x38eb7a);}}catch(_0xe44620){logger[_0x5cb943(0x21b)](_0x26599f[_0x5cb943(0x233)](_0x26599f[_0x5cb943(0x1d4)],_0xe44620));}};_0xbd1ab2['on'](_0x26599f[_0x5d3fb0(0x266)],async _0xc6ba13=>{const _0x5163f9=_0x5d3fb0,_0x36db3b={};_0x36db3b['TxRJm']=_0x26599f[_0x5163f9(0x1db)];const _0x3986df=_0x36db3b;try{PerformanceTester[_0x5163f9(0x271)](PerformanceEvents[_0x5163f9(0x23c)]),_0x26599f[_0x5163f9(0x22e)](_0x5614bb);!BrowserstackCLI[_0x5163f9(0x21c)]()[_0x5163f9(0x22c)]()&&await TestHubHandler[_0x5163f9(0x205)]();await BrowserstackCLI['getInstance']()[_0x5163f9(0x205)](),TestDetails[_0x5163f9(0x232)](),_0x26599f[_0x5163f9(0x226)](printBuildLink),await utilities[_0x5163f9(0x1eb)](_0x2781c3),process[_0x5163f9(0x207)]=_0xc6ba13,logger[_0x5163f9(0x21b)](_0x5163f9(0x22b)+_0xc6ba13),logger['info']('Deleting\x20'+_0x2099b0),fs[_0x5163f9(0x242)](_0x2099b0);fs[_0x5163f9(0x1de)](_0x24589d)&&(logger[_0x5163f9(0x21b)]('Deleting\x20'+_0x24589d),fs[_0x5163f9(0x242)](_0x24589d));const _0x14e818=fs[_0x5163f9(0x212)](path[_0x5163f9(0x1da)](helper[_0x5163f9(0x247)](),_0x26599f[_0x5163f9(0x1db)]))['filter'](_0x4b39ba=>_0x4b39ba['startsWith']('trace_'));_0x14e818[_0x5163f9(0x257)](_0x301ea3=>{const _0x4c7e05=_0x5163f9;fs['unlinkSync'](path[_0x4c7e05(0x1da)](helper[_0x4c7e05(0x247)](),_0x3986df[_0x4c7e05(0x268)],_0x301ea3));});}catch(_0x208f33){logger[_0x5163f9(0x21b)](_0x26599f['lFTUH'](_0x26599f[_0x5163f9(0x26d)],_0x208f33));}});})();}function a38_0x5984(){const _0x590d39=['wZPXi','SDK_SETUP','MODULE','fDwFv','automation','155WmWFVq','winstonLogger','browserstackSetupConfig.json','finalExecution','isUndefined','1853949sVtLNL','gLFhO','515539RUhUWY','playwright-browserstack-sdk.config.cjs','../../helpers/logger','ZjAJq','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','isFalse','resolvedConfigFile','../utils/constants','measureWrapper','PZkVd','../../helpers/accessibility-automation/helper','indexOf','UeEis','Error\x20in\x20getting\x20funnel\x20data\x20results','301626xTNJrU','getConfigPath','bdqdB','4626550KYtsln','htquW','serializeToYamlString','zhYqK','playwright','stop','launchBuild','exitCode','isTrue','ISwRR','concat','jFhnC','\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}catch{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20This\x20is\x20a\x20failsafe\x20if\x20global-agent\x20present\x20inside\x20sdk\x20node_modules\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22./node_modules/browserstack-node-sdk/node_modules/global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20};\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap();','apply','hKacz','VQStQ','BROWSERSTACK_SETUP_CONFIG_PATH','PACKAGE_TYPE','readdirSync','getConfig','exports','length','browserstackAutomation','--disable-browserstack-automation','writeFileSync','jObvU','KQcaF','debug','getInstance','testContextOptions','pw_result.json','dPiDi','inherit','env','readFileSync','requirePWModule','dirname','testObservability','sgdds','push','--config=','../../helpers/test-observability/utils','getProxyUrl','Playwright\x20process\x20exited\x20with\x20code\x20','isRunning','test','groLk','skipSessionStatus','bootstrap','yEOVi','shutdown','lFTUH','setBrowserstackConfig','JOdSA','get','258oDvmmq','SDK_PRE_INITIALIZE','NFzeO','setFrameworkDetail','filter','SDK_CLEANUP','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','BROWSERSTACK_TEST_OBSERVABILITY','../../helpers/helper','yQwqC','LSjbi','unlinkSync','splice','--config','yMtVz','BROWSERSTACK_AUTOMATION','homedir','BROWSERSTACK_TEST_ACCESSIBILITY_YML','cwd','sSgwo','YtncV','../../helpers/utilities','config','AeqGv','../../helpers/test-observability/constants','initialize','192PnWMsd','.browserstack','dEqIw','validateRerunTestList','logLevel','1738308ApaASa','forEach','GnjRr','UbGGr','43996WqgtGq','trim','rERQL','BMdPx','win32','HvBkV','../v2/browserstackCLI','./accessibility-helper','../../helpers/testhub/testhubHandler','path','cliConfig','playwright-browserstack-sdk.config.js','ZsVeq','--disable-test-observability','TxRJm','slice','clearTempPWConfig','close','map','AnNVG','findIndex','NZLsY','./reporter/test-details','start','17437jGWXhz','getPackageType','nestedKeyValue','QSwbu','npx','platform','resolve','CoXfO','accessibility','join','YiNDk','srabz','Updated\x20config\x20file\x20name\x20to\x20-\x20','existsSync','aAYin','PLAYWRIGHT','KmMqs','BROWSERSTACK_RERUN_TESTS'];a38_0x5984=function(){return _0x590d39;};return a38_0x5984();}function a38_0x3021(_0x218af1,_0x53a9aa){const _0x5984d0=a38_0x5984();return a38_0x3021=function(_0x302117,_0x5aec4e){_0x302117=_0x302117-0x1d2;let _0x3429ad=_0x5984d0[_0x302117];return _0x3429ad;},a38_0x3021(_0x218af1,_0x53a9aa);}module[a38_0x2d1cd2(0x214)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a39_0x142b(){const _0x1b5501=['ScMOX','Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20','HyhSt','PLAYWRIGHT','error','oMzRy','DRSoa','includes','2dAYFWE','8465KDaNWY','./patches','cRFAS','DVgET','kQsgw','491384IGzqrp','winstonLogger','isHandlePWErrorSet','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','Running\x20existing\x20global\x20setup','KNmdC','LJcGn','exports','129231UIbsyY','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','compareVersions','debug','env','requirePWModule','function','config','1.33.0','Not\x20able\x20to\x20import\x20globalSetup','1293896kmcFIT','186pNZxzX','18wEQQpT','toString','format','./reporter/pwUtils','./mock-process.js','frmDK','329990miwmYs','util','../../helpers/test-observability/constants','fork','WLgPJ','900564IFietv','Kkxqf','Call\x20to\x20child\x20fork\x20with\x20args\x20','Znedr','child_process','582483GIABEP','apply'];a39_0x142b=function(){return _0x1b5501;};return a39_0x142b();}function a39_0x7881(_0x4571e1,_0x9d4f18){const _0x142b05=a39_0x142b();return a39_0x7881=function(_0x7881ff,_0x53f8b5){_0x7881ff=_0x7881ff-0xf1;let _0x152925=_0x142b05[_0x7881ff];return _0x152925;},a39_0x7881(_0x4571e1,_0x9d4f18);}const a39_0x3ad307=a39_0x7881;(function(_0x2e45d9,_0x716302){const _0x3ee65e=a39_0x7881,_0x3cb04a=_0x2e45d9();while(!![]){try{const _0x31d4a2=-parseInt(_0x3ee65e(0x123))/0x1+parseInt(_0x3ee65e(0x115))/0x2*(parseInt(_0x3ee65e(0x10b))/0x3)+-parseInt(_0x3ee65e(0x11b))/0x4+-parseInt(_0x3ee65e(0x116))/0x5*(parseInt(_0x3ee65e(0xfa))/0x6)+parseInt(_0x3ee65e(0x106))/0x7+parseInt(_0x3ee65e(0xf9))/0x8+parseInt(_0x3ee65e(0xfb))/0x9*(-parseInt(_0x3ee65e(0x101))/0xa);if(_0x31d4a2===_0x716302)break;else _0x3cb04a['push'](_0x3cb04a['shift']());}catch(_0x2e1664){_0x3cb04a['push'](_0x3cb04a['shift']());}}}(a39_0x142b,0x1bd48));const util=require(a39_0x3ad307(0x102)),child_process=require(a39_0x3ad307(0x10a)),{FRAMEWORKS}=require(a39_0x3ad307(0x103)),{getFrameworkVersion,debug}=require('../../helpers/test-observability/utils'),helper=require('../../helpers/helper'),{getLoadUtilsPath,getForkProcessPath}=require(a39_0x3ad307(0xfe)),{mockIsWorkerRedundant}=require(a39_0x3ad307(0x117)),logger=require('../../helpers/logger')[a39_0x3ad307(0x11c)];module[a39_0x3ad307(0x122)]=async function(_0x3a7535){const _0x4df2b6=a39_0x3ad307,_0x3bf862={'LJcGn':function(_0x4573fa,_0x12f67e){return _0x4573fa(_0x12f67e);},'HyhSt':function(_0xeb708a){return _0xeb708a();},'KNmdC':_0x4df2b6(0xff),'yZVLJ':function(_0x103b0e){return _0x103b0e();},'Kkxqf':function(_0xe874c3){return _0xe874c3();},'LLrxm':function(_0x2dc29a,_0x4cd923){return _0x2dc29a(_0x4cd923);},'cRFAS':_0x4df2b6(0x11f),'WLgPJ':function(_0x28e28b){return _0x28e28b();},'oMzRy':function(_0x565d19,_0x3e696f){return _0x565d19>=_0x3e696f;},'DVgET':_0x4df2b6(0xf7),'Znedr':function(_0x43acac,_0x429760,_0x56892c){return _0x43acac(_0x429760,_0x56892c);},'kQsgw':function(_0x596ed6,_0x1edded){return _0x596ed6!==_0x1edded;},'ScMOX':_0x4df2b6(0xf5),'frmDK':_0x4df2b6(0xf8),'DRSoa':function(_0x38b388,_0x6dea84){return _0x38b388(_0x6dea84);}},_0x14133c=child_process[_0x4df2b6(0x104)];if(helper[_0x4df2b6(0x11d)]())try{_0x3bf862[_0x4df2b6(0x107)](mockIsWorkerRedundant);}catch(_0x4a5081){logger[_0x4df2b6(0xf2)](_0x4df2b6(0x10e)+util[_0x4df2b6(0xfd)](_0x4a5081));}child_process[_0x4df2b6(0x104)]=function(){const _0x41711d=_0x4df2b6;return _0x3bf862['LJcGn'](debug,_0x41711d(0x108)+arguments[0x0]),arguments[0x0][_0x41711d(0x114)](_0x3bf862[_0x41711d(0x10f)](getForkProcessPath))?arguments[0x0]=require['resolve'](_0x3bf862[_0x41711d(0x120)]):logger[_0x41711d(0x111)]('Path\x20'+_0x3bf862['yZVLJ'](getForkProcessPath)+'\x20is\x20not\x20found'),_0x14133c[_0x41711d(0x10c)](null,arguments);};if(process['env'][_0x4df2b6(0x124)]){_0x3bf862['LLrxm'](debug,_0x3bf862[_0x4df2b6(0x118)]);try{const {loadGlobalHook:_0x1d4931}=helper[_0x4df2b6(0xf4)][_0x4df2b6(0x10c)](null,_0x3bf862[_0x4df2b6(0x105)](getLoadUtilsPath)),_0x1726c=_0x3bf862[_0x4df2b6(0x121)](getFrameworkVersion,FRAMEWORKS[_0x4df2b6(0x110)]);let _0x41e1aa=_0x3a7535;if(_0x3bf862[_0x4df2b6(0x112)](helper[_0x4df2b6(0xf1)](_0x1726c,_0x3bf862[_0x4df2b6(0x119)]),0x0)){const _0x336af4={};_0x336af4[_0x4df2b6(0xf6)]=_0x3a7535,_0x41e1aa=_0x336af4;}const _0x525196=await _0x3bf862[_0x4df2b6(0x109)](_0x1d4931,_0x41e1aa,process[_0x4df2b6(0xf3)][_0x4df2b6(0x124)]);if(_0x3bf862[_0x4df2b6(0x11a)](typeof _0x525196,_0x3bf862[_0x4df2b6(0x10d)]))throw new Error(_0x3bf862[_0x4df2b6(0x100)]);return _0x525196[_0x4df2b6(0x10c)](null,arguments);}catch(_0x5e9c95){_0x3bf862[_0x4df2b6(0x113)](debug,_0x4df2b6(0x11e)+_0x5e9c95[_0x4df2b6(0xfc)]());}}};
|