browserstack-node-sdk 1.34.7 → 1.34.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance-tester.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a29_0x3515ee=a29_0x10ad;(function(_0x22665e,_0x45016b){const _0x305994=a29_0x10ad,_0xe70800=_0x22665e();while(!![]){try{const _0x15a239=parseInt(_0x305994(0x1fb))/0x1*(-parseInt(_0x305994(0x1ac))/0x2)+-parseInt(_0x305994(0x1d5))/0x3*(-parseInt(_0x305994(0x1c8))/0x4)+parseInt(_0x305994(0x215))/0x5+parseInt(_0x305994(0x218))/0x6+parseInt(_0x305994(0x1ee))/0x7+-parseInt(_0x305994(0x217))/0x8*(-parseInt(_0x305994(0x1ea))/0x9)+parseInt(_0x305994(0x1b4))/0xa*(-parseInt(_0x305994(0x1a9))/0xb);if(_0x15a239===_0x45016b)break;else _0xe70800['push'](_0xe70800['shift']());}catch(_0x22f365){_0xe70800['push'](_0xe70800['shift']());}}}(a29_0x415b,0xef4f2));function a29_0x10ad(_0x5f3c09,_0x3adac3){const _0x415b0b=a29_0x415b();return a29_0x10ad=function(_0x10ade3,_0x26111c){_0x10ade3=_0x10ade3-0x19f;let _0x5d068d=_0x415b0b[_0x10ade3];return _0x5d068d;},a29_0x10ad(_0x5f3c09,_0x3adac3);}const logger=require('../../../helpers/logger')[a29_0x3515ee(0x1f0)],helper=require('../../../helpers/helper'),constants=require('../../../bin/utils/constants'),hubAllocator=require(a29_0x3515ee(0x1bb)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require('../../../helpers/patchHelpers'),{setAccessibilityCapabilities,setExtension}=require(a29_0x3515ee(0x1c0)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0x3515ee(0x1d1)),globals=require(a29_0x3515ee(0x201)),modify=(_0x2502f4,_0x48842c=null,_0x1010f5=![])=>{const _0x375e91=a29_0x3515ee,_0x5974e6={'FbMRi':function(_0x1dd76a,_0x438ff7){return _0x1dd76a!==_0x438ff7;},'ctGSq':'/session','rqTvp':function(_0x4e7dcb,_0x3ce4ef){return _0x4e7dcb!==_0x3ce4ef;},'PEnCj':function(_0x3adda8,_0x4ce281){return _0x3adda8+_0x4ce281;},'uJcuf':'https://','ZZUCe':_0x375e91(0x1e4),'BulgO':_0x375e91(0x1aa),'dInlk':_0x375e91(0x1a4),'YKfZb':'ms:edgeOptions','JVeCi':_0x375e91(0x1f6),'qeRrZ':_0x375e91(0x211),'DVXSa':_0x375e91(0x1ef),'poKJR':_0x375e91(0x1e0),'vDuCz':_0x375e91(0x20d),'gkoYS':'ieOptions','wjyPu':function(_0x2c10bf,_0x2f1ba6){return _0x2c10bf===_0x2f1ba6;},'SBmWQ':_0x375e91(0x1e1),'kkMqZ':_0x375e91(0x207),'SAaMi':function(_0x3ba1ee,_0x34c4f8,_0x1b3397){return _0x3ba1ee(_0x34c4f8,_0x1b3397);},'EMBjY':function(_0x42c323,_0x2adb90,_0x44cf76){return _0x42c323(_0x2adb90,_0x44cf76);},'ejYqb':'optimalHubUrl','BqaBz':_0x375e91(0x1f9),'MgJBq':function(_0x173ae2,_0x11dca6,_0x47137e){return _0x173ae2(_0x11dca6,_0x47137e);},'ncheM':function(_0x50af6b,_0x16fe19){return _0x50af6b(_0x16fe19);},'BTtzW':_0x375e91(0x1a2),'nzdOf':_0x375e91(0x1f8),'CQGvc':function(_0x12f967){return _0x12f967();},'eZBhP':function(_0x527dd6,_0x21877d){return _0x527dd6(_0x21877d);},'rJAtW':_0x375e91(0x203),'ePabn':function(_0x583409,_0x431d4d){return _0x583409(_0x431d4d);},'LMdaI':function(_0x155a1b,_0x244dc2){return _0x155a1b!==_0x244dc2;},'goBqj':'Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','bvlMd':_0x375e91(0x1d0)},_0x24b613=helper[_0x375e91(0x1de)]();let _0x62120f;try{_0x62120f=helper['requireSeleniumWebdriver'](),_0x62120f[_0x375e91(0x1bc)]&&(_0x62120f[_0x375e91(0x1d8)]=_0x62120f[_0x375e91(0x1bc)]);}catch(_0xe1e033){return;}if(helper['isBrowserstackInfra']()){const _0x1f6f28={};_0x1f6f28[_0x375e91(0x209)]=_0x2502f4[_0x375e91(0x219)],helper[_0x375e91(0x1d3)](_0x1f6f28,new Map(),new Map()),logger[_0x375e91(0x210)](_0x5974e6[_0x375e91(0x1e7)]),logger[_0x375e91(0x1d7)](_0x5974e6[_0x375e91(0x1ae)]);}class _0x407ec5 extends _0x24b613['HttpClient']{[_0x375e91(0x20f)](_0x534e76){const _0x36daf8=_0x375e91;if(_0x5974e6[_0x36daf8(0x1fa)](_0x534e76['path'],_0x5974e6[_0x36daf8(0x1ff)])&&_0x5974e6[_0x36daf8(0x1dd)](global['newHubUrl'],''))try{global[_0x36daf8(0x1bf)]=_0x5974e6[_0x36daf8(0x1cf)](_0x5974e6[_0x36daf8(0x1cf)](_0x5974e6[_0x36daf8(0x213)],global[_0x36daf8(0x1bf)]),_0x5974e6[_0x36daf8(0x1ab)]),this[_0x36daf8(0x1a3)]=hubAllocator['getRequestOptions'](global[_0x36daf8(0x1bf)]),logger[_0x36daf8(0x1d7)](_0x36daf8(0x20b)+global[_0x36daf8(0x1bf)]),global[_0x36daf8(0x1bf)]='';}catch(_0x9ae5a6){logger[_0x36daf8(0x1be)](_0x9ae5a6);}return super[_0x36daf8(0x20f)](_0x534e76);}}class _0x2f4a61 extends _0x62120f['Builder']{[_0x375e91(0x1f3)](){const _0x5f2f23=_0x375e91;return this[_0x5f2f23(0x1e9)]=helper[_0x5f2f23(0x1e8)](_0x2502f4),logger['debug'](_0x5f2f23(0x1f7)+this[_0x5f2f23(0x1e9)]),this;}[_0x375e91(0x1b7)](_0x23fc79){const _0x286471=_0x375e91;let _0x45a003={};for(const _0x3df16e in _0x23fc79){switch(_0x3df16e){case _0x5974e6[_0x286471(0x1a7)]:case _0x5974e6[_0x286471(0x1e3)]:this['chromeOptions_']&&(_0x45a003=this[_0x286471(0x1a6)][_0x286471(0x1f4)](this[_0x286471(0x1a6)][_0x286471(0x1b9)])||{},this[_0x286471(0x1a6)][_0x286471(0x1bd)](this[_0x286471(0x1a6)][_0x286471(0x1b9)],helper[_0x286471(0x1c1)](_0x45a003,_0x23fc79[_0x3df16e])));break;case _0x5974e6[_0x286471(0x1dc)]:case _0x5974e6['JVeCi']:this['edgeOptions_']&&(_0x45a003=this[_0x286471(0x208)][_0x286471(0x1f4)](this[_0x286471(0x208)][_0x286471(0x1b9)])||{},this[_0x286471(0x208)][_0x286471(0x1bd)](this[_0x286471(0x208)]['CAPABILITY_KEY'],helper[_0x286471(0x1c1)](_0x45a003,_0x23fc79[_0x3df16e])));break;case _0x5974e6[_0x286471(0x1a8)]:case _0x5974e6[_0x286471(0x1fc)]:this[_0x286471(0x1b8)]&&(_0x45a003=this[_0x286471(0x1b8)][_0x286471(0x1f4)](this[_0x286471(0x1b8)][_0x286471(0x1b9)])||{},this[_0x286471(0x1b8)]['set'](this[_0x286471(0x1b8)]['CAPABILITY_KEY'],helper['mergeDeep'](_0x45a003,_0x23fc79[_0x3df16e])));break;case _0x5974e6[_0x286471(0x1cc)]:this[_0x286471(0x206)]&&(_0x45a003=this[_0x286471(0x206)]['get'](this[_0x286471(0x206)]['CAPABILITY_KEY'])||{},this['safariOptions_'][_0x286471(0x1bd)](this[_0x286471(0x206)][_0x286471(0x1b9)],helper[_0x286471(0x1c1)](_0x45a003,_0x23fc79[_0x3df16e])));break;case _0x5974e6[_0x286471(0x1c6)]:case _0x5974e6[_0x286471(0x1af)]:this[_0x286471(0x1e2)]&&(_0x45a003=this[_0x286471(0x1e2)][_0x286471(0x1f4)](this[_0x286471(0x1e2)][_0x286471(0x1b9)])||{},this[_0x286471(0x1e2)]['set'](this['ieOptions_'][_0x286471(0x1b9)],helper[_0x286471(0x1c1)](_0x45a003,_0x23fc79[_0x3df16e])));break;}}}[_0x375e91(0x1eb)](){const _0x486b1a=_0x375e91,_0x1aaaa6={'sDjve':function(_0x294baf,_0x3678ee){return _0x5974e6['wjyPu'](_0x294baf,_0x3678ee);},'ZNESV':_0x5974e6[_0x486b1a(0x1fe)]};return logger['debug'](_0x5974e6['kkMqZ']),this['__setBrowserOptions'](_0x2502f4[_0x486b1a(0x1ca)]),Object['keys'](_0x2502f4[_0x486b1a(0x1ca)])['forEach'](_0x1c7df0=>{const _0x3baed4=_0x486b1a,_0x2a18b7=this[_0x3baed4(0x1ad)][_0x3baed4(0x1f4)](_0x1c7df0);_0x1aaaa6[_0x3baed4(0x212)](typeof _0x2a18b7,_0x1aaaa6[_0x3baed4(0x19f)])?this[_0x3baed4(0x1ad)]['set'](_0x1c7df0,helper['mergeDeep'](_0x2a18b7,_0x2502f4[_0x3baed4(0x1ca)][_0x1c7df0])):this['capabilities_'][_0x3baed4(0x1bd)](_0x1c7df0,_0x2502f4['capability'][_0x1c7df0]);}),this;}[_0x375e91(0x1fd)](){const _0x20171=_0x375e91,_0x1954c9={'KrWpL':_0x5974e6['ejYqb'],'LZbDo':_0x5974e6['BqaBz'],'TDqnh':function(_0x34b5d1,_0x2f33f3,_0x5989eb){const _0x83cfb4=a29_0x10ad;return _0x5974e6[_0x83cfb4(0x1f5)](_0x34b5d1,_0x2f33f3,_0x5989eb);},'sQSeV':function(_0x20d059,_0x11fd25){const _0x31e863=a29_0x10ad;return _0x5974e6[_0x31e863(0x205)](_0x20d059,_0x11fd25);}};if(helper[_0x20171(0x1a5)]()){const _0x5b945d=_0x5974e6[_0x20171(0x1b6)][_0x20171(0x1c9)]('|');let _0x30a4c3=0x0;while(!![]){switch(_0x5b945d[_0x30a4c3++]){case'0':this[_0x20171(0x1f3)]();continue;case'1':globals[_0x20171(0x1d4)](_0x5974e6[_0x20171(0x20e)])&&(!_0x5974e6[_0x20171(0x1f5)](setExtension,this,_0x2502f4)&&globals[_0x20171(0x1c7)](_0x5974e6['nzdOf'],![]));continue;case'2':this[_0x20171(0x1eb)]();continue;case'3':if(helper[_0x20171(0x1d2)](_0x2502f4['proxySettings'][_0x20171(0x20c)]))this[_0x20171(0x1e6)]=helper[_0x20171(0x214)](_0x2502f4[_0x20171(0x1cb)]['proxyUrl']);else _0x2502f4[_0x20171(0x1cb)][_0x20171(0x20c)]&&(this[_0x20171(0x1c5)]=_0x2502f4[_0x20171(0x1cb)][_0x20171(0x20c)],logger['debug'](_0x20171(0x1b1)+this[_0x20171(0x1c5)]));continue;case'4':_0x5974e6[_0x20171(0x1b3)](isAccessibilityAutomationSession)&&_0x5974e6['eZBhP'](setAccessibilityCapabilities,_0x2502f4);continue;case'5':logger['debug'](_0x5974e6['rJAtW']);continue;}break;}}const _0x3bc9de=super[_0x20171(0x1fd)]();return _0x3bc9de[_0x20171(0x202)][_0x20171(0x1ce)](_0x373dcc=>{const _0x14cab2=_0x20171;try{const _0x46bfd9=_0x373dcc['caps_'][_0x14cab2(0x1f4)](_0x1954c9[_0x14cab2(0x20a)]);_0x46bfd9?(logger['debug']('SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20'+_0x46bfd9),hubAllocator[_0x14cab2(0x1b5)](_0x46bfd9),helper[_0x14cab2(0x1da)](_0x46bfd9)):logger[_0x14cab2(0x1d7)](_0x1954c9[_0x14cab2(0x1c4)]);}catch(_0x1c7db5){logger[_0x14cab2(0x1d7)]('ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20'+_0x1c7db5);}}),_0x3bc9de[_0x20171(0x1f1)]=0x0,_0x3bc9de[_0x20171(0x1ce)]&&_0x3bc9de[_0x20171(0x1ce)](_0x1ac507=>{const _0x776076=_0x20171,_0x1c024f={'gmlQe':function(_0x583155,_0xb12f26,_0x1ff4bb){const _0xf2d5c0=a29_0x10ad;return _0x1954c9[_0xf2d5c0(0x216)](_0x583155,_0xb12f26,_0x1ff4bb);}};_0x1954c9[_0x776076(0x216)](overrideQuit,_0x1ac507,_0x3bc9de),_0x1954c9[_0x776076(0x1a0)](overrideTakeScreenshot,_0x1ac507),helper[_0x776076(0x1b2)](_0x1ac507,_0x2502f4),helper[_0x776076(0x1c2)](_0x1ac507,_0x2502f4),_0x1ac507[_0x776076(0x1ec)]=async()=>{const _0x3969e5=_0x776076;return await _0x1954c9[_0x3969e5(0x216)](getAccessibilityResultsSummary,_0x1ac507,global);},_0x1ac507[_0x776076(0x1d6)]=async()=>{return await _0x1c024f['gmlQe'](getAccessibilityResults,_0x1ac507,global);};}),_0x3bc9de['getAccessibilityResultsSummary']=async()=>{const _0xcb6ddd=_0x20171;return await _0x5974e6[_0xcb6ddd(0x1db)](getAccessibilityResultsSummary,_0x3bc9de,global);},_0x3bc9de['getAccessibilityResults']=async()=>{const _0x46f7ef=_0x20171;return await _0x5974e6[_0x46f7ef(0x1df)](getAccessibilityResults,_0x3bc9de,global);},_0x5974e6[_0x20171(0x1f2)](overrideTakeScreenshot,_0x3bc9de),_0x5974e6[_0x20171(0x1d9)](overrideQuit,_0x3bc9de),helper['overrideGet'](_0x3bc9de,_0x2502f4),helper[_0x20171(0x1c2)](_0x3bc9de,_0x2502f4),helper['isUndefined'](global[_0x20171(0x1cd)])&&(global[_0x20171(0x1cd)]=[]),helper['isUndefined'](global[_0x20171(0x1ba)])&&(global[_0x20171(0x1ba)]=[]),global['__driversArray'][_0x20171(0x1c3)](_0x3bc9de),global['__driver']=_0x3bc9de,_0x5974e6[_0x20171(0x204)](global[_0x20171(0x1ba)],undefined)&&global[_0x20171(0x1ba)][_0x20171(0x1c3)](_0x3bc9de),_0x48842c&&helper[_0x20171(0x1a1)](_0x48842c[_0x20171(0x1e5)][_0x20171(0x1cd)])&&(_0x48842c[_0x20171(0x1e5)]['__driversArray']=[]),_0x48842c&&_0x5974e6['LMdaI'](_0x48842c[_0x20171(0x1e5)][_0x20171(0x1ba)],undefined)&&(_0x48842c[_0x20171(0x1e5)]['__drivers'][_0x20171(0x1c3)](_0x3bc9de),_0x48842c[_0x20171(0x1e5)]['__driversArray'][_0x20171(0x1c3)](_0x3bc9de)),_0x3bc9de;}}return _0x62120f[_0x375e91(0x1bc)]=_0x62120f[_0x375e91(0x1d8)],_0x62120f[_0x375e91(0x1d8)]=_0x2f4a61,_0x24b613[_0x375e91(0x1ed)]=_0x407ec5,_0x62120f;};module[a29_0x3515ee(0x200)][a29_0x3515ee(0x1b0)]=modify;function a29_0x415b(){const _0x305543=['split','capability','proxySettings','poKJR','__driversArray','then','PEnCj','Modifying\x20webdriver\x20builder','../../../helpers/accessibility-automation/helper','isPacProxy','setLogLevel','getGlobal','3XcytgK','getAccessibilityResults','debug','Builder','eZBhP','storeOptimalHubUrl','SAaMi','YKfZb','rqTvp','requireHttpClient','EMBjY','safari.options','object','ieOptions_','dInlk','/wd/hub','global','agent_','goBqj','getHubUrl','url_','1694997WauCtg','setCapabilities','getAccessibilityResultsSummary','HttpClient','7470428jTmqEb','firefoxOptions','winstonLogger','quitCount_','ePabn','setServer','get','MgJBq','edgeOptions','Hub\x20url\x20set\x20to\x20','isAccessibilityPlatform','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','FbMRi','2MZGdXX','DVXSa','build','SBmWQ','ctGSq','exports','../../../helpers/globals','session_','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','LMdaI','ncheM','safariOptions_','Setting\x20Browserstack\x20capabilities','edgeOptions_','logLevel','KrWpL','New\x20hub\x20url\x20set\x20to\x20','proxyUrl','se:ieOptions','nzdOf','send','info','moz:firefoxOptions','sDjve','uJcuf','getHttpAgent','6855510Gqdait','TDqnh','8MNbXcG','4841064tFxYtu','browserStackLogLevel','ZNESV','sQSeV','isUndefined','4|0|2|3|1|5','options_','chromeOptions','isBrowserstackInfra','chromeOptions_','BulgO','qeRrZ','22NQuhoa','goog:chromeOptions','ZZUCe','446528YDYkIq','capabilities_','bvlMd','gkoYS','browserstackAgentObservability','Proxy\x20set\x20to\x20','overrideGet','CQGvc','13291660LIYLTQ','updateHubUrl','BTtzW','__setBrowserOptions','firefoxOptions_','CAPABILITY_KEY','__drivers','../../../hubAllocationMethods','originalBuilder','set','error','newHubUrl','../accessibility-automation/helper','mergeDeep','overrideExecute','push','LZbDo','proxy_','vDuCz','setGlobal','2606348DQFMvI'];a29_0x415b=function(){return _0x305543;};return a29_0x415b();}
|
|
1
|
+
const a29_0x1c9b62=a29_0x9b94;(function(_0x40e407,_0x28296c){const _0x272a5b=a29_0x9b94,_0x513246=_0x40e407();while(!![]){try{const _0x2d5a8=-parseInt(_0x272a5b(0x148))/0x1*(-parseInt(_0x272a5b(0x14b))/0x2)+-parseInt(_0x272a5b(0x147))/0x3+parseInt(_0x272a5b(0x189))/0x4*(-parseInt(_0x272a5b(0x17c))/0x5)+parseInt(_0x272a5b(0x154))/0x6+parseInt(_0x272a5b(0x1a7))/0x7+parseInt(_0x272a5b(0x130))/0x8*(parseInt(_0x272a5b(0x15e))/0x9)+parseInt(_0x272a5b(0x18c))/0xa*(-parseInt(_0x272a5b(0x163))/0xb);if(_0x2d5a8===_0x28296c)break;else _0x513246['push'](_0x513246['shift']());}catch(_0x6b102a){_0x513246['push'](_0x513246['shift']());}}}(a29_0x51d4,0x7fa61));function a29_0x51d4(){const _0x43322a=['7779244PlhaDH','optimalHubUrl','vdSKM','__driver','setLogLevel','Hub\x20url\x20set\x20to\x20','QgMsh','set','1|4|5|3|0|2','MfXvd','debug','safari.options','Proxy\x20set\x20to\x20','options_','proxyUrl','overrideGet','isBrowserstackInfra','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','/wd/hub','caps_','aOjnJ','send','HttpClient','global','ORmws','55xPMmNM','xCPNe','info','getAccessibilityResultsSummary','build','ms:edgeOptions','isUndefined','__setBrowserOptions','bnDpD','chromeOptions_','then','0|2|4|3|5|1','proxySettings','39052CPcLrk','JgJpt','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','10zRJfle','__driversArray','originalBuilder','https://','browserstackAgentObservability','Builder','Modifying\x20webdriver\x20builder','UEyju','edgeOptions_','setServer','url_','VnSsD','mergeDeep','wEMRd','getRequestOptions','IkItU','push','ezusl','Xangb','getAccessibilityResults','zNFWV','proxy_','exports','gBzaf','bNEva','firefoxOptions_','jiaYK','953134yoVarA','/session','Mrrew','27152DdBzCa','get','split','capability','ymTlO','getHttpAgent','../accessibility-automation/helper','getHubUrl','logLevel','__drivers','storeOptimalHubUrl','../../../hubAllocationMethods','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','CAPABILITY_KEY','NFzRz','ITLZM','Setting\x20Browserstack\x20capabilities','Ewacn','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','getGlobal','capabilities_','aIMvg','requireSeleniumWebdriver','354477dPEhSA','735755xRagiI','npVDo','PKJzN','2WInvzP','setCapabilities','goog:chromeOptions','../../../helpers/globals','../../../bin/utils/constants','EYVmw','winstonLogger','ieOptions_','newHubUrl','2300652SrfbYt','tEihW','HDbVT','firefoxOptions','SHGiW','object','pnIpX','kdsAX','error','Mnxwc','531qfmxBf','safariOptions_','path','updateHubUrl','quitCount_'];a29_0x51d4=function(){return _0x43322a;};return a29_0x51d4();}function a29_0x9b94(_0x37bf99,_0x46b1ec){const _0x51d486=a29_0x51d4();return a29_0x9b94=function(_0x9b94cc,_0x304459){_0x9b94cc=_0x9b94cc-0x130;let _0x5128cd=_0x51d486[_0x9b94cc];return _0x5128cd;},a29_0x9b94(_0x37bf99,_0x46b1ec);}const logger=require('../../../helpers/logger')[a29_0x1c9b62(0x151)],helper=require('../../../helpers/helper'),constants=require(a29_0x1c9b62(0x14f)),hubAllocator=require(a29_0x1c9b62(0x13b)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require('../../../helpers/patchHelpers'),{setAccessibilityCapabilities,setExtension}=require(a29_0x1c9b62(0x136)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require('../../../helpers/accessibility-automation/helper'),globals=require(a29_0x1c9b62(0x14e)),modify=(_0x34bdc9,_0x3bdb31=null,_0x2837ab=![])=>{const _0x3ac733=a29_0x1c9b62,_0x240cf4={'Ewacn':function(_0x243302,_0x131f7e){return _0x243302!==_0x131f7e;},'SHGiW':_0x3ac733(0x1a8),'xCPNe':function(_0x5017ee,_0xac15d3){return _0x5017ee+_0xac15d3;},'aIMvg':_0x3ac733(0x18f),'UEyju':_0x3ac733(0x175),'tEihW':_0x3ac733(0x14d),'Bsled':'chromeOptions','QgMsh':_0x3ac733(0x181),'NFzRz':'edgeOptions','VnSsD':'moz:firefoxOptions','ORmws':_0x3ac733(0x157),'pnIpX':_0x3ac733(0x16e),'ezusl':'se:ieOptions','kdsAX':'ieOptions','ymTlO':function(_0x284886,_0x235608){return _0x284886===_0x235608;},'ITLZM':_0x3ac733(0x159),'bNEva':_0x3ac733(0x140),'kzRSB':_0x3ac733(0x164),'zNFWV':_0x3ac733(0x142),'aOjnJ':function(_0x2e969c,_0x54d119,_0x45ded0){return _0x2e969c(_0x54d119,_0x45ded0);},'vdSKM':function(_0x236d43,_0x4f6d3a,_0x5c5f50){return _0x236d43(_0x4f6d3a,_0x5c5f50);},'bnDpD':_0x3ac733(0x187),'EYVmw':function(_0x2726d3,_0xc58b68){return _0x2726d3(_0xc58b68);},'jiaYK':_0x3ac733(0x16b),'Mnxwc':'isAccessibilityPlatform','Mrrew':function(_0x44c1a0,_0x3e7d17,_0x5b106f){return _0x44c1a0(_0x3e7d17,_0x5b106f);},'gBzaf':function(_0x5ba6f9){return _0x5ba6f9();},'gUvuR':function(_0x412c1d,_0x2862f0){return _0x412c1d(_0x2862f0);},'PKJzN':_0x3ac733(0x13c),'IkItU':function(_0x2f93f8,_0x479345){return _0x2f93f8(_0x479345);},'wEMRd':function(_0x28aa86,_0x1fa262){return _0x28aa86!==_0x1fa262;},'Xangb':_0x3ac733(0x18b),'HDbVT':_0x3ac733(0x192)},_0x2606f6=helper['requireHttpClient']();let _0x394ed2;try{_0x394ed2=helper[_0x3ac733(0x146)](),_0x394ed2['originalBuilder']&&(_0x394ed2[_0x3ac733(0x191)]=_0x394ed2[_0x3ac733(0x18e)]);}catch(_0x49a4bc){return;}if(helper['isBrowserstackInfra']()){const _0x2ec27e={};_0x2ec27e[_0x3ac733(0x138)]=_0x34bdc9['browserStackLogLevel'],helper[_0x3ac733(0x167)](_0x2ec27e,new Map(),new Map()),logger[_0x3ac733(0x17e)](_0x240cf4[_0x3ac733(0x19e)]),logger[_0x3ac733(0x16d)](_0x240cf4[_0x3ac733(0x156)]);}class _0x28e599 extends _0x2606f6[_0x3ac733(0x179)]{[_0x3ac733(0x178)](_0xecdabd){const _0x225d95=_0x3ac733;if(_0x240cf4[_0x225d95(0x141)](_0xecdabd[_0x225d95(0x160)],_0x240cf4[_0x225d95(0x158)])&&_0x240cf4[_0x225d95(0x141)](global[_0x225d95(0x153)],''))try{global['newHubUrl']=_0x240cf4[_0x225d95(0x17d)](_0x240cf4[_0x225d95(0x17d)](_0x240cf4[_0x225d95(0x145)],global['newHubUrl']),_0x240cf4[_0x225d95(0x193)]),this[_0x225d95(0x170)]=hubAllocator[_0x225d95(0x19a)](global[_0x225d95(0x153)]),logger['debug']('New\x20hub\x20url\x20set\x20to\x20'+global['newHubUrl']),global['newHubUrl']='';}catch(_0x4e93b5){logger[_0x225d95(0x15c)](_0x4e93b5);}return super[_0x225d95(0x178)](_0xecdabd);}}class _0x2bc71a extends _0x394ed2['Builder']{['setServer'](){const _0xe502d1=_0x3ac733;return this[_0xe502d1(0x196)]=helper[_0xe502d1(0x137)](_0x34bdc9),logger['debug'](_0xe502d1(0x168)+this[_0xe502d1(0x196)]),this;}[_0x3ac733(0x183)](_0x2ccda1){const _0x49b44f=_0x3ac733;let _0x53249f={};for(const _0x38b1fc in _0x2ccda1){switch(_0x38b1fc){case _0x240cf4[_0x49b44f(0x155)]:case _0x240cf4['Bsled']:this[_0x49b44f(0x185)]&&(_0x53249f=this[_0x49b44f(0x185)][_0x49b44f(0x131)](this[_0x49b44f(0x185)]['CAPABILITY_KEY'])||{},this[_0x49b44f(0x185)][_0x49b44f(0x16a)](this[_0x49b44f(0x185)]['CAPABILITY_KEY'],helper[_0x49b44f(0x198)](_0x53249f,_0x2ccda1[_0x38b1fc])));break;case _0x240cf4[_0x49b44f(0x169)]:case _0x240cf4[_0x49b44f(0x13e)]:this[_0x49b44f(0x194)]&&(_0x53249f=this[_0x49b44f(0x194)]['get'](this[_0x49b44f(0x194)]['CAPABILITY_KEY'])||{},this['edgeOptions_'][_0x49b44f(0x16a)](this[_0x49b44f(0x194)]['CAPABILITY_KEY'],helper[_0x49b44f(0x198)](_0x53249f,_0x2ccda1[_0x38b1fc])));break;case _0x240cf4[_0x49b44f(0x197)]:case _0x240cf4[_0x49b44f(0x17b)]:this[_0x49b44f(0x1a5)]&&(_0x53249f=this['firefoxOptions_'][_0x49b44f(0x131)](this[_0x49b44f(0x1a5)][_0x49b44f(0x13d)])||{},this[_0x49b44f(0x1a5)]['set'](this['firefoxOptions_'][_0x49b44f(0x13d)],helper[_0x49b44f(0x198)](_0x53249f,_0x2ccda1[_0x38b1fc])));break;case _0x240cf4[_0x49b44f(0x15a)]:this[_0x49b44f(0x15f)]&&(_0x53249f=this['safariOptions_'][_0x49b44f(0x131)](this[_0x49b44f(0x15f)]['CAPABILITY_KEY'])||{},this[_0x49b44f(0x15f)][_0x49b44f(0x16a)](this['safariOptions_']['CAPABILITY_KEY'],helper[_0x49b44f(0x198)](_0x53249f,_0x2ccda1[_0x38b1fc])));break;case _0x240cf4[_0x49b44f(0x19d)]:case _0x240cf4[_0x49b44f(0x15b)]:this[_0x49b44f(0x152)]&&(_0x53249f=this[_0x49b44f(0x152)]['get'](this[_0x49b44f(0x152)][_0x49b44f(0x13d)])||{},this['ieOptions_'][_0x49b44f(0x16a)](this[_0x49b44f(0x152)][_0x49b44f(0x13d)],helper['mergeDeep'](_0x53249f,_0x2ccda1[_0x38b1fc])));break;}}}[_0x3ac733(0x14c)](){const _0x50388e=_0x3ac733,_0xc52b1d={'Otpwv':function(_0x6219d4,_0x3d17fa){const _0x18bceb=a29_0x9b94;return _0x240cf4[_0x18bceb(0x134)](_0x6219d4,_0x3d17fa);},'MfXvd':_0x240cf4[_0x50388e(0x13f)]};return logger[_0x50388e(0x16d)](_0x240cf4[_0x50388e(0x1a4)]),this[_0x50388e(0x183)](_0x34bdc9[_0x50388e(0x133)]),Object['keys'](_0x34bdc9[_0x50388e(0x133)])['forEach'](_0x5c27b8=>{const _0x36a0f5=_0x50388e,_0x16387f=this[_0x36a0f5(0x144)][_0x36a0f5(0x131)](_0x5c27b8);_0xc52b1d['Otpwv'](typeof _0x16387f,_0xc52b1d[_0x36a0f5(0x16c)])?this[_0x36a0f5(0x144)]['set'](_0x5c27b8,helper[_0x36a0f5(0x198)](_0x16387f,_0x34bdc9[_0x36a0f5(0x133)][_0x5c27b8])):this[_0x36a0f5(0x144)]['set'](_0x5c27b8,_0x34bdc9[_0x36a0f5(0x133)][_0x5c27b8]);}),this;}[_0x3ac733(0x180)](){const _0x57fa8b=_0x3ac733,_0x4d31a9={'Kfefx':function(_0x123294,_0x38e76c,_0x598e72){const _0x180b89=a29_0x9b94;return _0x240cf4[_0x180b89(0x165)](_0x123294,_0x38e76c,_0x598e72);},'npVDo':function(_0x46a519,_0x124c3a,_0x2e3082){return _0x240cf4['aOjnJ'](_0x46a519,_0x124c3a,_0x2e3082);},'DvhKt':_0x240cf4[_0x57fa8b(0x184)],'JgJpt':function(_0x4f0301,_0xe2c97e){const _0x57edad=_0x57fa8b;return _0x240cf4[_0x57edad(0x150)](_0x4f0301,_0xe2c97e);}};if(helper[_0x57fa8b(0x173)]()){const _0x334c96=_0x240cf4[_0x57fa8b(0x1a6)]['split']('|');let _0x156bd8=0x0;while(!![]){switch(_0x334c96[_0x156bd8++]){case'0':globals[_0x57fa8b(0x143)](_0x240cf4[_0x57fa8b(0x15d)])&&(!_0x240cf4[_0x57fa8b(0x1a9)](setExtension,this,_0x34bdc9)&&globals['setGlobal'](_0x240cf4[_0x57fa8b(0x15d)],![]));continue;case'1':_0x240cf4[_0x57fa8b(0x1a3)](isAccessibilityAutomationSession)&&_0x240cf4['gUvuR'](setAccessibilityCapabilities,_0x34bdc9);continue;case'2':logger[_0x57fa8b(0x16d)](_0x240cf4[_0x57fa8b(0x14a)]);continue;case'3':if(helper['isPacProxy'](_0x34bdc9['proxySettings'][_0x57fa8b(0x171)]))this['agent_']=helper[_0x57fa8b(0x135)](_0x34bdc9[_0x57fa8b(0x188)][_0x57fa8b(0x171)]);else _0x34bdc9[_0x57fa8b(0x188)][_0x57fa8b(0x171)]&&(this[_0x57fa8b(0x1a1)]=_0x34bdc9[_0x57fa8b(0x188)]['proxyUrl'],logger['debug'](_0x57fa8b(0x16f)+this[_0x57fa8b(0x1a1)]));continue;case'4':this[_0x57fa8b(0x195)]();continue;case'5':this[_0x57fa8b(0x14c)]();continue;}break;}}const _0x378557=super['build']();return _0x378557['session_'][_0x57fa8b(0x186)](_0x57151f=>{const _0x17595d=_0x57fa8b;try{const _0x310ca4=_0x57151f[_0x17595d(0x176)]['get'](_0x240cf4['kzRSB']);_0x310ca4?(logger['debug'](_0x17595d(0x174)+_0x310ca4),hubAllocator[_0x17595d(0x161)](_0x310ca4),helper[_0x17595d(0x13a)](_0x310ca4)):logger[_0x17595d(0x16d)](_0x240cf4[_0x17595d(0x1a0)]);}catch(_0x3faa1e){logger[_0x17595d(0x16d)]('ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20'+_0x3faa1e);}}),_0x378557[_0x57fa8b(0x162)]=0x0,_0x378557[_0x57fa8b(0x186)]&&_0x378557['then'](_0x3e27c9=>{const _0x38bd8f=_0x57fa8b,_0x1de58e=_0x4d31a9['DvhKt'][_0x38bd8f(0x132)]('|');let _0x381897=0x0;while(!![]){switch(_0x1de58e[_0x381897++]){case'0':_0x4d31a9[_0x38bd8f(0x149)](overrideQuit,_0x3e27c9,_0x378557);continue;case'1':_0x3e27c9[_0x38bd8f(0x19f)]=async()=>{const _0xa90704=_0x38bd8f;return await _0x4d31a9[_0xa90704(0x149)](getAccessibilityResults,_0x3e27c9,global);};continue;case'2':_0x4d31a9[_0x38bd8f(0x18a)](overrideTakeScreenshot,_0x3e27c9);continue;case'3':helper['overrideExecute'](_0x3e27c9,_0x34bdc9);continue;case'4':helper[_0x38bd8f(0x172)](_0x3e27c9,_0x34bdc9);continue;case'5':_0x3e27c9[_0x38bd8f(0x17f)]=async()=>{return await _0x4d31a9['Kfefx'](getAccessibilityResultsSummary,_0x3e27c9,global);};continue;}break;}}),_0x378557['getAccessibilityResultsSummary']=async()=>{const _0x5a686c=_0x57fa8b;return await _0x240cf4[_0x5a686c(0x177)](getAccessibilityResultsSummary,_0x378557,global);},_0x378557[_0x57fa8b(0x19f)]=async()=>{return await _0x4d31a9['npVDo'](getAccessibilityResults,_0x378557,global);},_0x240cf4[_0x57fa8b(0x19b)](overrideTakeScreenshot,_0x378557),_0x240cf4[_0x57fa8b(0x19b)](overrideQuit,_0x378557),helper[_0x57fa8b(0x172)](_0x378557,_0x34bdc9),helper['overrideExecute'](_0x378557,_0x34bdc9),helper['isUndefined'](global[_0x57fa8b(0x18d)])&&(global[_0x57fa8b(0x18d)]=[]),helper[_0x57fa8b(0x182)](global[_0x57fa8b(0x139)])&&(global[_0x57fa8b(0x139)]=[]),global[_0x57fa8b(0x18d)]['push'](_0x378557),global[_0x57fa8b(0x166)]=_0x378557,_0x240cf4[_0x57fa8b(0x141)](global[_0x57fa8b(0x139)],undefined)&&global[_0x57fa8b(0x139)][_0x57fa8b(0x19c)](_0x378557),_0x3bdb31&&helper['isUndefined'](_0x3bdb31[_0x57fa8b(0x17a)][_0x57fa8b(0x18d)])&&(_0x3bdb31[_0x57fa8b(0x17a)][_0x57fa8b(0x18d)]=[]),_0x3bdb31&&_0x240cf4[_0x57fa8b(0x199)](_0x3bdb31['global']['__drivers'],undefined)&&(_0x3bdb31[_0x57fa8b(0x17a)][_0x57fa8b(0x139)][_0x57fa8b(0x19c)](_0x378557),_0x3bdb31[_0x57fa8b(0x17a)][_0x57fa8b(0x18d)]['push'](_0x378557)),_0x378557;}}return _0x394ed2[_0x3ac733(0x18e)]=_0x394ed2[_0x3ac733(0x191)],_0x394ed2[_0x3ac733(0x191)]=_0x2bc71a,_0x2606f6['HttpClient']=_0x28e599,_0x394ed2;};module[a29_0x1c9b62(0x1a2)][a29_0x1c9b62(0x190)]=modify;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a30_0x2adc56=a30_0x446c;(function(_0x2c89d8,_0xc2610b){const _0x173f8b=a30_0x446c,_0x29bc6d=_0x2c89d8();while(!![]){try{const _0xd74a73=-parseInt(_0x173f8b(0xbb))/0x1+parseInt(_0x173f8b(0xbc))/0x2+-parseInt(_0x173f8b(0xba))/0x3+-parseInt(_0x173f8b(0xc0))/0x4+parseInt(_0x173f8b(0xbf))/0x5+parseInt(_0x173f8b(0xc3))/0x6+parseInt(_0x173f8b(0xc6))/0x7*(parseInt(_0x173f8b(0xc2))/0x8);if(_0xd74a73===_0xc2610b)break;else _0x29bc6d['push'](_0x29bc6d['shift']());}catch(_0x1cf8db){_0x29bc6d['push'](_0x29bc6d['shift']());}}}(a30_0x5c34,0x34285));const requestSpy=require('../../../helpers/request-spy'),constants=require(a30_0x2adc56(0xc4)),{addRequestSpy}=require(a30_0x2adc56(0xbe));function a30_0x446c(_0x563564,_0xb2bc56){const _0x5c34cf=a30_0x5c34();return a30_0x446c=function(_0x446c8f,_0x45762d){_0x446c8f=_0x446c8f-0xba;let _0x42d0a0=_0x5c34cf[_0x446c8f];return _0x42d0a0;},a30_0x446c(_0x563564,_0xb2bc56);}exports['mochaHooks']={'beforeAll'(){const _0x231e86=a30_0x2adc56,_0xe95e6={'zJlTw':function(_0x2bf2e1){return _0x2bf2e1();}},_0x455f86='browserstack internal helper hook';_0xe95e6[_0x231e86(0xbd)](addRequestSpy);},'afterAll'(){const _0x479877=a30_0x2adc56,_0x23ab0e='browserstack internal helper hook';this[_0x479877(0xc5)](0xea60),requestSpy[_0x479877(0xc1)]();}};function a30_0x5c34(){const _0x6f8b20=['zJlTw','../../../helpers/test-observability/utils','1681610GViPbN','1634728dzKbWu','restore','24utxCao','802206CklEsF','../../../bin/utils/constants','timeout','1292417IHiVHr','1087374fbKIJd','179865zStlEx','281452evKGYg'];a30_0x5c34=function(){return _0x6f8b20;};return a30_0x5c34();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a31_0x38d6dd=a31_0xf587;(function(_0x4a3620,_0x29522d){const _0x386bef=a31_0xf587,_0x447584=_0x4a3620();while(!![]){try{const _0x153315=-parseInt(_0x386bef(0x143))/0x1+parseInt(_0x386bef(0x156))/0x2*(-parseInt(_0x386bef(0x151))/0x3)+parseInt(_0x386bef(0x14f))/0x4*(parseInt(_0x386bef(0x142))/0x5)+parseInt(_0x386bef(0x137))/0x6*(-parseInt(_0x386bef(0x14d))/0x7)+-parseInt(_0x386bef(0x166))/0x8*(-parseInt(_0x386bef(0x154))/0x9)+-parseInt(_0x386bef(0x138))/0xa+parseInt(_0x386bef(0x148))/0xb;if(_0x153315===_0x29522d)break;else _0x447584['push'](_0x447584['shift']());}catch(_0x1da37f){_0x447584['push'](_0x447584['shift']());}}}(a31_0x26ca,0x87ed7));function a31_0x26ca(){const _0xb1ab73=['browserstack','failed','cGznz','pending','appium:app','868232qIQcOf','NaQta','vTdld','../../../../package.json','gCMEk','unknown_grid','type','toISOString','_afterAll','../../utils/logPatcher','app','ZNlCs','JvVev','getPlatform','pid','getSession','getBrowserName','YolpY','state','hook:','getHookSkippedTests','lxEMv','getHooksForTest','XTiQR','hook','SFlvC','markedStatus','_afterEach','concat','OkNMi','mKbsK','FWbLN','mEFoS','app-automate','slice','RBaOf','gUJZE','passed','split','keys','DzuyG','getHookDetails','substring','5501508BtiUxd','305480zptKzU','HHihM','uuid','wsuXm','indexOf','string','YnOYs','yGayB','map_','eXkAk','5021810iihXes','569244wkciib','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','forEach','mapTestHooks','hookAnalyticsId','15102780KfIuwj','filter','getCapabilities','_beforeAll','_beforeEach','7UZBfHq','emit','4ixthVW','uXWEH','9684rzrLQG','xsqQX','__cloud_provider___','27ZoyxhZ','../../../helpers/test-observability/constants','390NFrusi','getBrowserVersion','../../../helpers/testhub/utils','lSHbL','parent','bzeTG','bs:addPlatformDetails:','MSyLw','qSEkS','rqxTs','js-'];a31_0x26ca=function(){return _0xb1ab73;};return a31_0x26ca();}const {v4:uuidv4}=require(a31_0x38d6dd(0x13a)),{name,version}=require(a31_0x38d6dd(0x169)),logPatcher=require(a31_0x38d6dd(0x16f)),BSTestOpsPatcher=new logPatcher({}),{debug,isInternalHook}=require('../../../helpers/test-observability/utils'),{consoleHolder}=require(a31_0x38d6dd(0x155)),{getPlatformVersion}=require('../../../helpers/helper'),{shouldProcessEventForTesthub}=require(a31_0x38d6dd(0x158));function a31_0xf587(_0x4ade08,_0x408c9f){const _0x26ca02=a31_0x26ca();return a31_0xf587=function(_0xf587c8,_0x336abc){_0xf587c8=_0xf587c8-0x134;let _0x3a4109=_0x26ca02[_0xf587c8];return _0x3a4109;},a31_0xf587(_0x4ade08,_0x408c9f);}console={},Object[a31_0x38d6dd(0x18d)](consoleHolder)[a31_0x38d6dd(0x145)](_0x18291f=>{console[_0x18291f]=(..._0x3c70d7)=>{BSTestOpsPatcher[_0x18291f](..._0x3c70d7);};}),exports['getTestEnv']=()=>{const _0x3a3622=a31_0x38d6dd,_0x1541ac={'vTdld':'generic','HHihM':function(_0x5a9fe5){return _0x5a9fe5();}};return{'ci':_0x1541ac[_0x3a3622(0x168)],'key':_0x1541ac[_0x3a3622(0x139)](uuidv4),'version':version,'collector':_0x3a3622(0x160)+name};},exports[a31_0x38d6dd(0x135)]=_0x2bd107=>{const _0x226cb4=a31_0x38d6dd,_0x42bf9f={};_0x42bf9f[_0x226cb4(0x183)]=function(_0x5bc505,_0x48ca1d){return _0x5bc505!==_0x48ca1d;},_0x42bf9f[_0x226cb4(0x171)]=_0x226cb4(0x13d),_0x42bf9f[_0x226cb4(0x163)]=_0x226cb4(0x179),_0x42bf9f['YnOYs']='hook';const _0x529816=_0x42bf9f;if(!_0x2bd107||_0x529816[_0x226cb4(0x183)](typeof _0x2bd107,_0x529816['ZNlCs']))return[null,null];if(_0x529816[_0x226cb4(0x183)](_0x2bd107['indexOf'](_0x529816[_0x226cb4(0x163)]),-0x1)){const _0x5be5b7=_0x2bd107['split'](_0x529816[_0x226cb4(0x163)]);return[_0x5be5b7[0x0]['slice'](0x0,-0x1)[_0x226cb4(0x18c)]('\x22')[0x1],_0x5be5b7[0x1][_0x226cb4(0x136)](0x1)];}else{if(_0x529816[_0x226cb4(0x183)](_0x2bd107[_0x226cb4(0x13c)](_0x529816[_0x226cb4(0x13e)]),-0x1)){const _0x2f4fae=_0x2bd107[_0x226cb4(0x18c)](_0x529816[_0x226cb4(0x13e)]);return[_0x2f4fae[0x0][_0x226cb4(0x188)](0x0,-0x1)[_0x226cb4(0x18c)]('\x22')[0x1],_0x2bd107];}}return[null,null];},exports[a31_0x38d6dd(0x17c)]=_0xca437f=>{const _0xf1f464=a31_0x38d6dd,_0x2fbd1a={'YolpY':function(_0x484ec4,_0xb916b4){return _0x484ec4(_0xb916b4);},'SFlvC':_0xf1f464(0x14b),'rqxTs':_0xf1f464(0x16e),'eXkAk':'_beforeEach','wsuXm':_0xf1f464(0x181)};if(!_0xca437f||!_0xca437f[_0xf1f464(0x15a)])return[];const _0x211c31=[];return[_0x2fbd1a[_0xf1f464(0x17f)],_0x2fbd1a[_0xf1f464(0x15f)],_0x2fbd1a[_0xf1f464(0x141)],_0x2fbd1a[_0xf1f464(0x13b)]][_0xf1f464(0x145)](_0x4ef51a=>{const _0x2c8a8a=_0xf1f464,_0x14dd35={'jhjAf':function(_0x34d160,_0x3e4a79){const _0x11b03e=a31_0xf587;return _0x2fbd1a[_0x11b03e(0x177)](_0x34d160,_0x3e4a79);}},_0x5b3384=_0xca437f[_0x2c8a8a(0x15a)][_0x4ef51a]||[];_0x5b3384[_0x2c8a8a(0x145)](_0x75ee34=>{const _0x1766d9=_0x2c8a8a;_0x75ee34['hookAnalyticsId']&&!_0x14dd35['jhjAf'](isInternalHook,_0x75ee34['fn'])&&_0x211c31['push'](_0x75ee34[_0x1766d9(0x147)]);});}),[..._0x211c31,...exports[_0xf1f464(0x17c)](_0xca437f['parent'])];},exports[a31_0x38d6dd(0x146)]=_0x1da203=>{const _0x48d9a7=a31_0x38d6dd,_0x392b32={'bzeTG':function(_0x296461){return _0x296461();},'DzuyG':function(_0x5da224,_0x29e4fb){return _0x5da224===_0x29e4fb;},'gUJZE':_0x48d9a7(0x181),'gFOAn':'_beforeAll','MiWpa':'_afterAll','LgXSv':_0x48d9a7(0x14c)};if(!_0x1da203||!_0x1da203['parent'])return;[_0x392b32['gFOAn'],_0x392b32['MiWpa'],_0x392b32['LgXSv'],_0x392b32[_0x48d9a7(0x18a)]][_0x48d9a7(0x145)](_0x559ed2=>{const _0x471a0a=_0x48d9a7,_0x2fa21d=_0x1da203[_0x471a0a(0x15a)][_0x559ed2]||[];_0x2fa21d[_0x471a0a(0x145)](_0x282d2b=>{const _0x2c25a8=_0x471a0a;if(!_0x282d2b['hookAnalyticsId'])_0x282d2b['hookAnalyticsId']=_0x392b32[_0x2c25a8(0x15b)](uuidv4);else _0x282d2b['markedStatus']&&_0x392b32[_0x2c25a8(0x134)](_0x559ed2,_0x392b32['gUJZE'])&&(_0x282d2b['hookAnalyticsId']=_0x392b32['bzeTG'](uuidv4),delete _0x282d2b[_0x2c25a8(0x180)]);});}),exports[_0x48d9a7(0x146)](_0x1da203['parent']);},exports['sendPlatformDetails']=async(_0x84da87,_0x595abe)=>{const _0x33defa=a31_0x38d6dd,_0x105e4a={'RBaOf':function(_0x2193c7){return _0x2193c7();},'MSyLw':function(_0x5d69a6,_0x542e17){return _0x5d69a6===_0x542e17;},'NaQta':_0x33defa(0x161),'FWbLN':_0x33defa(0x165),'XTiQR':_0x33defa(0x170),'DPbEw':_0x33defa(0x187),'gCMEk':'automate','xsqQX':function(_0x564c14,_0x307dc4){return _0x564c14(_0x307dc4);},'yGayB':_0x33defa(0x16b),'uXWEH':'TEST_PLATFORM','lSHbL':function(_0x106f83,_0x613c4){return _0x106f83(_0x613c4);}};try{if(!_0x105e4a[_0x33defa(0x189)](shouldProcessEventForTesthub))return;const _0x3a2015=await _0x84da87[_0x33defa(0x14a)](),_0xa26188=await _0x84da87[_0x33defa(0x175)](),_0x3c9cbc={},_0x5b4abc=Object['fromEntries'](_0xa26188['getCapabilities']()[_0x33defa(0x140)]),_0x516361={'product':_0x105e4a[_0x33defa(0x15d)](global[_0x33defa(0x153)],_0x105e4a['NaQta'])?_0x5b4abc[_0x105e4a[_0x33defa(0x185)]]||_0x5b4abc[_0x105e4a[_0x33defa(0x17d)]]?_0x105e4a['DPbEw']:_0x105e4a[_0x33defa(0x16a)]:null,'capabilities':_0x5b4abc,'platform':_0x3a2015[_0x33defa(0x173)](),'platform_version':_0x105e4a[_0x33defa(0x152)](getPlatformVersion,_0x105e4a[_0x33defa(0x15d)](global[_0x33defa(0x153)],_0x105e4a[_0x33defa(0x167)])),'browser':_0x3a2015[_0x33defa(0x176)](),'browser_version':_0x3a2015[_0x33defa(0x157)](),'session_id':_0xa26188['toJSON']()};global[_0x33defa(0x153)]?_0x3c9cbc[global[_0x33defa(0x153)]]=_0x516361:_0x3c9cbc[_0x105e4a[_0x33defa(0x13f)]]=_0x516361,process[_0x33defa(0x14e)](_0x33defa(0x15c)+process[_0x33defa(0x174)],{'timestamp':new Date()[_0x33defa(0x16d)](),'level':null,'message':null,'kind':_0x105e4a[_0x33defa(0x150)],'http_response':_0x3c9cbc,'uuid':_0x595abe});}catch(_0xf7261f){_0x105e4a[_0x33defa(0x159)](debug,_0x33defa(0x144)+_0xf7261f);}},exports[a31_0x38d6dd(0x17a)]=_0x22dc75=>{const _0xd4eb08=a31_0x38d6dd,_0x357283={};_0x357283[_0xd4eb08(0x172)]=function(_0x200c2c,_0x323194){return _0x200c2c!==_0x323194;},_0x357283[_0xd4eb08(0x15e)]=_0xd4eb08(0x17e),_0x357283[_0xd4eb08(0x186)]=function(_0xc9dfbc,_0x346a61){return _0xc9dfbc!==_0x346a61;},_0x357283[_0xd4eb08(0x184)]=_0xd4eb08(0x18b),_0x357283[_0xd4eb08(0x17b)]=_0xd4eb08(0x162);const _0x2c82d1=_0x357283,_0x410a26=_0x22dc75['suites']['reduce']((_0x4d2f0e,_0xabc25)=>{const _0x1c2b16=_0xd4eb08,_0x927894=exports[_0x1c2b16(0x17a)](_0xabc25);return _0x927894&&(_0x4d2f0e=_0x4d2f0e[_0x1c2b16(0x182)](_0x927894)),_0x4d2f0e;},[]),_0x393e01=_0x22dc75['tests'][_0xd4eb08(0x149)](_0x47d343=>{const _0x53f28f=_0xd4eb08,_0x15594f=_0x2c82d1[_0x53f28f(0x172)](_0x47d343[_0x53f28f(0x16c)],_0x2c82d1[_0x53f28f(0x15e)])&&!_0x47d343['markedStatus']&&_0x2c82d1[_0x53f28f(0x186)](_0x47d343[_0x53f28f(0x178)],_0x2c82d1['mKbsK'])&&_0x2c82d1[_0x53f28f(0x186)](_0x47d343[_0x53f28f(0x178)],_0x2c82d1['lxEMv'])&&!_0x47d343[_0x53f28f(0x164)];return _0x15594f;});return _0x393e01[_0xd4eb08(0x182)](_0x410a26);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a32_0x293b19=a32_0x2f8a;(function(_0x13bb6f,_0x413585){const _0x28dd35=a32_0x2f8a,_0x111e0a=_0x13bb6f();while(!![]){try{const _0xa649f7=parseInt(_0x28dd35(0x10e))/0x1*(parseInt(_0x28dd35(0x109))/0x2)+-parseInt(_0x28dd35(0xfa))/0x3*(parseInt(_0x28dd35(0x112))/0x4)+parseInt(_0x28dd35(0x124))/0x5*(-parseInt(_0x28dd35(0x12f))/0x6)+parseInt(_0x28dd35(0x135))/0x7+parseInt(_0x28dd35(0xd5))/0x8*(parseInt(_0x28dd35(0xea))/0x9)+-parseInt(_0x28dd35(0xd3))/0xa*(parseInt(_0x28dd35(0xc9))/0xb)+parseInt(_0x28dd35(0xca))/0xc*(-parseInt(_0x28dd35(0xcd))/0xd);if(_0xa649f7===_0x413585)break;else _0x111e0a['push'](_0x111e0a['shift']());}catch(_0x25e710){_0x111e0a['push'](_0x111e0a['shift']());}}}(a32_0x3cbf,0xe4ca7));const util=require(a32_0x293b19(0x122)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a32_0x293b19(0x140)),{percyAutoCapture}=require(a32_0x293b19(0x102)),{sendPlatformDetails}=require(a32_0x293b19(0xec)),{isBrowserstackInfra,markSessionStatus}=require(a32_0x293b19(0x141)),PerformanceTester=require(a32_0x293b19(0x11d)),scripts=require(a32_0x293b19(0xd8)),globals=require(a32_0x293b19(0xef)),logger=require(a32_0x293b19(0xeb))['winstonLogger'],{shouldProcessEventForTesthub}=require(a32_0x293b19(0x116)),testHubConstants=require('../../helpers/testhub/constants');exports[a32_0x293b19(0x10c)]={'beforeAll'(){const _0x421ca1=a32_0x293b19,_0x570197={'DjTBm':function(_0x5ce2af,_0x42434e,_0xadb413,_0xd56836){return _0x5ce2af(_0x42434e,_0xadb413,_0xd56836);},'hQXlx':'failed','DshzS':_0x421ca1(0xe5),'jjKQZ':function(_0xe8da88,_0x576398,_0xc5bec2){return _0xe8da88(_0x576398,_0xc5bec2);},'qSWqr':_0x421ca1(0x11c),'eefQj':function(_0x526291){return _0x526291();}};PerformanceTester[_0x421ca1(0x111)]();const _0x473c17='browserstack internal helper hook';global[_0x421ca1(0xf2)]=[],global[_0x421ca1(0x12c)]=![],global['driverCleanup']=async()=>{const _0x42364f=_0x421ca1;let _0x300e00=![];try{await global[_0x42364f(0xf1)][0x0]['session_'],_0x300e00=!![],global[_0x42364f(0x12c)]?await _0x570197[_0x42364f(0xc7)](markSessionStatus,global['__drivers'][0x0],_0x570197[_0x42364f(0xff)],global['__error_messages__'][_0x42364f(0x10b)](_0x570197['DshzS'])):await _0x570197[_0x42364f(0xf9)](markSessionStatus,global[_0x42364f(0xf1)][0x0],_0x570197[_0x42364f(0xf7)]);}catch(_0x2a97e1){}global['__error_messages__']=[],global['__sessionFailed']=![];if(_0x300e00)try{try{_0x570197[_0x42364f(0xfd)](shouldProcessEventForTesthub)&&(global[_0x42364f(0xf1)][0x0]&&await _0x570197[_0x42364f(0xf9)](sendPlatformDetails,global[_0x42364f(0xf1)][0x0],this[_0x42364f(0xd1)]?this['currentTest'][_0x42364f(0xc5)]:null));}catch{}await global[_0x42364f(0xf1)][0x0][_0x42364f(0xd9)]();}catch(_0x1c21a0){}};},'beforeEach'(_0x30cdf5){const _0x93f279=a32_0x293b19,_0x91c444={'PXTMo':function(_0x78009a,_0x49d2d6){return _0x78009a>_0x49d2d6;},'HbrYW':function(_0x2f840c,_0x255f7d){return _0x2f840c>_0x255f7d;},'qtXUH':_0x93f279(0x13e),'lQEXW':function(_0x2be921,_0x3b7dcc,_0x218886){return _0x2be921(_0x3b7dcc,_0x218886);},'ZsoFn':_0x93f279(0x13a),'iPrCk':function(_0x11891e){return _0x11891e();},'eqZIo':_0x93f279(0x138),'cQxrO':function(_0x12d5bd,_0x8c63e6){return _0x12d5bd===_0x8c63e6;},'dhqgz':_0x93f279(0x13b),'touTF':function(_0xfc5297,_0x262c02){return _0xfc5297===_0x262c02;},'QeSKO':_0x93f279(0xe6),'PlyrT':_0x93f279(0x134),'HgvEQ':_0x93f279(0xd2)};new Promise(async _0x23e8ba=>{const _0x53ea88=_0x93f279,_0x2c5573='browserstack internal helper hook';let _0xf6ca0e=!![];try{_0x91c444[_0x53ea88(0x108)](global[_0x53ea88(0xf1)]['length'],0x1)&&(await global[_0x53ea88(0x129)](),global[_0x53ea88(0xf1)][_0x53ea88(0x137)]()),_0x91c444[_0x53ea88(0xed)](global[_0x53ea88(0xf1)][0x0][_0x53ea88(0x103)],0x0)&&(_0xf6ca0e=![],await global['driverCleanup']());}catch{}try{Array[_0x53ea88(0x12d)](global[_0x53ea88(0xf1)])&&global[_0x53ea88(0xf1)][0x0]&&(global[_0x53ea88(0xf1)][0x0]['browserstackSessionName']=this[_0x53ea88(0xd1)][_0x53ea88(0x11e)]()[_0x53ea88(0x10b)](_0x91c444[_0x53ea88(0x132)])),global[_0x53ea88(0xd0)]=this[_0x53ea88(0xd1)]['titlePath']()['join'](_0x91c444[_0x53ea88(0x132)]);}catch(_0x795a96){logger['debug'](_0x53ea88(0x11a)+_0x795a96);}this[_0x53ea88(0xd1)][_0x53ea88(0xfe)]=_0x91c444[_0x53ea88(0x12a)](shouldScanTestForAccessibility,this[_0x53ea88(0xd1)][_0x53ea88(0x11e)](),!![]),globals[_0x53ea88(0xe7)](_0x91c444[_0x53ea88(0xe9)],this[_0x53ea88(0xd1)][_0x53ea88(0xfe)]),this['currentTest']['accessibilityScanStarted']=!![];if(_0x91c444[_0x53ea88(0x11f)](isAccessibilityAutomationSession)&&_0xf6ca0e&&Array[_0x53ea88(0x12d)](global['__drivers'])&&_0x91c444[_0x53ea88(0x108)](global[_0x53ea88(0xf1)][_0x53ea88(0xfc)],0x0)&&globals[_0x53ea88(0x10d)](_0x91c444[_0x53ea88(0x120)]))try{const _0x3a2650=await global[_0x53ea88(0xf1)][0x0][_0x53ea88(0x107)];if(_0x3a2650){let _0x2eb6f0=!![];const _0x3a3106=await global[_0x53ea88(0xf1)][0x0][_0x53ea88(0xe1)]();let _0x1e8a26;try{_0x1e8a26=new URL(_0x3a3106);}catch(_0x219e7e){_0x2eb6f0=![];}_0x2eb6f0=_0x91c444[_0x53ea88(0xf5)](_0x1e8a26[_0x53ea88(0x133)],_0x91c444[_0x53ea88(0xcb)])||_0x91c444['touTF'](_0x1e8a26[_0x53ea88(0x133)],_0x91c444['QeSKO']),_0x2eb6f0&&(this['currentTest'][_0x53ea88(0xfe)]&&logger[_0x53ea88(0x127)](_0x91c444[_0x53ea88(0xcc)])),this[_0x53ea88(0xd1)][_0x53ea88(0x106)]=this['currentTest'][_0x53ea88(0xfe)],this[_0x53ea88(0xd1)][_0x53ea88(0xfe)]&&logger['info'](_0x91c444[_0x53ea88(0xcf)]);}}catch(_0x33f25b){logger[_0x53ea88(0x115)]('Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20'+util['format'](_0x33f25b));}_0x91c444[_0x53ea88(0x11f)](_0x23e8ba);})[_0x93f279(0xd7)](_0x30cdf5);},'afterEach'(_0x4b82ad){const _0x53f1ca=a32_0x293b19,_0x26556a={'cdtbW':function(_0x3da349,_0x251d02){return _0x3da349>_0x251d02;},'EGtvK':function(_0x3444ca,_0x2579a2){return _0x3444ca===_0x2579a2;},'DZtlq':_0x53f1ca(0xdb),'OsKPv':function(_0xd972b5,_0x58bc29){return _0xd972b5>_0x58bc29;},'lvngJ':_0x53f1ca(0xc6),'pgPNd':function(_0x39f16b,_0x274f35,_0x4ed4d2,_0x2d7158){return _0x39f16b(_0x274f35,_0x4ed4d2,_0x2d7158);},'blFXY':_0x53f1ca(0x13e),'SgqPg':function(_0x12d1cb,_0x4cd01f){return _0x12d1cb!==_0x4cd01f;},'vwRJe':'passed','kQgBs':function(_0x105838,_0xfa81cb,_0x26cead){return _0x105838(_0xfa81cb,_0x26cead);},'GGQcT':function(_0x38023f,_0x29947c){return _0x38023f+_0x29947c;},'RbtYJ':_0x53f1ca(0x131),'ekeGI':_0x53f1ca(0x115),'isOxb':function(_0x233bbe,_0x1a9a8f,_0x388251){return _0x233bbe(_0x1a9a8f,_0x388251);},'TaEAn':_0x53f1ca(0x119),'Nalee':_0x53f1ca(0x127),'Acnto':_0x53f1ca(0x138),'YlAJm':_0x53f1ca(0x13a),'SIReF':_0x53f1ca(0x13f),'AMreS':'Performing\x20scan\x20before\x20saving\x20results','rodXw':_0x53f1ca(0x11b),'tRjsl':function(_0x29f097){return _0x29f097();},'LtSjz':_0x53f1ca(0x121),'Vazdn':function(_0x11863d,_0x36e60e){return _0x11863d>_0x36e60e;},'DegEV':function(_0x278f2c){return _0x278f2c();}},_0x422f3c='browserstack internal helper hook';this[_0x53f1ca(0xce)](0xfde8);const _0x45f7c1=async(_0x10bbf5,_0xdf92c0)=>{const _0xcc6262=_0x53f1ca;await global[_0xcc6262(0xf1)][0x0][_0xcc6262(0x136)](_0xcc6262(0x123)+_0x10bbf5+_0xcc6262(0x12b)+_0xdf92c0+'\x22}}');};new Promise(async _0x1e2c2f=>{const _0x592141=_0x53f1ca;try{_0x26556a[_0x592141(0xde)](global[_0x592141(0xf1)][_0x592141(0xfc)],0x1)&&(await global['driverCleanup'](),global[_0x592141(0xf1)][_0x592141(0x137)](),global[_0x592141(0xf2)]=[],global['__sessionFailed']=![]);try{if(global[_0x592141(0x13c)]&&_0x26556a[_0x592141(0xe2)](global['percyCaptureMode'],_0x26556a[_0x592141(0xd6)])&&global['__drivers'][0x0]){const _0x28fb0e=_0x26556a['OsKPv'](global['capabilities'][_0x592141(0xfc)],0x0)?!!global[_0x592141(0xf6)][0x0][_0x592141(0x104)]||!!global[_0x592141(0xf6)][0x0][_0x26556a['lvngJ']]:![],_0x1ef1b8={};_0x1ef1b8[_0x592141(0x104)]=_0x28fb0e,await _0x26556a['pgPNd'](percyAutoCapture,global[_0x592141(0xf1)][0x0],_0x26556a[_0x592141(0xd6)],_0x1ef1b8);}}catch(_0x55932f){}!global[_0x592141(0x110)]&&(await global[_0x592141(0xf1)][0x0]['executeScript'](_0x592141(0xe0)+JSON['stringify'](this[_0x592141(0xd1)]['titlePath']()[_0x592141(0x10b)](_0x26556a[_0x592141(0x139)]))+'}}'),global[_0x592141(0xf1)][0x0][_0x592141(0x10f)]=!![]);const _0x2abae1=_0x26556a[_0x592141(0xf3)](this['currentTest'][_0x592141(0x126)],_0x26556a['vwRJe']);_0x2abae1?(global[_0x592141(0x12c)]=!![],global[_0x592141(0xf2)][_0x592141(0xf4)](this[_0x592141(0xd1)][_0x592141(0xfb)]['message']),await _0x26556a['kQgBs'](_0x45f7c1,JSON[_0x592141(0xe3)](_0x26556a['GGQcT'](_0x26556a[_0x592141(0x13d)],this['currentTest'][_0x592141(0xfb)][_0x592141(0xdc)])),_0x26556a['ekeGI'])):await _0x26556a[_0x592141(0xe4)](_0x45f7c1,JSON['stringify'](_0x26556a[_0x592141(0x114)]),_0x26556a['Nalee']);}catch(_0x3c1e03){}try{if(this['currentTest']['accessibilityScanStarted']&&globals['getGlobal'](_0x26556a[_0x592141(0x125)])&&globals[_0x592141(0x10d)](_0x26556a['YlAJm'])){logger[_0x592141(0x127)](_0x26556a[_0x592141(0x12e)]);const _0x12d457={};_0x12d457['thTestRunUuid']=this[_0x592141(0xd1)][_0x592141(0xc5)],_0x12d457[_0x592141(0xdd)]=process[_0x592141(0xda)][testHubConstants[_0x592141(0x105)][_0x592141(0x10a)]],_0x12d457[_0x592141(0xf8)]=process[_0x592141(0xda)][testHubConstants['ENV_VAR'][_0x592141(0xee)]];const _0x4c85a0=_0x12d457;logger[_0x592141(0x121)]('Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20'+JSON[_0x592141(0xe3)](_0x4c85a0)),logger[_0x592141(0x121)](_0x26556a[_0x592141(0xf0)]),logger[_0x592141(0x121)](util[_0x592141(0xc4)](await global['__drivers'][0x0][_0x592141(0x113)](scripts['performScan'],{'method':global[_0x592141(0xd0)]}))),await global[_0x592141(0xf1)][0x0][_0x592141(0x113)](scripts[_0x592141(0xe8)],_0x4c85a0),logger['info'](_0x26556a[_0x592141(0xd4)]);}}catch(_0x2fcec0){logger[_0x592141(0x115)](_0x592141(0x128)+this[_0x592141(0xd1)][_0x592141(0x11e)]()+_0x592141(0x117),_0x2fcec0);}try{try{if(_0x26556a['tRjsl'](shouldProcessEventForTesthub)){global[_0x592141(0xf1)][0x0]&&await _0x26556a[_0x592141(0xe4)](sendPlatformDetails,global['__drivers'][0x0],this[_0x592141(0xd1)]?this[_0x592141(0xd1)][_0x592141(0xc5)]:null);if(_0x26556a[_0x592141(0x100)](isBrowserstackInfra)){const _0x4ab88b='ObservabilitySync:'+Date[_0x592141(0x118)]();await _0x26556a[_0x592141(0xe4)](_0x45f7c1,JSON['stringify'](_0x4ab88b),_0x26556a[_0x592141(0x101)]);}}}catch{}_0x26556a[_0x592141(0x130)](global[_0x592141(0xf1)][0x0][_0x592141(0x103)],0x0)&&await global['driverCleanup']();}catch(_0x529030){}_0x26556a[_0x592141(0xc8)](_0x1e2c2f);})[_0x53f1ca(0xd7)](()=>_0x4b82ad());},'afterAll'(_0x3ffa4d){const _0x58c1c8=a32_0x293b19,_0x4f1405={'HkaXS':function(_0x45fa8b){return _0x45fa8b();}},_0x5f02b7='browserstack internal helper hook';this[_0x58c1c8(0xce)](0xfde8),new Promise(async _0x2e5e5c=>{const _0x4df09c=_0x58c1c8;PerformanceTester[_0x4df09c(0xdf)](),await global[_0x4df09c(0x129)](),_0x4f1405['HkaXS'](_0x2e5e5c);})[_0x58c1c8(0xd7)](()=>_0x3ffa4d());}};function a32_0x2f8a(_0x412a01,_0x13bed2){const _0x3cbfa2=a32_0x3cbf();return a32_0x2f8a=function(_0x2f8a80,_0x57f176){_0x2f8a80=_0x2f8a80-0xc4;let _0x2403b3=_0x3cbfa2[_0x2f8a80];return _0x2403b3;},a32_0x2f8a(_0x412a01,_0x13bed2);}function a32_0x3cbf(){const _0xb2aceb=['DZtlq','then','../../helpers/accessibility-automation/scripts','initQuit','env','testcase','message','thBuildUuid','cdtbW','stopMonitoring','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','getCurrentUrl','EGtvK','stringify','isOxb','\x20|\x20','https:','setGlobal','saveTestResults','ZsoFn','1165581SHChtq','../../helpers/logger','./test-observability/mochaUtils','HbrYW','BROWSERSTACK_TESTHUB_JWT','../../helpers/globals','AMreS','__drivers','__error_messages__','SgqPg','push','cQxrO','capabilities','qSWqr','thJwtToken','jjKQZ','3jTeHLv','err','length','eefQj','shouldScanTestForAccessibility','hQXlx','tRjsl','LtSjz','../../helpers/percy/utils','quitCount_','app','ENV_VAR','accessibilityScanStarted','session_','PXTMo','46GjqBiw','BROWSERSTACK_TESTHUB_UUID','join','mochaHooks','getGlobal','52791QCrorT','sessionNameSet__','__skipSessionName','startMonitoring','2381124EvwfMu','executeAsyncScript','TaEAn','error','../../helpers/testhub/utils','.\x20Error\x20:','now','Passed','Failed\x20to\x20store\x20session\x20name:\x20','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','passed','../../helpers/performance-tester','titlePath','iPrCk','eqZIo','debug','util','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','2075165LDkTxu','Acnto','state','info','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','driverCleanup','lQEXW',',\x22level\x22:\x20\x22','__sessionFailed','isArray','SIReF','12cKPfEP','Vazdn','Failed:\x20','qtXUH','protocol','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','4493426LYEXED','executeScript','shift','isAccessibilityPlatform','blFXY','bstackA11yShouldScan','http:','percy','RbtYJ','\x20-\x20','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','../../helpers/accessibility-automation/helper','../../helpers/helper','format','testAnalyticsId','appium:app','DjTBm','DegEV','22297GphsBg','7764JPYBSB','dhqgz','PlyrT','8892KyvveT','timeout','HgvEQ','browserstackSessionName','currentTest','Automate\x20test\x20case\x20execution\x20has\x20started.','430txrnIn','rodXw','64AmIdZW'];a32_0x3cbf=function(){return _0xb2aceb;};return a32_0x3cbf();}
|
|
1
|
+
const a32_0xe88ac9=a32_0x2403;(function(_0x585e1c,_0x10d66e){const _0x83caf=a32_0x2403,_0x3cc6ba=_0x585e1c();while(!![]){try{const _0xbe0f4d=parseInt(_0x83caf(0x107))/0x1*(parseInt(_0x83caf(0x119))/0x2)+-parseInt(_0x83caf(0x122))/0x3*(parseInt(_0x83caf(0xeb))/0x4)+-parseInt(_0x83caf(0x15e))/0x5+parseInt(_0x83caf(0x116))/0x6+parseInt(_0x83caf(0xe6))/0x7*(-parseInt(_0x83caf(0xe1))/0x8)+-parseInt(_0x83caf(0x101))/0x9*(-parseInt(_0x83caf(0x11e))/0xa)+-parseInt(_0x83caf(0x14a))/0xb;if(_0xbe0f4d===_0x10d66e)break;else _0x3cc6ba['push'](_0x3cc6ba['shift']());}catch(_0x2f7e3c){_0x3cc6ba['push'](_0x3cc6ba['shift']());}}}(a32_0x2795,0x56449));function a32_0x2795(){const _0x368046=['103860xAYRjs','__drivers','bstackA11yShouldScan','join','info','EkivH','28487vdQZdJ','then','thJwtToken','lssNo','passed','startMonitoring','QYCMg','push','BROWSERSTACK_TESTHUB_JWT',',\x22level\x22:\x20\x22','../../helpers/percy/utils','shift','performScan','nBrRn','stringify','3417348PbIRId','./test-observability/mochaUtils','../../helpers/helper','46kQONbS','__sessionFailed','bAQNs','Failed\x20to\x20store\x20session\x20name:\x20','hwSnP','600gYtwSU','BWvXP','message','stopMonitoring','51atzmtK','kkcPa','sessionNameSet__','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','mochaHooks','../../helpers/performance-tester','testcase','\x22}}','.\x20Error\x20:','isArray','BROWSERSTACK_TESTHUB_UUID','state','gJwjb','browserstackSessionName','Failed:\x20','Performing\x20scan\x20before\x20saving\x20results','length','ENV_VAR','Automate\x20test\x20case\x20execution\x20has\x20started.','Passed','accessibilityScanStarted','protocol','cDrzN','isAccessibilityPlatform','getGlobal','MyCYv','executeScript','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','capabilities','nzsBr','shouldScanTestForAccessibility','BufdR','timeout','failed','thTestRunUuid','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','err','yZfxy','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','6555703TdpxlF','quitCount_','../../helpers/globals','format','DpYIC','enqxl','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','pDlGf','app','AogMh','VxvqS','eZMec','SJAEO','error','initQuit','kDScp','env','winstonLogger','../../helpers/accessibility-automation/helper','appium:app','2089070ZMoGsp','BdDbC','__error_messages__','HFBRI','executeAsyncScript','setGlobal','picpz','576yuRyfr','percy','driverCleanup','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','titlePath','30198XNzIua','../../helpers/accessibility-automation/scripts','ztDaa','IYZpT','DhaNt','56332HtJzWL','XwPOh','VdRjL','kPBoY','\x20-\x20','saveTestResults','lgYVW','FDKme','https:','http:','debug','now','XlbWC','\x20|\x20','UFQyg','testAnalyticsId','wGriK','../../helpers/logger','session_','thBuildUuid','currentTest','dxqoS'];a32_0x2795=function(){return _0x368046;};return a32_0x2795();}function a32_0x2403(_0xa7848e,_0x3afc06){const _0x2795f0=a32_0x2795();return a32_0x2403=function(_0x240398,_0x37fe20){_0x240398=_0x240398-0xdc;let _0x5277e3=_0x2795f0[_0x240398];return _0x5277e3;},a32_0x2403(_0xa7848e,_0x3afc06);}const util=require('util'),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a32_0xe88ac9(0x15c)),{percyAutoCapture}=require(a32_0xe88ac9(0x111)),{sendPlatformDetails}=require(a32_0xe88ac9(0x117)),{isBrowserstackInfra,markSessionStatus}=require(a32_0xe88ac9(0x118)),PerformanceTester=require(a32_0xe88ac9(0x128)),scripts=require(a32_0xe88ac9(0xe7)),globals=require(a32_0xe88ac9(0x14c)),logger=require(a32_0xe88ac9(0xfc))[a32_0xe88ac9(0x15b)],{shouldProcessEventForTesthub}=require('../../helpers/testhub/utils'),testHubConstants=require('../../helpers/testhub/constants');exports[a32_0xe88ac9(0x127)]={'beforeAll'(){const _0x59fa4c=a32_0xe88ac9,_0x416d05={'BWvXP':function(_0x4927f1,_0x39c7a3,_0x468b21,_0x463aea){return _0x4927f1(_0x39c7a3,_0x468b21,_0x463aea);},'EcHks':_0x59fa4c(0x144),'yxZJB':_0x59fa4c(0xf8),'VxvqS':function(_0x2543f4,_0x51eb41,_0x2e87fe){return _0x2543f4(_0x51eb41,_0x2e87fe);},'hwSnP':_0x59fa4c(0x10b),'DpYIC':function(_0x5646f9){return _0x5646f9();}};PerformanceTester[_0x59fa4c(0x10c)]();const _0x317b9c='browserstack internal helper hook';global[_0x59fa4c(0xdc)]=[],global[_0x59fa4c(0x11a)]=![],global[_0x59fa4c(0xe3)]=async()=>{const _0x3e2463=_0x59fa4c;let _0xe06b9c=![];try{await global['__drivers'][0x0][_0x3e2463(0xfd)],_0xe06b9c=!![],global[_0x3e2463(0x11a)]?await _0x416d05[_0x3e2463(0x11f)](markSessionStatus,global[_0x3e2463(0x102)][0x0],_0x416d05['EcHks'],global[_0x3e2463(0xdc)][_0x3e2463(0x104)](_0x416d05['yxZJB'])):await _0x416d05[_0x3e2463(0x154)](markSessionStatus,global[_0x3e2463(0x102)][0x0],_0x416d05[_0x3e2463(0x11d)]);}catch(_0x1bc8ff){}global['__error_messages__']=[],global['__sessionFailed']=![];if(_0xe06b9c)try{try{_0x416d05[_0x3e2463(0x14e)](shouldProcessEventForTesthub)&&(global[_0x3e2463(0x102)][0x0]&&await _0x416d05[_0x3e2463(0x154)](sendPlatformDetails,global[_0x3e2463(0x102)][0x0],this[_0x3e2463(0xff)]?this[_0x3e2463(0xff)][_0x3e2463(0xfa)]:null));}catch{}await global[_0x3e2463(0x102)][0x0][_0x3e2463(0x158)]();}catch(_0x369e21){}};},'beforeEach'(_0x3a251a){const _0x230bea=a32_0xe88ac9,_0x2ce60a={'XlbWC':function(_0x2b2997,_0x33593b){return _0x2b2997>_0x33593b;},'nzsBr':_0x230bea(0xef),'MyCYv':function(_0x4092d0,_0x14849b,_0x16387d){return _0x4092d0(_0x14849b,_0x16387d);},'FDKme':_0x230bea(0x103),'LIaxh':function(_0x532336){return _0x532336();},'EkivH':function(_0x701f6e,_0x40652b){return _0x701f6e>_0x40652b;},'gJwjb':'isAccessibilityPlatform','XwPOh':function(_0x468ba3,_0x565c67){return _0x468ba3===_0x565c67;},'nBrRn':_0x230bea(0xf4),'UFQyg':_0x230bea(0xf3),'enqxl':_0x230bea(0x13e),'QYCMg':_0x230bea(0x135),'IYZpT':function(_0x5b31f5){return _0x5b31f5();}};new Promise(async _0x560414=>{const _0x184fb3=_0x230bea,_0x58179e='browserstack internal helper hook';let _0x4e4812=!![];try{_0x2ce60a[_0x184fb3(0xf7)](global[_0x184fb3(0x102)][_0x184fb3(0x133)],0x1)&&(await global['driverCleanup'](),global[_0x184fb3(0x102)][_0x184fb3(0x112)]()),_0x2ce60a[_0x184fb3(0xf7)](global[_0x184fb3(0x102)][0x0][_0x184fb3(0x14b)],0x0)&&(_0x4e4812=![],await global['driverCleanup']());}catch{}try{Array[_0x184fb3(0x12c)](global['__drivers'])&&global[_0x184fb3(0x102)][0x0]&&(global[_0x184fb3(0x102)][0x0][_0x184fb3(0x130)]=this['currentTest'][_0x184fb3(0xe5)]()[_0x184fb3(0x104)](_0x2ce60a[_0x184fb3(0x140)])),global['browserstackSessionName']=this[_0x184fb3(0xff)][_0x184fb3(0xe5)]()[_0x184fb3(0x104)](_0x2ce60a[_0x184fb3(0x140)]);}catch(_0x2c51c6){logger[_0x184fb3(0xf5)](_0x184fb3(0x11c)+_0x2c51c6);}this['currentTest']['shouldScanTestForAccessibility']=_0x2ce60a[_0x184fb3(0x13c)](shouldScanTestForAccessibility,this[_0x184fb3(0xff)][_0x184fb3(0xe5)](),!![]),globals[_0x184fb3(0xdf)](_0x2ce60a[_0x184fb3(0xf2)],this[_0x184fb3(0xff)][_0x184fb3(0x141)]),this[_0x184fb3(0xff)][_0x184fb3(0x137)]=!![];if(_0x2ce60a['LIaxh'](isAccessibilityAutomationSession)&&_0x4e4812&&Array[_0x184fb3(0x12c)](global[_0x184fb3(0x102)])&&_0x2ce60a[_0x184fb3(0x106)](global[_0x184fb3(0x102)][_0x184fb3(0x133)],0x0)&&globals['getGlobal'](_0x2ce60a[_0x184fb3(0x12f)]))try{const _0x4e7de0=await global[_0x184fb3(0x102)][0x0][_0x184fb3(0xfd)];if(_0x4e7de0){let _0x2900c6=!![];const _0x414edb=await global[_0x184fb3(0x102)][0x0]['getCurrentUrl']();let _0x22115c;try{_0x22115c=new URL(_0x414edb);}catch(_0x3e988b){_0x2900c6=![];}_0x2900c6=_0x2ce60a[_0x184fb3(0xec)](_0x22115c['protocol'],_0x2ce60a[_0x184fb3(0x114)])||_0x2ce60a[_0x184fb3(0xec)](_0x22115c[_0x184fb3(0x138)],_0x2ce60a[_0x184fb3(0xf9)]),_0x2900c6&&(this[_0x184fb3(0xff)][_0x184fb3(0x141)]&&logger[_0x184fb3(0x105)](_0x2ce60a[_0x184fb3(0x14f)])),this['currentTest'][_0x184fb3(0x137)]=this['currentTest'][_0x184fb3(0x141)],this[_0x184fb3(0xff)][_0x184fb3(0x141)]&&logger['info'](_0x2ce60a[_0x184fb3(0x10d)]);}}catch(_0x4ac5f0){logger[_0x184fb3(0x157)](_0x184fb3(0x146)+util[_0x184fb3(0x14d)](_0x4ac5f0));}_0x2ce60a[_0x184fb3(0xe9)](_0x560414);})[_0x230bea(0x108)](_0x3a251a);},'afterEach'(_0x4478a5){const _0x103a41=a32_0xe88ac9,_0x436a0f={'HFBRI':function(_0x6e9dbf,_0x274eb3){return _0x6e9dbf>_0x274eb3;},'DhaNt':function(_0x9c046,_0xcbfb52){return _0x9c046===_0xcbfb52;},'wGriK':_0x103a41(0x129),'wbfFZ':function(_0xc8130b,_0x38c881){return _0xc8130b>_0x38c881;},'bAQNs':_0x103a41(0x15d),'ztDaa':function(_0x41ab7a,_0x5a9f68,_0x4b4234,_0xa8fd17){return _0x41ab7a(_0x5a9f68,_0x4b4234,_0xa8fd17);},'DSGQQ':_0x103a41(0xef),'iCKwW':function(_0x257f5f,_0x4ed464){return _0x257f5f!==_0x4ed464;},'kkcPa':_0x103a41(0x10b),'BufdR':function(_0x174543,_0x33ec76,_0x266e28){return _0x174543(_0x33ec76,_0x266e28);},'kPBoY':function(_0x324c43,_0x511dd8){return _0x324c43+_0x511dd8;},'saoNg':_0x103a41(0x131),'nPkYs':'error','cDrzN':function(_0x1f9191,_0x572c75,_0x1028af){return _0x1f9191(_0x572c75,_0x1028af);},'SJAEO':_0x103a41(0x136),'kDScp':'info','AogMh':_0x103a41(0x13a),'dxqoS':'bstackA11yShouldScan','lgYVW':_0x103a41(0x150),'yZfxy':_0x103a41(0x132),'eZMec':_0x103a41(0xe4),'lssNo':function(_0x46ee74){return _0x46ee74();},'BdDbC':function(_0x2b4e97,_0x52d804,_0xd56a61){return _0x2b4e97(_0x52d804,_0xd56a61);},'VdRjL':function(_0x3fbcd1,_0x52010d,_0x34c7c1){return _0x3fbcd1(_0x52010d,_0x34c7c1);},'pDlGf':_0x103a41(0xf5)},_0x23d018='browserstack internal helper hook';this[_0x103a41(0x143)](0xfde8);const _0x436317=async(_0x1bd7d9,_0x5b3fba)=>{const _0x93147b=_0x103a41;await global[_0x93147b(0x102)][0x0][_0x93147b(0x13d)]('browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:'+_0x1bd7d9+_0x93147b(0x110)+_0x5b3fba+_0x93147b(0x12a));};new Promise(async _0x390067=>{const _0x97bfbc=_0x103a41;try{_0x436a0f[_0x97bfbc(0xdd)](global[_0x97bfbc(0x102)][_0x97bfbc(0x133)],0x1)&&(await global[_0x97bfbc(0xe3)](),global[_0x97bfbc(0x102)][_0x97bfbc(0x112)](),global[_0x97bfbc(0xdc)]=[],global[_0x97bfbc(0x11a)]=![]);try{if(global[_0x97bfbc(0xe2)]&&_0x436a0f[_0x97bfbc(0xea)](global['percyCaptureMode'],_0x436a0f[_0x97bfbc(0xfb)])&&global[_0x97bfbc(0x102)][0x0]){const _0x32abff=_0x436a0f['wbfFZ'](global[_0x97bfbc(0x13f)][_0x97bfbc(0x133)],0x0)?!!global[_0x97bfbc(0x13f)][0x0][_0x97bfbc(0x152)]||!!global[_0x97bfbc(0x13f)][0x0][_0x436a0f[_0x97bfbc(0x11b)]]:![],_0x2d5ec0={};_0x2d5ec0[_0x97bfbc(0x152)]=_0x32abff,await _0x436a0f[_0x97bfbc(0xe8)](percyAutoCapture,global['__drivers'][0x0],_0x436a0f[_0x97bfbc(0xfb)],_0x2d5ec0);}}catch(_0x2d8381){}!global['__skipSessionName']&&(await global[_0x97bfbc(0x102)][0x0][_0x97bfbc(0x13d)](_0x97bfbc(0x126)+JSON[_0x97bfbc(0x115)](this[_0x97bfbc(0xff)][_0x97bfbc(0xe5)]()[_0x97bfbc(0x104)](_0x436a0f['DSGQQ']))+'}}'),global[_0x97bfbc(0x102)][0x0][_0x97bfbc(0x124)]=!![]);const _0x3c8175=_0x436a0f['iCKwW'](this['currentTest'][_0x97bfbc(0x12e)],_0x436a0f[_0x97bfbc(0x123)]);_0x3c8175?(global['__sessionFailed']=!![],global[_0x97bfbc(0xdc)][_0x97bfbc(0x10e)](this[_0x97bfbc(0xff)][_0x97bfbc(0x147)][_0x97bfbc(0x120)]),await _0x436a0f[_0x97bfbc(0x142)](_0x436317,JSON[_0x97bfbc(0x115)](_0x436a0f[_0x97bfbc(0xee)](_0x436a0f['saoNg'],this['currentTest']['err'][_0x97bfbc(0x120)])),_0x436a0f['nPkYs'])):await _0x436a0f[_0x97bfbc(0x139)](_0x436317,JSON[_0x97bfbc(0x115)](_0x436a0f[_0x97bfbc(0x156)]),_0x436a0f[_0x97bfbc(0x159)]);}catch(_0xdb42e9){}try{if(this['currentTest'][_0x97bfbc(0x137)]&&globals['getGlobal'](_0x436a0f[_0x97bfbc(0x153)])&&globals[_0x97bfbc(0x13b)](_0x436a0f[_0x97bfbc(0x100)])){logger[_0x97bfbc(0x105)](_0x436a0f[_0x97bfbc(0xf1)]);const _0x1eede2={};_0x1eede2[_0x97bfbc(0x145)]=this[_0x97bfbc(0xff)]['testAnalyticsId'],_0x1eede2[_0x97bfbc(0xfe)]=process['env'][testHubConstants[_0x97bfbc(0x134)][_0x97bfbc(0x12d)]],_0x1eede2[_0x97bfbc(0x109)]=process[_0x97bfbc(0x15a)][testHubConstants[_0x97bfbc(0x134)][_0x97bfbc(0x10f)]];const _0x1b3674=_0x1eede2;logger[_0x97bfbc(0xf5)](_0x97bfbc(0x149)+JSON[_0x97bfbc(0x115)](_0x1b3674)),logger[_0x97bfbc(0xf5)](_0x436a0f[_0x97bfbc(0x148)]),logger['debug'](util['format'](await global['__drivers'][0x0][_0x97bfbc(0xde)](scripts[_0x97bfbc(0x113)],{'method':global['browserstackSessionName']}))),await global[_0x97bfbc(0x102)][0x0][_0x97bfbc(0xde)](scripts[_0x97bfbc(0xf0)],_0x1b3674),logger['info'](_0x436a0f[_0x97bfbc(0x155)]);}}catch(_0x505d40){logger['error'](_0x97bfbc(0x125)+this[_0x97bfbc(0xff)][_0x97bfbc(0xe5)]()+_0x97bfbc(0x12b),_0x505d40);}try{try{if(_0x436a0f[_0x97bfbc(0x10a)](shouldProcessEventForTesthub)){global[_0x97bfbc(0x102)][0x0]&&await _0x436a0f[_0x97bfbc(0x15f)](sendPlatformDetails,global[_0x97bfbc(0x102)][0x0],this[_0x97bfbc(0xff)]?this[_0x97bfbc(0xff)][_0x97bfbc(0xfa)]:null);if(_0x436a0f['lssNo'](isBrowserstackInfra)){const _0x53832a='ObservabilitySync:'+Date[_0x97bfbc(0xf6)]();await _0x436a0f[_0x97bfbc(0xed)](_0x436317,JSON[_0x97bfbc(0x115)](_0x53832a),_0x436a0f[_0x97bfbc(0x151)]);}}}catch{}_0x436a0f[_0x97bfbc(0xdd)](global[_0x97bfbc(0x102)][0x0][_0x97bfbc(0x14b)],0x0)&&await global['driverCleanup']();}catch(_0x3dad87){}_0x436a0f['lssNo'](_0x390067);})['then'](()=>_0x4478a5());},'afterAll'(_0x91fe82){const _0x504041=a32_0xe88ac9,_0x260240={'picpz':function(_0x11d6e0){return _0x11d6e0();}},_0x1a4732='browserstack internal helper hook';this[_0x504041(0x143)](0xfde8),new Promise(async _0x407ec9=>{const _0x1cc092=_0x504041;PerformanceTester[_0x1cc092(0x121)](),await global[_0x1cc092(0xe3)](),_0x260240[_0x1cc092(0xe0)](_0x407ec9);})[_0x504041(0x108)](()=>_0x91fe82());}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';function
|
|
2
|
+
'use strict';function a33_0x32cd(){const _0x3a142b=['port','9GZqrXS','path','Flqiu','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','slice','zeoZg','stringify','push','7jicXAc','pkUpz','inherit','platform','debug','test','../../helpers/BrowserStackSetup','env','204tGiSVB','filter','QetGR','eBrrw','9749SkUZbu','../utils/constants','39060SNQlKX','existsSync','RneXN','244nMJxeO','../../helpers/logger','lXrXY','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','cCIAH','6oqUwoC','useW3C','JULtQ','53817751TsFglb','eKXgY','info','writeFileSync','--env','1174672dYgZsg','forEach','qZQQS','start_process','nightwatch.json','3184008upfovS','SOhQA','NruZO','rlvGA','--config','desiredCapabilities','604745OofHWD','525877liliZP','ytiPa','platforms','demug','RTHjg','splice','config','KehQi','isUndefined','trim','winstonLogger','modifyBrowserStackW3CCaps','length','nightwatch.conf.js','nightwatch-browserstack.json','join','map','close','getPlatformName','now','findIndex','ZWJKo','nightwatch','cwd','2682MxJXLA','child_process','modifyBrowserStackCaps','test_settings','exports'];a33_0x32cd=function(){return _0x3a142b;};return a33_0x32cd();}const a33_0xd1d7ef=a33_0x3a96;(function(_0x2e68d3,_0x336950){const _0x1d8a68=a33_0x3a96,_0x447d45=_0x2e68d3();while(!![]){try{const _0x2be160=-parseInt(_0x1d8a68(0x16c))/0x1*(parseInt(_0x1d8a68(0x121))/0x2)+parseInt(_0x1d8a68(0x158))/0x3*(-parseInt(_0x1d8a68(0x12e))/0x4)+parseInt(_0x1d8a68(0x139))/0x5*(parseInt(_0x1d8a68(0x126))/0x6)+parseInt(_0x1d8a68(0x160))/0x7*(parseInt(_0x1d8a68(0x133))/0x8)+parseInt(_0x1d8a68(0x152))/0x9*(-parseInt(_0x1d8a68(0x16e))/0xa)+parseInt(_0x1d8a68(0x13a))/0xb*(-parseInt(_0x1d8a68(0x168))/0xc)+parseInt(_0x1d8a68(0x129))/0xd;if(_0x2be160===_0x336950)break;else _0x447d45['push'](_0x447d45['shift']());}catch(_0x12c388){_0x447d45['push'](_0x447d45['shift']());}}}(a33_0x32cd,0x95568));const fs=require('fs'),path=require(a33_0xd1d7ef(0x159)),{spawn}=require(a33_0xd1d7ef(0x153)),logger=require(a33_0xd1d7ef(0x122))[a33_0xd1d7ef(0x144)],{default:BrowserStackSetup}=require(a33_0xd1d7ef(0x166)),helper=require('../../helpers/helper'),constants=require(a33_0xd1d7ef(0x16d)),getUserNightwatchConfigs=(_0x4b648e,_0x4fb4c4)=>{const _0xd59063=a33_0xd1d7ef,_0x262580={'qZQQS':_0xd59063(0x147),'KehQi':_0xd59063(0x132),'eBrrw':function(_0x294d53,_0x3446cd){return _0x294d53(_0x3446cd);},'nhell':_0xd59063(0x15b)};let _0x4690ee=null,_0x4d02fe={};const _0x367f3a=_0x4fb4c4[_0xd59063(0x14e)](_0xbd7001=>_0xbd7001===_0xd59063(0x137));if(!helper[_0xd59063(0x142)](_0x4b648e['config'])&&fs[_0xd59063(0x11f)](path[_0xd59063(0x149)](process[_0xd59063(0x151)](),_0x4b648e[_0xd59063(0x140)])))_0x4690ee=path[_0xd59063(0x149)](process['cwd'](),_0x4b648e[_0xd59063(0x140)]),_0x4fb4c4[_0xd59063(0x13f)](_0x367f3a,0x2);else{if(fs['existsSync'](path[_0xd59063(0x149)](process[_0xd59063(0x151)](),_0x262580[_0xd59063(0x130)])))_0x4690ee=path[_0xd59063(0x149)](process[_0xd59063(0x151)](),_0x262580['qZQQS']);else fs[_0xd59063(0x11f)](path['join'](process['cwd'](),_0x262580[_0xd59063(0x141)]))&&(_0x4690ee=path[_0xd59063(0x149)](process[_0xd59063(0x151)](),_0x262580[_0xd59063(0x141)]));}return _0x4690ee?(logger[_0xd59063(0x12b)]('Getting\x20your\x20nightwatch\x20configs\x20from\x20'+_0x4690ee),_0x4d02fe=_0x262580[_0xd59063(0x16b)](require,_0x4690ee)):logger[_0xd59063(0x12b)](_0x262580['nhell']),_0x4d02fe;},removeExistingEnvs=_0x40a986=>{const _0x2ba5a8=a33_0xd1d7ef,_0x5dd600={};_0x5dd600[_0x2ba5a8(0x16a)]=function(_0x3f3567,_0x504bc3){return _0x3f3567>_0x504bc3;},_0x5dd600['RneXN']=function(_0xb5ea43,_0x354d1a){return _0xb5ea43>_0x354d1a;};const _0x38309e=_0x5dd600;let _0x27156e=_0x40a986[_0x2ba5a8(0x14e)](_0x318c6a=>_0x318c6a===_0x2ba5a8(0x12d));_0x38309e[_0x2ba5a8(0x16a)](_0x27156e,-0x1)&&_0x40a986[_0x2ba5a8(0x13f)](_0x27156e,0x2),_0x27156e=_0x40a986[_0x2ba5a8(0x14e)](_0x3efba6=>_0x3efba6==='-e'),_0x38309e[_0x2ba5a8(0x120)](_0x27156e,-0x1)&&_0x40a986[_0x2ba5a8(0x13f)](_0x27156e,0x2);};function run(_0xbdafd6,_0x5c5d9a){const _0xf9c81a=a33_0xd1d7ef,_0x58c4ab={'NruZO':_0xf9c81a(0x150),'pkUpz':function(_0x5a9160,_0x2c4e4f){return _0x5a9160+_0x2c4e4f;},'lXrXY':_0xf9c81a(0x155),'ytiPa':function(_0x12e434,_0x4c3688,_0x2d76f6){return _0x12e434(_0x4c3688,_0x2d76f6);},'ZWJKo':'hub.browserstack.com','rlvGA':_0xf9c81a(0x124),'Flqiu':function(_0x235699,_0x1d92e8){return _0x235699===_0x1d92e8;},'zeoZg':_0xf9c81a(0x148),'eKXgY':function(_0x122ba,_0x359adb){return _0x122ba(_0x359adb);},'RTHjg':function(_0x1a1ef5,_0x1b8fd0,_0x17bbaf,_0x1d7d2e){return _0x1a1ef5(_0x1b8fd0,_0x17bbaf,_0x1d7d2e);},'JULtQ':'nightwatch.cmd','demug':_0xf9c81a(0x137),'cCIAH':'--env','BWnNa':_0xf9c81a(0x162),'SOhQA':_0xf9c81a(0x14b)},_0x5490b7=new BrowserStackSetup(_0xbdafd6);if(!_0x5490b7['config'])return;const _0x37f267=_0x58c4ab[_0xf9c81a(0x13b)](getUserNightwatchConfigs,_0xbdafd6,_0x5c5d9a),_0x442870={};_0x442870[_0xf9c81a(0x131)]=![];const _0x294723={};_0x294723['host']=_0x58c4ab[_0xf9c81a(0x14f)],_0x294723[_0xf9c81a(0x157)]=0x1bb;const _0x3b1cc3={};_0x3b1cc3['webdriver']=_0x442870,_0x3b1cc3['selenium']=_0x294723;const _0x22a92f=_0x3b1cc3;logger[_0xf9c81a(0x12b)](_0x58c4ab[_0xf9c81a(0x136)]);const _0x29ff83={..._0x37f267},_0x496e0a=_0x29ff83,_0x1ebe88=helper[_0xf9c81a(0x127)](_0x5490b7[_0xf9c81a(0x140)]),_0x1c0735=[];_0x5490b7[_0xf9c81a(0x140)][_0xf9c81a(0x13c)]['forEach']((_0x527845,_0x14c456)=>{const _0x193f56=_0xf9c81a;_0x1ebe88?_0x1c0735['push'](helper[_0x193f56(0x145)](_0x5490b7['config'],_0x58c4ab[_0x193f56(0x135)],_0x14c456)):_0x1c0735[_0x193f56(0x15f)](helper[_0x193f56(0x154)](_0x5490b7[_0x193f56(0x140)],_0x58c4ab[_0x193f56(0x135)],_0x14c456));});const _0x207906={},_0x225867=[];_0xbdafd6[_0xf9c81a(0x167)]=_0xbdafd6['env']||_0xbdafd6['e'];const _0x5b0624=_0xbdafd6[_0xf9c81a(0x167)]?_0xbdafd6[_0xf9c81a(0x167)][_0xf9c81a(0x143)]()['split'](',')[_0xf9c81a(0x14a)](_0x2fdf98=>_0x2fdf98['trim']())[_0xf9c81a(0x169)](_0x43ff87=>_0x43ff87!==''):[''];_0x58c4ab[_0xf9c81a(0x15a)](_0x5b0624[_0xf9c81a(0x146)],0x0)&&_0x5b0624['push']('');_0x5b0624['forEach'](_0x4abb8a=>{const _0x4dc914=_0xf9c81a;_0x1c0735[_0x4dc914(0x12f)](_0x50e486=>{const _0x243412=_0x4dc914;let _0x27ed3e=_0x58c4ab[_0x243412(0x161)](helper[_0x243412(0x14c)](_0x50e486,'_'),'_'+Date[_0x243412(0x14d)]());_0x4abb8a&&(_0x27ed3e+='_'+_0x4abb8a);if(_0x4abb8a&&(!_0x37f267[_0x58c4ab[_0x243412(0x123)]]||!_0x37f267[_0x58c4ab[_0x243412(0x123)]][_0x4abb8a]))return;const _0x12c1b2={..._0x22a92f};_0x12c1b2[_0x243412(0x138)]=_0x50e486;const _0x4c9718=_0x12c1b2;_0x207906[_0x27ed3e]=_0x4abb8a?helper['mergeDeep'](_0x37f267[_0x58c4ab[_0x243412(0x123)]][_0x4abb8a],_0x4c9718):_0x4c9718,_0x225867['push'](_0x27ed3e);});});!_0x496e0a[_0xf9c81a(0x155)]&&(_0x496e0a[_0xf9c81a(0x155)]={});_0x496e0a[_0xf9c81a(0x155)]={..._0x496e0a[_0xf9c81a(0x155)],..._0x207906};const _0x88b388=path[_0xf9c81a(0x149)](__dirname,_0x58c4ab[_0xf9c81a(0x15d)]);fs[_0xf9c81a(0x12c)](_0x88b388,JSON[_0xf9c81a(0x15e)](_0x496e0a)),_0x58c4ab[_0xf9c81a(0x12a)](removeExistingEnvs,_0x5c5d9a);const _0x3a8a12=_0x58c4ab[_0xf9c81a(0x13e)](spawn,/^win/[_0xf9c81a(0x165)](process[_0xf9c81a(0x163)])?_0x58c4ab[_0xf9c81a(0x128)]:_0x58c4ab[_0xf9c81a(0x135)],[_0x58c4ab[_0xf9c81a(0x13d)],_0x88b388,..._0x5c5d9a[_0xf9c81a(0x15c)](0x1),_0x58c4ab[_0xf9c81a(0x125)],_0x225867[_0xf9c81a(0x149)](',')],{'stdio':_0x58c4ab['BWnNa']});_0x3a8a12['on'](_0x58c4ab[_0xf9c81a(0x134)],async _0x4b2c29=>{const _0x5f1b6d=_0xf9c81a;logger[_0x5f1b6d(0x164)]('child\x20process\x20exited\x20with\x20code\x20'+_0x4b2c29),logger[_0x5f1b6d(0x12b)]('Deleting\x20'+_0x88b388),fs['unlinkSync'](_0x88b388);});}function a33_0x3a96(_0x162a39,_0x5bc692){const _0x32cdff=a33_0x32cd();return a33_0x3a96=function(_0x3a96b6,_0x41aa60){_0x3a96b6=_0x3a96b6-0x11f;let _0x39eb4c=_0x32cdff[_0x3a96b6];return _0x39eb4c;},a33_0x3a96(_0x162a39,_0x5bc692);}module[a33_0xd1d7ef(0x156)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a34_0x1c1ae3=a34_0x57ac;(function(_0x4bdc97,_0x260090){const _0x2fa8db=a34_0x57ac,_0x1e085b=_0x4bdc97();while(!![]){try{const _0x587bc0=parseInt(_0x2fa8db(0x1b1))/0x1*(-parseInt(_0x2fa8db(0x185))/0x2)+-parseInt(_0x2fa8db(0x1cd))/0x3+-parseInt(_0x2fa8db(0x1a3))/0x4+-parseInt(_0x2fa8db(0x1be))/0x5*(parseInt(_0x2fa8db(0x1b4))/0x6)+parseInt(_0x2fa8db(0x1ce))/0x7*(parseInt(_0x2fa8db(0x1e4))/0x8)+-parseInt(_0x2fa8db(0x1e5))/0x9+parseInt(_0x2fa8db(0x1bc))/0xa;if(_0x587bc0===_0x260090)break;else _0x1e085b['push'](_0x1e085b['shift']());}catch(_0x3547e8){_0x1e085b['push'](_0x1e085b['shift']());}}}(a34_0x5309,0xa05a4));const util=require('util'),logger=require(a34_0x1c1ae3(0x1b6))[a34_0x1c1ae3(0x18d)],{isAccessibilityAutomationSession}=require(a34_0x1c1ae3(0x19c)),{isUndefined}=require('../../helpers/helper'),scripts=require(a34_0x1c1ae3(0x19e));function a34_0x5309(){const _0x3f1655=['Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','accessibilityOptions.includeIssueType.bestPractice','OBWtJ','Vhmpp','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','3587724ntaQig','3346PixGRh','browserStackExecuteDriver','deviceName','oiudu','accessibilityOptions.scannerVersion','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','EsLJE','playwright-chromium','browserStackEvaluate','accessibilityPlatform','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','browser','parse','error','accessibilityOptions.includeIssueType.needsReview','browserstack.accessibility','LDOcg','gYPKn','format','getAccessibilityResults','browserName','KPEnO','4696bcfjEI','4948200hdyZaL','jKKYs','2RvgxZV','GqOVA','wHvUS','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','aQOyT','executeAsyncScript','evaluate','accessibilityOptions','winstonLogger','executeScript','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','FdWOz','setAccessibilityCapabilities','EQZlI','irIxS','project','env','method','stringify','wcagVersion','ZDLFU','bvpKk','IomIy','../../helpers/accessibility-automation/helper','BS_A11Y_JWT','../../helpers/accessibility-automation/scripts','wsEndpoint','KaNBh','latest','sYdrN','2879524sWJTma','VpFLu','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','ecdKM','workerInfo','debug','TlZrA','mUgOX','No\x20summaryResults\x20found.','accessibilityOptions.wcagVersion','testInfo','chrome','connectOptions','warn','1288864GjpAkZ','use','name','76518deGTsu','browser_version','../../helpers/logger','DlgmE','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','includeIssueType','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','xJumR','42964600AaLiYo','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','65xUZqrp','(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','dDnhW','RSDof','pNfAW','replace','scannerProcessingTimeout','KHybn','accessibilityOptions.authToken','UWxKR'];a34_0x5309=function(){return _0x3f1655;};return a34_0x5309();}function a34_0x57ac(_0x4a9ba8,_0x57a651){const _0x5309d6=a34_0x5309();return a34_0x57ac=function(_0x57acce,_0x26ec5e){_0x57acce=_0x57acce-0x184;let _0x2e2af2=_0x5309d6[_0x57acce];return _0x2e2af2;},a34_0x57ac(_0x4a9ba8,_0x57a651);}exports[a34_0x1c1ae3(0x1d6)]=async(_0x241395,_0x275104,_0x2e5461={})=>{const _0x393760=a34_0x1c1ae3,_0x41655c={};_0x41655c[_0x393760(0x190)]='bstackSdkArgs';const _0x240d3d=_0x41655c;return await _0x241395[_0x393760(0x18b)]('(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'+_0x275104[_0x393760(0x1c3)](/arguments/g,_0x240d3d[_0x393760(0x190)])+_0x393760(0x18f)+JSON['stringify'](_0x2e5461)+')');},exports[a34_0x1c1ae3(0x1cf)]=async(_0x4dfdcb,_0x1f04c4,_0x5c7915={})=>{const _0x5851ea=a34_0x1c1ae3,_0x5a4e95={};_0x5a4e95[_0x5851ea(0x199)]=function(_0x20251c,_0x235e9c){return _0x20251c===_0x235e9c;},_0x5a4e95[_0x5851ea(0x193)]='WebDriver',_0x5a4e95[_0x5851ea(0x1a2)]=function(_0x320012,_0x14c4b1){return _0x320012===_0x14c4b1;},_0x5a4e95['raAfb']='Playwright',_0x5a4e95['IkxFt']='bstackSdkArgs';const _0x425653=_0x5a4e95;if(_0x425653[_0x5851ea(0x199)](_0x4dfdcb['constructor'][_0x5851ea(0x1b3)],_0x425653['irIxS']))return await _0x4dfdcb[_0x5851ea(0x18a)](_0x1f04c4,_0x5c7915);else{if(_0x425653[_0x5851ea(0x1a2)](_0x4dfdcb['constructor'][_0x5851ea(0x1b3)],_0x425653['raAfb']))return await _0x4dfdcb[_0x5851ea(0x18e)](_0x5851ea(0x1bf)+_0x1f04c4[_0x5851ea(0x1c3)](/arguments/g,_0x425653['IkxFt'])+_0x5851ea(0x1bd)+JSON[_0x5851ea(0x197)](_0x5c7915)+')');}},exports[a34_0x1c1ae3(0x191)]=async _0x32dcbd=>{const _0x4177f4=a34_0x1c1ae3,_0x4313eb={};_0x4313eb['KPEnO']=_0x4177f4(0x1ac),_0x4313eb[_0x4177f4(0x1b7)]='accessibilityOptions.scannerProcessingTimeout',_0x4313eb[_0x4177f4(0x1cb)]=_0x4177f4(0x1c9),_0x4313eb[_0x4177f4(0x1df)]=_0x4177f4(0x1dc),_0x4313eb[_0x4177f4(0x1c1)]=_0x4177f4(0x1c6),_0x4313eb[_0x4177f4(0x1d4)]=_0x4177f4(0x1d2);const _0x42caab=_0x4313eb;_0x32dcbd['accessibilityOptions']&&(_0x32dcbd[_0x4177f4(0x18c)][_0x4177f4(0x198)]&&(_0x32dcbd[_0x42caab[_0x4177f4(0x1e3)]]=_0x32dcbd[_0x4177f4(0x18c)][_0x4177f4(0x198)]),_0x32dcbd[_0x4177f4(0x18c)][_0x4177f4(0x1c4)]&&(_0x32dcbd[_0x42caab[_0x4177f4(0x1b7)]]=_0x32dcbd['accessibilityOptions'][_0x4177f4(0x1c4)]),_0x32dcbd[_0x4177f4(0x18c)][_0x4177f4(0x1b9)]&&(_0x32dcbd[_0x42caab[_0x4177f4(0x1cb)]]=_0x32dcbd['accessibilityOptions'][_0x4177f4(0x1b9)]['bestPractice'],_0x32dcbd[_0x42caab[_0x4177f4(0x1df)]]=_0x32dcbd[_0x4177f4(0x18c)][_0x4177f4(0x1b9)]['needsReview']));const _0x1ca439=JSON[_0x4177f4(0x1da)](process[_0x4177f4(0x195)][_0x4177f4(0x1d3)])['scannerVersion'];_0x32dcbd[_0x42caab[_0x4177f4(0x1c1)]]=process['env'][_0x4177f4(0x19d)],_0x32dcbd[_0x42caab[_0x4177f4(0x1d4)]]=_0x1ca439,delete _0x32dcbd[_0x4177f4(0x18c)];},exports[a34_0x1c1ae3(0x1e1)]=async _0x5d8875=>{const _0x3532d5=a34_0x1c1ae3,_0x3ec628={};_0x3ec628[_0x3532d5(0x184)]='No\x20accessibility\x20results\x20were\x20found.',_0x3ec628['oiudu']=_0x3532d5(0x1ba);const _0x1ff3b9=_0x3ec628;if(global[_0x3532d5(0x1d7)])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x5d8875,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x5d8875,scripts.getResults);return res;}catch{return logger[_0x3532d5(0x1db)](_0x1ff3b9[_0x3532d5(0x184)]),[];}else return logger[_0x3532d5(0x1b0)](_0x1ff3b9[_0x3532d5(0x1d1)]),[];},exports['performScan']=async(_0x537628,_0x37dc6e='')=>{const _0x4288a6=a34_0x1c1ae3;if(global['accessibilityPlatform']){const _0x1d5777={};return _0x1d5777[_0x4288a6(0x196)]=_0x37dc6e,await exports[_0x4288a6(0x1d6)](_0x537628,scripts['performScan'],_0x1d5777);}},exports['getAccessibilityResultsSummary']=async _0x2f0234=>{const _0x2b8877=a34_0x1c1ae3,_0x4aa220={};_0x4aa220[_0x2b8877(0x189)]=_0x2b8877(0x1ab),_0x4aa220[_0x2b8877(0x1de)]=_0x2b8877(0x1c8);const _0x431fee=_0x4aa220;if(global['accessibilityPlatform'])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x2f0234,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x2f0234,scripts.getResultsSummary);return summaryResults;}catch{return logger[_0x2b8877(0x1a8)](_0x431fee['aQOyT']),{};}else return logger[_0x2b8877(0x1b0)](_0x431fee['LDOcg']),{};},exports['platformValidation']=async _0x1a4d7d=>{const _0xc271c3=a34_0x1c1ae3,_0x292296={'lBzin':function(_0x529557,_0x33ae77){return _0x529557!==_0x33ae77;},'VpFLu':_0xc271c3(0x1b8),'KHybn':function(_0x54abdd,_0x36e6a4){return _0x54abdd===_0x36e6a4;},'cgJsU':_0xc271c3(0x1ae),'rcuow':_0xc271c3(0x1d5),'KaNBh':_0xc271c3(0x1cc),'MGJEK':function(_0x432edf,_0x47c9b4){return _0x432edf(_0x47c9b4);},'bvpKk':function(_0x36369e,_0x121d73){return _0x36369e===_0x121d73;},'rqBlv':'latest','oVOSm':function(_0x26f579,_0x312447){return _0x26f579>_0x312447;},'XJlIl':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.'};try{if(!_0x292296['lBzin'](_0x1a4d7d[_0xc271c3(0x1d0)],''))return logger[_0xc271c3(0x1b0)](_0x292296[_0xc271c3(0x1a4)]),![];const _0x54adf2=_0x1a4d7d[_0xc271c3(0x1d9)];if(!(_0x292296[_0xc271c3(0x1c5)](_0x54adf2,_0x292296['cgJsU'])||_0x292296['KHybn'](_0x54adf2,_0x292296['rcuow'])))return logger[_0xc271c3(0x1b0)](_0x292296[_0xc271c3(0x1a0)]),![];const _0x55eb5a=_0x292296['MGJEK'](parseInt,_0x1a4d7d[_0xc271c3(0x1b5)]);if(!(_0x292296[_0xc271c3(0x19a)](_0x55eb5a,_0x292296['rqBlv'])||_0x292296['oVOSm'](_0x55eb5a,0x5e)))return logger[_0xc271c3(0x1b0)](_0x292296['XJlIl']),![];}catch(_0x5a6946){logger[_0xc271c3(0x1a8)](_0xc271c3(0x1d8)+util[_0xc271c3(0x1e0)](_0x5a6946));}return!![];},exports['processAccessibilityCaps']=(_0x14174d,_0x1e15ae,_0x14629f)=>{const _0x23ec42=a34_0x1c1ae3,_0x39a71d={'pNfAW':function(_0x1ec70e){return _0x1ec70e();},'UWxKR':_0x23ec42(0x1dd),'EQZlI':function(_0x3f3baf,_0x3b9585){return _0x3f3baf===_0x3b9585;},'IomIy':_0x23ec42(0x1ae),'ecdKM':_0x23ec42(0x1d5),'OBWtJ':_0x23ec42(0x1cc),'TlZrA':_0x23ec42(0x1a1),'dDnhW':function(_0x11466f,_0x463ee4){return _0x11466f>_0x463ee4;},'GqOVA':_0x23ec42(0x188),'mUgOX':function(_0x5561e9,_0xb24abc){return _0x5561e9(_0xb24abc);},'fLUYv':_0x23ec42(0x1b8),'xJumR':function(_0x3c4c95,_0x25a200){return _0x3c4c95+_0x25a200;},'wHvUS':function(_0x1a84da,_0x16cabb){return _0x1a84da(_0x16cabb);}};try{if(_0x39a71d[_0x23ec42(0x1c2)](isAccessibilityAutomationSession)){global[_0x23ec42(0x1d7)]=!![];!_0x14174d[_0x39a71d[_0x23ec42(0x1c7)]]&&(global['accessibilityPlatform']=![]);!(_0x39a71d[_0x23ec42(0x192)](_0x14174d[_0x23ec42(0x1e2)],_0x39a71d[_0x23ec42(0x19b)])||_0x39a71d[_0x23ec42(0x192)](_0x14174d['browserName'],_0x39a71d[_0x23ec42(0x1a6)]))&&(logger['warn'](_0x39a71d[_0x23ec42(0x1ca)]),global[_0x23ec42(0x1d7)]=![]);!(_0x39a71d['EQZlI'](_0x14174d['browser_version'],_0x39a71d[_0x23ec42(0x1a9)])||_0x39a71d[_0x23ec42(0x1c0)](_0x14174d[_0x23ec42(0x1b5)],0x5e))&&(logger[_0x23ec42(0x1b0)](_0x39a71d[_0x23ec42(0x186)]),global[_0x23ec42(0x1d7)]=![]);!_0x39a71d[_0x23ec42(0x1aa)](isUndefined,_0x14174d[_0x23ec42(0x1d0)])&&(logger['warn'](_0x39a71d['fLUYv']),global[_0x23ec42(0x1d7)]=![]);if(!global[_0x23ec42(0x1d7)]){_0x14174d[_0x39a71d['UWxKR']]=![];const _0x1e4ce6=_0x39a71d[_0x23ec42(0x1bb)](_0x1e15ae,_0x39a71d[_0x23ec42(0x187)](encodeURIComponent,JSON['stringify'](_0x14174d)));_0x14629f&&(_0x14629f['currentTest'][_0x23ec42(0x1ad)]['project']['use'][_0x23ec42(0x1af)][_0x23ec42(0x19f)]=_0x1e4ce6,_0x14629f[_0x23ec42(0x1a7)][_0x23ec42(0x194)][_0x23ec42(0x1b2)]['connectOptions'][_0x23ec42(0x19f)]=_0x1e4ce6);}}}catch(_0x5435fe){logger['debug'](_0x23ec42(0x1a5)+util[_0x23ec42(0x1e0)](_0x5435fe));}};
|
|
1
|
+
const a34_0x4cbd0f=a34_0x2939;(function(_0x6207ab,_0x1e005f){const _0x427be0=a34_0x2939,_0x43f451=_0x6207ab();while(!![]){try{const _0x24108d=parseInt(_0x427be0(0xb3))/0x1*(parseInt(_0x427be0(0xa6))/0x2)+parseInt(_0x427be0(0xe8))/0x3+-parseInt(_0x427be0(0xd6))/0x4+-parseInt(_0x427be0(0xb2))/0x5*(parseInt(_0x427be0(0x9a))/0x6)+parseInt(_0x427be0(0x9d))/0x7+parseInt(_0x427be0(0xaa))/0x8+parseInt(_0x427be0(0xb6))/0x9;if(_0x24108d===_0x1e005f)break;else _0x43f451['push'](_0x43f451['shift']());}catch(_0x56e0db){_0x43f451['push'](_0x43f451['shift']());}}}(a34_0x57ba,0x72a71));const util=require(a34_0x4cbd0f(0xa0)),logger=require(a34_0x4cbd0f(0xb8))[a34_0x4cbd0f(0xc4)],{isAccessibilityAutomationSession}=require('../../helpers/accessibility-automation/helper'),{isUndefined}=require(a34_0x4cbd0f(0xe5)),scripts=require(a34_0x4cbd0f(0x94));function a34_0x57ba(){const _0x29ec75=['Kzloa','KSUAy','QOHlb','browserstack.accessibility','executeScript','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','zOZIJ','accessibilityOptions.includeIssueType.bestPractice','muZrc','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','accessibilityOptions','accessibilityPlatform','workerInfo','chgBl','getAccessibilityResults','format','deviceName','LWUpg','chrome','../../helpers/accessibility-automation/scripts','performScan','browserName','platformValidation','oxMdA','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','48084bYCqeQ','processAccessibilityCaps','vSxvU','2433851SzDXQf','qpATO','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','util','testInfo','gsukZ','method','accessibilityOptions.includeIssueType.needsReview','wsEndpoint','34fgGzQk','Playwright','wcagVersion','stringify','2395392sKnvMo','browserStackExecuteDriver','getAccessibilityResultsSummary','ETOhh','CdlDl','gMloW','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','DJgvN','525ANflGQ','3309mEpYkq','constructor','setAccessibilityCapabilities','6148728ymEKOQ','name','../../helpers/logger','wiynD','cmKfR','accessibilityOptions.scannerProcessingTimeout','warn','scannerVersion','bstackSdkArgs','scannerProcessingTimeout','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','LonGZ','debug','accessibilityOptions.scannerVersion','winstonLogger','qpJqI','No\x20summaryResults\x20found.','WebDriver','browser_version','project','BS_A11Y_JWT','needsReview','GnPHV','(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','replace','jYYyk','sgMgu','Xgsck','opKJp','lYsTO','playwright-chromium','RKrkw','1132920YHxLwt','browser','IgOFq','kRfIr','txkGR','parse','QEDDG','error','No\x20accessibility\x20results\x20were\x20found.','env','latest','Xvkiw','connectOptions','FdYOr','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','../../helpers/helper','includeIssueType','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','623265RyPXKg','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20'];a34_0x57ba=function(){return _0x29ec75;};return a34_0x57ba();}function a34_0x2939(_0x34208c,_0x587e10){const _0x57ba08=a34_0x57ba();return a34_0x2939=function(_0x293957,_0x50675e){_0x293957=_0x293957-0x8c;let _0x5485af=_0x57ba08[_0x293957];return _0x5485af;},a34_0x2939(_0x34208c,_0x587e10);}exports['browserStackEvaluate']=async(_0x1f2a88,_0x4f6938,_0x5c4c72={})=>{const _0x28f007=a34_0x4cbd0f,_0x193a44={};_0x193a44['sgMgu']=_0x28f007(0xbe);const _0x3cbea0=_0x193a44;return await _0x1f2a88['evaluate'](_0x28f007(0xcd)+_0x4f6938[_0x28f007(0xce)](/arguments/g,_0x3cbea0[_0x28f007(0xd0)])+_0x28f007(0xf3)+JSON[_0x28f007(0xa9)](_0x5c4c72)+')');},exports[a34_0x4cbd0f(0xab)]=async(_0x1cd666,_0xf57827,_0x190873={})=>{const _0x32c99f=a34_0x4cbd0f,_0x3ad842={};_0x3ad842[_0x32c99f(0xdc)]=function(_0x97faa5,_0x474aff){return _0x97faa5===_0x474aff;},_0x3ad842[_0x32c99f(0xcc)]=_0x32c99f(0xc7),_0x3ad842[_0x32c99f(0xb9)]=_0x32c99f(0xa7),_0x3ad842[_0x32c99f(0xa2)]=_0x32c99f(0xbe);const _0x542088=_0x3ad842;if(_0x542088[_0x32c99f(0xdc)](_0x1cd666[_0x32c99f(0xb4)][_0x32c99f(0xb7)],_0x542088[_0x32c99f(0xcc)]))return await _0x1cd666['executeAsyncScript'](_0xf57827,_0x190873);else{if(_0x542088[_0x32c99f(0xdc)](_0x1cd666[_0x32c99f(0xb4)][_0x32c99f(0xb7)],_0x542088[_0x32c99f(0xb9)]))return await _0x1cd666[_0x32c99f(0xee)]('(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'+_0xf57827[_0x32c99f(0xce)](/arguments/g,_0x542088[_0x32c99f(0xa2)])+_0x32c99f(0xb0)+JSON[_0x32c99f(0xa9)](_0x190873)+')');}},exports[a34_0x4cbd0f(0xb5)]=async _0x1f83ea=>{const _0x47c813=a34_0x4cbd0f,_0x2d0364={};_0x2d0364['Cxbli']='accessibilityOptions.wcagVersion',_0x2d0364[_0x47c813(0xc1)]=_0x47c813(0xbb),_0x2d0364[_0x47c813(0xd8)]=_0x47c813(0xf1),_0x2d0364[_0x47c813(0xda)]=_0x47c813(0xa4),_0x2d0364[_0x47c813(0xba)]='accessibilityOptions.authToken',_0x2d0364['Xgsck']=_0x47c813(0xc3);const _0x59919c=_0x2d0364;_0x1f83ea[_0x47c813(0xf4)]&&(_0x1f83ea[_0x47c813(0xf4)]['wcagVersion']&&(_0x1f83ea[_0x59919c['Cxbli']]=_0x1f83ea[_0x47c813(0xf4)][_0x47c813(0xa8)]),_0x1f83ea[_0x47c813(0xf4)][_0x47c813(0xbf)]&&(_0x1f83ea[_0x59919c[_0x47c813(0xc1)]]=_0x1f83ea[_0x47c813(0xf4)][_0x47c813(0xbf)]),_0x1f83ea[_0x47c813(0xf4)][_0x47c813(0xe6)]&&(_0x1f83ea[_0x59919c['IgOFq']]=_0x1f83ea[_0x47c813(0xf4)][_0x47c813(0xe6)]['bestPractice'],_0x1f83ea[_0x59919c[_0x47c813(0xda)]]=_0x1f83ea[_0x47c813(0xf4)][_0x47c813(0xe6)][_0x47c813(0xcb)]));const _0x27c0eb=JSON[_0x47c813(0xdb)](process[_0x47c813(0xdf)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML'])[_0x47c813(0xbd)];_0x1f83ea[_0x59919c[_0x47c813(0xba)]]=process['env'][_0x47c813(0xca)],_0x1f83ea[_0x59919c[_0x47c813(0xd1)]]=_0x27c0eb,delete _0x1f83ea[_0x47c813(0xf4)];},exports[a34_0x4cbd0f(0x8f)]=async _0x392b7f=>{const _0x34c8b4=a34_0x4cbd0f,_0x31e6ab={};_0x31e6ab[_0x34c8b4(0xd9)]=_0x34c8b4(0xde),_0x31e6ab[_0x34c8b4(0xd5)]=_0x34c8b4(0xc0);const _0x3c2534=_0x31e6ab;if(global[_0x34c8b4(0x8c)])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x392b7f,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x392b7f,scripts.getResults);return res;}catch{return logger[_0x34c8b4(0xdd)](_0x3c2534['kRfIr']),[];}else return logger[_0x34c8b4(0xbc)](_0x3c2534[_0x34c8b4(0xd5)]),[];},exports[a34_0x4cbd0f(0x95)]=async(_0x168b82,_0xaf88b='')=>{const _0x59d3fd=a34_0x4cbd0f;if(global[_0x59d3fd(0x8c)]){const _0xf40577={};return _0xf40577[_0x59d3fd(0xa3)]=_0xaf88b,await exports['browserStackEvaluate'](_0x168b82,scripts[_0x59d3fd(0x95)],_0xf40577);}},exports[a34_0x4cbd0f(0xac)]=async _0x3a0bee=>{const _0x96fcfd=a34_0x4cbd0f,_0x1ebf59={};_0x1ebf59['jYYyk']=_0x96fcfd(0xc6),_0x1ebf59[_0x96fcfd(0x9c)]=_0x96fcfd(0xef);const _0x4b05fa=_0x1ebf59;if(global['accessibilityPlatform'])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x3a0bee,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x3a0bee,scripts.getResultsSummary);return summaryResults;}catch{return logger[_0x96fcfd(0xc2)](_0x4b05fa[_0x96fcfd(0xcf)]),{};}else return logger[_0x96fcfd(0xbc)](_0x4b05fa[_0x96fcfd(0x9c)]),{};},exports[a34_0x4cbd0f(0x97)]=async _0x4f1cc0=>{const _0x3b3a36=a34_0x4cbd0f,_0x553e71={'zOZIJ':function(_0x144718,_0xbcae8b){return _0x144718!==_0xbcae8b;},'KSUAy':_0x3b3a36(0x9f),'UEDQk':function(_0x5d892a,_0x251cb9){return _0x5d892a===_0x251cb9;},'DJgvN':'chrome','gMloW':_0x3b3a36(0xd4),'qpJqI':_0x3b3a36(0xe7),'ETOhh':function(_0x2caffd,_0x470b44){return _0x2caffd(_0x470b44);},'bQaJI':function(_0x306070,_0x534343){return _0x306070===_0x534343;},'oxMdA':_0x3b3a36(0xe0),'lYsTO':function(_0x2ceea0,_0x5d0f24){return _0x2ceea0>_0x5d0f24;},'kXxlf':_0x3b3a36(0x99)};try{if(!_0x553e71[_0x3b3a36(0xf0)](_0x4f1cc0[_0x3b3a36(0x91)],''))return logger['warn'](_0x553e71[_0x3b3a36(0xeb)]),![];const _0x192e5d=_0x4f1cc0[_0x3b3a36(0xd7)];if(!(_0x553e71['UEDQk'](_0x192e5d,_0x553e71[_0x3b3a36(0xb1)])||_0x553e71['UEDQk'](_0x192e5d,_0x553e71[_0x3b3a36(0xaf)])))return logger[_0x3b3a36(0xbc)](_0x553e71[_0x3b3a36(0xc5)]),![];const _0x564ce4=_0x553e71[_0x3b3a36(0xad)](parseInt,_0x4f1cc0[_0x3b3a36(0xc8)]);if(!(_0x553e71['bQaJI'](_0x564ce4,_0x553e71[_0x3b3a36(0x98)])||_0x553e71[_0x3b3a36(0xd3)](_0x564ce4,0x5e)))return logger['warn'](_0x553e71['kXxlf']),![];}catch(_0x17ee41){logger[_0x3b3a36(0xc2)](_0x3b3a36(0xe4)+util[_0x3b3a36(0x90)](_0x17ee41));}return!![];},exports[a34_0x4cbd0f(0x9b)]=(_0x53ace9,_0x3643a9,_0x3b0137)=>{const _0xc41a60=a34_0x4cbd0f,_0x15bc42={'FdYOr':function(_0x11845b){return _0x11845b();},'QOHlb':_0xc41a60(0xed),'Kzloa':function(_0x541ad3,_0x5cca5b){return _0x541ad3===_0x5cca5b;},'opKJp':_0xc41a60(0x93),'muZrc':_0xc41a60(0xd4),'qpATO':_0xc41a60(0xe7),'CdlDl':_0xc41a60(0xe0),'chgBl':function(_0x213b30,_0x2bc324){return _0x213b30>_0x2bc324;},'rxdYg':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','Xvkiw':function(_0x5af4be,_0x3ec878){return _0x5af4be(_0x3ec878);},'loCjA':_0xc41a60(0x9f),'LWUpg':function(_0x29832d,_0x1fd312){return _0x29832d+_0x1fd312;}};try{if(_0x15bc42[_0xc41a60(0xe3)](isAccessibilityAutomationSession)){global[_0xc41a60(0x8c)]=!![];!_0x53ace9[_0x15bc42[_0xc41a60(0xec)]]&&(global[_0xc41a60(0x8c)]=![]);!(_0x15bc42[_0xc41a60(0xea)](_0x53ace9[_0xc41a60(0x96)],_0x15bc42[_0xc41a60(0xd2)])||_0x15bc42[_0xc41a60(0xea)](_0x53ace9['browserName'],_0x15bc42[_0xc41a60(0xf2)]))&&(logger[_0xc41a60(0xbc)](_0x15bc42[_0xc41a60(0x9e)]),global['accessibilityPlatform']=![]);!(_0x15bc42['Kzloa'](_0x53ace9[_0xc41a60(0xc8)],_0x15bc42[_0xc41a60(0xae)])||_0x15bc42[_0xc41a60(0x8e)](_0x53ace9[_0xc41a60(0xc8)],0x5e))&&(logger['warn'](_0x15bc42['rxdYg']),global[_0xc41a60(0x8c)]=![]);!_0x15bc42[_0xc41a60(0xe1)](isUndefined,_0x53ace9['deviceName'])&&(logger[_0xc41a60(0xbc)](_0x15bc42['loCjA']),global[_0xc41a60(0x8c)]=![]);if(!global[_0xc41a60(0x8c)]){_0x53ace9[_0x15bc42[_0xc41a60(0xec)]]=![];const _0x529471=_0x15bc42[_0xc41a60(0x92)](_0x3643a9,_0x15bc42[_0xc41a60(0xe1)](encodeURIComponent,JSON[_0xc41a60(0xa9)](_0x53ace9)));_0x3b0137&&(_0x3b0137['currentTest'][_0xc41a60(0xa1)][_0xc41a60(0xc9)]['use'][_0xc41a60(0xe2)][_0xc41a60(0xa5)]=_0x529471,_0x3b0137[_0xc41a60(0x8d)]['project']['use'][_0xc41a60(0xe2)][_0xc41a60(0xa5)]=_0x529471);}}}catch(_0x51bcab){logger[_0xc41a60(0xc2)](_0xc41a60(0xe9)+util[_0xc41a60(0x90)](_0x51bcab));}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a35_0x1c4051=a35_0x5266;(function(_0x50d387,_0x25980e){const _0x331b81=a35_0x5266,_0x2123ae=_0x50d387();while(!![]){try{const _0x2c5c75=parseInt(_0x331b81(0x22d))/0x1*(-parseInt(_0x331b81(0x203))/0x2)+parseInt(_0x331b81(0x1e5))/0x3*(-parseInt(_0x331b81(0x258))/0x4)+-parseInt(_0x331b81(0x200))/0x5*(-parseInt(_0x331b81(0x205))/0x6)+parseInt(_0x331b81(0x218))/0x7*(-parseInt(_0x331b81(0x239))/0x8)+-parseInt(_0x331b81(0x237))/0x9*(-parseInt(_0x331b81(0x1f4))/0xa)+parseInt(_0x331b81(0x1fc))/0xb*(parseInt(_0x331b81(0x1f8))/0xc)+parseInt(_0x331b81(0x240))/0xd;if(_0x2c5c75===_0x25980e)break;else _0x2123ae['push'](_0x2123ae['shift']());}catch(_0x1cd8e4){_0x2123ae['push'](_0x2123ae['shift']());}}}(a35_0x1365,0xea728));function a35_0x5266(_0x24f3f1,_0x3436d7){const _0x136591=a35_0x1365();return a35_0x5266=function(_0x5266c8,_0x1365ac){_0x5266c8=_0x5266c8-0x1c6;let _0x375491=_0x136591[_0x5266c8];return _0x375491;},a35_0x5266(_0x24f3f1,_0x3436d7);}const fs=require('fs'),path=require(a35_0x1c4051(0x1cf)),{spawn}=require(a35_0x1c4051(0x21c)),{format}=require(a35_0x1c4051(0x244)),logger=require(a35_0x1c4051(0x1e0))[a35_0x1c4051(0x250)],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require('../../helpers/helper'),utilities=require(a35_0x1c4051(0x228)),constants=require(a35_0x1c4051(0x206)),{FRAMEWORKS}=require(a35_0x1c4051(0x1ce)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require(a35_0x1c4051(0x24c)),{CrashReporter}=require(a35_0x1c4051(0x249)),{getFrameworkVersion}=require(a35_0x1c4051(0x1d3)),{checkAccessibilityPlatformConfig}=require(a35_0x1c4051(0x23b)),{setAccessibilityCapabilities}=require(a35_0x1c4051(0x207)),TestHubHandler=require(a35_0x1c4051(0x201)),{shouldProcessEventForTesthub}=require(a35_0x1c4051(0x242)),getUserPlaywrightConfig=async(_0x230d11,_0x55cfb0)=>{const _0x568c89=a35_0x1c4051,_0xbe05e0={'rEPjV':function(_0x8279c1){return _0x8279c1();},'vCTBi':function(_0x4e3f64,_0x10860a){return _0x4e3f64(_0x10860a);},'oQdYg':_0x568c89(0x1e8),'hHLvT':_0x568c89(0x1d5)},_0x80de71=!helper[_0x568c89(0x234)](_0x230d11[_0x568c89(0x1e7)]),_0x1d64f1=_0x80de71?path[_0x568c89(0x1d0)](process[_0x568c89(0x233)](),_0x230d11['config']):process[_0x568c89(0x233)](),{resolveConfigFile:_0x2b362a,resolveConfigLocation:_0x23c5d2}=helper[_0x568c89(0x255)][_0x568c89(0x1f3)](null,_0xbe05e0[_0x568c89(0x1ca)](getConfigLoaderPath)),_0x445051=_0x2b362a?_0xbe05e0['vCTBi'](_0x2b362a,_0x1d64f1):helper[_0x568c89(0x1fe)](_0xbe05e0['vCTBi'](_0x23c5d2,_0x1d64f1),[_0xbe05e0[_0x568c89(0x1ec)]]),_0x5bb568={};if(_0x80de71){const _0x31d5f2=_0x55cfb0['findIndex'](_0x48945f=>_0x48945f===_0x568c89(0x262)||_0x48945f==='-c'||_0x48945f[_0x568c89(0x254)](_0x568c89(0x1d5)));_0x55cfb0[_0x568c89(0x21f)](_0x31d5f2,_0x55cfb0[_0x31d5f2]['startsWith'](_0xbe05e0['hHLvT'])?0x1:0x2);}const _0x1eea42={};return _0x1eea42['path']=_0x445051,_0x1eea42[_0x568c89(0x1e7)]=_0x5bb568,_0x1eea42;},handleO11yRerun=_0x42e067=>{const _0x2b9778=a35_0x1c4051,_0x13f7f2={};_0x13f7f2['mtBNS']=function(_0xbb2737,_0x3f362c){return _0xbb2737!==_0x3f362c;},_0x13f7f2[_0x2b9778(0x1cb)]=_0x2b9778(0x253),_0x13f7f2[_0x2b9778(0x1f0)]=_0x2b9778(0x20e);const _0x22bd0a=_0x13f7f2,_0x65eb3f=helper[_0x2b9778(0x1f5)](process[_0x2b9778(0x219)][_0x2b9778(0x1cd)]);if(_0x65eb3f){const _0x1704ad=process['env']['BROWSERSTACK_RERUN_TESTS'],_0x4dc1b2=[];if(_0x22bd0a[_0x2b9778(0x1f2)](_0x1704ad,_0x22bd0a['KVrbL'])&&!helper[_0x2b9778(0x234)](_0x1704ad)){_0x1704ad[_0x2b9778(0x217)](',')['map'](_0x1dd6a3=>{const _0x157b8f=_0x2b9778;_0x4dc1b2[_0x157b8f(0x1d4)]('('+_0x1dd6a3[_0x157b8f(0x231)]()+')');});const _0x3764b6='^'+_0x4dc1b2[_0x2b9778(0x232)]('|')+'$';_0x42e067[_0x2b9778(0x1d4)](_0x22bd0a[_0x2b9778(0x1f0)],_0x3764b6);}}},spawnOriginalProcess=_0x5a512e=>{const _0x1cd1b2=a35_0x1c4051,_0x1957fd={'gCmUs':function(_0x14198c,_0xb6835c,_0x443cec,_0x4d40ac){return _0x14198c(_0xb6835c,_0x443cec,_0x4d40ac);},'HwJsa':'npx','njPpM':'playwright','tvoBr':function(_0xb31f2,_0x29679d){return _0xb31f2===_0x29679d;},'jETSM':_0x1cd1b2(0x25f),'SRYgh':'inherit'};_0x1957fd[_0x1cd1b2(0x1c6)](spawn,_0x1957fd[_0x1cd1b2(0x21b)],[_0x1957fd[_0x1cd1b2(0x20b)],..._0x5a512e[_0x1cd1b2(0x220)](0x1)],{'shell':_0x1957fd[_0x1cd1b2(0x216)](process[_0x1cd1b2(0x227)],_0x1957fd['jETSM']),'stdio':_0x1957fd[_0x1cd1b2(0x1c8)],'cwd':process[_0x1cd1b2(0x233)]()});},isTestCommand=(_0x36944e,_0x40be8f)=>{const _0x142dbb=a35_0x1c4051,_0x126536={};_0x126536[_0x142dbb(0x230)]=function(_0x5943aa,_0x2bcf89){return _0x5943aa>_0x2bcf89;},_0x126536[_0x142dbb(0x257)]=function(_0x537d11,_0x45d61f){return _0x537d11===_0x45d61f;},_0x126536[_0x142dbb(0x259)]=_0x142dbb(0x223);const _0x4cc770=_0x126536;if(_0x4cc770[_0x142dbb(0x230)](_0x40be8f[_0x142dbb(0x246)],0x1)&&_0x4cc770[_0x142dbb(0x257)](_0x40be8f[0x1],_0x4cc770[_0x142dbb(0x259)]))return!![];return![];};function a35_0x1365(){const _0x5cfb88=['BROWSERSTACK_TEST_ACCESSIBILITY_YML','unlinkSync','--grep','writeFileSync','Error\x20in\x20deleting\x20playwright\x20results','concat','AMkGK','YiPSQ','wsVWQ','stringify','tvoBr','split','74669ZEVQKf','env','filterBrowserstackConfig','HwJsa','child_process','isTypescriptProject','Error\x20in\x20getting\x20funnel\x20data\x20results','splice','slice','playwright-browserstack-sdk.config.js','argv','test','getConfigPath','.browserstack','existsSync','platform','../../helpers/utilities','AHSRS','Updated\x20config\x20file\x20name\x20to\x20-\x20','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','markSDKSetupComplete','53VUQhmP','BROWSERSTACK_AUTOMATION','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','SXuWf','trim','join','cwd','isUndefined','browserstackSetupConfig.json','dirname','15678459rvAcaH','debug','696baRXEw','BROWSERSTACK_TEST_OBSERVABILITY','../../helpers/accessibility-automation/helper','filter','serializeToYamlString','pw_result.json','npx','17227496UVqfbv','OZGwK','../../helpers/testhub/utils','BELlR','util','true','length','has','ZuFft','../../helpers/test-observability/error-handler','lDkNy','inherit','./reporter/pwUtils','close','parse','accessibilityOptions','winstonLogger','indexOf','exports','null','startsWith','requirePWModule','spfAE','mDvoU','10964uaXuUX','NLdHP','finalExecution','Nvczf','gTIsr','mcNOQ','wEmfM','win32','jlOmg','skipSessionStatus','--config','gCmUs','iqVlZ','SRYgh','Playwright\x20process\x20exited\x20with\x20code\x20','rEPjV','KVrbL','getProxyUrl','BROWSERSTACK_RERUN','../../helpers/test-observability/constants','path','resolve','uqrbq','NBwnd','../../helpers/test-observability/utils','push','--config=','--disable-test-observability','bYGYP','false','errorMessage','launchBuild','--disable-browserstack-automation','Error\x20in\x20closing\x20playwright','homedir','ysiXN','clearTempPWConfig','../../helpers/logger','assign','KjboZ','dhNoQ','playwright','669SBBjZh','yecuS','config','resolvedConfigFile','testObservability','ECDYw','CzoRE','oQdYg','BROWSERSTACK_SETUP_CONFIG_PATH','PACKAGE_TYPE','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','frhmA','automation','mtBNS','apply','10JuPDEn','isTrue','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','testContextOptions','252pTXLwq','get','fCdwH','Deleting\x20','341231vwNZca','isFalse','nestedKeyValue','skipSessionName','635dcvnvX','../../helpers/testhub/testhubHandler','cliConfig','62246kOhSww','accessibility','20334xZpcxN','../utils/constants','./accessibility-helper','\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();','exitCode','yDGAS','njPpM'];a35_0x1365=function(){return _0x5cfb88;};return a35_0x1365();}async function run(_0x1f99be,_0x160c64){const _0x4f6913=a35_0x1c4051,_0x374ecc={'XaXXW':_0x4f6913(0x225),'NBwnd':_0x4f6913(0x23e),'bYGYP':function(_0x442b73,_0x23aca4){return _0x442b73+_0x23aca4;},'ECDYw':_0x4f6913(0x21e),'BELlR':'4|5|7|8|6|0|2|1|3','mcNOQ':function(_0x296942){return _0x296942();},'iqVlZ':_0x4f6913(0x1dc),'tjhpF':'--disable-browserstack-automation','yDGAS':_0x4f6913(0x1d8),'ATRZd':'--disable-test-observability','YiPSQ':function(_0x4bd17e,_0x5f80fe){return _0x4bd17e>=_0x5f80fe;},'dhNoQ':_0x4f6913(0x210),'AMkGK':function(_0x14568f,_0x2a8909,_0x5719b6){return _0x14568f(_0x2a8909,_0x5719b6);},'eiBkg':function(_0x25cf32,_0x4c94d9){return _0x25cf32(_0x4c94d9);},'spfAE':'BrowserStack\x20config\x20file\x20not\x20found.','fCdwH':_0x4f6913(0x1f1),'wEmfM':function(_0x5b5134,_0x57d2e4){return _0x5b5134!=_0x57d2e4;},'ZuFft':function(_0x5ad3bb,_0x511786,_0x309fe5){return _0x5ad3bb(_0x511786,_0x309fe5);},'gTIsr':function(_0x373e08,_0x5e3609){return _0x373e08(_0x5e3609);},'OLVrh':function(_0x11c9e0,_0x3e8e36){return _0x11c9e0(_0x3e8e36);},'Nvczf':function(_0xe420ca,_0x3846d7){return _0xe420ca===_0x3846d7;},'xtzzg':_0x4f6913(0x245),'RIPbq':function(_0x3aaebe,_0x3d3bf8){return _0x3aaebe(_0x3d3bf8);},'wsVWQ':_0x4f6913(0x235),'CzoRE':'playwright-browserstack-sdk.config.cjs','vNXvs':_0x4f6913(0x221),'hVxVx':function(_0x4d5ba6,_0x7cf287){return _0x4d5ba6-_0x7cf287;},'ysiXN':_0x4f6913(0x22a),'miBUr':function(_0x516747,_0x15a1c0){return _0x516747>_0x15a1c0;},'lDkNy':function(_0x10102b,_0x555e2e,_0x2eb782,_0x416f6c){return _0x10102b(_0x555e2e,_0x2eb782,_0x416f6c);},'uqrbq':_0x4f6913(0x23f),'yecuS':_0x4f6913(0x1e4),'jlOmg':_0x4f6913(0x223),'OZGwK':_0x4f6913(0x262),'AHSRS':_0x4f6913(0x25f),'TBUBz':_0x4f6913(0x24b),'KjboZ':_0x4f6913(0x24d)};!helper[_0x4f6913(0x1fd)](process[_0x4f6913(0x219)][_0x4f6913(0x22e)])&&(process[_0x4f6913(0x219)][_0x4f6913(0x22e)]=!![]);process[_0x4f6913(0x222)]['includes'](_0x374ecc['tjhpF'])&&(process[_0x4f6913(0x219)][_0x4f6913(0x22e)]=_0x374ecc['yDGAS'],_0x160c64=_0x160c64[_0x4f6913(0x23c)](_0x1b0245=>_0x1b0245!==_0x4f6913(0x1db)));const _0x312692=_0x160c64[_0x4f6913(0x251)](_0x374ecc['ATRZd']);_0x374ecc[_0x4f6913(0x213)](_0x312692,0x0)&&(process[_0x4f6913(0x219)][_0x4f6913(0x23a)]=_0x374ecc[_0x4f6913(0x20a)],_0x160c64=_0x160c64['filter'](_0x184f9e=>_0x184f9e!==_0x4f6913(0x1d6)));try{const _0x1bc53f=path[_0x4f6913(0x232)](helper[_0x4f6913(0x1dd)](),_0x374ecc['XaXXW'],_0x374ecc['NBwnd']);fs[_0x4f6913(0x226)](_0x1bc53f)&&fs[_0x4f6913(0x20d)](_0x1bc53f);}catch(_0x30d85f){logger[_0x4f6913(0x238)](_0x374ecc[_0x4f6913(0x1d7)](_0x374ecc[_0x4f6913(0x1e3)],_0x30d85f));}if(!_0x374ecc[_0x4f6913(0x212)](isTestCommand,_0x1f99be,_0x160c64)){_0x374ecc['eiBkg'](spawnOriginalProcess,_0x160c64);return;}const _0x4bec23=new BrowserStackSetup(_0x1f99be,FRAMEWORKS['PLAYWRIGHT']);if(!_0x4bec23[_0x4f6913(0x1e7)]){logger['error'](_0x374ecc[_0x4f6913(0x256)]);return;}await _0x4bec23['initialize']();!helper['isUndefined'](_0x4bec23[_0x4f6913(0x202)])&&_0x4bec23[_0x4f6913(0x202)][_0x4f6913(0x247)](_0x374ecc[_0x4f6913(0x1fa)])&&(process[_0x4f6913(0x219)][_0x4f6913(0x22e)]=_0x4bec23[_0x4f6913(0x202)][_0x4f6913(0x1f9)](_0x374ecc[_0x4f6913(0x1fa)])||!![]);_0x374ecc[_0x4f6913(0x25e)](_0x4bec23['config']['testObservability'],null)&&!helper[_0x4f6913(0x1f5)](process[_0x4f6913(0x219)][_0x4f6913(0x23a)])&&(process[_0x4f6913(0x219)][_0x4f6913(0x23a)]=process[_0x4f6913(0x219)][_0x4f6913(0x23a)]||_0x4bec23[_0x4f6913(0x1e7)][_0x4f6913(0x1e9)]);const _0x57f9cb=!helper[_0x4f6913(0x1fd)](process[_0x4f6913(0x219)]['BROWSERSTACK_TEST_OBSERVABILITY']);let _0x38d57c=![];_0x4bec23[_0x4f6913(0x1e7)]['accessibility']&&(_0x38d57c=!![],process[_0x4f6913(0x219)][_0x4f6913(0x20c)]=_0x4bec23['config'][_0x4f6913(0x204)]);_0x4bec23[_0x4f6913(0x1e7)][_0x4f6913(0x24f)]&&(process[_0x4f6913(0x219)][_0x4f6913(0x1ef)]=JSON[_0x4f6913(0x215)](_0x4bec23[_0x4f6913(0x1e7)][_0x4f6913(0x24f)]));const _0x4fe3b9=_0x160c64[_0x4f6913(0x211)](),_0x3dfaca=await _0x374ecc[_0x4f6913(0x248)](getUserPlaywrightConfig,_0x1f99be,_0x160c64);if(helper['isUndefined'](_0x3dfaca)){_0x374ecc['gTIsr'](spawnOriginalProcess,_0x4fe3b9);return;}const _0x28b83c=_0x3dfaca[_0x4f6913(0x1cf)]?path[_0x4f6913(0x236)](_0x3dfaca[_0x4f6913(0x1cf)]):process[_0x4f6913(0x233)]();process[_0x4f6913(0x219)]['BROWSERSTACK_PW_CONFIG_DIR']=_0x28b83c,await TestHubHandler[_0x4f6913(0x1da)](FRAMEWORKS['PLAYWRIGHT'],_0x4bec23);_0x57f9cb&&_0x374ecc['OLVrh'](handleO11yRerun,_0x160c64);let _0x1f42c5=_0x374ecc[_0x4f6913(0x25b)](process[_0x4f6913(0x219)][_0x4f6913(0x20c)],_0x374ecc['xtzzg']);_0x1f42c5=_0x1f42c5||_0x374ecc[_0x4f6913(0x25c)](checkAccessibilityPlatformConfig,_0x4bec23['config']),process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x1f42c5;_0x1f42c5&&_0x374ecc['RIPbq'](setAccessibilityCapabilities,_0x4bec23[_0x4f6913(0x1e7)]);const _0x35c6ba=path[_0x4f6913(0x232)](_0x3dfaca[_0x4f6913(0x1cf)]?path['dirname'](_0x3dfaca[_0x4f6913(0x1cf)]):process[_0x4f6913(0x233)](),_0x374ecc[_0x4f6913(0x214)]);fs[_0x4f6913(0x20f)](_0x35c6ba,helper[_0x4f6913(0x23d)](_0x4bec23[_0x4f6913(0x1e7)])),process[_0x4f6913(0x219)][_0x4f6913(0x1ed)]=_0x35c6ba,helper[_0x4f6913(0x1df)]();let _0x550473='';_0x374ecc[_0x4f6913(0x25b)](helper['getPackageType'](),constants[_0x4f6913(0x1ee)]['MODULE'])?_0x550473=_0x374ecc[_0x4f6913(0x1eb)]:_0x550473=_0x374ecc['vNXvs'];let _0x22a7db='';if(helper[_0x4f6913(0x21d)](_0x3dfaca[_0x4f6913(0x1cf)])){_0x22a7db=_0x4f6913(0x22b);const _0x325bb4=_0x550473[_0x4f6913(0x217)]('.');_0x325bb4[_0x374ecc['hVxVx'](_0x325bb4[_0x4f6913(0x246)],0x1)]='ts',_0x550473=_0x325bb4[_0x4f6913(0x232)]('.'),logger[_0x4f6913(0x238)](_0x374ecc['bYGYP'](_0x374ecc[_0x4f6913(0x1de)],_0x550473));}else _0x22a7db=_0x4f6913(0x22f);const _0x1d2ca8=path[_0x4f6913(0x232)](_0x3dfaca[_0x4f6913(0x1cf)]?path['dirname'](_0x3dfaca[_0x4f6913(0x1cf)]):process[_0x4f6913(0x233)](),_0x550473);let _0x59bd5b=_0x3dfaca['path']?_0x3dfaca[_0x4f6913(0x1cf)]:'';_0x59bd5b=_0x374ecc['miBUr'](_0x59bd5b[_0x4f6913(0x246)],0x0)?path[_0x4f6913(0x1d0)](_0x59bd5b):'',process[_0x4f6913(0x219)]['USER_CONFIG_DETAILS_PATH']=_0x59bd5b;const _0x167fca=helper[_0x4f6913(0x1cc)](_0x4bec23['config']);_0x167fca&&(_0x22a7db=_0x374ecc[_0x4f6913(0x1d7)](_0x4f6913(0x1f6)+_0x167fca+_0x4f6913(0x208),_0x22a7db));helper[_0x4f6913(0x21a)]({},_0x160c64),fs[_0x4f6913(0x20f)](_0x1d2ca8,_0x22a7db),helper[_0x4f6913(0x22c)]();const _0x154008=_0x374ecc[_0x4f6913(0x24a)](spawn,_0x374ecc[_0x4f6913(0x1d1)],[_0x374ecc[_0x4f6913(0x1e6)],_0x374ecc[_0x4f6913(0x260)],_0x374ecc[_0x4f6913(0x241)],_0x1d2ca8,..._0x160c64[_0x4f6913(0x220)](0x2)],{'shell':_0x374ecc[_0x4f6913(0x25b)](process['platform'],_0x374ecc[_0x4f6913(0x229)]),'stdio':_0x374ecc['TBUBz'],'cwd':process[_0x4f6913(0x233)](),'env':Object[_0x4f6913(0x1e1)]({},process[_0x4f6913(0x219)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x4f6913(0x224)](_0x1f99be),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x4bec23[_0x4f6913(0x1e7)][_0x4f6913(0x1f7)][_0x4f6913(0x261)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x4bec23[_0x4f6913(0x1e7)][_0x4f6913(0x1f7)][_0x4f6913(0x1ff)],'BROWSERSTACK_LOG_LEVEL':_0x4bec23[_0x4f6913(0x1e7)]['logLevel']})}),_0x12bcae=()=>{const _0x490cca=_0x4f6913;try{const _0x3e35f5=path[_0x490cca(0x232)](helper[_0x490cca(0x1dd)](),_0x374ecc['XaXXW'],_0x374ecc[_0x490cca(0x1d2)]);if(fs[_0x490cca(0x226)](_0x3e35f5)){let _0x36ac0d=fs['readFileSync'](_0x3e35f5);_0x36ac0d=JSON[_0x490cca(0x24e)](_0x36ac0d),_0x4bec23[_0x490cca(0x1d9)]=_0x36ac0d,fs[_0x490cca(0x20d)](_0x3e35f5);}}catch(_0x463ad7){logger[_0x490cca(0x238)](_0x374ecc[_0x490cca(0x1d7)](_0x374ecc[_0x490cca(0x1ea)],_0x463ad7));}};_0x154008['on'](_0x374ecc[_0x4f6913(0x1e2)],async _0x1ba60b=>{const _0x422572=_0x4f6913;try{const _0xd6616d=_0x374ecc[_0x422572(0x243)]['split']('|');let _0x27cf5f=0x0;while(!![]){switch(_0xd6616d[_0x27cf5f++]){case'0':logger['info'](_0x422572(0x1fb)+_0x1d2ca8);continue;case'1':logger[_0x422572(0x238)]('Deleting\x20'+_0x35c6ba);continue;case'2':fs[_0x422572(0x20d)](_0x1d2ca8);continue;case'3':fs[_0x422572(0x20d)](_0x35c6ba);continue;case'4':_0x374ecc[_0x422572(0x25d)](_0x12bcae);continue;case'5':await TestHubHandler['stop']();continue;case'6':logger[_0x422572(0x238)](_0x422572(0x1c9)+_0x1ba60b);continue;case'7':await utilities[_0x422572(0x25a)](_0x4bec23);continue;case'8':process[_0x422572(0x209)]=_0x1ba60b;continue;}break;}}catch(_0x1bedfa){logger[_0x422572(0x238)](_0x374ecc[_0x422572(0x1d7)](_0x374ecc[_0x422572(0x1c7)],_0x1bedfa));}});}module[a35_0x1c4051(0x252)]=run;
|
|
2
|
+
'use strict';const a35_0x3fa32c=a35_0x221c;function a35_0x221c(_0x4e076c,_0x1a1a79){const _0x385c7c=a35_0x385c();return a35_0x221c=function(_0x221c90,_0x2f026f){_0x221c90=_0x221c90-0x124;let _0x183b37=_0x385c7c[_0x221c90];return _0x183b37;},a35_0x221c(_0x4e076c,_0x1a1a79);}(function(_0x2cb8dc,_0x18f385){const _0xdf46f=a35_0x221c,_0x8eeebc=_0x2cb8dc();while(!![]){try{const _0xd6accf=-parseInt(_0xdf46f(0x17e))/0x1+parseInt(_0xdf46f(0x142))/0x2+parseInt(_0xdf46f(0x171))/0x3*(parseInt(_0xdf46f(0x175))/0x4)+parseInt(_0xdf46f(0x1a6))/0x5*(parseInt(_0xdf46f(0x1b8))/0x6)+-parseInt(_0xdf46f(0x18c))/0x7+parseInt(_0xdf46f(0x190))/0x8*(parseInt(_0xdf46f(0x13b))/0x9)+parseInt(_0xdf46f(0x147))/0xa*(parseInt(_0xdf46f(0x127))/0xb);if(_0xd6accf===_0x18f385)break;else _0x8eeebc['push'](_0x8eeebc['shift']());}catch(_0x5ca103){_0x8eeebc['push'](_0x8eeebc['shift']());}}}(a35_0x385c,0x57e4a));const fs=require('fs'),path=require(a35_0x3fa32c(0x1b4)),{spawn}=require(a35_0x3fa32c(0x1a4)),{format}=require('util'),logger=require(a35_0x3fa32c(0x124))['winstonLogger'],{default:BrowserStackSetup}=require(a35_0x3fa32c(0x15f)),helper=require(a35_0x3fa32c(0x18f)),utilities=require('../../helpers/utilities'),constants=require(a35_0x3fa32c(0x166)),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require(a35_0x3fa32c(0x139)),{CrashReporter}=require(a35_0x3fa32c(0x1ad)),{getFrameworkVersion}=require('../../helpers/test-observability/utils'),{checkAccessibilityPlatformConfig}=require(a35_0x3fa32c(0x13f)),{setAccessibilityCapabilities}=require(a35_0x3fa32c(0x1a8)),TestHubHandler=require('../../helpers/testhub/testhubHandler'),{shouldProcessEventForTesthub}=require(a35_0x3fa32c(0x187)),getUserPlaywrightConfig=async(_0x375458,_0x55568e)=>{const _0x4fa618=a35_0x3fa32c,_0x2117fb={'HpYGi':function(_0x59d44b){return _0x59d44b();},'HzNYu':function(_0x2ef388,_0x444982){return _0x2ef388(_0x444982);},'ScoBR':function(_0x277103,_0x77741a){return _0x277103(_0x77741a);},'CYczd':_0x4fa618(0x132),'QgKBL':_0x4fa618(0x174)},_0x560776=!helper['isUndefined'](_0x375458[_0x4fa618(0x143)]),_0x592224=_0x560776?path[_0x4fa618(0x1bb)](process[_0x4fa618(0x13c)](),_0x375458[_0x4fa618(0x143)]):process[_0x4fa618(0x13c)](),{resolveConfigFile:_0x1814fd,resolveConfigLocation:_0x118def}=helper[_0x4fa618(0x14b)]['apply'](null,_0x2117fb[_0x4fa618(0x16c)](getConfigLoaderPath)),_0x1cfa2a=_0x1814fd?_0x2117fb[_0x4fa618(0x131)](_0x1814fd,_0x592224):helper[_0x4fa618(0x180)](_0x2117fb[_0x4fa618(0x184)](_0x118def,_0x592224),[_0x2117fb[_0x4fa618(0x16d)]]),_0x229ff6={};if(_0x560776){const _0x3eb21f=_0x55568e['findIndex'](_0x1cee8a=>_0x1cee8a===_0x4fa618(0x176)||_0x1cee8a==='-c'||_0x1cee8a[_0x4fa618(0x19e)](_0x4fa618(0x174)));_0x55568e[_0x4fa618(0x135)](_0x3eb21f,_0x55568e[_0x3eb21f]['startsWith'](_0x2117fb[_0x4fa618(0x137)])?0x1:0x2);}const _0x1fa437={};return _0x1fa437[_0x4fa618(0x1b4)]=_0x1cfa2a,_0x1fa437[_0x4fa618(0x143)]=_0x229ff6,_0x1fa437;},handleO11yRerun=_0x94a24f=>{const _0x551d71=a35_0x3fa32c,_0x51a8e1={};_0x51a8e1[_0x551d71(0x173)]=function(_0x2357f2,_0x372a15){return _0x2357f2!==_0x372a15;},_0x51a8e1[_0x551d71(0x148)]=_0x551d71(0x19c),_0x51a8e1[_0x551d71(0x14d)]='--grep';const _0x222c1d=_0x51a8e1,_0x2e996e=helper[_0x551d71(0x156)](process[_0x551d71(0x1b1)]['BROWSERSTACK_RERUN']);if(_0x2e996e){const _0xd524e8=process['env'][_0x551d71(0x188)],_0x1b485c=[];if(_0x222c1d[_0x551d71(0x173)](_0xd524e8,_0x222c1d[_0x551d71(0x148)])&&!helper[_0x551d71(0x154)](_0xd524e8)){_0xd524e8[_0x551d71(0x183)](',')[_0x551d71(0x14e)](_0x37446f=>{const _0x3c2195=_0x551d71;_0x1b485c[_0x3c2195(0x13e)]('('+_0x37446f[_0x3c2195(0x19b)]()+')');});const _0x308ef9='^'+_0x1b485c[_0x551d71(0x1ac)]('|')+'$';_0x94a24f[_0x551d71(0x13e)](_0x222c1d[_0x551d71(0x14d)],_0x308ef9);}}},spawnOriginalProcess=_0x5e13b1=>{const _0x5b1a24=a35_0x3fa32c,_0x6e5767={'zJUns':function(_0x2895d7,_0x16ba74,_0x1f7790,_0x1e3b17){return _0x2895d7(_0x16ba74,_0x1f7790,_0x1e3b17);},'fZXav':'npx','RjLJC':_0x5b1a24(0x16b),'MJqjK':function(_0x3b479c,_0x3e6873){return _0x3b479c===_0x3e6873;},'xeJaD':_0x5b1a24(0x136),'MELZv':'inherit'};_0x6e5767[_0x5b1a24(0x1aa)](spawn,_0x6e5767['fZXav'],[_0x6e5767[_0x5b1a24(0x19a)],..._0x5e13b1[_0x5b1a24(0x1b2)](0x1)],{'shell':_0x6e5767[_0x5b1a24(0x172)](process['platform'],_0x6e5767['xeJaD']),'stdio':_0x6e5767[_0x5b1a24(0x17b)],'cwd':process[_0x5b1a24(0x13c)]()});},isTestCommand=(_0x508873,_0x1ec9ff)=>{const _0x55e70f=a35_0x3fa32c,_0x1bc0e3={};_0x1bc0e3[_0x55e70f(0x15c)]=function(_0x1f64eb,_0x1a19d5){return _0x1f64eb>_0x1a19d5;},_0x1bc0e3[_0x55e70f(0x12f)]=function(_0x2cf061,_0x309129){return _0x2cf061===_0x309129;},_0x1bc0e3[_0x55e70f(0x19f)]=_0x55e70f(0x194);const _0x378601=_0x1bc0e3;if(_0x378601['IFKtc'](_0x1ec9ff[_0x55e70f(0x13a)],0x1)&&_0x378601[_0x55e70f(0x12f)](_0x1ec9ff[0x1],_0x378601[_0x55e70f(0x19f)]))return!![];return![];};async function run(_0x4dd06c,_0x36d06a){const _0x2af3c8=a35_0x3fa32c,_0x56e200={'dJrqH':_0x2af3c8(0x145),'WqooA':'pw_result.json','XFUiN':function(_0x643376,_0x33610e){return _0x643376+_0x33610e;},'KIhHe':_0x2af3c8(0x18b),'WJCjn':_0x2af3c8(0x130),'dtREf':function(_0x36d174){return _0x36d174();},'LGCsh':_0x2af3c8(0x17a),'TLWVZ':_0x2af3c8(0x192),'eXdmX':'false','uTvya':_0x2af3c8(0x195),'nshwk':function(_0x478b84,_0x514ced){return _0x478b84>=_0x514ced;},'LdDzZ':function(_0x586872,_0x1e297a){return _0x586872+_0x1e297a;},'PNdig':'Error\x20in\x20deleting\x20playwright\x20results','AWBOa':function(_0x1489c7,_0x4019c9,_0x4a469a){return _0x1489c7(_0x4019c9,_0x4a469a);},'GBAqz':function(_0x218b29,_0x223f7a){return _0x218b29(_0x223f7a);},'xvdxB':_0x2af3c8(0x178),'qwCOu':_0x2af3c8(0x138),'qNfKa':function(_0x13d40a,_0x1210eb){return _0x13d40a!=_0x1210eb;},'sUNfO':function(_0x5b6bad,_0x441959,_0x4822f7){return _0x5b6bad(_0x441959,_0x4822f7);},'SLMYK':function(_0xacc4d5,_0x2ce015){return _0xacc4d5(_0x2ce015);},'wtLXC':function(_0x5e0f38,_0x1c915c){return _0x5e0f38===_0x1c915c;},'uDaJH':_0x2af3c8(0x197),'yNtKl':function(_0x40fdc0,_0x3b4426){return _0x40fdc0(_0x3b4426);},'uUgyU':_0x2af3c8(0x168),'WGxFG':function(_0x3ffe73,_0x55a290){return _0x3ffe73===_0x55a290;},'fAILz':'playwright-browserstack-sdk.config.cjs','AcXll':_0x2af3c8(0x134),'wZVMd':function(_0x111151,_0x368a04){return _0x111151-_0x368a04;},'xSBDD':function(_0x4867c9,_0x56d496){return _0x4867c9+_0x56d496;},'xqYJa':_0x2af3c8(0x181),'cWtGf':function(_0x56e787,_0x4d8e5d){return _0x56e787>_0x4d8e5d;},'IZrxv':function(_0x24a09d,_0x4980ae){return _0x24a09d+_0x4980ae;},'nZKkZ':function(_0x140254,_0x1b517f,_0x3081f8,_0x4a5152){return _0x140254(_0x1b517f,_0x3081f8,_0x4a5152);},'vYhFE':'npx','Pcdyo':_0x2af3c8(0x16b),'IIBxe':'test','PSyhw':_0x2af3c8(0x176),'TxICm':function(_0x22b625,_0x4feda1){return _0x22b625===_0x4feda1;},'xLzJe':'win32','kRUwG':_0x2af3c8(0x1ae),'wBnqi':_0x2af3c8(0x17f)};!helper[_0x2af3c8(0x1af)](process[_0x2af3c8(0x1b1)][_0x2af3c8(0x12e)])&&(process[_0x2af3c8(0x1b1)][_0x2af3c8(0x12e)]=!![]);process[_0x2af3c8(0x15d)][_0x2af3c8(0x198)](_0x56e200['TLWVZ'])&&(process[_0x2af3c8(0x1b1)][_0x2af3c8(0x12e)]=_0x56e200['eXdmX'],_0x36d06a=_0x36d06a['filter'](_0x12d4dd=>_0x12d4dd!==_0x2af3c8(0x192)));const _0x2561a6=_0x36d06a['indexOf'](_0x56e200[_0x2af3c8(0x133)]);_0x56e200[_0x2af3c8(0x1a3)](_0x2561a6,0x0)&&(process[_0x2af3c8(0x1b1)][_0x2af3c8(0x193)]=_0x56e200[_0x2af3c8(0x164)],_0x36d06a=_0x36d06a[_0x2af3c8(0x1b3)](_0x35ffa1=>_0x35ffa1!==_0x2af3c8(0x195)));try{const _0x452167=path[_0x2af3c8(0x1ac)](helper[_0x2af3c8(0x1a0)](),_0x56e200[_0x2af3c8(0x1a1)],_0x56e200[_0x2af3c8(0x186)]);fs['existsSync'](_0x452167)&&fs[_0x2af3c8(0x125)](_0x452167);}catch(_0x2b3260){logger[_0x2af3c8(0x165)](_0x56e200['LdDzZ'](_0x56e200[_0x2af3c8(0x129)],_0x2b3260));}if(!_0x56e200[_0x2af3c8(0x151)](isTestCommand,_0x4dd06c,_0x36d06a)){_0x56e200[_0x2af3c8(0x1a7)](spawnOriginalProcess,_0x36d06a);return;}const _0x1c5004=new BrowserStackSetup(_0x4dd06c,FRAMEWORKS[_0x2af3c8(0x153)]);if(!_0x1c5004[_0x2af3c8(0x143)]){logger[_0x2af3c8(0x1b7)](_0x56e200[_0x2af3c8(0x155)]);return;}await _0x1c5004[_0x2af3c8(0x144)]();!helper['isUndefined'](_0x1c5004[_0x2af3c8(0x1ba)])&&_0x1c5004[_0x2af3c8(0x1ba)]['has'](_0x56e200['qwCOu'])&&(process[_0x2af3c8(0x1b1)][_0x2af3c8(0x12e)]=_0x1c5004[_0x2af3c8(0x1ba)]['get'](_0x56e200['qwCOu'])||!![]);_0x56e200[_0x2af3c8(0x13d)](_0x1c5004[_0x2af3c8(0x143)][_0x2af3c8(0x18e)],null)&&!helper[_0x2af3c8(0x156)](process[_0x2af3c8(0x1b1)][_0x2af3c8(0x193)])&&(process['env'][_0x2af3c8(0x193)]=process[_0x2af3c8(0x1b1)][_0x2af3c8(0x193)]||_0x1c5004[_0x2af3c8(0x143)]['testObservability']);const _0x216eee=!helper[_0x2af3c8(0x1af)](process['env'][_0x2af3c8(0x193)]);let _0x371fe7=![];_0x1c5004[_0x2af3c8(0x143)][_0x2af3c8(0x15b)]&&(_0x371fe7=!![],process['env'][_0x2af3c8(0x14a)]=_0x1c5004['config'][_0x2af3c8(0x15b)]);_0x1c5004[_0x2af3c8(0x143)][_0x2af3c8(0x15e)]&&(process['env'][_0x2af3c8(0x1ab)]=JSON['stringify'](_0x1c5004[_0x2af3c8(0x143)]['accessibilityOptions']));const _0x2df3f3=_0x36d06a['concat'](),_0x2ebbce=await _0x56e200[_0x2af3c8(0x177)](getUserPlaywrightConfig,_0x4dd06c,_0x36d06a);if(helper[_0x2af3c8(0x154)](_0x2ebbce)){_0x56e200[_0x2af3c8(0x182)](spawnOriginalProcess,_0x2df3f3);return;}const _0x2f9433=_0x2ebbce[_0x2af3c8(0x1b4)]?path['dirname'](_0x2ebbce['path']):process['cwd']();process[_0x2af3c8(0x1b1)][_0x2af3c8(0x150)]=_0x2f9433,await TestHubHandler[_0x2af3c8(0x18d)](FRAMEWORKS[_0x2af3c8(0x153)],_0x1c5004);_0x216eee&&_0x56e200['GBAqz'](handleO11yRerun,_0x36d06a);let _0xa6e62f=_0x56e200[_0x2af3c8(0x185)](process['env'][_0x2af3c8(0x14a)],_0x56e200[_0x2af3c8(0x1a5)]);_0xa6e62f=_0xa6e62f||_0x56e200[_0x2af3c8(0x1a7)](checkAccessibilityPlatformConfig,_0x1c5004[_0x2af3c8(0x143)]),process['env'][_0x2af3c8(0x14a)]=_0xa6e62f;_0xa6e62f&&_0x56e200[_0x2af3c8(0x12a)](setAccessibilityCapabilities,_0x1c5004[_0x2af3c8(0x143)]);const _0x4fcc89=path[_0x2af3c8(0x1ac)](_0x2ebbce[_0x2af3c8(0x1b4)]?path[_0x2af3c8(0x199)](_0x2ebbce[_0x2af3c8(0x1b4)]):process[_0x2af3c8(0x13c)](),_0x56e200[_0x2af3c8(0x152)]);fs[_0x2af3c8(0x160)](_0x4fcc89,helper['serializeToYamlString'](_0x1c5004[_0x2af3c8(0x143)])),process['env'][_0x2af3c8(0x17c)]=_0x4fcc89,helper['clearTempPWConfig']();let _0x1124ab='';_0x56e200[_0x2af3c8(0x159)](helper[_0x2af3c8(0x140)](),constants[_0x2af3c8(0x146)][_0x2af3c8(0x128)])?_0x1124ab=_0x56e200[_0x2af3c8(0x189)]:_0x1124ab=_0x56e200['AcXll'];let _0x38bd79='';if(helper[_0x2af3c8(0x18a)](_0x2ebbce[_0x2af3c8(0x1b4)])){_0x38bd79='\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a';const _0x553a21=_0x1124ab[_0x2af3c8(0x183)]('.');_0x553a21[_0x56e200[_0x2af3c8(0x1a9)](_0x553a21[_0x2af3c8(0x13a)],0x1)]='ts',_0x1124ab=_0x553a21[_0x2af3c8(0x1ac)]('.'),logger[_0x2af3c8(0x165)](_0x56e200[_0x2af3c8(0x15a)](_0x56e200[_0x2af3c8(0x12b)],_0x1124ab));}else _0x38bd79=_0x2af3c8(0x170);const _0x50a629=path['join'](_0x2ebbce['path']?path[_0x2af3c8(0x199)](_0x2ebbce[_0x2af3c8(0x1b4)]):process[_0x2af3c8(0x13c)](),_0x1124ab);let _0x3b3512=_0x2ebbce[_0x2af3c8(0x1b4)]?_0x2ebbce[_0x2af3c8(0x1b4)]:'';_0x3b3512=_0x56e200[_0x2af3c8(0x1b5)](_0x3b3512['length'],0x0)?path['resolve'](_0x3b3512):'',process[_0x2af3c8(0x1b1)][_0x2af3c8(0x167)]=_0x3b3512;const _0x2dabe4=helper['getProxyUrl'](_0x1c5004[_0x2af3c8(0x143)]);_0x2dabe4&&(_0x38bd79=_0x56e200['IZrxv']('process.env.GLOBAL_AGENT_HTTP_PROXY=\x22'+_0x2dabe4+_0x2af3c8(0x1b0),_0x38bd79));helper['filterBrowserstackArgs']({},_0x36d06a),fs['writeFileSync'](_0x50a629,_0x38bd79),helper['markSDKSetupComplete']();const _0x30f4ec=_0x56e200['nZKkZ'](spawn,_0x56e200[_0x2af3c8(0x163)],[_0x56e200[_0x2af3c8(0x141)],_0x56e200[_0x2af3c8(0x1a2)],_0x56e200['PSyhw'],_0x50a629,..._0x36d06a[_0x2af3c8(0x1b2)](0x2)],{'shell':_0x56e200[_0x2af3c8(0x158)](process[_0x2af3c8(0x1b6)],_0x56e200[_0x2af3c8(0x157)]),'stdio':_0x56e200['kRUwG'],'cwd':process[_0x2af3c8(0x13c)](),'env':Object[_0x2af3c8(0x179)]({},process[_0x2af3c8(0x1b1)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper['getConfigPath'](_0x4dd06c),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x1c5004[_0x2af3c8(0x143)][_0x2af3c8(0x12d)][_0x2af3c8(0x16f)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x1c5004[_0x2af3c8(0x143)]['testContextOptions'][_0x2af3c8(0x169)],'BROWSERSTACK_LOG_LEVEL':_0x1c5004[_0x2af3c8(0x143)][_0x2af3c8(0x191)]})}),_0x2bea0e=()=>{const _0x5561a0=_0x2af3c8;try{const _0x240e8f=path[_0x5561a0(0x1ac)](helper[_0x5561a0(0x1a0)](),_0x56e200[_0x5561a0(0x1a1)],_0x56e200[_0x5561a0(0x186)]);if(fs[_0x5561a0(0x14c)](_0x240e8f)){let _0x2b349c=fs['readFileSync'](_0x240e8f);_0x2b349c=JSON[_0x5561a0(0x16a)](_0x2b349c),_0x1c5004[_0x5561a0(0x12c)]=_0x2b349c,fs[_0x5561a0(0x125)](_0x240e8f);}}catch(_0x2de8fd){logger['debug'](_0x56e200[_0x5561a0(0x126)](_0x56e200[_0x5561a0(0x162)],_0x2de8fd));}};_0x30f4ec['on'](_0x56e200[_0x2af3c8(0x19d)],async _0x4f9bc9=>{const _0x2ac741=_0x2af3c8;try{const _0x26266e=_0x56e200[_0x2ac741(0x161)]['split']('|');let _0x33e217=0x0;while(!![]){switch(_0x26266e[_0x33e217++]){case'0':_0x56e200[_0x2ac741(0x14f)](_0x2bea0e);continue;case'1':logger[_0x2ac741(0x165)](_0x2ac741(0x17d)+_0x4f9bc9);continue;case'2':logger[_0x2ac741(0x165)](_0x2ac741(0x16e)+_0x4fcc89);continue;case'3':fs['unlinkSync'](_0x4fcc89);continue;case'4':await TestHubHandler[_0x2ac741(0x149)]();continue;case'5':logger['info']('Deleting\x20'+_0x50a629);continue;case'6':await utilities[_0x2ac741(0x1b9)](_0x1c5004);continue;case'7':fs[_0x2ac741(0x125)](_0x50a629);continue;case'8':process[_0x2ac741(0x196)]=_0x4f9bc9;continue;}break;}}catch(_0x589f7d){logger[_0x2ac741(0x165)](_0x56e200[_0x2ac741(0x126)](_0x56e200['LGCsh'],_0x589f7d));}});}function a35_0x385c(){const _0x554f82=['close','nestedKeyValue','Updated\x20config\x20file\x20name\x20to\x20-\x20','SLMYK','split','ScoBR','wtLXC','WqooA','../../helpers/testhub/utils','BROWSERSTACK_RERUN_TESTS','fAILz','isTypescriptProject','Error\x20in\x20getting\x20funnel\x20data\x20results','3090927jzoJlT','launchBuild','testObservability','../../helpers/helper','597952cUxaKS','logLevel','--disable-browserstack-automation','BROWSERSTACK_TEST_OBSERVABILITY','test','--disable-test-observability','exitCode','true','includes','dirname','RjLJC','trim','null','wBnqi','startsWith','thPxd','homedir','dJrqH','IIBxe','nshwk','child_process','uDaJH','475180bOVtsn','GBAqz','./accessibility-helper','wZVMd','zJUns','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','join','../../helpers/test-observability/error-handler','inherit','isFalse','\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();','env','slice','filter','path','cWtGf','platform','error','12VuGhKs','finalExecution','cliConfig','resolve','../../helpers/logger','unlinkSync','XFUiN','3720805FRIgvL','MODULE','PNdig','yNtKl','xqYJa','errorMessage','testContextOptions','BROWSERSTACK_AUTOMATION','bCWyN','0|4|6|8|1|5|7|2|3','HzNYu','resolvedConfigFile','uTvya','playwright-browserstack-sdk.config.js','splice','win32','QgKBL','automation','./reporter/pwUtils','length','54dxtZkQ','cwd','qNfKa','push','../../helpers/accessibility-automation/helper','getPackageType','Pcdyo','390428pcpupi','config','initialize','.browserstack','PACKAGE_TYPE','10jQUNlh','myIZd','stop','BROWSERSTACK_TEST_ACCESSIBILITY_YML','requirePWModule','existsSync','TwxAS','map','dtREf','BROWSERSTACK_PW_CONFIG_DIR','AWBOa','uUgyU','PLAYWRIGHT','isUndefined','xvdxB','isTrue','xLzJe','TxICm','WGxFG','xSBDD','accessibility','IFKtc','argv','accessibilityOptions','../../helpers/BrowserStackSetup','writeFileSync','WJCjn','KIhHe','vYhFE','eXdmX','debug','../utils/constants','USER_CONFIG_DETAILS_PATH','browserstackSetupConfig.json','skipSessionName','parse','playwright','HpYGi','CYczd','Deleting\x20','skipSessionStatus','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','66678WtVKQP','MJqjK','gRMbN','--config=','48rlrzLe','--config','sUNfO','BrowserStack\x20config\x20file\x20not\x20found.','assign','Error\x20in\x20closing\x20playwright','MELZv','BROWSERSTACK_SETUP_CONFIG_PATH','Playwright\x20process\x20exited\x20with\x20code\x20','637146IZwmcE'];a35_0x385c=function(){return _0x554f82;};return a35_0x385c();}module['exports']=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a36_0x53404a=a36_0x4a31;(function(_0x5ea9e5,_0x38374d){const _0x3b7f8a=a36_0x4a31,_0x2ef026=_0x5ea9e5();while(!![]){try{const _0x4fd662=parseInt(_0x3b7f8a(0x111))/0x1*(-parseInt(_0x3b7f8a(0x112))/0x2)+parseInt(_0x3b7f8a(0xfc))/0x3+-parseInt(_0x3b7f8a(0xf0))/0x4+parseInt(_0x3b7f8a(0xec))/0x5+parseInt(_0x3b7f8a(0xeb))/0x6*(-parseInt(_0x3b7f8a(0x109))/0x7)+-parseInt(_0x3b7f8a(0x10e))/0x8*(-parseInt(_0x3b7f8a(0xfe))/0x9)+parseInt(_0x3b7f8a(0x100))/0xa*(-parseInt(_0x3b7f8a(0x107))/0xb);if(_0x4fd662===_0x38374d)break;else _0x2ef026['push'](_0x2ef026['shift']());}catch(_0x18933c){_0x2ef026['push'](_0x2ef026['shift']());}}}(a36_0x747d,0xa0096));function a36_0x4a31(_0x8b147a,_0x42794a){const _0x747d82=a36_0x747d();return a36_0x4a31=function(_0x4a3110,_0x4fb8d5){_0x4a3110=_0x4a3110-0xe3;let _0x3026ac=_0x747d82[_0x4a3110];return _0x3026ac;},a36_0x4a31(_0x8b147a,_0x42794a);}const util=require(a36_0x53404a(0xe8)),child_process=require(a36_0x53404a(0x106)),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{getFrameworkVersion,debug}=require(a36_0x53404a(0x108)),helper=require(a36_0x53404a(0x104)),{getLoadUtilsPath,getForkProcessPath}=require('./reporter/pwUtils'),{mockIsWorkerRedundant}=require(a36_0x53404a(0xe4)),logger=require(a36_0x53404a(0xf2))[a36_0x53404a(0xe6)];module['exports']=async function(_0x4eaeb2){const _0xfa8914=a36_0x53404a,_0x2bdbde={'YRdAr':function(_0x5acc86,_0xb623b5){return _0x5acc86(_0xb623b5);},'FcqJh':function(_0x36d83e){return _0x36d83e();},'oRtQh':'./mock-process.js','xvtkW':function(_0xafa54){return _0xafa54();},'mmPgk':function(_0x2460fe){return _0x2460fe();},'HoRqJ':_0xfa8914(0xe3),'bQgLw':function(_0x1dd15f,_0x12b36f){return _0x1dd15f(_0x12b36f);},'tgEpn':function(_0x4318e7,_0x1d67b8){return _0x4318e7>=_0x1d67b8;},'PgLcc':_0xfa8914(0xf6),'YQqGW':function(_0x52d586,_0x4557b6,_0xfef764){return _0x52d586(_0x4557b6,_0xfef764);},'BqebC':function(_0x5493de,_0x227bd9){return _0x5493de!==_0x227bd9;},'afcTb':_0xfa8914(0x117),'FcDOu':_0xfa8914(0x103),'gcSsH':function(_0x201030,_0x2feee9){return _0x201030(_0x2feee9);}},_0xcf4c08=child_process['fork'];if(helper[_0xfa8914(0x116)]())try{_0x2bdbde['mmPgk'](mockIsWorkerRedundant);}catch(_0x9fc474){logger[_0xfa8914(0x10d)](_0xfa8914(0xf3)+util['format'](_0x9fc474));}child_process[_0xfa8914(0x10c)]=function(){const _0x1b2902=_0xfa8914;return _0x2bdbde[_0x1b2902(0x105)](debug,_0x1b2902(0xef)+arguments[0x0]),arguments[0x0][_0x1b2902(0xea)](_0x2bdbde[_0x1b2902(0x10b)](getForkProcessPath))?arguments[0x0]=require[_0x1b2902(0xed)](_0x2bdbde[_0x1b2902(0x113)]):logger[_0x1b2902(0xee)](_0x1b2902(0x114)+_0x2bdbde[_0x1b2902(0x101)](getForkProcessPath)+_0x1b2902(0xfa)),_0xcf4c08[_0x1b2902(0x115)](null,arguments);};if(process['env'][_0xfa8914(0xff)]){_0x2bdbde[_0xfa8914(0x105)](debug,_0x2bdbde[_0xfa8914(0xf8)]);try{const {loadGlobalHook:_0xf742ef}=helper[_0xfa8914(0xfb)][_0xfa8914(0x115)](null,_0x2bdbde[_0xfa8914(0x101)](getLoadUtilsPath)),_0x2d2921=_0x2bdbde[_0xfa8914(0x10a)](getFrameworkVersion,FRAMEWORKS[_0xfa8914(0xe7)]);let _0x190a2e=_0x4eaeb2;if(_0x2bdbde[_0xfa8914(0xf5)](helper[_0xfa8914(0xf4)](_0x2d2921,_0x2bdbde[_0xfa8914(0x110)]),0x0)){const _0x54237d={};_0x54237d[_0xfa8914(0x10f)]=_0x4eaeb2,_0x190a2e=_0x54237d;}const _0x4751c8=await _0x2bdbde[_0xfa8914(0xf7)](_0xf742ef,_0x190a2e,process[_0xfa8914(0xf1)][_0xfa8914(0xff)]);if(_0x2bdbde[_0xfa8914(0x102)](typeof _0x4751c8,_0x2bdbde[_0xfa8914(0xe9)]))throw new Error(_0x2bdbde[_0xfa8914(0xfd)]);return _0x4751c8[_0xfa8914(0x115)](null,arguments);}catch(_0x29dd5d){_0x2bdbde['gcSsH'](debug,_0xfa8914(0xe5)+_0x29dd5d[_0xfa8914(0xf9)]());}}};function a36_0x747d(){const _0x356630=['../../helpers/logger','Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20','compareVersions','tgEpn','1.33.0','YQqGW','HoRqJ','toString','\x20is\x20not\x20found','requirePWModule','2162001wtSTMO','FcDOu','7004538qwlplj','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','10hIReSp','xvtkW','BqebC','Not\x20able\x20to\x20import\x20globalSetup','../../helpers/helper','YRdAr','child_process','10234136qAYywt','../../helpers/test-observability/utils','28GLugRo','bQgLw','FcqJh','fork','debug','8FQMjiD','config','PgLcc','641keGInu','134xYWDQO','oRtQh','Path\x20','apply','isHandlePWErrorSet','function','Running\x20existing\x20global\x20setup','./patches','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','winstonLogger','PLAYWRIGHT','util','afcTb','includes','534408OdYxUR','4227270UPwhiQ','resolve','error','Call\x20to\x20child\x20fork\x20with\x20args\x20','1437192WkmqBI','env'];a36_0x747d=function(){return _0x356630;};return a36_0x747d();}
|