browserstack-node-sdk 1.32.16 → 1.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/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/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.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/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/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function a27_0x9a59(_0x565e63,_0x22b27c){const _0x2ae838=a27_0x2ae8();return a27_0x9a59=function(_0x9a59c5,_0x5025f6){_0x9a59c5=_0x9a59c5-0xa8;let _0x4b41a2=_0x2ae838[_0x9a59c5];return _0x4b41a2;},a27_0x9a59(_0x565e63,_0x22b27c);}const a27_0x10c959=a27_0x9a59;(function(_0x434415,_0x527bcb){const _0x43f10a=a27_0x9a59,_0x4ec4c3=_0x434415();while(!![]){try{const _0x18d1b9=parseInt(_0x43f10a(0xe2))/0x1+parseInt(_0x43f10a(0xea))/0x2+-parseInt(_0x43f10a(0x117))/0x3*(parseInt(_0x43f10a(0xfd))/0x4)+parseInt(_0x43f10a(0xcc))/0x5+-parseInt(_0x43f10a(0x106))/0x6+parseInt(_0x43f10a(0x10d))/0x7+-parseInt(_0x43f10a(0x102))/0x8;if(_0x18d1b9===_0x527bcb)break;else _0x4ec4c3['push'](_0x4ec4c3['shift']());}catch(_0x39ce53){_0x4ec4c3['push'](_0x4ec4c3['shift']());}}}(a27_0x2ae8,0xc5834));const logger=require(a27_0x10c959(0x114))[a27_0x10c959(0xc6)],helper=require(a27_0x10c959(0xe4)),constants=require(a27_0x10c959(0x10b)),hubAllocator=require(a27_0x10c959(0xc9)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a27_0x10c959(0x123)),{setAccessibilityCapabilities,setExtension}=require(a27_0x10c959(0xfb)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a27_0x10c959(0xef)),globals=require(a27_0x10c959(0xd9)),modify=(_0x5e7a18,_0x235958=null,_0x132173=![])=>{const _0x263218=a27_0x10c959,_0x27bdb9={'VtDXV':function(_0x1b9ea7,_0x549406){return _0x1b9ea7!==_0x549406;},'nqHXp':_0x263218(0xc4),'CYLcz':function(_0x18e193,_0x6b1c12){return _0x18e193+_0x6b1c12;},'bsbiO':function(_0x546223,_0x5e6957){return _0x546223+_0x5e6957;},'SMobE':_0x263218(0xbd),'KGgbV':_0x263218(0x116),'XlOLL':_0x263218(0xa9),'EkZpo':_0x263218(0x113),'pmDFi':_0x263218(0x115),'wlkDx':_0x263218(0xcf),'rpVZP':_0x263218(0xce),'wSGRK':_0x263218(0xf8),'zdtLF':_0x263218(0xd3),'mURbt':_0x263218(0xf3),'xDPyz':_0x263218(0xb6),'yblRV':function(_0x37b81b,_0x446cf6){return _0x37b81b===_0x446cf6;},'wcpcj':_0x263218(0xbe),'GLWoV':_0x263218(0x124),'JHHWa':_0x263218(0xc7),'pPCXV':function(_0x59b0b7,_0xd0d380,_0x125970){return _0x59b0b7(_0xd0d380,_0x125970);},'LFNDU':function(_0x239c4f,_0xba6bef){return _0x239c4f(_0xba6bef);},'pCAsC':function(_0x24bbe8,_0x230b09,_0x1ae502){return _0x24bbe8(_0x230b09,_0x1ae502);},'cBKXg':_0x263218(0x10c),'FPEeZ':'OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','EUtAY':_0x263218(0xd4),'OXoVr':'isAccessibilityPlatform','ZFoIJ':function(_0x3a6cd0){return _0x3a6cd0();},'GWoxY':function(_0x1ade27,_0x2c4044){return _0x1ade27(_0x2c4044);},'tGqPv':'Running\x20your\x20test\x20suite\x20on\x20BrowserStack','YMpcd':function(_0x3268bd,_0x299852){return _0x3268bd!==_0x299852;},'sAwfT':_0x263218(0xde),'ftFVJ':'Modifying\x20webdriver\x20builder'},_0x469ebc=helper[_0x263218(0x121)]();let _0x2453b5;try{_0x2453b5=helper[_0x263218(0xfa)](),_0x2453b5[_0x263218(0xb2)]&&(_0x2453b5[_0x263218(0xe6)]=_0x2453b5[_0x263218(0xb2)]);}catch(_0x91cf8c){return;}if(helper['isBrowserstackInfra']()){const _0x25bc41={};_0x25bc41[_0x263218(0x110)]=_0x5e7a18[_0x263218(0x10e)],helper[_0x263218(0xf1)](_0x25bc41,new Map(),new Map()),logger[_0x263218(0xe7)](_0x27bdb9[_0x263218(0xad)]),logger[_0x263218(0xb9)](_0x27bdb9[_0x263218(0xe0)]);}class _0x57e18b extends _0x469ebc[_0x263218(0xf7)]{['send'](_0x3e0ceb){const _0x42fd9c=_0x263218;if(_0x27bdb9[_0x42fd9c(0x107)](_0x3e0ceb[_0x42fd9c(0xbf)],_0x27bdb9[_0x42fd9c(0x100)])&&_0x27bdb9[_0x42fd9c(0x107)](global[_0x42fd9c(0xd5)],''))try{global[_0x42fd9c(0xd5)]=_0x27bdb9[_0x42fd9c(0xbc)](_0x27bdb9['bsbiO'](_0x27bdb9[_0x42fd9c(0x125)],global['newHubUrl']),_0x27bdb9[_0x42fd9c(0xc3)]),this['options_']=hubAllocator[_0x42fd9c(0x11d)](global['newHubUrl']),logger[_0x42fd9c(0xb9)](_0x42fd9c(0xba)+global[_0x42fd9c(0xd5)]),global['newHubUrl']='';}catch(_0x4e9244){logger['error'](_0x4e9244);}return super['send'](_0x3e0ceb);}}class _0x4b4737 extends _0x2453b5[_0x263218(0xe6)]{[_0x263218(0xfe)](){const _0x2eb0e2=_0x263218;return this['url_']=helper[_0x2eb0e2(0x11a)](_0x5e7a18),logger[_0x2eb0e2(0xb9)](_0x2eb0e2(0xaa)+this[_0x2eb0e2(0xdd)]),this;}[_0x263218(0xd1)](_0x5d3b27){const _0x3711c3=_0x263218;let _0x2d2a10={};for(const _0x19139f in _0x5d3b27){switch(_0x19139f){case _0x27bdb9[_0x3711c3(0xae)]:case _0x27bdb9[_0x3711c3(0xac)]:this[_0x3711c3(0xf5)]&&(_0x2d2a10=this['chromeOptions_'][_0x3711c3(0xc0)](this[_0x3711c3(0xf5)][_0x3711c3(0xb1)])||{},this['chromeOptions_'][_0x3711c3(0x126)](this['chromeOptions_']['CAPABILITY_KEY'],helper[_0x3711c3(0xb3)](_0x2d2a10,_0x5d3b27[_0x19139f])));break;case _0x27bdb9[_0x3711c3(0xc5)]:case _0x27bdb9[_0x3711c3(0xbb)]:this['edgeOptions_']&&(_0x2d2a10=this[_0x3711c3(0xb4)][_0x3711c3(0xc0)](this[_0x3711c3(0xb4)][_0x3711c3(0xb1)])||{},this[_0x3711c3(0xb4)][_0x3711c3(0x126)](this[_0x3711c3(0xb4)][_0x3711c3(0xb1)],helper[_0x3711c3(0xb3)](_0x2d2a10,_0x5d3b27[_0x19139f])));break;case _0x27bdb9['rpVZP']:case _0x27bdb9['wSGRK']:this['firefoxOptions_']&&(_0x2d2a10=this[_0x3711c3(0x119)][_0x3711c3(0xc0)](this['firefoxOptions_']['CAPABILITY_KEY'])||{},this['firefoxOptions_'][_0x3711c3(0x126)](this[_0x3711c3(0x119)]['CAPABILITY_KEY'],helper[_0x3711c3(0xb3)](_0x2d2a10,_0x5d3b27[_0x19139f])));break;case _0x27bdb9['zdtLF']:this[_0x3711c3(0x108)]&&(_0x2d2a10=this[_0x3711c3(0x108)][_0x3711c3(0xc0)](this[_0x3711c3(0x108)][_0x3711c3(0xb1)])||{},this['safariOptions_']['set'](this[_0x3711c3(0x108)][_0x3711c3(0xb1)],helper['mergeDeep'](_0x2d2a10,_0x5d3b27[_0x19139f])));break;case _0x27bdb9[_0x3711c3(0xdc)]:case _0x27bdb9[_0x3711c3(0xdf)]:this['ieOptions_']&&(_0x2d2a10=this['ieOptions_'][_0x3711c3(0xc0)](this['ieOptions_'][_0x3711c3(0xb1)])||{},this[_0x3711c3(0xd2)][_0x3711c3(0x126)](this['ieOptions_'][_0x3711c3(0xb1)],helper[_0x3711c3(0xb3)](_0x2d2a10,_0x5d3b27[_0x19139f])));break;}}}['setCapabilities'](){const _0x2f3035=_0x263218;return logger['debug'](_0x27bdb9[_0x2f3035(0x111)]),this[_0x2f3035(0xd1)](_0x5e7a18[_0x2f3035(0xb8)]),Object[_0x2f3035(0x11e)](_0x5e7a18['capability'])[_0x2f3035(0xeb)](_0x117755=>{const _0x45e03b=_0x2f3035,_0x5e5f55=this['capabilities_'][_0x45e03b(0xc0)](_0x117755);_0x27bdb9[_0x45e03b(0xff)](typeof _0x5e5f55,_0x27bdb9[_0x45e03b(0xe5)])?this[_0x45e03b(0xcd)]['set'](_0x117755,helper[_0x45e03b(0xb3)](_0x5e5f55,_0x5e7a18['capability'][_0x117755])):this[_0x45e03b(0xcd)]['set'](_0x117755,_0x5e7a18['capability'][_0x117755]);}),this;}[_0x263218(0xb0)](){const _0x2f2f34=_0x263218,_0x5c3a8e={'dvQWJ':_0x27bdb9[_0x2f2f34(0xd6)],'luiJS':_0x27bdb9[_0x2f2f34(0xf4)],'NbTRG':function(_0x3d9d64,_0x137c48,_0x1cbb7b){const _0x255fb1=_0x2f2f34;return _0x27bdb9[_0x255fb1(0xcb)](_0x3d9d64,_0x137c48,_0x1cbb7b);},'PXKfL':function(_0x3cc049,_0x2e4b0a,_0x195bc4){const _0x3a2f2f=_0x2f2f34;return _0x27bdb9[_0x3a2f2f(0xcb)](_0x3cc049,_0x2e4b0a,_0x195bc4);}};if(helper[_0x2f2f34(0xf6)]()){const _0x2703ff=_0x27bdb9[_0x2f2f34(0xc1)]['split']('|');let _0x457548=0x0;while(!![]){switch(_0x2703ff[_0x457548++]){case'0':globals['getGlobal'](_0x27bdb9['OXoVr'])&&(!_0x27bdb9['pCAsC'](setExtension,this,_0x5e7a18)&&globals['setGlobal'](_0x27bdb9[_0x2f2f34(0x101)],![]));continue;case'1':this[_0x2f2f34(0xec)]();continue;case'2':_0x27bdb9[_0x2f2f34(0x104)](isAccessibilityAutomationSession)&&_0x27bdb9[_0x2f2f34(0xab)](setAccessibilityCapabilities,_0x5e7a18);continue;case'3':this[_0x2f2f34(0xfe)]();continue;case'4':logger[_0x2f2f34(0xb9)](_0x27bdb9[_0x2f2f34(0x109)]);continue;case'5':if(helper[_0x2f2f34(0x120)](_0x5e7a18['proxySettings'][_0x2f2f34(0xca)]))this[_0x2f2f34(0xda)]=helper[_0x2f2f34(0xed)](_0x5e7a18[_0x2f2f34(0xb7)][_0x2f2f34(0xca)]);else _0x5e7a18['proxySettings'][_0x2f2f34(0xca)]&&(this[_0x2f2f34(0xe9)]=_0x5e7a18[_0x2f2f34(0xb7)][_0x2f2f34(0xca)],logger[_0x2f2f34(0xb9)](_0x2f2f34(0x112)+this[_0x2f2f34(0xe9)]));continue;}break;}}const _0x2f51bd=super['build']();return _0x2f51bd[_0x2f2f34(0x118)]['then'](_0x413d5c=>{const _0x40b0bf=_0x2f2f34;try{const _0x11b477=_0x413d5c[_0x40b0bf(0xc2)][_0x40b0bf(0xc0)](_0x5c3a8e[_0x40b0bf(0xfc)]);_0x11b477?(logger[_0x40b0bf(0xb9)](_0x40b0bf(0xb5)+_0x11b477),hubAllocator[_0x40b0bf(0x10a)](_0x11b477),helper[_0x40b0bf(0xf9)](_0x11b477)):logger[_0x40b0bf(0xb9)](_0x5c3a8e[_0x40b0bf(0xd0)]);}catch(_0xe09cdf){logger[_0x40b0bf(0xb9)]('ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20'+_0xe09cdf);}}),_0x2f51bd[_0x2f2f34(0xa8)]=0x0,_0x2f51bd['then']&&_0x2f51bd[_0x2f2f34(0xaf)](_0xe42eae=>{const _0x5c2115=_0x2f2f34,_0x3c399e=_0x27bdb9[_0x5c2115(0xe1)][_0x5c2115(0x122)]('|');let _0x5845c8=0x0;while(!![]){switch(_0x3c399e[_0x5845c8++]){case'0':helper[_0x5c2115(0x103)](_0xe42eae,_0x5e7a18);continue;case'1':_0x27bdb9[_0x5c2115(0xcb)](overrideQuit,_0xe42eae,_0x2f51bd);continue;case'2':_0xe42eae[_0x5c2115(0xe8)]=async()=>{const _0x4275d6=_0x5c2115;return await _0x5c3a8e[_0x4275d6(0xd8)](getAccessibilityResultsSummary,_0xe42eae,global);};continue;case'3':_0x27bdb9[_0x5c2115(0x105)](overrideTakeScreenshot,_0xe42eae);continue;case'4':helper[_0x5c2115(0xf0)](_0xe42eae,_0x5e7a18);continue;case'5':_0xe42eae[_0x5c2115(0xf2)]=async()=>{const _0x1c5b5f=_0x5c2115;return await _0x5c3a8e[_0x1c5b5f(0x11f)](getAccessibilityResults,_0xe42eae,global);};continue;}break;}}),_0x2f51bd[_0x2f2f34(0xe8)]=async()=>{const _0x4193dd=_0x2f2f34;return await _0x5c3a8e[_0x4193dd(0x11f)](getAccessibilityResultsSummary,_0x2f51bd,global);},_0x2f51bd['getAccessibilityResults']=async()=>{return await _0x27bdb9['pCAsC'](getAccessibilityResults,_0x2f51bd,global);},_0x27bdb9['LFNDU'](overrideTakeScreenshot,_0x2f51bd),_0x27bdb9[_0x2f2f34(0x105)](overrideQuit,_0x2f51bd),helper[_0x2f2f34(0x103)](_0x2f51bd,_0x5e7a18),helper[_0x2f2f34(0xf0)](_0x2f51bd,_0x5e7a18),helper[_0x2f2f34(0x11c)](global['__driversArray'])&&(global[_0x2f2f34(0xee)]=[]),helper['isUndefined'](global[_0x2f2f34(0x11b)])&&(global[_0x2f2f34(0x11b)]=[]),global[_0x2f2f34(0xee)][_0x2f2f34(0xe3)](_0x2f51bd),global[_0x2f2f34(0xd7)]=_0x2f51bd,_0x27bdb9[_0x2f2f34(0x10f)](global[_0x2f2f34(0x11b)],undefined)&&global[_0x2f2f34(0x11b)][_0x2f2f34(0xe3)](_0x2f51bd),_0x235958&&helper['isUndefined'](_0x235958[_0x2f2f34(0xdb)][_0x2f2f34(0xee)])&&(_0x235958[_0x2f2f34(0xdb)][_0x2f2f34(0xee)]=[]),_0x235958&&_0x27bdb9[_0x2f2f34(0x107)](_0x235958[_0x2f2f34(0xdb)]['__drivers'],undefined)&&(_0x235958[_0x2f2f34(0xdb)][_0x2f2f34(0x11b)][_0x2f2f34(0xe3)](_0x2f51bd),_0x235958[_0x2f2f34(0xdb)]['__driversArray'][_0x2f2f34(0xe3)](_0x2f51bd)),_0x2f51bd;}}return _0x2453b5['originalBuilder']=_0x2453b5[_0x263218(0xe6)],_0x2453b5[_0x263218(0xe6)]=_0x4b4737,_0x469ebc[_0x263218(0xf7)]=_0x57e18b,_0x2453b5;};function a27_0x2ae8(){const _0xce5d0e=['ms:edgeOptions','/wd/hub','1618917oXbPRZ','session_','firefoxOptions_','getHubUrl','__drivers','isUndefined','getRequestOptions','keys','PXKfL','isPacProxy','requireHttpClient','split','../../../helpers/patchHelpers','Setting\x20Browserstack\x20capabilities','SMobE','set','quitCount_','goog:chromeOptions','Hub\x20url\x20set\x20to\x20','GWoxY','EkZpo','sAwfT','XlOLL','then','build','CAPABILITY_KEY','originalBuilder','mergeDeep','edgeOptions_','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','ieOptions','proxySettings','capability','debug','New\x20hub\x20url\x20set\x20to\x20','wlkDx','CYLcz','https://','object','path','get','EUtAY','caps_','KGgbV','/session','pmDFi','winstonLogger','1|3|0|4|2|5','browserstackAgentObservability','../../../hubAllocationMethods','proxyUrl','pPCXV','8074015nLpcnN','capabilities_','moz:firefoxOptions','edgeOptions','luiJS','__setBrowserOptions','ieOptions_','safari.options','2|3|1|5|0|4','newHubUrl','cBKXg','__driver','NbTRG','../../../helpers/globals','agent_','global','mURbt','url_','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','xDPyz','ftFVJ','JHHWa','625160pYZVFc','push','../../../helpers/helper','wcpcj','Builder','info','getAccessibilityResultsSummary','proxy_','3187282cKvGtZ','forEach','setCapabilities','getHttpAgent','__driversArray','../../../helpers/accessibility-automation/helper','overrideExecute','setLogLevel','getAccessibilityResults','se:ieOptions','FPEeZ','chromeOptions_','isBrowserstackInfra','HttpClient','firefoxOptions','storeOptimalHubUrl','requireSeleniumWebdriver','../accessibility-automation/helper','dvQWJ','8fSPkoG','setServer','yblRV','nqHXp','OXoVr','19647624tSQzXB','overrideGet','ZFoIJ','LFNDU','2857380fikoZj','VtDXV','safariOptions_','tGqPv','updateHubUrl','../../../bin/utils/constants','optimalHubUrl','6908083rzWMCi','browserStackLogLevel','YMpcd','logLevel','GLWoV','Proxy\x20set\x20to\x20','chromeOptions','../../../helpers/logger'];a27_0x2ae8=function(){return _0xce5d0e;};return a27_0x2ae8();}module['exports'][a27_0x10c959(0xc8)]=modify;
|
|
1
|
+
const a27_0x30c9cb=a27_0x14ce;(function(_0x3ed3d5,_0xa88d86){const _0x9cd39c=a27_0x14ce,_0x249106=_0x3ed3d5();while(!![]){try{const _0x343832=parseInt(_0x9cd39c(0xa8))/0x1+-parseInt(_0x9cd39c(0xff))/0x2*(parseInt(_0x9cd39c(0xfa))/0x3)+parseInt(_0x9cd39c(0xc3))/0x4*(-parseInt(_0x9cd39c(0xdb))/0x5)+parseInt(_0x9cd39c(0xa5))/0x6+parseInt(_0x9cd39c(0xed))/0x7*(-parseInt(_0x9cd39c(0xcb))/0x8)+-parseInt(_0x9cd39c(0xe8))/0x9*(parseInt(_0x9cd39c(0xc8))/0xa)+parseInt(_0x9cd39c(0xd9))/0xb*(parseInt(_0x9cd39c(0x9a))/0xc);if(_0x343832===_0xa88d86)break;else _0x249106['push'](_0x249106['shift']());}catch(_0x10ceff){_0x249106['push'](_0x249106['shift']());}}}(a27_0x3238,0x3396e));const logger=require(a27_0x30c9cb(0xce))[a27_0x30c9cb(0xfb)],helper=require(a27_0x30c9cb(0xa9)),constants=require(a27_0x30c9cb(0xf4)),hubAllocator=require('../../../hubAllocationMethods'),{overrideQuit,overrideTakeScreenshot,overrideGet}=require('../../../helpers/patchHelpers'),{setAccessibilityCapabilities,setExtension}=require('../accessibility-automation/helper'),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a27_0x30c9cb(0xc7)),globals=require(a27_0x30c9cb(0xf2)),modify=(_0x4b9b33,_0x4f1481=null,_0x4edb02=![])=>{const _0x300763=a27_0x30c9cb,_0x21765d={'IQOCl':function(_0x38c12d,_0x55f949){return _0x38c12d!==_0x55f949;},'xCJMG':_0x300763(0xe3),'wvuag':function(_0x19aa53,_0x1e1f8e){return _0x19aa53!==_0x1e1f8e;},'PTrSz':function(_0x417ed4,_0x4b4a55){return _0x417ed4+_0x4b4a55;},'LhfMu':'https://','BkaPM':_0x300763(0xe7),'kqTxe':_0x300763(0xc6),'IidBr':_0x300763(0xad),'OUUMP':'ms:edgeOptions','Akvlq':_0x300763(0xa2),'IEWqi':_0x300763(0xa1),'rERIx':'firefoxOptions','tCuKq':_0x300763(0xab),'odXnF':'se:ieOptions','PzRST':_0x300763(0xee),'nzPrE':function(_0x24a58c,_0x3ccc7c){return _0x24a58c===_0x3ccc7c;},'ZrIMn':'object','pyRzM':_0x300763(0xb7),'rSHEs':function(_0x587b3a,_0x540435,_0xfa04f5){return _0x587b3a(_0x540435,_0xfa04f5);},'OTOYk':function(_0x308168,_0x422957,_0x38f520){return _0x308168(_0x422957,_0x38f520);},'PGtml':function(_0x17fe2e,_0x20e82f,_0x853d58){return _0x17fe2e(_0x20e82f,_0x853d58);},'oZQfS':function(_0x2fb1ff,_0x1b212d){return _0x2fb1ff(_0x1b212d);},'xlzjn':function(_0x2d24b0,_0x3a75b0,_0x337827){return _0x2d24b0(_0x3a75b0,_0x337827);},'XTrcA':_0x300763(0x10b),'RMfGd':_0x300763(0x10d),'lJMQv':function(_0x19ec8f,_0x22e5cc,_0x45ef1f){return _0x19ec8f(_0x22e5cc,_0x45ef1f);},'PxXlU':_0x300763(0xe2),'OYDSk':function(_0x3c6c0f){return _0x3c6c0f();},'Bgwif':_0x300763(0xd2),'ORWMF':function(_0x5d215a,_0x836bbf,_0x16e505){return _0x5d215a(_0x836bbf,_0x16e505);},'fskWQ':_0x300763(0xbc),'xprbE':function(_0x4995d1,_0x4ef9d8){return _0x4995d1(_0x4ef9d8);},'KjliR':function(_0x53542b,_0x3cf114){return _0x53542b!==_0x3cf114;},'XGfjR':_0x300763(0xf1),'MhEfP':'Modifying\x20webdriver\x20builder'},_0x13626c=helper[_0x300763(0xda)]();let _0x173b46;try{_0x173b46=helper[_0x300763(0xea)](),_0x173b46[_0x300763(0xd3)]&&(_0x173b46['Builder']=_0x173b46[_0x300763(0xd3)]);}catch(_0x192610){return;}if(helper[_0x300763(0xb0)]()){const _0x341701={};_0x341701[_0x300763(0x8d)]=_0x4b9b33[_0x300763(0x92)],helper[_0x300763(0xdf)](_0x341701,new Map(),new Map()),logger[_0x300763(0xeb)](_0x21765d[_0x300763(0x8c)]),logger[_0x300763(0xb6)](_0x21765d[_0x300763(0xec)]);}class _0x1d5887 extends _0x13626c['HttpClient']{['send'](_0x2229d0){const _0x2e3c36=_0x300763;if(_0x21765d[_0x2e3c36(0xa0)](_0x2229d0[_0x2e3c36(0xf8)],_0x21765d[_0x2e3c36(0xfe)])&&_0x21765d[_0x2e3c36(0xc0)](global[_0x2e3c36(0xb2)],''))try{global[_0x2e3c36(0xb2)]=_0x21765d[_0x2e3c36(0x103)](_0x21765d[_0x2e3c36(0x103)](_0x21765d[_0x2e3c36(0xac)],global[_0x2e3c36(0xb2)]),_0x21765d[_0x2e3c36(0x104)]),this['options_']=hubAllocator[_0x2e3c36(0x10a)](global[_0x2e3c36(0xb2)]),logger[_0x2e3c36(0xb6)](_0x2e3c36(0xfc)+global[_0x2e3c36(0xb2)]),global['newHubUrl']='';}catch(_0x37c09a){logger[_0x2e3c36(0x102)](_0x37c09a);}return super[_0x2e3c36(0xa4)](_0x2229d0);}}class _0x58617a extends _0x173b46[_0x300763(0xf0)]{['setServer'](){const _0x3fd7f7=_0x300763;return this[_0x3fd7f7(0x107)]=helper[_0x3fd7f7(0x90)](_0x4b9b33),logger[_0x3fd7f7(0xb6)](_0x3fd7f7(0xdd)+this[_0x3fd7f7(0x107)]),this;}[_0x300763(0x105)](_0x33c3e9){const _0xcf1863=_0x300763;let _0x490cd3={};for(const _0xaeef14 in _0x33c3e9){switch(_0xaeef14){case _0x21765d['kqTxe']:case _0x21765d[_0xcf1863(0xa7)]:this[_0xcf1863(0x94)]&&(_0x490cd3=this[_0xcf1863(0x94)][_0xcf1863(0xd8)](this['chromeOptions_'][_0xcf1863(0x10e)])||{},this[_0xcf1863(0x94)][_0xcf1863(0xbd)](this['chromeOptions_'][_0xcf1863(0x10e)],helper['mergeDeep'](_0x490cd3,_0x33c3e9[_0xaeef14])));break;case _0x21765d[_0xcf1863(0x9f)]:case _0x21765d['Akvlq']:this[_0xcf1863(0xb9)]&&(_0x490cd3=this['edgeOptions_']['get'](this[_0xcf1863(0xb9)]['CAPABILITY_KEY'])||{},this[_0xcf1863(0xb9)][_0xcf1863(0xbd)](this[_0xcf1863(0xb9)][_0xcf1863(0x10e)],helper[_0xcf1863(0x95)](_0x490cd3,_0x33c3e9[_0xaeef14])));break;case _0x21765d[_0xcf1863(0x109)]:case _0x21765d[_0xcf1863(0xcc)]:this[_0xcf1863(0xf3)]&&(_0x490cd3=this[_0xcf1863(0xf3)][_0xcf1863(0xd8)](this['firefoxOptions_'][_0xcf1863(0x10e)])||{},this[_0xcf1863(0xf3)][_0xcf1863(0xbd)](this[_0xcf1863(0xf3)]['CAPABILITY_KEY'],helper[_0xcf1863(0x95)](_0x490cd3,_0x33c3e9[_0xaeef14])));break;case _0x21765d[_0xcf1863(0xe6)]:this[_0xcf1863(0xaa)]&&(_0x490cd3=this[_0xcf1863(0xaa)][_0xcf1863(0xd8)](this[_0xcf1863(0xaa)]['CAPABILITY_KEY'])||{},this[_0xcf1863(0xaa)]['set'](this[_0xcf1863(0xaa)][_0xcf1863(0x10e)],helper[_0xcf1863(0x95)](_0x490cd3,_0x33c3e9[_0xaeef14])));break;case _0x21765d[_0xcf1863(0xd6)]:case _0x21765d[_0xcf1863(0xf6)]:this[_0xcf1863(0xb5)]&&(_0x490cd3=this['ieOptions_'][_0xcf1863(0xd8)](this[_0xcf1863(0xb5)][_0xcf1863(0x10e)])||{},this['ieOptions_'][_0xcf1863(0xbd)](this['ieOptions_']['CAPABILITY_KEY'],helper['mergeDeep'](_0x490cd3,_0x33c3e9[_0xaeef14])));break;}}}[_0x300763(0xd5)](){const _0x1a4abb=_0x300763,_0x3b143e={'kSfOy':function(_0x311ed6,_0xc16a44){const _0x1176c1=a27_0x14ce;return _0x21765d[_0x1176c1(0xef)](_0x311ed6,_0xc16a44);},'STzpx':_0x21765d[_0x1a4abb(0xc5)]};return logger[_0x1a4abb(0xb6)](_0x21765d[_0x1a4abb(0x9c)]),this['__setBrowserOptions'](_0x4b9b33[_0x1a4abb(0xde)]),Object[_0x1a4abb(0xf5)](_0x4b9b33[_0x1a4abb(0xde)])[_0x1a4abb(0x106)](_0x578bb7=>{const _0x36b5a2=_0x1a4abb,_0x649f02=this[_0x36b5a2(0xca)]['get'](_0x578bb7);_0x3b143e[_0x36b5a2(0xe0)](typeof _0x649f02,_0x3b143e[_0x36b5a2(0xbe)])?this[_0x36b5a2(0xca)][_0x36b5a2(0xbd)](_0x578bb7,helper[_0x36b5a2(0x95)](_0x649f02,_0x4b9b33[_0x36b5a2(0xde)][_0x578bb7])):this[_0x36b5a2(0xca)][_0x36b5a2(0xbd)](_0x578bb7,_0x4b9b33[_0x36b5a2(0xde)][_0x578bb7]);}),this;}['build'](){const _0x103bee=_0x300763,_0x305168={'JaSSW':_0x21765d[_0x103bee(0xe9)],'viOhS':_0x21765d[_0x103bee(0x108)],'VfDHN':function(_0x1ce7a4,_0x4767cf,_0x40e36a){const _0x2c9b10=_0x103bee;return _0x21765d[_0x2c9b10(0xbb)](_0x1ce7a4,_0x4767cf,_0x40e36a);}};if(helper[_0x103bee(0xb0)]()){const _0x85bdde=_0x21765d['PxXlU'][_0x103bee(0x96)]('|');let _0x365c96=0x0;while(!![]){switch(_0x85bdde[_0x365c96++]){case'0':this[_0x103bee(0x98)]();continue;case'1':_0x21765d['OYDSk'](isAccessibilityAutomationSession)&&_0x21765d[_0x103bee(0x93)](setAccessibilityCapabilities,_0x4b9b33);continue;case'2':if(helper[_0x103bee(0x91)](_0x4b9b33['proxySettings'][_0x103bee(0xb3)]))this[_0x103bee(0x9e)]=helper['getHttpAgent'](_0x4b9b33[_0x103bee(0xae)]['proxyUrl']);else _0x4b9b33[_0x103bee(0xae)][_0x103bee(0xb3)]&&(this[_0x103bee(0x8f)]=_0x4b9b33[_0x103bee(0xae)][_0x103bee(0xb3)],logger['debug'](_0x103bee(0x101)+this[_0x103bee(0x8f)]));continue;case'3':globals[_0x103bee(0xd4)](_0x21765d[_0x103bee(0xd7)])&&(!_0x21765d[_0x103bee(0xb1)](setExtension,this,_0x4b9b33)&&globals[_0x103bee(0xdc)](_0x21765d[_0x103bee(0xd7)],![]));continue;case'4':logger['debug'](_0x21765d[_0x103bee(0xc9)]);continue;case'5':this[_0x103bee(0xd5)]();continue;}break;}}const _0x24da07=super[_0x103bee(0xe4)]();return _0x24da07[_0x103bee(0xd1)][_0x103bee(0xc1)](_0x2e7e6e=>{const _0x7d1359=_0x103bee;try{const _0x19f8d4=_0x2e7e6e[_0x7d1359(0xfd)][_0x7d1359(0xd8)](_0x305168[_0x7d1359(0x10c)]);_0x19f8d4?(logger[_0x7d1359(0xb6)]('SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20'+_0x19f8d4),hubAllocator[_0x7d1359(0xaf)](_0x19f8d4),helper[_0x7d1359(0xb8)](_0x19f8d4)):logger[_0x7d1359(0xb6)](_0x305168['viOhS']);}catch(_0x3c573c){logger[_0x7d1359(0xb6)](_0x7d1359(0xcd)+_0x3c573c);}}),_0x24da07['quitCount_']=0x0,_0x24da07[_0x103bee(0xc1)]&&_0x24da07[_0x103bee(0xc1)](_0x16db10=>{const _0x2ba34a=_0x103bee,_0x5da965={'EqQML':function(_0x2df6a8,_0x1d992c,_0x4aed61){const _0x36a5b0=a27_0x14ce;return _0x21765d[_0x36a5b0(0xba)](_0x2df6a8,_0x1d992c,_0x4aed61);},'EoAEu':function(_0x2d080f,_0x14107f,_0x5f4456){const _0x16307e=a27_0x14ce;return _0x21765d[_0x16307e(0x8e)](_0x2d080f,_0x14107f,_0x5f4456);}};_0x21765d[_0x2ba34a(0xe5)](overrideQuit,_0x16db10,_0x24da07),_0x21765d[_0x2ba34a(0x93)](overrideTakeScreenshot,_0x16db10),helper[_0x2ba34a(0xf7)](_0x16db10,_0x4b9b33),helper['overrideExecute'](_0x16db10,_0x4b9b33),_0x16db10[_0x2ba34a(0x97)]=async()=>{const _0x4763e4=_0x2ba34a;return await _0x5da965[_0x4763e4(0xc4)](getAccessibilityResultsSummary,_0x16db10,global);},_0x16db10[_0x2ba34a(0xa3)]=async()=>{return await _0x5da965['EoAEu'](getAccessibilityResults,_0x16db10,global);};}),_0x24da07[_0x103bee(0x97)]=async()=>{const _0x2a7c24=_0x103bee;return await _0x305168[_0x2a7c24(0xc2)](getAccessibilityResultsSummary,_0x24da07,global);},_0x24da07[_0x103bee(0xa3)]=async()=>{return await _0x21765d['xlzjn'](getAccessibilityResults,_0x24da07,global);},_0x21765d['oZQfS'](overrideTakeScreenshot,_0x24da07),_0x21765d[_0x103bee(0xa6)](overrideQuit,_0x24da07),helper['overrideGet'](_0x24da07,_0x4b9b33),helper[_0x103bee(0x9d)](_0x24da07,_0x4b9b33),helper[_0x103bee(0xb4)](global[_0x103bee(0xf9)])&&(global[_0x103bee(0xf9)]=[]),helper[_0x103bee(0xb4)](global['__drivers'])&&(global[_0x103bee(0xe1)]=[]),global['__driversArray'][_0x103bee(0x9b)](_0x24da07),global[_0x103bee(0x100)]=_0x24da07,_0x21765d[_0x103bee(0x99)](global[_0x103bee(0xe1)],undefined)&&global['__drivers'][_0x103bee(0x9b)](_0x24da07),_0x4f1481&&helper[_0x103bee(0xb4)](_0x4f1481['global'][_0x103bee(0xf9)])&&(_0x4f1481[_0x103bee(0xd0)][_0x103bee(0xf9)]=[]),_0x4f1481&&_0x21765d['IQOCl'](_0x4f1481['global'][_0x103bee(0xe1)],undefined)&&(_0x4f1481[_0x103bee(0xd0)]['__drivers']['push'](_0x24da07),_0x4f1481[_0x103bee(0xd0)][_0x103bee(0xf9)]['push'](_0x24da07)),_0x24da07;}}return _0x173b46[_0x300763(0xd3)]=_0x173b46[_0x300763(0xf0)],_0x173b46[_0x300763(0xf0)]=_0x58617a,_0x13626c[_0x300763(0xbf)]=_0x1d5887,_0x173b46;};function a27_0x14ce(_0x2037c9,_0x5812e1){const _0x323871=a27_0x3238();return a27_0x14ce=function(_0x14cecb,_0x5067e7){_0x14cecb=_0x14cecb-0x8c;let _0x4110ec=_0x323871[_0x14cecb];return _0x4110ec;},a27_0x14ce(_0x2037c9,_0x5812e1);}function a27_0x3238(){const _0x1c121b=['rERIx','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','../../../helpers/logger','browserstackAgentObservability','global','session_','isAccessibilityPlatform','originalBuilder','getGlobal','setCapabilities','odXnF','Bgwif','get','11MVAYwR','requireHttpClient','326320ZaMdSg','setGlobal','Hub\x20url\x20set\x20to\x20','capability','setLogLevel','kSfOy','__drivers','1|0|5|2|3|4','/session','build','PGtml','tCuKq','/wd/hub','36WEbBYd','XTrcA','requireSeleniumWebdriver','info','MhEfP','7UQGRAL','ieOptions','nzPrE','Builder','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','../../../helpers/globals','firefoxOptions_','../../../bin/utils/constants','keys','PzRST','overrideGet','path','__driversArray','78765RuNoKq','winstonLogger','New\x20hub\x20url\x20set\x20to\x20','caps_','xCJMG','6agroxR','__driver','Proxy\x20set\x20to\x20','error','PTrSz','BkaPM','__setBrowserOptions','forEach','url_','RMfGd','IEWqi','getRequestOptions','optimalHubUrl','JaSSW','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','CAPABILITY_KEY','XGfjR','logLevel','OTOYk','proxy_','getHubUrl','isPacProxy','browserStackLogLevel','oZQfS','chromeOptions_','mergeDeep','split','getAccessibilityResultsSummary','setServer','KjliR','3273216JHAAdi','push','pyRzM','overrideExecute','agent_','OUUMP','IQOCl','moz:firefoxOptions','edgeOptions','getAccessibilityResults','send','2075598LfqOFy','xprbE','IidBr','226004lAkCcI','../../../helpers/helper','safariOptions_','safari.options','LhfMu','chromeOptions','proxySettings','updateHubUrl','isBrowserstackInfra','ORWMF','newHubUrl','proxyUrl','isUndefined','ieOptions_','debug','Setting\x20Browserstack\x20capabilities','storeOptimalHubUrl','edgeOptions_','rSHEs','lJMQv','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','set','STzpx','HttpClient','wvuag','then','VfDHN','4kajjcD','EqQML','ZrIMn','goog:chromeOptions','../../../helpers/accessibility-automation/helper','349540WGYmrK','fskWQ','capabilities_','2796400bZzCeS'];a27_0x3238=function(){return _0x1c121b;};return a27_0x3238();}module['exports'][a27_0x30c9cb(0xcf)]=modify;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a28_0x6227(_0x38cea4,_0x1d1355){const _0x3e88d7=a28_0x3e88();return a28_0x6227=function(_0x622783,_0x17caf1){_0x622783=_0x622783-0x1e6;let _0x601e96=_0x3e88d7[_0x622783];return _0x601e96;},a28_0x6227(_0x38cea4,_0x1d1355);}const a28_0x3b2fb5=a28_0x6227;(function(_0x16ecee,_0x2daaa5){const _0x279849=a28_0x6227,_0x123c7e=_0x16ecee();while(!![]){try{const _0x10e5d7=parseInt(_0x279849(0x1eb))/0x1*(parseInt(_0x279849(0x1e8))/0x2)+parseInt(_0x279849(0x1ed))/0x3+parseInt(_0x279849(0x1f4))/0x4*(-parseInt(_0x279849(0x1ec))/0x5)+-parseInt(_0x279849(0x1f3))/0x6*(parseInt(_0x279849(0x1ee))/0x7)+parseInt(_0x279849(0x1ef))/0x8+parseInt(_0x279849(0x1f0))/0x9+-parseInt(_0x279849(0x1ea))/0xa;if(_0x10e5d7===_0x2daaa5)break;else _0x123c7e['push'](_0x123c7e['shift']());}catch(_0x560765){_0x123c7e['push'](_0x123c7e['shift']());}}}(a28_0x3e88,0xc7853));function a28_0x3e88(){const _0x320618=['7nedPdA','67285ivmwbo','2211636kxjgCz','7JSommU','2078064cbDuZs','11955951yNxblK','timeout','../../../helpers/request-spy','3423438IucGWI','288bEOkjc','vEYqX','../../../helpers/test-observability/utils','156314sNzYPX','mochaHooks','5157960hDhlyB'];a28_0x3e88=function(){return _0x320618;};return a28_0x3e88();}const requestSpy=require(a28_0x3b2fb5(0x1f2)),constants=require('../../../bin/utils/constants'),{addRequestSpy}=require(a28_0x3b2fb5(0x1e7));exports[a28_0x3b2fb5(0x1e9)]={'beforeAll'(){const _0x16fdba=a28_0x3b2fb5,_0x165729={'vEYqX':function(_0x4a9e3d){return _0x4a9e3d();}},_0x27d675='browserstack internal helper hook';_0x165729[_0x16fdba(0x1e6)](addRequestSpy);},'afterAll'(){const _0x579915=a28_0x3b2fb5,_0x1c7c36='browserstack internal helper hook';this[_0x579915(0x1f1)](0xea60),requestSpy['restore']();}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a29_0x85e490=a29_0x1798;function a29_0x1798(_0x4acafd,_0x548915){const _0x5c3d19=a29_0x5c3d();return a29_0x1798=function(_0x1798f7,_0x44e84c){_0x1798f7=_0x1798f7-0xdc;let _0x4d1544=_0x5c3d19[_0x1798f7];return _0x4d1544;},a29_0x1798(_0x4acafd,_0x548915);}(function(_0x49fe1d,_0x3c5b3c){const _0x4c20d7=a29_0x1798,_0x2dfb1f=_0x49fe1d();while(!![]){try{const _0x419f18=parseInt(_0x4c20d7(0x10b))/0x1*(parseInt(_0x4c20d7(0x11a))/0x2)+-parseInt(_0x4c20d7(0x122))/0x3+parseInt(_0x4c20d7(0xdd))/0x4+parseInt(_0x4c20d7(0x131))/0x5*(parseInt(_0x4c20d7(0xea))/0x6)+parseInt(_0x4c20d7(0xe2))/0x7+parseInt(_0x4c20d7(0x111))/0x8*(-parseInt(_0x4c20d7(0x12e))/0x9)+-parseInt(_0x4c20d7(0x125))/0xa;if(_0x419f18===_0x3c5b3c)break;else _0x2dfb1f['push'](_0x2dfb1f['shift']());}catch(_0x57e786){_0x2dfb1f['push'](_0x2dfb1f['shift']());}}}(a29_0x5c3d,0xa9559));function a29_0x5c3d(){const _0x40b77e=['getCapabilities','QlpqF','filter','PmZTb','toJSON','keys','pyajN','uuid','fromEntries','generic','automate','substring','JAYUR','_beforeAll','caACM','type','string','pid','3HWoypw','getHooksForTest','app-automate','toISOString','unknown_grid','rVJPX','4375688oRXrjM','FQlcd','gPVeO','getHookSkippedTests','_afterAll','forEach','../../../helpers/test-observability/constants','slice','hook','656114obLsHq','../../utils/logReportingAPI','../../../../package.json','sXrOH','reduce','../../../helpers/testhub/utils','qaENe','AvGbK','1278360AkXNwG','TEST_PLATFORM','indexOf','6445770CUOHrq','CbWLu','_afterEach','Bygkz','state','YgJRF','js-','getSession','getTestEnv','18HfkmbK','IJbWW','EmkcC','85LRsBHB','mapTestHooks','markedStatus','JTDGh','concat','122760KSEhsI','BQkhE','map_','parent','qtPqY','8351231qAlkDB','oTdXK','failed','pending','wZGoE','TLhIE','Jfjvj','hczZa','229524vbPGJN','browserstack','pBOLE','__cloud_provider___','qJbLC','uHwPN','tests','_beforeEach','bs:addPlatformDetails:','../../../helpers/test-observability/utils','getHookDetails','hook:','passed','hookAnalyticsId','split'];a29_0x5c3d=function(){return _0x40b77e;};return a29_0x5c3d();}const {v4:uuidv4}=require(a29_0x85e490(0x100)),{name,version}=require(a29_0x85e490(0x11c)),logPatcher=require('../../utils/logPatcher'),BSTestOpsPatcher=new logPatcher({}),logReportingAPI=require(a29_0x85e490(0x11b)),BSTestOpsLogger=new logReportingAPI({}),{debug,isTestObservabilitySession,isInternalHook}=require(a29_0x85e490(0xf3)),{consoleHolder}=require(a29_0x85e490(0x117)),{getPlatformVersion}=require('../../../helpers/helper'),{shouldProcessEventForTesthub}=require(a29_0x85e490(0x11f));console={},Object[a29_0x85e490(0xfe)](consoleHolder)[a29_0x85e490(0x116)](_0x54eb87=>{console[_0x54eb87]=(..._0x51a64b)=>{BSTestOpsPatcher[_0x54eb87](..._0x51a64b);};}),exports[a29_0x85e490(0x12d)]=()=>{const _0x429d60=a29_0x85e490,_0x3a5e1f={'EmkcC':_0x429d60(0x102),'pyajN':function(_0x5ccc92){return _0x5ccc92();}};return{'ci':_0x3a5e1f[_0x429d60(0x130)],'key':_0x3a5e1f[_0x429d60(0xff)](uuidv4),'version':version,'collector':_0x429d60(0x12b)+name};},exports[a29_0x85e490(0xf4)]=_0x2c2a07=>{const _0x44ac51=a29_0x85e490,_0x271aff={};_0x271aff['AvGbK']=function(_0x3506e1,_0x4678cf){return _0x3506e1!==_0x4678cf;},_0x271aff['hczZa']=_0x44ac51(0x109),_0x271aff[_0x44ac51(0xef)]=_0x44ac51(0xf5),_0x271aff[_0x44ac51(0xee)]=function(_0x74f5da,_0x5bb8d6){return _0x74f5da!==_0x5bb8d6;},_0x271aff[_0x44ac51(0x105)]='hook';const _0x2a6989=_0x271aff;if(!_0x2c2a07||_0x2a6989[_0x44ac51(0x121)](typeof _0x2c2a07,_0x2a6989[_0x44ac51(0xe9)]))return[null,null];if(_0x2a6989[_0x44ac51(0x121)](_0x2c2a07[_0x44ac51(0x124)](_0x2a6989[_0x44ac51(0xef)]),-0x1)){const _0x236ce7=_0x2c2a07[_0x44ac51(0xf8)](_0x2a6989[_0x44ac51(0xef)]);return[_0x236ce7[0x0][_0x44ac51(0x118)](0x0,-0x1)[_0x44ac51(0xf8)]('\x22')[0x1],_0x236ce7[0x1][_0x44ac51(0x104)](0x1)];}else{if(_0x2a6989[_0x44ac51(0xee)](_0x2c2a07['indexOf'](_0x2a6989[_0x44ac51(0x105)]),-0x1)){const _0x21790c=_0x2c2a07['split'](_0x2a6989['JAYUR']);return[_0x21790c[0x0][_0x44ac51(0x118)](0x0,-0x1)[_0x44ac51(0xf8)]('\x22')[0x1],_0x2c2a07];}}return[null,null];},exports[a29_0x85e490(0x10c)]=_0x47e7e2=>{const _0x18c030=a29_0x85e490,_0x4441fd={'TLhIE':function(_0x1cf67b,_0x3a69a2){return _0x1cf67b(_0x3a69a2);},'gzBpl':_0x18c030(0x106),'QlpqF':_0x18c030(0x115),'Bygkz':'_beforeEach','rVJPX':_0x18c030(0x127)};if(!_0x47e7e2||!_0x47e7e2[_0x18c030(0xe0)])return[];const _0x35e38c=[];return[_0x4441fd['gzBpl'],_0x4441fd[_0x18c030(0xfa)],_0x4441fd[_0x18c030(0x128)],_0x4441fd[_0x18c030(0x110)]][_0x18c030(0x116)](_0x1ad167=>{const _0x4d9035=_0x18c030,_0x7f03b7={'caACM':function(_0x6de720,_0x365087){const _0x4b31d1=a29_0x1798;return _0x4441fd[_0x4b31d1(0xe7)](_0x6de720,_0x365087);}},_0x27ece7=_0x47e7e2['parent'][_0x1ad167]||[];_0x27ece7[_0x4d9035(0x116)](_0x24e704=>{const _0x5e72a5=_0x4d9035;_0x24e704['hookAnalyticsId']&&!_0x7f03b7[_0x5e72a5(0x107)](isInternalHook,_0x24e704['fn'])&&_0x35e38c['push'](_0x24e704[_0x5e72a5(0xf7)]);});}),[..._0x35e38c,...exports[_0x18c030(0x10c)](_0x47e7e2[_0x18c030(0xe0)])];},exports[a29_0x85e490(0x132)]=_0x2bdf5a=>{const _0x2376cf=a29_0x85e490,_0x39fb9c={'iCJzn':function(_0x3684d6){return _0x3684d6();},'YgJRF':function(_0x5a8634,_0x599fee){return _0x5a8634===_0x599fee;},'eudJi':_0x2376cf(0x127),'PmZTb':'_beforeAll','CbWLu':_0x2376cf(0x115),'FQlcd':_0x2376cf(0xf1)};if(!_0x2bdf5a||!_0x2bdf5a[_0x2376cf(0xe0)])return;[_0x39fb9c[_0x2376cf(0xfc)],_0x39fb9c[_0x2376cf(0x126)],_0x39fb9c[_0x2376cf(0x112)],_0x39fb9c['eudJi']][_0x2376cf(0x116)](_0x32e406=>{const _0x306848=_0x2376cf,_0x55eab5=_0x2bdf5a[_0x306848(0xe0)][_0x32e406]||[];_0x55eab5[_0x306848(0x116)](_0x26b3a8=>{const _0x49eabf=_0x306848;if(!_0x26b3a8[_0x49eabf(0xf7)])_0x26b3a8[_0x49eabf(0xf7)]=_0x39fb9c['iCJzn'](uuidv4);else _0x26b3a8[_0x49eabf(0x133)]&&_0x39fb9c[_0x49eabf(0x12a)](_0x32e406,_0x39fb9c['eudJi'])&&(_0x26b3a8[_0x49eabf(0xf7)]=_0x39fb9c['iCJzn'](uuidv4),delete _0x26b3a8[_0x49eabf(0x133)]);});}),exports['mapTestHooks'](_0x2bdf5a[_0x2376cf(0xe0)]);},exports['sendPlatformDetails']=async(_0x5e4116,_0x20e1f7)=>{const _0xee774d=a29_0x85e490,_0x2409b7={'IJbWW':function(_0x88c7b){return _0x88c7b();},'wZGoE':function(_0x2159e6,_0x526a71){return _0x2159e6===_0x526a71;},'qaENe':_0xee774d(0xeb),'gPVeO':'appium:app','NMBAD':'app','qtPqY':_0xee774d(0x10d),'BDnJF':_0xee774d(0x103),'pBOLE':function(_0x381f32,_0x231ae9){return _0x381f32(_0x231ae9);},'BQkhE':_0xee774d(0x10f),'dTkrM':_0xee774d(0x123),'XNMET':function(_0x3a7125,_0x357611){return _0x3a7125(_0x357611);}};try{if(!_0x2409b7[_0xee774d(0x12f)](shouldProcessEventForTesthub))return;const _0x29c962=await _0x5e4116[_0xee774d(0xf9)](),_0x3db4f1=await _0x5e4116[_0xee774d(0x12c)](),_0xad1172={},_0x486aa0=Object[_0xee774d(0x101)](_0x3db4f1[_0xee774d(0xf9)]()[_0xee774d(0xdf)]),_0x116561={'product':_0x2409b7[_0xee774d(0xe6)](global[_0xee774d(0xed)],_0x2409b7[_0xee774d(0x120)])?_0x486aa0[_0x2409b7[_0xee774d(0x113)]]||_0x486aa0[_0x2409b7['NMBAD']]?_0x2409b7[_0xee774d(0xe1)]:_0x2409b7['BDnJF']:null,'capabilities':_0x486aa0,'platform':_0x29c962['getPlatform'](),'platform_version':_0x2409b7[_0xee774d(0xec)](getPlatformVersion,_0x2409b7['wZGoE'](global[_0xee774d(0xed)],_0x2409b7[_0xee774d(0x120)])),'browser':_0x29c962['getBrowserName'](),'browser_version':_0x29c962['getBrowserVersion'](),'session_id':_0x3db4f1[_0xee774d(0xfd)]()};global[_0xee774d(0xed)]?_0xad1172[global[_0xee774d(0xed)]]=_0x116561:_0xad1172[_0x2409b7[_0xee774d(0xde)]]=_0x116561,process['emit'](_0xee774d(0xf2)+process[_0xee774d(0x10a)],{'timestamp':new Date()[_0xee774d(0x10e)](),'level':null,'message':null,'kind':_0x2409b7['dTkrM'],'http_response':_0xad1172,'uuid':_0x20e1f7});}catch(_0x514aff){_0x2409b7['XNMET'](debug,'Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20'+_0x514aff);}},exports[a29_0x85e490(0x114)]=_0x257f1c=>{const _0x15e8f5=a29_0x85e490,_0x49b475={};_0x49b475[_0x15e8f5(0xe3)]=function(_0x180bda,_0x53e673){return _0x180bda!==_0x53e673;},_0x49b475['Rhiqz']=_0x15e8f5(0x119),_0x49b475[_0x15e8f5(0x134)]=_0x15e8f5(0xf6),_0x49b475[_0x15e8f5(0xe8)]=function(_0x1d757a,_0x1b9e62){return _0x1d757a!==_0x1b9e62;},_0x49b475[_0x15e8f5(0x11d)]=_0x15e8f5(0xe4);const _0x2b4937=_0x49b475,_0x52862c=_0x257f1c['suites'][_0x15e8f5(0x11e)]((_0x2d6439,_0x2e5bb5)=>{const _0x4abb2c=_0x15e8f5,_0x92b03a=exports['getHookSkippedTests'](_0x2e5bb5);return _0x92b03a&&(_0x2d6439=_0x2d6439[_0x4abb2c(0xdc)](_0x92b03a)),_0x2d6439;},[]),_0x244647=_0x257f1c[_0x15e8f5(0xf0)][_0x15e8f5(0xfb)](_0x258176=>{const _0x1445a0=_0x15e8f5,_0x38515b=_0x2b4937[_0x1445a0(0xe3)](_0x258176[_0x1445a0(0x108)],_0x2b4937['Rhiqz'])&&!_0x258176[_0x1445a0(0x133)]&&_0x2b4937['oTdXK'](_0x258176[_0x1445a0(0x129)],_0x2b4937['JTDGh'])&&_0x2b4937[_0x1445a0(0xe8)](_0x258176[_0x1445a0(0x129)],_0x2b4937[_0x1445a0(0x11d)])&&!_0x258176[_0x1445a0(0xe5)];return _0x38515b;});return _0x244647[_0x15e8f5(0xdc)](_0x52862c);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a30_0x554b(_0x5726d8,_0x545b53){const _0x521aff=a30_0x521a();return a30_0x554b=function(_0x554bd0,_0x482964){_0x554bd0=_0x554bd0-0x1a2;let _0x49fa4f=_0x521aff[_0x554bd0];return _0x49fa4f;},a30_0x554b(_0x5726d8,_0x545b53);}const a30_0x3e88ce=a30_0x554b;function a30_0x521a(){const _0x4070f8=['30149624eyYMMo','HClsw','GAxuy','../../helpers/performance-tester','then','testcase','debug','appium:app','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','4895175qonzLl','initQuit','uXKGw','XkJce','mmRVj','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','__skipSessionName','WgeST','BROWSERSTACK_TESTHUB_JWT','uCTtT','passed','Passed','BROWSERSTACK_TESTHUB_UUID','15294HITTEa','util','Automate\x20test\x20case\x20execution\x20has\x20started.','lnUkO','SgquL','thBuildUuid','\x20|\x20','accessibilityScanStarted','info','message','app','shift','join','__drivers','stopMonitoring','../../helpers/test-observability/utils','shouldScanTestForAccessibility','bstackA11yShouldScan','cFEJZ','lxioz','KILoG','WTVFT','../../helpers/percy/utils','2033584iGMtjk','testAnalyticsId','XQAdo','thTestRunUuid','kwxhD','DqpGS','CxpFm','titlePath','session_','hpmwB','error','GMHHS','winstonLogger','KCzWS','ENV_VAR','mochaHooks','\x20-\x20','../../helpers/testhub/constants','ytwVZ','browserstackSessionName','wAzxX','failed','saveTestResults','5893854FfnWjD','timeout','executeScript','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','__sessionFailed','QyhPC','performScan','currentTest','IspGo','getGlobal','\x22}}','quitCount_','JzdHb','Failed\x20to\x20store\x20session\x20name:\x20','VPsDf','../../helpers/accessibility-automation/helper','length','ewZDf','ZVhba','evoTd','TpddE','__error_messages__','161gnvlew','1490007WJoIUS','push','stringify','isAccessibilityPlatform','now','.\x20Error\x20:','percy','thJwtToken','setGlobal','KgUDq','HltJt','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','format','capabilities','percyCaptureMode','haPbO','ObservabilitySync:','Failed:\x20','ngJkZ','UvDKy','TENYt','gVaWL','isArray','startMonitoring','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','err','executeAsyncScript','./test-observability/mochaUtils','protocol','2267172FtfMXw','GGPOi','FuiIi','../../helpers/accessibility-automation/scripts','driverCleanup','vPIGv','env'];a30_0x521a=function(){return _0x4070f8;};return a30_0x521a();}(function(_0x12a3ff,_0x5daf1d){const _0xd165a2=a30_0x554b,_0x1b3dea=_0x12a3ff();while(!![]){try{const _0x3e2f1a=-parseInt(_0xd165a2(0x1df))/0x1*(-parseInt(_0xd165a2(0x21a))/0x2)+parseInt(_0xd165a2(0x1e0))/0x3+parseInt(_0xd165a2(0x1fd))/0x4+parseInt(_0xd165a2(0x20d))/0x5+parseInt(_0xd165a2(0x1c9))/0x6+parseInt(_0xd165a2(0x1b2))/0x7+-parseInt(_0xd165a2(0x204))/0x8;if(_0x3e2f1a===_0x5daf1d)break;else _0x1b3dea['push'](_0x1b3dea['shift']());}catch(_0x2c0879){_0x1b3dea['push'](_0x1b3dea['shift']());}}}(a30_0x521a,0xbde36));const util=require(a30_0x3e88ce(0x21b)),{isAccessibilityAutomationSession,fetchPlatformDetails,shouldScanTestForAccessibility}=require(a30_0x3e88ce(0x1d8)),{percyAutoCapture}=require(a30_0x3e88ce(0x1b1)),{sendPlatformDetails}=require(a30_0x3e88ce(0x1fb)),{isBrowserstackInfra,markSessionStatus}=require('../../helpers/helper'),{isTestObservabilitySession}=require(a30_0x3e88ce(0x1aa)),PerformanceTester=require(a30_0x3e88ce(0x207)),scripts=require(a30_0x3e88ce(0x200)),globals=require('../../helpers/globals'),logger=require('../../helpers/logger')[a30_0x3e88ce(0x1be)],{shouldProcessEventForTesthub}=require('../../helpers/testhub/utils'),testHubConstants=require(a30_0x3e88ce(0x1c3));exports[a30_0x3e88ce(0x1c1)]={'beforeAll'(){const _0x4a2920=a30_0x3e88ce,_0x17d63f={'ZVhba':function(_0xcf1d2b,_0x21722e,_0xb9049e,_0x5130ac){return _0xcf1d2b(_0x21722e,_0xb9049e,_0x5130ac);},'KgUDq':_0x4a2920(0x1c7),'ODlZv':_0x4a2920(0x220),'hpmwB':function(_0x2b274b,_0x422186,_0x24b61b){return _0x2b274b(_0x422186,_0x24b61b);},'GAxuy':_0x4a2920(0x217),'WgeST':function(_0x1e334a){return _0x1e334a();},'kwxhD':function(_0x5ae788,_0xf7da77,_0x1349f7){return _0x5ae788(_0xf7da77,_0x1349f7);}};PerformanceTester[_0x4a2920(0x1f7)]();const _0x3511a0='browserstack internal helper hook';global[_0x4a2920(0x1de)]=[],global[_0x4a2920(0x1cd)]=![],global[_0x4a2920(0x201)]=async()=>{const _0x34375f=_0x4a2920;let _0x10b236=![];try{await global[_0x34375f(0x1a8)][0x0][_0x34375f(0x1ba)],_0x10b236=!![],global[_0x34375f(0x1cd)]?await _0x17d63f[_0x34375f(0x1db)](markSessionStatus,global[_0x34375f(0x1a8)][0x0],_0x17d63f[_0x34375f(0x1e9)],global[_0x34375f(0x1de)][_0x34375f(0x1a7)](_0x17d63f['ODlZv'])):await _0x17d63f[_0x34375f(0x1bb)](markSessionStatus,global[_0x34375f(0x1a8)][0x0],_0x17d63f[_0x34375f(0x206)]);}catch(_0x3ec4f4){}global[_0x34375f(0x1de)]=[],global[_0x34375f(0x1cd)]=![];if(_0x10b236)try{try{_0x17d63f[_0x34375f(0x214)](shouldProcessEventForTesthub)&&(global[_0x34375f(0x1a8)][0x0]&&await _0x17d63f[_0x34375f(0x1b6)](sendPlatformDetails,global[_0x34375f(0x1a8)][0x0],this[_0x34375f(0x1d0)]?this[_0x34375f(0x1d0)]['testAnalyticsId']:null));}catch{}await global['__drivers'][0x0][_0x34375f(0x20e)]();}catch(_0x4dc407){}};},'beforeEach'(_0x5a6d37){const _0x506dd0=a30_0x3e88ce,_0x384922={'uCTtT':function(_0x10927e,_0xc183ac){return _0x10927e>_0xc183ac;},'ewZDf':function(_0x1c6972,_0x327e96){return _0x1c6972>_0x327e96;},'VPsDf':'\x20-\x20','CxpFm':function(_0x3fb135,_0x323783,_0xb654c6){return _0x3fb135(_0x323783,_0xb654c6);},'cFEJZ':_0x506dd0(0x1ac),'FuiIi':function(_0x2023a0){return _0x2023a0();},'mmRVj':function(_0x31e405,_0x53139d){return _0x31e405>_0x53139d;},'ytwVZ':_0x506dd0(0x1e3),'lnUkO':function(_0x64e428,_0x716c05){return _0x64e428===_0x716c05;},'TENYt':'http:','jqnlW':function(_0x5a2f72,_0x4f8f6d){return _0x5a2f72===_0x4f8f6d;},'QyhPC':'https:','vPIGv':_0x506dd0(0x1f8),'XkJce':_0x506dd0(0x21c)};new Promise(async _0x228fa8=>{const _0x4c5c98=_0x506dd0,_0x57e9e3='browserstack internal helper hook';let _0x2b0655=!![];try{_0x384922[_0x4c5c98(0x216)](global['__drivers'][_0x4c5c98(0x1d9)],0x1)&&(await global[_0x4c5c98(0x201)](),global[_0x4c5c98(0x1a8)][_0x4c5c98(0x1a6)]()),_0x384922[_0x4c5c98(0x1da)](global[_0x4c5c98(0x1a8)][0x0]['quitCount_'],0x0)&&(_0x2b0655=![],await global[_0x4c5c98(0x201)]());}catch{}try{Array[_0x4c5c98(0x1f6)](global[_0x4c5c98(0x1a8)])&&global['__drivers'][0x0]&&(global['__drivers'][0x0][_0x4c5c98(0x1c5)]=this[_0x4c5c98(0x1d0)][_0x4c5c98(0x1b9)]()[_0x4c5c98(0x1a7)](_0x384922[_0x4c5c98(0x1d7)])),global['browserstackSessionName']=this['currentTest'][_0x4c5c98(0x1b9)]()[_0x4c5c98(0x1a7)](_0x384922[_0x4c5c98(0x1d7)]);}catch(_0x5173b3){logger[_0x4c5c98(0x20a)](_0x4c5c98(0x1d6)+_0x5173b3);}this[_0x4c5c98(0x1d0)][_0x4c5c98(0x1ab)]=_0x384922[_0x4c5c98(0x1b8)](shouldScanTestForAccessibility,this[_0x4c5c98(0x1d0)]['titlePath'](),!![]),globals[_0x4c5c98(0x1e8)](_0x384922[_0x4c5c98(0x1ad)],this[_0x4c5c98(0x1d0)]['shouldScanTestForAccessibility']),this['currentTest'][_0x4c5c98(0x1a2)]=!![];if(_0x384922['FuiIi'](isAccessibilityAutomationSession)&&_0x2b0655&&Array[_0x4c5c98(0x1f6)](global[_0x4c5c98(0x1a8)])&&_0x384922[_0x4c5c98(0x211)](global['__drivers'][_0x4c5c98(0x1d9)],0x0)&&globals['getGlobal'](_0x384922[_0x4c5c98(0x1c4)]))try{const _0xb9905a=await global[_0x4c5c98(0x1a8)][0x0][_0x4c5c98(0x1ba)];if(_0xb9905a){let _0x48d20f=!![];const _0x3d0c21=await global['__drivers'][0x0]['getCurrentUrl']();let _0x229571;try{_0x229571=new URL(_0x3d0c21);}catch(_0x3aa9ef){_0x48d20f=![];}_0x48d20f=_0x384922[_0x4c5c98(0x21d)](_0x229571[_0x4c5c98(0x1fc)],_0x384922[_0x4c5c98(0x1f4)])||_0x384922['jqnlW'](_0x229571['protocol'],_0x384922[_0x4c5c98(0x1ce)]),_0x48d20f&&(this[_0x4c5c98(0x1d0)][_0x4c5c98(0x1ab)]&&logger[_0x4c5c98(0x1a3)](_0x384922[_0x4c5c98(0x202)])),this[_0x4c5c98(0x1d0)][_0x4c5c98(0x1a2)]=this[_0x4c5c98(0x1d0)][_0x4c5c98(0x1ab)],this[_0x4c5c98(0x1d0)]['shouldScanTestForAccessibility']&&logger[_0x4c5c98(0x1a3)](_0x384922[_0x4c5c98(0x210)]);}}catch(_0x3647fc){logger[_0x4c5c98(0x1bc)](_0x4c5c98(0x212)+util[_0x4c5c98(0x1ec)](_0x3647fc));}_0x384922[_0x4c5c98(0x1ff)](_0x228fa8);})['then'](_0x5a6d37);},'afterEach'(_0x3fea3b){const _0x2c715a=a30_0x3e88ce,_0x50399f={'evoTd':function(_0x4fa404,_0x3b6777){return _0x4fa404>_0x3b6777;},'GMHHS':function(_0x43a636,_0x280dcb){return _0x43a636===_0x280dcb;},'HltJt':_0x2c715a(0x209),'JzdHb':_0x2c715a(0x20b),'AVfgj':function(_0xc52e5a,_0x275f92,_0x5b10a9,_0x5a4edb){return _0xc52e5a(_0x275f92,_0x5b10a9,_0x5a4edb);},'WTVFT':_0x2c715a(0x1c2),'wAzxX':function(_0x5ca542,_0x12ef45){return _0x5ca542!==_0x12ef45;},'KILoG':'passed','KCzWS':function(_0x2bda59,_0x6d48c6,_0x179169){return _0x2bda59(_0x6d48c6,_0x179169);},'SgquL':function(_0x47c10d,_0x50ac7){return _0x47c10d+_0x50ac7;},'HClsw':_0x2c715a(0x1f1),'TpddE':_0x2c715a(0x1bc),'XQAdo':function(_0x32e901,_0x3c774e,_0x102964){return _0x32e901(_0x3c774e,_0x102964);},'GGPOi':_0x2c715a(0x218),'uDzKA':'info','UvDKy':_0x2c715a(0x1e3),'GSGOj':_0x2c715a(0x1ac),'IspGo':'Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','iwaUN':'Performing\x20scan\x20before\x20saving\x20results','lxioz':_0x2c715a(0x1eb),'haPbO':function(_0x306c08){return _0x306c08();},'DqpGS':function(_0xda3ffa){return _0xda3ffa();},'gVaWL':_0x2c715a(0x20a),'uXKGw':function(_0x431344,_0x20093d){return _0x431344>_0x20093d;}},_0x5048aa='browserstack internal helper hook';this['timeout'](0xfde8);const _0x264600=async(_0x4848bf,_0x1336ca)=>{const _0x5e8b7f=_0x2c715a;await global[_0x5e8b7f(0x1a8)][0x0][_0x5e8b7f(0x1cb)](_0x5e8b7f(0x20c)+_0x4848bf+',\x22level\x22:\x20\x22'+_0x1336ca+_0x5e8b7f(0x1d3));};new Promise(async _0x1d8882=>{const _0x656d61=_0x2c715a;try{_0x50399f[_0x656d61(0x1dc)](global[_0x656d61(0x1a8)][_0x656d61(0x1d9)],0x1)&&(await global['driverCleanup'](),global[_0x656d61(0x1a8)][_0x656d61(0x1a6)](),global[_0x656d61(0x1de)]=[],global[_0x656d61(0x1cd)]=![]);try{if(global[_0x656d61(0x1e6)]&&_0x50399f[_0x656d61(0x1bd)](global[_0x656d61(0x1ee)],_0x50399f[_0x656d61(0x1ea)])&&global[_0x656d61(0x1a8)][0x0]){const _0x9e01b=_0x50399f['evoTd'](global['capabilities'][_0x656d61(0x1d9)],0x0)?!!global[_0x656d61(0x1ed)][0x0][_0x656d61(0x1a5)]||!!global['capabilities'][0x0][_0x50399f[_0x656d61(0x1d5)]]:![],_0x4f7fb7={};_0x4f7fb7[_0x656d61(0x1a5)]=_0x9e01b,await _0x50399f['AVfgj'](percyAutoCapture,global[_0x656d61(0x1a8)][0x0],_0x50399f['HltJt'],_0x4f7fb7);}}catch(_0x5ccd0b){}!global[_0x656d61(0x213)]&&(await global['__drivers'][0x0]['executeScript'](_0x656d61(0x1cc)+JSON['stringify'](this['currentTest'][_0x656d61(0x1b9)]()[_0x656d61(0x1a7)](_0x50399f[_0x656d61(0x1b0)]))+'}}'),global[_0x656d61(0x1a8)][0x0]['sessionNameSet__']=!![]);const _0x13d375=_0x50399f[_0x656d61(0x1c6)](this[_0x656d61(0x1d0)]['state'],_0x50399f[_0x656d61(0x1af)]);_0x13d375?(global['__sessionFailed']=!![],global['__error_messages__'][_0x656d61(0x1e1)](this[_0x656d61(0x1d0)][_0x656d61(0x1f9)][_0x656d61(0x1a4)]),await _0x50399f['KCzWS'](_0x264600,JSON['stringify'](_0x50399f[_0x656d61(0x21e)](_0x50399f[_0x656d61(0x205)],this[_0x656d61(0x1d0)][_0x656d61(0x1f9)][_0x656d61(0x1a4)])),_0x50399f[_0x656d61(0x1dd)])):await _0x50399f[_0x656d61(0x1b4)](_0x264600,JSON[_0x656d61(0x1e2)](_0x50399f[_0x656d61(0x1fe)]),_0x50399f['uDzKA']);}catch(_0x1eb83b){}try{if(this[_0x656d61(0x1d0)]['accessibilityScanStarted']&&globals[_0x656d61(0x1d2)](_0x50399f[_0x656d61(0x1f3)])&&globals[_0x656d61(0x1d2)](_0x50399f['GSGOj'])){logger[_0x656d61(0x1a3)](_0x50399f[_0x656d61(0x1d1)]);const _0x44ecea={};_0x44ecea[_0x656d61(0x1b5)]=this[_0x656d61(0x1d0)][_0x656d61(0x1b3)],_0x44ecea[_0x656d61(0x21f)]=process[_0x656d61(0x203)][testHubConstants[_0x656d61(0x1c0)][_0x656d61(0x219)]],_0x44ecea[_0x656d61(0x1e7)]=process[_0x656d61(0x203)][testHubConstants[_0x656d61(0x1c0)][_0x656d61(0x215)]];const _0x4f533f=_0x44ecea;logger['debug']('Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20'+JSON['stringify'](_0x4f533f)),logger[_0x656d61(0x20a)](_0x50399f['iwaUN']),logger[_0x656d61(0x20a)](util[_0x656d61(0x1ec)](await global[_0x656d61(0x1a8)][0x0][_0x656d61(0x1fa)](scripts[_0x656d61(0x1cf)],{'method':global['browserstackSessionName']}))),await global[_0x656d61(0x1a8)][0x0][_0x656d61(0x1fa)](scripts[_0x656d61(0x1c8)],_0x4f533f),logger[_0x656d61(0x1a3)](_0x50399f[_0x656d61(0x1ae)]);}}catch(_0x202a6b){logger[_0x656d61(0x1bc)]('Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20'+this[_0x656d61(0x1d0)][_0x656d61(0x1b9)]()+_0x656d61(0x1e5),_0x202a6b);}try{try{if(_0x50399f['haPbO'](shouldProcessEventForTesthub)){global[_0x656d61(0x1a8)][0x0]&&await _0x50399f[_0x656d61(0x1bf)](sendPlatformDetails,global['__drivers'][0x0],this[_0x656d61(0x1d0)]?this[_0x656d61(0x1d0)][_0x656d61(0x1b3)]:null);if(_0x50399f[_0x656d61(0x1b7)](isBrowserstackInfra)){const _0x4ef579=_0x656d61(0x1f0)+Date[_0x656d61(0x1e4)]();await _0x50399f[_0x656d61(0x1bf)](_0x264600,JSON[_0x656d61(0x1e2)](_0x4ef579),_0x50399f[_0x656d61(0x1f5)]);}}}catch{}_0x50399f[_0x656d61(0x20f)](global['__drivers'][0x0][_0x656d61(0x1d4)],0x0)&&await global[_0x656d61(0x201)]();}catch(_0x4641c1){}_0x50399f[_0x656d61(0x1ef)](_0x1d8882);})[_0x2c715a(0x208)](()=>_0x3fea3b());},'afterAll'(_0x1bb604){const _0x39059d=a30_0x3e88ce,_0x37a911={'ngJkZ':function(_0x36453b){return _0x36453b();}},_0x175089='browserstack internal helper hook';this[_0x39059d(0x1ca)](0xfde8),new Promise(async _0x28fee9=>{const _0x1946d4=_0x39059d;PerformanceTester[_0x1946d4(0x1a9)](),await global[_0x1946d4(0x201)](),_0x37a911[_0x1946d4(0x1f2)](_0x28fee9);})[_0x39059d(0x208)](()=>_0x1bb604());}};
|
|
1
|
+
const a30_0xbfd3d9=a30_0x29a9;function a30_0x5204(){const _0x475c72=['executeAsyncScript','format','session_','IFYOx','xPLje','thJwtToken','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','__drivers','state','kijAC','__error_messages__','xeIdg','shouldScanTestForAccessibility','QdOBb','HNpSq','fODor','hwRGS','stopMonitoring','Failed\x20to\x20store\x20session\x20name:\x20','../../helpers/globals','testAnalyticsId','titlePath','err','message','Failed:\x20','app','__sessionFailed','failed','BROWSERSTACK_TESTHUB_JWT','4655536kvlZXw','https:','performScan','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','error','../../helpers/accessibility-automation/helper','sFgFU','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','isArray','485267omevdC','length','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','GwDju','hCkpT','BROWSERSTACK_TESTHUB_UUID','thTestRunUuid','EATWz','7EzjdOR','\x22}}','2725188zYZPiM','info','sessionNameSet__','../../helpers/accessibility-automation/scripts',',\x22level\x22:\x20\x22','KtJkO','zIPeG','stringify','../../helpers/test-observability/utils','getCurrentUrl','1663095OzPsFp','2302551LuFsCx','__skipSessionName','debug','10462mfNaDe','capabilities','timeout','driverCleanup','141wbtqCJ','777932kzwFYy','saveTestResults','EcvnU','initQuit','aeIES','\x20|\x20','quitCount_','SnITk','getGlobal','currentTest','then','jXgry','XfEmL','vaPvq','appium:app','jVSIO','mvJdc','ObservabilitySync:','MiCIv','join','RCcyu','bstackA11yShouldScan','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','uknHc','shift','dqMlE','CaelJ','ENV_VAR','isAccessibilityPlatform','zJvUN','../../helpers/percy/utils','wGIoR','../../helpers/testhub/utils','GaXjS','thBuildUuid','SHAZd','testcase','Passed','\x20-\x20','percyCaptureMode','KLmvA','edxyq','KuZkY','env','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','accessibilityScanStarted','Performing\x20scan\x20before\x20saving\x20results','browserstackSessionName','http:','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','../../helpers/helper','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','wQtII','vnUrg','.\x20Error\x20:','protocol','executeScript','../../helpers/performance-tester'];a30_0x5204=function(){return _0x475c72;};return a30_0x5204();}function a30_0x29a9(_0xc86235,_0x150926){const _0x5204c9=a30_0x5204();return a30_0x29a9=function(_0x29a954,_0x151209){_0x29a954=_0x29a954-0x9a;let _0x296c6e=_0x5204c9[_0x29a954];return _0x296c6e;},a30_0x29a9(_0xc86235,_0x150926);}(function(_0x15ba49,_0x49e769){const _0x1e7230=a30_0x29a9,_0x58f4ad=_0x15ba49();while(!![]){try{const _0x36c4f7=parseInt(_0x1e7230(0xd9))/0x1+parseInt(_0x1e7230(0xf1))/0x2*(parseInt(_0x1e7230(0xf5))/0x3)+-parseInt(_0x1e7230(0xf6))/0x4+-parseInt(_0x1e7230(0xed))/0x5+parseInt(_0x1e7230(0xe3))/0x6+-parseInt(_0x1e7230(0xe1))/0x7*(parseInt(_0x1e7230(0xd0))/0x8)+parseInt(_0x1e7230(0xee))/0x9;if(_0x36c4f7===_0x49e769)break;else _0x58f4ad['push'](_0x58f4ad['shift']());}catch(_0xdbeccc){_0x58f4ad['push'](_0x58f4ad['shift']());}}}(a30_0x5204,0x51155));const util=require('util'),{isAccessibilityAutomationSession,fetchPlatformDetails,shouldScanTestForAccessibility}=require(a30_0xbfd3d9(0xd5)),{percyAutoCapture}=require(a30_0xbfd3d9(0x114)),{sendPlatformDetails}=require('./test-observability/mochaUtils'),{isBrowserstackInfra,markSessionStatus}=require(a30_0xbfd3d9(0xab)),{isTestObservabilitySession}=require(a30_0xbfd3d9(0xeb)),PerformanceTester=require(a30_0xbfd3d9(0xb2)),scripts=require(a30_0xbfd3d9(0xe6)),globals=require(a30_0xbfd3d9(0xc6)),logger=require('../../helpers/logger')['winstonLogger'],{shouldProcessEventForTesthub}=require(a30_0xbfd3d9(0x116)),testHubConstants=require('../../helpers/testhub/constants');exports['mochaHooks']={'beforeAll'(){const _0x3ac053=a30_0xbfd3d9,_0xb7fa90={'xPLje':function(_0x2b09bd,_0x9665df,_0x28f6af,_0x2bd6b1){return _0x2b09bd(_0x9665df,_0x28f6af,_0x2bd6b1);},'GaXjS':_0x3ac053(0xce),'sFgFU':_0x3ac053(0xfb),'kijAC':function(_0x32a3bf,_0x58fa02,_0x12c479){return _0x32a3bf(_0x58fa02,_0x12c479);},'KLmvA':'passed','CaelJ':function(_0x40f5e6){return _0x40f5e6();},'TXWtP':function(_0x375c5d,_0x10e689,_0x414806){return _0x375c5d(_0x10e689,_0x414806);}};PerformanceTester['startMonitoring']();const _0x502529='browserstack internal helper hook';global[_0x3ac053(0xbd)]=[],global[_0x3ac053(0xcd)]=![],global[_0x3ac053(0xf4)]=async()=>{const _0x2c696=_0x3ac053;let _0x3a8ee1=![];try{await global['__drivers'][0x0][_0x2c696(0xb5)],_0x3a8ee1=!![],global[_0x2c696(0xcd)]?await _0xb7fa90[_0x2c696(0xb7)](markSessionStatus,global[_0x2c696(0xba)][0x0],_0xb7fa90[_0x2c696(0x9a)],global['__error_messages__'][_0x2c696(0x109)](_0xb7fa90[_0x2c696(0xd6)])):await _0xb7fa90[_0x2c696(0xbc)](markSessionStatus,global[_0x2c696(0xba)][0x0],_0xb7fa90[_0x2c696(0xa1)]);}catch(_0x5357da){}global['__error_messages__']=[],global['__sessionFailed']=![];if(_0x3a8ee1)try{try{_0xb7fa90[_0x2c696(0x110)](shouldProcessEventForTesthub)&&(global[_0x2c696(0xba)][0x0]&&await _0xb7fa90['TXWtP'](sendPlatformDetails,global['__drivers'][0x0],this[_0x2c696(0xff)]?this[_0x2c696(0xff)]['testAnalyticsId']:null));}catch{}await global[_0x2c696(0xba)][0x0][_0x2c696(0xf9)]();}catch(_0xe106ee){}};},'beforeEach'(_0x214c6d){const _0x3e2d41=a30_0xbfd3d9,_0x1fb891={'XfEmL':function(_0x292e80,_0x153216){return _0x292e80>_0x153216;},'IFYOx':function(_0x18ef96,_0x4505e5){return _0x18ef96>_0x4505e5;},'SnITk':_0x3e2d41(0x9f),'KtJkO':function(_0x5e7292,_0x541a4c,_0x4c0d25){return _0x5e7292(_0x541a4c,_0x4c0d25);},'uknHc':_0x3e2d41(0x10b),'GwDju':function(_0x52c5bd){return _0x52c5bd();},'QdOBb':function(_0xcd5a91,_0x2bf5ac){return _0xcd5a91>_0x2bf5ac;},'zJvUN':_0x3e2d41(0x112),'wGIoR':function(_0x1bcff0,_0x13aacf){return _0x1bcff0===_0x13aacf;},'pueWC':_0x3e2d41(0xa9),'QgZnn':_0x3e2d41(0xd1),'MiCIv':_0x3e2d41(0x10c),'vaPvq':'Automate\x20test\x20case\x20execution\x20has\x20started.'};new Promise(async _0xf18db=>{const _0x5646ac=_0x3e2d41,_0x2b4cb7='browserstack internal helper hook';let _0x5d2638=!![];try{_0x1fb891[_0x5646ac(0x102)](global[_0x5646ac(0xba)][_0x5646ac(0xda)],0x1)&&(await global[_0x5646ac(0xf4)](),global[_0x5646ac(0xba)][_0x5646ac(0x10e)]()),_0x1fb891[_0x5646ac(0xb6)](global[_0x5646ac(0xba)][0x0][_0x5646ac(0xfc)],0x0)&&(_0x5d2638=![],await global[_0x5646ac(0xf4)]());}catch{}try{Array[_0x5646ac(0xd8)](global[_0x5646ac(0xba)])&&global['__drivers'][0x0]&&(global[_0x5646ac(0xba)][0x0]['browserstackSessionName']=this[_0x5646ac(0xff)][_0x5646ac(0xc8)]()[_0x5646ac(0x109)](_0x1fb891[_0x5646ac(0xfd)])),global[_0x5646ac(0xa8)]=this[_0x5646ac(0xff)][_0x5646ac(0xc8)]()[_0x5646ac(0x109)](_0x1fb891[_0x5646ac(0xfd)]);}catch(_0x4b253d){logger[_0x5646ac(0xf0)](_0x5646ac(0xc5)+_0x4b253d);}this['currentTest'][_0x5646ac(0xbf)]=_0x1fb891[_0x5646ac(0xe8)](shouldScanTestForAccessibility,this[_0x5646ac(0xff)][_0x5646ac(0xc8)](),!![]),globals['setGlobal'](_0x1fb891[_0x5646ac(0x10d)],this[_0x5646ac(0xff)]['shouldScanTestForAccessibility']),this[_0x5646ac(0xff)]['accessibilityScanStarted']=!![];if(_0x1fb891['GwDju'](isAccessibilityAutomationSession)&&_0x5d2638&&Array[_0x5646ac(0xd8)](global[_0x5646ac(0xba)])&&_0x1fb891[_0x5646ac(0xc0)](global[_0x5646ac(0xba)]['length'],0x0)&&globals[_0x5646ac(0xfe)](_0x1fb891[_0x5646ac(0x113)]))try{const _0x1ea6bd=await global[_0x5646ac(0xba)][0x0][_0x5646ac(0xb5)];if(_0x1ea6bd){let _0x2137be=!![];const _0x186f53=await global[_0x5646ac(0xba)][0x0][_0x5646ac(0xec)]();let _0x432295;try{_0x432295=new URL(_0x186f53);}catch(_0x4e94a6){_0x2137be=![];}_0x2137be=_0x1fb891[_0x5646ac(0x115)](_0x432295[_0x5646ac(0xb0)],_0x1fb891['pueWC'])||_0x1fb891[_0x5646ac(0x115)](_0x432295[_0x5646ac(0xb0)],_0x1fb891['QgZnn']),_0x2137be&&(this['currentTest'][_0x5646ac(0xbf)]&&logger[_0x5646ac(0xe4)](_0x1fb891[_0x5646ac(0x108)])),this[_0x5646ac(0xff)][_0x5646ac(0xa6)]=this[_0x5646ac(0xff)][_0x5646ac(0xbf)],this[_0x5646ac(0xff)][_0x5646ac(0xbf)]&&logger[_0x5646ac(0xe4)](_0x1fb891[_0x5646ac(0x103)]);}}catch(_0x1175f2){logger[_0x5646ac(0xd4)](_0x5646ac(0xaa)+util[_0x5646ac(0xb4)](_0x1175f2));}_0x1fb891[_0x5646ac(0xdc)](_0xf18db);})[_0x3e2d41(0x100)](_0x214c6d);},'afterEach'(_0xca57ea){const _0x316293=a30_0xbfd3d9,_0x42592b={'EATWz':function(_0x315b52,_0x51b0d5){return _0x315b52>_0x51b0d5;},'EcvnU':function(_0x21f63f,_0xc30647){return _0x21f63f===_0xc30647;},'ZlqhF':_0x316293(0x9d),'KuZkY':function(_0x5c6b9d,_0x12b0c3){return _0x5c6b9d>_0x12b0c3;},'edxyq':_0x316293(0x104),'jVSIO':function(_0x340641,_0x56179a,_0x80bf85,_0x45e4e9){return _0x340641(_0x56179a,_0x80bf85,_0x45e4e9);},'hwRGS':_0x316293(0x9f),'zIPeG':function(_0x6fc33a,_0x3ab237){return _0x6fc33a!==_0x3ab237;},'MLwqt':'passed','aeIES':function(_0x1c9390,_0x484547,_0x1c0256){return _0x1c9390(_0x484547,_0x1c0256);},'wQtII':function(_0x4a1afe,_0x52c072){return _0x4a1afe+_0x52c072;},'hCkpT':_0x316293(0xcb),'jXgry':_0x316293(0xd4),'zXBHh':_0x316293(0x9e),'zfBEC':_0x316293(0xe4),'YhPJI':_0x316293(0x112),'fODor':_0x316293(0x10b),'mvJdc':_0x316293(0xd7),'xeIdg':_0x316293(0xa7),'SHAZd':_0x316293(0xac),'RCcyu':function(_0x254929){return _0x254929();},'LHZZQ':function(_0x5a75db,_0x1c578c,_0x2bf860){return _0x5a75db(_0x1c578c,_0x2bf860);},'vnUrg':_0x316293(0xf0),'dqMlE':function(_0x27b960,_0x1131ca){return _0x27b960>_0x1131ca;}},_0x39a84e='browserstack internal helper hook';this[_0x316293(0xf3)](0xfde8);const _0x4a3e85=async(_0x295876,_0x35baf0)=>{const _0x3d4e2e=_0x316293;await global['__drivers'][0x0][_0x3d4e2e(0xb1)](_0x3d4e2e(0xa5)+_0x295876+_0x3d4e2e(0xe7)+_0x35baf0+_0x3d4e2e(0xe2));};new Promise(async _0x23c8d0=>{const _0x4a0290=_0x316293;try{_0x42592b[_0x4a0290(0xe0)](global['__drivers'][_0x4a0290(0xda)],0x1)&&(await global[_0x4a0290(0xf4)](),global[_0x4a0290(0xba)][_0x4a0290(0x10e)](),global[_0x4a0290(0xbd)]=[],global['__sessionFailed']=![]);try{if(global['percy']&&_0x42592b[_0x4a0290(0xf8)](global[_0x4a0290(0xa0)],_0x42592b['ZlqhF'])&&global[_0x4a0290(0xba)][0x0]){const _0x248011=_0x42592b[_0x4a0290(0xa3)](global['capabilities']['length'],0x0)?!!global[_0x4a0290(0xf2)][0x0][_0x4a0290(0xcc)]||!!global['capabilities'][0x0][_0x42592b[_0x4a0290(0xa2)]]:![],_0xdfda72={};_0xdfda72[_0x4a0290(0xcc)]=_0x248011,await _0x42592b[_0x4a0290(0x105)](percyAutoCapture,global[_0x4a0290(0xba)][0x0],_0x42592b['ZlqhF'],_0xdfda72);}}catch(_0x10ca64){}!global[_0x4a0290(0xef)]&&(await global[_0x4a0290(0xba)][0x0]['executeScript'](_0x4a0290(0xd3)+JSON[_0x4a0290(0xea)](this[_0x4a0290(0xff)][_0x4a0290(0xc8)]()[_0x4a0290(0x109)](_0x42592b[_0x4a0290(0xc3)]))+'}}'),global[_0x4a0290(0xba)][0x0][_0x4a0290(0xe5)]=!![]);const _0x46cdff=_0x42592b[_0x4a0290(0xe9)](this[_0x4a0290(0xff)][_0x4a0290(0xbb)],_0x42592b['MLwqt']);_0x46cdff?(global['__sessionFailed']=!![],global[_0x4a0290(0xbd)]['push'](this['currentTest'][_0x4a0290(0xc9)]['message']),await _0x42592b[_0x4a0290(0xfa)](_0x4a3e85,JSON[_0x4a0290(0xea)](_0x42592b[_0x4a0290(0xad)](_0x42592b[_0x4a0290(0xdd)],this[_0x4a0290(0xff)][_0x4a0290(0xc9)][_0x4a0290(0xca)])),_0x42592b[_0x4a0290(0x101)])):await _0x42592b[_0x4a0290(0xfa)](_0x4a3e85,JSON[_0x4a0290(0xea)](_0x42592b['zXBHh']),_0x42592b['zfBEC']);}catch(_0x43a9b8){}try{if(this[_0x4a0290(0xff)][_0x4a0290(0xa6)]&&globals[_0x4a0290(0xfe)](_0x42592b['YhPJI'])&&globals[_0x4a0290(0xfe)](_0x42592b[_0x4a0290(0xc2)])){logger[_0x4a0290(0xe4)](_0x42592b[_0x4a0290(0x106)]);const _0x4019d0={};_0x4019d0[_0x4a0290(0xdf)]=this[_0x4a0290(0xff)][_0x4a0290(0xc7)],_0x4019d0[_0x4a0290(0x9b)]=process[_0x4a0290(0xa4)][testHubConstants[_0x4a0290(0x111)][_0x4a0290(0xde)]],_0x4019d0[_0x4a0290(0xb8)]=process['env'][testHubConstants['ENV_VAR'][_0x4a0290(0xcf)]];const _0x16715d=_0x4019d0;logger['debug'](_0x4a0290(0xdb)+JSON['stringify'](_0x16715d)),logger[_0x4a0290(0xf0)](_0x42592b[_0x4a0290(0xbe)]),logger['debug'](util[_0x4a0290(0xb4)](await global[_0x4a0290(0xba)][0x0][_0x4a0290(0xb3)](scripts[_0x4a0290(0xd2)],{'method':global[_0x4a0290(0xa8)]}))),await global[_0x4a0290(0xba)][0x0][_0x4a0290(0xb3)](scripts[_0x4a0290(0xf7)],_0x16715d),logger[_0x4a0290(0xe4)](_0x42592b[_0x4a0290(0x9c)]);}}catch(_0x48169f){logger[_0x4a0290(0xd4)](_0x4a0290(0xb9)+this['currentTest']['titlePath']()+_0x4a0290(0xaf),_0x48169f);}try{try{if(_0x42592b['RCcyu'](shouldProcessEventForTesthub)){global[_0x4a0290(0xba)][0x0]&&await _0x42592b[_0x4a0290(0xfa)](sendPlatformDetails,global[_0x4a0290(0xba)][0x0],this[_0x4a0290(0xff)]?this[_0x4a0290(0xff)]['testAnalyticsId']:null);if(_0x42592b[_0x4a0290(0x10a)](isBrowserstackInfra)){const _0x19704e=_0x4a0290(0x107)+Date['now']();await _0x42592b['LHZZQ'](_0x4a3e85,JSON[_0x4a0290(0xea)](_0x19704e),_0x42592b[_0x4a0290(0xae)]);}}}catch{}_0x42592b[_0x4a0290(0x10f)](global['__drivers'][0x0]['quitCount_'],0x0)&&await global[_0x4a0290(0xf4)]();}catch(_0x2194fc){}_0x42592b[_0x4a0290(0x10a)](_0x23c8d0);})[_0x316293(0x100)](()=>_0xca57ea());},'afterAll'(_0x241090){const _0x484f34=a30_0xbfd3d9,_0x5d51c5={'HNpSq':function(_0x402846){return _0x402846();}},_0x3c833d='browserstack internal helper hook';this[_0x484f34(0xf3)](0xfde8),new Promise(async _0x49d112=>{const _0x25a913=_0x484f34;PerformanceTester[_0x25a913(0xc4)](),await global['driverCleanup'](),_0x5d51c5[_0x25a913(0xc1)](_0x49d112);})[_0x484f34(0x100)](()=>_0x241090());}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';const a31_0x4bc987=a31_0x2413;(function(_0x253a55,_0x2c1734){const _0x2df663=a31_0x2413,_0x212aaf=_0x253a55();while(!![]){try{const _0x5ef00b=-parseInt(_0x2df663(0x178))/0x1*(parseInt(_0x2df663(0x179))/0x2)+-parseInt(_0x2df663(0x17c))/0x3*(-parseInt(_0x2df663(0x14d))/0x4)+parseInt(_0x2df663(0x167))/0x5*(-parseInt(_0x2df663(0x155))/0x6)+-parseInt(_0x2df663(0x170))/0x7*(-parseInt(_0x2df663(0x16f))/0x8)+-parseInt(_0x2df663(0x169))/0x9+parseInt(_0x2df663(0x17a))/0xa+parseInt(_0x2df663(0x14c))/0xb*(parseInt(_0x2df663(0x17d))/0xc);if(_0x5ef00b===_0x2c1734)break;else _0x212aaf['push'](_0x212aaf['shift']());}catch(_0x266eda){_0x212aaf['push'](_0x212aaf['shift']());}}}(a31_0xed22,0xb99f0));function a31_0xed22(){const _0x2e12ae=['Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','Deleting\x20','filter','../utils/constants','inherit','1120825qXoRjy','port','4643973IlvCaG','../../helpers/helper','platform','../../helpers/logger','QnsgC','lhATJ','8iFvDhM','106526wFnbBb','RgTsC','--env','mergeDeep','HzHdN','modifyBrowserStackCaps','trim','winstonLogger','1UvGwgC','1283106iPlxwV','3049190BRNTng','desiredCapabilities','26841YprhtC','1332gwduDj','nightwatch.conf.js','exports','stringify','config','forEach','join','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','test_settings','srXgq','env','splice','--config','OQRuk','host','rLzqW','hub.browserstack.com','WuuBM','writeFileSync','test','ISyWQ','selenium','224235JdRcye','304NQexeb','slice','findIndex','iQWqJ','rLezx','QqvAL','path','existsSync','36lWELTT','../../helpers/BrowserStackSetup','AanpL','cwd','modifyBrowserStackW3CCaps','info','WKRYK','length','start_process','platforms','now','ODYea','push'];a31_0xed22=function(){return _0x2e12ae;};return a31_0xed22();}function a31_0x2413(_0x4bca7f,_0x418f30){const _0xed226=a31_0xed22();return a31_0x2413=function(_0x241389,_0x57a8a4){_0x241389=_0x241389-0x144;let _0x45f70b=_0xed226[_0x241389];return _0x45f70b;},a31_0x2413(_0x4bca7f,_0x418f30);}const fs=require('fs'),path=require(a31_0x4bc987(0x153)),{spawn}=require('child_process'),logger=require(a31_0x4bc987(0x16c))[a31_0x4bc987(0x177)],{default:BrowserStackSetup}=require(a31_0x4bc987(0x156)),helper=require(a31_0x4bc987(0x16a)),constants=require(a31_0x4bc987(0x165)),getUserNightwatchConfigs=(_0x3be81d,_0x19f126)=>{const _0x2aa418=a31_0x4bc987,_0x583fb6={'HzHdN':_0x2aa418(0x17e),'rLezx':'nightwatch.json','znImS':function(_0x3d960d,_0x5a5a83){return _0x3d960d(_0x5a5a83);},'uLtnK':_0x2aa418(0x184)};let _0x223124=null,_0x3e982e={};const _0x3e4d6e=_0x19f126[_0x2aa418(0x14f)](_0x216d94=>_0x216d94==='--config');if(!helper['isUndefined'](_0x3be81d[_0x2aa418(0x181)])&&fs[_0x2aa418(0x154)](path[_0x2aa418(0x183)](process[_0x2aa418(0x158)](),_0x3be81d[_0x2aa418(0x181)])))_0x223124=path[_0x2aa418(0x183)](process[_0x2aa418(0x158)](),_0x3be81d[_0x2aa418(0x181)]),_0x19f126[_0x2aa418(0x188)](_0x3e4d6e,0x2);else{if(fs[_0x2aa418(0x154)](path[_0x2aa418(0x183)](process[_0x2aa418(0x158)](),_0x583fb6[_0x2aa418(0x174)])))_0x223124=path['join'](process[_0x2aa418(0x158)](),_0x583fb6[_0x2aa418(0x174)]);else fs[_0x2aa418(0x154)](path[_0x2aa418(0x183)](process[_0x2aa418(0x158)](),_0x583fb6[_0x2aa418(0x151)]))&&(_0x223124=path[_0x2aa418(0x183)](process[_0x2aa418(0x158)](),_0x583fb6[_0x2aa418(0x151)]));}return _0x223124?(logger[_0x2aa418(0x15a)]('Getting\x20your\x20nightwatch\x20configs\x20from\x20'+_0x223124),_0x3e982e=_0x583fb6['znImS'](require,_0x223124)):logger[_0x2aa418(0x15a)](_0x583fb6['uLtnK']),_0x3e982e;},removeExistingEnvs=_0x395780=>{const _0x223122=a31_0x4bc987,_0x772e70={};_0x772e70[_0x223122(0x145)]=function(_0x5eeaab,_0x38e7ee){return _0x5eeaab>_0x38e7ee;},_0x772e70[_0x223122(0x186)]=function(_0x15eb35,_0x4da0a0){return _0x15eb35>_0x4da0a0;};const _0xa4138b=_0x772e70;let _0x53d5cb=_0x395780[_0x223122(0x14f)](_0x325483=>_0x325483==='--env');_0xa4138b['rLzqW'](_0x53d5cb,-0x1)&&_0x395780['splice'](_0x53d5cb,0x2),_0x53d5cb=_0x395780[_0x223122(0x14f)](_0x4e2016=>_0x4e2016==='-e'),_0xa4138b[_0x223122(0x186)](_0x53d5cb,-0x1)&&_0x395780[_0x223122(0x188)](_0x53d5cb,0x2);};function run(_0x24549e,_0x1a08ab){const _0x4f020b=a31_0x4bc987,_0x3d0287={'WuuBM':'nightwatch','WKRYK':function(_0x43948a,_0x21da34){return _0x43948a+_0x21da34;},'MyRcW':'test_settings','sSKaR':function(_0x1a1aee,_0x339a62,_0x4287b3){return _0x1a1aee(_0x339a62,_0x4287b3);},'mrnKR':_0x4f020b(0x146),'iQWqJ':_0x4f020b(0x162),'lhATJ':function(_0x379340,_0x336753){return _0x379340===_0x336753;},'OQRuk':'nightwatch-browserstack.json','KbwJP':function(_0x3e7cb2,_0x5c375b){return _0x3e7cb2(_0x5c375b);},'QqvAL':function(_0x50a4f4,_0x1ff0fa,_0x53c1c7,_0x3448a5){return _0x50a4f4(_0x1ff0fa,_0x53c1c7,_0x3448a5);},'Bokgi':'nightwatch.cmd','QnsgC':_0x4f020b(0x189),'zWOiu':_0x4f020b(0x172),'RgTsC':_0x4f020b(0x166),'ODYea':'close'},_0x2736c4=new BrowserStackSetup(_0x24549e);if(!_0x2736c4['config'])return;const _0x47d7a6=_0x3d0287['sSKaR'](getUserNightwatchConfigs,_0x24549e,_0x1a08ab),_0x14e4cf={};_0x14e4cf[_0x4f020b(0x15d)]=![];const _0x2fd5dc={};_0x2fd5dc[_0x4f020b(0x144)]=_0x3d0287['mrnKR'],_0x2fd5dc[_0x4f020b(0x168)]=0x1bb;const _0x5f4cf3={};_0x5f4cf3['webdriver']=_0x14e4cf,_0x5f4cf3[_0x4f020b(0x14b)]=_0x2fd5dc;const _0x4cb1aa=_0x5f4cf3;logger[_0x4f020b(0x15a)](_0x3d0287[_0x4f020b(0x150)]);const _0x46062d={..._0x47d7a6},_0x531955=_0x46062d,_0x3a7e53=helper['useW3C'](_0x2736c4['config']),_0x57a1c0=[];_0x2736c4[_0x4f020b(0x181)][_0x4f020b(0x15e)][_0x4f020b(0x182)]((_0x800344,_0x4b9b8c)=>{const _0xd8ff61=_0x4f020b;_0x3a7e53?_0x57a1c0['push'](helper[_0xd8ff61(0x159)](_0x2736c4[_0xd8ff61(0x181)],_0x3d0287[_0xd8ff61(0x147)],_0x4b9b8c)):_0x57a1c0['push'](helper[_0xd8ff61(0x175)](_0x2736c4['config'],_0x3d0287[_0xd8ff61(0x147)],_0x4b9b8c));});const _0x1619b1={},_0x313505=[];_0x24549e[_0x4f020b(0x187)]=_0x24549e[_0x4f020b(0x187)]||_0x24549e['e'];const _0x260490=_0x24549e[_0x4f020b(0x187)]?_0x24549e['env']['trim']()['split'](',')['map'](_0x41a4bb=>_0x41a4bb[_0x4f020b(0x176)]())[_0x4f020b(0x164)](_0x12d9fa=>_0x12d9fa!==''):[''];_0x3d0287[_0x4f020b(0x16e)](_0x260490[_0x4f020b(0x15c)],0x0)&&_0x260490[_0x4f020b(0x161)]('');_0x260490['forEach'](_0x414ce0=>{const _0x463bd5=_0x4f020b,_0x4dbd97={'AanpL':function(_0x4531e4,_0x477ee7){const _0x4a44cf=a31_0x2413;return _0x3d0287[_0x4a44cf(0x15b)](_0x4531e4,_0x477ee7);},'ISyWQ':_0x3d0287['MyRcW']};_0x57a1c0[_0x463bd5(0x182)](_0x758059=>{const _0xcae402=_0x463bd5;let _0x62ab52=_0x4dbd97[_0xcae402(0x157)](helper['getPlatformName'](_0x758059,'_'),'_'+Date[_0xcae402(0x15f)]());_0x414ce0&&(_0x62ab52+='_'+_0x414ce0);if(_0x414ce0&&(!_0x47d7a6[_0x4dbd97[_0xcae402(0x14a)]]||!_0x47d7a6[_0x4dbd97[_0xcae402(0x14a)]][_0x414ce0]))return;const _0x25f466={..._0x4cb1aa};_0x25f466[_0xcae402(0x17b)]=_0x758059;const _0x135a73=_0x25f466;_0x1619b1[_0x62ab52]=_0x414ce0?helper[_0xcae402(0x173)](_0x47d7a6[_0x4dbd97[_0xcae402(0x14a)]][_0x414ce0],_0x135a73):_0x135a73,_0x313505[_0xcae402(0x161)](_0x62ab52);});});!_0x531955['test_settings']&&(_0x531955[_0x4f020b(0x185)]={});_0x531955['test_settings']={..._0x531955[_0x4f020b(0x185)],..._0x1619b1};const _0x301a32=path['join'](__dirname,_0x3d0287[_0x4f020b(0x18a)]);fs[_0x4f020b(0x148)](_0x301a32,JSON[_0x4f020b(0x180)](_0x531955)),_0x3d0287['KbwJP'](removeExistingEnvs,_0x1a08ab);const _0x333acd=_0x3d0287[_0x4f020b(0x152)](spawn,/^win/[_0x4f020b(0x149)](process[_0x4f020b(0x16b)])?_0x3d0287['Bokgi']:_0x3d0287[_0x4f020b(0x147)],[_0x3d0287[_0x4f020b(0x16d)],_0x301a32,..._0x1a08ab[_0x4f020b(0x14e)](0x1),_0x3d0287['zWOiu'],_0x313505['join'](',')],{'stdio':_0x3d0287[_0x4f020b(0x171)]});_0x333acd['on'](_0x3d0287[_0x4f020b(0x160)],async _0x424193=>{const _0x424e88=_0x4f020b;logger['debug']('child\x20process\x20exited\x20with\x20code\x20'+_0x424193),logger[_0x424e88(0x15a)](_0x424e88(0x163)+_0x301a32),fs['unlinkSync'](_0x301a32);});}module[a31_0x4bc987(0x17f)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a32_0x54eeb9=a32_0x4453;(function(_0xcfa5c6,_0xeb3813){const _0x3fabdd=a32_0x4453,_0x434e92=_0xcfa5c6();while(!![]){try{const _0x434035=parseInt(_0x3fabdd(0xe6))/0x1+-parseInt(_0x3fabdd(0x137))/0x2+parseInt(_0x3fabdd(0x123))/0x3+parseInt(_0x3fabdd(0xfe))/0x4+-parseInt(_0x3fabdd(0xef))/0x5+parseInt(_0x3fabdd(0x115))/0x6+parseInt(_0x3fabdd(0xf0))/0x7;if(_0x434035===_0xeb3813)break;else _0x434e92['push'](_0x434e92['shift']());}catch(_0x318bf7){_0x434e92['push'](_0x434e92['shift']());}}}(a32_0x38d1,0x35f16));function a32_0x4453(_0x38df3,_0x36a4bc){const _0x38d180=a32_0x38d1();return a32_0x4453=function(_0x445392,_0x34f8b3){_0x445392=_0x445392-0xda;let _0x41a342=_0x38d180[_0x445392];return _0x41a342;},a32_0x4453(_0x38df3,_0x36a4bc);}const util=require('util'),logger=require(a32_0x54eeb9(0x141))[a32_0x54eeb9(0xf9)],{isAccessibilityAutomationSession}=require(a32_0x54eeb9(0xe5)),{isUndefined}=require(a32_0x54eeb9(0x13e)),scripts=require(a32_0x54eeb9(0x108));function a32_0x38d1(){const _0x3d692f=['30324mrcQRF','includeIssueType','kFEjI','PofKz','chrome','performScan','executeScript','executeAsyncScript','IzyoN','playwright-chromium','naXwz','browserstack.accessibility','platformValidation','wcagVersion','wkUVv','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','name','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','TFyII','207942bKmJeU','stringify','BZvDB','IuNHF','getAccessibilityResultsSummary','accessibilityOptions','wsEndpoint','../../helpers/helper','veHUr','BS_A11Y_JWT','../../helpers/logger','accessibilityPlatform','YnUGh','eSoyo','(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','HAUeX','ijKcy','(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','browser','jJdFw','accessibilityOptions.scannerVersion','bsatC','uyhHv','../../helpers/accessibility-automation/helper','8879fWXcXL','KVqLp','JBukr','browserName','zwCDp','evaluate','env','TptGD','Playwright','1825375aXNCSf','1480703iVIaUe','bestPractice','warn','accessibilityOptions.includeIssueType.needsReview','accessibilityOptions.wcagVersion','replace','debug','bstackSdkArgs','No\x20summaryResults\x20found.','winstonLogger','method','scannerVersion','fSypx','ibHZl','1680392boBHaR','tWgeO','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','error','WebDriver','use','needsReview','format','BYFgC','cDjsN','../../helpers/accessibility-automation/scripts','IIoGs','browserStackEvaluate','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','HkYhf','setAccessibilityCapabilities','latest','testInfo','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','dAcLW','LyBQb','HMsFK','236292rIjaWf','constructor','No\x20accessibility\x20results\x20were\x20found.','deviceName','sSyUz','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','wKaoh','GWBcL','FOiYE','browserStackExecuteDriver','kOpib','CAiPp','accessibilityOptions.authToken'];a32_0x38d1=function(){return _0x3d692f;};return a32_0x38d1();}exports['browserStackEvaluate']=async(_0x574474,_0x156c49,_0x3168e5={})=>{const _0x534c3f=a32_0x54eeb9,_0x4aeccb={};_0x4aeccb[_0x534c3f(0xe7)]=_0x534c3f(0xf7);const _0x15c078=_0x4aeccb;return await _0x574474[_0x534c3f(0xeb)](_0x534c3f(0xdc)+_0x156c49[_0x534c3f(0xf5)](/arguments/g,_0x15c078['KVqLp'])+_0x534c3f(0x134)+JSON[_0x534c3f(0x138)](_0x3168e5)+')');},exports[a32_0x54eeb9(0x11f)]=async(_0x54b795,_0x46a437,_0x547b52={})=>{const _0xbf3570=a32_0x54eeb9,_0x6b47d3={};_0x6b47d3[_0xbf3570(0x12d)]=function(_0x4ff88d,_0x15b4ac){return _0x4ff88d===_0x15b4ac;},_0x6b47d3[_0xbf3570(0x13f)]=_0xbf3570(0x102),_0x6b47d3[_0xbf3570(0xed)]=_0xbf3570(0xee),_0x6b47d3[_0xbf3570(0xff)]=_0xbf3570(0xf7);const _0x36a72a=_0x6b47d3;if(_0x36a72a['naXwz'](_0x54b795[_0xbf3570(0x116)][_0xbf3570(0x133)],_0x36a72a['veHUr']))return await _0x54b795[_0xbf3570(0x12a)](_0x46a437,_0x547b52);else{if(_0x36a72a[_0xbf3570(0x12d)](_0x54b795[_0xbf3570(0x116)][_0xbf3570(0x133)],_0x36a72a[_0xbf3570(0xed)]))return await _0x54b795[_0xbf3570(0x129)](_0xbf3570(0xdf)+_0x46a437[_0xbf3570(0xf5)](/arguments/g,_0x36a72a[_0xbf3570(0xff)])+_0xbf3570(0x11a)+JSON[_0xbf3570(0x138)](_0x547b52)+')');}},exports[a32_0x54eeb9(0x10e)]=async _0x2be581=>{const _0x24dd7c=a32_0x54eeb9,_0x5127eb={};_0x5127eb[_0x24dd7c(0x11c)]=_0x24dd7c(0xf4),_0x5127eb[_0x24dd7c(0x11d)]='accessibilityOptions.scannerProcessingTimeout',_0x5127eb['TFyII']='accessibilityOptions.includeIssueType.bestPractice',_0x5127eb[_0x24dd7c(0xda)]=_0x24dd7c(0xf3),_0x5127eb['wkUVv']=_0x24dd7c(0x122),_0x5127eb[_0x24dd7c(0x114)]=_0x24dd7c(0xe2);const _0x248348=_0x5127eb;_0x2be581[_0x24dd7c(0x13c)]&&(_0x2be581[_0x24dd7c(0x13c)][_0x24dd7c(0x130)]&&(_0x2be581[_0x248348[_0x24dd7c(0x11c)]]=_0x2be581[_0x24dd7c(0x13c)][_0x24dd7c(0x130)]),_0x2be581[_0x24dd7c(0x13c)]['scannerProcessingTimeout']&&(_0x2be581[_0x248348[_0x24dd7c(0x11d)]]=_0x2be581[_0x24dd7c(0x13c)]['scannerProcessingTimeout']),_0x2be581[_0x24dd7c(0x13c)]['includeIssueType']&&(_0x2be581[_0x248348[_0x24dd7c(0x136)]]=_0x2be581['accessibilityOptions'][_0x24dd7c(0x124)][_0x24dd7c(0xf1)],_0x2be581[_0x248348['YnUGh']]=_0x2be581['accessibilityOptions'][_0x24dd7c(0x124)][_0x24dd7c(0x104)]));const _0x178013=JSON['parse'](process[_0x24dd7c(0xec)][_0x24dd7c(0x111)])[_0x24dd7c(0xfb)];_0x2be581[_0x248348[_0x24dd7c(0x131)]]=process[_0x24dd7c(0xec)][_0x24dd7c(0x140)],_0x2be581[_0x248348['HMsFK']]=_0x178013,delete _0x2be581[_0x24dd7c(0x13c)];},exports['getAccessibilityResults']=async _0x325535=>{const _0x48783b=a32_0x54eeb9,_0x2224c3={};_0x2224c3[_0x48783b(0x107)]=_0x48783b(0x117),_0x2224c3[_0x48783b(0x10d)]=_0x48783b(0x11b);const _0x586c96=_0x2224c3;if(global[_0x48783b(0x142)])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x325535,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x325535,scripts.getResults);return res;}catch{return logger[_0x48783b(0x101)](_0x586c96[_0x48783b(0x107)]),[];}else return logger[_0x48783b(0xf2)](_0x586c96[_0x48783b(0x10d)]),[];},exports[a32_0x54eeb9(0x128)]=async(_0x32bf40,_0x4b2de2='')=>{const _0x2a60e2=a32_0x54eeb9;if(global[_0x2a60e2(0x142)]){const _0x1a9b47={};return _0x1a9b47[_0x2a60e2(0xfa)]=_0x4b2de2,await exports[_0x2a60e2(0x10a)](_0x32bf40,scripts[_0x2a60e2(0x128)],_0x1a9b47);}},exports[a32_0x54eeb9(0x13b)]=async _0x7cf0e1=>{const _0x3c7fb8=a32_0x54eeb9,_0x4fead7={};_0x4fead7[_0x3c7fb8(0x12b)]=_0x3c7fb8(0xf8),_0x4fead7['uyhHv']=_0x3c7fb8(0x132);const _0x3ee89d=_0x4fead7;if(global[_0x3c7fb8(0x142)])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x7cf0e1,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x7cf0e1,scripts.getResultsSummary);return summaryResults;}catch{return logger['debug'](_0x3ee89d[_0x3c7fb8(0x12b)]),{};}else return logger[_0x3c7fb8(0xf2)](_0x3ee89d[_0x3c7fb8(0xe4)]),{};},exports[a32_0x54eeb9(0x12f)]=async _0x230727=>{const _0x21232c=a32_0x54eeb9,_0x552d76={'sSyUz':function(_0x156780,_0x5407f2){return _0x156780!==_0x5407f2;},'jJdFw':_0x21232c(0x100),'FOiYE':function(_0x8b4b63,_0xd75162){return _0x8b4b63===_0xd75162;},'BZvDB':'chrome','IuNHF':_0x21232c(0x12c),'eSoyo':_0x21232c(0x10c),'CAiPp':function(_0x502af3,_0x2a55bd){return _0x502af3(_0x2a55bd);},'HAUeX':_0x21232c(0x10f),'kFEjI':function(_0x2d06fc,_0x217a18){return _0x2d06fc>_0x217a18;},'QNMRw':_0x21232c(0x10b)};try{if(!_0x552d76[_0x21232c(0x119)](_0x230727[_0x21232c(0x118)],''))return logger['warn'](_0x552d76[_0x21232c(0xe1)]),![];const _0x2f79e9=_0x230727[_0x21232c(0xe0)];if(!(_0x552d76['FOiYE'](_0x2f79e9,_0x552d76[_0x21232c(0x139)])||_0x552d76[_0x21232c(0x11e)](_0x2f79e9,_0x552d76[_0x21232c(0x13a)])))return logger['warn'](_0x552d76[_0x21232c(0xdb)]),![];const _0x23a574=_0x552d76[_0x21232c(0x121)](parseInt,_0x230727['browser_version']);if(!(_0x552d76[_0x21232c(0x11e)](_0x23a574,_0x552d76[_0x21232c(0xdd)])||_0x552d76[_0x21232c(0x125)](_0x23a574,0x5e)))return logger[_0x21232c(0xf2)](_0x552d76['QNMRw']),![];}catch(_0x33791d){logger[_0x21232c(0xf6)](_0x21232c(0x135)+util['format'](_0x33791d));}return!![];},exports['processAccessibilityCaps']=(_0x289d42,_0x1b22a3,_0x19c71b)=>{const _0x585369=a32_0x54eeb9,_0x50d5af={'IIoGs':function(_0x4238d7){return _0x4238d7();},'kOpib':_0x585369(0x12e),'LyBQb':function(_0x273fde,_0x3b43b5){return _0x273fde===_0x3b43b5;},'JBukr':_0x585369(0x127),'BYFgC':_0x585369(0x12c),'bsatC':_0x585369(0x10c),'eayfW':function(_0x19403b,_0x1ac16f){return _0x19403b===_0x1ac16f;},'fSypx':_0x585369(0x10f),'PofKz':function(_0x55ffa0,_0xd19e59){return _0x55ffa0>_0xd19e59;},'ijKcy':_0x585369(0x10b),'dAcLW':function(_0x323d11,_0x1dcfe0){return _0x323d11(_0x1dcfe0);},'ibHZl':_0x585369(0x100),'zwCDp':function(_0x1e206,_0x1de5c3){return _0x1e206+_0x1de5c3;}};try{if(_0x50d5af[_0x585369(0x109)](isAccessibilityAutomationSession)){global[_0x585369(0x142)]=!![];!_0x289d42[_0x50d5af['kOpib']]&&(global['accessibilityPlatform']=![]);!(_0x50d5af[_0x585369(0x113)](_0x289d42[_0x585369(0xe9)],_0x50d5af[_0x585369(0xe8)])||_0x50d5af[_0x585369(0x113)](_0x289d42[_0x585369(0xe9)],_0x50d5af[_0x585369(0x106)]))&&(logger['warn'](_0x50d5af[_0x585369(0xe3)]),global[_0x585369(0x142)]=![]);!(_0x50d5af['eayfW'](_0x289d42['browser_version'],_0x50d5af[_0x585369(0xfc)])||_0x50d5af[_0x585369(0x126)](_0x289d42['browser_version'],0x5e))&&(logger[_0x585369(0xf2)](_0x50d5af[_0x585369(0xde)]),global[_0x585369(0x142)]=![]);!_0x50d5af[_0x585369(0x112)](isUndefined,_0x289d42['deviceName'])&&(logger['warn'](_0x50d5af[_0x585369(0xfd)]),global[_0x585369(0x142)]=![]);if(!global['accessibilityPlatform']){_0x289d42[_0x50d5af[_0x585369(0x120)]]=![];const _0x5145ff=_0x50d5af[_0x585369(0xea)](_0x1b22a3,_0x50d5af[_0x585369(0x112)](encodeURIComponent,JSON[_0x585369(0x138)](_0x289d42)));_0x19c71b&&(_0x19c71b['currentTest'][_0x585369(0x110)]['project'][_0x585369(0x103)]['connectOptions'][_0x585369(0x13d)]=_0x5145ff);}}}catch(_0x2440d){logger['debug']('Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20'+util[_0x585369(0x105)](_0x2440d));}};
|
|
1
|
+
function a32_0x5441(_0xed82c7,_0x53f091){const _0x5c2f75=a32_0x5c2f();return a32_0x5441=function(_0x5441e6,_0x3fefba){_0x5441e6=_0x5441e6-0x150;let _0x438e73=_0x5c2f75[_0x5441e6];return _0x438e73;},a32_0x5441(_0xed82c7,_0x53f091);}const a32_0x37bba5=a32_0x5441;(function(_0x26bef6,_0xf96f42){const _0x2ea88c=a32_0x5441,_0x1ab887=_0x26bef6();while(!![]){try{const _0x168052=parseInt(_0x2ea88c(0x156))/0x1+-parseInt(_0x2ea88c(0x19f))/0x2*(parseInt(_0x2ea88c(0x18e))/0x3)+-parseInt(_0x2ea88c(0x168))/0x4+-parseInt(_0x2ea88c(0x150))/0x5*(parseInt(_0x2ea88c(0x15a))/0x6)+-parseInt(_0x2ea88c(0x188))/0x7*(parseInt(_0x2ea88c(0x1ae))/0x8)+parseInt(_0x2ea88c(0x1b6))/0x9+parseInt(_0x2ea88c(0x18b))/0xa;if(_0x168052===_0xf96f42)break;else _0x1ab887['push'](_0x1ab887['shift']());}catch(_0x1ac721){_0x1ab887['push'](_0x1ab887['shift']());}}}(a32_0x5c2f,0x9cb64));function a32_0x5c2f(){const _0xbeaab9=['KJJcq','stringify','UkFhi','method','getAccessibilityResultsSummary','kVZuo','WebDriver','3546012cxAZyX','env','browser','warn','needsReview','malUd','BpiIS','accessibilityOptions.scannerProcessingTimeout','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','UmDar','wuPoz','error','util','accessibilityOptions.includeIssueType.needsReview','ruZfe','accessibilityOptions','connectOptions','bYNPv','Obzgw','../../helpers/accessibility-automation/scripts','OwVMe','wTiKU','URzwW','No\x20summaryResults\x20found.','winstonLogger','YDdTE','replace','No\x20accessibility\x20results\x20were\x20found.','includeIssueType','nZGoU','deviceName','processAccessibilityCaps','7FAlLfJ','debug','(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','16641750gHhcFD','bstackSdkArgs','playwright-chromium','112848ZtMbqi','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','use','zwVsZ','BS_A11Y_JWT','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','VUPUN','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','accessibilityOptions.authToken','platformValidation','setAccessibilityCapabilities','accessibilityOptions.wcagVersion','zxOSS','mpHNk','currentTest','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','GCVli','34mmrlby','browserStackExecuteDriver','accessibilityPlatform','name','GFVvM','browserstack.accessibility','agqUt','SkJvt','../../helpers/helper','performScan','SaVEZ','constructor','latest','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','scannerVersion','1578072qjefkh','accessibilityOptions.includeIssueType.bestPractice','browserName','NjflI','scannerProcessingTimeout','bCScP','PmFnV','WLxEq','11540385cQXJbC','getAccessibilityResults','JMycV','browser_version','75NmTGcl','../../helpers/logger','QfBmZ','WNTwJ','ODDks','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','8171jshUaE','DrceS','DJFjP','parse','235794oKeSIs','browserStackEvaluate','wcagVersion','format','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','GpuRI','executeScript'];a32_0x5c2f=function(){return _0xbeaab9;};return a32_0x5c2f();}const util=require(a32_0x37bba5(0x174)),logger=require(a32_0x37bba5(0x151))[a32_0x37bba5(0x180)],{isAccessibilityAutomationSession}=require('../../helpers/accessibility-automation/helper'),{isUndefined}=require(a32_0x37bba5(0x1a7)),scripts=require(a32_0x37bba5(0x17b));exports[a32_0x37bba5(0x15b)]=async(_0x2e7f13,_0x1d1601,_0x888d6e={})=>{const _0x4de2bf=a32_0x37bba5,_0x30c031={};_0x30c031[_0x4de2bf(0x16d)]=_0x4de2bf(0x18c);const _0x19f1c3=_0x30c031;return await _0x2e7f13['evaluate']('(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'+_0x1d1601[_0x4de2bf(0x182)](/arguments/g,_0x19f1c3[_0x4de2bf(0x16d)])+_0x4de2bf(0x18f)+JSON['stringify'](_0x888d6e)+')');},exports[a32_0x37bba5(0x1a0)]=async(_0x2451f8,_0x54b85a,_0x534d47={})=>{const _0x199c19=a32_0x37bba5,_0x134f25={};_0x134f25['GXrkq']=function(_0x3d4d22,_0x879f57){return _0x3d4d22===_0x879f57;},_0x134f25[_0x199c19(0x194)]=_0x199c19(0x167),_0x134f25[_0x199c19(0x19b)]=function(_0x42189a,_0x27fb7d){return _0x42189a===_0x27fb7d;},_0x134f25[_0x199c19(0x171)]='Playwright',_0x134f25['NjflI']=_0x199c19(0x18c);const _0x219acd=_0x134f25;if(_0x219acd['GXrkq'](_0x2451f8[_0x199c19(0x1aa)]['name'],_0x219acd[_0x199c19(0x194)]))return await _0x2451f8['executeAsyncScript'](_0x54b85a,_0x534d47);else{if(_0x219acd[_0x199c19(0x19b)](_0x2451f8[_0x199c19(0x1aa)][_0x199c19(0x1a2)],_0x219acd[_0x199c19(0x171)]))return await _0x2451f8[_0x199c19(0x160)](_0x199c19(0x18a)+_0x54b85a[_0x199c19(0x182)](/arguments/g,_0x219acd[_0x199c19(0x1b1)])+_0x199c19(0x193)+JSON[_0x199c19(0x162)](_0x534d47)+')');}},exports[a32_0x37bba5(0x198)]=async _0x178b58=>{const _0xcec967=a32_0x37bba5,_0x4b87be={};_0x4b87be[_0xcec967(0x1a9)]=_0xcec967(0x199),_0x4b87be[_0xcec967(0x157)]=_0xcec967(0x16f),_0x4b87be[_0xcec967(0x1a5)]=_0xcec967(0x1af),_0x4b87be['DJFjP']=_0xcec967(0x175),_0x4b87be[_0xcec967(0x16e)]=_0xcec967(0x196),_0x4b87be[_0xcec967(0x1a6)]='accessibilityOptions.scannerVersion';const _0x886375=_0x4b87be;_0x178b58[_0xcec967(0x177)]&&(_0x178b58[_0xcec967(0x177)][_0xcec967(0x15c)]&&(_0x178b58[_0x886375[_0xcec967(0x1a9)]]=_0x178b58[_0xcec967(0x177)][_0xcec967(0x15c)]),_0x178b58[_0xcec967(0x177)][_0xcec967(0x1b2)]&&(_0x178b58[_0x886375[_0xcec967(0x157)]]=_0x178b58[_0xcec967(0x177)][_0xcec967(0x1b2)]),_0x178b58[_0xcec967(0x177)]['includeIssueType']&&(_0x178b58[_0x886375['agqUt']]=_0x178b58[_0xcec967(0x177)][_0xcec967(0x184)]['bestPractice'],_0x178b58[_0x886375[_0xcec967(0x158)]]=_0x178b58[_0xcec967(0x177)]['includeIssueType'][_0xcec967(0x16c)]));const _0x227753=JSON[_0xcec967(0x159)](process[_0xcec967(0x169)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML'])[_0xcec967(0x1ad)];_0x178b58[_0x886375[_0xcec967(0x16e)]]=process['env'][_0xcec967(0x192)],_0x178b58[_0x886375[_0xcec967(0x1a6)]]=_0x227753,delete _0x178b58[_0xcec967(0x177)];},exports[a32_0x37bba5(0x1b7)]=async _0x540b3c=>{const _0x5166cf=a32_0x37bba5,_0x4184f6={};_0x4184f6[_0x5166cf(0x17a)]=_0x5166cf(0x183),_0x4184f6[_0x5166cf(0x154)]=_0x5166cf(0x19d);const _0x577457=_0x4184f6;if(global['accessibilityPlatform'])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x540b3c,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x540b3c,scripts.getResults);return res;}catch{return logger[_0x5166cf(0x173)](_0x577457['Obzgw']),[];}else return logger[_0x5166cf(0x16b)](_0x577457[_0x5166cf(0x154)]),[];},exports[a32_0x37bba5(0x1a8)]=async(_0x56ce24,_0x5f4a1='')=>{const _0x454eee=a32_0x37bba5;if(global['accessibilityPlatform']){const _0x52271a={};return _0x52271a[_0x454eee(0x164)]=_0x5f4a1,await exports[_0x454eee(0x15b)](_0x56ce24,scripts[_0x454eee(0x1a8)],_0x52271a);}},exports[a32_0x37bba5(0x165)]=async _0x57e5a8=>{const _0x11b01b=a32_0x37bba5,_0x923aa2={};_0x923aa2['PmFnV']=_0x11b01b(0x17f),_0x923aa2[_0x11b01b(0x191)]=_0x11b01b(0x15e);const _0x313177=_0x923aa2;if(global[_0x11b01b(0x1a1)])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x57e5a8,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x57e5a8,scripts.getResultsSummary);return summaryResults;}catch{return logger[_0x11b01b(0x189)](_0x313177[_0x11b01b(0x1b4)]),{};}else return logger['warn'](_0x313177[_0x11b01b(0x191)]),{};},exports[a32_0x37bba5(0x197)]=async _0x15646a=>{const _0x2fb0df=a32_0x37bba5,_0x401a77={'bNrdr':function(_0x32b3e3,_0x4b10f5){return _0x32b3e3!==_0x4b10f5;},'URzwW':_0x2fb0df(0x155),'ruZfe':function(_0xf2d832,_0xe6b3c3){return _0xf2d832===_0xe6b3c3;},'bYNPv':'chrome','GpuRI':function(_0x1a0530,_0x3f1af7){return _0x1a0530===_0x3f1af7;},'BgyrF':_0x2fb0df(0x18d),'Fajgg':_0x2fb0df(0x1ac),'nZGoU':function(_0x84d5c5,_0x3e8dc5){return _0x84d5c5(_0x3e8dc5);},'zxOSS':function(_0x15c55b,_0x27cea8){return _0x15c55b===_0x27cea8;},'IizQQ':_0x2fb0df(0x1ab),'bCScP':function(_0x5d5ed7,_0x1dba27){return _0x5d5ed7>_0x1dba27;},'UkFhi':_0x2fb0df(0x195)};try{if(!_0x401a77['bNrdr'](_0x15646a[_0x2fb0df(0x186)],''))return logger[_0x2fb0df(0x16b)](_0x401a77[_0x2fb0df(0x17e)]),![];const _0x845e6d=_0x15646a[_0x2fb0df(0x16a)];if(!(_0x401a77[_0x2fb0df(0x176)](_0x845e6d,_0x401a77[_0x2fb0df(0x179)])||_0x401a77[_0x2fb0df(0x15f)](_0x845e6d,_0x401a77['BgyrF'])))return logger[_0x2fb0df(0x16b)](_0x401a77['Fajgg']),![];const _0x35b2b7=_0x401a77[_0x2fb0df(0x185)](parseInt,_0x15646a[_0x2fb0df(0x1b9)]);if(!(_0x401a77[_0x2fb0df(0x19a)](_0x35b2b7,_0x401a77['IizQQ'])||_0x401a77[_0x2fb0df(0x1b3)](_0x35b2b7,0x5e)))return logger[_0x2fb0df(0x16b)](_0x401a77[_0x2fb0df(0x163)]),![];}catch(_0x10aabc){logger[_0x2fb0df(0x189)](_0x2fb0df(0x170)+util[_0x2fb0df(0x15d)](_0x10aabc));}return!![];},exports[a32_0x37bba5(0x187)]=(_0x4e0cfb,_0x36de16,_0x12c3d8)=>{const _0x53702a=a32_0x37bba5,_0x49c205={'kVZuo':function(_0xaf342c){return _0xaf342c();},'GCVli':_0x53702a(0x1a4),'JEeRu':function(_0x48f735,_0x92c0ad){return _0x48f735===_0x92c0ad;},'JMycV':'chrome','IoTYL':function(_0x10e0c0,_0x24f289){return _0x10e0c0===_0x24f289;},'WNTwJ':_0x53702a(0x18d),'YDdTE':_0x53702a(0x1ac),'QfBmZ':function(_0x417d15,_0x308e6e){return _0x417d15===_0x308e6e;},'wTiKU':_0x53702a(0x1ab),'WLxEq':function(_0x38cc8e,_0x3588d3){return _0x38cc8e>_0x3588d3;},'wuPoz':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','KJJcq':function(_0x388e06,_0x5e857e){return _0x388e06(_0x5e857e);},'GFVvM':_0x53702a(0x155),'OwVMe':function(_0x5bf1dc,_0x2da056){return _0x5bf1dc+_0x2da056;},'DQxur':function(_0x570ec9,_0x261cc0){return _0x570ec9(_0x261cc0);}};try{if(_0x49c205[_0x53702a(0x166)](isAccessibilityAutomationSession)){global['accessibilityPlatform']=!![];!_0x4e0cfb[_0x49c205[_0x53702a(0x19e)]]&&(global[_0x53702a(0x1a1)]=![]);!(_0x49c205['JEeRu'](_0x4e0cfb[_0x53702a(0x1b0)],_0x49c205[_0x53702a(0x1b8)])||_0x49c205['IoTYL'](_0x4e0cfb['browserName'],_0x49c205[_0x53702a(0x153)]))&&(logger[_0x53702a(0x16b)](_0x49c205[_0x53702a(0x181)]),global[_0x53702a(0x1a1)]=![]);!(_0x49c205[_0x53702a(0x152)](_0x4e0cfb[_0x53702a(0x1b9)],_0x49c205[_0x53702a(0x17d)])||_0x49c205[_0x53702a(0x1b5)](_0x4e0cfb[_0x53702a(0x1b9)],0x5e))&&(logger[_0x53702a(0x16b)](_0x49c205[_0x53702a(0x172)]),global[_0x53702a(0x1a1)]=![]);!_0x49c205[_0x53702a(0x161)](isUndefined,_0x4e0cfb['deviceName'])&&(logger['warn'](_0x49c205[_0x53702a(0x1a3)]),global[_0x53702a(0x1a1)]=![]);if(!global[_0x53702a(0x1a1)]){_0x4e0cfb[_0x49c205['GCVli']]=![];const _0x52f040=_0x49c205[_0x53702a(0x17c)](_0x36de16,_0x49c205['DQxur'](encodeURIComponent,JSON[_0x53702a(0x162)](_0x4e0cfb)));_0x12c3d8&&(_0x12c3d8[_0x53702a(0x19c)]['testInfo']['project'][_0x53702a(0x190)][_0x53702a(0x178)]['wsEndpoint']=_0x52f040);}}}catch(_0x2ed7fc){logger[_0x53702a(0x189)]('Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20'+util[_0x53702a(0x15d)](_0x2ed7fc));}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a33_0x4fe9d7=a33_0x3161;(function(_0x38d02f,_0x45f40c){const _0xb6d611=a33_0x3161,_0x564299=_0x38d02f();while(!![]){try{const _0x4cf48c=parseInt(_0xb6d611(0x267))/0x1*(parseInt(_0xb6d611(0x272))/0x2)+parseInt(_0xb6d611(0x258))/0x3+parseInt(_0xb6d611(0x1f1))/0x4+parseInt(_0xb6d611(0x226))/0x5*(parseInt(_0xb6d611(0x248))/0x6)+-parseInt(_0xb6d611(0x254))/0x7*(parseInt(_0xb6d611(0x209))/0x8)+-parseInt(_0xb6d611(0x243))/0x9*(parseInt(_0xb6d611(0x1bb))/0xa)+parseInt(_0xb6d611(0x1f9))/0xb*(-parseInt(_0xb6d611(0x233))/0xc);if(_0x4cf48c===_0x45f40c)break;else _0x564299['push'](_0x564299['shift']());}catch(_0x1ac18f){_0x564299['push'](_0x564299['shift']());}}}(a33_0x3e49,0x46432));const fs=require('fs'),path=require(a33_0x4fe9d7(0x217)),os=require('os'),{spawn}=require(a33_0x4fe9d7(0x224)),{format}=require('util'),logger=require('../../helpers/logger')['winstonLogger'],{default:BrowserStackSetup}=require(a33_0x4fe9d7(0x27d)),helper=require(a33_0x4fe9d7(0x22c)),constants=require('../utils/constants'),{FRAMEWORKS}=require(a33_0x4fe9d7(0x25e)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require(a33_0x4fe9d7(0x1c5)),{CrashReporter,o11yErrorHandler}=require(a33_0x4fe9d7(0x1c7)),{getFrameworkVersion}=require('../../helpers/test-observability/utils'),{createAccessibilityTestRun,stopAccessibilityTestRun,checkAccessibilityPlatformConfig}=require(a33_0x4fe9d7(0x26d)),{setAccessibilityCapabilities}=require(a33_0x4fe9d7(0x200)),SessionHandler=require(a33_0x4fe9d7(0x1d7)),TestHubHandler=require('../../helpers/testhub/testhubHandler'),testHubConstants=require(a33_0x4fe9d7(0x1c9)),{shouldProcessEventForTesthub}=require(a33_0x4fe9d7(0x1b6));function a33_0x3161(_0x6dc80b,_0xdc6a56){const _0x3e49d1=a33_0x3e49();return a33_0x3161=function(_0x31614f,_0x2b9196){_0x31614f=_0x31614f-0x1b4;let _0x38d50d=_0x3e49d1[_0x31614f];return _0x38d50d;},a33_0x3161(_0x6dc80b,_0xdc6a56);}async function requireOrImportDefaultObject(_0x3e15f7){const _0x284a5a=a33_0x4fe9d7,_0xb53f62={'oMwHi':function(_0x325311){return _0x325311();},'ROZGR':function(_0x2bcd5c,_0x4e6f0f){return _0x2bcd5c(_0x4e6f0f);},'LRblU':function(_0x5e12a0,_0x48da8c){return _0x5e12a0===_0x48da8c;},'wOtRL':_0x284a5a(0x1e2),'vqqRl':function(_0x1b9e92,_0x44a5de){return _0x1b9e92 in _0x44a5de;},'pDMKm':_0x284a5a(0x23f)},{requireOrImport:_0x12df12}=helper['requirePWModule'][_0x284a5a(0x1f0)](null,_0xb53f62[_0x284a5a(0x22d)](getTransformPath));let _0x46bd23=await _0xb53f62[_0x284a5a(0x220)](_0x12df12,_0x3e15f7);return _0x46bd23&&_0xb53f62['LRblU'](typeof _0x46bd23,_0xb53f62[_0x284a5a(0x274)])&&_0xb53f62[_0x284a5a(0x1c2)](_0xb53f62[_0x284a5a(0x237)],_0x46bd23)&&(_0x46bd23=_0x46bd23[_0xb53f62[_0x284a5a(0x237)]]),_0x46bd23;}const getUserPlaywrightConfig=async(_0x4f279d,_0xdcf465)=>{const _0x1f8ddb=a33_0x4fe9d7,_0xe6d62e={'EXFZd':function(_0x39ec5){return _0x39ec5();},'fuhPe':function(_0x583a23,_0x231c7f){return _0x583a23(_0x231c7f);},'ModFx':function(_0x451298,_0x4af594){return _0x451298(_0x4af594);},'ThvJA':'resolvedConfigFile','izsFS':function(_0x3445a6,_0x44f966){return _0x3445a6(_0x44f966);},'ARZRv':function(_0x1a0729,_0x4d6ae6){return _0x1a0729+_0x4d6ae6;},'JnkYF':_0x1f8ddb(0x27b),'LOJbn':'Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','WiYbX':'--config='},_0x16dd02=!helper['isUndefined'](_0x4f279d['config']),_0x17f344=_0x16dd02?path[_0x1f8ddb(0x24c)](process[_0x1f8ddb(0x216)](),_0x4f279d['config']):process[_0x1f8ddb(0x216)](),{resolveConfigFile:_0x152690,resolveConfigLocation:_0x3fec64}=helper[_0x1f8ddb(0x22a)]['apply'](null,_0xe6d62e['EXFZd'](getConfigLoaderPath)),_0x319b84=_0x152690?_0xe6d62e[_0x1f8ddb(0x227)](_0x152690,_0x17f344):helper[_0x1f8ddb(0x26e)](_0xe6d62e[_0x1f8ddb(0x222)](_0x3fec64,_0x17f344),[_0xe6d62e[_0x1f8ddb(0x25b)]]);let _0x926402={};if(_0x319b84){logger['info'](_0x1f8ddb(0x228)+_0x319b84);try{_0x926402=await _0xe6d62e[_0x1f8ddb(0x1e0)](requireOrImportDefaultObject,_0x319b84);}catch(_0x556898){return logger[_0x1f8ddb(0x1fe)](_0xe6d62e[_0x1f8ddb(0x265)](_0xe6d62e['JnkYF'],_0xe6d62e[_0x1f8ddb(0x227)](format,_0x556898))),null;}}else logger[_0x1f8ddb(0x259)](_0xe6d62e[_0x1f8ddb(0x1c0)]);if(_0x16dd02){const _0x29c865=_0xdcf465[_0x1f8ddb(0x20b)](_0x536759=>_0x536759===_0x1f8ddb(0x245)||_0x536759==='-c'||_0x536759[_0x1f8ddb(0x253)](_0x1f8ddb(0x25f)));_0xdcf465['splice'](_0x29c865,_0xdcf465[_0x29c865][_0x1f8ddb(0x253)](_0xe6d62e[_0x1f8ddb(0x26b)])?0x1:0x2);}const _0x5265ab={};return _0x5265ab['path']=_0x319b84,_0x5265ab[_0x1f8ddb(0x1e3)]=_0x926402,_0x5265ab;},setGlobalSetup=(_0x2d6cff,_0x3dca56)=>{const _0x559fcf=a33_0x4fe9d7,_0x4bf8af={'vYGuU':_0x559fcf(0x23b),'BLUeo':_0x559fcf(0x230),'qVeqN':function(_0x192cce,_0x31ef78){return _0x192cce+_0x31ef78;},'uSkEC':'Error\x20in\x20running\x20user\x20global\x20setup\x20for\x20playwright','NAkES':function(_0x469a26,_0x5ae50f){return _0x469a26(_0x5ae50f);},'jXKcx':_0x559fcf(0x1bf)};if(!_0x2d6cff)return![];try{if(_0x2d6cff[_0x559fcf(0x23b)]){let _0x52c02d;const _0x25abc7=path[_0x559fcf(0x24c)](_0x3dca56,_0x2d6cff[_0x4bf8af[_0x559fcf(0x1fb)]]);if(fs['existsSync'](_0x25abc7))_0x52c02d=_0x25abc7;else{const _0x4a1a3b={};_0x4a1a3b[_0x559fcf(0x1d8)]=[_0x3dca56],_0x52c02d=require[_0x559fcf(0x24c)](_0x2d6cff[_0x4bf8af[_0x559fcf(0x1fb)]],_0x4a1a3b);}if(!_0x52c02d)throw new Error(_0x4bf8af[_0x559fcf(0x25c)]);process['env'][_0x559fcf(0x25a)]=_0x52c02d;}}catch(_0x1acdbd){logger[_0x559fcf(0x1fe)](_0x4bf8af[_0x559fcf(0x231)](_0x4bf8af[_0x559fcf(0x1da)],_0x4bf8af[_0x559fcf(0x1d2)](format,_0x1acdbd)));}return _0x2d6cff[_0x559fcf(0x23b)]=require[_0x559fcf(0x24c)](_0x4bf8af[_0x559fcf(0x1c3)]),!![];},addReporter=_0x4e5c03=>{const _0x2cb31e=a33_0x4fe9d7,_0x4a88cb={};_0x4a88cb[_0x2cb31e(0x24a)]='./reporter/reporter.js',_0x4a88cb[_0x2cb31e(0x1bd)]=_0x2cb31e(0x215),_0x4a88cb[_0x2cb31e(0x1b4)]=function(_0x5563a2,_0x54f6bb){return _0x5563a2===_0x54f6bb;},_0x4a88cb[_0x2cb31e(0x244)]=_0x2cb31e(0x1db),_0x4a88cb[_0x2cb31e(0x1b9)]='object';const _0x30bacf=_0x4a88cb,_0x4590fb=path[_0x2cb31e(0x1f4)](__dirname,_0x30bacf[_0x2cb31e(0x24a)]),_0x267ca2=[_0x4590fb];if(helper['isUndefined'](_0x4e5c03[_0x30bacf[_0x2cb31e(0x1bd)]]))_0x4e5c03[_0x30bacf[_0x2cb31e(0x1bd)]]=[_0x267ca2];else{if(_0x30bacf['jHZrP'](typeof _0x4e5c03[_0x30bacf[_0x2cb31e(0x1bd)]],_0x30bacf[_0x2cb31e(0x244)]))_0x4e5c03[_0x30bacf[_0x2cb31e(0x1bd)]]=[[_0x4e5c03[_0x30bacf[_0x2cb31e(0x1bd)]]],_0x267ca2];else _0x30bacf[_0x2cb31e(0x1b4)](typeof _0x4e5c03[_0x30bacf[_0x2cb31e(0x1bd)]],_0x30bacf[_0x2cb31e(0x1b9)])&&_0x4e5c03[_0x30bacf[_0x2cb31e(0x1bd)]][_0x2cb31e(0x1ef)](_0x267ca2);}},handleO11yRerun=_0x266389=>{const _0x12f37e=a33_0x4fe9d7,_0x346c38={};_0x346c38[_0x12f37e(0x1e6)]=function(_0x4aa7dd,_0x472b91){return _0x4aa7dd!==_0x472b91;},_0x346c38[_0x12f37e(0x275)]='null',_0x346c38[_0x12f37e(0x203)]=_0x12f37e(0x1d3);const _0x12c6d2=_0x346c38,_0x152d24=helper[_0x12f37e(0x264)](process['env'][_0x12f37e(0x1dc)]);if(_0x152d24){const _0x46c83a=process[_0x12f37e(0x249)]['BROWSERSTACK_RERUN_TESTS'],_0x2782d3=[];if(_0x12c6d2[_0x12f37e(0x1e6)](_0x46c83a,_0x12c6d2[_0x12f37e(0x275)])&&!helper[_0x12f37e(0x26c)](_0x46c83a)){_0x46c83a[_0x12f37e(0x240)](',')[_0x12f37e(0x24e)](_0x577ba0=>{const _0x3a1171=_0x12f37e;_0x2782d3[_0x3a1171(0x1ef)]('('+_0x577ba0[_0x3a1171(0x1de)]()+')');});const _0x27195c='^'+_0x2782d3[_0x12f37e(0x1f4)]('|')+'$';_0x266389[_0x12f37e(0x1ef)](_0x12c6d2[_0x12f37e(0x203)],_0x27195c);}}},spawnOriginalProcess=_0x5b222d=>{const _0xc49775=a33_0x4fe9d7,_0x1501c9={'YdFRc':function(_0x50c979,_0xbd8df4,_0xca0c16,_0x3f5be4){return _0x50c979(_0xbd8df4,_0xca0c16,_0x3f5be4);},'YDYaE':_0xc49775(0x242),'heTpg':_0xc49775(0x1fc),'OaGoG':function(_0x33a887,_0x3ebd90){return _0x33a887===_0x3ebd90;},'UIEfu':_0xc49775(0x27f),'MDifT':'inherit'};_0x1501c9[_0xc49775(0x236)](spawn,_0x1501c9[_0xc49775(0x20c)],[_0x1501c9[_0xc49775(0x1cb)],..._0x5b222d[_0xc49775(0x257)](0x1)],{'shell':_0x1501c9[_0xc49775(0x20a)](process[_0xc49775(0x1e8)],_0x1501c9['UIEfu']),'stdio':_0x1501c9['MDifT'],'cwd':process[_0xc49775(0x216)]()});},isTestCommand=(_0x26fbcb,_0x55fe8d)=>{const _0x3d144b=a33_0x4fe9d7,_0x2fb7d6={};_0x2fb7d6[_0x3d144b(0x261)]=function(_0x1d84b9,_0x413d43){return _0x1d84b9>_0x413d43;},_0x2fb7d6[_0x3d144b(0x219)]=function(_0xd11227,_0x56e3d7){return _0xd11227===_0x56e3d7;},_0x2fb7d6[_0x3d144b(0x218)]='test';const _0x466a73=_0x2fb7d6;if(_0x466a73[_0x3d144b(0x261)](_0x55fe8d[_0x3d144b(0x1ca)],0x1)&&_0x466a73['cONQw'](_0x55fe8d[0x1],_0x466a73['ayDVK']))return!![];return![];},initO11yCrashReporter=(_0x5e242b,_0x439200)=>{const _0x3764b6=a33_0x4fe9d7,_0x260a5d={'oAOzk':function(_0x4e984e,_0x5ef4d5){return _0x4e984e(_0x5ef4d5);}},_0x356d08={'frameworkName':FRAMEWORKS[_0x3764b6(0x205)],'frameworkVersion':_0x260a5d['oAOzk'](getFrameworkVersion,FRAMEWORKS[_0x3764b6(0x205)])};CrashReporter[_0x3764b6(0x260)](_0x356d08,_0x5e242b,_0x439200);},launchO11ySession=o11yErrorHandler(async function launchO11ySession(_0x1d4cb5){const _0x434097=a33_0x4fe9d7,_0x25dcd6={};_0x25dcd6[_0x434097(0x256)]=function(_0x3e24cb,_0x4a6eba){return _0x3e24cb>_0x4a6eba;},_0x25dcd6[_0x434097(0x23c)]=function(_0x3cae0c,_0xb75865){return _0x3cae0c===_0xb75865;};const _0x4d7cf0=_0x25dcd6;if(!_0x1d4cb5||_0x4d7cf0['neMym'](_0x1d4cb5[_0x434097(0x1ca)],0x1)&&_0x4d7cf0[_0x434097(0x23c)](_0x1d4cb5[0x0],null))return process[_0x434097(0x249)][_0x434097(0x241)]=![],![];return!![];});function a33_0x3e49(){const _0x930cbe=['trim','test','izsFS','LpWVp','object','config','BROWSERSTACK_SETUP_CONFIG_PATH','logLevel','Huite','lFJhU','platform','BrowserStack\x20config\x20file\x20not\x20found.','qheCF','LsNcy','zKGuc','skipSessionStatus','writeFileSync','push','apply','1462060Qmvvgm','eEVKI','clearTempPWConfig','join','existsSync','errorMessage','isFalse','foVgI','7007BEYHZr','xEjlh','vYGuU','playwright','includes','error','LgANj','./accessibility-helper','rdody','testMatch','wvjly','testIgnore','PLAYWRIGHT','Adding\x20browserstack\x20configs\x20to\x20setup\x20for\x20Observability','homedir','AjFqg','480648MGJIla','OaGoG','findIndex','YDYaE','PACKAGE_TYPE','automation','stringify','mvtKT','caxVm','OBSERVABILITY','close','filterBrowserstackConfig','reporter','cwd','path','ayDVK','cONQw','playwright-browserstack-sdk.config.js','HcRlC','_internal','assign','ucYrH','AjVTk','ROZGR','IgRcq','ModFx','false','child_process','Error\x20in\x20generating\x20parallellised\x20config\x20for\x20playwright:\x20','795735DEMZFp','fuhPe','Getting\x20your\x20playwright\x20config\x20from\x20','LzPuU','requirePWModule','exports','../../helpers/helper','oMwHi','uyrVa','\x0a\x0aconst\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0amodule.exports\x20=\x20modifyPWConfig();\x0a','Can\x27t\x20get\x20user\x20defined\x20global\x20setup\x20file','qVeqN','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','2964XejcPY','oebvZ','finalExecution','YdFRc','pDMKm','\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();','Error\x20in\x20closing\x20playwright','GvjiO','globalSetup','gxWtE','concat','--disable-test-observability','default','split','BROWSERSTACK_TEST_OBSERVABILITY','npx','1017RQJSXm','kuYSV','--config','LIpEV','accessibility','18csQkyr','env','REnJC','RZDQK','resolve','true','map','ZDOKy','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','hIcpX','project','startsWith','42VKtxKw','launchBuild','neMym','slice','923673AhBjot','info','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','ThvJA','BLUeo','.browserstack','../../helpers/test-observability/constants','--config=','initialize','EjyfU','qXWOq','pw_result.json','isTrue','ARZRv','HFQpj','53633OnDARz','kIgzl','JCIcG','HNsGc','WiYbX','isUndefined','../../helpers/accessibility-automation/helper','nestedKeyValue','BROWSERSTACK_AUTOMATION','platforms','testContextOptions','6gIRcdD','debug','wOtRL','nQQrX','testObservability','unlinkSync','JJEjf','cliConfig','browserstackSetupConfig.json','Error\x20in\x20importing\x20your\x20playwright\x20config:\x20','serializeToYamlString','../../helpers/BrowserStackSetup','readFileSync','win32','jHZrP','UtNWo','../../helpers/testhub/utils','indexOf','markSDKSetupComplete','aCHed','testDir','44790QIabsd','inherit','RWNJZ','get','./globalSetup.js','LOJbn','VFxIo','vqqRl','jXKcx','zuARs','./reporter/pwUtils','Deleting\x20','../../helpers/test-observability/error-handler','respectGitIgnore','../../helpers/testhub/constants','length','heTpg','BROWSERSTACK_TEST_ACCESSIBILITY_YML','accessibilityOptions','parse','dirname','has','playwright-browserstack-sdk.config.cjs','NAkES','--grep','--disable-browserstack-automation','EVAxv','Error\x20in\x20getting\x20funnel\x20data\x20results','../../helpers/test-observability/sessionHandler','paths','XusCK','uSkEC','string','BROWSERSTACK_RERUN','ADThw'];a33_0x3e49=function(){return _0x930cbe;};return a33_0x3e49();}async function run(_0x966a9d,_0x546e35){const _0x2658a9=a33_0x4fe9d7,_0x322374={'VFxIo':_0x2658a9(0x25d),'ZDOKy':_0x2658a9(0x263),'HNsGc':function(_0x2fdf31,_0x1f6284){return _0x2fdf31+_0x1f6284;},'JJEjf':_0x2658a9(0x1d6),'hIuvA':'7|3|1|2|6|0|5|4','caxVm':function(_0x2cbb18){return _0x2cbb18();},'RZDQK':_0x2658a9(0x239),'HFQpj':_0x2658a9(0x1d4),'rdody':_0x2658a9(0x223),'kfamh':_0x2658a9(0x23e),'EVAxv':function(_0x2b9097,_0x7175b6){return _0x2b9097>=_0x7175b6;},'WAzMe':'Error\x20in\x20deleting\x20playwright\x20results','LgANj':function(_0x470f30,_0x268270,_0x1e3bff){return _0x470f30(_0x268270,_0x1e3bff);},'qidwt':function(_0x54706d,_0x245b44){return _0x54706d(_0x245b44);},'DDxTL':_0x2658a9(0x1e9),'JCIcG':_0x2658a9(0x20e),'zKGuc':function(_0x476cf9,_0x232d2d){return _0x476cf9!=_0x232d2d;},'ADThw':function(_0x321298,_0x2ee0a2){return _0x321298(_0x2ee0a2);},'uyrVa':function(_0x5303b0,_0x4cb214,_0x9ed118){return _0x5303b0(_0x4cb214,_0x9ed118);},'AjVTk':_0x2658a9(0x206),'LzPuU':function(_0x19b824,_0x2a4990,_0x1ed0de){return _0x19b824(_0x2a4990,_0x1ed0de);},'kIgzl':function(_0x8167a3,_0x2565aa){return _0x8167a3(_0x2565aa);},'HcRlC':function(_0x344c27,_0x24aaf4){return _0x344c27===_0x24aaf4;},'lFJhU':_0x2658a9(0x24d),'ucYrH':function(_0x22d3aa,_0x127148){return _0x22d3aa(_0x127148);},'IgRcq':function(_0x531560,_0x37312d){return _0x531560(_0x37312d);},'UtNWo':function(_0x5d6a91,_0x57ea3c){return _0x5d6a91===_0x57ea3c;},'eEVKI':_0x2658a9(0x27a),'czuMZ':function(_0x3131a9){return _0x3131a9();},'GvjiO':_0x2658a9(0x1ba),'zuARs':_0x2658a9(0x202),'xEjlh':_0x2658a9(0x204),'LpWVp':function(_0x120e2a,_0x25a30a){return _0x120e2a+_0x25a30a;},'UnVFC':_0x2658a9(0x225),'mvtKT':_0x2658a9(0x1d1),'LIpEV':_0x2658a9(0x21a),'AjFqg':function(_0x448b59,_0x5c0d57){return _0x448b59>_0x5c0d57;},'FTOpA':function(_0x3825e3,_0x4cdec1){return _0x3825e3+_0x4cdec1;},'oebvZ':function(_0x5e46da,_0x34cc32,_0x5bf546,_0x56d14c){return _0x5e46da(_0x34cc32,_0x5bf546,_0x56d14c);},'XusCK':_0x2658a9(0x242),'qXWOq':_0x2658a9(0x1fc),'qheCF':_0x2658a9(0x1df),'rFXvl':_0x2658a9(0x245),'QVqaJ':function(_0x325302,_0x3dfbd7){return _0x325302===_0x3dfbd7;},'hIcpX':_0x2658a9(0x27f),'LsNcy':_0x2658a9(0x1bc),'foVgI':_0x2658a9(0x213)};!helper[_0x2658a9(0x1f7)](process['env'][_0x2658a9(0x26f)])&&(process['env'][_0x2658a9(0x26f)]=!![]);process['argv'][_0x2658a9(0x1fd)](_0x322374[_0x2658a9(0x266)])&&(process[_0x2658a9(0x249)]['BROWSERSTACK_AUTOMATION']=_0x322374[_0x2658a9(0x201)],_0x546e35=_0x546e35['filter'](_0x2c783a=>_0x2c783a!=='--disable-browserstack-automation'));const _0x307ca3=_0x546e35[_0x2658a9(0x1b7)](_0x322374['kfamh']);_0x322374[_0x2658a9(0x1d5)](_0x307ca3,0x0)&&(process[_0x2658a9(0x249)][_0x2658a9(0x241)]=_0x322374[_0x2658a9(0x201)],_0x546e35=_0x546e35['filter'](_0x9a22d=>_0x9a22d!==_0x2658a9(0x23e)));try{const _0x52700e=path[_0x2658a9(0x1f4)](helper['homedir'](),_0x322374[_0x2658a9(0x1c1)],_0x322374[_0x2658a9(0x24f)]);fs[_0x2658a9(0x1f5)](_0x52700e)&&fs[_0x2658a9(0x277)](_0x52700e);}catch(_0x352e13){logger[_0x2658a9(0x273)](_0x322374['HNsGc'](_0x322374['WAzMe'],_0x352e13));}if(!_0x322374[_0x2658a9(0x1ff)](isTestCommand,_0x966a9d,_0x546e35)){_0x322374['qidwt'](spawnOriginalProcess,_0x546e35);return;}const _0x47eda1=new BrowserStackSetup(_0x966a9d,FRAMEWORKS['PLAYWRIGHT']);if(!_0x47eda1[_0x2658a9(0x1e3)]){logger['error'](_0x322374['DDxTL']);return;}await _0x47eda1[_0x2658a9(0x260)]();!helper['isUndefined'](_0x47eda1[_0x2658a9(0x279)])&&_0x47eda1[_0x2658a9(0x279)][_0x2658a9(0x1d0)](_0x322374[_0x2658a9(0x269)])&&(process[_0x2658a9(0x249)]['BROWSERSTACK_AUTOMATION']=_0x47eda1['cliConfig'][_0x2658a9(0x1be)](_0x322374[_0x2658a9(0x269)])||!![]);_0x322374[_0x2658a9(0x1ec)](_0x47eda1[_0x2658a9(0x1e3)][_0x2658a9(0x276)],null)&&!helper[_0x2658a9(0x264)](process[_0x2658a9(0x249)][_0x2658a9(0x241)])&&(process[_0x2658a9(0x249)]['BROWSERSTACK_TEST_OBSERVABILITY']=process[_0x2658a9(0x249)][_0x2658a9(0x241)]||_0x47eda1[_0x2658a9(0x1e3)]['testObservability']);const _0x29afec=!helper[_0x2658a9(0x1f7)](process['env']['BROWSERSTACK_TEST_OBSERVABILITY']);let _0xd2879c=![];_0x47eda1[_0x2658a9(0x1e3)][_0x2658a9(0x247)]&&(_0xd2879c=!![],process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x47eda1[_0x2658a9(0x1e3)][_0x2658a9(0x247)]);_0x47eda1[_0x2658a9(0x1e3)][_0x2658a9(0x1cd)]&&(process['env'][_0x2658a9(0x232)]=JSON[_0x2658a9(0x20f)](_0x47eda1[_0x2658a9(0x1e3)][_0x2658a9(0x1cd)]));const _0x3bd4a8=_0x546e35[_0x2658a9(0x23d)](),_0x1908df=await _0x322374[_0x2658a9(0x1ff)](getUserPlaywrightConfig,_0x966a9d,_0x546e35);if(helper[_0x2658a9(0x26c)](_0x1908df)){_0x322374['ADThw'](spawnOriginalProcess,_0x3bd4a8);return;}const _0x3c90c2={..._0x1908df[_0x2658a9(0x1e3)]},_0xf89adf=_0x3c90c2,_0x278c2e=_0x1908df['path']?path[_0x2658a9(0x1cf)](_0x1908df[_0x2658a9(0x217)]):process[_0x2658a9(0x216)]();process[_0x2658a9(0x249)]['BROWSERSTACK_PW_CONFIG_DIR']=_0x278c2e;if(!_0x322374[_0x2658a9(0x22e)](setGlobalSetup,_0xf89adf,_0x278c2e)){_0x322374['qidwt'](spawnOriginalProcess,_0x3bd4a8);return;}const _0x5529a1=await TestHubHandler[_0x2658a9(0x255)](FRAMEWORKS[_0x2658a9(0x205)],_0x47eda1);_0x29afec&&(logger['info'](_0x322374[_0x2658a9(0x21f)]),_0x322374[_0x2658a9(0x229)](initO11yCrashReporter,_0xf89adf,_0x47eda1[_0x2658a9(0x1e3)]),_0x322374[_0x2658a9(0x268)](handleO11yRerun,_0x546e35),await _0x322374[_0x2658a9(0x1dd)](launchO11ySession,_0x5529a1[testHubConstants[_0x2658a9(0x212)]]));_0x322374[_0x2658a9(0x211)](shouldProcessEventForTesthub)&&_0x322374[_0x2658a9(0x1dd)](addReporter,_0xf89adf);let _0x5212f6=_0x322374[_0x2658a9(0x21b)](process[_0x2658a9(0x249)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML'],_0x322374[_0x2658a9(0x1e7)]);_0x5212f6=_0x5212f6||_0x322374[_0x2658a9(0x21e)](checkAccessibilityPlatformConfig,_0x47eda1[_0x2658a9(0x1e3)]),process[_0x2658a9(0x249)][_0x2658a9(0x1cc)]=_0x5212f6;_0x5212f6&&_0x322374[_0x2658a9(0x221)](setAccessibilityCapabilities,_0x47eda1[_0x2658a9(0x1e3)]);(helper[_0x2658a9(0x26c)](_0x47eda1[_0x2658a9(0x1e3)]['platforms'])||_0x322374[_0x2658a9(0x1b5)](_0x47eda1[_0x2658a9(0x1e3)][_0x2658a9(0x270)][_0x2658a9(0x1ca)],0x0))&&(process[_0x2658a9(0x249)][_0x2658a9(0x26f)]=![]);const _0x2a409e=path['join'](_0x1908df[_0x2658a9(0x217)]?path[_0x2658a9(0x1cf)](_0x1908df[_0x2658a9(0x217)]):process[_0x2658a9(0x216)](),_0x322374[_0x2658a9(0x1f2)]);fs[_0x2658a9(0x1ee)](_0x2a409e,helper[_0x2658a9(0x27c)](_0x47eda1[_0x2658a9(0x1e3)])),process[_0x2658a9(0x249)][_0x2658a9(0x1e4)]=_0x2a409e,helper[_0x2658a9(0x1f3)]();if(helper[_0x2658a9(0x264)](process[_0x2658a9(0x249)]['BROWSERSTACK_AUTOMATION'])){let _0x359b49=[];try{const _0x138a15=helper[_0x2658a9(0x22a)]['apply'](null,_0x322374['czuMZ'](getProjectUtilsPath)),_0x3fd029={};_0x3fd029[_0x2658a9(0x1c8)]=!![],_0x3fd029[_0x2658a9(0x1ba)]='',_0x3fd029['testMatch']='',_0x3fd029[_0x2658a9(0x204)]='';const _0x8393a5={};_0x8393a5[_0x2658a9(0x1c8)]=!![];const _0x18c4b5={};_0x18c4b5[_0x2658a9(0x252)]=_0x3fd029,_0x18c4b5[_0x2658a9(0x21c)]=_0x8393a5;let _0x5ea2d6=_0x18c4b5;_0xf89adf[_0x322374[_0x2658a9(0x23a)]]&&(_0x5ea2d6['project'][_0x322374[_0x2658a9(0x23a)]]=_0xf89adf[_0x322374['GvjiO']]),_0xf89adf[_0x322374[_0x2658a9(0x1c4)]]&&(_0x5ea2d6['project'][_0x322374[_0x2658a9(0x1c4)]]=_0xf89adf[_0x322374[_0x2658a9(0x1c4)]]),_0xf89adf[_0x322374[_0x2658a9(0x1fa)]]&&(_0x5ea2d6[_0x2658a9(0x252)][_0x322374[_0x2658a9(0x1fa)]]=_0xf89adf[_0x322374[_0x2658a9(0x1fa)]]),_0x5ea2d6=Object[_0x2658a9(0x21d)](_0x5ea2d6,_0x5ea2d6[_0x2658a9(0x252)]),_0x359b49=await _0x138a15['collectFilesForProject'](_0x5ea2d6);}catch(_0x2c2905){logger['debug'](_0x322374[_0x2658a9(0x1e1)](_0x322374['UnVFC'],_0x322374[_0x2658a9(0x221)](format,_0x2c2905)));}}let _0x544efd='';_0x322374[_0x2658a9(0x21b)](helper['getPackageType'](),constants[_0x2658a9(0x20d)]['MODULE'])?_0x544efd=_0x322374[_0x2658a9(0x210)]:_0x544efd=_0x322374[_0x2658a9(0x246)];const _0x521b16=path[_0x2658a9(0x1f4)](_0x1908df[_0x2658a9(0x217)]?path[_0x2658a9(0x1cf)](_0x1908df[_0x2658a9(0x217)]):process[_0x2658a9(0x216)](),_0x544efd);let _0x3d4281=_0x1908df['path']?_0x1908df[_0x2658a9(0x217)]:'';_0x3d4281=_0x322374[_0x2658a9(0x208)](_0x3d4281['length'],0x0)?path[_0x2658a9(0x24c)](_0x3d4281):'',process[_0x2658a9(0x249)]['USER_CONFIG_DETAILS_PATH']=_0x3d4281;let _0x2a91f8=_0x2658a9(0x22f);const _0xc43136=helper['getProxyUrl'](_0x47eda1[_0x2658a9(0x1e3)]);_0xc43136&&(_0x2a91f8=_0x322374['FTOpA'](_0x2658a9(0x250)+_0xc43136+_0x2658a9(0x238),_0x2a91f8));helper[_0x2658a9(0x214)]({},_0x546e35),fs[_0x2658a9(0x1ee)](_0x521b16,_0x2a91f8),helper[_0x2658a9(0x1b8)]();const _0x8ab8c6=_0x322374[_0x2658a9(0x234)](spawn,_0x322374[_0x2658a9(0x1d9)],[_0x322374[_0x2658a9(0x262)],_0x322374[_0x2658a9(0x1ea)],_0x322374['rFXvl'],_0x521b16,..._0x546e35[_0x2658a9(0x257)](0x2)],{'shell':_0x322374['QVqaJ'](process[_0x2658a9(0x1e8)],_0x322374[_0x2658a9(0x251)]),'stdio':_0x322374[_0x2658a9(0x1eb)],'cwd':process[_0x2658a9(0x216)](),'env':Object['assign']({},process[_0x2658a9(0x249)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper['getConfigPath'](_0x966a9d),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x47eda1['config'][_0x2658a9(0x271)][_0x2658a9(0x1ed)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x47eda1[_0x2658a9(0x1e3)]['testContextOptions']['skipSessionName'],'BROWSERSTACK_LOG_LEVEL':_0x47eda1['config'][_0x2658a9(0x1e5)]})}),_0x2073fc=()=>{const _0x36e949=_0x2658a9;try{const _0x507fca=path[_0x36e949(0x1f4)](helper[_0x36e949(0x207)](),_0x322374[_0x36e949(0x1c1)],_0x322374[_0x36e949(0x24f)]);if(fs[_0x36e949(0x1f5)](_0x507fca)){let _0x30f90d=fs[_0x36e949(0x27e)](_0x507fca);_0x30f90d=JSON[_0x36e949(0x1ce)](_0x30f90d),_0x47eda1[_0x36e949(0x1f6)]=_0x30f90d,fs['unlinkSync'](_0x507fca);}}catch(_0x33c5c9){logger[_0x36e949(0x273)](_0x322374[_0x36e949(0x26a)](_0x322374[_0x36e949(0x278)],_0x33c5c9));}};_0x8ab8c6['on'](_0x322374[_0x2658a9(0x1f8)],async _0x2da1fa=>{const _0x72f0e2=_0x2658a9;try{const _0x3ade83=_0x322374['hIuvA']['split']('|');let _0x4318bf=0x0;while(!![]){switch(_0x3ade83[_0x4318bf++]){case'0':fs['unlinkSync'](_0x521b16);continue;case'1':process['exitCode']=_0x2da1fa;continue;case'2':logger[_0x72f0e2(0x273)]('Playwright\x20process\x20exited\x20with\x20code\x20'+_0x2da1fa);continue;case'3':await helper[_0x72f0e2(0x235)](_0x47eda1);continue;case'4':fs[_0x72f0e2(0x277)](_0x2a409e);continue;case'5':logger[_0x72f0e2(0x273)](_0x72f0e2(0x1c6)+_0x2a409e);continue;case'6':logger[_0x72f0e2(0x259)]('Deleting\x20'+_0x521b16);continue;case'7':_0x322374[_0x72f0e2(0x211)](_0x2073fc);continue;}break;}}catch(_0x4937cf){logger[_0x72f0e2(0x273)](_0x322374['HNsGc'](_0x322374[_0x72f0e2(0x24b)],_0x4937cf));}});}module[a33_0x4fe9d7(0x22b)]=run;
|
|
2
|
+
'use strict';function a33_0x8582(){const _0x157099=['includes','4556160RrQCrE','5|4|3|1|0|6|2|7','BROWSERSTACK_TEST_ACCESSIBILITY_YML','BROWSERSTACK_PW_CONFIG_DIR','NgGYw','paths','testDir','browserstackSetupConfig.json','JPqcx','EBIzU','../../helpers/test-observability/utils','isUndefined','env','LXkuC','info','markSDKSetupComplete','apply','hqhfI','fGdRW','launchBuild','pilPU','unlinkSync','../../helpers/testhub/constants','push','hCGFh','./globalSetup.js','respectGitIgnore','winstonLogger','DNEbx','AXGKq','has','CTRPP','startsWith','isFalse','../../helpers/test-observability/constants','GoWxS','stringify','OBSERVABILITY','DsByl','testObservability','length','Getting\x20your\x20playwright\x20config\x20from\x20','../../helpers/test-observability/error-handler','../../helpers/testhub/utils','getPackageType','ZtXVi','6710648CMtKTn','globalSetup','test','win32','skipSessionStatus','koCAV','66858255QHeBGR','UzUwa','skipSessionName','map','xDefa','bpnKO','BROWSERSTACK_AUTOMATION','logLevel','string','object','--disable-browserstack-automation','nHmBQ','testMatch','LNQzU','ujaXl','TczbW','indexOf','Error\x20in\x20generating\x20parallellised\x20config\x20for\x20playwright:\x20','ukmGT','kkpXw','Deleting\x20','EeEsN','BrowserStack\x20config\x20file\x20not\x20found.','ivTjT','OXZKo','inherit','writeFileSync','ZvCrQ','resolve','../../helpers/logger','YhIov','playwright-browserstack-sdk.config.cjs','config','testIgnore','get','./reporter/reporter.js','error','ihOIf','BqoLd','bbNOv','argv','Error\x20in\x20closing\x20playwright','Error\x20in\x20running\x20user\x20global\x20setup\x20for\x20playwright','tbOae','yvLfB','--config','project','981671OvHhkW','parse','cliConfig','--config=','concat','slice','../../helpers/test-observability/sessionHandler','xYDNn','sxJLB','findIndex','../../helpers/helper','vZOXJ','tuIyx','BROWSERSTACK_RERUN','IvYkb','QnfMk','qBqnU','xqoWZ','false','existsSync','BROWSERSTACK_TEST_OBSERVABILITY','accessibilityOptions','SMsRl','Error\x20in\x20importing\x20your\x20playwright\x20config:\x20','debug','8aCcrjl','szCqS','dirname','MODULE','Adding\x20browserstack\x20configs\x20to\x20setup\x20for\x20Observability','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','--grep','pjmDj','gIiKr','util','BROWSERSTACK_SETUP_CONFIG_PATH','jiRUq','\x0a\x0aconst\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0amodule.exports\x20=\x20modifyPWConfig();\x0a','LYeZP','serializeToYamlString','../../helpers/testhub/testhubHandler','ZPxOt','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','wYTby','--disable-test-observability','Error\x20in\x20getting\x20funnel\x20data\x20results','iRVbg','BVLwZ','USER_CONFIG_DETAILS_PATH','250662pYTwlk','child_process','../../helpers/BrowserStackSetup','zhbQU','gYeiG','filter','TXPGx','503306ihvvDr','Xjfuy','isTrue','platform','exports','playwright','zsYSS','join','\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();','iJPJG','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','RfHyc','xUwjx','RIEXB','cTcCv','filterBrowserstackConfig','PLAYWRIGHT','./reporter/pwUtils','playwright-browserstack-sdk.config.js','readFileSync','null','errorMessage','trim','split','SDiJr','default','finalExecution','rezYb','205YlJKum','NzYGR','nestedKeyValue','requirePWModule','Jmjcb','cwd','accessibility','_internal','initialize','5748281SVOszq','../utils/constants','homedir','assign','MVSQQ','hGjBd','path','collectFilesForProject','gOroi','Can\x27t\x20get\x20user\x20defined\x20global\x20setup\x20file'];a33_0x8582=function(){return _0x157099;};return a33_0x8582();}const a33_0xff277f=a33_0x418b;(function(_0x1a138b,_0x4d6ef3){const _0x42fd7f=a33_0x418b,_0x36a9dd=_0x1a138b();while(!![]){try{const _0x246f5d=-parseInt(_0x42fd7f(0x218))/0x1+parseInt(_0x42fd7f(0x250))/0x2+-parseInt(_0x42fd7f(0x280))/0x3+-parseInt(_0x42fd7f(0x2ae))/0x4+-parseInt(_0x42fd7f(0x26c))/0x5*(parseInt(_0x42fd7f(0x249))/0x6)+-parseInt(_0x42fd7f(0x275))/0x7+-parseInt(_0x42fd7f(0x231))/0x8*(-parseInt(_0x42fd7f(0x1e9))/0x9);if(_0x246f5d===_0x4d6ef3)break;else _0x36a9dd['push'](_0x36a9dd['shift']());}catch(_0x152b1a){_0x36a9dd['push'](_0x36a9dd['shift']());}}}(a33_0x8582,0xec63f));function a33_0x418b(_0x17ce30,_0x5eb907){const _0x8582e0=a33_0x8582();return a33_0x418b=function(_0x418b78,_0x39d4d5){_0x418b78=_0x418b78-0x1e6;let _0x25ce4f=_0x8582e0[_0x418b78];return _0x25ce4f;},a33_0x418b(_0x17ce30,_0x5eb907);}const fs=require('fs'),path=require(a33_0xff277f(0x27b)),os=require('os'),{spawn}=require(a33_0xff277f(0x24a)),{format}=require(a33_0xff277f(0x23a)),logger=require(a33_0xff277f(0x206))[a33_0xff277f(0x29b)],{default:BrowserStackSetup}=require(a33_0xff277f(0x24b)),helper=require(a33_0xff277f(0x222)),constants=require(a33_0xff277f(0x276)),{FRAMEWORKS}=require(a33_0xff277f(0x2a2)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require(a33_0xff277f(0x261)),{CrashReporter,o11yErrorHandler}=require(a33_0xff277f(0x2aa)),{getFrameworkVersion}=require(a33_0xff277f(0x28a)),{createAccessibilityTestRun,stopAccessibilityTestRun,checkAccessibilityPlatformConfig}=require('../../helpers/accessibility-automation/helper'),{setAccessibilityCapabilities}=require('./accessibility-helper'),SessionHandler=require(a33_0xff277f(0x21e)),TestHubHandler=require(a33_0xff277f(0x240)),testHubConstants=require(a33_0xff277f(0x296)),{shouldProcessEventForTesthub}=require(a33_0xff277f(0x2ab));async function requireOrImportDefaultObject(_0x32e6ba){const _0x4c61ab=a33_0xff277f,_0x8d8374={'BqoLd':function(_0x4977a5){return _0x4977a5();},'dMVQu':function(_0x59cbd1,_0x11397b){return _0x59cbd1(_0x11397b);},'vwkBG':function(_0x395b76,_0x13e306){return _0x395b76===_0x13e306;},'JPqcx':'object','tbOae':function(_0x1e5040,_0x1925a1){return _0x1e5040 in _0x1925a1;},'Xjfuy':_0x4c61ab(0x269)},{requireOrImport:_0x3d9e7d}=helper[_0x4c61ab(0x26f)]['apply'](null,_0x8d8374[_0x4c61ab(0x20f)](getTransformPath));let _0x2df7f3=await _0x8d8374['dMVQu'](_0x3d9e7d,_0x32e6ba);return _0x2df7f3&&_0x8d8374['vwkBG'](typeof _0x2df7f3,_0x8d8374[_0x4c61ab(0x288)])&&_0x8d8374[_0x4c61ab(0x214)](_0x8d8374[_0x4c61ab(0x251)],_0x2df7f3)&&(_0x2df7f3=_0x2df7f3[_0x8d8374[_0x4c61ab(0x251)]]),_0x2df7f3;}const getUserPlaywrightConfig=async(_0x2a12a5,_0x3c9f3f)=>{const _0x5bc4b2=a33_0xff277f,_0xe076fd={'ZPxOt':function(_0x4390ad){return _0x4390ad();},'BVLwZ':function(_0xe12d99,_0x23d1f5){return _0xe12d99(_0x23d1f5);},'qMHTj':function(_0x5a2c71,_0x3a3d04){return _0x5a2c71(_0x3a3d04);},'ujaXl':'resolvedConfigFile','MVSQQ':function(_0x1ecb8a,_0x3e2c91){return _0x1ecb8a(_0x3e2c91);},'LNQzU':function(_0x15321c,_0x1a29b3){return _0x15321c+_0x1a29b3;},'oeoUn':_0x5bc4b2(0x22f),'DNEbx':'Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','sxJLB':_0x5bc4b2(0x21b)},_0x14df9a=!helper[_0x5bc4b2(0x28b)](_0x2a12a5[_0x5bc4b2(0x209)]),_0x373942=_0x14df9a?path[_0x5bc4b2(0x205)](process['cwd'](),_0x2a12a5['config']):process['cwd'](),{resolveConfigFile:_0x30aee1,resolveConfigLocation:_0x12ed3c}=helper[_0x5bc4b2(0x26f)][_0x5bc4b2(0x290)](null,_0xe076fd[_0x5bc4b2(0x241)](getConfigLoaderPath)),_0x596c77=_0x30aee1?_0xe076fd[_0x5bc4b2(0x247)](_0x30aee1,_0x373942):helper[_0x5bc4b2(0x26e)](_0xe076fd['qMHTj'](_0x12ed3c,_0x373942),[_0xe076fd[_0x5bc4b2(0x1f7)]]);let _0xf0ee01={};if(_0x596c77){logger[_0x5bc4b2(0x28e)](_0x5bc4b2(0x2a9)+_0x596c77);try{_0xf0ee01=await _0xe076fd[_0x5bc4b2(0x279)](requireOrImportDefaultObject,_0x596c77);}catch(_0x556af6){return logger['error'](_0xe076fd[_0x5bc4b2(0x1f6)](_0xe076fd['oeoUn'],_0xe076fd['MVSQQ'](format,_0x556af6))),null;}}else logger[_0x5bc4b2(0x28e)](_0xe076fd[_0x5bc4b2(0x29c)]);if(_0x14df9a){const _0x2c090d=_0x3c9f3f[_0x5bc4b2(0x221)](_0x342d72=>_0x342d72==='--config'||_0x342d72==='-c'||_0x342d72[_0x5bc4b2(0x2a0)](_0x5bc4b2(0x21b)));_0x3c9f3f['splice'](_0x2c090d,_0x3c9f3f[_0x2c090d][_0x5bc4b2(0x2a0)](_0xe076fd[_0x5bc4b2(0x220)])?0x1:0x2);}const _0x2ba26a={};return _0x2ba26a['path']=_0x596c77,_0x2ba26a['config']=_0xf0ee01,_0x2ba26a;},setGlobalSetup=(_0x4ba346,_0x2533c0)=>{const _0x422ec0=a33_0xff277f,_0x2ca359={'gIiKr':_0x422ec0(0x2af),'EBIzU':_0x422ec0(0x27e),'hqhfI':function(_0x5460b0,_0x1196f5){return _0x5460b0+_0x1196f5;},'lTRgt':_0x422ec0(0x213),'JMvoJ':function(_0x2dd0ef,_0x59f4fd){return _0x2dd0ef(_0x59f4fd);},'iRVbg':_0x422ec0(0x299)};if(!_0x4ba346)return![];try{if(_0x4ba346[_0x422ec0(0x2af)]){let _0x5d0d85;const _0x1dc161=path[_0x422ec0(0x205)](_0x2533c0,_0x4ba346[_0x2ca359[_0x422ec0(0x239)]]);if(fs[_0x422ec0(0x22b)](_0x1dc161))_0x5d0d85=_0x1dc161;else{const _0x53e0e1={};_0x53e0e1[_0x422ec0(0x285)]=[_0x2533c0],_0x5d0d85=require[_0x422ec0(0x205)](_0x4ba346[_0x2ca359[_0x422ec0(0x239)]],_0x53e0e1);}if(!_0x5d0d85)throw new Error(_0x2ca359[_0x422ec0(0x289)]);process[_0x422ec0(0x28c)][_0x422ec0(0x25a)]=_0x5d0d85;}}catch(_0x13746c){logger[_0x422ec0(0x20d)](_0x2ca359[_0x422ec0(0x291)](_0x2ca359['lTRgt'],_0x2ca359['JMvoJ'](format,_0x13746c)));}return _0x4ba346[_0x422ec0(0x2af)]=require['resolve'](_0x2ca359[_0x422ec0(0x246)]),!![];},addReporter=_0x542477=>{const _0x5478fd=a33_0xff277f,_0x47f16b={};_0x47f16b['Jmjcb']=_0x5478fd(0x20c),_0x47f16b[_0x5478fd(0x27d)]='reporter',_0x47f16b[_0x5478fd(0x26d)]=function(_0x42c846,_0x3e4d62){return _0x42c846===_0x3e4d62;},_0x47f16b['TXPGx']=_0x5478fd(0x1f1),_0x47f16b[_0x5478fd(0x28d)]=_0x5478fd(0x1f2);const _0x2aeb8b=_0x47f16b,_0x252381=path[_0x5478fd(0x257)](__dirname,_0x2aeb8b[_0x5478fd(0x270)]),_0x4b5d89=[_0x252381];if(helper[_0x5478fd(0x28b)](_0x542477[_0x2aeb8b[_0x5478fd(0x27d)]]))_0x542477[_0x2aeb8b[_0x5478fd(0x27d)]]=[_0x4b5d89];else{if(_0x2aeb8b['NzYGR'](typeof _0x542477[_0x2aeb8b[_0x5478fd(0x27d)]],_0x2aeb8b[_0x5478fd(0x24f)]))_0x542477[_0x2aeb8b[_0x5478fd(0x27d)]]=[[_0x542477[_0x2aeb8b['gOroi']]],_0x4b5d89];else _0x2aeb8b[_0x5478fd(0x26d)](typeof _0x542477[_0x2aeb8b[_0x5478fd(0x27d)]],_0x2aeb8b[_0x5478fd(0x28d)])&&_0x542477[_0x2aeb8b['gOroi']][_0x5478fd(0x297)](_0x4b5d89);}},handleO11yRerun=_0x525781=>{const _0x5a486e=a33_0xff277f,_0xe7bf5d={};_0xe7bf5d[_0x5a486e(0x298)]=function(_0x785a32,_0xdab5fb){return _0x785a32!==_0xdab5fb;},_0xe7bf5d['ftpYI']=_0x5a486e(0x264),_0xe7bf5d[_0x5a486e(0x294)]=_0x5a486e(0x237);const _0x354e9a=_0xe7bf5d,_0x6c801a=helper[_0x5a486e(0x252)](process[_0x5a486e(0x28c)][_0x5a486e(0x225)]);if(_0x6c801a){const _0x29023b=process[_0x5a486e(0x28c)]['BROWSERSTACK_RERUN_TESTS'],_0x222fdd=[];if(_0x354e9a['hCGFh'](_0x29023b,_0x354e9a['ftpYI'])&&!helper['isUndefined'](_0x29023b)){_0x29023b[_0x5a486e(0x267)](',')[_0x5a486e(0x1ec)](_0x16b98c=>{const _0x405fd6=_0x5a486e;_0x222fdd[_0x405fd6(0x297)]('('+_0x16b98c[_0x405fd6(0x266)]()+')');});const _0x14a5a8='^'+_0x222fdd[_0x5a486e(0x257)]('|')+'$';_0x525781[_0x5a486e(0x297)](_0x354e9a[_0x5a486e(0x294)],_0x14a5a8);}}},spawnOriginalProcess=_0x422c21=>{const _0x1dfe1b=a33_0xff277f,_0x316180={'oKBGo':function(_0x5cc55a,_0x30f9eb,_0x1aacc0,_0x342ba6){return _0x5cc55a(_0x30f9eb,_0x1aacc0,_0x342ba6);},'ihOIf':'npx','vZOXJ':_0x1dfe1b(0x255),'AXGKq':function(_0x1c89fe,_0x327e36){return _0x1c89fe===_0x327e36;},'ekSwu':_0x1dfe1b(0x1e6),'jiRUq':_0x1dfe1b(0x202)};_0x316180['oKBGo'](spawn,_0x316180[_0x1dfe1b(0x20e)],[_0x316180[_0x1dfe1b(0x223)],..._0x422c21['slice'](0x1)],{'shell':_0x316180[_0x1dfe1b(0x29d)](process['platform'],_0x316180['ekSwu']),'stdio':_0x316180[_0x1dfe1b(0x23c)],'cwd':process[_0x1dfe1b(0x271)]()});},isTestCommand=(_0x560f26,_0x164057)=>{const _0x277d5f=a33_0xff277f,_0x23065c={};_0x23065c['CTRPP']=function(_0x520f80,_0x3cc992){return _0x520f80>_0x3cc992;},_0x23065c[_0x277d5f(0x200)]=function(_0x4698ac,_0x2f89f8){return _0x4698ac===_0x2f89f8;},_0x23065c[_0x277d5f(0x284)]=_0x277d5f(0x2b0);const _0x42819e=_0x23065c;if(_0x42819e[_0x277d5f(0x29f)](_0x164057[_0x277d5f(0x2a8)],0x1)&&_0x42819e['ivTjT'](_0x164057[0x1],_0x42819e[_0x277d5f(0x284)]))return!![];return![];},initO11yCrashReporter=(_0x40dac7,_0x3c9847)=>{const _0x4814bf=a33_0xff277f,_0x531c79={'TSRua':function(_0x566aa7,_0x3c318){return _0x566aa7(_0x3c318);}},_0x35bf98={'frameworkName':FRAMEWORKS[_0x4814bf(0x260)],'frameworkVersion':_0x531c79['TSRua'](getFrameworkVersion,FRAMEWORKS['PLAYWRIGHT'])};CrashReporter[_0x4814bf(0x274)](_0x35bf98,_0x40dac7,_0x3c9847);},launchO11ySession=o11yErrorHandler(async function launchO11ySession(_0x523390){const _0x40f963=a33_0xff277f,_0x502fb8={};_0x502fb8[_0x40f963(0x1f4)]=function(_0x3d2e4a,_0x57da64){return _0x3d2e4a>_0x57da64;},_0x502fb8[_0x40f963(0x256)]=function(_0x5eeb91,_0x3cf0e1){return _0x5eeb91===_0x3cf0e1;};const _0x253ccf=_0x502fb8;if(!_0x523390||_0x253ccf['nHmBQ'](_0x523390[_0x40f963(0x2a8)],0x1)&&_0x253ccf[_0x40f963(0x256)](_0x523390[0x0],null))return process[_0x40f963(0x28c)]['BROWSERSTACK_TEST_OBSERVABILITY']=![],![];return!![];});async function run(_0x249726,_0x5f3a17){const _0x5b0b02=a33_0xff277f,_0x5b5f14={'pjmDj':'.browserstack','RIEXB':'pw_result.json','IvYkb':function(_0xd88042,_0x4f0bf3){return _0xd88042+_0x4f0bf3;},'pNPzz':_0x5b0b02(0x245),'LYeZP':_0x5b0b02(0x281),'xDefa':function(_0x1fb2b7){return _0x1fb2b7();},'EeEsN':function(_0x155070,_0x62a55d){return _0x155070+_0x62a55d;},'zZfjF':_0x5b0b02(0x212),'RfHyc':_0x5b0b02(0x1f3),'TczbW':_0x5b0b02(0x22a),'rezYb':'--disable-test-observability','GoWxS':function(_0x3b93fa,_0x16dc62){return _0x3b93fa>=_0x16dc62;},'tuIyx':function(_0x1508de,_0x2d69f0){return _0x1508de+_0x2d69f0;},'MlXIv':'Error\x20in\x20deleting\x20playwright\x20results','UzUwa':function(_0xd71cc9,_0x42c995,_0x493a4d){return _0xd71cc9(_0x42c995,_0x493a4d);},'xqoWZ':function(_0x5a226b,_0x3a01db){return _0x5a226b(_0x3a01db);},'SMsRl':_0x5b0b02(0x1ff),'xYDNn':'automation','OXZKo':function(_0x404227,_0x3c508a){return _0x404227!=_0x3c508a;},'xUwjx':function(_0x5c2614,_0x79c1c1,_0x2b4d91){return _0x5c2614(_0x79c1c1,_0x2b4d91);},'kkpXw':_0x5b0b02(0x235),'OaPUi':function(_0x4e3873,_0x4aed4f,_0x3e4291){return _0x4e3873(_0x4aed4f,_0x3e4291);},'gYeiG':function(_0x32cb80,_0x3a3cc5){return _0x32cb80(_0x3a3cc5);},'NSoFQ':function(_0xf1bf76,_0x449b78){return _0xf1bf76(_0x449b78);},'bpnKO':function(_0x1fec1c,_0x448279){return _0x1fec1c(_0x448279);},'szCqS':function(_0x343e21,_0x4bb946){return _0x343e21===_0x4bb946;},'ukmGT':'true','CvmqE':function(_0x2f1305,_0x5d2496){return _0x2f1305(_0x5d2496);},'QnfMk':_0x5b0b02(0x287),'ZvCrQ':function(_0x1fec5c){return _0x1fec5c();},'zhbQU':'testDir','bbNOv':_0x5b0b02(0x1f5),'koCAV':'testIgnore','cTcCv':_0x5b0b02(0x1fa),'YhIov':_0x5b0b02(0x208),'yvLfB':_0x5b0b02(0x262),'qBqnU':function(_0x2d0950,_0x423de7){return _0x2d0950>_0x423de7;},'ZIWGK':function(_0x419967,_0x2256c6,_0xafd112,_0x588751){return _0x419967(_0x2256c6,_0xafd112,_0x588751);},'iJPJG':'npx','hGjBd':'playwright','SDiJr':'test','ZtXVi':_0x5b0b02(0x216),'DsByl':function(_0x49d7e6,_0x45a26e){return _0x49d7e6===_0x45a26e;},'abMLR':_0x5b0b02(0x1e6),'wYTby':_0x5b0b02(0x202),'fGdRW':'close'};!helper[_0x5b0b02(0x2a1)](process['env'][_0x5b0b02(0x1ef)])&&(process[_0x5b0b02(0x28c)][_0x5b0b02(0x1ef)]=!![]);process[_0x5b0b02(0x211)][_0x5b0b02(0x27f)](_0x5b5f14[_0x5b0b02(0x25b)])&&(process[_0x5b0b02(0x28c)][_0x5b0b02(0x1ef)]=_0x5b5f14['TczbW'],_0x5f3a17=_0x5f3a17[_0x5b0b02(0x24e)](_0x102134=>_0x102134!=='--disable-browserstack-automation'));const _0x37ca21=_0x5f3a17[_0x5b0b02(0x1f9)](_0x5b5f14[_0x5b0b02(0x26b)]);_0x5b5f14[_0x5b0b02(0x2a3)](_0x37ca21,0x0)&&(process[_0x5b0b02(0x28c)][_0x5b0b02(0x22c)]=_0x5b5f14[_0x5b0b02(0x1f8)],_0x5f3a17=_0x5f3a17[_0x5b0b02(0x24e)](_0x44f3b3=>_0x44f3b3!==_0x5b0b02(0x244)));try{const _0x362e31=path['join'](helper[_0x5b0b02(0x277)](),_0x5b5f14[_0x5b0b02(0x238)],_0x5b5f14[_0x5b0b02(0x25d)]);fs['existsSync'](_0x362e31)&&fs['unlinkSync'](_0x362e31);}catch(_0x8d7caf){logger[_0x5b0b02(0x230)](_0x5b5f14[_0x5b0b02(0x224)](_0x5b5f14['MlXIv'],_0x8d7caf));}if(!_0x5b5f14[_0x5b0b02(0x1ea)](isTestCommand,_0x249726,_0x5f3a17)){_0x5b5f14[_0x5b0b02(0x229)](spawnOriginalProcess,_0x5f3a17);return;}const _0x590f07=new BrowserStackSetup(_0x249726,FRAMEWORKS[_0x5b0b02(0x260)]);if(!_0x590f07[_0x5b0b02(0x209)]){logger[_0x5b0b02(0x20d)](_0x5b5f14[_0x5b0b02(0x22e)]);return;}await _0x590f07[_0x5b0b02(0x274)]();!helper[_0x5b0b02(0x28b)](_0x590f07[_0x5b0b02(0x21a)])&&_0x590f07[_0x5b0b02(0x21a)][_0x5b0b02(0x29e)](_0x5b5f14[_0x5b0b02(0x21f)])&&(process['env']['BROWSERSTACK_AUTOMATION']=_0x590f07[_0x5b0b02(0x21a)][_0x5b0b02(0x20b)](_0x5b5f14[_0x5b0b02(0x21f)])||!![]);_0x5b5f14[_0x5b0b02(0x201)](_0x590f07[_0x5b0b02(0x209)][_0x5b0b02(0x2a7)],null)&&!helper['isTrue'](process['env']['BROWSERSTACK_TEST_OBSERVABILITY'])&&(process[_0x5b0b02(0x28c)][_0x5b0b02(0x22c)]=process[_0x5b0b02(0x28c)][_0x5b0b02(0x22c)]||_0x590f07['config'][_0x5b0b02(0x2a7)]);const _0x574ed4=!helper[_0x5b0b02(0x2a1)](process[_0x5b0b02(0x28c)][_0x5b0b02(0x22c)]);let _0x192d47=![];_0x590f07[_0x5b0b02(0x209)][_0x5b0b02(0x272)]&&(_0x192d47=!![],process[_0x5b0b02(0x28c)][_0x5b0b02(0x282)]=_0x590f07[_0x5b0b02(0x209)][_0x5b0b02(0x272)]);_0x590f07['config'][_0x5b0b02(0x22d)]&&(process[_0x5b0b02(0x28c)][_0x5b0b02(0x242)]=JSON[_0x5b0b02(0x2a4)](_0x590f07[_0x5b0b02(0x209)][_0x5b0b02(0x22d)]));const _0x16a338=_0x5f3a17[_0x5b0b02(0x21c)](),_0x3b15cb=await _0x5b5f14[_0x5b0b02(0x1ea)](getUserPlaywrightConfig,_0x249726,_0x5f3a17);if(helper['isUndefined'](_0x3b15cb)){_0x5b5f14[_0x5b0b02(0x229)](spawnOriginalProcess,_0x16a338);return;}const _0x1a701e={..._0x3b15cb[_0x5b0b02(0x209)]},_0x983703=_0x1a701e,_0x4dddac=_0x3b15cb[_0x5b0b02(0x27b)]?path[_0x5b0b02(0x233)](_0x3b15cb[_0x5b0b02(0x27b)]):process[_0x5b0b02(0x271)]();process[_0x5b0b02(0x28c)][_0x5b0b02(0x283)]=_0x4dddac;if(!_0x5b5f14[_0x5b0b02(0x25c)](setGlobalSetup,_0x983703,_0x4dddac)){_0x5b5f14[_0x5b0b02(0x229)](spawnOriginalProcess,_0x16a338);return;}const _0x3dec8e=await TestHubHandler[_0x5b0b02(0x293)](FRAMEWORKS[_0x5b0b02(0x260)],_0x590f07);_0x574ed4&&(logger[_0x5b0b02(0x28e)](_0x5b5f14[_0x5b0b02(0x1fc)]),_0x5b5f14['OaPUi'](initO11yCrashReporter,_0x983703,_0x590f07[_0x5b0b02(0x209)]),_0x5b5f14['gYeiG'](handleO11yRerun,_0x5f3a17),await _0x5b5f14['NSoFQ'](launchO11ySession,_0x3dec8e[testHubConstants[_0x5b0b02(0x2a5)]]));_0x5b5f14[_0x5b0b02(0x1ed)](shouldProcessEventForTesthub)&&_0x5b5f14[_0x5b0b02(0x1ee)](addReporter,_0x983703);let _0x3a38ee=_0x5b5f14[_0x5b0b02(0x232)](process['env'][_0x5b0b02(0x282)],_0x5b5f14[_0x5b0b02(0x1fb)]);_0x3a38ee=_0x3a38ee||_0x5b5f14[_0x5b0b02(0x229)](checkAccessibilityPlatformConfig,_0x590f07[_0x5b0b02(0x209)]),process[_0x5b0b02(0x28c)][_0x5b0b02(0x282)]=_0x3a38ee;_0x3a38ee&&_0x5b5f14['CvmqE'](setAccessibilityCapabilities,_0x590f07['config']);const _0x587c74=path['join'](_0x3b15cb[_0x5b0b02(0x27b)]?path['dirname'](_0x3b15cb[_0x5b0b02(0x27b)]):process[_0x5b0b02(0x271)](),_0x5b5f14[_0x5b0b02(0x227)]);fs[_0x5b0b02(0x203)](_0x587c74,helper[_0x5b0b02(0x23f)](_0x590f07[_0x5b0b02(0x209)])),process[_0x5b0b02(0x28c)][_0x5b0b02(0x23b)]=_0x587c74,helper['clearTempPWConfig']();if(helper[_0x5b0b02(0x252)](process[_0x5b0b02(0x28c)]['BROWSERSTACK_AUTOMATION'])){let _0x2d39b6=[];try{const _0x104ffd=helper[_0x5b0b02(0x26f)][_0x5b0b02(0x290)](null,_0x5b5f14[_0x5b0b02(0x204)](getProjectUtilsPath)),_0x245dc8={};_0x245dc8[_0x5b0b02(0x29a)]=!![],_0x245dc8[_0x5b0b02(0x286)]='',_0x245dc8[_0x5b0b02(0x1f5)]='',_0x245dc8[_0x5b0b02(0x20a)]='';const _0x487b8c={};_0x487b8c['respectGitIgnore']=!![];const _0x47fb53={};_0x47fb53[_0x5b0b02(0x217)]=_0x245dc8,_0x47fb53[_0x5b0b02(0x273)]=_0x487b8c;let _0x6bff35=_0x47fb53;_0x983703[_0x5b5f14['zhbQU']]&&(_0x6bff35['project'][_0x5b5f14[_0x5b0b02(0x24c)]]=_0x983703[_0x5b5f14['zhbQU']]),_0x983703[_0x5b5f14[_0x5b0b02(0x210)]]&&(_0x6bff35[_0x5b0b02(0x217)][_0x5b5f14[_0x5b0b02(0x210)]]=_0x983703[_0x5b5f14['bbNOv']]),_0x983703[_0x5b5f14['koCAV']]&&(_0x6bff35[_0x5b0b02(0x217)][_0x5b5f14[_0x5b0b02(0x1e8)]]=_0x983703[_0x5b5f14[_0x5b0b02(0x1e8)]]),_0x6bff35=Object[_0x5b0b02(0x278)](_0x6bff35,_0x6bff35['project']),_0x2d39b6=await _0x104ffd[_0x5b0b02(0x27c)](_0x6bff35);}catch(_0x45fa87){logger[_0x5b0b02(0x230)](_0x5b5f14[_0x5b0b02(0x224)](_0x5b5f14[_0x5b0b02(0x25e)],_0x5b5f14[_0x5b0b02(0x24d)](format,_0x45fa87)));}}let _0x23e6e0='';_0x5b5f14[_0x5b0b02(0x232)](helper[_0x5b0b02(0x2ac)](),constants['PACKAGE_TYPE'][_0x5b0b02(0x234)])?_0x23e6e0=_0x5b5f14[_0x5b0b02(0x207)]:_0x23e6e0=_0x5b5f14[_0x5b0b02(0x215)];const _0x2c0e4f=path[_0x5b0b02(0x257)](_0x3b15cb[_0x5b0b02(0x27b)]?path[_0x5b0b02(0x233)](_0x3b15cb[_0x5b0b02(0x27b)]):process['cwd'](),_0x23e6e0);let _0x2e987a=_0x3b15cb[_0x5b0b02(0x27b)]?_0x3b15cb[_0x5b0b02(0x27b)]:'';_0x2e987a=_0x5b5f14[_0x5b0b02(0x228)](_0x2e987a[_0x5b0b02(0x2a8)],0x0)?path[_0x5b0b02(0x205)](_0x2e987a):'',process[_0x5b0b02(0x28c)][_0x5b0b02(0x248)]=_0x2e987a;let _0x46a272=_0x5b0b02(0x23d);const _0x57d3b6=helper['getProxyUrl'](_0x590f07[_0x5b0b02(0x209)]);_0x57d3b6&&(_0x46a272=_0x5b5f14[_0x5b0b02(0x1fe)](_0x5b0b02(0x236)+_0x57d3b6+_0x5b0b02(0x258),_0x46a272));helper[_0x5b0b02(0x25f)]({},_0x5f3a17),fs[_0x5b0b02(0x203)](_0x2c0e4f,_0x46a272),helper[_0x5b0b02(0x28f)]();const _0x5cea32=_0x5b5f14['ZIWGK'](spawn,_0x5b5f14[_0x5b0b02(0x259)],[_0x5b5f14[_0x5b0b02(0x27a)],_0x5b5f14[_0x5b0b02(0x268)],_0x5b5f14[_0x5b0b02(0x2ad)],_0x2c0e4f,..._0x5f3a17[_0x5b0b02(0x21d)](0x2)],{'shell':_0x5b5f14[_0x5b0b02(0x2a6)](process[_0x5b0b02(0x253)],_0x5b5f14['abMLR']),'stdio':_0x5b5f14[_0x5b0b02(0x243)],'cwd':process[_0x5b0b02(0x271)](),'env':Object[_0x5b0b02(0x278)]({},process['env'],{'BROWSERSTACK_CONFIG_FILE_PATH':helper['getConfigPath'](_0x249726),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x590f07[_0x5b0b02(0x209)]['testContextOptions'][_0x5b0b02(0x1e7)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x590f07['config']['testContextOptions'][_0x5b0b02(0x1eb)],'BROWSERSTACK_LOG_LEVEL':_0x590f07[_0x5b0b02(0x209)][_0x5b0b02(0x1f0)]})}),_0x18fa16=()=>{const _0x450c9f=_0x5b0b02;try{const _0xa3ec2e=path[_0x450c9f(0x257)](helper[_0x450c9f(0x277)](),_0x5b5f14[_0x450c9f(0x238)],_0x5b5f14[_0x450c9f(0x25d)]);if(fs[_0x450c9f(0x22b)](_0xa3ec2e)){let _0x56d0f5=fs[_0x450c9f(0x263)](_0xa3ec2e);_0x56d0f5=JSON[_0x450c9f(0x219)](_0x56d0f5),_0x590f07[_0x450c9f(0x265)]=_0x56d0f5,fs[_0x450c9f(0x295)](_0xa3ec2e);}}catch(_0x25ef41){logger['debug'](_0x5b5f14[_0x450c9f(0x226)](_0x5b5f14['pNPzz'],_0x25ef41));}};_0x5cea32['on'](_0x5b5f14[_0x5b0b02(0x292)],async _0x26cafd=>{const _0x59b85e=_0x5b0b02;try{const _0x35e9d5=_0x5b5f14[_0x59b85e(0x23e)][_0x59b85e(0x267)]('|');let _0x1a56d2=0x0;while(!![]){switch(_0x35e9d5[_0x1a56d2++]){case'0':logger[_0x59b85e(0x28e)]('Deleting\x20'+_0x2c0e4f);continue;case'1':logger[_0x59b85e(0x230)]('Playwright\x20process\x20exited\x20with\x20code\x20'+_0x26cafd);continue;case'2':logger[_0x59b85e(0x230)](_0x59b85e(0x1fd)+_0x587c74);continue;case'3':process['exitCode']=_0x26cafd;continue;case'4':await helper[_0x59b85e(0x26a)](_0x590f07);continue;case'5':_0x5b5f14[_0x59b85e(0x1ed)](_0x18fa16);continue;case'6':fs['unlinkSync'](_0x2c0e4f);continue;case'7':fs[_0x59b85e(0x295)](_0x587c74);continue;}break;}}catch(_0x16f794){logger['debug'](_0x5b5f14[_0x59b85e(0x1fe)](_0x5b5f14['zZfjF'],_0x16f794));}});}module[a33_0xff277f(0x254)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a34_0x12da18=a34_0x54ad;function a34_0x54ad(_0x3aeb65,_0x3d683c){const _0xead7bf=a34_0xead7();return a34_0x54ad=function(_0x54ad1c,_0x4f69e1){_0x54ad1c=_0x54ad1c-0x6e;let _0x442b9e=_0xead7bf[_0x54ad1c];return _0x442b9e;},a34_0x54ad(_0x3aeb65,_0x3d683c);}(function(_0x19fe60,_0x1a631a){const _0x5aa1bd=a34_0x54ad,_0x1a565c=_0x19fe60();while(!![]){try{const _0x570813=-parseInt(_0x5aa1bd(0x6e))/0x1+parseInt(_0x5aa1bd(0x70))/0x2*(-parseInt(_0x5aa1bd(0x95))/0x3)+-parseInt(_0x5aa1bd(0x76))/0x4+-parseInt(_0x5aa1bd(0x74))/0x5+parseInt(_0x5aa1bd(0x75))/0x6*(-parseInt(_0x5aa1bd(0x80))/0x7)+parseInt(_0x5aa1bd(0x8e))/0x8*(parseInt(_0x5aa1bd(0x7f))/0x9)+parseInt(_0x5aa1bd(0x8b))/0xa*(parseInt(_0x5aa1bd(0x89))/0xb);if(_0x570813===_0x1a631a)break;else _0x1a565c['push'](_0x1a565c['shift']());}catch(_0x26f61e){_0x1a565c['push'](_0x1a565c['shift']());}}}(a34_0xead7,0xe38e9));const child_process=require(a34_0x12da18(0x84)),{FRAMEWORKS}=require(a34_0x12da18(0x81)),{getFrameworkVersion,debug}=require(a34_0x12da18(0x99)),helper=require(a34_0x12da18(0x73)),{getLoadUtilsPath,getForkProcessPath}=require('./reporter/pwUtils'),logger=require(a34_0x12da18(0x7c))[a34_0x12da18(0x71)];module[a34_0x12da18(0x94)]=async function(_0x47b9f2){const _0x544471=a34_0x12da18,_0x32b2e1={'SjviC':function(_0xe46923,_0x3a8ecc){return _0xe46923(_0x3a8ecc);},'MfSen':function(_0x43b152){return _0x43b152();},'akNAz':_0x544471(0x78),'jeNie':function(_0x2d4704){return _0x2d4704();},'RtYVE':function(_0xdb2d6c,_0x434b8b){return _0xdb2d6c(_0x434b8b);},'AHWpg':_0x544471(0x6f),'sHawK':function(_0x352044,_0x81caa3){return _0x352044(_0x81caa3);},'boUOh':function(_0x2f8423,_0x5c8180){return _0x2f8423>=_0x5c8180;},'IsSQN':_0x544471(0x8f),'VleJK':function(_0x1b68ac,_0x375a82,_0x497e44){return _0x1b68ac(_0x375a82,_0x497e44);},'YMPKa':function(_0x130653,_0x26e724){return _0x130653!==_0x26e724;},'iQEYp':_0x544471(0x72),'zRPBf':_0x544471(0x8a)},_0x130759=child_process[_0x544471(0x7d)];child_process[_0x544471(0x7d)]=function(){const _0x4f765d=_0x544471;return _0x32b2e1[_0x4f765d(0x8c)](debug,_0x4f765d(0x77)+arguments[0x0]),arguments[0x0][_0x4f765d(0x82)](_0x32b2e1['MfSen'](getForkProcessPath))?arguments[0x0]=require['resolve'](_0x32b2e1[_0x4f765d(0x91)]):logger['error'](_0x4f765d(0x8d)+_0x32b2e1[_0x4f765d(0x9a)](getForkProcessPath)+_0x4f765d(0x7a)),_0x130759[_0x4f765d(0x7e)](null,arguments);};if(process[_0x544471(0x90)]['BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP']){_0x32b2e1[_0x544471(0x96)](debug,_0x32b2e1[_0x544471(0x83)]);try{const {loadGlobalHook:_0x3834ff}=helper[_0x544471(0x9b)][_0x544471(0x7e)](null,_0x32b2e1[_0x544471(0x7b)](getLoadUtilsPath)),_0x48c657=_0x32b2e1[_0x544471(0x98)](getFrameworkVersion,FRAMEWORKS['PLAYWRIGHT']);let _0x326c44=_0x47b9f2;if(_0x32b2e1[_0x544471(0x88)](helper[_0x544471(0x79)](_0x48c657,_0x32b2e1['IsSQN']),0x0)){const _0x50a6c0={};_0x50a6c0[_0x544471(0x87)]=_0x47b9f2,_0x326c44=_0x50a6c0;}const _0x7d8951=await _0x32b2e1[_0x544471(0x86)](_0x3834ff,_0x326c44,process[_0x544471(0x90)]['BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP']);if(_0x32b2e1[_0x544471(0x93)](typeof _0x7d8951,_0x32b2e1[_0x544471(0x97)]))throw new Error(_0x32b2e1[_0x544471(0x92)]);return _0x7d8951[_0x544471(0x7e)](null,arguments);}catch(_0x143a3b){_0x32b2e1[_0x544471(0x8c)](debug,_0x544471(0x85)+_0x143a3b['toString']());}}};function a34_0xead7(){const _0x2e3830=['RtYVE','iQEYp','sHawK','../../helpers/test-observability/utils','jeNie','requirePWModule','277640eUguAg','Running\x20existing\x20global\x20setup','316MzqZus','winstonLogger','function','../../helpers/helper','7955430gqGTLS','2513670ZNhWvC','3290824dnITyV','Call\x20to\x20child\x20fork\x20with\x20args\x20','./mock-process.js','compareVersions','\x20is\x20not\x20found','MfSen','../../helpers/logger','fork','apply','9437049TkiKMr','28akyRJg','../../helpers/test-observability/constants','includes','AHWpg','child_process','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','VleJK','config','boUOh','51306310luxMYU','Not\x20able\x20to\x20import\x20globalSetup','10fqjYqg','SjviC','Path\x20','8WPSvyg','1.33.0','env','akNAz','zRPBf','YMPKa','exports','7851fdksHo'];a34_0xead7=function(){return _0x2e3830;};return a34_0xead7();}
|