browserstack-node-sdk 1.32.13 → 1.32.15
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/templates/gcpresources/gkecluster.json +0 -3
- 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/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a29_0x3dc6d2=a29_0x5d5c;(function(_0x260205,_0x213af8){const _0x198309=a29_0x5d5c,_0x52fa59=_0x260205();while(!![]){try{const _0x3bb955=-parseInt(_0x198309(0x170))/0x1*(parseInt(_0x198309(0x1bf))/0x2)+-parseInt(_0x198309(0x185))/0x3+parseInt(_0x198309(0x196))/0x4*(-parseInt(_0x198309(0x1b9))/0x5)+-parseInt(_0x198309(0x194))/0x6*(parseInt(_0x198309(0x1ac))/0x7)+-parseInt(_0x198309(0x17b))/0x8+-parseInt(_0x198309(0x1a4))/0x9+parseInt(_0x198309(0x1b8))/0xa;if(_0x3bb955===_0x213af8)break;else _0x52fa59['push'](_0x52fa59['shift']());}catch(_0x5ece36){_0x52fa59['push'](_0x52fa59['shift']());}}}(a29_0x22c9,0x3b7a9));function a29_0x5d5c(_0x289325,_0x51826a){const _0x22c924=a29_0x22c9();return a29_0x5d5c=function(_0x5d5cfe,_0x2795b2){_0x5d5cfe=_0x5d5cfe-0x170;let _0x28dc24=_0x22c924[_0x5d5cfe];return _0x28dc24;},a29_0x5d5c(_0x289325,_0x51826a);}const {v4:uuidv4}=require(a29_0x3dc6d2(0x17a)),{name,version}=require(a29_0x3dc6d2(0x1b6)),logPatcher=require(a29_0x3dc6d2(0x1b4)),BSTestOpsPatcher=new logPatcher({}),logReportingAPI=require(a29_0x3dc6d2(0x179)),BSTestOpsLogger=new logReportingAPI({}),{debug,isTestObservabilitySession,isInternalHook}=require(a29_0x3dc6d2(0x1b2)),{consoleHolder}=require(a29_0x3dc6d2(0x1c7)),{getPlatformVersion}=require(a29_0x3dc6d2(0x1aa));console={},Object['keys'](consoleHolder)[a29_0x3dc6d2(0x1a3)](_0x5f3dca=>{console[_0x5f3dca]=(..._0xacf6e0)=>{BSTestOpsPatcher[_0x5f3dca](..._0xacf6e0);};}),exports[a29_0x3dc6d2(0x18b)]=()=>{const _0x59c7f3=a29_0x3dc6d2,_0x5a9ecd={'syDYX':_0x59c7f3(0x1c8),'fuQYX':function(_0x4b9841){return _0x4b9841();}};return{'ci':_0x5a9ecd['syDYX'],'key':_0x5a9ecd[_0x59c7f3(0x1c2)](uuidv4),'version':version,'collector':_0x59c7f3(0x180)+name};},exports['getHookDetails']=_0x49defb=>{const _0x29d1e5=a29_0x3dc6d2,_0x4c4047={};_0x4c4047[_0x29d1e5(0x1ae)]=function(_0x229764,_0x10b3eb){return _0x229764!==_0x10b3eb;},_0x4c4047[_0x29d1e5(0x171)]='string',_0x4c4047[_0x29d1e5(0x19d)]=function(_0xf455ec,_0x30d1ed){return _0xf455ec!==_0x30d1ed;},_0x4c4047[_0x29d1e5(0x18d)]=_0x29d1e5(0x178),_0x4c4047[_0x29d1e5(0x1a0)]=_0x29d1e5(0x195);const _0xd41025=_0x4c4047;if(!_0x49defb||_0xd41025[_0x29d1e5(0x1ae)](typeof _0x49defb,_0xd41025[_0x29d1e5(0x171)]))return[null,null];if(_0xd41025[_0x29d1e5(0x19d)](_0x49defb[_0x29d1e5(0x18a)](_0xd41025[_0x29d1e5(0x18d)]),-0x1)){const _0xd46cd5=_0x49defb[_0x29d1e5(0x1bd)](_0xd41025[_0x29d1e5(0x18d)]);return[_0xd46cd5[0x0]['slice'](0x0,-0x1)[_0x29d1e5(0x1bd)]('\x22')[0x1],_0xd46cd5[0x1][_0x29d1e5(0x183)](0x1)];}else{if(_0xd41025[_0x29d1e5(0x19d)](_0x49defb[_0x29d1e5(0x18a)](_0xd41025[_0x29d1e5(0x1a0)]),-0x1)){const _0x3c2df3=_0x49defb[_0x29d1e5(0x1bd)](_0xd41025[_0x29d1e5(0x1a0)]);return[_0x3c2df3[0x0]['slice'](0x0,-0x1)[_0x29d1e5(0x1bd)]('\x22')[0x1],_0x49defb];}}return[null,null];},exports[a29_0x3dc6d2(0x181)]=_0x4987d0=>{const _0x5498fc=a29_0x3dc6d2,_0x36ccdc={'cpEJd':function(_0x23d9a,_0x53ef1d){return _0x23d9a(_0x53ef1d);},'cGKdn':_0x5498fc(0x1b1),'nMUHK':'_afterAll','uKtpl':'_beforeEach','Unoqe':_0x5498fc(0x19c)};if(!_0x4987d0||!_0x4987d0[_0x5498fc(0x1bc)])return[];const _0x253b08=[];return[_0x36ccdc['cGKdn'],_0x36ccdc[_0x5498fc(0x187)],_0x36ccdc['uKtpl'],_0x36ccdc[_0x5498fc(0x1c1)]][_0x5498fc(0x1a3)](_0x23970b=>{const _0x4b100b=_0x5498fc,_0x2ccf0a={'ZFlsh':function(_0x2854db,_0x5545b6){const _0x501de1=a29_0x5d5c;return _0x36ccdc[_0x501de1(0x1af)](_0x2854db,_0x5545b6);}},_0x265014=_0x4987d0[_0x4b100b(0x1bc)][_0x23970b]||[];_0x265014[_0x4b100b(0x1a3)](_0x4f87c9=>{const _0x18c6d7=_0x4b100b;_0x4f87c9[_0x18c6d7(0x1c3)]&&!_0x2ccf0a[_0x18c6d7(0x193)](isInternalHook,_0x4f87c9['fn'])&&_0x253b08[_0x18c6d7(0x18f)](_0x4f87c9[_0x18c6d7(0x1c3)]);});}),[..._0x253b08,...exports[_0x5498fc(0x181)](_0x4987d0[_0x5498fc(0x1bc)])];},exports[a29_0x3dc6d2(0x186)]=_0x5ef4ef=>{const _0x48a7b6=a29_0x3dc6d2,_0x43c84c={'IbsCU':function(_0x598e4b){return _0x598e4b();},'gYoJr':function(_0x250b76,_0x2f1c67){return _0x250b76===_0x2f1c67;},'EBusV':_0x48a7b6(0x19c),'SwRit':function(_0x35295c){return _0x35295c();},'vnNxf':_0x48a7b6(0x1b1),'XLlnp':'_afterAll','tEleL':_0x48a7b6(0x19a)};if(!_0x5ef4ef||!_0x5ef4ef[_0x48a7b6(0x1bc)])return;[_0x43c84c[_0x48a7b6(0x17d)],_0x43c84c[_0x48a7b6(0x17f)],_0x43c84c[_0x48a7b6(0x176)],_0x43c84c[_0x48a7b6(0x1b3)]]['forEach'](_0x2a81e1=>{const _0x5580fa=_0x48a7b6,_0x237508={'evjpP':function(_0x1d0cda){const _0xe43a9d=a29_0x5d5c;return _0x43c84c[_0xe43a9d(0x1a5)](_0x1d0cda);},'TAZEt':function(_0x2b9af7,_0x4808e5){return _0x43c84c['gYoJr'](_0x2b9af7,_0x4808e5);},'STBrD':_0x43c84c[_0x5580fa(0x1b3)],'yMEVy':function(_0xd8aa72){return _0x43c84c['SwRit'](_0xd8aa72);}},_0x18b6fc=_0x5ef4ef['parent'][_0x2a81e1]||[];_0x18b6fc[_0x5580fa(0x1a3)](_0x1e48f3=>{const _0x31fd8b=_0x5580fa;if(!_0x1e48f3[_0x31fd8b(0x1c3)])_0x1e48f3[_0x31fd8b(0x1c3)]=_0x237508[_0x31fd8b(0x188)](uuidv4);else _0x1e48f3['markedStatus']&&_0x237508['TAZEt'](_0x2a81e1,_0x237508['STBrD'])&&(_0x1e48f3['hookAnalyticsId']=_0x237508[_0x31fd8b(0x17c)](uuidv4),delete _0x1e48f3[_0x31fd8b(0x1a8)]);});}),exports['mapTestHooks'](_0x5ef4ef[_0x48a7b6(0x1bc)]);},exports[a29_0x3dc6d2(0x1bb)]=async(_0x1cf907,_0xed8efc)=>{const _0x4df766=a29_0x3dc6d2,_0x3ffab6={'QdtAo':function(_0x8833c4){return _0x8833c4();},'EhWoj':function(_0x59659f,_0x49ae2f){return _0x59659f===_0x49ae2f;},'DZGTH':'browserstack','FUuCH':_0x4df766(0x1a7),'JDVHX':_0x4df766(0x1ad),'qTOzN':_0x4df766(0x192),'JXNHc':_0x4df766(0x173),'eByej':function(_0x2ab5df,_0x361690){return _0x2ab5df(_0x361690);},'NwHzW':_0x4df766(0x19b),'mQoxO':_0x4df766(0x199),'uZvpk':function(_0x241531,_0x30e8fa){return _0x241531(_0x30e8fa);}};try{if(!_0x3ffab6['QdtAo'](isTestObservabilitySession))return;const _0x493163=await _0x1cf907[_0x4df766(0x1ab)](),_0x1c3c36=await _0x1cf907[_0x4df766(0x1c4)](),_0x17c510={},_0x54f822=Object[_0x4df766(0x1a9)](_0x1c3c36[_0x4df766(0x1ab)]()[_0x4df766(0x1c0)]),_0x2d8595={'product':_0x3ffab6['EhWoj'](global[_0x4df766(0x190)],_0x3ffab6[_0x4df766(0x198)])?_0x54f822[_0x3ffab6['FUuCH']]||_0x54f822[_0x3ffab6[_0x4df766(0x1a1)]]?_0x3ffab6[_0x4df766(0x19e)]:_0x3ffab6[_0x4df766(0x172)]:null,'capabilities':_0x54f822,'platform':_0x493163[_0x4df766(0x1ba)](),'platform_version':_0x3ffab6[_0x4df766(0x1a6)](getPlatformVersion,_0x3ffab6[_0x4df766(0x1c5)](global['__cloud_provider___'],_0x3ffab6['DZGTH'])),'browser':_0x493163[_0x4df766(0x184)](),'browser_version':_0x493163[_0x4df766(0x1be)](),'session_id':_0x1c3c36['toJSON']()};global[_0x4df766(0x190)]?_0x17c510[global[_0x4df766(0x190)]]=_0x2d8595:_0x17c510[_0x3ffab6[_0x4df766(0x1b0)]]=_0x2d8595,process[_0x4df766(0x189)]('bs:addPlatformDetails:'+process[_0x4df766(0x177)],{'timestamp':new Date()[_0x4df766(0x174)](),'level':null,'message':null,'kind':_0x3ffab6['mQoxO'],'http_response':_0x17c510,'uuid':_0xed8efc});}catch(_0x247fc6){_0x3ffab6[_0x4df766(0x1b7)](debug,'Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20'+_0x247fc6);}},exports['getHookSkippedTests']=_0xc41656=>{const _0x1e56cb=a29_0x3dc6d2,_0x184e62={};_0x184e62[_0x1e56cb(0x1b5)]=function(_0x4b0a26,_0x1cbaf3){return _0x4b0a26!==_0x1cbaf3;},_0x184e62[_0x1e56cb(0x1c6)]='hook',_0x184e62[_0x1e56cb(0x19f)]='passed',_0x184e62[_0x1e56cb(0x1a2)]='failed';const _0xb39c82=_0x184e62,_0x1aa991=_0xc41656['suites']['reduce']((_0x2992c6,_0x4072e6)=>{const _0x3e74c2=_0x1e56cb,_0x53fb37=exports[_0x3e74c2(0x18e)](_0x4072e6);return _0x53fb37&&(_0x2992c6=_0x2992c6[_0x3e74c2(0x18c)](_0x53fb37)),_0x2992c6;},[]),_0x217f80=_0xc41656[_0x1e56cb(0x17e)][_0x1e56cb(0x175)](_0x34edae=>{const _0x45f345=_0x1e56cb,_0x51de5e=_0xb39c82[_0x45f345(0x1b5)](_0x34edae[_0x45f345(0x197)],_0xb39c82['tRilA'])&&!_0x34edae['markedStatus']&&_0xb39c82['uBmdo'](_0x34edae[_0x45f345(0x191)],_0xb39c82['FtZnd'])&&_0xb39c82[_0x45f345(0x1b5)](_0x34edae[_0x45f345(0x191)],_0xb39c82[_0x45f345(0x1a2)])&&!_0x34edae[_0x45f345(0x182)];return _0x51de5e;});return _0x217f80['concat'](_0x1aa991);};function a29_0x22c9(){const _0x46f54f=['tRilA','../../../helpers/test-observability/constants','generic','49821schOrf','QVjYM','JXNHc','automate','toISOString','filter','tEleL','pid','hook:','../../utils/logReportingAPI','uuid','1424448RoUrfm','yMEVy','vnNxf','tests','XLlnp','js-','getHooksForTest','pending','substring','getBrowserName','837966UapLcc','mapTestHooks','nMUHK','evjpP','emit','indexOf','getTestEnv','concat','kjgXp','getHookSkippedTests','push','__cloud_provider___','state','app-automate','ZFlsh','6GKIyVR','hook','358084jJSmCD','type','DZGTH','TEST_PLATFORM','_beforeEach','unknown_grid','_afterEach','ciymX','qTOzN','FtZnd','OgSvj','JDVHX','ETdfY','forEach','3841821KFpkcW','IbsCU','eByej','appium:app','markedStatus','fromEntries','../../../helpers/helper','getCapabilities','2297421JhGwaC','app','NApXJ','cpEJd','NwHzW','_beforeAll','../../../helpers/test-observability/utils','EBusV','../../utils/logPatcher','uBmdo','../../../../package.json','uZvpk','19838640tnSjDZ','10MNXdaw','getPlatform','sendPlatformDetails','parent','split','getBrowserVersion','14SYdmbo','map_','Unoqe','fuQYX','hookAnalyticsId','getSession','EhWoj'];a29_0x22c9=function(){return _0x46f54f;};return a29_0x22c9();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a30_0x107a9b=a30_0xcd92;function a30_0xcd92(_0x99246c,_0x3355dd){const _0x529be9=a30_0x529b();return a30_0xcd92=function(_0xcd92bb,_0x2b4421){_0xcd92bb=_0xcd92bb-0x130;let _0x41736e=_0x529be9[_0xcd92bb];return _0x41736e;},a30_0xcd92(_0x99246c,_0x3355dd);}(function(_0x123c39,_0x71203c){const _0x1a564d=a30_0xcd92,_0x4e8044=_0x123c39();while(!![]){try{const _0x7ba3ea=parseInt(_0x1a564d(0x150))/0x1+parseInt(_0x1a564d(0x134))/0x2+parseInt(_0x1a564d(0x17d))/0x3+parseInt(_0x1a564d(0x196))/0x4+parseInt(_0x1a564d(0x185))/0x5*(-parseInt(_0x1a564d(0x188))/0x6)+parseInt(_0x1a564d(0x18b))/0x7+-parseInt(_0x1a564d(0x191))/0x8;if(_0x7ba3ea===_0x71203c)break;else _0x4e8044['push'](_0x4e8044['shift']());}catch(_0x1e8335){_0x4e8044['push'](_0x4e8044['shift']());}}}(a30_0x529b,0x64244));const util=require(a30_0x107a9b(0x19d)),{isAccessibilityAutomationSession,fetchPlatformDetails,shouldScanTestForAccessibility}=require(a30_0x107a9b(0x170)),{percyAutoCapture}=require('../../helpers/percy/utils'),{sendPlatformDetails}=require(a30_0x107a9b(0x151)),{isBrowserstackInfra,markSessionStatus}=require(a30_0x107a9b(0x136)),{isTestObservabilitySession}=require(a30_0x107a9b(0x16c)),PerformanceTester=require(a30_0x107a9b(0x154)),scripts=require('../../helpers/accessibility-automation/scripts'),globals=require(a30_0x107a9b(0x159)),logger=require(a30_0x107a9b(0x175))[a30_0x107a9b(0x137)];exports['mochaHooks']={'beforeAll'(){const _0x28096b=a30_0x107a9b,_0x59c9b4={'hfReF':function(_0x37e16a,_0x43f998,_0x4696cb,_0x4fd0dc){return _0x37e16a(_0x43f998,_0x4696cb,_0x4fd0dc);},'dysCE':'failed','pziqO':_0x28096b(0x13d),'bOuJY':function(_0x483050,_0x362aa8,_0x5c9c44){return _0x483050(_0x362aa8,_0x5c9c44);},'UHjof':'passed','waqpC':function(_0x9606ec){return _0x9606ec();},'gQVpM':function(_0x2b279a,_0x2d761c,_0x2f31be){return _0x2b279a(_0x2d761c,_0x2f31be);}};PerformanceTester[_0x28096b(0x177)]();const _0x13eb3f='browserstack internal helper hook';global['__error_messages__']=[],global[_0x28096b(0x1a8)]=![],global[_0x28096b(0x146)]=async()=>{const _0x36f0da=_0x28096b;let _0x2cf718=![];try{await global[_0x36f0da(0x173)][0x0]['session_'],_0x2cf718=!![],global[_0x36f0da(0x1a8)]?await _0x59c9b4[_0x36f0da(0x19a)](markSessionStatus,global[_0x36f0da(0x173)][0x0],_0x59c9b4[_0x36f0da(0x1a2)],global['__error_messages__'][_0x36f0da(0x187)](_0x59c9b4[_0x36f0da(0x193)])):await _0x59c9b4[_0x36f0da(0x176)](markSessionStatus,global['__drivers'][0x0],_0x59c9b4[_0x36f0da(0x178)]);}catch(_0x4f387a){}global['__error_messages__']=[],global[_0x36f0da(0x1a8)]=![];if(_0x2cf718)try{try{_0x59c9b4['waqpC'](isTestObservabilitySession)&&(global[_0x36f0da(0x173)][0x0]&&await _0x59c9b4[_0x36f0da(0x18c)](sendPlatformDetails,global['__drivers'][0x0],this[_0x36f0da(0x198)]?this[_0x36f0da(0x198)][_0x36f0da(0x1a7)]:null));}catch{}await global[_0x36f0da(0x173)][0x0]['initQuit']();}catch(_0x3edb55){}};},'beforeEach'(_0x19a094){const _0x58d4c3=a30_0x107a9b,_0x5ef2e3={'TmzPX':function(_0x970f5b,_0x3e80dc){return _0x970f5b>_0x3e80dc;},'HSzKM':function(_0x4043d0,_0x23a4c8){return _0x4043d0>_0x23a4c8;},'oQFkO':'\x20-\x20','UQNLs':function(_0x161482,_0x34f145,_0x316eda){return _0x161482(_0x34f145,_0x316eda);},'bLihx':_0x58d4c3(0x17c),'wcUVv':function(_0x5091c1){return _0x5091c1();},'KBRbD':function(_0x2204d9,_0x33319a){return _0x2204d9>_0x33319a;},'BUjVv':_0x58d4c3(0x1a1),'fJjxS':function(_0x4e77fe,_0x1e6812){return _0x4e77fe===_0x1e6812;},'hKHnI':'http:','Kcocf':_0x58d4c3(0x18d),'TUnLk':'Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','outZw':_0x58d4c3(0x14e),'jKkUt':function(_0x3f3c41){return _0x3f3c41();}};new Promise(async _0x7a6b4a=>{const _0xb81d3f=_0x58d4c3,_0x3f6a5e='browserstack internal helper hook';let _0x35d153=!![];try{_0x5ef2e3['TmzPX'](global[_0xb81d3f(0x173)][_0xb81d3f(0x15d)],0x1)&&(await global[_0xb81d3f(0x146)](),global[_0xb81d3f(0x173)][_0xb81d3f(0x17b)]()),_0x5ef2e3[_0xb81d3f(0x153)](global['__drivers'][0x0]['quitCount_'],0x0)&&(_0x35d153=![],await global[_0xb81d3f(0x146)]());}catch{}try{Array[_0xb81d3f(0x18e)](global[_0xb81d3f(0x173)])&&global['__drivers'][0x0]&&(global['__drivers'][0x0][_0xb81d3f(0x149)]=this[_0xb81d3f(0x198)][_0xb81d3f(0x14a)]()[_0xb81d3f(0x187)](_0x5ef2e3[_0xb81d3f(0x172)])),global[_0xb81d3f(0x149)]=this['currentTest'][_0xb81d3f(0x14a)]()[_0xb81d3f(0x187)](_0x5ef2e3[_0xb81d3f(0x172)]);}catch(_0x53010f){logger[_0xb81d3f(0x164)](_0xb81d3f(0x138)+_0x53010f);}this[_0xb81d3f(0x198)][_0xb81d3f(0x179)]=_0x5ef2e3['UQNLs'](shouldScanTestForAccessibility,this[_0xb81d3f(0x198)][_0xb81d3f(0x14a)](),!![]),globals['setGlobal'](_0x5ef2e3[_0xb81d3f(0x168)],this[_0xb81d3f(0x198)][_0xb81d3f(0x179)]),this[_0xb81d3f(0x198)][_0xb81d3f(0x194)]=!![];if(_0x5ef2e3[_0xb81d3f(0x132)](isAccessibilityAutomationSession)&&_0x35d153&&Array[_0xb81d3f(0x18e)](global[_0xb81d3f(0x173)])&&_0x5ef2e3[_0xb81d3f(0x167)](global[_0xb81d3f(0x173)][_0xb81d3f(0x15d)],0x0)&&globals['getGlobal'](_0x5ef2e3[_0xb81d3f(0x157)]))try{const _0x5ca143=await global['__drivers'][0x0][_0xb81d3f(0x197)];if(_0x5ca143){let _0x45df01=!![];const _0x3249eb=await global['__drivers'][0x0][_0xb81d3f(0x16a)]();let _0x3b9d67;try{_0x3b9d67=new URL(_0x3249eb);}catch(_0x3084ff){_0x45df01=![];}_0x45df01=_0x5ef2e3[_0xb81d3f(0x144)](_0x3b9d67['protocol'],_0x5ef2e3[_0xb81d3f(0x15f)])||_0x5ef2e3['fJjxS'](_0x3b9d67[_0xb81d3f(0x148)],_0x5ef2e3[_0xb81d3f(0x143)]),_0x45df01&&(this[_0xb81d3f(0x198)][_0xb81d3f(0x179)]&&logger['info'](_0x5ef2e3[_0xb81d3f(0x166)])),this[_0xb81d3f(0x198)][_0xb81d3f(0x194)]=this[_0xb81d3f(0x198)][_0xb81d3f(0x179)],this['currentTest'][_0xb81d3f(0x179)]&&logger[_0xb81d3f(0x18a)](_0x5ef2e3[_0xb81d3f(0x195)]);}}catch(_0xe21122){logger[_0xb81d3f(0x152)]('Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20'+util[_0xb81d3f(0x161)](_0xe21122));}_0x5ef2e3[_0xb81d3f(0x17f)](_0x7a6b4a);})[_0x58d4c3(0x189)](_0x19a094);},'afterEach'(_0x78cec2){const _0x3a77f1=a30_0x107a9b,_0x507529={'naJBt':function(_0xc9c620,_0x50eeae){return _0xc9c620>_0x50eeae;},'bIiSD':function(_0xe7c487,_0x376651){return _0xe7c487===_0x376651;},'tUkru':_0x3a77f1(0x13b),'bFOmh':_0x3a77f1(0x19f),'SCtZH':function(_0x35359d,_0x3cbb31,_0x263af0,_0x36be58){return _0x35359d(_0x3cbb31,_0x263af0,_0x36be58);},'UyHCz':_0x3a77f1(0x142),'JeqpF':function(_0x2cb20d,_0x1ca410){return _0x2cb20d!==_0x1ca410;},'DOsjm':'passed','SwcVd':function(_0x2a20b3,_0x156a4c,_0xc8842d){return _0x2a20b3(_0x156a4c,_0xc8842d);},'USuoc':function(_0x2ec10b,_0x177cf5){return _0x2ec10b+_0x177cf5;},'BMRRC':_0x3a77f1(0x16f),'quUGX':'error','XLHAD':function(_0x255d49,_0x421ac2,_0x22f8ee){return _0x255d49(_0x421ac2,_0x22f8ee);},'CiBWZ':_0x3a77f1(0x1a6),'qdAdk':'info','lGQiV':'isAccessibilityPlatform','rgcMC':'bstackA11yShouldScan','bCwjb':_0x3a77f1(0x19b),'wtvws':function(_0x10648a,_0x187632){return _0x10648a(_0x187632);},'mAHrl':'Performing\x20scan\x20before\x20saving\x20results','xduuB':_0x3a77f1(0x14b),'HqHKJ':function(_0x4a84cd){return _0x4a84cd();},'hTTIz':function(_0x482def){return _0x482def();},'drmVk':'debug','MSwru':function(_0x1f80b4,_0x5d3686){return _0x1f80b4>_0x5d3686;},'QzUbm':function(_0xf11264){return _0xf11264();}},_0x413f78='browserstack internal helper hook';this[_0x3a77f1(0x15a)](0xfde8);const _0x4ae162=async(_0x15e2b2,_0x215483)=>{const _0x3b50e1=_0x3a77f1;await global['__drivers'][0x0]['executeScript'](_0x3b50e1(0x156)+_0x15e2b2+_0x3b50e1(0x19e)+_0x215483+'\x22}}');};new Promise(async _0x52a340=>{const _0x570362=_0x3a77f1;try{_0x507529[_0x570362(0x140)](global['__drivers']['length'],0x1)&&(await global[_0x570362(0x146)](),global['__drivers'][_0x570362(0x17b)](),global[_0x570362(0x16d)]=[],global[_0x570362(0x1a8)]=![]);try{if(global[_0x570362(0x15e)]&&_0x507529['bIiSD'](global[_0x570362(0x1a3)],_0x507529['tUkru'])&&global[_0x570362(0x173)][0x0]){const _0x18a22f=_0x507529['naJBt'](global['capabilities']['length'],0x0)?!!global[_0x570362(0x13a)][0x0][_0x570362(0x169)]||!!global[_0x570362(0x13a)][0x0][_0x507529[_0x570362(0x16e)]]:![],_0xa6e07f={};_0xa6e07f[_0x570362(0x169)]=_0x18a22f,await _0x507529[_0x570362(0x13f)](percyAutoCapture,global[_0x570362(0x173)][0x0],_0x507529[_0x570362(0x1a0)],_0xa6e07f);}}catch(_0x389032){}!global[_0x570362(0x15c)]&&(await global['__drivers'][0x0][_0x570362(0x133)]('browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20'+JSON['stringify'](this[_0x570362(0x198)]['titlePath']()[_0x570362(0x187)](_0x507529[_0x570362(0x13c)]))+'}}'),global[_0x570362(0x173)][0x0][_0x570362(0x139)]=!![]);const _0x2789bb=_0x507529['JeqpF'](this['currentTest'][_0x570362(0x130)],_0x507529[_0x570362(0x1a4)]);_0x2789bb?(global['__sessionFailed']=!![],global['__error_messages__'][_0x570362(0x162)](this[_0x570362(0x198)][_0x570362(0x184)][_0x570362(0x190)]),await _0x507529[_0x570362(0x14f)](_0x4ae162,JSON['stringify'](_0x507529[_0x570362(0x19c)](_0x507529[_0x570362(0x165)],this[_0x570362(0x198)][_0x570362(0x184)]['message'])),_0x507529['quUGX'])):await _0x507529[_0x570362(0x171)](_0x4ae162,JSON[_0x570362(0x15b)](_0x507529[_0x570362(0x183)]),_0x507529[_0x570362(0x1a5)]);}catch(_0x307f4c){}try{if(this['currentTest']['accessibilityScanStarted']&&globals[_0x570362(0x192)](_0x507529[_0x570362(0x174)])&&globals[_0x570362(0x192)](_0x507529[_0x570362(0x147)])){logger['info'](_0x507529[_0x570362(0x17e)]);const _0x3e5cd6={'saveResults':this[_0x570362(0x198)][_0x570362(0x179)],'testDetails':{'name':this[_0x570362(0x198)]['title'],'testRunId':process[_0x570362(0x158)][_0x570362(0x181)],'filePath':this[_0x570362(0x198)][_0x570362(0x16b)],'scopeList':this[_0x570362(0x198)][_0x570362(0x14a)]()},'platform':await _0x507529[_0x570362(0x199)](fetchPlatformDetails,global[_0x570362(0x173)][0x0])};logger['debug'](_0x507529[_0x570362(0x163)]),logger['debug'](util[_0x570362(0x161)](await global[_0x570362(0x173)][0x0][_0x570362(0x180)](scripts['performScan'],{'method':global[_0x570362(0x149)]}))),await global[_0x570362(0x173)][0x0][_0x570362(0x180)](scripts[_0x570362(0x13e)],_0x3e5cd6),logger['info'](_0x507529['xduuB']);}}catch(_0x581f60){logger[_0x570362(0x152)](_0x570362(0x141)+this[_0x570362(0x198)][_0x570362(0x14a)]()+_0x570362(0x186),_0x581f60);}try{try{if(_0x507529[_0x570362(0x131)](isTestObservabilitySession)){global['__drivers'][0x0]&&await _0x507529[_0x570362(0x171)](sendPlatformDetails,global[_0x570362(0x173)][0x0],this['currentTest']?this[_0x570362(0x198)][_0x570362(0x1a7)]:null);if(_0x507529[_0x570362(0x145)](isBrowserstackInfra)){const _0x235a4e=_0x570362(0x18f)+Date[_0x570362(0x182)]();await _0x507529['XLHAD'](_0x4ae162,JSON[_0x570362(0x15b)](_0x235a4e),_0x507529[_0x570362(0x135)]);}}}catch{}_0x507529[_0x570362(0x14d)](global['__drivers'][0x0][_0x570362(0x17a)],0x0)&&await global[_0x570362(0x146)]();}catch(_0x4edfe3){}_0x507529[_0x570362(0x14c)](_0x52a340);})['then'](()=>_0x78cec2());},'afterAll'(_0x218dea){const _0x39cbda=a30_0x107a9b,_0x892c3c={'TEKRr':function(_0x5201b3){return _0x5201b3();}},_0x159bfb='browserstack internal helper hook';this[_0x39cbda(0x15a)](0xfde8),new Promise(async _0x3c25f4=>{const _0x5b9c41=_0x39cbda;PerformanceTester[_0x5b9c41(0x160)](),await global[_0x5b9c41(0x146)](),_0x892c3c[_0x5b9c41(0x155)](_0x3c25f4);})['then'](()=>_0x218dea());}};function a30_0x529b(){const _0x541363=['SCtZH','naJBt','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','\x20-\x20','Kcocf','fJjxS','hTTIz','driverCleanup','rgcMC','protocol','browserstackSessionName','titlePath','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','QzUbm','MSwru','Automate\x20test\x20case\x20execution\x20has\x20started.','SwcVd','253171QtipHU','./test-observability/mochaUtils','error','HSzKM','../../helpers/performance-tester','TEKRr','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','BUjVv','env','../../helpers/globals','timeout','stringify','__skipSessionName','length','percy','hKHnI','stopMonitoring','format','push','mAHrl','debug','BMRRC','TUnLk','KBRbD','bLihx','app','getCurrentUrl','file','../../helpers/test-observability/utils','__error_messages__','bFOmh','Failed:\x20','../../helpers/accessibility-automation/helper','XLHAD','oQFkO','__drivers','lGQiV','../../helpers/logger','bOuJY','startMonitoring','UHjof','shouldScanTestForAccessibility','quitCount_','shift','bstackA11yShouldScan','1530276SHsbfn','bCwjb','jKkUt','executeAsyncScript','BS_A11Y_TEST_RUN_ID','now','CiBWZ','err','35PNfpBQ','.\x20Error\x20:','join','514950WCyQds','then','info','2230123krzKfu','gQVpM','https:','isArray','ObservabilitySync:','message','12923808gfwKpI','getGlobal','pziqO','accessibilityScanStarted','outZw','3240596XafnVa','session_','currentTest','wtvws','hfReF','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','USuoc','util',',\x22level\x22:\x20\x22','appium:app','tUkru','isAccessibilityPlatform','dysCE','percyCaptureMode','DOsjm','qdAdk','Passed','testAnalyticsId','__sessionFailed','state','HqHKJ','wcUVv','executeScript','1468860JROmpz','drmVk','../../helpers/helper','winstonLogger','Failed\x20to\x20store\x20session\x20name:\x20','sessionNameSet__','capabilities','testcase','UyHCz','\x20|\x20','saveTestResults'];a30_0x529b=function(){return _0x541363;};return a30_0x529b();}
|
|
1
|
+
function a30_0x208e(){const _0x535705=['Axaqd','length','1108eSOXdW','cyTNa','yxXIl','then','tklwL','stringify','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','__error_messages__','http:','JsfQa','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','https:','title','tMjMc','__sessionFailed','startMonitoring','getGlobal','4OAVhkN','RVltp','JDmvW','shouldScanTestForAccessibility','./test-observability/mochaUtils','quitCount_','err','VRngO','kaIMo','synkN','jfieZ','message','.\x20Error\x20:','../../helpers/globals','GHXCZ','JXMHa','9616739XMTVJq','\x22}}','Performing\x20scan\x20before\x20saving\x20results','isAccessibilityPlatform','testcase','WcJAy','../../helpers/percy/utils','RpSzG','bstackA11yShouldScan','winstonLogger','currentTest','testAnalyticsId','info','BcTlj','fltdO','browserstackSessionName','kPiqP','519095ZpjroF','9BNBpyX','session_','36LTixtD','driverCleanup','executeScript','accessibilityScanStarted','mLeof','\x20-\x20','../../helpers/test-observability/utils','failed','../../helpers/helper','4455786nMzAUI','OUQNR','passed','shift','FqhZA','titlePath','executeAsyncScript','ybkAg','join','isArray','util','mWqLh','eHwfV','debug','error','setGlobal','OcYQK','mochaHooks','175504XoPQLh','\x20|\x20','__drivers',',\x22level\x22:\x20\x22','app','LnSog','808ZWOdYu','szllE','now','sessionNameSet__','aZiBt','env','stopMonitoring','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','iYZeD','capabilities','ACSYm','ureud','Failed:\x20','percyCaptureMode','getCurrentUrl','Passed','13886760oAhhXc','format','../../helpers/accessibility-automation/scripts','SdHXN','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','../../helpers/performance-tester','FRgwU','JXllN','234BgmMRK','EtUOF','ZwuEN','MGCBV','__skipSessionName','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','protocol','3851744XlbeWT','timeout','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','state','file','wBAZy'];a30_0x208e=function(){return _0x535705;};return a30_0x208e();}const a30_0x10df68=a30_0x4916;(function(_0x24d8a2,_0x107611){const _0x195c45=a30_0x4916,_0x3004ad=_0x24d8a2();while(!![]){try{const _0x452433=parseInt(_0x195c45(0x124))/0x1*(-parseInt(_0x195c45(0xce))/0x2)+-parseInt(_0x195c45(0x10c))/0x3+-parseInt(_0x195c45(0xdf))/0x4*(-parseInt(_0x195c45(0x100))/0x5)+parseInt(_0x195c45(0xbf))/0x6*(parseInt(_0x195c45(0x11e))/0x7)+parseInt(_0x195c45(0xc6))/0x8*(parseInt(_0x195c45(0x101))/0x9)+-parseInt(_0x195c45(0xb7))/0xa+parseInt(_0x195c45(0xef))/0xb*(parseInt(_0x195c45(0x103))/0xc);if(_0x452433===_0x107611)break;else _0x3004ad['push'](_0x3004ad['shift']());}catch(_0x3d49f2){_0x3004ad['push'](_0x3004ad['shift']());}}}(a30_0x208e,0xd3010));const util=require(a30_0x10df68(0x116)),{isAccessibilityAutomationSession,fetchPlatformDetails,shouldScanTestForAccessibility}=require('../../helpers/accessibility-automation/helper'),{percyAutoCapture}=require(a30_0x10df68(0xf5)),{sendPlatformDetails}=require(a30_0x10df68(0xe3)),{isBrowserstackInfra,markSessionStatus}=require(a30_0x10df68(0x10b)),{isTestObservabilitySession}=require(a30_0x10df68(0x109)),PerformanceTester=require(a30_0x10df68(0xbc)),scripts=require(a30_0x10df68(0xb9)),globals=require(a30_0x10df68(0xec)),logger=require('../../helpers/logger')[a30_0x10df68(0xf8)];function a30_0x4916(_0x2d6e3e,_0x5d0220){const _0x208e5e=a30_0x208e();return a30_0x4916=function(_0x491662,_0x5f5279){_0x491662=_0x491662-0xb4;let _0x5a0b5e=_0x208e5e[_0x491662];return _0x5a0b5e;},a30_0x4916(_0x2d6e3e,_0x5d0220);}exports[a30_0x10df68(0x11d)]={'beforeAll'(){const _0x1ba4c9=a30_0x10df68,_0x145a34={'ybkAg':function(_0x5cc2e9,_0x18748b,_0x244d31,_0xa4b6e0){return _0x5cc2e9(_0x18748b,_0x244d31,_0xa4b6e0);},'LnSog':_0x1ba4c9(0x10a),'aZiBt':_0x1ba4c9(0x11f),'yxXIl':function(_0x13cc98,_0x13e1ab,_0x103722){return _0x13cc98(_0x13e1ab,_0x103722);},'MGCBV':_0x1ba4c9(0x10e),'ACSYm':function(_0x40e1e2){return _0x40e1e2();},'oWZnQ':function(_0x193499,_0x2bc8a4,_0x27fdfa){return _0x193499(_0x2bc8a4,_0x27fdfa);}};PerformanceTester[_0x1ba4c9(0xdd)]();const _0x44bb22='browserstack internal helper hook';global[_0x1ba4c9(0xd5)]=[],global[_0x1ba4c9(0xdc)]=![],global['driverCleanup']=async()=>{const _0x518f44=_0x1ba4c9;let _0x8c1f02=![];try{await global['__drivers'][0x0][_0x518f44(0x102)],_0x8c1f02=!![],global[_0x518f44(0xdc)]?await _0x145a34[_0x518f44(0x113)](markSessionStatus,global[_0x518f44(0x120)][0x0],_0x145a34[_0x518f44(0x123)],global[_0x518f44(0xd5)][_0x518f44(0x114)](_0x145a34[_0x518f44(0x128)])):await _0x145a34[_0x518f44(0xd0)](markSessionStatus,global[_0x518f44(0x120)][0x0],_0x145a34[_0x518f44(0xc2)]);}catch(_0x3a5985){}global[_0x518f44(0xd5)]=[],global[_0x518f44(0xdc)]=![];if(_0x8c1f02)try{try{_0x145a34[_0x518f44(0x12e)](isTestObservabilitySession)&&(global[_0x518f44(0x120)][0x0]&&await _0x145a34['oWZnQ'](sendPlatformDetails,global[_0x518f44(0x120)][0x0],this['currentTest']?this[_0x518f44(0xf9)][_0x518f44(0xfa)]:null));}catch{}await global['__drivers'][0x0]['initQuit']();}catch(_0x2bfb01){}};},'beforeEach'(_0x2a5fce){const _0x12d9e7=a30_0x10df68,_0x888c1={'FqhZA':function(_0x2a17c0,_0xbb9ea5){return _0x2a17c0>_0xbb9ea5;},'cyTNa':'\x20-\x20','FRgwU':function(_0x1d87a3,_0x514763,_0x1197d2){return _0x1d87a3(_0x514763,_0x1197d2);},'SdHXN':'bstackA11yShouldScan','mLeof':function(_0x5360a2){return _0x5360a2();},'RpSzG':_0x12d9e7(0xf2),'RVltp':function(_0x2142da,_0x40a12e){return _0x2142da===_0x40a12e;},'OUQNR':_0x12d9e7(0xd6),'wBAZy':function(_0x19f180,_0x13c56a){return _0x19f180===_0x13c56a;},'HClZD':_0x12d9e7(0xd9),'tMjMc':_0x12d9e7(0xd8),'kaIMo':'Automate\x20test\x20case\x20execution\x20has\x20started.','gMOXU':function(_0x60cbe8){return _0x60cbe8();}};new Promise(async _0x1dbe56=>{const _0x57f5c6=_0x12d9e7,_0x347d53='browserstack internal helper hook';let _0x418eb2=!![];try{_0x888c1['FqhZA'](global[_0x57f5c6(0x120)][_0x57f5c6(0xcd)],0x1)&&(await global[_0x57f5c6(0x104)](),global[_0x57f5c6(0x120)]['shift']()),_0x888c1[_0x57f5c6(0x110)](global['__drivers'][0x0][_0x57f5c6(0xe4)],0x0)&&(_0x418eb2=![],await global[_0x57f5c6(0x104)]());}catch{}try{Array['isArray'](global[_0x57f5c6(0x120)])&&global[_0x57f5c6(0x120)][0x0]&&(global[_0x57f5c6(0x120)][0x0][_0x57f5c6(0xfe)]=this[_0x57f5c6(0xf9)][_0x57f5c6(0x111)]()[_0x57f5c6(0x114)](_0x888c1[_0x57f5c6(0xcf)])),global[_0x57f5c6(0xfe)]=this['currentTest'][_0x57f5c6(0x111)]()['join'](_0x888c1[_0x57f5c6(0xcf)]);}catch(_0x3f3740){logger[_0x57f5c6(0x119)]('Failed\x20to\x20store\x20session\x20name:\x20'+_0x3f3740);}this[_0x57f5c6(0xf9)][_0x57f5c6(0xe2)]=_0x888c1[_0x57f5c6(0xbd)](shouldScanTestForAccessibility,this[_0x57f5c6(0xf9)][_0x57f5c6(0x111)](),!![]),globals[_0x57f5c6(0x11b)](_0x888c1[_0x57f5c6(0xba)],this[_0x57f5c6(0xf9)][_0x57f5c6(0xe2)]),this[_0x57f5c6(0xf9)][_0x57f5c6(0x106)]=!![];if(_0x888c1[_0x57f5c6(0x107)](isAccessibilityAutomationSession)&&_0x418eb2&&Array[_0x57f5c6(0x115)](global[_0x57f5c6(0x120)])&&_0x888c1[_0x57f5c6(0x110)](global[_0x57f5c6(0x120)][_0x57f5c6(0xcd)],0x0)&&globals['getGlobal'](_0x888c1[_0x57f5c6(0xf6)]))try{const _0x137dc1=await global[_0x57f5c6(0x120)][0x0][_0x57f5c6(0x102)];if(_0x137dc1){let _0x3b0249=!![];const _0x159a76=await global['__drivers'][0x0][_0x57f5c6(0xb5)]();let _0x5e7d04;try{_0x5e7d04=new URL(_0x159a76);}catch(_0x486582){_0x3b0249=![];}_0x3b0249=_0x888c1[_0x57f5c6(0xe0)](_0x5e7d04[_0x57f5c6(0xc5)],_0x888c1[_0x57f5c6(0x10d)])||_0x888c1[_0x57f5c6(0xcb)](_0x5e7d04['protocol'],_0x888c1['HClZD']),_0x3b0249&&(this[_0x57f5c6(0xf9)]['shouldScanTestForAccessibility']&&logger[_0x57f5c6(0xfb)](_0x888c1[_0x57f5c6(0xdb)])),this['currentTest'][_0x57f5c6(0x106)]=this[_0x57f5c6(0xf9)][_0x57f5c6(0xe2)],this['currentTest'][_0x57f5c6(0xe2)]&&logger[_0x57f5c6(0xfb)](_0x888c1[_0x57f5c6(0xe7)]);}}catch(_0x3d5112){logger[_0x57f5c6(0x11a)]('Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20'+util[_0x57f5c6(0xb8)](_0x3d5112));}_0x888c1['gMOXU'](_0x1dbe56);})[_0x12d9e7(0xd1)](_0x2a5fce);},'afterEach'(_0x4f62b3){const _0x14112b=a30_0x10df68,_0x23a45c={'kPiqP':function(_0x2a4ac9,_0x18ff55){return _0x2a4ac9>_0x18ff55;},'xRgju':function(_0x5a6974,_0x3ec775){return _0x5a6974===_0x3ec775;},'Axaqd':_0x14112b(0xf3),'synkN':function(_0x52b5c6,_0x388f6e){return _0x52b5c6>_0x388f6e;},'mWqLh':'appium:app','aToeS':function(_0x3e7fad,_0x5efb93,_0x573b08,_0x3299e8){return _0x3e7fad(_0x5efb93,_0x573b08,_0x3299e8);},'tklwL':_0x14112b(0x108),'GHXCZ':function(_0x508b54,_0x82007e){return _0x508b54!==_0x82007e;},'eHwfV':_0x14112b(0x10e),'szllE':function(_0x34eb27,_0x4be77a,_0x476e14){return _0x34eb27(_0x4be77a,_0x476e14);},'BcTlj':function(_0x138bc7,_0xc2b533){return _0x138bc7+_0xc2b533;},'ureud':_0x14112b(0x130),'bCeJi':'error','jfieZ':function(_0x232aaf,_0x11ac22,_0x1939b6){return _0x232aaf(_0x11ac22,_0x1939b6);},'JsfQa':_0x14112b(0xb6),'OcYQK':_0x14112b(0xfb),'yquCd':_0x14112b(0xf2),'JXMHa':_0x14112b(0xf7),'Dkgpq':_0x14112b(0xc8),'lgSxM':function(_0x2f00a2,_0x489f13){return _0x2f00a2(_0x489f13);},'VRngO':_0x14112b(0xf1),'JDmvW':_0x14112b(0xbb),'fltdO':function(_0x1233d5){return _0x1233d5();},'WcJAy':function(_0x12cb38,_0x5d719c,_0x30da4e){return _0x12cb38(_0x5d719c,_0x30da4e);},'JXllN':function(_0x1a5b85){return _0x1a5b85();},'eqayY':function(_0x106f60,_0x353b1f,_0x38ed8f){return _0x106f60(_0x353b1f,_0x38ed8f);},'ZwuEN':_0x14112b(0x119),'EtUOF':function(_0x357241){return _0x357241();}},_0xf62e3d='browserstack internal helper hook';this[_0x14112b(0xc7)](0xfde8);const _0x46d030=async(_0x295def,_0x44fcc9)=>{const _0x4e6aea=_0x14112b;await global[_0x4e6aea(0x120)][0x0][_0x4e6aea(0x105)](_0x4e6aea(0x12b)+_0x295def+_0x4e6aea(0x121)+_0x44fcc9+_0x4e6aea(0xf0));};new Promise(async _0x31e6c6=>{const _0x2c4a96=_0x14112b;try{_0x23a45c[_0x2c4a96(0xff)](global[_0x2c4a96(0x120)]['length'],0x1)&&(await global['driverCleanup'](),global['__drivers'][_0x2c4a96(0x10f)](),global[_0x2c4a96(0xd5)]=[],global[_0x2c4a96(0xdc)]=![]);try{if(global['percy']&&_0x23a45c['xRgju'](global[_0x2c4a96(0xb4)],_0x23a45c[_0x2c4a96(0xcc)])&&global[_0x2c4a96(0x120)][0x0]){const _0x535f11=_0x23a45c[_0x2c4a96(0xe8)](global[_0x2c4a96(0x12d)][_0x2c4a96(0xcd)],0x0)?!!global[_0x2c4a96(0x12d)][0x0][_0x2c4a96(0x122)]||!!global[_0x2c4a96(0x12d)][0x0][_0x23a45c[_0x2c4a96(0x117)]]:![],_0x4c5c68={};_0x4c5c68['app']=_0x535f11,await _0x23a45c['aToeS'](percyAutoCapture,global[_0x2c4a96(0x120)][0x0],_0x23a45c[_0x2c4a96(0xcc)],_0x4c5c68);}}catch(_0x27bc00){}!global[_0x2c4a96(0xc3)]&&(await global[_0x2c4a96(0x120)][0x0]['executeScript'](_0x2c4a96(0xd4)+JSON[_0x2c4a96(0xd3)](this['currentTest'][_0x2c4a96(0x111)]()[_0x2c4a96(0x114)](_0x23a45c[_0x2c4a96(0xd2)]))+'}}'),global[_0x2c4a96(0x120)][0x0][_0x2c4a96(0x127)]=!![]);const _0x216216=_0x23a45c[_0x2c4a96(0xed)](this['currentTest'][_0x2c4a96(0xc9)],_0x23a45c[_0x2c4a96(0x118)]);_0x216216?(global[_0x2c4a96(0xdc)]=!![],global['__error_messages__']['push'](this[_0x2c4a96(0xf9)][_0x2c4a96(0xe5)]['message']),await _0x23a45c[_0x2c4a96(0x125)](_0x46d030,JSON[_0x2c4a96(0xd3)](_0x23a45c[_0x2c4a96(0xfc)](_0x23a45c[_0x2c4a96(0x12f)],this['currentTest']['err'][_0x2c4a96(0xea)])),_0x23a45c['bCeJi'])):await _0x23a45c[_0x2c4a96(0xe9)](_0x46d030,JSON['stringify'](_0x23a45c[_0x2c4a96(0xd7)]),_0x23a45c[_0x2c4a96(0x11c)]);}catch(_0x4c02f9){}try{if(this[_0x2c4a96(0xf9)]['accessibilityScanStarted']&&globals['getGlobal'](_0x23a45c['yquCd'])&&globals[_0x2c4a96(0xde)](_0x23a45c[_0x2c4a96(0xee)])){logger[_0x2c4a96(0xfb)](_0x23a45c['Dkgpq']);const _0x11273a={'saveResults':this[_0x2c4a96(0xf9)][_0x2c4a96(0xe2)],'testDetails':{'name':this['currentTest'][_0x2c4a96(0xda)],'testRunId':process[_0x2c4a96(0x129)]['BS_A11Y_TEST_RUN_ID'],'filePath':this['currentTest'][_0x2c4a96(0xca)],'scopeList':this[_0x2c4a96(0xf9)][_0x2c4a96(0x111)]()},'platform':await _0x23a45c['lgSxM'](fetchPlatformDetails,global[_0x2c4a96(0x120)][0x0])};logger[_0x2c4a96(0x119)](_0x23a45c[_0x2c4a96(0xe6)]),logger[_0x2c4a96(0x119)](util[_0x2c4a96(0xb8)](await global['__drivers'][0x0][_0x2c4a96(0x112)](scripts['performScan'],{'method':global[_0x2c4a96(0xfe)]}))),await global[_0x2c4a96(0x120)][0x0][_0x2c4a96(0x112)](scripts['saveTestResults'],_0x11273a),logger['info'](_0x23a45c[_0x2c4a96(0xe1)]);}}catch(_0x303a09){logger[_0x2c4a96(0x11a)](_0x2c4a96(0xc4)+this[_0x2c4a96(0xf9)][_0x2c4a96(0x111)]()+_0x2c4a96(0xeb),_0x303a09);}try{try{if(_0x23a45c[_0x2c4a96(0xfd)](isTestObservabilitySession)){global[_0x2c4a96(0x120)][0x0]&&await _0x23a45c[_0x2c4a96(0xf4)](sendPlatformDetails,global['__drivers'][0x0],this['currentTest']?this[_0x2c4a96(0xf9)][_0x2c4a96(0xfa)]:null);if(_0x23a45c[_0x2c4a96(0xbe)](isBrowserstackInfra)){const _0x23c640='ObservabilitySync:'+Date[_0x2c4a96(0x126)]();await _0x23a45c['eqayY'](_0x46d030,JSON['stringify'](_0x23c640),_0x23a45c[_0x2c4a96(0xc1)]);}}}catch{}_0x23a45c[_0x2c4a96(0xff)](global[_0x2c4a96(0x120)][0x0]['quitCount_'],0x0)&&await global[_0x2c4a96(0x104)]();}catch(_0x1cbb4c){}_0x23a45c[_0x2c4a96(0xc0)](_0x31e6c6);})[_0x14112b(0xd1)](()=>_0x4f62b3());},'afterAll'(_0x5b1fd0){const _0x2db78f=a30_0x10df68,_0x4a06dc={'iYZeD':function(_0x57c847){return _0x57c847();}},_0x33a5ee='browserstack internal helper hook';this[_0x2db78f(0xc7)](0xfde8),new Promise(async _0x19ed39=>{const _0x50b932=_0x2db78f;PerformanceTester[_0x50b932(0x12a)](),await global[_0x50b932(0x104)](),_0x4a06dc[_0x50b932(0x12c)](_0x19ed39);})[_0x2db78f(0xd1)](()=>_0x5b1fd0());}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';const a31_0xa2d204=a31_0x20b6;function a31_0x5dd3(){const _0x20096f=['push','trim','config','../../helpers/helper','existsSync','modifyBrowserStackCaps','534545IPoIyi','length','filter','test','VUplM','4973120AhuLSc','map','sDnZb','port','tSFvU','cwd','--env','EMHer','stringify','path','useW3C','nightwatch.conf.js','QnNiM','modifyBrowserStackW3CCaps','QQjKB','desiredCapabilities','nightwatch.cmd','exports','join','child\x20process\x20exited\x20with\x20code\x20','split','../../helpers/logger','nightwatch','host','test_settings','inherit','IbdNa','mergeDeep','52JfsnHT','hub.browserstack.com','Getting\x20your\x20nightwatch\x20configs\x20from\x20','start_process','winstonLogger','URxhA','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','unlinkSync','--config','CgjUL','TpEQi','selenium','873984lEyxhG','AOaFe','env','webdriver','cFnsr','close','forEach','findIndex','qSLGy','platform','writeFileSync','slice','1237812uMpiDW','info','6494484hCJkSa','Uhoof','debug','skjMC','Deleting\x20','eqWQa','OKQux','314056FBIZDT','nightwatch-browserstack.json','3173296GglkqE','child_process','splice','getPlatformName'];a31_0x5dd3=function(){return _0x20096f;};return a31_0x5dd3();}(function(_0x5b1262,_0x5d616f){const _0x22b953=a31_0x20b6,_0x46651e=_0x5b1262();while(!![]){try{const _0x27d1ec=parseInt(_0x22b953(0x1f5))/0x1+-parseInt(_0x22b953(0x23a))/0x2+-parseInt(_0x22b953(0x22e))/0x3+-parseInt(_0x22b953(0x222))/0x4*(-parseInt(_0x22b953(0x201))/0x5)+parseInt(_0x22b953(0x23c))/0x6+-parseInt(_0x22b953(0x1f7))/0x7+-parseInt(_0x22b953(0x206))/0x8;if(_0x27d1ec===_0x5d616f)break;else _0x46651e['push'](_0x46651e['shift']());}catch(_0x47018d){_0x46651e['push'](_0x46651e['shift']());}}}(a31_0x5dd3,0xc393d));function a31_0x20b6(_0x806371,_0x2967fa){const _0x5dd3c8=a31_0x5dd3();return a31_0x20b6=function(_0x20b601,_0x28f43f){_0x20b601=_0x20b601-0x1f3;let _0x521ca1=_0x5dd3c8[_0x20b601];return _0x521ca1;},a31_0x20b6(_0x806371,_0x2967fa);}const fs=require('fs'),path=require(a31_0xa2d204(0x20f)),{spawn}=require(a31_0xa2d204(0x1f8)),logger=require(a31_0xa2d204(0x21b))[a31_0xa2d204(0x226)],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require(a31_0xa2d204(0x1fe)),constants=require('../utils/constants'),getUserNightwatchConfigs=(_0x463a04,_0x47d0ad)=>{const _0x1e5e95=a31_0xa2d204,_0x50051b={'tSFvU':_0x1e5e95(0x211),'skjMC':'nightwatch.json','URxhA':function(_0x3ba8c4,_0x5afaa2){return _0x3ba8c4(_0x5afaa2);},'LumcJ':'Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file'};let _0x54f379=null,_0x73399f={};const _0x53559f=_0x47d0ad[_0x1e5e95(0x235)](_0xfcfe48=>_0xfcfe48===_0x1e5e95(0x22a));if(!helper['isUndefined'](_0x463a04['config'])&&fs[_0x1e5e95(0x1ff)](path[_0x1e5e95(0x218)](process['cwd'](),_0x463a04[_0x1e5e95(0x1fd)])))_0x54f379=path['join'](process['cwd'](),_0x463a04[_0x1e5e95(0x1fd)]),_0x47d0ad[_0x1e5e95(0x1f9)](_0x53559f,0x2);else{if(fs[_0x1e5e95(0x1ff)](path[_0x1e5e95(0x218)](process[_0x1e5e95(0x20b)](),_0x50051b[_0x1e5e95(0x20a)])))_0x54f379=path[_0x1e5e95(0x218)](process[_0x1e5e95(0x20b)](),_0x50051b['tSFvU']);else fs[_0x1e5e95(0x1ff)](path[_0x1e5e95(0x218)](process[_0x1e5e95(0x20b)](),_0x50051b[_0x1e5e95(0x23f)]))&&(_0x54f379=path[_0x1e5e95(0x218)](process['cwd'](),_0x50051b[_0x1e5e95(0x23f)]));}return _0x54f379?(logger[_0x1e5e95(0x23b)](_0x1e5e95(0x224)+_0x54f379),_0x73399f=_0x50051b[_0x1e5e95(0x227)](require,_0x54f379)):logger[_0x1e5e95(0x23b)](_0x50051b['LumcJ']),_0x73399f;},removeExistingEnvs=_0x2468ca=>{const _0x19f1ab=a31_0xa2d204,_0x332b1e={};_0x332b1e[_0x19f1ab(0x20d)]=function(_0x5721b7,_0x52fad3){return _0x5721b7>_0x52fad3;},_0x332b1e[_0x19f1ab(0x214)]=function(_0x3d7efb,_0xa277bc){return _0x3d7efb>_0xa277bc;};const _0x15c3ef=_0x332b1e;let _0x3d341f=_0x2468ca[_0x19f1ab(0x235)](_0x4b8c3c=>_0x4b8c3c===_0x19f1ab(0x20c));_0x15c3ef[_0x19f1ab(0x20d)](_0x3d341f,-0x1)&&_0x2468ca[_0x19f1ab(0x1f9)](_0x3d341f,0x2),_0x3d341f=_0x2468ca[_0x19f1ab(0x235)](_0xb02896=>_0xb02896==='-e'),_0x15c3ef['QQjKB'](_0x3d341f,-0x1)&&_0x2468ca['splice'](_0x3d341f,0x2);};function run(_0x31dfad,_0x5b3175){const _0x2ded60=a31_0xa2d204,_0x50cab5={'OKQux':_0x2ded60(0x21c),'Uhoof':function(_0x3e75e0,_0x50e269){return _0x3e75e0+_0x50e269;},'QnNiM':'test_settings','VUplM':function(_0x47026d,_0x3644df,_0x2fbdd0){return _0x47026d(_0x3644df,_0x2fbdd0);},'ZhBtt':_0x2ded60(0x223),'cFnsr':_0x2ded60(0x228),'ZAzGZ':function(_0x3be0c7,_0x4b3326){return _0x3be0c7===_0x4b3326;},'CgjUL':_0x2ded60(0x1f6),'eqWQa':function(_0x2bfda5,_0x23bc77){return _0x2bfda5(_0x23bc77);},'sDnZb':function(_0x59d26a,_0x12d0da,_0x17f8c7,_0x12dfc8){return _0x59d26a(_0x12d0da,_0x17f8c7,_0x12dfc8);},'IbdNa':_0x2ded60(0x216),'QoSvc':_0x2ded60(0x22a),'HQHKP':_0x2ded60(0x20c),'rAwyW':_0x2ded60(0x21f),'AOaFe':_0x2ded60(0x233)},_0xb8e991=new BrowserStackSetup(_0x31dfad);if(!_0xb8e991['config'])return;const _0x1888d2=_0x50cab5[_0x2ded60(0x205)](getUserNightwatchConfigs,_0x31dfad,_0x5b3175),_0x2f76af={};_0x2f76af[_0x2ded60(0x225)]=![];const _0x1515f6={};_0x1515f6[_0x2ded60(0x21d)]=_0x50cab5['ZhBtt'],_0x1515f6[_0x2ded60(0x209)]=0x1bb;const _0x1bee6f={};_0x1bee6f[_0x2ded60(0x231)]=_0x2f76af,_0x1bee6f[_0x2ded60(0x22d)]=_0x1515f6;const _0x4b707a=_0x1bee6f;logger[_0x2ded60(0x23b)](_0x50cab5[_0x2ded60(0x232)]);const _0x266c69={..._0x1888d2},_0x2518af=_0x266c69,_0x4306b5=helper[_0x2ded60(0x210)](_0xb8e991['config']),_0x3ef230=[];_0xb8e991[_0x2ded60(0x1fd)]['platforms'][_0x2ded60(0x234)]((_0x486b13,_0x117f4d)=>{const _0x14cf33=_0x2ded60;_0x4306b5?_0x3ef230[_0x14cf33(0x1fb)](helper[_0x14cf33(0x213)](_0xb8e991[_0x14cf33(0x1fd)],_0x50cab5[_0x14cf33(0x1f4)],_0x117f4d)):_0x3ef230[_0x14cf33(0x1fb)](helper[_0x14cf33(0x200)](_0xb8e991[_0x14cf33(0x1fd)],_0x50cab5[_0x14cf33(0x1f4)],_0x117f4d));});const _0x1e23ea={},_0x4eba13=[];_0x31dfad['env']=_0x31dfad[_0x2ded60(0x230)]||_0x31dfad['e'];const _0xa88288=_0x31dfad[_0x2ded60(0x230)]?_0x31dfad['env'][_0x2ded60(0x1fc)]()[_0x2ded60(0x21a)](',')[_0x2ded60(0x207)](_0x18cbea=>_0x18cbea[_0x2ded60(0x1fc)]())[_0x2ded60(0x203)](_0x3af792=>_0x3af792!==''):[''];_0x50cab5['ZAzGZ'](_0xa88288[_0x2ded60(0x202)],0x0)&&_0xa88288['push']('');_0xa88288[_0x2ded60(0x234)](_0x2929c9=>{const _0x43aeb0=_0x2ded60,_0x472b56={'TpEQi':function(_0x5e6f21,_0x5a3eb0){const _0x824c33=a31_0x20b6;return _0x50cab5[_0x824c33(0x23d)](_0x5e6f21,_0x5a3eb0);},'qSLGy':_0x50cab5[_0x43aeb0(0x212)]};_0x3ef230[_0x43aeb0(0x234)](_0x47e4f3=>{const _0xff296c=_0x43aeb0;let _0x1d75c8=_0x472b56[_0xff296c(0x22c)](helper[_0xff296c(0x1fa)](_0x47e4f3,'_'),'_'+Date['now']());_0x2929c9&&(_0x1d75c8+='_'+_0x2929c9);if(_0x2929c9&&(!_0x1888d2[_0x472b56[_0xff296c(0x236)]]||!_0x1888d2[_0x472b56['qSLGy']][_0x2929c9]))return;const _0x1cfd1e={..._0x4b707a};_0x1cfd1e[_0xff296c(0x215)]=_0x47e4f3;const _0x23ea33=_0x1cfd1e;_0x1e23ea[_0x1d75c8]=_0x2929c9?helper[_0xff296c(0x221)](_0x1888d2[_0x472b56['qSLGy']][_0x2929c9],_0x23ea33):_0x23ea33,_0x4eba13[_0xff296c(0x1fb)](_0x1d75c8);});});!_0x2518af[_0x2ded60(0x21e)]&&(_0x2518af['test_settings']={});_0x2518af[_0x2ded60(0x21e)]={..._0x2518af[_0x2ded60(0x21e)],..._0x1e23ea};const _0x13a1ca=path['join'](__dirname,_0x50cab5[_0x2ded60(0x22b)]);fs[_0x2ded60(0x238)](_0x13a1ca,JSON[_0x2ded60(0x20e)](_0x2518af)),_0x50cab5[_0x2ded60(0x1f3)](removeExistingEnvs,_0x5b3175);const _0x477d25=_0x50cab5[_0x2ded60(0x208)](spawn,/^win/[_0x2ded60(0x204)](process[_0x2ded60(0x237)])?_0x50cab5[_0x2ded60(0x220)]:_0x50cab5['OKQux'],[_0x50cab5['QoSvc'],_0x13a1ca,..._0x5b3175[_0x2ded60(0x239)](0x1),_0x50cab5['HQHKP'],_0x4eba13[_0x2ded60(0x218)](',')],{'stdio':_0x50cab5['rAwyW']});_0x477d25['on'](_0x50cab5[_0x2ded60(0x22f)],async _0x1ee611=>{const _0x53d4c7=_0x2ded60;logger[_0x53d4c7(0x23e)](_0x53d4c7(0x219)+_0x1ee611),logger[_0x53d4c7(0x23b)](_0x53d4c7(0x240)+_0x13a1ca),fs[_0x53d4c7(0x229)](_0x13a1ca);});}module[a31_0xa2d204(0x217)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a32_0x1069(_0x3917cc,_0x1139f9){const _0x2fa591=a32_0x2fa5();return a32_0x1069=function(_0x10694b,_0x2dce88){_0x10694b=_0x10694b-0x15b;let _0x1faaa6=_0x2fa591[_0x10694b];return _0x1faaa6;},a32_0x1069(_0x3917cc,_0x1139f9);}const a32_0x4d5f0a=a32_0x1069;(function(_0x4a2c0d,_0x776ec6){const _0x26d861=a32_0x1069,_0x5b08a8=_0x4a2c0d();while(!![]){try{const _0x40523e=parseInt(_0x26d861(0x17a))/0x1+parseInt(_0x26d861(0x15e))/0x2*(-parseInt(_0x26d861(0x190))/0x3)+parseInt(_0x26d861(0x165))/0x4*(-parseInt(_0x26d861(0x191))/0x5)+-parseInt(_0x26d861(0x179))/0x6*(parseInt(_0x26d861(0x170))/0x7)+-parseInt(_0x26d861(0x185))/0x8*(-parseInt(_0x26d861(0x183))/0x9)+parseInt(_0x26d861(0x17c))/0xa*(parseInt(_0x26d861(0x1b7))/0xb)+-parseInt(_0x26d861(0x1bc))/0xc*(-parseInt(_0x26d861(0x16a))/0xd);if(_0x40523e===_0x776ec6)break;else _0x5b08a8['push'](_0x5b08a8['shift']());}catch(_0x322c18){_0x5b08a8['push'](_0x5b08a8['shift']());}}}(a32_0x2fa5,0x8ffa5));const util=require('util'),logger=require('../../helpers/logger')[a32_0x4d5f0a(0x1ba)],{isAccessibilityAutomationSession}=require(a32_0x4d5f0a(0x17b)),{isUndefined}=require(a32_0x4d5f0a(0x161)),scripts=require(a32_0x4d5f0a(0x187));function a32_0x2fa5(){const _0x3e1066=['WKJHB','ftigJ','otblr','IgdHj','accessibilityOptions','nEDXL','browserName','DnchR','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','accessibilityPlatform','hIfzU','executeAsyncScript','QJGrT','UeNsc','kQLHo','testInfo','7317299QGgenI','(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','FDJaE','winstonLogger','Playwright','1322976GkLVyP','(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','vmiws','includeIssueType','scannerVersion','85910jgMBHN','jExpa','browserStackEvaluate','../../helpers/helper','bestPractice','error','bstackSdkArgs','404OCbOdX','browserstack.accessibility','NMqAb','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','tXGwr','143fPyLSC','NDYAV','playwright-chromium','name','accessibilityOptions.includeIssueType.bestPractice','sgzme','3960159SYmHwG','WfytB','scannerProcessingTimeout','ACsVO','WBFDf','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','env','schoS','ZcOAq','6VRxNAU','402179AlYczV','../../helpers/accessibility-automation/helper','10gMvqXd','format','chrome','constructor','accessibilityOptions.wcagVersion','latest','currentTest','1960092XNhJlH','browserStackExecuteDriver','8SeupDt','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','../../helpers/accessibility-automation/scripts','buNoN','Ticyf','WebDriver','performScan','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','dRwIu','wcagVersion','CfxUR','75CvpTrT','13295GklMAs','setAccessibilityCapabilities','accessibilityOptions.scannerVersion','EuGZa','KUxEy','debug','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','replace','warn','YAHWd','browser_version','project','hxCdf','needsReview','accessibilityOptions.authToken','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','EQqbU','method','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','deviceName','JMzqB','OgVet'];a32_0x2fa5=function(){return _0x3e1066;};return a32_0x2fa5();}exports['browserStackEvaluate']=async(_0x31d1b1,_0x2aedcc,_0x1ad3a7={})=>{const _0xa490ae=a32_0x4d5f0a,_0x4c781c={};_0x4c781c[_0xa490ae(0x194)]='bstackSdkArgs';const _0x3143f1=_0x4c781c;return await _0x31d1b1['evaluate'](_0xa490ae(0x1b8)+_0x2aedcc[_0xa490ae(0x198)](/arguments/g,_0x3143f1[_0xa490ae(0x194)])+_0xa490ae(0x168)+JSON['stringify'](_0x1ad3a7)+')');},exports[a32_0x4d5f0a(0x184)]=async(_0x3a7e8d,_0x5aac51,_0x1e32d6={})=>{const _0x5253bf=a32_0x4d5f0a,_0x3d770e={};_0x3d770e[_0x5253bf(0x167)]=function(_0x36487e,_0x2d1e1d){return _0x36487e===_0x2d1e1d;},_0x3d770e['WKJHB']=_0x5253bf(0x18a),_0x3d770e[_0x5253bf(0x1b5)]=function(_0x295a1e,_0x24bf84){return _0x295a1e===_0x24bf84;},_0x3d770e[_0x5253bf(0x1a5)]=_0x5253bf(0x1bb),_0x3d770e['sgzme']=_0x5253bf(0x164);const _0x1e8da9=_0x3d770e;if(_0x1e8da9['NMqAb'](_0x3a7e8d[_0x5253bf(0x17f)][_0x5253bf(0x16d)],_0x1e8da9[_0x5253bf(0x1a7)]))return await _0x3a7e8d[_0x5253bf(0x1b2)](_0x5aac51,_0x1e32d6);else{if(_0x1e8da9[_0x5253bf(0x1b5)](_0x3a7e8d['constructor'][_0x5253bf(0x16d)],_0x1e8da9[_0x5253bf(0x1a5)]))return await _0x3a7e8d['executeScript'](_0x5253bf(0x1bd)+_0x5aac51[_0x5253bf(0x198)](/arguments/g,_0x1e8da9[_0x5253bf(0x16f)])+_0x5253bf(0x1a3)+JSON['stringify'](_0x1e32d6)+')');}},exports[a32_0x4d5f0a(0x192)]=async _0x4d38ec=>{const _0x17ee37=a32_0x4d5f0a,_0x434d74={};_0x434d74[_0x17ee37(0x1a1)]=_0x17ee37(0x180),_0x434d74[_0x17ee37(0x1ac)]='accessibilityOptions.scannerProcessingTimeout',_0x434d74[_0x17ee37(0x18f)]=_0x17ee37(0x16e),_0x434d74[_0x17ee37(0x178)]='accessibilityOptions.includeIssueType.needsReview',_0x434d74['yibZS']=_0x17ee37(0x19f),_0x434d74[_0x17ee37(0x18d)]=_0x17ee37(0x193);const _0x37cae4=_0x434d74;_0x4d38ec[_0x17ee37(0x1ab)]&&(_0x4d38ec[_0x17ee37(0x1ab)][_0x17ee37(0x18e)]&&(_0x4d38ec[_0x37cae4[_0x17ee37(0x1a1)]]=_0x4d38ec[_0x17ee37(0x1ab)][_0x17ee37(0x18e)]),_0x4d38ec[_0x17ee37(0x1ab)][_0x17ee37(0x172)]&&(_0x4d38ec[_0x37cae4[_0x17ee37(0x1ac)]]=_0x4d38ec[_0x17ee37(0x1ab)]['scannerProcessingTimeout']),_0x4d38ec[_0x17ee37(0x1ab)][_0x17ee37(0x15c)]&&(_0x4d38ec[_0x37cae4[_0x17ee37(0x18f)]]=_0x4d38ec[_0x17ee37(0x1ab)]['includeIssueType'][_0x17ee37(0x162)],_0x4d38ec[_0x37cae4['ZcOAq']]=_0x4d38ec[_0x17ee37(0x1ab)][_0x17ee37(0x15c)][_0x17ee37(0x19e)]));const _0x3e44aa=JSON['parse'](process[_0x17ee37(0x176)][_0x17ee37(0x18c)])[_0x17ee37(0x15d)];_0x4d38ec[_0x37cae4['yibZS']]=process[_0x17ee37(0x176)]['BS_A11Y_JWT'],_0x4d38ec[_0x37cae4[_0x17ee37(0x18d)]]=_0x3e44aa,delete _0x4d38ec[_0x17ee37(0x1ab)];},exports['getAccessibilityResults']=async _0x299166=>{const _0x355894=a32_0x4d5f0a,_0x121aa4={};_0x121aa4[_0x355894(0x1b4)]='No\x20accessibility\x20results\x20were\x20found.',_0x121aa4[_0x355894(0x188)]='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.';const _0x10a1d1=_0x121aa4;if(global[_0x355894(0x1b0)])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x299166,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x299166,scripts.getResults);return res;}catch{return logger[_0x355894(0x163)](_0x10a1d1[_0x355894(0x1b4)]),[];}else return logger[_0x355894(0x199)](_0x10a1d1[_0x355894(0x188)]),[];},exports[a32_0x4d5f0a(0x18b)]=async(_0x46c14f,_0x1c528d='')=>{const _0x3d96fd=a32_0x4d5f0a;if(global[_0x3d96fd(0x1b0)]){const _0x5a3287={};return _0x5a3287[_0x3d96fd(0x1a2)]=_0x1c528d,await exports[_0x3d96fd(0x160)](_0x46c14f,scripts[_0x3d96fd(0x18b)],_0x5a3287);}},exports['getAccessibilityResultsSummary']=async _0x6bba4b=>{const _0x2c474c=a32_0x4d5f0a,_0x302bb5={};_0x302bb5[_0x2c474c(0x1ae)]='No\x20summaryResults\x20found.',_0x302bb5[_0x2c474c(0x195)]=_0x2c474c(0x175);const _0x12562e=_0x302bb5;if(global['accessibilityPlatform'])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x6bba4b,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x6bba4b,scripts.getResultsSummary);return summaryResults;}catch{return logger[_0x2c474c(0x196)](_0x12562e['DnchR']),{};}else return logger[_0x2c474c(0x199)](_0x12562e[_0x2c474c(0x195)]),{};},exports['platformValidation']=async _0x79518c=>{const _0x38b2f6=a32_0x4d5f0a,_0x7acc89={'hIfzU':function(_0x457689,_0x28b22e){return _0x457689!==_0x28b22e;},'QJGrT':_0x38b2f6(0x186),'schoS':function(_0x2d3a9f,_0x4524d5){return _0x2d3a9f===_0x4524d5;},'vmiws':_0x38b2f6(0x17e),'FDJaE':_0x38b2f6(0x16c),'TaMVz':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','hxCdf':function(_0x571728,_0x29e29f){return _0x571728(_0x29e29f);},'WfytB':_0x38b2f6(0x181),'GXSYa':function(_0x5ce613,_0x529433){return _0x5ce613>_0x529433;},'Ticyf':_0x38b2f6(0x1a0)};try{if(!_0x7acc89[_0x38b2f6(0x1b1)](_0x79518c[_0x38b2f6(0x1a4)],''))return logger['warn'](_0x7acc89[_0x38b2f6(0x1b3)]),![];const _0xe2829b=_0x79518c['browser'];if(!(_0x7acc89['schoS'](_0xe2829b,_0x7acc89[_0x38b2f6(0x15b)])||_0x7acc89[_0x38b2f6(0x177)](_0xe2829b,_0x7acc89[_0x38b2f6(0x1b9)])))return logger['warn'](_0x7acc89['TaMVz']),![];const _0x17730b=_0x7acc89[_0x38b2f6(0x19d)](parseInt,_0x79518c['browser_version']);if(!(_0x7acc89[_0x38b2f6(0x177)](_0x17730b,_0x7acc89[_0x38b2f6(0x171)])||_0x7acc89['GXSYa'](_0x17730b,0x5e)))return logger['warn'](_0x7acc89[_0x38b2f6(0x189)]),![];}catch(_0x4ce434){logger[_0x38b2f6(0x196)](_0x38b2f6(0x197)+util[_0x38b2f6(0x17d)](_0x4ce434));}return!![];},exports['processAccessibilityCaps']=(_0x50f5bc,_0x4095dd,_0x4b648c)=>{const _0x56665e=a32_0x4d5f0a,_0x3c9b09={'pwllt':function(_0xbc68da){return _0xbc68da();},'otblr':_0x56665e(0x166),'OgVet':function(_0xc949d5,_0x4bd65f){return _0xc949d5===_0x4bd65f;},'utqQN':_0x56665e(0x17e),'IgdHj':_0x56665e(0x16c),'YPbWw':_0x56665e(0x1af),'NDYAV':function(_0x450af5,_0x4385f9){return _0x450af5===_0x4385f9;},'kYigC':_0x56665e(0x181),'ACsVO':function(_0x514a55,_0x127416){return _0x514a55>_0x127416;},'jExpa':_0x56665e(0x1a0),'WBFDf':function(_0x4139c0,_0x3a3cc4){return _0x4139c0(_0x3a3cc4);},'tXGwr':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','ftigJ':function(_0x35d299,_0x266c48){return _0x35d299+_0x266c48;},'YAHWd':function(_0x3b78a8,_0x273cc6){return _0x3b78a8(_0x273cc6);}};try{if(_0x3c9b09['pwllt'](isAccessibilityAutomationSession)){global['accessibilityPlatform']=!![];!_0x50f5bc[_0x3c9b09[_0x56665e(0x1a9)]]&&(global[_0x56665e(0x1b0)]=![]);!(_0x3c9b09[_0x56665e(0x1a6)](_0x50f5bc[_0x56665e(0x1ad)],_0x3c9b09['utqQN'])||_0x3c9b09[_0x56665e(0x1a6)](_0x50f5bc[_0x56665e(0x1ad)],_0x3c9b09[_0x56665e(0x1aa)]))&&(logger[_0x56665e(0x199)](_0x3c9b09['YPbWw']),global[_0x56665e(0x1b0)]=![]);!(_0x3c9b09[_0x56665e(0x16b)](_0x50f5bc[_0x56665e(0x19b)],_0x3c9b09['kYigC'])||_0x3c9b09[_0x56665e(0x173)](_0x50f5bc['browser_version'],0x5e))&&(logger['warn'](_0x3c9b09[_0x56665e(0x15f)]),global[_0x56665e(0x1b0)]=![]);!_0x3c9b09[_0x56665e(0x174)](isUndefined,_0x50f5bc[_0x56665e(0x1a4)])&&(logger[_0x56665e(0x199)](_0x3c9b09[_0x56665e(0x169)]),global[_0x56665e(0x1b0)]=![]);if(!global['accessibilityPlatform']){_0x50f5bc[_0x3c9b09['otblr']]=![];const _0x113604=_0x3c9b09[_0x56665e(0x1a8)](_0x4095dd,_0x3c9b09[_0x56665e(0x19a)](encodeURIComponent,JSON['stringify'](_0x50f5bc)));_0x4b648c&&(_0x4b648c[_0x56665e(0x182)][_0x56665e(0x1b6)][_0x56665e(0x19c)]['use']['connectOptions']['wsEndpoint']=_0x113604);}}}catch(_0x5d5852){logger[_0x56665e(0x196)]('Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20'+util[_0x56665e(0x17d)](_0x5d5852));}};
|
|
1
|
+
const a32_0x32219e=a32_0x23b6;function a32_0x23b6(_0x88c86e,_0x3e8de1){const _0x5c4539=a32_0x5c45();return a32_0x23b6=function(_0x23b64e,_0x35ab1a){_0x23b64e=_0x23b64e-0x1d2;let _0x56b95c=_0x5c4539[_0x23b64e];return _0x56b95c;},a32_0x23b6(_0x88c86e,_0x3e8de1);}(function(_0x2127ae,_0x25af71){const _0x16cd0a=a32_0x23b6,_0x2d7604=_0x2127ae();while(!![]){try{const _0x5a7cd2=-parseInt(_0x16cd0a(0x1df))/0x1*(-parseInt(_0x16cd0a(0x201))/0x2)+-parseInt(_0x16cd0a(0x1fa))/0x3+parseInt(_0x16cd0a(0x207))/0x4*(parseInt(_0x16cd0a(0x1d2))/0x5)+-parseInt(_0x16cd0a(0x202))/0x6+parseInt(_0x16cd0a(0x20d))/0x7*(-parseInt(_0x16cd0a(0x1f3))/0x8)+parseInt(_0x16cd0a(0x1d3))/0x9+-parseInt(_0x16cd0a(0x1fe))/0xa*(parseInt(_0x16cd0a(0x1e2))/0xb);if(_0x5a7cd2===_0x25af71)break;else _0x2d7604['push'](_0x2d7604['shift']());}catch(_0x223749){_0x2d7604['push'](_0x2d7604['shift']());}}}(a32_0x5c45,0xeb1bc));function a32_0x5c45(){const _0x581e75=['tzJnJ','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','browser','No\x20accessibility\x20results\x20were\x20found.','3952VsDEHT','xaKeO','bstackSdkArgs','xpTzP','stringify','includeIssueType','scannerProcessingTimeout','3521553ObFPKa','VbAiq','tURnm','replace','90BtoyHG','ujsxh','accessibilityOptions.scannerVersion','74oDwFjT','410274wHuriV','wsEndpoint','browserStackEvaluate','CjOZM','accessibilityOptions.includeIssueType.bestPractice','88QUkjSO','needsReview','executeAsyncScript','accessibilityPlatform','latest','accessibilityOptions.includeIssueType.needsReview','4473BJQPLD','XOvdv','testInfo','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','ItUVb','browser_version','setAccessibilityCapabilities','playwright-chromium','iSkZs','ifRFZ','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','../../helpers/helper','bkbbB','Playwright','MiKIO','performScan','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','env','accessibilityOptions','MDOQs','UUJjk','use','accessibilityOptions.wcagVersion','mBbru','AkAuU','tVVuq','method','deviceName','name','currentTest','SZrDC','format','util','bestPractice','../../helpers/logger','scannerVersion','executeScript','sEvHi','hiqtT','parse','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','warn','otTru','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','395105mjWzgV','4751298htygyi','error','No\x20summaryResults\x20found.','debug','MOzEN','evaluate','winstonLogger','phkjv','WebDriver','browserstack.accessibility','../../helpers/accessibility-automation/helper','qIyXj','15179XsRaRf','RWJnT','rbDzm','375353lhLMFo','lldCs','project','(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','accessibilityOptions.scannerProcessingTimeout','browserName','fCTuA','../../helpers/accessibility-automation/scripts','bLCbv','RTEKb','constructor','sFqWl','wcagVersion'];a32_0x5c45=function(){return _0x581e75;};return a32_0x5c45();}const util=require(a32_0x32219e(0x22e)),logger=require(a32_0x32219e(0x230))[a32_0x32219e(0x1d9)],{isAccessibilityAutomationSession}=require(a32_0x32219e(0x1dd)),{isUndefined}=require(a32_0x32219e(0x219)),scripts=require(a32_0x32219e(0x1e9));exports[a32_0x32219e(0x204)]=async(_0x1f2b74,_0x4cbe8b,_0xa63223={})=>{const _0x4a3aa0=a32_0x32219e,_0x39f618={};_0x39f618[_0x4a3aa0(0x1d7)]=_0x4a3aa0(0x1f5);const _0x354147=_0x39f618;return await _0x1f2b74[_0x4a3aa0(0x1d8)]('(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'+_0x4cbe8b[_0x4a3aa0(0x1fd)](/arguments/g,_0x354147[_0x4a3aa0(0x1d7)])+'\x0a\x20\x20\x20\x20})\x0a\x20\x20})('+JSON[_0x4a3aa0(0x1f7)](_0xa63223)+')');},exports['browserStackExecuteDriver']=async(_0x45def1,_0x31cfcf,_0xf95647={})=>{const _0x49ab51=a32_0x32219e,_0x2c19c8={};_0x2c19c8[_0x49ab51(0x238)]=function(_0x487fe6,_0x7c6b4a){return _0x487fe6===_0x7c6b4a;},_0x2c19c8[_0x49ab51(0x227)]=_0x49ab51(0x1db),_0x2c19c8[_0x49ab51(0x21a)]=_0x49ab51(0x21b),_0x2c19c8['hiqtT']=_0x49ab51(0x1f5);const _0xb2693c=_0x2c19c8;if(_0xb2693c[_0x49ab51(0x238)](_0x45def1['constructor'][_0x49ab51(0x22a)],_0xb2693c[_0x49ab51(0x227)]))return await _0x45def1[_0x49ab51(0x209)](_0x31cfcf,_0xf95647);else{if(_0xb2693c[_0x49ab51(0x238)](_0x45def1[_0x49ab51(0x1ec)][_0x49ab51(0x22a)],_0xb2693c[_0x49ab51(0x21a)]))return await _0x45def1[_0x49ab51(0x232)](_0x49ab51(0x1e5)+_0x31cfcf['replace'](/arguments/g,_0xb2693c[_0x49ab51(0x234)])+_0x49ab51(0x217)+JSON[_0x49ab51(0x1f7)](_0xf95647)+')');}},exports[a32_0x32219e(0x213)]=async _0x259d09=>{const _0x1f8c05=a32_0x32219e,_0xe6c1a={};_0xe6c1a['sEvHi']=_0x1f8c05(0x224),_0xe6c1a[_0x1f8c05(0x20e)]=_0x1f8c05(0x1e6),_0xe6c1a[_0x1f8c05(0x225)]=_0x1f8c05(0x206),_0xe6c1a[_0x1f8c05(0x1f6)]=_0x1f8c05(0x20c),_0xe6c1a[_0x1f8c05(0x22c)]='accessibilityOptions.authToken',_0xe6c1a['sFqWl']=_0x1f8c05(0x200);const _0x37904e=_0xe6c1a;_0x259d09[_0x1f8c05(0x220)]&&(_0x259d09[_0x1f8c05(0x220)][_0x1f8c05(0x1ee)]&&(_0x259d09[_0x37904e[_0x1f8c05(0x233)]]=_0x259d09[_0x1f8c05(0x220)]['wcagVersion']),_0x259d09[_0x1f8c05(0x220)][_0x1f8c05(0x1f9)]&&(_0x259d09[_0x37904e['XOvdv']]=_0x259d09[_0x1f8c05(0x220)][_0x1f8c05(0x1f9)]),_0x259d09[_0x1f8c05(0x220)][_0x1f8c05(0x1f8)]&&(_0x259d09[_0x37904e['mBbru']]=_0x259d09['accessibilityOptions'][_0x1f8c05(0x1f8)][_0x1f8c05(0x22f)],_0x259d09[_0x37904e['xpTzP']]=_0x259d09['accessibilityOptions']['includeIssueType'][_0x1f8c05(0x208)]));const _0x55e7d6=JSON[_0x1f8c05(0x235)](process[_0x1f8c05(0x21f)][_0x1f8c05(0x21e)])[_0x1f8c05(0x231)];_0x259d09[_0x37904e['SZrDC']]=process[_0x1f8c05(0x21f)]['BS_A11Y_JWT'],_0x259d09[_0x37904e[_0x1f8c05(0x1ed)]]=_0x55e7d6,delete _0x259d09[_0x1f8c05(0x220)];},exports['getAccessibilityResults']=async _0x3cded8=>{const _0x17f1f1=a32_0x32219e,_0x24a9fc={};_0x24a9fc[_0x17f1f1(0x1fc)]=_0x17f1f1(0x1f2),_0x24a9fc['qIyXj']=_0x17f1f1(0x239);const _0x2bf8a5=_0x24a9fc;if(global[_0x17f1f1(0x20a)])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x3cded8,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x3cded8,scripts.getResults);return res;}catch{return logger[_0x17f1f1(0x1d4)](_0x2bf8a5[_0x17f1f1(0x1fc)]),[];}else return logger[_0x17f1f1(0x237)](_0x2bf8a5[_0x17f1f1(0x1de)]),[];},exports[a32_0x32219e(0x21d)]=async(_0x1aa705,_0xebefb4='')=>{const _0x5b50a8=a32_0x32219e;if(global['accessibilityPlatform']){const _0x43a0e0={};return _0x43a0e0[_0x5b50a8(0x228)]=_0xebefb4,await exports[_0x5b50a8(0x204)](_0x1aa705,scripts[_0x5b50a8(0x21d)],_0x43a0e0);}},exports['getAccessibilityResultsSummary']=async _0x33b85c=>{const _0x4d4c80=a32_0x32219e,_0x5f2379={};_0x5f2379[_0x4d4c80(0x1ef)]=_0x4d4c80(0x1d5),_0x5f2379[_0x4d4c80(0x221)]=_0x4d4c80(0x1f0);const _0x4d3c3b=_0x5f2379;if(global['accessibilityPlatform'])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x33b85c,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x33b85c,scripts.getResultsSummary);return summaryResults;}catch{return logger[_0x4d4c80(0x1d6)](_0x4d3c3b['tzJnJ']),{};}else return logger['warn'](_0x4d3c3b[_0x4d4c80(0x221)]),{};},exports['platformValidation']=async _0x412fa2=>{const _0x29e17e=a32_0x32219e,_0x33b153={'zisXd':function(_0x3b4625,_0x383eac){return _0x3b4625!==_0x383eac;},'phkjv':_0x29e17e(0x210),'CjOZM':function(_0x38f8f7,_0x1d461a){return _0x38f8f7===_0x1d461a;},'ifRFZ':'chrome','fCTuA':_0x29e17e(0x214),'ItUVb':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','UUJjk':function(_0x3db93b,_0x13cd50){return _0x3db93b(_0x13cd50);},'RTEKb':_0x29e17e(0x20b),'QSftH':function(_0x3c1cee,_0x434e23){return _0x3c1cee>_0x434e23;},'OtkFD':_0x29e17e(0x236)};try{if(!_0x33b153['zisXd'](_0x412fa2[_0x29e17e(0x229)],''))return logger[_0x29e17e(0x237)](_0x33b153[_0x29e17e(0x1da)]),![];const _0x5ea47a=_0x412fa2[_0x29e17e(0x1f1)];if(!(_0x33b153[_0x29e17e(0x205)](_0x5ea47a,_0x33b153[_0x29e17e(0x216)])||_0x33b153[_0x29e17e(0x205)](_0x5ea47a,_0x33b153[_0x29e17e(0x1e8)])))return logger[_0x29e17e(0x237)](_0x33b153[_0x29e17e(0x211)]),![];const _0x15c853=_0x33b153[_0x29e17e(0x222)](parseInt,_0x412fa2[_0x29e17e(0x212)]);if(!(_0x33b153[_0x29e17e(0x205)](_0x15c853,_0x33b153[_0x29e17e(0x1eb)])||_0x33b153['QSftH'](_0x15c853,0x5e)))return logger[_0x29e17e(0x237)](_0x33b153['OtkFD']),![];}catch(_0x557936){logger['debug']('Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20'+util['format'](_0x557936));}return!![];},exports['processAccessibilityCaps']=(_0x5d1d05,_0x4211c9,_0x3346af)=>{const _0x44f53a=a32_0x32219e,_0x97fa6c={'iSkZs':function(_0x31e2c1){return _0x31e2c1();},'xaKeO':_0x44f53a(0x1dc),'rbDzm':function(_0x276a98,_0x5ae290){return _0x276a98===_0x5ae290;},'RWJnT':'chrome','bLCbv':function(_0x1a28b9,_0x2997f9){return _0x1a28b9===_0x2997f9;},'sLrno':'playwright-chromium','MiKIO':_0x44f53a(0x218),'PoZYc':'latest','VbAiq':function(_0x5300c7,_0x50a09c){return _0x5300c7>_0x50a09c;},'lIBVj':_0x44f53a(0x236),'lldCs':function(_0x582579,_0x4dbc26){return _0x582579(_0x4dbc26);},'ujsxh':_0x44f53a(0x210),'AkAuU':function(_0x3842c5,_0x1b7a0e){return _0x3842c5+_0x1b7a0e;}};try{if(_0x97fa6c[_0x44f53a(0x215)](isAccessibilityAutomationSession)){global[_0x44f53a(0x20a)]=!![];!_0x5d1d05[_0x97fa6c[_0x44f53a(0x1f4)]]&&(global[_0x44f53a(0x20a)]=![]);!(_0x97fa6c[_0x44f53a(0x1e1)](_0x5d1d05['browserName'],_0x97fa6c[_0x44f53a(0x1e0)])||_0x97fa6c[_0x44f53a(0x1ea)](_0x5d1d05[_0x44f53a(0x1e7)],_0x97fa6c['sLrno']))&&(logger[_0x44f53a(0x237)](_0x97fa6c[_0x44f53a(0x21c)]),global[_0x44f53a(0x20a)]=![]);!(_0x97fa6c[_0x44f53a(0x1e1)](_0x5d1d05[_0x44f53a(0x212)],_0x97fa6c['PoZYc'])||_0x97fa6c[_0x44f53a(0x1fb)](_0x5d1d05['browser_version'],0x5e))&&(logger[_0x44f53a(0x237)](_0x97fa6c['lIBVj']),global[_0x44f53a(0x20a)]=![]);!_0x97fa6c[_0x44f53a(0x1e3)](isUndefined,_0x5d1d05['deviceName'])&&(logger['warn'](_0x97fa6c[_0x44f53a(0x1ff)]),global[_0x44f53a(0x20a)]=![]);if(!global[_0x44f53a(0x20a)]){_0x5d1d05[_0x97fa6c[_0x44f53a(0x1f4)]]=![];const _0xeb9f6b=_0x97fa6c[_0x44f53a(0x226)](_0x4211c9,_0x97fa6c['lldCs'](encodeURIComponent,JSON[_0x44f53a(0x1f7)](_0x5d1d05)));_0x3346af&&(_0x3346af[_0x44f53a(0x22b)][_0x44f53a(0x20f)][_0x44f53a(0x1e4)][_0x44f53a(0x223)]['connectOptions'][_0x44f53a(0x203)]=_0xeb9f6b);}}}catch(_0xd490fc){logger[_0x44f53a(0x1d6)]('Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20'+util[_0x44f53a(0x22d)](_0xd490fc));}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a33_0x3e1458=a33_0x28b5;(function(_0x1baf6d,_0x196685){const _0x33a1d5=a33_0x28b5,_0x36b64f=_0x1baf6d();while(!![]){try{const _0x45be2a=parseInt(_0x33a1d5(0xcc))/0x1+-parseInt(_0x33a1d5(0x10b))/0x2+parseInt(_0x33a1d5(0x98))/0x3*(parseInt(_0x33a1d5(0x13c))/0x4)+-parseInt(_0x33a1d5(0xa6))/0x5+-parseInt(_0x33a1d5(0xa9))/0x6+parseInt(_0x33a1d5(0x135))/0x7*(-parseInt(_0x33a1d5(0x112))/0x8)+parseInt(_0x33a1d5(0x9f))/0x9;if(_0x45be2a===_0x196685)break;else _0x36b64f['push'](_0x36b64f['shift']());}catch(_0x5bff47){_0x36b64f['push'](_0x36b64f['shift']());}}}(a33_0x3c6f,0x9ab9d));const fs=require('fs'),path=require(a33_0x3e1458(0x81)),os=require('os'),{spawn}=require('child_process'),{format}=require('util'),logger=require(a33_0x3e1458(0x93))[a33_0x3e1458(0xd5)],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require(a33_0x3e1458(0xd8)),constants=require(a33_0x3e1458(0x90)),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require(a33_0x3e1458(0x116)),{CrashReporter,o11yErrorHandler}=require(a33_0x3e1458(0xbc)),{getFrameworkVersion}=require(a33_0x3e1458(0xfe)),{createAccessibilityTestRun,stopAccessibilityTestRun,checkAccessibilityPlatformConfig}=require(a33_0x3e1458(0xcd)),{setAccessibilityCapabilities}=require(a33_0x3e1458(0x104)),SessionHandler=require('../../helpers/test-observability/sessionHandler');async function requireOrImportDefaultObject(_0x44850b){const _0x33210e=a33_0x3e1458,_0x2fd92e={'uLzfm':function(_0x5da151){return _0x5da151();},'uKuKx':function(_0x49571e,_0x4af742){return _0x49571e(_0x4af742);},'ZAyNG':function(_0x489f08,_0x2f52cd){return _0x489f08===_0x2f52cd;},'ptwXu':_0x33210e(0xec),'hmNcp':function(_0x197949,_0x13c18c){return _0x197949 in _0x13c18c;},'ZkNuR':_0x33210e(0x13b)},{requireOrImport:_0x5f1f6d}=helper['requirePWModule'][_0x33210e(0xf3)](null,_0x2fd92e[_0x33210e(0xcb)](getTransformPath));let _0x5625e4=await _0x2fd92e[_0x33210e(0x82)](_0x5f1f6d,_0x44850b);return _0x5625e4&&_0x2fd92e[_0x33210e(0x11f)](typeof _0x5625e4,_0x2fd92e[_0x33210e(0x12b)])&&_0x2fd92e[_0x33210e(0xd4)](_0x2fd92e[_0x33210e(0x97)],_0x5625e4)&&(_0x5625e4=_0x5625e4[_0x2fd92e[_0x33210e(0x97)]]),_0x5625e4;}function a33_0x28b5(_0x3483fb,_0x51db07){const _0x3c6f93=a33_0x3c6f();return a33_0x28b5=function(_0x28b524,_0x4d1a6b){_0x28b524=_0x28b524-0x7e;let _0x45867b=_0x3c6f93[_0x28b524];return _0x45867b;},a33_0x28b5(_0x3483fb,_0x51db07);}function a33_0x3c6f(){const _0x2945d0=['gyCzY','TvSrH','bTwEL','2282970UjdpYN','resolvedConfigFile','writeFileSync','BS_A11Y_JWT','qHIuh','Getting\x20your\x20playwright\x20config\x20from\x20','gAKqX','8PmKlrF','tRIuf','pqJiN','rZddE','./reporter/pwUtils','trim','lJMWA','FLJSd','XOcrs','cliConfig','tLwHC','debug','AIQJk','ZAyNG','UfiSF','kdWtf','launch','lMbvx','requirePWModule','assign','kfpss','GarWc','has','error','cRpxX','ptwXu','--config','resolve','HEPvs','bJtdC','playwright','OtbRu','initialize','testIgnore','playwright-browserstack-sdk.config.js','490105iaMiEN','PLAYWRIGHT','testObservability','split','YYlTU','join','default','5140svTaVF','cwd','DzLep','Adding\x20browserstack\x20configs\x20to\x20setup\x20for\x20Observability','xswRq','getPackageType','BROWSERSTACK_RERUN_TESTS','accessibilityOptions','Error\x20in\x20generating\x20parallellised\x20config\x20for\x20playwright:\x20','skipSessionName','reporter','BROWSERSTACK_AUTOMATION','path','uKuKx','includes','BROWSERSTACK_RERUN','asyMb','true','XLIOh','USER_CONFIG_DETAILS_PATH','test','rXdCH','NYfmd','platforms','lUOIV','markSDKSetupComplete','PrBiN','../utils/constants','BS_A11Y_TEST_RUN_ID','homedir','../../helpers/logger','VcvxH','logLevel','Error\x20in\x20running\x20user\x20global\x20setup\x20for\x20playwright','ZkNuR','321vdRCyx','mLzwg','Can\x27t\x20get\x20user\x20defined\x20global\x20setup\x20file','XFJxy','close','existsSync','errorMessage','29202984wgnRwP','quEbA','length','platform','testContextOptions','BROWSERSTACK_TEST_OBSERVABILITY','info','4566865SXbEIj','4|0|2|3|1','xQtbo','4512978ZPMfhg','--disable-browserstack-automation','clearTempPWConfig','npx','testDir','testMatch','_internal','config','filterBrowserstackConfig','exitCode','UjsyN','get','collectFilesForProject','string','GWwms','OIUvL','XowkW','unlinkSync','QortW','../../helpers/test-observability/error-handler','Deleting\x20','FKGrI','respectGitIgnore','BrowserStack\x20config\x20file\x20not\x20found.','Error\x20in\x20deleting\x20playwright\x20results','QQETt','pw_result.json','./reporter/reporter.js','rYnoK','--disable-test-observability','EMzYG','stringify','lMgwd','isUndefined','uLzfm','128522scFdnA','../../helpers/accessibility-automation/helper','uyZSt','serializeToYamlString','MODULE','Error\x20in\x20importing\x20your\x20playwright\x20config:\x20','parse','\x0a\x0aconst\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0amodule.exports\x20=\x20modifyPWConfig();\x0a','hmNcp','winstonLogger','BROWSERSTACK_SETUP_CONFIG_PATH','project','../../helpers/helper','BmuLy','qVCnw','getConfigPath','accessibility','finalExecution','mBLUi','slice','hSEub','xYNIR','CpBGe','zLWqW','dirname','ROfvK','--config=','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','--grep','SkAPj','playwright-browserstack-sdk.config.cjs','RqYDh','object','@playwright/test','env','mtrty','hGobY','Ityji','globalSetup','apply','BROWSERSTACK_PW_CONFIG_DIR','veSYi','Error\x20in\x20getting\x20funnel\x20data\x20results','exports','push','spPVf','findIndex','isTrue','0|4|6|7|3|5|8|1|2','null','../../helpers/test-observability/utils','WgDbW','PzPSk','win32','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','filter','./accessibility-helper','startsWith','Uyfvr','BrowserStack\x20Accessibility\x20Automation\x20Test\x20Run\x20ID:\x20'];a33_0x3c6f=function(){return _0x2945d0;};return a33_0x3c6f();}const getUserPlaywrightConfig=async(_0xdd9f13,_0x44f645)=>{const _0x10483e=a33_0x3e1458,_0x1160b0={'quEbA':function(_0x35ba01){return _0x35ba01();},'UjsyN':function(_0x4ddfcb,_0x465d3b){return _0x4ddfcb(_0x465d3b);},'gAKqX':function(_0x154969,_0x5a0cfd){return _0x154969(_0x5a0cfd);},'DzLep':_0x10483e(0x10c),'XFJxy':function(_0x5478ff,_0x209cf8){return _0x5478ff(_0x209cf8);},'QIlBe':_0x10483e(0xd1),'zUfUV':'Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','pqJiN':_0x10483e(0xe6)},_0xc8ec2=!helper['isUndefined'](_0xdd9f13['config']),_0xfa1585=_0xc8ec2?path['resolve'](process[_0x10483e(0x13d)](),_0xdd9f13['config']):process['cwd'](),{resolveConfigFile:_0x567220,resolveConfigLocation:_0x447ac4}=helper['requirePWModule'][_0x10483e(0xf3)](null,_0x1160b0[_0x10483e(0xa0)](getConfigLoaderPath)),_0x27e749=_0x567220?_0x1160b0[_0x10483e(0xb3)](_0x567220,_0xfa1585):helper['nestedKeyValue'](_0x1160b0[_0x10483e(0x111)](_0x447ac4,_0xfa1585),[_0x1160b0[_0x10483e(0x13e)]]);let _0x67e939={};if(_0x27e749){logger[_0x10483e(0xa5)](_0x10483e(0x110)+_0x27e749);try{_0x67e939=await _0x1160b0[_0x10483e(0x9b)](requireOrImportDefaultObject,_0x27e749);}catch(_0x21cb0a){return logger['error'](_0x1160b0['QIlBe'],_0x1160b0['UjsyN'](format,_0x21cb0a)),null;}}else logger[_0x10483e(0xa5)](_0x1160b0['zUfUV']);if(_0xc8ec2){const _0x34f3e4=_0x44f645[_0x10483e(0xfa)](_0x1678c9=>_0x1678c9===_0x10483e(0x12c)||_0x1678c9==='-c'||_0x1678c9[_0x10483e(0x105)](_0x10483e(0xe6)));_0x44f645['splice'](_0x34f3e4,_0x44f645[_0x34f3e4][_0x10483e(0x105)](_0x1160b0[_0x10483e(0x114)])?0x1:0x2);}const _0x476973={};return _0x476973[_0x10483e(0x81)]=_0x27e749,_0x476973[_0x10483e(0xb0)]=_0x67e939,_0x476973;},setGlobalSetup=(_0x4854e8,_0x1489b5)=>{const _0x100a6b=a33_0x3e1458,_0x4b69f2={'YYlTU':_0x100a6b(0xf2),'AIQJk':_0x100a6b(0x9a),'UfiSF':function(_0x34edc9,_0x1765ee){return _0x34edc9+_0x1765ee;},'hckJw':_0x100a6b(0x96),'WgDbW':function(_0x44f7b,_0x389db3){return _0x44f7b(_0x389db3);},'bQJXk':'./globalSetup.js'};if(!_0x4854e8)return![];try{if(_0x4854e8['globalSetup']){let _0x41100d;const _0x12ed92=path[_0x100a6b(0x12d)](_0x1489b5,_0x4854e8[_0x4b69f2[_0x100a6b(0x139)]]);if(fs[_0x100a6b(0x9d)](_0x12ed92))_0x41100d=_0x12ed92;else{const _0x369e48={};_0x369e48['paths']=[_0x1489b5],_0x41100d=require['resolve'](_0x4854e8[_0x4b69f2['YYlTU']],_0x369e48);}if(!_0x41100d)throw new Error(_0x4b69f2[_0x100a6b(0x11e)]);process[_0x100a6b(0xee)]['BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP']=_0x41100d;}}catch(_0x118f80){logger[_0x100a6b(0x129)](_0x4b69f2[_0x100a6b(0x120)](_0x4b69f2['hckJw'],_0x4b69f2[_0x100a6b(0xff)](format,_0x118f80)));}return _0x4854e8[_0x100a6b(0xf2)]=require[_0x100a6b(0x12d)](_0x4b69f2['bQJXk']),!![];},addReporter=_0x36cdeb=>{const _0x271791=a33_0x3e1458,_0x6cd764={};_0x6cd764['TvSrH']=_0x271791(0xc4),_0x6cd764[_0x271791(0x12e)]=_0x271791(0x7f),_0x6cd764[_0x271791(0x123)]=function(_0x1b1bac,_0xf8aecf){return _0x1b1bac===_0xf8aecf;},_0x6cd764['GarWc']=_0x271791(0xb6),_0x6cd764['kfpss']=function(_0x244af6,_0x26faa0){return _0x244af6===_0x26faa0;},_0x6cd764[_0x271791(0x8d)]=_0x271791(0xec);const _0xdbf1c8=_0x6cd764,_0x5239c7=path['join'](__dirname,_0xdbf1c8[_0x271791(0x109)]),_0x5e654a=[_0x5239c7];if(helper[_0x271791(0xca)](_0x36cdeb[_0xdbf1c8[_0x271791(0x12e)]]))_0x36cdeb[_0xdbf1c8[_0x271791(0x12e)]]=[_0x5e654a];else{if(_0xdbf1c8['lMbvx'](typeof _0x36cdeb[_0xdbf1c8[_0x271791(0x12e)]],_0xdbf1c8[_0x271791(0x127)]))_0x36cdeb[_0xdbf1c8['HEPvs']]=[[_0x36cdeb[_0xdbf1c8[_0x271791(0x12e)]]],_0x5e654a];else _0xdbf1c8[_0x271791(0x126)](typeof _0x36cdeb[_0xdbf1c8[_0x271791(0x12e)]],_0xdbf1c8['lUOIV'])&&_0x36cdeb[_0xdbf1c8[_0x271791(0x12e)]][_0x271791(0xf8)](_0x5e654a);}},handleO11yRerun=_0x133e8f=>{const _0x100777=a33_0x3e1458,_0x64e3ad={};_0x64e3ad[_0x100777(0xc2)]=function(_0x431d9f,_0x462630){return _0x431d9f!==_0x462630;},_0x64e3ad[_0x100777(0x118)]=_0x100777(0xfd),_0x64e3ad[_0x100777(0xe0)]=_0x100777(0xe8);const _0x13028c=_0x64e3ad,_0x5cb8ff=helper['isTrue'](process['env'][_0x100777(0x84)]);if(_0x5cb8ff){const _0x577c8b=process[_0x100777(0xee)][_0x100777(0x142)],_0x190ff6=[];if(_0x13028c[_0x100777(0xc2)](_0x577c8b,_0x13028c[_0x100777(0x118)])&&!helper[_0x100777(0xca)](_0x577c8b)){_0x577c8b[_0x100777(0x138)](',')['map'](_0x2ca587=>{const _0xf490e9=_0x100777;_0x190ff6[_0xf490e9(0xf8)]('('+_0x2ca587[_0xf490e9(0x117)]()+')');});const _0x111b32='^'+_0x190ff6[_0x100777(0x13a)]('|')+'$';_0x133e8f['push'](_0x13028c[_0x100777(0xe0)],_0x111b32);}}},spawnOriginalProcess=_0x78aeb5=>{const _0x589b6d=a33_0x3e1458,_0x44a3a9={'GWwms':function(_0x5cea04,_0x351d69,_0x1e4e5b,_0x3b8ba9){return _0x5cea04(_0x351d69,_0x1e4e5b,_0x3b8ba9);},'eWrAj':_0x589b6d(0xac),'NYfmd':'playwright','kdWtf':function(_0x3d401d,_0x27a0a5){return _0x3d401d===_0x27a0a5;},'XLIOh':'win32','qVCnw':'inherit'};_0x44a3a9[_0x589b6d(0xb7)](spawn,_0x44a3a9['eWrAj'],[_0x44a3a9[_0x589b6d(0x8b)],..._0x78aeb5[_0x589b6d(0xdf)](0x1)],{'shell':_0x44a3a9[_0x589b6d(0x121)](process[_0x589b6d(0xa2)],_0x44a3a9[_0x589b6d(0x87)]),'stdio':_0x44a3a9[_0x589b6d(0xda)],'cwd':process[_0x589b6d(0x13d)]()});},isTestCommand=(_0x2cd5a7,_0x3dfdd3)=>{const _0x524f05=a33_0x3e1458,_0x1769e3={};_0x1769e3[_0x524f05(0x12a)]=function(_0x49822f,_0x284ef7){return _0x49822f>_0x284ef7;},_0x1769e3['PzPSk']=function(_0x155eb5,_0x3bfbaf){return _0x155eb5===_0x3bfbaf;},_0x1769e3['oyUot']=_0x524f05(0x89);const _0x1bad22=_0x1769e3;if(_0x1bad22[_0x524f05(0x12a)](_0x3dfdd3[_0x524f05(0xa1)],0x1)&&_0x1bad22[_0x524f05(0x100)](_0x3dfdd3[0x1],_0x1bad22['oyUot']))return!![];return![];},initO11yCrashReporter=(_0xb41ef2,_0x2300b0)=>{const _0x483da3=a33_0x3e1458,_0x3070cf={'VcvxH':function(_0x5b2115,_0x570531){return _0x5b2115(_0x570531);}},_0x9e6055={'frameworkName':FRAMEWORKS['PLAYWRIGHT'],'frameworkVersion':_0x3070cf[_0x483da3(0x94)](getFrameworkVersion,FRAMEWORKS['PLAYWRIGHT'])};CrashReporter[_0x483da3(0x132)](_0x9e6055,_0xb41ef2,_0x2300b0);},launchO11ySession=o11yErrorHandler(async function launchO11ySession(_0x5e3ea5){const _0x1720f0=a33_0x3e1458,_0x5212d7={};_0x5212d7[_0x1720f0(0xc9)]=function(_0x10551b,_0x457486){return _0x10551b>_0x457486;},_0x5212d7[_0x1720f0(0x12f)]=function(_0x2638e7,_0x51ac2a){return _0x2638e7===_0x51ac2a;};const _0x59c91b=_0x5212d7;if(!_0x5e3ea5||_0x59c91b[_0x1720f0(0xc9)](_0x5e3ea5['length'],0x1)&&_0x59c91b[_0x1720f0(0x12f)](_0x5e3ea5[0x0],null))return process['env'][_0x1720f0(0xa4)]=![],![];return!![];});async function run(_0x243f56,_0x4c98f7){const _0x34fbd1=a33_0x3e1458,_0x2dd025={'mLzwg':'.browserstack','tLwHC':_0x34fbd1(0xc3),'xQtbo':function(_0x4d108f,_0x3e5a27){return _0x4d108f+_0x3e5a27;},'rZddE':_0x34fbd1(0xf6),'XOcrs':_0x34fbd1(0xfc),'mBLUi':function(_0x83d1a2){return _0x83d1a2();},'ROfvK':function(_0x12a806,_0x57e356){return _0x12a806(_0x57e356);},'wnsWE':'Error\x20in\x20closing\x20playwright','cvxAn':_0x34fbd1(0xaa),'uyZSt':'false','ShILL':_0x34fbd1(0xc6),'FLJSd':function(_0x27d92c,_0x4be863){return _0x27d92c>=_0x4be863;},'njyKL':_0x34fbd1(0xc1),'Zusvl':function(_0x32fb0f,_0x4d74c4,_0x5cb0fb){return _0x32fb0f(_0x4d74c4,_0x5cb0fb);},'OIUvL':_0x34fbd1(0xc0),'veSYi':'automation','xYNIR':function(_0x499a3d,_0x54f25d){return _0x499a3d!=_0x54f25d;},'OtbRu':function(_0x5d403c,_0x45c888,_0x23b62f){return _0x5d403c(_0x45c888,_0x23b62f);},'PrBiN':function(_0x1cfd25,_0x5056aa,_0x2e96b7){return _0x1cfd25(_0x5056aa,_0x2e96b7);},'zLWqW':function(_0x26e4f4,_0x75bb83){return _0x26e4f4(_0x75bb83);},'qHIuh':function(_0x407fa6,_0x2f1c15){return _0x407fa6(_0x2f1c15);},'FKGrI':_0x34fbd1(0xa7),'vpdov':_0x34fbd1(0x13f),'bTwEL':function(_0x385751,_0x41aede){return _0x385751===_0x41aede;},'EMzYG':_0x34fbd1(0x86),'BmuLy':function(_0x7f9dc0,_0xa7edce){return _0x7f9dc0(_0xa7edce);},'XowkW':function(_0x1d5ce0,_0x3732eb,_0x45af5f){return _0x1d5ce0(_0x3732eb,_0x45af5f);},'vhgdD':_0x34fbd1(0xed),'CpBGe':'browserstackSetupConfig.json','SgcaX':function(_0x5268e1){return _0x5268e1();},'SkAPj':'testDir','QortW':_0x34fbd1(0xae),'RqYDh':'testIgnore','spPVf':function(_0x54fac1,_0x17e28a){return _0x54fac1+_0x17e28a;},'HXIWu':_0x34fbd1(0x144),'pTYHr':function(_0x3a2dce,_0x273b05){return _0x3a2dce(_0x273b05);},'hGobY':_0x34fbd1(0xea),'JPbgJ':_0x34fbd1(0x134),'gyCzY':function(_0x160708,_0x198ac4){return _0x160708>_0x198ac4;},'xswRq':function(_0x30d1d4,_0x236eef){return _0x30d1d4+_0x236eef;},'Ityji':function(_0x401a50,_0x362064,_0x2bf3b4,_0x24d5c0){return _0x401a50(_0x362064,_0x2bf3b4,_0x24d5c0);},'mtrty':'npx','smJds':_0x34fbd1(0x130),'rXdCH':_0x34fbd1(0x89),'rYnoK':_0x34fbd1(0x12c),'tRIuf':function(_0x4f04e8,_0x567bad){return _0x4f04e8===_0x567bad;},'asyMb':_0x34fbd1(0x101),'mNJEB':'inherit','Uyfvr':_0x34fbd1(0x9c)};!helper['isFalse'](process[_0x34fbd1(0xee)][_0x34fbd1(0x80)])&&(process[_0x34fbd1(0xee)]['BROWSERSTACK_AUTOMATION']=!![]);process['argv'][_0x34fbd1(0x83)](_0x2dd025['cvxAn'])&&(process[_0x34fbd1(0xee)][_0x34fbd1(0x80)]=_0x2dd025[_0x34fbd1(0xce)],_0x4c98f7=_0x4c98f7['filter'](_0x296016=>_0x296016!==_0x34fbd1(0xaa)));const _0x5ad0bf=_0x4c98f7['indexOf'](_0x2dd025['ShILL']);_0x2dd025[_0x34fbd1(0x119)](_0x5ad0bf,0x0)&&(process[_0x34fbd1(0xee)]['BROWSERSTACK_TEST_OBSERVABILITY']=_0x2dd025[_0x34fbd1(0xce)],_0x4c98f7=_0x4c98f7[_0x34fbd1(0x103)](_0x5068fe=>_0x5068fe!==_0x34fbd1(0xc6)));try{const _0x5c5610=path[_0x34fbd1(0x13a)](helper['homedir'](),_0x2dd025[_0x34fbd1(0x99)],_0x2dd025[_0x34fbd1(0x11c)]);fs['existsSync'](_0x5c5610)&&fs[_0x34fbd1(0xba)](_0x5c5610);}catch(_0x27b380){logger[_0x34fbd1(0x11d)](_0x2dd025[_0x34fbd1(0xa8)](_0x2dd025['njyKL'],_0x27b380));}if(!_0x2dd025['Zusvl'](isTestCommand,_0x243f56,_0x4c98f7)){_0x2dd025[_0x34fbd1(0xe5)](spawnOriginalProcess,_0x4c98f7);return;}const _0x314186=new BrowserStackSetup(_0x243f56,FRAMEWORKS['PLAYWRIGHT']);if(!_0x314186[_0x34fbd1(0xb0)]){logger[_0x34fbd1(0x129)](_0x2dd025[_0x34fbd1(0xb8)]);return;}await _0x314186[_0x34fbd1(0x132)]();!helper[_0x34fbd1(0xca)](_0x314186[_0x34fbd1(0x11b)])&&_0x314186[_0x34fbd1(0x11b)][_0x34fbd1(0x128)](_0x2dd025[_0x34fbd1(0xf5)])&&(process[_0x34fbd1(0xee)][_0x34fbd1(0x80)]=_0x314186[_0x34fbd1(0x11b)][_0x34fbd1(0xb4)](_0x2dd025['veSYi'])||!![]);_0x2dd025[_0x34fbd1(0xe1)](_0x314186['config'][_0x34fbd1(0x137)],null)&&!helper[_0x34fbd1(0xfb)](process['env'][_0x34fbd1(0xa4)])&&(process[_0x34fbd1(0xee)][_0x34fbd1(0xa4)]=process[_0x34fbd1(0xee)][_0x34fbd1(0xa4)]||_0x314186[_0x34fbd1(0xb0)][_0x34fbd1(0x137)]);const _0x19ccfc=!helper['isFalse'](process[_0x34fbd1(0xee)][_0x34fbd1(0xa4)]);let _0x113e90=![];_0x314186[_0x34fbd1(0xb0)][_0x34fbd1(0xdc)]&&(_0x113e90=!![],process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x314186[_0x34fbd1(0xb0)][_0x34fbd1(0xdc)]);_0x314186[_0x34fbd1(0xb0)][_0x34fbd1(0x143)]&&(process['env'][_0x34fbd1(0xe7)]=JSON[_0x34fbd1(0xc8)](_0x314186['config'][_0x34fbd1(0x143)]));const _0x1f3924=_0x4c98f7['concat'](),_0x17308b=await _0x2dd025[_0x34fbd1(0x131)](getUserPlaywrightConfig,_0x243f56,_0x4c98f7);if(helper[_0x34fbd1(0xca)](_0x17308b)){_0x2dd025['ROfvK'](spawnOriginalProcess,_0x1f3924);return;}const _0x413c7a={..._0x17308b[_0x34fbd1(0xb0)]},_0x28629c=_0x413c7a,_0x8e4b21=_0x17308b[_0x34fbd1(0x81)]?path[_0x34fbd1(0xe4)](_0x17308b[_0x34fbd1(0x81)]):process[_0x34fbd1(0x13d)]();process['env'][_0x34fbd1(0xf4)]=_0x8e4b21;if(!_0x2dd025[_0x34fbd1(0x8f)](setGlobalSetup,_0x28629c,_0x8e4b21)){_0x2dd025[_0x34fbd1(0xe3)](spawnOriginalProcess,_0x1f3924);return;}const _0x3374ab=await SessionHandler[_0x34fbd1(0x122)](_0x314186[_0x34fbd1(0xb0)],{'frameworkName':FRAMEWORKS[_0x34fbd1(0x136)],'frameworkVersion':_0x2dd025[_0x34fbd1(0x10f)](getFrameworkVersion,FRAMEWORKS['PLAYWRIGHT'])});if(_0x19ccfc){const _0x23f4be=_0x2dd025[_0x34fbd1(0xbe)][_0x34fbd1(0x138)]('|');let _0x1433ad=0x0;while(!![]){switch(_0x23f4be[_0x1433ad++]){case'0':_0x2dd025[_0x34fbd1(0x131)](initO11yCrashReporter,_0x28629c,_0x314186['config']);continue;case'1':await _0x2dd025['ROfvK'](launchO11ySession,_0x3374ab);continue;case'2':_0x2dd025['zLWqW'](addReporter,_0x28629c);continue;case'3':_0x2dd025['ROfvK'](handleO11yRerun,_0x4c98f7);continue;case'4':logger[_0x34fbd1(0xa5)](_0x2dd025['vpdov']);continue;}break;}}let _0x60457d=_0x2dd025['bTwEL'](process[_0x34fbd1(0xee)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML'],_0x2dd025[_0x34fbd1(0xc7)]);_0x60457d=_0x60457d||_0x2dd025[_0x34fbd1(0xd9)](checkAccessibilityPlatformConfig,_0x314186['config']),process[_0x34fbd1(0xee)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x60457d;if(_0x60457d){const [_0x51a83f,_0x344af9]=await _0x2dd025[_0x34fbd1(0xb9)](createAccessibilityTestRun,_0x314186[_0x34fbd1(0xb0)],_0x2dd025['vhgdD']);logger[_0x34fbd1(0x11d)](_0x34fbd1(0x107)+_0x344af9),process[_0x34fbd1(0xee)][_0x34fbd1(0x10e)]=_0x51a83f,process[_0x34fbd1(0xee)][_0x34fbd1(0x91)]=_0x344af9,_0x2dd025['qHIuh'](setAccessibilityCapabilities,_0x314186[_0x34fbd1(0xb0)]);}(helper[_0x34fbd1(0xca)](_0x314186[_0x34fbd1(0xb0)][_0x34fbd1(0x8c)])||_0x2dd025[_0x34fbd1(0x10a)](_0x314186[_0x34fbd1(0xb0)]['platforms'][_0x34fbd1(0xa1)],0x0))&&(process[_0x34fbd1(0xee)][_0x34fbd1(0x80)]=![]);const _0x5ea9da=path['join'](_0x17308b[_0x34fbd1(0x81)]?path[_0x34fbd1(0xe4)](_0x17308b['path']):process[_0x34fbd1(0x13d)](),_0x2dd025[_0x34fbd1(0xe2)]);fs[_0x34fbd1(0x10d)](_0x5ea9da,helper[_0x34fbd1(0xcf)](_0x314186['config'])),process['env'][_0x34fbd1(0xd6)]=_0x5ea9da,helper[_0x34fbd1(0xab)]();if(helper[_0x34fbd1(0xfb)](process[_0x34fbd1(0xee)][_0x34fbd1(0x80)])){let _0x119e64=[];try{const _0x8de115=helper[_0x34fbd1(0x124)]['apply'](null,_0x2dd025['SgcaX'](getProjectUtilsPath)),_0x467571={};_0x467571[_0x34fbd1(0xbf)]=!![],_0x467571[_0x34fbd1(0xad)]='',_0x467571[_0x34fbd1(0xae)]='',_0x467571[_0x34fbd1(0x133)]='';const _0x5558e7={};_0x5558e7[_0x34fbd1(0xbf)]=!![];const _0x4880d6={};_0x4880d6['project']=_0x467571,_0x4880d6[_0x34fbd1(0xaf)]=_0x5558e7;let _0x301195=_0x4880d6;_0x28629c[_0x2dd025[_0x34fbd1(0xe9)]]&&(_0x301195[_0x34fbd1(0xd7)][_0x2dd025['SkAPj']]=_0x28629c[_0x2dd025[_0x34fbd1(0xe9)]]),_0x28629c[_0x2dd025['QortW']]&&(_0x301195[_0x34fbd1(0xd7)][_0x2dd025[_0x34fbd1(0xbb)]]=_0x28629c[_0x2dd025[_0x34fbd1(0xbb)]]),_0x28629c[_0x2dd025[_0x34fbd1(0xeb)]]&&(_0x301195['project'][_0x2dd025[_0x34fbd1(0xeb)]]=_0x28629c[_0x2dd025[_0x34fbd1(0xeb)]]),_0x301195=Object[_0x34fbd1(0x125)](_0x301195,_0x301195['project']),_0x119e64=await _0x8de115[_0x34fbd1(0xb5)](_0x301195);}catch(_0x84d0e5){logger[_0x34fbd1(0x11d)](_0x2dd025[_0x34fbd1(0xf9)](_0x2dd025['HXIWu'],_0x2dd025['pTYHr'](format,_0x84d0e5)));}}let _0x11e5eb='';_0x2dd025[_0x34fbd1(0x10a)](helper[_0x34fbd1(0x141)](),constants['PACKAGE_TYPE'][_0x34fbd1(0xd0)])?_0x11e5eb=_0x2dd025[_0x34fbd1(0xf0)]:_0x11e5eb=_0x2dd025['JPbgJ'];const _0x4032ac=path[_0x34fbd1(0x13a)](_0x17308b[_0x34fbd1(0x81)]?path[_0x34fbd1(0xe4)](_0x17308b[_0x34fbd1(0x81)]):process['cwd'](),_0x11e5eb);let _0xc3b1=_0x17308b['path']?_0x17308b[_0x34fbd1(0x81)]:'';_0xc3b1=_0x2dd025[_0x34fbd1(0x108)](_0xc3b1[_0x34fbd1(0xa1)],0x0)?path[_0x34fbd1(0x12d)](_0xc3b1):'',process['env'][_0x34fbd1(0x88)]=_0xc3b1;let _0xeb23cb=_0x34fbd1(0xd3);const _0x4a79e5=helper['getProxyUrl'](_0x314186[_0x34fbd1(0xb0)]);_0x4a79e5&&(_0xeb23cb=_0x2dd025[_0x34fbd1(0x140)](_0x34fbd1(0x102)+_0x4a79e5+'\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();',_0xeb23cb));helper[_0x34fbd1(0xb1)]({},_0x4c98f7),fs[_0x34fbd1(0x10d)](_0x4032ac,_0xeb23cb),helper[_0x34fbd1(0x8e)]();const _0x62d951=_0x2dd025[_0x34fbd1(0xf1)](spawn,_0x2dd025[_0x34fbd1(0xef)],[_0x2dd025['smJds'],_0x2dd025[_0x34fbd1(0x8a)],_0x2dd025[_0x34fbd1(0xc5)],_0x4032ac,..._0x4c98f7[_0x34fbd1(0xdf)](0x2)],{'shell':_0x2dd025[_0x34fbd1(0x113)](process[_0x34fbd1(0xa2)],_0x2dd025[_0x34fbd1(0x85)]),'stdio':_0x2dd025['mNJEB'],'cwd':process[_0x34fbd1(0x13d)](),'env':Object[_0x34fbd1(0x125)]({},process[_0x34fbd1(0xee)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x34fbd1(0xdb)](_0x243f56),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x314186[_0x34fbd1(0xb0)][_0x34fbd1(0xa3)]['skipSessionStatus'],'BROWSERSTACK_SKIP_SESSION_NAME':_0x314186[_0x34fbd1(0xb0)][_0x34fbd1(0xa3)][_0x34fbd1(0x7e)],'BROWSERSTACK_LOG_LEVEL':_0x314186[_0x34fbd1(0xb0)][_0x34fbd1(0x95)]})}),_0x40f703=()=>{const _0x4f2bfb=_0x34fbd1;try{const _0x139e98=path['join'](helper[_0x4f2bfb(0x92)](),_0x2dd025[_0x4f2bfb(0x99)],_0x2dd025[_0x4f2bfb(0x11c)]);if(fs[_0x4f2bfb(0x9d)](_0x139e98)){let _0x492320=fs['readFileSync'](_0x139e98);_0x492320=JSON[_0x4f2bfb(0xd2)](_0x492320),_0x314186[_0x4f2bfb(0x9e)]=_0x492320,fs[_0x4f2bfb(0xba)](_0x139e98);}}catch(_0x28cfb8){logger[_0x4f2bfb(0x11d)](_0x2dd025[_0x4f2bfb(0xa8)](_0x2dd025[_0x4f2bfb(0x115)],_0x28cfb8));}};_0x62d951['on'](_0x2dd025[_0x34fbd1(0x106)],async _0x314f18=>{const _0x34f31d=_0x34fbd1;try{const _0x54de89=_0x2dd025[_0x34f31d(0x11a)][_0x34f31d(0x138)]('|');let _0x3ab555=0x0;while(!![]){switch(_0x54de89[_0x3ab555++]){case'0':_0x2dd025[_0x34f31d(0xde)](_0x40f703);continue;case'1':logger[_0x34f31d(0x11d)](_0x34f31d(0xbd)+_0x5ea9da);continue;case'2':fs[_0x34f31d(0xba)](_0x5ea9da);continue;case'3':logger[_0x34f31d(0x11d)]('Playwright\x20process\x20exited\x20with\x20code\x20'+_0x314f18);continue;case'4':await helper[_0x34f31d(0xdd)](_0x314186);continue;case'5':logger['info'](_0x34f31d(0xbd)+_0x4032ac);continue;case'6':await _0x2dd025[_0x34f31d(0xe5)](stopAccessibilityTestRun,_0x314186[_0x34f31d(0xb0)]);continue;case'7':process[_0x34f31d(0xb2)]=_0x314f18;continue;case'8':fs[_0x34f31d(0xba)](_0x4032ac);continue;}break;}}catch(_0x1e9fff){logger[_0x34f31d(0x11d)](_0x2dd025[_0x34f31d(0xa8)](_0x2dd025['wnsWE'],_0x1e9fff));}});}module[a33_0x3e1458(0xf7)]=run;
|
|
2
|
+
'use strict';const a33_0x17dc7a=a33_0x59f3;(function(_0x2ecfcc,_0x4ceaa5){const _0x4fa298=a33_0x59f3,_0x4f33be=_0x2ecfcc();while(!![]){try{const _0x4081c9=parseInt(_0x4fa298(0x16e))/0x1*(-parseInt(_0x4fa298(0x1cf))/0x2)+-parseInt(_0x4fa298(0x183))/0x3+parseInt(_0x4fa298(0x173))/0x4+parseInt(_0x4fa298(0x1bf))/0x5*(-parseInt(_0x4fa298(0x1eb))/0x6)+-parseInt(_0x4fa298(0x17e))/0x7+parseInt(_0x4fa298(0x1cb))/0x8*(parseInt(_0x4fa298(0x165))/0x9)+parseInt(_0x4fa298(0x184))/0xa;if(_0x4081c9===_0x4ceaa5)break;else _0x4f33be['push'](_0x4f33be['shift']());}catch(_0x5c7a74){_0x4f33be['push'](_0x4f33be['shift']());}}}(a33_0x1be1,0x615ad));function a33_0x1be1(){const _0x5294a7=['Cjlea','lsTng','info','WlLoF','6465798NkAZZE','../../helpers/helper','getPackageType','string','VrOEL','WXLEb','vqkMx','UBgwV','testMatch','2qIWmYT','aLtEw','markSDKSetupComplete','globalSetup','--grep','326212WBWewV','exports','test','sagam','QjFIr','startsWith','HsNQl','inherit','platforms','BrowserStack\x20config\x20file\x20not\x20found.','BrowserStack\x20Accessibility\x20Automation\x20Test\x20Run\x20ID:\x20','4643142HOJwQF','Mykcb','serializeToYamlString','hmYUS','path','993543wIGhIY','9172370JrimAn','iPYYR','jWEoB','../../helpers/test-observability/sessionHandler','oQvgI','logLevel','tIRbV','resolve','kolnQ','object','pJaMM','eWfNJ','cliConfig','get','platform','MODULE','trim','--config','child_process','teMVd','BROWSERSTACK_RERUN_TESTS','4|3|2|0|1','config','Deleting\x20','true','lYLBU','browserstackSetupConfig.json','TBUiA','length','PACKAGE_TYPE','Can\x27t\x20get\x20user\x20defined\x20global\x20setup\x20file','split','homedir','existsSync','../../helpers/test-observability/constants','env','isFalse','LInHB','stringify','ALEgu','CXNyM','getProxyUrl','cwd','RRdFR','reporter','BROWSERSTACK_RERUN','JniPC','respectGitIgnore','collectFilesForProject','fGvcj','AsWmJ','testObservability','PuZUT','XyuEM','slice','BROWSERSTACK_TEST_ACCESSIBILITY_YML','automation','Ifpec','finalExecution','10jNyyCI','jndgu','isTrue','BROWSERSTACK_TEST_OBSERVABILITY','debug','PLAYWRIGHT','RLbEt','--disable-test-observability','tIkdn','playwright-browserstack-sdk.config.cjs','skipSessionName','BROWSERSTACK_SETUP_CONFIG_PATH','8Hejtlv','accessibilityOptions','push','--config=','188098pqFIhR','RjoBv','Zgwnu','splice','isUndefined','gNLoP','playwright','XuOqJ','win32','dUJsj','LcYve','filter','@playwright/test','apply','FcohS','iSkqq','resolvedConfigFile','bgozl','ywFjZ','hJolb','ItWwg','readFileSync','./accessibility-helper','initialize','dirname','launch','../../helpers/test-observability/utils','PyRkJ','407586amMeEh','xFisf','has','hcHuK','SOULX','FBxoQ','OEsoB','join','./reporter/reporter.js','./reporter/pwUtils','getConfigPath','FllLK','parse','ZgPVr','BS_A11Y_TEST_RUN_ID','_internal','TLYPe','concat','winstonLogger','assign','skipSessionStatus','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','FUGVW','error','playwright-browserstack-sdk.config.js','map','requirePWModule','npx','.browserstack','rmTxT','nUfIu','false','exitCode','null','NAwvi','../utils/constants','filterBrowserstackConfig','bQSYf','XLSXI','BS_A11Y_JWT','YcWtB','unlinkSync','Error\x20in\x20getting\x20funnel\x20data\x20results','--disable-browserstack-automation','YtNAM','argv','USER_CONFIG_DETAILS_PATH','VGgDC','util','../../helpers/logger','JyJfV','testContextOptions','ueqIW','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','CsGHO','LdHOS','testDir','oAsFG','nestedKeyValue','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','fxEQv','pw_result.json','Error\x20in\x20deleting\x20playwright\x20results','accessibility','writeFileSync','JPRYI','BtLiA','WbRYE','rfCJf','Error\x20in\x20running\x20user\x20global\x20setup\x20for\x20playwright','testIgnore','BROWSERSTACK_AUTOMATION','project','Playwright\x20process\x20exited\x20with\x20code\x20'];a33_0x1be1=function(){return _0x5294a7;};return a33_0x1be1();}const fs=require('fs'),path=require(a33_0x17dc7a(0x182)),os=require('os'),{spawn}=require(a33_0x17dc7a(0x196)),{format}=require(a33_0x17dc7a(0x147)),logger=require(a33_0x17dc7a(0x148))[a33_0x17dc7a(0x129)],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require(a33_0x17dc7a(0x166)),constants=require(a33_0x17dc7a(0x13a)),{FRAMEWORKS}=require(a33_0x17dc7a(0x1a6)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require(a33_0x17dc7a(0x120)),{CrashReporter,o11yErrorHandler}=require('../../helpers/test-observability/error-handler'),{getFrameworkVersion}=require(a33_0x17dc7a(0x1e9)),{createAccessibilityTestRun,stopAccessibilityTestRun,checkAccessibilityPlatformConfig}=require('../../helpers/accessibility-automation/helper'),{setAccessibilityCapabilities}=require(a33_0x17dc7a(0x1e5)),SessionHandler=require(a33_0x17dc7a(0x187));async function requireOrImportDefaultObject(_0x271582){const _0x227796=a33_0x17dc7a,_0x11c177={'Zgwnu':function(_0x92367f){return _0x92367f();},'Mykcb':function(_0x47adc2,_0x482056){return _0x47adc2(_0x482056);},'fxEQv':function(_0x484155,_0x2b911c){return _0x484155===_0x2b911c;},'ItWwg':_0x227796(0x18d),'Ifpec':function(_0x23e6de,_0x3d5397){return _0x23e6de in _0x3d5397;},'PyRkJ':'default'},{requireOrImport:_0x97bcb1}=helper[_0x227796(0x131)][_0x227796(0x1dc)](null,_0x11c177[_0x227796(0x1d1)](getTransformPath));let _0x5d9ce5=await _0x11c177[_0x227796(0x17f)](_0x97bcb1,_0x271582);return _0x5d9ce5&&_0x11c177[_0x227796(0x153)](typeof _0x5d9ce5,_0x11c177[_0x227796(0x1e3)])&&_0x11c177[_0x227796(0x1bd)](_0x11c177[_0x227796(0x1ea)],_0x5d9ce5)&&(_0x5d9ce5=_0x5d9ce5[_0x11c177['PyRkJ']]),_0x5d9ce5;}const getUserPlaywrightConfig=async(_0x50497d,_0x1e9269)=>{const _0x2b4215=a33_0x17dc7a,_0x536a1b={'CsGHO':function(_0x4f3a65){return _0x4f3a65();},'dUJsj':function(_0x103e3b,_0x439eee){return _0x103e3b(_0x439eee);},'CXNyM':_0x2b4215(0x1df),'XyuEM':'Error\x20in\x20importing\x20your\x20playwright\x20config:\x20','FcohS':'Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','pJaMM':_0x2b4215(0x1ce)},_0x1540ad=!helper[_0x2b4215(0x1d3)](_0x50497d[_0x2b4215(0x19a)]),_0x44ad88=_0x1540ad?path[_0x2b4215(0x18b)](process[_0x2b4215(0x1ae)](),_0x50497d[_0x2b4215(0x19a)]):process[_0x2b4215(0x1ae)](),{resolveConfigFile:_0x4eaad0,resolveConfigLocation:_0x1021d2}=helper[_0x2b4215(0x131)][_0x2b4215(0x1dc)](null,_0x536a1b[_0x2b4215(0x14d)](getConfigLoaderPath)),_0x5e78d4=_0x4eaad0?_0x536a1b[_0x2b4215(0x1d8)](_0x4eaad0,_0x44ad88):helper[_0x2b4215(0x151)](_0x536a1b[_0x2b4215(0x1d8)](_0x1021d2,_0x44ad88),[_0x536a1b[_0x2b4215(0x1ac)]]);let _0x3042ac={};if(_0x5e78d4){logger['info']('Getting\x20your\x20playwright\x20config\x20from\x20'+_0x5e78d4);try{_0x3042ac=await _0x536a1b[_0x2b4215(0x1d8)](requireOrImportDefaultObject,_0x5e78d4);}catch(_0x168eb2){return logger['error'](_0x536a1b[_0x2b4215(0x1b9)],_0x536a1b[_0x2b4215(0x1d8)](format,_0x168eb2)),null;}}else logger[_0x2b4215(0x163)](_0x536a1b[_0x2b4215(0x1dd)]);if(_0x1540ad){const _0x342a2d=_0x1e9269['findIndex'](_0x294ee9=>_0x294ee9===_0x2b4215(0x195)||_0x294ee9==='-c'||_0x294ee9[_0x2b4215(0x178)]('--config='));_0x1e9269[_0x2b4215(0x1d2)](_0x342a2d,_0x1e9269[_0x342a2d]['startsWith'](_0x536a1b[_0x2b4215(0x18e)])?0x1:0x2);}const _0x2111fb={};return _0x2111fb['path']=_0x5e78d4,_0x2111fb['config']=_0x3042ac,_0x2111fb;},setGlobalSetup=(_0xdd33c3,_0x4700bf)=>{const _0x201963=a33_0x17dc7a,_0x56fb80={'WlLoF':'globalSetup','ujqMl':_0x201963(0x1a2),'fGvcj':function(_0x5d8612,_0x22cd23){return _0x5d8612+_0x22cd23;},'WXLEb':_0x201963(0x15c),'MjUez':function(_0x4ee4ac,_0x3d3196){return _0x4ee4ac(_0x3d3196);},'tIkdn':'./globalSetup.js'};if(!_0xdd33c3)return![];try{if(_0xdd33c3[_0x201963(0x171)]){let _0x4a09c9;const _0x47cb27=path['resolve'](_0x4700bf,_0xdd33c3[_0x56fb80[_0x201963(0x164)]]);if(fs[_0x201963(0x1a5)](_0x47cb27))_0x4a09c9=_0x47cb27;else{const _0x56b231={};_0x56b231['paths']=[_0x4700bf],_0x4a09c9=require[_0x201963(0x18b)](_0xdd33c3[_0x56fb80['WlLoF']],_0x56b231);}if(!_0x4a09c9)throw new Error(_0x56fb80['ujqMl']);process[_0x201963(0x1a7)][_0x201963(0x14c)]=_0x4a09c9;}}catch(_0x5e03a9){logger[_0x201963(0x12e)](_0x56fb80[_0x201963(0x1b5)](_0x56fb80[_0x201963(0x16a)],_0x56fb80['MjUez'](format,_0x5e03a9)));}return _0xdd33c3['globalSetup']=require['resolve'](_0x56fb80[_0x201963(0x1c7)]),!![];},addReporter=_0x396c92=>{const _0x4ca253=a33_0x17dc7a,_0x4dc703={};_0x4dc703[_0x4ca253(0x188)]=_0x4ca253(0x11f),_0x4dc703[_0x4ca253(0x13c)]=_0x4ca253(0x1b0),_0x4dc703[_0x4ca253(0x135)]=function(_0x5252d3,_0x31e228){return _0x5252d3===_0x31e228;},_0x4dc703[_0x4ca253(0x15a)]=_0x4ca253(0x168),_0x4dc703[_0x4ca253(0x1e1)]=_0x4ca253(0x18d);const _0x512380=_0x4dc703,_0x56f789=path[_0x4ca253(0x11e)](__dirname,_0x512380[_0x4ca253(0x188)]),_0x563eb5=[_0x56f789];if(helper[_0x4ca253(0x1d3)](_0x396c92[_0x512380['bQSYf']]))_0x396c92[_0x512380['bQSYf']]=[_0x563eb5];else{if(_0x512380['nUfIu'](typeof _0x396c92[_0x512380['bQSYf']],_0x512380[_0x4ca253(0x15a)]))_0x396c92[_0x512380[_0x4ca253(0x13c)]]=[[_0x396c92[_0x512380[_0x4ca253(0x13c)]]],_0x563eb5];else _0x512380['nUfIu'](typeof _0x396c92[_0x512380[_0x4ca253(0x13c)]],_0x512380[_0x4ca253(0x1e1)])&&_0x396c92[_0x512380['bQSYf']]['push'](_0x563eb5);}},handleO11yRerun=_0x1af970=>{const _0x2c9bc6=a33_0x17dc7a,_0x27a9c4={};_0x27a9c4[_0x2c9bc6(0x134)]=function(_0x352c1e,_0xe607a9){return _0x352c1e!==_0xe607a9;},_0x27a9c4[_0x2c9bc6(0x16f)]=_0x2c9bc6(0x138),_0x27a9c4[_0x2c9bc6(0x1d6)]=_0x2c9bc6(0x172);const _0x427c65=_0x27a9c4,_0x4c1851=helper[_0x2c9bc6(0x1c1)](process[_0x2c9bc6(0x1a7)][_0x2c9bc6(0x1b1)]);if(_0x4c1851){const _0x13a4a5=process['env'][_0x2c9bc6(0x198)],_0x3ef28c=[];if(_0x427c65[_0x2c9bc6(0x134)](_0x13a4a5,_0x427c65[_0x2c9bc6(0x16f)])&&!helper[_0x2c9bc6(0x1d3)](_0x13a4a5)){_0x13a4a5['split'](',')[_0x2c9bc6(0x130)](_0x5302aa=>{const _0x455760=_0x2c9bc6;_0x3ef28c[_0x455760(0x1cd)]('('+_0x5302aa[_0x455760(0x194)]()+')');});const _0x23de7a='^'+_0x3ef28c[_0x2c9bc6(0x11e)]('|')+'$';_0x1af970[_0x2c9bc6(0x1cd)](_0x427c65[_0x2c9bc6(0x1d6)],_0x23de7a);}}},spawnOriginalProcess=_0x288388=>{const _0x3af8c8=a33_0x17dc7a,_0x423ca4={'kolnQ':function(_0x6db5e8,_0x43dcd8,_0x45ee3f,_0x1f4435){return _0x6db5e8(_0x43dcd8,_0x45ee3f,_0x1f4435);},'FllLK':_0x3af8c8(0x132),'FUGVW':_0x3af8c8(0x1d5),'VrOEL':function(_0xcf80de,_0x2762d9){return _0xcf80de===_0x2762d9;},'JyJfV':_0x3af8c8(0x1d7),'RjoBv':_0x3af8c8(0x17a)};_0x423ca4[_0x3af8c8(0x18c)](spawn,_0x423ca4[_0x3af8c8(0x122)],[_0x423ca4[_0x3af8c8(0x12d)],..._0x288388[_0x3af8c8(0x1ba)](0x1)],{'shell':_0x423ca4[_0x3af8c8(0x169)](process['platform'],_0x423ca4[_0x3af8c8(0x149)]),'stdio':_0x423ca4[_0x3af8c8(0x1d0)],'cwd':process[_0x3af8c8(0x1ae)]()});},isTestCommand=(_0x3dd2de,_0x5cbc94)=>{const _0x1f9b97=a33_0x17dc7a,_0xdcaeeb={};_0xdcaeeb[_0x1f9b97(0x1d4)]=function(_0x54a6a8,_0x1cc0ea){return _0x54a6a8>_0x1cc0ea;},_0xdcaeeb[_0x1f9b97(0x161)]=function(_0x4d1398,_0x1475fa){return _0x4d1398===_0x1475fa;},_0xdcaeeb[_0x1f9b97(0x18f)]=_0x1f9b97(0x175);const _0x35da04=_0xdcaeeb;if(_0x35da04[_0x1f9b97(0x1d4)](_0x5cbc94[_0x1f9b97(0x1a0)],0x1)&&_0x35da04[_0x1f9b97(0x161)](_0x5cbc94[0x1],_0x35da04[_0x1f9b97(0x18f)]))return!![];return![];},initO11yCrashReporter=(_0x259f57,_0x4ba839)=>{const _0x1fe64d=a33_0x17dc7a,_0x4791f2={'oAsFG':function(_0xd7a6f0,_0x24cf53){return _0xd7a6f0(_0x24cf53);}},_0x1482d5={'frameworkName':FRAMEWORKS[_0x1fe64d(0x1c4)],'frameworkVersion':_0x4791f2[_0x1fe64d(0x150)](getFrameworkVersion,FRAMEWORKS[_0x1fe64d(0x1c4)])};CrashReporter[_0x1fe64d(0x1e6)](_0x1482d5,_0x259f57,_0x4ba839);},launchO11ySession=o11yErrorHandler(async function launchO11ySession(_0x51a382){const _0x5c7e79=a33_0x17dc7a,_0x5af7ae={};_0x5af7ae[_0x5c7e79(0x14b)]=function(_0x14c0ed,_0xca5270){return _0x14c0ed>_0xca5270;},_0x5af7ae[_0x5c7e79(0x16c)]=function(_0x2fed5d,_0x5e8967){return _0x2fed5d===_0x5e8967;};const _0xfd3194=_0x5af7ae;if(!_0x51a382||_0xfd3194[_0x5c7e79(0x14b)](_0x51a382[_0x5c7e79(0x1a0)],0x1)&&_0xfd3194[_0x5c7e79(0x16c)](_0x51a382[0x0],null))return process[_0x5c7e79(0x1a7)][_0x5c7e79(0x1c2)]=![],![];return!![];});function a33_0x59f3(_0x2c40af,_0x5067cc){const _0x1be192=a33_0x1be1();return a33_0x59f3=function(_0x59f3a8,_0xe51fd5){_0x59f3a8=_0x59f3a8-0x11c;let _0x4332d2=_0x1be192[_0x59f3a8];return _0x4332d2;},a33_0x59f3(_0x2c40af,_0x5067cc);}async function run(_0x431dc1,_0x514e9e){const _0x899e5a=a33_0x17dc7a,_0x2d801d={'sagam':_0x899e5a(0x133),'TBUiA':_0x899e5a(0x154),'NAwvi':function(_0x10de3b,_0x2bd226){return _0x10de3b+_0x2bd226;},'NwIJS':_0x899e5a(0x141),'ZjNUU':'6|7|0|2|5|1|3|8|4','YtNAM':function(_0x2f74c3,_0x38b04f){return _0x2f74c3(_0x38b04f);},'JPRYI':function(_0x3d8b50){return _0x3d8b50();},'iPYYR':'Error\x20in\x20closing\x20playwright','FBSND':_0x899e5a(0x142),'LcYve':_0x899e5a(0x136),'hcHuK':_0x899e5a(0x1c6),'bgozl':function(_0x36823b,_0x875538){return _0x36823b>=_0x875538;},'RRdFR':_0x899e5a(0x155),'FBxoQ':function(_0x5bcbfc,_0x530ab9,_0x3868f3){return _0x5bcbfc(_0x530ab9,_0x3868f3);},'jndgu':_0x899e5a(0x17c),'ALEgu':_0x899e5a(0x1bc),'PuZUT':function(_0x5758be,_0x26f154){return _0x5758be!=_0x26f154;},'tIRbV':function(_0x241ee7,_0x4f3cbb,_0x10826f){return _0x241ee7(_0x4f3cbb,_0x10826f);},'SOULX':function(_0x1accec,_0x409e90,_0x2483cd){return _0x1accec(_0x409e90,_0x2483cd);},'iSkqq':function(_0x2fb1dd,_0x41056f){return _0x2fb1dd(_0x41056f);},'RLbEt':_0x899e5a(0x199),'jhZVc':function(_0x2a3150,_0x392108){return _0x2a3150(_0x392108);},'lsTng':'Adding\x20browserstack\x20configs\x20to\x20setup\x20for\x20Observability','rvcht':function(_0x33b879,_0x113ff1){return _0x33b879===_0x113ff1;},'AsWmJ':_0x899e5a(0x19c),'QjFIr':function(_0x3f03d3,_0x178fd2){return _0x3f03d3(_0x178fd2);},'vqkMx':_0x899e5a(0x1db),'hJolb':function(_0x402f09,_0x3a6945){return _0x402f09(_0x3a6945);},'XLSXI':function(_0x1b10ca,_0x134b98){return _0x1b10ca===_0x134b98;},'VGgDC':_0x899e5a(0x19e),'rfCJf':'testDir','BtLiA':_0x899e5a(0x16d),'HsNQl':'testIgnore','YcWtB':function(_0x7cf77a,_0x3256b1){return _0x7cf77a+_0x3256b1;},'JniPC':'Error\x20in\x20generating\x20parallellised\x20config\x20for\x20playwright:\x20','YZPrd':function(_0x5bc2c8,_0x34656f){return _0x5bc2c8(_0x34656f);},'IbgsA':function(_0x55b4df,_0x5ea846){return _0x55b4df===_0x5ea846;},'hmYUS':_0x899e5a(0x1c8),'TLYPe':_0x899e5a(0x12f),'LInHB':function(_0x204b27,_0x229591){return _0x204b27>_0x229591;},'LdHOS':function(_0x1cc712,_0x3643b5,_0x599ce8,_0x3ef438){return _0x1cc712(_0x3643b5,_0x599ce8,_0x3ef438);},'AEVRt':_0x899e5a(0x132),'IeFCP':_0x899e5a(0x1d5),'jWEoB':_0x899e5a(0x175),'xFisf':_0x899e5a(0x195),'OEsoB':function(_0x1982ba,_0x27e250){return _0x1982ba===_0x27e250;},'teMVd':_0x899e5a(0x1d7),'ZgPVr':_0x899e5a(0x17a),'lYLBU':'close'};!helper[_0x899e5a(0x1a8)](process[_0x899e5a(0x1a7)][_0x899e5a(0x15e)])&&(process[_0x899e5a(0x1a7)]['BROWSERSTACK_AUTOMATION']=!![]);process[_0x899e5a(0x144)]['includes'](_0x2d801d['FBSND'])&&(process[_0x899e5a(0x1a7)][_0x899e5a(0x15e)]=_0x2d801d[_0x899e5a(0x1d9)],_0x514e9e=_0x514e9e[_0x899e5a(0x1da)](_0x2034b9=>_0x2034b9!==_0x899e5a(0x142)));const _0x29d942=_0x514e9e['indexOf'](_0x2d801d[_0x899e5a(0x1ee)]);_0x2d801d[_0x899e5a(0x1e0)](_0x29d942,0x0)&&(process[_0x899e5a(0x1a7)][_0x899e5a(0x1c2)]=_0x2d801d['LcYve'],_0x514e9e=_0x514e9e[_0x899e5a(0x1da)](_0x40d375=>_0x40d375!==_0x899e5a(0x1c6)));try{const _0x580825=path['join'](helper[_0x899e5a(0x1a4)](),_0x2d801d['sagam'],_0x2d801d[_0x899e5a(0x19f)]);fs[_0x899e5a(0x1a5)](_0x580825)&&fs[_0x899e5a(0x140)](_0x580825);}catch(_0x192f90){logger[_0x899e5a(0x1c3)](_0x2d801d[_0x899e5a(0x139)](_0x2d801d[_0x899e5a(0x1af)],_0x192f90));}if(!_0x2d801d[_0x899e5a(0x11c)](isTestCommand,_0x431dc1,_0x514e9e)){_0x2d801d[_0x899e5a(0x143)](spawnOriginalProcess,_0x514e9e);return;}const _0x4b74c6=new BrowserStackSetup(_0x431dc1,FRAMEWORKS[_0x899e5a(0x1c4)]);if(!_0x4b74c6['config']){logger[_0x899e5a(0x12e)](_0x2d801d[_0x899e5a(0x1c0)]);return;}await _0x4b74c6[_0x899e5a(0x1e6)]();!helper[_0x899e5a(0x1d3)](_0x4b74c6[_0x899e5a(0x190)])&&_0x4b74c6[_0x899e5a(0x190)][_0x899e5a(0x1ed)](_0x2d801d['ALEgu'])&&(process[_0x899e5a(0x1a7)][_0x899e5a(0x15e)]=_0x4b74c6[_0x899e5a(0x190)][_0x899e5a(0x191)](_0x2d801d[_0x899e5a(0x1ab)])||!![]);_0x2d801d[_0x899e5a(0x1b8)](_0x4b74c6[_0x899e5a(0x19a)][_0x899e5a(0x1b7)],null)&&!helper[_0x899e5a(0x1c1)](process[_0x899e5a(0x1a7)][_0x899e5a(0x1c2)])&&(process['env'][_0x899e5a(0x1c2)]=process[_0x899e5a(0x1a7)][_0x899e5a(0x1c2)]||_0x4b74c6[_0x899e5a(0x19a)][_0x899e5a(0x1b7)]);const _0x572942=!helper[_0x899e5a(0x1a8)](process[_0x899e5a(0x1a7)][_0x899e5a(0x1c2)]);let _0x292d8b=![];_0x4b74c6['config'][_0x899e5a(0x156)]&&(_0x292d8b=!![],process[_0x899e5a(0x1a7)][_0x899e5a(0x1bb)]=_0x4b74c6['config'][_0x899e5a(0x156)]);_0x4b74c6[_0x899e5a(0x19a)]['accessibilityOptions']&&(process[_0x899e5a(0x1a7)][_0x899e5a(0x152)]=JSON[_0x899e5a(0x1aa)](_0x4b74c6[_0x899e5a(0x19a)][_0x899e5a(0x1cc)]));const _0x5def96=_0x514e9e[_0x899e5a(0x128)](),_0x595a31=await _0x2d801d[_0x899e5a(0x18a)](getUserPlaywrightConfig,_0x431dc1,_0x514e9e);if(helper['isUndefined'](_0x595a31)){_0x2d801d[_0x899e5a(0x143)](spawnOriginalProcess,_0x5def96);return;}const _0xd1532d={..._0x595a31[_0x899e5a(0x19a)]},_0x25e920=_0xd1532d,_0x5af379=_0x595a31[_0x899e5a(0x182)]?path[_0x899e5a(0x1e7)](_0x595a31[_0x899e5a(0x182)]):process[_0x899e5a(0x1ae)]();process[_0x899e5a(0x1a7)]['BROWSERSTACK_PW_CONFIG_DIR']=_0x5af379;if(!_0x2d801d[_0x899e5a(0x1ef)](setGlobalSetup,_0x25e920,_0x5af379)){_0x2d801d[_0x899e5a(0x143)](spawnOriginalProcess,_0x5def96);return;}const _0xdf3a75=await SessionHandler[_0x899e5a(0x1e8)](_0x4b74c6[_0x899e5a(0x19a)],{'frameworkName':FRAMEWORKS[_0x899e5a(0x1c4)],'frameworkVersion':_0x2d801d[_0x899e5a(0x1de)](getFrameworkVersion,FRAMEWORKS[_0x899e5a(0x1c4)])});if(_0x572942){const _0x1eb65d=_0x2d801d[_0x899e5a(0x1c5)]['split']('|');let _0x56b887=0x0;while(!![]){switch(_0x1eb65d[_0x56b887++]){case'0':_0x2d801d['iSkqq'](handleO11yRerun,_0x514e9e);continue;case'1':await _0x2d801d[_0x899e5a(0x1de)](launchO11ySession,_0xdf3a75);continue;case'2':_0x2d801d['jhZVc'](addReporter,_0x25e920);continue;case'3':_0x2d801d[_0x899e5a(0x11c)](initO11yCrashReporter,_0x25e920,_0x4b74c6[_0x899e5a(0x19a)]);continue;case'4':logger[_0x899e5a(0x163)](_0x2d801d[_0x899e5a(0x162)]);continue;}break;}}let _0x218138=_0x2d801d['rvcht'](process[_0x899e5a(0x1a7)][_0x899e5a(0x1bb)],_0x2d801d[_0x899e5a(0x1b6)]);_0x218138=_0x218138||_0x2d801d[_0x899e5a(0x177)](checkAccessibilityPlatformConfig,_0x4b74c6[_0x899e5a(0x19a)]),process[_0x899e5a(0x1a7)][_0x899e5a(0x1bb)]=_0x218138;if(_0x218138){const [_0x353dd1,_0x420e31]=await _0x2d801d[_0x899e5a(0x18a)](createAccessibilityTestRun,_0x4b74c6['config'],_0x2d801d[_0x899e5a(0x16b)]);logger[_0x899e5a(0x1c3)](_0x899e5a(0x17d)+_0x420e31),process['env'][_0x899e5a(0x13e)]=_0x353dd1,process['env'][_0x899e5a(0x125)]=_0x420e31,_0x2d801d[_0x899e5a(0x1e2)](setAccessibilityCapabilities,_0x4b74c6['config']);}(helper[_0x899e5a(0x1d3)](_0x4b74c6['config'][_0x899e5a(0x17b)])||_0x2d801d[_0x899e5a(0x13d)](_0x4b74c6[_0x899e5a(0x19a)][_0x899e5a(0x17b)][_0x899e5a(0x1a0)],0x0))&&(process[_0x899e5a(0x1a7)]['BROWSERSTACK_AUTOMATION']=![]);const _0x5f4546=path['join'](_0x595a31[_0x899e5a(0x182)]?path[_0x899e5a(0x1e7)](_0x595a31[_0x899e5a(0x182)]):process[_0x899e5a(0x1ae)](),_0x2d801d[_0x899e5a(0x146)]);fs[_0x899e5a(0x157)](_0x5f4546,helper[_0x899e5a(0x180)](_0x4b74c6['config'])),process['env'][_0x899e5a(0x1ca)]=_0x5f4546,helper['clearTempPWConfig']();if(helper[_0x899e5a(0x1c1)](process['env'][_0x899e5a(0x15e)])){let _0x57b6ef=[];try{const _0x544eca=helper['requirePWModule'][_0x899e5a(0x1dc)](null,_0x2d801d['JPRYI'](getProjectUtilsPath)),_0x4a1d36={};_0x4a1d36[_0x899e5a(0x1b3)]=!![],_0x4a1d36[_0x899e5a(0x14f)]='',_0x4a1d36[_0x899e5a(0x16d)]='',_0x4a1d36[_0x899e5a(0x15d)]='';const _0x1f4ff9={};_0x1f4ff9[_0x899e5a(0x1b3)]=!![];const _0x11c13a={};_0x11c13a[_0x899e5a(0x15f)]=_0x4a1d36,_0x11c13a[_0x899e5a(0x126)]=_0x1f4ff9;let _0x80d001=_0x11c13a;_0x25e920[_0x2d801d[_0x899e5a(0x15b)]]&&(_0x80d001[_0x899e5a(0x15f)][_0x2d801d['rfCJf']]=_0x25e920[_0x2d801d[_0x899e5a(0x15b)]]),_0x25e920[_0x2d801d[_0x899e5a(0x159)]]&&(_0x80d001[_0x899e5a(0x15f)][_0x2d801d['BtLiA']]=_0x25e920[_0x2d801d['BtLiA']]),_0x25e920[_0x2d801d[_0x899e5a(0x179)]]&&(_0x80d001[_0x899e5a(0x15f)][_0x2d801d['HsNQl']]=_0x25e920[_0x2d801d[_0x899e5a(0x179)]]),_0x80d001=Object['assign'](_0x80d001,_0x80d001[_0x899e5a(0x15f)]),_0x57b6ef=await _0x544eca[_0x899e5a(0x1b4)](_0x80d001);}catch(_0x415bab){logger['debug'](_0x2d801d[_0x899e5a(0x13f)](_0x2d801d[_0x899e5a(0x1b2)],_0x2d801d['YZPrd'](format,_0x415bab)));}}let _0x2010e7='';_0x2d801d['IbgsA'](helper[_0x899e5a(0x167)](),constants[_0x899e5a(0x1a1)][_0x899e5a(0x193)])?_0x2010e7=_0x2d801d[_0x899e5a(0x181)]:_0x2010e7=_0x2d801d[_0x899e5a(0x127)];const _0x4cd627=path['join'](_0x595a31[_0x899e5a(0x182)]?path[_0x899e5a(0x1e7)](_0x595a31['path']):process[_0x899e5a(0x1ae)](),_0x2010e7);let _0x33124a=_0x595a31[_0x899e5a(0x182)]?_0x595a31[_0x899e5a(0x182)]:'';_0x33124a=_0x2d801d[_0x899e5a(0x1a9)](_0x33124a[_0x899e5a(0x1a0)],0x0)?path[_0x899e5a(0x18b)](_0x33124a):'',process[_0x899e5a(0x1a7)][_0x899e5a(0x145)]=_0x33124a;let _0x3ab951='\x0a\x0aconst\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0amodule.exports\x20=\x20modifyPWConfig();\x0a';const _0x3c5f2f=helper[_0x899e5a(0x1ad)](_0x4b74c6[_0x899e5a(0x19a)]);_0x3c5f2f&&(_0x3ab951=_0x2d801d['YcWtB'](_0x899e5a(0x12c)+_0x3c5f2f+'\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();',_0x3ab951));helper[_0x899e5a(0x13b)]({},_0x514e9e),fs[_0x899e5a(0x157)](_0x4cd627,_0x3ab951),helper[_0x899e5a(0x170)]();const _0x506f40=_0x2d801d[_0x899e5a(0x14e)](spawn,_0x2d801d['AEVRt'],[_0x2d801d['IeFCP'],_0x2d801d[_0x899e5a(0x186)],_0x2d801d[_0x899e5a(0x1ec)],_0x4cd627,..._0x514e9e[_0x899e5a(0x1ba)](0x2)],{'shell':_0x2d801d[_0x899e5a(0x11d)](process[_0x899e5a(0x192)],_0x2d801d[_0x899e5a(0x197)]),'stdio':_0x2d801d[_0x899e5a(0x124)],'cwd':process[_0x899e5a(0x1ae)](),'env':Object[_0x899e5a(0x12a)]({},process['env'],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x899e5a(0x121)](_0x431dc1),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x4b74c6[_0x899e5a(0x19a)][_0x899e5a(0x14a)][_0x899e5a(0x12b)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x4b74c6['config'][_0x899e5a(0x14a)][_0x899e5a(0x1c9)],'BROWSERSTACK_LOG_LEVEL':_0x4b74c6[_0x899e5a(0x19a)][_0x899e5a(0x189)]})}),_0x24f0c5=()=>{const _0x5db81e=_0x899e5a;try{const _0x52ef0c=path[_0x5db81e(0x11e)](helper[_0x5db81e(0x1a4)](),_0x2d801d[_0x5db81e(0x176)],_0x2d801d[_0x5db81e(0x19f)]);if(fs['existsSync'](_0x52ef0c)){let _0xf61d5e=fs[_0x5db81e(0x1e4)](_0x52ef0c);_0xf61d5e=JSON[_0x5db81e(0x123)](_0xf61d5e),_0x4b74c6['errorMessage']=_0xf61d5e,fs[_0x5db81e(0x140)](_0x52ef0c);}}catch(_0x11c39d){logger['debug'](_0x2d801d['NAwvi'](_0x2d801d['NwIJS'],_0x11c39d));}};_0x506f40['on'](_0x2d801d[_0x899e5a(0x19d)],async _0x1d384a=>{const _0x580b33=_0x899e5a;try{const _0x188953=_0x2d801d['ZjNUU'][_0x580b33(0x1a3)]('|');let _0x58c98b=0x0;while(!![]){switch(_0x188953[_0x58c98b++]){case'0':await _0x2d801d[_0x580b33(0x143)](stopAccessibilityTestRun,_0x4b74c6['config']);continue;case'1':logger[_0x580b33(0x163)](_0x580b33(0x19b)+_0x4cd627);continue;case'2':process[_0x580b33(0x137)]=_0x1d384a;continue;case'3':fs[_0x580b33(0x140)](_0x4cd627);continue;case'4':fs[_0x580b33(0x140)](_0x5f4546);continue;case'5':logger[_0x580b33(0x1c3)](_0x580b33(0x160)+_0x1d384a);continue;case'6':_0x2d801d[_0x580b33(0x158)](_0x24f0c5);continue;case'7':await helper[_0x580b33(0x1be)](_0x4b74c6);continue;case'8':logger[_0x580b33(0x1c3)](_0x580b33(0x19b)+_0x5f4546);continue;}break;}}catch(_0x4c0ad1){logger[_0x580b33(0x1c3)](_0x2d801d[_0x580b33(0x139)](_0x2d801d[_0x580b33(0x185)],_0x4c0ad1));}});}module[a33_0x17dc7a(0x174)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a34_0x4087(_0x59f670,_0x115761){const _0x4575d4=a34_0x4575();return a34_0x4087=function(_0x408779,_0x58190d){_0x408779=_0x408779-0x18f;let _0xd0573e=_0x4575d4[_0x408779];return _0xd0573e;},a34_0x4087(_0x59f670,_0x115761);}const a34_0x177210=a34_0x4087;(function(_0x4a372a,_0x1de2be){const _0x185ea3=a34_0x4087,_0xe09350=_0x4a372a();while(!![]){try{const _0xf31ea0=parseInt(_0x185ea3(0x1a4))/0x1+parseInt(_0x185ea3(0x1b5))/0x2*(parseInt(_0x185ea3(0x1aa))/0x3)+parseInt(_0x185ea3(0x193))/0x4+parseInt(_0x185ea3(0x1af))/0x5*(parseInt(_0x185ea3(0x1a2))/0x6)+parseInt(_0x185ea3(0x19a))/0x7+-parseInt(_0x185ea3(0x19f))/0x8*(parseInt(_0x185ea3(0x1ad))/0x9)+-parseInt(_0x185ea3(0x194))/0xa;if(_0xf31ea0===_0x1de2be)break;else _0xe09350['push'](_0xe09350['shift']());}catch(_0x22ca5f){_0xe09350['push'](_0xe09350['shift']());}}}(a34_0x4575,0xd29c3));const child_process=require(a34_0x177210(0x190)),{FRAMEWORKS}=require(a34_0x177210(0x19e)),{getFrameworkVersion,debug}=require(a34_0x177210(0x1a6)),helper=require('../../helpers/helper'),{getLoadUtilsPath,getForkProcessPath}=require('./reporter/pwUtils'),logger=require(a34_0x177210(0x1a0))[a34_0x177210(0x18f)];function a34_0x4575(){const _0x1b173a=['mDslM','function','dSkjj','1.33.0','2AAtgmD','PLAYWRIGHT','Path\x20','winstonLogger','child_process','rlsgB','exports','1401372PDdTxL','16722350oGecad','IEMmu','error','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','VxPyD','kuOER','4913174mMUref','ZOJYZ','\x20is\x20not\x20found','./mock-process.js','../../helpers/test-observability/constants','120lJNmOk','../../helpers/logger','tABDc','1456374XsDXtq','VCDQq','1174947WJCHYc','env','../../helpers/test-observability/utils','Running\x20existing\x20global\x20setup','fork','YBEnC','4300557OlJOZy','BqpvD','requirePWModule','966753tRPtoY','config','10nLCNFw','apply'];a34_0x4575=function(){return _0x1b173a;};return a34_0x4575();}module[a34_0x177210(0x192)]=async function(_0x26c6f2){const _0x1a7746=a34_0x177210,_0x537636={'VCDQq':function(_0x5460ac,_0x595a0d){return _0x5460ac(_0x595a0d);},'BqpvD':function(_0x586182){return _0x586182();},'VxPyD':_0x1a7746(0x19d),'mDslM':_0x1a7746(0x1a7),'dSkjj':function(_0x108d04){return _0x108d04();},'IEMmu':function(_0x314858,_0x4b1675){return _0x314858>=_0x4b1675;},'YBEnC':_0x1a7746(0x1b4),'rlsgB':function(_0x5bc8d1,_0x5012a3,_0x417853){return _0x5bc8d1(_0x5012a3,_0x417853);},'kuOER':function(_0x1f5cb3,_0x526c9a){return _0x1f5cb3!==_0x526c9a;},'tABDc':_0x1a7746(0x1b2),'KINnm':'Not\x20able\x20to\x20import\x20globalSetup','ZOJYZ':function(_0x3d0dec,_0x980f79){return _0x3d0dec(_0x980f79);}},_0x138794=child_process[_0x1a7746(0x1a8)];child_process[_0x1a7746(0x1a8)]=function(){const _0x1b935c=_0x1a7746;return _0x537636[_0x1b935c(0x1a3)](debug,'Call\x20to\x20child\x20fork\x20with\x20args\x20'+arguments[0x0]),arguments[0x0]['includes'](_0x537636[_0x1b935c(0x1ab)](getForkProcessPath))?arguments[0x0]=require['resolve'](_0x537636[_0x1b935c(0x198)]):logger[_0x1b935c(0x196)](_0x1b935c(0x1b7)+_0x537636[_0x1b935c(0x1ab)](getForkProcessPath)+_0x1b935c(0x19c)),_0x138794['apply'](null,arguments);};if(process[_0x1a7746(0x1a5)][_0x1a7746(0x197)]){_0x537636[_0x1a7746(0x1a3)](debug,_0x537636[_0x1a7746(0x1b1)]);try{const {loadGlobalHook:_0x2efe45}=helper[_0x1a7746(0x1ac)][_0x1a7746(0x1b0)](null,_0x537636[_0x1a7746(0x1b3)](getLoadUtilsPath)),_0x3b3402=_0x537636[_0x1a7746(0x1a3)](getFrameworkVersion,FRAMEWORKS[_0x1a7746(0x1b6)]);let _0x5df0d3=_0x26c6f2;if(_0x537636[_0x1a7746(0x195)](helper['compareVersions'](_0x3b3402,_0x537636[_0x1a7746(0x1a9)]),0x0)){const _0x3e4085={};_0x3e4085[_0x1a7746(0x1ae)]=_0x26c6f2,_0x5df0d3=_0x3e4085;}const _0x2afd7a=await _0x537636[_0x1a7746(0x191)](_0x2efe45,_0x5df0d3,process[_0x1a7746(0x1a5)]['BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP']);if(_0x537636[_0x1a7746(0x199)](typeof _0x2afd7a,_0x537636[_0x1a7746(0x1a1)]))throw new Error(_0x537636['KINnm']);return _0x2afd7a[_0x1a7746(0x1b0)](null,arguments);}catch(_0x34754d){_0x537636[_0x1a7746(0x19b)](debug,'Error\x20in\x20calling\x20existing\x20global\x20setup:\x20'+_0x34754d['toString']());}}};
|