browserstack-node-sdk 1.33.3 → 1.33.5
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_0x1f69c5=a27_0xcff4;(function(_0x4edb52,_0x35d6a2){const _0x574a82=a27_0xcff4,_0x295da6=_0x4edb52();while(!![]){try{const _0xd70356=-parseInt(_0x574a82(0x1f2))/0x1*(parseInt(_0x574a82(0x1ca))/0x2)+-parseInt(_0x574a82(0x1de))/0x3*(-parseInt(_0x574a82(0x1cd))/0x4)+parseInt(_0x574a82(0x1dc))/0x5*(-parseInt(_0x574a82(0x21a))/0x6)+-parseInt(_0x574a82(0x1cf))/0x7+-parseInt(_0x574a82(0x1bb))/0x8*(-parseInt(_0x574a82(0x1d3))/0x9)+parseInt(_0x574a82(0x20b))/0xa*(parseInt(_0x574a82(0x1b7))/0xb)+parseInt(_0x574a82(0x1f1))/0xc;if(_0xd70356===_0x35d6a2)break;else _0x295da6['push'](_0x295da6['shift']());}catch(_0x2f657f){_0x295da6['push'](_0x295da6['shift']());}}}(a27_0x5b2a,0x194d8));const logger=require(a27_0x1f69c5(0x1fd))[a27_0x1f69c5(0x1b6)],helper=require(a27_0x1f69c5(0x21f)),constants=require('../../../bin/utils/constants'),hubAllocator=require('../../../hubAllocationMethods'),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a27_0x1f69c5(0x1e0)),{setAccessibilityCapabilities,setExtension}=require('../accessibility-automation/helper'),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require('../../../helpers/accessibility-automation/helper'),globals=require('../../../helpers/globals'),modify=(_0x534b30,_0x3804b5=null,_0x1b2f0e=![])=>{const _0x3d663f=a27_0x1f69c5,_0x4de8af={'rZVqw':function(_0x457fb9,_0x415b99){return _0x457fb9!==_0x415b99;},'MMyqH':_0x3d663f(0x207),'yEAhM':function(_0x1f9865,_0x4e4593){return _0x1f9865+_0x4e4593;},'skYaM':function(_0x5e6309,_0x150716){return _0x5e6309+_0x150716;},'Whhpw':'https://','soeXC':_0x3d663f(0x1f7),'PafUT':_0x3d663f(0x1c5),'XQngO':_0x3d663f(0x219),'DqaOH':_0x3d663f(0x1ba),'SXvEM':'edgeOptions','RBUPX':_0x3d663f(0x209),'KImlW':'firefoxOptions','SKcXb':_0x3d663f(0x21e),'UMfcP':_0x3d663f(0x1e8),'tcOgE':_0x3d663f(0x1e9),'gbRRP':function(_0x5a479f,_0x32bd89){return _0x5a479f===_0x32bd89;},'LPKWK':_0x3d663f(0x1db),'ZHtzC':_0x3d663f(0x220),'RkujH':function(_0x54aab1,_0x1602f1,_0x442e16){return _0x54aab1(_0x1602f1,_0x442e16);},'fCYjh':function(_0x2553d5,_0x48afea,_0x556955){return _0x2553d5(_0x48afea,_0x556955);},'UAfjb':function(_0x54a6ce,_0x54e850){return _0x54a6ce(_0x54e850);},'JVnAa':function(_0x84b2df,_0x5b2d64,_0x9ca4ea){return _0x84b2df(_0x5b2d64,_0x9ca4ea);},'YStTb':_0x3d663f(0x1fb),'OQmjh':_0x3d663f(0x1cb),'HQffz':_0x3d663f(0x20d),'xiGSH':function(_0x523f63){return _0x523f63();},'dyuZZ':_0x3d663f(0x1ea),'CiOzg':_0x3d663f(0x1d7),'nhJpZ':function(_0x548bdb,_0x206796){return _0x548bdb(_0x206796);},'MNhCe':function(_0x5e5578,_0x7ea822){return _0x5e5578(_0x7ea822);},'hJDFi':_0x3d663f(0x215),'PRKNE':_0x3d663f(0x202)},_0x57336a=helper['requireHttpClient']();let _0x3cd5a7;try{_0x3cd5a7=helper[_0x3d663f(0x1d5)](),_0x3cd5a7[_0x3d663f(0x1d1)]&&(_0x3cd5a7[_0x3d663f(0x1fc)]=_0x3cd5a7[_0x3d663f(0x1d1)]);}catch(_0x4f8e65){return;}if(helper[_0x3d663f(0x1c0)]()){const _0x2bce42={};_0x2bce42[_0x3d663f(0x1e7)]=_0x534b30[_0x3d663f(0x1f8)],helper[_0x3d663f(0x203)](_0x2bce42,new Map(),new Map()),logger[_0x3d663f(0x1f0)](_0x4de8af[_0x3d663f(0x20e)]),logger[_0x3d663f(0x1d6)](_0x4de8af[_0x3d663f(0x1ef)]);}class _0x558dd4 extends _0x57336a[_0x3d663f(0x1c6)]{['send'](_0x17f511){const _0x3e2480=_0x3d663f;if(_0x4de8af[_0x3e2480(0x208)](_0x17f511[_0x3e2480(0x1bc)],_0x4de8af[_0x3e2480(0x1c1)])&&_0x4de8af[_0x3e2480(0x208)](global[_0x3e2480(0x1eb)],''))try{global[_0x3e2480(0x1eb)]=_0x4de8af['yEAhM'](_0x4de8af[_0x3e2480(0x226)](_0x4de8af['Whhpw'],global['newHubUrl']),_0x4de8af[_0x3e2480(0x1c3)]),this[_0x3e2480(0x1dd)]=hubAllocator[_0x3e2480(0x1d4)](global[_0x3e2480(0x1eb)]),logger['debug']('New\x20hub\x20url\x20set\x20to\x20'+global[_0x3e2480(0x1eb)]),global[_0x3e2480(0x1eb)]='';}catch(_0x48d77b){logger[_0x3e2480(0x205)](_0x48d77b);}return super[_0x3e2480(0x213)](_0x17f511);}}class _0x3f1e9f extends _0x3cd5a7[_0x3d663f(0x1fc)]{[_0x3d663f(0x21b)](){const _0x3b97ff=_0x3d663f;return this['url_']=helper[_0x3b97ff(0x1b5)](_0x534b30),logger[_0x3b97ff(0x1d6)](_0x3b97ff(0x210)+this['url_']),this;}['__setBrowserOptions'](_0x39914a){const _0x49ac06=_0x3d663f;let _0x32b62e={};for(const _0x50c404 in _0x39914a){switch(_0x50c404){case _0x4de8af[_0x49ac06(0x1bd)]:case _0x4de8af['XQngO']:this[_0x49ac06(0x1d0)]&&(_0x32b62e=this[_0x49ac06(0x1d0)][_0x49ac06(0x1ce)](this[_0x49ac06(0x1d0)][_0x49ac06(0x206)])||{},this[_0x49ac06(0x1d0)][_0x49ac06(0x1c8)](this[_0x49ac06(0x1d0)][_0x49ac06(0x206)],helper[_0x49ac06(0x1e2)](_0x32b62e,_0x39914a[_0x50c404])));break;case _0x4de8af[_0x49ac06(0x1ff)]:case _0x4de8af['SXvEM']:this[_0x49ac06(0x1e4)]&&(_0x32b62e=this[_0x49ac06(0x1e4)][_0x49ac06(0x1ce)](this[_0x49ac06(0x1e4)]['CAPABILITY_KEY'])||{},this[_0x49ac06(0x1e4)][_0x49ac06(0x1c8)](this[_0x49ac06(0x1e4)][_0x49ac06(0x206)],helper['mergeDeep'](_0x32b62e,_0x39914a[_0x50c404])));break;case _0x4de8af[_0x49ac06(0x1c2)]:case _0x4de8af[_0x49ac06(0x1f9)]:this[_0x49ac06(0x212)]&&(_0x32b62e=this['firefoxOptions_'][_0x49ac06(0x1ce)](this[_0x49ac06(0x212)][_0x49ac06(0x206)])||{},this[_0x49ac06(0x212)][_0x49ac06(0x1c8)](this[_0x49ac06(0x212)][_0x49ac06(0x206)],helper[_0x49ac06(0x1e2)](_0x32b62e,_0x39914a[_0x50c404])));break;case _0x4de8af[_0x49ac06(0x1f4)]:this['safariOptions_']&&(_0x32b62e=this[_0x49ac06(0x1c9)][_0x49ac06(0x1ce)](this[_0x49ac06(0x1c9)][_0x49ac06(0x206)])||{},this[_0x49ac06(0x1c9)][_0x49ac06(0x1c8)](this[_0x49ac06(0x1c9)][_0x49ac06(0x206)],helper['mergeDeep'](_0x32b62e,_0x39914a[_0x50c404])));break;case _0x4de8af[_0x49ac06(0x20a)]:case _0x4de8af[_0x49ac06(0x1d9)]:this['ieOptions_']&&(_0x32b62e=this['ieOptions_'][_0x49ac06(0x1ce)](this['ieOptions_'][_0x49ac06(0x206)])||{},this[_0x49ac06(0x218)]['set'](this[_0x49ac06(0x218)][_0x49ac06(0x206)],helper[_0x49ac06(0x1e2)](_0x32b62e,_0x39914a[_0x50c404])));break;}}}[_0x3d663f(0x1d8)](){const _0x15de8c=_0x3d663f;return logger[_0x15de8c(0x1d6)](_0x4de8af['ZHtzC']),this[_0x15de8c(0x1b9)](_0x534b30[_0x15de8c(0x1b2)]),Object[_0x15de8c(0x225)](_0x534b30[_0x15de8c(0x1b2)])[_0x15de8c(0x1da)](_0x571131=>{const _0xbda710=_0x15de8c,_0x380dd3=this['capabilities_'][_0xbda710(0x1ce)](_0x571131);_0x4de8af['gbRRP'](typeof _0x380dd3,_0x4de8af[_0xbda710(0x21c)])?this['capabilities_'][_0xbda710(0x1c8)](_0x571131,helper[_0xbda710(0x1e2)](_0x380dd3,_0x534b30[_0xbda710(0x1b2)][_0x571131])):this[_0xbda710(0x1b8)][_0xbda710(0x1c8)](_0x571131,_0x534b30['capability'][_0x571131]);}),this;}['build'](){const _0xbb5bf3=_0x3d663f,_0x2b449d={'ghqIY':_0x4de8af[_0xbb5bf3(0x1d2)],'QyBeC':_0x4de8af[_0xbb5bf3(0x1f5)],'ICLZq':function(_0x281001,_0x29beef,_0x24224e){return _0x4de8af['fCYjh'](_0x281001,_0x29beef,_0x24224e);}};if(helper[_0xbb5bf3(0x1c0)]()){const _0x21c4d1=_0x4de8af[_0xbb5bf3(0x223)]['split']('|');let _0x2b0b97=0x0;while(!![]){switch(_0x21c4d1[_0x2b0b97++]){case'0':_0x4de8af[_0xbb5bf3(0x1ee)](isAccessibilityAutomationSession)&&_0x4de8af[_0xbb5bf3(0x1be)](setAccessibilityCapabilities,_0x534b30);continue;case'1':logger['debug'](_0x4de8af[_0xbb5bf3(0x222)]);continue;case'2':if(helper['isPacProxy'](_0x534b30[_0xbb5bf3(0x1ed)][_0xbb5bf3(0x1e6)]))this[_0xbb5bf3(0x21d)]=helper[_0xbb5bf3(0x228)](_0x534b30[_0xbb5bf3(0x1ed)]['proxyUrl']);else _0x534b30['proxySettings'][_0xbb5bf3(0x1e6)]&&(this[_0xbb5bf3(0x1e5)]=_0x534b30[_0xbb5bf3(0x1ed)][_0xbb5bf3(0x1e6)],logger['debug'](_0xbb5bf3(0x1ec)+this['proxy_']));continue;case'3':this[_0xbb5bf3(0x1d8)]();continue;case'4':this['setServer']();continue;case'5':globals[_0xbb5bf3(0x1c4)](_0x4de8af[_0xbb5bf3(0x1fa)])&&(!_0x4de8af[_0xbb5bf3(0x1fe)](setExtension,this,_0x534b30)&&globals[_0xbb5bf3(0x201)](_0x4de8af['CiOzg'],![]));continue;}break;}}const _0x405cdc=super['build']();return _0x405cdc[_0xbb5bf3(0x1bf)][_0xbb5bf3(0x211)](_0x3dad6d=>{const _0x169082=_0xbb5bf3;try{const _0x1b4e47=_0x3dad6d[_0x169082(0x1df)]['get'](_0x2b449d[_0x169082(0x1c7)]);_0x1b4e47?(logger['debug']('SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20'+_0x1b4e47),hubAllocator[_0x169082(0x1f3)](_0x1b4e47),helper[_0x169082(0x204)](_0x1b4e47)):logger[_0x169082(0x1d6)](_0x2b449d[_0x169082(0x200)]);}catch(_0x4ce326){logger[_0x169082(0x1d6)](_0x169082(0x227)+_0x4ce326);}}),_0x405cdc[_0xbb5bf3(0x1e3)]=0x0,_0x405cdc[_0xbb5bf3(0x211)]&&_0x405cdc[_0xbb5bf3(0x211)](_0x54a839=>{const _0x261ebb=_0xbb5bf3,_0x195003={'FvfYH':function(_0x2c94fe,_0x417d41,_0x565c8e){const _0x1567be=a27_0xcff4;return _0x4de8af[_0x1567be(0x1f6)](_0x2c94fe,_0x417d41,_0x565c8e);}};_0x4de8af[_0x261ebb(0x1b4)](overrideQuit,_0x54a839,_0x405cdc),_0x4de8af[_0x261ebb(0x1be)](overrideTakeScreenshot,_0x54a839),helper[_0x261ebb(0x229)](_0x54a839,_0x534b30),helper['overrideExecute'](_0x54a839,_0x534b30),_0x54a839['getAccessibilityResultsSummary']=async()=>{return await _0x195003['FvfYH'](getAccessibilityResultsSummary,_0x54a839,global);},_0x54a839[_0x261ebb(0x217)]=async()=>{const _0x4f1fbc=_0x261ebb;return await _0x2b449d[_0x4f1fbc(0x1e1)](getAccessibilityResults,_0x54a839,global);};}),_0x405cdc['getAccessibilityResultsSummary']=async()=>{const _0x2558ad=_0xbb5bf3;return await _0x2b449d[_0x2558ad(0x1e1)](getAccessibilityResultsSummary,_0x405cdc,global);},_0x405cdc['getAccessibilityResults']=async()=>{const _0x1f7898=_0xbb5bf3;return await _0x4de8af[_0x1f7898(0x1fe)](getAccessibilityResults,_0x405cdc,global);},_0x4de8af['nhJpZ'](overrideTakeScreenshot,_0x405cdc),_0x4de8af['MNhCe'](overrideQuit,_0x405cdc),helper[_0xbb5bf3(0x229)](_0x405cdc,_0x534b30),helper[_0xbb5bf3(0x224)](_0x405cdc,_0x534b30),helper[_0xbb5bf3(0x221)](global[_0xbb5bf3(0x1b3)])&&(global['__driversArray']=[]),helper[_0xbb5bf3(0x221)](global['__drivers'])&&(global[_0xbb5bf3(0x1cc)]=[]),global['__driversArray']['push'](_0x405cdc),global[_0xbb5bf3(0x20f)]=_0x405cdc,_0x4de8af[_0xbb5bf3(0x208)](global[_0xbb5bf3(0x1cc)],undefined)&&global['__drivers']['push'](_0x405cdc),_0x3804b5&&helper[_0xbb5bf3(0x221)](_0x3804b5[_0xbb5bf3(0x214)]['__driversArray'])&&(_0x3804b5[_0xbb5bf3(0x214)][_0xbb5bf3(0x1b3)]=[]),_0x3804b5&&_0x4de8af[_0xbb5bf3(0x208)](_0x3804b5[_0xbb5bf3(0x214)]['__drivers'],undefined)&&(_0x3804b5[_0xbb5bf3(0x214)]['__drivers'][_0xbb5bf3(0x20c)](_0x405cdc),_0x3804b5[_0xbb5bf3(0x214)][_0xbb5bf3(0x1b3)][_0xbb5bf3(0x20c)](_0x405cdc)),_0x405cdc;}}return _0x3cd5a7[_0x3d663f(0x1d1)]=_0x3cd5a7[_0x3d663f(0x1fc)],_0x3cd5a7['Builder']=_0x3f1e9f,_0x57336a['HttpClient']=_0x558dd4,_0x3cd5a7;};module[a27_0x1f69c5(0x216)]['browserstackAgentObservability']=modify;function a27_0xcff4(_0x471c4f,_0x4d6e87){const _0x5b2adf=a27_0x5b2a();return a27_0xcff4=function(_0xcff457,_0xcc6159){_0xcff457=_0xcff457-0x1b2;let _0x255c05=_0x5b2adf[_0xcff457];return _0x255c05;},a27_0xcff4(_0x471c4f,_0x4d6e87);}function a27_0x5b2a(){const _0x89d5be=['get','556423gJLGEI','chromeOptions_','originalBuilder','YStTb','9pYWwUH','getRequestOptions','requireSeleniumWebdriver','debug','isAccessibilityPlatform','setCapabilities','tcOgE','forEach','object','960385hhyKEp','options_','62247COJYFm','caps_','../../../helpers/patchHelpers','ICLZq','mergeDeep','quitCount_','edgeOptions_','proxy_','proxyUrl','logLevel','se:ieOptions','ieOptions','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','newHubUrl','Proxy\x20set\x20to\x20','proxySettings','xiGSH','PRKNE','info','2539776CVPCNy','467wuassp','updateHubUrl','SKcXb','OQmjh','RkujH','/wd/hub','browserStackLogLevel','KImlW','CiOzg','optimalHubUrl','Builder','../../../helpers/logger','JVnAa','DqaOH','QyBeC','setGlobal','Modifying\x20webdriver\x20builder','setLogLevel','storeOptimalHubUrl','error','CAPABILITY_KEY','/session','rZVqw','moz:firefoxOptions','UMfcP','4790wPoveC','push','0|4|3|2|5|1','hJDFi','__driver','Hub\x20url\x20set\x20to\x20','then','firefoxOptions_','send','global','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','exports','getAccessibilityResults','ieOptions_','chromeOptions','6GYxHsp','setServer','LPKWK','agent_','safari.options','../../../helpers/helper','Setting\x20Browserstack\x20capabilities','isUndefined','dyuZZ','HQffz','overrideExecute','keys','skYaM','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','getHttpAgent','overrideGet','capability','__driversArray','fCYjh','getHubUrl','winstonLogger','2497EjqdoE','capabilities_','__setBrowserOptions','ms:edgeOptions','110872cLpdrF','path','PafUT','UAfjb','session_','isBrowserstackInfra','MMyqH','RBUPX','soeXC','getGlobal','goog:chromeOptions','HttpClient','ghqIY','set','safariOptions_','180sbgjKi','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','__drivers','16WPQWMp'];a27_0x5b2a=function(){return _0x89d5be;};return a27_0x5b2a();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a28_0x423b(_0x44bc0e,_0x462b85){const _0x181d69=a28_0x181d();return a28_0x423b=function(_0x423bd5,_0x4563a2){_0x423bd5=_0x423bd5-0x72;let _0x4e9f45=_0x181d69[_0x423bd5];return _0x4e9f45;},a28_0x423b(_0x44bc0e,_0x462b85);}const a28_0x7c7253=a28_0x423b;(function(_0x45bdd4,_0x1a6719){const _0x282934=a28_0x423b,_0x27a501=_0x45bdd4();while(!![]){try{const _0x37b02f=-parseInt(_0x282934(0x7c))/0x1+-parseInt(_0x282934(0x7b))/0x2*(parseInt(_0x282934(0x7d))/0x3)+parseInt(_0x282934(0x77))/0x4+-parseInt(_0x282934(0x72))/0x5+-parseInt(_0x282934(0x74))/0x6+-parseInt(_0x282934(0x7e))/0x7+-parseInt(_0x282934(0x7a))/0x8*(-parseInt(_0x282934(0x76))/0x9);if(_0x37b02f===_0x1a6719)break;else _0x27a501['push'](_0x27a501['shift']());}catch(_0x19fe42){_0x27a501['push'](_0x27a501['shift']());}}}(a28_0x181d,0x37925));const requestSpy=require('../../../helpers/request-spy'),constants=require(a28_0x7c7253(0x73)),{addRequestSpy}=require(a28_0x7c7253(0x75));function a28_0x181d(){const _0x1086fa=['152lLUkKm','8AmHTvw','195645kdmVxl','237486FciZVc','3146843XAJsaP','946505MRWRkg','../../../bin/utils/constants','1031508JusrfZ','../../../helpers/test-observability/utils','543465UAkTYq','1613468qJbJNg','restore','mochaHooks'];a28_0x181d=function(){return _0x1086fa;};return a28_0x181d();}exports[a28_0x7c7253(0x79)]={'beforeAll'(){const _0x274518={'CvzGt':function(_0x25f640){return _0x25f640();}},_0xdcc74='browserstack internal helper hook';_0x274518['CvzGt'](addRequestSpy);},'afterAll'(){const _0x3ad08c=a28_0x7c7253,_0x38e555='browserstack internal helper hook';this['timeout'](0xea60),requestSpy[_0x3ad08c(0x78)]();}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a29_0x192270=a29_0x434a;(function(_0x1eb9fb,_0x3719fb){const _0x143df5=a29_0x434a,_0x4714bf=_0x1eb9fb();while(!![]){try{const _0x5864b0=parseInt(_0x143df5(0xc4))/0x1+parseInt(_0x143df5(0xd7))/0x2+-parseInt(_0x143df5(0x91))/0x3+-parseInt(_0x143df5(0x8a))/0x4+-parseInt(_0x143df5(0xbd))/0x5+parseInt(_0x143df5(0xd4))/0x6*(parseInt(_0x143df5(0xa2))/0x7)+parseInt(_0x143df5(0xb7))/0x8;if(_0x5864b0===_0x3719fb)break;else _0x4714bf['push'](_0x4714bf['shift']());}catch(_0x5b8323){_0x4714bf['push'](_0x4714bf['shift']());}}}(a29_0x5828,0xe2c22));function a29_0x5828(){const _0x2e77ba=['markedStatus','ciHBu','zDnar','slice','1804746VkSCUU','bzgwC','appium:app','796932HbKJPg','sendPlatformDetails','rDsVk','jxnAy','_beforeEach','mapTestHooks','UirKN','../../utils/logPatcher','UhBUI','type','zOSfp','qnUDJ','tQTCq','_beforeAll','QmkkZ','getHookSkippedTests','728076lWypjf','vJzKQ','uuid','tests','state','PysqK','JysZW','1390239IHkLpi','fwkSL','../../../helpers/helper','failed','JfieY','TEST_PLATFORM','bs:addPlatformDetails:','jerUT','toISOString','ZLNJA','toJSON','__cloud_provider___','XrXQe','../../../../package.json','getHookDetails','HMWiD','nVCyg','7SFAIaj','getBrowserVersion','indexOf','IHZFi','pending','../../../helpers/testhub/utils','gxHwJ','_afterEach','OrLZa','browserstack','../../utils/logReportingAPI','parent','emit','concat','fromEntries','lhzVC','automate','hook','hookAnalyticsId','suites','cvhVA','15380344qiySAO','app','VxWJf','getBrowserName','pid','_afterAll','8433840WIMNlE','ZMtIJ','substring','dDEXP','generic','string','keys','639202UwCtip','OezEa','../../../helpers/test-observability/utils','getHooksForTest','split','getSession','unknown_grid','getCapabilities','Mpvnr','BbXUp','forEach','aCvVd'];a29_0x5828=function(){return _0x2e77ba;};return a29_0x5828();}function a29_0x434a(_0x564d33,_0x54d2d2){const _0x58285f=a29_0x5828();return a29_0x434a=function(_0x434ae8,_0x1fbb51){_0x434ae8=_0x434ae8-0x81;let _0x471e57=_0x58285f[_0x434ae8];return _0x471e57;},a29_0x434a(_0x564d33,_0x54d2d2);}const {v4:uuidv4}=require(a29_0x192270(0x8c)),{name,version}=require(a29_0x192270(0x9e)),logPatcher=require(a29_0x192270(0x81)),BSTestOpsPatcher=new logPatcher({}),logReportingAPI=require(a29_0x192270(0xac)),BSTestOpsLogger=new logReportingAPI({}),{debug,isTestObservabilitySession,isInternalHook}=require(a29_0x192270(0xc6)),{consoleHolder}=require('../../../helpers/test-observability/constants'),{getPlatformVersion}=require(a29_0x192270(0x93)),{shouldProcessEventForTesthub}=require(a29_0x192270(0xa7));console={},Object[a29_0x192270(0xc3)](consoleHolder)['forEach'](_0x2697cd=>{console[_0x2697cd]=(..._0x47b49c)=>{BSTestOpsPatcher[_0x2697cd](..._0x47b49c);};}),exports['getTestEnv']=()=>{const _0x2c7ee5=a29_0x192270,_0x238ff8={'GQRvc':_0x2c7ee5(0xc1),'JysZW':function(_0x1cbda4){return _0x1cbda4();}};return{'ci':_0x238ff8['GQRvc'],'key':_0x238ff8[_0x2c7ee5(0x90)](uuidv4),'version':version,'collector':'js-'+name};},exports[a29_0x192270(0x9f)]=_0x1e568a=>{const _0x380102=a29_0x192270,_0x2aa878={};_0x2aa878['zDnar']=function(_0x44da52,_0x9932a4){return _0x44da52!==_0x9932a4;},_0x2aa878[_0x380102(0x82)]=_0x380102(0xc2),_0x2aa878['QmkkZ']='hook:',_0x2aa878[_0x380102(0xcc)]=_0x380102(0xb3);const _0x16e6b9=_0x2aa878;if(!_0x1e568a||_0x16e6b9[_0x380102(0xd2)](typeof _0x1e568a,_0x16e6b9[_0x380102(0x82)]))return[null,null];if(_0x16e6b9['zDnar'](_0x1e568a['indexOf'](_0x16e6b9['QmkkZ']),-0x1)){const _0x46f3be=_0x1e568a[_0x380102(0xc8)](_0x16e6b9[_0x380102(0x88)]);return[_0x46f3be[0x0][_0x380102(0xd3)](0x0,-0x1)[_0x380102(0xc8)]('\x22')[0x1],_0x46f3be[0x1][_0x380102(0xbf)](0x1)];}else{if(_0x16e6b9[_0x380102(0xd2)](_0x1e568a[_0x380102(0xa4)](_0x16e6b9[_0x380102(0xcc)]),-0x1)){const _0x3ed1e3=_0x1e568a[_0x380102(0xc8)](_0x16e6b9[_0x380102(0xcc)]);return[_0x3ed1e3[0x0]['slice'](0x0,-0x1)[_0x380102(0xc8)]('\x22')[0x1],_0x1e568a];}}return[null,null];},exports[a29_0x192270(0xc7)]=_0x34828d=>{const _0x354bd1=a29_0x192270,_0x51e423={'OrLZa':function(_0x3cea9c,_0x5454e7){return _0x3cea9c(_0x5454e7);},'aCvVd':'_beforeAll','ciHBu':_0x354bd1(0xbc),'vJzKQ':'_beforeEach','OezEa':_0x354bd1(0xa9)};if(!_0x34828d||!_0x34828d[_0x354bd1(0xad)])return[];const _0x8dac44=[];return[_0x51e423[_0x354bd1(0xcf)],_0x51e423[_0x354bd1(0xd1)],_0x51e423[_0x354bd1(0x8b)],_0x51e423[_0x354bd1(0xc5)]][_0x354bd1(0xce)](_0x5df83e=>{const _0x1719f0=_0x354bd1,_0x110fb4={'shBgX':function(_0x3f3b54,_0x3dc30c){const _0x5d0925=a29_0x434a;return _0x51e423[_0x5d0925(0xaa)](_0x3f3b54,_0x3dc30c);}},_0x178810=_0x34828d['parent'][_0x5df83e]||[];_0x178810[_0x1719f0(0xce)](_0xad1b62=>{const _0x4330ab=_0x1719f0;_0xad1b62[_0x4330ab(0xb4)]&&!_0x110fb4['shBgX'](isInternalHook,_0xad1b62['fn'])&&_0x8dac44['push'](_0xad1b62[_0x4330ab(0xb4)]);});}),[..._0x8dac44,...exports['getHooksForTest'](_0x34828d[_0x354bd1(0xad)])];},exports[a29_0x192270(0xdc)]=_0x1e924e=>{const _0x27c224=a29_0x192270,_0x19d1ce={'tQTCq':function(_0x48117d){return _0x48117d();},'VNNMN':function(_0x508971,_0x129e51){return _0x508971===_0x129e51;},'qnUDJ':_0x27c224(0xa9),'OvBff':function(_0x3e3048){return _0x3e3048();},'PysqK':_0x27c224(0x87),'nVCyg':_0x27c224(0xbc),'rDsVk':_0x27c224(0xdb)};if(!_0x1e924e||!_0x1e924e[_0x27c224(0xad)])return;[_0x19d1ce[_0x27c224(0x8f)],_0x19d1ce[_0x27c224(0xa1)],_0x19d1ce[_0x27c224(0xd9)],_0x19d1ce['qnUDJ']][_0x27c224(0xce)](_0x291251=>{const _0x270b06=_0x27c224,_0x3f42c7={'VxWJf':function(_0x3521cc){const _0x322bcc=a29_0x434a;return _0x19d1ce[_0x322bcc(0x86)](_0x3521cc);},'dDEXP':function(_0x454e5d,_0x2c3d0c){return _0x19d1ce['VNNMN'](_0x454e5d,_0x2c3d0c);},'UirKN':_0x19d1ce[_0x270b06(0x85)],'afkvK':function(_0x425f1c){return _0x19d1ce['OvBff'](_0x425f1c);}},_0x1a4cfa=_0x1e924e['parent'][_0x291251]||[];_0x1a4cfa['forEach'](_0x37f391=>{const _0x1e5467=_0x270b06;if(!_0x37f391[_0x1e5467(0xb4)])_0x37f391[_0x1e5467(0xb4)]=_0x3f42c7[_0x1e5467(0xb9)](uuidv4);else _0x37f391[_0x1e5467(0xd0)]&&_0x3f42c7[_0x1e5467(0xc0)](_0x291251,_0x3f42c7[_0x1e5467(0xdd)])&&(_0x37f391[_0x1e5467(0xb4)]=_0x3f42c7['afkvK'](uuidv4),delete _0x37f391[_0x1e5467(0xd0)]);});}),exports[_0x27c224(0xdc)](_0x1e924e[_0x27c224(0xad)]);},exports[a29_0x192270(0xd8)]=async(_0x3d9607,_0x3bc673)=>{const _0x48c8e5=a29_0x192270,_0x493e60={'bzgwC':function(_0x59e358){return _0x59e358();},'gxHwJ':function(_0x4fe09f,_0x4bcc99){return _0x4fe09f===_0x4bcc99;},'JfieY':_0x48c8e5(0xab),'BbXUp':_0x48c8e5(0xd6),'lhzVC':_0x48c8e5(0xb8),'IHZFi':'app-automate','QjmZX':_0x48c8e5(0xb2),'jxnAy':function(_0xb0f9c8,_0x1af63b){return _0xb0f9c8(_0x1af63b);},'HMWiD':_0x48c8e5(0xca),'ZLNJA':_0x48c8e5(0x96),'XrXQe':function(_0x39d937,_0x1ba12f){return _0x39d937(_0x1ba12f);}};try{if(!_0x493e60[_0x48c8e5(0xd5)](shouldProcessEventForTesthub))return;const _0x4e3529=await _0x3d9607[_0x48c8e5(0xcb)](),_0x3aefc4=await _0x3d9607[_0x48c8e5(0xc9)](),_0x15de00={},_0x191434=Object[_0x48c8e5(0xb0)](_0x3aefc4[_0x48c8e5(0xcb)]()['map_']),_0x5f4b44={'product':_0x493e60[_0x48c8e5(0xa8)](global[_0x48c8e5(0x9c)],_0x493e60[_0x48c8e5(0x95)])?_0x191434[_0x493e60[_0x48c8e5(0xcd)]]||_0x191434[_0x493e60[_0x48c8e5(0xb1)]]?_0x493e60[_0x48c8e5(0xa5)]:_0x493e60['QjmZX']:null,'capabilities':_0x191434,'platform':_0x4e3529['getPlatform'](),'platform_version':_0x493e60[_0x48c8e5(0xda)](getPlatformVersion,_0x493e60['gxHwJ'](global[_0x48c8e5(0x9c)],_0x493e60[_0x48c8e5(0x95)])),'browser':_0x4e3529[_0x48c8e5(0xba)](),'browser_version':_0x4e3529[_0x48c8e5(0xa3)](),'session_id':_0x3aefc4[_0x48c8e5(0x9b)]()};global[_0x48c8e5(0x9c)]?_0x15de00[global[_0x48c8e5(0x9c)]]=_0x5f4b44:_0x15de00[_0x493e60[_0x48c8e5(0xa0)]]=_0x5f4b44,process[_0x48c8e5(0xae)](_0x48c8e5(0x97)+process[_0x48c8e5(0xbb)],{'timestamp':new Date()[_0x48c8e5(0x99)](),'level':null,'message':null,'kind':_0x493e60[_0x48c8e5(0x9a)],'http_response':_0x15de00,'uuid':_0x3bc673});}catch(_0x3aaabb){_0x493e60[_0x48c8e5(0x9d)](debug,'Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20'+_0x3aaabb);}},exports[a29_0x192270(0x89)]=_0x515a18=>{const _0x2f973f=a29_0x192270,_0x1aab1e={};_0x1aab1e[_0x2f973f(0x92)]=function(_0xc65c8a,_0x32adf7){return _0xc65c8a!==_0x32adf7;},_0x1aab1e['ZMtIJ']=_0x2f973f(0xb3),_0x1aab1e[_0x2f973f(0x98)]='passed',_0x1aab1e[_0x2f973f(0xb6)]=function(_0x37b68f,_0x2602a4){return _0x37b68f!==_0x2602a4;},_0x1aab1e[_0x2f973f(0x84)]=_0x2f973f(0x94);const _0x4d9860=_0x1aab1e,_0x169046=_0x515a18[_0x2f973f(0xb5)]['reduce']((_0x18ec2b,_0x2c07e7)=>{const _0x92a54d=_0x2f973f,_0x11632b=exports[_0x92a54d(0x89)](_0x2c07e7);return _0x11632b&&(_0x18ec2b=_0x18ec2b[_0x92a54d(0xaf)](_0x11632b)),_0x18ec2b;},[]),_0x14bcd2=_0x515a18[_0x2f973f(0x8d)]['filter'](_0x56813c=>{const _0x2dc4b5=_0x2f973f,_0x3b484a=_0x4d9860[_0x2dc4b5(0x92)](_0x56813c[_0x2dc4b5(0x83)],_0x4d9860[_0x2dc4b5(0xbe)])&&!_0x56813c[_0x2dc4b5(0xd0)]&&_0x4d9860[_0x2dc4b5(0x92)](_0x56813c['state'],_0x4d9860[_0x2dc4b5(0x98)])&&_0x4d9860['cvhVA'](_0x56813c[_0x2dc4b5(0x8e)],_0x4d9860[_0x2dc4b5(0x84)])&&!_0x56813c[_0x2dc4b5(0xa6)];return _0x3b484a;});return _0x14bcd2['concat'](_0x169046);};
|
|
@@ -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
|
+
const a30_0x73700b=a30_0x5d84;(function(_0x4a5436,_0x18a78d){const _0x292ed4=a30_0x5d84,_0x5e9a25=_0x4a5436();while(!![]){try{const _0xb5989d=parseInt(_0x292ed4(0x107))/0x1*(parseInt(_0x292ed4(0x156))/0x2)+-parseInt(_0x292ed4(0x11c))/0x3+parseInt(_0x292ed4(0x135))/0x4*(parseInt(_0x292ed4(0x10c))/0x5)+parseInt(_0x292ed4(0x155))/0x6+-parseInt(_0x292ed4(0x15f))/0x7*(-parseInt(_0x292ed4(0x14c))/0x8)+parseInt(_0x292ed4(0x15a))/0x9*(parseInt(_0x292ed4(0xf1))/0xa)+-parseInt(_0x292ed4(0x128))/0xb;if(_0xb5989d===_0x18a78d)break;else _0x5e9a25['push'](_0x5e9a25['shift']());}catch(_0x5e3c40){_0x5e9a25['push'](_0x5e9a25['shift']());}}}(a30_0x59be,0x4945f));function a30_0x5d84(_0x516f22,_0x3b2245){const _0x59beff=a30_0x59be();return a30_0x5d84=function(_0x5d84c3,_0xbee85a){_0x5d84c3=_0x5d84c3-0xe5;let _0x53ec9e=_0x59beff[_0x5d84c3];return _0x53ec9e;},a30_0x5d84(_0x516f22,_0x3b2245);}const util=require(a30_0x73700b(0x14e)),{isAccessibilityAutomationSession,fetchPlatformDetails,shouldScanTestForAccessibility}=require(a30_0x73700b(0x13d)),{percyAutoCapture}=require('../../helpers/percy/utils'),{sendPlatformDetails}=require('./test-observability/mochaUtils'),{isBrowserstackInfra,markSessionStatus}=require(a30_0x73700b(0x134)),{isTestObservabilitySession}=require(a30_0x73700b(0x157)),PerformanceTester=require(a30_0x73700b(0x144)),scripts=require(a30_0x73700b(0x153)),globals=require(a30_0x73700b(0xea)),logger=require(a30_0x73700b(0x151))[a30_0x73700b(0x110)],{shouldProcessEventForTesthub}=require(a30_0x73700b(0x127)),testHubConstants=require(a30_0x73700b(0x14d));exports[a30_0x73700b(0x129)]={'beforeAll'(){const _0x3d55a5=a30_0x73700b,_0x2174f6={'RPkAk':function(_0x39d265,_0x523fb6,_0xc4c095,_0x20fd9f){return _0x39d265(_0x523fb6,_0xc4c095,_0x20fd9f);},'pThlB':'failed','cPowR':_0x3d55a5(0x12a),'jYKco':function(_0x15ac46,_0x1b4b01,_0x5c6453){return _0x15ac46(_0x1b4b01,_0x5c6453);},'XfZcG':_0x3d55a5(0xe5),'lRIDm':function(_0x10d4b0){return _0x10d4b0();},'oYhMS':function(_0x2a0ade,_0x303f3d,_0x447d50){return _0x2a0ade(_0x303f3d,_0x447d50);}};PerformanceTester[_0x3d55a5(0x12d)]();const _0x3925a0='browserstack internal helper hook';global['__error_messages__']=[],global[_0x3d55a5(0x149)]=![],global[_0x3d55a5(0x130)]=async()=>{const _0x4ce7b5=_0x3d55a5;let _0x3ef7de=![];try{await global['__drivers'][0x0][_0x4ce7b5(0xeb)],_0x3ef7de=!![],global[_0x4ce7b5(0x149)]?await _0x2174f6[_0x4ce7b5(0x152)](markSessionStatus,global[_0x4ce7b5(0xff)][0x0],_0x2174f6['pThlB'],global[_0x4ce7b5(0x121)][_0x4ce7b5(0xf0)](_0x2174f6['cPowR'])):await _0x2174f6[_0x4ce7b5(0x11d)](markSessionStatus,global[_0x4ce7b5(0xff)][0x0],_0x2174f6[_0x4ce7b5(0x12f)]);}catch(_0x3edd9d){}global[_0x4ce7b5(0x121)]=[],global[_0x4ce7b5(0x149)]=![];if(_0x3ef7de)try{try{_0x2174f6[_0x4ce7b5(0x11f)](shouldProcessEventForTesthub)&&(global[_0x4ce7b5(0xff)][0x0]&&await _0x2174f6['oYhMS'](sendPlatformDetails,global[_0x4ce7b5(0xff)][0x0],this[_0x4ce7b5(0x10a)]?this[_0x4ce7b5(0x10a)]['testAnalyticsId']:null));}catch{}await global[_0x4ce7b5(0xff)][0x0]['initQuit']();}catch(_0x27342c){}};},'beforeEach'(_0x4a9d18){const _0x2b1981=a30_0x73700b,_0x4f74ea={'CYWDi':function(_0x640836,_0x4b4c5a){return _0x640836>_0x4b4c5a;},'emeZz':'\x20-\x20','gdHIq':function(_0x196fea,_0x38ba55,_0x26bd54){return _0x196fea(_0x38ba55,_0x26bd54);},'JCPFi':_0x2b1981(0xfe),'uLCsN':function(_0x52523c){return _0x52523c();},'oRFOz':_0x2b1981(0xef),'nGVIs':function(_0x549b5f,_0x4d8e93){return _0x549b5f===_0x4d8e93;},'YIkKO':_0x2b1981(0x148),'xZZJW':_0x2b1981(0xf5),'ucITk':'Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','nJtNX':_0x2b1981(0x143)};new Promise(async _0x402b25=>{const _0x5bc214=_0x2b1981,_0xc5594b='browserstack internal helper hook';let _0x4db721=!![];try{_0x4f74ea[_0x5bc214(0x15c)](global['__drivers'][_0x5bc214(0x131)],0x1)&&(await global[_0x5bc214(0x130)](),global['__drivers'][_0x5bc214(0x11b)]()),_0x4f74ea[_0x5bc214(0x15c)](global['__drivers'][0x0][_0x5bc214(0x160)],0x0)&&(_0x4db721=![],await global[_0x5bc214(0x130)]());}catch{}try{Array[_0x5bc214(0x132)](global[_0x5bc214(0xff)])&&global[_0x5bc214(0xff)][0x0]&&(global[_0x5bc214(0xff)][0x0][_0x5bc214(0x139)]=this['currentTest'][_0x5bc214(0xf9)]()[_0x5bc214(0xf0)](_0x4f74ea[_0x5bc214(0x13f)])),global['browserstackSessionName']=this[_0x5bc214(0x10a)]['titlePath']()[_0x5bc214(0xf0)](_0x4f74ea[_0x5bc214(0x13f)]);}catch(_0x3ced1b){logger[_0x5bc214(0x12e)](_0x5bc214(0x119)+_0x3ced1b);}this[_0x5bc214(0x10a)][_0x5bc214(0x11e)]=_0x4f74ea[_0x5bc214(0x10d)](shouldScanTestForAccessibility,this['currentTest'][_0x5bc214(0xf9)](),!![]),globals[_0x5bc214(0x15d)](_0x4f74ea[_0x5bc214(0x120)],this['currentTest'][_0x5bc214(0x11e)]),this[_0x5bc214(0x10a)][_0x5bc214(0x142)]=!![];if(_0x4f74ea['uLCsN'](isAccessibilityAutomationSession)&&_0x4db721&&Array[_0x5bc214(0x132)](global[_0x5bc214(0xff)])&&_0x4f74ea[_0x5bc214(0x15c)](global[_0x5bc214(0xff)][_0x5bc214(0x131)],0x0)&&globals[_0x5bc214(0x13a)](_0x4f74ea[_0x5bc214(0xee)]))try{const _0x8a7d63=await global[_0x5bc214(0xff)][0x0][_0x5bc214(0xeb)];if(_0x8a7d63){let _0x44646d=!![];const _0x57911a=await global['__drivers'][0x0][_0x5bc214(0x108)]();let _0x1626d8;try{_0x1626d8=new URL(_0x57911a);}catch(_0x2f7788){_0x44646d=![];}_0x44646d=_0x4f74ea[_0x5bc214(0x150)](_0x1626d8[_0x5bc214(0x10b)],_0x4f74ea[_0x5bc214(0xf6)])||_0x4f74ea[_0x5bc214(0x150)](_0x1626d8['protocol'],_0x4f74ea['xZZJW']),_0x44646d&&(this[_0x5bc214(0x10a)][_0x5bc214(0x11e)]&&logger[_0x5bc214(0x105)](_0x4f74ea[_0x5bc214(0xf2)])),this[_0x5bc214(0x10a)][_0x5bc214(0x142)]=this[_0x5bc214(0x10a)][_0x5bc214(0x11e)],this[_0x5bc214(0x10a)][_0x5bc214(0x11e)]&&logger[_0x5bc214(0x105)](_0x4f74ea[_0x5bc214(0x117)]);}}catch(_0x32018a){logger[_0x5bc214(0x14f)](_0x5bc214(0x125)+util['format'](_0x32018a));}_0x4f74ea[_0x5bc214(0xfd)](_0x402b25);})[_0x2b1981(0x133)](_0x4a9d18);},'afterEach'(_0x446084){const _0x98e952=a30_0x73700b,_0x36e4bb={'TCcBq':function(_0x3c7a96,_0x4cf4b7){return _0x3c7a96>_0x4cf4b7;},'YEGKG':function(_0x2d5829,_0x23d0f4){return _0x2d5829===_0x23d0f4;},'aQjyO':'testcase','fibQi':function(_0x1eb546,_0x357a71){return _0x1eb546>_0x357a71;},'VwEIR':_0x98e952(0x123),'CPyfw':function(_0x23c258,_0x30d871,_0x82042a,_0x525140){return _0x23c258(_0x30d871,_0x82042a,_0x525140);},'KgdfJ':_0x98e952(0x140),'zvzvv':function(_0x53b3f4,_0x404605){return _0x53b3f4!==_0x404605;},'oxjqh':_0x98e952(0xe5),'bMsGs':function(_0x49eb14,_0x3e04d3,_0x262486){return _0x49eb14(_0x3e04d3,_0x262486);},'bJMFz':function(_0x2df228,_0x1229e2){return _0x2df228+_0x1229e2;},'qtaAp':_0x98e952(0xed),'NAxsa':_0x98e952(0x14f),'oRXaI':function(_0x19d388,_0x1fbfea,_0x3f6790){return _0x19d388(_0x1fbfea,_0x3f6790);},'rIYVd':_0x98e952(0x146),'kjdtK':_0x98e952(0x105),'PMIBr':_0x98e952(0xef),'tdcZs':_0x98e952(0xfe),'dOUTS':_0x98e952(0x154),'lrFvD':_0x98e952(0x13e),'kQxAp':'Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','ifvCG':function(_0x560a0e){return _0x560a0e();},'mPiOi':function(_0x1dbb63){return _0x1dbb63();},'qouds':function(_0x3dfca1,_0x100aeb,_0x15dbf2){return _0x3dfca1(_0x100aeb,_0x15dbf2);},'NxUNk':_0x98e952(0x12e),'PTTEd':function(_0x1e7415){return _0x1e7415();}},_0x4a78c4='browserstack internal helper hook';this[_0x98e952(0x10f)](0xfde8);const _0x4e157b=async(_0x2dc6b4,_0x5ac337)=>{const _0xc6fa69=_0x98e952;await global[_0xc6fa69(0xff)][0x0][_0xc6fa69(0x147)](_0xc6fa69(0x159)+_0x2dc6b4+',\x22level\x22:\x20\x22'+_0x5ac337+_0xc6fa69(0x101));};new Promise(async _0x3c535e=>{const _0x3cd932=_0x98e952;try{_0x36e4bb[_0x3cd932(0x141)](global['__drivers'][_0x3cd932(0x131)],0x1)&&(await global[_0x3cd932(0x130)](),global['__drivers'][_0x3cd932(0x11b)](),global['__error_messages__']=[],global[_0x3cd932(0x149)]=![]);try{if(global['percy']&&_0x36e4bb[_0x3cd932(0x115)](global['percyCaptureMode'],_0x36e4bb[_0x3cd932(0xf4)])&&global[_0x3cd932(0xff)][0x0]){const _0x141cff=_0x36e4bb[_0x3cd932(0x100)](global[_0x3cd932(0xf3)]['length'],0x0)?!!global['capabilities'][0x0]['app']||!!global['capabilities'][0x0][_0x36e4bb['VwEIR']]:![],_0x3a78d2={};_0x3a78d2[_0x3cd932(0x162)]=_0x141cff,await _0x36e4bb['CPyfw'](percyAutoCapture,global[_0x3cd932(0xff)][0x0],_0x36e4bb[_0x3cd932(0xf4)],_0x3a78d2);}}catch(_0x4718ae){}!global[_0x3cd932(0xf7)]&&(await global[_0x3cd932(0xff)][0x0][_0x3cd932(0x147)](_0x3cd932(0x111)+JSON[_0x3cd932(0xec)](this[_0x3cd932(0x10a)]['titlePath']()[_0x3cd932(0xf0)](_0x36e4bb[_0x3cd932(0x124)]))+'}}'),global[_0x3cd932(0xff)][0x0][_0x3cd932(0x136)]=!![]);const _0x3162c4=_0x36e4bb[_0x3cd932(0x161)](this[_0x3cd932(0x10a)][_0x3cd932(0x158)],_0x36e4bb[_0x3cd932(0x10e)]);_0x3162c4?(global[_0x3cd932(0x149)]=!![],global[_0x3cd932(0x121)][_0x3cd932(0xfb)](this[_0x3cd932(0x10a)]['err'][_0x3cd932(0x14b)]),await _0x36e4bb[_0x3cd932(0x145)](_0x4e157b,JSON[_0x3cd932(0xec)](_0x36e4bb[_0x3cd932(0xfc)](_0x36e4bb[_0x3cd932(0x118)],this[_0x3cd932(0x10a)][_0x3cd932(0x103)][_0x3cd932(0x14b)])),_0x36e4bb[_0x3cd932(0x114)])):await _0x36e4bb['oRXaI'](_0x4e157b,JSON['stringify'](_0x36e4bb[_0x3cd932(0x11a)]),_0x36e4bb[_0x3cd932(0xe9)]);}catch(_0x32a48f){}try{if(this[_0x3cd932(0x10a)][_0x3cd932(0x142)]&&globals[_0x3cd932(0x13a)](_0x36e4bb[_0x3cd932(0x102)])&&globals[_0x3cd932(0x13a)](_0x36e4bb[_0x3cd932(0x109)])){logger[_0x3cd932(0x105)](_0x36e4bb[_0x3cd932(0x122)]);const _0x5a352a={};_0x5a352a[_0x3cd932(0x138)]=this[_0x3cd932(0x10a)][_0x3cd932(0x113)],_0x5a352a['thBuildUuid']=process[_0x3cd932(0x13b)][testHubConstants[_0x3cd932(0x15b)][_0x3cd932(0x116)]],_0x5a352a[_0x3cd932(0x126)]=process[_0x3cd932(0x13b)][testHubConstants[_0x3cd932(0x15b)][_0x3cd932(0x12c)]];const _0x16f800=_0x5a352a;logger['debug']('Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20'+JSON['stringify'](_0x16f800)),logger[_0x3cd932(0x12e)](_0x36e4bb[_0x3cd932(0x137)]),logger[_0x3cd932(0x12e)](util[_0x3cd932(0xe8)](await global['__drivers'][0x0][_0x3cd932(0xe7)](scripts[_0x3cd932(0xf8)],{'method':global[_0x3cd932(0x139)]}))),await global[_0x3cd932(0xff)][0x0]['executeAsyncScript'](scripts[_0x3cd932(0x12b)],_0x16f800),logger[_0x3cd932(0x105)](_0x36e4bb[_0x3cd932(0x13c)]);}}catch(_0x3e278b){logger[_0x3cd932(0x14f)]('Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20'+this[_0x3cd932(0x10a)][_0x3cd932(0xf9)]()+_0x3cd932(0x14a),_0x3e278b);}try{try{if(_0x36e4bb['ifvCG'](shouldProcessEventForTesthub)){global[_0x3cd932(0xff)][0x0]&&await _0x36e4bb[_0x3cd932(0x15e)](sendPlatformDetails,global['__drivers'][0x0],this[_0x3cd932(0x10a)]?this[_0x3cd932(0x10a)][_0x3cd932(0x113)]:null);if(_0x36e4bb['mPiOi'](isBrowserstackInfra)){const _0x5b08a2='ObservabilitySync:'+Date[_0x3cd932(0x106)]();await _0x36e4bb[_0x3cd932(0x112)](_0x4e157b,JSON['stringify'](_0x5b08a2),_0x36e4bb[_0x3cd932(0xe6)]);}}}catch{}_0x36e4bb[_0x3cd932(0x100)](global['__drivers'][0x0][_0x3cd932(0x160)],0x0)&&await global['driverCleanup']();}catch(_0x2837ac){}_0x36e4bb[_0x3cd932(0xfa)](_0x3c535e);})[_0x98e952(0x133)](()=>_0x446084());},'afterAll'(_0x2704d1){const _0x16855f=a30_0x73700b,_0x4018dd={'rZFJv':function(_0x4f5dcb){return _0x4f5dcb();}},_0x30f8cc='browserstack internal helper hook';this['timeout'](0xfde8),new Promise(async _0x4f233c=>{const _0x94b326=a30_0x5d84;PerformanceTester['stopMonitoring'](),await global[_0x94b326(0x130)](),_0x4018dd[_0x94b326(0x104)](_0x4f233c);})[_0x16855f(0x133)](()=>_0x2704d1());}};function a30_0x59be(){const _0x36aac3=['oxjqh','timeout','winstonLogger','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','qouds','testAnalyticsId','NAxsa','YEGKG','BROWSERSTACK_TESTHUB_UUID','nJtNX','qtaAp','Failed\x20to\x20store\x20session\x20name:\x20','rIYVd','shift','1611714xRfhOM','jYKco','shouldScanTestForAccessibility','lRIDm','JCPFi','__error_messages__','dOUTS','appium:app','KgdfJ','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','thJwtToken','../../helpers/testhub/utils','7034467GJKgCc','mochaHooks','\x20|\x20','saveTestResults','BROWSERSTACK_TESTHUB_JWT','startMonitoring','debug','XfZcG','driverCleanup','length','isArray','then','../../helpers/helper','1864aQcpcR','sessionNameSet__','lrFvD','thTestRunUuid','browserstackSessionName','getGlobal','env','kQxAp','../../helpers/accessibility-automation/helper','Performing\x20scan\x20before\x20saving\x20results','emeZz','\x20-\x20','TCcBq','accessibilityScanStarted','Automate\x20test\x20case\x20execution\x20has\x20started.','../../helpers/performance-tester','bMsGs','Passed','executeScript','http:','__sessionFailed','.\x20Error\x20:','message','16TgGcrL','../../helpers/testhub/constants','util','error','nGVIs','../../helpers/logger','RPkAk','../../helpers/accessibility-automation/scripts','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','3088536ArXLla','8AcjzIJ','../../helpers/test-observability/utils','state','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','45IMEPFs','ENV_VAR','CYWDi','setGlobal','oRXaI','912961WQWWBe','quitCount_','zvzvv','app','passed','NxUNk','executeAsyncScript','format','kjdtK','../../helpers/globals','session_','stringify','Failed:\x20','oRFOz','isAccessibilityPlatform','join','61860xiQBnv','ucITk','capabilities','aQjyO','https:','YIkKO','__skipSessionName','performScan','titlePath','PTTEd','push','bJMFz','uLCsN','bstackA11yShouldScan','__drivers','fibQi','\x22}}','PMIBr','err','rZFJv','info','now','122963qCUgPR','getCurrentUrl','tdcZs','currentTest','protocol','1915cXmGpj','gdHIq'];a30_0x59be=function(){return _0x36aac3;};return a30_0x59be();}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';
|
|
2
|
+
'use strict';const a31_0x2e08cc=a31_0x2c0d;(function(_0x52a4e7,_0x55bb37){const _0x2fe562=a31_0x2c0d,_0x50e988=_0x52a4e7();while(!![]){try{const _0x3fb382=-parseInt(_0x2fe562(0xa4))/0x1+parseInt(_0x2fe562(0x98))/0x2+parseInt(_0x2fe562(0xb3))/0x3+-parseInt(_0x2fe562(0xaa))/0x4*(-parseInt(_0x2fe562(0xa2))/0x5)+-parseInt(_0x2fe562(0xa7))/0x6*(parseInt(_0x2fe562(0xb8))/0x7)+-parseInt(_0x2fe562(0x78))/0x8*(parseInt(_0x2fe562(0x89))/0x9)+-parseInt(_0x2fe562(0x77))/0xa*(-parseInt(_0x2fe562(0x72))/0xb);if(_0x3fb382===_0x55bb37)break;else _0x50e988['push'](_0x50e988['shift']());}catch(_0x358071){_0x50e988['push'](_0x50e988['shift']());}}}(a31_0x16e9,0xb7397));function a31_0x16e9(){const _0xa1ae2c=['host','stringify','DjoLf','winstonLogger','writeFileSync','path','../../helpers/BrowserStackSetup','304025RujMsj','OSPRQ','1012548gPZwVQ','inherit','child_process','210yAwQAh','length','gVGkC','36KCXxSH','IMwWx','hdUal','platform','uxAXc','MvrIE','child\x20process\x20exited\x20with\x20code\x20','cwd','test','1343937MYLLuF','CzXCU','desiredCapabilities','config','test_settings','18242EISwJt','Twvkj','findIndex','trim','close','11AIuNqj','existsSync','../../helpers/helper','nightwatch','isUndefined','6069670lzfgHG','968PhXfRk','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','forEach','exports','splice','port','webdriver','EqGzr','filter','info','join','map','SbHlS','tbGeG','ONuoH','hub.browserstack.com','--config','63387QZhzbk','env','start_process','platforms','slice','unlinkSync','nightwatch.cmd','nightwatch-browserstack.json','bpDAE','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','nightwatch.conf.js','--env','push','VVsmS','wLAUR','2208514AowinN','XsruQ','selenium'];a31_0x16e9=function(){return _0xa1ae2c;};return a31_0x16e9();}function a31_0x2c0d(_0x4b489d,_0x1f438a){const _0x16e94d=a31_0x16e9();return a31_0x2c0d=function(_0x2c0de5,_0x55c016){_0x2c0de5=_0x2c0de5-0x72;let _0x3953dd=_0x16e94d[_0x2c0de5];return _0x3953dd;},a31_0x2c0d(_0x4b489d,_0x1f438a);}const fs=require('fs'),path=require(a31_0x2e08cc(0xa0)),{spawn}=require(a31_0x2e08cc(0xa6)),logger=require('../../helpers/logger')[a31_0x2e08cc(0x9e)],{default:BrowserStackSetup}=require(a31_0x2e08cc(0xa1)),helper=require(a31_0x2e08cc(0x74)),constants=require('../utils/constants'),getUserNightwatchConfigs=(_0x456fdb,_0x29be06)=>{const _0x259b27=a31_0x2e08cc,_0x40f316={'ONuoH':_0x259b27(0x93),'hdUal':'nightwatch.json','wLAUR':function(_0x1aa25b,_0x5f5d4b){return _0x1aa25b(_0x5f5d4b);},'EqGzr':_0x259b27(0x92)};let _0x4058c1=null,_0x5f3476={};const _0xa8316d=_0x29be06[_0x259b27(0xba)](_0x428bb2=>_0x428bb2===_0x259b27(0x88));if(!helper[_0x259b27(0x76)](_0x456fdb[_0x259b27(0xb6)])&&fs[_0x259b27(0x73)](path['join'](process['cwd'](),_0x456fdb['config'])))_0x4058c1=path[_0x259b27(0x82)](process[_0x259b27(0xb1)](),_0x456fdb['config']),_0x29be06[_0x259b27(0x7c)](_0xa8316d,0x2);else{if(fs['existsSync'](path[_0x259b27(0x82)](process['cwd'](),_0x40f316[_0x259b27(0x86)])))_0x4058c1=path[_0x259b27(0x82)](process[_0x259b27(0xb1)](),_0x40f316['ONuoH']);else fs[_0x259b27(0x73)](path[_0x259b27(0x82)](process[_0x259b27(0xb1)](),_0x40f316['hdUal']))&&(_0x4058c1=path[_0x259b27(0x82)](process[_0x259b27(0xb1)](),_0x40f316[_0x259b27(0xac)]));}return _0x4058c1?(logger[_0x259b27(0x81)]('Getting\x20your\x20nightwatch\x20configs\x20from\x20'+_0x4058c1),_0x5f3476=_0x40f316[_0x259b27(0x97)](require,_0x4058c1)):logger[_0x259b27(0x81)](_0x40f316[_0x259b27(0x7f)]),_0x5f3476;},removeExistingEnvs=_0x2e74d7=>{const _0xaff5f=a31_0x2e08cc,_0xe89ef6={};_0xe89ef6[_0xaff5f(0x96)]=function(_0x195bd9,_0x2b3a33){return _0x195bd9>_0x2b3a33;};const _0xd3122a=_0xe89ef6;let _0x4da780=_0x2e74d7[_0xaff5f(0xba)](_0x1541fe=>_0x1541fe===_0xaff5f(0x94));_0xd3122a[_0xaff5f(0x96)](_0x4da780,-0x1)&&_0x2e74d7[_0xaff5f(0x7c)](_0x4da780,0x2),_0x4da780=_0x2e74d7[_0xaff5f(0xba)](_0x6c9417=>_0x6c9417==='-e'),_0xd3122a[_0xaff5f(0x96)](_0x4da780,-0x1)&&_0x2e74d7[_0xaff5f(0x7c)](_0x4da780,0x2);};function run(_0x48b4ae,_0x481628){const _0x1998f1=a31_0x2e08cc,_0x35519b={'uxAXc':_0x1998f1(0x75),'tbGeG':function(_0x594353,_0x468da0){return _0x594353+_0x468da0;},'vwybu':'test_settings','bpDAE':function(_0xfb83be,_0x3c2f2d,_0x310738){return _0xfb83be(_0x3c2f2d,_0x310738);},'IMwWx':_0x1998f1(0x87),'CzXCU':_0x1998f1(0x79),'OSPRQ':function(_0x5ec17c,_0x327b5c){return _0x5ec17c===_0x327b5c;},'DjoLf':_0x1998f1(0x90),'Twvkj':function(_0x50adca,_0x19e858){return _0x50adca(_0x19e858);},'SbHlS':function(_0x9cb3bc,_0x2f6ea5,_0x5c3528,_0x19a6a){return _0x9cb3bc(_0x2f6ea5,_0x5c3528,_0x19a6a);},'VzAuS':_0x1998f1(0x8f),'gVGkC':'--config','MvrIE':_0x1998f1(0x94),'XsruQ':_0x1998f1(0xa5),'JIZUL':_0x1998f1(0xbc)},_0x155d95=new BrowserStackSetup(_0x48b4ae);if(!_0x155d95[_0x1998f1(0xb6)])return;const _0x391f1f=_0x35519b[_0x1998f1(0x91)](getUserNightwatchConfigs,_0x48b4ae,_0x481628),_0x4f191b={};_0x4f191b[_0x1998f1(0x8b)]=![];const _0x342f49={};_0x342f49[_0x1998f1(0x9b)]=_0x35519b[_0x1998f1(0xab)],_0x342f49[_0x1998f1(0x7d)]=0x1bb;const _0x3ada67={};_0x3ada67[_0x1998f1(0x7e)]=_0x4f191b,_0x3ada67[_0x1998f1(0x9a)]=_0x342f49;const _0x7caaa1=_0x3ada67;logger[_0x1998f1(0x81)](_0x35519b[_0x1998f1(0xb4)]);const _0x1eeb17={..._0x391f1f},_0x11520d=_0x1eeb17,_0x442b9d=helper['useW3C'](_0x155d95[_0x1998f1(0xb6)]),_0x157496=[];_0x155d95[_0x1998f1(0xb6)][_0x1998f1(0x8c)]['forEach']((_0x18b3c9,_0x279fc4)=>{const _0x323bc6=_0x1998f1;_0x442b9d?_0x157496[_0x323bc6(0x95)](helper['modifyBrowserStackW3CCaps'](_0x155d95[_0x323bc6(0xb6)],_0x35519b[_0x323bc6(0xae)],_0x279fc4)):_0x157496[_0x323bc6(0x95)](helper['modifyBrowserStackCaps'](_0x155d95[_0x323bc6(0xb6)],_0x35519b['uxAXc'],_0x279fc4));});const _0x4fe9da={},_0x2a6c83=[];_0x48b4ae['env']=_0x48b4ae[_0x1998f1(0x8a)]||_0x48b4ae['e'];const _0x519acc=_0x48b4ae[_0x1998f1(0x8a)]?_0x48b4ae['env']['trim']()['split'](',')[_0x1998f1(0x83)](_0x64e1ba=>_0x64e1ba[_0x1998f1(0xbb)]())[_0x1998f1(0x80)](_0x191fa6=>_0x191fa6!==''):[''];_0x35519b[_0x1998f1(0xa3)](_0x519acc[_0x1998f1(0xa8)],0x0)&&_0x519acc[_0x1998f1(0x95)]('');_0x519acc[_0x1998f1(0x7a)](_0x1e9981=>{const _0x5ec948={'YrrYu':function(_0x4d1eee,_0xcec38f){const _0x3902eb=a31_0x2c0d;return _0x35519b[_0x3902eb(0x85)](_0x4d1eee,_0xcec38f);},'GCOjz':_0x35519b['vwybu']};_0x157496['forEach'](_0x109148=>{const _0x3b55b0=a31_0x2c0d;let _0x32a47d=_0x5ec948['YrrYu'](helper['getPlatformName'](_0x109148,'_'),'_'+Date['now']());_0x1e9981&&(_0x32a47d+='_'+_0x1e9981);if(_0x1e9981&&(!_0x391f1f[_0x5ec948['GCOjz']]||!_0x391f1f[_0x5ec948['GCOjz']][_0x1e9981]))return;const _0x1e17b9={..._0x7caaa1};_0x1e17b9[_0x3b55b0(0xb5)]=_0x109148;const _0x356966=_0x1e17b9;_0x4fe9da[_0x32a47d]=_0x1e9981?helper['mergeDeep'](_0x391f1f[_0x5ec948['GCOjz']][_0x1e9981],_0x356966):_0x356966,_0x2a6c83['push'](_0x32a47d);});});!_0x11520d[_0x1998f1(0xb7)]&&(_0x11520d[_0x1998f1(0xb7)]={});_0x11520d[_0x1998f1(0xb7)]={..._0x11520d[_0x1998f1(0xb7)],..._0x4fe9da};const _0x206ac8=path['join'](__dirname,_0x35519b[_0x1998f1(0x9d)]);fs[_0x1998f1(0x9f)](_0x206ac8,JSON[_0x1998f1(0x9c)](_0x11520d)),_0x35519b[_0x1998f1(0xb9)](removeExistingEnvs,_0x481628);const _0x41afb1=_0x35519b[_0x1998f1(0x84)](spawn,/^win/[_0x1998f1(0xb2)](process[_0x1998f1(0xad)])?_0x35519b['VzAuS']:_0x35519b['uxAXc'],[_0x35519b[_0x1998f1(0xa9)],_0x206ac8,..._0x481628[_0x1998f1(0x8d)](0x1),_0x35519b[_0x1998f1(0xaf)],_0x2a6c83[_0x1998f1(0x82)](',')],{'stdio':_0x35519b[_0x1998f1(0x99)]});_0x41afb1['on'](_0x35519b['JIZUL'],async _0x149f8b=>{const _0x20c325=_0x1998f1;logger['debug'](_0x20c325(0xb0)+_0x149f8b),logger[_0x20c325(0x81)]('Deleting\x20'+_0x206ac8),fs[_0x20c325(0x8e)](_0x206ac8);});}module[a31_0x2e08cc(0x7b)]=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_0x528607=a32_0x2564;(function(_0x32f196,_0x53a9f8){const _0x2ed80b=a32_0x2564,_0x1d0105=_0x32f196();while(!![]){try{const _0x1dcf54=-parseInt(_0x2ed80b(0x1d0))/0x1+-parseInt(_0x2ed80b(0x213))/0x2+parseInt(_0x2ed80b(0x1d1))/0x3+parseInt(_0x2ed80b(0x1e0))/0x4+-parseInt(_0x2ed80b(0x1fe))/0x5+parseInt(_0x2ed80b(0x21b))/0x6+parseInt(_0x2ed80b(0x1d5))/0x7*(parseInt(_0x2ed80b(0x209))/0x8);if(_0x1dcf54===_0x53a9f8)break;else _0x1d0105['push'](_0x1d0105['shift']());}catch(_0x3e3c77){_0x1d0105['push'](_0x1d0105['shift']());}}}(a32_0x12c2,0x40f48));const util=require(a32_0x528607(0x226)),logger=require(a32_0x528607(0x1f0))['winstonLogger'],{isAccessibilityAutomationSession}=require('../../helpers/accessibility-automation/helper'),{isUndefined}=require(a32_0x528607(0x210)),scripts=require('../../helpers/accessibility-automation/scripts');function a32_0x2564(_0x29c785,_0x24243a){const _0x12c238=a32_0x12c2();return a32_0x2564=function(_0x2564d5,_0x11e1be){_0x2564d5=_0x2564d5-0x1bd;let _0x553978=_0x12c238[_0x2564d5];return _0x553978;},a32_0x2564(_0x29c785,_0x24243a);}exports['browserStackEvaluate']=async(_0x13eda4,_0x1a6147,_0x296d4c={})=>{const _0x3a621f=a32_0x528607,_0x23f7f3={};_0x23f7f3['pGpyb']='bstackSdkArgs';const _0x40cdf7=_0x23f7f3;return await _0x13eda4['evaluate']('(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20'+_0x1a6147[_0x3a621f(0x1da)](/arguments/g,_0x40cdf7[_0x3a621f(0x1be)])+_0x3a621f(0x1e2)+JSON['stringify'](_0x296d4c)+')');},exports[a32_0x528607(0x1fc)]=async(_0x4d5a3c,_0x507289,_0xe56839={})=>{const _0x3f62dc=a32_0x528607,_0x57208d={};_0x57208d['BUdoq']=function(_0xa13fe4,_0x1a231c){return _0xa13fe4===_0x1a231c;},_0x57208d[_0x3f62dc(0x216)]=_0x3f62dc(0x21e),_0x57208d[_0x3f62dc(0x1d8)]=function(_0x5d0f21,_0x567118){return _0x5d0f21===_0x567118;},_0x57208d[_0x3f62dc(0x1d3)]=_0x3f62dc(0x1e4),_0x57208d['cOhTr']=_0x3f62dc(0x20f);const _0x59219a=_0x57208d;if(_0x59219a[_0x3f62dc(0x1c7)](_0x4d5a3c['constructor'][_0x3f62dc(0x204)],_0x59219a[_0x3f62dc(0x216)]))return await _0x4d5a3c['executeAsyncScript'](_0x507289,_0xe56839);else{if(_0x59219a[_0x3f62dc(0x1d8)](_0x4d5a3c['constructor'][_0x3f62dc(0x204)],_0x59219a[_0x3f62dc(0x1d3)]))return await _0x4d5a3c[_0x3f62dc(0x205)](_0x3f62dc(0x1c0)+_0x507289[_0x3f62dc(0x1da)](/arguments/g,_0x59219a[_0x3f62dc(0x20d)])+_0x3f62dc(0x225)+JSON[_0x3f62dc(0x1f9)](_0xe56839)+')');}},exports[a32_0x528607(0x203)]=async _0x12d888=>{const _0x3e158c=a32_0x528607,_0x1145b9={};_0x1145b9[_0x3e158c(0x1e9)]=_0x3e158c(0x1db),_0x1145b9[_0x3e158c(0x1ee)]=_0x3e158c(0x1f5),_0x1145b9[_0x3e158c(0x1f7)]=_0x3e158c(0x221),_0x1145b9[_0x3e158c(0x212)]=_0x3e158c(0x1ed),_0x1145b9[_0x3e158c(0x1c6)]=_0x3e158c(0x201),_0x1145b9[_0x3e158c(0x21c)]=_0x3e158c(0x214);const _0x17e874=_0x1145b9;_0x12d888[_0x3e158c(0x223)]&&(_0x12d888['accessibilityOptions']['wcagVersion']&&(_0x12d888[_0x17e874[_0x3e158c(0x1e9)]]=_0x12d888[_0x3e158c(0x223)]['wcagVersion']),_0x12d888[_0x3e158c(0x223)][_0x3e158c(0x1c9)]&&(_0x12d888[_0x17e874[_0x3e158c(0x1ee)]]=_0x12d888[_0x3e158c(0x223)][_0x3e158c(0x1c9)]),_0x12d888[_0x3e158c(0x223)][_0x3e158c(0x1f1)]&&(_0x12d888[_0x17e874['rblvG']]=_0x12d888[_0x3e158c(0x223)]['includeIssueType'][_0x3e158c(0x20b)],_0x12d888[_0x17e874['ERQPV']]=_0x12d888[_0x3e158c(0x223)][_0x3e158c(0x1f1)]['needsReview']));const _0x6f5e69=JSON[_0x3e158c(0x224)](process[_0x3e158c(0x218)][_0x3e158c(0x1fd)])[_0x3e158c(0x1e8)];_0x12d888[_0x17e874[_0x3e158c(0x1c6)]]=process[_0x3e158c(0x218)][_0x3e158c(0x1f8)],_0x12d888[_0x17e874[_0x3e158c(0x21c)]]=_0x6f5e69,delete _0x12d888[_0x3e158c(0x223)];},exports[a32_0x528607(0x215)]=async _0x34e6df=>{const _0x204d1b=a32_0x528607,_0xb1c17a={};_0xb1c17a['oprej']=_0x204d1b(0x1f4),_0xb1c17a[_0x204d1b(0x1eb)]=_0x204d1b(0x227);const _0x2ce67f=_0xb1c17a;if(global['accessibilityPlatform'])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x34e6df,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x34e6df,scripts.getResults);return res;}catch{return logger[_0x204d1b(0x1c2)](_0x2ce67f[_0x204d1b(0x1d6)]),[];}else return logger[_0x204d1b(0x1c4)](_0x2ce67f['agtkf']),[];},exports[a32_0x528607(0x206)]=async(_0x29daf1,_0x9184b2='')=>{const _0x4cdd91=a32_0x528607;if(global['accessibilityPlatform']){const _0x4dd3af={};return _0x4dd3af[_0x4cdd91(0x1d7)]=_0x9184b2,await exports[_0x4cdd91(0x1ca)](_0x29daf1,scripts['performScan'],_0x4dd3af);}},exports[a32_0x528607(0x21a)]=async _0xc4ac6d=>{const _0x293a06=a32_0x528607,_0x153ee2={};_0x153ee2['mBVUG']=_0x293a06(0x217),_0x153ee2[_0x293a06(0x222)]=_0x293a06(0x1bd);const _0x1dd0ca=_0x153ee2;if(global[_0x293a06(0x1fa)])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0xc4ac6d,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0xc4ac6d,scripts.getResultsSummary);return summaryResults;}catch{return logger[_0x293a06(0x1e1)](_0x1dd0ca[_0x293a06(0x1c1)]),{};}else return logger[_0x293a06(0x1c4)](_0x1dd0ca[_0x293a06(0x222)]),{};},exports[a32_0x528607(0x1ce)]=async _0x5c8dc6=>{const _0x396acb=a32_0x528607,_0x19a46b={'nEjhm':function(_0x2bb906,_0x491f1e){return _0x2bb906!==_0x491f1e;},'qseLB':_0x396acb(0x1f3),'luuJb':function(_0x2e466f,_0x5c5e00){return _0x2e466f===_0x5c5e00;},'JmTRZ':'chrome','MZxPc':_0x396acb(0x1dc),'tyZwS':_0x396acb(0x207),'mTSNu':function(_0x4e782e,_0x28b2b4){return _0x4e782e(_0x28b2b4);},'TGnTY':_0x396acb(0x1f6),'YiDFL':function(_0x17a101,_0xe2cdb2){return _0x17a101>_0xe2cdb2;},'aWxnj':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.'};try{if(!_0x19a46b[_0x396acb(0x1cf)](_0x5c8dc6[_0x396acb(0x208)],''))return logger[_0x396acb(0x1c4)](_0x19a46b[_0x396acb(0x1cb)]),![];const _0x47f7e3=_0x5c8dc6[_0x396acb(0x21f)];if(!(_0x19a46b[_0x396acb(0x1ff)](_0x47f7e3,_0x19a46b[_0x396acb(0x1e3)])||_0x19a46b[_0x396acb(0x1ff)](_0x47f7e3,_0x19a46b[_0x396acb(0x20c)])))return logger[_0x396acb(0x1c4)](_0x19a46b[_0x396acb(0x1f2)]),![];const _0x76c3b4=_0x19a46b[_0x396acb(0x1fb)](parseInt,_0x5c8dc6[_0x396acb(0x1e7)]);if(!(_0x19a46b[_0x396acb(0x1ff)](_0x76c3b4,_0x19a46b[_0x396acb(0x1e6)])||_0x19a46b[_0x396acb(0x1e5)](_0x76c3b4,0x5e)))return logger[_0x396acb(0x1c4)](_0x19a46b[_0x396acb(0x21d)]),![];}catch(_0x56bca3){logger['debug'](_0x396acb(0x1d4)+util[_0x396acb(0x219)](_0x56bca3));}return!![];},exports[a32_0x528607(0x1d2)]=(_0x4e071d,_0x4d1030,_0x2c28e0)=>{const _0x5d9198=a32_0x528607,_0x506cc1={'gQxkh':function(_0x4eb419){return _0x4eb419();},'dyING':_0x5d9198(0x1c3),'pfKQR':function(_0x1617e3,_0xcb975e){return _0x1617e3===_0xcb975e;},'mZxTJ':'chrome','FCKqR':function(_0x4fd4c6,_0x590572){return _0x4fd4c6===_0x590572;},'GCgVR':_0x5d9198(0x1dc),'qreUh':_0x5d9198(0x207),'gzTLq':'latest','MuLLF':function(_0x58e9b9,_0x344fac){return _0x58e9b9>_0x344fac;},'yIDgN':_0x5d9198(0x1ec),'mmrgV':function(_0x3ba640,_0x749912){return _0x3ba640(_0x749912);},'LeAFl':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','OQAXS':function(_0x2f11a8,_0x29b317){return _0x2f11a8+_0x29b317;},'gnYUy':function(_0x1c062e,_0x3e9ae4){return _0x1c062e(_0x3e9ae4);}};try{if(_0x506cc1[_0x5d9198(0x20e)](isAccessibilityAutomationSession)){global[_0x5d9198(0x1fa)]=!![];!_0x4e071d[_0x506cc1[_0x5d9198(0x1cc)]]&&(global[_0x5d9198(0x1fa)]=![]);!(_0x506cc1[_0x5d9198(0x200)](_0x4e071d[_0x5d9198(0x202)],_0x506cc1['mZxTJ'])||_0x506cc1[_0x5d9198(0x1c5)](_0x4e071d['browserName'],_0x506cc1['GCgVR']))&&(logger['warn'](_0x506cc1['qreUh']),global[_0x5d9198(0x1fa)]=![]);!(_0x506cc1[_0x5d9198(0x200)](_0x4e071d[_0x5d9198(0x1e7)],_0x506cc1[_0x5d9198(0x1c8)])||_0x506cc1[_0x5d9198(0x211)](_0x4e071d[_0x5d9198(0x1e7)],0x5e))&&(logger[_0x5d9198(0x1c4)](_0x506cc1[_0x5d9198(0x20a)]),global['accessibilityPlatform']=![]);!_0x506cc1[_0x5d9198(0x1ef)](isUndefined,_0x4e071d[_0x5d9198(0x208)])&&(logger[_0x5d9198(0x1c4)](_0x506cc1[_0x5d9198(0x1de)]),global[_0x5d9198(0x1fa)]=![]);if(!global['accessibilityPlatform']){_0x4e071d[_0x506cc1[_0x5d9198(0x1cc)]]=![];const _0x48dd3e=_0x506cc1[_0x5d9198(0x1cd)](_0x4d1030,_0x506cc1[_0x5d9198(0x1ea)](encodeURIComponent,JSON[_0x5d9198(0x1f9)](_0x4e071d)));_0x2c28e0&&(_0x2c28e0[_0x5d9198(0x1d9)][_0x5d9198(0x1bf)][_0x5d9198(0x1dd)][_0x5d9198(0x1df)]['connectOptions']['wsEndpoint']=_0x48dd3e);}}}catch(_0x266a44){logger['debug'](_0x5d9198(0x220)+util[_0x5d9198(0x219)](_0x266a44));}};function a32_0x12c2(){const _0xdb9405=['deviceName','501136SpYcBW','yIDgN','bestPractice','MZxPc','cOhTr','gQxkh','bstackSdkArgs','../../helpers/helper','MuLLF','ERQPV','83084ALMCBm','accessibilityOptions.scannerVersion','getAccessibilityResults','KXHMd','No\x20summaryResults\x20found.','env','format','getAccessibilityResultsSummary','767268dxlkPo','NGwcL','aWxnj','WebDriver','browser','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','accessibilityOptions.includeIssueType.bestPractice','qZsFt','accessibilityOptions','parse','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','util','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','pGpyb','testInfo','(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','mBVUG','error','browserstack.accessibility','warn','FCKqR','pREhW','BUdoq','gzTLq','scannerProcessingTimeout','browserStackEvaluate','qseLB','dyING','OQAXS','platformValidation','nEjhm','425699dfRtIK','1500867lmzOQe','processAccessibilityCaps','DsjWX','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','42cdCNlN','oprej','method','sMZXX','currentTest','replace','accessibilityOptions.wcagVersion','playwright-chromium','project','LeAFl','use','823396Aklgaf','debug','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','JmTRZ','Playwright','YiDFL','TGnTY','browser_version','scannerVersion','SkJmB','gnYUy','agtkf','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','accessibilityOptions.includeIssueType.needsReview','zWISX','mmrgV','../../helpers/logger','includeIssueType','tyZwS','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','No\x20accessibility\x20results\x20were\x20found.','accessibilityOptions.scannerProcessingTimeout','latest','rblvG','BS_A11Y_JWT','stringify','accessibilityPlatform','mTSNu','browserStackExecuteDriver','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','2382855jcOqiJ','luuJb','pfKQR','accessibilityOptions.authToken','browserName','setAccessibilityCapabilities','name','executeScript','performScan','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.'];a32_0x12c2=function(){return _0xdb9405;};return a32_0x12c2();}
|
|
@@ -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';function a33_0x1290(_0x199fb8,_0x4be319){const _0x385fb8=a33_0x385f();return a33_0x1290=function(_0x129001,_0x152c38){_0x129001=_0x129001-0xf3;let _0x53cff1=_0x385fb8[_0x129001];return _0x53cff1;},a33_0x1290(_0x199fb8,_0x4be319);}const a33_0x1d2fc2=a33_0x1290;function a33_0x385f(){const _0x534d28=['wMEny','.browserstack','../../helpers/test-observability/constants','info','../../helpers/logger','Taieh','accessibilityOptions','bFpCn','3542046ezzUBW','tXdBw','BROWSERSTACK_SETUP_CONFIG_PATH','lsmGr','logLevel','ZeFyR','yufJt','Updated\x20config\x20file\x20name\x20to\x20-\x20','\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();','BROWSERSTACK_TEST_OBSERVABILITY','../../helpers/BrowserStackSetup','../../helpers/testhub/utils','--grep','join','BROWSERSTACK_TEST_ACCESSIBILITY_YML','testContextOptions','../utils/constants','pXyQz','filter','Error\x20in\x20getting\x20funnel\x20data\x20results','getConfigPath','startsWith','debug','BROWSERSTACK_PW_CONFIG_DIR','testObservability','rWRoX','./accessibility-helper','isUndefined','--disable-browserstack-automation','BROWSERSTACK_AUTOMATION','markSDKSetupComplete','pfCpz','isTrue','close','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','playwright-browserstack-sdk.config.js','serializeToYamlString','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','VanpV','../../helpers/helper','dirname','lVmXz','resolve','readFileSync','cwd','getProxyUrl','nestedKeyValue','requirePWModule','XzgPA','accessibility','automation','gAmDc','iaQYM','BJQeA','2822624aGlSEZ','initialize','win32','error','winstonLogger','config','includes','apply','kkpqI','ElCqN','BrowserStack\x20config\x20file\x20not\x20found.','get','--config','6738puvsxn','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','Error\x20in\x20closing\x20playwright','../../helpers/accessibility-automation/helper','length','SVdvE','2910kYBZVA','pw_result.json','Error\x20in\x20deleting\x20playwright\x20results','existsSync','test','filterBrowserstackConfig','parse','aoCgG','homedir','errorMessage','playwright','GaiSB','slice','--config=','Deleting\x20','exports','cliConfig','qmonv','map','../../helpers/test-observability/utils','./reporter/pwUtils','stringify','unlinkSync','skipSessionStatus','JGJnY','gycPE','null','zODfp','util','ShReU','MODULE','env','xMXre','ksQru','npx','exitCode','lzBaP','TsCEG','YVlbo','platform','playwright-browserstack-sdk.config.cjs','cKgCT','split','concat','push','writeFileSync','vBYsN','fYiHl','trim','xssEE','findIndex','path','BROWSERSTACK_RERUN_TESTS','MoWaJ','false','has','728366RgjYjF','1869784UfSlEM','PLAYWRIGHT','934332IwWLef','--disable-test-observability','isTypescriptProject','FShYQ','jfxeL','../../helpers/test-observability/error-handler','USER_CONFIG_DETAILS_PATH','finalExecution','BROWSERSTACK_RERUN','nFSXJ','XYLsa','getPackageType','23141528cdWHxo','inherit','DXpIC'];a33_0x385f=function(){return _0x534d28;};return a33_0x385f();}(function(_0x38d60a,_0x37213d){const _0x48c85e=a33_0x1290,_0x238b48=_0x38d60a();while(!![]){try{const _0x506d44=-parseInt(_0x48c85e(0x133))/0x1+-parseInt(_0x48c85e(0x130))/0x2+-parseInt(_0x48c85e(0x14a))/0x3+parseInt(_0x48c85e(0x131))/0x4+parseInt(_0x48c85e(0xf8))/0x5*(-parseInt(_0x48c85e(0x18d))/0x6)+parseInt(_0x48c85e(0x180))/0x7+parseInt(_0x48c85e(0x13f))/0x8;if(_0x506d44===_0x37213d)break;else _0x238b48['push'](_0x238b48['shift']());}catch(_0x61193){_0x238b48['push'](_0x238b48['shift']());}}}(a33_0x385f,0x99f3a));const fs=require('fs'),path=require('path'),{spawn}=require('child_process'),{format}=require(a33_0x1d2fc2(0x114)),logger=require(a33_0x1d2fc2(0x146))[a33_0x1d2fc2(0x184)],{default:BrowserStackSetup}=require(a33_0x1d2fc2(0x154)),helper=require(a33_0x1d2fc2(0x171)),constants=require(a33_0x1d2fc2(0x15a)),{FRAMEWORKS}=require(a33_0x1d2fc2(0x144)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require(a33_0x1d2fc2(0x10c)),{CrashReporter}=require(a33_0x1d2fc2(0x138)),{getFrameworkVersion}=require(a33_0x1d2fc2(0x10b)),{checkAccessibilityPlatformConfig}=require(a33_0x1d2fc2(0xf5)),{setAccessibilityCapabilities}=require(a33_0x1d2fc2(0x164)),TestHubHandler=require('../../helpers/testhub/testhubHandler'),{shouldProcessEventForTesthub}=require(a33_0x1d2fc2(0x155)),getUserPlaywrightConfig=async(_0x4a697a,_0x1b8795)=>{const _0x2d5a84=a33_0x1d2fc2,_0x2756ed={'VlTnG':function(_0x3f5969){return _0x3f5969();},'YVlbo':function(_0x4ed823,_0x355701){return _0x4ed823(_0x355701);},'aoCgG':function(_0x554a99,_0x24ed48){return _0x554a99(_0x24ed48);},'fYiHl':'resolvedConfigFile','FShYQ':_0x2d5a84(0x105)},_0xa489e7=!helper['isUndefined'](_0x4a697a[_0x2d5a84(0x185)]),_0x3f6edc=_0xa489e7?path[_0x2d5a84(0x174)](process[_0x2d5a84(0x176)](),_0x4a697a[_0x2d5a84(0x185)]):process[_0x2d5a84(0x176)](),{resolveConfigFile:_0x13cde5,resolveConfigLocation:_0x390738}=helper[_0x2d5a84(0x179)][_0x2d5a84(0x187)](null,_0x2756ed['VlTnG'](getConfigLoaderPath)),_0x8a3b90=_0x13cde5?_0x2756ed[_0x2d5a84(0x11e)](_0x13cde5,_0x3f6edc):helper[_0x2d5a84(0x178)](_0x2756ed[_0x2d5a84(0xff)](_0x390738,_0x3f6edc),[_0x2756ed[_0x2d5a84(0x127)]]);let _0x18ce1c={};if(_0xa489e7){const _0x17edc6=_0x1b8795[_0x2d5a84(0x12a)](_0x32627e=>_0x32627e===_0x2d5a84(0x18c)||_0x32627e==='-c'||_0x32627e[_0x2d5a84(0x15f)](_0x2d5a84(0x105)));_0x1b8795['splice'](_0x17edc6,_0x1b8795[_0x17edc6]['startsWith'](_0x2756ed[_0x2d5a84(0x136)])?0x1:0x2);}const _0x41e73f={};return _0x41e73f[_0x2d5a84(0x12b)]=_0x8a3b90,_0x41e73f[_0x2d5a84(0x185)]=_0x18ce1c,_0x41e73f;},handleO11yRerun=_0x449656=>{const _0x13a47b=a33_0x1d2fc2,_0x51e82b={};_0x51e82b[_0x13a47b(0x13d)]=function(_0x931c61,_0x29acfd){return _0x931c61!==_0x29acfd;},_0x51e82b[_0x13a47b(0x119)]=_0x13a47b(0x112),_0x51e82b['gycPE']=_0x13a47b(0x156);const _0x16d411=_0x51e82b,_0x4af287=helper[_0x13a47b(0x16a)](process['env'][_0x13a47b(0x13b)]);if(_0x4af287){const _0x3c2286=process['env'][_0x13a47b(0x12c)],_0x27e79e=[];if(_0x16d411[_0x13a47b(0x13d)](_0x3c2286,_0x16d411[_0x13a47b(0x119)])&&!helper[_0x13a47b(0x165)](_0x3c2286)){_0x3c2286['split'](',')[_0x13a47b(0x10a)](_0x33a1c0=>{const _0x32d05a=_0x13a47b;_0x27e79e[_0x32d05a(0x124)]('('+_0x33a1c0[_0x32d05a(0x128)]()+')');});const _0x3a7851='^'+_0x27e79e['join']('|')+'$';_0x449656[_0x13a47b(0x124)](_0x16d411[_0x13a47b(0x111)],_0x3a7851);}}},spawnOriginalProcess=_0x57f7b2=>{const _0x4aea09=a33_0x1d2fc2,_0x16ee32={'CUwfF':function(_0x169691,_0xce87e6,_0x1d3385,_0xa81113){return _0x169691(_0xce87e6,_0x1d3385,_0xa81113);},'FuBmt':_0x4aea09(0x11a),'tXdBw':_0x4aea09(0x102),'GaiSB':function(_0x36e300,_0x5e86bc){return _0x36e300===_0x5e86bc;},'MGkwZ':'win32','qmonv':_0x4aea09(0x140)};_0x16ee32['CUwfF'](spawn,_0x16ee32['FuBmt'],[_0x16ee32[_0x4aea09(0x14b)],..._0x57f7b2[_0x4aea09(0x104)](0x1)],{'shell':_0x16ee32[_0x4aea09(0x103)](process[_0x4aea09(0x11f)],_0x16ee32['MGkwZ']),'stdio':_0x16ee32[_0x4aea09(0x109)],'cwd':process[_0x4aea09(0x176)]()});},isTestCommand=(_0x14c8d8,_0x15fe0d)=>{const _0x3677ac=a33_0x1d2fc2,_0x47a64c={};_0x47a64c['ShReU']=function(_0x2be27f,_0x27f5f9){return _0x2be27f>_0x27f5f9;},_0x47a64c[_0x3677ac(0x126)]=function(_0xd9017b,_0x2cfd49){return _0xd9017b===_0x2cfd49;},_0x47a64c['xMXre']=_0x3677ac(0xfc);const _0x206e0f=_0x47a64c;if(_0x206e0f[_0x3677ac(0x115)](_0x15fe0d[_0x3677ac(0xf6)],0x1)&&_0x206e0f[_0x3677ac(0x126)](_0x15fe0d[0x1],_0x206e0f[_0x3677ac(0x118)]))return!![];return![];};async function run(_0x133336,_0x6845c1){const _0xc23aea=a33_0x1d2fc2,_0x57ff6d={'BJQeA':_0xc23aea(0x143),'wMEny':_0xc23aea(0xf9),'HXAah':function(_0x300564,_0x326cac){return _0x300564+_0x326cac;},'xssEE':_0xc23aea(0x15d),'pfCpz':'4|2|3|0|5|1|7|6|8','bFpCn':function(_0x1685b4){return _0x1685b4();},'gAmDc':function(_0x3d4af5,_0x269485){return _0x3d4af5+_0x269485;},'VanpV':_0xc23aea(0xf4),'WInZm':_0xc23aea(0x166),'kkpqI':_0xc23aea(0x12e),'rWRoX':_0xc23aea(0x134),'jfxeL':function(_0x58cd3d,_0x3d8a07){return _0x58cd3d>=_0x3d8a07;},'nFSXJ':_0xc23aea(0xfa),'Taieh':function(_0x3483d2,_0x457bf4,_0x3587a3){return _0x3483d2(_0x457bf4,_0x3587a3);},'iaQYM':function(_0x160e65,_0x4d0fde){return _0x160e65(_0x4d0fde);},'ZeFyR':_0xc23aea(0x18a),'cKgCT':_0xc23aea(0x17c),'fqUHS':function(_0x4c547c,_0x302059){return _0x4c547c!=_0x302059;},'JGJnY':function(_0x1e7f47,_0x2eb3f8,_0x3d403c){return _0x1e7f47(_0x2eb3f8,_0x3d403c);},'yufJt':function(_0x43ee72,_0x37b630){return _0x43ee72===_0x37b630;},'lsmGr':'true','YyiDR':function(_0xf614e,_0x33040e){return _0xf614e(_0x33040e);},'WWlPL':'browserstackSetupConfig.json','lVmXz':_0xc23aea(0x120),'MoWaJ':_0xc23aea(0x16d),'abWmP':function(_0x3847db,_0x189bd6){return _0x3847db-_0x189bd6;},'pXyQz':_0xc23aea(0x151),'lzBaP':function(_0x3358f5,_0x4eed65){return _0x3358f5>_0x4eed65;},'TsCEG':function(_0xb5e841,_0x380766){return _0xb5e841+_0x380766;},'DXpIC':function(_0x1bf571,_0xafdcf,_0x2a4acd,_0x32814e){return _0x1bf571(_0xafdcf,_0x2a4acd,_0x32814e);},'aajpe':'npx','SVdvE':_0xc23aea(0x102),'lUNDk':_0xc23aea(0xfc),'XzgPA':'--config','MDLzK':function(_0x4c3b5b,_0x27c3bd){return _0x4c3b5b===_0x27c3bd;},'ElCqN':_0xc23aea(0x182),'zODfp':_0xc23aea(0x140),'aEklt':_0xc23aea(0x16b)};!helper['isFalse'](process[_0xc23aea(0x117)]['BROWSERSTACK_AUTOMATION'])&&(process['env'][_0xc23aea(0x167)]=!![]);process['argv'][_0xc23aea(0x186)](_0x57ff6d['WInZm'])&&(process['env'][_0xc23aea(0x167)]=_0x57ff6d[_0xc23aea(0x188)],_0x6845c1=_0x6845c1[_0xc23aea(0x15c)](_0x37273d=>_0x37273d!==_0xc23aea(0x166)));const _0x2b5f8f=_0x6845c1['indexOf'](_0x57ff6d[_0xc23aea(0x163)]);_0x57ff6d[_0xc23aea(0x137)](_0x2b5f8f,0x0)&&(process[_0xc23aea(0x117)]['BROWSERSTACK_TEST_OBSERVABILITY']=_0x57ff6d['kkpqI'],_0x6845c1=_0x6845c1['filter'](_0x40b1d9=>_0x40b1d9!=='--disable-test-observability'));try{const _0x408fa0=path[_0xc23aea(0x157)](helper[_0xc23aea(0x100)](),_0x57ff6d[_0xc23aea(0x17f)],_0x57ff6d[_0xc23aea(0x142)]);fs[_0xc23aea(0xfb)](_0x408fa0)&&fs[_0xc23aea(0x10e)](_0x408fa0);}catch(_0x50a540){logger['debug'](_0x57ff6d[_0xc23aea(0x17d)](_0x57ff6d[_0xc23aea(0x13c)],_0x50a540));}if(!_0x57ff6d[_0xc23aea(0x147)](isTestCommand,_0x133336,_0x6845c1)){_0x57ff6d[_0xc23aea(0x17e)](spawnOriginalProcess,_0x6845c1);return;}const _0xae0428=new BrowserStackSetup(_0x133336,FRAMEWORKS['PLAYWRIGHT']);if(!_0xae0428[_0xc23aea(0x185)]){logger[_0xc23aea(0x183)](_0x57ff6d[_0xc23aea(0x14f)]);return;}await _0xae0428[_0xc23aea(0x181)]();!helper['isUndefined'](_0xae0428[_0xc23aea(0x108)])&&_0xae0428[_0xc23aea(0x108)][_0xc23aea(0x12f)](_0x57ff6d[_0xc23aea(0x121)])&&(process[_0xc23aea(0x117)][_0xc23aea(0x167)]=_0xae0428['cliConfig'][_0xc23aea(0x18b)](_0x57ff6d['cKgCT'])||!![]);_0x57ff6d['fqUHS'](_0xae0428[_0xc23aea(0x185)][_0xc23aea(0x162)],null)&&!helper[_0xc23aea(0x16a)](process[_0xc23aea(0x117)][_0xc23aea(0x153)])&&(process[_0xc23aea(0x117)][_0xc23aea(0x153)]=process[_0xc23aea(0x117)][_0xc23aea(0x153)]||_0xae0428[_0xc23aea(0x185)][_0xc23aea(0x162)]);const _0x34286c=!helper['isFalse'](process['env'][_0xc23aea(0x153)]);let _0xad8219=![];_0xae0428[_0xc23aea(0x185)][_0xc23aea(0x17b)]&&(_0xad8219=!![],process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0xae0428[_0xc23aea(0x185)][_0xc23aea(0x17b)]);_0xae0428[_0xc23aea(0x185)][_0xc23aea(0x148)]&&(process[_0xc23aea(0x117)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON[_0xc23aea(0x10d)](_0xae0428[_0xc23aea(0x185)]['accessibilityOptions']));const _0x1ae8f2=_0x6845c1[_0xc23aea(0x123)](),_0x20e4e3=await _0x57ff6d[_0xc23aea(0x110)](getUserPlaywrightConfig,_0x133336,_0x6845c1);if(helper[_0xc23aea(0x165)](_0x20e4e3)){_0x57ff6d[_0xc23aea(0x17e)](spawnOriginalProcess,_0x1ae8f2);return;}const _0x2259b2=_0x20e4e3[_0xc23aea(0x12b)]?path['dirname'](_0x20e4e3[_0xc23aea(0x12b)]):process[_0xc23aea(0x176)]();process[_0xc23aea(0x117)][_0xc23aea(0x161)]=_0x2259b2,await TestHubHandler['launchBuild'](FRAMEWORKS[_0xc23aea(0x132)],_0xae0428);_0x34286c&&_0x57ff6d[_0xc23aea(0x17e)](handleO11yRerun,_0x6845c1);let _0x21a7aa=_0x57ff6d['yufJt'](process[_0xc23aea(0x117)][_0xc23aea(0x158)],_0x57ff6d[_0xc23aea(0x14d)]);_0x21a7aa=_0x21a7aa||_0x57ff6d['iaQYM'](checkAccessibilityPlatformConfig,_0xae0428[_0xc23aea(0x185)]),process[_0xc23aea(0x117)][_0xc23aea(0x158)]=_0x21a7aa;_0x21a7aa&&_0x57ff6d['YyiDR'](setAccessibilityCapabilities,_0xae0428[_0xc23aea(0x185)]);const _0x1f1de4=path['join'](_0x20e4e3[_0xc23aea(0x12b)]?path[_0xc23aea(0x172)](_0x20e4e3[_0xc23aea(0x12b)]):process[_0xc23aea(0x176)](),_0x57ff6d['WWlPL']);fs['writeFileSync'](_0x1f1de4,helper[_0xc23aea(0x16e)](_0xae0428[_0xc23aea(0x185)])),process[_0xc23aea(0x117)][_0xc23aea(0x14c)]=_0x1f1de4,helper['clearTempPWConfig']();let _0x28b353='';_0x57ff6d[_0xc23aea(0x150)](helper[_0xc23aea(0x13e)](),constants['PACKAGE_TYPE'][_0xc23aea(0x116)])?_0x28b353=_0x57ff6d[_0xc23aea(0x173)]:_0x28b353=_0x57ff6d[_0xc23aea(0x12d)];let _0x47070a='';if(helper[_0xc23aea(0x135)](_0x20e4e3[_0xc23aea(0x12b)])){_0x47070a=_0xc23aea(0x16f);const _0x32ad22=_0x28b353['split']('.');_0x32ad22[_0x57ff6d['abWmP'](_0x32ad22[_0xc23aea(0xf6)],0x1)]='ts',_0x28b353=_0x32ad22[_0xc23aea(0x157)]('.'),logger[_0xc23aea(0x160)](_0x57ff6d[_0xc23aea(0x17d)](_0x57ff6d[_0xc23aea(0x15b)],_0x28b353));}else _0x47070a=_0xc23aea(0x16c);const _0x157962=path['join'](_0x20e4e3[_0xc23aea(0x12b)]?path[_0xc23aea(0x172)](_0x20e4e3[_0xc23aea(0x12b)]):process[_0xc23aea(0x176)](),_0x28b353);let _0x1b3268=_0x20e4e3['path']?_0x20e4e3[_0xc23aea(0x12b)]:'';_0x1b3268=_0x57ff6d[_0xc23aea(0x11c)](_0x1b3268[_0xc23aea(0xf6)],0x0)?path[_0xc23aea(0x174)](_0x1b3268):'',process[_0xc23aea(0x117)][_0xc23aea(0x139)]=_0x1b3268;const _0x1fe359=helper[_0xc23aea(0x177)](_0xae0428[_0xc23aea(0x185)]);_0x1fe359&&(_0x47070a=_0x57ff6d[_0xc23aea(0x11d)](_0xc23aea(0xf3)+_0x1fe359+_0xc23aea(0x152),_0x47070a));helper[_0xc23aea(0xfd)]({},_0x6845c1),fs[_0xc23aea(0x125)](_0x157962,_0x47070a),helper[_0xc23aea(0x168)]();const _0x3f7004=_0x57ff6d[_0xc23aea(0x141)](spawn,_0x57ff6d['aajpe'],[_0x57ff6d[_0xc23aea(0xf7)],_0x57ff6d['lUNDk'],_0x57ff6d[_0xc23aea(0x17a)],_0x157962,..._0x6845c1['slice'](0x2)],{'shell':_0x57ff6d['MDLzK'](process[_0xc23aea(0x11f)],_0x57ff6d[_0xc23aea(0x189)]),'stdio':_0x57ff6d[_0xc23aea(0x113)],'cwd':process[_0xc23aea(0x176)](),'env':Object['assign']({},process[_0xc23aea(0x117)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0xc23aea(0x15e)](_0x133336),'BROWSERSTACK_SKIP_SESSION_STATUS':_0xae0428[_0xc23aea(0x185)]['testContextOptions'][_0xc23aea(0x10f)],'BROWSERSTACK_SKIP_SESSION_NAME':_0xae0428['config'][_0xc23aea(0x159)]['skipSessionName'],'BROWSERSTACK_LOG_LEVEL':_0xae0428[_0xc23aea(0x185)][_0xc23aea(0x14e)]})}),_0x597940=()=>{const _0x45d0fe=_0xc23aea;try{const _0x22551a=path[_0x45d0fe(0x157)](helper['homedir'](),_0x57ff6d['BJQeA'],_0x57ff6d['wMEny']);if(fs[_0x45d0fe(0xfb)](_0x22551a)){let _0x1bf10d=fs[_0x45d0fe(0x175)](_0x22551a);_0x1bf10d=JSON[_0x45d0fe(0xfe)](_0x1bf10d),_0xae0428[_0x45d0fe(0x101)]=_0x1bf10d,fs[_0x45d0fe(0x10e)](_0x22551a);}}catch(_0xf9f7c5){logger[_0x45d0fe(0x160)](_0x57ff6d['HXAah'](_0x57ff6d[_0x45d0fe(0x129)],_0xf9f7c5));}};_0x3f7004['on'](_0x57ff6d['aEklt'],async _0xe220ee=>{const _0x28d959=_0xc23aea;try{const _0x19e837=_0x57ff6d[_0x28d959(0x169)][_0x28d959(0x122)]('|');let _0x20fe18=0x0;while(!![]){switch(_0x19e837[_0x20fe18++]){case'0':process[_0x28d959(0x11b)]=_0xe220ee;continue;case'1':logger[_0x28d959(0x145)](_0x28d959(0x106)+_0x157962);continue;case'2':await TestHubHandler['stop']();continue;case'3':await helper[_0x28d959(0x13a)](_0xae0428);continue;case'4':_0x57ff6d[_0x28d959(0x149)](_0x597940);continue;case'5':logger[_0x28d959(0x160)]('Playwright\x20process\x20exited\x20with\x20code\x20'+_0xe220ee);continue;case'6':logger[_0x28d959(0x160)](_0x28d959(0x106)+_0x1f1de4);continue;case'7':fs[_0x28d959(0x10e)](_0x157962);continue;case'8':fs['unlinkSync'](_0x1f1de4);continue;}break;}}catch(_0x413e22){logger[_0x28d959(0x160)](_0x57ff6d[_0x28d959(0x17d)](_0x57ff6d[_0x28d959(0x170)],_0x413e22));}});}module[a33_0x1d2fc2(0x107)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a34_0x4a5a25=a34_0x5206;(function(_0x315b33,_0x363387){const _0x351860=a34_0x5206,_0x5b7870=_0x315b33();while(!![]){try{const _0x13afab=parseInt(_0x351860(0x19d))/0x1*(-parseInt(_0x351860(0x1bb))/0x2)+parseInt(_0x351860(0x1a9))/0x3*(parseInt(_0x351860(0x1b7))/0x4)+-parseInt(_0x351860(0x1a8))/0x5*(-parseInt(_0x351860(0x19b))/0x6)+-parseInt(_0x351860(0x1a0))/0x7*(-parseInt(_0x351860(0x19e))/0x8)+-parseInt(_0x351860(0x1ac))/0x9*(-parseInt(_0x351860(0x1b9))/0xa)+parseInt(_0x351860(0x198))/0xb*(parseInt(_0x351860(0x1af))/0xc)+parseInt(_0x351860(0x19a))/0xd*(-parseInt(_0x351860(0x1a2))/0xe);if(_0x13afab===_0x363387)break;else _0x5b7870['push'](_0x5b7870['shift']());}catch(_0x4e546b){_0x5b7870['push'](_0x5b7870['shift']());}}}(a34_0x1448,0xba266));function a34_0x5206(_0x4aaa3c,_0x2ca62a){const _0x144859=a34_0x1448();return a34_0x5206=function(_0x52068b,_0x5e2376){_0x52068b=_0x52068b-0x198;let _0x1a1eb4=_0x144859[_0x52068b];return _0x1a1eb4;},a34_0x5206(_0x4aaa3c,_0x2ca62a);}const child_process=require(a34_0x4a5a25(0x1b3)),{FRAMEWORKS}=require(a34_0x4a5a25(0x1b8)),{getFrameworkVersion,debug}=require('../../helpers/test-observability/utils'),helper=require(a34_0x4a5a25(0x1a3)),{getLoadUtilsPath,getForkProcessPath}=require(a34_0x4a5a25(0x19f)),logger=require('../../helpers/logger')[a34_0x4a5a25(0x1aa)];function a34_0x1448(){const _0x49b392=['VudnP','error','compareVersions','OpHHj','66ijLXsv','Call\x20to\x20child\x20fork\x20with\x20args\x20','689RYjHru','1182ShsIiQ','env','277oPBKNX','2584ZueKkN','./reporter/pwUtils','31689vYCdsG','sWMhB','739802TFgyWu','../../helpers/helper','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','requirePWModule','HbKeP','apply','1205aJRCrL','174tbWDhw','winstonLogger','MIdtF','948168tppuGm','Not\x20able\x20to\x20import\x20globalSetup','Running\x20existing\x20global\x20setup','2686188fszTUi','exports','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','\x20is\x20not\x20found','child_process','PLAYWRIGHT','fork','HIaiv','54212uQpepV','../../helpers/test-observability/constants','110WZGhgW','./mock-process.js','8914sQlsvN','function'];a34_0x1448=function(){return _0x49b392;};return a34_0x1448();}module[a34_0x4a5a25(0x1b0)]=async function(_0x25434e){const _0x131a27=a34_0x4a5a25,_0x4924bc={'sWMhB':function(_0x5bc474,_0x550903){return _0x5bc474(_0x550903);},'ecwue':function(_0x1de9dd){return _0x1de9dd();},'HbKeP':_0x131a27(0x1ba),'bzZyH':function(_0x22610e){return _0x22610e();},'Felnt':_0x131a27(0x1ae),'VvgLa':function(_0x4916d3,_0x432f2e){return _0x4916d3>=_0x432f2e;},'VudnP':'1.33.0','MIdtF':function(_0x58dfca,_0x3e6344,_0x4d4531){return _0x58dfca(_0x3e6344,_0x4d4531);},'ZDjPD':function(_0x3c3b4c,_0xd86758){return _0x3c3b4c!==_0xd86758;},'Vvyxa':_0x131a27(0x1bc),'HIaiv':_0x131a27(0x1ad),'OpHHj':function(_0x1c3c81,_0x297fb3){return _0x1c3c81(_0x297fb3);}},_0x1142ab=child_process[_0x131a27(0x1b5)];child_process[_0x131a27(0x1b5)]=function(){const _0x30334e=_0x131a27;return _0x4924bc[_0x30334e(0x1a1)](debug,_0x30334e(0x199)+arguments[0x0]),arguments[0x0]['includes'](_0x4924bc['ecwue'](getForkProcessPath))?arguments[0x0]=require['resolve'](_0x4924bc[_0x30334e(0x1a6)]):logger[_0x30334e(0x1be)]('Path\x20'+_0x4924bc['bzZyH'](getForkProcessPath)+_0x30334e(0x1b2)),_0x1142ab['apply'](null,arguments);};if(process[_0x131a27(0x19c)][_0x131a27(0x1a4)]){_0x4924bc['sWMhB'](debug,_0x4924bc['Felnt']);try{const {loadGlobalHook:_0x555658}=helper[_0x131a27(0x1a5)][_0x131a27(0x1a7)](null,_0x4924bc['bzZyH'](getLoadUtilsPath)),_0x54d34a=_0x4924bc[_0x131a27(0x1a1)](getFrameworkVersion,FRAMEWORKS[_0x131a27(0x1b4)]);let _0x209695=_0x25434e;if(_0x4924bc['VvgLa'](helper[_0x131a27(0x1bf)](_0x54d34a,_0x4924bc[_0x131a27(0x1bd)]),0x0)){const _0x4f5111={};_0x4f5111['config']=_0x25434e,_0x209695=_0x4f5111;}const _0x1745e3=await _0x4924bc[_0x131a27(0x1ab)](_0x555658,_0x209695,process[_0x131a27(0x19c)][_0x131a27(0x1a4)]);if(_0x4924bc['ZDjPD'](typeof _0x1745e3,_0x4924bc['Vvyxa']))throw new Error(_0x4924bc[_0x131a27(0x1b6)]);return _0x1745e3[_0x131a27(0x1a7)](null,arguments);}catch(_0x118ba0){_0x4924bc[_0x131a27(0x1c0)](debug,_0x131a27(0x1b1)+_0x118ba0['toString']());}}};
|