browserstack-node-sdk 1.34.12 → 1.34.14
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/createk8sClient.js +1 -1
- package/ats/src/utils/deleteStack.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/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.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-tester.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
|
-
const a29_0x1d880e=a29_0x4408;(function(_0x1441c1,_0x22bf5e){const _0x254966=a29_0x4408,_0x328479=_0x1441c1();while(!![]){try{const _0x266ce7=-parseInt(_0x254966(0x19c))/0x1+-parseInt(_0x254966(0x1ab))/0x2+-parseInt(_0x254966(0x1c0))/0x3+parseInt(_0x254966(0x191))/0x4*(parseInt(_0x254966(0x1c4))/0x5)+-parseInt(_0x254966(0x1cb))/0x6+parseInt(_0x254966(0x1b3))/0x7*(parseInt(_0x254966(0x192))/0x8)+parseInt(_0x254966(0x1de))/0x9*(parseInt(_0x254966(0x182))/0xa);if(_0x266ce7===_0x22bf5e)break;else _0x328479['push'](_0x328479['shift']());}catch(_0x4a8e9e){_0x328479['push'](_0x328479['shift']());}}}(a29_0x55b0,0x7cb04));const logger=require(a29_0x1d880e(0x194))[a29_0x1d880e(0x17b)],helper=require('../../../helpers/helper'),constants=require('../../../bin/utils/constants'),hubAllocator=require(a29_0x1d880e(0x1ca)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a29_0x1d880e(0x1ae)),{setAccessibilityCapabilities,setExtension}=require(a29_0x1d880e(0x1b7)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0x1d880e(0x1be)),globals=require(a29_0x1d880e(0x16f)),modify=(_0x46157d,_0x376574=null,_0xfbe12d=![])=>{const _0x5300d6=a29_0x1d880e,_0x5385e8={'xngjM':function(_0x77f7cd,_0x20828c){return _0x77f7cd!==_0x20828c;},'PmCiL':_0x5300d6(0x1e3),'gQvjv':function(_0x59f65f,_0x1b0e7f){return _0x59f65f+_0x1b0e7f;},'YbGxn':function(_0x602b6e,_0x51048e){return _0x602b6e+_0x51048e;},'ouDif':_0x5300d6(0x1d6),'qLNQu':'/wd/hub','MBRZT':_0x5300d6(0x1d2),'Lvigz':'chromeOptions','tTXdh':_0x5300d6(0x1d0),'XmJQE':_0x5300d6(0x19e),'vBewY':'moz:firefoxOptions','eofdD':_0x5300d6(0x1ce),'uPjrg':_0x5300d6(0x1dd),'KOEOf':_0x5300d6(0x1c2),'tBkWq':_0x5300d6(0x174),'MVPxZ':function(_0x29a6b6,_0x39b96b){return _0x29a6b6===_0x39b96b;},'XYHAz':_0x5300d6(0x1bd),'CAwkD':_0x5300d6(0x17d),'uCwxl':function(_0x284e35,_0x5aa50,_0x4f8fea){return _0x284e35(_0x5aa50,_0x4f8fea);},'VHaZR':function(_0x5174de,_0x57cf9f){return _0x5174de(_0x57cf9f);},'aiVKA':_0x5300d6(0x1a2),'BSXYc':'OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','VArKm':'2|5|0|4|1|3','GjOuH':_0x5300d6(0x1e4),'IOaVE':function(_0x8190aa,_0x2bdfb5,_0x736adb){return _0x8190aa(_0x2bdfb5,_0x736adb);},'QgTKa':function(_0x260986){return _0x260986();},'ptKCN':function(_0x236f6a,_0x1b9ce5){return _0x236f6a(_0x1b9ce5);},'GYxtY':_0x5300d6(0x1e1),'KULCz':function(_0x5d55ee,_0x595422){return _0x5d55ee(_0x595422);},'LevMx':function(_0x59c9e7,_0x3875a6){return _0x59c9e7(_0x3875a6);},'iKZvf':function(_0x322dd1,_0x99605f){return _0x322dd1!==_0x99605f;},'PgqTg':_0x5300d6(0x1dc),'pDKGX':_0x5300d6(0x1a9)},_0x4724af=helper[_0x5300d6(0x172)]();let _0x45706f;try{_0x45706f=helper[_0x5300d6(0x19d)](),_0x45706f[_0x5300d6(0x195)]&&(_0x45706f[_0x5300d6(0x1c5)]=_0x45706f[_0x5300d6(0x195)]);}catch(_0x475cb6){return;}if(helper[_0x5300d6(0x18e)]()){const _0x379d49={};_0x379d49[_0x5300d6(0x1c8)]=_0x46157d[_0x5300d6(0x181)],helper[_0x5300d6(0x1d9)](_0x379d49,new Map(),new Map()),logger[_0x5300d6(0x186)](_0x5385e8[_0x5300d6(0x196)]),logger[_0x5300d6(0x1cc)](_0x5385e8[_0x5300d6(0x19b)]);}class _0x48549c extends _0x4724af['HttpClient']{[_0x5300d6(0x1e0)](_0x28eaa6){const _0x46e476=_0x5300d6;if(_0x5385e8['xngjM'](_0x28eaa6[_0x46e476(0x18d)],_0x5385e8['PmCiL'])&&_0x5385e8['xngjM'](global[_0x46e476(0x1c9)],''))try{global['newHubUrl']=_0x5385e8[_0x46e476(0x189)](_0x5385e8[_0x46e476(0x170)](_0x5385e8[_0x46e476(0x1c7)],global['newHubUrl']),_0x5385e8[_0x46e476(0x1d4)]),this[_0x46e476(0x18b)]=hubAllocator[_0x46e476(0x1bc)](global[_0x46e476(0x1c9)]),logger['debug'](_0x46e476(0x180)+global[_0x46e476(0x1c9)]),global[_0x46e476(0x1c9)]='';}catch(_0xf1f3a6){logger[_0x46e476(0x185)](_0xf1f3a6);}return super[_0x46e476(0x1e0)](_0x28eaa6);}}class _0x356c22 extends _0x45706f[_0x5300d6(0x1c5)]{[_0x5300d6(0x17c)](){const _0x2abb48=_0x5300d6;return this[_0x2abb48(0x173)]=helper[_0x2abb48(0x1d8)](_0x46157d),logger['debug'](_0x2abb48(0x17f)+this[_0x2abb48(0x173)]),this;}['__setBrowserOptions'](_0x3049d1){const _0x466641=_0x5300d6;let _0xb5537d={};for(const _0x1805e9 in _0x3049d1){switch(_0x1805e9){case _0x5385e8[_0x466641(0x19a)]:case _0x5385e8[_0x466641(0x1b6)]:this['chromeOptions_']&&(_0xb5537d=this[_0x466641(0x18f)][_0x466641(0x1b1)](this[_0x466641(0x18f)][_0x466641(0x1df)])||{},this[_0x466641(0x18f)][_0x466641(0x19f)](this[_0x466641(0x18f)][_0x466641(0x1df)],helper[_0x466641(0x178)](_0xb5537d,_0x3049d1[_0x1805e9])));break;case _0x5385e8[_0x466641(0x1b8)]:case _0x5385e8[_0x466641(0x184)]:this['edgeOptions_']&&(_0xb5537d=this['edgeOptions_'][_0x466641(0x1b1)](this['edgeOptions_']['CAPABILITY_KEY'])||{},this[_0x466641(0x1e5)][_0x466641(0x19f)](this[_0x466641(0x1e5)]['CAPABILITY_KEY'],helper[_0x466641(0x178)](_0xb5537d,_0x3049d1[_0x1805e9])));break;case _0x5385e8[_0x466641(0x1b0)]:case _0x5385e8['eofdD']:this[_0x466641(0x16c)]&&(_0xb5537d=this['firefoxOptions_'][_0x466641(0x1b1)](this[_0x466641(0x16c)][_0x466641(0x1df)])||{},this[_0x466641(0x16c)][_0x466641(0x19f)](this[_0x466641(0x16c)][_0x466641(0x1df)],helper[_0x466641(0x178)](_0xb5537d,_0x3049d1[_0x1805e9])));break;case _0x5385e8[_0x466641(0x1a8)]:this[_0x466641(0x1db)]&&(_0xb5537d=this[_0x466641(0x1db)]['get'](this[_0x466641(0x1db)]['CAPABILITY_KEY'])||{},this[_0x466641(0x1db)][_0x466641(0x19f)](this[_0x466641(0x1db)][_0x466641(0x1df)],helper[_0x466641(0x178)](_0xb5537d,_0x3049d1[_0x1805e9])));break;case _0x5385e8['KOEOf']:case _0x5385e8[_0x466641(0x179)]:this['ieOptions_']&&(_0xb5537d=this[_0x466641(0x1b4)]['get'](this[_0x466641(0x1b4)][_0x466641(0x1df)])||{},this[_0x466641(0x1b4)][_0x466641(0x19f)](this[_0x466641(0x1b4)][_0x466641(0x1df)],helper[_0x466641(0x178)](_0xb5537d,_0x3049d1[_0x1805e9])));break;}}}['setCapabilities'](){const _0x2ee9a2=_0x5300d6;return logger['debug'](_0x5385e8[_0x2ee9a2(0x1b2)]),this[_0x2ee9a2(0x18a)](_0x46157d[_0x2ee9a2(0x1a0)]),Object['keys'](_0x46157d[_0x2ee9a2(0x1a0)])[_0x2ee9a2(0x1b5)](_0x2aea2b=>{const _0x481577=_0x2ee9a2,_0x14b251=this[_0x481577(0x190)][_0x481577(0x1b1)](_0x2aea2b);_0x5385e8[_0x481577(0x1bb)](typeof _0x14b251,_0x5385e8[_0x481577(0x171)])?this[_0x481577(0x190)][_0x481577(0x19f)](_0x2aea2b,helper['mergeDeep'](_0x14b251,_0x46157d[_0x481577(0x1a0)][_0x2aea2b])):this[_0x481577(0x190)][_0x481577(0x19f)](_0x2aea2b,_0x46157d[_0x481577(0x1a0)][_0x2aea2b]);}),this;}[_0x5300d6(0x1c1)](){const _0x47c12b=_0x5300d6,_0x131bca={'axLui':_0x5385e8[_0x47c12b(0x1af)],'bZfQP':_0x5385e8[_0x47c12b(0x1ad)],'itqQo':function(_0x2d839e,_0x399467,_0x4051a0){const _0x482602=_0x47c12b;return _0x5385e8[_0x482602(0x193)](_0x2d839e,_0x399467,_0x4051a0);}};if(helper[_0x47c12b(0x18e)]()){const _0x13be76=_0x5385e8['VArKm'][_0x47c12b(0x1d1)]('|');let _0x406c99=0x0;while(!![]){switch(_0x13be76[_0x406c99++]){case'0':this[_0x47c12b(0x1a5)]();continue;case'1':globals[_0x47c12b(0x1ac)](_0x5385e8[_0x47c12b(0x1d5)])&&(!_0x5385e8['IOaVE'](setExtension,this,_0x46157d)&&globals[_0x47c12b(0x16b)](_0x5385e8[_0x47c12b(0x1d5)],![]));continue;case'2':_0x5385e8[_0x47c12b(0x1e2)](isAccessibilityAutomationSession)&&_0x5385e8[_0x47c12b(0x1a7)](setAccessibilityCapabilities,_0x46157d);continue;case'3':logger['debug'](_0x5385e8[_0x47c12b(0x1c6)]);continue;case'4':if(helper[_0x47c12b(0x16e)](_0x46157d[_0x47c12b(0x199)][_0x47c12b(0x18c)]))this[_0x47c12b(0x1bf)]=helper['getHttpAgent'](_0x46157d[_0x47c12b(0x199)][_0x47c12b(0x18c)]);else _0x46157d[_0x47c12b(0x199)][_0x47c12b(0x18c)]&&(this['proxy_']=_0x46157d[_0x47c12b(0x199)][_0x47c12b(0x18c)],logger[_0x47c12b(0x1cc)]('Proxy\x20set\x20to\x20'+this[_0x47c12b(0x16d)]));continue;case'5':this[_0x47c12b(0x17c)]();continue;}break;}}const _0x1cde19=super[_0x47c12b(0x1c1)]();return _0x1cde19[_0x47c12b(0x198)][_0x47c12b(0x1da)](_0x260228=>{const _0x3b60b8=_0x47c12b;try{const _0x588b6d=_0x260228['caps_'][_0x3b60b8(0x1b1)](_0x131bca[_0x3b60b8(0x1c3)]);_0x588b6d?(logger['debug'](_0x3b60b8(0x188)+_0x588b6d),hubAllocator[_0x3b60b8(0x1ba)](_0x588b6d),helper[_0x3b60b8(0x1cf)](_0x588b6d)):logger[_0x3b60b8(0x1cc)](_0x131bca[_0x3b60b8(0x1b9)]);}catch(_0x172b8b){logger['debug'](_0x3b60b8(0x17a)+_0x172b8b);}}),_0x1cde19['quitCount_']=0x0,_0x1cde19[_0x47c12b(0x1da)]&&_0x1cde19['then'](_0x3a8b02=>{const _0x2bfd60=_0x47c12b,_0x54a219={'odCer':function(_0x308566,_0x2c4203,_0x8be891){const _0x25e2d4=a29_0x4408;return _0x5385e8[_0x25e2d4(0x193)](_0x308566,_0x2c4203,_0x8be891);},'OVtqw':function(_0x3785ba,_0x573ea4,_0x5c37d3){const _0x5f167b=a29_0x4408;return _0x5385e8[_0x5f167b(0x193)](_0x3785ba,_0x573ea4,_0x5c37d3);}};_0x5385e8[_0x2bfd60(0x193)](overrideQuit,_0x3a8b02,_0x1cde19),_0x5385e8[_0x2bfd60(0x1d3)](overrideTakeScreenshot,_0x3a8b02),helper[_0x2bfd60(0x1a3)](_0x3a8b02,_0x46157d),helper[_0x2bfd60(0x183)](_0x3a8b02,_0x46157d),_0x3a8b02[_0x2bfd60(0x1a4)]=async()=>{return await _0x54a219['odCer'](getAccessibilityResultsSummary,_0x3a8b02,global);},_0x3a8b02[_0x2bfd60(0x1d7)]=async()=>{const _0x50a54b=_0x2bfd60;return await _0x54a219[_0x50a54b(0x175)](getAccessibilityResults,_0x3a8b02,global);};}),_0x1cde19[_0x47c12b(0x1a4)]=async()=>{return await _0x131bca['itqQo'](getAccessibilityResultsSummary,_0x1cde19,global);},_0x1cde19[_0x47c12b(0x1d7)]=async()=>{const _0x396d6b=_0x47c12b;return await _0x131bca[_0x396d6b(0x1a6)](getAccessibilityResults,_0x1cde19,global);},_0x5385e8[_0x47c12b(0x176)](overrideTakeScreenshot,_0x1cde19),_0x5385e8['LevMx'](overrideQuit,_0x1cde19),helper[_0x47c12b(0x1a3)](_0x1cde19,_0x46157d),helper[_0x47c12b(0x183)](_0x1cde19,_0x46157d),helper[_0x47c12b(0x1aa)](global[_0x47c12b(0x197)])&&(global[_0x47c12b(0x197)]=[]),helper[_0x47c12b(0x1aa)](global['__drivers'])&&(global[_0x47c12b(0x1cd)]=[]),global[_0x47c12b(0x197)]['push'](_0x1cde19),global['__driver']=_0x1cde19,_0x5385e8[_0x47c12b(0x187)](global['__drivers'],undefined)&&global['__drivers'][_0x47c12b(0x1a1)](_0x1cde19),_0x376574&&helper['isUndefined'](_0x376574['global'][_0x47c12b(0x197)])&&(_0x376574[_0x47c12b(0x177)][_0x47c12b(0x197)]=[]),_0x376574&&_0x5385e8['iKZvf'](_0x376574['global'][_0x47c12b(0x1cd)],undefined)&&(_0x376574[_0x47c12b(0x177)]['__drivers'][_0x47c12b(0x1a1)](_0x1cde19),_0x376574[_0x47c12b(0x177)][_0x47c12b(0x197)][_0x47c12b(0x1a1)](_0x1cde19)),_0x1cde19;}}return _0x45706f[_0x5300d6(0x195)]=_0x45706f['Builder'],_0x45706f[_0x5300d6(0x1c5)]=_0x356c22,_0x4724af[_0x5300d6(0x17e)]=_0x48549c,_0x45706f;};function a29_0x55b0(){const _0x211531=['../../../helpers/accessibility-automation/helper','agent_','2655189RPUvSN','build','se:ieOptions','axLui','5wrTecy','Builder','GYxtY','ouDif','logLevel','newHubUrl','../../../hubAllocationMethods','4400076QExYfs','debug','__drivers','firefoxOptions','storeOptimalHubUrl','ms:edgeOptions','split','goog:chromeOptions','VHaZR','qLNQu','GjOuH','https://','getAccessibilityResults','getHubUrl','setLogLevel','then','safariOptions_','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','safari.options','1437597YMOmYr','CAPABILITY_KEY','send','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','QgTKa','/session','isAccessibilityPlatform','edgeOptions_','setGlobal','firefoxOptions_','proxy_','isPacProxy','../../../helpers/globals','YbGxn','XYHAz','requireHttpClient','url_','ieOptions','OVtqw','KULCz','global','mergeDeep','tBkWq','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','winstonLogger','setServer','Setting\x20Browserstack\x20capabilities','HttpClient','Hub\x20url\x20set\x20to\x20','New\x20hub\x20url\x20set\x20to\x20','browserStackLogLevel','190hVDhnw','overrideExecute','XmJQE','error','info','xngjM','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','gQvjv','__setBrowserOptions','options_','proxyUrl','path','isBrowserstackInfra','chromeOptions_','capabilities_','1626472WbsRtq','8UTQtqB','uCwxl','../../../helpers/logger','originalBuilder','PgqTg','__driversArray','session_','proxySettings','MBRZT','pDKGX','589446tOcfdE','requireSeleniumWebdriver','edgeOptions','set','capability','push','optimalHubUrl','overrideGet','getAccessibilityResultsSummary','setCapabilities','itqQo','ptKCN','uPjrg','Modifying\x20webdriver\x20builder','isUndefined','1669574KWwLqB','getGlobal','BSXYc','../../../helpers/patchHelpers','aiVKA','vBewY','get','CAwkD','782747jmELNc','ieOptions_','forEach','Lvigz','../accessibility-automation/helper','tTXdh','bZfQP','updateHubUrl','MVPxZ','getRequestOptions','object'];a29_0x55b0=function(){return _0x211531;};return a29_0x55b0();}function a29_0x4408(_0x5ed4fa,_0x38103f){const _0x55b0c8=a29_0x55b0();return a29_0x4408=function(_0x4408b6,_0x2f5f8){_0x4408b6=_0x4408b6-0x16b;let _0x3149c6=_0x55b0c8[_0x4408b6];return _0x3149c6;},a29_0x4408(_0x5ed4fa,_0x38103f);}module['exports']['browserstackAgentObservability']=modify;
|
|
1
|
+
const a29_0x5c6bb4=a29_0x5c6a;function a29_0x5820(){const _0x18bbcd=['getHttpAgent','https://','MNJiR','sTIPQ','jiaYr','quitCount_','forEach','capability','20YrApXS','/session','../../../helpers/globals','setCapabilities','mergeDeep','push','debug','info','49ScRutk','HttpClient','isAccessibilityPlatform','getHubUrl','kLAOy','overrideGet','firefoxOptions','requireHttpClient','path','getRequestOptions','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','gwfrp','optimalHubUrl','JVtyx','11308450EDjKDs','Modifying\x20webdriver\x20builder','jWxZO','AOFrS','ieOptions_','goog:chromeOptions','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','/wd/hub','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','zSAMW','global','../../../helpers/accessibility-automation/helper','1513788SWeECO','1325oLhQsX','Jzdmz','Builder','1|4|0|2|3|5','pankM','uKPYL','browserStackLogLevel','split','exports','getAccessibilityResultsSummary','isPacProxy','updateHubUrl','Bxpog','winstonLogger','__driversArray','CAPABILITY_KEY','../../../helpers/logger','../../../bin/utils/constants','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','1278056LUwYzT','setServer','isBrowserstackInfra','safariOptions_','caps_','1|0|5|4|2|3','mlyww','vbMoM','isUndefined','1097307xVmdhW','getGlobal','proxyUrl','9426LojPhB','ms:edgeOptions','agent_','keys','DZmIm','send','newHubUrl','options_','then','object','KVvXV','omdcw','moz:firefoxOptions','ygooR','session_','build','Hub\x20url\x20set\x20to\x20','firefoxOptions_','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','qdwES','wQjhD','error','137128gFcsGe','49807hUlWaJ','getAccessibilityResults','edgeOptions_','Proxy\x20set\x20to\x20','proxy_','wzocs','../accessibility-automation/helper','HfzKt','get','set','setLogLevel','capabilities_','NswTh','Setting\x20Browserstack\x20capabilities','overrideExecute','chromeOptions_','chromeOptions','__drivers','__setBrowserOptions','Bzovq','url_','storeOptimalHubUrl','XuFuu','originalBuilder','proxySettings','diZwb'];a29_0x5820=function(){return _0x18bbcd;};return a29_0x5820();}(function(_0x3d0be7,_0x377010){const _0x50e209=a29_0x5c6a,_0x21b411=_0x3d0be7();while(!![]){try{const _0x31b355=-parseInt(_0x50e209(0xef))/0x1*(parseInt(_0x50e209(0x111))/0x2)+-parseInt(_0x50e209(0x133))/0x3+parseInt(_0x50e209(0x147))/0x4+parseInt(_0x50e209(0x134))/0x5*(-parseInt(_0x50e209(0x153))/0x6)+parseInt(_0x50e209(0x119))/0x7*(parseInt(_0x50e209(0xee))/0x8)+parseInt(_0x50e209(0x150))/0x9+parseInt(_0x50e209(0x127))/0xa;if(_0x31b355===_0x377010)break;else _0x21b411['push'](_0x21b411['shift']());}catch(_0x29ddc2){_0x21b411['push'](_0x21b411['shift']());}}}(a29_0x5820,0x42b88));function a29_0x5c6a(_0x1ebf7d,_0x3320a0){const _0x5820c7=a29_0x5820();return a29_0x5c6a=function(_0x5c6a04,_0x53f7c6){_0x5c6a04=_0x5c6a04-0xe0;let _0x42c728=_0x5820c7[_0x5c6a04];return _0x42c728;},a29_0x5c6a(_0x1ebf7d,_0x3320a0);}const logger=require(a29_0x5c6bb4(0x144))[a29_0x5c6bb4(0x141)],helper=require('../../../helpers/helper'),constants=require(a29_0x5c6bb4(0x145)),hubAllocator=require('../../../hubAllocationMethods'),{overrideQuit,overrideTakeScreenshot,overrideGet}=require('../../../helpers/patchHelpers'),{setAccessibilityCapabilities,setExtension}=require(a29_0x5c6bb4(0xf5)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0x5c6bb4(0x132)),globals=require(a29_0x5c6bb4(0x113)),modify=(_0x4959fc,_0x417d28=null,_0x168a34=![])=>{const _0x5d5ecd=a29_0x5c6bb4,_0x1406be={'diZwb':function(_0x1d271d,_0x395868){return _0x1d271d!==_0x395868;},'vbMoM':_0x5d5ecd(0x112),'KVvXV':function(_0x1e1704,_0x386593){return _0x1e1704+_0x386593;},'jWxZO':function(_0x13746c,_0x3b9aa3){return _0x13746c+_0x3b9aa3;},'zSAMW':_0x5d5ecd(0x10a),'gwfrp':_0x5d5ecd(0x12e),'wzocs':_0x5d5ecd(0x12c),'wDoVA':_0x5d5ecd(0xff),'LxvXU':_0x5d5ecd(0x154),'AOFrS':'edgeOptions','DZmIm':_0x5d5ecd(0xe4),'MNJiR':_0x5d5ecd(0x11f),'Bxpog':'safari.options','uKPYL':'se:ieOptions','XpIbU':'ieOptions','ygooR':function(_0xf16a64,_0x287258){return _0xf16a64===_0x287258;},'auiCh':_0x5d5ecd(0xe1),'jiaYr':_0x5d5ecd(0xfc),'pankM':_0x5d5ecd(0x125),'tcIhn':_0x5d5ecd(0x123),'kLAOy':_0x5d5ecd(0x137),'HfzKt':function(_0x779ec8,_0x24dd66,_0xb59aea){return _0x779ec8(_0x24dd66,_0xb59aea);},'qdwES':function(_0x2a4a3a,_0x172cd2){return _0x2a4a3a(_0x172cd2);},'wQjhD':_0x5d5ecd(0x14c),'XuFuu':function(_0x400b7b){return _0x400b7b();},'JVtyx':_0x5d5ecd(0x11b),'Jzdmz':_0x5d5ecd(0x146),'omdcw':function(_0xe19aaa,_0x1df22b){return _0xe19aaa(_0x1df22b);},'fnEKq':_0x5d5ecd(0xea),'NswTh':_0x5d5ecd(0x128)},_0x50194e=helper[_0x5d5ecd(0x120)]();let _0x3028c0;try{_0x3028c0=helper['requireSeleniumWebdriver'](),_0x3028c0['originalBuilder']&&(_0x3028c0['Builder']=_0x3028c0[_0x5d5ecd(0x106)]);}catch(_0x357a84){return;}if(helper[_0x5d5ecd(0x149)]()){const _0x21d786={};_0x21d786['logLevel']=_0x4959fc[_0x5d5ecd(0x13a)],helper[_0x5d5ecd(0xf9)](_0x21d786,new Map(),new Map()),logger[_0x5d5ecd(0x118)](_0x1406be['fnEKq']),logger[_0x5d5ecd(0x117)](_0x1406be[_0x5d5ecd(0xfb)]);}class _0x12ec40 extends _0x50194e[_0x5d5ecd(0x11a)]{[_0x5d5ecd(0x158)](_0x225824){const _0x24c757=_0x5d5ecd;if(_0x1406be[_0x24c757(0x108)](_0x225824[_0x24c757(0x121)],_0x1406be[_0x24c757(0x14e)])&&_0x1406be[_0x24c757(0x108)](global['newHubUrl'],''))try{global['newHubUrl']=_0x1406be[_0x24c757(0xe2)](_0x1406be[_0x24c757(0x129)](_0x1406be[_0x24c757(0x130)],global[_0x24c757(0x159)]),_0x1406be[_0x24c757(0x124)]),this[_0x24c757(0x15a)]=hubAllocator[_0x24c757(0x122)](global['newHubUrl']),logger[_0x24c757(0x117)]('New\x20hub\x20url\x20set\x20to\x20'+global[_0x24c757(0x159)]),global[_0x24c757(0x159)]='';}catch(_0x485f9b){logger[_0x24c757(0xed)](_0x485f9b);}return super[_0x24c757(0x158)](_0x225824);}}class _0x5c93b5 extends _0x3028c0[_0x5d5ecd(0x136)]{['setServer'](){const _0x14f7ac=_0x5d5ecd;return this[_0x14f7ac(0x103)]=helper[_0x14f7ac(0x11c)](_0x4959fc),logger['debug'](_0x14f7ac(0xe8)+this[_0x14f7ac(0x103)]),this;}[_0x5d5ecd(0x101)](_0xd92373){const _0x4f661a=_0x5d5ecd;let _0x31a214={};for(const _0x3bccd8 in _0xd92373){switch(_0x3bccd8){case _0x1406be[_0x4f661a(0xf4)]:case _0x1406be['wDoVA']:this[_0x4f661a(0xfe)]&&(_0x31a214=this[_0x4f661a(0xfe)][_0x4f661a(0xf7)](this['chromeOptions_'][_0x4f661a(0x143)])||{},this[_0x4f661a(0xfe)]['set'](this[_0x4f661a(0xfe)][_0x4f661a(0x143)],helper[_0x4f661a(0x115)](_0x31a214,_0xd92373[_0x3bccd8])));break;case _0x1406be['LxvXU']:case _0x1406be[_0x4f661a(0x12a)]:this['edgeOptions_']&&(_0x31a214=this['edgeOptions_']['get'](this[_0x4f661a(0xf1)][_0x4f661a(0x143)])||{},this[_0x4f661a(0xf1)][_0x4f661a(0xf8)](this[_0x4f661a(0xf1)][_0x4f661a(0x143)],helper[_0x4f661a(0x115)](_0x31a214,_0xd92373[_0x3bccd8])));break;case _0x1406be[_0x4f661a(0x157)]:case _0x1406be[_0x4f661a(0x10b)]:this['firefoxOptions_']&&(_0x31a214=this[_0x4f661a(0xe9)][_0x4f661a(0xf7)](this['firefoxOptions_'][_0x4f661a(0x143)])||{},this[_0x4f661a(0xe9)]['set'](this[_0x4f661a(0xe9)]['CAPABILITY_KEY'],helper[_0x4f661a(0x115)](_0x31a214,_0xd92373[_0x3bccd8])));break;case _0x1406be[_0x4f661a(0x140)]:this[_0x4f661a(0x14a)]&&(_0x31a214=this[_0x4f661a(0x14a)][_0x4f661a(0xf7)](this[_0x4f661a(0x14a)]['CAPABILITY_KEY'])||{},this[_0x4f661a(0x14a)][_0x4f661a(0xf8)](this[_0x4f661a(0x14a)][_0x4f661a(0x143)],helper[_0x4f661a(0x115)](_0x31a214,_0xd92373[_0x3bccd8])));break;case _0x1406be[_0x4f661a(0x139)]:case _0x1406be['XpIbU']:this[_0x4f661a(0x12b)]&&(_0x31a214=this[_0x4f661a(0x12b)][_0x4f661a(0xf7)](this[_0x4f661a(0x12b)]['CAPABILITY_KEY'])||{},this[_0x4f661a(0x12b)]['set'](this[_0x4f661a(0x12b)][_0x4f661a(0x143)],helper[_0x4f661a(0x115)](_0x31a214,_0xd92373[_0x3bccd8])));break;}}}[_0x5d5ecd(0x114)](){const _0x495a38=_0x5d5ecd,_0x3b2d67={'PRLRA':function(_0x19437c,_0x28d0e5){const _0x57814b=a29_0x5c6a;return _0x1406be[_0x57814b(0xe5)](_0x19437c,_0x28d0e5);},'Bzovq':_0x1406be['auiCh']};return logger[_0x495a38(0x117)](_0x1406be[_0x495a38(0x10d)]),this[_0x495a38(0x101)](_0x4959fc['capability']),Object[_0x495a38(0x156)](_0x4959fc[_0x495a38(0x110)])[_0x495a38(0x10f)](_0xe1bcf5=>{const _0x25164c=_0x495a38,_0x257c85=this[_0x25164c(0xfa)][_0x25164c(0xf7)](_0xe1bcf5);_0x3b2d67['PRLRA'](typeof _0x257c85,_0x3b2d67[_0x25164c(0x102)])?this[_0x25164c(0xfa)][_0x25164c(0xf8)](_0xe1bcf5,helper['mergeDeep'](_0x257c85,_0x4959fc[_0x25164c(0x110)][_0xe1bcf5])):this[_0x25164c(0xfa)][_0x25164c(0xf8)](_0xe1bcf5,_0x4959fc[_0x25164c(0x110)][_0xe1bcf5]);}),this;}['build'](){const _0x226f08=_0x5d5ecd,_0x5d247b={'mlyww':function(_0x33fbcf,_0x3c4417,_0x629d9f){const _0xd2e5f9=a29_0x5c6a;return _0x1406be[_0xd2e5f9(0xf6)](_0x33fbcf,_0x3c4417,_0x629d9f);},'sTIPQ':function(_0x5374e1,_0x509b73,_0x2942e3){const _0x5ce4ac=a29_0x5c6a;return _0x1406be[_0x5ce4ac(0xf6)](_0x5374e1,_0x509b73,_0x2942e3);}};if(helper[_0x226f08(0x149)]()){const _0x2ca637=_0x1406be[_0x226f08(0xec)][_0x226f08(0x13b)]('|');let _0x432a8d=0x0;while(!![]){switch(_0x2ca637[_0x432a8d++]){case'0':this[_0x226f08(0x148)]();continue;case'1':_0x1406be[_0x226f08(0x105)](isAccessibilityAutomationSession)&&_0x1406be[_0x226f08(0xeb)](setAccessibilityCapabilities,_0x4959fc);continue;case'2':globals[_0x226f08(0x151)](_0x1406be['JVtyx'])&&(!_0x1406be[_0x226f08(0xf6)](setExtension,this,_0x4959fc)&&globals['setGlobal'](_0x1406be[_0x226f08(0x126)],![]));continue;case'3':logger['debug'](_0x1406be[_0x226f08(0x135)]);continue;case'4':if(helper[_0x226f08(0x13e)](_0x4959fc[_0x226f08(0x107)][_0x226f08(0x152)]))this[_0x226f08(0x155)]=helper[_0x226f08(0x109)](_0x4959fc['proxySettings'][_0x226f08(0x152)]);else _0x4959fc['proxySettings']['proxyUrl']&&(this[_0x226f08(0xf3)]=_0x4959fc['proxySettings'][_0x226f08(0x152)],logger[_0x226f08(0x117)](_0x226f08(0xf2)+this[_0x226f08(0xf3)]));continue;case'5':this[_0x226f08(0x114)]();continue;}break;}}const _0x52bd58=super[_0x226f08(0xe7)]();return _0x52bd58[_0x226f08(0xe6)][_0x226f08(0xe0)](_0x37de1e=>{const _0x456e83=_0x226f08;try{const _0x1693a4=_0x37de1e[_0x456e83(0x14b)][_0x456e83(0xf7)](_0x1406be[_0x456e83(0x138)]);_0x1693a4?(logger[_0x456e83(0x117)](_0x456e83(0x12f)+_0x1693a4),hubAllocator[_0x456e83(0x13f)](_0x1693a4),helper[_0x456e83(0x104)](_0x1693a4)):logger[_0x456e83(0x117)](_0x1406be['tcIhn']);}catch(_0x4a85fe){logger[_0x456e83(0x117)](_0x456e83(0x12d)+_0x4a85fe);}}),_0x52bd58[_0x226f08(0x10e)]=0x0,_0x52bd58[_0x226f08(0xe0)]&&_0x52bd58[_0x226f08(0xe0)](_0x1c2466=>{const _0x52bf1f=_0x226f08,_0x262e85=_0x1406be[_0x52bf1f(0x11d)]['split']('|');let _0x5132a2=0x0;while(!![]){switch(_0x262e85[_0x5132a2++]){case'0':helper[_0x52bf1f(0x11e)](_0x1c2466,_0x4959fc);continue;case'1':_0x1406be[_0x52bf1f(0xf6)](overrideQuit,_0x1c2466,_0x52bd58);continue;case'2':helper[_0x52bf1f(0xfd)](_0x1c2466,_0x4959fc);continue;case'3':_0x1c2466[_0x52bf1f(0x13d)]=async()=>{const _0x19b59f=_0x52bf1f;return await _0x5d247b[_0x19b59f(0x14d)](getAccessibilityResultsSummary,_0x1c2466,global);};continue;case'4':_0x1406be[_0x52bf1f(0xeb)](overrideTakeScreenshot,_0x1c2466);continue;case'5':_0x1c2466['getAccessibilityResults']=async()=>{const _0xd1302e=_0x52bf1f;return await _0x5d247b[_0xd1302e(0x14d)](getAccessibilityResults,_0x1c2466,global);};continue;}break;}}),_0x52bd58[_0x226f08(0x13d)]=async()=>{const _0x1c7e91=_0x226f08;return await _0x5d247b[_0x1c7e91(0x10c)](getAccessibilityResultsSummary,_0x52bd58,global);},_0x52bd58[_0x226f08(0xf0)]=async()=>{const _0x38945d=_0x226f08;return await _0x5d247b[_0x38945d(0x10c)](getAccessibilityResults,_0x52bd58,global);},_0x1406be[_0x226f08(0xeb)](overrideTakeScreenshot,_0x52bd58),_0x1406be[_0x226f08(0xe3)](overrideQuit,_0x52bd58),helper[_0x226f08(0x11e)](_0x52bd58,_0x4959fc),helper[_0x226f08(0xfd)](_0x52bd58,_0x4959fc),helper[_0x226f08(0x14f)](global[_0x226f08(0x142)])&&(global[_0x226f08(0x142)]=[]),helper[_0x226f08(0x14f)](global['__drivers'])&&(global['__drivers']=[]),global[_0x226f08(0x142)][_0x226f08(0x116)](_0x52bd58),global['__driver']=_0x52bd58,_0x1406be['diZwb'](global['__drivers'],undefined)&&global[_0x226f08(0x100)][_0x226f08(0x116)](_0x52bd58),_0x417d28&&helper[_0x226f08(0x14f)](_0x417d28[_0x226f08(0x131)][_0x226f08(0x142)])&&(_0x417d28[_0x226f08(0x131)]['__driversArray']=[]),_0x417d28&&_0x1406be[_0x226f08(0x108)](_0x417d28[_0x226f08(0x131)]['__drivers'],undefined)&&(_0x417d28[_0x226f08(0x131)]['__drivers'][_0x226f08(0x116)](_0x52bd58),_0x417d28[_0x226f08(0x131)][_0x226f08(0x142)][_0x226f08(0x116)](_0x52bd58)),_0x52bd58;}}return _0x3028c0[_0x5d5ecd(0x106)]=_0x3028c0['Builder'],_0x3028c0[_0x5d5ecd(0x136)]=_0x5c93b5,_0x50194e[_0x5d5ecd(0x11a)]=_0x12ec40,_0x3028c0;};module[a29_0x5c6bb4(0x13c)]['browserstackAgentObservability']=modify;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a30_0x56ad(){const _0xea1338=['GaCHw','10341881zKgUfm','8161190fItjdd','5982NDsNxw','4332805hSgWHM','33388vhDhhG','../../../helpers/request-spy','225YQZwdx','214MWImlx','36kHsdLn','../../../helpers/test-observability/utils','../../../bin/utils/constants','115392WDvNZg','98dJbaRa','308886dxRAyb','restore','timeout'];a30_0x56ad=function(){return _0xea1338;};return a30_0x56ad();}const a30_0x317eb9=a30_0x5895;(function(_0x1e7709,_0x34cf2b){const _0x26df99=a30_0x5895,_0x341ec5=_0x1e7709();while(!![]){try{const _0x10ea73=-parseInt(_0x26df99(0x89))/0x1*(parseInt(_0x26df99(0x84))/0x2)+parseInt(_0x26df99(0x88))/0x3*(-parseInt(_0x26df99(0x86))/0x4)+parseInt(_0x26df99(0x85))/0x5+parseInt(_0x26df99(0x7e))/0x6*(parseInt(_0x26df99(0x7d))/0x7)+-parseInt(_0x26df99(0x7c))/0x8*(-parseInt(_0x26df99(0x8a))/0x9)+-parseInt(_0x26df99(0x83))/0xa+parseInt(_0x26df99(0x82))/0xb;if(_0x10ea73===_0x34cf2b)break;else _0x341ec5['push'](_0x341ec5['shift']());}catch(_0x2d5074){_0x341ec5['push'](_0x341ec5['shift']());}}}(a30_0x56ad,0x7aca0));function a30_0x5895(_0x467780,_0x46eb02){const _0x56adaa=a30_0x56ad();return a30_0x5895=function(_0x5895a2,_0x35a05a){_0x5895a2=_0x5895a2-0x7a;let _0x13c9ee=_0x56adaa[_0x5895a2];return _0x13c9ee;},a30_0x5895(_0x467780,_0x46eb02);}const requestSpy=require(a30_0x317eb9(0x87)),constants=require(a30_0x317eb9(0x7b)),{addRequestSpy}=require(a30_0x317eb9(0x7a));exports['mochaHooks']={'beforeAll'(){const _0x45e373=a30_0x317eb9,_0x1405ab={'GaCHw':function(_0x2bc387){return _0x2bc387();}},_0x3226be='browserstack internal helper hook';_0x1405ab[_0x45e373(0x81)](addRequestSpy);},'afterAll'(){const _0x3e37a6=a30_0x317eb9,_0x29e5e9='browserstack internal helper hook';this[_0x3e37a6(0x80)](0xea60),requestSpy[_0x3e37a6(0x7f)]();}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a31_0x32c7f3=a31_0x2966;function a31_0x17ab(){const _0xbdc60=['hook','cSAIW','UUfHU','61407hZbwxH','indexOf','Yosqv','bs:addPlatformDetails:','hook:','../../../helpers/testhub/utils','VHQcH','getPlatform','passed','HQRoI','keys','13162110UNWDhN','forEach','uuid','taiWo','xwKSM','getCapabilities','parent','../../utils/logPatcher','filter','../../../../package.json','23619AGoqfU','12918fNVUaR','split','MLVFp','jPwLT','getBrowserName','type','generic','unknown_grid','hookAnalyticsId','RNojd','browserstack','lpIDP','concat','emit','jYElS','../../../helpers/helper','LUjlq','TEST_PLATFORM','eyrBt','getHooksForTest','__cloud_provider___','pending','substring','OEvLn','792040DJzMUs','slice','qiVzT','JoUPV','BQnBP','../../../helpers/test-observability/utils','1093834bAOPFm','qIpKi','markedStatus','EkmDQ','CyrZh','state','failed','getBrowserVersion','ClZSW','488skkBtm','iThtE','getTestEnv','oYxHf','getHookSkippedTests','mapTestHooks','rTeaR','../../../helpers/test-observability/constants','map_','_beforeAll','OZXAK','string','Uqxra','fromEntries','_afterEach','_afterAll','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','JXQhn','suites','XDzRY','REYUa','LYbcJ','HHnHG','244jsBIgF','tests','js-','705cNeAol','push','toISOString','YgRGy','vXRKR','pid','4774266WtfnER'];a31_0x17ab=function(){return _0xbdc60;};return a31_0x17ab();}function a31_0x2966(_0x1a41ae,_0x11820f){const _0x17ab1c=a31_0x17ab();return a31_0x2966=function(_0x2966ee,_0x52a61b){_0x2966ee=_0x2966ee-0x1ca;let _0x43cff5=_0x17ab1c[_0x2966ee];return _0x43cff5;},a31_0x2966(_0x1a41ae,_0x11820f);}(function(_0x4285d2,_0x805063){const _0x20d8a8=a31_0x2966,_0x2b70ab=_0x4285d2();while(!![]){try{const _0x4c7fc8=-parseInt(_0x20d8a8(0x213))/0x1+-parseInt(_0x20d8a8(0x219))/0x2+-parseInt(_0x20d8a8(0x1fa))/0x3*(-parseInt(_0x20d8a8(0x1d8))/0x4)+parseInt(_0x20d8a8(0x1db))/0x5*(-parseInt(_0x20d8a8(0x1fb))/0x6)+parseInt(_0x20d8a8(0x1e1))/0x7+parseInt(_0x20d8a8(0x222))/0x8*(-parseInt(_0x20d8a8(0x1e5))/0x9)+parseInt(_0x20d8a8(0x1f0))/0xa;if(_0x4c7fc8===_0x805063)break;else _0x2b70ab['push'](_0x2b70ab['shift']());}catch(_0x4c0f9f){_0x2b70ab['push'](_0x2b70ab['shift']());}}}(a31_0x17ab,0x667b9));const {v4:uuidv4}=require(a31_0x32c7f3(0x1f2)),{name,version}=require(a31_0x32c7f3(0x1f9)),logPatcher=require(a31_0x32c7f3(0x1f7)),BSTestOpsPatcher=new logPatcher({}),{debug,isInternalHook,getObservabilityLinkedProductName}=require(a31_0x32c7f3(0x218)),{consoleHolder}=require(a31_0x32c7f3(0x229)),{getPlatformVersion}=require(a31_0x32c7f3(0x20a)),{shouldProcessEventForTesthub}=require(a31_0x32c7f3(0x1ea));console={},Object[a31_0x32c7f3(0x1ef)](consoleHolder)[a31_0x32c7f3(0x1f1)](_0x22f31f=>{console[_0x22f31f]=(..._0x33bf17)=>{BSTestOpsPatcher[_0x22f31f](..._0x33bf17);};}),exports[a31_0x32c7f3(0x224)]=()=>{const _0x3dece5=a31_0x32c7f3,_0x5ca629={'YgRGy':_0x3dece5(0x201),'eyrBt':function(_0x47b3e7){return _0x47b3e7();}};return{'ci':_0x5ca629[_0x3dece5(0x1de)],'key':_0x5ca629[_0x3dece5(0x20d)](uuidv4),'version':version,'collector':_0x3dece5(0x1da)+name};},exports['getHookDetails']=_0x4c63da=>{const _0x301584=a31_0x32c7f3,_0x37235d={};_0x37235d['jYElS']=function(_0x1b71ab,_0x36d625){return _0x1b71ab!==_0x36d625;},_0x37235d[_0x301584(0x1fe)]=_0x301584(0x1cc),_0x37235d['MLVFp']=_0x301584(0x1e9),_0x37235d[_0x301584(0x1cb)]=_0x301584(0x1e2);const _0x50542f=_0x37235d;if(!_0x4c63da||_0x50542f[_0x301584(0x209)](typeof _0x4c63da,_0x50542f[_0x301584(0x1fe)]))return[null,null];if(_0x50542f[_0x301584(0x209)](_0x4c63da[_0x301584(0x1e6)](_0x50542f[_0x301584(0x1fd)]),-0x1)){const _0x35c3ef=_0x4c63da[_0x301584(0x1fc)](_0x50542f[_0x301584(0x1fd)]);return[_0x35c3ef[0x0][_0x301584(0x214)](0x0,-0x1)[_0x301584(0x1fc)]('\x22')[0x1],_0x35c3ef[0x1][_0x301584(0x211)](0x1)];}else{if(_0x50542f[_0x301584(0x209)](_0x4c63da['indexOf'](_0x50542f['OZXAK']),-0x1)){const _0x57e6b1=_0x4c63da[_0x301584(0x1fc)](_0x50542f[_0x301584(0x1cb)]);return[_0x57e6b1[0x0][_0x301584(0x214)](0x0,-0x1)[_0x301584(0x1fc)]('\x22')[0x1],_0x4c63da];}}return[null,null];},exports[a31_0x32c7f3(0x20e)]=_0x53a0d4=>{const _0x18304b=a31_0x32c7f3,_0x161741={'xwKSM':function(_0x269ff7,_0x5693c5){return _0x269ff7(_0x5693c5);},'VHQcH':_0x18304b(0x1ca),'rTeaR':'_afterAll','vXRKR':'_beforeEach','taiWo':'_afterEach'};if(!_0x53a0d4||!_0x53a0d4[_0x18304b(0x1f6)])return[];const _0x326a9d=[];return[_0x161741[_0x18304b(0x1eb)],_0x161741[_0x18304b(0x228)],_0x161741[_0x18304b(0x1df)],_0x161741[_0x18304b(0x1f3)]][_0x18304b(0x1f1)](_0x57500d=>{const _0x21c809=_0x18304b,_0x316cd4={'HHnHG':function(_0x540484,_0x1dc224){const _0x2a15e2=a31_0x2966;return _0x161741[_0x2a15e2(0x1f4)](_0x540484,_0x1dc224);}},_0x5e9b25=_0x53a0d4[_0x21c809(0x1f6)][_0x57500d]||[];_0x5e9b25[_0x21c809(0x1f1)](_0x26badf=>{const _0x391f14=_0x21c809;_0x26badf[_0x391f14(0x203)]&&!_0x316cd4[_0x391f14(0x1d7)](isInternalHook,_0x26badf['fn'])&&_0x326a9d[_0x391f14(0x1dc)](_0x26badf['hookAnalyticsId']);});}),[..._0x326a9d,...exports[_0x18304b(0x20e)](_0x53a0d4[_0x18304b(0x1f6)])];},exports[a31_0x32c7f3(0x227)]=_0x4e9b7a=>{const _0x45b8e6=a31_0x32c7f3,_0x1ea506={'LYbcJ':function(_0x58348a){return _0x58348a();},'qiVzT':function(_0x58af19,_0x12fa05){return _0x58af19===_0x12fa05;},'HQRoI':_0x45b8e6(0x1cf),'oYxHf':_0x45b8e6(0x1ca),'UUfHU':_0x45b8e6(0x1d0),'Yosqv':'_beforeEach'};if(!_0x4e9b7a||!_0x4e9b7a[_0x45b8e6(0x1f6)])return;[_0x1ea506[_0x45b8e6(0x225)],_0x1ea506[_0x45b8e6(0x1e4)],_0x1ea506[_0x45b8e6(0x1e7)],_0x1ea506['HQRoI']][_0x45b8e6(0x1f1)](_0x409995=>{const _0x1fef10=_0x45b8e6,_0x55ed8a={'OEvLn':function(_0x3943b0){const _0x20fb15=a31_0x2966;return _0x1ea506[_0x20fb15(0x1d6)](_0x3943b0);},'CyrZh':function(_0x4dd363,_0x8f9542){const _0x1c90dc=a31_0x2966;return _0x1ea506[_0x1c90dc(0x215)](_0x4dd363,_0x8f9542);},'RNojd':_0x1ea506[_0x1fef10(0x1ee)]},_0x2e1b37=_0x4e9b7a[_0x1fef10(0x1f6)][_0x409995]||[];_0x2e1b37[_0x1fef10(0x1f1)](_0x2ebd16=>{const _0x4b7fa5=_0x1fef10;if(!_0x2ebd16[_0x4b7fa5(0x203)])_0x2ebd16[_0x4b7fa5(0x203)]=_0x55ed8a[_0x4b7fa5(0x212)](uuidv4);else _0x2ebd16[_0x4b7fa5(0x21b)]&&_0x55ed8a[_0x4b7fa5(0x21d)](_0x409995,_0x55ed8a[_0x4b7fa5(0x204)])&&(_0x2ebd16[_0x4b7fa5(0x203)]=_0x55ed8a['OEvLn'](uuidv4),delete _0x2ebd16[_0x4b7fa5(0x21b)]);});}),exports[_0x45b8e6(0x227)](_0x4e9b7a['parent']);},exports['sendPlatformDetails']=async(_0xcef1e3,_0x5b5b4a)=>{const _0x282761=a31_0x32c7f3,_0x197022={'lpIDP':function(_0x24af90){return _0x24af90();},'ClZSW':function(_0x128d82,_0x383676){return _0x128d82(_0x383676);},'JoUPV':function(_0x159c53,_0x4a34d6){return _0x159c53(_0x4a34d6);},'REYUa':function(_0x5c8f2b,_0x986566){return _0x5c8f2b===_0x986566;},'GqVAo':_0x282761(0x205),'qIpKi':_0x282761(0x202),'XDzRY':_0x282761(0x20c),'cSAIW':function(_0x1d8cce,_0x2047db){return _0x1d8cce(_0x2047db);}};try{if(!_0x197022[_0x282761(0x206)](shouldProcessEventForTesthub))return;const _0x4153a9=await _0xcef1e3['getCapabilities'](),_0x1b0b94=await _0xcef1e3['getSession'](),_0x278745={},_0x1f1210=Object[_0x282761(0x1ce)](_0x1b0b94[_0x282761(0x1f5)]()[_0x282761(0x22a)]),_0x5009c8={'product':_0x197022[_0x282761(0x221)](getObservabilityLinkedProductName,_0x1f1210),'capabilities':_0x1f1210,'platform':_0x4153a9[_0x282761(0x1ec)](),'platform_version':_0x197022[_0x282761(0x216)](getPlatformVersion,_0x197022[_0x282761(0x1d5)](global['__cloud_provider___'],_0x197022['GqVAo'])),'browser':_0x4153a9[_0x282761(0x1ff)](),'browser_version':_0x4153a9[_0x282761(0x220)](),'session_id':_0x1b0b94['toJSON']()};global['__cloud_provider___']?_0x278745[global[_0x282761(0x20f)]]=_0x5009c8:_0x278745[_0x197022[_0x282761(0x21a)]]=_0x5009c8,process[_0x282761(0x208)](_0x282761(0x1e8)+process[_0x282761(0x1e0)],{'timestamp':new Date()[_0x282761(0x1dd)](),'level':null,'message':null,'kind':_0x197022[_0x282761(0x1d4)],'http_response':_0x278745,'uuid':_0x5b5b4a});}catch(_0x441bd5){_0x197022[_0x282761(0x1e3)](debug,_0x282761(0x1d1)+_0x441bd5);}},exports[a31_0x32c7f3(0x226)]=_0x472b55=>{const _0x36916c=a31_0x32c7f3,_0x333e42={};_0x333e42[_0x36916c(0x1d2)]=function(_0x3622e,_0x2eb84f){return _0x3622e!==_0x2eb84f;},_0x333e42[_0x36916c(0x217)]=_0x36916c(0x1e2),_0x333e42[_0x36916c(0x21c)]=function(_0x2a17b8,_0x442cef){return _0x2a17b8!==_0x442cef;},_0x333e42[_0x36916c(0x1cd)]=_0x36916c(0x1ed),_0x333e42['LUjlq']=function(_0x50f6bc,_0x4d984f){return _0x50f6bc!==_0x4d984f;},_0x333e42[_0x36916c(0x223)]=_0x36916c(0x21f);const _0x193537=_0x333e42,_0x486278=_0x472b55[_0x36916c(0x1d3)]['reduce']((_0x2ac06d,_0x46f478)=>{const _0x4b2710=exports['getHookSkippedTests'](_0x46f478);return _0x4b2710&&(_0x2ac06d=_0x2ac06d['concat'](_0x4b2710)),_0x2ac06d;},[]),_0x5464ee=_0x472b55[_0x36916c(0x1d9)][_0x36916c(0x1f8)](_0x169e22=>{const _0x4200d0=_0x36916c,_0xd84673=_0x193537[_0x4200d0(0x1d2)](_0x169e22[_0x4200d0(0x200)],_0x193537[_0x4200d0(0x217)])&&!_0x169e22[_0x4200d0(0x21b)]&&_0x193537['EkmDQ'](_0x169e22[_0x4200d0(0x21e)],_0x193537['Uqxra'])&&_0x193537[_0x4200d0(0x20b)](_0x169e22[_0x4200d0(0x21e)],_0x193537[_0x4200d0(0x223)])&&!_0x169e22[_0x4200d0(0x210)];return _0xd84673;});return _0x5464ee[_0x36916c(0x207)](_0x486278);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a32_0x24e1(_0x2e0bce,_0x33c57f){const _0x3589f9=a32_0x3589();return a32_0x24e1=function(_0x24e120,_0x431d09){_0x24e120=_0x24e120-0xe1;let _0x3da30a=_0x3589f9[_0x24e120];return _0x3da30a;},a32_0x24e1(_0x2e0bce,_0x33c57f);}const a32_0x3c3521=a32_0x24e1;(function(_0x24d8fe,_0x3a633f){const _0x3c00e8=a32_0x24e1,_0x29362f=_0x24d8fe();while(!![]){try{const _0x551a1e=parseInt(_0x3c00e8(0x107))/0x1+-parseInt(_0x3c00e8(0x10c))/0x2+parseInt(_0x3c00e8(0x128))/0x3+parseInt(_0x3c00e8(0x135))/0x4*(parseInt(_0x3c00e8(0x137))/0x5)+parseInt(_0x3c00e8(0x152))/0x6*(parseInt(_0x3c00e8(0xf1))/0x7)+-parseInt(_0x3c00e8(0x138))/0x8*(-parseInt(_0x3c00e8(0xe4))/0x9)+-parseInt(_0x3c00e8(0xfd))/0xa;if(_0x551a1e===_0x3a633f)break;else _0x29362f['push'](_0x29362f['shift']());}catch(_0x4851bc){_0x29362f['push'](_0x29362f['shift']());}}}(a32_0x3589,0x656c4));const util=require('util'),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a32_0x3c3521(0x105)),{percyAutoCapture}=require('../../helpers/percy/utils'),{sendPlatformDetails}=require(a32_0x3c3521(0x150)),{isBrowserstackInfra,markSessionStatus}=require('../../helpers/helper'),PerformanceTester=require(a32_0x3c3521(0x110)),scripts=require(a32_0x3c3521(0x120)),globals=require(a32_0x3c3521(0x130)),logger=require(a32_0x3c3521(0xed))[a32_0x3c3521(0xf2)],{shouldProcessEventForTesthub}=require(a32_0x3c3521(0x10d)),testHubConstants=require(a32_0x3c3521(0x13d));function a32_0x3589(){const _0x3f5be1=['passed','10476010ayhtrN','ZVKaU','appium:app','executeScript','UWwVn','IJngt','performScan','then','../../helpers/accessibility-automation/helper','error','771005lFFbaA','mochaHooks','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','ENV_VAR','__sessionFailed','1243002pytlbD','../../helpers/testhub/utils','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','thBuildUuid','../../helpers/performance-tester','LAuGQ','imFvn','jyoNI','getGlobal','iPLEj','TddFM','titlePath','http:','timeout','__skipSessionName','fOMuC','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','LkxEv','debug','aIOGQ','../../helpers/accessibility-automation/scripts','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','shouldScanTestForAccessibility','executeAsyncScript','testAnalyticsId','info','ntUet','CYBEo','116187oEFTOM','xXxpT','getCurrentUrl','percy','shift','qgHgs','session_','qtKpQ','../../helpers/globals','thTestRunUuid','initQuit','isArray','QMTIu','897628WEtcjp','Failed:\x20','15fiSFMt','1160YVmUyk','saveTestResults','err','thJwtToken','.\x20Error\x20:','../../helpers/testhub/constants','LrdZK','fEDSa','length','TaJaO','bHusw','quitCount_','message','failed','IKPvo','\x20-\x20','currentTest','\x20|\x20','ejecb','myUak','protocol','browserstackSessionName','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','env','./test-observability/mochaUtils','sessionNameSet__','2619390oIEQmI','MTNWJ','gcnGd','eIicq','vORVj','Performing\x20scan\x20before\x20saving\x20results','__error_messages__','BROWSERSTACK_TESTHUB_JWT','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','ZpcHM','app','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','isAccessibilityPlatform','10242LdpIDp','join','state','QhyGj','XBJxV','\x22}}','capabilities','ObservabilitySync:','bstackA11yShouldScan','../../helpers/logger','driverCleanup','__drivers','accessibilityScanStarted','7xBomzf','winstonLogger','IMoKb','stringify','https:','mTeEF','format','BROWSERSTACK_TESTHUB_UUID','Passed','XPTTt',',\x22level\x22:\x20\x22'];a32_0x3589=function(){return _0x3f5be1;};return a32_0x3589();}exports[a32_0x3c3521(0x108)]={'beforeAll'(){const _0x59777d=a32_0x3c3521,_0x106792={'xXxpT':function(_0x513df4,_0x42fcec,_0x2e38a8,_0x3e705c){return _0x513df4(_0x42fcec,_0x2e38a8,_0x3e705c);},'iPLEj':_0x59777d(0x145),'ntUet':_0x59777d(0x149),'XPTTt':function(_0x464a0c,_0x1ac6f4,_0x2cd0b4){return _0x464a0c(_0x1ac6f4,_0x2cd0b4);},'XBJxV':_0x59777d(0xfc),'MTNWJ':function(_0x3a29b4){return _0x3a29b4();}};PerformanceTester['startMonitoring']();const _0x307c9f='browserstack internal helper hook';global['__error_messages__']=[],global[_0x59777d(0x10b)]=![],global[_0x59777d(0xee)]=async()=>{const _0x5ee8fd=_0x59777d;let _0x27a740=![];try{await global[_0x5ee8fd(0xef)][0x0][_0x5ee8fd(0x12e)],_0x27a740=!![],global[_0x5ee8fd(0x10b)]?await _0x106792[_0x5ee8fd(0x129)](markSessionStatus,global[_0x5ee8fd(0xef)][0x0],_0x106792[_0x5ee8fd(0x115)],global[_0x5ee8fd(0x158)]['join'](_0x106792[_0x5ee8fd(0x126)])):await _0x106792[_0x5ee8fd(0xfa)](markSessionStatus,global['__drivers'][0x0],_0x106792[_0x5ee8fd(0xe8)]);}catch(_0x4ac0b6){}global[_0x5ee8fd(0x158)]=[],global[_0x5ee8fd(0x10b)]=![];if(_0x27a740)try{try{_0x106792[_0x5ee8fd(0x153)](shouldProcessEventForTesthub)&&(global['__drivers'][0x0]&&await _0x106792['XPTTt'](sendPlatformDetails,global[_0x5ee8fd(0xef)][0x0],this[_0x5ee8fd(0x148)]?this[_0x5ee8fd(0x148)][_0x5ee8fd(0x124)]:null));}catch{}await global[_0x5ee8fd(0xef)][0x0][_0x5ee8fd(0x132)]();}catch(_0x129dae){}};},'beforeEach'(_0x108e3f){const _0x5aa64b=a32_0x3c3521,_0x7226e4={'UWwVn':function(_0x5ea0c4,_0xf61cd3){return _0x5ea0c4>_0xf61cd3;},'fOMuC':_0x5aa64b(0x147),'XopCP':function(_0xcb77c7,_0x3ea204,_0x4f89e8){return _0xcb77c7(_0x3ea204,_0x4f89e8);},'vORVj':_0x5aa64b(0xec),'PjHiz':function(_0x5777bc){return _0x5777bc();},'myUak':_0x5aa64b(0xe3),'ZpcHM':function(_0xff817c,_0x599b40){return _0xff817c===_0x599b40;},'NgjSE':_0x5aa64b(0x118),'ejecb':_0x5aa64b(0xf5),'bIKZg':_0x5aa64b(0x14e),'imFvn':'Automate\x20test\x20case\x20execution\x20has\x20started.'};new Promise(async _0x24244a=>{const _0x2a8055=_0x5aa64b,_0x4f1875='browserstack internal helper hook';let _0x469fcd=!![];try{_0x7226e4[_0x2a8055(0x101)](global[_0x2a8055(0xef)][_0x2a8055(0x140)],0x1)&&(await global['driverCleanup'](),global[_0x2a8055(0xef)][_0x2a8055(0x12c)]()),_0x7226e4[_0x2a8055(0x101)](global[_0x2a8055(0xef)][0x0][_0x2a8055(0x143)],0x0)&&(_0x469fcd=![],await global[_0x2a8055(0xee)]());}catch{}try{Array[_0x2a8055(0x133)](global['__drivers'])&&global[_0x2a8055(0xef)][0x0]&&(global['__drivers'][0x0][_0x2a8055(0x14d)]=this[_0x2a8055(0x148)][_0x2a8055(0x117)]()[_0x2a8055(0xe5)](_0x7226e4[_0x2a8055(0x11b)])),global[_0x2a8055(0x14d)]=this[_0x2a8055(0x148)][_0x2a8055(0x117)]()[_0x2a8055(0xe5)](_0x7226e4['fOMuC']);}catch(_0x10285f){logger['debug']('Failed\x20to\x20store\x20session\x20name:\x20'+_0x10285f);}this['currentTest'][_0x2a8055(0x122)]=_0x7226e4['XopCP'](shouldScanTestForAccessibility,this[_0x2a8055(0x148)]['titlePath'](),!![]),globals['setGlobal'](_0x7226e4[_0x2a8055(0x156)],this['currentTest']['shouldScanTestForAccessibility']),this['currentTest'][_0x2a8055(0xf0)]=!![];if(_0x7226e4['PjHiz'](isAccessibilityAutomationSession)&&_0x469fcd&&Array['isArray'](global[_0x2a8055(0xef)])&&_0x7226e4[_0x2a8055(0x101)](global[_0x2a8055(0xef)]['length'],0x0)&&globals['getGlobal'](_0x7226e4[_0x2a8055(0x14b)]))try{const _0x46d4d6=await global[_0x2a8055(0xef)][0x0][_0x2a8055(0x12e)];if(_0x46d4d6){let _0x472d63=!![];const _0x2e4c4e=await global['__drivers'][0x0][_0x2a8055(0x12a)]();let _0x2039df;try{_0x2039df=new URL(_0x2e4c4e);}catch(_0x691724){_0x472d63=![];}_0x472d63=_0x7226e4[_0x2a8055(0x15b)](_0x2039df[_0x2a8055(0x14c)],_0x7226e4['NgjSE'])||_0x7226e4[_0x2a8055(0x15b)](_0x2039df['protocol'],_0x7226e4[_0x2a8055(0x14a)]),_0x472d63&&(this[_0x2a8055(0x148)][_0x2a8055(0x122)]&&logger[_0x2a8055(0x125)](_0x7226e4['bIKZg'])),this[_0x2a8055(0x148)][_0x2a8055(0xf0)]=this[_0x2a8055(0x148)][_0x2a8055(0x122)],this[_0x2a8055(0x148)][_0x2a8055(0x122)]&&logger['info'](_0x7226e4[_0x2a8055(0x112)]);}}catch(_0x2dc19c){logger[_0x2a8055(0x106)](_0x2a8055(0x109)+util[_0x2a8055(0xf7)](_0x2dc19c));}_0x7226e4['PjHiz'](_0x24244a);})['then'](_0x108e3f);},'afterEach'(_0x1680b0){const _0xbad8b7=a32_0x3c3521,_0x3439a8={'reOzr':function(_0x5cf6e9,_0x3080df){return _0x5cf6e9>_0x3080df;},'LAuGQ':function(_0x171cf8,_0xd327dd){return _0x171cf8===_0xd327dd;},'lJciS':'testcase','eIicq':function(_0x248a16,_0xf1d7c7){return _0x248a16>_0xf1d7c7;},'CYBEo':_0xbad8b7(0xff),'jyoNI':function(_0x3b1bc2,_0x39c2d1,_0x29ef29,_0x1282f9){return _0x3b1bc2(_0x39c2d1,_0x29ef29,_0x1282f9);},'TaJaO':_0xbad8b7(0x147),'IKPvo':function(_0xd40e4d,_0x344cb9){return _0xd40e4d!==_0x344cb9;},'aIOGQ':'passed','bHusw':function(_0x350080,_0x497af5,_0x389ebb){return _0x350080(_0x497af5,_0x389ebb);},'qgHgs':function(_0x3aec35,_0x5aa1ab){return _0x3aec35+_0x5aa1ab;},'PTovD':_0xbad8b7(0x136),'QhyGj':'error','IMoKb':_0xbad8b7(0xf9),'ZVKaU':_0xbad8b7(0x125),'qtKpQ':_0xbad8b7(0xe3),'QMTIu':'bstackA11yShouldScan','WXrhc':_0xbad8b7(0x121),'gcnGd':_0xbad8b7(0x157),'LrdZK':'Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','LkxEv':function(_0x55616d){return _0x55616d();},'IJngt':function(_0x4e0c9e,_0x424585,_0x10cb94){return _0x4e0c9e(_0x424585,_0x10cb94);},'fEDSa':_0xbad8b7(0x11e),'TddFM':function(_0x4ed30c,_0x12f10c){return _0x4ed30c>_0x12f10c;},'mTeEF':function(_0x3dbeb6){return _0x3dbeb6();}},_0x405221='browserstack internal helper hook';this[_0xbad8b7(0x119)](0xfde8);const _0x574da7=async(_0x37457f,_0x12d8e9)=>{const _0xf4b48d=_0xbad8b7;await global['__drivers'][0x0][_0xf4b48d(0x100)](_0xf4b48d(0x11c)+_0x37457f+_0xf4b48d(0xfb)+_0x12d8e9+_0xf4b48d(0xe9));};new Promise(async _0x391bb1=>{const _0x447ca3=_0xbad8b7;try{_0x3439a8['reOzr'](global[_0x447ca3(0xef)]['length'],0x1)&&(await global[_0x447ca3(0xee)](),global['__drivers'][_0x447ca3(0x12c)](),global[_0x447ca3(0x158)]=[],global['__sessionFailed']=![]);try{if(global[_0x447ca3(0x12b)]&&_0x3439a8[_0x447ca3(0x111)](global['percyCaptureMode'],_0x3439a8['lJciS'])&&global[_0x447ca3(0xef)][0x0]){const _0x322d46=_0x3439a8[_0x447ca3(0x155)](global[_0x447ca3(0xea)]['length'],0x0)?!!global[_0x447ca3(0xea)][0x0]['app']||!!global[_0x447ca3(0xea)][0x0][_0x3439a8[_0x447ca3(0x127)]]:![],_0xdb5304={};_0xdb5304[_0x447ca3(0xe1)]=_0x322d46,await _0x3439a8[_0x447ca3(0x113)](percyAutoCapture,global[_0x447ca3(0xef)][0x0],_0x3439a8['lJciS'],_0xdb5304);}}catch(_0x21a92f){}!global[_0x447ca3(0x11a)]&&(await global[_0x447ca3(0xef)][0x0][_0x447ca3(0x100)](_0x447ca3(0x10e)+JSON[_0x447ca3(0xf4)](this[_0x447ca3(0x148)][_0x447ca3(0x117)]()[_0x447ca3(0xe5)](_0x3439a8[_0x447ca3(0x141)]))+'}}'),global[_0x447ca3(0xef)][0x0][_0x447ca3(0x151)]=!![]);const _0x359d10=_0x3439a8[_0x447ca3(0x146)](this['currentTest'][_0x447ca3(0xe6)],_0x3439a8[_0x447ca3(0x11f)]);_0x359d10?(global[_0x447ca3(0x10b)]=!![],global[_0x447ca3(0x158)]['push'](this[_0x447ca3(0x148)][_0x447ca3(0x13a)]['message']),await _0x3439a8[_0x447ca3(0x142)](_0x574da7,JSON['stringify'](_0x3439a8[_0x447ca3(0x12d)](_0x3439a8['PTovD'],this[_0x447ca3(0x148)][_0x447ca3(0x13a)][_0x447ca3(0x144)])),_0x3439a8[_0x447ca3(0xe7)])):await _0x3439a8[_0x447ca3(0x142)](_0x574da7,JSON[_0x447ca3(0xf4)](_0x3439a8[_0x447ca3(0xf3)]),_0x3439a8[_0x447ca3(0xfe)]);}catch(_0x3f195b){}try{if(this[_0x447ca3(0x148)][_0x447ca3(0xf0)]&&globals[_0x447ca3(0x114)](_0x3439a8[_0x447ca3(0x12f)])&&globals[_0x447ca3(0x114)](_0x3439a8[_0x447ca3(0x134)])){logger[_0x447ca3(0x125)](_0x3439a8['WXrhc']);const _0x42486a={};_0x42486a[_0x447ca3(0x131)]=this['currentTest'][_0x447ca3(0x124)],_0x42486a[_0x447ca3(0x10f)]=process[_0x447ca3(0x14f)][testHubConstants[_0x447ca3(0x10a)][_0x447ca3(0xf8)]],_0x42486a[_0x447ca3(0x13b)]=process[_0x447ca3(0x14f)][testHubConstants[_0x447ca3(0x10a)][_0x447ca3(0x159)]];const _0x18c8d2=_0x42486a;logger[_0x447ca3(0x11e)](_0x447ca3(0xe2)+JSON[_0x447ca3(0xf4)](_0x18c8d2)),logger['debug'](_0x3439a8[_0x447ca3(0x154)]),logger['debug'](util[_0x447ca3(0xf7)](await global[_0x447ca3(0xef)][0x0][_0x447ca3(0x123)](scripts[_0x447ca3(0x103)],{'method':global['browserstackSessionName']}))),await global['__drivers'][0x0][_0x447ca3(0x123)](scripts[_0x447ca3(0x139)],_0x18c8d2),logger[_0x447ca3(0x125)](_0x3439a8[_0x447ca3(0x13e)]);}}catch(_0x9f20dd){logger[_0x447ca3(0x106)](_0x447ca3(0x15a)+this[_0x447ca3(0x148)][_0x447ca3(0x117)]()+_0x447ca3(0x13c),_0x9f20dd);}try{try{if(_0x3439a8[_0x447ca3(0x11d)](shouldProcessEventForTesthub)){global['__drivers'][0x0]&&await _0x3439a8['bHusw'](sendPlatformDetails,global[_0x447ca3(0xef)][0x0],this[_0x447ca3(0x148)]?this['currentTest']['testAnalyticsId']:null);if(_0x3439a8['LkxEv'](isBrowserstackInfra)){const _0x5299b9=_0x447ca3(0xeb)+Date['now']();await _0x3439a8[_0x447ca3(0x102)](_0x574da7,JSON[_0x447ca3(0xf4)](_0x5299b9),_0x3439a8[_0x447ca3(0x13f)]);}}}catch{}_0x3439a8[_0x447ca3(0x116)](global[_0x447ca3(0xef)][0x0][_0x447ca3(0x143)],0x0)&&await global[_0x447ca3(0xee)]();}catch(_0x24e6cc){}_0x3439a8[_0x447ca3(0xf6)](_0x391bb1);})[_0xbad8b7(0x104)](()=>_0x1680b0());},'afterAll'(_0x52a3e3){const _0x1fc594=a32_0x3c3521,_0x3f0145={'XChuZ':function(_0x38e0d8){return _0x38e0d8();}},_0x34fb43='browserstack internal helper hook';this[_0x1fc594(0x119)](0xfde8),new Promise(async _0x31e0a2=>{PerformanceTester['stopMonitoring'](),await global['driverCleanup'](),_0x3f0145['XChuZ'](_0x31e0a2);})[_0x1fc594(0x104)](()=>_0x52a3e3());}};
|
|
1
|
+
const a32_0x7f0119=a32_0x535f;(function(_0x3c2725,_0x10be01){const _0x44cd12=a32_0x535f,_0x5777dc=_0x3c2725();while(!![]){try{const _0x36bb9d=parseInt(_0x44cd12(0x166))/0x1+parseInt(_0x44cd12(0x16f))/0x2+parseInt(_0x44cd12(0x1a2))/0x3+-parseInt(_0x44cd12(0x1b8))/0x4*(parseInt(_0x44cd12(0x178))/0x5)+parseInt(_0x44cd12(0x155))/0x6*(-parseInt(_0x44cd12(0x16b))/0x7)+-parseInt(_0x44cd12(0x1b5))/0x8*(parseInt(_0x44cd12(0x18d))/0x9)+parseInt(_0x44cd12(0x180))/0xa*(parseInt(_0x44cd12(0x1c6))/0xb);if(_0x36bb9d===_0x10be01)break;else _0x5777dc['push'](_0x5777dc['shift']());}catch(_0x549549){_0x5777dc['push'](_0x5777dc['shift']());}}}(a32_0x5b96,0x3b701));function a32_0x5b96(){const _0x160b88=['browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','./test-observability/mochaUtils','185600azoPzB','getGlobal','thBuildUuid','protocol','bstackA11yShouldScan','49CHreWM','startMonitoring','mochaHooks','wvmzl','463184oepaib','info','dfNTK','XZUAC','passed','state','HcXfb','thTestRunUuid','stopMonitoring','14085tdHGhq','\x20-\x20','Hvowd','Automate\x20test\x20case\x20execution\x20has\x20started.','isAccessibilityPlatform','hcSyl','../../helpers/performance-tester','jVoXH','126250vlTGdQ','appium:app','accessibilityScanStarted','../../helpers/testhub/utils','quitCount_','titlePath','initQuit','err','EurcT','Passed','performScan','\x20|\x20','__drivers','99crFVkW','bIGjn','nYiHR','session_','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','../../helpers/helper','stringify','dElpz','mxoAW','../../helpers/globals','message','push','testcase','JhBTF','driverCleanup','BROWSERSTACK_TESTHUB_UUID','Failed:\x20','__error_messages__','percy','uqtVn','ABWkI','1140126CDjkBK','dFcPp','browserstackSessionName','Peypk','bVomh','GrDmR','EtxMQ','.\x20Error\x20:','http:','BUUSI','shouldScanTestForAccessibility','__sessionFailed','env','timeout','Failed\x20to\x20store\x20session\x20name:\x20','app','CFKdq','wZmRk','PLErx','317880LdxVDv','mhZqD','../../helpers/percy/utils','4ygcJkJ','failed','capabilities','ygGVI','then','__skipSessionName','winstonLogger','length','executeScript','shift','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','dGyGX','sWyYr','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','22rKqesY','now','isArray','executeAsyncScript','currentTest','BorBo','MZGgc','join','saveTestResults','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','\x22}}','hbgJJ','119250xPuWfT','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','ENV_VAR','error','format','TDjKB','QyvgH','thJwtToken','../../helpers/logger','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','../../helpers/testhub/constants','Brehx','https:','Performing\x20scan\x20before\x20saving\x20results','debug'];a32_0x5b96=function(){return _0x160b88;};return a32_0x5b96();}function a32_0x535f(_0x127292,_0x686a8c){const _0x5b964b=a32_0x5b96();return a32_0x535f=function(_0x535f6c,_0x4dedf1){_0x535f6c=_0x535f6c-0x151;let _0x294094=_0x5b964b[_0x535f6c];return _0x294094;},a32_0x535f(_0x127292,_0x686a8c);}const util=require('util'),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require('../../helpers/accessibility-automation/helper'),{percyAutoCapture}=require(a32_0x7f0119(0x1b7)),{sendPlatformDetails}=require(a32_0x7f0119(0x165)),{isBrowserstackInfra,markSessionStatus}=require(a32_0x7f0119(0x192)),PerformanceTester=require(a32_0x7f0119(0x17e)),scripts=require('../../helpers/accessibility-automation/scripts'),globals=require(a32_0x7f0119(0x196)),logger=require(a32_0x7f0119(0x15d))[a32_0x7f0119(0x1be)],{shouldProcessEventForTesthub}=require(a32_0x7f0119(0x183)),testHubConstants=require(a32_0x7f0119(0x15f));exports[a32_0x7f0119(0x16d)]={'beforeAll'(){const _0x10fc6a=a32_0x7f0119,_0x2ca0e6={'BorBo':function(_0x15ce47,_0x3bd0a6,_0xd3b494,_0x1d7128){return _0x15ce47(_0x3bd0a6,_0xd3b494,_0x1d7128);},'EtxMQ':_0x10fc6a(0x1b9),'wZmRk':_0x10fc6a(0x18b),'XZUAC':function(_0x2a758b,_0x24bff0,_0x38a938){return _0x2a758b(_0x24bff0,_0x38a938);},'ygGVI':_0x10fc6a(0x173),'TDjKB':function(_0x4ba1e4){return _0x4ba1e4();}};PerformanceTester[_0x10fc6a(0x16c)]();const _0x17820b='browserstack internal helper hook';global[_0x10fc6a(0x19e)]=[],global[_0x10fc6a(0x1ad)]=![],global[_0x10fc6a(0x19b)]=async()=>{const _0x15b71b=_0x10fc6a;let _0x3b705a=![];try{await global['__drivers'][0x0][_0x15b71b(0x190)],_0x3b705a=!![],global[_0x15b71b(0x1ad)]?await _0x2ca0e6[_0x15b71b(0x1cb)](markSessionStatus,global['__drivers'][0x0],_0x2ca0e6[_0x15b71b(0x1a8)],global['__error_messages__'][_0x15b71b(0x1cd)](_0x2ca0e6[_0x15b71b(0x1b3)])):await _0x2ca0e6['XZUAC'](markSessionStatus,global[_0x15b71b(0x18c)][0x0],_0x2ca0e6[_0x15b71b(0x1bb)]);}catch(_0xdc9db){}global[_0x15b71b(0x19e)]=[],global[_0x15b71b(0x1ad)]=![];if(_0x3b705a)try{try{_0x2ca0e6[_0x15b71b(0x15a)](shouldProcessEventForTesthub)&&(global[_0x15b71b(0x18c)][0x0]&&await _0x2ca0e6[_0x15b71b(0x172)](sendPlatformDetails,global['__drivers'][0x0],this[_0x15b71b(0x1ca)]?this[_0x15b71b(0x1ca)]['testAnalyticsId']:null));}catch{}await global[_0x15b71b(0x18c)][0x0][_0x15b71b(0x186)]();}catch(_0x2fef60){}};},'beforeEach'(_0x51ee8e){const _0x286c54=a32_0x7f0119,_0x3fb0e8={'hcSyl':function(_0x2a8dc5,_0x2cd45b){return _0x2a8dc5>_0x2cd45b;},'Hvowd':_0x286c54(0x179),'BUUSI':function(_0x2bfb3b,_0x497563,_0x2a1229){return _0x2bfb3b(_0x497563,_0x2a1229);},'zWJZw':_0x286c54(0x16a),'lNCkE':function(_0x6dad00){return _0x6dad00();},'mxoAW':_0x286c54(0x17c),'dfNTK':function(_0x38506f,_0x5c8dba){return _0x38506f===_0x5c8dba;},'gmPwe':_0x286c54(0x1aa),'YxGgU':_0x286c54(0x161),'mhZqD':_0x286c54(0x15e),'CFKdq':_0x286c54(0x17b)};new Promise(async _0x3893de=>{const _0xab8c0c=_0x286c54,_0x110867='browserstack internal helper hook';let _0x3e5c31=!![];try{_0x3fb0e8[_0xab8c0c(0x17d)](global[_0xab8c0c(0x18c)][_0xab8c0c(0x1bf)],0x1)&&(await global['driverCleanup'](),global[_0xab8c0c(0x18c)][_0xab8c0c(0x1c1)]()),_0x3fb0e8[_0xab8c0c(0x17d)](global[_0xab8c0c(0x18c)][0x0][_0xab8c0c(0x184)],0x0)&&(_0x3e5c31=![],await global[_0xab8c0c(0x19b)]());}catch{}try{Array['isArray'](global[_0xab8c0c(0x18c)])&&global[_0xab8c0c(0x18c)][0x0]&&(global[_0xab8c0c(0x18c)][0x0]['browserstackSessionName']=this[_0xab8c0c(0x1ca)][_0xab8c0c(0x185)]()[_0xab8c0c(0x1cd)](_0x3fb0e8[_0xab8c0c(0x17a)])),global[_0xab8c0c(0x1a4)]=this[_0xab8c0c(0x1ca)][_0xab8c0c(0x185)]()[_0xab8c0c(0x1cd)](_0x3fb0e8[_0xab8c0c(0x17a)]);}catch(_0x37d0b3){logger[_0xab8c0c(0x163)](_0xab8c0c(0x1b0)+_0x37d0b3);}this[_0xab8c0c(0x1ca)][_0xab8c0c(0x1ac)]=_0x3fb0e8[_0xab8c0c(0x1ab)](shouldScanTestForAccessibility,this[_0xab8c0c(0x1ca)]['titlePath'](),!![]),globals['setGlobal'](_0x3fb0e8['zWJZw'],this[_0xab8c0c(0x1ca)][_0xab8c0c(0x1ac)]),this[_0xab8c0c(0x1ca)]['accessibilityScanStarted']=!![];if(_0x3fb0e8['lNCkE'](isAccessibilityAutomationSession)&&_0x3e5c31&&Array[_0xab8c0c(0x1c8)](global[_0xab8c0c(0x18c)])&&_0x3fb0e8[_0xab8c0c(0x17d)](global[_0xab8c0c(0x18c)][_0xab8c0c(0x1bf)],0x0)&&globals[_0xab8c0c(0x167)](_0x3fb0e8[_0xab8c0c(0x195)]))try{const _0x13d9d7=await global['__drivers'][0x0][_0xab8c0c(0x190)];if(_0x13d9d7){let _0x1a42cc=!![];const _0x234c4b=await global[_0xab8c0c(0x18c)][0x0]['getCurrentUrl']();let _0x142fe0;try{_0x142fe0=new URL(_0x234c4b);}catch(_0x56acd3){_0x1a42cc=![];}_0x1a42cc=_0x3fb0e8[_0xab8c0c(0x171)](_0x142fe0[_0xab8c0c(0x169)],_0x3fb0e8['gmPwe'])||_0x3fb0e8[_0xab8c0c(0x171)](_0x142fe0['protocol'],_0x3fb0e8['YxGgU']),_0x1a42cc&&(this[_0xab8c0c(0x1ca)][_0xab8c0c(0x1ac)]&&logger[_0xab8c0c(0x170)](_0x3fb0e8[_0xab8c0c(0x1b6)])),this[_0xab8c0c(0x1ca)][_0xab8c0c(0x182)]=this['currentTest'][_0xab8c0c(0x1ac)],this[_0xab8c0c(0x1ca)][_0xab8c0c(0x1ac)]&&logger[_0xab8c0c(0x170)](_0x3fb0e8[_0xab8c0c(0x1b2)]);}}catch(_0x15a7f7){logger[_0xab8c0c(0x158)](_0xab8c0c(0x156)+util[_0xab8c0c(0x159)](_0x15a7f7));}_0x3fb0e8['lNCkE'](_0x3893de);})[_0x286c54(0x1bc)](_0x51ee8e);},'afterEach'(_0x544453){const _0x4ef9b7=a32_0x7f0119,_0x4e6922={'HcXfb':function(_0x1910e1,_0x45b969){return _0x1910e1>_0x45b969;},'nYiHR':function(_0x1566c8,_0xe564fa){return _0x1566c8===_0xe564fa;},'Peypk':_0x4ef9b7(0x199),'uqtVn':function(_0xa946f3,_0xed98d6){return _0xa946f3>_0xed98d6;},'Brehx':_0x4ef9b7(0x181),'dFcPp':function(_0x237081,_0x78b471,_0x2cc4d8,_0x5b1e57){return _0x237081(_0x78b471,_0x2cc4d8,_0x5b1e57);},'PLErx':_0x4ef9b7(0x179),'QyvgH':function(_0x659cd5,_0x4ce52f){return _0x659cd5!==_0x4ce52f;},'GrDmR':_0x4ef9b7(0x173),'nZYfo':function(_0x42d9b6,_0x4db9e2,_0x341d5d){return _0x42d9b6(_0x4db9e2,_0x341d5d);},'bVomh':function(_0x2fcd7b,_0x4ec53a){return _0x2fcd7b+_0x4ec53a;},'sWyYr':_0x4ef9b7(0x19d),'hcfAY':_0x4ef9b7(0x158),'wvmzl':_0x4ef9b7(0x189),'AabvT':_0x4ef9b7(0x170),'dGyGX':_0x4ef9b7(0x17c),'dElpz':_0x4ef9b7(0x16a),'jVoXH':_0x4ef9b7(0x1c5),'hbgJJ':_0x4ef9b7(0x162),'bIGjn':_0x4ef9b7(0x191),'aBmCY':function(_0x3b1426){return _0x3b1426();},'MZGgc':function(_0xe49488,_0x5a579e,_0xad70ec){return _0xe49488(_0x5a579e,_0xad70ec);},'JhBTF':function(_0x4c0d56){return _0x4c0d56();},'LYINw':function(_0x443cd7,_0x389a5f,_0xaa95e){return _0x443cd7(_0x389a5f,_0xaa95e);},'ABWkI':_0x4ef9b7(0x163)},_0x475531='browserstack internal helper hook';this[_0x4ef9b7(0x1af)](0xfde8);const _0x58f167=async(_0xc4ed34,_0x3eb4ea)=>{const _0xd6cb89=_0x4ef9b7;await global[_0xd6cb89(0x18c)][0x0][_0xd6cb89(0x1c0)]('browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:'+_0xc4ed34+',\x22level\x22:\x20\x22'+_0x3eb4ea+_0xd6cb89(0x153));};new Promise(async _0xd7c1f3=>{const _0x470cec=_0x4ef9b7;try{_0x4e6922['HcXfb'](global[_0x470cec(0x18c)][_0x470cec(0x1bf)],0x1)&&(await global[_0x470cec(0x19b)](),global[_0x470cec(0x18c)][_0x470cec(0x1c1)](),global[_0x470cec(0x19e)]=[],global[_0x470cec(0x1ad)]=![]);try{if(global[_0x470cec(0x19f)]&&_0x4e6922[_0x470cec(0x18f)](global['percyCaptureMode'],_0x4e6922[_0x470cec(0x1a5)])&&global[_0x470cec(0x18c)][0x0]){const _0x3de91e=_0x4e6922[_0x470cec(0x1a0)](global['capabilities'][_0x470cec(0x1bf)],0x0)?!!global[_0x470cec(0x1ba)][0x0][_0x470cec(0x1b1)]||!!global['capabilities'][0x0][_0x4e6922[_0x470cec(0x160)]]:![],_0x256416={};_0x256416[_0x470cec(0x1b1)]=_0x3de91e,await _0x4e6922[_0x470cec(0x1a3)](percyAutoCapture,global[_0x470cec(0x18c)][0x0],_0x4e6922[_0x470cec(0x1a5)],_0x256416);}}catch(_0x265e23){}!global[_0x470cec(0x1bd)]&&(await global[_0x470cec(0x18c)][0x0][_0x470cec(0x1c0)](_0x470cec(0x164)+JSON['stringify'](this[_0x470cec(0x1ca)][_0x470cec(0x185)]()['join'](_0x4e6922[_0x470cec(0x1b4)]))+'}}'),global['__drivers'][0x0]['sessionNameSet__']=!![]);const _0x20c5f6=_0x4e6922[_0x470cec(0x15b)](this[_0x470cec(0x1ca)][_0x470cec(0x174)],_0x4e6922[_0x470cec(0x1a7)]);_0x20c5f6?(global[_0x470cec(0x1ad)]=!![],global['__error_messages__'][_0x470cec(0x198)](this[_0x470cec(0x1ca)][_0x470cec(0x187)][_0x470cec(0x197)]),await _0x4e6922['nZYfo'](_0x58f167,JSON[_0x470cec(0x193)](_0x4e6922[_0x470cec(0x1a6)](_0x4e6922[_0x470cec(0x1c4)],this['currentTest'][_0x470cec(0x187)][_0x470cec(0x197)])),_0x4e6922['hcfAY'])):await _0x4e6922['nZYfo'](_0x58f167,JSON[_0x470cec(0x193)](_0x4e6922[_0x470cec(0x16e)]),_0x4e6922['AabvT']);}catch(_0x4de7bb){}try{if(this['currentTest']['accessibilityScanStarted']&&globals[_0x470cec(0x167)](_0x4e6922[_0x470cec(0x1c3)])&&globals['getGlobal'](_0x4e6922[_0x470cec(0x194)])){logger[_0x470cec(0x170)](_0x4e6922[_0x470cec(0x17f)]);const _0x172b8f={};_0x172b8f[_0x470cec(0x176)]=this[_0x470cec(0x1ca)]['testAnalyticsId'],_0x172b8f[_0x470cec(0x168)]=process[_0x470cec(0x1ae)][testHubConstants[_0x470cec(0x157)][_0x470cec(0x19c)]],_0x172b8f[_0x470cec(0x15c)]=process[_0x470cec(0x1ae)][testHubConstants[_0x470cec(0x157)]['BROWSERSTACK_TESTHUB_JWT']];const _0x14f1fe=_0x172b8f;logger['debug'](_0x470cec(0x152)+JSON[_0x470cec(0x193)](_0x14f1fe)),logger['debug'](_0x4e6922[_0x470cec(0x154)]),logger[_0x470cec(0x163)](util[_0x470cec(0x159)](await global[_0x470cec(0x18c)][0x0][_0x470cec(0x1c9)](scripts[_0x470cec(0x18a)],{'method':global[_0x470cec(0x1a4)]}))),await global['__drivers'][0x0][_0x470cec(0x1c9)](scripts[_0x470cec(0x151)],_0x14f1fe),logger[_0x470cec(0x170)](_0x4e6922[_0x470cec(0x18e)]);}}catch(_0x3a2e81){logger[_0x470cec(0x158)](_0x470cec(0x1c2)+this[_0x470cec(0x1ca)]['titlePath']()+_0x470cec(0x1a9),_0x3a2e81);}try{try{if(_0x4e6922['aBmCY'](shouldProcessEventForTesthub)){global[_0x470cec(0x18c)][0x0]&&await _0x4e6922[_0x470cec(0x1cc)](sendPlatformDetails,global[_0x470cec(0x18c)][0x0],this['currentTest']?this[_0x470cec(0x1ca)]['testAnalyticsId']:null);if(_0x4e6922[_0x470cec(0x19a)](isBrowserstackInfra)){const _0xe2a48a='ObservabilitySync:'+Date[_0x470cec(0x1c7)]();await _0x4e6922['LYINw'](_0x58f167,JSON[_0x470cec(0x193)](_0xe2a48a),_0x4e6922[_0x470cec(0x1a1)]);}}}catch{}_0x4e6922[_0x470cec(0x175)](global[_0x470cec(0x18c)][0x0][_0x470cec(0x184)],0x0)&&await global[_0x470cec(0x19b)]();}catch(_0x23080e){}_0x4e6922[_0x470cec(0x19a)](_0xd7c1f3);})[_0x4ef9b7(0x1bc)](()=>_0x544453());},'afterAll'(_0x603cb8){const _0x5bbe64=a32_0x7f0119,_0x3a7bd4={'EurcT':function(_0x448726){return _0x448726();}},_0x1e4432='browserstack internal helper hook';this[_0x5bbe64(0x1af)](0xfde8),new Promise(async _0x2e0d5c=>{const _0x44ade2=_0x5bbe64;PerformanceTester[_0x44ade2(0x177)](),await global[_0x44ade2(0x19b)](),_0x3a7bd4[_0x44ade2(0x188)](_0x2e0d5c);})[_0x5bbe64(0x1bc)](()=>_0x603cb8());}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';function a33_0x2642(_0x4ef530,_0x2970b5){const _0xfd7d09=a33_0xfd7d();return a33_0x2642=function(_0x26424f,_0x341eab){_0x26424f=_0x26424f-0x6f;let _0x1ebb90=_0xfd7d09[_0x26424f];return _0x1ebb90;},a33_0x2642(_0x4ef530,_0x2970b5);}const a33_0x31a796=a33_0x2642;(function(_0x309cbd,_0x57e1c2){const _0x133be3=a33_0x2642,_0x11d677=_0x309cbd();while(!![]){try{const _0x1414b0=parseInt(_0x133be3(0x9a))/0x1*(-parseInt(_0x133be3(0xaa))/0x2)+parseInt(_0x133be3(0x7a))/0x3*(parseInt(_0x133be3(0x94))/0x4)+parseInt(_0x133be3(0x85))/0x5*(-parseInt(_0x133be3(0x96))/0x6)+parseInt(_0x133be3(0x99))/0x7*(parseInt(_0x133be3(0xb3))/0x8)+parseInt(_0x133be3(0x70))/0x9+-parseInt(_0x133be3(0xa9))/0xa*(-parseInt(_0x133be3(0x93))/0xb)+-parseInt(_0x133be3(0x9f))/0xc*(-parseInt(_0x133be3(0x9e))/0xd);if(_0x1414b0===_0x57e1c2)break;else _0x11d677['push'](_0x11d677['shift']());}catch(_0x3915cf){_0x11d677['push'](_0x11d677['shift']());}}}(a33_0xfd7d,0x95da0));function a33_0xfd7d(){const _0x372a38=['winstonLogger','--env','cwd','useW3C','../../helpers/logger','splice','close','ftsTC','9396610UdhUYc','1127896UuMUgV','GxHxL','Lgiyr','path','getPlatformName','length','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','trim','mergeDeep','198168zFkZcJ','debug','start_process','existsSync','platforms','inherit','isUndefined','stringify','writeFileSync','9774027RicvWU','hub.browserstack.com','host','config','now','../../helpers/BrowserStackSetup','ukSLR','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','lzpuU','test_settings','245859AdTAGn','../../helpers/helper','platform','WLDCZ','join','env','otEXa','push','--config','fuJuU','JFpsy','2814710GdxQbs','exports','Getting\x20your\x20nightwatch\x20configs\x20from\x20','nightwatch-browserstack.json','modifyBrowserStackCaps','YWRgi','nJWEh','LDiqF','aRWRX','filter','test','DAaob','unlinkSync','modifyBrowserStackW3CCaps','11ipEfLD','20VYOaxw','fLGKy','12AoXuDh','info','webdriver','119MZfMko','2lZZGfU','findIndex','forEach','selenium','143468RnYNBA','12OsDukc','desiredCapabilities'];a33_0xfd7d=function(){return _0x372a38;};return a33_0xfd7d();}const fs=require('fs'),path=require(a33_0x31a796(0xad)),{spawn}=require('child_process'),logger=require(a33_0x31a796(0xa5))[a33_0x31a796(0xa1)],{default:BrowserStackSetup}=require(a33_0x31a796(0x75)),helper=require(a33_0x31a796(0x7b)),constants=require('../utils/constants'),getUserNightwatchConfigs=(_0x583b45,_0x578c45)=>{const _0x33a477=a33_0x31a796,_0x2c29fb={'WLDCZ':'nightwatch.conf.js','aRWRX':'nightwatch.json','nJWEh':function(_0x91ceb8,_0x5d3f40){return _0x91ceb8(_0x5d3f40);},'otEXa':_0x33a477(0xb0)};let _0x2eba76=null,_0x5b81db={};const _0x55acad=_0x578c45[_0x33a477(0x9b)](_0x1d2a14=>_0x1d2a14===_0x33a477(0x82));if(!helper[_0x33a477(0xb9)](_0x583b45[_0x33a477(0x73)])&&fs[_0x33a477(0xb6)](path[_0x33a477(0x7e)](process[_0x33a477(0xa3)](),_0x583b45[_0x33a477(0x73)])))_0x2eba76=path[_0x33a477(0x7e)](process[_0x33a477(0xa3)](),_0x583b45['config']),_0x578c45[_0x33a477(0xa6)](_0x55acad,0x2);else{if(fs[_0x33a477(0xb6)](path[_0x33a477(0x7e)](process['cwd'](),_0x2c29fb[_0x33a477(0x7d)])))_0x2eba76=path[_0x33a477(0x7e)](process[_0x33a477(0xa3)](),_0x2c29fb[_0x33a477(0x7d)]);else fs[_0x33a477(0xb6)](path[_0x33a477(0x7e)](process[_0x33a477(0xa3)](),_0x2c29fb[_0x33a477(0x8d)]))&&(_0x2eba76=path[_0x33a477(0x7e)](process[_0x33a477(0xa3)](),_0x2c29fb[_0x33a477(0x8d)]));}return _0x2eba76?(logger[_0x33a477(0x97)](_0x33a477(0x87)+_0x2eba76),_0x5b81db=_0x2c29fb[_0x33a477(0x8b)](require,_0x2eba76)):logger[_0x33a477(0x97)](_0x2c29fb[_0x33a477(0x80)]),_0x5b81db;},removeExistingEnvs=_0x1a6a4b=>{const _0x480c95=a33_0x31a796,_0x9b8a01={};_0x9b8a01[_0x480c95(0x90)]=function(_0x13db62,_0x2363a1){return _0x13db62>_0x2363a1;};const _0x3aaa73=_0x9b8a01;let _0x23f5b4=_0x1a6a4b[_0x480c95(0x9b)](_0x50b160=>_0x50b160==='--env');_0x3aaa73[_0x480c95(0x90)](_0x23f5b4,-0x1)&&_0x1a6a4b[_0x480c95(0xa6)](_0x23f5b4,0x2),_0x23f5b4=_0x1a6a4b[_0x480c95(0x9b)](_0x359ab2=>_0x359ab2==='-e'),_0x3aaa73[_0x480c95(0x90)](_0x23f5b4,-0x1)&&_0x1a6a4b[_0x480c95(0xa6)](_0x23f5b4,0x2);};function run(_0xf018ee,_0x5de62a){const _0x3ae176=a33_0x31a796,_0x24f343={'ukSLR':'nightwatch','JFpsy':function(_0x3c1de1,_0x315e65){return _0x3c1de1+_0x315e65;},'fuJuU':_0x3ae176(0x79),'LDiqF':function(_0x39ae64,_0x184ceb,_0x2ec229){return _0x39ae64(_0x184ceb,_0x2ec229);},'fJcti':_0x3ae176(0x71),'kyrYV':_0x3ae176(0x77),'iwOHM':function(_0x1309b4,_0x2a522a){return _0x1309b4===_0x2a522a;},'MMFSN':_0x3ae176(0x88),'YWRgi':function(_0x4519e1,_0x35ff0f){return _0x4519e1(_0x35ff0f);},'fLGKy':function(_0x5ba0a3,_0x1f460f,_0x6da407,_0x311850){return _0x5ba0a3(_0x1f460f,_0x6da407,_0x311850);},'Lgiyr':'nightwatch.cmd','GxHxL':_0x3ae176(0x82),'ftsTC':_0x3ae176(0xa2),'lzpuU':_0x3ae176(0xb8),'JyxGU':_0x3ae176(0xa7)},_0x500bfe=new BrowserStackSetup(_0xf018ee);if(!_0x500bfe[_0x3ae176(0x73)])return;const _0x5eb9dc=_0x24f343[_0x3ae176(0x8c)](getUserNightwatchConfigs,_0xf018ee,_0x5de62a),_0x342066={};_0x342066[_0x3ae176(0xb5)]=![];const _0x130360={};_0x130360[_0x3ae176(0x72)]=_0x24f343['fJcti'],_0x130360['port']=0x1bb;const _0x3ff6fc={};_0x3ff6fc[_0x3ae176(0x98)]=_0x342066,_0x3ff6fc[_0x3ae176(0x9d)]=_0x130360;const _0x3b751e=_0x3ff6fc;logger[_0x3ae176(0x97)](_0x24f343['kyrYV']);const _0x2c4e1d={..._0x5eb9dc},_0x3f8da1=_0x2c4e1d,_0x24e2ad=helper[_0x3ae176(0xa4)](_0x500bfe['config']),_0x175672=[];_0x500bfe[_0x3ae176(0x73)][_0x3ae176(0xb7)][_0x3ae176(0x9c)]((_0x357c60,_0x1e2728)=>{const _0xd2b1ce=_0x3ae176;_0x24e2ad?_0x175672[_0xd2b1ce(0x81)](helper[_0xd2b1ce(0x92)](_0x500bfe[_0xd2b1ce(0x73)],_0x24f343[_0xd2b1ce(0x76)],_0x1e2728)):_0x175672[_0xd2b1ce(0x81)](helper[_0xd2b1ce(0x89)](_0x500bfe[_0xd2b1ce(0x73)],_0x24f343['ukSLR'],_0x1e2728));});const _0x5423d2={},_0x5181fd=[];_0xf018ee[_0x3ae176(0x7f)]=_0xf018ee[_0x3ae176(0x7f)]||_0xf018ee['e'];const _0x5296e0=_0xf018ee[_0x3ae176(0x7f)]?_0xf018ee[_0x3ae176(0x7f)][_0x3ae176(0xb1)]()['split'](',')['map'](_0x28f34c=>_0x28f34c[_0x3ae176(0xb1)]())[_0x3ae176(0x8e)](_0x9e7fb4=>_0x9e7fb4!==''):[''];_0x24f343['iwOHM'](_0x5296e0[_0x3ae176(0xaf)],0x0)&&_0x5296e0[_0x3ae176(0x81)]('');_0x5296e0[_0x3ae176(0x9c)](_0x46846d=>{_0x175672['forEach'](_0x32be65=>{const _0x48f3ea=a33_0x2642;let _0x415f22=_0x24f343[_0x48f3ea(0x84)](helper[_0x48f3ea(0xae)](_0x32be65,'_'),'_'+Date[_0x48f3ea(0x74)]());_0x46846d&&(_0x415f22+='_'+_0x46846d);if(_0x46846d&&(!_0x5eb9dc[_0x24f343['fuJuU']]||!_0x5eb9dc[_0x24f343[_0x48f3ea(0x83)]][_0x46846d]))return;const _0x20f8ad={..._0x3b751e};_0x20f8ad[_0x48f3ea(0xa0)]=_0x32be65;const _0xd0d713=_0x20f8ad;_0x5423d2[_0x415f22]=_0x46846d?helper[_0x48f3ea(0xb2)](_0x5eb9dc[_0x24f343['fuJuU']][_0x46846d],_0xd0d713):_0xd0d713,_0x5181fd['push'](_0x415f22);});});!_0x3f8da1['test_settings']&&(_0x3f8da1['test_settings']={});_0x3f8da1[_0x3ae176(0x79)]={..._0x3f8da1['test_settings'],..._0x5423d2};const _0x508073=path['join'](__dirname,_0x24f343['MMFSN']);fs[_0x3ae176(0x6f)](_0x508073,JSON[_0x3ae176(0xba)](_0x3f8da1)),_0x24f343[_0x3ae176(0x8a)](removeExistingEnvs,_0x5de62a);const _0x14aa82=_0x24f343[_0x3ae176(0x95)](spawn,/^win/[_0x3ae176(0x8f)](process[_0x3ae176(0x7c)])?_0x24f343[_0x3ae176(0xac)]:_0x24f343[_0x3ae176(0x76)],[_0x24f343[_0x3ae176(0xab)],_0x508073,..._0x5de62a['slice'](0x1),_0x24f343[_0x3ae176(0xa8)],_0x5181fd[_0x3ae176(0x7e)](',')],{'stdio':_0x24f343[_0x3ae176(0x78)]});_0x14aa82['on'](_0x24f343['JyxGU'],async _0x112677=>{const _0x1f6157=_0x3ae176;logger[_0x1f6157(0xb4)]('child\x20process\x20exited\x20with\x20code\x20'+_0x112677),logger[_0x1f6157(0x97)]('Deleting\x20'+_0x508073),fs[_0x1f6157(0x91)](_0x508073);});}module[a33_0x31a796(0x86)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a34_0x1c3e8a=a34_0x4648;function a34_0x4648(_0x34bc91,_0xd69045){const _0x4f814e=a34_0x4f81();return a34_0x4648=function(_0x4648c3,_0x29a8a8){_0x4648c3=_0x4648c3-0xfa;let _0x53cdd4=_0x4f814e[_0x4648c3];return _0x53cdd4;},a34_0x4648(_0x34bc91,_0xd69045);}(function(_0x35c645,_0x4c7819){const _0x5b9939=a34_0x4648,_0x22eeda=_0x35c645();while(!![]){try{const _0x43379d=parseInt(_0x5b9939(0xfa))/0x1+parseInt(_0x5b9939(0x128))/0x2*(parseInt(_0x5b9939(0x102))/0x3)+parseInt(_0x5b9939(0x13b))/0x4+-parseInt(_0x5b9939(0x126))/0x5*(-parseInt(_0x5b9939(0x148))/0x6)+-parseInt(_0x5b9939(0x131))/0x7*(parseInt(_0x5b9939(0x106))/0x8)+-parseInt(_0x5b9939(0xfe))/0x9+-parseInt(_0x5b9939(0x108))/0xa*(parseInt(_0x5b9939(0x135))/0xb);if(_0x43379d===_0x4c7819)break;else _0x22eeda['push'](_0x22eeda['shift']());}catch(_0x36332b){_0x22eeda['push'](_0x22eeda['shift']());}}}(a34_0x4f81,0x1e020));function a34_0x4f81(){const _0x40e3a8=['accessibilityOptions.includeIssueType.needsReview','jrPVo','629055lwWrZV','GPFFE','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','browser_version','536799PPbShO','nHyap','project','plQLB','272JSiufq','scannerProcessingTimeout','4780TQHtnf','../../helpers/logger','constructor','lrUfW','browserstack.accessibility','qFtgH','QieWF','executeAsyncScript','winstonLogger','processAccessibilityCaps','BS_A11Y_JWT','dUPxp','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','bestPractice','rDdtH','../../helpers/accessibility-automation/scripts','name','use','wcagVersion','accessibilityOptions.scannerVersion','platformValidation','khCXt','cuFcO','yghpd','uicIG','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','../../helpers/helper','warn','YXEEV','accessibilityOptions','5eKFhdT','WebDriver','2apIDoy','getAccessibilityResults','env','EVOlk','GAKJy','bstackSdkArgs','accessibilityOptions.authToken','currentTest','browserStackEvaluate','30394LVmGKK','accessibilityPlatform','eUrKg','stringify','8107dByrdu','debug','browser','executeScript','error','connectOptions','609168nYCZJc','KrSix','fkXLS','testInfo','playwright-chromium','util','eFbMB','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','JGlAJ','No\x20accessibility\x20results\x20were\x20found.','replace','zsdnS','browserStackExecuteDriver','882606ihSaml','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','browserName','performScan','includeIssueType','vgmIK','(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','gTRqK','../../helpers/accessibility-automation/helper','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','deviceName','HtXiy','format','LlzNn','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','parse','IKDvk','zbRJc','evaluate','tMkbY','TeGIu','wsEndpoint','chrome','method','scannerVersion','USMcY','214395XJQAYx','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML'];a34_0x4f81=function(){return _0x40e3a8;};return a34_0x4f81();}const util=require(a34_0x1c3e8a(0x140)),logger=require(a34_0x1c3e8a(0x109))[a34_0x1c3e8a(0x110)],{isAccessibilityAutomationSession}=require(a34_0x1c3e8a(0x150)),{isUndefined}=require(a34_0x1c3e8a(0x122)),scripts=require(a34_0x1c3e8a(0x117));exports[a34_0x1c3e8a(0x130)]=async(_0x1ff6cd,_0x21535f,_0x5f5d24={})=>{const _0xc0be59=a34_0x1c3e8a,_0x595e77={};_0x595e77['zbRJc']=_0xc0be59(0x12d);const _0x4b5b38=_0x595e77;return await _0x1ff6cd[_0xc0be59(0x15b)](_0xc0be59(0x14e)+_0x21535f[_0xc0be59(0x145)](/arguments/g,_0x4b5b38[_0xc0be59(0x15a)])+_0xc0be59(0x151)+JSON['stringify'](_0x5f5d24)+')');},exports[a34_0x1c3e8a(0x147)]=async(_0x5d2252,_0x2a7418,_0xf926b7={})=>{const _0xa212e2=a34_0x1c3e8a,_0xc6d220={};_0xc6d220[_0xa212e2(0x12c)]=function(_0x20e001,_0x33529c){return _0x20e001===_0x33529c;},_0xc6d220[_0xa212e2(0x13d)]=_0xa212e2(0x127),_0xc6d220['nHyap']='Playwright',_0xc6d220['GPFFE']=_0xa212e2(0x12d);const _0x5b1de7=_0xc6d220;if(_0x5b1de7[_0xa212e2(0x12c)](_0x5d2252['constructor'][_0xa212e2(0x118)],_0x5b1de7[_0xa212e2(0x13d)]))return await _0x5d2252[_0xa212e2(0x10f)](_0x2a7418,_0xf926b7);else{if(_0x5b1de7['GAKJy'](_0x5d2252[_0xa212e2(0x10a)][_0xa212e2(0x118)],_0x5b1de7[_0xa212e2(0x103)]))return await _0x5d2252[_0xa212e2(0x138)]('(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'+_0x2a7418[_0xa212e2(0x145)](/arguments/g,_0x5b1de7[_0xa212e2(0xff)])+_0xa212e2(0x142)+JSON[_0xa212e2(0x134)](_0xf926b7)+')');}},exports['setAccessibilityCapabilities']=async _0xa19c26=>{const _0x395d4f=a34_0x1c3e8a,_0x59c551={};_0x59c551['eUrKg']='accessibilityOptions.wcagVersion',_0x59c551[_0x395d4f(0x120)]='accessibilityOptions.scannerProcessingTimeout',_0x59c551[_0x395d4f(0x124)]='accessibilityOptions.includeIssueType.bestPractice',_0x59c551[_0x395d4f(0x116)]=_0x395d4f(0xfc),_0x59c551[_0x395d4f(0x10d)]=_0x395d4f(0x12e),_0x59c551[_0x395d4f(0x143)]=_0x395d4f(0x11b);const _0x311e97=_0x59c551;_0xa19c26[_0x395d4f(0x125)]&&(_0xa19c26[_0x395d4f(0x125)][_0x395d4f(0x11a)]&&(_0xa19c26[_0x311e97[_0x395d4f(0x133)]]=_0xa19c26['accessibilityOptions'][_0x395d4f(0x11a)]),_0xa19c26[_0x395d4f(0x125)][_0x395d4f(0x107)]&&(_0xa19c26[_0x311e97[_0x395d4f(0x120)]]=_0xa19c26[_0x395d4f(0x125)][_0x395d4f(0x107)]),_0xa19c26[_0x395d4f(0x125)][_0x395d4f(0x14c)]&&(_0xa19c26[_0x311e97['YXEEV']]=_0xa19c26[_0x395d4f(0x125)]['includeIssueType'][_0x395d4f(0x115)],_0xa19c26[_0x311e97['rDdtH']]=_0xa19c26['accessibilityOptions']['includeIssueType']['needsReview']));const _0x1fa336=JSON[_0x395d4f(0x158)](process[_0x395d4f(0x12a)][_0x395d4f(0xfb)])[_0x395d4f(0x161)];_0xa19c26[_0x311e97[_0x395d4f(0x10d)]]=process[_0x395d4f(0x12a)][_0x395d4f(0x112)],_0xa19c26[_0x311e97[_0x395d4f(0x143)]]=_0x1fa336,delete _0xa19c26['accessibilityOptions'];},exports[a34_0x1c3e8a(0x129)]=async _0x2eb319=>{const _0x66c9f6=a34_0x1c3e8a,_0x2b3486={};_0x2b3486['ewOha']=_0x66c9f6(0x144),_0x2b3486[_0x66c9f6(0x10b)]=_0x66c9f6(0x121);const _0x3af938=_0x2b3486;if(global[_0x66c9f6(0x132)])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x2eb319,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x2eb319,scripts.getResults);return res;}catch{return logger[_0x66c9f6(0x139)](_0x3af938['ewOha']),[];}else return logger[_0x66c9f6(0x123)](_0x3af938[_0x66c9f6(0x10b)]),[];},exports[a34_0x1c3e8a(0x14b)]=async(_0x4bc5cd,_0x494301='')=>{const _0x25fb86=a34_0x1c3e8a;if(global[_0x25fb86(0x132)]){const _0x3bfee1={};return _0x3bfee1[_0x25fb86(0x160)]=_0x494301,await exports[_0x25fb86(0x130)](_0x4bc5cd,scripts[_0x25fb86(0x14b)],_0x3bfee1);}},exports['getAccessibilityResultsSummary']=async _0x1836d3=>{const _0x37937c=a34_0x1c3e8a,_0x3b5e46={};_0x3b5e46['dUPxp']='No\x20summaryResults\x20found.',_0x3b5e46[_0x37937c(0x155)]=_0x37937c(0x157);const _0x37d0bd=_0x3b5e46;if(global[_0x37937c(0x132)])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x1836d3,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x1836d3,scripts.getResultsSummary);return summaryResults;}catch{return logger[_0x37937c(0x136)](_0x37d0bd[_0x37937c(0x113)]),{};}else return logger[_0x37937c(0x123)](_0x37d0bd['LlzNn']),{};},exports[a34_0x1c3e8a(0x11c)]=async _0x569d99=>{const _0x97938d=a34_0x1c3e8a,_0x2fbc32={'LIXCO':function(_0x2ae4a7,_0x54ad03){return _0x2ae4a7!==_0x54ad03;},'BXlKM':_0x97938d(0x156),'gTRqK':function(_0x276440,_0x367001){return _0x276440===_0x367001;},'HtXiy':'chrome','USMcY':_0x97938d(0x13f),'EVOlk':_0x97938d(0x149),'tMkbY':function(_0x47de20,_0x5f35ae){return _0x47de20(_0x5f35ae);},'KrSix':function(_0x174c85,_0x1ef7ba){return _0x174c85===_0x1ef7ba;},'khCXt':'latest','zsdnS':function(_0x22abc2,_0x19aa3f){return _0x22abc2>_0x19aa3f;},'plQLB':_0x97938d(0x114)};try{if(!_0x2fbc32['LIXCO'](_0x569d99['deviceName'],''))return logger['warn'](_0x2fbc32['BXlKM']),![];const _0x5b3832=_0x569d99[_0x97938d(0x137)];if(!(_0x2fbc32[_0x97938d(0x14f)](_0x5b3832,_0x2fbc32[_0x97938d(0x153)])||_0x2fbc32['gTRqK'](_0x5b3832,_0x2fbc32[_0x97938d(0x162)])))return logger[_0x97938d(0x123)](_0x2fbc32[_0x97938d(0x12b)]),![];const _0x3280a3=_0x2fbc32[_0x97938d(0x15c)](parseInt,_0x569d99[_0x97938d(0x101)]);if(!(_0x2fbc32[_0x97938d(0x13c)](_0x3280a3,_0x2fbc32[_0x97938d(0x11d)])||_0x2fbc32[_0x97938d(0x146)](_0x3280a3,0x5e)))return logger[_0x97938d(0x123)](_0x2fbc32[_0x97938d(0x105)]),![];}catch(_0x59a4dd){logger['debug']('Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20'+util[_0x97938d(0x154)](_0x59a4dd));}return!![];},exports[a34_0x1c3e8a(0x111)]=(_0x1370e3,_0x1f544e,_0xe9b99e)=>{const _0x3cfd49=a34_0x1c3e8a,_0x462015={'yghpd':function(_0x566356){return _0x566356();},'TeGIu':_0x3cfd49(0x10c),'yVaig':function(_0x594895,_0x1a0897){return _0x594895===_0x1a0897;},'vgmIK':_0x3cfd49(0x15f),'SxOdX':_0x3cfd49(0x13f),'dGDqS':_0x3cfd49(0x149),'mZNZA':function(_0x589962,_0x181851){return _0x589962===_0x181851;},'IKDvk':'latest','JAhwU':function(_0x417228,_0x2b6881){return _0x417228>_0x2b6881;},'cuFcO':_0x3cfd49(0x114),'QieWF':function(_0x5f280d,_0x230936){return _0x5f280d(_0x230936);},'eFbMB':_0x3cfd49(0x156),'uFGYo':function(_0x52c0aa,_0x2088fc){return _0x52c0aa+_0x2088fc;},'jrPVo':function(_0x219519,_0x68a64d){return _0x219519(_0x68a64d);}};try{if(_0x462015[_0x3cfd49(0x11f)](isAccessibilityAutomationSession)){global[_0x3cfd49(0x132)]=!![];!_0x1370e3[_0x462015[_0x3cfd49(0x15d)]]&&(global[_0x3cfd49(0x132)]=![]);!(_0x462015['yVaig'](_0x1370e3['browserName'],_0x462015[_0x3cfd49(0x14d)])||_0x462015['yVaig'](_0x1370e3[_0x3cfd49(0x14a)],_0x462015['SxOdX']))&&(logger[_0x3cfd49(0x123)](_0x462015['dGDqS']),global[_0x3cfd49(0x132)]=![]);!(_0x462015['mZNZA'](_0x1370e3[_0x3cfd49(0x101)],_0x462015[_0x3cfd49(0x159)])||_0x462015['JAhwU'](_0x1370e3['browser_version'],0x5e))&&(logger[_0x3cfd49(0x123)](_0x462015[_0x3cfd49(0x11e)]),global['accessibilityPlatform']=![]);!_0x462015[_0x3cfd49(0x10e)](isUndefined,_0x1370e3[_0x3cfd49(0x152)])&&(logger[_0x3cfd49(0x123)](_0x462015[_0x3cfd49(0x141)]),global[_0x3cfd49(0x132)]=![]);if(!global[_0x3cfd49(0x132)]){_0x1370e3[_0x462015[_0x3cfd49(0x15d)]]=![];const _0x74e8ab=_0x462015['uFGYo'](_0x1f544e,_0x462015[_0x3cfd49(0xfd)](encodeURIComponent,JSON[_0x3cfd49(0x134)](_0x1370e3)));_0xe9b99e&&(_0xe9b99e[_0x3cfd49(0x12f)][_0x3cfd49(0x13e)][_0x3cfd49(0x104)]['use'][_0x3cfd49(0x13a)]['wsEndpoint']=_0x74e8ab,_0xe9b99e['workerInfo'][_0x3cfd49(0x104)][_0x3cfd49(0x119)][_0x3cfd49(0x13a)][_0x3cfd49(0x15e)]=_0x74e8ab);}}}catch(_0x7958d8){logger['debug'](_0x3cfd49(0x100)+util[_0x3cfd49(0x154)](_0x7958d8));}};
|
|
1
|
+
const a34_0x452f77=a34_0x3e1e;(function(_0x217982,_0x334f7c){const _0x13218a=a34_0x3e1e,_0x2b681a=_0x217982();while(!![]){try{const _0x164518=-parseInt(_0x13218a(0x131))/0x1*(-parseInt(_0x13218a(0x109))/0x2)+parseInt(_0x13218a(0x125))/0x3*(parseInt(_0x13218a(0x12c))/0x4)+parseInt(_0x13218a(0xf1))/0x5+parseInt(_0x13218a(0x121))/0x6+-parseInt(_0x13218a(0xe4))/0x7+parseInt(_0x13218a(0xe1))/0x8+-parseInt(_0x13218a(0xea))/0x9;if(_0x164518===_0x334f7c)break;else _0x2b681a['push'](_0x2b681a['shift']());}catch(_0x3827f3){_0x2b681a['push'](_0x2b681a['shift']());}}}(a34_0x1023,0x8bbb4));const util=require(a34_0x452f77(0x10c)),logger=require(a34_0x452f77(0x135))['winstonLogger'],{isAccessibilityAutomationSession}=require(a34_0x452f77(0x12d)),{isUndefined}=require(a34_0x452f77(0x104)),scripts=require(a34_0x452f77(0x112));function a34_0x3e1e(_0x15f6e4,_0x1ca847){const _0x102339=a34_0x1023();return a34_0x3e1e=function(_0x3e1e2f,_0x1065be){_0x3e1e2f=_0x3e1e2f-0xdb;let _0x31b75f=_0x102339[_0x3e1e2f];return _0x31b75f;},a34_0x3e1e(_0x15f6e4,_0x1ca847);}exports[a34_0x452f77(0x11f)]=async(_0x28ccac,_0x4c74e5,_0x43468a={})=>{const _0x9c44ca=a34_0x452f77,_0x352a84={};_0x352a84[_0x9c44ca(0x102)]=_0x9c44ca(0xe9);const _0x52adf2=_0x352a84;return await _0x28ccac['evaluate'](_0x9c44ca(0xe6)+_0x4c74e5[_0x9c44ca(0xec)](/arguments/g,_0x52adf2[_0x9c44ca(0x102)])+'\x0a\x20\x20\x20\x20})\x0a\x20\x20})('+JSON[_0x9c44ca(0x13a)](_0x43468a)+')');},exports['browserStackExecuteDriver']=async(_0x2c5522,_0x163fd5,_0x5cd162={})=>{const _0x41e868=a34_0x452f77,_0x55cb70={};_0x55cb70[_0x41e868(0xe5)]=function(_0x2603e3,_0x1d5542){return _0x2603e3===_0x1d5542;},_0x55cb70['sjndb']='WebDriver',_0x55cb70['raWOx']=function(_0x557a29,_0x122a5a){return _0x557a29===_0x122a5a;},_0x55cb70[_0x41e868(0x100)]=_0x41e868(0x105),_0x55cb70[_0x41e868(0x12f)]='bstackSdkArgs';const _0x51f958=_0x55cb70;if(_0x51f958[_0x41e868(0xe5)](_0x2c5522['constructor']['name'],_0x51f958[_0x41e868(0x115)]))return await _0x2c5522[_0x41e868(0x108)](_0x163fd5,_0x5cd162);else{if(_0x51f958['raWOx'](_0x2c5522['constructor'][_0x41e868(0xed)],_0x51f958[_0x41e868(0x100)]))return await _0x2c5522['executeScript'](_0x41e868(0xfd)+_0x163fd5['replace'](/arguments/g,_0x51f958[_0x41e868(0x12f)])+'\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})('+JSON[_0x41e868(0x13a)](_0x5cd162)+')');}},exports[a34_0x452f77(0xef)]=async _0x1f68fd=>{const _0x1ac626=a34_0x452f77,_0x386786={};_0x386786['MIOIZ']=_0x1ac626(0x11a),_0x386786[_0x1ac626(0xf9)]=_0x1ac626(0x11c),_0x386786[_0x1ac626(0xee)]=_0x1ac626(0xf0),_0x386786[_0x1ac626(0x12b)]='accessibilityOptions.includeIssueType.needsReview',_0x386786[_0x1ac626(0x128)]=_0x1ac626(0xe3),_0x386786[_0x1ac626(0x10f)]='accessibilityOptions.scannerVersion';const _0x12cfdb=_0x386786;_0x1f68fd[_0x1ac626(0xf6)]&&(_0x1f68fd[_0x1ac626(0xf6)][_0x1ac626(0x137)]&&(_0x1f68fd[_0x12cfdb['MIOIZ']]=_0x1f68fd['accessibilityOptions'][_0x1ac626(0x137)]),_0x1f68fd['accessibilityOptions'][_0x1ac626(0xe7)]&&(_0x1f68fd[_0x12cfdb[_0x1ac626(0xf9)]]=_0x1f68fd[_0x1ac626(0xf6)][_0x1ac626(0xe7)]),_0x1f68fd[_0x1ac626(0xf6)][_0x1ac626(0xf4)]&&(_0x1f68fd[_0x12cfdb['NQKTJ']]=_0x1f68fd[_0x1ac626(0xf6)][_0x1ac626(0xf4)][_0x1ac626(0xdb)],_0x1f68fd[_0x12cfdb[_0x1ac626(0x12b)]]=_0x1f68fd[_0x1ac626(0xf6)][_0x1ac626(0xf4)][_0x1ac626(0x12a)]));const _0x2764c4=JSON[_0x1ac626(0x133)](process[_0x1ac626(0xe0)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML'])['scannerVersion'];_0x1f68fd[_0x12cfdb[_0x1ac626(0x128)]]=process[_0x1ac626(0xe0)][_0x1ac626(0x10d)],_0x1f68fd[_0x12cfdb[_0x1ac626(0x10f)]]=_0x2764c4,delete _0x1f68fd[_0x1ac626(0xf6)];},exports[a34_0x452f77(0x12e)]=async _0x54d741=>{const _0x1a4239=a34_0x452f77,_0x334ad5={};_0x334ad5['BAtOR']='No\x20accessibility\x20results\x20were\x20found.',_0x334ad5[_0x1a4239(0x11e)]=_0x1a4239(0x101);const _0x125767=_0x334ad5;if(global[_0x1a4239(0xf5)])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x54d741,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x54d741,scripts.getResults);return res;}catch{return logger[_0x1a4239(0x132)](_0x125767[_0x1a4239(0x139)]),[];}else return logger['warn'](_0x125767['OoKJJ']),[];},exports[a34_0x452f77(0x119)]=async(_0x5b127b,_0x180f95='')=>{const _0x464341=a34_0x452f77;if(global[_0x464341(0xf5)]){const _0x80d0d6={};return _0x80d0d6[_0x464341(0xeb)]=_0x180f95,await exports['browserStackEvaluate'](_0x5b127b,scripts['performScan'],_0x80d0d6);}},exports[a34_0x452f77(0xe2)]=async _0x1ae5f0=>{const _0x35ac73=a34_0x452f77,_0x5cef97={};_0x5cef97[_0x35ac73(0x134)]='No\x20summaryResults\x20found.',_0x5cef97[_0x35ac73(0x122)]='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.';const _0x28490d=_0x5cef97;if(global['accessibilityPlatform'])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x1ae5f0,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x1ae5f0,scripts.getResultsSummary);return summaryResults;}catch{return logger[_0x35ac73(0x110)](_0x28490d['GGjaz']),{};}else return logger[_0x35ac73(0x116)](_0x28490d[_0x35ac73(0x122)]),{};},exports[a34_0x452f77(0x11b)]=async _0x3445a7=>{const _0x2175e8=a34_0x452f77,_0x34a5c9={'ZiHld':function(_0x2aa385,_0x35ec75){return _0x2aa385!==_0x35ec75;},'GFqHM':_0x2175e8(0x129),'vqPkb':function(_0xbe61ff,_0x18c7cb){return _0xbe61ff===_0x18c7cb;},'jggch':_0x2175e8(0x136),'pIMPV':_0x2175e8(0x111),'oJOTT':_0x2175e8(0xff),'EIIAK':function(_0x393f77,_0x4a4823){return _0x393f77(_0x4a4823);},'RFPpY':function(_0x12c7bb,_0x1854c0){return _0x12c7bb===_0x1854c0;},'rCxfQ':_0x2175e8(0xf8),'wKAME':function(_0x4587fc,_0x326762){return _0x4587fc>_0x326762;},'UJtWr':_0x2175e8(0xfa)};try{if(!_0x34a5c9[_0x2175e8(0xdf)](_0x3445a7[_0x2175e8(0x11d)],''))return logger['warn'](_0x34a5c9['GFqHM']),![];const _0x1068ca=_0x3445a7['browser'];if(!(_0x34a5c9[_0x2175e8(0x106)](_0x1068ca,_0x34a5c9['jggch'])||_0x34a5c9['vqPkb'](_0x1068ca,_0x34a5c9['pIMPV'])))return logger['warn'](_0x34a5c9[_0x2175e8(0x114)]),![];const _0x1ba3c6=_0x34a5c9[_0x2175e8(0xdc)](parseInt,_0x3445a7[_0x2175e8(0x126)]);if(!(_0x34a5c9[_0x2175e8(0x10a)](_0x1ba3c6,_0x34a5c9[_0x2175e8(0x113)])||_0x34a5c9['wKAME'](_0x1ba3c6,0x5e)))return logger['warn'](_0x34a5c9[_0x2175e8(0xfb)]),![];}catch(_0x1402a3){logger[_0x2175e8(0x110)](_0x2175e8(0x10e)+util['format'](_0x1402a3));}return!![];},exports['processAccessibilityCaps']=(_0x55523d,_0x5e0977,_0xdbacce)=>{const _0x1ad043=a34_0x452f77,_0x32787c={'JGKxH':function(_0x101500){return _0x101500();},'Gkgjt':_0x1ad043(0x124),'KNoak':function(_0x18270e,_0x47edfd){return _0x18270e===_0x47edfd;},'dOzYj':_0x1ad043(0x136),'tlCbH':_0x1ad043(0x111),'lAwQF':_0x1ad043(0xff),'YDBNb':_0x1ad043(0xf8),'unKhw':function(_0x3a437b,_0x40f437){return _0x3a437b>_0x40f437;},'OuZHz':_0x1ad043(0xfa),'dwFxn':function(_0x2051d6,_0xb69cb2){return _0x2051d6(_0xb69cb2);},'MkCqa':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','RgjAX':function(_0x2e96c7,_0x233d8f){return _0x2e96c7+_0x233d8f;}};try{if(_0x32787c[_0x1ad043(0x120)](isAccessibilityAutomationSession)){global[_0x1ad043(0xf5)]=!![];!_0x55523d[_0x32787c[_0x1ad043(0xf7)]]&&(global[_0x1ad043(0xf5)]=![]);!(_0x32787c[_0x1ad043(0x10b)](_0x55523d['browserName'],_0x32787c[_0x1ad043(0x127)])||_0x32787c[_0x1ad043(0x10b)](_0x55523d[_0x1ad043(0x107)],_0x32787c[_0x1ad043(0x130)]))&&(logger[_0x1ad043(0x116)](_0x32787c[_0x1ad043(0xdd)]),global['accessibilityPlatform']=![]);!(_0x32787c[_0x1ad043(0x10b)](_0x55523d[_0x1ad043(0x126)],_0x32787c['YDBNb'])||_0x32787c['unKhw'](_0x55523d[_0x1ad043(0x126)],0x5e))&&(logger[_0x1ad043(0x116)](_0x32787c[_0x1ad043(0xfc)]),global[_0x1ad043(0xf5)]=![]);!_0x32787c[_0x1ad043(0xfe)](isUndefined,_0x55523d['deviceName'])&&(logger[_0x1ad043(0x116)](_0x32787c['MkCqa']),global[_0x1ad043(0xf5)]=![]);if(!global[_0x1ad043(0xf5)]){_0x55523d[_0x32787c[_0x1ad043(0xf7)]]=![];const _0x3b5630=_0x32787c[_0x1ad043(0x118)](_0x5e0977,_0x32787c[_0x1ad043(0xfe)](encodeURIComponent,JSON[_0x1ad043(0x13a)](_0x55523d)));_0xdbacce&&(_0xdbacce['currentTest'][_0x1ad043(0x138)]['project'][_0x1ad043(0x117)][_0x1ad043(0x123)][_0x1ad043(0xe8)]=_0x3b5630,_0xdbacce[_0x1ad043(0xde)][_0x1ad043(0xf2)][_0x1ad043(0x117)]['connectOptions'][_0x1ad043(0xe8)]=_0x3b5630);}}}catch(_0x50bf24){logger[_0x1ad043(0x110)](_0x1ad043(0x103)+util[_0x1ad043(0xf3)](_0x50bf24));}};function a34_0x1023(){const _0x183371=['accessibilityOptions','Gkgjt','latest','ZaumS','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','UJtWr','OuZHz','(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','dwFxn','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','ypzrQ','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','aaCMb','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','../../helpers/helper','Playwright','vqPkb','browserName','executeAsyncScript','20OCPOAR','RFPpY','KNoak','util','BS_A11Y_JWT','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','NavfY','debug','playwright-chromium','../../helpers/accessibility-automation/scripts','rCxfQ','oJOTT','sjndb','warn','use','RgjAX','performScan','accessibilityOptions.wcagVersion','platformValidation','accessibilityOptions.scannerProcessingTimeout','deviceName','OoKJJ','browserStackEvaluate','JGKxH','966504lcMyyz','ljNRY','connectOptions','browserstack.accessibility','3261597hFLsad','browser_version','dOzYj','zebIu','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','needsReview','DZHTT','4UWgFIq','../../helpers/accessibility-automation/helper','getAccessibilityResults','xWAVX','tlCbH','47105JuJBOd','error','parse','GGjaz','../../helpers/logger','chrome','wcagVersion','testInfo','BAtOR','stringify','bestPractice','EIIAK','lAwQF','workerInfo','ZiHld','env','1232184TmCzkV','getAccessibilityResultsSummary','accessibilityOptions.authToken','847511XKOVli','POWRA','(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','scannerProcessingTimeout','wsEndpoint','bstackSdkArgs','11241981TfKAOO','method','replace','name','NQKTJ','setAccessibilityCapabilities','accessibilityOptions.includeIssueType.bestPractice','345830EaBaHH','project','format','includeIssueType','accessibilityPlatform'];a34_0x1023=function(){return _0x183371;};return a34_0x1023();}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a35_0x4c303c=a35_0x46f3;(function(_0x15688c,_0x198286){const _0x5075c1=a35_0x46f3,_0x2ae3df=_0x15688c();while(!![]){try{const _0x58c3cb=parseInt(_0x5075c1(0x199))/0x1*(parseInt(_0x5075c1(0x1e0))/0x2)+parseInt(_0x5075c1(0x14c))/0x3+parseInt(_0x5075c1(0x19b))/0x4+parseInt(_0x5075c1(0x1c8))/0x5+-parseInt(_0x5075c1(0x1c2))/0x6*(parseInt(_0x5075c1(0x1de))/0x7)+-parseInt(_0x5075c1(0x19e))/0x8*(-parseInt(_0x5075c1(0x1c9))/0x9)+parseInt(_0x5075c1(0x15e))/0xa*(-parseInt(_0x5075c1(0x1b1))/0xb);if(_0x58c3cb===_0x198286)break;else _0x2ae3df['push'](_0x2ae3df['shift']());}catch(_0x498f45){_0x2ae3df['push'](_0x2ae3df['shift']());}}}(a35_0x14ac,0xc171b));const fs=require('fs'),path=require('path'),{spawn}=require(a35_0x4c303c(0x157)),{format}=require('util'),logger=require('../../helpers/logger')['winstonLogger'],{default:BrowserStackSetup}=require(a35_0x4c303c(0x1a1)),helper=require(a35_0x4c303c(0x1a5)),utilities=require(a35_0x4c303c(0x1c3)),constants=require('../utils/constants'),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require(a35_0x4c303c(0x19a)),{CrashReporter}=require(a35_0x4c303c(0x187)),{getFrameworkVersion}=require(a35_0x4c303c(0x195)),{checkAccessibilityPlatformConfig}=require('../../helpers/accessibility-automation/helper'),{setAccessibilityCapabilities}=require(a35_0x4c303c(0x160)),TestHubHandler=require('../../helpers/testhub/testhubHandler'),{shouldProcessEventForTesthub}=require(a35_0x4c303c(0x1af)),getUserPlaywrightConfig=async(_0x1286e6,_0x22084a)=>{const _0x15d275=a35_0x4c303c,_0x449d32={'nfxpp':function(_0x4d4885){return _0x4d4885();},'SdnxK':function(_0x31c8f3,_0x5059ac){return _0x31c8f3(_0x5059ac);},'qnyWw':function(_0x38c342,_0x1c046a){return _0x38c342(_0x1c046a);},'gzCwF':'resolvedConfigFile','lSvPF':_0x15d275(0x1d7)},_0x18c086=!helper[_0x15d275(0x16a)](_0x1286e6['config']),_0x5ab9e6=_0x18c086?path['resolve'](process[_0x15d275(0x15b)](),_0x1286e6[_0x15d275(0x158)]):process['cwd'](),{resolveConfigFile:_0x562ea2,resolveConfigLocation:_0x43d3ed}=helper[_0x15d275(0x17a)]['apply'](null,_0x449d32[_0x15d275(0x190)](getConfigLoaderPath)),_0x19131a=_0x562ea2?_0x449d32['SdnxK'](_0x562ea2,_0x5ab9e6):helper[_0x15d275(0x165)](_0x449d32[_0x15d275(0x16b)](_0x43d3ed,_0x5ab9e6),[_0x449d32[_0x15d275(0x1bc)]]),_0x4a1af6={};if(_0x18c086){const _0x4bb864=_0x22084a['findIndex'](_0x3f716f=>_0x3f716f===_0x15d275(0x18d)||_0x3f716f==='-c'||_0x3f716f[_0x15d275(0x1b2)](_0x15d275(0x1d7)));_0x22084a[_0x15d275(0x186)](_0x4bb864,_0x22084a[_0x4bb864]['startsWith'](_0x449d32['lSvPF'])?0x1:0x2);}const _0x3749fd={};return _0x3749fd[_0x15d275(0x1bd)]=_0x19131a,_0x3749fd[_0x15d275(0x158)]=_0x4a1af6,_0x3749fd;},handleO11yRerun=_0x487097=>{const _0x4478a0=a35_0x4c303c,_0x16fbb0={};_0x16fbb0['zDCog']=function(_0x49e34c,_0x3dd374){return _0x49e34c!==_0x3dd374;},_0x16fbb0['ewRMC']=_0x4478a0(0x1d2),_0x16fbb0[_0x4478a0(0x18e)]=_0x4478a0(0x1b8);const _0x2b353f=_0x16fbb0,_0x22d877=helper[_0x4478a0(0x184)](process['env'][_0x4478a0(0x169)]);if(_0x22d877){const _0x50391e=process[_0x4478a0(0x170)]['BROWSERSTACK_RERUN_TESTS'],_0x4bfd05=[];if(_0x2b353f[_0x4478a0(0x180)](_0x50391e,_0x2b353f['ewRMC'])&&!helper[_0x4478a0(0x16a)](_0x50391e)){_0x50391e[_0x4478a0(0x162)](',')[_0x4478a0(0x1c5)](_0xb85f7=>{const _0x57ab0a=_0x4478a0;_0x4bfd05[_0x57ab0a(0x18a)]('('+_0xb85f7[_0x57ab0a(0x15a)]()+')');});const _0xa1f047='^'+_0x4bfd05['join']('|')+'$';_0x487097[_0x4478a0(0x18a)](_0x2b353f[_0x4478a0(0x18e)],_0xa1f047);}}},spawnOriginalProcess=_0x129008=>{const _0x1498a4=a35_0x4c303c,_0x2aa95f={'puRnl':function(_0x4335ac,_0x2e67c5,_0x37fb08,_0x5b763c){return _0x4335ac(_0x2e67c5,_0x37fb08,_0x5b763c);},'kAWpA':_0x1498a4(0x168),'WrNeH':'playwright','BvGTC':function(_0x579bdc,_0x995be9){return _0x579bdc===_0x995be9;},'TXnwP':_0x1498a4(0x143),'wNYZt':_0x1498a4(0x17e)};_0x2aa95f['puRnl'](spawn,_0x2aa95f[_0x1498a4(0x1d0)],[_0x2aa95f[_0x1498a4(0x18f)],..._0x129008[_0x1498a4(0x1b0)](0x1)],{'shell':_0x2aa95f[_0x1498a4(0x14e)](process[_0x1498a4(0x174)],_0x2aa95f[_0x1498a4(0x1dd)]),'stdio':_0x2aa95f['wNYZt'],'cwd':process['cwd']()});},isTestCommand=(_0x4c2317,_0x39a1a6)=>{const _0x5d59d8=a35_0x4c303c,_0x2b5fe3={};_0x2b5fe3[_0x5d59d8(0x1ca)]=function(_0x4b15c6,_0x30c285){return _0x4b15c6>_0x30c285;},_0x2b5fe3[_0x5d59d8(0x1b9)]=function(_0x18ae9b,_0x315023){return _0x18ae9b===_0x315023;},_0x2b5fe3[_0x5d59d8(0x193)]='test';const _0x54fceb=_0x2b5fe3;if(_0x54fceb['cnCzK'](_0x39a1a6[_0x5d59d8(0x1a2)],0x1)&&_0x54fceb[_0x5d59d8(0x1b9)](_0x39a1a6[0x1],_0x54fceb[_0x5d59d8(0x193)]))return!![];return![];};function a35_0x14ac(){const _0xb8e04=['MODULE','NoScH','push','skipSessionName','sKrNs','--config','vlIzy','WrNeH','nfxpp','stop','playwright-browserstack-sdk.config.js','nqrLF','Edeup','../../helpers/test-observability/utils','playwright','BROWSERSTACK_AUTOMATION','finalExecution','61718oFfRXF','./reporter/pwUtils','5161564pUMPzI','EDiqy','accessibilityOptions','472jOPWvF','logLevel','qTSGk','../../helpers/BrowserStackSetup','length','argv','getProxyUrl','../../helpers/helper','ialLe','OXVsL','existsSync','testObservability','--disable-test-observability','parse','BROWSERSTACK_TEST_OBSERVABILITY','TQJEi','ZpqIB','../../helpers/testhub/utils','slice','11QOjbWy','startsWith','BROWSERSTACK_SETUP_CONFIG_PATH','ExrCa','cdntd','PLAYWRIGHT','automation','--grep','uUvaZ','writeFileSync','concat','gzCwF','path','lZZpL','join','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','exitCode','6SzfhXc','../../helpers/utilities','pRXgb','map','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','markSDKSetupComplete','6251445aPtlFn','48699ImwPKK','cnCzK','--disable-browserstack-automation','IbKIR','cliConfig','YwmOh','ROJbw','kAWpA','accessibility','null','includes','uvrzl','Deleting\x20','Playwright\x20process\x20exited\x20with\x20code\x20','--config=','launchBuild','readFileSync','stringify','pBzZF','BrowserStack\x20config\x20file\x20not\x20found.','TXnwP','4178167LuXjZE','indexOf','48ojYiJx','test','win32','assign','AyzCz','Nlbdh','dirname','initialize','OmJrb','unlinkSync','resolve','1530498LFAPsq','close','BvGTC','getPackageType','Updated\x20config\x20file\x20name\x20to\x20-\x20','BROWSERSTACK_PW_CONFIG_DIR','filterBrowserstackArgs','sPtUx','SIRHD','Error\x20in\x20deleting\x20playwright\x20results','tErog','child_process','config','filter','trim','cwd','testContextOptions','errorMessage','34620990lbyRnN','info','./accessibility-helper','jFbLN','split','Error\x20in\x20getting\x20funnel\x20data\x20results','tpUiB','nestedKeyValue','FMcMN','\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();','npx','BROWSERSTACK_RERUN','isUndefined','qnyWw','get','playwright-browserstack-sdk.config.cjs','browserstackSetupConfig.json','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','env','kWctI','getConfigPath','isTypescriptProject','platform','true','BROWSERSTACK_TEST_ACCESSIBILITY_YML','RVGFg','fnaCV','hFHWJ','requirePWModule','homedir','nuFin','serializeToYamlString','inherit','lCGXX','zDCog','SUUzS','skipSessionStatus','Error\x20in\x20closing\x20playwright','isTrue','debug','splice','../../helpers/test-observability/error-handler'];a35_0x14ac=function(){return _0xb8e04;};return a35_0x14ac();}async function run(_0x2733d4,_0x54f324){const _0x15bfad=a35_0x4c303c,_0x25a3e1={'OXVsL':'.browserstack','nuFin':'pw_result.json','FMcMN':function(_0x58db1f,_0x38c5ad){return _0x58db1f+_0x38c5ad;},'EDiqy':_0x15bfad(0x163),'NVbnt':'6|7|8|0|5|3|4|1|2','OmJrb':function(_0x20bdef){return _0x20bdef();},'AyzCz':function(_0x2b2173,_0x4495cb){return _0x2b2173+_0x4495cb;},'TQJEi':_0x15bfad(0x183),'jFbLN':_0x15bfad(0x1cb),'Edeup':'false','MYvhh':_0x15bfad(0x1aa),'ialLe':function(_0x15288b,_0x514ebd){return _0x15288b>=_0x514ebd;},'ExrCa':function(_0x55ac93,_0x1578da){return _0x55ac93+_0x1578da;},'sPtUx':_0x15bfad(0x155),'aFPuT':function(_0x373ed8,_0xa565bc,_0x589874){return _0x373ed8(_0xa565bc,_0x589874);},'cdntd':function(_0xc5c5dc,_0x24bab2){return _0xc5c5dc(_0x24bab2);},'IbKIR':_0x15bfad(0x1dc),'tpUiB':_0x15bfad(0x1b7),'qyavc':function(_0x225a56,_0x34affd){return _0x225a56!=_0x34affd;},'lZZpL':function(_0x21cbd0,_0x35466d){return _0x21cbd0(_0x35466d);},'qTSGk':function(_0x2c9a6b,_0x545eae){return _0x2c9a6b===_0x545eae;},'pBzZF':_0x15bfad(0x175),'uvrzl':_0x15bfad(0x16e),'lCGXX':_0x15bfad(0x16d),'hFHWJ':_0x15bfad(0x192),'pRXgb':function(_0x246100,_0x5c46c9){return _0x246100-_0x5c46c9;},'YwmOh':function(_0x59becc,_0x3d51ab){return _0x59becc+_0x3d51ab;},'ZpqIB':_0x15bfad(0x150),'ROJbw':function(_0x29e76f,_0x460342){return _0x29e76f>_0x460342;},'suODS':function(_0x596f28,_0x1e782a){return _0x596f28+_0x1e782a;},'Nlbdh':function(_0x3d0fd5,_0x5617ed,_0x25b218,_0x10b5ea){return _0x3d0fd5(_0x5617ed,_0x25b218,_0x10b5ea);},'sKrNs':_0x15bfad(0x168),'RVGFg':_0x15bfad(0x196),'SUUzS':_0x15bfad(0x1e1),'SIRHD':_0x15bfad(0x18d),'NoScH':function(_0x5135ab,_0x40822c){return _0x5135ab===_0x40822c;},'fnaCV':'win32','tErog':_0x15bfad(0x17e),'kWctI':_0x15bfad(0x14d)};!helper['isFalse'](process[_0x15bfad(0x170)][_0x15bfad(0x197)])&&(process[_0x15bfad(0x170)][_0x15bfad(0x197)]=!![]);process[_0x15bfad(0x1a3)][_0x15bfad(0x1d3)](_0x25a3e1[_0x15bfad(0x161)])&&(process[_0x15bfad(0x170)]['BROWSERSTACK_AUTOMATION']=_0x25a3e1[_0x15bfad(0x194)],_0x54f324=_0x54f324[_0x15bfad(0x159)](_0xc29cc7=>_0xc29cc7!==_0x15bfad(0x1cb)));const _0x47f9c1=_0x54f324[_0x15bfad(0x1df)](_0x25a3e1['MYvhh']);_0x25a3e1[_0x15bfad(0x1a6)](_0x47f9c1,0x0)&&(process[_0x15bfad(0x170)][_0x15bfad(0x1ac)]=_0x25a3e1[_0x15bfad(0x194)],_0x54f324=_0x54f324[_0x15bfad(0x159)](_0xf02b18=>_0xf02b18!=='--disable-test-observability'));try{const _0x399ca4=path['join'](helper[_0x15bfad(0x17b)](),_0x25a3e1[_0x15bfad(0x1a7)],_0x25a3e1[_0x15bfad(0x17c)]);fs[_0x15bfad(0x1a8)](_0x399ca4)&&fs[_0x15bfad(0x14a)](_0x399ca4);}catch(_0x3ba4cd){logger[_0x15bfad(0x185)](_0x25a3e1[_0x15bfad(0x1b4)](_0x25a3e1[_0x15bfad(0x153)],_0x3ba4cd));}if(!_0x25a3e1['aFPuT'](isTestCommand,_0x2733d4,_0x54f324)){_0x25a3e1[_0x15bfad(0x1b5)](spawnOriginalProcess,_0x54f324);return;}const _0x4320b1=new BrowserStackSetup(_0x2733d4,FRAMEWORKS[_0x15bfad(0x1b6)]);if(!_0x4320b1[_0x15bfad(0x158)]){logger['error'](_0x25a3e1[_0x15bfad(0x1cc)]);return;}await _0x4320b1[_0x15bfad(0x148)]();!helper[_0x15bfad(0x16a)](_0x4320b1['cliConfig'])&&_0x4320b1[_0x15bfad(0x1cd)]['has'](_0x25a3e1[_0x15bfad(0x164)])&&(process[_0x15bfad(0x170)][_0x15bfad(0x197)]=_0x4320b1[_0x15bfad(0x1cd)][_0x15bfad(0x16c)](_0x25a3e1[_0x15bfad(0x164)])||!![]);_0x25a3e1['qyavc'](_0x4320b1[_0x15bfad(0x158)]['testObservability'],null)&&!helper['isTrue'](process[_0x15bfad(0x170)][_0x15bfad(0x1ac)])&&(process['env'][_0x15bfad(0x1ac)]=process[_0x15bfad(0x170)][_0x15bfad(0x1ac)]||_0x4320b1[_0x15bfad(0x158)][_0x15bfad(0x1a9)]);const _0x12b2b6=!helper['isFalse'](process[_0x15bfad(0x170)][_0x15bfad(0x1ac)]);let _0x261101=![];_0x4320b1[_0x15bfad(0x158)][_0x15bfad(0x1d1)]&&(_0x261101=!![],process[_0x15bfad(0x170)][_0x15bfad(0x176)]=_0x4320b1['config'][_0x15bfad(0x1d1)]);_0x4320b1[_0x15bfad(0x158)][_0x15bfad(0x19d)]&&(process[_0x15bfad(0x170)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON[_0x15bfad(0x1da)](_0x4320b1[_0x15bfad(0x158)]['accessibilityOptions']));const _0x4a8f28=_0x54f324[_0x15bfad(0x1bb)](),_0x2c02d7=await _0x25a3e1['aFPuT'](getUserPlaywrightConfig,_0x2733d4,_0x54f324);if(helper['isUndefined'](_0x2c02d7)){_0x25a3e1[_0x15bfad(0x1be)](spawnOriginalProcess,_0x4a8f28);return;}const _0xc21368=_0x2c02d7[_0x15bfad(0x1bd)]?path['dirname'](_0x2c02d7[_0x15bfad(0x1bd)]):process[_0x15bfad(0x15b)]();process['env'][_0x15bfad(0x151)]=_0xc21368,await TestHubHandler[_0x15bfad(0x1d8)](FRAMEWORKS['PLAYWRIGHT'],_0x4320b1);_0x12b2b6&&_0x25a3e1['lZZpL'](handleO11yRerun,_0x54f324);let _0x1fca31=_0x25a3e1[_0x15bfad(0x1a0)](process[_0x15bfad(0x170)][_0x15bfad(0x176)],_0x25a3e1[_0x15bfad(0x1db)]);_0x1fca31=_0x1fca31||_0x25a3e1['cdntd'](checkAccessibilityPlatformConfig,_0x4320b1[_0x15bfad(0x158)]),process[_0x15bfad(0x170)][_0x15bfad(0x176)]=_0x1fca31;_0x1fca31&&_0x25a3e1[_0x15bfad(0x1b5)](setAccessibilityCapabilities,_0x4320b1[_0x15bfad(0x158)]);const _0x50a211=path[_0x15bfad(0x1bf)](_0x2c02d7[_0x15bfad(0x1bd)]?path[_0x15bfad(0x147)](_0x2c02d7[_0x15bfad(0x1bd)]):process[_0x15bfad(0x15b)](),_0x25a3e1[_0x15bfad(0x1d4)]);fs[_0x15bfad(0x1ba)](_0x50a211,helper[_0x15bfad(0x17d)](_0x4320b1['config'])),process[_0x15bfad(0x170)][_0x15bfad(0x1b3)]=_0x50a211,helper['clearTempPWConfig']();let _0x411825='';_0x25a3e1['qTSGk'](helper[_0x15bfad(0x14f)](),constants['PACKAGE_TYPE'][_0x15bfad(0x188)])?_0x411825=_0x25a3e1[_0x15bfad(0x17f)]:_0x411825=_0x25a3e1[_0x15bfad(0x179)];let _0x51c2be='';if(helper[_0x15bfad(0x173)](_0x2c02d7[_0x15bfad(0x1bd)])){_0x51c2be=_0x15bfad(0x1c6);const _0x4da512=_0x411825['split']('.');_0x4da512[_0x25a3e1[_0x15bfad(0x1c4)](_0x4da512[_0x15bfad(0x1a2)],0x1)]='ts',_0x411825=_0x4da512[_0x15bfad(0x1bf)]('.'),logger[_0x15bfad(0x185)](_0x25a3e1[_0x15bfad(0x1ce)](_0x25a3e1[_0x15bfad(0x1ae)],_0x411825));}else _0x51c2be=_0x15bfad(0x1c0);const _0x56a215=path['join'](_0x2c02d7[_0x15bfad(0x1bd)]?path[_0x15bfad(0x147)](_0x2c02d7[_0x15bfad(0x1bd)]):process[_0x15bfad(0x15b)](),_0x411825);let _0x2f65ad=_0x2c02d7[_0x15bfad(0x1bd)]?_0x2c02d7[_0x15bfad(0x1bd)]:'';_0x2f65ad=_0x25a3e1[_0x15bfad(0x1cf)](_0x2f65ad['length'],0x0)?path[_0x15bfad(0x14b)](_0x2f65ad):'',process['env']['USER_CONFIG_DETAILS_PATH']=_0x2f65ad;const _0x48e356=helper[_0x15bfad(0x1a4)](_0x4320b1[_0x15bfad(0x158)]);_0x48e356&&(_0x51c2be=_0x25a3e1['suODS'](_0x15bfad(0x16f)+_0x48e356+_0x15bfad(0x167),_0x51c2be));helper[_0x15bfad(0x152)]({},_0x54f324),fs[_0x15bfad(0x1ba)](_0x56a215,_0x51c2be),helper[_0x15bfad(0x1c7)]();const _0x254e0c=_0x25a3e1[_0x15bfad(0x146)](spawn,_0x25a3e1[_0x15bfad(0x18c)],[_0x25a3e1[_0x15bfad(0x177)],_0x25a3e1[_0x15bfad(0x181)],_0x25a3e1[_0x15bfad(0x154)],_0x56a215,..._0x54f324[_0x15bfad(0x1b0)](0x2)],{'shell':_0x25a3e1[_0x15bfad(0x189)](process['platform'],_0x25a3e1[_0x15bfad(0x178)]),'stdio':_0x25a3e1[_0x15bfad(0x156)],'cwd':process[_0x15bfad(0x15b)](),'env':Object[_0x15bfad(0x144)]({},process['env'],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x15bfad(0x172)](_0x2733d4),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x4320b1['config'][_0x15bfad(0x15c)][_0x15bfad(0x182)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x4320b1[_0x15bfad(0x158)][_0x15bfad(0x15c)][_0x15bfad(0x18b)],'BROWSERSTACK_LOG_LEVEL':_0x4320b1['config'][_0x15bfad(0x19f)]})}),_0xbf3880=()=>{const _0x39a3bf=_0x15bfad;try{const _0x3c30ee=path[_0x39a3bf(0x1bf)](helper[_0x39a3bf(0x17b)](),_0x25a3e1[_0x39a3bf(0x1a7)],_0x25a3e1['nuFin']);if(fs[_0x39a3bf(0x1a8)](_0x3c30ee)){let _0x23dbc3=fs[_0x39a3bf(0x1d9)](_0x3c30ee);_0x23dbc3=JSON[_0x39a3bf(0x1ab)](_0x23dbc3),_0x4320b1[_0x39a3bf(0x15d)]=_0x23dbc3,fs[_0x39a3bf(0x14a)](_0x3c30ee);}}catch(_0x53c463){logger[_0x39a3bf(0x185)](_0x25a3e1[_0x39a3bf(0x166)](_0x25a3e1[_0x39a3bf(0x19c)],_0x53c463));}};_0x254e0c['on'](_0x25a3e1[_0x15bfad(0x171)],async _0x256a1b=>{const _0x1bada6=_0x15bfad;try{const _0x15e120=_0x25a3e1['NVbnt']['split']('|');let _0x13c7a7=0x0;while(!![]){switch(_0x15e120[_0x13c7a7++]){case'0':process[_0x1bada6(0x1c1)]=_0x256a1b;continue;case'1':logger[_0x1bada6(0x185)](_0x1bada6(0x1d5)+_0x50a211);continue;case'2':fs[_0x1bada6(0x14a)](_0x50a211);continue;case'3':logger[_0x1bada6(0x15f)](_0x1bada6(0x1d5)+_0x56a215);continue;case'4':fs[_0x1bada6(0x14a)](_0x56a215);continue;case'5':logger[_0x1bada6(0x185)](_0x1bada6(0x1d6)+_0x256a1b);continue;case'6':_0x25a3e1[_0x1bada6(0x149)](_0xbf3880);continue;case'7':await TestHubHandler[_0x1bada6(0x191)]();continue;case'8':await utilities[_0x1bada6(0x198)](_0x4320b1);continue;}break;}}catch(_0x54b360){logger[_0x1bada6(0x185)](_0x25a3e1[_0x1bada6(0x145)](_0x25a3e1[_0x1bada6(0x1ad)],_0x54b360));}});}function a35_0x46f3(_0x3f8d7a,_0x54f599){const _0x14ac72=a35_0x14ac();return a35_0x46f3=function(_0x46f368,_0x1a9cab){_0x46f368=_0x46f368-0x143;let _0x1c809f=_0x14ac72[_0x46f368];return _0x1c809f;},a35_0x46f3(_0x3f8d7a,_0x54f599);}module['exports']=run;
|
|
2
|
+
'use strict';function a35_0x1f32(){const _0x42dea6=['automation','HLmiG','--grep','../../helpers/test-observability/utils','1002928BkqHEz','hMzKO','wkWBL','startsWith','./accessibility-helper','dirname','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','USER_CONFIG_DETAILS_PATH','isFalse','HGogw','writeFileSync','626150sykgKo','Error\x20in\x20getting\x20funnel\x20data\x20results','get','XAEFh','UHKkn','testObservability','Updated\x20config\x20file\x20name\x20to\x20-\x20','winstonLogger','exitCode','hjaBN','XnjTO','error','path','uAeYR','xilKu','--disable-browserstack-automation','filterBrowserstackArgs','resolve','stop','logLevel','SmcKH','length','RczVE','DvUaN','MODULE','TkKpD','isUndefined','rRNjZ','uliyf','sBSrj','false','../../helpers/testhub/testhubHandler','cwd','NkrIw','../../helpers/helper','./reporter/pwUtils','SabNj','getProxyUrl','qumYr','547665PqfpIx','NgxNQ','Error\x20in\x20closing\x20playwright','CFtVY','BrowserStack\x20config\x20file\x20not\x20found.','slice','../../helpers/testhub/utils','util','playwright','has','0|6|5|3|4|8|1|7|2','--disable-test-observability','ooocZ','Deleting\x20','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','platform','Playwright\x20process\x20exited\x20with\x20code\x20','rQktb','pFVjT','../../helpers/test-observability/error-handler','qKotl','accessibility','TABHU','debug','nestedKeyValue','concat','null','KFmwN','KlbbH','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','filter','testContextOptions','test','yisKw','apply','JuhDb','getConfigPath','child_process','stringify','../../helpers/logger','playwright-browserstack-sdk.config.cjs','cliConfig','JYwmO','BROWSERSTACK_PW_CONFIG_DIR','skipSessionStatus','--config=','../../helpers/test-observability/constants','true','existsSync','pw_result.json','4akSysr','139123yYmVeX','env','readFileSync','resolvedConfigFile','parse','initialize','ExKWa','PLAYWRIGHT','BROWSERSTACK_AUTOMATION','1777100WSMlje','../utils/constants','push','--config','clearTempPWConfig','exports','AaoOt','skipSessionName','ahsEE','hktfs','npx','indexOf','zXaqy','split','482994JmyTQF','../../helpers/BrowserStackSetup','unlinkSync','BROWSERSTACK_SETUP_CONFIG_PATH','ZjDxP','103905uCRqAV','win32','BROWSERSTACK_TEST_OBSERVABILITY','pCkIb','BROWSERSTACK_TEST_ACCESSIBILITY_YML','isTrue','\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();','trim','VWOGZ','join','assign','.browserstack','QAnWu','homedir','inherit','Ffehp','playwright-browserstack-sdk.config.js','MkXMG','248fTKuHe','ToKcm','abpuq','BROWSERSTACK_RERUN','Trjbc','Error\x20in\x20deleting\x20playwright\x20results','serializeToYamlString','config'];a35_0x1f32=function(){return _0x42dea6;};return a35_0x1f32();}function a35_0x595c(_0x3bf211,_0x1e5554){const _0x1f3255=a35_0x1f32();return a35_0x595c=function(_0x595cff,_0x2d4435){_0x595cff=_0x595cff-0x17e;let _0x34c019=_0x1f3255[_0x595cff];return _0x34c019;},a35_0x595c(_0x3bf211,_0x1e5554);}const a35_0x249430=a35_0x595c;(function(_0xd22451,_0x249e81){const _0xaf9c9a=a35_0x595c,_0x311050=_0xd22451();while(!![]){try{const _0x579a29=-parseInt(_0xaf9c9a(0x212))/0x1*(-parseInt(_0xaf9c9a(0x211))/0x2)+-parseInt(_0xaf9c9a(0x1df))/0x3+parseInt(_0xaf9c9a(0x1ad))/0x4+-parseInt(_0xaf9c9a(0x21b))/0x5+-parseInt(_0xaf9c9a(0x18a))/0x6+-parseInt(_0xaf9c9a(0x1b8))/0x7+parseInt(_0xaf9c9a(0x1a1))/0x8*(parseInt(_0xaf9c9a(0x18f))/0x9);if(_0x579a29===_0x249e81)break;else _0x311050['push'](_0x311050['shift']());}catch(_0x24c1d4){_0x311050['push'](_0x311050['shift']());}}}(a35_0x1f32,0x2bb05));const fs=require('fs'),path=require(a35_0x249430(0x1c4)),{spawn}=require(a35_0x249430(0x204)),{format}=require(a35_0x249430(0x1e6)),logger=require(a35_0x249430(0x206))[a35_0x249430(0x1bf)],{default:BrowserStackSetup}=require(a35_0x249430(0x18b)),helper=require(a35_0x249430(0x1da)),utilities=require('../../helpers/utilities'),constants=require(a35_0x249430(0x21c)),{FRAMEWORKS}=require(a35_0x249430(0x20d)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require(a35_0x249430(0x1db)),{CrashReporter}=require(a35_0x249430(0x1f2)),{getFrameworkVersion}=require(a35_0x249430(0x1ac)),{checkAccessibilityPlatformConfig}=require('../../helpers/accessibility-automation/helper'),{setAccessibilityCapabilities}=require(a35_0x249430(0x1b1)),TestHubHandler=require(a35_0x249430(0x1d7)),{shouldProcessEventForTesthub}=require(a35_0x249430(0x1e5)),getUserPlaywrightConfig=async(_0x16998a,_0x301347)=>{const _0x395fde=a35_0x249430,_0x460ee0={'SmcKH':function(_0x332913){return _0x332913();},'MkXMG':function(_0x43d8e0,_0x5da22b){return _0x43d8e0(_0x5da22b);},'QAnWu':_0x395fde(0x215),'sBSrj':_0x395fde(0x20c)},_0x10ab0f=!helper[_0x395fde(0x1d2)](_0x16998a[_0x395fde(0x1a8)]),_0x5a4918=_0x10ab0f?path[_0x395fde(0x1c9)](process[_0x395fde(0x1d8)](),_0x16998a[_0x395fde(0x1a8)]):process[_0x395fde(0x1d8)](),{resolveConfigFile:_0x31b561,resolveConfigLocation:_0x543e2d}=helper['requirePWModule'][_0x395fde(0x201)](null,_0x460ee0[_0x395fde(0x1cc)](getConfigLoaderPath)),_0x3a6d82=_0x31b561?_0x460ee0['MkXMG'](_0x31b561,_0x5a4918):helper[_0x395fde(0x1f7)](_0x460ee0[_0x395fde(0x1a0)](_0x543e2d,_0x5a4918),[_0x460ee0[_0x395fde(0x19b)]]),_0x2dceb8={};if(_0x10ab0f){const _0xa3308f=_0x301347['findIndex'](_0x5d6626=>_0x5d6626===_0x395fde(0x17f)||_0x5d6626==='-c'||_0x5d6626[_0x395fde(0x1b0)](_0x395fde(0x20c)));_0x301347['splice'](_0xa3308f,_0x301347[_0xa3308f]['startsWith'](_0x460ee0[_0x395fde(0x1d5)])?0x1:0x2);}const _0x436fa2={};return _0x436fa2[_0x395fde(0x1c4)]=_0x3a6d82,_0x436fa2[_0x395fde(0x1a8)]=_0x2dceb8,_0x436fa2;},handleO11yRerun=_0x2c739d=>{const _0x4e4330=a35_0x249430,_0x4aac24={};_0x4aac24['rRNjZ']=function(_0x5ca425,_0xa07ec2){return _0x5ca425!==_0xa07ec2;},_0x4aac24['KlbbH']=_0x4e4330(0x1f9),_0x4aac24[_0x4e4330(0x209)]=_0x4e4330(0x1ab);const _0x2ee0f2=_0x4aac24,_0x3444b8=helper[_0x4e4330(0x194)](process['env'][_0x4e4330(0x1a4)]);if(_0x3444b8){const _0x1d539a=process[_0x4e4330(0x213)]['BROWSERSTACK_RERUN_TESTS'],_0x5f239d=[];if(_0x2ee0f2[_0x4e4330(0x1d3)](_0x1d539a,_0x2ee0f2[_0x4e4330(0x1fb)])&&!helper[_0x4e4330(0x1d2)](_0x1d539a)){_0x1d539a[_0x4e4330(0x189)](',')['map'](_0xed0130=>{const _0x111185=_0x4e4330;_0x5f239d[_0x111185(0x17e)]('('+_0xed0130[_0x111185(0x196)]()+')');});const _0x3cdba1='^'+_0x5f239d['join']('|')+'$';_0x2c739d[_0x4e4330(0x17e)](_0x2ee0f2['JYwmO'],_0x3cdba1);}}},spawnOriginalProcess=_0x1b7b65=>{const _0x1a1755=a35_0x249430,_0x26da2c={'KFmwN':function(_0x559ee9,_0x53e8d0,_0x2bf777,_0x32274c){return _0x559ee9(_0x53e8d0,_0x2bf777,_0x32274c);},'XLYmG':_0x1a1755(0x186),'uliyf':_0x1a1755(0x1e7),'Fibum':function(_0x440b3d,_0x5f3465){return _0x440b3d===_0x5f3465;},'hjaBN':_0x1a1755(0x190),'ERrSP':_0x1a1755(0x19d)};_0x26da2c[_0x1a1755(0x1fa)](spawn,_0x26da2c['XLYmG'],[_0x26da2c[_0x1a1755(0x1d4)],..._0x1b7b65[_0x1a1755(0x1e4)](0x1)],{'shell':_0x26da2c['Fibum'](process['platform'],_0x26da2c[_0x1a1755(0x1c1)]),'stdio':_0x26da2c['ERrSP'],'cwd':process[_0x1a1755(0x1d8)]()});},isTestCommand=(_0x1d295f,_0x656f5f)=>{const _0x9581a3=a35_0x249430,_0x33eb1b={};_0x33eb1b[_0x9581a3(0x200)]=function(_0x286ff3,_0x221156){return _0x286ff3>_0x221156;},_0x33eb1b[_0x9581a3(0x1f1)]=function(_0x5efdb1,_0x5b184a){return _0x5efdb1===_0x5b184a;},_0x33eb1b[_0x9581a3(0x1e2)]=_0x9581a3(0x1ff);const _0x10af62=_0x33eb1b;if(_0x10af62[_0x9581a3(0x200)](_0x656f5f[_0x9581a3(0x1cd)],0x1)&&_0x10af62[_0x9581a3(0x1f1)](_0x656f5f[0x1],_0x10af62[_0x9581a3(0x1e2)]))return!![];return![];};async function run(_0x358adc,_0x28e601){const _0x5c352d=a35_0x249430,_0x3a693a={'ExKWa':_0x5c352d(0x19a),'XAEFh':_0x5c352d(0x210),'TkKpD':function(_0x2d8a6f,_0x245b9b){return _0x2d8a6f+_0x245b9b;},'VsEvi':_0x5c352d(0x1b9),'ToKcm':_0x5c352d(0x1e9),'IamRW':function(_0x2a7f95){return _0x2a7f95();},'hktfs':_0x5c352d(0x1e1),'UHKkn':'--disable-browserstack-automation','rQktb':_0x5c352d(0x1d6),'druQr':_0x5c352d(0x1ea),'pCkIb':function(_0x45520b,_0x56aa43){return _0x45520b>=_0x56aa43;},'NkrIw':function(_0x54e89d,_0x1f2b19){return _0x54e89d+_0x1f2b19;},'ooocZ':_0x5c352d(0x1a6),'VWOGZ':function(_0x20b92e,_0x164dcc,_0x1dee3e){return _0x20b92e(_0x164dcc,_0x1dee3e);},'abpuq':function(_0x1dfeaa,_0x195555){return _0x1dfeaa(_0x195555);},'Trjbc':_0x5c352d(0x1e3),'xilKu':_0x5c352d(0x1a9),'Ffehp':function(_0x1e8c6b,_0x20aad8){return _0x1e8c6b!=_0x20aad8;},'qumYr':function(_0x3d03be,_0x3ee43d){return _0x3d03be(_0x3ee43d);},'ahsEE':function(_0x21209c,_0x5bf592){return _0x21209c===_0x5bf592;},'TABHU':_0x5c352d(0x20e),'hMzKO':function(_0x3c7a9a,_0x5cf5f2){return _0x3c7a9a(_0x5cf5f2);},'HLmiG':'browserstackSetupConfig.json','LBWhS':function(_0x227b81,_0x4cddb5){return _0x227b81===_0x4cddb5;},'DvUaN':_0x5c352d(0x207),'XnjTO':_0x5c352d(0x19f),'uAeYR':function(_0x35b636,_0x6b357c){return _0x35b636-_0x6b357c;},'wkWBL':function(_0x16159e,_0x438abb){return _0x16159e+_0x438abb;},'RczVE':_0x5c352d(0x1be),'HGogw':function(_0x479dd8,_0xd2aaad){return _0x479dd8>_0xd2aaad;},'ZjDxP':function(_0xbb145f,_0x354b86,_0x18ffea,_0x51c508){return _0xbb145f(_0x354b86,_0x18ffea,_0x51c508);},'zXaqy':_0x5c352d(0x186),'SabNj':_0x5c352d(0x1e7),'AaoOt':_0x5c352d(0x1ff),'NgxNQ':_0x5c352d(0x17f),'YaPgt':_0x5c352d(0x190),'JuhDb':_0x5c352d(0x19d),'qKotl':'close'};!helper[_0x5c352d(0x1b5)](process[_0x5c352d(0x213)][_0x5c352d(0x21a)])&&(process['env'][_0x5c352d(0x21a)]=!![]);process['argv']['includes'](_0x3a693a[_0x5c352d(0x1bc)])&&(process[_0x5c352d(0x213)][_0x5c352d(0x21a)]=_0x3a693a['rQktb'],_0x28e601=_0x28e601[_0x5c352d(0x1fd)](_0x5d1c07=>_0x5d1c07!==_0x5c352d(0x1c7)));const _0x3589b4=_0x28e601[_0x5c352d(0x187)](_0x3a693a['druQr']);_0x3a693a[_0x5c352d(0x192)](_0x3589b4,0x0)&&(process['env']['BROWSERSTACK_TEST_OBSERVABILITY']=_0x3a693a[_0x5c352d(0x1f0)],_0x28e601=_0x28e601[_0x5c352d(0x1fd)](_0x2c7c32=>_0x2c7c32!==_0x5c352d(0x1ea)));try{const _0x3d65cb=path['join'](helper[_0x5c352d(0x19c)](),_0x3a693a[_0x5c352d(0x218)],_0x3a693a[_0x5c352d(0x1bb)]);fs[_0x5c352d(0x20f)](_0x3d65cb)&&fs['unlinkSync'](_0x3d65cb);}catch(_0x2e36ea){logger[_0x5c352d(0x1f6)](_0x3a693a['NkrIw'](_0x3a693a[_0x5c352d(0x1eb)],_0x2e36ea));}if(!_0x3a693a[_0x5c352d(0x197)](isTestCommand,_0x358adc,_0x28e601)){_0x3a693a[_0x5c352d(0x1a3)](spawnOriginalProcess,_0x28e601);return;}const _0x5db1c8=new BrowserStackSetup(_0x358adc,FRAMEWORKS[_0x5c352d(0x219)]);if(!_0x5db1c8[_0x5c352d(0x1a8)]){logger[_0x5c352d(0x1c3)](_0x3a693a[_0x5c352d(0x1a5)]);return;}await _0x5db1c8[_0x5c352d(0x217)]();!helper['isUndefined'](_0x5db1c8[_0x5c352d(0x208)])&&_0x5db1c8[_0x5c352d(0x208)][_0x5c352d(0x1e8)](_0x3a693a[_0x5c352d(0x1c6)])&&(process[_0x5c352d(0x213)][_0x5c352d(0x21a)]=_0x5db1c8[_0x5c352d(0x208)][_0x5c352d(0x1ba)](_0x3a693a[_0x5c352d(0x1c6)])||!![]);_0x3a693a[_0x5c352d(0x19e)](_0x5db1c8[_0x5c352d(0x1a8)]['testObservability'],null)&&!helper[_0x5c352d(0x194)](process[_0x5c352d(0x213)][_0x5c352d(0x191)])&&(process['env'][_0x5c352d(0x191)]=process['env'][_0x5c352d(0x191)]||_0x5db1c8[_0x5c352d(0x1a8)][_0x5c352d(0x1bd)]);const _0x28fc2c=!helper[_0x5c352d(0x1b5)](process[_0x5c352d(0x213)][_0x5c352d(0x191)]);let _0x5b9847=![];_0x5db1c8['config'][_0x5c352d(0x1f4)]&&(_0x5b9847=!![],process[_0x5c352d(0x213)][_0x5c352d(0x193)]=_0x5db1c8['config']['accessibility']);_0x5db1c8['config']['accessibilityOptions']&&(process[_0x5c352d(0x213)][_0x5c352d(0x1b3)]=JSON[_0x5c352d(0x205)](_0x5db1c8[_0x5c352d(0x1a8)]['accessibilityOptions']));const _0xba675e=_0x28e601[_0x5c352d(0x1f8)](),_0x1478a9=await _0x3a693a[_0x5c352d(0x197)](getUserPlaywrightConfig,_0x358adc,_0x28e601);if(helper[_0x5c352d(0x1d2)](_0x1478a9)){_0x3a693a[_0x5c352d(0x1de)](spawnOriginalProcess,_0xba675e);return;}const _0x58ed66=_0x1478a9[_0x5c352d(0x1c4)]?path['dirname'](_0x1478a9[_0x5c352d(0x1c4)]):process['cwd']();process[_0x5c352d(0x213)][_0x5c352d(0x20a)]=_0x58ed66,await TestHubHandler['launchBuild'](FRAMEWORKS[_0x5c352d(0x219)],_0x5db1c8);_0x28fc2c&&_0x3a693a[_0x5c352d(0x1a3)](handleO11yRerun,_0x28e601);let _0x3f0e95=_0x3a693a[_0x5c352d(0x184)](process[_0x5c352d(0x213)][_0x5c352d(0x193)],_0x3a693a[_0x5c352d(0x1f5)]);_0x3f0e95=_0x3f0e95||_0x3a693a[_0x5c352d(0x1a3)](checkAccessibilityPlatformConfig,_0x5db1c8[_0x5c352d(0x1a8)]),process[_0x5c352d(0x213)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x3f0e95;_0x3f0e95&&_0x3a693a[_0x5c352d(0x1ae)](setAccessibilityCapabilities,_0x5db1c8['config']);const _0x271def=path[_0x5c352d(0x198)](_0x1478a9['path']?path[_0x5c352d(0x1b2)](_0x1478a9['path']):process[_0x5c352d(0x1d8)](),_0x3a693a[_0x5c352d(0x1aa)]);fs['writeFileSync'](_0x271def,helper[_0x5c352d(0x1a7)](_0x5db1c8[_0x5c352d(0x1a8)])),process[_0x5c352d(0x213)][_0x5c352d(0x18d)]=_0x271def,helper[_0x5c352d(0x180)]();let _0x5e20f9='';_0x3a693a['LBWhS'](helper['getPackageType'](),constants['PACKAGE_TYPE'][_0x5c352d(0x1d0)])?_0x5e20f9=_0x3a693a[_0x5c352d(0x1cf)]:_0x5e20f9=_0x3a693a[_0x5c352d(0x1c2)];let _0x99859f='';if(helper['isTypescriptProject'](_0x1478a9['path'])){_0x99859f='\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a';const _0x39aa2d=_0x5e20f9['split']('.');_0x39aa2d[_0x3a693a[_0x5c352d(0x1c5)](_0x39aa2d[_0x5c352d(0x1cd)],0x1)]='ts',_0x5e20f9=_0x39aa2d['join']('.'),logger[_0x5c352d(0x1f6)](_0x3a693a[_0x5c352d(0x1af)](_0x3a693a[_0x5c352d(0x1ce)],_0x5e20f9));}else _0x99859f=_0x5c352d(0x1fc);const _0x54798c=path[_0x5c352d(0x198)](_0x1478a9['path']?path[_0x5c352d(0x1b2)](_0x1478a9['path']):process['cwd'](),_0x5e20f9);let _0x53d819=_0x1478a9['path']?_0x1478a9[_0x5c352d(0x1c4)]:'';_0x53d819=_0x3a693a[_0x5c352d(0x1b6)](_0x53d819[_0x5c352d(0x1cd)],0x0)?path['resolve'](_0x53d819):'',process[_0x5c352d(0x213)][_0x5c352d(0x1b4)]=_0x53d819;const _0x161825=helper[_0x5c352d(0x1dd)](_0x5db1c8[_0x5c352d(0x1a8)]);_0x161825&&(_0x99859f=_0x3a693a[_0x5c352d(0x1d9)](_0x5c352d(0x1ed)+_0x161825+_0x5c352d(0x195),_0x99859f));helper[_0x5c352d(0x1c8)]({},_0x28e601),fs[_0x5c352d(0x1b7)](_0x54798c,_0x99859f),helper['markSDKSetupComplete']();const _0x3dc973=_0x3a693a[_0x5c352d(0x18e)](spawn,_0x3a693a[_0x5c352d(0x188)],[_0x3a693a[_0x5c352d(0x1dc)],_0x3a693a[_0x5c352d(0x182)],_0x3a693a[_0x5c352d(0x1e0)],_0x54798c,..._0x28e601[_0x5c352d(0x1e4)](0x2)],{'shell':_0x3a693a[_0x5c352d(0x184)](process[_0x5c352d(0x1ee)],_0x3a693a['YaPgt']),'stdio':_0x3a693a[_0x5c352d(0x202)],'cwd':process[_0x5c352d(0x1d8)](),'env':Object[_0x5c352d(0x199)]({},process[_0x5c352d(0x213)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x5c352d(0x203)](_0x358adc),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x5db1c8[_0x5c352d(0x1a8)][_0x5c352d(0x1fe)][_0x5c352d(0x20b)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x5db1c8[_0x5c352d(0x1a8)][_0x5c352d(0x1fe)][_0x5c352d(0x183)],'BROWSERSTACK_LOG_LEVEL':_0x5db1c8['config'][_0x5c352d(0x1cb)]})}),_0x38f23d=()=>{const _0x154e4c=_0x5c352d;try{const _0x479c29=path[_0x154e4c(0x198)](helper[_0x154e4c(0x19c)](),_0x3a693a[_0x154e4c(0x218)],_0x3a693a['XAEFh']);if(fs[_0x154e4c(0x20f)](_0x479c29)){let _0x2e9ec5=fs[_0x154e4c(0x214)](_0x479c29);_0x2e9ec5=JSON[_0x154e4c(0x216)](_0x2e9ec5),_0x5db1c8['errorMessage']=_0x2e9ec5,fs[_0x154e4c(0x18c)](_0x479c29);}}catch(_0x13df2){logger[_0x154e4c(0x1f6)](_0x3a693a[_0x154e4c(0x1d1)](_0x3a693a['VsEvi'],_0x13df2));}};_0x3dc973['on'](_0x3a693a[_0x5c352d(0x1f3)],async _0x20e666=>{const _0x4041f5=_0x5c352d;try{const _0x289bc4=_0x3a693a[_0x4041f5(0x1a2)][_0x4041f5(0x189)]('|');let _0x149086=0x0;while(!![]){switch(_0x289bc4[_0x149086++]){case'0':_0x3a693a['IamRW'](_0x38f23d);continue;case'1':fs['unlinkSync'](_0x54798c);continue;case'2':fs[_0x4041f5(0x18c)](_0x271def);continue;case'3':process[_0x4041f5(0x1c0)]=_0x20e666;continue;case'4':logger['debug'](_0x4041f5(0x1ef)+_0x20e666);continue;case'5':await utilities['finalExecution'](_0x5db1c8);continue;case'6':await TestHubHandler[_0x4041f5(0x1ca)]();continue;case'7':logger[_0x4041f5(0x1f6)](_0x4041f5(0x1ec)+_0x271def);continue;case'8':logger['info'](_0x4041f5(0x1ec)+_0x54798c);continue;}break;}}catch(_0x3c6e62){logger[_0x4041f5(0x1f6)](_0x3a693a['TkKpD'](_0x3a693a[_0x4041f5(0x185)],_0x3c6e62));}});}module[a35_0x249430(0x181)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a36_0x29f09a=a36_0x125f;function a36_0x5543(){const _0x274d8c=['apply','SenQW','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','./reporter/pwUtils','fork','./patches','includes','winstonLogger','Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20','14yAIxQk','Not\x20able\x20to\x20import\x20globalSetup','debug','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','136179MHsCtL','IVFes','resolve','EHeew','uaKkh','XaDvl','167962NEKBYA','Path\x20','155XdFOVz','function','requirePWModule','format','40YVFYoy','18012MvMZRf','slUYq','../../helpers/logger','15300vAEhYc','MsksZ','../../helpers/helper','\x20is\x20not\x20found','toString','PLAYWRIGHT','config','env','2690JSSTeM','compareVersions','okPBw','1125908GYbUXL','exports','../../helpers/test-observability/utils','Running\x20existing\x20global\x20setup','sxqXI','IvaxO','342728SEJWRX','11671yenzSM'];a36_0x5543=function(){return _0x274d8c;};return a36_0x5543();}function a36_0x125f(_0x4eda4f,_0x1079d0){const _0x554399=a36_0x5543();return a36_0x125f=function(_0x125f5f,_0x121182){_0x125f5f=_0x125f5f-0x1a2;let _0x12e1ae=_0x554399[_0x125f5f];return _0x12e1ae;},a36_0x125f(_0x4eda4f,_0x1079d0);}(function(_0x18ee69,_0x57576c){const _0x1b415e=a36_0x125f,_0x206f2d=_0x18ee69();while(!![]){try{const _0xb3a8b3=parseInt(_0x1b415e(0x1b5))/0x1+-parseInt(_0x1b415e(0x1ab))/0x2*(parseInt(_0x1b415e(0x1bf))/0x3)+parseInt(_0x1b415e(0x1d0))/0x4+parseInt(_0x1b415e(0x1b7))/0x5*(parseInt(_0x1b415e(0x1bc))/0x6)+parseInt(_0x1b415e(0x1ca))/0x7+parseInt(_0x1b415e(0x1bb))/0x8*(-parseInt(_0x1b415e(0x1af))/0x9)+-parseInt(_0x1b415e(0x1c7))/0xa*(parseInt(_0x1b415e(0x1d1))/0xb);if(_0xb3a8b3===_0x57576c)break;else _0x206f2d['push'](_0x206f2d['shift']());}catch(_0x1832f5){_0x206f2d['push'](_0x206f2d['shift']());}}}(a36_0x5543,0x1b0c2));const util=require('util'),child_process=require('child_process'),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{getFrameworkVersion,debug}=require(a36_0x29f09a(0x1cc)),helper=require(a36_0x29f09a(0x1c1)),{getLoadUtilsPath,getForkProcessPath}=require(a36_0x29f09a(0x1a5)),{mockIsWorkerRedundant}=require(a36_0x29f09a(0x1a7)),logger=require(a36_0x29f09a(0x1be))[a36_0x29f09a(0x1a9)];module[a36_0x29f09a(0x1cb)]=async function(_0x335003){const _0x5a5b1f=a36_0x29f09a,_0x412633={'XaDvl':function(_0x5529e9,_0xe04e82){return _0x5529e9(_0xe04e82);},'slUYq':function(_0x40b2ac){return _0x40b2ac();},'lAfOf':'./mock-process.js','IVFes':function(_0x146093){return _0x146093();},'MsksZ':function(_0x330cbb,_0x1a933c){return _0x330cbb(_0x1a933c);},'TsDZX':_0x5a5b1f(0x1cd),'uaKkh':function(_0x4fe1b2){return _0x4fe1b2();},'sxqXI':function(_0x4a2dbd,_0x4de498){return _0x4a2dbd(_0x4de498);},'EHeew':function(_0x228732,_0x180ae6){return _0x228732>=_0x180ae6;},'ogSfT':'1.33.0','IvaxO':function(_0xc18902,_0x5bb4a6,_0x3d62f2){return _0xc18902(_0x5bb4a6,_0x3d62f2);},'okPBw':function(_0x156847,_0x156b45){return _0x156847!==_0x156b45;},'qrpSO':_0x5a5b1f(0x1b8),'SenQW':_0x5a5b1f(0x1ac)},_0x5974b1=child_process[_0x5a5b1f(0x1a6)];if(helper['isHandlePWErrorSet']())try{_0x412633[_0x5a5b1f(0x1b0)](mockIsWorkerRedundant);}catch(_0x542dce){logger[_0x5a5b1f(0x1ad)](_0x5a5b1f(0x1aa)+util[_0x5a5b1f(0x1ba)](_0x542dce));}child_process[_0x5a5b1f(0x1a6)]=function(){const _0x152f2f=_0x5a5b1f;return _0x412633[_0x152f2f(0x1b4)](debug,'Call\x20to\x20child\x20fork\x20with\x20args\x20'+arguments[0x0]),arguments[0x0][_0x152f2f(0x1a8)](_0x412633['slUYq'](getForkProcessPath))?arguments[0x0]=require[_0x152f2f(0x1b1)](_0x412633['lAfOf']):logger['error'](_0x152f2f(0x1b6)+_0x412633[_0x152f2f(0x1bd)](getForkProcessPath)+_0x152f2f(0x1c2)),_0x5974b1[_0x152f2f(0x1a2)](null,arguments);};if(process[_0x5a5b1f(0x1c6)][_0x5a5b1f(0x1a4)]){_0x412633[_0x5a5b1f(0x1c0)](debug,_0x412633['TsDZX']);try{const {loadGlobalHook:_0x5cce2e}=helper[_0x5a5b1f(0x1b9)][_0x5a5b1f(0x1a2)](null,_0x412633[_0x5a5b1f(0x1b3)](getLoadUtilsPath)),_0x45db3e=_0x412633[_0x5a5b1f(0x1ce)](getFrameworkVersion,FRAMEWORKS[_0x5a5b1f(0x1c4)]);let _0x3e1f3d=_0x335003;if(_0x412633[_0x5a5b1f(0x1b2)](helper[_0x5a5b1f(0x1c8)](_0x45db3e,_0x412633['ogSfT']),0x0)){const _0x7775d9={};_0x7775d9[_0x5a5b1f(0x1c5)]=_0x335003,_0x3e1f3d=_0x7775d9;}const _0xe42393=await _0x412633[_0x5a5b1f(0x1cf)](_0x5cce2e,_0x3e1f3d,process['env'][_0x5a5b1f(0x1a4)]);if(_0x412633[_0x5a5b1f(0x1c9)](typeof _0xe42393,_0x412633['qrpSO']))throw new Error(_0x412633[_0x5a5b1f(0x1a3)]);return _0xe42393['apply'](null,arguments);}catch(_0x4c79e4){_0x412633[_0x5a5b1f(0x1ce)](debug,_0x5a5b1f(0x1ae)+_0x4c79e4[_0x5a5b1f(0x1c3)]());}}};
|