browserstack-node-sdk 1.33.3 → 1.33.4
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_0x5b0e(_0x263bdb,_0x187bbb){const _0x23199c=a27_0x2319();return a27_0x5b0e=function(_0x5b0e64,_0x11c6a6){_0x5b0e64=_0x5b0e64-0x10b;let _0x485a9b=_0x23199c[_0x5b0e64];return _0x485a9b;},a27_0x5b0e(_0x263bdb,_0x187bbb);}const a27_0x2cb701=a27_0x5b0e;(function(_0x4c6e08,_0x41bd55){const _0x2435a2=a27_0x5b0e,_0x477e03=_0x4c6e08();while(!![]){try{const _0x4070cb=-parseInt(_0x2435a2(0x16f))/0x1+-parseInt(_0x2435a2(0x118))/0x2+-parseInt(_0x2435a2(0x184))/0x3+parseInt(_0x2435a2(0x151))/0x4*(-parseInt(_0x2435a2(0x162))/0x5)+-parseInt(_0x2435a2(0x132))/0x6*(parseInt(_0x2435a2(0x170))/0x7)+-parseInt(_0x2435a2(0x136))/0x8*(-parseInt(_0x2435a2(0x17a))/0x9)+parseInt(_0x2435a2(0x168))/0xa;if(_0x4070cb===_0x41bd55)break;else _0x477e03['push'](_0x477e03['shift']());}catch(_0x511a28){_0x477e03['push'](_0x477e03['shift']());}}}(a27_0x2319,0xd77c6));function a27_0x2319(){const _0x5bf8cb=['https://','originalBuilder','ms:edgeOptions','debug','3|4|1|2|0|5','../../../helpers/helper','55krFcyb','HttpClient','CCCzc','setCapabilities','edgeOptions_','Proxy\x20set\x20to\x20','60207670bwXHMb','KXrPZ','tsKPe','../../../helpers/patchHelpers','isAccessibilityPlatform','Modifying\x20webdriver\x20builder','quitCount_','1117844XlpaUt','161fTTaLg','../../../helpers/accessibility-automation/helper','qVFEE','__setBrowserOptions','SQlPh','sGTJR','send','NlBLn','safariOptions_','../../../hubAllocationMethods','684ePcNmL','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','getGlobal','New\x20hub\x20url\x20set\x20to\x20','overrideExecute','overrideGet','set','error','build','firefoxOptions','4585977dsZcnC','AUtcM','url_','KNcQQ','HBEHX','se:ieOptions','../../../helpers/logger','/session','isUndefined','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','setLogLevel','UDXoY','__driversArray','push','OzpHg','Builder','object','746918EXMeLu','xeGIE','path','ZbyyQ','capability','getAccessibilityResults','/wd/hub','tmsun','proxyUrl','TUMCM','ezsKn','edgeOptions','then','UzvFJ','../../../helpers/globals','capabilities_','ieOptions','requireHttpClient','getHttpAgent','getRequestOptions','forEach','mergeDeep','goog:chromeOptions','nvkTl','rNdJo','RMTtH','270966dOfKex','__drivers','../accessibility-automation/helper','updateHubUrl','36328LsjujV','chromeOptions','safari.options','proxySettings','zjMgp','global','IxZDy','newHubUrl','chromeOptions_','Alrsl','getHubUrl','LVBWc','ieOptions_','proxy_','setServer','isBrowserstackInfra','Hub\x20url\x20set\x20to\x20','__driver','options_','CAPABILITY_KEY','uyCgm','get','vNJzc','browserstackAgentObservability','getAccessibilityResultsSummary','browserStackLogLevel','ogvgJ','518032jjupYz','info','winstonLogger','firefoxOptions_','rPQaA','XjUoI','JLcPu','../../../bin/utils/constants','Setting\x20Browserstack\x20capabilities','HRpzY','VMvCY'];a27_0x2319=function(){return _0x5bf8cb;};return a27_0x2319();}const logger=require(a27_0x2cb701(0x10d))[a27_0x2cb701(0x153)],helper=require(a27_0x2cb701(0x161)),constants=require(a27_0x2cb701(0x158)),hubAllocator=require(a27_0x2cb701(0x179)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a27_0x2cb701(0x16b)),{setAccessibilityCapabilities,setExtension}=require(a27_0x2cb701(0x134)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a27_0x2cb701(0x171)),globals=require(a27_0x2cb701(0x126)),modify=(_0xd1d7e6,_0x3fdce9=null,_0x38585d=![])=>{const _0x19d6e8=a27_0x2cb701,_0x29b113={'ojrrk':function(_0x41e2c9,_0x41148e){return _0x41e2c9!==_0x41148e;},'rYigv':_0x19d6e8(0x10e),'CCCzc':function(_0x56f894,_0xe0f942){return _0x56f894!==_0xe0f942;},'UDXoY':function(_0x38b6da,_0x2530f2){return _0x38b6da+_0x2530f2;},'uyCgm':function(_0x3f4c43,_0x6017c3){return _0x3f4c43+_0x6017c3;},'tpdDm':_0x19d6e8(0x15c),'IxZDy':_0x19d6e8(0x11e),'OzpHg':_0x19d6e8(0x12e),'ZbyyQ':_0x19d6e8(0x137),'ezsKn':_0x19d6e8(0x15e),'HBEHX':_0x19d6e8(0x123),'xeGIE':'moz:firefoxOptions','KNcQQ':_0x19d6e8(0x183),'SQlPh':_0x19d6e8(0x138),'KXrPZ':_0x19d6e8(0x10c),'UzvFJ':_0x19d6e8(0x128),'rNdJo':function(_0xebc9a1,_0x66f841){return _0xebc9a1===_0x66f841;},'HRpzY':_0x19d6e8(0x117),'qVFEE':_0x19d6e8(0x159),'NlBLn':function(_0x3ee7f2,_0x385a9e,_0x5273d3){return _0x3ee7f2(_0x385a9e,_0x5273d3);},'ogvgJ':'optimalHubUrl','tsKPe':'OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','rPQaA':function(_0x5300f2,_0x2624d8){return _0x5300f2(_0x2624d8);},'RMTtH':_0x19d6e8(0x160),'zjMgp':_0x19d6e8(0x16c),'JLcPu':function(_0x2a51b7,_0x544c57,_0x78ac55){return _0x2a51b7(_0x544c57,_0x78ac55);},'trtlo':function(_0xfc26dd){return _0xfc26dd();},'nvkTl':function(_0x266311,_0x2eafcf){return _0x266311(_0x2eafcf);},'Alrsl':'Running\x20your\x20test\x20suite\x20on\x20BrowserStack','SQymF':function(_0x4aa0b5,_0x443121){return _0x4aa0b5(_0x443121);},'AUtcM':function(_0x5b735d,_0x71e3fb){return _0x5b735d!==_0x71e3fb;},'LVBWc':function(_0x348fd8,_0xd32504){return _0x348fd8!==_0xd32504;},'VNMKs':_0x19d6e8(0x110),'XjUoI':_0x19d6e8(0x16d)},_0x2b246a=helper[_0x19d6e8(0x129)]();let _0x3377b0;try{_0x3377b0=helper['requireSeleniumWebdriver'](),_0x3377b0[_0x19d6e8(0x15d)]&&(_0x3377b0[_0x19d6e8(0x116)]=_0x3377b0[_0x19d6e8(0x15d)]);}catch(_0xb134ee){return;}if(helper[_0x19d6e8(0x145)]()){const _0xbab307={};_0xbab307['logLevel']=_0xd1d7e6[_0x19d6e8(0x14f)],helper[_0x19d6e8(0x111)](_0xbab307,new Map(),new Map()),logger[_0x19d6e8(0x152)](_0x29b113['VNMKs']),logger[_0x19d6e8(0x15f)](_0x29b113[_0x19d6e8(0x156)]);}class _0x20266c extends _0x2b246a[_0x19d6e8(0x163)]{[_0x19d6e8(0x176)](_0x52e86b){const _0x5b131a=_0x19d6e8;if(_0x29b113['ojrrk'](_0x52e86b[_0x5b131a(0x11a)],_0x29b113['rYigv'])&&_0x29b113[_0x5b131a(0x164)](global['newHubUrl'],''))try{global[_0x5b131a(0x13d)]=_0x29b113[_0x5b131a(0x112)](_0x29b113[_0x5b131a(0x14a)](_0x29b113['tpdDm'],global['newHubUrl']),_0x29b113[_0x5b131a(0x13c)]),this[_0x5b131a(0x148)]=hubAllocator[_0x5b131a(0x12b)](global[_0x5b131a(0x13d)]),logger[_0x5b131a(0x15f)](_0x5b131a(0x17d)+global[_0x5b131a(0x13d)]),global[_0x5b131a(0x13d)]='';}catch(_0xc957f3){logger[_0x5b131a(0x181)](_0xc957f3);}return super[_0x5b131a(0x176)](_0x52e86b);}}class _0x1abb96 extends _0x3377b0[_0x19d6e8(0x116)]{[_0x19d6e8(0x144)](){const _0x2b0c4e=_0x19d6e8;return this[_0x2b0c4e(0x186)]=helper[_0x2b0c4e(0x140)](_0xd1d7e6),logger[_0x2b0c4e(0x15f)](_0x2b0c4e(0x146)+this['url_']),this;}['__setBrowserOptions'](_0x43e7f2){const _0x5c08b4=_0x19d6e8;let _0x119b18={};for(const _0x1a29bf in _0x43e7f2){switch(_0x1a29bf){case _0x29b113[_0x5c08b4(0x115)]:case _0x29b113[_0x5c08b4(0x11b)]:this[_0x5c08b4(0x13e)]&&(_0x119b18=this['chromeOptions_']['get'](this[_0x5c08b4(0x13e)][_0x5c08b4(0x149)])||{},this[_0x5c08b4(0x13e)][_0x5c08b4(0x180)](this[_0x5c08b4(0x13e)]['CAPABILITY_KEY'],helper['mergeDeep'](_0x119b18,_0x43e7f2[_0x1a29bf])));break;case _0x29b113[_0x5c08b4(0x122)]:case _0x29b113[_0x5c08b4(0x10b)]:this[_0x5c08b4(0x166)]&&(_0x119b18=this[_0x5c08b4(0x166)][_0x5c08b4(0x14b)](this[_0x5c08b4(0x166)][_0x5c08b4(0x149)])||{},this['edgeOptions_'][_0x5c08b4(0x180)](this[_0x5c08b4(0x166)]['CAPABILITY_KEY'],helper[_0x5c08b4(0x12d)](_0x119b18,_0x43e7f2[_0x1a29bf])));break;case _0x29b113[_0x5c08b4(0x119)]:case _0x29b113[_0x5c08b4(0x187)]:this[_0x5c08b4(0x154)]&&(_0x119b18=this[_0x5c08b4(0x154)][_0x5c08b4(0x14b)](this[_0x5c08b4(0x154)][_0x5c08b4(0x149)])||{},this[_0x5c08b4(0x154)][_0x5c08b4(0x180)](this[_0x5c08b4(0x154)][_0x5c08b4(0x149)],helper[_0x5c08b4(0x12d)](_0x119b18,_0x43e7f2[_0x1a29bf])));break;case _0x29b113[_0x5c08b4(0x174)]:this[_0x5c08b4(0x178)]&&(_0x119b18=this[_0x5c08b4(0x178)][_0x5c08b4(0x14b)](this[_0x5c08b4(0x178)][_0x5c08b4(0x149)])||{},this[_0x5c08b4(0x178)]['set'](this[_0x5c08b4(0x178)][_0x5c08b4(0x149)],helper['mergeDeep'](_0x119b18,_0x43e7f2[_0x1a29bf])));break;case _0x29b113[_0x5c08b4(0x169)]:case _0x29b113[_0x5c08b4(0x125)]:this[_0x5c08b4(0x142)]&&(_0x119b18=this[_0x5c08b4(0x142)][_0x5c08b4(0x14b)](this[_0x5c08b4(0x142)]['CAPABILITY_KEY'])||{},this[_0x5c08b4(0x142)][_0x5c08b4(0x180)](this[_0x5c08b4(0x142)][_0x5c08b4(0x149)],helper[_0x5c08b4(0x12d)](_0x119b18,_0x43e7f2[_0x1a29bf])));break;}}}['setCapabilities'](){const _0x5f46fb=_0x19d6e8,_0x2e1126={'TRGKN':function(_0x1be800,_0x323016){const _0x14a0c4=a27_0x5b0e;return _0x29b113[_0x14a0c4(0x130)](_0x1be800,_0x323016);},'vNJzc':_0x29b113[_0x5f46fb(0x15a)]};return logger[_0x5f46fb(0x15f)](_0x29b113[_0x5f46fb(0x172)]),this[_0x5f46fb(0x173)](_0xd1d7e6[_0x5f46fb(0x11c)]),Object['keys'](_0xd1d7e6[_0x5f46fb(0x11c)])[_0x5f46fb(0x12c)](_0x21d2b9=>{const _0x9fc407=_0x5f46fb,_0x505fd2=this[_0x9fc407(0x127)][_0x9fc407(0x14b)](_0x21d2b9);_0x2e1126['TRGKN'](typeof _0x505fd2,_0x2e1126[_0x9fc407(0x14c)])?this[_0x9fc407(0x127)]['set'](_0x21d2b9,helper[_0x9fc407(0x12d)](_0x505fd2,_0xd1d7e6['capability'][_0x21d2b9])):this[_0x9fc407(0x127)]['set'](_0x21d2b9,_0xd1d7e6[_0x9fc407(0x11c)][_0x21d2b9]);}),this;}[_0x19d6e8(0x182)](){const _0xb70109=_0x19d6e8,_0x25c019={'sGTJR':_0x29b113[_0xb70109(0x150)],'BnnpJ':_0x29b113[_0xb70109(0x16a)],'VMvCY':function(_0x5d421a,_0x28cc72,_0x467e13){const _0x17cedc=_0xb70109;return _0x29b113[_0x17cedc(0x177)](_0x5d421a,_0x28cc72,_0x467e13);},'tmsun':function(_0x557c87,_0x4ef912){const _0x105aac=_0xb70109;return _0x29b113[_0x105aac(0x155)](_0x557c87,_0x4ef912);}};if(helper[_0xb70109(0x145)]()){const _0xebff1f=_0x29b113[_0xb70109(0x131)]['split']('|');let _0x304c98=0x0;while(!![]){switch(_0xebff1f[_0x304c98++]){case'0':globals[_0xb70109(0x17c)](_0x29b113[_0xb70109(0x13a)])&&(!_0x29b113[_0xb70109(0x157)](setExtension,this,_0xd1d7e6)&&globals['setGlobal'](_0x29b113[_0xb70109(0x13a)],![]));continue;case'1':this[_0xb70109(0x165)]();continue;case'2':if(helper['isPacProxy'](_0xd1d7e6['proxySettings'][_0xb70109(0x120)]))this['agent_']=helper[_0xb70109(0x12a)](_0xd1d7e6[_0xb70109(0x139)][_0xb70109(0x120)]);else _0xd1d7e6[_0xb70109(0x139)][_0xb70109(0x120)]&&(this[_0xb70109(0x143)]=_0xd1d7e6['proxySettings']['proxyUrl'],logger['debug'](_0xb70109(0x167)+this[_0xb70109(0x143)]));continue;case'3':_0x29b113['trtlo'](isAccessibilityAutomationSession)&&_0x29b113[_0xb70109(0x12f)](setAccessibilityCapabilities,_0xd1d7e6);continue;case'4':this['setServer']();continue;case'5':logger['debug'](_0x29b113[_0xb70109(0x13f)]);continue;}break;}}const _0x2b5e88=super['build']();return _0x2b5e88['session_'][_0xb70109(0x124)](_0x48c859=>{const _0x17e619=_0xb70109;try{const _0x590e25=_0x48c859['caps_'][_0x17e619(0x14b)](_0x25c019[_0x17e619(0x175)]);_0x590e25?(logger['debug']('SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20'+_0x590e25),hubAllocator[_0x17e619(0x135)](_0x590e25),helper['storeOptimalHubUrl'](_0x590e25)):logger['debug'](_0x25c019['BnnpJ']);}catch(_0x5456ae){logger[_0x17e619(0x15f)](_0x17e619(0x17b)+_0x5456ae);}}),_0x2b5e88[_0xb70109(0x16e)]=0x0,_0x2b5e88[_0xb70109(0x124)]&&_0x2b5e88[_0xb70109(0x124)](_0x2a4178=>{const _0x19402f=_0xb70109,_0x923e7a={'TUMCM':function(_0x57fbfa,_0x50817b,_0x4bd942){const _0x3b96f4=a27_0x5b0e;return _0x25c019[_0x3b96f4(0x15b)](_0x57fbfa,_0x50817b,_0x4bd942);}};_0x25c019[_0x19402f(0x15b)](overrideQuit,_0x2a4178,_0x2b5e88),_0x25c019[_0x19402f(0x11f)](overrideTakeScreenshot,_0x2a4178),helper['overrideGet'](_0x2a4178,_0xd1d7e6),helper[_0x19402f(0x17e)](_0x2a4178,_0xd1d7e6),_0x2a4178['getAccessibilityResultsSummary']=async()=>{const _0x1af360=_0x19402f;return await _0x25c019[_0x1af360(0x15b)](getAccessibilityResultsSummary,_0x2a4178,global);},_0x2a4178[_0x19402f(0x11d)]=async()=>{const _0x3aeb55=_0x19402f;return await _0x923e7a[_0x3aeb55(0x121)](getAccessibilityResults,_0x2a4178,global);};}),_0x2b5e88[_0xb70109(0x14e)]=async()=>{return await _0x29b113['NlBLn'](getAccessibilityResultsSummary,_0x2b5e88,global);},_0x2b5e88['getAccessibilityResults']=async()=>{const _0x2a52e7=_0xb70109;return await _0x29b113[_0x2a52e7(0x177)](getAccessibilityResults,_0x2b5e88,global);},_0x29b113['SQymF'](overrideTakeScreenshot,_0x2b5e88),_0x29b113['SQymF'](overrideQuit,_0x2b5e88),helper[_0xb70109(0x17f)](_0x2b5e88,_0xd1d7e6),helper['overrideExecute'](_0x2b5e88,_0xd1d7e6),helper[_0xb70109(0x10f)](global[_0xb70109(0x113)])&&(global['__driversArray']=[]),helper[_0xb70109(0x10f)](global['__drivers'])&&(global['__drivers']=[]),global[_0xb70109(0x113)][_0xb70109(0x114)](_0x2b5e88),global[_0xb70109(0x147)]=_0x2b5e88,_0x29b113[_0xb70109(0x185)](global[_0xb70109(0x133)],undefined)&&global[_0xb70109(0x133)][_0xb70109(0x114)](_0x2b5e88),_0x3fdce9&&helper[_0xb70109(0x10f)](_0x3fdce9[_0xb70109(0x13b)]['__driversArray'])&&(_0x3fdce9[_0xb70109(0x13b)][_0xb70109(0x113)]=[]),_0x3fdce9&&_0x29b113[_0xb70109(0x141)](_0x3fdce9['global'][_0xb70109(0x133)],undefined)&&(_0x3fdce9[_0xb70109(0x13b)][_0xb70109(0x133)]['push'](_0x2b5e88),_0x3fdce9[_0xb70109(0x13b)][_0xb70109(0x113)][_0xb70109(0x114)](_0x2b5e88)),_0x2b5e88;}}return _0x3377b0[_0x19d6e8(0x15d)]=_0x3377b0[_0x19d6e8(0x116)],_0x3377b0[_0x19d6e8(0x116)]=_0x1abb96,_0x2b246a[_0x19d6e8(0x163)]=_0x20266c,_0x3377b0;};module['exports'][a27_0x2cb701(0x14d)]=modify;
|
|
1
|
+
const a27_0x5dae2c=a27_0x3640;(function(_0xe8b280,_0x6f5adf){const _0x3eed31=a27_0x3640,_0x46e948=_0xe8b280();while(!![]){try{const _0x33343a=-parseInt(_0x3eed31(0x1aa))/0x1*(-parseInt(_0x3eed31(0x1be))/0x2)+-parseInt(_0x3eed31(0x185))/0x3*(parseInt(_0x3eed31(0x1cf))/0x4)+-parseInt(_0x3eed31(0x1e0))/0x5+parseInt(_0x3eed31(0x188))/0x6*(-parseInt(_0x3eed31(0x172))/0x7)+-parseInt(_0x3eed31(0x17f))/0x8+parseInt(_0x3eed31(0x186))/0x9+parseInt(_0x3eed31(0x1d2))/0xa*(parseInt(_0x3eed31(0x1d1))/0xb);if(_0x33343a===_0x6f5adf)break;else _0x46e948['push'](_0x46e948['shift']());}catch(_0x2b51d4){_0x46e948['push'](_0x46e948['shift']());}}}(a27_0x9dec,0xd4c5e));function a27_0x9dec(){const _0x1d6b41=['safari.options','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','oBRyV','isAccessibilityPlatform','mergeDeep','getGlobal','caps_','Modifying\x20webdriver\x20builder','capability','originalBuilder','ieOptions_','object','rVFTm','browserStackLogLevel','2oOidzL','Ucmai','wQiuy','__drivers','send','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','Proxy\x20set\x20to\x20','overrideExecute','RJYJf','../../../bin/utils/constants','session_','isBrowserstackInfra','quitCount_','HttpClient','getRequestOptions','../../../helpers/globals','__driversArray','rTVST','build','edgeOptions','1563308qbdJNN','syhHq','BLVdO','forEach','zSINs','NLIOY','KFvPX','ioIhe','lQEuW','ms:edgeOptions','../../../helpers/helper','get','winstonLogger','firefoxOptions_','newHubUrl','url_','setGlobal','4cOWAqh','set','30082107tzLPSS','10hBptAU','chromeOptions_','then','optimalHubUrl','ZPWgO','push','agent_','DfRnS','logLevel','getHttpAgent','overrideGet','QOqpd','yyQkz','proxyUrl','8103060ZBSLZU','storeOptimalHubUrl','goog:chromeOptions','chromeOptions','aVJOC','4|3|1|0|2|5','Builder','lgXNL','uEUmT','requireSeleniumWebdriver','se:ieOptions','getAccessibilityResults','capabilities_','889CpYFyk','proxySettings','updateHubUrl','tKxKV','proxy_','error','CmKdR','exports','erUWT','gTmdG','debug','DNsDw','safariOptions_','8215464eYloSe','BheJq','DBnlY','global','dCjof','../../../hubAllocationMethods','2354340ebPqXK','11053557lYspAR','/session','57750OwxTZh','../../../helpers/logger','setServer','CAPABILITY_KEY','__setBrowserOptions','isUndefined','sJIis','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','info','RXUzK','../accessibility-automation/helper','getAccessibilityResultsSummary','/wd/hub','eLHoa','__driver','setCapabilities','edgeOptions_','EESyE','setLogLevel','moz:firefoxOptions'];a27_0x9dec=function(){return _0x1d6b41;};return a27_0x9dec();}function a27_0x3640(_0x21ac8d,_0x10aea3){const _0x9dec44=a27_0x9dec();return a27_0x3640=function(_0x3640ac,_0x2dc26b){_0x3640ac=_0x3640ac-0x16e;let _0x39b4b9=_0x9dec44[_0x3640ac];return _0x39b4b9;},a27_0x3640(_0x21ac8d,_0x10aea3);}const logger=require(a27_0x5dae2c(0x189))[a27_0x5dae2c(0x1ca)],helper=require(a27_0x5dae2c(0x1c8)),constants=require(a27_0x5dae2c(0x1b3)),hubAllocator=require(a27_0x5dae2c(0x184)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require('../../../helpers/patchHelpers'),{setAccessibilityCapabilities,setExtension}=require(a27_0x5dae2c(0x192)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require('../../../helpers/accessibility-automation/helper'),globals=require(a27_0x5dae2c(0x1b9)),modify=(_0x2546ee,_0x32020b=null,_0x20e6ff=![])=>{const _0x598504=a27_0x5dae2c,_0x13e2b8={'oBRyV':function(_0x2e5ae7,_0xa0ceae){return _0x2e5ae7!==_0xa0ceae;},'wQiuy':_0x598504(0x187),'EESyE':function(_0x175c2e,_0x164e99){return _0x175c2e!==_0x164e99;},'rTVST':function(_0x8095b2,_0x15aea8){return _0x8095b2+_0x15aea8;},'BLVdO':'https://','zSINs':_0x598504(0x194),'erUWT':_0x598504(0x1e2),'dCjof':_0x598504(0x1e3),'rVFTm':_0x598504(0x1c7),'NLIOY':_0x598504(0x1bd),'lgXNL':_0x598504(0x19b),'tKxKV':'firefoxOptions','KFvPX':_0x598504(0x19c),'DBnlY':_0x598504(0x16f),'uEUmT':'ieOptions','SPDyd':function(_0x1288af,_0x1becb7){return _0x1288af===_0x1becb7;},'Ucmai':_0x598504(0x1a7),'sJIis':'Setting\x20Browserstack\x20capabilities','eLHoa':function(_0xe42db5,_0x115ef9,_0x1a4f68){return _0xe42db5(_0x115ef9,_0x1a4f68);},'DNsDw':function(_0x3861c1,_0x3977bd){return _0x3861c1(_0x3977bd);},'gTmdG':function(_0x221589,_0x5ab989,_0x300c3f){return _0x221589(_0x5ab989,_0x300c3f);},'ioIhe':_0x598504(0x1d5),'QOqpd':'OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','wkPMX':_0x598504(0x1e5),'DfRnS':_0x598504(0x19f),'BheJq':function(_0x17466b){return _0x17466b();},'syhHq':function(_0x3f163a,_0x3b98d2){return _0x3f163a(_0x3b98d2);},'CmKdR':_0x598504(0x19d),'lQEuW':function(_0x18b467,_0x5344bc){return _0x18b467(_0x5344bc);},'iATpO':function(_0x7f28b8,_0x32e3f6){return _0x7f28b8!==_0x32e3f6;},'RCmSA':'Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','ZPWgO':_0x598504(0x1a3)},_0x289b1e=helper['requireHttpClient']();let _0x34a8b8;try{_0x34a8b8=helper[_0x598504(0x16e)](),_0x34a8b8[_0x598504(0x1a5)]&&(_0x34a8b8[_0x598504(0x1e6)]=_0x34a8b8[_0x598504(0x1a5)]);}catch(_0x3e526f){return;}if(helper[_0x598504(0x1b5)]()){const _0xf13368={};_0xf13368[_0x598504(0x1da)]=_0x2546ee[_0x598504(0x1a9)],helper[_0x598504(0x19a)](_0xf13368,new Map(),new Map()),logger[_0x598504(0x190)](_0x13e2b8['RCmSA']),logger['debug'](_0x13e2b8[_0x598504(0x1d6)]);}class _0x1725ba extends _0x289b1e[_0x598504(0x1b7)]{[_0x598504(0x1ae)](_0x482c3a){const _0x1202b3=_0x598504;if(_0x13e2b8[_0x1202b3(0x19e)](_0x482c3a['path'],_0x13e2b8[_0x1202b3(0x1ac)])&&_0x13e2b8[_0x1202b3(0x199)](global[_0x1202b3(0x1cc)],''))try{global['newHubUrl']=_0x13e2b8['rTVST'](_0x13e2b8[_0x1202b3(0x1bb)](_0x13e2b8[_0x1202b3(0x1c0)],global[_0x1202b3(0x1cc)]),_0x13e2b8[_0x1202b3(0x1c2)]),this['options_']=hubAllocator[_0x1202b3(0x1b8)](global[_0x1202b3(0x1cc)]),logger[_0x1202b3(0x17c)]('New\x20hub\x20url\x20set\x20to\x20'+global['newHubUrl']),global[_0x1202b3(0x1cc)]='';}catch(_0x3289c0){logger[_0x1202b3(0x177)](_0x3289c0);}return super['send'](_0x482c3a);}}class _0x28e5b7 extends _0x34a8b8[_0x598504(0x1e6)]{['setServer'](){const _0x1b4be0=_0x598504;return this['url_']=helper['getHubUrl'](_0x2546ee),logger[_0x1b4be0(0x17c)]('Hub\x20url\x20set\x20to\x20'+this[_0x1b4be0(0x1cd)]),this;}[_0x598504(0x18c)](_0x360953){const _0x243ba6=_0x598504;let _0x42914c={};for(const _0x359444 in _0x360953){switch(_0x359444){case _0x13e2b8[_0x243ba6(0x17a)]:case _0x13e2b8[_0x243ba6(0x183)]:this['chromeOptions_']&&(_0x42914c=this[_0x243ba6(0x1d3)]['get'](this[_0x243ba6(0x1d3)][_0x243ba6(0x18b)])||{},this[_0x243ba6(0x1d3)][_0x243ba6(0x1d0)](this[_0x243ba6(0x1d3)][_0x243ba6(0x18b)],helper['mergeDeep'](_0x42914c,_0x360953[_0x359444])));break;case _0x13e2b8[_0x243ba6(0x1a8)]:case _0x13e2b8[_0x243ba6(0x1c3)]:this[_0x243ba6(0x198)]&&(_0x42914c=this[_0x243ba6(0x198)]['get'](this[_0x243ba6(0x198)]['CAPABILITY_KEY'])||{},this['edgeOptions_']['set'](this['edgeOptions_'][_0x243ba6(0x18b)],helper['mergeDeep'](_0x42914c,_0x360953[_0x359444])));break;case _0x13e2b8[_0x243ba6(0x1e7)]:case _0x13e2b8[_0x243ba6(0x175)]:this['firefoxOptions_']&&(_0x42914c=this[_0x243ba6(0x1cb)][_0x243ba6(0x1c9)](this[_0x243ba6(0x1cb)][_0x243ba6(0x18b)])||{},this['firefoxOptions_'][_0x243ba6(0x1d0)](this[_0x243ba6(0x1cb)][_0x243ba6(0x18b)],helper[_0x243ba6(0x1a0)](_0x42914c,_0x360953[_0x359444])));break;case _0x13e2b8[_0x243ba6(0x1c4)]:this['safariOptions_']&&(_0x42914c=this[_0x243ba6(0x17e)]['get'](this[_0x243ba6(0x17e)][_0x243ba6(0x18b)])||{},this[_0x243ba6(0x17e)][_0x243ba6(0x1d0)](this[_0x243ba6(0x17e)][_0x243ba6(0x18b)],helper[_0x243ba6(0x1a0)](_0x42914c,_0x360953[_0x359444])));break;case _0x13e2b8[_0x243ba6(0x181)]:case _0x13e2b8[_0x243ba6(0x1e8)]:this['ieOptions_']&&(_0x42914c=this[_0x243ba6(0x1a6)]['get'](this[_0x243ba6(0x1a6)][_0x243ba6(0x18b)])||{},this[_0x243ba6(0x1a6)]['set'](this['ieOptions_'][_0x243ba6(0x18b)],helper[_0x243ba6(0x1a0)](_0x42914c,_0x360953[_0x359444])));break;}}}['setCapabilities'](){const _0x43d155=_0x598504,_0x48287f={'aVJOC':function(_0x2f619c,_0x326062){return _0x13e2b8['SPDyd'](_0x2f619c,_0x326062);},'uOBLo':_0x13e2b8[_0x43d155(0x1ab)]};return logger[_0x43d155(0x17c)](_0x13e2b8[_0x43d155(0x18e)]),this[_0x43d155(0x18c)](_0x2546ee['capability']),Object['keys'](_0x2546ee[_0x43d155(0x1a4)])[_0x43d155(0x1c1)](_0x26d3f7=>{const _0x533ce1=_0x43d155,_0xbcb85e=this['capabilities_']['get'](_0x26d3f7);_0x48287f[_0x533ce1(0x1e4)](typeof _0xbcb85e,_0x48287f['uOBLo'])?this[_0x533ce1(0x171)][_0x533ce1(0x1d0)](_0x26d3f7,helper[_0x533ce1(0x1a0)](_0xbcb85e,_0x2546ee[_0x533ce1(0x1a4)][_0x26d3f7])):this['capabilities_'][_0x533ce1(0x1d0)](_0x26d3f7,_0x2546ee[_0x533ce1(0x1a4)][_0x26d3f7]);}),this;}[_0x598504(0x1bc)](){const _0x4edf7f=_0x598504,_0x31f023={};_0x31f023[_0x4edf7f(0x191)]=_0x13e2b8[_0x4edf7f(0x1c5)],_0x31f023[_0x4edf7f(0x1b2)]=_0x13e2b8[_0x4edf7f(0x1dd)];const _0x2c838e=_0x31f023;if(helper['isBrowserstackInfra']()){const _0x5da0a1=_0x13e2b8['wkPMX']['split']('|');let _0x2d390a=0x0;while(!![]){switch(_0x5da0a1[_0x2d390a++]){case'0':if(helper['isPacProxy'](_0x2546ee[_0x4edf7f(0x173)][_0x4edf7f(0x1df)]))this[_0x4edf7f(0x1d8)]=helper[_0x4edf7f(0x1db)](_0x2546ee[_0x4edf7f(0x173)][_0x4edf7f(0x1df)]);else _0x2546ee[_0x4edf7f(0x173)][_0x4edf7f(0x1df)]&&(this['proxy_']=_0x2546ee[_0x4edf7f(0x173)][_0x4edf7f(0x1df)],logger[_0x4edf7f(0x17c)](_0x4edf7f(0x1b0)+this[_0x4edf7f(0x176)]));continue;case'1':this[_0x4edf7f(0x197)]();continue;case'2':globals[_0x4edf7f(0x1a1)](_0x13e2b8['DfRnS'])&&(!_0x13e2b8['eLHoa'](setExtension,this,_0x2546ee)&&globals[_0x4edf7f(0x1ce)](_0x13e2b8[_0x4edf7f(0x1d9)],![]));continue;case'3':this[_0x4edf7f(0x18a)]();continue;case'4':_0x13e2b8[_0x4edf7f(0x180)](isAccessibilityAutomationSession)&&_0x13e2b8[_0x4edf7f(0x1bf)](setAccessibilityCapabilities,_0x2546ee);continue;case'5':logger[_0x4edf7f(0x17c)](_0x13e2b8[_0x4edf7f(0x178)]);continue;}break;}}const _0x3d786c=super[_0x4edf7f(0x1bc)]();return _0x3d786c[_0x4edf7f(0x1b4)][_0x4edf7f(0x1d4)](_0x1e2cbb=>{const _0x2ffe9a=_0x4edf7f;try{const _0x120f09=_0x1e2cbb[_0x2ffe9a(0x1a2)][_0x2ffe9a(0x1c9)](_0x2c838e[_0x2ffe9a(0x191)]);_0x120f09?(logger[_0x2ffe9a(0x17c)](_0x2ffe9a(0x1af)+_0x120f09),hubAllocator[_0x2ffe9a(0x174)](_0x120f09),helper[_0x2ffe9a(0x1e1)](_0x120f09)):logger[_0x2ffe9a(0x17c)](_0x2c838e[_0x2ffe9a(0x1b2)]);}catch(_0x49d89b){logger['debug'](_0x2ffe9a(0x18f)+_0x49d89b);}}),_0x3d786c[_0x4edf7f(0x1b6)]=0x0,_0x3d786c[_0x4edf7f(0x1d4)]&&_0x3d786c[_0x4edf7f(0x1d4)](_0x36137b=>{const _0x5c678b=_0x4edf7f,_0x1c6124={'yyQkz':function(_0x42d8b0,_0x83647e,_0x42aaf2){const _0x1bd6fc=a27_0x3640;return _0x13e2b8[_0x1bd6fc(0x195)](_0x42d8b0,_0x83647e,_0x42aaf2);}};_0x13e2b8['eLHoa'](overrideQuit,_0x36137b,_0x3d786c),_0x13e2b8[_0x5c678b(0x17d)](overrideTakeScreenshot,_0x36137b),helper[_0x5c678b(0x1dc)](_0x36137b,_0x2546ee),helper[_0x5c678b(0x1b1)](_0x36137b,_0x2546ee),_0x36137b[_0x5c678b(0x193)]=async()=>{return await _0x1c6124['yyQkz'](getAccessibilityResultsSummary,_0x36137b,global);},_0x36137b['getAccessibilityResults']=async()=>{const _0x14140b=_0x5c678b;return await _0x1c6124[_0x14140b(0x1de)](getAccessibilityResults,_0x36137b,global);};}),_0x3d786c['getAccessibilityResultsSummary']=async()=>{const _0x1b447e=_0x4edf7f;return await _0x13e2b8[_0x1b447e(0x195)](getAccessibilityResultsSummary,_0x3d786c,global);},_0x3d786c[_0x4edf7f(0x170)]=async()=>{const _0x3ce29e=_0x4edf7f;return await _0x13e2b8[_0x3ce29e(0x17b)](getAccessibilityResults,_0x3d786c,global);},_0x13e2b8['lQEuW'](overrideTakeScreenshot,_0x3d786c),_0x13e2b8[_0x4edf7f(0x1c6)](overrideQuit,_0x3d786c),helper[_0x4edf7f(0x1dc)](_0x3d786c,_0x2546ee),helper[_0x4edf7f(0x1b1)](_0x3d786c,_0x2546ee),helper[_0x4edf7f(0x18d)](global['__driversArray'])&&(global[_0x4edf7f(0x1ba)]=[]),helper[_0x4edf7f(0x18d)](global[_0x4edf7f(0x1ad)])&&(global[_0x4edf7f(0x1ad)]=[]),global[_0x4edf7f(0x1ba)][_0x4edf7f(0x1d7)](_0x3d786c),global[_0x4edf7f(0x196)]=_0x3d786c,_0x13e2b8[_0x4edf7f(0x199)](global['__drivers'],undefined)&&global['__drivers'][_0x4edf7f(0x1d7)](_0x3d786c),_0x32020b&&helper['isUndefined'](_0x32020b[_0x4edf7f(0x182)][_0x4edf7f(0x1ba)])&&(_0x32020b['global'][_0x4edf7f(0x1ba)]=[]),_0x32020b&&_0x13e2b8['iATpO'](_0x32020b[_0x4edf7f(0x182)][_0x4edf7f(0x1ad)],undefined)&&(_0x32020b['global'][_0x4edf7f(0x1ad)][_0x4edf7f(0x1d7)](_0x3d786c),_0x32020b[_0x4edf7f(0x182)][_0x4edf7f(0x1ba)]['push'](_0x3d786c)),_0x3d786c;}}return _0x34a8b8[_0x598504(0x1a5)]=_0x34a8b8['Builder'],_0x34a8b8[_0x598504(0x1e6)]=_0x28e5b7,_0x289b1e[_0x598504(0x1b7)]=_0x1725ba,_0x34a8b8;};module[a27_0x5dae2c(0x179)]['browserstackAgentObservability']=modify;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a28_0x10ffda=a28_0x141e;(function(_0x49cd44,_0x4def4c){const _0x2c6d66=a28_0x141e,_0x1648b6=_0x49cd44();while(!![]){try{const _0x95fb69=parseInt(_0x2c6d66(0x10f))/0x1+-parseInt(_0x2c6d66(0x116))/0x2+parseInt(_0x2c6d66(0x114))/0x3+parseInt(_0x2c6d66(0x10c))/0x4+parseInt(_0x2c6d66(0x10b))/0x5*(-parseInt(_0x2c6d66(0x112))/0x6)+parseInt(_0x2c6d66(0x10a))/0x7*(parseInt(_0x2c6d66(0x108))/0x8)+parseInt(_0x2c6d66(0x110))/0x9;if(_0x95fb69===_0x4def4c)break;else _0x1648b6['push'](_0x1648b6['shift']());}catch(_0x270a3f){_0x1648b6['push'](_0x1648b6['shift']());}}}(a28_0x315e,0xbc2b3));function a28_0x141e(_0x47f1fb,_0x1ab303){const _0x315eaf=a28_0x315e();return a28_0x141e=function(_0x141e15,_0x3c399f){_0x141e15=_0x141e15-0x108;let _0x51321b=_0x315eaf[_0x141e15];return _0x51321b;},a28_0x141e(_0x47f1fb,_0x1ab303);}const requestSpy=require(a28_0x10ffda(0x109)),constants=require(a28_0x10ffda(0x113)),{addRequestSpy}=require(a28_0x10ffda(0x10e));function a28_0x315e(){const _0xad07f6=['../../../helpers/request-spy','43519VzDkGw','5jrxdxk','2268916ZsGmSd','restore','../../../helpers/test-observability/utils','280983fQnlHp','8897931oUGNNB','mochaHooks','8083338DSPaxR','../../../bin/utils/constants','2571753GbRTYL','gzWJC','2470324NoTUqd','848CXWvnW'];a28_0x315e=function(){return _0xad07f6;};return a28_0x315e();}exports[a28_0x10ffda(0x111)]={'beforeAll'(){const _0x8b7df5=a28_0x10ffda,_0x1ff5dd={'gzWJC':function(_0x4d7f3d){return _0x4d7f3d();}},_0x2f003d='browserstack internal helper hook';_0x1ff5dd[_0x8b7df5(0x115)](addRequestSpy);},'afterAll'(){const _0x4d673a=a28_0x10ffda,_0x769c34='browserstack internal helper hook';this['timeout'](0xea60),requestSpy[_0x4d673a(0x10d)]();}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a29_0x242a8c=a29_0x2d1d;function a29_0x2d86(){const _0x5eb80c=['slice','lHlDq','toJSON','aynxH','app-automate','_afterEach','2211435azbcAH','ncOJp','SGDup','substring','js-','pOZqm','ItEkP','YFgvS','alMfE','hookAnalyticsId','wpnqf','hook:','parent','PtPOf','automate','getSession','qtiAG','../../../helpers/testhub/utils','SJksg','349237plRwdM','thgwi','hook','suites','uuid','getTestEnv','getBrowserVersion','../../utils/logReportingAPI','vOoUF','string','failed','push','../../../helpers/test-observability/constants','../../../helpers/helper','3AdKiew','concat','5313068LsSNLI','yYLFf','186VBfaRw','gXhPI','tests','filter','988693Hqhuyq','sendPlatformDetails','__cloud_provider___','unknown_grid','bMNYq','36KvChfV','indexOf','126376hbgPWN','tVMPc','27589290JjMjdw','CVpyM','vditt','reduce','pending','split','getBrowserName','kGhrG','AlYnS','emit','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','mapTestHooks','getHooksForTest','getHookDetails','kXwpD','state','toISOString','HUxRi','forEach','getPlatform','xceOy','_afterAll','getHookSkippedTests','type','gOrBS','bs:addPlatformDetails:','_beforeEach','_beforeAll','passed','keys','pid','caduE','TjpsL','222578wUyFPR','getCapabilities','markedStatus','aIJOk','TEST_PLATFORM','DvBbR'];a29_0x2d86=function(){return _0x5eb80c;};return a29_0x2d86();}function a29_0x2d1d(_0x47cbb8,_0x1bddff){const _0x2d86df=a29_0x2d86();return a29_0x2d1d=function(_0x2d1d17,_0x46323f){_0x2d1d17=_0x2d1d17-0xec;let _0x5baf1f=_0x2d86df[_0x2d1d17];return _0x5baf1f;},a29_0x2d1d(_0x47cbb8,_0x1bddff);}(function(_0x393b66,_0x5e8251){const _0x48c344=a29_0x2d1d,_0x33a134=_0x393b66();while(!![]){try{const _0x293c7b=-parseInt(_0x48c344(0x112))/0x1+parseInt(_0x48c344(0x13c))/0x2*(-parseInt(_0x48c344(0x10a))/0x3)+parseInt(_0x48c344(0x10c))/0x4+-parseInt(_0x48c344(0x148))/0x5+-parseInt(_0x48c344(0x10e))/0x6*(parseInt(_0x48c344(0xfc))/0x7)+parseInt(_0x48c344(0x119))/0x8*(-parseInt(_0x48c344(0x117))/0x9)+parseInt(_0x48c344(0x11b))/0xa;if(_0x293c7b===_0x5e8251)break;else _0x33a134['push'](_0x33a134['shift']());}catch(_0x20da28){_0x33a134['push'](_0x33a134['shift']());}}}(a29_0x2d86,0xe44ce));const {v4:uuidv4}=require(a29_0x242a8c(0x100)),{name,version}=require('../../../../package.json'),logPatcher=require('../../utils/logPatcher'),BSTestOpsPatcher=new logPatcher({}),logReportingAPI=require(a29_0x242a8c(0x103)),BSTestOpsLogger=new logReportingAPI({}),{debug,isTestObservabilitySession,isInternalHook}=require('../../../helpers/test-observability/utils'),{consoleHolder}=require(a29_0x242a8c(0x108)),{getPlatformVersion}=require(a29_0x242a8c(0x109)),{shouldProcessEventForTesthub}=require(a29_0x242a8c(0xfa));console={},Object[a29_0x242a8c(0x138)](consoleHolder)['forEach'](_0x490487=>{console[_0x490487]=(..._0x3e91ac)=>{BSTestOpsPatcher[_0x490487](..._0x3e91ac);};}),exports[a29_0x242a8c(0x101)]=()=>{const _0x785005=a29_0x242a8c,_0x2d9f7f={'thgwi':'generic','bwFqy':function(_0x4da4d3){return _0x4da4d3();}};return{'ci':_0x2d9f7f[_0x785005(0xfd)],'key':_0x2d9f7f['bwFqy'](uuidv4),'version':version,'collector':_0x785005(0xed)+name};},exports[a29_0x242a8c(0x128)]=_0x508749=>{const _0x4dd0b4=a29_0x242a8c,_0x12876e={};_0x12876e['caduE']=function(_0x2319d9,_0x415ef3){return _0x2319d9!==_0x415ef3;},_0x12876e[_0x4dd0b4(0x12c)]=_0x4dd0b4(0x105),_0x12876e[_0x4dd0b4(0xf3)]=_0x4dd0b4(0xf4),_0x12876e[_0x4dd0b4(0x11c)]=_0x4dd0b4(0xfe);const _0x445aea=_0x12876e;if(!_0x508749||_0x445aea[_0x4dd0b4(0x13a)](typeof _0x508749,_0x445aea['HUxRi']))return[null,null];if(_0x445aea['caduE'](_0x508749[_0x4dd0b4(0x118)](_0x445aea[_0x4dd0b4(0xf3)]),-0x1)){const _0x1789b0=_0x508749[_0x4dd0b4(0x120)](_0x445aea['wpnqf']);return[_0x1789b0[0x0][_0x4dd0b4(0x142)](0x0,-0x1)[_0x4dd0b4(0x120)]('\x22')[0x1],_0x1789b0[0x1][_0x4dd0b4(0xec)](0x1)];}else{if(_0x445aea['caduE'](_0x508749[_0x4dd0b4(0x118)](_0x445aea[_0x4dd0b4(0x11c)]),-0x1)){const _0x45604f=_0x508749[_0x4dd0b4(0x120)](_0x445aea[_0x4dd0b4(0x11c)]);return[_0x45604f[0x0]['slice'](0x0,-0x1)['split']('\x22')[0x1],_0x508749];}}return[null,null];},exports[a29_0x242a8c(0x127)]=_0x31c824=>{const _0xf7327f=a29_0x242a8c,_0xa311a5={'bMNYq':function(_0x2c7a6c,_0x232dab){return _0x2c7a6c(_0x232dab);},'SGDup':_0xf7327f(0x136),'ItEkP':_0xf7327f(0x130),'gXhPI':_0xf7327f(0x135),'eqKsi':_0xf7327f(0x147)};if(!_0x31c824||!_0x31c824['parent'])return[];const _0xa01f40=[];return[_0xa311a5[_0xf7327f(0x14a)],_0xa311a5[_0xf7327f(0xef)],_0xa311a5[_0xf7327f(0x10f)],_0xa311a5['eqKsi']][_0xf7327f(0x12d)](_0x5926ca=>{const _0x289ca2=_0xf7327f,_0x235c0b={'DvBbR':function(_0x4ee429,_0x4c0bc5){const _0x368d6d=a29_0x2d1d;return _0xa311a5[_0x368d6d(0x116)](_0x4ee429,_0x4c0bc5);}},_0x431dc8=_0x31c824[_0x289ca2(0xf5)][_0x5926ca]||[];_0x431dc8['forEach'](_0x1063a3=>{const _0x3bb7ed=_0x289ca2;_0x1063a3[_0x3bb7ed(0xf2)]&&!_0x235c0b[_0x3bb7ed(0x141)](isInternalHook,_0x1063a3['fn'])&&_0xa01f40[_0x3bb7ed(0x107)](_0x1063a3['hookAnalyticsId']);});}),[..._0xa01f40,...exports[_0xf7327f(0x127)](_0x31c824[_0xf7327f(0xf5)])];},exports[a29_0x242a8c(0x126)]=_0x1f9105=>{const _0x17ec91=a29_0x242a8c,_0x449bb7={'YFgvS':function(_0x6dde77){return _0x6dde77();},'AlYnS':function(_0x2c611c,_0x5007bf){return _0x2c611c===_0x5007bf;},'qtiAG':_0x17ec91(0x147),'vditt':_0x17ec91(0x136),'kXwpD':_0x17ec91(0x130),'lHlDq':'_beforeEach'};if(!_0x1f9105||!_0x1f9105[_0x17ec91(0xf5)])return;[_0x449bb7[_0x17ec91(0x11d)],_0x449bb7[_0x17ec91(0x129)],_0x449bb7[_0x17ec91(0x143)],_0x449bb7[_0x17ec91(0xf9)]][_0x17ec91(0x12d)](_0x38d92c=>{const _0x44232e=_0x17ec91,_0x477998=_0x1f9105[_0x44232e(0xf5)][_0x38d92c]||[];_0x477998[_0x44232e(0x12d)](_0x1655d8=>{const _0x1ecab9=_0x44232e;if(!_0x1655d8['hookAnalyticsId'])_0x1655d8['hookAnalyticsId']=_0x449bb7[_0x1ecab9(0xf0)](uuidv4);else _0x1655d8['markedStatus']&&_0x449bb7[_0x1ecab9(0x123)](_0x38d92c,_0x449bb7[_0x1ecab9(0xf9)])&&(_0x1655d8['hookAnalyticsId']=_0x449bb7[_0x1ecab9(0xf0)](uuidv4),delete _0x1655d8[_0x1ecab9(0x13e)]);});}),exports['mapTestHooks'](_0x1f9105[_0x17ec91(0xf5)]);},exports[a29_0x242a8c(0x113)]=async(_0x6e5212,_0x36132a)=>{const _0x4153c8=a29_0x242a8c,_0x52aa7e={'aynxH':function(_0x73af71){return _0x73af71();},'ncOJp':function(_0x392b7b,_0x35c820){return _0x392b7b===_0x35c820;},'gOrBS':'browserstack','alMfE':'appium:app','yYLFf':'app','SJksg':_0x4153c8(0x146),'pOZqm':_0x4153c8(0xf7),'xceOy':function(_0x58edc9,_0x42f939){return _0x58edc9(_0x42f939);},'aIJOk':_0x4153c8(0x115),'vOoUF':_0x4153c8(0x140)};try{if(!_0x52aa7e[_0x4153c8(0x145)](shouldProcessEventForTesthub))return;const _0x3cf158=await _0x6e5212[_0x4153c8(0x13d)](),_0xb01077=await _0x6e5212[_0x4153c8(0xf8)](),_0xeb7bd8={},_0x567949=Object['fromEntries'](_0xb01077[_0x4153c8(0x13d)]()['map_']),_0x5fbc2d={'product':_0x52aa7e[_0x4153c8(0x149)](global[_0x4153c8(0x114)],_0x52aa7e[_0x4153c8(0x133)])?_0x567949[_0x52aa7e[_0x4153c8(0xf1)]]||_0x567949[_0x52aa7e[_0x4153c8(0x10d)]]?_0x52aa7e[_0x4153c8(0xfb)]:_0x52aa7e[_0x4153c8(0xee)]:null,'capabilities':_0x567949,'platform':_0x3cf158[_0x4153c8(0x12e)](),'platform_version':_0x52aa7e[_0x4153c8(0x12f)](getPlatformVersion,_0x52aa7e['ncOJp'](global[_0x4153c8(0x114)],_0x52aa7e[_0x4153c8(0x133)])),'browser':_0x3cf158[_0x4153c8(0x121)](),'browser_version':_0x3cf158[_0x4153c8(0x102)](),'session_id':_0xb01077[_0x4153c8(0x144)]()};global[_0x4153c8(0x114)]?_0xeb7bd8[global[_0x4153c8(0x114)]]=_0x5fbc2d:_0xeb7bd8[_0x52aa7e[_0x4153c8(0x13f)]]=_0x5fbc2d,process[_0x4153c8(0x124)](_0x4153c8(0x134)+process[_0x4153c8(0x139)],{'timestamp':new Date()[_0x4153c8(0x12b)](),'level':null,'message':null,'kind':_0x52aa7e[_0x4153c8(0x104)],'http_response':_0xeb7bd8,'uuid':_0x36132a});}catch(_0x35ec22){_0x52aa7e[_0x4153c8(0x12f)](debug,_0x4153c8(0x125)+_0x35ec22);}},exports[a29_0x242a8c(0x131)]=_0x3480ef=>{const _0x4e6eb7=a29_0x242a8c,_0x205032={};_0x205032[_0x4e6eb7(0x122)]=function(_0x1abafc,_0x23cf69){return _0x1abafc!==_0x23cf69;},_0x205032[_0x4e6eb7(0x13b)]='hook',_0x205032['tVMPc']=_0x4e6eb7(0x137),_0x205032['PtPOf']=_0x4e6eb7(0x106);const _0x42fa1f=_0x205032,_0xc34ab6=_0x3480ef[_0x4e6eb7(0xff)][_0x4e6eb7(0x11e)]((_0x5c0c6a,_0x141a02)=>{const _0x8f78c9=_0x4e6eb7,_0x2240d3=exports['getHookSkippedTests'](_0x141a02);return _0x2240d3&&(_0x5c0c6a=_0x5c0c6a[_0x8f78c9(0x10b)](_0x2240d3)),_0x5c0c6a;},[]),_0x2f7bf7=_0x3480ef[_0x4e6eb7(0x110)][_0x4e6eb7(0x111)](_0x19d3c7=>{const _0x430cb3=_0x4e6eb7,_0x160d26=_0x42fa1f[_0x430cb3(0x122)](_0x19d3c7[_0x430cb3(0x132)],_0x42fa1f[_0x430cb3(0x13b)])&&!_0x19d3c7[_0x430cb3(0x13e)]&&_0x42fa1f['kGhrG'](_0x19d3c7[_0x430cb3(0x12a)],_0x42fa1f[_0x430cb3(0x11a)])&&_0x42fa1f['kGhrG'](_0x19d3c7[_0x430cb3(0x12a)],_0x42fa1f[_0x430cb3(0xf6)])&&!_0x19d3c7[_0x430cb3(0x11f)];return _0x160d26;});return _0x2f7bf7[_0x4e6eb7(0x10b)](_0xc34ab6);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a30_0x5ce6bf=a30_0x49e7;(function(_0x160fe4,_0x2534b2){const _0x4db779=a30_0x49e7,_0x5610f4=_0x160fe4();while(!![]){try{const _0x46bb11=parseInt(_0x4db779(0x21f))/0x1*(parseInt(_0x4db779(0x222))/0x2)+parseInt(_0x4db779(0x1f1))/0x3+-parseInt(_0x4db779(0x1ce))/0x4*(parseInt(_0x4db779(0x208))/0x5)+parseInt(_0x4db779(0x21e))/0x6*(parseInt(_0x4db779(0x1ed))/0x7)+parseInt(_0x4db779(0x228))/0x8+-parseInt(_0x4db779(0x219))/0x9*(parseInt(_0x4db779(0x1bd))/0xa)+-parseInt(_0x4db779(0x1c2))/0xb*(parseInt(_0x4db779(0x230))/0xc);if(_0x46bb11===_0x2534b2)break;else _0x5610f4['push'](_0x5610f4['shift']());}catch(_0x71ee04){_0x5610f4['push'](_0x5610f4['shift']());}}}(a30_0x4da7,0x5cabe));function a30_0x49e7(_0x47f03c,_0x3b6586){const _0x4da7e3=a30_0x4da7();return a30_0x49e7=function(_0x49e792,_0xebf403){_0x49e792=_0x49e792-0x1bb;let _0x1cdc1d=_0x4da7e3[_0x49e792];return _0x1cdc1d;},a30_0x49e7(_0x47f03c,_0x3b6586);}const util=require(a30_0x5ce6bf(0x1be)),{isAccessibilityAutomationSession,fetchPlatformDetails,shouldScanTestForAccessibility}=require('../../helpers/accessibility-automation/helper'),{percyAutoCapture}=require('../../helpers/percy/utils'),{sendPlatformDetails}=require(a30_0x5ce6bf(0x20a)),{isBrowserstackInfra,markSessionStatus}=require('../../helpers/helper'),{isTestObservabilitySession}=require('../../helpers/test-observability/utils'),PerformanceTester=require(a30_0x5ce6bf(0x1d7)),scripts=require(a30_0x5ce6bf(0x1dc)),globals=require('../../helpers/globals'),logger=require(a30_0x5ce6bf(0x22d))[a30_0x5ce6bf(0x200)],{shouldProcessEventForTesthub}=require(a30_0x5ce6bf(0x215)),testHubConstants=require('../../helpers/testhub/constants');exports[a30_0x5ce6bf(0x1bf)]={'beforeAll'(){const _0x12c6e9=a30_0x5ce6bf,_0x42f6ac={'AGTfF':function(_0x4e6a51,_0x3dbe67,_0xcb47b4,_0x44da1d){return _0x4e6a51(_0x3dbe67,_0xcb47b4,_0x44da1d);},'FUPhJ':_0x12c6e9(0x1e8),'COEcz':_0x12c6e9(0x203),'GpCVK':function(_0x13f295,_0x13875e,_0x4ce330){return _0x13f295(_0x13875e,_0x4ce330);},'zJJel':_0x12c6e9(0x1fc),'tjiIr':function(_0x4f6370){return _0x4f6370();},'HgbvW':function(_0x77c838,_0xcf6ec6,_0x4027b5){return _0x77c838(_0xcf6ec6,_0x4027b5);}};PerformanceTester[_0x12c6e9(0x1fe)]();const _0x4ede9b='browserstack internal helper hook';global[_0x12c6e9(0x20b)]=[],global[_0x12c6e9(0x211)]=![],global['driverCleanup']=async()=>{const _0x4a7e35=_0x12c6e9;let _0x332948=![];try{await global[_0x4a7e35(0x1cd)][0x0]['session_'],_0x332948=!![],global[_0x4a7e35(0x211)]?await _0x42f6ac[_0x4a7e35(0x1e3)](markSessionStatus,global[_0x4a7e35(0x1cd)][0x0],_0x42f6ac[_0x4a7e35(0x217)],global[_0x4a7e35(0x20b)][_0x4a7e35(0x1bc)](_0x42f6ac['COEcz'])):await _0x42f6ac[_0x4a7e35(0x22a)](markSessionStatus,global[_0x4a7e35(0x1cd)][0x0],_0x42f6ac[_0x4a7e35(0x1da)]);}catch(_0x2c1ceb){}global['__error_messages__']=[],global[_0x4a7e35(0x211)]=![];if(_0x332948)try{try{_0x42f6ac['tjiIr'](shouldProcessEventForTesthub)&&(global['__drivers'][0x0]&&await _0x42f6ac[_0x4a7e35(0x1f9)](sendPlatformDetails,global[_0x4a7e35(0x1cd)][0x0],this[_0x4a7e35(0x1ca)]?this[_0x4a7e35(0x1ca)][_0x4a7e35(0x1c6)]:null));}catch{}await global[_0x4a7e35(0x1cd)][0x0][_0x4a7e35(0x20c)]();}catch(_0x57ea30){}};},'beforeEach'(_0x13d840){const _0x3c2ac5=a30_0x5ce6bf,_0x546b73={'DwaRS':function(_0x333b06,_0x4fb2a1){return _0x333b06>_0x4fb2a1;},'zAkmB':function(_0x4508a3,_0x36ef8f){return _0x4508a3>_0x36ef8f;},'zBLQt':'\x20-\x20','aTFFc':function(_0x83aa8b,_0xcf990f,_0x19a216){return _0x83aa8b(_0xcf990f,_0x19a216);},'pOtIt':_0x3c2ac5(0x1e9),'jJbKe':function(_0x5a8a34){return _0x5a8a34();},'iZtUL':function(_0x1a2f22,_0x35a392){return _0x1a2f22>_0x35a392;},'bJXFD':_0x3c2ac5(0x1f8),'HxUJE':function(_0x35bdc2,_0x5b6b71){return _0x35bdc2===_0x5b6b71;},'DlZbv':_0x3c2ac5(0x1cb),'fJiXh':'https:','BeSih':'Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','NvLdX':_0x3c2ac5(0x202),'ayeCB':function(_0x29d8a7){return _0x29d8a7();}};new Promise(async _0x3c9020=>{const _0x1e6222=_0x3c2ac5,_0x3ca21c='browserstack internal helper hook';let _0x5c2963=!![];try{_0x546b73[_0x1e6222(0x1fa)](global[_0x1e6222(0x1cd)]['length'],0x1)&&(await global[_0x1e6222(0x1f0)](),global['__drivers'][_0x1e6222(0x21d)]()),_0x546b73[_0x1e6222(0x1fb)](global['__drivers'][0x0][_0x1e6222(0x1ef)],0x0)&&(_0x5c2963=![],await global[_0x1e6222(0x1f0)]());}catch{}try{Array[_0x1e6222(0x221)](global[_0x1e6222(0x1cd)])&&global[_0x1e6222(0x1cd)][0x0]&&(global[_0x1e6222(0x1cd)][0x0][_0x1e6222(0x213)]=this['currentTest'][_0x1e6222(0x227)]()[_0x1e6222(0x1bc)](_0x546b73['zBLQt'])),global[_0x1e6222(0x213)]=this['currentTest'][_0x1e6222(0x227)]()['join'](_0x546b73[_0x1e6222(0x1fd)]);}catch(_0x5a4245){logger[_0x1e6222(0x22b)]('Failed\x20to\x20store\x20session\x20name:\x20'+_0x5a4245);}this[_0x1e6222(0x1ca)][_0x1e6222(0x21c)]=_0x546b73['aTFFc'](shouldScanTestForAccessibility,this['currentTest'][_0x1e6222(0x227)](),!![]),globals[_0x1e6222(0x1c9)](_0x546b73[_0x1e6222(0x1d1)],this['currentTest']['shouldScanTestForAccessibility']),this[_0x1e6222(0x1ca)][_0x1e6222(0x209)]=!![];if(_0x546b73[_0x1e6222(0x20f)](isAccessibilityAutomationSession)&&_0x5c2963&&Array['isArray'](global[_0x1e6222(0x1cd)])&&_0x546b73['iZtUL'](global[_0x1e6222(0x1cd)][_0x1e6222(0x1f3)],0x0)&&globals[_0x1e6222(0x229)](_0x546b73[_0x1e6222(0x1d3)]))try{const _0x1b3d14=await global[_0x1e6222(0x1cd)][0x0][_0x1e6222(0x1cc)];if(_0x1b3d14){let _0xb1a13b=!![];const _0x3d9cbf=await global[_0x1e6222(0x1cd)][0x0][_0x1e6222(0x1e7)]();let _0x1b4336;try{_0x1b4336=new URL(_0x3d9cbf);}catch(_0x59d2fe){_0xb1a13b=![];}_0xb1a13b=_0x546b73[_0x1e6222(0x205)](_0x1b4336[_0x1e6222(0x1f7)],_0x546b73[_0x1e6222(0x1e4)])||_0x546b73[_0x1e6222(0x205)](_0x1b4336[_0x1e6222(0x1f7)],_0x546b73[_0x1e6222(0x1f2)]),_0xb1a13b&&(this[_0x1e6222(0x1ca)][_0x1e6222(0x21c)]&&logger[_0x1e6222(0x204)](_0x546b73[_0x1e6222(0x1e2)])),this[_0x1e6222(0x1ca)][_0x1e6222(0x209)]=this['currentTest']['shouldScanTestForAccessibility'],this[_0x1e6222(0x1ca)][_0x1e6222(0x21c)]&&logger[_0x1e6222(0x204)](_0x546b73[_0x1e6222(0x1f4)]);}}catch(_0x43d208){logger[_0x1e6222(0x210)](_0x1e6222(0x1df)+util['format'](_0x43d208));}_0x546b73['ayeCB'](_0x3c9020);})[_0x3c2ac5(0x1d2)](_0x13d840);},'afterEach'(_0x3fcfd1){const _0x576e4c=a30_0x5ce6bf,_0xa7940c={'AgIDE':function(_0x5ecf31,_0x3b0555){return _0x5ecf31>_0x3b0555;},'KqEdZ':function(_0x2a2f50,_0x112cd){return _0x2a2f50===_0x112cd;},'JVOsr':_0x576e4c(0x1c0),'HGmuY':_0x576e4c(0x22e),'itxIH':function(_0x363c80,_0x12919,_0x4cb1b3,_0x59c8b8){return _0x363c80(_0x12919,_0x4cb1b3,_0x59c8b8);},'FOSLj':_0x576e4c(0x216),'teoQt':function(_0x8503d9,_0x454cd4){return _0x8503d9!==_0x454cd4;},'DHCOQ':_0x576e4c(0x1fc),'elDuc':function(_0xbe8c74,_0x32ef4c,_0x526d92){return _0xbe8c74(_0x32ef4c,_0x526d92);},'cVAEb':function(_0x3a99ba,_0x3a3b00){return _0x3a99ba+_0x3a3b00;},'CKxvj':_0x576e4c(0x20e),'pJpxM':'error','paTpK':function(_0x19320c,_0x178c51,_0x5a088f){return _0x19320c(_0x178c51,_0x5a088f);},'PLaNr':_0x576e4c(0x1c8),'srfIT':_0x576e4c(0x204),'YjknA':_0x576e4c(0x1f8),'Kfbto':'bstackA11yShouldScan','IrBvb':_0x576e4c(0x207),'HbUNk':'Performing\x20scan\x20before\x20saving\x20results','ZlWZP':_0x576e4c(0x201),'sjNQu':function(_0x21751d){return _0x21751d();},'NDqvr':_0x576e4c(0x22b),'SyJYe':function(_0x54e748,_0x1545da){return _0x54e748>_0x1545da;}},_0x1617f9='browserstack internal helper hook';this[_0x576e4c(0x1d5)](0xfde8);const _0x19ee1f=async(_0xbfa5f8,_0x1906cc)=>{const _0x567bea=_0x576e4c;await global['__drivers'][0x0][_0x567bea(0x1eb)]('browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:'+_0xbfa5f8+_0x567bea(0x1c4)+_0x1906cc+'\x22}}');};new Promise(async _0x6ef104=>{const _0x35f7ba=_0x576e4c;try{_0xa7940c[_0x35f7ba(0x22f)](global['__drivers'][_0x35f7ba(0x1f3)],0x1)&&(await global[_0x35f7ba(0x1f0)](),global[_0x35f7ba(0x1cd)][_0x35f7ba(0x21d)](),global['__error_messages__']=[],global[_0x35f7ba(0x211)]=![]);try{if(global[_0x35f7ba(0x1dd)]&&_0xa7940c['KqEdZ'](global[_0x35f7ba(0x223)],_0xa7940c[_0x35f7ba(0x1f5)])&&global['__drivers'][0x0]){const _0x25c58c=_0xa7940c[_0x35f7ba(0x22f)](global['capabilities'][_0x35f7ba(0x1f3)],0x0)?!!global[_0x35f7ba(0x225)][0x0][_0x35f7ba(0x1d4)]||!!global[_0x35f7ba(0x225)][0x0][_0xa7940c[_0x35f7ba(0x1de)]]:![],_0x11f929={};_0x11f929[_0x35f7ba(0x1d4)]=_0x25c58c,await _0xa7940c['itxIH'](percyAutoCapture,global[_0x35f7ba(0x1cd)][0x0],_0xa7940c[_0x35f7ba(0x1f5)],_0x11f929);}}catch(_0x1c4b35){}!global[_0x35f7ba(0x20d)]&&(await global['__drivers'][0x0][_0x35f7ba(0x1eb)](_0x35f7ba(0x206)+JSON[_0x35f7ba(0x1d9)](this[_0x35f7ba(0x1ca)]['titlePath']()[_0x35f7ba(0x1bc)](_0xa7940c[_0x35f7ba(0x1d0)]))+'}}'),global['__drivers'][0x0][_0x35f7ba(0x218)]=!![]);const _0x3d1f66=_0xa7940c[_0x35f7ba(0x226)](this[_0x35f7ba(0x1ca)][_0x35f7ba(0x1bb)],_0xa7940c[_0x35f7ba(0x1d6)]);_0x3d1f66?(global[_0x35f7ba(0x211)]=!![],global[_0x35f7ba(0x20b)]['push'](this[_0x35f7ba(0x1ca)][_0x35f7ba(0x1c1)]['message']),await _0xa7940c[_0x35f7ba(0x220)](_0x19ee1f,JSON[_0x35f7ba(0x1d9)](_0xa7940c['cVAEb'](_0xa7940c['CKxvj'],this[_0x35f7ba(0x1ca)]['err'][_0x35f7ba(0x1f6)])),_0xa7940c['pJpxM'])):await _0xa7940c[_0x35f7ba(0x1ee)](_0x19ee1f,JSON['stringify'](_0xa7940c[_0x35f7ba(0x1e1)]),_0xa7940c['srfIT']);}catch(_0x3f79ef){}try{if(this['currentTest'][_0x35f7ba(0x209)]&&globals[_0x35f7ba(0x229)](_0xa7940c[_0x35f7ba(0x1c5)])&&globals[_0x35f7ba(0x229)](_0xa7940c[_0x35f7ba(0x1cf)])){logger[_0x35f7ba(0x204)](_0xa7940c[_0x35f7ba(0x1e6)]);const _0x22a17e={};_0x22a17e[_0x35f7ba(0x1c7)]=this[_0x35f7ba(0x1ca)][_0x35f7ba(0x1c6)],_0x22a17e['thBuildUuid']=process['env'][testHubConstants[_0x35f7ba(0x1e0)][_0x35f7ba(0x1ea)]],_0x22a17e[_0x35f7ba(0x224)]=process[_0x35f7ba(0x214)][testHubConstants['ENV_VAR']['BROWSERSTACK_TESTHUB_JWT']];const _0x5340a2=_0x22a17e;logger['debug'](_0x35f7ba(0x212)+JSON[_0x35f7ba(0x1d9)](_0x5340a2)),logger['debug'](_0xa7940c['HbUNk']),logger['debug'](util['format'](await global[_0x35f7ba(0x1cd)][0x0][_0x35f7ba(0x1c3)](scripts[_0x35f7ba(0x231)],{'method':global['browserstackSessionName']}))),await global['__drivers'][0x0]['executeAsyncScript'](scripts[_0x35f7ba(0x1ec)],_0x5340a2),logger['info'](_0xa7940c[_0x35f7ba(0x1ff)]);}}catch(_0x11f54b){logger[_0x35f7ba(0x210)](_0x35f7ba(0x21b)+this[_0x35f7ba(0x1ca)][_0x35f7ba(0x227)]()+_0x35f7ba(0x22c),_0x11f54b);}try{try{if(_0xa7940c[_0x35f7ba(0x1db)](shouldProcessEventForTesthub)){global[_0x35f7ba(0x1cd)][0x0]&&await _0xa7940c[_0x35f7ba(0x220)](sendPlatformDetails,global['__drivers'][0x0],this[_0x35f7ba(0x1ca)]?this[_0x35f7ba(0x1ca)]['testAnalyticsId']:null);if(_0xa7940c['sjNQu'](isBrowserstackInfra)){const _0x4150d4='ObservabilitySync:'+Date['now']();await _0xa7940c[_0x35f7ba(0x220)](_0x19ee1f,JSON[_0x35f7ba(0x1d9)](_0x4150d4),_0xa7940c[_0x35f7ba(0x1d8)]);}}}catch{}_0xa7940c[_0x35f7ba(0x21a)](global[_0x35f7ba(0x1cd)][0x0][_0x35f7ba(0x1ef)],0x0)&&await global[_0x35f7ba(0x1f0)]();}catch(_0x49ef1f){}_0xa7940c[_0x35f7ba(0x1db)](_0x6ef104);})[_0x576e4c(0x1d2)](()=>_0x3fcfd1());},'afterAll'(_0x502b15){const _0x4b34ed=a30_0x5ce6bf,_0x1f0e44={'QvPVo':function(_0x2f4e4a){return _0x2f4e4a();}},_0xc31ce4='browserstack internal helper hook';this['timeout'](0xfde8),new Promise(async _0x54b460=>{const _0x53b7c0=a30_0x49e7;PerformanceTester['stopMonitoring'](),await global['driverCleanup'](),_0x1f0e44[_0x53b7c0(0x1e5)](_0x54b460);})[_0x4b34ed(0x1d2)](()=>_0x502b15());}};function a30_0x4da7(){const _0x7bbc3f=['../../helpers/testhub/utils','\x20-\x20','FUPhJ','sessionNameSet__','18bSGZOt','SyJYe','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','shouldScanTestForAccessibility','shift','6wPWMUA','24oAwcDM','elDuc','isArray','26166vctruo','percyCaptureMode','thJwtToken','capabilities','teoQt','titlePath','2551432CkdUFu','getGlobal','GpCVK','debug','.\x20Error\x20:','../../helpers/logger','appium:app','AgIDE','152940vXsuhM','performScan','state','join','1212370KPzMDQ','util','mochaHooks','testcase','err','341LvfAgb','executeAsyncScript',',\x22level\x22:\x20\x22','YjknA','testAnalyticsId','thTestRunUuid','Passed','setGlobal','currentTest','http:','session_','__drivers','60mtQtyw','Kfbto','FOSLj','pOtIt','then','bJXFD','app','timeout','DHCOQ','../../helpers/performance-tester','NDqvr','stringify','zJJel','sjNQu','../../helpers/accessibility-automation/scripts','percy','HGmuY','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','ENV_VAR','PLaNr','BeSih','AGTfF','DlZbv','QvPVo','IrBvb','getCurrentUrl','failed','bstackA11yShouldScan','BROWSERSTACK_TESTHUB_UUID','executeScript','saveTestResults','1867082FmFIrM','paTpK','quitCount_','driverCleanup','660537BLduNj','fJiXh','length','NvLdX','JVOsr','message','protocol','isAccessibilityPlatform','HgbvW','DwaRS','zAkmB','passed','zBLQt','startMonitoring','ZlWZP','winstonLogger','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','Automate\x20test\x20case\x20execution\x20has\x20started.','\x20|\x20','info','HxUJE','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','34225zzPZTG','accessibilityScanStarted','./test-observability/mochaUtils','__error_messages__','initQuit','__skipSessionName','Failed:\x20','jJbKe','error','__sessionFailed','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','browserstackSessionName','env'];a30_0x4da7=function(){return _0x7bbc3f;};return a30_0x4da7();}
|
|
1
|
+
function a30_0x1455(_0x28db3e,_0x39d26f){const _0x30c294=a30_0x30c2();return a30_0x1455=function(_0x145509,_0x954582){_0x145509=_0x145509-0x1d6;let _0xe68e3a=_0x30c294[_0x145509];return _0xe68e3a;},a30_0x1455(_0x28db3e,_0x39d26f);}function a30_0x30c2(){const _0x2abca8=['BROWSERSTACK_TESTHUB_JWT','okDmE','BvWZp','length','now','percy','state','XIYDn','thTestRunUuid','nuAtx','WbMzV','EMmIF','wJgjc','AQyDb','__sessionFailed','vpSqv','YbVpk','3598900YSPRny','HWkdV','eQDyG','ENV_VAR','GtkDe','driverCleanup','titlePath','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','Passed','ACqKd','testcase','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','initQuit','info','gRZsr','executeAsyncScript','\x20-\x20','getGlobal','message','9VJndPK','__drivers','percyCaptureMode','44qtMkpC','BROWSERSTACK_TESTHUB_UUID','674772doPxuR','saveTestResults','DkwuZ','appium:app','../../helpers/helper','59826RoBGgo','stringify','then','2171496apWIwp','PRPcA','hnTFX','executeScript','isArray','passed','goneb','pPXqZ','vRCiN','../../helpers/testhub/utils','Performing\x20scan\x20before\x20saving\x20results','OItVc','3gewWfl','763lnpMHQ','\x22}}','http:','timeout','WAdaN','xuGVx','winstonLogger','isAccessibilityPlatform','quitCount_','yjCTv','join','hjcAw','protocol','iRKdZ','mNrMJ','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','accessibilityScanStarted','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','startMonitoring','KIHRV','__error_messages__','../../helpers/testhub/constants','../../helpers/globals','debug','format','stopMonitoring','thJwtToken','IhHBu','bstackA11yShouldScan','shift','thBuildUuid','uRuLj','ZErHc','SBKjq','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','capabilities','flfYd','failed','env','RMuZT','session_','app','sessionNameSet__','5064610Sxacbh','ObservabilitySync:','https:','AXNWe','TybYE','../../helpers/accessibility-automation/scripts',',\x22level\x22:\x20\x22','1142704pzkVkL','../../helpers/test-observability/utils','push','2308870aeIVbl','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','LXrTn','shouldScanTestForAccessibility','testAnalyticsId','MPFOW','performScan','lZfcM','currentTest','../../helpers/logger','__skipSessionName','getCurrentUrl','fntIP','Failed:\x20','error','browserstackSessionName','./test-observability/mochaUtils'];a30_0x30c2=function(){return _0x2abca8;};return a30_0x30c2();}const a30_0x59ee79=a30_0x1455;(function(_0x34c9fe,_0x41dbeb){const _0x5ac4a9=a30_0x1455,_0x2cfa5d=_0x34c9fe();while(!![]){try{const _0x346394=-parseInt(_0x5ac4a9(0x224))/0x1+parseInt(_0x5ac4a9(0x22c))/0x2+-parseInt(_0x5ac4a9(0x238))/0x3*(-parseInt(_0x5ac4a9(0x20c))/0x4)+-parseInt(_0x5ac4a9(0x1e0))/0x5+-parseInt(_0x5ac4a9(0x229))/0x6*(-parseInt(_0x5ac4a9(0x239))/0x7)+parseInt(_0x5ac4a9(0x1e7))/0x8*(parseInt(_0x5ac4a9(0x21f))/0x9)+-parseInt(_0x5ac4a9(0x1ea))/0xa*(parseInt(_0x5ac4a9(0x222))/0xb);if(_0x346394===_0x41dbeb)break;else _0x2cfa5d['push'](_0x2cfa5d['shift']());}catch(_0x836eb0){_0x2cfa5d['push'](_0x2cfa5d['shift']());}}}(a30_0x30c2,0x93704));const util=require('util'),{isAccessibilityAutomationSession,fetchPlatformDetails,shouldScanTestForAccessibility}=require('../../helpers/accessibility-automation/helper'),{percyAutoCapture}=require('../../helpers/percy/utils'),{sendPlatformDetails}=require(a30_0x59ee79(0x1fa)),{isBrowserstackInfra,markSessionStatus}=require(a30_0x59ee79(0x228)),{isTestObservabilitySession}=require(a30_0x59ee79(0x1e8)),PerformanceTester=require('../../helpers/performance-tester'),scripts=require(a30_0x59ee79(0x1e5)),globals=require(a30_0x59ee79(0x24f)),logger=require(a30_0x59ee79(0x1f3))[a30_0x59ee79(0x23f)],{shouldProcessEventForTesthub}=require(a30_0x59ee79(0x235)),testHubConstants=require(a30_0x59ee79(0x24e));exports['mochaHooks']={'beforeAll'(){const _0x2152dd=a30_0x59ee79,_0x227662={'fntIP':function(_0x57da80,_0x2ce555,_0x287b38,_0x55b015){return _0x57da80(_0x2ce555,_0x287b38,_0x55b015);},'YbVpk':_0x2152dd(0x1da),'lZfcM':'\x20|\x20','ACqKd':function(_0x16c532,_0x59e044,_0x52b09e){return _0x16c532(_0x59e044,_0x52b09e);},'SBKjq':'passed','nuAtx':function(_0x9349c1){return _0x9349c1();}};PerformanceTester[_0x2152dd(0x24b)]();const _0x15bdac='browserstack internal helper hook';global['__error_messages__']=[],global['__sessionFailed']=![],global['driverCleanup']=async()=>{const _0x3caae0=_0x2152dd;let _0x464dea=![];try{await global[_0x3caae0(0x220)][0x0]['session_'],_0x464dea=!![],global['__sessionFailed']?await _0x227662[_0x3caae0(0x1f6)](markSessionStatus,global['__drivers'][0x0],_0x227662[_0x3caae0(0x20b)],global[_0x3caae0(0x24d)]['join'](_0x227662[_0x3caae0(0x1f1)])):await _0x227662['ACqKd'](markSessionStatus,global[_0x3caae0(0x220)][0x0],_0x227662[_0x3caae0(0x1d6)]);}catch(_0x1443f7){}global[_0x3caae0(0x24d)]=[],global[_0x3caae0(0x209)]=![];if(_0x464dea)try{try{_0x227662[_0x3caae0(0x204)](shouldProcessEventForTesthub)&&(global[_0x3caae0(0x220)][0x0]&&await _0x227662[_0x3caae0(0x215)](sendPlatformDetails,global['__drivers'][0x0],this['currentTest']?this[_0x3caae0(0x1f2)][_0x3caae0(0x1ee)]:null));}catch{}await global[_0x3caae0(0x220)][0x0][_0x3caae0(0x218)]();}catch(_0x1c65d4){}};},'beforeEach'(_0x2749b5){const _0x13cf2d=a30_0x59ee79,_0x384d62={'okDmE':function(_0x1d8843,_0x39e532){return _0x1d8843>_0x39e532;},'iRKdZ':_0x13cf2d(0x21c),'gRZsr':function(_0x3f9fab,_0x568dcc,_0x4d26d5){return _0x3f9fab(_0x568dcc,_0x4d26d5);},'goneb':'bstackA11yShouldScan','AQyDb':function(_0x1a5abe){return _0x1a5abe();},'DkwuZ':function(_0x5444b9,_0x5506ca){return _0x5444b9>_0x5506ca;},'TybYE':_0x13cf2d(0x240),'vRCiN':function(_0xabe070,_0x9f75ce){return _0xabe070===_0x9f75ce;},'EMmIF':_0x13cf2d(0x23b),'RMuZT':function(_0x433aea,_0x4827e3){return _0x433aea===_0x4827e3;},'QNfzN':_0x13cf2d(0x1e2),'MPFOW':_0x13cf2d(0x217),'WAdaN':'Automate\x20test\x20case\x20execution\x20has\x20started.','wJgjc':function(_0x2aea77){return _0x2aea77();}};new Promise(async _0x226dc4=>{const _0x497280=_0x13cf2d,_0x1f9417='browserstack internal helper hook';let _0x269739=!![];try{_0x384d62[_0x497280(0x1fc)](global['__drivers'][_0x497280(0x1fe)],0x1)&&(await global[_0x497280(0x211)](),global['__drivers']['shift']()),_0x384d62[_0x497280(0x1fc)](global[_0x497280(0x220)][0x0][_0x497280(0x241)],0x0)&&(_0x269739=![],await global[_0x497280(0x211)]());}catch{}try{Array[_0x497280(0x230)](global['__drivers'])&&global[_0x497280(0x220)][0x0]&&(global[_0x497280(0x220)][0x0][_0x497280(0x1f9)]=this[_0x497280(0x1f2)][_0x497280(0x212)]()[_0x497280(0x243)](_0x384d62[_0x497280(0x246)])),global[_0x497280(0x1f9)]=this['currentTest'][_0x497280(0x212)]()[_0x497280(0x243)](_0x384d62['iRKdZ']);}catch(_0x275645){logger[_0x497280(0x250)]('Failed\x20to\x20store\x20session\x20name:\x20'+_0x275645);}this[_0x497280(0x1f2)][_0x497280(0x1ed)]=_0x384d62[_0x497280(0x21a)](shouldScanTestForAccessibility,this[_0x497280(0x1f2)][_0x497280(0x212)](),!![]),globals['setGlobal'](_0x384d62[_0x497280(0x232)],this['currentTest'][_0x497280(0x1ed)]),this['currentTest'][_0x497280(0x249)]=!![];if(_0x384d62[_0x497280(0x208)](isAccessibilityAutomationSession)&&_0x269739&&Array[_0x497280(0x230)](global[_0x497280(0x220)])&&_0x384d62[_0x497280(0x226)](global[_0x497280(0x220)]['length'],0x0)&&globals[_0x497280(0x21d)](_0x384d62[_0x497280(0x1e4)]))try{const _0x28ef77=await global[_0x497280(0x220)][0x0][_0x497280(0x1dd)];if(_0x28ef77){let _0x596c44=!![];const _0x1142cd=await global['__drivers'][0x0][_0x497280(0x1f5)]();let _0x3953ea;try{_0x3953ea=new URL(_0x1142cd);}catch(_0x5234d0){_0x596c44=![];}_0x596c44=_0x384d62[_0x497280(0x234)](_0x3953ea[_0x497280(0x245)],_0x384d62[_0x497280(0x206)])||_0x384d62[_0x497280(0x1dc)](_0x3953ea[_0x497280(0x245)],_0x384d62['QNfzN']),_0x596c44&&(this[_0x497280(0x1f2)][_0x497280(0x1ed)]&&logger['info'](_0x384d62[_0x497280(0x1ef)])),this['currentTest'][_0x497280(0x249)]=this[_0x497280(0x1f2)][_0x497280(0x1ed)],this[_0x497280(0x1f2)][_0x497280(0x1ed)]&&logger[_0x497280(0x219)](_0x384d62[_0x497280(0x23d)]);}}catch(_0x1d2b9f){logger[_0x497280(0x1f8)](_0x497280(0x24a)+util[_0x497280(0x251)](_0x1d2b9f));}_0x384d62[_0x497280(0x207)](_0x226dc4);})[_0x13cf2d(0x22b)](_0x2749b5);},'afterEach'(_0x45bfd4){const _0xa296ff=a30_0x59ee79,_0x186fcc={'xuGVx':function(_0x580e6e,_0x5c2828){return _0x580e6e>_0x5c2828;},'yjCTv':function(_0x58400b,_0x4e2d8b){return _0x58400b===_0x4e2d8b;},'mapHG':_0xa296ff(0x216),'flfYd':_0xa296ff(0x227),'WbMzV':function(_0x29bc5e,_0x40f40a,_0x350d59,_0x146416){return _0x29bc5e(_0x40f40a,_0x350d59,_0x146416);},'pPXqZ':'\x20-\x20','eQDyG':function(_0x5d97bb,_0x4785f8){return _0x5d97bb!==_0x4785f8;},'ZErHc':_0xa296ff(0x231),'BvWZp':function(_0x5cf1c2,_0x214e48,_0x14cbc7){return _0x5cf1c2(_0x214e48,_0x14cbc7);},'vpSqv':function(_0x1cdac6,_0x4c2385){return _0x1cdac6+_0x4c2385;},'PRPcA':_0xa296ff(0x1f7),'XIYDn':'error','GtkDe':_0xa296ff(0x214),'IhHBu':_0xa296ff(0x219),'hnTFX':_0xa296ff(0x240),'FThUT':_0xa296ff(0x255),'LXrTn':'Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','AXNWe':_0xa296ff(0x236),'HWkdV':_0xa296ff(0x213),'uRuLj':function(_0xe93e81){return _0xe93e81();},'OItVc':function(_0x2d7760,_0x2e4df6,_0xb5a3a0){return _0x2d7760(_0x2e4df6,_0xb5a3a0);},'hjcAw':'debug','mNrMJ':function(_0x4cac66,_0x242fa4){return _0x4cac66>_0x242fa4;}},_0x411ea0='browserstack internal helper hook';this[_0xa296ff(0x23c)](0xfde8);const _0x534d34=async(_0x5a0e6a,_0xaed8b4)=>{const _0x3d2141=_0xa296ff;await global[_0x3d2141(0x220)][0x0][_0x3d2141(0x22f)](_0x3d2141(0x1d7)+_0x5a0e6a+_0x3d2141(0x1e6)+_0xaed8b4+_0x3d2141(0x23a));};new Promise(async _0x202ccd=>{const _0x2d95cc=_0xa296ff;try{_0x186fcc[_0x2d95cc(0x23e)](global['__drivers'][_0x2d95cc(0x1fe)],0x1)&&(await global[_0x2d95cc(0x211)](),global[_0x2d95cc(0x220)][_0x2d95cc(0x256)](),global[_0x2d95cc(0x24d)]=[],global[_0x2d95cc(0x209)]=![]);try{if(global[_0x2d95cc(0x200)]&&_0x186fcc[_0x2d95cc(0x242)](global[_0x2d95cc(0x221)],_0x186fcc['mapHG'])&&global['__drivers'][0x0]){const _0x413a0f=_0x186fcc[_0x2d95cc(0x23e)](global[_0x2d95cc(0x1d8)]['length'],0x0)?!!global[_0x2d95cc(0x1d8)][0x0][_0x2d95cc(0x1de)]||!!global[_0x2d95cc(0x1d8)][0x0][_0x186fcc[_0x2d95cc(0x1d9)]]:![],_0x50a774={};_0x50a774[_0x2d95cc(0x1de)]=_0x413a0f,await _0x186fcc[_0x2d95cc(0x205)](percyAutoCapture,global[_0x2d95cc(0x220)][0x0],_0x186fcc['mapHG'],_0x50a774);}}catch(_0x4cc104){}!global[_0x2d95cc(0x1f4)]&&(await global[_0x2d95cc(0x220)][0x0][_0x2d95cc(0x22f)]('browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20'+JSON['stringify'](this[_0x2d95cc(0x1f2)]['titlePath']()[_0x2d95cc(0x243)](_0x186fcc[_0x2d95cc(0x233)]))+'}}'),global['__drivers'][0x0][_0x2d95cc(0x1df)]=!![]);const _0x58b11d=_0x186fcc[_0x2d95cc(0x20e)](this[_0x2d95cc(0x1f2)][_0x2d95cc(0x201)],_0x186fcc[_0x2d95cc(0x259)]);_0x58b11d?(global['__sessionFailed']=!![],global[_0x2d95cc(0x24d)][_0x2d95cc(0x1e9)](this[_0x2d95cc(0x1f2)]['err']['message']),await _0x186fcc[_0x2d95cc(0x1fd)](_0x534d34,JSON[_0x2d95cc(0x22a)](_0x186fcc[_0x2d95cc(0x20a)](_0x186fcc[_0x2d95cc(0x22d)],this['currentTest']['err'][_0x2d95cc(0x21e)])),_0x186fcc[_0x2d95cc(0x202)])):await _0x186fcc[_0x2d95cc(0x1fd)](_0x534d34,JSON[_0x2d95cc(0x22a)](_0x186fcc[_0x2d95cc(0x210)]),_0x186fcc[_0x2d95cc(0x254)]);}catch(_0xae4e1a){}try{if(this['currentTest'][_0x2d95cc(0x249)]&&globals['getGlobal'](_0x186fcc[_0x2d95cc(0x22e)])&&globals[_0x2d95cc(0x21d)](_0x186fcc['FThUT'])){logger[_0x2d95cc(0x219)](_0x186fcc[_0x2d95cc(0x1ec)]);const _0x5e6495={};_0x5e6495[_0x2d95cc(0x203)]=this[_0x2d95cc(0x1f2)][_0x2d95cc(0x1ee)],_0x5e6495[_0x2d95cc(0x257)]=process['env'][testHubConstants['ENV_VAR'][_0x2d95cc(0x223)]],_0x5e6495[_0x2d95cc(0x253)]=process[_0x2d95cc(0x1db)][testHubConstants[_0x2d95cc(0x20f)][_0x2d95cc(0x1fb)]];const _0x206187=_0x5e6495;logger[_0x2d95cc(0x250)](_0x2d95cc(0x1eb)+JSON['stringify'](_0x206187)),logger[_0x2d95cc(0x250)](_0x186fcc[_0x2d95cc(0x1e3)]),logger[_0x2d95cc(0x250)](util[_0x2d95cc(0x251)](await global[_0x2d95cc(0x220)][0x0][_0x2d95cc(0x21b)](scripts[_0x2d95cc(0x1f0)],{'method':global[_0x2d95cc(0x1f9)]}))),await global['__drivers'][0x0][_0x2d95cc(0x21b)](scripts[_0x2d95cc(0x225)],_0x206187),logger[_0x2d95cc(0x219)](_0x186fcc[_0x2d95cc(0x20d)]);}}catch(_0x2e6df4){logger[_0x2d95cc(0x1f8)](_0x2d95cc(0x248)+this[_0x2d95cc(0x1f2)][_0x2d95cc(0x212)]()+'.\x20Error\x20:',_0x2e6df4);}try{try{if(_0x186fcc[_0x2d95cc(0x258)](shouldProcessEventForTesthub)){global['__drivers'][0x0]&&await _0x186fcc[_0x2d95cc(0x237)](sendPlatformDetails,global[_0x2d95cc(0x220)][0x0],this[_0x2d95cc(0x1f2)]?this[_0x2d95cc(0x1f2)][_0x2d95cc(0x1ee)]:null);if(_0x186fcc[_0x2d95cc(0x258)](isBrowserstackInfra)){const _0x5386d7=_0x2d95cc(0x1e1)+Date[_0x2d95cc(0x1ff)]();await _0x186fcc[_0x2d95cc(0x1fd)](_0x534d34,JSON['stringify'](_0x5386d7),_0x186fcc[_0x2d95cc(0x244)]);}}}catch{}_0x186fcc[_0x2d95cc(0x247)](global[_0x2d95cc(0x220)][0x0][_0x2d95cc(0x241)],0x0)&&await global[_0x2d95cc(0x211)]();}catch(_0x320a01){}_0x186fcc[_0x2d95cc(0x258)](_0x202ccd);})['then'](()=>_0x45bfd4());},'afterAll'(_0x13f0ef){const _0x9f7ab1=a30_0x59ee79,_0x5079ac={'KIHRV':function(_0xe32faf){return _0xe32faf();}},_0x5d6ad7='browserstack internal helper hook';this[_0x9f7ab1(0x23c)](0xfde8),new Promise(async _0x14f395=>{const _0x191f63=_0x9f7ab1;PerformanceTester[_0x191f63(0x252)](),await global['driverCleanup'](),_0x5079ac[_0x191f63(0x24c)](_0x14f395);})[_0x9f7ab1(0x22b)](()=>_0x13f0ef());}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';
|
|
2
|
+
'use strict';const a31_0x2b0d80=a31_0x37a4;function a31_0x37a4(_0x2e4e87,_0x2091c1){const _0x16660c=a31_0x1666();return a31_0x37a4=function(_0x37a40e,_0x5e9983){_0x37a40e=_0x37a40e-0x125;let _0x1ef540=_0x16660c[_0x37a40e];return _0x1ef540;},a31_0x37a4(_0x2e4e87,_0x2091c1);}(function(_0xa8c9c7,_0x2295dc){const _0xa1bc28=a31_0x37a4,_0x4b5cfe=_0xa8c9c7();while(!![]){try{const _0x2f048f=parseInt(_0xa1bc28(0x13d))/0x1+parseInt(_0xa1bc28(0x161))/0x2*(-parseInt(_0xa1bc28(0x144))/0x3)+-parseInt(_0xa1bc28(0x162))/0x4+parseInt(_0xa1bc28(0x146))/0x5+-parseInt(_0xa1bc28(0x15c))/0x6+parseInt(_0xa1bc28(0x140))/0x7*(parseInt(_0xa1bc28(0x15f))/0x8)+parseInt(_0xa1bc28(0x148))/0x9;if(_0x2f048f===_0x2295dc)break;else _0x4b5cfe['push'](_0x4b5cfe['shift']());}catch(_0x4b217c){_0x4b5cfe['push'](_0x4b5cfe['shift']());}}}(a31_0x1666,0xbe6a0));const fs=require('fs'),path=require(a31_0x2b0d80(0x149)),{spawn}=require(a31_0x2b0d80(0x145)),logger=require(a31_0x2b0d80(0x12f))[a31_0x2b0d80(0x135)],{default:BrowserStackSetup}=require(a31_0x2b0d80(0x12e)),helper=require(a31_0x2b0d80(0x168)),constants=require(a31_0x2b0d80(0x13b)),getUserNightwatchConfigs=(_0x496ef0,_0x8da922)=>{const _0x1c1816=a31_0x2b0d80,_0x1ab114={'zOnzt':_0x1c1816(0x167),'ATwhU':_0x1c1816(0x166),'qrMVU':function(_0x32a92c,_0x27c817){return _0x32a92c(_0x27c817);},'KPBpz':_0x1c1816(0x173)};let _0x48374e=null,_0x187c6f={};const _0x2fee9e=_0x8da922['findIndex'](_0x5da76f=>_0x5da76f===_0x1c1816(0x15e));if(!helper[_0x1c1816(0x158)](_0x496ef0[_0x1c1816(0x176)])&&fs['existsSync'](path[_0x1c1816(0x14c)](process['cwd'](),_0x496ef0[_0x1c1816(0x176)])))_0x48374e=path[_0x1c1816(0x14c)](process['cwd'](),_0x496ef0['config']),_0x8da922['splice'](_0x2fee9e,0x2);else{if(fs[_0x1c1816(0x172)](path['join'](process[_0x1c1816(0x13e)](),_0x1ab114[_0x1c1816(0x16b)])))_0x48374e=path[_0x1c1816(0x14c)](process['cwd'](),_0x1ab114[_0x1c1816(0x16b)]);else fs[_0x1c1816(0x172)](path['join'](process[_0x1c1816(0x13e)](),_0x1ab114[_0x1c1816(0x171)]))&&(_0x48374e=path[_0x1c1816(0x14c)](process[_0x1c1816(0x13e)](),_0x1ab114[_0x1c1816(0x171)]));}return _0x48374e?(logger[_0x1c1816(0x125)]('Getting\x20your\x20nightwatch\x20configs\x20from\x20'+_0x48374e),_0x187c6f=_0x1ab114[_0x1c1816(0x15d)](require,_0x48374e)):logger['info'](_0x1ab114[_0x1c1816(0x156)]),_0x187c6f;},removeExistingEnvs=_0x4b7af8=>{const _0x48a0d4=a31_0x2b0d80,_0x563a4d={};_0x563a4d['jetmN']=function(_0xfccf2e,_0xbf05ef){return _0xfccf2e>_0xbf05ef;},_0x563a4d['NQrnG']=function(_0x54ce93,_0x5a8288){return _0x54ce93>_0x5a8288;};const _0x3b4764=_0x563a4d;let _0x2e9cfc=_0x4b7af8[_0x48a0d4(0x150)](_0x8c4985=>_0x8c4985===_0x48a0d4(0x126));_0x3b4764[_0x48a0d4(0x165)](_0x2e9cfc,-0x1)&&_0x4b7af8[_0x48a0d4(0x16f)](_0x2e9cfc,0x2),_0x2e9cfc=_0x4b7af8[_0x48a0d4(0x150)](_0x1b7bc6=>_0x1b7bc6==='-e'),_0x3b4764[_0x48a0d4(0x15b)](_0x2e9cfc,-0x1)&&_0x4b7af8[_0x48a0d4(0x16f)](_0x2e9cfc,0x2);};function run(_0x263b17,_0x3e4518){const _0x2eea6c=a31_0x2b0d80,_0x3f2c46={'pFKuB':_0x2eea6c(0x142),'hzpUE':function(_0x141393,_0x236e60){return _0x141393+_0x236e60;},'ZZomC':_0x2eea6c(0x131),'nKhAp':function(_0x225a23,_0x1430a2,_0xbb8e3d){return _0x225a23(_0x1430a2,_0xbb8e3d);},'YRPQV':_0x2eea6c(0x12a),'OFIEC':_0x2eea6c(0x133),'mgQYa':function(_0x367586,_0x17803b){return _0x367586===_0x17803b;},'FUQgL':_0x2eea6c(0x15a),'EiTbK':function(_0x3b664c,_0x2bccba){return _0x3b664c(_0x2bccba);},'GvJNb':function(_0x2cb29d,_0x2b755b,_0xe76e0f,_0x360b92){return _0x2cb29d(_0x2b755b,_0xe76e0f,_0x360b92);},'Erhzu':_0x2eea6c(0x16d),'unBlI':'--config','cxclQ':_0x2eea6c(0x126),'ocFuj':_0x2eea6c(0x12d),'HYwUa':_0x2eea6c(0x13c)},_0x5c502d=new BrowserStackSetup(_0x263b17);if(!_0x5c502d[_0x2eea6c(0x176)])return;const _0xa0d078=_0x3f2c46[_0x2eea6c(0x175)](getUserNightwatchConfigs,_0x263b17,_0x3e4518),_0x25dd41={};_0x25dd41['start_process']=![];const _0x23bee8={};_0x23bee8[_0x2eea6c(0x160)]=_0x3f2c46[_0x2eea6c(0x16c)],_0x23bee8[_0x2eea6c(0x139)]=0x1bb;const _0x124c46={};_0x124c46[_0x2eea6c(0x128)]=_0x25dd41,_0x124c46[_0x2eea6c(0x163)]=_0x23bee8;const _0x2defd6=_0x124c46;logger[_0x2eea6c(0x125)](_0x3f2c46[_0x2eea6c(0x151)]);const _0x2faf8b={..._0xa0d078},_0x1db0c5=_0x2faf8b,_0x3eae6f=helper[_0x2eea6c(0x14a)](_0x5c502d[_0x2eea6c(0x176)]),_0x5712f7=[];_0x5c502d[_0x2eea6c(0x176)][_0x2eea6c(0x12c)]['forEach']((_0x1fe03d,_0x5a225c)=>{const _0x15b328=_0x2eea6c;_0x3eae6f?_0x5712f7[_0x15b328(0x130)](helper['modifyBrowserStackW3CCaps'](_0x5c502d[_0x15b328(0x176)],_0x3f2c46[_0x15b328(0x14d)],_0x5a225c)):_0x5712f7[_0x15b328(0x130)](helper[_0x15b328(0x159)](_0x5c502d[_0x15b328(0x176)],_0x3f2c46[_0x15b328(0x14d)],_0x5a225c));});const _0xb3fd3b={},_0x39c902=[];_0x263b17[_0x2eea6c(0x13a)]=_0x263b17[_0x2eea6c(0x13a)]||_0x263b17['e'];const _0x153fba=_0x263b17[_0x2eea6c(0x13a)]?_0x263b17['env']['trim']()[_0x2eea6c(0x174)](',')[_0x2eea6c(0x169)](_0xee793b=>_0xee793b[_0x2eea6c(0x129)]())[_0x2eea6c(0x136)](_0x10c63c=>_0x10c63c!==''):[''];_0x3f2c46[_0x2eea6c(0x14b)](_0x153fba[_0x2eea6c(0x155)],0x0)&&_0x153fba[_0x2eea6c(0x130)]('');_0x153fba[_0x2eea6c(0x132)](_0x3ed2bb=>{const _0x2c4b3e=_0x2eea6c;_0x5712f7[_0x2c4b3e(0x132)](_0x5657d6=>{const _0x401295=_0x2c4b3e;let _0x5e5211=_0x3f2c46[_0x401295(0x16e)](helper[_0x401295(0x14f)](_0x5657d6,'_'),'_'+Date[_0x401295(0x154)]());_0x3ed2bb&&(_0x5e5211+='_'+_0x3ed2bb);if(_0x3ed2bb&&(!_0xa0d078[_0x3f2c46[_0x401295(0x13f)]]||!_0xa0d078[_0x3f2c46[_0x401295(0x13f)]][_0x3ed2bb]))return;const _0x4fcd78={..._0x2defd6};_0x4fcd78['desiredCapabilities']=_0x5657d6;const _0x59404e=_0x4fcd78;_0xb3fd3b[_0x5e5211]=_0x3ed2bb?helper[_0x401295(0x134)](_0xa0d078[_0x3f2c46[_0x401295(0x13f)]][_0x3ed2bb],_0x59404e):_0x59404e,_0x39c902[_0x401295(0x130)](_0x5e5211);});});!_0x1db0c5[_0x2eea6c(0x131)]&&(_0x1db0c5[_0x2eea6c(0x131)]={});_0x1db0c5[_0x2eea6c(0x131)]={..._0x1db0c5[_0x2eea6c(0x131)],..._0xb3fd3b};const _0x253baf=path[_0x2eea6c(0x14c)](__dirname,_0x3f2c46[_0x2eea6c(0x152)]);fs['writeFileSync'](_0x253baf,JSON['stringify'](_0x1db0c5)),_0x3f2c46['EiTbK'](removeExistingEnvs,_0x3e4518);const _0x13f59a=_0x3f2c46[_0x2eea6c(0x164)](spawn,/^win/[_0x2eea6c(0x141)](process[_0x2eea6c(0x153)])?_0x3f2c46[_0x2eea6c(0x12b)]:_0x3f2c46[_0x2eea6c(0x14d)],[_0x3f2c46[_0x2eea6c(0x138)],_0x253baf,..._0x3e4518[_0x2eea6c(0x16a)](0x1),_0x3f2c46[_0x2eea6c(0x147)],_0x39c902[_0x2eea6c(0x14c)](',')],{'stdio':_0x3f2c46[_0x2eea6c(0x143)]});_0x13f59a['on'](_0x3f2c46[_0x2eea6c(0x170)],async _0x1e0905=>{const _0x37c820=_0x2eea6c;logger[_0x37c820(0x157)]('child\x20process\x20exited\x20with\x20code\x20'+_0x1e0905),logger[_0x37c820(0x125)](_0x37c820(0x137)+_0x253baf),fs[_0x37c820(0x127)](_0x253baf);});}function a31_0x1666(){const _0x538d08=['Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','mergeDeep','winstonLogger','filter','Deleting\x20','unBlI','port','env','../utils/constants','close','209645YzREFT','cwd','ZZomC','7GxRIYA','test','nightwatch','ocFuj','3qsKBjA','child_process','1541925dDyNer','cxclQ','3579561EsvlsO','path','useW3C','mgQYa','join','pFKuB','exports','getPlatformName','findIndex','OFIEC','FUQgL','platform','now','length','KPBpz','debug','isUndefined','modifyBrowserStackCaps','nightwatch-browserstack.json','NQrnG','2587560mWzWZt','qrMVU','--config','8680688eyjtAS','host','242986yzsBPg','2672624QTVvnj','selenium','GvJNb','jetmN','nightwatch.json','nightwatch.conf.js','../../helpers/helper','map','slice','zOnzt','YRPQV','nightwatch.cmd','hzpUE','splice','HYwUa','ATwhU','existsSync','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','split','nKhAp','config','info','--env','unlinkSync','webdriver','trim','hub.browserstack.com','Erhzu','platforms','inherit','../../helpers/BrowserStackSetup','../../helpers/logger','push','test_settings','forEach'];a31_0x1666=function(){return _0x538d08;};return a31_0x1666();}module[a31_0x2b0d80(0x14e)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a32_0x4738(){const _0x4744fd=['wcagVersion','browser_version','name','VosYq','1190935FEQMug','method','1897LdywvI','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','gvTVa','kaShS','browserName','connectOptions','No\x20summaryResults\x20found.','(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','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','currentTest','accessibilityPlatform','MnVNF','zFuxT','chrome','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','Zqdqh','dUSmW','../../helpers/helper','apwne','1441276FpeRto','101961DyhvYS','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','browserstack.accessibility','UmsLD','568oYcGRY','15279axNnpC','wWIsF','gQlzU','browser','kclhm','playwright-chromium','bestPractice','platformValidation','OkRAX','JUOyq','../../helpers/logger','accessibilityOptions.scannerVersion','26gyhKIs','accessibilityOptions.wcagVersion','evaluate','env','DHkmm','NEsXx','performScan','project','DMiZv','cMSnC','parse','testInfo','../../helpers/accessibility-automation/scripts','14060LMdhWQ','CJMwm','144759euuybb','accessibilityOptions.includeIssueType.needsReview','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','format','debug','2871035qklIDg','needsReview','error','getAccessibilityResults','replace','12462qKkYxi','QWRMh','GmUPq','getAccessibilityResultsSummary','browserStackEvaluate','stringify','yGErz','setAccessibilityCapabilities','gvmyQ','cebsB','browserStackExecuteDriver','accessibilityOptions','fTQDA','processAccessibilityCaps','zSuRY','gZUKz','SXNmb','EKymb','WebDriver','bstackSdkArgs','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','constructor','../../helpers/accessibility-automation/helper','deviceName','LEwIu','No\x20accessibility\x20results\x20were\x20found.','latest','scannerVersion','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','executeAsyncScript','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','warn','accessibilityOptions.scannerProcessingTimeout','scannerProcessingTimeout','executeScript'];a32_0x4738=function(){return _0x4744fd;};return a32_0x4738();}const a32_0x507822=a32_0x49dc;(function(_0x499600,_0x2ef1cf){const _0x42dcab=a32_0x49dc,_0x5b8a37=_0x499600();while(!![]){try{const _0x565395=-parseInt(_0x42dcab(0x1a9))/0x1+-parseInt(_0x42dcab(0x1d0))/0x2*(-parseInt(_0x42dcab(0x1df))/0x3)+parseInt(_0x42dcab(0x1be))/0x4+-parseInt(_0x42dcab(0x1e4))/0x5+parseInt(_0x42dcab(0x182))/0x6*(parseInt(_0x42dcab(0x1ab))/0x7)+-parseInt(_0x42dcab(0x1c3))/0x8*(parseInt(_0x42dcab(0x1bf))/0x9)+-parseInt(_0x42dcab(0x1dd))/0xa*(-parseInt(_0x42dcab(0x1c4))/0xb);if(_0x565395===_0x2ef1cf)break;else _0x5b8a37['push'](_0x5b8a37['shift']());}catch(_0x3f5a82){_0x5b8a37['push'](_0x5b8a37['shift']());}}}(a32_0x4738,0xe4014));const util=require('util'),logger=require(a32_0x507822(0x1ce))['winstonLogger'],{isAccessibilityAutomationSession}=require(a32_0x507822(0x198)),{isUndefined}=require(a32_0x507822(0x1bc)),scripts=require(a32_0x507822(0x1dc));function a32_0x49dc(_0x7b5e51,_0x5bb694){const _0x47386e=a32_0x4738();return a32_0x49dc=function(_0x49dc8d,_0x42e5bf){_0x49dc8d=_0x49dc8d-0x180;let _0x2994c5=_0x47386e[_0x49dc8d];return _0x2994c5;},a32_0x49dc(_0x7b5e51,_0x5bb694);}exports['browserStackEvaluate']=async(_0x4b0244,_0x3d8d8b,_0x451893={})=>{const _0x30f040=a32_0x507822,_0x1dc958={};_0x1dc958[_0x30f040(0x18e)]=_0x30f040(0x195);const _0x5790b8=_0x1dc958;return await _0x4b0244[_0x30f040(0x1d2)](_0x30f040(0x1b2)+_0x3d8d8b[_0x30f040(0x181)](/arguments/g,_0x5790b8[_0x30f040(0x18e)])+'\x0a\x20\x20\x20\x20})\x0a\x20\x20})('+JSON[_0x30f040(0x187)](_0x451893)+')');},exports[a32_0x507822(0x18c)]=async(_0x528210,_0x571237,_0x2aa3ff={})=>{const _0x46a14a=a32_0x507822,_0x2c118a={};_0x2c118a['BPiRH']=function(_0x131328,_0x534cf8){return _0x131328===_0x534cf8;},_0x2c118a[_0x46a14a(0x1c2)]=_0x46a14a(0x194),_0x2c118a[_0x46a14a(0x183)]=function(_0x3ac26f,_0x1577e7){return _0x3ac26f===_0x1577e7;},_0x2c118a[_0x46a14a(0x18b)]='Playwright',_0x2c118a['OkRAX']=_0x46a14a(0x195);const _0x221917=_0x2c118a;if(_0x221917['BPiRH'](_0x528210[_0x46a14a(0x197)]['name'],_0x221917[_0x46a14a(0x1c2)]))return await _0x528210[_0x46a14a(0x19f)](_0x571237,_0x2aa3ff);else{if(_0x221917[_0x46a14a(0x183)](_0x528210[_0x46a14a(0x197)][_0x46a14a(0x1a7)],_0x221917['cebsB']))return await _0x528210[_0x46a14a(0x1a4)]('(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'+_0x571237[_0x46a14a(0x181)](/arguments/g,_0x221917[_0x46a14a(0x1cc)])+_0x46a14a(0x1ac)+JSON[_0x46a14a(0x187)](_0x2aa3ff)+')');}},exports[a32_0x507822(0x189)]=async _0x298106=>{const _0x72d863=a32_0x507822,_0x4576e2={};_0x4576e2['cwAwA']=_0x72d863(0x1d1),_0x4576e2[_0x72d863(0x1d8)]=_0x72d863(0x1a2),_0x4576e2[_0x72d863(0x188)]='accessibilityOptions.includeIssueType.bestPractice',_0x4576e2['icxKu']=_0x72d863(0x1e0),_0x4576e2['LEwIu']='accessibilityOptions.authToken',_0x4576e2[_0x72d863(0x193)]=_0x72d863(0x1cf);const _0x56e780=_0x4576e2;_0x298106[_0x72d863(0x18d)]&&(_0x298106[_0x72d863(0x18d)][_0x72d863(0x1a5)]&&(_0x298106[_0x56e780['cwAwA']]=_0x298106[_0x72d863(0x18d)]['wcagVersion']),_0x298106[_0x72d863(0x18d)][_0x72d863(0x1a3)]&&(_0x298106[_0x56e780['DMiZv']]=_0x298106[_0x72d863(0x18d)][_0x72d863(0x1a3)]),_0x298106[_0x72d863(0x18d)]['includeIssueType']&&(_0x298106[_0x56e780[_0x72d863(0x188)]]=_0x298106[_0x72d863(0x18d)]['includeIssueType'][_0x72d863(0x1ca)],_0x298106[_0x56e780['icxKu']]=_0x298106[_0x72d863(0x18d)]['includeIssueType'][_0x72d863(0x1e5)]));const _0x46223e=JSON[_0x72d863(0x1da)](process[_0x72d863(0x1d3)][_0x72d863(0x1c0)])[_0x72d863(0x19d)];_0x298106[_0x56e780[_0x72d863(0x19a)]]=process[_0x72d863(0x1d3)]['BS_A11Y_JWT'],_0x298106[_0x56e780['EKymb']]=_0x46223e,delete _0x298106[_0x72d863(0x18d)];},exports[a32_0x507822(0x180)]=async _0x54e81e=>{const _0x4baacf=a32_0x507822,_0x2cbc1e={};_0x2cbc1e[_0x4baacf(0x1d9)]=_0x4baacf(0x19b),_0x2cbc1e[_0x4baacf(0x1d5)]=_0x4baacf(0x19e);const _0x4d9a79=_0x2cbc1e;if(global[_0x4baacf(0x1b5)])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x54e81e,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x54e81e,scripts.getResults);return res;}catch{return logger[_0x4baacf(0x1e6)](_0x4d9a79[_0x4baacf(0x1d9)]),[];}else return logger['warn'](_0x4d9a79[_0x4baacf(0x1d5)]),[];},exports['performScan']=async(_0x1681a2,_0x3ea70a='')=>{const _0x116d17=a32_0x507822;if(global[_0x116d17(0x1b5)]){const _0x9c7de7={};return _0x9c7de7[_0x116d17(0x1aa)]=_0x3ea70a,await exports[_0x116d17(0x186)](_0x1681a2,scripts[_0x116d17(0x1d6)],_0x9c7de7);}},exports[a32_0x507822(0x185)]=async _0x1e71a9=>{const _0x2807ce=a32_0x507822,_0x5b4209={};_0x5b4209[_0x2807ce(0x18a)]=_0x2807ce(0x1b1),_0x5b4209[_0x2807ce(0x1ba)]=_0x2807ce(0x1a0);const _0x3036b2=_0x5b4209;if(global['accessibilityPlatform'])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x1e71a9,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x1e71a9,scripts.getResultsSummary);return summaryResults;}catch{return logger[_0x2807ce(0x1e3)](_0x3036b2['gvmyQ']),{};}else return logger['warn'](_0x3036b2['Zqdqh']),{};},exports[a32_0x507822(0x1cb)]=async _0x178419=>{const _0x170860=a32_0x507822,_0x56c65f={'wWIsF':function(_0x16f0f2,_0x954bc3){return _0x16f0f2!==_0x954bc3;},'gvTVa':_0x170860(0x1b9),'CJMwm':function(_0x5efec5,_0x2a3668){return _0x5efec5===_0x2a3668;},'GmUPq':_0x170860(0x1b8),'sliHs':_0x170860(0x1c9),'DHkmm':_0x170860(0x1e1),'HUxzA':function(_0x3ad738,_0x2b4fec){return _0x3ad738(_0x2b4fec);},'zFuxT':function(_0x37922a,_0x28d8eb){return _0x37922a===_0x28d8eb;},'gZUKz':_0x170860(0x19c),'dLHDG':function(_0x1b705e,_0x4275f7){return _0x1b705e>_0x4275f7;},'kymwa':_0x170860(0x196)};try{if(!_0x56c65f[_0x170860(0x1c5)](_0x178419[_0x170860(0x199)],''))return logger['warn'](_0x56c65f[_0x170860(0x1ad)]),![];const _0x3fefad=_0x178419[_0x170860(0x1c7)];if(!(_0x56c65f[_0x170860(0x1de)](_0x3fefad,_0x56c65f[_0x170860(0x184)])||_0x56c65f[_0x170860(0x1de)](_0x3fefad,_0x56c65f['sliHs'])))return logger['warn'](_0x56c65f[_0x170860(0x1d4)]),![];const _0x1a9c1a=_0x56c65f['HUxzA'](parseInt,_0x178419[_0x170860(0x1a6)]);if(!(_0x56c65f[_0x170860(0x1b7)](_0x1a9c1a,_0x56c65f[_0x170860(0x191)])||_0x56c65f['dLHDG'](_0x1a9c1a,0x5e)))return logger[_0x170860(0x1a1)](_0x56c65f['kymwa']),![];}catch(_0x10a184){logger[_0x170860(0x1e3)](_0x170860(0x1b3)+util[_0x170860(0x1e2)](_0x10a184));}return!![];},exports[a32_0x507822(0x18f)]=(_0x3b5796,_0x47cca0,_0x5d1fb9)=>{const _0xadda67=a32_0x507822,_0x315086={'MnVNF':function(_0x576db5){return _0x576db5();},'SXNmb':_0xadda67(0x1c1),'JUOyq':function(_0x146be8,_0xd8cf01){return _0x146be8===_0xd8cf01;},'kaShS':_0xadda67(0x1b8),'apwne':_0xadda67(0x1c9),'ouYJc':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','dUSmW':function(_0x53a611,_0xb81543){return _0x53a611===_0xb81543;},'egTSy':'latest','NxPGh':function(_0x4a2ec7,_0xd2055e){return _0x4a2ec7>_0xd2055e;},'EVJbS':_0xadda67(0x196),'VosYq':function(_0x245ce4,_0x344729){return _0x245ce4(_0x344729);},'kclhm':_0xadda67(0x1b9),'gQlzU':function(_0x26c00f,_0x220087){return _0x26c00f+_0x220087;},'zSuRY':function(_0x39aac8,_0x421c5a){return _0x39aac8(_0x421c5a);}};try{if(_0x315086[_0xadda67(0x1b6)](isAccessibilityAutomationSession)){global[_0xadda67(0x1b5)]=!![];!_0x3b5796[_0x315086[_0xadda67(0x192)]]&&(global[_0xadda67(0x1b5)]=![]);!(_0x315086[_0xadda67(0x1cd)](_0x3b5796[_0xadda67(0x1af)],_0x315086[_0xadda67(0x1ae)])||_0x315086[_0xadda67(0x1cd)](_0x3b5796[_0xadda67(0x1af)],_0x315086[_0xadda67(0x1bd)]))&&(logger['warn'](_0x315086['ouYJc']),global[_0xadda67(0x1b5)]=![]);!(_0x315086[_0xadda67(0x1bb)](_0x3b5796['browser_version'],_0x315086['egTSy'])||_0x315086['NxPGh'](_0x3b5796[_0xadda67(0x1a6)],0x5e))&&(logger[_0xadda67(0x1a1)](_0x315086['EVJbS']),global[_0xadda67(0x1b5)]=![]);!_0x315086[_0xadda67(0x1a8)](isUndefined,_0x3b5796['deviceName'])&&(logger[_0xadda67(0x1a1)](_0x315086[_0xadda67(0x1c8)]),global['accessibilityPlatform']=![]);if(!global[_0xadda67(0x1b5)]){_0x3b5796[_0x315086['SXNmb']]=![];const _0x949b58=_0x315086[_0xadda67(0x1c6)](_0x47cca0,_0x315086[_0xadda67(0x190)](encodeURIComponent,JSON[_0xadda67(0x187)](_0x3b5796)));_0x5d1fb9&&(_0x5d1fb9[_0xadda67(0x1b4)][_0xadda67(0x1db)][_0xadda67(0x1d7)]['use'][_0xadda67(0x1b0)]['wsEndpoint']=_0x949b58);}}}catch(_0x6ba1f8){logger['debug']('Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20'+util[_0xadda67(0x1e2)](_0x6ba1f8));}};
|
|
1
|
+
const a32_0x45de7a=a32_0x2007;(function(_0x2c92ce,_0x371c3a){const _0x1c72e8=a32_0x2007,_0x2c9044=_0x2c92ce();while(!![]){try{const _0x8309c6=-parseInt(_0x1c72e8(0x130))/0x1*(-parseInt(_0x1c72e8(0xf7))/0x2)+parseInt(_0x1c72e8(0x111))/0x3+-parseInt(_0x1c72e8(0x13b))/0x4+-parseInt(_0x1c72e8(0x11a))/0x5*(parseInt(_0x1c72e8(0x134))/0x6)+-parseInt(_0x1c72e8(0x140))/0x7+parseInt(_0x1c72e8(0x14c))/0x8+parseInt(_0x1c72e8(0x119))/0x9;if(_0x8309c6===_0x371c3a)break;else _0x2c9044['push'](_0x2c9044['shift']());}catch(_0x4925b2){_0x2c9044['push'](_0x2c9044['shift']());}}}(a32_0x6f59,0xec914));const util=require(a32_0x45de7a(0x143)),logger=require(a32_0x45de7a(0x10f))[a32_0x45de7a(0x133)],{isAccessibilityAutomationSession}=require('../../helpers/accessibility-automation/helper'),{isUndefined}=require('../../helpers/helper'),scripts=require('../../helpers/accessibility-automation/scripts');function a32_0x6f59(){const _0x506a10=['testInfo','stringify','playwright-chromium','parse','TLHNz','PfbfK','wcagVersion','OFaCS','accessibilityOptions.includeIssueType.needsReview','ALaLh','ELEDB','needsReview','accessibilityOptions.scannerVersion','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','name','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','browserName','../../helpers/logger','tJyQH','282756vJiVxH','CJUkJ','uhuWG','rWxun','WebDriver','browserStackExecuteDriver','lmzIH','accessibilityOptions.authToken','29620854qlEMNZ','608315QoIJcT','DQGKP','connectOptions','deviceName','constructor','setAccessibilityCapabilities','BS_A11Y_JWT','SckoS','NihtI','tWqkR','format','scannerVersion','use','gyQNT','currentTest','error','nmeDH','browserstack.accessibility','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','chrome','getAccessibilityResultsSummary','zVkEp','171624VRCHkq','fVRUB','browser','winstonLogger','66jnqcTH','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','includeIssueType','FOaKM','replace','nEHGn','accessibilityOptions.includeIssueType.bestPractice','2504076IwuGBm','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','XlJkF','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','lHXfx','10553557SGJfzO','cOqQm','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','util','project','ssAHR','getAccessibilityResults','wsEndpoint','QibKU','IXora','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','warn','5697896YXnDpK','accessibilityOptions.wcagVersion','(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','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','bstackSdkArgs','fFxNr','jCXjl','gzwoa','browser_version','debug','evaluate','yqAhv','vaNup','latest','env','XMoCz','performScan','executeAsyncScript','browserStackEvaluate','4GhQDTD','Playwright','yDXvu','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','gyyiv','accessibilityOptions','accessibilityPlatform'];a32_0x6f59=function(){return _0x506a10;};return a32_0x6f59();}function a32_0x2007(_0x2e00b1,_0x1af015){const _0x6f59a9=a32_0x6f59();return a32_0x2007=function(_0x20077f,_0x59e607){_0x20077f=_0x20077f-0xe5;let _0x258cb1=_0x6f59a9[_0x20077f];return _0x258cb1;},a32_0x2007(_0x2e00b1,_0x1af015);}exports['browserStackEvaluate']=async(_0x5193e5,_0x4f2b9b,_0x328129={})=>{const _0x17dea3=a32_0x45de7a,_0x9ee5b7={};_0x9ee5b7['leBMc']='bstackSdkArgs';const _0x261110=_0x9ee5b7;return await _0x5193e5[_0x17dea3(0xee)](_0x17dea3(0xe6)+_0x4f2b9b[_0x17dea3(0x138)](/arguments/g,_0x261110['leBMc'])+_0x17dea3(0xe7)+JSON[_0x17dea3(0xff)](_0x328129)+')');},exports[a32_0x45de7a(0x116)]=async(_0x3e4068,_0x3efc76,_0x38bb92={})=>{const _0x562792=a32_0x45de7a,_0x151db4={};_0x151db4[_0x562792(0x148)]=function(_0x4be9f2,_0x4891ce){return _0x4be9f2===_0x4891ce;},_0x151db4[_0x562792(0xeb)]=_0x562792(0x115),_0x151db4[_0x562792(0x102)]=_0x562792(0xf8),_0x151db4[_0x562792(0x123)]=_0x562792(0xe8);const _0x5270da=_0x151db4;if(_0x5270da[_0x562792(0x148)](_0x3e4068[_0x562792(0x11e)][_0x562792(0x10c)],_0x5270da[_0x562792(0xeb)]))return await _0x3e4068[_0x562792(0xf5)](_0x3efc76,_0x38bb92);else{if(_0x5270da['QibKU'](_0x3e4068['constructor'][_0x562792(0x10c)],_0x5270da[_0x562792(0x102)]))return await _0x3e4068['executeScript']('(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'+_0x3efc76[_0x562792(0x138)](/arguments/g,_0x5270da[_0x562792(0x123)])+_0x562792(0x10b)+JSON[_0x562792(0xff)](_0x38bb92)+')');}},exports[a32_0x45de7a(0x11f)]=async _0x2d8427=>{const _0x27eb57=a32_0x45de7a,_0x503e31={};_0x503e31['Bndnp']=_0x27eb57(0xe5),_0x503e31[_0x27eb57(0x141)]='accessibilityOptions.scannerProcessingTimeout',_0x503e31[_0x27eb57(0x103)]=_0x27eb57(0x13a),_0x503e31['IXora']=_0x27eb57(0x106),_0x503e31[_0x27eb57(0x145)]=_0x27eb57(0x118),_0x503e31['tJyQH']=_0x27eb57(0x10a);const _0xbd48e7=_0x503e31;_0x2d8427[_0x27eb57(0xfc)]&&(_0x2d8427[_0x27eb57(0xfc)][_0x27eb57(0x104)]&&(_0x2d8427[_0xbd48e7['Bndnp']]=_0x2d8427[_0x27eb57(0xfc)]['wcagVersion']),_0x2d8427[_0x27eb57(0xfc)]['scannerProcessingTimeout']&&(_0x2d8427[_0xbd48e7[_0x27eb57(0x141)]]=_0x2d8427['accessibilityOptions']['scannerProcessingTimeout']),_0x2d8427[_0x27eb57(0xfc)][_0x27eb57(0x136)]&&(_0x2d8427[_0xbd48e7[_0x27eb57(0x103)]]=_0x2d8427[_0x27eb57(0xfc)][_0x27eb57(0x136)]['bestPractice'],_0x2d8427[_0xbd48e7[_0x27eb57(0x149)]]=_0x2d8427[_0x27eb57(0xfc)]['includeIssueType'][_0x27eb57(0x109)]));const _0x2662f6=JSON[_0x27eb57(0x101)](process[_0x27eb57(0xf2)][_0x27eb57(0x135)])[_0x27eb57(0x125)];_0x2d8427[_0xbd48e7[_0x27eb57(0x145)]]=process[_0x27eb57(0xf2)][_0x27eb57(0x120)],_0x2d8427[_0xbd48e7[_0x27eb57(0x110)]]=_0x2662f6,delete _0x2d8427[_0x27eb57(0xfc)];},exports[a32_0x45de7a(0x146)]=async _0x5eba9=>{const _0x50a5af=a32_0x45de7a,_0x5c9d37={};_0x5c9d37[_0x50a5af(0x107)]='No\x20accessibility\x20results\x20were\x20found.',_0x5c9d37['nEHGn']=_0x50a5af(0xfa);const _0x43f4a9=_0x5c9d37;if(global[_0x50a5af(0xfd)])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x5eba9,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x5eba9,scripts.getResults);return res;}catch{return logger[_0x50a5af(0x129)](_0x43f4a9[_0x50a5af(0x107)]),[];}else return logger['warn'](_0x43f4a9[_0x50a5af(0x139)]),[];},exports[a32_0x45de7a(0xf4)]=async(_0x40e2d9,_0x46ce3f='')=>{const _0x1f7582=a32_0x45de7a;if(global[_0x1f7582(0xfd)]){const _0x21f388={};return _0x21f388['method']=_0x46ce3f,await exports[_0x1f7582(0xf6)](_0x40e2d9,scripts[_0x1f7582(0xf4)],_0x21f388);}},exports[a32_0x45de7a(0x12e)]=async _0x3cd15e=>{const _0xd595b6=a32_0x45de7a,_0x335530={};_0x335530[_0xd595b6(0x105)]='No\x20summaryResults\x20found.',_0x335530[_0xd595b6(0x108)]=_0xd595b6(0x12c);const _0x40968a=_0x335530;if(global[_0xd595b6(0xfd)])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x3cd15e,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x3cd15e,scripts.getResultsSummary);return summaryResults;}catch{return logger[_0xd595b6(0xed)](_0x40968a[_0xd595b6(0x105)]),{};}else return logger[_0xd595b6(0x14b)](_0x40968a[_0xd595b6(0x108)]),{};},exports['platformValidation']=async _0x29bdad=>{const _0x924b43=a32_0x45de7a,_0x1d6784={'JCkbA':function(_0x3d13c9,_0x14bc44){return _0x3d13c9!==_0x14bc44;},'uhuWG':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','fVRUB':function(_0x143d8b,_0x56a76b){return _0x143d8b===_0x56a76b;},'XMoCz':_0x924b43(0x12d),'nmeDH':function(_0x44cabb,_0x5ea895){return _0x44cabb===_0x5ea895;},'DQGKP':_0x924b43(0x100),'yDXvu':_0x924b43(0x10d),'fFxNr':function(_0x5f1936,_0x4e7ec0){return _0x5f1936(_0x4e7ec0);},'vaNup':_0x924b43(0xf1),'SckoS':function(_0x38a0bd,_0x5c86b5){return _0x38a0bd>_0x5c86b5;},'Efvzh':_0x924b43(0x13c)};try{if(!_0x1d6784['JCkbA'](_0x29bdad[_0x924b43(0x11d)],''))return logger['warn'](_0x1d6784[_0x924b43(0x113)]),![];const _0x4ab053=_0x29bdad[_0x924b43(0x132)];if(!(_0x1d6784[_0x924b43(0x131)](_0x4ab053,_0x1d6784[_0x924b43(0xf3)])||_0x1d6784[_0x924b43(0x12a)](_0x4ab053,_0x1d6784[_0x924b43(0x11b)])))return logger[_0x924b43(0x14b)](_0x1d6784[_0x924b43(0xf9)]),![];const _0x1c5002=_0x1d6784[_0x924b43(0xe9)](parseInt,_0x29bdad[_0x924b43(0xec)]);if(!(_0x1d6784['fVRUB'](_0x1c5002,_0x1d6784[_0x924b43(0xf0)])||_0x1d6784[_0x924b43(0x121)](_0x1c5002,0x5e)))return logger[_0x924b43(0x14b)](_0x1d6784['Efvzh']),![];}catch(_0x3e5318){logger[_0x924b43(0xed)](_0x924b43(0x142)+util['format'](_0x3e5318));}return!![];},exports['processAccessibilityCaps']=(_0x124934,_0x1d710d,_0x34616d)=>{const _0xae5475=a32_0x45de7a,_0x53378b={'yqAhv':function(_0x31bc65){return _0x31bc65();},'jCXjl':_0xae5475(0x12b),'lmzIH':function(_0x4d7491,_0x2a69d8){return _0x4d7491===_0x2a69d8;},'FOaKM':_0xae5475(0x12d),'gyQNT':'playwright-chromium','rWxun':_0xae5475(0x10d),'gyyiv':_0xae5475(0xf1),'XlJkF':function(_0x2bf8ea,_0x23b2e0){return _0x2bf8ea>_0x23b2e0;},'zVkEp':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','lHXfx':function(_0x55a3b5,_0x4e855f){return _0x55a3b5(_0x4e855f);},'NihtI':_0xae5475(0x14a),'CJUkJ':function(_0x4dc3b1,_0x502305){return _0x4dc3b1+_0x502305;}};try{if(_0x53378b[_0xae5475(0xef)](isAccessibilityAutomationSession)){global['accessibilityPlatform']=!![];!_0x124934[_0x53378b[_0xae5475(0xea)]]&&(global['accessibilityPlatform']=![]);!(_0x53378b[_0xae5475(0x117)](_0x124934[_0xae5475(0x10e)],_0x53378b[_0xae5475(0x137)])||_0x53378b[_0xae5475(0x117)](_0x124934[_0xae5475(0x10e)],_0x53378b[_0xae5475(0x127)]))&&(logger['warn'](_0x53378b[_0xae5475(0x114)]),global[_0xae5475(0xfd)]=![]);!(_0x53378b['lmzIH'](_0x124934[_0xae5475(0xec)],_0x53378b[_0xae5475(0xfb)])||_0x53378b[_0xae5475(0x13d)](_0x124934[_0xae5475(0xec)],0x5e))&&(logger['warn'](_0x53378b[_0xae5475(0x12f)]),global[_0xae5475(0xfd)]=![]);!_0x53378b['lHXfx'](isUndefined,_0x124934[_0xae5475(0x11d)])&&(logger[_0xae5475(0x14b)](_0x53378b[_0xae5475(0x122)]),global[_0xae5475(0xfd)]=![]);if(!global['accessibilityPlatform']){_0x124934[_0x53378b[_0xae5475(0xea)]]=![];const _0x2d0b38=_0x53378b[_0xae5475(0x112)](_0x1d710d,_0x53378b[_0xae5475(0x13f)](encodeURIComponent,JSON[_0xae5475(0xff)](_0x124934)));_0x34616d&&(_0x34616d[_0xae5475(0x128)][_0xae5475(0xfe)][_0xae5475(0x144)][_0xae5475(0x126)][_0xae5475(0x11c)][_0xae5475(0x147)]=_0x2d0b38);}}}catch(_0x18019e){logger[_0xae5475(0xed)](_0xae5475(0x13e)+util[_0xae5475(0x124)](_0x18019e));}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a33_0x5eb3e2=a33_0xfaa8;function a33_0x59f1(){const _0x2426bd=['accessibility','initialize','Error\x20in\x20running\x20user\x20global\x20setup\x20for\x20playwright','21PsbJIP','sHMYs','writeFileSync','jLszi','cZNpU','map','iXIUT','child_process','Deleting\x20','filter','config','kAIpp','5065380iHfunv','ivtKb','resolve','testMatch','existsSync','xCcVY','cwd','vwTwy','--grep','XJZAZ','Error\x20in\x20deleting\x20playwright\x20results','bpiRo','yKDye','ApbrP','info','debug','WyWkv','Adding\x20browserstack\x20configs\x20to\x20setup\x20for\x20Observability','SWEVP','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','skipSessionStatus','markSDKSetupComplete','1873388ZzHZUu','error','isFalse','\x0a\x0aconst\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0amodule.exports\x20=\x20modifyPWConfig();\x0a','playwright-browserstack-sdk.config.js','readFileSync','assign','isUndefined','UxLmz','1229SByPMz','./reporter/reporter.js','YlZFQ','filterBrowserstackConfig','unlinkSync','qrcna','LWfQr','inherit','resolvedConfigFile','NWowC','BrowserStack\x20config\x20file\x20not\x20found.','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','BROWSERSTACK_TEST_ACCESSIBILITY_YML','respectGitIgnore','BROWSERSTACK_TEST_OBSERVABILITY','umzXl','--config=','CmgsF','close','qjJTN','BROWSERSTACK_RERUN_TESTS','--config','win32','string','Wolzb','playwright','accessibilityOptions','finalExecution','WWMSD','40bSOAFF','PLAYWRIGHT','slice','exports','\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();','viGHg','kmiLq','testDir','playwright-browserstack-sdk.config.cjs','apply','YqTzf','Playwright\x20process\x20exited\x20with\x20code\x20','nqNFC','skipSessionName','../../helpers/test-observability/utils','tvuxx','concat','AmdpW','DdUWB','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','./globalSetup.js','--disable-browserstack-automation','split','Getting\x20your\x20playwright\x20config\x20from\x20','join','LeZlg','npx','iresC','vCsrN','1828608jAfaGm','env','getProxyUrl','false','EJBsR','cliConfig','../../helpers/BrowserStackSetup','eHLrm','533624xlwoOu','object','_internal','wRZrs','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','test','XoTMx','1240qPiIlb','testObservability','testContextOptions','startsWith','path','getConfigPath','rOlcA','IJPZy','Error\x20in\x20generating\x20parallellised\x20config\x20for\x20playwright:\x20','vBGun','1724gVoDZJ','gqVbd','util','requirePWModule','nGXsr','testIgnore','platform','tVEzI','../../helpers/helper','exitCode','7215678QmgvAb','push','../../helpers/test-observability/constants','CmLie','reporter','nVene','indexOf','project','BROWSERSTACK_PW_CONFIG_DIR','../../helpers/testhub/utils','../utils/constants','NzTzc','Error\x20in\x20getting\x20funnel\x20data\x20results','BROWSERSTACK_AUTOMATION','qtSDn','XHklY','stop','isTrue','xyvVJ','YZjsq','launchBuild','get','PACKAGE_TYPE','cVAms','argv','UUqrC','jSqQV','--disable-test-observability','true','BgSDD','parse','pIteU','gdArZ','vSaCA','default','homedir','automation','CxcLo','mEkyc','dirname','XSkZN','clearTempPWConfig','BROWSERSTACK_RERUN','ELAyq','ipHeO','.browserstack','utJjk','globalSetup','./accessibility-helper','3800LzbnOE'];a33_0x59f1=function(){return _0x2426bd;};return a33_0x59f1();}(function(_0x50b291,_0x3c030b){const _0x2a0529=a33_0xfaa8,_0x2e4a2e=_0x50b291();while(!![]){try{const _0x2d3368=-parseInt(_0x2a0529(0x182))/0x1*(parseInt(_0x2a0529(0x118))/0x2)+-parseInt(_0x2a0529(0x1bc))/0x3+parseInt(_0x2a0529(0x153))/0x4*(-parseInt(_0x2a0529(0x10e))/0x5)+parseInt(_0x2a0529(0x163))/0x6+parseInt(_0x2a0529(0x157))/0x7*(parseInt(_0x2a0529(0x107))/0x8)+parseInt(_0x2a0529(0x122))/0x9+parseInt(_0x2a0529(0x19f))/0xa*(parseInt(_0x2a0529(0x179))/0xb);if(_0x2d3368===_0x3c030b)break;else _0x2e4a2e['push'](_0x2e4a2e['shift']());}catch(_0x55b28c){_0x2e4a2e['push'](_0x2e4a2e['shift']());}}}(a33_0x59f1,0x980bb));const fs=require('fs'),path=require(a33_0x5eb3e2(0x112)),{spawn}=require(a33_0x5eb3e2(0x15e)),{format}=require(a33_0x5eb3e2(0x11a)),logger=require('../../helpers/logger')['winstonLogger'],{default:BrowserStackSetup}=require(a33_0x5eb3e2(0x105)),helper=require(a33_0x5eb3e2(0x120)),constants=require(a33_0x5eb3e2(0x12c)),{FRAMEWORKS}=require(a33_0x5eb3e2(0x124)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require('./reporter/pwUtils'),{CrashReporter}=require('../../helpers/test-observability/error-handler'),{getFrameworkVersion}=require(a33_0x5eb3e2(0x1ad)),{checkAccessibilityPlatformConfig}=require('../../helpers/accessibility-automation/helper'),{setAccessibilityCapabilities}=require(a33_0x5eb3e2(0x152)),TestHubHandler=require('../../helpers/testhub/testhubHandler'),{shouldProcessEventForTesthub}=require(a33_0x5eb3e2(0x12b));async function requireOrImportDefaultObject(_0x577012){const _0x42e042=a33_0x5eb3e2,_0x4681f2={'IJPZy':function(_0x41d35d){return _0x41d35d();},'tVEzI':function(_0x147072,_0x22cb20){return _0x147072(_0x22cb20);},'xmAQK':function(_0x1224e7,_0x13986a){return _0x1224e7===_0x13986a;},'ugdcj':_0x42e042(0x108),'qrcna':function(_0x54d8c3,_0xf35138){return _0x54d8c3 in _0xf35138;},'WyWkv':_0x42e042(0x144)},{requireOrImport:_0x50b7e4}=helper[_0x42e042(0x11b)][_0x42e042(0x1a8)](null,_0x4681f2[_0x42e042(0x115)](getTransformPath));let _0x51465b=await _0x4681f2[_0x42e042(0x11f)](_0x50b7e4,_0x577012);return _0x51465b&&_0x4681f2['xmAQK'](typeof _0x51465b,_0x4681f2['ugdcj'])&&_0x4681f2[_0x42e042(0x187)](_0x4681f2[_0x42e042(0x173)],_0x51465b)&&(_0x51465b=_0x51465b[_0x4681f2[_0x42e042(0x173)]]),_0x51465b;}const getUserPlaywrightConfig=async(_0x571108,_0x558864)=>{const _0x4ee703=a33_0x5eb3e2,_0x4cccbb={'wWEMx':function(_0x4787fd){return _0x4787fd();},'AmdpW':function(_0xd7e884,_0x9b596){return _0xd7e884(_0x9b596);},'vwTwy':function(_0x370e4b,_0x171588){return _0x370e4b(_0x171588);},'BHlCl':_0x4ee703(0x18a),'Wolzb':function(_0x4bd52e,_0x110a2d){return _0x4bd52e+_0x110a2d;},'xyvVJ':'Error\x20in\x20importing\x20your\x20playwright\x20config:\x20','gdArZ':function(_0x5989b0,_0x42f184){return _0x5989b0(_0x42f184);},'jSqQV':_0x4ee703(0x10b),'UfjbE':_0x4ee703(0x192)},_0x196b87=!helper[_0x4ee703(0x180)](_0x571108[_0x4ee703(0x161)]),_0x99ed24=_0x196b87?path[_0x4ee703(0x165)](process[_0x4ee703(0x169)](),_0x571108[_0x4ee703(0x161)]):process[_0x4ee703(0x169)](),{resolveConfigFile:_0x5779cb,resolveConfigLocation:_0x5395b0}=helper[_0x4ee703(0x11b)][_0x4ee703(0x1a8)](null,_0x4cccbb['wWEMx'](getConfigLoaderPath)),_0xa2f36=_0x5779cb?_0x4cccbb[_0x4ee703(0x1b0)](_0x5779cb,_0x99ed24):helper['nestedKeyValue'](_0x4cccbb[_0x4ee703(0x16a)](_0x5395b0,_0x99ed24),[_0x4cccbb['BHlCl']]);let _0x144f0c={};if(_0xa2f36){logger[_0x4ee703(0x171)](_0x4ee703(0x1b6)+_0xa2f36);try{_0x144f0c=await _0x4cccbb['vwTwy'](requireOrImportDefaultObject,_0xa2f36);}catch(_0x52c010){return logger['error'](_0x4cccbb[_0x4ee703(0x19a)](_0x4cccbb[_0x4ee703(0x134)],_0x4cccbb[_0x4ee703(0x142)](format,_0x52c010))),null;}}else logger[_0x4ee703(0x171)](_0x4cccbb[_0x4ee703(0x13c)]);if(_0x196b87){const _0x20c1db=_0x558864['findIndex'](_0x4dd24f=>_0x4dd24f===_0x4ee703(0x197)||_0x4dd24f==='-c'||_0x4dd24f[_0x4ee703(0x111)](_0x4ee703(0x192)));_0x558864['splice'](_0x20c1db,_0x558864[_0x20c1db][_0x4ee703(0x111)](_0x4cccbb['UfjbE'])?0x1:0x2);}const _0x4e2f83={};return _0x4e2f83[_0x4ee703(0x112)]=_0xa2f36,_0x4e2f83[_0x4ee703(0x161)]=_0x144f0c,_0x4e2f83;},setGlobalSetup=(_0x348c53,_0x3fc87b)=>{const _0x53927f=a33_0x5eb3e2,_0x14df96={'YZjsq':'globalSetup','rNRXr':'Can\x27t\x20get\x20user\x20defined\x20global\x20setup\x20file','sHMYs':function(_0x18a087,_0x3ca6bb){return _0x18a087+_0x3ca6bb;},'yKDye':_0x53927f(0x156),'OvQTd':function(_0x3417a9,_0x587ee7){return _0x3417a9(_0x587ee7);},'XSkZN':_0x53927f(0x1b3)};if(!_0x348c53)return![];try{if(_0x348c53['globalSetup']){let _0x1934d3;const _0xdaad6f=path[_0x53927f(0x165)](_0x3fc87b,_0x348c53[_0x14df96[_0x53927f(0x135)]]);if(fs[_0x53927f(0x167)](_0xdaad6f))_0x1934d3=_0xdaad6f;else{const _0x1cf174={};_0x1cf174['paths']=[_0x3fc87b],_0x1934d3=require[_0x53927f(0x165)](_0x348c53[_0x14df96['YZjsq']],_0x1cf174);}if(!_0x1934d3)throw new Error(_0x14df96['rNRXr']);process[_0x53927f(0x1bd)][_0x53927f(0x18d)]=_0x1934d3;}}catch(_0x20c734){logger['error'](_0x14df96[_0x53927f(0x158)](_0x14df96[_0x53927f(0x16f)],_0x14df96['OvQTd'](format,_0x20c734)));}return _0x348c53[_0x53927f(0x151)]=require[_0x53927f(0x165)](_0x14df96[_0x53927f(0x14a)]),!![];},addReporter=_0x492dd1=>{const _0x6c26a8=a33_0x5eb3e2,_0x22f050={};_0x22f050[_0x6c26a8(0x164)]=_0x6c26a8(0x183),_0x22f050['XJZAZ']=_0x6c26a8(0x126),_0x22f050[_0x6c26a8(0x1a4)]=function(_0x517df5,_0x1cfdbc){return _0x517df5===_0x1cfdbc;},_0x22f050[_0x6c26a8(0x131)]=_0x6c26a8(0x199),_0x22f050[_0x6c26a8(0x141)]='object';const _0x4e63a0=_0x22f050,_0x52d8f0=path['join'](__dirname,_0x4e63a0[_0x6c26a8(0x164)]),_0x1d5678=[_0x52d8f0];if(helper['isUndefined'](_0x492dd1[_0x4e63a0['XJZAZ']]))_0x492dd1[_0x4e63a0[_0x6c26a8(0x16c)]]=[_0x1d5678];else{if(_0x4e63a0[_0x6c26a8(0x1a4)](typeof _0x492dd1[_0x4e63a0['XJZAZ']],_0x4e63a0[_0x6c26a8(0x131)]))_0x492dd1[_0x4e63a0['XJZAZ']]=[[_0x492dd1[_0x4e63a0[_0x6c26a8(0x16c)]]],_0x1d5678];else _0x4e63a0[_0x6c26a8(0x1a4)](typeof _0x492dd1[_0x4e63a0['XJZAZ']],_0x4e63a0[_0x6c26a8(0x141)])&&_0x492dd1[_0x4e63a0[_0x6c26a8(0x16c)]][_0x6c26a8(0x123)](_0x1d5678);}},handleO11yRerun=_0x448c51=>{const _0x4ba2cc=a33_0x5eb3e2,_0x42bc03={};_0x42bc03['ZZVgd']=function(_0x4f7c9b,_0x50f281){return _0x4f7c9b!==_0x50f281;},_0x42bc03[_0x4ba2cc(0x14d)]='null',_0x42bc03['vCsrN']=_0x4ba2cc(0x16b);const _0x3abfb6=_0x42bc03,_0x4ee71f=helper[_0x4ba2cc(0x133)](process[_0x4ba2cc(0x1bd)][_0x4ba2cc(0x14c)]);if(_0x4ee71f){const _0x2c555e=process[_0x4ba2cc(0x1bd)][_0x4ba2cc(0x196)],_0x1efc1d=[];if(_0x3abfb6['ZZVgd'](_0x2c555e,_0x3abfb6['ELAyq'])&&!helper[_0x4ba2cc(0x180)](_0x2c555e)){_0x2c555e[_0x4ba2cc(0x1b5)](',')[_0x4ba2cc(0x15c)](_0x494817=>{const _0x4df141=_0x4ba2cc;_0x1efc1d[_0x4df141(0x123)]('('+_0x494817['trim']()+')');});const _0x3bcca0='^'+_0x1efc1d[_0x4ba2cc(0x1b7)]('|')+'$';_0x448c51[_0x4ba2cc(0x123)](_0x3abfb6[_0x4ba2cc(0x1bb)],_0x3bcca0);}}},spawnOriginalProcess=_0x452e0b=>{const _0x438515=a33_0x5eb3e2,_0x11ea56={'SWEVP':function(_0x2f10c0,_0x2d0e52,_0x491e61,_0x240c65){return _0x2f10c0(_0x2d0e52,_0x491e61,_0x240c65);},'YlZFQ':_0x438515(0x1b9),'DdUWB':_0x438515(0x19b),'CmgsF':function(_0x35a1b0,_0x42f463){return _0x35a1b0===_0x42f463;},'kmiLq':_0x438515(0x198),'utJjk':_0x438515(0x189)};_0x11ea56[_0x438515(0x175)](spawn,_0x11ea56[_0x438515(0x184)],[_0x11ea56[_0x438515(0x1b1)],..._0x452e0b[_0x438515(0x1a1)](0x1)],{'shell':_0x11ea56[_0x438515(0x193)](process[_0x438515(0x11e)],_0x11ea56[_0x438515(0x1a5)]),'stdio':_0x11ea56[_0x438515(0x150)],'cwd':process[_0x438515(0x169)]()});},isTestCommand=(_0x31d9f4,_0x308bc4)=>{const _0x24de02=a33_0x5eb3e2,_0x222bb4={};_0x222bb4['qjJTN']=function(_0x2444b0,_0x19167a){return _0x2444b0>_0x19167a;},_0x222bb4[_0x24de02(0x162)]=function(_0x3de458,_0x1cfb07){return _0x3de458===_0x1cfb07;},_0x222bb4[_0x24de02(0x191)]='test';const _0x372048=_0x222bb4;if(_0x372048[_0x24de02(0x195)](_0x308bc4['length'],0x1)&&_0x372048[_0x24de02(0x162)](_0x308bc4[0x1],_0x372048['umzXl']))return!![];return![];},initO11yCrashReporter=(_0x131b2d,_0x5dcf76)=>{const _0x2c379e=a33_0x5eb3e2,_0x3e6f7a={'ApbrP':function(_0x1330bc,_0x978a4d){return _0x1330bc(_0x978a4d);}},_0x55cd6a={'frameworkName':FRAMEWORKS[_0x2c379e(0x1a0)],'frameworkVersion':_0x3e6f7a[_0x2c379e(0x170)](getFrameworkVersion,FRAMEWORKS[_0x2c379e(0x1a0)])};CrashReporter['initialize'](_0x55cd6a,_0x131b2d,_0x5dcf76);};function a33_0xfaa8(_0x1a90f7,_0x482760){const _0x59f191=a33_0x59f1();return a33_0xfaa8=function(_0xfaa8bf,_0x608cc6){_0xfaa8bf=_0xfaa8bf-0x105;let _0x288fa7=_0x59f191[_0xfaa8bf];return _0x288fa7;},a33_0xfaa8(_0x1a90f7,_0x482760);}async function run(_0x47b6a0,_0x208213){const _0x18f764=a33_0x5eb3e2,_0x2755fb={'WWMSD':_0x18f764(0x14f),'xCcVY':'pw_result.json','jLszi':function(_0x18c351,_0x4b22bf){return _0x18c351+_0x4b22bf;},'ipHeO':_0x18f764(0x12e),'ePwGP':'7|8|1|2|3|0|5|6|4','iresC':function(_0x19e103){return _0x19e103();},'nqNFC':'Error\x20in\x20closing\x20playwright','krWMs':_0x18f764(0x1b4),'NWowC':_0x18f764(0x1bf),'BgSDD':'--disable-test-observability','wpwKV':function(_0x3bd5d,_0x2ea105){return _0x3bd5d>=_0x2ea105;},'tvuxx':_0x18f764(0x16d),'vBGun':function(_0x3027f3,_0x2fbef3,_0x1016ab){return _0x3027f3(_0x2fbef3,_0x1016ab);},'nGXsr':function(_0x15f4eb,_0x571e65){return _0x15f4eb(_0x571e65);},'CxcLo':_0x18f764(0x18c),'cVAms':_0x18f764(0x146),'KWiQK':function(_0x297286,_0x153164){return _0x297286!=_0x153164;},'eQuRO':function(_0x421b25,_0x344262){return _0x421b25(_0x344262);},'wRZrs':function(_0x340264,_0x520ebb){return _0x340264(_0x520ebb);},'NzTzc':_0x18f764(0x174),'qtSDn':function(_0x341981,_0x383c32){return _0x341981(_0x383c32);},'LWfQr':function(_0x5a8121,_0x2a69cc){return _0x5a8121===_0x2a69cc;},'mEkyc':_0x18f764(0x13e),'XoTMx':function(_0x231252,_0x257655){return _0x231252(_0x257655);},'fRsQJ':function(_0x3bfe67,_0x4074ca){return _0x3bfe67(_0x4074ca);},'vSaCA':'browserstackSetupConfig.json','bpiRo':function(_0x4f6b73){return _0x4f6b73();},'gqVbd':_0x18f764(0x1a6),'LeZlg':_0x18f764(0x166),'iXIUT':_0x18f764(0x11d),'nVene':_0x18f764(0x116),'tKVXT':_0x18f764(0x1a7),'cZNpU':_0x18f764(0x17d),'UUqrC':function(_0x275837,_0x422088){return _0x275837>_0x422088;},'CmLie':function(_0x65063d,_0x5af8fc){return _0x65063d+_0x5af8fc;},'eHLrm':function(_0x568299,_0x2d7397,_0x275285,_0x2f368c){return _0x568299(_0x2d7397,_0x275285,_0x2f368c);},'EZMXf':_0x18f764(0x1b9),'YqTzf':_0x18f764(0x19b),'UxLmz':_0x18f764(0x10c),'rOlcA':_0x18f764(0x197),'oSsXt':_0x18f764(0x198),'EJBsR':'inherit','ydHVN':_0x18f764(0x194)};!helper[_0x18f764(0x17b)](process[_0x18f764(0x1bd)][_0x18f764(0x12f)])&&(process[_0x18f764(0x1bd)][_0x18f764(0x12f)]=!![]);process[_0x18f764(0x13a)]['includes'](_0x2755fb['krWMs'])&&(process[_0x18f764(0x1bd)][_0x18f764(0x12f)]=_0x2755fb[_0x18f764(0x18b)],_0x208213=_0x208213['filter'](_0x486ce1=>_0x486ce1!==_0x18f764(0x1b4)));const _0x349968=_0x208213[_0x18f764(0x128)](_0x2755fb[_0x18f764(0x13f)]);_0x2755fb['wpwKV'](_0x349968,0x0)&&(process[_0x18f764(0x1bd)][_0x18f764(0x190)]=_0x2755fb[_0x18f764(0x18b)],_0x208213=_0x208213[_0x18f764(0x160)](_0xee9c5=>_0xee9c5!==_0x18f764(0x13d)));try{const _0x428e83=path['join'](helper['homedir'](),_0x2755fb[_0x18f764(0x19e)],_0x2755fb[_0x18f764(0x168)]);fs[_0x18f764(0x167)](_0x428e83)&&fs[_0x18f764(0x186)](_0x428e83);}catch(_0x22351b){logger[_0x18f764(0x172)](_0x2755fb[_0x18f764(0x15a)](_0x2755fb[_0x18f764(0x1ae)],_0x22351b));}if(!_0x2755fb[_0x18f764(0x117)](isTestCommand,_0x47b6a0,_0x208213)){_0x2755fb[_0x18f764(0x11c)](spawnOriginalProcess,_0x208213);return;}const _0x13a81c=new BrowserStackSetup(_0x47b6a0,FRAMEWORKS[_0x18f764(0x1a0)]);if(!_0x13a81c[_0x18f764(0x161)]){logger[_0x18f764(0x17a)](_0x2755fb[_0x18f764(0x147)]);return;}await _0x13a81c[_0x18f764(0x155)]();!helper['isUndefined'](_0x13a81c[_0x18f764(0x1c1)])&&_0x13a81c[_0x18f764(0x1c1)]['has'](_0x2755fb[_0x18f764(0x139)])&&(process[_0x18f764(0x1bd)]['BROWSERSTACK_AUTOMATION']=_0x13a81c[_0x18f764(0x1c1)][_0x18f764(0x137)](_0x2755fb['cVAms'])||!![]);_0x2755fb['KWiQK'](_0x13a81c[_0x18f764(0x161)]['testObservability'],null)&&!helper[_0x18f764(0x133)](process['env'][_0x18f764(0x190)])&&(process[_0x18f764(0x1bd)][_0x18f764(0x190)]=process[_0x18f764(0x1bd)][_0x18f764(0x190)]||_0x13a81c['config'][_0x18f764(0x10f)]);const _0x3497c9=!helper[_0x18f764(0x17b)](process[_0x18f764(0x1bd)][_0x18f764(0x190)]);let _0x1fc81e=![];_0x13a81c[_0x18f764(0x161)][_0x18f764(0x154)]&&(_0x1fc81e=!![],process[_0x18f764(0x1bd)][_0x18f764(0x18e)]=_0x13a81c[_0x18f764(0x161)][_0x18f764(0x154)]);_0x13a81c['config'][_0x18f764(0x19c)]&&(process[_0x18f764(0x1bd)][_0x18f764(0x176)]=JSON['stringify'](_0x13a81c[_0x18f764(0x161)][_0x18f764(0x19c)]));const _0x3f48b6=_0x208213[_0x18f764(0x1af)](),_0x37873d=await _0x2755fb[_0x18f764(0x117)](getUserPlaywrightConfig,_0x47b6a0,_0x208213);if(helper['isUndefined'](_0x37873d)){_0x2755fb['eQuRO'](spawnOriginalProcess,_0x3f48b6);return;}const _0x17b862={..._0x37873d[_0x18f764(0x161)]},_0x2970ec=_0x17b862,_0x392aa8=_0x37873d[_0x18f764(0x112)]?path['dirname'](_0x37873d[_0x18f764(0x112)]):process['cwd']();process['env'][_0x18f764(0x12a)]=_0x392aa8;if(!_0x2755fb['vBGun'](setGlobalSetup,_0x2970ec,_0x392aa8)){_0x2755fb[_0x18f764(0x10a)](spawnOriginalProcess,_0x3f48b6);return;}await TestHubHandler[_0x18f764(0x136)](FRAMEWORKS[_0x18f764(0x1a0)],_0x13a81c);_0x3497c9&&(logger[_0x18f764(0x171)](_0x2755fb[_0x18f764(0x12d)]),_0x2755fb[_0x18f764(0x117)](initO11yCrashReporter,_0x2970ec,_0x13a81c[_0x18f764(0x161)]),_0x2755fb[_0x18f764(0x10a)](handleO11yRerun,_0x208213));_0x2755fb[_0x18f764(0x1ba)](shouldProcessEventForTesthub)&&_0x2755fb[_0x18f764(0x130)](addReporter,_0x2970ec);let _0x42839d=_0x2755fb['LWfQr'](process[_0x18f764(0x1bd)][_0x18f764(0x18e)],_0x2755fb[_0x18f764(0x148)]);_0x42839d=_0x42839d||_0x2755fb[_0x18f764(0x10d)](checkAccessibilityPlatformConfig,_0x13a81c[_0x18f764(0x161)]),process[_0x18f764(0x1bd)][_0x18f764(0x18e)]=_0x42839d;_0x42839d&&_0x2755fb['fRsQJ'](setAccessibilityCapabilities,_0x13a81c[_0x18f764(0x161)]);const _0x152a91=path[_0x18f764(0x1b7)](_0x37873d[_0x18f764(0x112)]?path[_0x18f764(0x149)](_0x37873d[_0x18f764(0x112)]):process[_0x18f764(0x169)](),_0x2755fb[_0x18f764(0x143)]);fs[_0x18f764(0x159)](_0x152a91,helper['serializeToYamlString'](_0x13a81c[_0x18f764(0x161)])),process[_0x18f764(0x1bd)]['BROWSERSTACK_SETUP_CONFIG_PATH']=_0x152a91,helper[_0x18f764(0x14b)]();if(helper[_0x18f764(0x133)](process[_0x18f764(0x1bd)]['BROWSERSTACK_AUTOMATION'])){let _0x358c1b=[];try{const _0x2dd7b6=helper[_0x18f764(0x11b)][_0x18f764(0x1a8)](null,_0x2755fb[_0x18f764(0x16e)](getProjectUtilsPath)),_0x33ae52={};_0x33ae52['respectGitIgnore']=!![],_0x33ae52[_0x18f764(0x1a6)]='',_0x33ae52[_0x18f764(0x166)]='',_0x33ae52[_0x18f764(0x11d)]='';const _0x1ad8b6={};_0x1ad8b6[_0x18f764(0x18f)]=!![];const _0x574280={};_0x574280[_0x18f764(0x129)]=_0x33ae52,_0x574280[_0x18f764(0x109)]=_0x1ad8b6;let _0x2f6237=_0x574280;_0x2970ec[_0x2755fb[_0x18f764(0x119)]]&&(_0x2f6237[_0x18f764(0x129)][_0x2755fb['gqVbd']]=_0x2970ec[_0x2755fb[_0x18f764(0x119)]]),_0x2970ec[_0x2755fb[_0x18f764(0x1b8)]]&&(_0x2f6237[_0x18f764(0x129)][_0x2755fb[_0x18f764(0x1b8)]]=_0x2970ec[_0x2755fb['LeZlg']]),_0x2970ec[_0x2755fb[_0x18f764(0x15d)]]&&(_0x2f6237[_0x18f764(0x129)][_0x2755fb[_0x18f764(0x15d)]]=_0x2970ec[_0x2755fb['iXIUT']]),_0x2f6237=Object[_0x18f764(0x17f)](_0x2f6237,_0x2f6237[_0x18f764(0x129)]),_0x358c1b=await _0x2dd7b6['collectFilesForProject'](_0x2f6237);}catch(_0x47d72c){logger[_0x18f764(0x172)](_0x2755fb[_0x18f764(0x15a)](_0x2755fb[_0x18f764(0x127)],_0x2755fb[_0x18f764(0x11c)](format,_0x47d72c)));}}let _0x3854a7='';_0x2755fb['LWfQr'](helper['getPackageType'](),constants[_0x18f764(0x138)]['MODULE'])?_0x3854a7=_0x2755fb['tKVXT']:_0x3854a7=_0x2755fb[_0x18f764(0x15b)];const _0x44b5eb=path[_0x18f764(0x1b7)](_0x37873d[_0x18f764(0x112)]?path[_0x18f764(0x149)](_0x37873d[_0x18f764(0x112)]):process['cwd'](),_0x3854a7);let _0x28f95e=_0x37873d[_0x18f764(0x112)]?_0x37873d[_0x18f764(0x112)]:'';_0x28f95e=_0x2755fb[_0x18f764(0x13b)](_0x28f95e['length'],0x0)?path[_0x18f764(0x165)](_0x28f95e):'',process[_0x18f764(0x1bd)]['USER_CONFIG_DETAILS_PATH']=_0x28f95e;let _0x4402bf=_0x18f764(0x17c);const _0x22819f=helper[_0x18f764(0x1be)](_0x13a81c[_0x18f764(0x161)]);_0x22819f&&(_0x4402bf=_0x2755fb[_0x18f764(0x125)](_0x18f764(0x1b2)+_0x22819f+_0x18f764(0x1a3),_0x4402bf));helper[_0x18f764(0x185)]({},_0x208213),fs['writeFileSync'](_0x44b5eb,_0x4402bf),helper[_0x18f764(0x178)]();const _0x22c25a=_0x2755fb[_0x18f764(0x106)](spawn,_0x2755fb['EZMXf'],[_0x2755fb[_0x18f764(0x1a9)],_0x2755fb[_0x18f764(0x181)],_0x2755fb[_0x18f764(0x114)],_0x44b5eb,..._0x208213['slice'](0x2)],{'shell':_0x2755fb[_0x18f764(0x188)](process[_0x18f764(0x11e)],_0x2755fb['oSsXt']),'stdio':_0x2755fb[_0x18f764(0x1c0)],'cwd':process[_0x18f764(0x169)](),'env':Object[_0x18f764(0x17f)]({},process['env'],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x18f764(0x113)](_0x47b6a0),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x13a81c[_0x18f764(0x161)][_0x18f764(0x110)][_0x18f764(0x177)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x13a81c[_0x18f764(0x161)][_0x18f764(0x110)][_0x18f764(0x1ac)],'BROWSERSTACK_LOG_LEVEL':_0x13a81c[_0x18f764(0x161)]['logLevel']})}),_0x31eca2=()=>{const _0x5a581f=_0x18f764;try{const _0x391267=path[_0x5a581f(0x1b7)](helper[_0x5a581f(0x145)](),_0x2755fb[_0x5a581f(0x19e)],_0x2755fb['xCcVY']);if(fs['existsSync'](_0x391267)){let _0x339aa4=fs[_0x5a581f(0x17e)](_0x391267);_0x339aa4=JSON[_0x5a581f(0x140)](_0x339aa4),_0x13a81c['errorMessage']=_0x339aa4,fs[_0x5a581f(0x186)](_0x391267);}}catch(_0x1eac15){logger['debug'](_0x2755fb[_0x5a581f(0x15a)](_0x2755fb[_0x5a581f(0x14e)],_0x1eac15));}};_0x22c25a['on'](_0x2755fb['ydHVN'],async _0x56cfb5=>{const _0x389712=_0x18f764;try{const _0xe3d6cf=_0x2755fb['ePwGP']['split']('|');let _0x5e51ad=0x0;while(!![]){switch(_0xe3d6cf[_0x5e51ad++]){case'0':logger[_0x389712(0x171)](_0x389712(0x15f)+_0x44b5eb);continue;case'1':await helper[_0x389712(0x19d)](_0x13a81c);continue;case'2':process[_0x389712(0x121)]=_0x56cfb5;continue;case'3':logger['debug'](_0x389712(0x1aa)+_0x56cfb5);continue;case'4':fs[_0x389712(0x186)](_0x152a91);continue;case'5':fs[_0x389712(0x186)](_0x44b5eb);continue;case'6':logger[_0x389712(0x172)](_0x389712(0x15f)+_0x152a91);continue;case'7':_0x2755fb['iresC'](_0x31eca2);continue;case'8':await TestHubHandler[_0x389712(0x132)]();continue;}break;}}catch(_0x4117a3){logger[_0x389712(0x172)](_0x2755fb[_0x389712(0x15a)](_0x2755fb[_0x389712(0x1ab)],_0x4117a3));}});}module[a33_0x5eb3e2(0x1a2)]=run;
|
|
2
|
+
'use strict';const a33_0x5ec166=a33_0x4ae1;(function(_0x4bc737,_0x47e826){const _0x320ab7=a33_0x4ae1,_0x23c209=_0x4bc737();while(!![]){try{const _0x1ae44a=parseInt(_0x320ab7(0x219))/0x1*(-parseInt(_0x320ab7(0x1ee))/0x2)+parseInt(_0x320ab7(0x1a5))/0x3*(-parseInt(_0x320ab7(0x1b1))/0x4)+parseInt(_0x320ab7(0x1c0))/0x5*(parseInt(_0x320ab7(0x1dc))/0x6)+-parseInt(_0x320ab7(0x1db))/0x7*(-parseInt(_0x320ab7(0x23d))/0x8)+-parseInt(_0x320ab7(0x185))/0x9*(-parseInt(_0x320ab7(0x237))/0xa)+parseInt(_0x320ab7(0x1d4))/0xb*(parseInt(_0x320ab7(0x186))/0xc)+-parseInt(_0x320ab7(0x1a3))/0xd*(parseInt(_0x320ab7(0x23b))/0xe);if(_0x1ae44a===_0x47e826)break;else _0x23c209['push'](_0x23c209['shift']());}catch(_0x2c626b){_0x23c209['push'](_0x23c209['shift']());}}}(a33_0x20d1,0x495d9));const fs=require('fs'),path=require(a33_0x5ec166(0x1e3)),{spawn}=require(a33_0x5ec166(0x223)),{format}=require(a33_0x5ec166(0x1b2)),logger=require(a33_0x5ec166(0x1c5))[a33_0x5ec166(0x216)],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require(a33_0x5ec166(0x187)),constants=require(a33_0x5ec166(0x19b)),{FRAMEWORKS}=require(a33_0x5ec166(0x198)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require('./reporter/pwUtils'),{CrashReporter}=require(a33_0x5ec166(0x182)),{getFrameworkVersion}=require(a33_0x5ec166(0x23c)),{checkAccessibilityPlatformConfig}=require(a33_0x5ec166(0x224)),{setAccessibilityCapabilities}=require(a33_0x5ec166(0x183)),TestHubHandler=require(a33_0x5ec166(0x196)),{shouldProcessEventForTesthub}=require('../../helpers/testhub/utils');function a33_0x4ae1(_0x4170d3,_0x1e8528){const _0x20d1f0=a33_0x20d1();return a33_0x4ae1=function(_0x4ae153,_0x4dd76e){_0x4ae153=_0x4ae153-0x17b;let _0x4aa194=_0x20d1f0[_0x4ae153];return _0x4aa194;},a33_0x4ae1(_0x4170d3,_0x1e8528);}async function requireOrImportDefaultObject(_0x2e434d){const _0x34ecdb=a33_0x5ec166,_0x10056f={'NFnIl':function(_0xd8f3a2){return _0xd8f3a2();},'JPRnT':function(_0x37ec55,_0x19bba4){return _0x37ec55(_0x19bba4);},'todTz':function(_0x26b82c,_0x548c17){return _0x26b82c===_0x548c17;},'qvcRv':_0x34ecdb(0x214),'ojULd':function(_0xe8e2c1,_0x11ee1b){return _0xe8e2c1 in _0x11ee1b;},'izmIG':_0x34ecdb(0x1ef)},{requireOrImport:_0x1c4699}=helper['requirePWModule'][_0x34ecdb(0x1d7)](null,_0x10056f[_0x34ecdb(0x245)](getTransformPath));let _0x5749d7=await _0x10056f[_0x34ecdb(0x22d)](_0x1c4699,_0x2e434d);return _0x5749d7&&_0x10056f[_0x34ecdb(0x189)](typeof _0x5749d7,_0x10056f[_0x34ecdb(0x1b3)])&&_0x10056f[_0x34ecdb(0x1d8)](_0x10056f[_0x34ecdb(0x1f0)],_0x5749d7)&&(_0x5749d7=_0x5749d7[_0x10056f[_0x34ecdb(0x1f0)]]),_0x5749d7;}const getUserPlaywrightConfig=async(_0x341028,_0x42873f)=>{const _0xe5c71e=a33_0x5ec166,_0xcb5755={'uaEuw':function(_0x381c18){return _0x381c18();},'AFOus':function(_0x355ecb,_0x26a63c){return _0x355ecb(_0x26a63c);},'ddNrj':_0xe5c71e(0x1d9),'kkqWm':function(_0x2ee54c,_0xf93154){return _0x2ee54c(_0xf93154);},'HFqwf':function(_0x436cee,_0x232528){return _0x436cee+_0x232528;},'ClYij':_0xe5c71e(0x1fc),'LFtyJ':'Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','sHAqW':_0xe5c71e(0x1ca)},_0x4ed256=!helper[_0xe5c71e(0x1e6)](_0x341028[_0xe5c71e(0x1bb)]),_0x145c4e=_0x4ed256?path[_0xe5c71e(0x1fa)](process['cwd'](),_0x341028[_0xe5c71e(0x1bb)]):process[_0xe5c71e(0x1e7)](),{resolveConfigFile:_0x4ff556,resolveConfigLocation:_0x313699}=helper[_0xe5c71e(0x209)][_0xe5c71e(0x1d7)](null,_0xcb5755[_0xe5c71e(0x20d)](getConfigLoaderPath)),_0xa8e35f=_0x4ff556?_0xcb5755[_0xe5c71e(0x236)](_0x4ff556,_0x145c4e):helper[_0xe5c71e(0x1f7)](_0xcb5755[_0xe5c71e(0x236)](_0x313699,_0x145c4e),[_0xcb5755['ddNrj']]);let _0x35798a={};if(_0xa8e35f){logger[_0xe5c71e(0x211)](_0xe5c71e(0x233)+_0xa8e35f);try{_0x35798a=await _0xcb5755[_0xe5c71e(0x1ed)](requireOrImportDefaultObject,_0xa8e35f);}catch(_0x2d10e8){return logger[_0xe5c71e(0x200)](_0xcb5755[_0xe5c71e(0x232)](_0xcb5755[_0xe5c71e(0x1f4)],_0xcb5755['kkqWm'](format,_0x2d10e8))),null;}}else logger['info'](_0xcb5755[_0xe5c71e(0x203)]);if(_0x4ed256){const _0x2c0945=_0x42873f[_0xe5c71e(0x1cc)](_0x1ebfc8=>_0x1ebfc8==='--config'||_0x1ebfc8==='-c'||_0x1ebfc8[_0xe5c71e(0x1e2)](_0xe5c71e(0x1ca)));_0x42873f[_0xe5c71e(0x1ac)](_0x2c0945,_0x42873f[_0x2c0945]['startsWith'](_0xcb5755[_0xe5c71e(0x204)])?0x1:0x2);}const _0x40b85e={};return _0x40b85e['path']=_0xa8e35f,_0x40b85e[_0xe5c71e(0x1bb)]=_0x35798a,_0x40b85e;},setGlobalSetup=(_0x48ff37,_0x10ab7b)=>{const _0x2c64bc=a33_0x5ec166,_0x191bc7={'xQPrJ':'globalSetup','FFlut':_0x2c64bc(0x1c4),'WxVyO':function(_0x561b21,_0xa3804e){return _0x561b21+_0xa3804e;},'NfVvc':_0x2c64bc(0x221),'AzCQG':function(_0x2f4a3f,_0x80a0d0){return _0x2f4a3f(_0x80a0d0);},'NjvaZ':_0x2c64bc(0x1e5)};if(!_0x48ff37)return![];try{if(_0x48ff37[_0x2c64bc(0x241)]){let _0xbfc399;const _0x357d6a=path['resolve'](_0x10ab7b,_0x48ff37[_0x191bc7[_0x2c64bc(0x22b)]]);if(fs['existsSync'](_0x357d6a))_0xbfc399=_0x357d6a;else{const _0x44f249={};_0x44f249[_0x2c64bc(0x197)]=[_0x10ab7b],_0xbfc399=require[_0x2c64bc(0x1fa)](_0x48ff37[_0x191bc7['xQPrJ']],_0x44f249);}if(!_0xbfc399)throw new Error(_0x191bc7[_0x2c64bc(0x21b)]);process[_0x2c64bc(0x18c)][_0x2c64bc(0x206)]=_0xbfc399;}}catch(_0x23b29c){logger[_0x2c64bc(0x200)](_0x191bc7['WxVyO'](_0x191bc7['NfVvc'],_0x191bc7[_0x2c64bc(0x1c9)](format,_0x23b29c)));}return _0x48ff37['globalSetup']=require[_0x2c64bc(0x1fa)](_0x191bc7['NjvaZ']),!![];},addReporter=_0x25e701=>{const _0x25cf3f=a33_0x5ec166,_0x5cf1de={};_0x5cf1de[_0x25cf3f(0x1fd)]='./reporter/reporter.js',_0x5cf1de[_0x25cf3f(0x18f)]='reporter',_0x5cf1de[_0x25cf3f(0x1f6)]=function(_0x5109a3,_0x45665e){return _0x5109a3===_0x45665e;},_0x5cf1de[_0x25cf3f(0x193)]=_0x25cf3f(0x1f1),_0x5cf1de[_0x25cf3f(0x1d3)]=_0x25cf3f(0x214);const _0x5bf86c=_0x5cf1de,_0x2d8ca6=path[_0x25cf3f(0x18e)](__dirname,_0x5bf86c[_0x25cf3f(0x1fd)]),_0x50c9a4=[_0x2d8ca6];if(helper[_0x25cf3f(0x1e6)](_0x25e701[_0x5bf86c[_0x25cf3f(0x18f)]]))_0x25e701[_0x5bf86c['wYhCd']]=[_0x50c9a4];else{if(_0x5bf86c[_0x25cf3f(0x1f6)](typeof _0x25e701[_0x5bf86c[_0x25cf3f(0x18f)]],_0x5bf86c[_0x25cf3f(0x193)]))_0x25e701[_0x5bf86c[_0x25cf3f(0x18f)]]=[[_0x25e701[_0x5bf86c[_0x25cf3f(0x18f)]]],_0x50c9a4];else _0x5bf86c[_0x25cf3f(0x1f6)](typeof _0x25e701[_0x5bf86c[_0x25cf3f(0x18f)]],_0x5bf86c[_0x25cf3f(0x1d3)])&&_0x25e701[_0x5bf86c['wYhCd']][_0x25cf3f(0x1d0)](_0x50c9a4);}},handleO11yRerun=_0x1f8ae7=>{const _0x5660b6=a33_0x5ec166,_0x43b1a2={};_0x43b1a2[_0x5660b6(0x19a)]=function(_0x21f426,_0x34d52b){return _0x21f426!==_0x34d52b;},_0x43b1a2['esxFf']=_0x5660b6(0x1e0),_0x43b1a2[_0x5660b6(0x235)]=_0x5660b6(0x1c2);const _0x5d5c17=_0x43b1a2,_0x5889fc=helper['isTrue'](process[_0x5660b6(0x18c)][_0x5660b6(0x1dd)]);if(_0x5889fc){const _0x328a93=process[_0x5660b6(0x18c)][_0x5660b6(0x1ba)],_0x5b01a9=[];if(_0x5d5c17[_0x5660b6(0x19a)](_0x328a93,_0x5d5c17['esxFf'])&&!helper[_0x5660b6(0x1e6)](_0x328a93)){_0x328a93[_0x5660b6(0x1f8)](',')[_0x5660b6(0x244)](_0x55be6f=>{const _0x952cbd=_0x5660b6;_0x5b01a9[_0x952cbd(0x1d0)]('('+_0x55be6f[_0x952cbd(0x212)]()+')');});const _0x49f38f='^'+_0x5b01a9[_0x5660b6(0x18e)]('|')+'$';_0x1f8ae7[_0x5660b6(0x1d0)](_0x5d5c17[_0x5660b6(0x235)],_0x49f38f);}}},spawnOriginalProcess=_0x2d8af5=>{const _0x1496d8=a33_0x5ec166,_0x189199={'kDThK':function(_0x284c3d,_0x57a9b9,_0x39e8dc,_0x48258f){return _0x284c3d(_0x57a9b9,_0x39e8dc,_0x48258f);},'NNrys':_0x1496d8(0x190),'ykWUw':_0x1496d8(0x21a),'nFJFP':function(_0x3b1a13,_0x2d5563){return _0x3b1a13===_0x2d5563;},'BnobQ':_0x1496d8(0x17f),'lZYyr':'inherit'};_0x189199[_0x1496d8(0x1df)](spawn,_0x189199[_0x1496d8(0x1c7)],[_0x189199['ykWUw'],..._0x2d8af5[_0x1496d8(0x1d5)](0x1)],{'shell':_0x189199[_0x1496d8(0x199)](process[_0x1496d8(0x202)],_0x189199['BnobQ']),'stdio':_0x189199[_0x1496d8(0x18a)],'cwd':process['cwd']()});},isTestCommand=(_0xee9883,_0x4bdb45)=>{const _0x3071a2=a33_0x5ec166,_0x4ec37c={};_0x4ec37c[_0x3071a2(0x191)]=function(_0x161a0d,_0x4eae17){return _0x161a0d>_0x4eae17;},_0x4ec37c[_0x3071a2(0x1aa)]=function(_0x1f4348,_0x4a74ff){return _0x1f4348===_0x4a74ff;},_0x4ec37c[_0x3071a2(0x225)]='test';const _0x33efa5=_0x4ec37c;if(_0x33efa5[_0x3071a2(0x191)](_0x4bdb45[_0x3071a2(0x207)],0x1)&&_0x33efa5[_0x3071a2(0x1aa)](_0x4bdb45[0x1],_0x33efa5[_0x3071a2(0x225)]))return!![];return![];},initO11yCrashReporter=(_0x4b341d,_0x24ca18)=>{const _0x219f77=a33_0x5ec166,_0x8eab20={'rpRGA':function(_0x5905bb,_0x56f4b8){return _0x5905bb(_0x56f4b8);}},_0x401874={'frameworkName':FRAMEWORKS[_0x219f77(0x19c)],'frameworkVersion':_0x8eab20[_0x219f77(0x1a0)](getFrameworkVersion,FRAMEWORKS['PLAYWRIGHT'])};CrashReporter[_0x219f77(0x1f9)](_0x401874,_0x4b341d,_0x24ca18);};async function run(_0xa0cd94,_0x483dee){const _0x6233a=a33_0x5ec166,_0x857409={'RWsmh':_0x6233a(0x1a6),'LvNea':_0x6233a(0x1fb),'BSnCh':function(_0x516fc6,_0x181c03){return _0x516fc6+_0x181c03;},'hJHVG':_0x6233a(0x238),'InNjr':_0x6233a(0x1e4),'thnub':function(_0x18347c){return _0x18347c();},'axWlM':_0x6233a(0x20c),'vPClI':_0x6233a(0x213),'gCgpl':_0x6233a(0x248),'uZoVI':_0x6233a(0x1af),'cZLEa':function(_0x45c2de,_0x29fb72){return _0x45c2de>=_0x29fb72;},'xbphD':_0x6233a(0x1a8),'PTMMv':function(_0x4f3201,_0x438935,_0x5a9f3c){return _0x4f3201(_0x438935,_0x5a9f3c);},'lBwQD':function(_0x155396,_0x4f9ea8){return _0x155396(_0x4f9ea8);},'hkPQX':_0x6233a(0x1ff),'JyCrL':_0x6233a(0x1f2),'GcGlA':function(_0xd5e9a8,_0x2c1cc2){return _0xd5e9a8!=_0x2c1cc2;},'GKcAk':function(_0x855eea,_0x5a3809,_0x2abcae){return _0x855eea(_0x5a3809,_0x2abcae);},'tzluP':function(_0x54526c,_0x437c06){return _0x54526c(_0x437c06);},'EMQhl':function(_0x412eba,_0x38eff1,_0x5dd64a){return _0x412eba(_0x38eff1,_0x5dd64a);},'guaxN':function(_0x5b317f,_0x3f4e3f){return _0x5b317f(_0x3f4e3f);},'Unber':'Adding\x20browserstack\x20configs\x20to\x20setup\x20for\x20Observability','qxlIQ':function(_0xcd476d){return _0xcd476d();},'zsNlG':function(_0x151686,_0x1bf057){return _0x151686(_0x1bf057);},'ammin':function(_0x546690,_0x63370c){return _0x546690===_0x63370c;},'YaHQW':_0x6233a(0x1cd),'IgOoB':function(_0x1c27f9,_0x2f934c){return _0x1c27f9(_0x2f934c);},'FnbCd':_0x6233a(0x1d6),'DDchN':function(_0x120657){return _0x120657();},'NqvyG':'testDir','xbprW':'testMatch','GdKgU':_0x6233a(0x19f),'uoMXH':function(_0x94eb7e,_0x28e215){return _0x94eb7e+_0x28e215;},'BauiO':'Error\x20in\x20generating\x20parallellised\x20config\x20for\x20playwright:\x20','DQwUS':function(_0x2128f1,_0xd0da35){return _0x2128f1(_0xd0da35);},'TtRxC':_0x6233a(0x247),'EbXiQ':_0x6233a(0x181),'ZTROz':function(_0x130e39,_0x5e9298){return _0x130e39>_0x5e9298;},'UQGTd':function(_0x4a7d75,_0x5de431){return _0x4a7d75+_0x5de431;},'ZGaMq':function(_0xb952b7,_0x5869e8,_0x178a8b,_0x451664){return _0xb952b7(_0x5869e8,_0x178a8b,_0x451664);},'gqaWZ':_0x6233a(0x190),'izNTO':_0x6233a(0x21a),'hieLj':_0x6233a(0x20e),'bYkJT':_0x6233a(0x1e9),'bSouq':function(_0x155a5a,_0x483282){return _0x155a5a===_0x483282;},'MguzW':_0x6233a(0x17f),'BEpFC':_0x6233a(0x1fe),'EoOTo':_0x6233a(0x229)};!helper[_0x6233a(0x226)](process[_0x6233a(0x18c)][_0x6233a(0x1eb)])&&(process['env'][_0x6233a(0x1eb)]=!![]);process[_0x6233a(0x1de)]['includes'](_0x857409[_0x6233a(0x21c)])&&(process[_0x6233a(0x18c)][_0x6233a(0x1eb)]=_0x857409[_0x6233a(0x22c)],_0x483dee=_0x483dee['filter'](_0x528b84=>_0x528b84!==_0x6233a(0x213)));const _0x442bf5=_0x483dee['indexOf'](_0x857409[_0x6233a(0x1b7)]);_0x857409[_0x6233a(0x1b0)](_0x442bf5,0x0)&&(process[_0x6233a(0x18c)][_0x6233a(0x222)]=_0x857409[_0x6233a(0x22c)],_0x483dee=_0x483dee[_0x6233a(0x1ad)](_0x1fb475=>_0x1fb475!==_0x6233a(0x1af)));try{const _0x1ba32f=path['join'](helper[_0x6233a(0x1ce)](),_0x857409['RWsmh'],_0x857409['LvNea']);fs[_0x6233a(0x1f3)](_0x1ba32f)&&fs['unlinkSync'](_0x1ba32f);}catch(_0x5b2ff8){logger['debug'](_0x857409['BSnCh'](_0x857409[_0x6233a(0x23a)],_0x5b2ff8));}if(!_0x857409['PTMMv'](isTestCommand,_0xa0cd94,_0x483dee)){_0x857409[_0x6233a(0x23e)](spawnOriginalProcess,_0x483dee);return;}const _0x20d28e=new BrowserStackSetup(_0xa0cd94,FRAMEWORKS[_0x6233a(0x19c)]);if(!_0x20d28e[_0x6233a(0x1bb)]){logger[_0x6233a(0x200)](_0x857409[_0x6233a(0x1bc)]);return;}await _0x20d28e[_0x6233a(0x1f9)]();!helper[_0x6233a(0x1e6)](_0x20d28e[_0x6233a(0x20a)])&&_0x20d28e[_0x6233a(0x20a)][_0x6233a(0x1be)](_0x857409['JyCrL'])&&(process[_0x6233a(0x18c)]['BROWSERSTACK_AUTOMATION']=_0x20d28e[_0x6233a(0x20a)][_0x6233a(0x239)](_0x857409['JyCrL'])||!![]);_0x857409[_0x6233a(0x1bd)](_0x20d28e[_0x6233a(0x1bb)][_0x6233a(0x246)],null)&&!helper[_0x6233a(0x1a9)](process[_0x6233a(0x18c)]['BROWSERSTACK_TEST_OBSERVABILITY'])&&(process[_0x6233a(0x18c)][_0x6233a(0x222)]=process[_0x6233a(0x18c)][_0x6233a(0x222)]||_0x20d28e[_0x6233a(0x1bb)][_0x6233a(0x246)]);const _0x51a30f=!helper[_0x6233a(0x226)](process[_0x6233a(0x18c)][_0x6233a(0x222)]);let _0xca9f9e=![];_0x20d28e[_0x6233a(0x1bb)][_0x6233a(0x22a)]&&(_0xca9f9e=!![],process[_0x6233a(0x18c)][_0x6233a(0x23f)]=_0x20d28e[_0x6233a(0x1bb)]['accessibility']);_0x20d28e[_0x6233a(0x1bb)][_0x6233a(0x227)]&&(process['env'][_0x6233a(0x188)]=JSON[_0x6233a(0x1ae)](_0x20d28e[_0x6233a(0x1bb)]['accessibilityOptions']));const _0x2caf00=_0x483dee[_0x6233a(0x21f)](),_0x2f6afd=await _0x857409[_0x6233a(0x1b5)](getUserPlaywrightConfig,_0xa0cd94,_0x483dee);if(helper['isUndefined'](_0x2f6afd)){_0x857409[_0x6233a(0x240)](spawnOriginalProcess,_0x2caf00);return;}const _0x7aec2f={..._0x2f6afd[_0x6233a(0x1bb)]},_0x174d81=_0x7aec2f,_0x1baf51=_0x2f6afd[_0x6233a(0x1e3)]?path[_0x6233a(0x195)](_0x2f6afd[_0x6233a(0x1e3)]):process['cwd']();process[_0x6233a(0x18c)]['BROWSERSTACK_PW_CONFIG_DIR']=_0x1baf51;if(!_0x857409['EMQhl'](setGlobalSetup,_0x174d81,_0x1baf51)){_0x857409['guaxN'](spawnOriginalProcess,_0x2caf00);return;}await TestHubHandler[_0x6233a(0x19e)](FRAMEWORKS['PLAYWRIGHT'],_0x20d28e);_0x51a30f&&(logger[_0x6233a(0x211)](_0x857409[_0x6233a(0x230)]),_0x857409[_0x6233a(0x1a7)](initO11yCrashReporter,_0x174d81,_0x20d28e[_0x6233a(0x1bb)]),_0x857409['tzluP'](handleO11yRerun,_0x483dee));_0x857409[_0x6233a(0x218)](shouldProcessEventForTesthub)&&_0x857409[_0x6233a(0x17b)](addReporter,_0x174d81);let _0x1f5d8e=_0x857409['ammin'](process[_0x6233a(0x18c)][_0x6233a(0x23f)],_0x857409[_0x6233a(0x21e)]);_0x1f5d8e=_0x1f5d8e||_0x857409[_0x6233a(0x17b)](checkAccessibilityPlatformConfig,_0x20d28e[_0x6233a(0x1bb)]),process[_0x6233a(0x18c)][_0x6233a(0x23f)]=_0x1f5d8e;_0x1f5d8e&&_0x857409[_0x6233a(0x1b8)](setAccessibilityCapabilities,_0x20d28e[_0x6233a(0x1bb)]);const _0x8533c9=path[_0x6233a(0x18e)](_0x2f6afd[_0x6233a(0x1e3)]?path[_0x6233a(0x195)](_0x2f6afd[_0x6233a(0x1e3)]):process[_0x6233a(0x1e7)](),_0x857409[_0x6233a(0x22f)]);fs[_0x6233a(0x1a1)](_0x8533c9,helper['serializeToYamlString'](_0x20d28e[_0x6233a(0x1bb)])),process[_0x6233a(0x18c)][_0x6233a(0x180)]=_0x8533c9,helper[_0x6233a(0x1b6)]();if(helper[_0x6233a(0x1a9)](process['env'][_0x6233a(0x1eb)])){let _0x39c097=[];try{const _0x3415bb=helper[_0x6233a(0x209)]['apply'](null,_0x857409['DDchN'](getProjectUtilsPath)),_0x25bf22={};_0x25bf22[_0x6233a(0x1d2)]=!![],_0x25bf22[_0x6233a(0x1f5)]='',_0x25bf22['testMatch']='',_0x25bf22[_0x6233a(0x19f)]='';const _0x56d74a={};_0x56d74a[_0x6233a(0x1d2)]=!![];const _0x4231c4={};_0x4231c4[_0x6233a(0x1cf)]=_0x25bf22,_0x4231c4[_0x6233a(0x210)]=_0x56d74a;let _0x4c402d=_0x4231c4;_0x174d81[_0x857409['NqvyG']]&&(_0x4c402d[_0x6233a(0x1cf)][_0x857409[_0x6233a(0x234)]]=_0x174d81[_0x857409[_0x6233a(0x234)]]),_0x174d81[_0x857409[_0x6233a(0x22e)]]&&(_0x4c402d['project'][_0x857409[_0x6233a(0x22e)]]=_0x174d81[_0x857409[_0x6233a(0x22e)]]),_0x174d81[_0x857409[_0x6233a(0x1d1)]]&&(_0x4c402d[_0x6233a(0x1cf)][_0x857409['GdKgU']]=_0x174d81[_0x857409[_0x6233a(0x1d1)]]),_0x4c402d=Object[_0x6233a(0x17c)](_0x4c402d,_0x4c402d[_0x6233a(0x1cf)]),_0x39c097=await _0x3415bb[_0x6233a(0x20f)](_0x4c402d);}catch(_0x49a2a3){logger[_0x6233a(0x1ec)](_0x857409['uoMXH'](_0x857409[_0x6233a(0x1c1)],_0x857409['DQwUS'](format,_0x49a2a3)));}}let _0x3017d9='';_0x857409[_0x6233a(0x1b9)](helper['getPackageType'](),constants[_0x6233a(0x1e1)]['MODULE'])?_0x3017d9=_0x857409['TtRxC']:_0x3017d9=_0x857409[_0x6233a(0x242)];const _0x46e3f0=path[_0x6233a(0x18e)](_0x2f6afd[_0x6233a(0x1e3)]?path['dirname'](_0x2f6afd[_0x6233a(0x1e3)]):process[_0x6233a(0x1e7)](),_0x3017d9);let _0x2ed0ce=_0x2f6afd[_0x6233a(0x1e3)]?_0x2f6afd['path']:'';_0x2ed0ce=_0x857409['ZTROz'](_0x2ed0ce[_0x6233a(0x207)],0x0)?path[_0x6233a(0x1fa)](_0x2ed0ce):'',process[_0x6233a(0x18c)][_0x6233a(0x20b)]=_0x2ed0ce;let _0xd5a67c=_0x6233a(0x1b4);const _0x46a53f=helper[_0x6233a(0x1c8)](_0x20d28e[_0x6233a(0x1bb)]);_0x46a53f&&(_0xd5a67c=_0x857409['UQGTd'](_0x6233a(0x1ea)+_0x46a53f+'\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();',_0xd5a67c));helper[_0x6233a(0x231)]({},_0x483dee),fs[_0x6233a(0x1a1)](_0x46e3f0,_0xd5a67c),helper[_0x6233a(0x228)]();const _0x5594b2=_0x857409[_0x6233a(0x1cb)](spawn,_0x857409[_0x6233a(0x217)],[_0x857409['izNTO'],_0x857409[_0x6233a(0x19d)],_0x857409[_0x6233a(0x1c3)],_0x46e3f0,..._0x483dee['slice'](0x2)],{'shell':_0x857409[_0x6233a(0x18d)](process[_0x6233a(0x202)],_0x857409[_0x6233a(0x215)]),'stdio':_0x857409[_0x6233a(0x1bf)],'cwd':process[_0x6233a(0x1e7)](),'env':Object[_0x6233a(0x17c)]({},process[_0x6233a(0x18c)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x6233a(0x18b)](_0xa0cd94),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x20d28e['config'][_0x6233a(0x194)][_0x6233a(0x208)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x20d28e[_0x6233a(0x1bb)]['testContextOptions'][_0x6233a(0x243)],'BROWSERSTACK_LOG_LEVEL':_0x20d28e[_0x6233a(0x1bb)]['logLevel']})}),_0x289fa1=()=>{const _0x39c6be=_0x6233a;try{const _0x2aa5a0=path[_0x39c6be(0x18e)](helper[_0x39c6be(0x1ce)](),_0x857409[_0x39c6be(0x192)],_0x857409[_0x39c6be(0x21d)]);if(fs['existsSync'](_0x2aa5a0)){let _0x3478e9=fs[_0x39c6be(0x1a4)](_0x2aa5a0);_0x3478e9=JSON[_0x39c6be(0x205)](_0x3478e9),_0x20d28e['errorMessage']=_0x3478e9,fs['unlinkSync'](_0x2aa5a0);}}catch(_0x19f0a4){logger[_0x39c6be(0x1ec)](_0x857409[_0x39c6be(0x17d)](_0x857409[_0x39c6be(0x1da)],_0x19f0a4));}};_0x5594b2['on'](_0x857409[_0x6233a(0x201)],async _0x1b34c2=>{const _0x2e6cf4=_0x6233a;try{const _0x3421da=_0x857409[_0x2e6cf4(0x1ab)]['split']('|');let _0x162006=0x0;while(!![]){switch(_0x3421da[_0x162006++]){case'0':_0x857409[_0x2e6cf4(0x1c6)](_0x289fa1);continue;case'1':await TestHubHandler[_0x2e6cf4(0x17e)]();continue;case'2':logger[_0x2e6cf4(0x1ec)](_0x2e6cf4(0x1e8)+_0x8533c9);continue;case'3':fs[_0x2e6cf4(0x184)](_0x46e3f0);continue;case'4':logger[_0x2e6cf4(0x1ec)]('Playwright\x20process\x20exited\x20with\x20code\x20'+_0x1b34c2);continue;case'5':fs['unlinkSync'](_0x8533c9);continue;case'6':process[_0x2e6cf4(0x220)]=_0x1b34c2;continue;case'7':logger[_0x2e6cf4(0x211)](_0x2e6cf4(0x1e8)+_0x46e3f0);continue;case'8':await helper['finalExecution'](_0x20d28e);continue;}break;}}catch(_0x80e315){logger[_0x2e6cf4(0x1ec)](_0x857409[_0x2e6cf4(0x17d)](_0x857409[_0x2e6cf4(0x1a2)],_0x80e315));}});}function a33_0x20d1(){const _0x28c976=['../../helpers/testhub/testhubHandler','paths','../../helpers/test-observability/constants','nFJFP','UvByV','../utils/constants','PLAYWRIGHT','hieLj','launchBuild','testIgnore','rpRGA','writeFileSync','axWlM','7233395puHvNu','readFileSync','293559wRRdkr','.browserstack','EMQhl','Error\x20in\x20deleting\x20playwright\x20results','isTrue','RMekL','InNjr','splice','filter','stringify','--disable-test-observability','cZLEa','12nxKKnm','util','qvcRv','\x0a\x0aconst\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0amodule.exports\x20=\x20modifyPWConfig();\x0a','GKcAk','clearTempPWConfig','uZoVI','IgOoB','ammin','BROWSERSTACK_RERUN_TESTS','config','hkPQX','GcGlA','has','BEpFC','10RFVXDe','BauiO','--grep','bYkJT','Can\x27t\x20get\x20user\x20defined\x20global\x20setup\x20file','../../helpers/logger','thnub','NNrys','getProxyUrl','AzCQG','--config=','ZGaMq','findIndex','true','homedir','project','push','GdKgU','respectGitIgnore','GsGzD','22HfEuwA','slice','browserstackSetupConfig.json','apply','ojULd','resolvedConfigFile','hJHVG','126hxwRlK','1325370iuEtiw','BROWSERSTACK_RERUN','argv','kDThK','null','PACKAGE_TYPE','startsWith','path','0|1|8|6|4|7|3|2|5','./globalSetup.js','isUndefined','cwd','Deleting\x20','--config','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','BROWSERSTACK_AUTOMATION','debug','kkqWm','102HMLirt','default','izmIG','string','automation','existsSync','ClYij','testDir','xMcWP','nestedKeyValue','split','initialize','resolve','pw_result.json','Error\x20in\x20importing\x20your\x20playwright\x20config:\x20','rviSu','inherit','BrowserStack\x20config\x20file\x20not\x20found.','error','EoOTo','platform','LFtyJ','sHAqW','parse','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','length','skipSessionStatus','requirePWModule','cliConfig','USER_CONFIG_DETAILS_PATH','Error\x20in\x20closing\x20playwright','uaEuw','test','collectFilesForProject','_internal','info','trim','--disable-browserstack-automation','object','MguzW','winstonLogger','gqaWZ','qxlIQ','4283zRROIQ','playwright','FFlut','vPClI','LvNea','YaHQW','concat','exitCode','Error\x20in\x20running\x20user\x20global\x20setup\x20for\x20playwright','BROWSERSTACK_TEST_OBSERVABILITY','child_process','../../helpers/accessibility-automation/helper','CMVQT','isFalse','accessibilityOptions','markSDKSetupComplete','close','accessibility','xQPrJ','gCgpl','JPRnT','xbprW','FnbCd','Unber','filterBrowserstackConfig','HFqwf','Getting\x20your\x20playwright\x20config\x20from\x20','NqvyG','VKWBm','AFOus','10680koCtUq','Error\x20in\x20getting\x20funnel\x20data\x20results','get','xbphD','14qAzkDY','../../helpers/test-observability/utils','90704zodsdi','lBwQD','BROWSERSTACK_TEST_ACCESSIBILITY_YML','tzluP','globalSetup','EbXiQ','skipSessionName','map','NFnIl','testObservability','playwright-browserstack-sdk.config.cjs','false','zsNlG','assign','BSnCh','stop','win32','BROWSERSTACK_SETUP_CONFIG_PATH','playwright-browserstack-sdk.config.js','../../helpers/test-observability/error-handler','./accessibility-helper','unlinkSync','2133tnOxid','2819532xaUMdo','../../helpers/helper','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','todTz','lZYyr','getConfigPath','env','bSouq','join','wYhCd','npx','uaTiB','RWsmh','zdZNq','testContextOptions','dirname'];a33_0x20d1=function(){return _0x28c976;};return a33_0x20d1();}module['exports']=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a34_0xe87113=a34_0x2fe7;(function(_0x19ac1a,_0x580a2e){const _0x224001=a34_0x2fe7,_0x1d5d9f=_0x19ac1a();while(!![]){try{const _0x38ac9b=parseInt(_0x224001(0x11b))/0x1*(parseInt(_0x224001(0x125))/0x2)+-parseInt(_0x224001(0x103))/0x3+parseInt(_0x224001(0x121))/0x4+parseInt(_0x224001(0x100))/0x5*(-parseInt(_0x224001(0x119))/0x6)+parseInt(_0x224001(0x118))/0x7+parseInt(_0x224001(0x123))/0x8+parseInt(_0x224001(0x120))/0x9*(parseInt(_0x224001(0x115))/0xa);if(_0x38ac9b===_0x580a2e)break;else _0x1d5d9f['push'](_0x1d5d9f['shift']());}catch(_0x4ae4a6){_0x1d5d9f['push'](_0x1d5d9f['shift']());}}}(a34_0x3bb9,0x96851));const child_process=require('child_process'),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{getFrameworkVersion,debug}=require('../../helpers/test-observability/utils'),helper=require(a34_0xe87113(0x104)),{getLoadUtilsPath,getForkProcessPath}=require(a34_0xe87113(0x102)),logger=require('../../helpers/logger')['winstonLogger'];module[a34_0xe87113(0x11e)]=async function(_0x469247){const _0x520ea5=a34_0xe87113,_0x3af3a7={'KlrUh':function(_0x3be6ba,_0x31a515){return _0x3be6ba(_0x31a515);},'yWJvw':function(_0x24e4bf){return _0x24e4bf();},'tzcur':_0x520ea5(0x110),'BJPOj':_0x520ea5(0x106),'gLFfd':function(_0x58847a,_0x301b57){return _0x58847a(_0x301b57);},'SNUYK':function(_0x310bc1,_0x3eb0d4){return _0x310bc1>=_0x3eb0d4;},'BMoHt':_0x520ea5(0x114),'uBITb':function(_0x4b2a5e,_0x48109d,_0xbd748){return _0x4b2a5e(_0x48109d,_0xbd748);},'GflYg':function(_0x1f3818,_0x3bb4a6){return _0x1f3818!==_0x3bb4a6;},'PqNyd':_0x520ea5(0x101),'SyKGQ':_0x520ea5(0x111)},_0x1d8885=child_process[_0x520ea5(0x109)];child_process[_0x520ea5(0x109)]=function(){const _0x28ed2b=_0x520ea5;return _0x3af3a7[_0x28ed2b(0x10d)](debug,'Call\x20to\x20child\x20fork\x20with\x20args\x20'+arguments[0x0]),arguments[0x0][_0x28ed2b(0x122)](_0x3af3a7[_0x28ed2b(0x116)](getForkProcessPath))?arguments[0x0]=require['resolve'](_0x3af3a7[_0x28ed2b(0x10c)]):logger[_0x28ed2b(0x113)](_0x28ed2b(0x112)+_0x3af3a7['yWJvw'](getForkProcessPath)+_0x28ed2b(0x11d)),_0x1d8885[_0x28ed2b(0x117)](null,arguments);};if(process[_0x520ea5(0x10f)][_0x520ea5(0x10b)]){_0x3af3a7[_0x520ea5(0x10d)](debug,_0x3af3a7[_0x520ea5(0x124)]);try{const {loadGlobalHook:_0x4e1226}=helper[_0x520ea5(0x107)][_0x520ea5(0x117)](null,_0x3af3a7[_0x520ea5(0x116)](getLoadUtilsPath)),_0x2e9a0f=_0x3af3a7['gLFfd'](getFrameworkVersion,FRAMEWORKS[_0x520ea5(0x10a)]);let _0x4708c2=_0x469247;if(_0x3af3a7['SNUYK'](helper[_0x520ea5(0x10e)](_0x2e9a0f,_0x3af3a7['BMoHt']),0x0)){const _0x1b186f={};_0x1b186f['config']=_0x469247,_0x4708c2=_0x1b186f;}const _0x48d076=await _0x3af3a7[_0x520ea5(0x11c)](_0x4e1226,_0x4708c2,process[_0x520ea5(0x10f)][_0x520ea5(0x10b)]);if(_0x3af3a7[_0x520ea5(0x126)](typeof _0x48d076,_0x3af3a7[_0x520ea5(0x105)]))throw new Error(_0x3af3a7[_0x520ea5(0x11f)]);return _0x48d076[_0x520ea5(0x117)](null,arguments);}catch(_0xe676f1){_0x3af3a7[_0x520ea5(0x10d)](debug,_0x520ea5(0x11a)+_0xe676f1[_0x520ea5(0x108)]());}}};function a34_0x2fe7(_0xda1bf5,_0x57e625){const _0x3bb938=a34_0x3bb9();return a34_0x2fe7=function(_0x2fe7f4,_0x1f1ff0){_0x2fe7f4=_0x2fe7f4-0x100;let _0x472e84=_0x3bb938[_0x2fe7f4];return _0x472e84;},a34_0x2fe7(_0xda1bf5,_0x57e625);}function a34_0x3bb9(){const _0x1d4d19=['GflYg','75BjOjEk','function','./reporter/pwUtils','890994IpHfrk','../../helpers/helper','PqNyd','Running\x20existing\x20global\x20setup','requirePWModule','toString','fork','PLAYWRIGHT','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','tzcur','KlrUh','compareVersions','env','./mock-process.js','Not\x20able\x20to\x20import\x20globalSetup','Path\x20','error','1.33.0','106310NrsCHR','yWJvw','apply','2557884sqIeeQ','234138zTvbwl','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','96625UCHimp','uBITb','\x20is\x20not\x20found','exports','SyKGQ','72SQoZSr','2209552CclIQi','includes','3195192XeLuxP','BJPOj','2KaduHc'];a34_0x3bb9=function(){return _0x1d4d19;};return a34_0x3bb9();}
|