browserstack-node-sdk 1.34.39 → 1.34.40
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/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/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/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/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/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.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/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
|
-
function a29_0x2796(_0x337e1e,_0x1a7c26){const _0x1a2526=a29_0x1a25();return a29_0x2796=function(_0x279637,_0x12225c){_0x279637=_0x279637-0x18c;let _0x55157e=_0x1a2526[_0x279637];return _0x55157e;},a29_0x2796(_0x337e1e,_0x1a7c26);}const a29_0x1e6ebc=a29_0x2796;(function(_0x15cd24,_0x46e1d2){const _0x5f32a4=a29_0x2796,_0x3e1fc7=_0x15cd24();while(!![]){try{const _0x36c0fa=-parseInt(_0x5f32a4(0x19e))/0x1+parseInt(_0x5f32a4(0x1b5))/0x2+-parseInt(_0x5f32a4(0x1e7))/0x3*(parseInt(_0x5f32a4(0x1cd))/0x4)+-parseInt(_0x5f32a4(0x1f9))/0x5*(-parseInt(_0x5f32a4(0x1ac))/0x6)+parseInt(_0x5f32a4(0x1d3))/0x7+parseInt(_0x5f32a4(0x195))/0x8+parseInt(_0x5f32a4(0x1ee))/0x9*(-parseInt(_0x5f32a4(0x1d6))/0xa);if(_0x36c0fa===_0x46e1d2)break;else _0x3e1fc7['push'](_0x3e1fc7['shift']());}catch(_0x298f7d){_0x3e1fc7['push'](_0x3e1fc7['shift']());}}}(a29_0x1a25,0xb6c10));const logger=require(a29_0x1e6ebc(0x1f1))['winstonLogger'],helper=require(a29_0x1e6ebc(0x1a3)),constants=require(a29_0x1e6ebc(0x1a9)),hubAllocator=require(a29_0x1e6ebc(0x1ab)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a29_0x1e6ebc(0x190)),{setAccessibilityCapabilities,setExtension}=require(a29_0x1e6ebc(0x1dd)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0x1e6ebc(0x1d1)),globals=require(a29_0x1e6ebc(0x19d)),{overrideExecute}=require(a29_0x1e6ebc(0x202)),modify=(_0x32d628,_0x419271=null,_0x26a198=![])=>{const _0x5af3a1=a29_0x1e6ebc,_0xa6f8c8={'RWiAm':function(_0x527f1c,_0x440d05){return _0x527f1c!==_0x440d05;},'VwaPQ':_0x5af3a1(0x1b7),'PoUHx':function(_0x425a7d,_0x511772){return _0x425a7d+_0x511772;},'rwStL':'https://','irqqe':_0x5af3a1(0x1c7),'vZYrC':'goog:chromeOptions','ADSai':_0x5af3a1(0x1f4),'AQvva':_0x5af3a1(0x1c5),'WLtYN':_0x5af3a1(0x1a4),'AzIic':'moz:firefoxOptions','fWxAo':_0x5af3a1(0x1b0),'hgTvT':_0x5af3a1(0x1ff),'jtNVQ':_0x5af3a1(0x197),'QZYZR':_0x5af3a1(0x1be),'UEtgP':function(_0x26146d,_0x3882b9){return _0x26146d===_0x3882b9;},'QRCdv':_0x5af3a1(0x203),'MUZrN':_0x5af3a1(0x1e6),'TkwLT':function(_0x31330c,_0x54cd54,_0xdd761d){return _0x31330c(_0x54cd54,_0xdd761d);},'HtRjc':_0x5af3a1(0x1d7),'sPQtE':_0x5af3a1(0x1b2),'RHpaB':function(_0x2ca83a,_0xd78f92){return _0x2ca83a(_0xd78f92);},'TGjie':_0x5af3a1(0x1c4),'JEdkH':function(_0x293dac){return _0x293dac();},'pHJTS':_0x5af3a1(0x1ca),'FvDjO':'isAccessibilityPlatform','enQVh':function(_0x421e57,_0x443368,_0x4dc746){return _0x421e57(_0x443368,_0x4dc746);},'UKnZf':function(_0x4bc137,_0x48980f){return _0x4bc137!==_0x48980f;},'spLky':'Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','orFqp':_0x5af3a1(0x1a6)},_0x54b85e=helper['requireHttpClient']();let _0x2f1aac;try{_0x2f1aac=helper['requireSeleniumWebdriver'](),_0x2f1aac[_0x5af3a1(0x200)]&&(_0x2f1aac['Builder']=_0x2f1aac['originalBuilder']);}catch(_0x33d086){return;}if(helper['isBrowserstackInfra']()){const _0x49647f={};_0x49647f['logLevel']=_0x32d628[_0x5af3a1(0x1c0)],helper[_0x5af3a1(0x1b9)](_0x49647f,new Map(),new Map()),logger[_0x5af3a1(0x1e5)](_0xa6f8c8['spLky']),logger[_0x5af3a1(0x1b4)](_0xa6f8c8[_0x5af3a1(0x1f5)]);}class _0x1cc687 extends _0x54b85e['HttpClient']{[_0x5af3a1(0x196)](_0x41c109){const _0x5c2131=_0x5af3a1;if(_0xa6f8c8[_0x5c2131(0x192)](_0x41c109[_0x5c2131(0x1bc)],_0xa6f8c8[_0x5c2131(0x1a1)])&&_0xa6f8c8[_0x5c2131(0x192)](global[_0x5c2131(0x1cc)],''))try{global[_0x5c2131(0x1cc)]=_0xa6f8c8[_0x5c2131(0x1fa)](_0xa6f8c8[_0x5c2131(0x1fa)](_0xa6f8c8[_0x5c2131(0x1c1)],global[_0x5c2131(0x1cc)]),_0xa6f8c8[_0x5c2131(0x1d2)]),this[_0x5c2131(0x1f2)]=hubAllocator[_0x5c2131(0x1e8)](global[_0x5c2131(0x1cc)]),logger[_0x5c2131(0x1b4)](_0x5c2131(0x18f)+global[_0x5c2131(0x1cc)]),global[_0x5c2131(0x1cc)]='';}catch(_0x541af4){logger['error'](_0x541af4);}return super[_0x5c2131(0x196)](_0x41c109);}}class _0x2ac8f3 extends _0x2f1aac[_0x5af3a1(0x1bd)]{[_0x5af3a1(0x1a7)](){const _0x37a09a=_0x5af3a1;return this[_0x37a09a(0x1d0)]=helper[_0x37a09a(0x1af)](_0x32d628),logger[_0x37a09a(0x1b4)](_0x37a09a(0x1ef)+this['url_']),this;}[_0x5af3a1(0x1db)](_0x33b5a6){const _0x13ea17=_0x5af3a1;let _0x12a92c={};for(const _0x1c68bc in _0x33b5a6){switch(_0x1c68bc){case _0xa6f8c8['vZYrC']:case _0xa6f8c8['ADSai']:this[_0x13ea17(0x18e)]&&(_0x12a92c=this[_0x13ea17(0x18e)][_0x13ea17(0x1b6)](this[_0x13ea17(0x18e)][_0x13ea17(0x1de)])||{},this[_0x13ea17(0x18e)][_0x13ea17(0x1b8)](this[_0x13ea17(0x18e)][_0x13ea17(0x1de)],helper['mergeDeep'](_0x12a92c,_0x33b5a6[_0x1c68bc])));break;case _0xa6f8c8['AQvva']:case _0xa6f8c8[_0x13ea17(0x201)]:this[_0x13ea17(0x1ce)]&&(_0x12a92c=this['edgeOptions_'][_0x13ea17(0x1b6)](this[_0x13ea17(0x1ce)]['CAPABILITY_KEY'])||{},this[_0x13ea17(0x1ce)][_0x13ea17(0x1b8)](this['edgeOptions_']['CAPABILITY_KEY'],helper[_0x13ea17(0x1bf)](_0x12a92c,_0x33b5a6[_0x1c68bc])));break;case _0xa6f8c8[_0x13ea17(0x19b)]:case _0xa6f8c8[_0x13ea17(0x1d4)]:this['firefoxOptions_']&&(_0x12a92c=this[_0x13ea17(0x1dc)][_0x13ea17(0x1b6)](this[_0x13ea17(0x1dc)]['CAPABILITY_KEY'])||{},this['firefoxOptions_'][_0x13ea17(0x1b8)](this['firefoxOptions_'][_0x13ea17(0x1de)],helper[_0x13ea17(0x1bf)](_0x12a92c,_0x33b5a6[_0x1c68bc])));break;case _0xa6f8c8[_0x13ea17(0x1ae)]:this[_0x13ea17(0x1ea)]&&(_0x12a92c=this[_0x13ea17(0x1ea)][_0x13ea17(0x1b6)](this['safariOptions_'][_0x13ea17(0x1de)])||{},this[_0x13ea17(0x1ea)][_0x13ea17(0x1b8)](this[_0x13ea17(0x1ea)][_0x13ea17(0x1de)],helper[_0x13ea17(0x1bf)](_0x12a92c,_0x33b5a6[_0x1c68bc])));break;case _0xa6f8c8['jtNVQ']:case _0xa6f8c8[_0x13ea17(0x18d)]:this[_0x13ea17(0x1e1)]&&(_0x12a92c=this[_0x13ea17(0x1e1)][_0x13ea17(0x1b6)](this[_0x13ea17(0x1e1)][_0x13ea17(0x1de)])||{},this[_0x13ea17(0x1e1)][_0x13ea17(0x1b8)](this[_0x13ea17(0x1e1)]['CAPABILITY_KEY'],helper[_0x13ea17(0x1bf)](_0x12a92c,_0x33b5a6[_0x1c68bc])));break;}}}[_0x5af3a1(0x1df)](){const _0x7cf123=_0x5af3a1,_0x1e12e3={'eelBQ':function(_0x43acea,_0x35a9c1){const _0x11af8b=a29_0x2796;return _0xa6f8c8[_0x11af8b(0x1b1)](_0x43acea,_0x35a9c1);},'WxitC':_0xa6f8c8['QRCdv']};return logger[_0x7cf123(0x1b4)](_0xa6f8c8[_0x7cf123(0x1e0)]),this[_0x7cf123(0x1db)](_0x32d628['capability']),Object[_0x7cf123(0x1d8)](_0x32d628[_0x7cf123(0x1c3)])[_0x7cf123(0x1c6)](_0x577221=>{const _0x527259=_0x7cf123,_0x4b664b=this[_0x527259(0x1a5)]['get'](_0x577221);_0x1e12e3['eelBQ'](typeof _0x4b664b,_0x1e12e3['WxitC'])?this[_0x527259(0x1a5)][_0x527259(0x1b8)](_0x577221,helper['mergeDeep'](_0x4b664b,_0x32d628['capability'][_0x577221])):this[_0x527259(0x1a5)][_0x527259(0x1b8)](_0x577221,_0x32d628['capability'][_0x577221]);}),this;}[_0x5af3a1(0x1c9)](){const _0x50675c=_0x5af3a1,_0x495a20={'oPelC':_0xa6f8c8[_0x50675c(0x18c)],'RYhqm':_0xa6f8c8[_0x50675c(0x1e9)],'JhpZA':function(_0x567fd2,_0x9fcf33,_0x2b4274){const _0x1700a3=_0x50675c;return _0xa6f8c8[_0x1700a3(0x1a8)](_0x567fd2,_0x9fcf33,_0x2b4274);},'zBaBG':function(_0x9f974f,_0x1b51e7){return _0xa6f8c8['RHpaB'](_0x9f974f,_0x1b51e7);}};if(helper[_0x50675c(0x1bb)]()){const _0x1a31cf=_0xa6f8c8[_0x50675c(0x1fe)][_0x50675c(0x1fc)]('|');let _0x26a87b=0x0;while(!![]){switch(_0x1a31cf[_0x26a87b++]){case'0':this['setServer']();continue;case'1':if(helper[_0x50675c(0x1ad)](_0x32d628[_0x50675c(0x1f6)]['proxyUrl']))this[_0x50675c(0x1b3)]=helper[_0x50675c(0x1e3)](_0x32d628['proxySettings']['proxyUrl']);else _0x32d628[_0x50675c(0x1f6)]['proxyUrl']&&(this[_0x50675c(0x1c2)]=_0x32d628['proxySettings'][_0x50675c(0x194)],logger[_0x50675c(0x1b4)](_0x50675c(0x1aa)+this[_0x50675c(0x1c2)]));continue;case'2':_0xa6f8c8['JEdkH'](isAccessibilityAutomationSession)&&_0xa6f8c8[_0x50675c(0x198)](setAccessibilityCapabilities,_0x32d628);continue;case'3':this['setCapabilities']();continue;case'4':logger['debug'](_0xa6f8c8[_0x50675c(0x1d5)]);continue;case'5':globals[_0x50675c(0x191)](_0xa6f8c8[_0x50675c(0x1cf)])&&(!_0xa6f8c8['TkwLT'](setExtension,this,_0x32d628)&&globals['setGlobal'](_0xa6f8c8[_0x50675c(0x1cf)],![]));continue;}break;}}const _0x5e179f=super[_0x50675c(0x1c9)]();return _0x5e179f['session_']['then'](_0x3ea485=>{const _0x5174cd=_0x50675c;try{const _0x326b61=_0x3ea485[_0x5174cd(0x19f)][_0x5174cd(0x1b6)](_0x495a20[_0x5174cd(0x1a2)]);_0x326b61?(logger[_0x5174cd(0x1b4)](_0x5174cd(0x1f3)+_0x326b61),hubAllocator[_0x5174cd(0x1a0)](_0x326b61),helper['storeOptimalHubUrl'](_0x326b61)):logger['debug'](_0x495a20['RYhqm']);}catch(_0x2fb46c){logger['debug'](_0x5174cd(0x1c8)+_0x2fb46c);}}),_0x5e179f[_0x50675c(0x19a)]=0x0,_0x5e179f[_0x50675c(0x1da)]&&_0x5e179f[_0x50675c(0x1da)](_0x1370a7=>{const _0xe3d914=_0x50675c,_0x12397d={'sqwSI':function(_0x1ce05a,_0x1addbe,_0x56a1ad){const _0x552bf8=a29_0x2796;return _0x495a20[_0x552bf8(0x1ba)](_0x1ce05a,_0x1addbe,_0x56a1ad);}};_0x495a20['JhpZA'](overrideQuit,_0x1370a7,_0x5e179f),_0x495a20[_0xe3d914(0x1eb)](overrideTakeScreenshot,_0x1370a7),helper[_0xe3d914(0x19c)](_0x1370a7,_0x32d628),_0x495a20[_0xe3d914(0x1ba)](overrideExecute,_0x1370a7,_0x32d628),_0x1370a7[_0xe3d914(0x1f0)]=async()=>{const _0x3b0b52=_0xe3d914;return await _0x12397d[_0x3b0b52(0x1ec)](getAccessibilityResultsSummary,_0x1370a7,global);},_0x1370a7[_0xe3d914(0x1fb)]=async()=>{return await _0x12397d['sqwSI'](getAccessibilityResults,_0x1370a7,global);};}),_0x5e179f['getAccessibilityResultsSummary']=async()=>{const _0x4ae4c8=_0x50675c;return await _0x495a20[_0x4ae4c8(0x1ba)](getAccessibilityResultsSummary,_0x5e179f,global);},_0x5e179f['getAccessibilityResults']=async()=>{const _0x4bb991=_0x50675c;return await _0xa6f8c8[_0x4bb991(0x1a8)](getAccessibilityResults,_0x5e179f,global);},_0xa6f8c8['RHpaB'](overrideTakeScreenshot,_0x5e179f),_0xa6f8c8[_0x50675c(0x198)](overrideQuit,_0x5e179f),helper[_0x50675c(0x19c)](_0x5e179f,_0x32d628),_0xa6f8c8[_0x50675c(0x1e2)](overrideExecute,_0x5e179f,_0x32d628),helper[_0x50675c(0x1d9)](global[_0x50675c(0x1ed)])&&(global[_0x50675c(0x1ed)]=[]),helper['isUndefined'](global[_0x50675c(0x199)])&&(global[_0x50675c(0x199)]=[]),global['__driversArray']['push'](_0x5e179f),global[_0x50675c(0x1cb)]=_0x5e179f,_0xa6f8c8[_0x50675c(0x1e4)](global['__drivers'],undefined)&&global[_0x50675c(0x199)][_0x50675c(0x193)](_0x5e179f),_0x419271&&helper[_0x50675c(0x1d9)](_0x419271[_0x50675c(0x1f8)][_0x50675c(0x1ed)])&&(_0x419271[_0x50675c(0x1f8)][_0x50675c(0x1ed)]=[]),_0x419271&&_0xa6f8c8[_0x50675c(0x1e4)](_0x419271[_0x50675c(0x1f8)][_0x50675c(0x199)],undefined)&&(_0x419271[_0x50675c(0x1f8)][_0x50675c(0x199)][_0x50675c(0x193)](_0x5e179f),_0x419271[_0x50675c(0x1f8)][_0x50675c(0x1ed)]['push'](_0x5e179f)),_0x5e179f;}}return _0x2f1aac[_0x5af3a1(0x200)]=_0x2f1aac[_0x5af3a1(0x1bd)],_0x2f1aac[_0x5af3a1(0x1bd)]=_0x2ac8f3,_0x54b85e['HttpClient']=_0x1cc687,_0x2f1aac;};function a29_0x1a25(){const _0x1709f7=['UEtgP','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','agent_','debug','856854KonfHO','get','/session','set','setLogLevel','JhpZA','isBrowserstackInfra','path','Builder','ieOptions','mergeDeep','browserStackLogLevel','rwStL','proxy_','capability','2|0|3|1|5|4','ms:edgeOptions','forEach','/wd/hub','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','build','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','__driver','newHubUrl','20wsHoEm','edgeOptions_','FvDjO','url_','../../../helpers/accessibility-automation/helper','irqqe','2693558lRalVr','fWxAo','pHJTS','680rmszTa','optimalHubUrl','keys','isUndefined','then','__setBrowserOptions','firefoxOptions_','../accessibility-automation/helper','CAPABILITY_KEY','setCapabilities','MUZrN','ieOptions_','enQVh','getHttpAgent','UKnZf','info','Setting\x20Browserstack\x20capabilities','574419MvZuOX','getRequestOptions','sPQtE','safariOptions_','zBaBG','sqwSI','__driversArray','114876NmBIQe','Hub\x20url\x20set\x20to\x20','getAccessibilityResultsSummary','../../../helpers/logger','options_','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','chromeOptions','orFqp','proxySettings','exports','global','6803915GmfuiK','PoUHx','getAccessibilityResults','split','browserstackAgentObservability','TGjie','safari.options','originalBuilder','WLtYN','./helpers/patchHelper','object','HtRjc','QZYZR','chromeOptions_','New\x20hub\x20url\x20set\x20to\x20','../../../helpers/patchHelpers','getGlobal','RWiAm','push','proxyUrl','7543608NbNsfI','send','se:ieOptions','RHpaB','__drivers','quitCount_','AzIic','overrideGet','../../../helpers/globals','543078MAjBbj','caps_','updateHubUrl','VwaPQ','oPelC','../../../helpers/helper','edgeOptions','capabilities_','Modifying\x20webdriver\x20builder','setServer','TkwLT','../../../bin/utils/constants','Proxy\x20set\x20to\x20','../../../hubAllocationMethods','6RzlIUd','isPacProxy','hgTvT','getHubUrl','firefoxOptions'];a29_0x1a25=function(){return _0x1709f7;};return a29_0x1a25();}module[a29_0x1e6ebc(0x1f7)][a29_0x1e6ebc(0x1fd)]=modify;
|
|
1
|
+
function a29_0x1b91(){const _0x101f22=['Modifying\x20webdriver\x20builder','getRequestOptions','mergeDeep','7kuOjST','qsgRy','agent_','originalBuilder','capability','__driver','forEach','split','hHxNY','qCoKn','hyHYt','gClKn','3656820cmzLnY','dWpxu','../../../helpers/accessibility-automation/helper','build','overrideGet','get','58214LEMObU','error','getAccessibilityResultsSummary','JhLOf','/session','logLevel','info','AbliC','./helpers/patchHelper','firefoxOptions','mWysf','Builder','moz:firefoxOptions','gyzKN','3|1|2|0|4|5','firefoxOptions_','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','QDEtR','optimalHubUrl','chromeOptions_','setLogLevel','__driversArray','isAccessibilityPlatform','setCapabilities','getGlobal','updateHubUrl','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','kOMHr','10066984hamYrY','1954833Ycbwcu','caps_','requireHttpClient','ieOptions_','../accessibility-automation/helper','proxyUrl','1246240WCWZNu','../../../helpers/logger','oIdDW','6qoYtGG','../../../helpers/patchHelpers','set','getHubUrl','../../../hubAllocationMethods','path','__drivers','debug','send','zUZiY','ieOptions','safari.options','then','session_','isBrowserstackInfra','storeOptimalHubUrl','BWgBJ','global','qVmUU','isPacProxy','3168072XYgwsc','setGlobal','/wd/hub','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','__setBrowserOptions','safariOptions_','JUPMy','getAccessibilityResults','Eysyl','YEoJL','newHubUrl','tQDmg','HttpClient','CAPABILITY_KEY','isUndefined','Setting\x20Browserstack\x20capabilities','options_','exports','browserStackLogLevel','goog:chromeOptions','winstonLogger','url_','rjnMM','setServer','proxySettings','aHDgE','edgeOptions_','1974585XNTRUW','44mSbCGh','ZxQxq','qXjhF','capabilities_','xTJvQ','ms:edgeOptions','push','edgeOptions','proxy_','upEGF','qgmkR'];a29_0x1b91=function(){return _0x101f22;};return a29_0x1b91();}function a29_0x20dd(_0x403431,_0x40198e){const _0x1b91e4=a29_0x1b91();return a29_0x20dd=function(_0x20dd64,_0x138f10){_0x20dd64=_0x20dd64-0x82;let _0x5bfbf3=_0x1b91e4[_0x20dd64];return _0x5bfbf3;},a29_0x20dd(_0x403431,_0x40198e);}const a29_0x51b840=a29_0x20dd;(function(_0x152426,_0x238dbe){const _0x4d95bc=a29_0x20dd,_0xb570f0=_0x152426();while(!![]){try{const _0x498dd7=-parseInt(_0x4d95bc(0xe3))/0x1*(-parseInt(_0x4d95bc(0x8d))/0x2)+parseInt(_0x4d95bc(0xaa))/0x3+parseInt(_0x4d95bc(0xb0))/0x4+parseInt(_0x4d95bc(0xe2))/0x5*(parseInt(_0x4d95bc(0xb3))/0x6)+-parseInt(_0x4d95bc(0xf1))/0x7*(parseInt(_0x4d95bc(0xa9))/0x8)+-parseInt(_0x4d95bc(0xc7))/0x9+-parseInt(_0x4d95bc(0x87))/0xa;if(_0x498dd7===_0x238dbe)break;else _0xb570f0['push'](_0xb570f0['shift']());}catch(_0xe2725){_0xb570f0['push'](_0xb570f0['shift']());}}}(a29_0x1b91,0xa1ccd));const logger=require(a29_0x51b840(0xb1))[a29_0x51b840(0xdb)],helper=require('../../../helpers/helper'),constants=require('../../../bin/utils/constants'),hubAllocator=require(a29_0x51b840(0xb7)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a29_0x51b840(0xb4)),{setAccessibilityCapabilities,setExtension}=require(a29_0x51b840(0xae)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0x51b840(0x89)),globals=require('../../../helpers/globals'),{overrideExecute}=require(a29_0x51b840(0x95)),modify=(_0x57df45,_0x25a690=null,_0x5a9eb9=![])=>{const _0x48ead6=a29_0x51b840,_0x66483f={'qsgRy':function(_0x308fef,_0x69c4be){return _0x308fef!==_0x69c4be;},'eWLEK':_0x48ead6(0x91),'gClKn':function(_0xd78724,_0x1856d9){return _0xd78724!==_0x1856d9;},'hHxNY':function(_0x44c874,_0x2d6f17){return _0x44c874+_0x2d6f17;},'kOMHr':'https://','JhLOf':_0x48ead6(0xc9),'ALisf':_0x48ead6(0xda),'JUPMy':'chromeOptions','xTJvQ':_0x48ead6(0xe8),'hudRi':_0x48ead6(0xea),'aHDgE':_0x48ead6(0x99),'Eysyl':_0x48ead6(0x96),'BWgBJ':_0x48ead6(0xbe),'qCoKn':'se:ieOptions','kmELe':_0x48ead6(0xbd),'QDEtR':function(_0xbc2d0d,_0x40c612){return _0xbc2d0d===_0x40c612;},'tQDmg':'object','upEGF':_0x48ead6(0xd6),'oIdDW':_0x48ead6(0x9f),'hyHYt':'OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','mWysf':function(_0x3bcd75,_0x5983a8,_0x25be9c){return _0x3bcd75(_0x5983a8,_0x25be9c);},'qVmUU':function(_0x1c074f,_0x37bf19){return _0x1c074f(_0x37bf19);},'zUZiY':function(_0x590aba,_0x152fcf,_0x20550f){return _0x590aba(_0x152fcf,_0x20550f);},'qXjhF':_0x48ead6(0x9b),'AbliC':function(_0x328fbb){return _0x328fbb();},'gyzKN':_0x48ead6(0xa3),'GTAWX':_0x48ead6(0x9d),'xPkSA':function(_0x534c8c,_0x3ea1c2){return _0x534c8c(_0x3ea1c2);},'rjnMM':function(_0x22954f,_0x1a9e36,_0x3b0b41){return _0x22954f(_0x1a9e36,_0x3b0b41);},'dWpxu':_0x48ead6(0xa7),'qgmkR':_0x48ead6(0xee)},_0x5f5b53=helper[_0x48ead6(0xac)]();let _0x499418;try{_0x499418=helper['requireSeleniumWebdriver'](),_0x499418[_0x48ead6(0xf4)]&&(_0x499418[_0x48ead6(0x98)]=_0x499418['originalBuilder']);}catch(_0x4b2116){return;}if(helper[_0x48ead6(0xc1)]()){const _0xa5ab28={};_0xa5ab28[_0x48ead6(0x92)]=_0x57df45[_0x48ead6(0xd9)],helper[_0x48ead6(0xa1)](_0xa5ab28,new Map(),new Map()),logger[_0x48ead6(0x93)](_0x66483f[_0x48ead6(0x88)]),logger[_0x48ead6(0xba)](_0x66483f[_0x48ead6(0xed)]);}class _0x19550f extends _0x5f5b53[_0x48ead6(0xd3)]{[_0x48ead6(0xbb)](_0xb0ba70){const _0xacf3c0=_0x48ead6;if(_0x66483f[_0xacf3c0(0xf2)](_0xb0ba70[_0xacf3c0(0xb8)],_0x66483f['eWLEK'])&&_0x66483f[_0xacf3c0(0x86)](global['newHubUrl'],''))try{global[_0xacf3c0(0xd1)]=_0x66483f[_0xacf3c0(0x83)](_0x66483f[_0xacf3c0(0x83)](_0x66483f[_0xacf3c0(0xa8)],global[_0xacf3c0(0xd1)]),_0x66483f[_0xacf3c0(0x90)]),this[_0xacf3c0(0xd7)]=hubAllocator[_0xacf3c0(0xef)](global[_0xacf3c0(0xd1)]),logger[_0xacf3c0(0xba)]('New\x20hub\x20url\x20set\x20to\x20'+global[_0xacf3c0(0xd1)]),global[_0xacf3c0(0xd1)]='';}catch(_0x323479){logger[_0xacf3c0(0x8e)](_0x323479);}return super[_0xacf3c0(0xbb)](_0xb0ba70);}}class _0x33d8b3 extends _0x499418[_0x48ead6(0x98)]{[_0x48ead6(0xde)](){const _0xcc5019=_0x48ead6;return this[_0xcc5019(0xdc)]=helper[_0xcc5019(0xb6)](_0x57df45),logger[_0xcc5019(0xba)]('Hub\x20url\x20set\x20to\x20'+this[_0xcc5019(0xdc)]),this;}[_0x48ead6(0xcb)](_0x3439b8){const _0x3bad6d=_0x48ead6;let _0x2ed713={};for(const _0x11ed1d in _0x3439b8){switch(_0x11ed1d){case _0x66483f['ALisf']:case _0x66483f[_0x3bad6d(0xcd)]:this[_0x3bad6d(0xa0)]&&(_0x2ed713=this['chromeOptions_'][_0x3bad6d(0x8c)](this[_0x3bad6d(0xa0)]['CAPABILITY_KEY'])||{},this[_0x3bad6d(0xa0)][_0x3bad6d(0xb5)](this['chromeOptions_'][_0x3bad6d(0xd4)],helper[_0x3bad6d(0xf0)](_0x2ed713,_0x3439b8[_0x11ed1d])));break;case _0x66483f[_0x3bad6d(0xe7)]:case _0x66483f['hudRi']:this[_0x3bad6d(0xe1)]&&(_0x2ed713=this[_0x3bad6d(0xe1)]['get'](this[_0x3bad6d(0xe1)][_0x3bad6d(0xd4)])||{},this[_0x3bad6d(0xe1)]['set'](this[_0x3bad6d(0xe1)][_0x3bad6d(0xd4)],helper[_0x3bad6d(0xf0)](_0x2ed713,_0x3439b8[_0x11ed1d])));break;case _0x66483f[_0x3bad6d(0xe0)]:case _0x66483f[_0x3bad6d(0xcf)]:this[_0x3bad6d(0x9c)]&&(_0x2ed713=this[_0x3bad6d(0x9c)][_0x3bad6d(0x8c)](this[_0x3bad6d(0x9c)][_0x3bad6d(0xd4)])||{},this[_0x3bad6d(0x9c)][_0x3bad6d(0xb5)](this[_0x3bad6d(0x9c)][_0x3bad6d(0xd4)],helper['mergeDeep'](_0x2ed713,_0x3439b8[_0x11ed1d])));break;case _0x66483f[_0x3bad6d(0xc3)]:this[_0x3bad6d(0xcc)]&&(_0x2ed713=this['safariOptions_']['get'](this['safariOptions_'][_0x3bad6d(0xd4)])||{},this['safariOptions_']['set'](this[_0x3bad6d(0xcc)]['CAPABILITY_KEY'],helper['mergeDeep'](_0x2ed713,_0x3439b8[_0x11ed1d])));break;case _0x66483f[_0x3bad6d(0x84)]:case _0x66483f['kmELe']:this[_0x3bad6d(0xad)]&&(_0x2ed713=this[_0x3bad6d(0xad)][_0x3bad6d(0x8c)](this[_0x3bad6d(0xad)]['CAPABILITY_KEY'])||{},this[_0x3bad6d(0xad)][_0x3bad6d(0xb5)](this[_0x3bad6d(0xad)][_0x3bad6d(0xd4)],helper['mergeDeep'](_0x2ed713,_0x3439b8[_0x11ed1d])));break;}}}[_0x48ead6(0xa4)](){const _0x514ff6=_0x48ead6;return logger[_0x514ff6(0xba)](_0x66483f[_0x514ff6(0xec)]),this['__setBrowserOptions'](_0x57df45[_0x514ff6(0xf5)]),Object['keys'](_0x57df45[_0x514ff6(0xf5)])[_0x514ff6(0xf7)](_0x50124f=>{const _0x260171=_0x514ff6,_0x14ad03=this[_0x260171(0xe6)][_0x260171(0x8c)](_0x50124f);_0x66483f[_0x260171(0x9e)](typeof _0x14ad03,_0x66483f[_0x260171(0xd2)])?this[_0x260171(0xe6)][_0x260171(0xb5)](_0x50124f,helper[_0x260171(0xf0)](_0x14ad03,_0x57df45[_0x260171(0xf5)][_0x50124f])):this[_0x260171(0xe6)]['set'](_0x50124f,_0x57df45['capability'][_0x50124f]);}),this;}['build'](){const _0x312923=_0x48ead6,_0x1bfae1={'YEoJL':function(_0x11db46,_0x30ac2c,_0x50408a){const _0x3a4d5d=a29_0x20dd;return _0x66483f[_0x3a4d5d(0x97)](_0x11db46,_0x30ac2c,_0x50408a);}};if(helper[_0x312923(0xc1)]()){const _0x34e957=_0x66483f[_0x312923(0xe5)][_0x312923(0x82)]('|');let _0x8a4ad1=0x0;while(!![]){switch(_0x34e957[_0x8a4ad1++]){case'0':if(helper[_0x312923(0xc6)](_0x57df45[_0x312923(0xdf)]['proxyUrl']))this[_0x312923(0xf3)]=helper['getHttpAgent'](_0x57df45['proxySettings'][_0x312923(0xaf)]);else _0x57df45['proxySettings'][_0x312923(0xaf)]&&(this[_0x312923(0xeb)]=_0x57df45[_0x312923(0xdf)][_0x312923(0xaf)],logger[_0x312923(0xba)]('Proxy\x20set\x20to\x20'+this[_0x312923(0xeb)]));continue;case'1':this[_0x312923(0xde)]();continue;case'2':this[_0x312923(0xa4)]();continue;case'3':_0x66483f[_0x312923(0x94)](isAccessibilityAutomationSession)&&_0x66483f['qVmUU'](setAccessibilityCapabilities,_0x57df45);continue;case'4':globals[_0x312923(0xa5)](_0x66483f[_0x312923(0x9a)])&&(!_0x66483f[_0x312923(0x97)](setExtension,this,_0x57df45)&&globals[_0x312923(0xc8)](_0x66483f[_0x312923(0x9a)],![]));continue;case'5':logger[_0x312923(0xba)](_0x66483f['GTAWX']);continue;}break;}}const _0x102d60=super[_0x312923(0x8a)]();return _0x102d60[_0x312923(0xc0)][_0x312923(0xbf)](_0x1f3472=>{const _0xaca91=_0x312923;try{const _0x55b122=_0x1f3472[_0xaca91(0xab)][_0xaca91(0x8c)](_0x66483f[_0xaca91(0xb2)]);_0x55b122?(logger[_0xaca91(0xba)](_0xaca91(0xca)+_0x55b122),hubAllocator[_0xaca91(0xa6)](_0x55b122),helper[_0xaca91(0xc2)](_0x55b122)):logger['debug'](_0x66483f[_0xaca91(0x85)]);}catch(_0x1ad63b){logger[_0xaca91(0xba)]('ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20'+_0x1ad63b);}}),_0x102d60['quitCount_']=0x0,_0x102d60['then']&&_0x102d60['then'](_0x5c3760=>{const _0x56c434=_0x312923,_0x4f9305={'ZxQxq':function(_0xb1d3d7,_0xcb14ba,_0x76a82b){return _0x66483f['mWysf'](_0xb1d3d7,_0xcb14ba,_0x76a82b);}};_0x66483f['mWysf'](overrideQuit,_0x5c3760,_0x102d60),_0x66483f[_0x56c434(0xc5)](overrideTakeScreenshot,_0x5c3760),helper[_0x56c434(0x8b)](_0x5c3760,_0x57df45),_0x66483f[_0x56c434(0x97)](overrideExecute,_0x5c3760,_0x57df45),_0x5c3760[_0x56c434(0x8f)]=async()=>{const _0x4bcade=_0x56c434;return await _0x4f9305[_0x4bcade(0xe4)](getAccessibilityResultsSummary,_0x5c3760,global);},_0x5c3760[_0x56c434(0xce)]=async()=>{const _0x12a9b1=_0x56c434;return await _0x1bfae1[_0x12a9b1(0xd0)](getAccessibilityResults,_0x5c3760,global);};}),_0x102d60[_0x312923(0x8f)]=async()=>{const _0x36392a=_0x312923;return await _0x1bfae1[_0x36392a(0xd0)](getAccessibilityResultsSummary,_0x102d60,global);},_0x102d60[_0x312923(0xce)]=async()=>{const _0x427926=_0x312923;return await _0x66483f[_0x427926(0xbc)](getAccessibilityResults,_0x102d60,global);},_0x66483f['xPkSA'](overrideTakeScreenshot,_0x102d60),_0x66483f['xPkSA'](overrideQuit,_0x102d60),helper[_0x312923(0x8b)](_0x102d60,_0x57df45),_0x66483f[_0x312923(0xdd)](overrideExecute,_0x102d60,_0x57df45),helper[_0x312923(0xd5)](global[_0x312923(0xa2)])&&(global[_0x312923(0xa2)]=[]),helper['isUndefined'](global[_0x312923(0xb9)])&&(global[_0x312923(0xb9)]=[]),global['__driversArray']['push'](_0x102d60),global[_0x312923(0xf6)]=_0x102d60,_0x66483f['qsgRy'](global['__drivers'],undefined)&&global[_0x312923(0xb9)][_0x312923(0xe9)](_0x102d60),_0x25a690&&helper[_0x312923(0xd5)](_0x25a690[_0x312923(0xc4)][_0x312923(0xa2)])&&(_0x25a690[_0x312923(0xc4)][_0x312923(0xa2)]=[]),_0x25a690&&_0x66483f[_0x312923(0xf2)](_0x25a690[_0x312923(0xc4)][_0x312923(0xb9)],undefined)&&(_0x25a690[_0x312923(0xc4)][_0x312923(0xb9)]['push'](_0x102d60),_0x25a690[_0x312923(0xc4)][_0x312923(0xa2)]['push'](_0x102d60)),_0x102d60;}}return _0x499418[_0x48ead6(0xf4)]=_0x499418[_0x48ead6(0x98)],_0x499418[_0x48ead6(0x98)]=_0x33d8b3,_0x5f5b53['HttpClient']=_0x19550f,_0x499418;};module[a29_0x51b840(0xd8)]['browserstackAgentObservability']=modify;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a30_0x308f(_0x41e5a3,_0x23e9a3){const _0x6153ee=a30_0x6153();return a30_0x308f=function(_0x308f9d,_0x4f1748){_0x308f9d=_0x308f9d-0x108;let _0x5d94b4=_0x6153ee[_0x308f9d];return _0x5d94b4;},a30_0x308f(_0x41e5a3,_0x23e9a3);}const a30_0x296843=a30_0x308f;(function(_0x528a54,_0x475f89){const _0x236f25=a30_0x308f,_0x57d59c=_0x528a54();while(!![]){try{const _0x265b79=-parseInt(_0x236f25(0x117))/0x1*(parseInt(_0x236f25(0x108))/0x2)+-parseInt(_0x236f25(0x10f))/0x3+-parseInt(_0x236f25(0x10d))/0x4+parseInt(_0x236f25(0x112))/0x5*(-parseInt(_0x236f25(0x113))/0x6)+parseInt(_0x236f25(0x10e))/0x7+parseInt(_0x236f25(0x109))/0x8*(-parseInt(_0x236f25(0x114))/0x9)+parseInt(_0x236f25(0x111))/0xa;if(_0x265b79===_0x475f89)break;else _0x57d59c['push'](_0x57d59c['shift']());}catch(_0x50f852){_0x57d59c['push'](_0x57d59c['shift']());}}}(a30_0x6153,0x268d2));const requestSpy=require(a30_0x296843(0x115)),constants=require(a30_0x296843(0x10a)),{addRequestSpy}=require(a30_0x296843(0x110));exports[a30_0x296843(0x116)]={'beforeAll'(){const _0xf9bbf9=a30_0x296843,_0x510a91={'GkTuA':function(_0x208de8){return _0x208de8();}},_0x3ba032='browserstack internal helper hook';_0x510a91[_0xf9bbf9(0x118)](addRequestSpy);},'afterAll'(){const _0x10efd0=a30_0x296843,_0x1aef57='browserstack internal helper hook';this[_0x10efd0(0x10b)](0xea60),requestSpy[_0x10efd0(0x10c)]();}};function a30_0x6153(){const _0x37aa5e=['GkTuA','10OQhKXI','8xHERxi','../../../bin/utils/constants','timeout','restore','1160352cqKtdF','1461159apPtay','684351nkYzra','../../../helpers/test-observability/utils','9811280OmJzGx','8670mmrwQc','606tzodfp','211275fPFpqq','../../../helpers/request-spy','mochaHooks','63029AWwvkZ'];a30_0x6153=function(){return _0x37aa5e;};return a30_0x6153();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a31_0x15fa(){const _0x4009b2=['2127546kNnmSn','ggtoV','js-','parent','getSession','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','VSQBc','indexOf','fromEntries','jVbAQ','split','65TkorTa','../../../helpers/testhub/utils','pHDdb','toISOString','uuid','_afterAll','getTestEnv','slice','../../../helpers/test-observability/utils','SnehM','getBrowserName','toJSON','substring','pDzWw','LwKGd','_beforeAll','fCrkA','forEach','57316JCwnJa','filter','generic','bs:addPlatformDetails:','TmqNq','_afterEach','getCapabilities','hook:','634278sFvpyY','hookAnalyticsId','__cloud_provider___','2380rQZCHV','vziWM','hook','zTgfg','string','bBRKT','uSBuC','../../../helpers/helper','HvPmh','getHooksForTest','getBrowserVersion','getPlatform','rvfnT','sFRBV','naPTM','nycEo','iACPK','tests','type','nypmU','../../../helpers/test-observability/constants','../../utils/logPatcher','suites','yvwLo','11978065jpsMzh','browserstack','getHookSkippedTests','passed','failed','uJDmB','500826jttrkQ','4QuoCju','10KwLyXa','pid','emit','oenBG','push','pending','fuFKW','PoFxL','_beforeEach','KUXhr','mapTestHooks','markedStatus','2927305wjkIPb','iJGkH','120WeuhLN','concat','iwlVo','state'];a31_0x15fa=function(){return _0x4009b2;};return a31_0x15fa();}const a31_0xdc39d6=a31_0x29a5;function a31_0x29a5(_0x116a5c,_0x5450b3){const _0x15faf4=a31_0x15fa();return a31_0x29a5=function(_0x29a5a7,_0x500c65){_0x29a5a7=_0x29a5a7-0x15f;let _0x303bbd=_0x15faf4[_0x29a5a7];return _0x303bbd;},a31_0x29a5(_0x116a5c,_0x5450b3);}(function(_0x198b0d,_0x38ce46){const _0x7b79db=a31_0x29a5,_0x2a3ea2=_0x198b0d();while(!![]){try{const _0x401b40=parseInt(_0x7b79db(0x186))/0x1*(parseInt(_0x7b79db(0x1a3))/0x2)+-parseInt(_0x7b79db(0x167))/0x3+parseInt(_0x7b79db(0x168))/0x4*(-parseInt(_0x7b79db(0x175))/0x5)+parseInt(_0x7b79db(0x1a0))/0x6+-parseInt(_0x7b79db(0x198))/0x7*(-parseInt(_0x7b79db(0x177))/0x8)+-parseInt(_0x7b79db(0x17b))/0x9+parseInt(_0x7b79db(0x169))/0xa*(parseInt(_0x7b79db(0x161))/0xb);if(_0x401b40===_0x38ce46)break;else _0x2a3ea2['push'](_0x2a3ea2['shift']());}catch(_0x5521dd){_0x2a3ea2['push'](_0x2a3ea2['shift']());}}}(a31_0x15fa,0x631f1));const {v4:uuidv4}=require(a31_0xdc39d6(0x18a)),{name,version}=require('../../../../package.json'),logPatcher=require(a31_0xdc39d6(0x1b8)),BSTestOpsPatcher=new logPatcher({}),{debug,isInternalHook,getObservabilityLinkedProductName}=require(a31_0xdc39d6(0x18e)),{consoleHolder}=require(a31_0xdc39d6(0x1b7)),{getPlatformVersion}=require(a31_0xdc39d6(0x1aa)),{shouldProcessEventForTesthub}=require(a31_0xdc39d6(0x187)),{isFunction}=require('lodash'),{patchConsoleLogger}=require(a31_0xdc39d6(0x18e));patchConsoleLogger(),exports[a31_0xdc39d6(0x18c)]=()=>{const _0x46f8a4=a31_0xdc39d6,_0x3cf3e1={'SnehM':_0x46f8a4(0x19a),'pDzWw':function(_0x22b243){return _0x22b243();}};return{'ci':_0x3cf3e1[_0x46f8a4(0x18f)],'key':_0x3cf3e1[_0x46f8a4(0x193)](uuidv4),'version':version,'collector':_0x46f8a4(0x17d)+name};},exports['getHookDetails']=_0x1acd94=>{const _0x5ba0b8=a31_0xdc39d6,_0x5e31ec={};_0x5e31ec['iwlVo']=function(_0x6d4b1b,_0x1bb39e){return _0x6d4b1b!==_0x1bb39e;},_0x5e31ec['pzcuz']=_0x5ba0b8(0x1a7),_0x5e31ec[_0x5ba0b8(0x1af)]=function(_0x4fd27f,_0x475582){return _0x4fd27f!==_0x475582;},_0x5e31ec['bBRKT']=_0x5ba0b8(0x19f),_0x5e31ec[_0x5ba0b8(0x184)]=function(_0x4c53a7,_0x5f290b){return _0x4c53a7!==_0x5f290b;},_0x5e31ec[_0x5ba0b8(0x16f)]='hook';const _0x4bdbbd=_0x5e31ec;if(!_0x1acd94||_0x4bdbbd[_0x5ba0b8(0x179)](typeof _0x1acd94,_0x4bdbbd['pzcuz']))return[null,null];if(_0x4bdbbd[_0x5ba0b8(0x1af)](_0x1acd94[_0x5ba0b8(0x182)](_0x4bdbbd[_0x5ba0b8(0x1a8)]),-0x1)){const _0x575ddc=_0x1acd94['split'](_0x4bdbbd[_0x5ba0b8(0x1a8)]);return[_0x575ddc[0x0][_0x5ba0b8(0x18d)](0x0,-0x1)[_0x5ba0b8(0x185)]('\x22')[0x1],_0x575ddc[0x1][_0x5ba0b8(0x192)](0x1)];}else{if(_0x4bdbbd[_0x5ba0b8(0x184)](_0x1acd94[_0x5ba0b8(0x182)](_0x4bdbbd['fuFKW']),-0x1)){const _0x4c1584=_0x1acd94[_0x5ba0b8(0x185)](_0x4bdbbd['fuFKW']);return[_0x4c1584[0x0][_0x5ba0b8(0x18d)](0x0,-0x1)[_0x5ba0b8(0x185)]('\x22')[0x1],_0x1acd94];}}return[null,null];},exports['getHooksForTest']=_0x130263=>{const _0x4c2642=a31_0xdc39d6,_0x100f85={'naPTM':function(_0x495ae4,_0x5335af){return _0x495ae4(_0x5335af);},'iJGkH':_0x4c2642(0x195),'OsddL':_0x4c2642(0x18b),'LwKGd':_0x4c2642(0x171),'nypmU':_0x4c2642(0x19d)};if(!_0x130263||!_0x130263[_0x4c2642(0x17e)])return[];const _0x310980=[];return[_0x100f85[_0x4c2642(0x176)],_0x100f85['OsddL'],_0x100f85[_0x4c2642(0x194)],_0x100f85[_0x4c2642(0x1b6)]]['forEach'](_0x346edb=>{const _0x324efa=_0x4c2642,_0x74050d=_0x130263[_0x324efa(0x17e)][_0x346edb]||[];_0x74050d[_0x324efa(0x197)](_0x2b62b2=>{const _0x2899d5=_0x324efa;_0x2b62b2[_0x2899d5(0x1a1)]&&!_0x100f85[_0x2899d5(0x1b1)](isInternalHook,_0x2b62b2['fn'])&&_0x310980[_0x2899d5(0x16d)](_0x2b62b2[_0x2899d5(0x1a1)]);});}),[..._0x310980,...exports[_0x4c2642(0x1ac)](_0x130263[_0x4c2642(0x17e)])];},exports[a31_0xdc39d6(0x173)]=_0x3b30ed=>{const _0x46e9cd=a31_0xdc39d6,_0x58ef1f={'HvPmh':function(_0x48af36){return _0x48af36();},'nycEo':function(_0x2d8960,_0x1e8199){return _0x2d8960===_0x1e8199;},'wyzmf':'_afterEach','pHDdb':'_beforeAll','yvwLo':'_afterAll','PoFxL':_0x46e9cd(0x171)};if(!_0x3b30ed||!_0x3b30ed['parent'])return;[_0x58ef1f[_0x46e9cd(0x188)],_0x58ef1f[_0x46e9cd(0x160)],_0x58ef1f[_0x46e9cd(0x170)],_0x58ef1f['wyzmf']][_0x46e9cd(0x197)](_0x4c91c6=>{const _0x231c1f=_0x46e9cd,_0x56b0bc={'lPBQM':function(_0x1d8edb){const _0x59b838=a31_0x29a5;return _0x58ef1f[_0x59b838(0x1ab)](_0x1d8edb);},'iACPK':function(_0x285b9f,_0x5a610f){const _0x11ca03=a31_0x29a5;return _0x58ef1f[_0x11ca03(0x1b2)](_0x285b9f,_0x5a610f);},'ggtoV':_0x58ef1f['wyzmf'],'CWKQw':function(_0x508369){const _0x327123=a31_0x29a5;return _0x58ef1f[_0x327123(0x1ab)](_0x508369);}},_0x13a4e8=_0x3b30ed[_0x231c1f(0x17e)][_0x4c91c6]||[];_0x13a4e8[_0x231c1f(0x197)](_0x376f7c=>{const _0x466478=_0x231c1f;if(!_0x376f7c['hookAnalyticsId'])_0x376f7c[_0x466478(0x1a1)]=_0x56b0bc['lPBQM'](uuidv4);else _0x376f7c[_0x466478(0x174)]&&_0x56b0bc[_0x466478(0x1b3)](_0x4c91c6,_0x56b0bc[_0x466478(0x17c)])&&(_0x376f7c[_0x466478(0x1a1)]=_0x56b0bc['CWKQw'](uuidv4),delete _0x376f7c[_0x466478(0x174)]);});}),exports[_0x46e9cd(0x173)](_0x3b30ed[_0x46e9cd(0x17e)]);},exports['sendPlatformDetails']=async(_0x201182,_0x260290)=>{const _0x5e7561=a31_0xdc39d6,_0x5ad2a3={'zTgfg':function(_0x4a171f){return _0x4a171f();},'VSQBc':function(_0x534b90,_0x4584de){return _0x534b90(_0x4584de);},'vziWM':function(_0x1fd136,_0x5737b5){return _0x1fd136===_0x5737b5;},'uSBuC':_0x5e7561(0x162),'sFRBV':'unknown_grid','jWKSN':'TEST_PLATFORM','kyCVA':function(_0x5bc95c,_0x3e0869){return _0x5bc95c(_0x3e0869);}};try{if(!_0x5ad2a3[_0x5e7561(0x1a6)](shouldProcessEventForTesthub))return;const _0x5b056a=await _0x201182[_0x5e7561(0x19e)](),_0x6e95c=await _0x201182[_0x5e7561(0x17f)](),_0x5020eb={},_0xea7bb1=Object[_0x5e7561(0x183)](_0x6e95c[_0x5e7561(0x19e)]()['map_']),_0x5bfcb5={'product':_0x5ad2a3[_0x5e7561(0x181)](getObservabilityLinkedProductName,_0xea7bb1),'capabilities':_0xea7bb1,'platform':_0x5b056a[_0x5e7561(0x1ae)](),'platform_version':_0x5ad2a3[_0x5e7561(0x181)](getPlatformVersion,_0x5ad2a3[_0x5e7561(0x1a4)](global[_0x5e7561(0x1a2)],_0x5ad2a3[_0x5e7561(0x1a9)])),'browser':_0x5b056a[_0x5e7561(0x190)](),'browser_version':_0x5b056a[_0x5e7561(0x1ad)](),'session_id':_0x6e95c[_0x5e7561(0x191)]()};global[_0x5e7561(0x1a2)]?_0x5020eb[global[_0x5e7561(0x1a2)]]=_0x5bfcb5:_0x5020eb[_0x5ad2a3[_0x5e7561(0x1b0)]]=_0x5bfcb5,process[_0x5e7561(0x16b)](_0x5e7561(0x19b)+process[_0x5e7561(0x16a)],{'timestamp':new Date()[_0x5e7561(0x189)](),'level':null,'message':null,'kind':_0x5ad2a3['jWKSN'],'http_response':_0x5020eb,'uuid':_0x260290});}catch(_0x32e098){_0x5ad2a3['kyCVA'](debug,_0x5e7561(0x180)+_0x32e098);}},exports[a31_0xdc39d6(0x163)]=_0xc71883=>{const _0x48e6c8=a31_0xdc39d6,_0x49978e={};_0x49978e[_0x48e6c8(0x16c)]=function(_0x2d4817,_0x4baed0){return _0x2d4817!==_0x4baed0;},_0x49978e['uJDmB']=_0x48e6c8(0x1a5),_0x49978e[_0x48e6c8(0x196)]=function(_0x5cce35,_0x3db731){return _0x5cce35!==_0x3db731;},_0x49978e['TmqNq']=_0x48e6c8(0x164),_0x49978e['KUXhr']=_0x48e6c8(0x165);const _0x30e4c8=_0x49978e,_0x46c8f6=_0xc71883[_0x48e6c8(0x15f)]['reduce']((_0x2b60df,_0x1bb53d)=>{const _0x26c6f1=_0x48e6c8,_0x23eb63=exports[_0x26c6f1(0x163)](_0x1bb53d);return _0x23eb63&&(_0x2b60df=_0x2b60df['concat'](_0x23eb63)),_0x2b60df;},[]),_0x4859c2=_0xc71883[_0x48e6c8(0x1b4)][_0x48e6c8(0x199)](_0x29fe90=>{const _0x1e0041=_0x48e6c8,_0x1a7ef7=_0x30e4c8[_0x1e0041(0x16c)](_0x29fe90[_0x1e0041(0x1b5)],_0x30e4c8[_0x1e0041(0x166)])&&!_0x29fe90['markedStatus']&&_0x30e4c8['fCrkA'](_0x29fe90[_0x1e0041(0x17a)],_0x30e4c8[_0x1e0041(0x19c)])&&_0x30e4c8[_0x1e0041(0x16c)](_0x29fe90[_0x1e0041(0x17a)],_0x30e4c8[_0x1e0041(0x172)])&&!_0x29fe90[_0x1e0041(0x16e)];return _0x1a7ef7;});return _0x4859c2[_0x48e6c8(0x178)](_0x46c8f6);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a32_0x28f6(){const _0x33ae65=['jViyq','length','saveTestResults','LaRFi','setGlobal','4JPgZHV','push','SYNC','ENV_VAR','dMOii','NoxyD','Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20','HGSnv','getGlobal','36GXBCDt','../../helpers/percy/utils','thJwtToken','percy','Failed\x20to\x20store\x20session\x20name:\x20','executeScript','index','HqtAQ','debug','ObservabilitySync:','WANlI','PGzBT','DHXCC','thTestRunUuid','../../helpers/logger','__error_messages__','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','./test-observability/mochaUtils','jmjDD','nGrGm','end','CETIW','MOPMJ','executeAsyncScript','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','../../helpers/accessibility-automation/scripts','nHciW','Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20','avtGX','Ohkyc','passed','HKLRC','driverCleanup','http:','env','\x20-\x20','910160CLwsrc','percyCaptureMode','__skipSessionName','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','.\x20Error\x20:','29029500vqvSIg','mXugc','message','NacZp','DCIqe','appium:app','join','__drivers','sessionName','JyXek','state','Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20','then','https:','protocol','EFbjZ','amgxS','GBzrs','currentTest','XrDVj','../../helpers/performance/constants','../../helpers/testhub/constants','browserstackSessionName','testAnalyticsId','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','\x20|\x20','OSBcD','SESSION_NAME','browserstackTestName','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','Mvunl','shift','measureWrapper','winstonLogger','SESSION_STATUS','1230416TzFupB','isArray','timeout','NqEIu','JqSRQ','afterTest','AAZjD','../../helpers/globals','finally','lyRPD','\x22}}','nxOLQ','__platformCaps','app','yafpQ','isAccessibilityPlatform','gbZnN','bUVJo','PERFORM_SCAN','3556084hvpVyx','beforeEach','SDK_HOOK','1523865dEsyed','MnYpK','izANy','1925367kGdKXw','SAVE_RESULTS','err','ZUvDV','VMnRR','session_','ZhdHG',',\x22level\x22:\x20\x22','BROWSERSTACK_TESTHUB_JWT','Emvjq','../../helpers/accessibility-automation/helper','817772NoggMQ','bstackA11yShouldScan','smAEx','capabilities','axfEo','itUUP','yzrly','error','testcase','info','gitbq','performScan','dehwV','Failed:\x20','jyKTX','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','sugbJ','__sessionFailed','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','stringify','shouldScanTestForAccessibility','titlePath','XvWnZ','quitCount_','12neZDMO','beforeAll','start','sJofg','../../helpers/testhub/utils','thBuildUuid','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','bUjsW','now','MIAyT','mochaHooks','HGnMY','lFDrS','GZrBx','Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20','startMonitoring','accessibilityScanStarted','jGfYc'];a32_0x28f6=function(){return _0x33ae65;};return a32_0x28f6();}function a32_0x220a(_0x1ccc11,_0x5d1d32){const _0x28f62e=a32_0x28f6();return a32_0x220a=function(_0x220a2f,_0x1a0cb6){_0x220a2f=_0x220a2f-0x161;let _0x25fd57=_0x28f62e[_0x220a2f];return _0x25fd57;},a32_0x220a(_0x1ccc11,_0x5d1d32);}const a32_0x42c162=a32_0x220a;(function(_0x4b1e8a,_0x4c0b3c){const _0x3715ef=a32_0x220a,_0x3a9615=_0x4b1e8a();while(!![]){try{const _0xc880ed=-parseInt(_0x3715ef(0x1c9))/0x1+parseInt(_0x3715ef(0x1a5))/0x2+-parseInt(_0x3715ef(0x1be))/0x3*(parseInt(_0x3715ef(0x1f8))/0x4)+parseInt(_0x3715ef(0x1bb))/0x5*(-parseInt(_0x3715ef(0x1e1))/0x6)+-parseInt(_0x3715ef(0x1b8))/0x7+-parseInt(_0x3715ef(0x17d))/0x8*(parseInt(_0x3715ef(0x201))/0x9)+parseInt(_0x3715ef(0x182))/0xa;if(_0xc880ed===_0x4c0b3c)break;else _0x3a9615['push'](_0x3a9615['shift']());}catch(_0x2852b2){_0x3a9615['push'](_0x3a9615['shift']());}}}(a32_0x28f6,0x76a47));const util=require('util'),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a32_0x42c162(0x1c8)),{percyAutoCapture}=require(a32_0x42c162(0x202)),{sendPlatformDetails}=require(a32_0x42c162(0x16a)),{isBrowserstackInfra,markSessionStatus,nestedKeyValue}=require('../../helpers/helper'),PerformanceTester=require('../../helpers/performance/performance-tester'),{AUTOMATE_EVENTS:PerformanceAutEvents,O11y_EVENTS:PerformanceO11yEvents,A11Y_EVENTS:PerformanceA11yEvents,EVENTS:PerformanceSdkEvents}=require(a32_0x42c162(0x196)),scripts=require(a32_0x42c162(0x172)),globals=require(a32_0x42c162(0x1ac)),logger=require(a32_0x42c162(0x167))[a32_0x42c162(0x1a3)],{shouldProcessEventForTesthub}=require(a32_0x42c162(0x1e5)),testHubConstants=require(a32_0x42c162(0x197));exports[a32_0x42c162(0x1eb)]={'beforeAll'(){const _0x561018=a32_0x42c162,_0x422dc2={'NoxyD':function(_0x37b2c8,_0x1ecf63,_0xe7d3,_0x1cb41b){return _0x37b2c8(_0x1ecf63,_0xe7d3,_0x1cb41b);},'gitbq':'failed','KyLIR':_0x561018(0x19b),'nHciW':function(_0x1b3964,_0x5b1b42,_0x2fd97d){return _0x1b3964(_0x5b1b42,_0x2fd97d);},'CznbI':'passed','ZhdHG':function(_0x4b09d3){return _0x4b09d3();},'JyXek':function(_0x51040b,_0x2088ea,_0x5d58f4){return _0x51040b(_0x2088ea,_0x5d58f4);},'ZfZKj':_0x561018(0x207),'VHbfT':_0x561018(0x1e2)};PerformanceTester[_0x561018(0x1f0)]();const _0x3b9fab='browserstack internal helper hook';PerformanceTester[_0x561018(0x1a2)](PerformanceSdkEvents[_0x561018(0x1ba)],()=>{const _0x7e369=_0x561018,_0x3e38fc={'yzrly':function(_0x278dbc,_0x2608bc,_0x1d7866,_0x497d4f){const _0x288ae2=a32_0x220a;return _0x422dc2[_0x288ae2(0x1fd)](_0x278dbc,_0x2608bc,_0x1d7866,_0x497d4f);},'RByDa':_0x422dc2[_0x7e369(0x1d3)],'BEMRy':_0x422dc2['KyLIR'],'XxlNV':function(_0x3f15c9,_0x7c0141,_0x3229be){const _0x48909c=_0x7e369;return _0x422dc2[_0x48909c(0x173)](_0x3f15c9,_0x7c0141,_0x3229be);},'yafpQ':_0x422dc2['CznbI'],'GPtSM':function(_0x29bd36){const _0x3a1013=_0x7e369;return _0x422dc2[_0x3a1013(0x1c4)](_0x29bd36);},'axfEo':function(_0x146c1b,_0x1b35f4,_0x4e7dc4){const _0x15335c=_0x7e369;return _0x422dc2[_0x15335c(0x173)](_0x146c1b,_0x1b35f4,_0x4e7dc4);}};global[_0x7e369(0x168)]=[],global[_0x7e369(0x1da)]=![],global[_0x7e369(0x179)]=async()=>{const _0x24cace=_0x7e369;let _0x3d9a0a=![];try{await global['__drivers'][0x0]['session_'],_0x3d9a0a=!![],global[_0x24cace(0x1da)]?await _0x3e38fc[_0x24cace(0x1cf)](markSessionStatus,global['__drivers'][0x0],_0x3e38fc['RByDa'],global[_0x24cace(0x168)][_0x24cace(0x188)](_0x3e38fc['BEMRy'])):await _0x3e38fc['XxlNV'](markSessionStatus,global[_0x24cace(0x189)][0x0],_0x3e38fc[_0x24cace(0x1b3)]);}catch(_0x55a3cc){logger[_0x24cace(0x161)](_0x24cace(0x174)+_0x55a3cc);}global[_0x24cace(0x168)]=[],global['__sessionFailed']=![];if(_0x3d9a0a)try{try{_0x3e38fc['GPtSM'](shouldProcessEventForTesthub)&&(global['__drivers'][0x0]&&await _0x3e38fc[_0x24cace(0x1cd)](sendPlatformDetails,global[_0x24cace(0x189)][0x0],this[_0x24cace(0x194)]?this[_0x24cace(0x194)]['testAnalyticsId']:null));}catch(_0x12a58d){logger[_0x24cace(0x161)](_0x24cace(0x1fe)+_0x12a58d);}await global[_0x24cace(0x189)][0x0]['initQuit']();}catch(_0x1c8b66){logger[_0x24cace(0x161)](_0x24cace(0x1db)+_0x1c8b66);}};},{'platform':_0x422dc2[_0x561018(0x18b)](nestedKeyValue,global['__platformCaps'],[_0x422dc2['ZfZKj']]),'hookType':_0x422dc2['VHbfT']})();},'beforeEach'(_0x4a1982){const _0x5ad4e2=a32_0x42c162,_0x5eb066={'ZUvDV':function(_0x315343,_0x45837b){return _0x315343>_0x45837b;},'NacZp':_0x5ad4e2(0x17c),'mXugc':function(_0x355f04,_0x5002e1,_0x5ef076){return _0x355f04(_0x5002e1,_0x5ef076);},'Jbvow':_0x5ad4e2(0x1ca),'smAEx':function(_0xc9adf0){return _0xc9adf0();},'elZht':function(_0x20c50d,_0x3f3d06){return _0x20c50d>_0x3f3d06;},'jyKTX':'isAccessibilityPlatform','WANlI':function(_0x2cee7f,_0x1c4b31){return _0x2cee7f===_0x1c4b31;},'xCGCj':_0x5ad4e2(0x17a),'fAxWo':_0x5ad4e2(0x18f),'KbxUk':_0x5ad4e2(0x19a),'GBzrs':'Automate\x20test\x20case\x20execution\x20has\x20started.','PGzBT':function(_0x6d3c05){return _0x6d3c05();},'HGSnv':_0x5ad4e2(0x19e),'HqtAQ':function(_0x238455,_0x331f65,_0x25c49f){return _0x238455(_0x331f65,_0x25c49f);},'CQvCh':_0x5ad4e2(0x207),'CETIW':_0x5ad4e2(0x1b9)};globals[_0x5ad4e2(0x1f7)](_0x5eb066[_0x5ad4e2(0x1ff)],this['currentTest'][_0x5ad4e2(0x1de)]()[_0x5ad4e2(0x188)](_0x5eb066['NacZp'])),PerformanceTester['measureWrapper'](PerformanceSdkEvents[_0x5ad4e2(0x1ba)],()=>{const _0x58668a=_0x5ad4e2,_0x3eedb3={'lFDrS':function(_0x56eef3){const _0x31c2eb=a32_0x220a;return _0x5eb066[_0x31c2eb(0x164)](_0x56eef3);}},_0x7d3564='browserstack internal helper hook';new Promise(async _0x3f2cc3=>{const _0x2ffcd3=a32_0x220a;let _0x10e9b1=!![];try{_0x5eb066[_0x2ffcd3(0x1c1)](global['__drivers'][_0x2ffcd3(0x1f4)],0x1)&&(await global[_0x2ffcd3(0x179)](),global[_0x2ffcd3(0x189)][_0x2ffcd3(0x1a1)]()),_0x5eb066[_0x2ffcd3(0x1c1)](global[_0x2ffcd3(0x189)][0x0][_0x2ffcd3(0x1e0)],0x0)&&(_0x10e9b1=![],await global[_0x2ffcd3(0x179)]());}catch(_0x52fb99){logger[_0x2ffcd3(0x161)]('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0x52fb99);}try{Array[_0x2ffcd3(0x1a6)](global[_0x2ffcd3(0x189)])&&global[_0x2ffcd3(0x189)][0x0]&&(global['__drivers'][0x0][_0x2ffcd3(0x198)]=this['currentTest'][_0x2ffcd3(0x1de)]()[_0x2ffcd3(0x188)](_0x5eb066[_0x2ffcd3(0x185)])),global[_0x2ffcd3(0x198)]=this[_0x2ffcd3(0x194)]['titlePath']()[_0x2ffcd3(0x188)](_0x5eb066[_0x2ffcd3(0x185)]);}catch(_0x252b03){logger['debug'](_0x2ffcd3(0x205)+_0x252b03);}this[_0x2ffcd3(0x194)][_0x2ffcd3(0x1dd)]=_0x5eb066[_0x2ffcd3(0x183)](shouldScanTestForAccessibility,this['currentTest']['titlePath'](),!![]),globals['setGlobal'](_0x5eb066['Jbvow'],this[_0x2ffcd3(0x194)]['shouldScanTestForAccessibility']),this[_0x2ffcd3(0x194)][_0x2ffcd3(0x1f1)]=!![];if(_0x5eb066[_0x2ffcd3(0x1cb)](isAccessibilityAutomationSession)&&_0x10e9b1&&Array[_0x2ffcd3(0x1a6)](global[_0x2ffcd3(0x189)])&&_0x5eb066['elZht'](global['__drivers'][_0x2ffcd3(0x1f4)],0x0)&&globals[_0x2ffcd3(0x200)](_0x5eb066[_0x2ffcd3(0x1d7)]))try{const _0x3ffe20=await global[_0x2ffcd3(0x189)][0x0][_0x2ffcd3(0x1c3)];if(_0x3ffe20){let _0x3e30f3=!![];const _0x20e998=await global[_0x2ffcd3(0x189)][0x0]['getCurrentUrl']();let _0x3b138c;try{_0x3b138c=new URL(_0x20e998);}catch(_0x507343){_0x3e30f3=![];}_0x3e30f3=_0x5eb066[_0x2ffcd3(0x163)](_0x3b138c[_0x2ffcd3(0x190)],_0x5eb066['xCGCj'])||_0x5eb066['WANlI'](_0x3b138c[_0x2ffcd3(0x190)],_0x5eb066['fAxWo']),_0x3e30f3&&(this[_0x2ffcd3(0x194)][_0x2ffcd3(0x1dd)]&&logger['info'](_0x5eb066['KbxUk'])),this[_0x2ffcd3(0x194)][_0x2ffcd3(0x1f1)]=this['currentTest'][_0x2ffcd3(0x1dd)],this[_0x2ffcd3(0x194)][_0x2ffcd3(0x1dd)]&&logger[_0x2ffcd3(0x1d2)](_0x5eb066[_0x2ffcd3(0x193)]);}}catch(_0x116413){logger[_0x2ffcd3(0x1d0)](_0x2ffcd3(0x180)+util['format'](_0x116413));}_0x5eb066[_0x2ffcd3(0x1cb)](_0x3f2cc3);})[_0x58668a(0x18e)](()=>{const _0x423808=_0x58668a;_0x3eedb3[_0x423808(0x1ed)](_0x4a1982);});},{'platform':_0x5eb066[_0x5ad4e2(0x208)](nestedKeyValue,global[_0x5ad4e2(0x1b1)],[_0x5eb066['CQvCh']]),'hookType':_0x5eb066[_0x5ad4e2(0x16e)]})();},'afterEach'(_0x47616f){const _0x513d5f=a32_0x42c162,_0x2dcda6={'GZrBx':function(_0x376f45,_0x37c233){return _0x376f45>_0x37c233;},'itUUP':function(_0x301e4c,_0x4ff4c6){return _0x301e4c===_0x4ff4c6;},'jGfYc':_0x513d5f(0x1d1),'MnYpK':_0x513d5f(0x187),'jmjDD':function(_0x39f1a5,_0x2488d4,_0x769e07,_0x569682){return _0x39f1a5(_0x2488d4,_0x769e07,_0x569682);},'EFbjZ':_0x513d5f(0x1b4),'aZaZb':_0x513d5f(0x1ca),'AAZjD':_0x513d5f(0x1d8),'bUjsW':'Performing\x20scan\x20before\x20saving\x20results','Mvunl':_0x513d5f(0x1aa),'ZuGhx':_0x513d5f(0x169),'MIAyT':function(_0x8d9888){return _0x8d9888();},'OSBcD':function(_0x5f4ab9,_0x4dda2f,_0x450c86){return _0x5f4ab9(_0x4dda2f,_0x450c86);},'dMOii':function(_0x549e1c){return _0x549e1c();},'HKLRC':'debug','amgxS':function(_0x4ca683,_0x3e8a0f){return _0x4ca683>_0x3e8a0f;},'nGrGm':function(_0xcb28be){return _0xcb28be();},'NqEIu':_0x513d5f(0x17c),'gbZnN':function(_0x375104,_0x1491d5){return _0x375104!==_0x1491d5;},'VMnRR':_0x513d5f(0x177),'LaRFi':function(_0x709c5,_0x250296,_0x2e3fcd){return _0x709c5(_0x250296,_0x2e3fcd);},'yzDQR':function(_0x31730f,_0x3ed4da){return _0x31730f+_0x3ed4da;},'bUVJo':_0x513d5f(0x1d6),'Ohkyc':'error','XvWnZ':function(_0x17485b,_0x4aef7d,_0x28ec8b){return _0x17485b(_0x4aef7d,_0x28ec8b);},'DHXCC':'Passed','izANy':'info','jViyq':_0x513d5f(0x207),'dehwV':'afterEach'},_0x2a3620='browserstack internal helper hook';this[_0x513d5f(0x1a7)](0xfde8),global[_0x513d5f(0x18a)]=this[_0x513d5f(0x194)][_0x513d5f(0x1de)]()[_0x513d5f(0x188)](_0x2dcda6[_0x513d5f(0x1a8)]),PerformanceTester[_0x513d5f(0x1a2)](PerformanceSdkEvents[_0x513d5f(0x1ba)],()=>{const _0xa050c0=_0x513d5f,_0x4079ee={'XrDVj':_0x2dcda6[_0xa050c0(0x1a8)],'SuOKr':function(_0x4e0b51,_0x9204e3){const _0x371b61=_0xa050c0;return _0x2dcda6[_0x371b61(0x1b5)](_0x4e0b51,_0x9204e3);},'sugbJ':_0x2dcda6[_0xa050c0(0x1c2)],'cHOXd':function(_0x4b9498,_0x305bdf,_0x2d6181){const _0x984369=_0xa050c0;return _0x2dcda6[_0x984369(0x1f6)](_0x4b9498,_0x305bdf,_0x2d6181);},'nxOLQ':function(_0x53b7e1,_0x354ec1){return _0x2dcda6['yzDQR'](_0x53b7e1,_0x354ec1);},'gWYZA':_0x2dcda6[_0xa050c0(0x1b6)],'lyRPD':_0x2dcda6[_0xa050c0(0x176)],'Emvjq':function(_0x375e55,_0x25f3e1,_0x29b2b0){const _0x1ec83f=_0xa050c0;return _0x2dcda6[_0x1ec83f(0x1df)](_0x375e55,_0x25f3e1,_0x29b2b0);},'QYLqC':_0x2dcda6[_0xa050c0(0x165)],'JqSRQ':_0x2dcda6[_0xa050c0(0x1bd)]},_0x218efc=async(_0x420a89,_0x30e5ce)=>{const _0xd8fd30=_0xa050c0;await global[_0xd8fd30(0x189)][0x0][_0xd8fd30(0x206)](_0xd8fd30(0x171)+_0x420a89+_0xd8fd30(0x1c5)+_0x30e5ce+_0xd8fd30(0x1af));};new Promise(async _0x2dec38=>{const _0x34809c=_0xa050c0;try{_0x2dcda6[_0x34809c(0x1ee)](global[_0x34809c(0x189)][_0x34809c(0x1f4)],0x1)&&(await global[_0x34809c(0x179)](),global['__drivers'][_0x34809c(0x1a1)](),global[_0x34809c(0x168)]=[],global[_0x34809c(0x1da)]=![]);try{if(global[_0x34809c(0x204)]&&_0x2dcda6[_0x34809c(0x1ce)](global[_0x34809c(0x17e)],_0x2dcda6['jGfYc'])&&global[_0x34809c(0x189)][0x0]){const _0xa22d13=_0x2dcda6[_0x34809c(0x1ee)](global[_0x34809c(0x1cc)][_0x34809c(0x1f4)],0x0)?!!global[_0x34809c(0x1cc)][0x0]['app']||!!global[_0x34809c(0x1cc)][0x0][_0x2dcda6[_0x34809c(0x1bc)]]:![],_0x2c656c={};_0x2c656c[_0x34809c(0x1b2)]=_0xa22d13,await _0x2dcda6[_0x34809c(0x16b)](percyAutoCapture,global[_0x34809c(0x189)][0x0],_0x2dcda6[_0x34809c(0x1f2)],_0x2c656c);}}catch(_0x1d673e){logger[_0x34809c(0x161)]('Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20'+_0x1d673e);}!global[_0x34809c(0x17f)]&&(await PerformanceTester[_0x34809c(0x1a2)](PerformanceAutEvents[_0x34809c(0x19d)],async()=>{const _0x52bd6e=_0x34809c;await global[_0x52bd6e(0x189)][0x0][_0x52bd6e(0x206)](_0x52bd6e(0x1e7)+JSON[_0x52bd6e(0x1dc)](this[_0x52bd6e(0x194)][_0x52bd6e(0x1de)]()[_0x52bd6e(0x188)](_0x4079ee[_0x52bd6e(0x195)]))+'}}');})(),global[_0x34809c(0x189)][0x0]['sessionNameSet__']=!![]),await PerformanceTester[_0x34809c(0x1a2)](PerformanceAutEvents[_0x34809c(0x1a4)],async()=>{const _0x17f551=_0x34809c,_0x158c3a=_0x4079ee['SuOKr'](this['currentTest'][_0x17f551(0x18c)],_0x4079ee[_0x17f551(0x1d9)]);_0x158c3a?(global['__sessionFailed']=!![],global[_0x17f551(0x168)][_0x17f551(0x1f9)](this[_0x17f551(0x194)][_0x17f551(0x1c0)]['message']),await _0x4079ee['cHOXd'](_0x218efc,JSON['stringify'](_0x4079ee[_0x17f551(0x1b0)](_0x4079ee['gWYZA'],this[_0x17f551(0x194)][_0x17f551(0x1c0)][_0x17f551(0x184)])),_0x4079ee[_0x17f551(0x1ae)])):await _0x4079ee[_0x17f551(0x1c7)](_0x218efc,JSON['stringify'](_0x4079ee['QYLqC']),_0x4079ee[_0x17f551(0x1a9)]);})();}catch(_0x20ec72){logger[_0x34809c(0x161)](_0x34809c(0x1ef)+_0x20ec72);}try{if(this[_0x34809c(0x194)]['accessibilityScanStarted']&&globals[_0x34809c(0x200)](_0x2dcda6[_0x34809c(0x191)])&&globals['getGlobal'](_0x2dcda6['aZaZb'])){logger[_0x34809c(0x1d2)](_0x2dcda6[_0x34809c(0x1ab)]);const _0x2650ed={};_0x2650ed[_0x34809c(0x166)]=this['currentTest'][_0x34809c(0x199)],_0x2650ed[_0x34809c(0x1e6)]=process[_0x34809c(0x17b)][testHubConstants[_0x34809c(0x1fb)]['BROWSERSTACK_TESTHUB_UUID']],_0x2650ed[_0x34809c(0x203)]=process[_0x34809c(0x17b)][testHubConstants['ENV_VAR'][_0x34809c(0x1c6)]];const _0x44068b=_0x2650ed;logger[_0x34809c(0x161)](_0x34809c(0x19f)+JSON[_0x34809c(0x1dc)](_0x44068b)),logger[_0x34809c(0x161)](_0x2dcda6[_0x34809c(0x1e8)]);const _0x5816a6={};_0x5816a6['command']=_0x2dcda6[_0x34809c(0x1a0)],await PerformanceTester[_0x34809c(0x1a2)](PerformanceA11yEvents[_0x34809c(0x1b7)],async()=>{const _0x4b601e=_0x34809c;logger[_0x4b601e(0x161)](util['format'](await global[_0x4b601e(0x189)][0x0][_0x4b601e(0x170)](scripts[_0x4b601e(0x1d4)],{'method':global[_0x4b601e(0x198)]})));},_0x5816a6)(),await PerformanceTester[_0x34809c(0x1a2)](PerformanceA11yEvents[_0x34809c(0x1bf)],async()=>{const _0xaafed2=_0x34809c;await global[_0xaafed2(0x189)][0x0][_0xaafed2(0x170)](scripts[_0xaafed2(0x1f5)],_0x44068b);})(),logger[_0x34809c(0x1d2)](_0x2dcda6['ZuGhx']);}}catch(_0x4decd0){logger[_0x34809c(0x1d0)]('Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20'+this[_0x34809c(0x194)]['titlePath']()+_0x34809c(0x181),_0x4decd0);}try{try{if(_0x2dcda6[_0x34809c(0x1ea)](shouldProcessEventForTesthub)){global[_0x34809c(0x189)][0x0]&&await _0x2dcda6[_0x34809c(0x19c)](sendPlatformDetails,global[_0x34809c(0x189)][0x0],this[_0x34809c(0x194)]?this['currentTest'][_0x34809c(0x199)]:null);if(_0x2dcda6[_0x34809c(0x1fc)](isBrowserstackInfra)){PerformanceTester[_0x34809c(0x1e3)](PerformanceO11yEvents[_0x34809c(0x1fa)]);const _0x4b53e0=_0x34809c(0x162)+Date[_0x34809c(0x1e9)]();await _0x2dcda6[_0x34809c(0x19c)](_0x218efc,JSON[_0x34809c(0x1dc)](_0x4b53e0),_0x2dcda6[_0x34809c(0x178)]),PerformanceTester[_0x34809c(0x16d)](PerformanceO11yEvents['SYNC']);}}}catch(_0x20434e){logger['debug'](_0x34809c(0x18d)+_0x20434e),PerformanceTester[_0x34809c(0x16d)](PerformanceO11yEvents['SYNC'],![],_0x20434e);}_0x2dcda6[_0x34809c(0x192)](global[_0x34809c(0x189)][0x0][_0x34809c(0x1e0)],0x0)&&await global[_0x34809c(0x179)]();}catch(_0x35d449){logger[_0x34809c(0x161)](_0x34809c(0x1db)+_0x35d449);}_0x2dcda6[_0x34809c(0x16c)](_0x2dec38);})[_0xa050c0(0x18e)](()=>{const _0x11fa43=_0xa050c0;_0x2dcda6[_0x11fa43(0x1ea)](_0x47616f);});},{'platform':_0x2dcda6[_0x513d5f(0x19c)](nestedKeyValue,global[_0x513d5f(0x1b1)],[_0x2dcda6[_0x513d5f(0x1f3)]]),'hookType':_0x2dcda6[_0x513d5f(0x1d5)]})();},'afterAll'(_0x1700f8){const _0x27d56f=a32_0x42c162,_0x32bbd8={'sJofg':function(_0x19e966){return _0x19e966();},'DCIqe':function(_0x26d7e5,_0x2f90dc,_0x379f23){return _0x26d7e5(_0x2f90dc,_0x379f23);},'avtGX':_0x27d56f(0x207),'MOPMJ':'afterAll'},_0x12bd7a='browserstack internal helper hook';this[_0x27d56f(0x1a7)](0xfde8),PerformanceTester[_0x27d56f(0x1a2)](PerformanceSdkEvents[_0x27d56f(0x1ba)],()=>{const _0x5bdd69=_0x27d56f,_0x14ed63={'HGnMY':function(_0x34a28f){const _0x2f4c5e=a32_0x220a;return _0x32bbd8[_0x2f4c5e(0x1e4)](_0x34a28f);}};new Promise(async _0x20accb=>{const _0xff5ffb=a32_0x220a;await global[_0xff5ffb(0x179)](),_0x14ed63[_0xff5ffb(0x1ec)](_0x20accb);})[_0x5bdd69(0x18e)]()[_0x5bdd69(0x1ad)](()=>{const _0x3f0db9=_0x5bdd69;_0x32bbd8[_0x3f0db9(0x1e4)](_0x1700f8);});},{'platform':_0x32bbd8[_0x27d56f(0x186)](nestedKeyValue,global[_0x27d56f(0x1b1)],[_0x32bbd8[_0x27d56f(0x175)]]),'hookType':_0x32bbd8[_0x27d56f(0x16f)]})();}};
|
|
1
|
+
const a32_0x529a6d=a32_0x26e7;(function(_0x5b7659,_0xc9f2d1){const _0x9552cb=a32_0x26e7,_0xac6ca8=_0x5b7659();while(!![]){try{const _0x32350c=-parseInt(_0x9552cb(0x221))/0x1*(-parseInt(_0x9552cb(0x26f))/0x2)+parseInt(_0x9552cb(0x229))/0x3+parseInt(_0x9552cb(0x233))/0x4+parseInt(_0x9552cb(0x297))/0x5+-parseInt(_0x9552cb(0x257))/0x6+-parseInt(_0x9552cb(0x23c))/0x7+-parseInt(_0x9552cb(0x22c))/0x8*(parseInt(_0x9552cb(0x20e))/0x9);if(_0x32350c===_0xc9f2d1)break;else _0xac6ca8['push'](_0xac6ca8['shift']());}catch(_0x57053c){_0xac6ca8['push'](_0xac6ca8['shift']());}}}(a32_0x1126,0x94535));const util=require(a32_0x529a6d(0x226)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a32_0x529a6d(0x288)),{percyAutoCapture}=require(a32_0x529a6d(0x24b)),{sendPlatformDetails}=require(a32_0x529a6d(0x263)),{isBrowserstackInfra,markSessionStatus,nestedKeyValue}=require(a32_0x529a6d(0x252)),PerformanceTester=require('../../helpers/performance/performance-tester'),{AUTOMATE_EVENTS:PerformanceAutEvents,O11y_EVENTS:PerformanceO11yEvents,A11Y_EVENTS:PerformanceA11yEvents,EVENTS:PerformanceSdkEvents}=require(a32_0x529a6d(0x22a)),scripts=require('../../helpers/accessibility-automation/scripts'),globals=require(a32_0x529a6d(0x223)),logger=require(a32_0x529a6d(0x28f))[a32_0x529a6d(0x1f5)],{shouldProcessEventForTesthub}=require('../../helpers/testhub/utils'),testHubConstants=require(a32_0x529a6d(0x208));exports[a32_0x529a6d(0x207)]={'beforeAll'(){const _0x24103d=a32_0x529a6d,_0x31f516={'zRDEJ':function(_0x290f34,_0x43d241,_0x344741,_0x133cca){return _0x290f34(_0x43d241,_0x344741,_0x133cca);},'ymLks':_0x24103d(0x212),'AWeyf':_0x24103d(0x23a),'lmDwf':function(_0x3ca719,_0x514e74,_0x5b7ce2){return _0x3ca719(_0x514e74,_0x5b7ce2);},'QeAbv':_0x24103d(0x266),'PcEYi':function(_0x4b5c8d){return _0x4b5c8d();},'QGHfw':function(_0x42f177,_0xcc34f9,_0x52d7f3){return _0x42f177(_0xcc34f9,_0x52d7f3);},'rQYRd':function(_0x1a0048,_0x593d77,_0x47c9a6){return _0x1a0048(_0x593d77,_0x47c9a6);},'sXXbr':_0x24103d(0x235),'ttCXI':_0x24103d(0x278)};PerformanceTester[_0x24103d(0x21f)]();const _0x49b20a='browserstack internal helper hook';PerformanceTester[_0x24103d(0x219)](PerformanceSdkEvents[_0x24103d(0x200)],()=>{const _0x2cecc0=_0x24103d;global[_0x2cecc0(0x22b)]=[],global[_0x2cecc0(0x1fd)]=![],global['driverCleanup']=async()=>{const _0x31c478=_0x2cecc0;let _0x25ffe8=![];try{await global[_0x31c478(0x28a)][0x0][_0x31c478(0x1f8)],_0x25ffe8=!![],global['__sessionFailed']?await _0x31f516[_0x31c478(0x27f)](markSessionStatus,global[_0x31c478(0x28a)][0x0],_0x31f516[_0x31c478(0x261)],global[_0x31c478(0x22b)][_0x31c478(0x234)](_0x31f516[_0x31c478(0x1f6)])):await _0x31f516['lmDwf'](markSessionStatus,global[_0x31c478(0x28a)][0x0],_0x31f516[_0x31c478(0x236)]);}catch(_0x3c4121){logger[_0x31c478(0x25f)](_0x31c478(0x27c)+_0x3c4121);}global[_0x31c478(0x22b)]=[],global[_0x31c478(0x1fd)]=![];if(_0x25ffe8)try{try{_0x31f516[_0x31c478(0x1fc)](shouldProcessEventForTesthub)&&(global[_0x31c478(0x28a)][0x0]&&await _0x31f516[_0x31c478(0x217)](sendPlatformDetails,global[_0x31c478(0x28a)][0x0],this['currentTest']?this[_0x31c478(0x25b)][_0x31c478(0x258)]:null));}catch(_0x14a4a6){logger['debug']('Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20'+_0x14a4a6);}await global[_0x31c478(0x28a)][0x0]['initQuit']();}catch(_0x5a5108){logger[_0x31c478(0x25f)]('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0x5a5108);}};},{'platform':_0x31f516[_0x24103d(0x27e)](nestedKeyValue,global[_0x24103d(0x246)],[_0x31f516[_0x24103d(0x228)]]),'hookType':_0x31f516['ttCXI']})();},'beforeEach'(_0x2cdc78){const _0x28e2f9=a32_0x529a6d,_0xbd7164={'Mfxfc':function(_0x4d63fa,_0x3d3846){return _0x4d63fa>_0x3d3846;},'MgLer':function(_0x25f2d1,_0x25196b){return _0x25f2d1>_0x25196b;},'wOBeb':_0x28e2f9(0x26b),'HoFyz':function(_0xe72c25,_0x1264cc,_0x5b4cca){return _0xe72c25(_0x1264cc,_0x5b4cca);},'aHKlQ':_0x28e2f9(0x256),'BtFNd':function(_0x57e54b){return _0x57e54b();},'IBThb':function(_0x134cd9,_0x385ec9){return _0x134cd9>_0x385ec9;},'fUBRJ':_0x28e2f9(0x22d),'orSzV':function(_0x1843d4,_0xf7379){return _0x1843d4===_0xf7379;},'YkPYr':_0x28e2f9(0x222),'sVbsr':_0x28e2f9(0x255),'Dluzg':_0x28e2f9(0x24c),'eznOb':'Automate\x20test\x20case\x20execution\x20has\x20started.','mIBja':function(_0x2f2d41){return _0x2f2d41();},'zHnMR':_0x28e2f9(0x21d),'uuAEu':function(_0x1d0833,_0x29608c,_0x464b1d){return _0x1d0833(_0x29608c,_0x464b1d);},'IlDhM':_0x28e2f9(0x235),'LSkbz':'beforeEach'};globals['setGlobal'](_0xbd7164[_0x28e2f9(0x286)],this[_0x28e2f9(0x25b)][_0x28e2f9(0x24f)]()['join'](_0xbd7164[_0x28e2f9(0x262)])),PerformanceTester[_0x28e2f9(0x219)](PerformanceSdkEvents[_0x28e2f9(0x200)],()=>{const _0x25b7a9='browserstack internal helper hook';new Promise(async _0x3ae2cc=>{const _0x36a3ca=a32_0x26e7;let _0x1a4d8a=!![];try{_0xbd7164[_0x36a3ca(0x1f3)](global[_0x36a3ca(0x28a)][_0x36a3ca(0x21c)],0x1)&&(await global['driverCleanup'](),global[_0x36a3ca(0x28a)][_0x36a3ca(0x285)]()),_0xbd7164[_0x36a3ca(0x23d)](global[_0x36a3ca(0x28a)][0x0][_0x36a3ca(0x243)],0x0)&&(_0x1a4d8a=![],await global[_0x36a3ca(0x206)]());}catch(_0x3660fe){logger['debug'](_0x36a3ca(0x1f4)+_0x3660fe);}try{Array[_0x36a3ca(0x25a)](global[_0x36a3ca(0x28a)])&&global[_0x36a3ca(0x28a)][0x0]&&(global[_0x36a3ca(0x28a)][0x0][_0x36a3ca(0x27a)]=this[_0x36a3ca(0x25b)]['titlePath']()[_0x36a3ca(0x234)](_0xbd7164[_0x36a3ca(0x262)])),global[_0x36a3ca(0x27a)]=this[_0x36a3ca(0x25b)][_0x36a3ca(0x24f)]()['join'](_0xbd7164['wOBeb']);}catch(_0x54e60d){logger['debug'](_0x36a3ca(0x23f)+_0x54e60d);}this[_0x36a3ca(0x25b)]['shouldScanTestForAccessibility']=_0xbd7164[_0x36a3ca(0x273)](shouldScanTestForAccessibility,this[_0x36a3ca(0x25b)]['titlePath'](),!![]),globals[_0x36a3ca(0x201)](_0xbd7164['aHKlQ'],this[_0x36a3ca(0x25b)][_0x36a3ca(0x242)]),this['currentTest'][_0x36a3ca(0x287)]=!![];if(_0xbd7164[_0x36a3ca(0x216)](isAccessibilityAutomationSession)&&_0x1a4d8a&&Array['isArray'](global['__drivers'])&&_0xbd7164[_0x36a3ca(0x28c)](global[_0x36a3ca(0x28a)][_0x36a3ca(0x21c)],0x0)&&globals[_0x36a3ca(0x23e)](_0xbd7164[_0x36a3ca(0x1fe)]))try{const _0x3d9dc9=await global['__drivers'][0x0][_0x36a3ca(0x1f8)];if(_0x3d9dc9){let _0x3730d5=!![];const _0x2ee062=await global[_0x36a3ca(0x28a)][0x0][_0x36a3ca(0x264)]();let _0x56b8ad;try{_0x56b8ad=new URL(_0x2ee062);}catch(_0x19a10b){_0x3730d5=![];}_0x3730d5=_0xbd7164[_0x36a3ca(0x248)](_0x56b8ad[_0x36a3ca(0x1fa)],_0xbd7164[_0x36a3ca(0x26a)])||_0xbd7164[_0x36a3ca(0x248)](_0x56b8ad[_0x36a3ca(0x1fa)],_0xbd7164[_0x36a3ca(0x253)]),_0x3730d5&&(this[_0x36a3ca(0x25b)][_0x36a3ca(0x242)]&&logger[_0x36a3ca(0x220)](_0xbd7164['Dluzg'])),this[_0x36a3ca(0x25b)][_0x36a3ca(0x287)]=this[_0x36a3ca(0x25b)]['shouldScanTestForAccessibility'],this[_0x36a3ca(0x25b)]['shouldScanTestForAccessibility']&&logger['info'](_0xbd7164[_0x36a3ca(0x227)]);}}catch(_0x3d62ad){logger[_0x36a3ca(0x25d)](_0x36a3ca(0x1f7)+util[_0x36a3ca(0x211)](_0x3d62ad));}_0xbd7164[_0x36a3ca(0x216)](_0x3ae2cc);})['then'](()=>{const _0x4305e4=a32_0x26e7;_0xbd7164[_0x4305e4(0x20c)](_0x2cdc78);});},{'platform':_0xbd7164[_0x28e2f9(0x205)](nestedKeyValue,global[_0x28e2f9(0x246)],[_0xbd7164['IlDhM']]),'hookType':_0xbd7164[_0x28e2f9(0x269)]})();},'afterEach'(_0x421452){const _0x1a32be=a32_0x529a6d,_0x1ab04f={'BelMS':function(_0x22499e,_0x2d800c){return _0x22499e>_0x2d800c;},'sbYfL':function(_0x323975,_0x8fc62c){return _0x323975===_0x8fc62c;},'RumBv':'testcase','iMxaj':_0x1a32be(0x230),'Kqrbx':function(_0x35b72f,_0x17cf8e,_0x12d1bf,_0x5455f1){return _0x35b72f(_0x17cf8e,_0x12d1bf,_0x5455f1);},'WfwvZ':_0x1a32be(0x22d),'RKpyA':_0x1a32be(0x256),'qRGqj':_0x1a32be(0x270),'iANRb':_0x1a32be(0x27d),'oZmyx':_0x1a32be(0x218),'ePEZN':'Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','JMFEk':function(_0x158f81){return _0x158f81();},'jifVf':function(_0x4a0c27,_0x49086f,_0x43406e){return _0x4a0c27(_0x49086f,_0x43406e);},'UGchD':function(_0x4869b2){return _0x4869b2();},'nvxVb':_0x1a32be(0x25f),'SitBb':function(_0x5807b9,_0x5ae8cc){return _0x5807b9>_0x5ae8cc;},'szlLV':function(_0x68bea2){return _0x68bea2();},'yiTky':_0x1a32be(0x26b),'xeDgd':function(_0x3e168e,_0x3c6da1){return _0x3e168e!==_0x3c6da1;},'MeZNx':'passed','vkNDb':function(_0x53206e,_0x40e65d){return _0x53206e+_0x40e65d;},'NgusK':_0x1a32be(0x249),'IISZe':_0x1a32be(0x25d),'qWJmn':function(_0x47a5e4,_0x26128e,_0x5a0ac6){return _0x47a5e4(_0x26128e,_0x5a0ac6);},'pjasp':_0x1a32be(0x282),'XjiGo':_0x1a32be(0x220),'azIJP':_0x1a32be(0x235),'UOaxM':_0x1a32be(0x292)},_0x50ba0b='browserstack internal helper hook';this[_0x1a32be(0x289)](0xfde8),global['sessionName']=this['currentTest'][_0x1a32be(0x24f)]()[_0x1a32be(0x234)](_0x1ab04f['yiTky']),PerformanceTester[_0x1a32be(0x219)](PerformanceSdkEvents[_0x1a32be(0x200)],()=>{const _0x9d5e5c=_0x1a32be,_0x4ecec7={'FlBnW':_0x1ab04f['yiTky'],'krTzP':function(_0x26e2da,_0x118b6e){const _0x457cfb=a32_0x26e7;return _0x1ab04f[_0x457cfb(0x225)](_0x26e2da,_0x118b6e);},'vWlXq':_0x1ab04f[_0x9d5e5c(0x214)],'ZBLjr':function(_0x554920,_0x131f52,_0x3abaee){const _0x41a92c=_0x9d5e5c;return _0x1ab04f[_0x41a92c(0x250)](_0x554920,_0x131f52,_0x3abaee);},'NVjVq':function(_0x3dae13,_0x428331){const _0x1c27cd=_0x9d5e5c;return _0x1ab04f[_0x1c27cd(0x272)](_0x3dae13,_0x428331);},'WvFGA':_0x1ab04f['NgusK'],'YuuwN':_0x1ab04f['IISZe'],'qbZNp':function(_0x3f1803,_0x12d5ac,_0x29a2b4){return _0x1ab04f['qWJmn'](_0x3f1803,_0x12d5ac,_0x29a2b4);},'oIOBc':_0x1ab04f[_0x9d5e5c(0x27b)],'cgzSL':_0x1ab04f[_0x9d5e5c(0x275)]},_0x58b52d=async(_0x40982d,_0x446382)=>{const _0x58aed6=_0x9d5e5c;await global['__drivers'][0x0][_0x58aed6(0x237)](_0x58aed6(0x26d)+_0x40982d+_0x58aed6(0x28d)+_0x446382+_0x58aed6(0x268));};new Promise(async _0x1a8a44=>{const _0x39b3f8=_0x9d5e5c;try{_0x1ab04f['BelMS'](global[_0x39b3f8(0x28a)][_0x39b3f8(0x21c)],0x1)&&(await global[_0x39b3f8(0x206)](),global['__drivers'][_0x39b3f8(0x285)](),global['__error_messages__']=[],global[_0x39b3f8(0x1fd)]=![]);try{if(global[_0x39b3f8(0x209)]&&_0x1ab04f['sbYfL'](global[_0x39b3f8(0x241)],_0x1ab04f[_0x39b3f8(0x265)])&&global[_0x39b3f8(0x28a)][0x0]){const _0x24198f=_0x1ab04f[_0x39b3f8(0x21e)](global['capabilities']['length'],0x0)?!!global[_0x39b3f8(0x24e)][0x0][_0x39b3f8(0x238)]||!!global[_0x39b3f8(0x24e)][0x0][_0x1ab04f[_0x39b3f8(0x247)]]:![],_0x1ea531={};_0x1ea531['app']=_0x24198f,await _0x1ab04f['Kqrbx'](percyAutoCapture,global[_0x39b3f8(0x28a)][0x0],_0x1ab04f[_0x39b3f8(0x265)],_0x1ea531);}}catch(_0xe533eb){logger[_0x39b3f8(0x25f)]('Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20'+_0xe533eb);}!global[_0x39b3f8(0x283)]&&(await PerformanceTester[_0x39b3f8(0x219)](PerformanceAutEvents[_0x39b3f8(0x25e)],async()=>{const _0x26c1a4=_0x39b3f8;await global[_0x26c1a4(0x28a)][0x0][_0x26c1a4(0x237)](_0x26c1a4(0x224)+JSON[_0x26c1a4(0x274)](this[_0x26c1a4(0x25b)][_0x26c1a4(0x24f)]()['join'](_0x4ecec7[_0x26c1a4(0x20b)]))+'}}');})(),global[_0x39b3f8(0x28a)][0x0][_0x39b3f8(0x20d)]=!![]),await PerformanceTester['measureWrapper'](PerformanceAutEvents[_0x39b3f8(0x1ff)],async()=>{const _0x553cbb=_0x39b3f8,_0x52b3f5=_0x4ecec7[_0x553cbb(0x28e)](this[_0x553cbb(0x25b)][_0x553cbb(0x280)],_0x4ecec7[_0x553cbb(0x295)]);_0x52b3f5?(global[_0x553cbb(0x1fd)]=!![],global['__error_messages__'][_0x553cbb(0x279)](this[_0x553cbb(0x25b)]['err'][_0x553cbb(0x267)]),await _0x4ecec7['ZBLjr'](_0x58b52d,JSON[_0x553cbb(0x274)](_0x4ecec7['NVjVq'](_0x4ecec7[_0x553cbb(0x26c)],this[_0x553cbb(0x25b)]['err'][_0x553cbb(0x267)])),_0x4ecec7[_0x553cbb(0x1f9)])):await _0x4ecec7[_0x553cbb(0x259)](_0x58b52d,JSON[_0x553cbb(0x274)](_0x4ecec7[_0x553cbb(0x290)]),_0x4ecec7[_0x553cbb(0x291)]);})();}catch(_0x135b80){logger[_0x39b3f8(0x25f)](_0x39b3f8(0x284)+_0x135b80);}try{if(this[_0x39b3f8(0x25b)][_0x39b3f8(0x287)]&&globals['getGlobal'](_0x1ab04f['WfwvZ'])&&globals[_0x39b3f8(0x23e)](_0x1ab04f[_0x39b3f8(0x22f)])){logger['info'](_0x1ab04f[_0x39b3f8(0x231)]);const _0x4a9f06={};_0x4a9f06['thTestRunUuid']=this[_0x39b3f8(0x25b)][_0x39b3f8(0x258)],_0x4a9f06['thBuildUuid']=process['env'][testHubConstants[_0x39b3f8(0x239)]['BROWSERSTACK_TESTHUB_UUID']],_0x4a9f06[_0x39b3f8(0x213)]=process[_0x39b3f8(0x232)][testHubConstants[_0x39b3f8(0x239)][_0x39b3f8(0x22e)]];const _0x2741bb=_0x4a9f06;logger[_0x39b3f8(0x25f)](_0x39b3f8(0x215)+JSON[_0x39b3f8(0x274)](_0x2741bb)),logger[_0x39b3f8(0x25f)](_0x1ab04f[_0x39b3f8(0x24d)]);const _0x41dfd8={};_0x41dfd8[_0x39b3f8(0x294)]=_0x1ab04f[_0x39b3f8(0x204)],await PerformanceTester['measureWrapper'](PerformanceA11yEvents[_0x39b3f8(0x296)],async()=>{const _0x15bbf2=_0x39b3f8;logger[_0x15bbf2(0x25f)](util[_0x15bbf2(0x211)](await global[_0x15bbf2(0x28a)][0x0][_0x15bbf2(0x240)](scripts[_0x15bbf2(0x276)],{'method':global['browserstackSessionName']})));},_0x41dfd8)(),await PerformanceTester[_0x39b3f8(0x219)](PerformanceA11yEvents[_0x39b3f8(0x271)],async()=>{const _0x291715=_0x39b3f8;await global[_0x291715(0x28a)][0x0][_0x291715(0x240)](scripts['saveTestResults'],_0x2741bb);})(),logger[_0x39b3f8(0x220)](_0x1ab04f[_0x39b3f8(0x293)]);}}catch(_0x9da870){logger[_0x39b3f8(0x25d)]('Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20'+this[_0x39b3f8(0x25b)][_0x39b3f8(0x24f)]()+_0x39b3f8(0x20a),_0x9da870);}try{try{if(_0x1ab04f[_0x39b3f8(0x281)](shouldProcessEventForTesthub)){global[_0x39b3f8(0x28a)][0x0]&&await _0x1ab04f[_0x39b3f8(0x250)](sendPlatformDetails,global[_0x39b3f8(0x28a)][0x0],this[_0x39b3f8(0x25b)]?this['currentTest']['testAnalyticsId']:null);if(_0x1ab04f[_0x39b3f8(0x23b)](isBrowserstackInfra)){PerformanceTester[_0x39b3f8(0x254)](PerformanceO11yEvents[_0x39b3f8(0x245)]);const _0x26a58e=_0x39b3f8(0x210)+Date[_0x39b3f8(0x24a)]();await _0x1ab04f[_0x39b3f8(0x250)](_0x58b52d,JSON['stringify'](_0x26a58e),_0x1ab04f[_0x39b3f8(0x202)]),PerformanceTester[_0x39b3f8(0x1fb)](PerformanceO11yEvents[_0x39b3f8(0x245)]);}}}catch(_0x11e20d){logger['debug'](_0x39b3f8(0x260)+_0x11e20d),PerformanceTester['end'](PerformanceO11yEvents[_0x39b3f8(0x245)],![],_0x11e20d);}_0x1ab04f[_0x39b3f8(0x28b)](global[_0x39b3f8(0x28a)][0x0][_0x39b3f8(0x243)],0x0)&&await global[_0x39b3f8(0x206)]();}catch(_0x3515b7){logger[_0x39b3f8(0x25f)](_0x39b3f8(0x1f4)+_0x3515b7);}_0x1ab04f[_0x39b3f8(0x23b)](_0x1a8a44);})[_0x9d5e5c(0x21b)](()=>{const _0x6dc481=_0x9d5e5c;_0x1ab04f[_0x6dc481(0x20f)](_0x421452);});},{'platform':_0x1ab04f['qWJmn'](nestedKeyValue,global[_0x1a32be(0x246)],[_0x1ab04f['azIJP']]),'hookType':_0x1ab04f[_0x1a32be(0x21a)]})();},'afterAll'(_0x1c3049){const _0x28b0c8=a32_0x529a6d,_0x1914bf={'xLjVN':function(_0x431903){return _0x431903();},'CGoyN':function(_0x5cce12){return _0x5cce12();},'GJBeU':function(_0x423eb5,_0x473400,_0x4a1c64){return _0x423eb5(_0x473400,_0x4a1c64);},'tDdAP':_0x28b0c8(0x235),'xJWjd':_0x28b0c8(0x277)},_0x5bb18a='browserstack internal helper hook';this[_0x28b0c8(0x289)](0xfde8),PerformanceTester[_0x28b0c8(0x219)](PerformanceSdkEvents[_0x28b0c8(0x200)],()=>{const _0x3d12e6=_0x28b0c8;new Promise(async _0x2c33d4=>{const _0x54c42d=a32_0x26e7;await global[_0x54c42d(0x206)](),_0x1914bf['xLjVN'](_0x2c33d4);})[_0x3d12e6(0x21b)]()[_0x3d12e6(0x26e)](()=>{const _0x4e0435=_0x3d12e6;_0x1914bf[_0x4e0435(0x244)](_0x1c3049);});},{'platform':_0x1914bf[_0x28b0c8(0x251)](nestedKeyValue,global[_0x28b0c8(0x246)],[_0x1914bf[_0x28b0c8(0x25c)]]),'hookType':_0x1914bf[_0x28b0c8(0x203)]})();}};function a32_0x26e7(_0x305d65,_0x5c2844){const _0x1126ef=a32_0x1126();return a32_0x26e7=function(_0x26e7ad,_0x410dbd){_0x26e7ad=_0x26e7ad-0x1f3;let _0xe566fd=_0x1126ef[_0x26e7ad];return _0xe566fd;},a32_0x26e7(_0x305d65,_0x5c2844);}function a32_0x1126(){const _0xece6e6=['SitBb','IBThb',',\x22level\x22:\x20\x22','krTzP','../../helpers/logger','oIOBc','cgzSL','afterEach','ePEZN','command','vWlXq','PERFORM_SCAN','2852355SGJIoF','Mfxfc','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','winstonLogger','AWeyf','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','session_','YuuwN','protocol','end','PcEYi','__sessionFailed','fUBRJ','SESSION_STATUS','SDK_HOOK','setGlobal','nvxVb','xJWjd','oZmyx','uuAEu','driverCleanup','mochaHooks','../../helpers/testhub/constants','percy','.\x20Error\x20:','FlBnW','mIBja','sessionNameSet__','99432ulwPHn','szlLV','ObservabilitySync:','format','failed','thJwtToken','MeZNx','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','BtFNd','QGHfw','afterTest','measureWrapper','UOaxM','then','length','browserstackTestName','BelMS','startMonitoring','info','1877ketLpG','http:','../../helpers/globals','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','xeDgd','util','eznOb','sXXbr','2797323xffIFn','../../helpers/performance/constants','__error_messages__','80xHzofG','isAccessibilityPlatform','BROWSERSTACK_TESTHUB_JWT','RKpyA','appium:app','qRGqj','env','1127708qpECjU','join','index','QeAbv','executeScript','app','ENV_VAR','\x20|\x20','UGchD','8384152hATtxf','MgLer','getGlobal','Failed\x20to\x20store\x20session\x20name:\x20','executeAsyncScript','percyCaptureMode','shouldScanTestForAccessibility','quitCount_','CGoyN','SYNC','__platformCaps','iMxaj','orSzV','Failed:\x20','now','../../helpers/percy/utils','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','iANRb','capabilities','titlePath','jifVf','GJBeU','../../helpers/helper','sVbsr','start','https:','bstackA11yShouldScan','4721610ELwqoI','testAnalyticsId','qbZNp','isArray','currentTest','tDdAP','error','SESSION_NAME','debug','Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20','ymLks','wOBeb','./test-observability/mochaUtils','getCurrentUrl','RumBv','passed','message','\x22}}','LSkbz','YkPYr','\x20-\x20','WvFGA','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','finally','978XvcXET','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','SAVE_RESULTS','vkNDb','HoFyz','stringify','XjiGo','performScan','afterAll','beforeAll','push','browserstackSessionName','pjasp','Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20','Performing\x20scan\x20before\x20saving\x20results','rQYRd','zRDEJ','state','JMFEk','Passed','__skipSessionName','Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20','shift','zHnMR','accessibilityScanStarted','../../helpers/accessibility-automation/helper','timeout','__drivers'];a32_0x1126=function(){return _0xece6e6;};return a32_0x1126();}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';function a33_0xaac1(_0x48962a,_0x2f4bcf){const _0x3a8db4=a33_0x3a8d();return a33_0xaac1=function(_0xaac140,_0x3ae94c){_0xaac140=_0xaac140-0xf3;let _0x3e8214=_0x3a8db4[_0xaac140];return _0x3e8214;},a33_0xaac1(_0x48962a,_0x2f4bcf);}function a33_0x3a8d(){const _0x11488a=['../../helpers/logger','nXCUo','stringify','winstonLogger','platform','cwd','../../helpers/BrowserStackSetup','jtMDE','nightwatch','nightwatch.cmd','child\x20process\x20exited\x20with\x20code\x20','nightwatch.conf.js','config','isUndefined','close','path','UHLZk','YQmkp','test_settings','platforms','8228424oXIejP','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','child_process','4pyDPCm','LXmum','splice','modifyBrowserStackCaps','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','ZwKgZ','writeFileSync','webdriver','Getting\x20your\x20nightwatch\x20configs\x20from\x20','EuidD','modifyBrowserStackW3CCaps','desiredCapabilities','port','UeHtJ','sRcJu','existsSync','10552936OANEvg','115195xziKVE','test','aeVuC','../../helpers/helper','156HrAVre','7OKJkaU','4720716XoKeQM','inherit','mergeDeep','exports','TtUbv','push','ekXyr','filter','--env','FHSkt','--config','qXdaA','ncZui','trim','FQfpx','655192EkjWSs','join','Deleting\x20','PJYlY','env','25424100xvPDfC','selenium','../utils/constants','start_process','teSyp','info','useW3C','nightwatch.json','debug','nightwatch-browserstack.json','slice','findIndex','13405977gTNctW'];a33_0x3a8d=function(){return _0x11488a;};return a33_0x3a8d();}const a33_0xb00039=a33_0xaac1;(function(_0xa6f0c0,_0x5d1a74){const _0x5910d5=a33_0xaac1,_0x79168f=_0xa6f0c0();while(!![]){try{const _0x7e40cf=-parseInt(_0x5910d5(0xf4))/0x1*(-parseInt(_0x5910d5(0x11a))/0x2)+parseInt(_0x5910d5(0x10b))/0x3+parseInt(_0x5910d5(0x109))/0x4*(-parseInt(_0x5910d5(0x105))/0x5)+-parseInt(_0x5910d5(0x140))/0x6*(parseInt(_0x5910d5(0x10a))/0x7)+parseInt(_0x5910d5(0x104))/0x8+parseInt(_0x5910d5(0x12b))/0x9+-parseInt(_0x5910d5(0x11f))/0xa;if(_0x7e40cf===_0x5d1a74)break;else _0x79168f['push'](_0x79168f['shift']());}catch(_0x521427){_0x79168f['push'](_0x79168f['shift']());}}}(a33_0x3a8d,0xd6ea3));const fs=require('fs'),path=require(a33_0xb00039(0x13b)),{spawn}=require(a33_0xb00039(0xf3)),logger=require(a33_0xb00039(0x12c))[a33_0xb00039(0x12f)],{default:BrowserStackSetup}=require(a33_0xb00039(0x132)),helper=require(a33_0xb00039(0x108)),constants=require(a33_0xb00039(0x121)),getUserNightwatchConfigs=(_0x51a6bb,_0x51fdc8)=>{const _0x2cbcd6=a33_0xb00039,_0x4cf53a={'UHLZk':_0x2cbcd6(0x137),'LXmum':_0x2cbcd6(0x126),'EuidD':function(_0x5a1f3c,_0x4d24c6){return _0x5a1f3c(_0x4d24c6);},'qXdaA':_0x2cbcd6(0xf8)};let _0x48f87b=null,_0x57c23a={};const _0x4cc524=_0x51fdc8[_0x2cbcd6(0x12a)](_0x3e53b1=>_0x3e53b1===_0x2cbcd6(0x115));if(!helper[_0x2cbcd6(0x139)](_0x51a6bb[_0x2cbcd6(0x138)])&&fs[_0x2cbcd6(0x103)](path['join'](process['cwd'](),_0x51a6bb['config'])))_0x48f87b=path[_0x2cbcd6(0x11b)](process[_0x2cbcd6(0x131)](),_0x51a6bb[_0x2cbcd6(0x138)]),_0x51fdc8['splice'](_0x4cc524,0x2);else{if(fs[_0x2cbcd6(0x103)](path[_0x2cbcd6(0x11b)](process[_0x2cbcd6(0x131)](),_0x4cf53a['UHLZk'])))_0x48f87b=path[_0x2cbcd6(0x11b)](process[_0x2cbcd6(0x131)](),_0x4cf53a[_0x2cbcd6(0x13c)]);else fs[_0x2cbcd6(0x103)](path[_0x2cbcd6(0x11b)](process[_0x2cbcd6(0x131)](),_0x4cf53a[_0x2cbcd6(0xf5)]))&&(_0x48f87b=path['join'](process['cwd'](),_0x4cf53a['LXmum']));}return _0x48f87b?(logger[_0x2cbcd6(0x124)](_0x2cbcd6(0xfc)+_0x48f87b),_0x57c23a=_0x4cf53a[_0x2cbcd6(0xfd)](require,_0x48f87b)):logger[_0x2cbcd6(0x124)](_0x4cf53a[_0x2cbcd6(0x116)]),_0x57c23a;},removeExistingEnvs=_0x3e41e4=>{const _0x11860e=a33_0xb00039,_0x415eec={};_0x415eec[_0x11860e(0x117)]=function(_0x3f68cd,_0x3427ed){return _0x3f68cd>_0x3427ed;},_0x415eec['JvngD']=function(_0x359ee3,_0x5312a2){return _0x359ee3>_0x5312a2;};const _0x2a213e=_0x415eec;let _0x293f8b=_0x3e41e4['findIndex'](_0x3b9bca=>_0x3b9bca===_0x11860e(0x113));_0x2a213e[_0x11860e(0x117)](_0x293f8b,-0x1)&&_0x3e41e4[_0x11860e(0xf6)](_0x293f8b,0x2),_0x293f8b=_0x3e41e4[_0x11860e(0x12a)](_0x4647fb=>_0x4647fb==='-e'),_0x2a213e['JvngD'](_0x293f8b,-0x1)&&_0x3e41e4[_0x11860e(0xf6)](_0x293f8b,0x2);};function run(_0x3bdc00,_0x21e8de){const _0x47301a=a33_0xb00039,_0x150eb0={'MVzbg':_0x47301a(0x134),'ekXyr':function(_0x5f3e69,_0x2a8b4a){return _0x5f3e69+_0x2a8b4a;},'FQfpx':_0x47301a(0x13e),'jtMDE':function(_0xcb6fe4,_0xf95ebd,_0x38b6b1){return _0xcb6fe4(_0xf95ebd,_0x38b6b1);},'TtUbv':'hub.browserstack.com','PJYlY':_0x47301a(0x141),'FHSkt':function(_0x7a0a63,_0x369eb5){return _0x7a0a63===_0x369eb5;},'sRcJu':_0x47301a(0x128),'UeHtJ':function(_0x4a7009,_0x41dc81){return _0x4a7009(_0x41dc81);},'nXCUo':function(_0xdc881,_0x2531fb,_0x5ed26b,_0x2c3512){return _0xdc881(_0x2531fb,_0x5ed26b,_0x2c3512);},'YQmkp':_0x47301a(0x135),'aeVuC':_0x47301a(0x115),'ZwKgZ':_0x47301a(0x113),'GMsBX':_0x47301a(0x10c),'teSyp':_0x47301a(0x13a)},_0x337966=new BrowserStackSetup(_0x3bdc00);if(!_0x337966[_0x47301a(0x138)])return;const _0x13d7a3=_0x150eb0[_0x47301a(0x133)](getUserNightwatchConfigs,_0x3bdc00,_0x21e8de),_0x3aea68={};_0x3aea68[_0x47301a(0x122)]=![];const _0x58092a={};_0x58092a['host']=_0x150eb0[_0x47301a(0x10f)],_0x58092a[_0x47301a(0x100)]=0x1bb;const _0x4cb3ad={};_0x4cb3ad[_0x47301a(0xfb)]=_0x3aea68,_0x4cb3ad[_0x47301a(0x120)]=_0x58092a;const _0x1cd647=_0x4cb3ad;logger['info'](_0x150eb0[_0x47301a(0x11d)]);const _0x4c4e78={..._0x13d7a3},_0x4ae1ea=_0x4c4e78,_0x57939b=helper[_0x47301a(0x125)](_0x337966['config']),_0x5b6b33=[];_0x337966[_0x47301a(0x138)][_0x47301a(0x13f)]['forEach']((_0x2703b6,_0x23533c)=>{const _0x24594a=_0x47301a;_0x57939b?_0x5b6b33[_0x24594a(0x110)](helper[_0x24594a(0xfe)](_0x337966[_0x24594a(0x138)],_0x150eb0['MVzbg'],_0x23533c)):_0x5b6b33['push'](helper[_0x24594a(0xf7)](_0x337966[_0x24594a(0x138)],_0x150eb0['MVzbg'],_0x23533c));});const _0x2016ae={},_0x559dd2=[];_0x3bdc00[_0x47301a(0x11e)]=_0x3bdc00[_0x47301a(0x11e)]||_0x3bdc00['e'];const _0x5afdd6=_0x3bdc00[_0x47301a(0x11e)]?_0x3bdc00[_0x47301a(0x11e)][_0x47301a(0x118)]()['split'](',')['map'](_0x193fcf=>_0x193fcf['trim']())[_0x47301a(0x112)](_0x223b5f=>_0x223b5f!==''):[''];_0x150eb0[_0x47301a(0x114)](_0x5afdd6['length'],0x0)&&_0x5afdd6['push']('');_0x5afdd6['forEach'](_0x1ee7e7=>{_0x5b6b33['forEach'](_0x2bec2d=>{const _0x49f477=a33_0xaac1;let _0x2b6cc5=_0x150eb0[_0x49f477(0x111)](helper['getPlatformName'](_0x2bec2d,'_'),'_'+Date['now']());_0x1ee7e7&&(_0x2b6cc5+='_'+_0x1ee7e7);if(_0x1ee7e7&&(!_0x13d7a3[_0x150eb0[_0x49f477(0x119)]]||!_0x13d7a3[_0x150eb0[_0x49f477(0x119)]][_0x1ee7e7]))return;const _0x4afb97={..._0x1cd647};_0x4afb97[_0x49f477(0xff)]=_0x2bec2d;const _0x23ae6f=_0x4afb97;_0x2016ae[_0x2b6cc5]=_0x1ee7e7?helper[_0x49f477(0x10d)](_0x13d7a3[_0x150eb0[_0x49f477(0x119)]][_0x1ee7e7],_0x23ae6f):_0x23ae6f,_0x559dd2[_0x49f477(0x110)](_0x2b6cc5);});});!_0x4ae1ea[_0x47301a(0x13e)]&&(_0x4ae1ea[_0x47301a(0x13e)]={});_0x4ae1ea[_0x47301a(0x13e)]={..._0x4ae1ea[_0x47301a(0x13e)],..._0x2016ae};const _0x1f3407=path[_0x47301a(0x11b)](__dirname,_0x150eb0[_0x47301a(0x102)]);fs[_0x47301a(0xfa)](_0x1f3407,JSON[_0x47301a(0x12e)](_0x4ae1ea)),_0x150eb0[_0x47301a(0x101)](removeExistingEnvs,_0x21e8de);const _0x4e18db=_0x150eb0[_0x47301a(0x12d)](spawn,/^win/[_0x47301a(0x106)](process[_0x47301a(0x130)])?_0x150eb0[_0x47301a(0x13d)]:_0x150eb0['MVzbg'],[_0x150eb0[_0x47301a(0x107)],_0x1f3407,..._0x21e8de[_0x47301a(0x129)](0x1),_0x150eb0[_0x47301a(0xf9)],_0x559dd2[_0x47301a(0x11b)](',')],{'stdio':_0x150eb0['GMsBX']});_0x4e18db['on'](_0x150eb0[_0x47301a(0x123)],async _0x4b5407=>{const _0x2b6765=_0x47301a;logger[_0x2b6765(0x127)](_0x2b6765(0x136)+_0x4b5407),logger[_0x2b6765(0x124)](_0x2b6765(0x11c)+_0x1f3407),fs['unlinkSync'](_0x1f3407);});}module[a33_0xb00039(0x10e)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a34_0x341980=a34_0x41c2;(function(_0xd78159,_0x20a516){const _0x196b4c=a34_0x41c2,_0x1a8743=_0xd78159();while(!![]){try{const _0x567fae=-parseInt(_0x196b4c(0x1b8))/0x1+parseInt(_0x196b4c(0x19f))/0x2*(parseInt(_0x196b4c(0x1af))/0x3)+parseInt(_0x196b4c(0x191))/0x4*(parseInt(_0x196b4c(0x17b))/0x5)+-parseInt(_0x196b4c(0x1b3))/0x6+-parseInt(_0x196b4c(0x1d3))/0x7*(-parseInt(_0x196b4c(0x1ce))/0x8)+parseInt(_0x196b4c(0x1bf))/0x9+parseInt(_0x196b4c(0x19e))/0xa;if(_0x567fae===_0x20a516)break;else _0x1a8743['push'](_0x1a8743['shift']());}catch(_0x215316){_0x1a8743['push'](_0x1a8743['shift']());}}}(a34_0x1a4b,0xaf4e5));function a34_0x1a4b(){const _0x23953e=['needsReview','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','env','browserstack.accessibility','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','zBuWn','iHZYa','vYlXs','setAccessibilityCapabilities','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','3029260sdxCHD','206dMsgvn','accessibilityOptions.scannerProcessingTimeout','PERFORM_SCAN','(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','mHPPA','zYvPA','../../helpers/performance/constants','(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','btjuK','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','fLkvh','BIcTK','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','evaluate','LkfOz','accessibilityPlatform','14349asfWgL','project','stringify','Playwright','7727478EfVeTN','cUcFv','accessibilityOptions','parse','format','960953ngtZln','bstackSdkArgs','uPgDK','gtJEv','BMxsf','performScan','bestPractice','7289487otLWal','pITru','GQKPP','oDYfg','getAccessibilityResults','processAccessibilityCaps','accessibilityOptions.wcagVersion','QXAzH','deviceName','kjZns','scannerVersion','RCsKQ','accessibilityOptions.includeIssueType.needsReview','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','tmKeL','250784mVhxcZ','platformValidation','browser_version','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','measureWrapper','301OVTNNi','chrome','includeIssueType','playwright-chromium','executeScript','wNrVM','../../helpers/logger','debug','gwvHy','constructor','No\x20summaryResults\x20found.','BS_A11Y_JWT','hUKgI','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','browser','browserName','hJXxE','scannerProcessingTimeout','22395WqzOAW','HSWHk','wcagVersion','testInfo','JhpOf','nZyVp','YOMCA','browserStackEvaluate','MfGqP','executeAsyncScript','accessibilityOptions.scannerVersion','replace','warn','command','No\x20accessibility\x20results\x20were\x20found.','wsEndpoint','../../helpers/accessibility-automation/scripts','vRitS','Jnyud','name','use','connectOptions','12nRemBl','UfWKL','latest'];a34_0x1a4b=function(){return _0x23953e;};return a34_0x1a4b();}const util=require('util'),logger=require(a34_0x341980(0x16f))['winstonLogger'],{isAccessibilityAutomationSession}=require('../../helpers/accessibility-automation/helper'),{isUndefined}=require('../../helpers/helper'),scripts=require(a34_0x341980(0x18b)),PerformanceTester=require('../../helpers/performance/performance-tester'),{A11Y_EVENTS:PerformanceA11yEvents}=require(a34_0x341980(0x1a5));function a34_0x41c2(_0x1ea977,_0x50c8ef){const _0x1a4b1a=a34_0x1a4b();return a34_0x41c2=function(_0x41c201,_0x24e3d){_0x41c201=_0x41c201-0x16f;let _0x29c7ec=_0x1a4b1a[_0x41c201];return _0x29c7ec;},a34_0x41c2(_0x1ea977,_0x50c8ef);}exports[a34_0x341980(0x182)]=async(_0x98db24,_0x411dc9,_0x3c6e61={})=>{const _0x4318f0=a34_0x341980,_0x2ea55a={};_0x2ea55a[_0x4318f0(0x179)]=_0x4318f0(0x1b9);const _0x489900=_0x2ea55a;return await _0x98db24[_0x4318f0(0x1ac)](_0x4318f0(0x1a6)+_0x411dc9[_0x4318f0(0x186)](/arguments/g,_0x489900[_0x4318f0(0x179)])+'\x0a\x20\x20\x20\x20})\x0a\x20\x20})('+JSON['stringify'](_0x3c6e61)+')');},exports['browserStackExecuteDriver']=async(_0x300a79,_0x301b71,_0x3536ed={})=>{const _0xa0d95a=a34_0x341980,_0x1df793={};_0x1df793['HSWHk']=function(_0x4b3c3b,_0x110dfd){return _0x4b3c3b===_0x110dfd;},_0x1df793[_0xa0d95a(0x1bc)]='WebDriver',_0x1df793['gwvHy']=_0xa0d95a(0x1b2),_0x1df793[_0xa0d95a(0x1c6)]=_0xa0d95a(0x1b9);const _0x871de=_0x1df793;if(_0x871de['HSWHk'](_0x300a79[_0xa0d95a(0x172)][_0xa0d95a(0x18e)],_0x871de[_0xa0d95a(0x1bc)]))return await _0x300a79[_0xa0d95a(0x184)](_0x301b71,_0x3536ed);else{if(_0x871de[_0xa0d95a(0x17c)](_0x300a79[_0xa0d95a(0x172)][_0xa0d95a(0x18e)],_0x871de[_0xa0d95a(0x171)]))return await _0x300a79[_0xa0d95a(0x1d7)](_0xa0d95a(0x1a2)+_0x301b71[_0xa0d95a(0x186)](/arguments/g,_0x871de[_0xa0d95a(0x1c6)])+'\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})('+JSON[_0xa0d95a(0x1b1)](_0x3536ed)+')');}},exports[a34_0x341980(0x19c)]=async _0x4836a6=>{const _0x37e620=a34_0x341980,_0x3a7493={};_0x3a7493[_0x37e620(0x17f)]=_0x37e620(0x1c5),_0x3a7493[_0x37e620(0x175)]=_0x37e620(0x1a0),_0x3a7493[_0x37e620(0x1d8)]='accessibilityOptions.includeIssueType.bestPractice',_0x3a7493[_0x37e620(0x19b)]=_0x37e620(0x1cb),_0x3a7493[_0x37e620(0x1a7)]='accessibilityOptions.authToken',_0x3a7493[_0x37e620(0x18d)]=_0x37e620(0x185);const _0x7ca1e9=_0x3a7493;_0x4836a6['accessibilityOptions']&&(_0x4836a6[_0x37e620(0x1b5)][_0x37e620(0x17d)]&&(_0x4836a6[_0x7ca1e9[_0x37e620(0x17f)]]=_0x4836a6[_0x37e620(0x1b5)][_0x37e620(0x17d)]),_0x4836a6[_0x37e620(0x1b5)][_0x37e620(0x17a)]&&(_0x4836a6[_0x7ca1e9[_0x37e620(0x175)]]=_0x4836a6[_0x37e620(0x1b5)][_0x37e620(0x17a)]),_0x4836a6[_0x37e620(0x1b5)]['includeIssueType']&&(_0x4836a6[_0x7ca1e9['wNrVM']]=_0x4836a6[_0x37e620(0x1b5)][_0x37e620(0x1d5)][_0x37e620(0x1be)],_0x4836a6[_0x7ca1e9['vYlXs']]=_0x4836a6['accessibilityOptions']['includeIssueType'][_0x37e620(0x194)]));const _0x5403b8=JSON[_0x37e620(0x1b6)](process['env'][_0x37e620(0x19d)])[_0x37e620(0x1c9)];_0x4836a6[_0x7ca1e9['btjuK']]=process[_0x37e620(0x196)][_0x37e620(0x174)],_0x4836a6[_0x7ca1e9[_0x37e620(0x18d)]]=_0x5403b8,delete _0x4836a6[_0x37e620(0x1b5)];},exports[a34_0x341980(0x1c3)]=async _0x42b3a4=>{const _0xd41e8b=a34_0x341980,_0xabeb96={};_0xabeb96[_0xd41e8b(0x1ba)]=_0xd41e8b(0x189),_0xabeb96[_0xd41e8b(0x180)]=_0xd41e8b(0x1cc);const _0x4b1130=_0xabeb96;if(global[_0xd41e8b(0x1ae)])try{logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x42b3a4,scripts.performScan)));},{command:'getAccessibilityResults'})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x42b3a4,scripts.getResults);})();return res;}catch{return logger['error'](_0x4b1130[_0xd41e8b(0x1ba)]),[];}else return logger[_0xd41e8b(0x187)](_0x4b1130[_0xd41e8b(0x180)]),[];},exports['performScan']=async(_0x1cd9e1,_0x2ef2da='')=>{const _0x32d5d0=a34_0x341980;if(global['accessibilityPlatform'])return await PerformanceTester[_0x32d5d0(0x1d2)](PerformanceA11yEvents[_0x32d5d0(0x1a1)],async()=>{const _0x576d19=_0x32d5d0,_0x3a7837={};_0x3a7837[_0x576d19(0x188)]=_0x2ef2da,await exports['browserStackEvaluate'](_0x1cd9e1,scripts[_0x576d19(0x1bd)],_0x3a7837);},{'command':_0x2ef2da})();},exports['getAccessibilityResultsSummary']=async _0x4aa21c=>{const _0x18334=a34_0x341980,_0x4863cb={};_0x4863cb[_0x18334(0x1ad)]=_0x18334(0x173),_0x4863cb['yRlRj']=_0x18334(0x1d1);const _0x5ad550=_0x4863cb;if(global['accessibilityPlatform'])try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x4aa21c,scripts.performScan)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x4aa21c,scripts.getResultsSummary);})();return summaryResults;}catch{return logger[_0x18334(0x170)](_0x5ad550[_0x18334(0x1ad)]),{};}else return logger['warn'](_0x5ad550['yRlRj']),{};},exports[a34_0x341980(0x1cf)]=async _0x38785b=>{const _0x16b0bd=a34_0x341980,_0x303342={'NZZYn':function(_0x13769e,_0x60da31){return _0x13769e!==_0x60da31;},'YGpLP':_0x16b0bd(0x195),'mHPPA':function(_0x2ca0f7,_0x58dddc){return _0x2ca0f7===_0x58dddc;},'tmKeL':_0x16b0bd(0x1d4),'RCsKQ':function(_0x2ea99c,_0xb27462){return _0x2ea99c===_0xb27462;},'iHZYa':_0x16b0bd(0x1d6),'cUcFv':_0x16b0bd(0x198),'TXcwG':function(_0x4af9d1,_0x1dfc1c){return _0x4af9d1(_0x1dfc1c);},'zBuWn':function(_0x404a05,_0x34da50){return _0x404a05===_0x34da50;},'oDYfg':_0x16b0bd(0x193),'WCFhR':function(_0x2c3dba,_0x47975b){return _0x2c3dba>_0x47975b;},'YOMCA':_0x16b0bd(0x176)};try{if(!_0x303342['NZZYn'](_0x38785b[_0x16b0bd(0x1c7)],''))return logger['warn'](_0x303342['YGpLP']),![];const _0x32cf2b=_0x38785b[_0x16b0bd(0x177)];if(!(_0x303342[_0x16b0bd(0x1a3)](_0x32cf2b,_0x303342[_0x16b0bd(0x1cd)])||_0x303342[_0x16b0bd(0x1ca)](_0x32cf2b,_0x303342[_0x16b0bd(0x19a)])))return logger[_0x16b0bd(0x187)](_0x303342[_0x16b0bd(0x1b4)]),![];const _0x116968=_0x303342['TXcwG'](parseInt,_0x38785b['browser_version']);if(!(_0x303342[_0x16b0bd(0x199)](_0x116968,_0x303342[_0x16b0bd(0x1c2)])||_0x303342['WCFhR'](_0x116968,0x5e)))return logger[_0x16b0bd(0x187)](_0x303342[_0x16b0bd(0x181)]),![];}catch(_0x473db2){logger[_0x16b0bd(0x170)](_0x16b0bd(0x1ab)+util[_0x16b0bd(0x1b7)](_0x473db2));}return!![];},exports[a34_0x341980(0x1c4)]=(_0x16c428,_0x24fcae,_0x59a44d)=>{const _0x327de6=a34_0x341980,_0x452cb7={'sFTVb':function(_0x5ce4ad){return _0x5ce4ad();},'vRitS':_0x327de6(0x197),'zYvPA':function(_0x385ac7,_0x51cc6d){return _0x385ac7===_0x51cc6d;},'UfWKL':'chrome','BIcTK':function(_0x1cea6d,_0x4acb80){return _0x1cea6d===_0x4acb80;},'XbUXh':_0x327de6(0x1d6),'MfGqP':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','gtJEv':'latest','pITru':function(_0x5b5317,_0xea9cef){return _0x5b5317>_0xea9cef;},'fLkvh':_0x327de6(0x176),'kjZns':function(_0x19b36a,_0x1a436a){return _0x19b36a(_0x1a436a);},'GQKPP':_0x327de6(0x195),'mExFJ':function(_0xc984f7,_0x4ca5c6){return _0xc984f7+_0x4ca5c6;}};try{if(_0x452cb7['sFTVb'](isAccessibilityAutomationSession)){global['accessibilityPlatform']=!![];!_0x16c428[_0x452cb7['vRitS']]&&(global[_0x327de6(0x1ae)]=![]);!(_0x452cb7[_0x327de6(0x1a4)](_0x16c428['browserName'],_0x452cb7[_0x327de6(0x192)])||_0x452cb7[_0x327de6(0x1aa)](_0x16c428[_0x327de6(0x178)],_0x452cb7['XbUXh']))&&(logger['warn'](_0x452cb7[_0x327de6(0x183)]),global['accessibilityPlatform']=![]);!(_0x452cb7[_0x327de6(0x1aa)](_0x16c428[_0x327de6(0x1d0)],_0x452cb7[_0x327de6(0x1bb)])||_0x452cb7[_0x327de6(0x1c0)](_0x16c428[_0x327de6(0x1d0)],0x5e))&&(logger[_0x327de6(0x187)](_0x452cb7[_0x327de6(0x1a9)]),global[_0x327de6(0x1ae)]=![]);!_0x452cb7[_0x327de6(0x1c8)](isUndefined,_0x16c428[_0x327de6(0x1c7)])&&(logger[_0x327de6(0x187)](_0x452cb7[_0x327de6(0x1c1)]),global[_0x327de6(0x1ae)]=![]);if(!global[_0x327de6(0x1ae)]){_0x16c428[_0x452cb7[_0x327de6(0x18c)]]=![];const _0x4024fb=_0x452cb7['mExFJ'](_0x24fcae,_0x452cb7[_0x327de6(0x1c8)](encodeURIComponent,JSON[_0x327de6(0x1b1)](_0x16c428)));_0x59a44d&&(_0x59a44d['currentTest'][_0x327de6(0x17e)]['project'][_0x327de6(0x18f)][_0x327de6(0x190)][_0x327de6(0x18a)]=_0x4024fb,_0x59a44d['workerInfo'][_0x327de6(0x1b0)][_0x327de6(0x18f)]['connectOptions'][_0x327de6(0x18a)]=_0x4024fb);}}}catch(_0x5a9c0c){logger[_0x327de6(0x170)](_0x327de6(0x1a8)+util[_0x327de6(0x1b7)](_0x5a9c0c));}};
|
|
1
|
+
const a34_0x72661d=a34_0x19e0;function a34_0x19e0(_0x24e4a7,_0x1498b3){const _0x545805=a34_0x5458();return a34_0x19e0=function(_0x19e091,_0x248965){_0x19e091=_0x19e091-0x127;let _0x9cd0ec=_0x545805[_0x19e091];return _0x9cd0ec;},a34_0x19e0(_0x24e4a7,_0x1498b3);}(function(_0x23f3b5,_0x2650de){const _0x1eee7c=a34_0x19e0,_0x21ccc0=_0x23f3b5();while(!![]){try{const _0x26bb35=parseInt(_0x1eee7c(0x153))/0x1+parseInt(_0x1eee7c(0x186))/0x2*(parseInt(_0x1eee7c(0x18a))/0x3)+-parseInt(_0x1eee7c(0x182))/0x4+parseInt(_0x1eee7c(0x136))/0x5*(parseInt(_0x1eee7c(0x159))/0x6)+parseInt(_0x1eee7c(0x18c))/0x7*(parseInt(_0x1eee7c(0x150))/0x8)+-parseInt(_0x1eee7c(0x167))/0x9*(-parseInt(_0x1eee7c(0x16b))/0xa)+-parseInt(_0x1eee7c(0x171))/0xb*(parseInt(_0x1eee7c(0x18e))/0xc);if(_0x26bb35===_0x2650de)break;else _0x21ccc0['push'](_0x21ccc0['shift']());}catch(_0x2dba94){_0x21ccc0['push'](_0x21ccc0['shift']());}}}(a34_0x5458,0x1dddc));function a34_0x5458(){const _0x13bee1=['browserstack.accessibility','VMhzR','processAccessibilityCaps','project','WebDriver','391721iKsRCm','pGvcm','VjQQC','IVtkF','includeIssueType','needsReview','yJHCt','nBkTE','gHfIO','accessibilityOptions','accessibilityOptions.authToken','JZbgL','name','ucCBs','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','setAccessibilityCapabilities','browser','903028eZRcHI','../../helpers/helper','debug','HTvAi','14962kjlorL','env','executeScript','browser_version','3cUCDhK','accessibilityOptions.wcagVersion','7vNQbwq','xhjKo','36COiMWB','No\x20accessibility\x20results\x20were\x20found.','../../helpers/performance/constants','moneS','accessibilityOptions.scannerVersion','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','UNjSr','use','bstackSdkArgs','scannerProcessingTimeout','iIkcl','../../helpers/accessibility-automation/helper','wcagVersion','BS_A11Y_JWT','rVszz','Playwright','../../helpers/performance/performance-tester','accessibilityOptions.includeIssueType.needsReview','browserStackExecuteDriver','browserStackEvaluate','parse','evaluate','71675UlYpYq','MwSTI','UmEWw','playwright-chromium','warn','LfUVC','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','Okyex','currentTest','performScan','JtSBV','GYQFl','HgXYz','../../helpers/accessibility-automation/scripts','mXqaY','accessibilityPlatform','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','platformValidation','CJJFM','connectOptions','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','accessibilityOptions.scannerProcessingTimeout','chrome','scannerVersion','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','PERFORM_SCAN','558328zRkFFe','deviceName','constructor','49673JuHqYM','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','stringify','aDPtH','GxQSs','wsEndpoint','36dWRUdj','(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','FcXKv','format','replace','measureWrapper','bestPractice','error','jYECk','browserName','getAccessibilityResults','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','SOuVt','command','197973XiVALe','latest','hqvjA','iqwCN','110NCVSLH'];a34_0x5458=function(){return _0x13bee1;};return a34_0x5458();}const util=require('util'),logger=require('../../helpers/logger')['winstonLogger'],{isAccessibilityAutomationSession}=require(a34_0x72661d(0x12b)),{isUndefined}=require(a34_0x72661d(0x183)),scripts=require(a34_0x72661d(0x143)),PerformanceTester=require(a34_0x72661d(0x130)),{A11Y_EVENTS:PerformanceA11yEvents}=require(a34_0x72661d(0x190));exports[a34_0x72661d(0x133)]=async(_0x46b511,_0x5cb0f0,_0x12249e={})=>{const _0x26626c=a34_0x72661d,_0x4fa9c4={};_0x4fa9c4[_0x26626c(0x173)]=_0x26626c(0x128);const _0x238782=_0x4fa9c4;return await _0x46b511[_0x26626c(0x135)]('(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'+_0x5cb0f0[_0x26626c(0x15d)](/arguments/g,_0x238782[_0x26626c(0x173)])+'\x0a\x20\x20\x20\x20})\x0a\x20\x20})('+JSON[_0x26626c(0x155)](_0x12249e)+')');},exports[a34_0x72661d(0x132)]=async(_0xd5fba6,_0x28b61f,_0x4ea84b={})=>{const _0x5e3744=a34_0x72661d,_0x5036f2={};_0x5036f2[_0x5e3744(0x142)]=function(_0x560524,_0x1d6961){return _0x560524===_0x1d6961;},_0x5036f2[_0x5e3744(0x161)]=_0x5e3744(0x170),_0x5036f2['MwSTI']=_0x5e3744(0x12f),_0x5036f2[_0x5e3744(0x178)]=_0x5e3744(0x128);const _0xdcf0bb=_0x5036f2;if(_0xdcf0bb[_0x5e3744(0x142)](_0xd5fba6[_0x5e3744(0x152)][_0x5e3744(0x17d)],_0xdcf0bb['jYECk']))return await _0xd5fba6['executeAsyncScript'](_0x28b61f,_0x4ea84b);else{if(_0xdcf0bb[_0x5e3744(0x142)](_0xd5fba6[_0x5e3744(0x152)]['name'],_0xdcf0bb[_0x5e3744(0x137)]))return await _0xd5fba6[_0x5e3744(0x188)](_0x5e3744(0x15a)+_0x28b61f['replace'](/arguments/g,_0xdcf0bb[_0x5e3744(0x178)])+_0x5e3744(0x17f)+JSON[_0x5e3744(0x155)](_0x4ea84b)+')');}},exports[a34_0x72661d(0x180)]=async _0xc6ae32=>{const _0x52f930=a34_0x72661d,_0x3d1c34={};_0x3d1c34['hqvjA']=_0x52f930(0x18b),_0x3d1c34[_0x52f930(0x177)]=_0x52f930(0x14b),_0x3d1c34[_0x52f930(0x156)]='accessibilityOptions.includeIssueType.bestPractice',_0x3d1c34[_0x52f930(0x185)]=_0x52f930(0x131),_0x3d1c34[_0x52f930(0x12a)]=_0x52f930(0x17b),_0x3d1c34[_0x52f930(0x165)]=_0x52f930(0x192);const _0x31d52a=_0x3d1c34;_0xc6ae32[_0x52f930(0x17a)]&&(_0xc6ae32[_0x52f930(0x17a)][_0x52f930(0x12c)]&&(_0xc6ae32[_0x31d52a[_0x52f930(0x169)]]=_0xc6ae32[_0x52f930(0x17a)][_0x52f930(0x12c)]),_0xc6ae32[_0x52f930(0x17a)][_0x52f930(0x129)]&&(_0xc6ae32[_0x31d52a[_0x52f930(0x177)]]=_0xc6ae32['accessibilityOptions'][_0x52f930(0x129)]),_0xc6ae32[_0x52f930(0x17a)][_0x52f930(0x175)]&&(_0xc6ae32[_0x31d52a[_0x52f930(0x156)]]=_0xc6ae32['accessibilityOptions'][_0x52f930(0x175)][_0x52f930(0x15f)],_0xc6ae32[_0x31d52a[_0x52f930(0x185)]]=_0xc6ae32[_0x52f930(0x17a)][_0x52f930(0x175)][_0x52f930(0x176)]));const _0x4f138b=JSON[_0x52f930(0x134)](process[_0x52f930(0x187)][_0x52f930(0x193)])[_0x52f930(0x14d)];_0xc6ae32[_0x31d52a[_0x52f930(0x12a)]]=process[_0x52f930(0x187)][_0x52f930(0x12d)],_0xc6ae32[_0x31d52a[_0x52f930(0x165)]]=_0x4f138b,delete _0xc6ae32[_0x52f930(0x17a)];},exports[a34_0x72661d(0x163)]=async _0x26b4b9=>{const _0x3bf249=a34_0x72661d,_0x10d1d4={};_0x10d1d4[_0x3bf249(0x16a)]=_0x3bf249(0x18f),_0x10d1d4[_0x3bf249(0x179)]='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.';const _0x457d79=_0x10d1d4;if(global[_0x3bf249(0x145)])try{logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x26b4b9,scripts.performScan)));},{command:'getAccessibilityResults'})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x26b4b9,scripts.getResults);})();return res;}catch{return logger[_0x3bf249(0x160)](_0x457d79['iqwCN']),[];}else return logger[_0x3bf249(0x13a)](_0x457d79['gHfIO']),[];},exports[a34_0x72661d(0x13f)]=async(_0x2e5e2a,_0x4014a2='')=>{const _0x10261e=a34_0x72661d;if(global['accessibilityPlatform'])return await PerformanceTester[_0x10261e(0x15e)](PerformanceA11yEvents[_0x10261e(0x14f)],async()=>{const _0x2cb980=_0x10261e,_0x3f3cf6={};_0x3f3cf6[_0x2cb980(0x166)]=_0x4014a2,await exports[_0x2cb980(0x133)](_0x2e5e2a,scripts[_0x2cb980(0x13f)],_0x3f3cf6);},{'command':_0x4014a2})();},exports['getAccessibilityResultsSummary']=async _0x4395e1=>{const _0x3e9381=a34_0x72661d,_0x1b148b={};_0x1b148b['UmEWw']='No\x20summaryResults\x20found.',_0x1b148b['KLTWW']=_0x3e9381(0x13c);const _0x3f6719=_0x1b148b;if(global[_0x3e9381(0x145)])try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x4395e1,scripts.performScan)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x4395e1,scripts.getResultsSummary);})();return summaryResults;}catch{return logger[_0x3e9381(0x184)](_0x3f6719[_0x3e9381(0x138)]),{};}else return logger[_0x3e9381(0x13a)](_0x3f6719['KLTWW']),{};},exports[a34_0x72661d(0x147)]=async _0x7c776=>{const _0x224200=a34_0x72661d,_0x41ac7e={'Okyex':function(_0x257771,_0x32102b){return _0x257771!==_0x32102b;},'JZbgL':_0x224200(0x164),'IVtkF':function(_0x25b303,_0x28a360){return _0x25b303===_0x28a360;},'moneS':_0x224200(0x14c),'GxQSs':_0x224200(0x139),'UNjSr':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','VMhzR':function(_0x46c1eb,_0x9c8f33){return _0x46c1eb(_0x9c8f33);},'pGvFL':'latest','FcXKv':function(_0x37f16d,_0x209120){return _0x37f16d>_0x209120;},'MTqzq':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.'};try{if(!_0x41ac7e[_0x224200(0x13d)](_0x7c776[_0x224200(0x151)],''))return logger[_0x224200(0x13a)](_0x41ac7e[_0x224200(0x17c)]),![];const _0x4ad92e=_0x7c776[_0x224200(0x181)];if(!(_0x41ac7e[_0x224200(0x174)](_0x4ad92e,_0x41ac7e[_0x224200(0x191)])||_0x41ac7e[_0x224200(0x174)](_0x4ad92e,_0x41ac7e[_0x224200(0x157)])))return logger[_0x224200(0x13a)](_0x41ac7e[_0x224200(0x194)]),![];const _0x1e5a3c=_0x41ac7e[_0x224200(0x16d)](parseInt,_0x7c776[_0x224200(0x189)]);if(!(_0x41ac7e[_0x224200(0x174)](_0x1e5a3c,_0x41ac7e['pGvFL'])||_0x41ac7e[_0x224200(0x15b)](_0x1e5a3c,0x5e)))return logger[_0x224200(0x13a)](_0x41ac7e['MTqzq']),![];}catch(_0x5c4837){logger[_0x224200(0x184)](_0x224200(0x14e)+util[_0x224200(0x15c)](_0x5c4837));}return!![];},exports[a34_0x72661d(0x16e)]=(_0x52fcf7,_0x17d054,_0x30532b)=>{const _0x21ff0d=a34_0x72661d,_0x499460={'pGvcm':function(_0x38dab3){return _0x38dab3();},'CJJFM':_0x21ff0d(0x16c),'JtSBV':function(_0x160180,_0x4154b7){return _0x160180===_0x4154b7;},'GYQFl':'chrome','axFsY':_0x21ff0d(0x139),'ucCBs':_0x21ff0d(0x154),'rVszz':_0x21ff0d(0x168),'LZPVe':function(_0x57a7bc,_0x21aba1){return _0x57a7bc>_0x21aba1;},'LfUVC':_0x21ff0d(0x146),'uAOZR':function(_0x43e6fb,_0x1b1e5d){return _0x43e6fb(_0x1b1e5d);},'mXqaY':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','xhjKo':function(_0x20c018,_0x2dd4e1){return _0x20c018+_0x2dd4e1;},'VSKLB':function(_0x33062e,_0x45fdfb){return _0x33062e(_0x45fdfb);}};try{if(_0x499460[_0x21ff0d(0x172)](isAccessibilityAutomationSession)){global[_0x21ff0d(0x145)]=!![];!_0x52fcf7[_0x499460[_0x21ff0d(0x148)]]&&(global[_0x21ff0d(0x145)]=![]);!(_0x499460[_0x21ff0d(0x140)](_0x52fcf7[_0x21ff0d(0x162)],_0x499460[_0x21ff0d(0x141)])||_0x499460[_0x21ff0d(0x140)](_0x52fcf7[_0x21ff0d(0x162)],_0x499460['axFsY']))&&(logger[_0x21ff0d(0x13a)](_0x499460[_0x21ff0d(0x17e)]),global['accessibilityPlatform']=![]);!(_0x499460[_0x21ff0d(0x140)](_0x52fcf7[_0x21ff0d(0x189)],_0x499460[_0x21ff0d(0x12e)])||_0x499460['LZPVe'](_0x52fcf7['browser_version'],0x5e))&&(logger[_0x21ff0d(0x13a)](_0x499460[_0x21ff0d(0x13b)]),global[_0x21ff0d(0x145)]=![]);!_0x499460['uAOZR'](isUndefined,_0x52fcf7['deviceName'])&&(logger['warn'](_0x499460[_0x21ff0d(0x144)]),global[_0x21ff0d(0x145)]=![]);if(!global[_0x21ff0d(0x145)]){_0x52fcf7[_0x499460[_0x21ff0d(0x148)]]=![];const _0x865dfd=_0x499460[_0x21ff0d(0x18d)](_0x17d054,_0x499460['VSKLB'](encodeURIComponent,JSON[_0x21ff0d(0x155)](_0x52fcf7)));_0x30532b&&(_0x30532b[_0x21ff0d(0x13e)]['testInfo'][_0x21ff0d(0x16f)][_0x21ff0d(0x127)][_0x21ff0d(0x149)][_0x21ff0d(0x158)]=_0x865dfd,_0x30532b['workerInfo']['project'][_0x21ff0d(0x127)][_0x21ff0d(0x149)][_0x21ff0d(0x158)]=_0x865dfd);}}}catch(_0x94ec0d){logger[_0x21ff0d(0x184)](_0x21ff0d(0x14a)+util[_0x21ff0d(0x15c)](_0x94ec0d));}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a35_0x2f7050=a35_0x356b;(function(_0x224e8b,_0x3e451e){const _0x18786c=a35_0x356b,_0x1f531a=_0x224e8b();while(!![]){try{const _0x4c06e4=-parseInt(_0x18786c(0xd4))/0x1*(-parseInt(_0x18786c(0x131))/0x2)+-parseInt(_0x18786c(0x12a))/0x3+-parseInt(_0x18786c(0x15b))/0x4*(-parseInt(_0x18786c(0xee))/0x5)+-parseInt(_0x18786c(0xf8))/0x6+parseInt(_0x18786c(0xb7))/0x7*(-parseInt(_0x18786c(0x102))/0x8)+parseInt(_0x18786c(0x13e))/0x9+-parseInt(_0x18786c(0xf4))/0xa*(-parseInt(_0x18786c(0x11b))/0xb);if(_0x4c06e4===_0x3e451e)break;else _0x1f531a['push'](_0x1f531a['shift']());}catch(_0x565a4e){_0x1f531a['push'](_0x1f531a['shift']());}}}(a35_0xe6bf,0x56fde));const fs=require('fs'),path=require(a35_0x2f7050(0xf6)),{spawn}=require(a35_0x2f7050(0xff)),{format}=require(a35_0x2f7050(0x11d)),logger=require('../../helpers/logger')[a35_0x2f7050(0x106)],{default:BrowserStackSetup}=require(a35_0x2f7050(0xd2)),helper=require(a35_0x2f7050(0x151)),utilities=require(a35_0x2f7050(0x10a)),constants=require(a35_0x2f7050(0xe8)),{FRAMEWORKS}=require(a35_0x2f7050(0x127)),{getConfigLoaderPath}=require(a35_0x2f7050(0x129)),{checkAccessibilityPlatformConfig}=require(a35_0x2f7050(0x135)),{setAccessibilityCapabilities}=require(a35_0x2f7050(0x132)),TestHubHandler=require(a35_0x2f7050(0xc7)),PerformanceTester=require(a35_0x2f7050(0x10f)),PerformanceEvents=require(a35_0x2f7050(0x112))[a35_0x2f7050(0x14d)],getUserPlaywrightConfig=async(_0x5adcd5,_0x17a0c5)=>{const _0xf21ca1=a35_0x2f7050,_0x197d41={'YmWVO':function(_0xcc107b){return _0xcc107b();},'EzRIP':function(_0xcac790,_0x30be84){return _0xcac790(_0x30be84);},'EhNGJ':_0xf21ca1(0x119),'yayHl':_0xf21ca1(0xe7)},_0x429c2a=!helper[_0xf21ca1(0x11e)](_0x5adcd5[_0xf21ca1(0x147)]),_0x17a65e=_0x429c2a?path['resolve'](process[_0xf21ca1(0x153)](),_0x5adcd5[_0xf21ca1(0x147)]):process[_0xf21ca1(0x153)](),{resolveConfigFile:_0x57e471,resolveConfigLocation:_0x57f7c9}=helper[_0xf21ca1(0xdb)][_0xf21ca1(0xd9)](null,_0x197d41['YmWVO'](getConfigLoaderPath)),_0x3cc61c=_0x57e471?_0x197d41[_0xf21ca1(0xc1)](_0x57e471,_0x17a65e):helper[_0xf21ca1(0xfc)](_0x197d41[_0xf21ca1(0xc1)](_0x57f7c9,_0x17a65e),[_0x197d41[_0xf21ca1(0x103)]]),_0x47888a={};if(_0x429c2a){const _0x517e09=_0x17a0c5['findIndex'](_0x194b3b=>_0x194b3b===_0xf21ca1(0xd3)||_0x194b3b==='-c'||_0x194b3b[_0xf21ca1(0xbc)](_0xf21ca1(0xe7)));_0x17a0c5[_0xf21ca1(0xea)](_0x517e09,_0x17a0c5[_0x517e09][_0xf21ca1(0xbc)](_0x197d41['yayHl'])?0x1:0x2);}const _0x3557dc={};return _0x3557dc[_0xf21ca1(0xf6)]=_0x3cc61c,_0x3557dc[_0xf21ca1(0x147)]=_0x47888a,_0x3557dc;},handleO11yRerun=_0x46ee79=>{const _0x5a523d=a35_0x2f7050,_0x3e4bda={};_0x3e4bda[_0x5a523d(0xc4)]=_0x5a523d(0x100);const _0xbf047b=_0x3e4bda,_0x9dd3a5=helper[_0x5a523d(0xbd)](process[_0x5a523d(0x133)][_0x5a523d(0x15c)]);if(_0x9dd3a5){const _0x1b58e2=process[_0x5a523d(0x133)][_0x5a523d(0xcb)],_0x173608=[];if(helper[_0x5a523d(0x136)](_0x1b58e2)&&!helper[_0x5a523d(0x11e)](_0x1b58e2)){_0x1b58e2[_0x5a523d(0xb5)](',')[_0x5a523d(0xf5)](_0x1860aa=>{const _0x511cf3=_0x5a523d;_0x173608[_0x511cf3(0xeb)]('('+_0x1860aa[_0x511cf3(0x125)]()+')');});const _0x361489='^'+_0x173608[_0x5a523d(0xbf)]('|')+'$';_0x46ee79['push'](_0xbf047b[_0x5a523d(0xc4)],_0x361489);}}},spawnOriginalProcess=_0x5db500=>{const _0x563558=a35_0x2f7050,_0x412c57={'ITGsw':function(_0x150c35,_0x216f54,_0x526afd,_0x8c9bb8){return _0x150c35(_0x216f54,_0x526afd,_0x8c9bb8);},'IBwJN':'npx','oiczm':_0x563558(0xf1),'THzRQ':function(_0x5cf986,_0x54eed3){return _0x5cf986===_0x54eed3;},'kTAdr':'win32','ieTsV':_0x563558(0xd8)};_0x412c57[_0x563558(0x144)](spawn,_0x412c57['IBwJN'],[_0x412c57[_0x563558(0xed)],..._0x5db500['slice'](0x1)],{'shell':_0x412c57[_0x563558(0x13f)](process[_0x563558(0x116)],_0x412c57[_0x563558(0x104)]),'stdio':_0x412c57[_0x563558(0x14e)],'cwd':process['cwd']()});},isTestCommand=(_0x51a717,_0x1b9dd6)=>{const _0x2b32bd=a35_0x2f7050,_0x1dbe99={};_0x1dbe99[_0x2b32bd(0x13d)]=function(_0x4a4c70,_0x14ed7f){return _0x4a4c70>_0x14ed7f;},_0x1dbe99[_0x2b32bd(0x12d)]=function(_0xb397fe,_0x9f895f){return _0xb397fe===_0x9f895f;},_0x1dbe99[_0x2b32bd(0x107)]=_0x2b32bd(0x109);const _0x25f385=_0x1dbe99;if(_0x25f385[_0x2b32bd(0x13d)](_0x1b9dd6[_0x2b32bd(0x12c)],0x1)&&_0x25f385[_0x2b32bd(0x12d)](_0x1b9dd6[0x1],_0x25f385[_0x2b32bd(0x107)]))return!![];return![];};function a35_0x356b(_0x3f8172,_0x405b72){const _0xe6bf6e=a35_0xe6bf();return a35_0x356b=function(_0x356bd6,_0x1cbb53){_0x356bd6=_0x356bd6-0xb2;let _0x41b269=_0xe6bf6e[_0x356bd6];return _0x41b269;},a35_0x356b(_0x3f8172,_0x405b72);}async function run(_0x7f06e8,_0x14fca2){const _0x48d8b4=a35_0x2f7050,_0x40ec8b={'wsCUl':_0x48d8b4(0xd0),'LQdCq':_0x48d8b4(0xe5),'OlqDv':function(_0x369b12,_0x530d32){return _0x369b12+_0x530d32;},'TjsDy':_0x48d8b4(0x159),'ZpsdP':function(_0x5b5e62,_0x300704){return _0x5b5e62(_0x300704);},'ZQvvn':_0x48d8b4(0xfb),'JvwzD':function(_0xe09535){return _0xe09535();},'XhnDv':_0x48d8b4(0x123),'WLDQY':_0x48d8b4(0x14c),'QBHIX':_0x48d8b4(0xe0),'MrqyA':function(_0x27c4d6,_0x1f25eb){return _0x27c4d6!=_0x1f25eb;},'gScEa':function(_0x7eea,_0x3189ef,_0x360e8d){return _0x7eea(_0x3189ef,_0x360e8d);},'HsBiL':function(_0x54c9e2,_0x3947fa){return _0x54c9e2(_0x3947fa);},'yNeep':function(_0x2e0cff,_0x549aa2){return _0x2e0cff===_0x549aa2;},'TklXA':_0x48d8b4(0xfe),'UCaRm':function(_0x544d3e,_0x5d6161){return _0x544d3e(_0x5d6161);},'oKRwR':'browserstackSetupConfig.json','rmiri':_0x48d8b4(0x12f),'QdtrT':_0x48d8b4(0x141),'zHDqi':function(_0x386da2,_0x390d39){return _0x386da2-_0x390d39;},'aytJp':_0x48d8b4(0x101),'ypohN':function(_0x1ccf3a,_0x27d065){return _0x1ccf3a>_0x27d065;},'RIjvf':function(_0x420d48,_0x5aa16f){return _0x420d48+_0x5aa16f;},'BMWiU':function(_0x16b1b4,_0x190737,_0xd77459,_0x753c5a){return _0x16b1b4(_0x190737,_0xd77459,_0x753c5a);},'veOJP':'npx','sgaFB':_0x48d8b4(0xf1),'bIWhd':_0x48d8b4(0x109),'uXpPP':_0x48d8b4(0xd3),'XSVTz':_0x48d8b4(0xce),'zwvwg':'inherit','MkgYs':'close','tMJVM':_0x48d8b4(0x10d),'OXmJc':'false','VFNUn':'--disable-test-observability','Itzwa':function(_0x17bb5e,_0x10237c){return _0x17bb5e>=_0x10237c;},'Sjplt':_0x48d8b4(0xbb),'VOYWi':function(_0x3e2226,_0x532ac6,_0x580242){return _0x3e2226(_0x532ac6,_0x580242);},'xeJso':function(_0x1eeda9,_0x53c93c){return _0x1eeda9(_0x53c93c);}};!helper[_0x48d8b4(0x13b)](process[_0x48d8b4(0x133)]['BROWSERSTACK_AUTOMATION'])&&(process[_0x48d8b4(0x133)][_0x48d8b4(0xc6)]=!![]);process[_0x48d8b4(0x118)][_0x48d8b4(0x113)](_0x40ec8b[_0x48d8b4(0xef)])&&(process[_0x48d8b4(0x133)][_0x48d8b4(0xc6)]=_0x40ec8b['OXmJc'],_0x14fca2=_0x14fca2['filter'](_0x6e6aed=>_0x6e6aed!=='--disable-browserstack-automation'));const _0xafab6a=_0x14fca2['indexOf'](_0x40ec8b[_0x48d8b4(0xde)]);_0x40ec8b['Itzwa'](_0xafab6a,0x0)&&(process[_0x48d8b4(0x133)]['BROWSERSTACK_TEST_OBSERVABILITY']=_0x40ec8b[_0x48d8b4(0x122)],_0x14fca2=_0x14fca2[_0x48d8b4(0xdf)](_0x1bd461=>_0x1bd461!==_0x48d8b4(0x14a)));try{const _0x23a5f0=path[_0x48d8b4(0xbf)](helper['homedir'](),_0x40ec8b[_0x48d8b4(0xcd)],_0x40ec8b[_0x48d8b4(0x108)]);fs['existsSync'](_0x23a5f0)&&fs[_0x48d8b4(0xca)](_0x23a5f0);}catch(_0x42ecfc){logger['debug'](_0x40ec8b[_0x48d8b4(0xc9)](_0x40ec8b[_0x48d8b4(0xf0)],_0x42ecfc));}if(!_0x40ec8b[_0x48d8b4(0xd5)](isTestCommand,_0x7f06e8,_0x14fca2)){_0x40ec8b[_0x48d8b4(0xd7)](spawnOriginalProcess,_0x14fca2);return;}const _0x52d9e0=new BrowserStackSetup(_0x7f06e8,FRAMEWORKS[_0x48d8b4(0xcc)]);await PerformanceTester[_0x48d8b4(0x150)](PerformanceEvents['SDK_PRE_INITIALIZE'],async()=>{const _0x417764=_0x48d8b4,_0x2a9bf1={'xBrpB':function(_0x1b2f59,_0x2c61a9){const _0xa196ef=a35_0x356b;return _0x40ec8b[_0xa196ef(0x137)](_0x1b2f59,_0x2c61a9);},'QFDoQ':_0x40ec8b[_0x417764(0x155)],'mdTfu':function(_0x2ada7f){const _0x3ed214=_0x417764;return _0x40ec8b[_0x3ed214(0xf9)](_0x2ada7f);},'AytxN':function(_0x51f2a9,_0x5d9b94){return _0x40ec8b['OlqDv'](_0x51f2a9,_0x5d9b94);},'mTgxP':_0x40ec8b[_0x417764(0xf7)]};if(!_0x52d9e0[_0x417764(0x147)]){logger[_0x417764(0xe4)](_0x40ec8b[_0x417764(0xc5)]);return;}await _0x52d9e0[_0x417764(0xbe)]();!helper[_0x417764(0x11e)](_0x52d9e0[_0x417764(0x11a)])&&_0x52d9e0[_0x417764(0x11a)][_0x417764(0x115)](_0x40ec8b[_0x417764(0xba)])&&(process['env'][_0x417764(0xc6)]=_0x52d9e0[_0x417764(0x11a)]['get'](_0x40ec8b[_0x417764(0xba)])||!![]);_0x40ec8b['MrqyA'](_0x52d9e0[_0x417764(0x147)][_0x417764(0x12b)],null)&&!helper['isTrue'](process['env']['BROWSERSTACK_TEST_OBSERVABILITY'])&&(process[_0x417764(0x133)][_0x417764(0xd1)]=process[_0x417764(0x133)][_0x417764(0xd1)]||_0x52d9e0['config'][_0x417764(0x12b)]);const _0x2783d5=!helper[_0x417764(0x13b)](process[_0x417764(0x133)][_0x417764(0xd1)]);let _0x20ea5d=![];_0x52d9e0[_0x417764(0x147)][_0x417764(0x134)]&&(_0x20ea5d=!![],process[_0x417764(0x133)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x52d9e0[_0x417764(0x147)][_0x417764(0x134)]);_0x52d9e0[_0x417764(0x147)][_0x417764(0x121)]&&(process['env'][_0x417764(0xfa)]=JSON[_0x417764(0x14b)](_0x52d9e0[_0x417764(0x147)]['accessibilityOptions']));const _0x51f350=_0x14fca2[_0x417764(0x145)](),_0x2c5805=await _0x40ec8b['gScEa'](getUserPlaywrightConfig,_0x7f06e8,_0x14fca2);if(helper[_0x417764(0x11e)](_0x2c5805)){_0x40ec8b[_0x417764(0xb3)](spawnOriginalProcess,_0x51f350);return;}const _0x511acd=_0x2c5805[_0x417764(0xf6)]?path[_0x417764(0xdc)](_0x2c5805[_0x417764(0xf6)]):process[_0x417764(0x153)]();process[_0x417764(0x133)]['BROWSERSTACK_PW_CONFIG_DIR']=_0x511acd,await PerformanceTester[_0x417764(0x150)](PerformanceEvents[_0x417764(0x140)],async()=>{const _0x870dc0=_0x417764;await TestHubHandler[_0x870dc0(0xf3)](FRAMEWORKS[_0x870dc0(0xcc)],_0x52d9e0),_0x2783d5&&_0x2a9bf1['xBrpB'](handleO11yRerun,_0x14fca2);})();let _0xc5c00e=_0x40ec8b[_0x417764(0x158)](process[_0x417764(0x133)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML'],_0x40ec8b[_0x417764(0xe2)]);_0xc5c00e=_0xc5c00e||_0x40ec8b['HsBiL'](checkAccessibilityPlatformConfig,_0x52d9e0[_0x417764(0x147)]),process[_0x417764(0x133)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0xc5c00e;_0xc5c00e&&_0x40ec8b[_0x417764(0x114)](setAccessibilityCapabilities,_0x52d9e0[_0x417764(0x147)]);const _0x4dfbea=path[_0x417764(0xbf)](_0x2c5805[_0x417764(0xf6)]?path['dirname'](_0x2c5805[_0x417764(0xf6)]):process['cwd'](),_0x40ec8b[_0x417764(0x111)]);fs[_0x417764(0x128)](_0x4dfbea,helper[_0x417764(0x12e)](_0x52d9e0[_0x417764(0x147)])),process[_0x417764(0x133)][_0x417764(0x124)]=_0x4dfbea,helper[_0x417764(0x10e)]();let _0x161cc4='';_0x40ec8b[_0x417764(0x158)](helper[_0x417764(0x146)](),constants[_0x417764(0x139)][_0x417764(0x110)])?_0x161cc4=_0x40ec8b['rmiri']:_0x161cc4=_0x40ec8b['QdtrT'];let _0x591950='';if(helper[_0x417764(0xd6)](_0x2c5805[_0x417764(0xf6)])){_0x591950='\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a';const _0x423dfe=_0x161cc4[_0x417764(0xb5)]('.');_0x423dfe[_0x40ec8b['zHDqi'](_0x423dfe[_0x417764(0x12c)],0x1)]='ts',_0x161cc4=_0x423dfe[_0x417764(0xbf)]('.'),logger[_0x417764(0xb8)](_0x40ec8b['OlqDv'](_0x40ec8b[_0x417764(0x149)],_0x161cc4));}else _0x591950='\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 _0x7da2bf=path[_0x417764(0xbf)](_0x2c5805['path']?path[_0x417764(0xdc)](_0x2c5805['path']):process[_0x417764(0x153)](),_0x161cc4);let _0x1fbb7c=_0x2c5805[_0x417764(0xf6)]?_0x2c5805[_0x417764(0xf6)]:'';_0x1fbb7c=_0x40ec8b[_0x417764(0x148)](_0x1fbb7c[_0x417764(0x12c)],0x0)?path[_0x417764(0xe1)](_0x1fbb7c):'',process[_0x417764(0x133)][_0x417764(0x138)]=_0x1fbb7c;const _0x3fc175=helper[_0x417764(0x157)](_0x52d9e0[_0x417764(0x147)]);_0x3fc175&&(_0x591950=_0x40ec8b[_0x417764(0x154)](_0x417764(0x10c)+_0x3fc175+_0x417764(0x105),_0x591950));helper[_0x417764(0x143)]({},_0x14fca2),fs[_0x417764(0x128)](_0x7da2bf,_0x591950),PerformanceTester[_0x417764(0x120)](PerformanceEvents[_0x417764(0xb2)]);const _0x3832f3=_0x40ec8b[_0x417764(0x126)](spawn,_0x40ec8b[_0x417764(0xc2)],[_0x40ec8b[_0x417764(0xec)],_0x40ec8b['bIWhd'],_0x40ec8b[_0x417764(0xe6)],_0x7da2bf,..._0x14fca2[_0x417764(0x15a)](0x2)],{'shell':_0x40ec8b['yNeep'](process[_0x417764(0x116)],_0x40ec8b[_0x417764(0x142)]),'stdio':_0x40ec8b[_0x417764(0xdd)],'cwd':process[_0x417764(0x153)](),'env':Object[_0x417764(0x14f)]({},process[_0x417764(0x133)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper['getConfigPath'](_0x7f06e8),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x52d9e0[_0x417764(0x147)][_0x417764(0xb4)][_0x417764(0x13a)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x52d9e0[_0x417764(0x147)][_0x417764(0xb4)][_0x417764(0xda)],'BROWSERSTACK_LOG_LEVEL':_0x52d9e0[_0x417764(0x147)][_0x417764(0x11f)]})}),_0x339413=()=>{const _0x52602b=_0x417764;try{const _0x1c430b=path[_0x52602b(0xbf)](helper[_0x52602b(0x10b)](),_0x40ec8b['wsCUl'],_0x40ec8b['LQdCq']);if(fs['existsSync'](_0x1c430b)){let _0x3794fb=fs[_0x52602b(0x152)](_0x1c430b);_0x3794fb=JSON['parse'](_0x3794fb),_0x52d9e0[_0x52602b(0xe9)]=_0x3794fb,fs[_0x52602b(0xca)](_0x1c430b);}}catch(_0x576ae4){logger['debug'](_0x40ec8b[_0x52602b(0xc9)](_0x40ec8b[_0x52602b(0xe3)],_0x576ae4));}};_0x3832f3['on'](_0x40ec8b[_0x417764(0xb6)],async _0x5c9018=>{const _0x5c6ee2=_0x417764;try{const _0x382bce=_0x2a9bf1[_0x5c6ee2(0x11c)][_0x5c6ee2(0xb5)]('|');let _0xfbcc18=0x0;while(!![]){switch(_0x382bce[_0xfbcc18++]){case'0':logger[_0x5c6ee2(0xcf)](_0x5c6ee2(0xc8)+_0x7da2bf);continue;case'1':fs[_0x5c6ee2(0xca)](_0x7da2bf);continue;case'2':PerformanceTester[_0x5c6ee2(0xb9)](PerformanceEvents[_0x5c6ee2(0x156)]);continue;case'3':await utilities[_0x5c6ee2(0xfd)](_0x52d9e0);continue;case'4':await TestHubHandler[_0x5c6ee2(0xf2)]();continue;case'5':fs[_0x5c6ee2(0xca)](_0x4dfbea);continue;case'6':logger[_0x5c6ee2(0xb8)](_0x5c6ee2(0x13c)+_0x5c9018);continue;case'7':_0x2a9bf1[_0x5c6ee2(0x130)](_0x339413);continue;case'8':process[_0x5c6ee2(0x117)]=_0x5c9018;continue;case'9':logger['debug'](_0x5c6ee2(0xc8)+_0x4dfbea);continue;}break;}}catch(_0x456ad1){logger['debug'](_0x2a9bf1[_0x5c6ee2(0xc3)](_0x2a9bf1['mTgxP'],_0x456ad1));}});})();}module[a35_0x2f7050(0xc0)]=run;function a35_0xe6bf(){const _0x37eed2=['accessibility','../../helpers/accessibility-automation/helper','validateRerunTestList','ZpsdP','USER_CONFIG_DETAILS_PATH','PACKAGE_TYPE','skipSessionStatus','isFalse','Playwright\x20process\x20exited\x20with\x20code\x20','WZScy','2045502mDNypk','THzRQ','SDK_POST_INITIALIZE','playwright-browserstack-sdk.config.js','XSVTz','filterBrowserstackArgs','ITGsw','concat','getPackageType','config','ypohN','aytJp','--disable-test-observability','stringify','BrowserStack\x20config\x20file\x20not\x20found.','EVENTS','ieTsV','assign','measureWrapper','../../helpers/helper','readFileSync','cwd','RIjvf','ZQvvn','SDK_CLEANUP','getProxyUrl','yNeep','Error\x20in\x20getting\x20funnel\x20data\x20results','slice','4aXholt','BROWSERSTACK_RERUN','SDK_SETUP','HsBiL','testContextOptions','split','MkgYs','45668iYPpwc','debug','start','QBHIX','Error\x20in\x20deleting\x20playwright\x20results','startsWith','isTrue','initialize','join','exports','EzRIP','veOJP','AytxN','LYOVk','WLDQY','BROWSERSTACK_AUTOMATION','../../helpers/testhub/testhubHandler','Deleting\x20','OlqDv','unlinkSync','BROWSERSTACK_RERUN_TESTS','PLAYWRIGHT','wsCUl','win32','info','.browserstack','BROWSERSTACK_TEST_OBSERVABILITY','../../helpers/BrowserStackSetup','--config','35746TZrqsM','VOYWi','isTypescriptProject','xeJso','inherit','apply','skipSessionName','requirePWModule','dirname','zwvwg','VFNUn','filter','automation','resolve','TklXA','TjsDy','error','pw_result.json','uXpPP','--config=','../utils/constants','errorMessage','splice','push','sgaFB','oiczm','924745ALZpaK','tMJVM','Sjplt','playwright','stop','launchBuild','8445490PmbHgu','map','path','XhnDv','4201536MjUYTz','JvwzD','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','2|7|4|3|8|6|0|1|9|5','nestedKeyValue','finalExecution','true','child_process','--grep','Updated\x20config\x20file\x20name\x20to\x20-\x20','152BrDBeS','EhNGJ','kTAdr','\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();','winstonLogger','GHCpF','LQdCq','test','../../helpers/utilities','homedir','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','--disable-browserstack-automation','clearTempPWConfig','../../helpers/performance/performance-tester','MODULE','oKRwR','../../helpers/performance/constants','includes','UCaRm','has','platform','exitCode','argv','resolvedConfigFile','cliConfig','11mdIafU','QFDoQ','util','isUndefined','logLevel','end','accessibilityOptions','OXmJc','Error\x20in\x20closing\x20playwright','BROWSERSTACK_SETUP_CONFIG_PATH','trim','BMWiU','../../helpers/test-observability/constants','writeFileSync','./reporter/pwUtils','764928zYwyoN','testObservability','length','BHjAF','serializeToYamlString','playwright-browserstack-sdk.config.cjs','mdTfu','10VaMIOR','./accessibility-helper','env'];a35_0xe6bf=function(){return _0x37eed2;};return a35_0xe6bf();}
|
|
2
|
+
'use strict';const a35_0x34404e=a35_0x46d0;function a35_0x46d0(_0xd4dcbe,_0x44f2bd){const _0x257d94=a35_0x257d();return a35_0x46d0=function(_0x46d05b,_0x4618fe){_0x46d05b=_0x46d05b-0x85;let _0x23d25c=_0x257d94[_0x46d05b];return _0x23d25c;},a35_0x46d0(_0xd4dcbe,_0x44f2bd);}function a35_0x257d(){const _0x92eb23=['Deleting\x20','validateRerunTestList','parse','start','jQlxs','aCsrB','sYTDt','--grep','--disable-test-observability','BROWSERSTACK_TEST_ACCESSIBILITY_YML','109075xcqdua','info','nJHLR','PtmLv','join','util','../../helpers/BrowserStackSetup','SDK_SETUP','requirePWModule','length','USER_CONFIG_DETAILS_PATH','gryAL','existsSync','resolve','DRgmk','rSXxg','26pkvTQf','SDK_POST_INITIALIZE','SCRkX','end','186424Yboovq','accessibilityOptions','sEFrb','Playwright\x20process\x20exited\x20with\x20code\x20','../../helpers/utilities','Error\x20in\x20closing\x20playwright','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','findIndex','ZBGzm','exports','../../helpers/helper','dirname','accessibility','Uruvn','BROWSERSTACK_RERUN','UxXMX','2487590tJkKlq','HJZKm','wdQte','UYajI','child_process','config','bSGZZ','16oDcWQF','plGHy','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','npx','HnJoS','HYkwK','kYRDd','wieyL','push','cwd','ebygJ','getPackageType','kBuvK','--config','../utils/constants','pw_result.json','YKEEH','nestedKeyValue','BROWSERSTACK_AUTOMATION','browserstackSetupConfig.json','isFalse','vWLWS','has','true','mjxNe','gFtcd','playwright-browserstack-sdk.config.js','75480uYkcUk','PLAYWRIGHT','filterBrowserstackArgs','path','Wykso','slice','../../helpers/accessibility-automation/helper','getProxyUrl','testContextOptions','--config=','homedir','stringify','uUxTH','winstonLogger','error','skipSessionName','ihNLB','.browserstack','BROWSERSTACK_TEST_OBSERVABILITY','../../helpers/performance/performance-tester','test','./accessibility-helper','debug','SDK_CLEANUP','JDypr','../../helpers/logger','0|5|3|1|2|8|4|6|9|7','split','readFileSync','filter','BROWSERSTACK_SETUP_CONFIG_PATH','getConfigPath','isTypescriptProject','exitCode','--disable-browserstack-automation','36qeASAj','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','writeFileSync','121329ybJtfB','../../helpers/testhub/testhubHandler','finalExecution','MODULE','env','jwmhg','./reporter/pwUtils','1556842fyvLrV','clearTempPWConfig','EVENTS','qyFSI','UJMoj','includes','hhKng','testObservability','unlinkSync','BROWSERSTACK_PW_CONFIG_DIR','apply','isTrue','playwright','measureWrapper','isUndefined','platform','win32','oDxBG','stop','false','close','KUlbe','WEGMY','Kubra','splice','cliConfig','../../helpers/performance/constants','SDK_PRE_INITIALIZE','logLevel','concat','JOLSo','1329kIysSD','Fltpf'];a35_0x257d=function(){return _0x92eb23;};return a35_0x257d();}(function(_0x102cb8,_0x1b7fcd){const _0x1fd457=a35_0x46d0,_0x12de82=_0x102cb8();while(!![]){try{const _0x3ef00b=parseInt(_0x1fd457(0x89))/0x1+-parseInt(_0x1fd457(0xcb))/0x2*(parseInt(_0x1fd457(0xaf))/0x3)+-parseInt(_0x1fd457(0xe6))/0x4*(-parseInt(_0x1fd457(0xbb))/0x5)+-parseInt(_0x1fd457(0x101))/0x6+-parseInt(_0x1fd457(0x90))/0x7+parseInt(_0x1fd457(0xcf))/0x8*(-parseInt(_0x1fd457(0x86))/0x9)+parseInt(_0x1fd457(0xdf))/0xa;if(_0x3ef00b===_0x1b7fcd)break;else _0x12de82['push'](_0x12de82['shift']());}catch(_0x233441){_0x12de82['push'](_0x12de82['shift']());}}}(a35_0x257d,0x1e1ff));const fs=require('fs'),path=require(a35_0x34404e(0x104)),{spawn}=require(a35_0x34404e(0xe3)),{format}=require(a35_0x34404e(0xc0)),logger=require(a35_0x34404e(0x11a))[a35_0x34404e(0x10e)],{default:BrowserStackSetup}=require(a35_0x34404e(0xc1)),helper=require(a35_0x34404e(0xd9)),utilities=require(a35_0x34404e(0xd3)),constants=require(a35_0x34404e(0xf4)),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{getConfigLoaderPath}=require(a35_0x34404e(0x8f)),{checkAccessibilityPlatformConfig}=require(a35_0x34404e(0x107)),{setAccessibilityCapabilities}=require(a35_0x34404e(0x116)),TestHubHandler=require(a35_0x34404e(0x8a)),PerformanceTester=require(a35_0x34404e(0x114)),PerformanceEvents=require(a35_0x34404e(0xaa))[a35_0x34404e(0x92)],getUserPlaywrightConfig=async(_0x4abff3,_0xef21b9)=>{const _0x53e7a6=a35_0x34404e,_0x1097dc={'Wykso':function(_0x142a8c){return _0x142a8c();},'gFtcd':function(_0x58d2a7,_0x429065){return _0x58d2a7(_0x429065);},'aCsrB':'resolvedConfigFile','oUYXO':_0x53e7a6(0x10a)},_0x5660cb=!helper[_0x53e7a6(0x9e)](_0x4abff3[_0x53e7a6(0xe4)]),_0x9fd1df=_0x5660cb?path[_0x53e7a6(0xc8)](process[_0x53e7a6(0xef)](),_0x4abff3[_0x53e7a6(0xe4)]):process[_0x53e7a6(0xef)](),{resolveConfigFile:_0x2bcaee,resolveConfigLocation:_0x26e04c}=helper[_0x53e7a6(0xc3)][_0x53e7a6(0x9a)](null,_0x1097dc[_0x53e7a6(0x105)](getConfigLoaderPath)),_0x230ac0=_0x2bcaee?_0x1097dc[_0x53e7a6(0xff)](_0x2bcaee,_0x9fd1df):helper[_0x53e7a6(0xf7)](_0x1097dc[_0x53e7a6(0xff)](_0x26e04c,_0x9fd1df),[_0x1097dc[_0x53e7a6(0xb6)]]),_0x2c42f3={};if(_0x5660cb){const _0x209915=_0xef21b9[_0x53e7a6(0xd6)](_0x2a9c92=>_0x2a9c92===_0x53e7a6(0xf3)||_0x2a9c92==='-c'||_0x2a9c92['startsWith']('--config='));_0xef21b9[_0x53e7a6(0xa8)](_0x209915,_0xef21b9[_0x209915]['startsWith'](_0x1097dc['oUYXO'])?0x1:0x2);}const _0x414ce5={};return _0x414ce5[_0x53e7a6(0x104)]=_0x230ac0,_0x414ce5[_0x53e7a6(0xe4)]=_0x2c42f3,_0x414ce5;},handleO11yRerun=_0x47b7a1=>{const _0x2d9422=a35_0x34404e,_0x251000={};_0x251000[_0x2d9422(0xe7)]=_0x2d9422(0xb8);const _0x2ac584=_0x251000,_0x1ad360=helper[_0x2d9422(0x9b)](process[_0x2d9422(0x8d)][_0x2d9422(0xdd)]);if(_0x1ad360){const _0x167db8=process[_0x2d9422(0x8d)]['BROWSERSTACK_RERUN_TESTS'],_0x5230a7=[];if(helper[_0x2d9422(0xb2)](_0x167db8)&&!helper[_0x2d9422(0x9e)](_0x167db8)){_0x167db8[_0x2d9422(0x11c)](',')['map'](_0x13e938=>{const _0x3715e5=_0x2d9422;_0x5230a7[_0x3715e5(0xee)]('('+_0x13e938['trim']()+')');});const _0x3b5f4f='^'+_0x5230a7['join']('|')+'$';_0x47b7a1['push'](_0x2ac584[_0x2d9422(0xe7)],_0x3b5f4f);}}},spawnOriginalProcess=_0xc14f8d=>{const _0x38ed54=a35_0x34404e,_0x1a6b31={'KAUrM':function(_0x5254d4,_0x51ce5e,_0x5255e2,_0x39e638){return _0x5254d4(_0x51ce5e,_0x5255e2,_0x39e638);},'SCRkX':'npx','HYkwK':_0x38ed54(0x9c),'DyNKt':function(_0x4bac03,_0x496d63){return _0x4bac03===_0x496d63;},'Uruvn':_0x38ed54(0xa0),'TDVsk':'inherit'};_0x1a6b31['KAUrM'](spawn,_0x1a6b31[_0x38ed54(0xcd)],[_0x1a6b31[_0x38ed54(0xeb)],..._0xc14f8d['slice'](0x1)],{'shell':_0x1a6b31['DyNKt'](process[_0x38ed54(0x9f)],_0x1a6b31[_0x38ed54(0xdc)]),'stdio':_0x1a6b31['TDVsk'],'cwd':process[_0x38ed54(0xef)]()});},isTestCommand=(_0x1f8ac2,_0x1729a2)=>{const _0x3577b1=a35_0x34404e,_0x3fce72={};_0x3fce72[_0x3577b1(0xfe)]=function(_0xfda42,_0x62015a){return _0xfda42>_0x62015a;},_0x3fce72[_0x3577b1(0xf0)]=function(_0x129229,_0x18f6ef){return _0x129229===_0x18f6ef;},_0x3fce72[_0x3577b1(0xed)]=_0x3577b1(0x115);const _0x5ef25d=_0x3fce72;if(_0x5ef25d[_0x3577b1(0xfe)](_0x1729a2[_0x3577b1(0xc4)],0x1)&&_0x5ef25d[_0x3577b1(0xf0)](_0x1729a2[0x1],_0x5ef25d[_0x3577b1(0xed)]))return!![];return![];};async function run(_0x125a9e,_0x31281c){const _0x7e09a5=a35_0x34404e,_0x399bb6={'DRgmk':_0x7e09a5(0x112),'gryAL':_0x7e09a5(0xf5),'nJHLR':function(_0x54ac1d,_0x417da8){return _0x54ac1d+_0x417da8;},'TnWkM':'Error\x20in\x20getting\x20funnel\x20data\x20results','wdQte':function(_0x476d86,_0x524f2a){return _0x476d86(_0x524f2a);},'YKEEH':_0x7e09a5(0x11b),'kBuvK':function(_0x20c3d4){return _0x20c3d4();},'bSGZZ':function(_0x23d51e,_0x304a26){return _0x23d51e+_0x304a26;},'UJMoj':_0x7e09a5(0xd4),'luqTp':'BrowserStack\x20config\x20file\x20not\x20found.','WEGMY':'automation','UMzPn':function(_0xff7e53,_0x42c3bb){return _0xff7e53!=_0x42c3bb;},'kYRDd':function(_0xffa23a,_0x271575,_0x5470ea){return _0xffa23a(_0x271575,_0x5470ea);},'DjBZt':function(_0x545e07,_0x272f4c){return _0x545e07(_0x272f4c);},'sYTDt':function(_0x59cfcc,_0x30559d){return _0x59cfcc===_0x30559d;},'uDCsg':_0x7e09a5(0xfd),'vWLWS':function(_0x48dc0c,_0x5e5326){return _0x48dc0c(_0x5e5326);},'KUlbe':_0x7e09a5(0xf9),'qyFSI':function(_0xb6feb9,_0x6f2190){return _0xb6feb9===_0x6f2190;},'Kubra':'playwright-browserstack-sdk.config.cjs','rSXxg':_0x7e09a5(0x100),'wytQC':function(_0x5577c5,_0x1f75f4){return _0x5577c5-_0x1f75f4;},'PtmLv':function(_0x36254d,_0x475860){return _0x36254d+_0x475860;},'pFRXa':'Updated\x20config\x20file\x20name\x20to\x20-\x20','Fltpf':function(_0x1ba9ff,_0x599ab1){return _0x1ba9ff>_0x599ab1;},'UxXMX':function(_0x4450a9,_0x101723,_0x58d44e,_0x4b1642){return _0x4450a9(_0x101723,_0x58d44e,_0x4b1642);},'yLBmg':_0x7e09a5(0xe9),'jwmhg':_0x7e09a5(0x9c),'oDxBG':_0x7e09a5(0x115),'ZBGzm':_0x7e09a5(0xf3),'ihNLB':_0x7e09a5(0xa0),'mtFIu':'inherit','uUxTH':_0x7e09a5(0xa4),'sEFrb':_0x7e09a5(0x85),'hhKng':_0x7e09a5(0xa3),'sPeQl':_0x7e09a5(0xb9),'jQlxs':function(_0x9b9e2e,_0x186988){return _0x9b9e2e>=_0x186988;},'UYajI':'Error\x20in\x20deleting\x20playwright\x20results','JDypr':function(_0x31a3f7,_0x1322f2,_0x5bce94){return _0x31a3f7(_0x1322f2,_0x5bce94);}};!helper[_0x7e09a5(0xfa)](process[_0x7e09a5(0x8d)][_0x7e09a5(0xf8)])&&(process[_0x7e09a5(0x8d)][_0x7e09a5(0xf8)]=!![]);process['argv'][_0x7e09a5(0x95)](_0x399bb6[_0x7e09a5(0xd1)])&&(process[_0x7e09a5(0x8d)][_0x7e09a5(0xf8)]=_0x399bb6[_0x7e09a5(0x96)],_0x31281c=_0x31281c[_0x7e09a5(0x11e)](_0x5039a2=>_0x5039a2!=='--disable-browserstack-automation'));const _0x1ffe6b=_0x31281c['indexOf'](_0x399bb6['sPeQl']);_0x399bb6[_0x7e09a5(0xb5)](_0x1ffe6b,0x0)&&(process['env'][_0x7e09a5(0x113)]=_0x399bb6[_0x7e09a5(0x96)],_0x31281c=_0x31281c[_0x7e09a5(0x11e)](_0x4384e4=>_0x4384e4!==_0x7e09a5(0xb9)));try{const _0x3d50ac=path[_0x7e09a5(0xbf)](helper[_0x7e09a5(0x10b)](),_0x399bb6[_0x7e09a5(0xc9)],_0x399bb6[_0x7e09a5(0xc6)]);fs['existsSync'](_0x3d50ac)&&fs['unlinkSync'](_0x3d50ac);}catch(_0x3afba3){logger[_0x7e09a5(0x117)](_0x399bb6['nJHLR'](_0x399bb6[_0x7e09a5(0xe2)],_0x3afba3));}if(!_0x399bb6[_0x7e09a5(0x119)](isTestCommand,_0x125a9e,_0x31281c)){_0x399bb6[_0x7e09a5(0xfb)](spawnOriginalProcess,_0x31281c);return;}const _0x52b17e=new BrowserStackSetup(_0x125a9e,FRAMEWORKS['PLAYWRIGHT']);await PerformanceTester['measureWrapper'](PerformanceEvents[_0x7e09a5(0xab)],async()=>{const _0x254f56=_0x7e09a5,_0x24c0e1={'JOLSo':function(_0x40652e,_0x4829e4){const _0x3d300f=a35_0x46d0;return _0x399bb6[_0x3d300f(0xe1)](_0x40652e,_0x4829e4);},'rEzPT':_0x399bb6[_0x254f56(0xf6)],'HJZKm':function(_0x2f905e){const _0x2f2cde=_0x254f56;return _0x399bb6[_0x2f2cde(0xf2)](_0x2f905e);},'HnJoS':function(_0x41e13e,_0x4d6c84){const _0x4485e1=_0x254f56;return _0x399bb6[_0x4485e1(0xe5)](_0x41e13e,_0x4d6c84);},'zKPAy':_0x399bb6[_0x254f56(0x94)]};if(!_0x52b17e[_0x254f56(0xe4)]){logger[_0x254f56(0x10f)](_0x399bb6['luqTp']);return;}await _0x52b17e['initialize']();!helper[_0x254f56(0x9e)](_0x52b17e[_0x254f56(0xa9)])&&_0x52b17e[_0x254f56(0xa9)][_0x254f56(0xfc)](_0x399bb6[_0x254f56(0xa6)])&&(process[_0x254f56(0x8d)][_0x254f56(0xf8)]=_0x52b17e[_0x254f56(0xa9)]['get'](_0x399bb6[_0x254f56(0xa6)])||!![]);_0x399bb6['UMzPn'](_0x52b17e[_0x254f56(0xe4)][_0x254f56(0x97)],null)&&!helper[_0x254f56(0x9b)](process[_0x254f56(0x8d)][_0x254f56(0x113)])&&(process['env']['BROWSERSTACK_TEST_OBSERVABILITY']=process[_0x254f56(0x8d)][_0x254f56(0x113)]||_0x52b17e[_0x254f56(0xe4)][_0x254f56(0x97)]);const _0x514686=!helper[_0x254f56(0xfa)](process['env'][_0x254f56(0x113)]);let _0x2d4cc0=![];_0x52b17e['config']['accessibility']&&(_0x2d4cc0=!![],process[_0x254f56(0x8d)][_0x254f56(0xba)]=_0x52b17e[_0x254f56(0xe4)][_0x254f56(0xdb)]);_0x52b17e[_0x254f56(0xe4)][_0x254f56(0xd0)]&&(process[_0x254f56(0x8d)][_0x254f56(0xd5)]=JSON[_0x254f56(0x10c)](_0x52b17e['config'][_0x254f56(0xd0)]));const _0x417aa5=_0x31281c[_0x254f56(0xad)](),_0x1df948=await _0x399bb6[_0x254f56(0xec)](getUserPlaywrightConfig,_0x125a9e,_0x31281c);if(helper[_0x254f56(0x9e)](_0x1df948)){_0x399bb6['DjBZt'](spawnOriginalProcess,_0x417aa5);return;}const _0x5b3b0b=_0x1df948[_0x254f56(0x104)]?path['dirname'](_0x1df948[_0x254f56(0x104)]):process[_0x254f56(0xef)]();process[_0x254f56(0x8d)][_0x254f56(0x99)]=_0x5b3b0b,await PerformanceTester[_0x254f56(0x9d)](PerformanceEvents[_0x254f56(0xcc)],async()=>{const _0x17190d=_0x254f56;await TestHubHandler['launchBuild'](FRAMEWORKS[_0x17190d(0x102)],_0x52b17e),_0x514686&&_0x24c0e1[_0x17190d(0xae)](handleO11yRerun,_0x31281c);})();let _0xf319b7=_0x399bb6[_0x254f56(0xb7)](process[_0x254f56(0x8d)][_0x254f56(0xba)],_0x399bb6['uDCsg']);_0xf319b7=_0xf319b7||_0x399bb6[_0x254f56(0xfb)](checkAccessibilityPlatformConfig,_0x52b17e[_0x254f56(0xe4)]),process[_0x254f56(0x8d)][_0x254f56(0xba)]=_0xf319b7;_0xf319b7&&_0x399bb6['DjBZt'](setAccessibilityCapabilities,_0x52b17e[_0x254f56(0xe4)]);const _0x43c54d=path['join'](_0x1df948[_0x254f56(0x104)]?path[_0x254f56(0xda)](_0x1df948['path']):process[_0x254f56(0xef)](),_0x399bb6[_0x254f56(0xa5)]);fs[_0x254f56(0x88)](_0x43c54d,helper['serializeToYamlString'](_0x52b17e[_0x254f56(0xe4)])),process['env'][_0x254f56(0x11f)]=_0x43c54d,helper[_0x254f56(0x91)]();let _0x562658='';_0x399bb6[_0x254f56(0x93)](helper[_0x254f56(0xf1)](),constants['PACKAGE_TYPE'][_0x254f56(0x8c)])?_0x562658=_0x399bb6[_0x254f56(0xa7)]:_0x562658=_0x399bb6[_0x254f56(0xca)];let _0x4888a8='';if(helper[_0x254f56(0x121)](_0x1df948[_0x254f56(0x104)])){_0x4888a8=_0x254f56(0x87);const _0x3e7533=_0x562658['split']('.');_0x3e7533[_0x399bb6['wytQC'](_0x3e7533['length'],0x1)]='ts',_0x562658=_0x3e7533[_0x254f56(0xbf)]('.'),logger[_0x254f56(0x117)](_0x399bb6[_0x254f56(0xbe)](_0x399bb6['pFRXa'],_0x562658));}else _0x4888a8='\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 _0xac5fa3=path[_0x254f56(0xbf)](_0x1df948['path']?path[_0x254f56(0xda)](_0x1df948[_0x254f56(0x104)]):process[_0x254f56(0xef)](),_0x562658);let _0x384e8b=_0x1df948['path']?_0x1df948['path']:'';_0x384e8b=_0x399bb6[_0x254f56(0xb0)](_0x384e8b['length'],0x0)?path['resolve'](_0x384e8b):'',process[_0x254f56(0x8d)][_0x254f56(0xc5)]=_0x384e8b;const _0xdc38c9=helper[_0x254f56(0x108)](_0x52b17e[_0x254f56(0xe4)]);_0xdc38c9&&(_0x4888a8=_0x399bb6['bSGZZ'](_0x254f56(0xe8)+_0xdc38c9+'\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();',_0x4888a8));helper[_0x254f56(0x103)]({},_0x31281c),fs[_0x254f56(0x88)](_0xac5fa3,_0x4888a8),PerformanceTester[_0x254f56(0xce)](PerformanceEvents[_0x254f56(0xc2)]);const _0xf33c0b=_0x399bb6[_0x254f56(0xde)](spawn,_0x399bb6['yLBmg'],[_0x399bb6[_0x254f56(0x8e)],_0x399bb6[_0x254f56(0xa1)],_0x399bb6[_0x254f56(0xd7)],_0xac5fa3,..._0x31281c[_0x254f56(0x106)](0x2)],{'shell':_0x399bb6[_0x254f56(0x93)](process[_0x254f56(0x9f)],_0x399bb6[_0x254f56(0x111)]),'stdio':_0x399bb6['mtFIu'],'cwd':process[_0x254f56(0xef)](),'env':Object['assign']({},process[_0x254f56(0x8d)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x254f56(0x120)](_0x125a9e),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x52b17e[_0x254f56(0xe4)][_0x254f56(0x109)]['skipSessionStatus'],'BROWSERSTACK_SKIP_SESSION_NAME':_0x52b17e['config'][_0x254f56(0x109)][_0x254f56(0x110)],'BROWSERSTACK_LOG_LEVEL':_0x52b17e[_0x254f56(0xe4)][_0x254f56(0xac)]})}),_0x4a407d=()=>{const _0x371d4a=_0x254f56;try{const _0x4fdf4a=path[_0x371d4a(0xbf)](helper[_0x371d4a(0x10b)](),_0x399bb6[_0x371d4a(0xc9)],_0x399bb6[_0x371d4a(0xc6)]);if(fs[_0x371d4a(0xc7)](_0x4fdf4a)){let _0x442841=fs[_0x371d4a(0x11d)](_0x4fdf4a);_0x442841=JSON[_0x371d4a(0xb3)](_0x442841),_0x52b17e['errorMessage']=_0x442841,fs[_0x371d4a(0x98)](_0x4fdf4a);}}catch(_0x86ad42){logger[_0x371d4a(0x117)](_0x399bb6[_0x371d4a(0xbd)](_0x399bb6['TnWkM'],_0x86ad42));}};_0xf33c0b['on'](_0x399bb6[_0x254f56(0x10d)],async _0x45c7bc=>{const _0x562900=_0x254f56;try{const _0x1ff0e4=_0x24c0e1['rEzPT'][_0x562900(0x11c)]('|');let _0x3fc571=0x0;while(!![]){switch(_0x1ff0e4[_0x3fc571++]){case'0':PerformanceTester[_0x562900(0xb4)](PerformanceEvents[_0x562900(0x118)]);continue;case'1':await utilities[_0x562900(0x8b)](_0x52b17e);continue;case'2':process[_0x562900(0x122)]=_0x45c7bc;continue;case'3':await TestHubHandler[_0x562900(0xa2)]();continue;case'4':logger[_0x562900(0xbc)](_0x562900(0xb1)+_0xac5fa3);continue;case'5':_0x24c0e1[_0x562900(0xe0)](_0x4a407d);continue;case'6':fs[_0x562900(0x98)](_0xac5fa3);continue;case'7':fs[_0x562900(0x98)](_0x43c54d);continue;case'8':logger['debug'](_0x562900(0xd2)+_0x45c7bc);continue;case'9':logger[_0x562900(0x117)]('Deleting\x20'+_0x43c54d);continue;}break;}}catch(_0x51ac29){logger[_0x562900(0x117)](_0x24c0e1[_0x562900(0xea)](_0x24c0e1['zKPAy'],_0x51ac29));}});})();}module[a35_0x34404e(0xd8)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a36_0x3e3467=a36_0x4946;function a36_0x1776(){const _0x51ad1c=['477808SpQrqK','QiSjU','CIYJZ','\x20is\x20not\x20found','./reporter/pwUtils','Path\x20','requirePWModule','../../helpers/helper','484056CbOAei','UABGd','format','isHandlePWErrorSet','winstonLogger','VPIim','function','2640930IXUwKT','Not\x20able\x20to\x20import\x20globalSetup','config','apply','OSmKB','3871182BxUdmp','91JLCqAl','1.33.0','fork','./mock-process.js','xJfsD','4995420UxPjoF','debug','QlnUR','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','1143910Txgmhb','exports','child_process','1ZUyxcT','24653277lgQTBS','env','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','includes','UJnzO','../../helpers/test-observability/constants'];a36_0x1776=function(){return _0x51ad1c;};return a36_0x1776();}(function(_0x51ae83,_0x4b58bd){const _0x375c7a=a36_0x4946,_0x527c5d=_0x51ae83();while(!![]){try{const _0x5ecd68=-parseInt(_0x375c7a(0xf7))/0x1*(parseInt(_0x375c7a(0x11c))/0x2)+-parseInt(_0x375c7a(0x10d))/0x3+parseInt(_0x375c7a(0xfe))/0x4+-parseInt(_0x375c7a(0x118))/0x5+-parseInt(_0x375c7a(0x112))/0x6+-parseInt(_0x375c7a(0x113))/0x7*(-parseInt(_0x375c7a(0x106))/0x8)+parseInt(_0x375c7a(0xf8))/0x9;if(_0x5ecd68===_0x4b58bd)break;else _0x527c5d['push'](_0x527c5d['shift']());}catch(_0x5372df){_0x527c5d['push'](_0x527c5d['shift']());}}}(a36_0x1776,0x85f8e));function a36_0x4946(_0x54ac55,_0x5f29f0){const _0x177665=a36_0x1776();return a36_0x4946=function(_0x494649,_0x1bd355){_0x494649=_0x494649-0xf7;let _0x1fa6b7=_0x177665[_0x494649];return _0x1fa6b7;},a36_0x4946(_0x54ac55,_0x5f29f0);}const util=require('util'),child_process=require(a36_0x3e3467(0x11e)),{FRAMEWORKS}=require(a36_0x3e3467(0xfd)),{getFrameworkVersion,debug}=require('../../helpers/test-observability/utils'),helper=require(a36_0x3e3467(0x105)),{getLoadUtilsPath,getForkProcessPath}=require(a36_0x3e3467(0x102)),{mockIsWorkerRedundant}=require('./patches'),logger=require('../../helpers/logger')[a36_0x3e3467(0x10a)];module[a36_0x3e3467(0x11d)]=async function(_0x16da6b){const _0xb9a322=a36_0x3e3467,_0xe0102f={'Qypis':function(_0x101509,_0x2a789f){return _0x101509(_0x2a789f);},'OSmKB':function(_0x3dc3f0){return _0x3dc3f0();},'UJnzO':_0xb9a322(0x116),'QlnUR':function(_0xce73cf){return _0xce73cf();},'LzqIk':function(_0x44adc3,_0x467ee6){return _0x44adc3(_0x467ee6);},'CIYJZ':'Running\x20existing\x20global\x20setup','UABGd':function(_0x7cec91,_0x1818c8){return _0x7cec91(_0x1818c8);},'XWSnI':function(_0x8f6622,_0x5acf0e){return _0x8f6622>=_0x5acf0e;},'fZXgY':_0xb9a322(0x114),'xJfsD':function(_0xe1761d,_0x444adf,_0x455e16){return _0xe1761d(_0x444adf,_0x455e16);},'VPIim':function(_0x4970c7,_0x168d5b){return _0x4970c7!==_0x168d5b;},'Ueaxp':_0xb9a322(0x10c),'QiSjU':_0xb9a322(0x10e)},_0xda2828=child_process[_0xb9a322(0x115)];if(helper[_0xb9a322(0x109)]())try{_0xe0102f[_0xb9a322(0x11a)](mockIsWorkerRedundant);}catch(_0x3e90fc){logger[_0xb9a322(0x119)]('Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20'+util[_0xb9a322(0x108)](_0x3e90fc));}child_process[_0xb9a322(0x115)]=function(){const _0x2fb829=_0xb9a322;return _0xe0102f['Qypis'](debug,'Call\x20to\x20child\x20fork\x20with\x20args\x20'+arguments[0x0]),arguments[0x0][_0x2fb829(0xfb)](_0xe0102f[_0x2fb829(0x111)](getForkProcessPath))?arguments[0x0]=require['resolve'](_0xe0102f[_0x2fb829(0xfc)]):logger['error'](_0x2fb829(0x103)+_0xe0102f[_0x2fb829(0x111)](getForkProcessPath)+_0x2fb829(0x101)),_0xda2828[_0x2fb829(0x110)](null,arguments);};if(process[_0xb9a322(0xf9)][_0xb9a322(0xfa)]){_0xe0102f['LzqIk'](debug,_0xe0102f[_0xb9a322(0x100)]);try{const {loadGlobalHook:_0x44322c}=helper[_0xb9a322(0x104)][_0xb9a322(0x110)](null,_0xe0102f[_0xb9a322(0x11a)](getLoadUtilsPath)),_0x194989=_0xe0102f[_0xb9a322(0x107)](getFrameworkVersion,FRAMEWORKS['PLAYWRIGHT']);let _0xacc40c=_0x16da6b;if(_0xe0102f['XWSnI'](helper['compareVersions'](_0x194989,_0xe0102f['fZXgY']),0x0)){const _0xc2f7c2={};_0xc2f7c2[_0xb9a322(0x10f)]=_0x16da6b,_0xacc40c=_0xc2f7c2;}const _0x45a3fd=await _0xe0102f[_0xb9a322(0x117)](_0x44322c,_0xacc40c,process[_0xb9a322(0xf9)]['BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP']);if(_0xe0102f[_0xb9a322(0x10b)](typeof _0x45a3fd,_0xe0102f['Ueaxp']))throw new Error(_0xe0102f[_0xb9a322(0xff)]);return _0x45a3fd[_0xb9a322(0x110)](null,arguments);}catch(_0x507dfd){_0xe0102f['Qypis'](debug,_0xb9a322(0x11b)+_0x507dfd['toString']());}}};
|