browserstack-node-sdk 1.34.24 → 1.34.26
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/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.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/patchHelper.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
|
-
function a29_0x32d9(_0x3b5361,_0x54a3b5){const _0xae27f9=a29_0xae27();return a29_0x32d9=function(_0x32d9af,_0x2d93a5){_0x32d9af=_0x32d9af-0x102;let _0x22171c=_0xae27f9[_0x32d9af];return _0x22171c;},a29_0x32d9(_0x3b5361,_0x54a3b5);}const a29_0x2a1f73=a29_0x32d9;(function(_0x18bcdb,_0x1ec78e){const _0x54e208=a29_0x32d9,_0xb79c76=_0x18bcdb();while(!![]){try{const _0x348fcb=parseInt(_0x54e208(0x150))/0x1+parseInt(_0x54e208(0x148))/0x2+parseInt(_0x54e208(0x166))/0x3+parseInt(_0x54e208(0x15b))/0x4+-parseInt(_0x54e208(0x154))/0x5+parseInt(_0x54e208(0x135))/0x6*(parseInt(_0x54e208(0x127))/0x7)+parseInt(_0x54e208(0x147))/0x8*(-parseInt(_0x54e208(0x10f))/0x9);if(_0x348fcb===_0x1ec78e)break;else _0xb79c76['push'](_0xb79c76['shift']());}catch(_0x430a25){_0xb79c76['push'](_0xb79c76['shift']());}}}(a29_0xae27,0x462d2));const logger=require(a29_0x2a1f73(0x117))['winstonLogger'],helper=require(a29_0x2a1f73(0x113)),constants=require('../../../bin/utils/constants'),hubAllocator=require(a29_0x2a1f73(0x16e)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a29_0x2a1f73(0x109)),{setAccessibilityCapabilities,setExtension}=require(a29_0x2a1f73(0x119)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0x2a1f73(0x145)),globals=require(a29_0x2a1f73(0x14c)),{overrideExecute}=require(a29_0x2a1f73(0x129)),modify=(_0x2c96ac,_0x14f56a=null,_0x380819=![])=>{const _0x563375=a29_0x2a1f73,_0x325aa5={'eBoyl':function(_0x2485aa,_0x289b92){return _0x2485aa!==_0x289b92;},'MrYMw':'/session','vdXtJ':function(_0x356637,_0x56a140){return _0x356637!==_0x56a140;},'UFsmh':function(_0x583fc7,_0x48f59c){return _0x583fc7+_0x48f59c;},'eUoHl':_0x563375(0x15c),'XJPRx':_0x563375(0x11d),'hymco':'goog:chromeOptions','PYmUq':_0x563375(0x168),'sZTqx':_0x563375(0x158),'QleGr':_0x563375(0x162),'wLgQp':_0x563375(0x170),'quZWR':_0x563375(0x11b),'qWmny':_0x563375(0x167),'GZnzd':_0x563375(0x17c),'NFwME':_0x563375(0x13e),'xLuxN':function(_0x2bd77c,_0x5d3185){return _0x2bd77c===_0x5d3185;},'NNElB':'object','vucjl':_0x563375(0x176),'WgPHV':_0x563375(0x13b),'CFEiS':'OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','mnStF':function(_0x4d6584,_0x5d269d,_0x4599ce){return _0x4d6584(_0x5d269d,_0x4599ce);},'RMGWQ':function(_0x476e26,_0xe1df26,_0x78a2a5){return _0x476e26(_0xe1df26,_0x78a2a5);},'XMmGd':function(_0xe2c758,_0x349b59){return _0xe2c758(_0x349b59);},'aEYRp':function(_0x5e778d,_0x4d0b62,_0xf6ceb5){return _0x5e778d(_0x4d0b62,_0xf6ceb5);},'eqRfC':function(_0x418e44,_0x3e84ab,_0x4b43ff){return _0x418e44(_0x3e84ab,_0x4b43ff);},'ToaRk':_0x563375(0x152),'erVdB':'Running\x20your\x20test\x20suite\x20on\x20BrowserStack','hCWEg':function(_0x59fd71){return _0x59fd71();},'TqNTL':_0x563375(0x125),'elFcW':function(_0x2b03f9,_0x19de28){return _0x2b03f9!==_0x19de28;},'HYqpK':function(_0x308e3f,_0x3f0876){return _0x308e3f!==_0x3f0876;},'JDMFo':_0x563375(0x178),'CrQnz':_0x563375(0x122)},_0x2e0e13=helper[_0x563375(0x140)]();let _0x1c1cf6;try{_0x1c1cf6=helper[_0x563375(0x165)](),_0x1c1cf6[_0x563375(0x12d)]&&(_0x1c1cf6[_0x563375(0x11f)]=_0x1c1cf6[_0x563375(0x12d)]);}catch(_0x16224d){return;}if(helper[_0x563375(0x137)]()){const _0x3d0ab0={};_0x3d0ab0[_0x563375(0x10d)]=_0x2c96ac[_0x563375(0x175)],helper[_0x563375(0x153)](_0x3d0ab0,new Map(),new Map()),logger[_0x563375(0x15f)](_0x325aa5[_0x563375(0x120)]),logger[_0x563375(0x14a)](_0x325aa5['CrQnz']);}class _0x4a7fa4 extends _0x2e0e13[_0x563375(0x107)]{[_0x563375(0x123)](_0x3cc005){const _0x53ed67=_0x563375;if(_0x325aa5[_0x53ed67(0x156)](_0x3cc005[_0x53ed67(0x106)],_0x325aa5[_0x53ed67(0x14e)])&&_0x325aa5[_0x53ed67(0x114)](global[_0x53ed67(0x141)],''))try{global[_0x53ed67(0x141)]=_0x325aa5[_0x53ed67(0x169)](_0x325aa5[_0x53ed67(0x169)](_0x325aa5[_0x53ed67(0x142)],global[_0x53ed67(0x141)]),_0x325aa5[_0x53ed67(0x103)]),this[_0x53ed67(0x146)]=hubAllocator[_0x53ed67(0x16a)](global[_0x53ed67(0x141)]),logger[_0x53ed67(0x14a)]('New\x20hub\x20url\x20set\x20to\x20'+global[_0x53ed67(0x141)]),global[_0x53ed67(0x141)]='';}catch(_0x11f0ed){logger[_0x53ed67(0x14f)](_0x11f0ed);}return super[_0x53ed67(0x123)](_0x3cc005);}}class _0x1d9f68 extends _0x1c1cf6[_0x563375(0x11f)]{['setServer'](){const _0x51056d=_0x563375;return this[_0x51056d(0x160)]=helper[_0x51056d(0x16d)](_0x2c96ac),logger[_0x51056d(0x14a)](_0x51056d(0x12f)+this['url_']),this;}[_0x563375(0x138)](_0x14c047){const _0x10fdcf=_0x563375;let _0x5a27f0={};for(const _0xef003 in _0x14c047){switch(_0xef003){case _0x325aa5[_0x10fdcf(0x10b)]:case _0x325aa5[_0x10fdcf(0x12e)]:this['chromeOptions_']&&(_0x5a27f0=this[_0x10fdcf(0x126)]['get'](this['chromeOptions_'][_0x10fdcf(0x10a)])||{},this[_0x10fdcf(0x126)]['set'](this['chromeOptions_'][_0x10fdcf(0x10a)],helper[_0x10fdcf(0x108)](_0x5a27f0,_0x14c047[_0xef003])));break;case _0x325aa5[_0x10fdcf(0x10e)]:case _0x325aa5[_0x10fdcf(0x10c)]:this['edgeOptions_']&&(_0x5a27f0=this[_0x10fdcf(0x11c)]['get'](this[_0x10fdcf(0x11c)][_0x10fdcf(0x10a)])||{},this[_0x10fdcf(0x11c)][_0x10fdcf(0x118)](this[_0x10fdcf(0x11c)][_0x10fdcf(0x10a)],helper[_0x10fdcf(0x108)](_0x5a27f0,_0x14c047[_0xef003])));break;case _0x325aa5['wLgQp']:case _0x325aa5['quZWR']:this[_0x10fdcf(0x16c)]&&(_0x5a27f0=this[_0x10fdcf(0x16c)][_0x10fdcf(0x134)](this['firefoxOptions_'][_0x10fdcf(0x10a)])||{},this[_0x10fdcf(0x16c)][_0x10fdcf(0x118)](this[_0x10fdcf(0x16c)]['CAPABILITY_KEY'],helper[_0x10fdcf(0x108)](_0x5a27f0,_0x14c047[_0xef003])));break;case _0x325aa5['qWmny']:this[_0x10fdcf(0x112)]&&(_0x5a27f0=this[_0x10fdcf(0x112)][_0x10fdcf(0x134)](this['safariOptions_'][_0x10fdcf(0x10a)])||{},this['safariOptions_']['set'](this['safariOptions_'][_0x10fdcf(0x10a)],helper[_0x10fdcf(0x108)](_0x5a27f0,_0x14c047[_0xef003])));break;case _0x325aa5['GZnzd']:case _0x325aa5[_0x10fdcf(0x163)]:this[_0x10fdcf(0x124)]&&(_0x5a27f0=this['ieOptions_'][_0x10fdcf(0x134)](this[_0x10fdcf(0x124)][_0x10fdcf(0x10a)])||{},this['ieOptions_']['set'](this['ieOptions_'][_0x10fdcf(0x10a)],helper[_0x10fdcf(0x108)](_0x5a27f0,_0x14c047[_0xef003])));break;}}}['setCapabilities'](){const _0x28fb08=_0x563375,_0x258f1e={'UhSaG':function(_0x11a161,_0x2b46f9){const _0x50d2d8=a29_0x32d9;return _0x325aa5[_0x50d2d8(0x128)](_0x11a161,_0x2b46f9);},'QyCvU':_0x325aa5[_0x28fb08(0x110)]};return logger[_0x28fb08(0x14a)](_0x325aa5[_0x28fb08(0x171)]),this['__setBrowserOptions'](_0x2c96ac[_0x28fb08(0x12a)]),Object[_0x28fb08(0x11a)](_0x2c96ac['capability'])[_0x28fb08(0x121)](_0x5441a0=>{const _0x2145e6=_0x28fb08,_0x53e430=this[_0x2145e6(0x13a)]['get'](_0x5441a0);_0x258f1e[_0x2145e6(0x15a)](typeof _0x53e430,_0x258f1e[_0x2145e6(0x104)])?this[_0x2145e6(0x13a)]['set'](_0x5441a0,helper['mergeDeep'](_0x53e430,_0x2c96ac[_0x2145e6(0x12a)][_0x5441a0])):this[_0x2145e6(0x13a)][_0x2145e6(0x118)](_0x5441a0,_0x2c96ac[_0x2145e6(0x12a)][_0x5441a0]);}),this;}['build'](){const _0x5ca46c=_0x563375,_0x2ff4b0={'GymPC':function(_0x51de4c,_0x3cb0ee,_0x34c270){const _0x2e01cf=a29_0x32d9;return _0x325aa5[_0x2e01cf(0x139)](_0x51de4c,_0x3cb0ee,_0x34c270);},'iOGoi':function(_0x331922,_0x2b852e,_0x5b0cef){const _0xadcce1=a29_0x32d9;return _0x325aa5[_0xadcce1(0x133)](_0x331922,_0x2b852e,_0x5b0cef);}};if(helper[_0x5ca46c(0x137)]()){const _0x3ef281=_0x325aa5[_0x5ca46c(0x12b)]['split']('|');let _0x4feb8d=0x0;while(!![]){switch(_0x3ef281[_0x4feb8d++]){case'0':logger[_0x5ca46c(0x14a)](_0x325aa5[_0x5ca46c(0x105)]);continue;case'1':if(helper['isPacProxy'](_0x2c96ac['proxySettings'][_0x5ca46c(0x111)]))this[_0x5ca46c(0x13c)]=helper[_0x5ca46c(0x144)](_0x2c96ac[_0x5ca46c(0x173)]['proxyUrl']);else _0x2c96ac[_0x5ca46c(0x173)][_0x5ca46c(0x111)]&&(this[_0x5ca46c(0x174)]=_0x2c96ac[_0x5ca46c(0x173)][_0x5ca46c(0x111)],logger[_0x5ca46c(0x14a)](_0x5ca46c(0x13d)+this[_0x5ca46c(0x174)]));continue;case'2':this[_0x5ca46c(0x12c)]();continue;case'3':_0x325aa5[_0x5ca46c(0x159)](isAccessibilityAutomationSession)&&_0x325aa5[_0x5ca46c(0x143)](setAccessibilityCapabilities,_0x2c96ac);continue;case'4':globals['getGlobal'](_0x325aa5['TqNTL'])&&(!_0x325aa5[_0x5ca46c(0x139)](setExtension,this,_0x2c96ac)&&globals[_0x5ca46c(0x131)](_0x325aa5[_0x5ca46c(0x15d)],![]));continue;case'5':this[_0x5ca46c(0x155)]();continue;}break;}}const _0x3b382a=super['build']();return _0x3b382a[_0x5ca46c(0x161)]['then'](_0x175f5a=>{const _0x412669=_0x5ca46c;try{const _0x4deea8=_0x175f5a['caps_'][_0x412669(0x134)](_0x325aa5[_0x412669(0x149)]);_0x4deea8?(logger[_0x412669(0x14a)](_0x412669(0x14b)+_0x4deea8),hubAllocator[_0x412669(0x16b)](_0x4deea8),helper['storeOptimalHubUrl'](_0x4deea8)):logger[_0x412669(0x14a)](_0x325aa5[_0x412669(0x164)]);}catch(_0x3e4e73){logger['debug'](_0x412669(0x132)+_0x3e4e73);}}),_0x3b382a['quitCount_']=0x0,_0x3b382a['then']&&_0x3b382a[_0x5ca46c(0x16f)](_0x328bd5=>{const _0x4db40b=_0x5ca46c,_0x262d1f={'NZrVL':function(_0x2dc607,_0x4fb8d1,_0x34fd75){return _0x325aa5['mnStF'](_0x2dc607,_0x4fb8d1,_0x34fd75);}};_0x325aa5[_0x4db40b(0x115)](overrideQuit,_0x328bd5,_0x3b382a),_0x325aa5[_0x4db40b(0x143)](overrideTakeScreenshot,_0x328bd5),helper[_0x4db40b(0x177)](_0x328bd5,_0x2c96ac),_0x325aa5[_0x4db40b(0x139)](overrideExecute,_0x328bd5,_0x2c96ac),_0x328bd5['getAccessibilityResultsSummary']=async()=>{const _0x464dd2=_0x4db40b;return await _0x262d1f[_0x464dd2(0x17a)](getAccessibilityResultsSummary,_0x328bd5,global);},_0x328bd5[_0x4db40b(0x172)]=async()=>{return await _0x2ff4b0['GymPC'](getAccessibilityResults,_0x328bd5,global);};}),_0x3b382a[_0x5ca46c(0x151)]=async()=>{return await _0x2ff4b0['GymPC'](getAccessibilityResultsSummary,_0x3b382a,global);},_0x3b382a[_0x5ca46c(0x172)]=async()=>{const _0x32d93f=_0x5ca46c;return await _0x2ff4b0[_0x32d93f(0x116)](getAccessibilityResults,_0x3b382a,global);},_0x325aa5[_0x5ca46c(0x143)](overrideTakeScreenshot,_0x3b382a),_0x325aa5[_0x5ca46c(0x143)](overrideQuit,_0x3b382a),helper[_0x5ca46c(0x177)](_0x3b382a,_0x2c96ac),_0x325aa5['aEYRp'](overrideExecute,_0x3b382a,_0x2c96ac),helper[_0x5ca46c(0x15e)](global['__driversArray'])&&(global[_0x5ca46c(0x17b)]=[]),helper[_0x5ca46c(0x15e)](global['__drivers'])&&(global['__drivers']=[]),global['__driversArray']['push'](_0x3b382a),global[_0x5ca46c(0x179)]=_0x3b382a,_0x325aa5[_0x5ca46c(0x11e)](global['__drivers'],undefined)&&global[_0x5ca46c(0x14d)]['push'](_0x3b382a),_0x14f56a&&helper[_0x5ca46c(0x15e)](_0x14f56a[_0x5ca46c(0x157)][_0x5ca46c(0x17b)])&&(_0x14f56a['global']['__driversArray']=[]),_0x14f56a&&_0x325aa5[_0x5ca46c(0x13f)](_0x14f56a[_0x5ca46c(0x157)]['__drivers'],undefined)&&(_0x14f56a[_0x5ca46c(0x157)][_0x5ca46c(0x14d)][_0x5ca46c(0x136)](_0x3b382a),_0x14f56a['global'][_0x5ca46c(0x17b)][_0x5ca46c(0x136)](_0x3b382a)),_0x3b382a;}}return _0x1c1cf6['originalBuilder']=_0x1c1cf6[_0x563375(0x11f)],_0x1c1cf6[_0x563375(0x11f)]=_0x1d9f68,_0x2e0e13[_0x563375(0x107)]=_0x4a7fa4,_0x1c1cf6;};module[a29_0x2a1f73(0x130)][a29_0x2a1f73(0x102)]=modify;function a29_0xae27(){const _0x31c475=['QyCvU','erVdB','path','HttpClient','mergeDeep','../../../helpers/patchHelpers','CAPABILITY_KEY','hymco','QleGr','logLevel','sZTqx','153pXnaVT','NNElB','proxyUrl','safariOptions_','../../../helpers/helper','vdXtJ','RMGWQ','iOGoi','../../../helpers/logger','set','../accessibility-automation/helper','keys','firefoxOptions','edgeOptions_','/wd/hub','elFcW','Builder','JDMFo','forEach','Modifying\x20webdriver\x20builder','send','ieOptions_','isAccessibilityPlatform','chromeOptions_','77OOrPEO','xLuxN','./helpers/patchHelper','capability','ToaRk','setServer','originalBuilder','PYmUq','Hub\x20url\x20set\x20to\x20','exports','setGlobal','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','eqRfC','get','163236PAbGIQ','push','isBrowserstackInfra','__setBrowserOptions','aEYRp','capabilities_','optimalHubUrl','agent_','Proxy\x20set\x20to\x20','ieOptions','HYqpK','requireHttpClient','newHubUrl','eUoHl','XMmGd','getHttpAgent','../../../helpers/accessibility-automation/helper','options_','605088MQalLl','1052604CACrwa','WgPHV','debug','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','../../../helpers/globals','__drivers','MrYMw','error','463344WqYpFQ','getAccessibilityResultsSummary','3|2|5|1|4|0','setLogLevel','984550wHjgap','setCapabilities','eBoyl','global','ms:edgeOptions','hCWEg','UhSaG','544912IzGLiH','https://','TqNTL','isUndefined','info','url_','session_','edgeOptions','NFwME','CFEiS','requireSeleniumWebdriver','1035072GlSAKO','safari.options','chromeOptions','UFsmh','getRequestOptions','updateHubUrl','firefoxOptions_','getHubUrl','../../../hubAllocationMethods','then','moz:firefoxOptions','vucjl','getAccessibilityResults','proxySettings','proxy_','browserStackLogLevel','Setting\x20Browserstack\x20capabilities','overrideGet','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','__driver','NZrVL','__driversArray','se:ieOptions','browserstackAgentObservability','XJPRx'];a29_0xae27=function(){return _0x31c475;};return a29_0xae27();}
|
|
1
|
+
const a29_0x4c9e18=a29_0x43ca;function a29_0x43ca(_0x375f09,_0x34be0f){const _0x432a72=a29_0x432a();return a29_0x43ca=function(_0x43ca30,_0x511add){_0x43ca30=_0x43ca30-0x154;let _0x3c4dc8=_0x432a72[_0x43ca30];return _0x3c4dc8;},a29_0x43ca(_0x375f09,_0x34be0f);}(function(_0x4029aa,_0x21da56){const _0x574a78=a29_0x43ca,_0x3fa23a=_0x4029aa();while(!![]){try{const _0x185d41=parseInt(_0x574a78(0x186))/0x1+-parseInt(_0x574a78(0x163))/0x2*(-parseInt(_0x574a78(0x15f))/0x3)+-parseInt(_0x574a78(0x1ac))/0x4*(parseInt(_0x574a78(0x157))/0x5)+-parseInt(_0x574a78(0x1b1))/0x6*(parseInt(_0x574a78(0x1c1))/0x7)+parseInt(_0x574a78(0x1af))/0x8*(-parseInt(_0x574a78(0x1a1))/0x9)+parseInt(_0x574a78(0x1ab))/0xa*(parseInt(_0x574a78(0x181))/0xb)+parseInt(_0x574a78(0x16d))/0xc*(-parseInt(_0x574a78(0x17f))/0xd);if(_0x185d41===_0x21da56)break;else _0x3fa23a['push'](_0x3fa23a['shift']());}catch(_0x3187bd){_0x3fa23a['push'](_0x3fa23a['shift']());}}}(a29_0x432a,0x7f793));const logger=require(a29_0x4c9e18(0x1c5))[a29_0x4c9e18(0x1a4)],helper=require(a29_0x4c9e18(0x1bf)),constants=require(a29_0x4c9e18(0x175)),hubAllocator=require(a29_0x4c9e18(0x17d)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a29_0x4c9e18(0x19a)),{setAccessibilityCapabilities,setExtension}=require(a29_0x4c9e18(0x16b)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0x4c9e18(0x1b6)),globals=require('../../../helpers/globals'),{overrideExecute}=require(a29_0x4c9e18(0x166)),modify=(_0x4aa19b,_0x3ceac9=null,_0x3a4aa6=![])=>{const _0xebf436=a29_0x4c9e18,_0x893a39={'VHPiG':function(_0x178cff,_0x118781){return _0x178cff!==_0x118781;},'pruro':_0xebf436(0x189),'fOTUA':function(_0x597d93,_0x39c709){return _0x597d93+_0x39c709;},'XJNnz':function(_0x211f3f,_0x47aa92){return _0x211f3f+_0x47aa92;},'AfgRU':_0xebf436(0x19e),'UhVzj':'/wd/hub','lRWpQ':_0xebf436(0x1bc),'wvDdp':'chromeOptions','VkDUe':'ms:edgeOptions','XMNow':_0xebf436(0x1c6),'AmlFJ':'moz:firefoxOptions','QMNTp':_0xebf436(0x1a0),'EsRUt':_0xebf436(0x179),'SqyLf':'se:ieOptions','XfwJV':'ieOptions','ryAev':function(_0x54b91c,_0x31d56a){return _0x54b91c===_0x31d56a;},'HkbYx':_0xebf436(0x16a),'TXuFR':'Setting\x20Browserstack\x20capabilities','YzkDd':function(_0x7b3d6a,_0x37206e,_0x64f8b4){return _0x7b3d6a(_0x37206e,_0x64f8b4);},'GbghA':_0xebf436(0x190),'gJfKm':_0xebf436(0x15b),'gIcLi':function(_0x2450f1,_0x2934ef){return _0x2450f1(_0x2934ef);},'EzoAR':'4|0|5|2|3|1','YfBwh':'Running\x20your\x20test\x20suite\x20on\x20BrowserStack','hyOfu':_0xebf436(0x171),'WKWes':function(_0x1a45a3){return _0x1a45a3();},'zXgXE':function(_0x43fd8b,_0x5233db){return _0x43fd8b(_0x5233db);},'jRnVa':function(_0x50c4aa,_0x3cc3dc){return _0x50c4aa(_0x3cc3dc);},'BEKdU':function(_0x2f2a7a,_0x38a4e0,_0x458f94){return _0x2f2a7a(_0x38a4e0,_0x458f94);},'jIWNw':function(_0x2c2c6e,_0x461b23){return _0x2c2c6e!==_0x461b23;},'VvPVD':_0xebf436(0x1aa),'pHLRG':_0xebf436(0x168)},_0x59807e=helper['requireHttpClient']();let _0x49d6fb;try{_0x49d6fb=helper[_0xebf436(0x1a7)](),_0x49d6fb[_0xebf436(0x155)]&&(_0x49d6fb[_0xebf436(0x18e)]=_0x49d6fb[_0xebf436(0x155)]);}catch(_0x5d9e3d){return;}if(helper['isBrowserstackInfra']()){const _0x3a49ee={};_0x3a49ee['logLevel']=_0x4aa19b[_0xebf436(0x191)],helper[_0xebf436(0x1c0)](_0x3a49ee,new Map(),new Map()),logger[_0xebf436(0x1be)](_0x893a39[_0xebf436(0x1ba)]),logger[_0xebf436(0x18b)](_0x893a39[_0xebf436(0x19d)]);}class _0x42625b extends _0x59807e['HttpClient']{[_0xebf436(0x16c)](_0x12ef33){const _0xd19b3d=_0xebf436;if(_0x893a39[_0xd19b3d(0x1a5)](_0x12ef33[_0xd19b3d(0x18d)],_0x893a39[_0xd19b3d(0x178)])&&_0x893a39[_0xd19b3d(0x1a5)](global[_0xd19b3d(0x18f)],''))try{global[_0xd19b3d(0x18f)]=_0x893a39['fOTUA'](_0x893a39[_0xd19b3d(0x19f)](_0x893a39['AfgRU'],global[_0xd19b3d(0x18f)]),_0x893a39['UhVzj']),this['options_']=hubAllocator[_0xd19b3d(0x194)](global['newHubUrl']),logger[_0xd19b3d(0x18b)](_0xd19b3d(0x1bd)+global['newHubUrl']),global[_0xd19b3d(0x18f)]='';}catch(_0x3d0189){logger[_0xd19b3d(0x197)](_0x3d0189);}return super['send'](_0x12ef33);}}class _0x239ee2 extends _0x49d6fb[_0xebf436(0x18e)]{[_0xebf436(0x192)](){const _0x21c4b9=_0xebf436;return this[_0x21c4b9(0x15c)]=helper['getHubUrl'](_0x4aa19b),logger[_0x21c4b9(0x18b)]('Hub\x20url\x20set\x20to\x20'+this[_0x21c4b9(0x15c)]),this;}['__setBrowserOptions'](_0x52c281){const _0x52f942=_0xebf436;let _0x5dba0e={};for(const _0x3da2eb in _0x52c281){switch(_0x3da2eb){case _0x893a39[_0x52f942(0x17e)]:case _0x893a39[_0x52f942(0x16f)]:this[_0x52f942(0x17c)]&&(_0x5dba0e=this['chromeOptions_'][_0x52f942(0x1c2)](this['chromeOptions_'][_0x52f942(0x159)])||{},this[_0x52f942(0x17c)]['set'](this['chromeOptions_']['CAPABILITY_KEY'],helper[_0x52f942(0x1a3)](_0x5dba0e,_0x52c281[_0x3da2eb])));break;case _0x893a39['VkDUe']:case _0x893a39[_0x52f942(0x158)]:this['edgeOptions_']&&(_0x5dba0e=this[_0x52f942(0x18c)][_0x52f942(0x1c2)](this[_0x52f942(0x18c)]['CAPABILITY_KEY'])||{},this[_0x52f942(0x18c)][_0x52f942(0x1a6)](this[_0x52f942(0x18c)][_0x52f942(0x159)],helper['mergeDeep'](_0x5dba0e,_0x52c281[_0x3da2eb])));break;case _0x893a39[_0x52f942(0x162)]:case _0x893a39['QMNTp']:this[_0x52f942(0x188)]&&(_0x5dba0e=this[_0x52f942(0x188)][_0x52f942(0x1c2)](this[_0x52f942(0x188)][_0x52f942(0x159)])||{},this[_0x52f942(0x188)][_0x52f942(0x1a6)](this['firefoxOptions_']['CAPABILITY_KEY'],helper['mergeDeep'](_0x5dba0e,_0x52c281[_0x3da2eb])));break;case _0x893a39['EsRUt']:this[_0x52f942(0x19c)]&&(_0x5dba0e=this['safariOptions_']['get'](this[_0x52f942(0x19c)][_0x52f942(0x159)])||{},this['safariOptions_']['set'](this[_0x52f942(0x19c)][_0x52f942(0x159)],helper[_0x52f942(0x1a3)](_0x5dba0e,_0x52c281[_0x3da2eb])));break;case _0x893a39['SqyLf']:case _0x893a39['XfwJV']:this[_0x52f942(0x154)]&&(_0x5dba0e=this[_0x52f942(0x154)]['get'](this['ieOptions_'][_0x52f942(0x159)])||{},this[_0x52f942(0x154)][_0x52f942(0x1a6)](this[_0x52f942(0x154)][_0x52f942(0x159)],helper[_0x52f942(0x1a3)](_0x5dba0e,_0x52c281[_0x3da2eb])));break;}}}['setCapabilities'](){const _0x309300=_0xebf436;return logger['debug'](_0x893a39[_0x309300(0x1a9)]),this[_0x309300(0x15a)](_0x4aa19b[_0x309300(0x1b0)]),Object['keys'](_0x4aa19b['capability'])[_0x309300(0x177)](_0x54ebf7=>{const _0x286654=_0x309300,_0x189341=this[_0x286654(0x1a8)][_0x286654(0x1c2)](_0x54ebf7);_0x893a39[_0x286654(0x176)](typeof _0x189341,_0x893a39[_0x286654(0x185)])?this[_0x286654(0x1a8)][_0x286654(0x1a6)](_0x54ebf7,helper[_0x286654(0x1a3)](_0x189341,_0x4aa19b[_0x286654(0x1b0)][_0x54ebf7])):this[_0x286654(0x1a8)][_0x286654(0x1a6)](_0x54ebf7,_0x4aa19b[_0x286654(0x1b0)][_0x54ebf7]);}),this;}[_0xebf436(0x16e)](){const _0x18e63a=_0xebf436,_0x524d07={'liFtK':_0x893a39[_0x18e63a(0x1c7)],'bScNh':_0x893a39['gJfKm'],'btexS':function(_0x3c57d2,_0x7a24d,_0x444cd1){const _0x16ea85=_0x18e63a;return _0x893a39[_0x16ea85(0x1c4)](_0x3c57d2,_0x7a24d,_0x444cd1);},'mopEp':function(_0x44d84d,_0x4c82af){const _0x337f52=_0x18e63a;return _0x893a39[_0x337f52(0x173)](_0x44d84d,_0x4c82af);},'OaQUl':function(_0x287991,_0x4245f4,_0x38dfa7){return _0x893a39['YzkDd'](_0x287991,_0x4245f4,_0x38dfa7);}};if(helper[_0x18e63a(0x160)]()){const _0x2a20a7=_0x893a39[_0x18e63a(0x187)]['split']('|');let _0x4f931c=0x0;while(!![]){switch(_0x2a20a7[_0x4f931c++]){case'0':this['setServer']();continue;case'1':logger[_0x18e63a(0x18b)](_0x893a39[_0x18e63a(0x15e)]);continue;case'2':if(helper['isPacProxy'](_0x4aa19b['proxySettings'][_0x18e63a(0x182)]))this[_0x18e63a(0x1b2)]=helper[_0x18e63a(0x17b)](_0x4aa19b[_0x18e63a(0x1b9)][_0x18e63a(0x182)]);else _0x4aa19b['proxySettings'][_0x18e63a(0x182)]&&(this[_0x18e63a(0x1b4)]=_0x4aa19b[_0x18e63a(0x1b9)][_0x18e63a(0x182)],logger[_0x18e63a(0x18b)](_0x18e63a(0x15d)+this[_0x18e63a(0x1b4)]));continue;case'3':globals[_0x18e63a(0x196)](_0x893a39[_0x18e63a(0x1ae)])&&(!_0x893a39[_0x18e63a(0x1c4)](setExtension,this,_0x4aa19b)&&globals[_0x18e63a(0x193)](_0x893a39['hyOfu'],![]));continue;case'4':_0x893a39[_0x18e63a(0x1b3)](isAccessibilityAutomationSession)&&_0x893a39[_0x18e63a(0x1bb)](setAccessibilityCapabilities,_0x4aa19b);continue;case'5':this[_0x18e63a(0x156)]();continue;}break;}}const _0x44c16b=super[_0x18e63a(0x16e)]();return _0x44c16b['session_'][_0x18e63a(0x1b5)](_0x39c0bd=>{const _0x486b66=_0x18e63a;try{const _0x2fd76f=_0x39c0bd[_0x486b66(0x1b7)]['get'](_0x524d07[_0x486b66(0x17a)]);_0x2fd76f?(logger[_0x486b66(0x18b)](_0x486b66(0x172)+_0x2fd76f),hubAllocator['updateHubUrl'](_0x2fd76f),helper[_0x486b66(0x174)](_0x2fd76f)):logger[_0x486b66(0x18b)](_0x524d07[_0x486b66(0x180)]);}catch(_0x2c7603){logger['debug']('ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20'+_0x2c7603);}}),_0x44c16b[_0x18e63a(0x183)]=0x0,_0x44c16b[_0x18e63a(0x1b5)]&&_0x44c16b[_0x18e63a(0x1b5)](_0x12c8a0=>{const _0x37f6e0=_0x18e63a,_0x2aaa04={'CpEXG':function(_0x47ead6,_0x50f72a,_0x3818d5){return _0x524d07['btexS'](_0x47ead6,_0x50f72a,_0x3818d5);}};_0x524d07[_0x37f6e0(0x198)](overrideQuit,_0x12c8a0,_0x44c16b),_0x524d07['mopEp'](overrideTakeScreenshot,_0x12c8a0),helper[_0x37f6e0(0x19b)](_0x12c8a0,_0x4aa19b),_0x524d07[_0x37f6e0(0x198)](overrideExecute,_0x12c8a0,_0x4aa19b),_0x12c8a0[_0x37f6e0(0x199)]=async()=>{const _0x2f85ad=_0x37f6e0;return await _0x2aaa04[_0x2f85ad(0x1b8)](getAccessibilityResultsSummary,_0x12c8a0,global);},_0x12c8a0[_0x37f6e0(0x1ad)]=async()=>{const _0x5ab80f=_0x37f6e0;return await _0x2aaa04[_0x5ab80f(0x1b8)](getAccessibilityResults,_0x12c8a0,global);};}),_0x44c16b[_0x18e63a(0x199)]=async()=>{return await _0x524d07['OaQUl'](getAccessibilityResultsSummary,_0x44c16b,global);},_0x44c16b[_0x18e63a(0x1ad)]=async()=>{const _0x18ea45=_0x18e63a;return await _0x893a39[_0x18ea45(0x1c4)](getAccessibilityResults,_0x44c16b,global);},_0x893a39[_0x18e63a(0x1c3)](overrideTakeScreenshot,_0x44c16b),_0x893a39[_0x18e63a(0x1bb)](overrideQuit,_0x44c16b),helper[_0x18e63a(0x19b)](_0x44c16b,_0x4aa19b),_0x893a39[_0x18e63a(0x184)](overrideExecute,_0x44c16b,_0x4aa19b),helper[_0x18e63a(0x167)](global[_0x18e63a(0x1a2)])&&(global[_0x18e63a(0x1a2)]=[]),helper[_0x18e63a(0x167)](global[_0x18e63a(0x170)])&&(global[_0x18e63a(0x170)]=[]),global[_0x18e63a(0x1a2)][_0x18e63a(0x195)](_0x44c16b),global[_0x18e63a(0x164)]=_0x44c16b,_0x893a39['VHPiG'](global[_0x18e63a(0x170)],undefined)&&global[_0x18e63a(0x170)][_0x18e63a(0x195)](_0x44c16b),_0x3ceac9&&helper[_0x18e63a(0x167)](_0x3ceac9[_0x18e63a(0x161)]['__driversArray'])&&(_0x3ceac9[_0x18e63a(0x161)][_0x18e63a(0x1a2)]=[]),_0x3ceac9&&_0x893a39['jIWNw'](_0x3ceac9[_0x18e63a(0x161)][_0x18e63a(0x170)],undefined)&&(_0x3ceac9[_0x18e63a(0x161)][_0x18e63a(0x170)][_0x18e63a(0x195)](_0x44c16b),_0x3ceac9['global'][_0x18e63a(0x1a2)][_0x18e63a(0x195)](_0x44c16b)),_0x44c16b;}}return _0x49d6fb[_0xebf436(0x155)]=_0x49d6fb[_0xebf436(0x18e)],_0x49d6fb[_0xebf436(0x18e)]=_0x239ee2,_0x59807e[_0xebf436(0x18a)]=_0x42625b,_0x49d6fb;};function a29_0x432a(){const _0x2c5d2c=['New\x20hub\x20url\x20set\x20to\x20','info','../../../helpers/helper','setLogLevel','1071959lRTmdG','get','jRnVa','YzkDd','../../../helpers/logger','edgeOptions','GbghA','ieOptions_','originalBuilder','setCapabilities','2805070apvVhg','XMNow','CAPABILITY_KEY','__setBrowserOptions','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','url_','Proxy\x20set\x20to\x20','YfBwh','6iRXMPH','isBrowserstackInfra','global','AmlFJ','737542bmnpNi','__driver','exports','./helpers/patchHelper','isUndefined','Modifying\x20webdriver\x20builder','browserstackAgentObservability','object','../accessibility-automation/helper','send','98220RhsAAf','build','wvDdp','__drivers','isAccessibilityPlatform','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','gIcLi','storeOptimalHubUrl','../../../bin/utils/constants','ryAev','forEach','pruro','safari.options','liFtK','getHttpAgent','chromeOptions_','../../../hubAllocationMethods','lRWpQ','507xObOVy','bScNh','11DTcLqs','proxyUrl','quitCount_','BEKdU','HkbYx','927640ZjAwtx','EzoAR','firefoxOptions_','/session','HttpClient','debug','edgeOptions_','path','Builder','newHubUrl','optimalHubUrl','browserStackLogLevel','setServer','setGlobal','getRequestOptions','push','getGlobal','error','btexS','getAccessibilityResultsSummary','../../../helpers/patchHelpers','overrideGet','safariOptions_','pHLRG','https://','XJNnz','firefoxOptions','1069542qhUgfw','__driversArray','mergeDeep','winstonLogger','VHPiG','set','requireSeleniumWebdriver','capabilities_','TXuFR','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','3154270mtdjTO','4WDYUeQ','getAccessibilityResults','hyOfu','8ejxgqf','capability','18qPXxoW','agent_','WKWes','proxy_','then','../../../helpers/accessibility-automation/helper','caps_','CpEXG','proxySettings','VvPVD','zXgXE','goog:chromeOptions'];a29_0x432a=function(){return _0x2c5d2c;};return a29_0x432a();}module[a29_0x4c9e18(0x165)][a29_0x4c9e18(0x169)]=modify;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a30_0x3f7706=a30_0x3e14;function a30_0x42fd(){const _0x3efb32=['../../../bin/utils/constants','1220030PbpBoW','68BNiUVX','restore','179650OTHrma','90WpmWDL','5345178jtqjkK','370542PHbvrP','175HurrVM','timeout','10611264stxizm','riDnj','148527prLfUw','1871168fUGvUI','../../../helpers/request-spy'];a30_0x42fd=function(){return _0x3efb32;};return a30_0x42fd();}(function(_0x417587,_0x1dc9c5){const _0x505361=a30_0x3e14,_0x56eaa3=_0x417587();while(!![]){try{const _0x39f577=parseInt(_0x505361(0xb4))/0x1+-parseInt(_0x505361(0xb1))/0x2+-parseInt(_0x505361(0xb9))/0x3+-parseInt(_0x505361(0xb5))/0x4*(parseInt(_0x505361(0xb7))/0x5)+parseInt(_0x505361(0xab))/0x6*(parseInt(_0x505361(0xac))/0x7)+parseInt(_0x505361(0xae))/0x8+parseInt(_0x505361(0xb0))/0x9*(parseInt(_0x505361(0xb8))/0xa);if(_0x39f577===_0x1dc9c5)break;else _0x56eaa3['push'](_0x56eaa3['shift']());}catch(_0x18df4f){_0x56eaa3['push'](_0x56eaa3['shift']());}}}(a30_0x42fd,0xde5b2));function a30_0x3e14(_0x4b4390,_0x15ab2d){const _0x42fd2f=a30_0x42fd();return a30_0x3e14=function(_0x3e1420,_0x277323){_0x3e1420=_0x3e1420-0xab;let _0xde29d6=_0x42fd2f[_0x3e1420];return _0xde29d6;},a30_0x3e14(_0x4b4390,_0x15ab2d);}const requestSpy=require(a30_0x3f7706(0xb2)),constants=require(a30_0x3f7706(0xb3)),{addRequestSpy}=require('../../../helpers/test-observability/utils');exports['mochaHooks']={'beforeAll'(){const _0x5b37c7=a30_0x3f7706,_0x306feb={'riDnj':function(_0x47bf5d){return _0x47bf5d();}},_0x3f551e='browserstack internal helper hook';_0x306feb[_0x5b37c7(0xaf)](addRequestSpy);},'afterAll'(){const _0x4fa685=a30_0x3f7706,_0x2a7cd3='browserstack internal helper hook';this[_0x4fa685(0xad)](0xea60),requestSpy[_0x4fa685(0xb6)]();}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a31_0x44ef00=a31_0x5504;(function(_0x28207b,_0x328b6e){const _0x5ee0d6=a31_0x5504,_0x3c0944=_0x28207b();while(!![]){try{const _0x1f24b5=parseInt(_0x5ee0d6(0x1c8))/0x1+parseInt(_0x5ee0d6(0x1ad))/0x2+parseInt(_0x5ee0d6(0x1b4))/0x3*(parseInt(_0x5ee0d6(0x1bd))/0x4)+-parseInt(_0x5ee0d6(0x1d0))/0x5*(parseInt(_0x5ee0d6(0x1ab))/0x6)+-parseInt(_0x5ee0d6(0x1de))/0x7+-parseInt(_0x5ee0d6(0x1c5))/0x8+parseInt(_0x5ee0d6(0x1ba))/0x9*(parseInt(_0x5ee0d6(0x1e4))/0xa);if(_0x1f24b5===_0x328b6e)break;else _0x3c0944['push'](_0x3c0944['shift']());}catch(_0x4bb980){_0x3c0944['push'](_0x3c0944['shift']());}}}(a31_0x1c8f,0xcba40));function a31_0x5504(_0x47a715,_0x35e5e4){const _0x1c8f28=a31_0x1c8f();return a31_0x5504=function(_0x55041e,_0x538ecd){_0x55041e=_0x55041e-0x19d;let _0x34e2b0=_0x1c8f28[_0x55041e];return _0x34e2b0;},a31_0x5504(_0x47a715,_0x35e5e4);}function a31_0x1c8f(){const _0x3beedb=['721945HsqsAF','_beforeEach','ppSaR','stANp','bs:addPlatformDetails:','passed','state','markedStatus','hook:','EGSLB','_afterAll','getBrowserName','pid','doGJM','6686330mufqog','getHookDetails','ucVbj','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','emit','RwGJQ','1898100qqISMu','getBrowserVersion','indexOf','nFQTw','getHookSkippedTests','map_','_beforeAll','reduce','../../../helpers/test-observability/constants','push','unknown_grid','sendPlatformDetails','concat','hookAnalyticsId','fromEntries','tests','toISOString','svchV','__cloud_provider___','pending','getCapabilities','ivLoo','forEach','36ngmjby','WZpTW','2015104CWbIfZ','_afterEach','../../../../package.json','wrwBP','../../../helpers/testhub/utils','slice','toJSON','2361633CNiIQg','Awnqp','getPlatform','gvMlx','qBXWm','browserstack','45WBanle','nyzxO','split','8fVtilZ','cCckl','lodash','js-','VTjYo','getHooksForTest','uJyVb','inVUx','12615304mQHqfL','MBwfk','string','701525XwCOFz','ioEOy','substring','getSession','caesA','parent','failed','../../../helpers/test-observability/utils'];a31_0x1c8f=function(){return _0x3beedb;};return a31_0x1c8f();}const {v4:uuidv4}=require('uuid'),{name,version}=require(a31_0x44ef00(0x1af)),logPatcher=require('../../utils/logPatcher'),BSTestOpsPatcher=new logPatcher({}),{debug,isInternalHook,getObservabilityLinkedProductName}=require(a31_0x44ef00(0x1cf)),{consoleHolder}=require(a31_0x44ef00(0x1ec)),{getPlatformVersion}=require('../../../helpers/helper'),{shouldProcessEventForTesthub}=require(a31_0x44ef00(0x1b1)),{isFunction}=require(a31_0x44ef00(0x1bf)),{patchConsoleLogger}=require(a31_0x44ef00(0x1cf));patchConsoleLogger(),exports['getTestEnv']=()=>{const _0x6b20a1=a31_0x44ef00,_0x4623fa={'hQctG':'generic','RwGJQ':function(_0x5dd2f7){return _0x5dd2f7();}};return{'ci':_0x4623fa['hQctG'],'key':_0x4623fa[_0x6b20a1(0x1e3)](uuidv4),'version':version,'collector':_0x6b20a1(0x1c0)+name};},exports[a31_0x44ef00(0x1df)]=_0x53b24f=>{const _0x3345cc=a31_0x44ef00,_0x113c03={};_0x113c03[_0x3345cc(0x1b8)]=function(_0x3d720c,_0x1fb280){return _0x3d720c!==_0x1fb280;},_0x113c03['UPVKi']=_0x3345cc(0x1c7),_0x113c03[_0x3345cc(0x1dd)]=_0x3345cc(0x1d8),_0x113c03[_0x3345cc(0x1c3)]='hook';const _0x2cbdb2=_0x113c03;if(!_0x53b24f||_0x2cbdb2[_0x3345cc(0x1b8)](typeof _0x53b24f,_0x2cbdb2['UPVKi']))return[null,null];if(_0x2cbdb2[_0x3345cc(0x1b8)](_0x53b24f[_0x3345cc(0x1e6)](_0x2cbdb2[_0x3345cc(0x1dd)]),-0x1)){const _0x133a03=_0x53b24f[_0x3345cc(0x1bc)](_0x2cbdb2['doGJM']);return[_0x133a03[0x0][_0x3345cc(0x1b2)](0x0,-0x1)[_0x3345cc(0x1bc)]('\x22')[0x1],_0x133a03[0x1][_0x3345cc(0x1ca)](0x1)];}else{if(_0x2cbdb2[_0x3345cc(0x1b8)](_0x53b24f[_0x3345cc(0x1e6)](_0x2cbdb2[_0x3345cc(0x1c3)]),-0x1)){const _0xc3e7a7=_0x53b24f[_0x3345cc(0x1bc)](_0x2cbdb2[_0x3345cc(0x1c3)]);return[_0xc3e7a7[0x0][_0x3345cc(0x1b2)](0x0,-0x1)[_0x3345cc(0x1bc)]('\x22')[0x1],_0x53b24f];}}return[null,null];},exports[a31_0x44ef00(0x1c2)]=_0x3cad18=>{const _0xc668c=a31_0x44ef00,_0x47ae55={'inVUx':function(_0x2eb847,_0x41439b){return _0x2eb847(_0x41439b);},'cCckl':_0xc668c(0x1ea),'cagvT':_0xc668c(0x1da),'nFQTw':_0xc668c(0x1d1),'tfeoH':'_afterEach'};if(!_0x3cad18||!_0x3cad18[_0xc668c(0x1cd)])return[];const _0x10b1c4=[];return[_0x47ae55[_0xc668c(0x1be)],_0x47ae55['cagvT'],_0x47ae55[_0xc668c(0x1e7)],_0x47ae55['tfeoH']]['forEach'](_0x1b541f=>{const _0x2a129b=_0xc668c,_0x522193={'EGSLB':function(_0x75bacc,_0x104e40){const _0x301e5f=a31_0x5504;return _0x47ae55[_0x301e5f(0x1c4)](_0x75bacc,_0x104e40);}},_0x217643=_0x3cad18['parent'][_0x1b541f]||[];_0x217643[_0x2a129b(0x1aa)](_0x2cdb3c=>{const _0xb26f96=_0x2a129b;_0x2cdb3c[_0xb26f96(0x1a1)]&&!_0x522193[_0xb26f96(0x1d9)](isInternalHook,_0x2cdb3c['fn'])&&_0x10b1c4[_0xb26f96(0x19d)](_0x2cdb3c[_0xb26f96(0x1a1)]);});}),[..._0x10b1c4,...exports['getHooksForTest'](_0x3cad18[_0xc668c(0x1cd)])];},exports['mapTestHooks']=_0x273886=>{const _0x447082=a31_0x44ef00,_0x1eb235={'nyzxO':function(_0x244d56){return _0x244d56();},'trOiO':function(_0x3214a6,_0x46cb9e){return _0x3214a6===_0x46cb9e;},'XsGJW':_0x447082(0x1ae),'ioEOy':function(_0x42dc6b){return _0x42dc6b();},'gvbAg':_0x447082(0x1ea),'stANp':'_afterAll','lRIXh':_0x447082(0x1d1)};if(!_0x273886||!_0x273886[_0x447082(0x1cd)])return;[_0x1eb235['gvbAg'],_0x1eb235[_0x447082(0x1d3)],_0x1eb235['lRIXh'],_0x1eb235['XsGJW']][_0x447082(0x1aa)](_0x3e246d=>{const _0x51b096=_0x447082,_0x5f1aae=_0x273886[_0x51b096(0x1cd)][_0x3e246d]||[];_0x5f1aae[_0x51b096(0x1aa)](_0x37e22f=>{const _0x22c5ae=_0x51b096;if(!_0x37e22f[_0x22c5ae(0x1a1)])_0x37e22f[_0x22c5ae(0x1a1)]=_0x1eb235[_0x22c5ae(0x1bb)](uuidv4);else _0x37e22f[_0x22c5ae(0x1d7)]&&_0x1eb235['trOiO'](_0x3e246d,_0x1eb235['XsGJW'])&&(_0x37e22f[_0x22c5ae(0x1a1)]=_0x1eb235[_0x22c5ae(0x1c9)](uuidv4),delete _0x37e22f['markedStatus']);});}),exports['mapTestHooks'](_0x273886['parent']);},exports[a31_0x44ef00(0x19f)]=async(_0x4619aa,_0x10f742)=>{const _0x1e282c=a31_0x44ef00,_0x19fbdb={'wrwBP':function(_0x563422){return _0x563422();},'ucVbj':function(_0x32c049,_0xb8e91a){return _0x32c049(_0xb8e91a);},'VTjYo':function(_0x2a6b77,_0x16a32b){return _0x2a6b77===_0x16a32b;},'MBwfk':_0x1e282c(0x1b9),'ivLoo':_0x1e282c(0x19e),'gvMlx':'TEST_PLATFORM'};try{if(!_0x19fbdb[_0x1e282c(0x1b0)](shouldProcessEventForTesthub))return;const _0x347986=await _0x4619aa['getCapabilities'](),_0x188cbb=await _0x4619aa[_0x1e282c(0x1cb)](),_0x4ee3c0={},_0x54a1fb=Object[_0x1e282c(0x1a2)](_0x188cbb[_0x1e282c(0x1a8)]()[_0x1e282c(0x1e9)]),_0x29d61d={'product':_0x19fbdb[_0x1e282c(0x1e0)](getObservabilityLinkedProductName,_0x54a1fb),'capabilities':_0x54a1fb,'platform':_0x347986[_0x1e282c(0x1b6)](),'platform_version':_0x19fbdb[_0x1e282c(0x1e0)](getPlatformVersion,_0x19fbdb[_0x1e282c(0x1c1)](global[_0x1e282c(0x1a6)],_0x19fbdb[_0x1e282c(0x1c6)])),'browser':_0x347986[_0x1e282c(0x1db)](),'browser_version':_0x347986[_0x1e282c(0x1e5)](),'session_id':_0x188cbb[_0x1e282c(0x1b3)]()};global[_0x1e282c(0x1a6)]?_0x4ee3c0[global[_0x1e282c(0x1a6)]]=_0x29d61d:_0x4ee3c0[_0x19fbdb[_0x1e282c(0x1a9)]]=_0x29d61d,process[_0x1e282c(0x1e2)](_0x1e282c(0x1d4)+process[_0x1e282c(0x1dc)],{'timestamp':new Date()[_0x1e282c(0x1a4)](),'level':null,'message':null,'kind':_0x19fbdb[_0x1e282c(0x1b7)],'http_response':_0x4ee3c0,'uuid':_0x10f742});}catch(_0x2142d3){_0x19fbdb[_0x1e282c(0x1e0)](debug,_0x1e282c(0x1e1)+_0x2142d3);}},exports[a31_0x44ef00(0x1e8)]=_0x199845=>{const _0x3a6d39=a31_0x44ef00,_0x25e32c={};_0x25e32c[_0x3a6d39(0x1d2)]=function(_0x39fa50,_0x2f8e43){return _0x39fa50!==_0x2f8e43;},_0x25e32c[_0x3a6d39(0x1ac)]='hook',_0x25e32c['ONsQF']=function(_0x1bea04,_0x225cbd){return _0x1bea04!==_0x225cbd;},_0x25e32c[_0x3a6d39(0x1a5)]=_0x3a6d39(0x1d5),_0x25e32c[_0x3a6d39(0x1cc)]=function(_0x20f40a,_0x13aa7e){return _0x20f40a!==_0x13aa7e;},_0x25e32c[_0x3a6d39(0x1b5)]=_0x3a6d39(0x1ce);const _0x4da211=_0x25e32c,_0x1db5e9=_0x199845['suites'][_0x3a6d39(0x1eb)]((_0x3ddb79,_0x5c34dc)=>{const _0x1b31d7=_0x3a6d39,_0x3edbb2=exports[_0x1b31d7(0x1e8)](_0x5c34dc);return _0x3edbb2&&(_0x3ddb79=_0x3ddb79['concat'](_0x3edbb2)),_0x3ddb79;},[]),_0x1dee66=_0x199845[_0x3a6d39(0x1a3)]['filter'](_0x293187=>{const _0x514b67=_0x3a6d39,_0x331832=_0x4da211[_0x514b67(0x1d2)](_0x293187['type'],_0x4da211[_0x514b67(0x1ac)])&&!_0x293187[_0x514b67(0x1d7)]&&_0x4da211['ONsQF'](_0x293187[_0x514b67(0x1d6)],_0x4da211[_0x514b67(0x1a5)])&&_0x4da211[_0x514b67(0x1cc)](_0x293187['state'],_0x4da211[_0x514b67(0x1b5)])&&!_0x293187[_0x514b67(0x1a7)];return _0x331832;});return _0x1dee66[_0x3a6d39(0x1a0)](_0x1db5e9);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a32_0x36d5f8=a32_0x36d3;(function(_0x19abd8,_0x4ffaba){const _0x4fcff9=a32_0x36d3,_0x10f4cb=_0x19abd8();while(!![]){try{const _0x26b583=-parseInt(_0x4fcff9(0x11a))/0x1*(-parseInt(_0x4fcff9(0x181))/0x2)+parseInt(_0x4fcff9(0x15a))/0x3*(-parseInt(_0x4fcff9(0x139))/0x4)+-parseInt(_0x4fcff9(0x16d))/0x5+-parseInt(_0x4fcff9(0x119))/0x6+parseInt(_0x4fcff9(0x150))/0x7+-parseInt(_0x4fcff9(0x184))/0x8+parseInt(_0x4fcff9(0x13f))/0x9;if(_0x26b583===_0x4ffaba)break;else _0x10f4cb['push'](_0x10f4cb['shift']());}catch(_0x34bb13){_0x10f4cb['push'](_0x10f4cb['shift']());}}}(a32_0x2032,0x9588d));function a32_0x36d3(_0x175625,_0x821c7){const _0x2032fe=a32_0x2032();return a32_0x36d3=function(_0x36d358,_0x47f030){_0x36d358=_0x36d358-0x10f;let _0x312226=_0x2032fe[_0x36d358];return _0x312226;},a32_0x36d3(_0x175625,_0x821c7);}function a32_0x2032(){const _0x319e2d=['15004782LiYEiQ','AZmmR','stopMonitoring','qfJro','Failed:\x20','passed','lJrjT','\x20|\x20','performScan','POBbm','winstonLogger','wKrwK','../../helpers/accessibility-automation/helper','browserstackSessionName','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','sqkQR','timeout','5291839FnYCev','LJcSV','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','testAnalyticsId','__drivers','BROWSERSTACK_TESTHUB_UUID','ENV_VAR','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','mGSwM','ZkQTD','319065gCJYLG','vinDO','TNOxT','info','then','capabilities','../../helpers/performance-tester','../../helpers/testhub/utils','debug','isArray','env','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','LUulY','eHHuz','currentTest','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','executeAsyncScript','sessionNameSet__','KGVAY','4521975Dugewk','saveTestResults','format','protocol','state','stringify','Automate\x20test\x20case\x20execution\x20has\x20started.','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','appium:app','getCurrentUrl','pTVqE','shift','PSSDV','zbZnN','push','tGcaO','thJwtToken','percy','geNME','http:','2blHCsS','mushv','session_','6863720nNTNBT','ACKEw','accessibilityScanStarted','__error_messages__','gKBAH','../../helpers/accessibility-automation/scripts','ITvDC','shouldScanTestForAccessibility','kBUSf','../../helpers/testhub/constants','titlePath','app','yaCHm','isAccessibilityPlatform','__sessionFailed','hxQze','err','executeScript','199620bYeoMr','91303mIzkpW','error','now','getGlobal','Ajogq','kheCf','.\x20Error\x20:','startMonitoring','length','Ixlnd','bstackA11yShouldScan','Exxbp','../../helpers/logger','Failed\x20to\x20store\x20session\x20name:\x20','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','../../helpers/percy/utils','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','\x20-\x20','../../helpers/helper','https:','failed','quitCount_','testcase','FSnha','Passed','setGlobal','util','BROWSERSTACK_TESTHUB_JWT','sHEIS','ObservabilitySync:','driverCleanup','4XgJkyb','soXzs','thTestRunUuid','DxiCP','join','NaJEa'];a32_0x2032=function(){return _0x319e2d;};return a32_0x2032();}const util=require(a32_0x36d5f8(0x134)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a32_0x36d5f8(0x14b)),{percyAutoCapture}=require(a32_0x36d5f8(0x129)),{sendPlatformDetails}=require('./test-observability/mochaUtils'),{isBrowserstackInfra,markSessionStatus}=require(a32_0x36d5f8(0x12c)),PerformanceTester=require(a32_0x36d5f8(0x160)),scripts=require(a32_0x36d5f8(0x189)),globals=require('../../helpers/globals'),logger=require(a32_0x36d5f8(0x126))[a32_0x36d5f8(0x149)],{shouldProcessEventForTesthub}=require(a32_0x36d5f8(0x161)),testHubConstants=require(a32_0x36d5f8(0x110));exports['mochaHooks']={'beforeAll'(){const _0x152836=a32_0x36d5f8,_0x1b0a3a={'kheCf':function(_0x2b9594,_0x5a894d,_0x365d78,_0x1b766d){return _0x2b9594(_0x5a894d,_0x365d78,_0x1b766d);},'vinDO':_0x152836(0x12e),'NaJEa':_0x152836(0x146),'pTVqE':function(_0x26ae1f,_0x348640,_0x50f802){return _0x26ae1f(_0x348640,_0x50f802);},'gKBAH':_0x152836(0x144),'zbZnN':function(_0x36a51a){return _0x36a51a();}};PerformanceTester[_0x152836(0x121)]();const _0x30d3e9='browserstack internal helper hook';global[_0x152836(0x187)]=[],global[_0x152836(0x115)]=![],global['driverCleanup']=async()=>{const _0x403bd1=_0x152836;let _0x99d59e=![];try{await global['__drivers'][0x0]['session_'],_0x99d59e=!![],global[_0x403bd1(0x115)]?await _0x1b0a3a[_0x403bd1(0x11f)](markSessionStatus,global['__drivers'][0x0],_0x1b0a3a[_0x403bd1(0x15b)],global['__error_messages__'][_0x403bd1(0x13d)](_0x1b0a3a[_0x403bd1(0x13e)])):await _0x1b0a3a[_0x403bd1(0x177)](markSessionStatus,global[_0x403bd1(0x154)][0x0],_0x1b0a3a[_0x403bd1(0x188)]);}catch(_0xcc8fed){}global['__error_messages__']=[],global['__sessionFailed']=![];if(_0x99d59e)try{try{_0x1b0a3a[_0x403bd1(0x17a)](shouldProcessEventForTesthub)&&(global['__drivers'][0x0]&&await _0x1b0a3a[_0x403bd1(0x177)](sendPlatformDetails,global['__drivers'][0x0],this[_0x403bd1(0x168)]?this[_0x403bd1(0x168)][_0x403bd1(0x153)]:null));}catch{}await global[_0x403bd1(0x154)][0x0]['initQuit']();}catch(_0x546449){}};},'beforeEach'(_0x3b9972){const _0x4611ce=a32_0x36d5f8,_0x99759b={'mGSwM':function(_0x23f29b,_0x3e37f8){return _0x23f29b>_0x3e37f8;},'Ixlnd':_0x4611ce(0x12b),'ZkQTD':function(_0x4d8419,_0xd45d43,_0x263190){return _0x4d8419(_0xd45d43,_0x263190);},'yEEDD':'bstackA11yShouldScan','LUulY':function(_0x132ae1){return _0x132ae1();},'sHEIS':function(_0x3f64ef,_0x403d04){return _0x3f64ef>_0x403d04;},'ckzIp':_0x4611ce(0x114),'wKrwK':function(_0xb257d8,_0x130c92){return _0xb257d8===_0x130c92;},'ACKEw':_0x4611ce(0x180),'ANxUI':function(_0x3fb6b3,_0x4fbc37){return _0x3fb6b3===_0x4fbc37;},'lJrjT':_0x4611ce(0x12d),'GaJRf':_0x4611ce(0x165),'qfJro':_0x4611ce(0x173)};new Promise(async _0x3edbc1=>{const _0x339a69=_0x4611ce,_0x5c6d33='browserstack internal helper hook';let _0xc7b38f=!![];try{_0x99759b[_0x339a69(0x158)](global[_0x339a69(0x154)]['length'],0x1)&&(await global[_0x339a69(0x138)](),global[_0x339a69(0x154)][_0x339a69(0x178)]()),_0x99759b[_0x339a69(0x158)](global['__drivers'][0x0][_0x339a69(0x12f)],0x0)&&(_0xc7b38f=![],await global[_0x339a69(0x138)]());}catch{}try{Array['isArray'](global[_0x339a69(0x154)])&&global[_0x339a69(0x154)][0x0]&&(global[_0x339a69(0x154)][0x0][_0x339a69(0x14c)]=this[_0x339a69(0x168)][_0x339a69(0x111)]()[_0x339a69(0x13d)](_0x99759b[_0x339a69(0x123)])),global[_0x339a69(0x14c)]=this[_0x339a69(0x168)]['titlePath']()['join'](_0x99759b[_0x339a69(0x123)]);}catch(_0x5ef844){logger['debug'](_0x339a69(0x127)+_0x5ef844);}this[_0x339a69(0x168)][_0x339a69(0x18b)]=_0x99759b[_0x339a69(0x159)](shouldScanTestForAccessibility,this['currentTest'][_0x339a69(0x111)](),!![]),globals[_0x339a69(0x133)](_0x99759b['yEEDD'],this[_0x339a69(0x168)]['shouldScanTestForAccessibility']),this[_0x339a69(0x168)][_0x339a69(0x186)]=!![];if(_0x99759b[_0x339a69(0x166)](isAccessibilityAutomationSession)&&_0xc7b38f&&Array[_0x339a69(0x163)](global['__drivers'])&&_0x99759b[_0x339a69(0x136)](global['__drivers']['length'],0x0)&&globals[_0x339a69(0x11d)](_0x99759b['ckzIp']))try{const _0xbf3358=await global[_0x339a69(0x154)][0x0][_0x339a69(0x183)];if(_0xbf3358){let _0x11571b=!![];const _0x438bde=await global[_0x339a69(0x154)][0x0][_0x339a69(0x176)]();let _0x166edc;try{_0x166edc=new URL(_0x438bde);}catch(_0x28731b){_0x11571b=![];}_0x11571b=_0x99759b[_0x339a69(0x14a)](_0x166edc[_0x339a69(0x170)],_0x99759b[_0x339a69(0x185)])||_0x99759b['ANxUI'](_0x166edc[_0x339a69(0x170)],_0x99759b[_0x339a69(0x145)]),_0x11571b&&(this['currentTest'][_0x339a69(0x18b)]&&logger[_0x339a69(0x15d)](_0x99759b['GaJRf'])),this[_0x339a69(0x168)][_0x339a69(0x186)]=this[_0x339a69(0x168)][_0x339a69(0x18b)],this[_0x339a69(0x168)][_0x339a69(0x18b)]&&logger[_0x339a69(0x15d)](_0x99759b[_0x339a69(0x142)]);}}catch(_0x203b26){logger[_0x339a69(0x11b)](_0x339a69(0x14d)+util[_0x339a69(0x16f)](_0x203b26));}_0x99759b[_0x339a69(0x166)](_0x3edbc1);})[_0x4611ce(0x15e)](_0x3b9972);},'afterEach'(_0xa1de02){const _0x4ce2bc=a32_0x36d5f8,_0x22d38b={'kBUSf':function(_0x1a068e,_0xe0f87d){return _0x1a068e>_0xe0f87d;},'Exxbp':function(_0xda9d2e,_0x2ef0d8){return _0xda9d2e===_0x2ef0d8;},'Ajogq':_0x4ce2bc(0x130),'sqkQR':_0x4ce2bc(0x175),'yaCHm':function(_0x524c9b,_0x5945d7,_0x2fba46,_0x3563c1){return _0x524c9b(_0x5945d7,_0x2fba46,_0x3563c1);},'TZQpr':_0x4ce2bc(0x12b),'geNME':function(_0x2cbd54,_0x51286b){return _0x2cbd54!==_0x51286b;},'hxQze':_0x4ce2bc(0x144),'wmdVn':function(_0x27da60,_0x5db1fb,_0x3111f0){return _0x27da60(_0x5db1fb,_0x3111f0);},'DxiCP':function(_0x3d80e2,_0x43ef01){return _0x3d80e2+_0x43ef01;},'KGVAY':_0x4ce2bc(0x143),'eHHuz':_0x4ce2bc(0x11b),'NVwvJ':_0x4ce2bc(0x132),'ITvDC':_0x4ce2bc(0x15d),'tGcaO':'isAccessibilityPlatform','soXzs':_0x4ce2bc(0x124),'POBbm':_0x4ce2bc(0x157),'TNOxT':'Performing\x20scan\x20before\x20saving\x20results','mushv':_0x4ce2bc(0x12a),'AZmmR':function(_0x4d56db){return _0x4d56db();},'PSSDV':function(_0x106508,_0x213a09,_0x117dfe){return _0x106508(_0x213a09,_0x117dfe);},'YFqIk':function(_0x74bfbc,_0xd8c84,_0x454c6c){return _0x74bfbc(_0xd8c84,_0x454c6c);},'LJcSV':'debug','tXYqV':function(_0x3177e4){return _0x3177e4();}},_0x2a19fb='browserstack internal helper hook';this[_0x4ce2bc(0x14f)](0xfde8);const _0x56b6a6=async(_0xb78e62,_0x572009)=>{const _0x5f119e=_0x4ce2bc;await global[_0x5f119e(0x154)][0x0][_0x5f119e(0x118)](_0x5f119e(0x152)+_0xb78e62+',\x22level\x22:\x20\x22'+_0x572009+'\x22}}');};new Promise(async _0x5e68b8=>{const _0x5a4f8d=_0x4ce2bc;try{_0x22d38b[_0x5a4f8d(0x10f)](global[_0x5a4f8d(0x154)][_0x5a4f8d(0x122)],0x1)&&(await global[_0x5a4f8d(0x138)](),global[_0x5a4f8d(0x154)][_0x5a4f8d(0x178)](),global['__error_messages__']=[],global['__sessionFailed']=![]);try{if(global[_0x5a4f8d(0x17e)]&&_0x22d38b[_0x5a4f8d(0x125)](global['percyCaptureMode'],_0x22d38b['Ajogq'])&&global['__drivers'][0x0]){const _0x5646fb=_0x22d38b['kBUSf'](global[_0x5a4f8d(0x15f)][_0x5a4f8d(0x122)],0x0)?!!global[_0x5a4f8d(0x15f)][0x0][_0x5a4f8d(0x112)]||!!global[_0x5a4f8d(0x15f)][0x0][_0x22d38b[_0x5a4f8d(0x14e)]]:![],_0x50d5cc={};_0x50d5cc[_0x5a4f8d(0x112)]=_0x5646fb,await _0x22d38b[_0x5a4f8d(0x113)](percyAutoCapture,global['__drivers'][0x0],_0x22d38b[_0x5a4f8d(0x11e)],_0x50d5cc);}}catch(_0x30472c){}!global['__skipSessionName']&&(await global[_0x5a4f8d(0x154)][0x0][_0x5a4f8d(0x118)](_0x5a4f8d(0x169)+JSON[_0x5a4f8d(0x172)](this[_0x5a4f8d(0x168)]['titlePath']()[_0x5a4f8d(0x13d)](_0x22d38b['TZQpr']))+'}}'),global[_0x5a4f8d(0x154)][0x0][_0x5a4f8d(0x16b)]=!![]);const _0x213e51=_0x22d38b[_0x5a4f8d(0x17f)](this[_0x5a4f8d(0x168)][_0x5a4f8d(0x171)],_0x22d38b[_0x5a4f8d(0x116)]);_0x213e51?(global[_0x5a4f8d(0x115)]=!![],global[_0x5a4f8d(0x187)][_0x5a4f8d(0x17b)](this['currentTest'][_0x5a4f8d(0x117)]['message']),await _0x22d38b['wmdVn'](_0x56b6a6,JSON[_0x5a4f8d(0x172)](_0x22d38b[_0x5a4f8d(0x13c)](_0x22d38b[_0x5a4f8d(0x16c)],this[_0x5a4f8d(0x168)]['err']['message'])),_0x22d38b[_0x5a4f8d(0x167)])):await _0x22d38b['wmdVn'](_0x56b6a6,JSON[_0x5a4f8d(0x172)](_0x22d38b['NVwvJ']),_0x22d38b[_0x5a4f8d(0x18a)]);}catch(_0x263393){}try{if(this[_0x5a4f8d(0x168)][_0x5a4f8d(0x186)]&&globals[_0x5a4f8d(0x11d)](_0x22d38b[_0x5a4f8d(0x17c)])&&globals[_0x5a4f8d(0x11d)](_0x22d38b[_0x5a4f8d(0x13a)])){logger['info'](_0x22d38b[_0x5a4f8d(0x148)]);const _0x56ace3={};_0x56ace3[_0x5a4f8d(0x13b)]=this[_0x5a4f8d(0x168)][_0x5a4f8d(0x153)],_0x56ace3['thBuildUuid']=process[_0x5a4f8d(0x164)][testHubConstants[_0x5a4f8d(0x156)][_0x5a4f8d(0x155)]],_0x56ace3[_0x5a4f8d(0x17d)]=process['env'][testHubConstants['ENV_VAR'][_0x5a4f8d(0x135)]];const _0x3035a1=_0x56ace3;logger[_0x5a4f8d(0x162)](_0x5a4f8d(0x128)+JSON[_0x5a4f8d(0x172)](_0x3035a1)),logger[_0x5a4f8d(0x162)](_0x22d38b[_0x5a4f8d(0x15c)]),logger[_0x5a4f8d(0x162)](util['format'](await global['__drivers'][0x0][_0x5a4f8d(0x16a)](scripts[_0x5a4f8d(0x147)],{'method':global[_0x5a4f8d(0x14c)]}))),await global[_0x5a4f8d(0x154)][0x0]['executeAsyncScript'](scripts[_0x5a4f8d(0x16e)],_0x3035a1),logger[_0x5a4f8d(0x15d)](_0x22d38b[_0x5a4f8d(0x182)]);}}catch(_0x186b7f){logger[_0x5a4f8d(0x11b)](_0x5a4f8d(0x174)+this['currentTest'][_0x5a4f8d(0x111)]()+_0x5a4f8d(0x120),_0x186b7f);}try{try{if(_0x22d38b[_0x5a4f8d(0x140)](shouldProcessEventForTesthub)){global[_0x5a4f8d(0x154)][0x0]&&await _0x22d38b[_0x5a4f8d(0x179)](sendPlatformDetails,global[_0x5a4f8d(0x154)][0x0],this[_0x5a4f8d(0x168)]?this[_0x5a4f8d(0x168)][_0x5a4f8d(0x153)]:null);if(_0x22d38b[_0x5a4f8d(0x140)](isBrowserstackInfra)){const _0x5591f5=_0x5a4f8d(0x137)+Date[_0x5a4f8d(0x11c)]();await _0x22d38b['YFqIk'](_0x56b6a6,JSON[_0x5a4f8d(0x172)](_0x5591f5),_0x22d38b[_0x5a4f8d(0x151)]);}}}catch{}_0x22d38b['kBUSf'](global[_0x5a4f8d(0x154)][0x0][_0x5a4f8d(0x12f)],0x0)&&await global[_0x5a4f8d(0x138)]();}catch(_0x176053){}_0x22d38b['tXYqV'](_0x5e68b8);})[_0x4ce2bc(0x15e)](()=>_0xa1de02());},'afterAll'(_0x4a8811){const _0x12f3e5=a32_0x36d5f8,_0x3dd98b={'FSnha':function(_0x4373b3){return _0x4373b3();}},_0x323533='browserstack internal helper hook';this['timeout'](0xfde8),new Promise(async _0x17afe3=>{const _0x3e3745=a32_0x36d3;PerformanceTester[_0x3e3745(0x141)](),await global[_0x3e3745(0x138)](),_0x3dd98b[_0x3e3745(0x131)](_0x17afe3);})[_0x12f3e5(0x15e)](()=>_0x4a8811());}};
|
|
1
|
+
const a32_0x24cf7f=a32_0x3986;(function(_0x4e479f,_0x998af7){const _0x5dc05d=a32_0x3986,_0x41a578=_0x4e479f();while(!![]){try{const _0x2f6e4f=-parseInt(_0x5dc05d(0x1b4))/0x1+parseInt(_0x5dc05d(0x1e7))/0x2*(parseInt(_0x5dc05d(0x1c7))/0x3)+-parseInt(_0x5dc05d(0x1a6))/0x4*(parseInt(_0x5dc05d(0x1c1))/0x5)+parseInt(_0x5dc05d(0x1b2))/0x6+-parseInt(_0x5dc05d(0x200))/0x7*(-parseInt(_0x5dc05d(0x1cd))/0x8)+parseInt(_0x5dc05d(0x1b8))/0x9+parseInt(_0x5dc05d(0x212))/0xa*(-parseInt(_0x5dc05d(0x1ba))/0xb);if(_0x2f6e4f===_0x998af7)break;else _0x41a578['push'](_0x41a578['shift']());}catch(_0x379405){_0x41a578['push'](_0x41a578['shift']());}}}(a32_0x5c98,0xbc520));function a32_0x3986(_0x15b650,_0x27786c){const _0x5c9814=a32_0x5c98();return a32_0x3986=function(_0x398641,_0x3a24b4){_0x398641=_0x398641-0x192;let _0xde4f85=_0x5c9814[_0x398641];return _0xde4f85;},a32_0x3986(_0x15b650,_0x27786c);}function a32_0x5c98(){const _0x224748=['mjgkm','percy','env','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','stringify','titlePath','6580PjQNYR','CdnQi','ekjEN','\x22}}','xbNYs','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','BROWSERSTACK_TESTHUB_UUID','https:','IbDbQ','hORWr','accessibilityScanStarted','../../helpers/accessibility-automation/scripts','failed','debug','startMonitoring','gtYZr','pvMGA','cPneR','TeWbf','currentTest','gFhoE','JeNVr','NBodc','app','shift','Failed:\x20','4yXbPGG','now','\x20|\x20','__drivers','vJnRy','BsFQI','err','OIdYw','error','__skipSessionName','percyCaptureMode','http:','9002418vsodQh','ifpUA','859140AbDOYq','Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20','isAccessibilityPlatform','__error_messages__','12203226lRGlKh','info','17116OiiPnV','../../helpers/testhub/utils',',\x22level\x22:\x20\x22','MyYgx','../../helpers/logger','getCurrentUrl','performScan','6578090dVhIEi','format','initQuit','lUKBh','thBuildUuid','length','3DSXYip','../../helpers/performance-tester','pyFRI','executeScript','qIHmI','ObservabilitySync:','8VSfJiL','\x20-\x20','EOMfM','./test-observability/mochaUtils','Passed','SnlZl','Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20','mochaHooks','message','otDXF','then','testcase','Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20','KNPHB','ENV_VAR','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','quitCount_','shouldScanTestForAccessibility','__sessionFailed','../../helpers/globals','session_','bXpya','PnOhS','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20','1247952JCKksQ','JPwiK','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','browserstackSessionName','getGlobal','Failed\x20to\x20store\x20session\x20name:\x20','fHunp','passed','thTestRunUuid','Performing\x20scan\x20before\x20saving\x20results','BROWSERSTACK_TESTHUB_JWT','saveTestResults','NTZUL','push','XKTTO','.\x20Error\x20:','AIzuC','nzGFU','protocol','../../helpers/helper','testAnalyticsId','setGlobal','timeout','stopMonitoring','uOgUm','3427711TxJXSo','isArray','Automate\x20test\x20case\x20execution\x20has\x20started.','state','driverCleanup','sGJkK','xpuCN','cYSMw','NIREg','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','join','nAHGh'];a32_0x5c98=function(){return _0x224748;};return a32_0x5c98();}const util=require('util'),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require('../../helpers/accessibility-automation/helper'),{percyAutoCapture}=require('../../helpers/percy/utils'),{sendPlatformDetails}=require(a32_0x24cf7f(0x1d0)),{isBrowserstackInfra,markSessionStatus}=require(a32_0x24cf7f(0x1fa)),PerformanceTester=require(a32_0x24cf7f(0x1c8)),scripts=require(a32_0x24cf7f(0x197)),globals=require(a32_0x24cf7f(0x1e0)),logger=require(a32_0x24cf7f(0x1be))['winstonLogger'],{shouldProcessEventForTesthub}=require(a32_0x24cf7f(0x1bb)),testHubConstants=require('../../helpers/testhub/constants');exports[a32_0x24cf7f(0x1d4)]={'beforeAll'(){const _0x59d686=a32_0x24cf7f,_0x3615ee={'YuDBP':function(_0x3a4adb,_0x277584,_0x4b2135,_0x2ee1cc){return _0x3a4adb(_0x277584,_0x4b2135,_0x2ee1cc);},'gtYZr':_0x59d686(0x198),'fHunp':_0x59d686(0x1a8),'IcfsO':function(_0x577ba6,_0x1f96d3,_0x1c83b9){return _0x577ba6(_0x1f96d3,_0x1c83b9);},'NTZUL':'passed','cYSMw':function(_0x9a4573){return _0x9a4573();}};PerformanceTester[_0x59d686(0x19a)]();const _0x12dc20='browserstack internal helper hook';global['__error_messages__']=[],global[_0x59d686(0x1df)]=![],global['driverCleanup']=async()=>{const _0x141214=_0x59d686;let _0x3f485e=![];try{await global['__drivers'][0x0]['session_'],_0x3f485e=!![],global[_0x141214(0x1df)]?await _0x3615ee['YuDBP'](markSessionStatus,global[_0x141214(0x1a9)][0x0],_0x3615ee[_0x141214(0x19b)],global[_0x141214(0x1b7)][_0x141214(0x20a)](_0x3615ee[_0x141214(0x1ed)])):await _0x3615ee['IcfsO'](markSessionStatus,global[_0x141214(0x1a9)][0x0],_0x3615ee[_0x141214(0x1f3)]);}catch(_0x14b04a){logger['debug'](_0x141214(0x1d3)+_0x14b04a);}global[_0x141214(0x1b7)]=[],global[_0x141214(0x1df)]=![];if(_0x3f485e)try{try{_0x3615ee[_0x141214(0x207)](shouldProcessEventForTesthub)&&(global[_0x141214(0x1a9)][0x0]&&await _0x3615ee['IcfsO'](sendPlatformDetails,global[_0x141214(0x1a9)][0x0],this[_0x141214(0x19f)]?this[_0x141214(0x19f)][_0x141214(0x1fb)]:null));}catch(_0x3f34a0){logger[_0x141214(0x199)](_0x141214(0x1b5)+_0x3f34a0);}await global[_0x141214(0x1a9)][0x0][_0x141214(0x1c3)]();}catch(_0xa2767c){logger[_0x141214(0x199)]('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0xa2767c);}};},'beforeEach'(_0x2b260e){const _0x2c684f=a32_0x24cf7f,_0x21bae6={'MyYgx':function(_0x24a0f0,_0x323923){return _0x24a0f0>_0x323923;},'uOgUm':_0x2c684f(0x1ce),'lUKBh':function(_0x4a7a29,_0x81ff59,_0x48cd02){return _0x4a7a29(_0x81ff59,_0x48cd02);},'PnOhS':'bstackA11yShouldScan','CdnQi':function(_0x107392){return _0x107392();},'EOMfM':function(_0x20902e,_0x4cb5f3){return _0x20902e>_0x4cb5f3;},'sGJkK':_0x2c684f(0x1b6),'mjgkm':function(_0x20cfd3,_0x356f47){return _0x20cfd3===_0x356f47;},'nzGFU':_0x2c684f(0x1b1),'ekjEN':_0x2c684f(0x193),'PGWLH':_0x2c684f(0x1e9),'pvMGA':_0x2c684f(0x202),'otDXF':function(_0x404aa4){return _0x404aa4();}};new Promise(async _0x592f66=>{const _0x2cddcd=_0x2c684f,_0x2aa84a='browserstack internal helper hook';let _0x26bbd5=!![];try{_0x21bae6['MyYgx'](global['__drivers'][_0x2cddcd(0x1c6)],0x1)&&(await global[_0x2cddcd(0x204)](),global[_0x2cddcd(0x1a9)][_0x2cddcd(0x1a4)]()),_0x21bae6[_0x2cddcd(0x1bd)](global['__drivers'][0x0][_0x2cddcd(0x1dd)],0x0)&&(_0x26bbd5=![],await global[_0x2cddcd(0x204)]());}catch(_0x30d271){logger['debug'](_0x2cddcd(0x217)+_0x30d271);}try{Array[_0x2cddcd(0x201)](global[_0x2cddcd(0x1a9)])&&global[_0x2cddcd(0x1a9)][0x0]&&(global['__drivers'][0x0][_0x2cddcd(0x1ea)]=this[_0x2cddcd(0x19f)][_0x2cddcd(0x211)]()[_0x2cddcd(0x20a)](_0x21bae6['uOgUm'])),global[_0x2cddcd(0x1ea)]=this['currentTest'][_0x2cddcd(0x211)]()[_0x2cddcd(0x20a)](_0x21bae6[_0x2cddcd(0x1ff)]);}catch(_0x10444a){logger[_0x2cddcd(0x199)](_0x2cddcd(0x1ec)+_0x10444a);}this[_0x2cddcd(0x19f)][_0x2cddcd(0x1de)]=_0x21bae6[_0x2cddcd(0x1c4)](shouldScanTestForAccessibility,this['currentTest'][_0x2cddcd(0x211)](),!![]),globals[_0x2cddcd(0x1fc)](_0x21bae6[_0x2cddcd(0x1e3)],this[_0x2cddcd(0x19f)][_0x2cddcd(0x1de)]),this[_0x2cddcd(0x19f)][_0x2cddcd(0x196)]=!![];if(_0x21bae6[_0x2cddcd(0x213)](isAccessibilityAutomationSession)&&_0x26bbd5&&Array[_0x2cddcd(0x201)](global[_0x2cddcd(0x1a9)])&&_0x21bae6[_0x2cddcd(0x1cf)](global[_0x2cddcd(0x1a9)][_0x2cddcd(0x1c6)],0x0)&&globals[_0x2cddcd(0x1eb)](_0x21bae6[_0x2cddcd(0x205)]))try{const _0x18c87c=await global[_0x2cddcd(0x1a9)][0x0][_0x2cddcd(0x1e1)];if(_0x18c87c){let _0x3c80eb=!![];const _0x2c8c76=await global[_0x2cddcd(0x1a9)][0x0][_0x2cddcd(0x1bf)]();let _0x39eafe;try{_0x39eafe=new URL(_0x2c8c76);}catch(_0x2a30e0){_0x3c80eb=![];}_0x3c80eb=_0x21bae6[_0x2cddcd(0x20c)](_0x39eafe['protocol'],_0x21bae6[_0x2cddcd(0x1f8)])||_0x21bae6[_0x2cddcd(0x20c)](_0x39eafe[_0x2cddcd(0x1f9)],_0x21bae6[_0x2cddcd(0x214)]),_0x3c80eb&&(this[_0x2cddcd(0x19f)]['shouldScanTestForAccessibility']&&logger[_0x2cddcd(0x1b9)](_0x21bae6['PGWLH'])),this[_0x2cddcd(0x19f)][_0x2cddcd(0x196)]=this[_0x2cddcd(0x19f)][_0x2cddcd(0x1de)],this[_0x2cddcd(0x19f)][_0x2cddcd(0x1de)]&&logger[_0x2cddcd(0x1b9)](_0x21bae6[_0x2cddcd(0x19c)]);}}catch(_0x4a1468){logger[_0x2cddcd(0x1ae)]('Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20'+util[_0x2cddcd(0x1c2)](_0x4a1468));}_0x21bae6[_0x2cddcd(0x1d6)](_0x592f66);})[_0x2c684f(0x1d7)](_0x2b260e);},'afterEach'(_0x5e03aa){const _0x813f4c=a32_0x24cf7f,_0x487cae={'gMXCx':function(_0x3804e9,_0x1d4577){return _0x3804e9>_0x1d4577;},'KNPHB':function(_0x1e12b0,_0x547dfc){return _0x1e12b0===_0x547dfc;},'NBodc':_0x813f4c(0x1d8),'SnlZl':function(_0x4a9d49,_0x2b1de2){return _0x4a9d49>_0x2b1de2;},'AIzuC':'appium:app','hORWr':function(_0x5e947d,_0x37f7b0,_0x3d7714,_0x46061b){return _0x5e947d(_0x37f7b0,_0x3d7714,_0x46061b);},'IbDbQ':_0x813f4c(0x1ce),'qIHmI':function(_0x571687,_0x17c18a){return _0x571687!==_0x17c18a;},'nAHGh':_0x813f4c(0x1ee),'cPneR':function(_0x2f697c,_0x552bfb,_0x2be568){return _0x2f697c(_0x552bfb,_0x2be568);},'XKTTO':function(_0x5cb2e2,_0x1f974d){return _0x5cb2e2+_0x1f974d;},'JPwiK':_0x813f4c(0x1a5),'xpuCN':_0x813f4c(0x1ae),'vJnRy':_0x813f4c(0x1d1),'ifpUA':_0x813f4c(0x1b9),'TeWbf':'isAccessibilityPlatform','gFhoE':'bstackA11yShouldScan','BsFQI':_0x813f4c(0x1e4),'FbHIQ':_0x813f4c(0x1f0),'JeNVr':_0x813f4c(0x1dc),'pyFRI':function(_0xf116b0){return _0xf116b0();},'OIdYw':function(_0x30d89d){return _0x30d89d();},'bXpya':function(_0xad981b,_0x4244fa,_0x5e54e6){return _0xad981b(_0x4244fa,_0x5e54e6);},'xbNYs':_0x813f4c(0x199),'lnSeD':function(_0x5990d2,_0x10100c){return _0x5990d2>_0x10100c;}},_0x562aeb='browserstack internal helper hook';this[_0x813f4c(0x1fd)](0xfde8);const _0x4e24a2=async(_0x41cbff,_0x4e8693)=>{const _0x4b7cc4=_0x813f4c;await global[_0x4b7cc4(0x1a9)][0x0][_0x4b7cc4(0x1ca)]('browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:'+_0x41cbff+_0x4b7cc4(0x1bc)+_0x4e8693+_0x4b7cc4(0x215));};new Promise(async _0x4f4d44=>{const _0x41a2ea=_0x813f4c;try{_0x487cae['gMXCx'](global['__drivers'][_0x41a2ea(0x1c6)],0x1)&&(await global[_0x41a2ea(0x204)](),global[_0x41a2ea(0x1a9)]['shift'](),global['__error_messages__']=[],global[_0x41a2ea(0x1df)]=![]);try{if(global[_0x41a2ea(0x20d)]&&_0x487cae[_0x41a2ea(0x1da)](global[_0x41a2ea(0x1b0)],_0x487cae[_0x41a2ea(0x1a2)])&&global['__drivers'][0x0]){const _0x22ef96=_0x487cae[_0x41a2ea(0x1d2)](global['capabilities']['length'],0x0)?!!global['capabilities'][0x0][_0x41a2ea(0x1a3)]||!!global['capabilities'][0x0][_0x487cae[_0x41a2ea(0x1f7)]]:![],_0x31971e={};_0x31971e[_0x41a2ea(0x1a3)]=_0x22ef96,await _0x487cae[_0x41a2ea(0x195)](percyAutoCapture,global[_0x41a2ea(0x1a9)][0x0],_0x487cae[_0x41a2ea(0x1a2)],_0x31971e);}}catch(_0x408dd0){logger['debug'](_0x41a2ea(0x1d9)+_0x408dd0);}!global[_0x41a2ea(0x1af)]&&(await global[_0x41a2ea(0x1a9)][0x0][_0x41a2ea(0x1ca)](_0x41a2ea(0x20f)+JSON[_0x41a2ea(0x210)](this['currentTest'][_0x41a2ea(0x211)]()[_0x41a2ea(0x20a)](_0x487cae[_0x41a2ea(0x194)]))+'}}'),global[_0x41a2ea(0x1a9)][0x0]['sessionNameSet__']=!![]);const _0x1e7b6a=_0x487cae[_0x41a2ea(0x1cb)](this['currentTest'][_0x41a2ea(0x203)],_0x487cae[_0x41a2ea(0x20b)]);_0x1e7b6a?(global[_0x41a2ea(0x1df)]=!![],global[_0x41a2ea(0x1b7)][_0x41a2ea(0x1f4)](this['currentTest'][_0x41a2ea(0x1ac)][_0x41a2ea(0x1d5)]),await _0x487cae[_0x41a2ea(0x19d)](_0x4e24a2,JSON['stringify'](_0x487cae[_0x41a2ea(0x1f5)](_0x487cae[_0x41a2ea(0x1e8)],this[_0x41a2ea(0x19f)]['err']['message'])),_0x487cae[_0x41a2ea(0x206)])):await _0x487cae['cPneR'](_0x4e24a2,JSON[_0x41a2ea(0x210)](_0x487cae[_0x41a2ea(0x1aa)]),_0x487cae[_0x41a2ea(0x1b3)]);}catch(_0x9b0875){logger['debug']('Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20'+_0x9b0875);}try{if(this[_0x41a2ea(0x19f)][_0x41a2ea(0x196)]&&globals[_0x41a2ea(0x1eb)](_0x487cae[_0x41a2ea(0x19e)])&&globals['getGlobal'](_0x487cae[_0x41a2ea(0x1a0)])){logger[_0x41a2ea(0x1b9)](_0x487cae[_0x41a2ea(0x1ab)]);const _0x17b0ae={};_0x17b0ae[_0x41a2ea(0x1ef)]=this[_0x41a2ea(0x19f)][_0x41a2ea(0x1fb)],_0x17b0ae[_0x41a2ea(0x1c5)]=process[_0x41a2ea(0x20e)][testHubConstants['ENV_VAR'][_0x41a2ea(0x192)]],_0x17b0ae['thJwtToken']=process['env'][testHubConstants[_0x41a2ea(0x1db)][_0x41a2ea(0x1f1)]];const _0x279523=_0x17b0ae;logger[_0x41a2ea(0x199)](_0x41a2ea(0x209)+JSON['stringify'](_0x279523)),logger[_0x41a2ea(0x199)](_0x487cae['FbHIQ']),logger[_0x41a2ea(0x199)](util[_0x41a2ea(0x1c2)](await global[_0x41a2ea(0x1a9)][0x0]['executeAsyncScript'](scripts[_0x41a2ea(0x1c0)],{'method':global['browserstackSessionName']}))),await global['__drivers'][0x0]['executeAsyncScript'](scripts[_0x41a2ea(0x1f2)],_0x279523),logger[_0x41a2ea(0x1b9)](_0x487cae[_0x41a2ea(0x1a1)]);}}catch(_0x1ae35a){logger[_0x41a2ea(0x1ae)](_0x41a2ea(0x1e5)+this[_0x41a2ea(0x19f)][_0x41a2ea(0x211)]()+_0x41a2ea(0x1f6),_0x1ae35a);}try{try{if(_0x487cae[_0x41a2ea(0x1c9)](shouldProcessEventForTesthub)){global[_0x41a2ea(0x1a9)][0x0]&&await _0x487cae[_0x41a2ea(0x19d)](sendPlatformDetails,global[_0x41a2ea(0x1a9)][0x0],this[_0x41a2ea(0x19f)]?this[_0x41a2ea(0x19f)][_0x41a2ea(0x1fb)]:null);if(_0x487cae['OIdYw'](isBrowserstackInfra)){const _0x22054d=_0x41a2ea(0x1cc)+Date[_0x41a2ea(0x1a7)]();await _0x487cae[_0x41a2ea(0x1e2)](_0x4e24a2,JSON[_0x41a2ea(0x210)](_0x22054d),_0x487cae[_0x41a2ea(0x216)]);}}}catch(_0x5d38a4){logger[_0x41a2ea(0x199)](_0x41a2ea(0x1e6)+_0x5d38a4);}_0x487cae['lnSeD'](global[_0x41a2ea(0x1a9)][0x0][_0x41a2ea(0x1dd)],0x0)&&await global[_0x41a2ea(0x204)]();}catch(_0x258c50){logger[_0x41a2ea(0x199)]('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0x258c50);}_0x487cae[_0x41a2ea(0x1ad)](_0x4f4d44);})[_0x813f4c(0x1d7)](()=>_0x5e03aa());},'afterAll'(_0x32da98){const _0x1d1434=a32_0x24cf7f,_0xf0cb09={'NIREg':function(_0x29fe8b){return _0x29fe8b();}},_0x2452ae='browserstack internal helper hook';this['timeout'](0xfde8),new Promise(async _0x218b06=>{const _0x3e3962=a32_0x3986;PerformanceTester[_0x3e3962(0x1fe)](),await global[_0x3e3962(0x204)](),_0xf0cb09[_0x3e3962(0x208)](_0x218b06);})[_0x1d1434(0x1d7)](()=>_0x32da98());}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';
|
|
2
|
+
'use strict';function a33_0x521b(){const _0x26a81d=['fpqjs','262xRkOVU','length','CBIJf','nightwatch.cmd','ordaZ','debug','test_settings','trim','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','now','BGjxd','config','unlinkSync','close','writeFileSync','useW3C','test','mergeDeep','winstonLogger','exports','inherit','port','host','29907UYbswF','nightwatch','slice','selenium','sTFvY','--env','FRCWF','wFaxw','EyasT','110iJrAVF','tKQCl','kchrX','673508gGNnGG','16WRPKbF','../utils/constants','push','env','info','join','findIndex','413950bWTqXA','hub.browserstack.com','nightwatch-browserstack.json','18fcscqZ','ZWUdK','27267qpRZcX','vFwli','mxMMj','start_process','yERMI','1911413HMvQWo','../../helpers/BrowserStackSetup','splice','yyFwz','isUndefined','nightwatch.json','gCwOm','forEach','stringify','modifyBrowserStackW3CCaps','../../helpers/logger','1031700XeWcio','child\x20process\x20exited\x20with\x20code\x20','344siEEtU','503329FenmPx','cwd','platforms','--config','desiredCapabilities','existsSync'];a33_0x521b=function(){return _0x26a81d;};return a33_0x521b();}const a33_0x3e1e37=a33_0x68fe;(function(_0x187fd3,_0x4c07e6){const _0x2c7a16=a33_0x68fe,_0x4d9500=_0x187fd3();while(!![]){try{const _0x18ebf5=-parseInt(_0x2c7a16(0xd9))/0x1+-parseInt(_0x2c7a16(0xe0))/0x2*(-parseInt(_0x2c7a16(0xc6))/0x3)+-parseInt(_0x2c7a16(0xba))/0x4*(-parseInt(_0x2c7a16(0xc1))/0x5)+-parseInt(_0x2c7a16(0xc4))/0x6*(parseInt(_0x2c7a16(0xcb))/0x7)+-parseInt(_0x2c7a16(0xd8))/0x8*(-parseInt(_0x2c7a16(0xad))/0x9)+-parseInt(_0x2c7a16(0xb6))/0xa*(-parseInt(_0x2c7a16(0xb9))/0xb)+-parseInt(_0x2c7a16(0xd6))/0xc;if(_0x18ebf5===_0x4c07e6)break;else _0x4d9500['push'](_0x4d9500['shift']());}catch(_0x279513){_0x4d9500['push'](_0x4d9500['shift']());}}}(a33_0x521b,0xe2fc7));const fs=require('fs'),path=require('path'),{spawn}=require('child_process'),logger=require(a33_0x3e1e37(0xd5))[a33_0x3e1e37(0xa8)],{default:BrowserStackSetup}=require(a33_0x3e1e37(0xcc)),helper=require('../../helpers/helper'),constants=require(a33_0x3e1e37(0xbb)),getUserNightwatchConfigs=(_0xd0b100,_0x13c831)=>{const _0xb34421=a33_0x3e1e37,_0x4f1a60={'wFaxw':'nightwatch.conf.js','ZWUdK':_0xb34421(0xd0),'pnBJS':function(_0xcb6792,_0x2830dc){return _0xcb6792(_0x2830dc);},'XptMX':'Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file'};let _0x3c83f2=null,_0x56b55e={};const _0x230a9f=_0x13c831[_0xb34421(0xc0)](_0x66de86=>_0x66de86===_0xb34421(0xdc));if(!helper[_0xb34421(0xcf)](_0xd0b100['config'])&&fs['existsSync'](path[_0xb34421(0xbf)](process[_0xb34421(0xda)](),_0xd0b100[_0xb34421(0xeb)])))_0x3c83f2=path[_0xb34421(0xbf)](process[_0xb34421(0xda)](),_0xd0b100['config']),_0x13c831[_0xb34421(0xcd)](_0x230a9f,0x2);else{if(fs[_0xb34421(0xde)](path[_0xb34421(0xbf)](process[_0xb34421(0xda)](),_0x4f1a60['wFaxw'])))_0x3c83f2=path['join'](process[_0xb34421(0xda)](),_0x4f1a60[_0xb34421(0xb4)]);else fs[_0xb34421(0xde)](path[_0xb34421(0xbf)](process[_0xb34421(0xda)](),_0x4f1a60['ZWUdK']))&&(_0x3c83f2=path[_0xb34421(0xbf)](process['cwd'](),_0x4f1a60[_0xb34421(0xc5)]));}return _0x3c83f2?(logger[_0xb34421(0xbe)]('Getting\x20your\x20nightwatch\x20configs\x20from\x20'+_0x3c83f2),_0x56b55e=_0x4f1a60['pnBJS'](require,_0x3c83f2)):logger[_0xb34421(0xbe)](_0x4f1a60['XptMX']),_0x56b55e;},removeExistingEnvs=_0x4bf465=>{const _0x313225=a33_0x3e1e37,_0x1707a5={};_0x1707a5['vFwli']=function(_0xefef8e,_0x173062){return _0xefef8e>_0x173062;};const _0x2f09bc=_0x1707a5;let _0x4af82a=_0x4bf465[_0x313225(0xc0)](_0x4a1f57=>_0x4a1f57===_0x313225(0xb2));_0x2f09bc[_0x313225(0xc7)](_0x4af82a,-0x1)&&_0x4bf465[_0x313225(0xcd)](_0x4af82a,0x2),_0x4af82a=_0x4bf465[_0x313225(0xc0)](_0x2b4835=>_0x2b4835==='-e'),_0x2f09bc[_0x313225(0xc7)](_0x4af82a,-0x1)&&_0x4bf465[_0x313225(0xcd)](_0x4af82a,0x2);};function a33_0x68fe(_0x50e06c,_0x16a4ef){const _0x521bbd=a33_0x521b();return a33_0x68fe=function(_0x68fe61,_0x215f00){_0x68fe61=_0x68fe61-0xa6;let _0x2cbb34=_0x521bbd[_0x68fe61];return _0x2cbb34;},a33_0x68fe(_0x50e06c,_0x16a4ef);}function run(_0xb9938c,_0x2716d8){const _0x14b752=a33_0x3e1e37,_0x39005c={'ordaZ':_0x14b752(0xae),'CBIJf':function(_0x1fbd8b,_0xf5c221){return _0x1fbd8b+_0xf5c221;},'kchrX':_0x14b752(0xe6),'mxMMj':function(_0x23025f,_0x2f8291,_0x31b299){return _0x23025f(_0x2f8291,_0x31b299);},'uIXmZ':_0x14b752(0xc2),'YtElw':_0x14b752(0xe8),'fpqjs':function(_0x840b55,_0x392248){return _0x840b55===_0x392248;},'sTFvY':_0x14b752(0xc3),'WTvJO':function(_0xbd3a28,_0x4c29d8){return _0xbd3a28(_0x4c29d8);},'tKQCl':function(_0x347b4e,_0x280bc0,_0x404eba,_0x2752d3){return _0x347b4e(_0x280bc0,_0x404eba,_0x2752d3);},'EyasT':_0x14b752(0xe3),'yyFwz':'--config','gCwOm':_0x14b752(0xb2),'ChhZN':_0x14b752(0xaa),'yERMI':_0x14b752(0xed)},_0x443ec1=new BrowserStackSetup(_0xb9938c);if(!_0x443ec1[_0x14b752(0xeb)])return;const _0x19b634=_0x39005c[_0x14b752(0xc8)](getUserNightwatchConfigs,_0xb9938c,_0x2716d8),_0x4178a3={};_0x4178a3[_0x14b752(0xc9)]=![];const _0x7a84b4={};_0x7a84b4[_0x14b752(0xac)]=_0x39005c['uIXmZ'],_0x7a84b4[_0x14b752(0xab)]=0x1bb;const _0x46aa47={};_0x46aa47['webdriver']=_0x4178a3,_0x46aa47[_0x14b752(0xb0)]=_0x7a84b4;const _0x462fb4=_0x46aa47;logger[_0x14b752(0xbe)](_0x39005c['YtElw']);const _0x3af107={..._0x19b634},_0x342d84=_0x3af107,_0x4452d4=helper[_0x14b752(0xef)](_0x443ec1[_0x14b752(0xeb)]),_0x45ba36=[];_0x443ec1[_0x14b752(0xeb)][_0x14b752(0xdb)][_0x14b752(0xd2)]((_0x4f2ca0,_0x3c7968)=>{const _0xdf0c9a=_0x14b752;_0x4452d4?_0x45ba36['push'](helper[_0xdf0c9a(0xd4)](_0x443ec1['config'],_0x39005c[_0xdf0c9a(0xe4)],_0x3c7968)):_0x45ba36[_0xdf0c9a(0xbc)](helper['modifyBrowserStackCaps'](_0x443ec1['config'],_0x39005c[_0xdf0c9a(0xe4)],_0x3c7968));});const _0x4f0080={},_0x1ea05b=[];_0xb9938c[_0x14b752(0xbd)]=_0xb9938c[_0x14b752(0xbd)]||_0xb9938c['e'];const _0x25ed7a=_0xb9938c[_0x14b752(0xbd)]?_0xb9938c[_0x14b752(0xbd)]['trim']()['split'](',')['map'](_0x2d5584=>_0x2d5584[_0x14b752(0xe7)]())['filter'](_0x205ae3=>_0x205ae3!==''):[''];_0x39005c[_0x14b752(0xdf)](_0x25ed7a[_0x14b752(0xe1)],0x0)&&_0x25ed7a[_0x14b752(0xbc)]('');_0x25ed7a[_0x14b752(0xd2)](_0x3d936d=>{const _0x502988=_0x14b752,_0x59a735={'BGjxd':function(_0x812b58,_0x53b440){const _0x3e720a=a33_0x68fe;return _0x39005c[_0x3e720a(0xe2)](_0x812b58,_0x53b440);},'FRCWF':_0x39005c[_0x502988(0xb8)]};_0x45ba36[_0x502988(0xd2)](_0x217bb2=>{const _0x3fa815=_0x502988;let _0x1c9bc2=_0x59a735[_0x3fa815(0xea)](helper['getPlatformName'](_0x217bb2,'_'),'_'+Date[_0x3fa815(0xe9)]());_0x3d936d&&(_0x1c9bc2+='_'+_0x3d936d);if(_0x3d936d&&(!_0x19b634[_0x59a735[_0x3fa815(0xb3)]]||!_0x19b634[_0x59a735['FRCWF']][_0x3d936d]))return;const _0x195b39={..._0x462fb4};_0x195b39[_0x3fa815(0xdd)]=_0x217bb2;const _0xd67174=_0x195b39;_0x4f0080[_0x1c9bc2]=_0x3d936d?helper[_0x3fa815(0xa7)](_0x19b634[_0x59a735[_0x3fa815(0xb3)]][_0x3d936d],_0xd67174):_0xd67174,_0x1ea05b[_0x3fa815(0xbc)](_0x1c9bc2);});});!_0x342d84[_0x14b752(0xe6)]&&(_0x342d84['test_settings']={});_0x342d84[_0x14b752(0xe6)]={..._0x342d84[_0x14b752(0xe6)],..._0x4f0080};const _0x439cc1=path[_0x14b752(0xbf)](__dirname,_0x39005c[_0x14b752(0xb1)]);fs[_0x14b752(0xee)](_0x439cc1,JSON[_0x14b752(0xd3)](_0x342d84)),_0x39005c['WTvJO'](removeExistingEnvs,_0x2716d8);const _0x370cdc=_0x39005c[_0x14b752(0xb7)](spawn,/^win/[_0x14b752(0xa6)](process['platform'])?_0x39005c[_0x14b752(0xb5)]:_0x39005c[_0x14b752(0xe4)],[_0x39005c[_0x14b752(0xce)],_0x439cc1,..._0x2716d8[_0x14b752(0xaf)](0x1),_0x39005c[_0x14b752(0xd1)],_0x1ea05b['join'](',')],{'stdio':_0x39005c['ChhZN']});_0x370cdc['on'](_0x39005c[_0x14b752(0xca)],async _0x97831d=>{const _0xe7c404=_0x14b752;logger[_0xe7c404(0xe5)](_0xe7c404(0xd7)+_0x97831d),logger[_0xe7c404(0xbe)]('Deleting\x20'+_0x439cc1),fs[_0xe7c404(0xec)](_0x439cc1);});}module[a33_0x3e1e37(0xa9)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a34_0x3e1dd7=a34_0x214d;(function(_0x4eda1e,_0x1ea242){const _0x3250ec=a34_0x214d,_0x5b7d53=_0x4eda1e();while(!![]){try{const _0x34d3b7=parseInt(_0x3250ec(0x16d))/0x1*(parseInt(_0x3250ec(0x133))/0x2)+parseInt(_0x3250ec(0x166))/0x3*(parseInt(_0x3250ec(0x158))/0x4)+-parseInt(_0x3250ec(0x176))/0x5+-parseInt(_0x3250ec(0x13d))/0x6+-parseInt(_0x3250ec(0x159))/0x7*(-parseInt(_0x3250ec(0x16a))/0x8)+parseInt(_0x3250ec(0x122))/0x9+-parseInt(_0x3250ec(0x11d))/0xa*(-parseInt(_0x3250ec(0x13c))/0xb);if(_0x34d3b7===_0x1ea242)break;else _0x5b7d53['push'](_0x5b7d53['shift']());}catch(_0x5952cf){_0x5b7d53['push'](_0x5b7d53['shift']());}}}(a34_0x3223,0x79cc5));function a34_0x3223(){const _0x463282=['794923oSberz','TfBqD','jZqTe','DixoG','bestPractice','WTbxX','currentTest','No\x20accessibility\x20results\x20were\x20found.','browserName','695040SgorQg','DtNUq','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','warn','accessibilityPlatform','testInfo','method','RLULJ','use','../../helpers/accessibility-automation/helper','Fcuhb','accessibilityOptions.includeIssueType.needsReview','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','waSWH','../../helpers/helper','playwright-chromium','svAur','stringify','project','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','executeAsyncScript','306310mlNHMY','deviceName','obSAN','blgpD','browserStackExecuteDriver','2446047uYNRgU','gsUlL','replace','kWOXl','scannerProcessingTimeout','util','browserstack.accessibility','BpAZW','nBXzh','RiyLh','mtnda','accessibilityOptions','QuClD','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','performScan','evaluate','getAccessibilityResults','2SNyYws','executeScript','KZKPL','lidGJ','kkNxc','format','error','connectOptions','wsEndpoint','11pLzZZs','5826996WeBPJM','accessibilityOptions.scannerVersion','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','rPqCr','ZLCLv','alNhu','(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','(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','accessibilityOptions.includeIssueType.bestPractice','mvleD','constructor','processAccessibilityCaps','setAccessibilityCapabilities','includeIssueType','../../helpers/logger','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','Playwright','getAccessibilityResultsSummary','browser_version','browserStackEvaluate','bstackSdkArgs','debug','sNfzX','PkrEO','IubGl','latest','winstonLogger','4076dThtzJ','4907NCMIff','deqrr','env','workerInfo','chrome','needsReview','dEcbA','OaTJz','Nymot','WebDriver','nvQiQ','platformValidation','fQDgt','939uzYawX','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','browser','sGSdZ','2200qQiRKq','wcagVersion','../../helpers/accessibility-automation/scripts'];a34_0x3223=function(){return _0x463282;};return a34_0x3223();}function a34_0x214d(_0x4f602b,_0x2715c7){const _0x3223eb=a34_0x3223();return a34_0x214d=function(_0x214dd3,_0x43d206){_0x214dd3=_0x214dd3-0x112;let _0x27c626=_0x3223eb[_0x214dd3];return _0x27c626;},a34_0x214d(_0x4f602b,_0x2715c7);}const util=require(a34_0x3e1dd7(0x127)),logger=require(a34_0x3e1dd7(0x14b))[a34_0x3e1dd7(0x157)],{isAccessibilityAutomationSession}=require(a34_0x3e1dd7(0x17f)),{isUndefined}=require(a34_0x3e1dd7(0x116)),scripts=require(a34_0x3e1dd7(0x16c));exports['browserStackEvaluate']=async(_0x232fb4,_0x51ca2a,_0x29c50c={})=>{const _0x3ccfb6=a34_0x3e1dd7,_0xf9bad6={};_0xf9bad6[_0x3ccfb6(0x125)]=_0x3ccfb6(0x151);const _0x25b61c=_0xf9bad6;return await _0x232fb4[_0x3ccfb6(0x131)](_0x3ccfb6(0x144)+_0x51ca2a['replace'](/arguments/g,_0x25b61c[_0x3ccfb6(0x125)])+_0x3ccfb6(0x14c)+JSON['stringify'](_0x29c50c)+')');},exports[a34_0x3e1dd7(0x121)]=async(_0xadf2cb,_0x793214,_0x51cb16={})=>{const _0x17d9f0=a34_0x3e1dd7,_0x138aea={};_0x138aea[_0x17d9f0(0x141)]=function(_0x5872e5,_0x2632ca){return _0x5872e5===_0x2632ca;},_0x138aea[_0x17d9f0(0x12c)]=_0x17d9f0(0x162),_0x138aea['DixoG']=_0x17d9f0(0x14d),_0x138aea[_0x17d9f0(0x12b)]=_0x17d9f0(0x151);const _0x11a9ce=_0x138aea;if(_0x11a9ce[_0x17d9f0(0x141)](_0xadf2cb[_0x17d9f0(0x147)]['name'],_0x11a9ce['mtnda']))return await _0xadf2cb[_0x17d9f0(0x11c)](_0x793214,_0x51cb16);else{if(_0x11a9ce[_0x17d9f0(0x141)](_0xadf2cb[_0x17d9f0(0x147)]['name'],_0x11a9ce[_0x17d9f0(0x170)]))return await _0xadf2cb[_0x17d9f0(0x134)](_0x17d9f0(0x143)+_0x793214[_0x17d9f0(0x124)](/arguments/g,_0x11a9ce[_0x17d9f0(0x12b)])+_0x17d9f0(0x11b)+JSON[_0x17d9f0(0x119)](_0x51cb16)+')');}},exports[a34_0x3e1dd7(0x149)]=async _0x429bc8=>{const _0x2c5963=a34_0x3e1dd7,_0x2362e0={};_0x2362e0[_0x2c5963(0x15f)]='accessibilityOptions.wcagVersion',_0x2362e0[_0x2c5963(0x172)]='accessibilityOptions.scannerProcessingTimeout',_0x2362e0[_0x2c5963(0x161)]=_0x2c5963(0x145),_0x2362e0[_0x2c5963(0x142)]=_0x2c5963(0x113),_0x2362e0[_0x2c5963(0x15a)]='accessibilityOptions.authToken',_0x2362e0[_0x2c5963(0x115)]=_0x2c5963(0x13e);const _0x2b9898=_0x2362e0;_0x429bc8[_0x2c5963(0x12d)]&&(_0x429bc8[_0x2c5963(0x12d)][_0x2c5963(0x16b)]&&(_0x429bc8[_0x2b9898[_0x2c5963(0x15f)]]=_0x429bc8['accessibilityOptions'][_0x2c5963(0x16b)]),_0x429bc8['accessibilityOptions'][_0x2c5963(0x126)]&&(_0x429bc8[_0x2b9898[_0x2c5963(0x172)]]=_0x429bc8[_0x2c5963(0x12d)][_0x2c5963(0x126)]),_0x429bc8[_0x2c5963(0x12d)]['includeIssueType']&&(_0x429bc8[_0x2b9898[_0x2c5963(0x161)]]=_0x429bc8[_0x2c5963(0x12d)]['includeIssueType'][_0x2c5963(0x171)],_0x429bc8[_0x2b9898[_0x2c5963(0x142)]]=_0x429bc8[_0x2c5963(0x12d)][_0x2c5963(0x14a)][_0x2c5963(0x15e)]));const _0x495235=JSON['parse'](process[_0x2c5963(0x15b)][_0x2c5963(0x167)])['scannerVersion'];_0x429bc8[_0x2b9898[_0x2c5963(0x15a)]]=process[_0x2c5963(0x15b)]['BS_A11Y_JWT'],_0x429bc8[_0x2b9898[_0x2c5963(0x115)]]=_0x495235,delete _0x429bc8[_0x2c5963(0x12d)];},exports[a34_0x3e1dd7(0x132)]=async _0x12c11c=>{const _0x2c52ba=a34_0x3e1dd7,_0x3368a6={};_0x3368a6['IubGl']=_0x2c52ba(0x174),_0x3368a6[_0x2c52ba(0x16e)]='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.';const _0x2b231f=_0x3368a6;if(global['accessibilityPlatform'])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x12c11c,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x12c11c,scripts.getResults);return res;}catch{return logger[_0x2c52ba(0x139)](_0x2b231f[_0x2c52ba(0x155)]),[];}else return logger['warn'](_0x2b231f[_0x2c52ba(0x16e)]),[];},exports['performScan']=async(_0x4a3325,_0x4f9e1e='')=>{const _0x3e408f=a34_0x3e1dd7;if(global[_0x3e408f(0x17a)]){const _0x14ae3c={};return _0x14ae3c[_0x3e408f(0x17c)]=_0x4f9e1e,await exports[_0x3e408f(0x150)](_0x4a3325,scripts[_0x3e408f(0x130)],_0x14ae3c);}},exports[a34_0x3e1dd7(0x14e)]=async _0x34a23d=>{const _0x3f5fbe=a34_0x3e1dd7,_0x1778b6={};_0x1778b6[_0x3f5fbe(0x12a)]='No\x20summaryResults\x20found.',_0x1778b6[_0x3f5fbe(0x169)]=_0x3f5fbe(0x13f);const _0x46d742=_0x1778b6;if(global['accessibilityPlatform'])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x34a23d,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x34a23d,scripts.getResultsSummary);return summaryResults;}catch{return logger[_0x3f5fbe(0x152)](_0x46d742['nBXzh']),{};}else return logger['warn'](_0x46d742['sGSdZ']),{};},exports[a34_0x3e1dd7(0x164)]=async _0xd6bfc6=>{const _0x37cdfb=a34_0x3e1dd7,_0x5d3d77={'JffNS':function(_0x44693b,_0x356528){return _0x44693b!==_0x356528;},'nvQiQ':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','svAur':function(_0x37bcde,_0x1aeb31){return _0x37bcde===_0x1aeb31;},'QuClD':'chrome','OaTJz':function(_0x4f98b3,_0x2fef76){return _0x4f98b3===_0x2fef76;},'DtNUq':_0x37cdfb(0x117),'vqeoL':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','blMNC':function(_0x5d8c5a,_0x10645f){return _0x5d8c5a(_0x10645f);},'mvleD':function(_0x98460d,_0x28482d){return _0x98460d===_0x28482d;},'ghpyi':_0x37cdfb(0x156),'kkNxc':function(_0x19a6bb,_0xee110e){return _0x19a6bb>_0xee110e;},'PkrEO':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.'};try{if(!_0x5d3d77['JffNS'](_0xd6bfc6[_0x37cdfb(0x11e)],''))return logger[_0x37cdfb(0x179)](_0x5d3d77[_0x37cdfb(0x163)]),![];const _0x434a85=_0xd6bfc6[_0x37cdfb(0x168)];if(!(_0x5d3d77[_0x37cdfb(0x118)](_0x434a85,_0x5d3d77[_0x37cdfb(0x12e)])||_0x5d3d77[_0x37cdfb(0x160)](_0x434a85,_0x5d3d77[_0x37cdfb(0x177)])))return logger['warn'](_0x5d3d77['vqeoL']),![];const _0xa6b7f2=_0x5d3d77['blMNC'](parseInt,_0xd6bfc6['browser_version']);if(!(_0x5d3d77[_0x37cdfb(0x146)](_0xa6b7f2,_0x5d3d77['ghpyi'])||_0x5d3d77[_0x37cdfb(0x137)](_0xa6b7f2,0x5e)))return logger['warn'](_0x5d3d77[_0x37cdfb(0x154)]),![];}catch(_0x42897a){logger[_0x37cdfb(0x152)](_0x37cdfb(0x178)+util[_0x37cdfb(0x138)](_0x42897a));}return!![];},exports[a34_0x3e1dd7(0x148)]=(_0x3c8674,_0x1db025,_0x5daffc)=>{const _0x3efcd5=a34_0x3e1dd7,_0x3b18a0={'fQDgt':function(_0xf6d7a9){return _0xf6d7a9();},'jZqTe':_0x3efcd5(0x128),'blgpD':function(_0x144514,_0x14d22a){return _0x144514===_0x14d22a;},'sNfzX':_0x3efcd5(0x15d),'gsUlL':'playwright-chromium','RLULJ':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','lidGJ':function(_0x4d7437,_0x3e8bb9){return _0x4d7437===_0x3e8bb9;},'CPURv':'latest','BpAZW':function(_0x52fee5,_0x225a19){return _0x52fee5>_0x225a19;},'KZKPL':_0x3efcd5(0x114),'CGmBW':function(_0x57f132,_0x216d63){return _0x57f132(_0x216d63);},'rPqCr':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','obSAN':function(_0x12dbb6,_0x14d6fe){return _0x12dbb6+_0x14d6fe;},'Fcuhb':function(_0xcbfc1f,_0x42cf4a){return _0xcbfc1f(_0x42cf4a);}};try{if(_0x3b18a0[_0x3efcd5(0x165)](isAccessibilityAutomationSession)){global[_0x3efcd5(0x17a)]=!![];!_0x3c8674[_0x3b18a0[_0x3efcd5(0x16f)]]&&(global[_0x3efcd5(0x17a)]=![]);!(_0x3b18a0['blgpD'](_0x3c8674[_0x3efcd5(0x175)],_0x3b18a0[_0x3efcd5(0x153)])||_0x3b18a0[_0x3efcd5(0x120)](_0x3c8674[_0x3efcd5(0x175)],_0x3b18a0[_0x3efcd5(0x123)]))&&(logger[_0x3efcd5(0x179)](_0x3b18a0[_0x3efcd5(0x17d)]),global[_0x3efcd5(0x17a)]=![]);!(_0x3b18a0[_0x3efcd5(0x136)](_0x3c8674[_0x3efcd5(0x14f)],_0x3b18a0['CPURv'])||_0x3b18a0[_0x3efcd5(0x129)](_0x3c8674[_0x3efcd5(0x14f)],0x5e))&&(logger[_0x3efcd5(0x179)](_0x3b18a0[_0x3efcd5(0x135)]),global['accessibilityPlatform']=![]);!_0x3b18a0['CGmBW'](isUndefined,_0x3c8674[_0x3efcd5(0x11e)])&&(logger[_0x3efcd5(0x179)](_0x3b18a0[_0x3efcd5(0x140)]),global['accessibilityPlatform']=![]);if(!global[_0x3efcd5(0x17a)]){_0x3c8674[_0x3b18a0[_0x3efcd5(0x16f)]]=![];const _0x597c20=_0x3b18a0[_0x3efcd5(0x11f)](_0x1db025,_0x3b18a0[_0x3efcd5(0x112)](encodeURIComponent,JSON['stringify'](_0x3c8674)));_0x5daffc&&(_0x5daffc[_0x3efcd5(0x173)][_0x3efcd5(0x17b)][_0x3efcd5(0x11a)][_0x3efcd5(0x17e)][_0x3efcd5(0x13a)][_0x3efcd5(0x13b)]=_0x597c20,_0x5daffc[_0x3efcd5(0x15c)]['project'][_0x3efcd5(0x17e)][_0x3efcd5(0x13a)][_0x3efcd5(0x13b)]=_0x597c20);}}}catch(_0x33bc2c){logger[_0x3efcd5(0x152)](_0x3efcd5(0x12f)+util[_0x3efcd5(0x138)](_0x33bc2c));}};
|
|
1
|
+
const a34_0x4e802e=a34_0x3140;(function(_0x5e3d2f,_0x2c097a){const _0x187750=a34_0x3140,_0x315835=_0x5e3d2f();while(!![]){try{const _0x5084c4=parseInt(_0x187750(0x130))/0x1+-parseInt(_0x187750(0x12c))/0x2+-parseInt(_0x187750(0x13c))/0x3*(-parseInt(_0x187750(0x136))/0x4)+parseInt(_0x187750(0x16a))/0x5*(-parseInt(_0x187750(0x149))/0x6)+parseInt(_0x187750(0x160))/0x7+parseInt(_0x187750(0x161))/0x8*(parseInt(_0x187750(0x146))/0x9)+-parseInt(_0x187750(0x147))/0xa;if(_0x5084c4===_0x2c097a)break;else _0x315835['push'](_0x315835['shift']());}catch(_0x23b48b){_0x315835['push'](_0x315835['shift']());}}}(a34_0x3c50,0xaf93d));function a34_0x3140(_0x2ff78b,_0x398599){const _0x3c504f=a34_0x3c50();return a34_0x3140=function(_0x314062,_0x38a59b){_0x314062=_0x314062-0x116;let _0x349ae7=_0x3c504f[_0x314062];return _0x349ae7;},a34_0x3140(_0x2ff78b,_0x398599);}const util=require('util'),logger=require('../../helpers/logger')['winstonLogger'],{isAccessibilityAutomationSession}=require(a34_0x4e802e(0x173)),{isUndefined}=require(a34_0x4e802e(0x140)),scripts=require(a34_0x4e802e(0x12a));function a34_0x3c50(){const _0x3a8c60=['VMwnM','LDEct','stringify','UJYJq','jPLsx','wsEndpoint','eNtfp','../../helpers/accessibility-automation/helper','use','scannerProcessingTimeout','IOULB','replace','error','uvwJS','Lyyay','parse','Playwright','platformValidation','workerInfo','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','accessibilityPlatform','DJRzS','browserStackExecuteDriver','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','evaluate','OqpoT','jHIcT','kpnbo','testInfo','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','accessibilityOptions.includeIssueType.bestPractice','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','(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','browser','SzbmW','JDOcD','axYaQ','QudZl','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','../../helpers/accessibility-automation/scripts','deviceName','329022bmWlEz','performScan','processAccessibilityCaps','pblyu','493917OPDHHg','format','OxSzA','RVGSG','DVRKc','wXoLB','35836UzNmSk','chrome','method','WdCke','getAccessibilityResults','ndCPE','204tqaJty','wACsP','oNQEF','dYRlt','../../helpers/helper','includeIssueType','needsReview','constructor','No\x20summaryResults\x20found.','latest','4761kjBrWV','8715720QIObVo','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','3539370tPMNSS','debug','bestPractice','name','connectOptions','No\x20accessibility\x20results\x20were\x20found.','HFuld','mKfIv','getAccessibilityResultsSummary','executeAsyncScript','accessibilityOptions','cjfkI','executeScript','(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20\x20\x20','accessibilityOptions.wcagVersion','playwright-chromium','DPxcy','oJweD','bstackSdkArgs','scannerVersion','warn','accessibilityOptions.scannerProcessingTimeout','wcagVersion','1065918HeXYLc','16480BOcdhq','currentTest','yGJjy','EzsQN','setAccessibilityCapabilities','browserName','ISXqM','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','5XwAjBg','project'];a34_0x3c50=function(){return _0x3a8c60;};return a34_0x3c50();}exports['browserStackEvaluate']=async(_0x515f22,_0x4f2924,_0x136e9c={})=>{const _0xe5902f=a34_0x4e802e,_0x534274={};_0x534274[_0xe5902f(0x150)]=_0xe5902f(0x15b);const _0x415dd2=_0x534274;return await _0x515f22[_0xe5902f(0x11a)](_0xe5902f(0x122)+_0x4f2924[_0xe5902f(0x177)](/arguments/g,_0x415dd2[_0xe5902f(0x150)])+_0xe5902f(0x128)+JSON[_0xe5902f(0x16e)](_0x136e9c)+')');},exports[a34_0x4e802e(0x118)]=async(_0x37894c,_0x64d4c,_0x2cf010={})=>{const _0x36ec0f=a34_0x4e802e,_0x4c4c38={};_0x4c4c38['yGJjy']=function(_0x3f8fdb,_0x410b26){return _0x3f8fdb===_0x410b26;},_0x4c4c38['lEPPQ']='WebDriver',_0x4c4c38[_0x36ec0f(0x132)]=_0x36ec0f(0x17c),_0x4c4c38[_0x36ec0f(0x11b)]=_0x36ec0f(0x15b);const _0x1be89b=_0x4c4c38;if(_0x1be89b[_0x36ec0f(0x163)](_0x37894c[_0x36ec0f(0x143)][_0x36ec0f(0x14c)],_0x1be89b['lEPPQ']))return await _0x37894c[_0x36ec0f(0x152)](_0x64d4c,_0x2cf010);else{if(_0x1be89b[_0x36ec0f(0x163)](_0x37894c['constructor'][_0x36ec0f(0x14c)],_0x1be89b[_0x36ec0f(0x132)]))return await _0x37894c[_0x36ec0f(0x155)](_0x36ec0f(0x156)+_0x64d4c['replace'](/arguments/g,_0x1be89b['OqpoT'])+'\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})('+JSON[_0x36ec0f(0x16e)](_0x2cf010)+')');}},exports[a34_0x4e802e(0x165)]=async _0x11261a=>{const _0x42752c=a34_0x4e802e,_0x15fc0b={};_0x15fc0b[_0x42752c(0x164)]=_0x42752c(0x157),_0x15fc0b[_0x42752c(0x154)]=_0x42752c(0x15e),_0x15fc0b[_0x42752c(0x172)]=_0x42752c(0x120),_0x15fc0b[_0x42752c(0x11c)]='accessibilityOptions.includeIssueType.needsReview',_0x15fc0b[_0x42752c(0x117)]='accessibilityOptions.authToken',_0x15fc0b[_0x42752c(0x124)]='accessibilityOptions.scannerVersion';const _0x4c9290=_0x15fc0b;_0x11261a[_0x42752c(0x153)]&&(_0x11261a['accessibilityOptions'][_0x42752c(0x15f)]&&(_0x11261a[_0x4c9290[_0x42752c(0x164)]]=_0x11261a[_0x42752c(0x153)][_0x42752c(0x15f)]),_0x11261a[_0x42752c(0x153)]['scannerProcessingTimeout']&&(_0x11261a[_0x4c9290['cjfkI']]=_0x11261a[_0x42752c(0x153)][_0x42752c(0x175)]),_0x11261a[_0x42752c(0x153)]['includeIssueType']&&(_0x11261a[_0x4c9290[_0x42752c(0x172)]]=_0x11261a[_0x42752c(0x153)][_0x42752c(0x141)][_0x42752c(0x14b)],_0x11261a[_0x4c9290[_0x42752c(0x11c)]]=_0x11261a[_0x42752c(0x153)][_0x42752c(0x141)][_0x42752c(0x142)]));const _0x1c750a=JSON[_0x42752c(0x17b)](process['env'][_0x42752c(0x169)])[_0x42752c(0x15c)];_0x11261a[_0x4c9290['DJRzS']]=process['env']['BS_A11Y_JWT'],_0x11261a[_0x4c9290[_0x42752c(0x124)]]=_0x1c750a,delete _0x11261a[_0x42752c(0x153)];},exports[a34_0x4e802e(0x13a)]=async _0x4d0b06=>{const _0x1b5b88=a34_0x4e802e,_0x5a3f13={};_0x5a3f13[_0x1b5b88(0x139)]=_0x1b5b88(0x14e),_0x5a3f13[_0x1b5b88(0x134)]=_0x1b5b88(0x11f);const _0x573244=_0x5a3f13;if(global[_0x1b5b88(0x116)])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x4d0b06,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x4d0b06,scripts.getResults);return res;}catch{return logger[_0x1b5b88(0x178)](_0x573244[_0x1b5b88(0x139)]),[];}else return logger[_0x1b5b88(0x15d)](_0x573244['DVRKc']),[];},exports[a34_0x4e802e(0x12d)]=async(_0x2a54d8,_0x23a934='')=>{const _0x1c20ff=a34_0x4e802e;if(global[_0x1c20ff(0x116)]){const _0x39b47c={};return _0x39b47c[_0x1c20ff(0x138)]=_0x23a934,await exports['browserStackEvaluate'](_0x2a54d8,scripts[_0x1c20ff(0x12d)],_0x39b47c);}},exports[a34_0x4e802e(0x151)]=async _0x50fc72=>{const _0x128d1b=a34_0x4e802e,_0x4d4ea={};_0x4d4ea['VYlpk']=_0x128d1b(0x144),_0x4d4ea[_0x128d1b(0x133)]=_0x128d1b(0x129);const _0x46ffc0=_0x4d4ea;if(global[_0x128d1b(0x116)])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x50fc72,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x50fc72,scripts.getResultsSummary);return summaryResults;}catch{return logger[_0x128d1b(0x14a)](_0x46ffc0['VYlpk']),{};}else return logger[_0x128d1b(0x15d)](_0x46ffc0['RVGSG']),{};},exports[a34_0x4e802e(0x17d)]=async _0x5015e6=>{const _0x95b912=a34_0x4e802e,_0x4a7096={'oJweD':function(_0x3a32aa,_0x537e50){return _0x3a32aa!==_0x537e50;},'DnuUn':_0x95b912(0x168),'Lyyay':function(_0x4f04bc,_0x3cde18){return _0x4f04bc===_0x3cde18;},'QudZl':_0x95b912(0x137),'dbfyL':function(_0x50fb8f,_0x4edf04){return _0x50fb8f===_0x4edf04;},'uvwJS':_0x95b912(0x158),'DPxcy':_0x95b912(0x17f),'wACsP':function(_0x583736,_0x4dc76d){return _0x583736(_0x4dc76d);},'UJYJq':function(_0xee70f9,_0x13b598){return _0xee70f9===_0x13b598;},'IOULB':_0x95b912(0x145),'roTFE':function(_0x3747fb,_0x3a1fa6){return _0x3747fb>_0x3a1fa6;},'dYRlt':_0x95b912(0x148)};try{if(!_0x4a7096[_0x95b912(0x15a)](_0x5015e6[_0x95b912(0x12b)],''))return logger[_0x95b912(0x15d)](_0x4a7096['DnuUn']),![];const _0x9b2eae=_0x5015e6[_0x95b912(0x123)];if(!(_0x4a7096[_0x95b912(0x17a)](_0x9b2eae,_0x4a7096[_0x95b912(0x127)])||_0x4a7096['dbfyL'](_0x9b2eae,_0x4a7096[_0x95b912(0x179)])))return logger['warn'](_0x4a7096[_0x95b912(0x159)]),![];const _0x3b26a8=_0x4a7096[_0x95b912(0x13d)](parseInt,_0x5015e6['browser_version']);if(!(_0x4a7096[_0x95b912(0x16f)](_0x3b26a8,_0x4a7096[_0x95b912(0x176)])||_0x4a7096['roTFE'](_0x3b26a8,0x5e)))return logger['warn'](_0x4a7096[_0x95b912(0x13f)]),![];}catch(_0x255c21){logger[_0x95b912(0x14a)](_0x95b912(0x119)+util[_0x95b912(0x131)](_0x255c21));}return!![];},exports[a34_0x4e802e(0x12e)]=(_0x1360e1,_0xa99c46,_0x432647)=>{const _0x38ec7c=a34_0x4e802e,_0x3f60fa={'JDOcD':function(_0x2d9de3){return _0x2d9de3();},'wXoLB':'browserstack.accessibility','axYaQ':function(_0x3c65b1,_0x25461e){return _0x3c65b1===_0x25461e;},'VMwnM':_0x38ec7c(0x137),'ndCPE':function(_0x5abf7b,_0x364a2f){return _0x5abf7b===_0x364a2f;},'sjhZx':_0x38ec7c(0x158),'HWsOG':_0x38ec7c(0x17f),'oNQEF':_0x38ec7c(0x145),'LDEct':function(_0x2dd590,_0x5daf2c){return _0x2dd590>_0x5daf2c;},'jPLsx':_0x38ec7c(0x148),'pblyu':function(_0xe45bd,_0x249b3a){return _0xe45bd(_0x249b3a);},'kpnbo':_0x38ec7c(0x168),'ISXqM':function(_0xd8f589,_0x318fe2){return _0xd8f589+_0x318fe2;},'HFuld':function(_0x1c7fb2,_0x437784){return _0x1c7fb2(_0x437784);}};try{if(_0x3f60fa[_0x38ec7c(0x125)](isAccessibilityAutomationSession)){global[_0x38ec7c(0x116)]=!![];!_0x1360e1[_0x3f60fa['wXoLB']]&&(global[_0x38ec7c(0x116)]=![]);!(_0x3f60fa[_0x38ec7c(0x126)](_0x1360e1[_0x38ec7c(0x166)],_0x3f60fa[_0x38ec7c(0x16c)])||_0x3f60fa[_0x38ec7c(0x13b)](_0x1360e1[_0x38ec7c(0x166)],_0x3f60fa['sjhZx']))&&(logger[_0x38ec7c(0x15d)](_0x3f60fa['HWsOG']),global[_0x38ec7c(0x116)]=![]);!(_0x3f60fa['ndCPE'](_0x1360e1['browser_version'],_0x3f60fa[_0x38ec7c(0x13e)])||_0x3f60fa[_0x38ec7c(0x16d)](_0x1360e1['browser_version'],0x5e))&&(logger[_0x38ec7c(0x15d)](_0x3f60fa[_0x38ec7c(0x170)]),global['accessibilityPlatform']=![]);!_0x3f60fa[_0x38ec7c(0x12f)](isUndefined,_0x1360e1[_0x38ec7c(0x12b)])&&(logger[_0x38ec7c(0x15d)](_0x3f60fa[_0x38ec7c(0x11d)]),global['accessibilityPlatform']=![]);if(!global['accessibilityPlatform']){_0x1360e1[_0x3f60fa[_0x38ec7c(0x135)]]=![];const _0x3f356d=_0x3f60fa[_0x38ec7c(0x167)](_0xa99c46,_0x3f60fa[_0x38ec7c(0x14f)](encodeURIComponent,JSON[_0x38ec7c(0x16e)](_0x1360e1)));_0x432647&&(_0x432647[_0x38ec7c(0x162)][_0x38ec7c(0x11e)][_0x38ec7c(0x16b)][_0x38ec7c(0x174)]['connectOptions'][_0x38ec7c(0x171)]=_0x3f356d,_0x432647[_0x38ec7c(0x17e)][_0x38ec7c(0x16b)][_0x38ec7c(0x174)][_0x38ec7c(0x14d)][_0x38ec7c(0x171)]=_0x3f356d);}}}catch(_0x3cb186){logger[_0x38ec7c(0x14a)](_0x38ec7c(0x121)+util[_0x38ec7c(0x131)](_0x3cb186));}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a35_0x1e0bea=a35_0xdcc9;function a35_0xdcc9(_0x2ac689,_0x2de421){const _0x44e039=a35_0x44e0();return a35_0xdcc9=function(_0xdcc90d,_0x5af65b){_0xdcc90d=_0xdcc90d-0x1af;let _0x3941f=_0x44e039[_0xdcc90d];return _0x3941f;},a35_0xdcc9(_0x2ac689,_0x2de421);}(function(_0x5d1503,_0x236be0){const _0x48b06b=a35_0xdcc9,_0x4358ef=_0x5d1503();while(!![]){try{const _0x243707=parseInt(_0x48b06b(0x23d))/0x1*(-parseInt(_0x48b06b(0x221))/0x2)+parseInt(_0x48b06b(0x212))/0x3+parseInt(_0x48b06b(0x1b6))/0x4+-parseInt(_0x48b06b(0x1f2))/0x5*(-parseInt(_0x48b06b(0x230))/0x6)+-parseInt(_0x48b06b(0x1f0))/0x7+parseInt(_0x48b06b(0x225))/0x8*(parseInt(_0x48b06b(0x20d))/0x9)+-parseInt(_0x48b06b(0x1b4))/0xa*(-parseInt(_0x48b06b(0x1bf))/0xb);if(_0x243707===_0x236be0)break;else _0x4358ef['push'](_0x4358ef['shift']());}catch(_0x48d837){_0x4358ef['push'](_0x4358ef['shift']());}}}(a35_0x44e0,0x2860a));const fs=require('fs'),path=require(a35_0x1e0bea(0x203)),{spawn}=require(a35_0x1e0bea(0x1e9)),{format}=require('util'),logger=require(a35_0x1e0bea(0x1d7))['winstonLogger'],{default:BrowserStackSetup}=require(a35_0x1e0bea(0x1d1)),helper=require(a35_0x1e0bea(0x1fd)),utilities=require(a35_0x1e0bea(0x240)),constants=require(a35_0x1e0bea(0x209)),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require(a35_0x1e0bea(0x1da)),{CrashReporter}=require(a35_0x1e0bea(0x1d9)),{getFrameworkVersion}=require('../../helpers/test-observability/utils'),{checkAccessibilityPlatformConfig}=require(a35_0x1e0bea(0x247)),{setAccessibilityCapabilities}=require(a35_0x1e0bea(0x244)),TestHubHandler=require('../../helpers/testhub/testhubHandler'),{shouldProcessEventForTesthub}=require(a35_0x1e0bea(0x1c3)),getUserPlaywrightConfig=async(_0x158264,_0x18a9c7)=>{const _0x4df3bc=a35_0x1e0bea,_0x5b2b57={'ImYQw':function(_0x3f074c){return _0x3f074c();},'LISbO':function(_0x50c47f,_0x5831d0){return _0x50c47f(_0x5831d0);},'CLeZg':function(_0x252f74,_0x4f6a8e){return _0x252f74(_0x4f6a8e);},'yvcEc':_0x4df3bc(0x23c),'PvhkE':'--config='},_0x2c2f28=!helper[_0x4df3bc(0x24b)](_0x158264[_0x4df3bc(0x1ec)]),_0x449d40=_0x2c2f28?path[_0x4df3bc(0x22e)](process[_0x4df3bc(0x246)](),_0x158264[_0x4df3bc(0x1ec)]):process[_0x4df3bc(0x246)](),{resolveConfigFile:_0x24d9cf,resolveConfigLocation:_0x1a683d}=helper[_0x4df3bc(0x1c2)]['apply'](null,_0x5b2b57[_0x4df3bc(0x213)](getConfigLoaderPath)),_0x475861=_0x24d9cf?_0x5b2b57[_0x4df3bc(0x224)](_0x24d9cf,_0x449d40):helper['nestedKeyValue'](_0x5b2b57[_0x4df3bc(0x208)](_0x1a683d,_0x449d40),[_0x5b2b57[_0x4df3bc(0x1cb)]]),_0x520775={};if(_0x2c2f28){const _0x5c2eef=_0x18a9c7[_0x4df3bc(0x235)](_0x5d3914=>_0x5d3914==='--config'||_0x5d3914==='-c'||_0x5d3914[_0x4df3bc(0x1df)](_0x4df3bc(0x22c)));_0x18a9c7[_0x4df3bc(0x21b)](_0x5c2eef,_0x18a9c7[_0x5c2eef][_0x4df3bc(0x1df)](_0x5b2b57[_0x4df3bc(0x1c0)])?0x1:0x2);}const _0x417156={};return _0x417156[_0x4df3bc(0x203)]=_0x475861,_0x417156[_0x4df3bc(0x1ec)]=_0x520775,_0x417156;},handleO11yRerun=_0x5e3c91=>{const _0x4f44dd=a35_0x1e0bea,_0x1d042f={};_0x1d042f['cZeip']=function(_0x538830,_0x397c50){return _0x538830!==_0x397c50;},_0x1d042f[_0x4f44dd(0x1c8)]='null',_0x1d042f[_0x4f44dd(0x21e)]=_0x4f44dd(0x210);const _0x403298=_0x1d042f,_0x3d72c7=helper[_0x4f44dd(0x1b8)](process[_0x4f44dd(0x219)][_0x4f44dd(0x237)]);if(_0x3d72c7){const _0x5f1cad=process['env'][_0x4f44dd(0x22f)],_0x190361=[];if(_0x403298[_0x4f44dd(0x216)](_0x5f1cad,_0x403298[_0x4f44dd(0x1c8)])&&!helper[_0x4f44dd(0x24b)](_0x5f1cad)){_0x5f1cad['split'](',')[_0x4f44dd(0x206)](_0x2e7a0f=>{_0x190361['push']('('+_0x2e7a0f['trim']()+')');});const _0x6c56fa='^'+_0x190361['join']('|')+'$';_0x5e3c91[_0x4f44dd(0x1f9)](_0x403298['vwKgs'],_0x6c56fa);}}},spawnOriginalProcess=_0x4dc810=>{const _0x20d8d7=a35_0x1e0bea,_0x2919dc={'ircIK':function(_0x30e9b6,_0x3353d8,_0x3f5224,_0x7332e0){return _0x30e9b6(_0x3353d8,_0x3f5224,_0x7332e0);},'NZWhT':_0x20d8d7(0x1e1),'bYRfk':_0x20d8d7(0x1e2),'tMDof':function(_0x214fbf,_0x560458){return _0x214fbf===_0x560458;},'aWNYN':_0x20d8d7(0x1eb),'yuqMq':'inherit'};_0x2919dc['ircIK'](spawn,_0x2919dc[_0x20d8d7(0x21d)],[_0x2919dc['bYRfk'],..._0x4dc810['slice'](0x1)],{'shell':_0x2919dc[_0x20d8d7(0x1bb)](process[_0x20d8d7(0x1e5)],_0x2919dc[_0x20d8d7(0x1dd)]),'stdio':_0x2919dc[_0x20d8d7(0x222)],'cwd':process[_0x20d8d7(0x246)]()});},isTestCommand=(_0x3a27e6,_0x149099)=>{const _0x11edfa=a35_0x1e0bea,_0x46d920={};_0x46d920['LufId']=function(_0x2f21f3,_0x29fe8a){return _0x2f21f3>_0x29fe8a;},_0x46d920['beHdB']=function(_0x342ed8,_0x3cff59){return _0x342ed8===_0x3cff59;},_0x46d920['BexTt']=_0x11edfa(0x205);const _0x3a674d=_0x46d920;if(_0x3a674d[_0x11edfa(0x23b)](_0x149099[_0x11edfa(0x227)],0x1)&&_0x3a674d[_0x11edfa(0x236)](_0x149099[0x1],_0x3a674d[_0x11edfa(0x229)]))return!![];return![];};function a35_0x44e0(){const _0x4bc44a=['BexTt','get','VfDZU','--config=','inherit','resolve','BROWSERSTACK_RERUN_TESTS','438WJbsVd','pw_result.json','ShygW','exports','VsHSC','findIndex','beHdB','BROWSERSTACK_RERUN','BROWSERSTACK_AUTOMATION','gDFhz','CqtOv','LufId','resolvedConfigFile','21xbqYgA','nvbyz','accessibility','../../helpers/utilities','Error\x20in\x20closing\x20playwright','HkGvq','jSPCn','./accessibility-helper','concat','cwd','../../helpers/accessibility-automation/helper','skipSessionName','BROWSERSTACK_TEST_ACCESSIBILITY_YML','getPackageType','isUndefined','existsSync','parse','UNafz','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','stop','8290nPexWt','errorMessage','719128ILEklM','rPftF','isTrue','BJsoo','markSDKSetupComplete','tMDof','cZQms','close','eJyrg','2816oejZXP','PvhkE','Error\x20in\x20deleting\x20playwright\x20results','requirePWModule','../../helpers/testhub/utils','Playwright\x20process\x20exited\x20with\x20code\x20','XAXhD','ZPRgR','includes','Cjvly','xswLa','assign','yvcEc','cliConfig','testContextOptions','getProxyUrl','false','launchBuild','../../helpers/BrowserStackSetup','knBnt','split','initialize','uacRk','isFalse','../../helpers/logger','Error\x20in\x20getting\x20funnel\x20data\x20results','../../helpers/test-observability/error-handler','./reporter/pwUtils','join','slice','aWNYN','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','startsWith','filterBrowserstackArgs','npx','playwright','filter','accessibilityOptions','platform','uQhGx','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','dirname','child_process','error','win32','config','gyHJi','IjVSr','eXzKs','1960875YKVAFQ','MODULE','4150jVRxkN','5|8|2|6|3|1|7|4|0','BROWSERSTACK_TEST_OBSERVABILITY','true','automation','isTypescriptProject','info','push','homedir','MZumI','--config','../../helpers/helper','hoReW','testObservability','clearTempPWConfig','USER_CONFIG_DETAILS_PATH','serializeToYamlString','path','unlinkSync','test','map','RnxHq','CLeZg','../utils/constants','OZwGu','debug','BROWSERSTACK_PW_CONFIG_DIR','326997GhzfoJ','finalExecution','PACKAGE_TYPE','--grep','browserstackSetupConfig.json','75936vyBtqg','ImYQw','hNYXp','writeFileSync','cZeip','YCiDw','has','env','OsyBb','splice','eKoZh','NZWhT','vwKgs','Deleting\x20','getConfigPath','10006LfABNJ','yuqMq','InToI','LISbO','16foqRmC','--disable-browserstack-automation','length','readFileSync'];a35_0x44e0=function(){return _0x4bc44a;};return a35_0x44e0();}async function run(_0xc8b456,_0x4c6347){const _0x25e04e=a35_0x1e0bea,_0x2a7be8={'InToI':'.browserstack','eXzKs':_0x25e04e(0x231),'bYaUj':function(_0x15d0d3,_0x58d620){return _0x15d0d3+_0x58d620;},'gDFhz':_0x25e04e(0x1d8),'hoReW':_0x25e04e(0x1f3),'UNafz':function(_0x14c446){return _0x14c446();},'rPftF':_0x25e04e(0x241),'jSPCn':'--disable-browserstack-automation','CqtOv':_0x25e04e(0x1cf),'mfQJM':'--disable-test-observability','dnrEV':function(_0x2b44a5,_0x3cc895){return _0x2b44a5>=_0x3cc895;},'MZumI':function(_0x2f3167,_0x1c6f56){return _0x2f3167+_0x1c6f56;},'XAXhD':_0x25e04e(0x1c1),'hNYXp':function(_0x2283d8,_0x46b087,_0x2bb3c8){return _0x2283d8(_0x46b087,_0x2bb3c8);},'IjVSr':function(_0xd30f14,_0x43201f){return _0xd30f14(_0x43201f);},'HkGvq':'BrowserStack\x20config\x20file\x20not\x20found.','gyHJi':_0x25e04e(0x1f6),'xswLa':function(_0x49f88c,_0x26811b){return _0x49f88c!=_0x26811b;},'RnxHq':function(_0x5825f1,_0x5c235e,_0x355661){return _0x5825f1(_0x5c235e,_0x355661);},'BJsoo':function(_0x1867ea,_0x27e4f0){return _0x1867ea===_0x27e4f0;},'Hniuj':_0x25e04e(0x1f5),'eJyrg':function(_0x42f08c,_0x357414){return _0x42f08c(_0x357414);},'cZQms':function(_0x497990,_0x3aecde){return _0x497990(_0x3aecde);},'ShygW':_0x25e04e(0x211),'VsHSC':'playwright-browserstack-sdk.config.cjs','OsyBb':'playwright-browserstack-sdk.config.js','uQhGx':function(_0x404090,_0xdc60a1){return _0x404090-_0xdc60a1;},'Bufue':function(_0x4980fc,_0xd37ca6){return _0x4980fc+_0xd37ca6;},'nvbyz':'Updated\x20config\x20file\x20name\x20to\x20-\x20','OZwGu':function(_0x495493,_0x9bb696){return _0x495493>_0x9bb696;},'uacRk':function(_0xf316b0,_0x10cb30,_0x93b237,_0x25236f){return _0xf316b0(_0x10cb30,_0x93b237,_0x25236f);},'YCiDw':_0x25e04e(0x1e1),'ImGuA':'playwright','VfDZU':_0x25e04e(0x205),'ZPRgR':_0x25e04e(0x1fc),'knBnt':function(_0x2e50f6,_0x3a48e1){return _0x2e50f6===_0x3a48e1;},'eKoZh':_0x25e04e(0x1eb),'TNsLu':_0x25e04e(0x22d),'JOTtt':_0x25e04e(0x1bd)};!helper[_0x25e04e(0x1d6)](process['env']['BROWSERSTACK_AUTOMATION'])&&(process[_0x25e04e(0x219)][_0x25e04e(0x238)]=!![]);process['argv'][_0x25e04e(0x1c7)](_0x2a7be8[_0x25e04e(0x243)])&&(process['env']['BROWSERSTACK_AUTOMATION']=_0x2a7be8['CqtOv'],_0x4c6347=_0x4c6347['filter'](_0x49124f=>_0x49124f!==_0x25e04e(0x226)));const _0x1a6442=_0x4c6347['indexOf'](_0x2a7be8['mfQJM']);_0x2a7be8['dnrEV'](_0x1a6442,0x0)&&(process[_0x25e04e(0x219)][_0x25e04e(0x1f4)]=_0x2a7be8[_0x25e04e(0x23a)],_0x4c6347=_0x4c6347[_0x25e04e(0x1e3)](_0x396700=>_0x396700!=='--disable-test-observability'));try{const _0x215ed4=path['join'](helper[_0x25e04e(0x1fa)](),_0x2a7be8[_0x25e04e(0x223)],_0x2a7be8[_0x25e04e(0x1ef)]);fs['existsSync'](_0x215ed4)&&fs[_0x25e04e(0x204)](_0x215ed4);}catch(_0x32052b){logger[_0x25e04e(0x20b)](_0x2a7be8[_0x25e04e(0x1fb)](_0x2a7be8[_0x25e04e(0x1c5)],_0x32052b));}if(!_0x2a7be8[_0x25e04e(0x214)](isTestCommand,_0xc8b456,_0x4c6347)){_0x2a7be8[_0x25e04e(0x1ee)](spawnOriginalProcess,_0x4c6347);return;}const _0x4b9e6d=new BrowserStackSetup(_0xc8b456,FRAMEWORKS['PLAYWRIGHT']);if(!_0x4b9e6d[_0x25e04e(0x1ec)]){logger[_0x25e04e(0x1ea)](_0x2a7be8[_0x25e04e(0x242)]);return;}await _0x4b9e6d[_0x25e04e(0x1d4)]();!helper[_0x25e04e(0x24b)](_0x4b9e6d[_0x25e04e(0x1cc)])&&_0x4b9e6d[_0x25e04e(0x1cc)][_0x25e04e(0x218)](_0x2a7be8['gyHJi'])&&(process[_0x25e04e(0x219)][_0x25e04e(0x238)]=_0x4b9e6d[_0x25e04e(0x1cc)][_0x25e04e(0x22a)](_0x2a7be8[_0x25e04e(0x1ed)])||!![]);_0x2a7be8[_0x25e04e(0x1c9)](_0x4b9e6d['config'][_0x25e04e(0x1ff)],null)&&!helper[_0x25e04e(0x1b8)](process[_0x25e04e(0x219)][_0x25e04e(0x1f4)])&&(process[_0x25e04e(0x219)][_0x25e04e(0x1f4)]=process[_0x25e04e(0x219)]['BROWSERSTACK_TEST_OBSERVABILITY']||_0x4b9e6d['config'][_0x25e04e(0x1ff)]);const _0x2e055d=!helper[_0x25e04e(0x1d6)](process['env'][_0x25e04e(0x1f4)]);let _0x5934c2=![];_0x4b9e6d[_0x25e04e(0x1ec)][_0x25e04e(0x23f)]&&(_0x5934c2=!![],process[_0x25e04e(0x219)][_0x25e04e(0x249)]=_0x4b9e6d['config'][_0x25e04e(0x23f)]);_0x4b9e6d[_0x25e04e(0x1ec)]['accessibilityOptions']&&(process[_0x25e04e(0x219)][_0x25e04e(0x1de)]=JSON['stringify'](_0x4b9e6d[_0x25e04e(0x1ec)][_0x25e04e(0x1e4)]));const _0x290264=_0x4c6347[_0x25e04e(0x245)](),_0x5a3dd0=await _0x2a7be8[_0x25e04e(0x207)](getUserPlaywrightConfig,_0xc8b456,_0x4c6347);if(helper[_0x25e04e(0x24b)](_0x5a3dd0)){_0x2a7be8[_0x25e04e(0x1ee)](spawnOriginalProcess,_0x290264);return;}const _0x3ba480=_0x5a3dd0[_0x25e04e(0x203)]?path[_0x25e04e(0x1e8)](_0x5a3dd0[_0x25e04e(0x203)]):process[_0x25e04e(0x246)]();process[_0x25e04e(0x219)][_0x25e04e(0x20c)]=_0x3ba480,await TestHubHandler[_0x25e04e(0x1d0)](FRAMEWORKS['PLAYWRIGHT'],_0x4b9e6d);_0x2e055d&&_0x2a7be8[_0x25e04e(0x1ee)](handleO11yRerun,_0x4c6347);let _0x3aeea0=_0x2a7be8[_0x25e04e(0x1b9)](process[_0x25e04e(0x219)][_0x25e04e(0x249)],_0x2a7be8['Hniuj']);_0x3aeea0=_0x3aeea0||_0x2a7be8[_0x25e04e(0x1be)](checkAccessibilityPlatformConfig,_0x4b9e6d['config']),process['env'][_0x25e04e(0x249)]=_0x3aeea0;_0x3aeea0&&_0x2a7be8[_0x25e04e(0x1bc)](setAccessibilityCapabilities,_0x4b9e6d[_0x25e04e(0x1ec)]);const _0x14f3ff=path[_0x25e04e(0x1db)](_0x5a3dd0['path']?path['dirname'](_0x5a3dd0[_0x25e04e(0x203)]):process[_0x25e04e(0x246)](),_0x2a7be8[_0x25e04e(0x232)]);fs[_0x25e04e(0x215)](_0x14f3ff,helper[_0x25e04e(0x202)](_0x4b9e6d['config'])),process[_0x25e04e(0x219)]['BROWSERSTACK_SETUP_CONFIG_PATH']=_0x14f3ff,helper[_0x25e04e(0x200)]();let _0x115f3f='';_0x2a7be8[_0x25e04e(0x1b9)](helper[_0x25e04e(0x24a)](),constants[_0x25e04e(0x20f)][_0x25e04e(0x1f1)])?_0x115f3f=_0x2a7be8[_0x25e04e(0x234)]:_0x115f3f=_0x2a7be8[_0x25e04e(0x21a)];let _0x488d7a='';if(helper[_0x25e04e(0x1f7)](_0x5a3dd0['path'])){_0x488d7a=_0x25e04e(0x1e7);const _0x3c5399=_0x115f3f[_0x25e04e(0x1d3)]('.');_0x3c5399[_0x2a7be8[_0x25e04e(0x1e6)](_0x3c5399[_0x25e04e(0x227)],0x1)]='ts',_0x115f3f=_0x3c5399[_0x25e04e(0x1db)]('.'),logger[_0x25e04e(0x20b)](_0x2a7be8['Bufue'](_0x2a7be8[_0x25e04e(0x23e)],_0x115f3f));}else _0x488d7a='\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a';const _0x449df3=path[_0x25e04e(0x1db)](_0x5a3dd0['path']?path[_0x25e04e(0x1e8)](_0x5a3dd0['path']):process[_0x25e04e(0x246)](),_0x115f3f);let _0x907941=_0x5a3dd0[_0x25e04e(0x203)]?_0x5a3dd0[_0x25e04e(0x203)]:'';_0x907941=_0x2a7be8[_0x25e04e(0x20a)](_0x907941[_0x25e04e(0x227)],0x0)?path[_0x25e04e(0x22e)](_0x907941):'',process['env'][_0x25e04e(0x201)]=_0x907941;const _0x1ef493=helper[_0x25e04e(0x1ce)](_0x4b9e6d['config']);_0x1ef493&&(_0x488d7a=_0x2a7be8['Bufue'](_0x25e04e(0x1b2)+_0x1ef493+'\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();',_0x488d7a));helper[_0x25e04e(0x1e0)]({},_0x4c6347),fs[_0x25e04e(0x215)](_0x449df3,_0x488d7a),helper[_0x25e04e(0x1ba)]();const _0x18e681=_0x2a7be8[_0x25e04e(0x1d5)](spawn,_0x2a7be8[_0x25e04e(0x217)],[_0x2a7be8['ImGuA'],_0x2a7be8[_0x25e04e(0x22b)],_0x2a7be8[_0x25e04e(0x1c6)],_0x449df3,..._0x4c6347[_0x25e04e(0x1dc)](0x2)],{'shell':_0x2a7be8[_0x25e04e(0x1d2)](process['platform'],_0x2a7be8[_0x25e04e(0x21c)]),'stdio':_0x2a7be8['TNsLu'],'cwd':process[_0x25e04e(0x246)](),'env':Object[_0x25e04e(0x1ca)]({},process[_0x25e04e(0x219)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x25e04e(0x220)](_0xc8b456),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x4b9e6d[_0x25e04e(0x1ec)][_0x25e04e(0x1cd)]['skipSessionStatus'],'BROWSERSTACK_SKIP_SESSION_NAME':_0x4b9e6d[_0x25e04e(0x1ec)][_0x25e04e(0x1cd)][_0x25e04e(0x248)],'BROWSERSTACK_LOG_LEVEL':_0x4b9e6d[_0x25e04e(0x1ec)]['logLevel']})}),_0x4ac69e=()=>{const _0x4581cc=_0x25e04e;try{const _0x4188d5=path['join'](helper[_0x4581cc(0x1fa)](),_0x2a7be8[_0x4581cc(0x223)],_0x2a7be8[_0x4581cc(0x1ef)]);if(fs[_0x4581cc(0x1af)](_0x4188d5)){let _0x22cf17=fs[_0x4581cc(0x228)](_0x4188d5);_0x22cf17=JSON[_0x4581cc(0x1b0)](_0x22cf17),_0x4b9e6d[_0x4581cc(0x1b5)]=_0x22cf17,fs[_0x4581cc(0x204)](_0x4188d5);}}catch(_0x3d0075){logger[_0x4581cc(0x20b)](_0x2a7be8['bYaUj'](_0x2a7be8[_0x4581cc(0x239)],_0x3d0075));}};_0x18e681['on'](_0x2a7be8['JOTtt'],async _0xd7f816=>{const _0x56f390=_0x25e04e;try{const _0x28b27b=_0x2a7be8[_0x56f390(0x1fe)][_0x56f390(0x1d3)]('|');let _0xf58ce5=0x0;while(!![]){switch(_0x28b27b[_0xf58ce5++]){case'0':fs[_0x56f390(0x204)](_0x14f3ff);continue;case'1':logger[_0x56f390(0x1f8)](_0x56f390(0x21f)+_0x449df3);continue;case'2':await utilities[_0x56f390(0x20e)](_0x4b9e6d);continue;case'3':logger[_0x56f390(0x20b)](_0x56f390(0x1c4)+_0xd7f816);continue;case'4':logger[_0x56f390(0x20b)](_0x56f390(0x21f)+_0x14f3ff);continue;case'5':_0x2a7be8[_0x56f390(0x1b1)](_0x4ac69e);continue;case'6':process['exitCode']=_0xd7f816;continue;case'7':fs['unlinkSync'](_0x449df3);continue;case'8':await TestHubHandler[_0x56f390(0x1b3)]();continue;}break;}}catch(_0x43b9a4){logger['debug'](_0x2a7be8['bYaUj'](_0x2a7be8[_0x56f390(0x1b7)],_0x43b9a4));}});}module[a35_0x1e0bea(0x233)]=run;
|
|
2
|
+
'use strict';const a35_0x1af99a=a35_0x3594;function a35_0x3594(_0x4b62f8,_0x579910){const _0x2cc9ae=a35_0x2cc9();return a35_0x3594=function(_0x35948e,_0x319efb){_0x35948e=_0x35948e-0x117;let _0x92477b=_0x2cc9ae[_0x35948e];return _0x92477b;},a35_0x3594(_0x4b62f8,_0x579910);}(function(_0x1368b4,_0x4accd9){const _0x4a68c9=a35_0x3594,_0xf75e19=_0x1368b4();while(!![]){try{const _0x5aedc3=-parseInt(_0x4a68c9(0x12d))/0x1+parseInt(_0x4a68c9(0x199))/0x2+parseInt(_0x4a68c9(0x11e))/0x3+-parseInt(_0x4a68c9(0x13b))/0x4+-parseInt(_0x4a68c9(0x11c))/0x5*(-parseInt(_0x4a68c9(0x13e))/0x6)+-parseInt(_0x4a68c9(0x167))/0x7*(parseInt(_0x4a68c9(0x1a6))/0x8)+parseInt(_0x4a68c9(0x193))/0x9;if(_0x5aedc3===_0x4accd9)break;else _0xf75e19['push'](_0xf75e19['shift']());}catch(_0x26fb55){_0xf75e19['push'](_0xf75e19['shift']());}}}(a35_0x2cc9,0x4ccb4));function a35_0x2cc9(){const _0x589943=['indexOf','Deleting\x20','existsSync','Pofkk','ZegXE','eZIyJ','BrowserStack\x20config\x20file\x20not\x20found.','BROWSERSTACK_RERUN_TESTS','--disable-browserstack-automation','cwd','USER_CONFIG_DETAILS_PATH','stop','Updated\x20config\x20file\x20name\x20to\x20-\x20','.browserstack','--config=','HiAUe','push','saFIU','startsWith','error','../../helpers/helper','RtJVr','apply','isFalse','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','writeFileSync','inherit','win32','rRJqZ','../utils/constants','util','child_process','aSQwn','resolve','isTrue','accessibilityOptions','10311zcXZQn','unlinkSync','BROWSERSTACK_TEST_ACCESSIBILITY_YML','tkYaq','aoxum','XPLck','testContextOptions','Betbx','NAzDd','playwright','serializeToYamlString','true','--grep','yUHmt','OneKd','wjrty','eCaxB','../../helpers/test-observability/utils','nestedKeyValue','join','./accessibility-helper','eeQPM','aixtc','--config','../../helpers/testhub/testhubHandler','DhbDk','rxUXi','dirname','VzXtv','MODULE','BROWSERSTACK_SETUP_CONFIG_PATH','skipSessionName','Error\x20in\x20deleting\x20playwright\x20results','info','testObservability','orEAq','clearTempPWConfig','automation','yvUDZ','--disable-test-observability','markSDKSetupComplete','assign','isTypescriptProject','oTesO','8615340JRDzpi','npx','../../helpers/test-observability/constants','BROWSERSTACK_AUTOMATION','exitCode','getConfigPath','477096uhjhbQ','filter','homedir','gpsZb','eMOrb','accessibility','LVZvT','qOgTR','Ijmus','PLAYWRIGHT','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','map','argv','3112SJSakH','OCpps','isUndefined','ZkuDa','has','DwYRQ','splice','YqrTS','config','requirePWModule','XAHcV','bfNxa','AkhVV','../../helpers/logger','debug','fxddj','48305wPKQIr','split','280794QnhpgZ','skipSessionStatus','../../helpers/accessibility-automation/helper','playwright-browserstack-sdk.config.cjs','exports','readFileSync','Vtsdv','TbETe','path','finalExecution','Error\x20in\x20getting\x20funnel\x20data\x20results','trim','PACKAGE_TYPE','Fzfmz','4|7|0|1|5|8|3|6|2','306725Vgdrbx','initialize','../../helpers/test-observability/error-handler','BROWSERSTACK_PW_CONFIG_DIR','rgtqW','includes','POhQM','false','env','length','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','Error\x20in\x20closing\x20playwright','launchBuild','test','1114780DPTxUX','BROWSERSTACK_TEST_OBSERVABILITY','browserstackSetupConfig.json','114fOJlIN','Playwright\x20process\x20exited\x20with\x20code\x20','BROWSERSTACK_RERUN','cliConfig','slice'];a35_0x2cc9=function(){return _0x589943;};return a35_0x2cc9();}const fs=require('fs'),path=require('path'),{spawn}=require(a35_0x1af99a(0x162)),{format}=require(a35_0x1af99a(0x161)),logger=require(a35_0x1af99a(0x119))['winstonLogger'],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require(a35_0x1af99a(0x157)),utilities=require('../../helpers/utilities'),constants=require(a35_0x1af99a(0x160)),{FRAMEWORKS}=require(a35_0x1af99a(0x195)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require('./reporter/pwUtils'),{CrashReporter}=require(a35_0x1af99a(0x12f)),{getFrameworkVersion}=require(a35_0x1af99a(0x178)),{checkAccessibilityPlatformConfig}=require(a35_0x1af99a(0x120)),{setAccessibilityCapabilities}=require(a35_0x1af99a(0x17b)),TestHubHandler=require(a35_0x1af99a(0x17f)),{shouldProcessEventForTesthub}=require('../../helpers/testhub/utils'),getUserPlaywrightConfig=async(_0x1aa8ab,_0x242900)=>{const _0x4a9e5c=a35_0x1af99a,_0x1bdc42={'ZkuDa':function(_0xaa8c97){return _0xaa8c97();},'aixtc':function(_0x404f5c,_0x689b98){return _0x404f5c(_0x689b98);},'ZegXE':'resolvedConfigFile','Ijmus':_0x4a9e5c(0x151)},_0x5bce4d=!helper['isUndefined'](_0x1aa8ab[_0x4a9e5c(0x1ae)]),_0x46655f=_0x5bce4d?path[_0x4a9e5c(0x164)](process[_0x4a9e5c(0x14c)](),_0x1aa8ab[_0x4a9e5c(0x1ae)]):process[_0x4a9e5c(0x14c)](),{resolveConfigFile:_0xac5913,resolveConfigLocation:_0x42dcfd}=helper[_0x4a9e5c(0x1af)][_0x4a9e5c(0x159)](null,_0x1bdc42[_0x4a9e5c(0x1a9)](getConfigLoaderPath)),_0x297ec6=_0xac5913?_0x1bdc42[_0x4a9e5c(0x17d)](_0xac5913,_0x46655f):helper[_0x4a9e5c(0x179)](_0x1bdc42['aixtc'](_0x42dcfd,_0x46655f),[_0x1bdc42[_0x4a9e5c(0x147)]]),_0x26ecf8={};if(_0x5bce4d){const _0x50f325=_0x242900['findIndex'](_0x17ad88=>_0x17ad88===_0x4a9e5c(0x17e)||_0x17ad88==='-c'||_0x17ad88[_0x4a9e5c(0x155)](_0x4a9e5c(0x151)));_0x242900[_0x4a9e5c(0x1ac)](_0x50f325,_0x242900[_0x50f325][_0x4a9e5c(0x155)](_0x1bdc42[_0x4a9e5c(0x1a1)])?0x1:0x2);}const _0x3dd4ec={};return _0x3dd4ec[_0x4a9e5c(0x126)]=_0x297ec6,_0x3dd4ec[_0x4a9e5c(0x1ae)]=_0x26ecf8,_0x3dd4ec;},handleO11yRerun=_0x40297c=>{const _0x6c2e3=a35_0x1af99a,_0x1e2f66={};_0x1e2f66[_0x6c2e3(0x176)]=function(_0x5d1fe5,_0x1314b5){return _0x5d1fe5!==_0x1314b5;},_0x1e2f66[_0x6c2e3(0x16e)]='null',_0x1e2f66['eevZH']=_0x6c2e3(0x173);const _0x23302e=_0x1e2f66,_0x2abb85=helper[_0x6c2e3(0x165)](process[_0x6c2e3(0x135)][_0x6c2e3(0x140)]);if(_0x2abb85){const _0x2a08f9=process[_0x6c2e3(0x135)][_0x6c2e3(0x14a)],_0x5ea7ce=[];if(_0x23302e['wjrty'](_0x2a08f9,_0x23302e[_0x6c2e3(0x16e)])&&!helper[_0x6c2e3(0x1a8)](_0x2a08f9)){_0x2a08f9['split'](',')[_0x6c2e3(0x1a4)](_0x1adce5=>{const _0x6c115f=_0x6c2e3;_0x5ea7ce[_0x6c115f(0x153)]('('+_0x1adce5[_0x6c115f(0x129)]()+')');});const _0x3c6235='^'+_0x5ea7ce[_0x6c2e3(0x17a)]('|')+'$';_0x40297c[_0x6c2e3(0x153)](_0x23302e['eevZH'],_0x3c6235);}}},spawnOriginalProcess=_0x1edae1=>{const _0x4d912e=a35_0x1af99a,_0x29a2a2={'POhQM':function(_0x173c3a,_0x304227,_0x4108cf,_0x303d43){return _0x173c3a(_0x304227,_0x4108cf,_0x303d43);},'XAHcV':_0x4d912e(0x194),'yUHmt':_0x4d912e(0x170),'ydXAq':function(_0x3efb49,_0x12dc7d){return _0x3efb49===_0x12dc7d;},'CqmAl':'win32','aSQwn':_0x4d912e(0x15d)};_0x29a2a2[_0x4d912e(0x133)](spawn,_0x29a2a2[_0x4d912e(0x1b0)],[_0x29a2a2[_0x4d912e(0x174)],..._0x1edae1['slice'](0x1)],{'shell':_0x29a2a2['ydXAq'](process['platform'],_0x29a2a2['CqmAl']),'stdio':_0x29a2a2[_0x4d912e(0x163)],'cwd':process['cwd']()});},isTestCommand=(_0x284ce1,_0x12492d)=>{const _0x513fe8=a35_0x1af99a,_0x19adb4={};_0x19adb4['eeQPM']=function(_0x392f75,_0x367a69){return _0x392f75>_0x367a69;},_0x19adb4[_0x513fe8(0x131)]=function(_0x511308,_0x317c5d){return _0x511308===_0x317c5d;},_0x19adb4[_0x513fe8(0x1ab)]='test';const _0x2fd1f1=_0x19adb4;if(_0x2fd1f1[_0x513fe8(0x17c)](_0x12492d[_0x513fe8(0x136)],0x1)&&_0x2fd1f1[_0x513fe8(0x131)](_0x12492d[0x1],_0x2fd1f1[_0x513fe8(0x1ab)]))return!![];return![];};async function run(_0x2b9035,_0x4a4ebd){const _0x51aeab=a35_0x1af99a,_0x2b51a7={'RtJVr':_0x51aeab(0x150),'Vtsdv':'pw_result.json','YqrTS':function(_0x4aeff2,_0x3fe640){return _0x4aeff2+_0x3fe640;},'gpsZb':_0x51aeab(0x128),'FSxGu':_0x51aeab(0x12c),'rxUXi':function(_0x5d2aa0){return _0x5d2aa0();},'lHsBn':_0x51aeab(0x138),'eZIyJ':_0x51aeab(0x14b),'AkhVV':_0x51aeab(0x134),'wHiqg':_0x51aeab(0x18e),'NAzDd':function(_0xb5741e,_0x2d6833){return _0xb5741e>=_0x2d6833;},'tkYaq':_0x51aeab(0x187),'eCaxB':function(_0x36fbd8,_0x13c853,_0x2247db){return _0x36fbd8(_0x13c853,_0x2247db);},'HiAUe':function(_0x18ac70,_0xa11f12){return _0x18ac70(_0xa11f12);},'eMOrb':_0x51aeab(0x149),'vVEyZ':_0x51aeab(0x18c),'XPLck':function(_0x888102,_0x53cb88){return _0x888102!=_0x53cb88;},'oTesO':function(_0x10540b,_0x5dcade,_0x222d9a){return _0x10540b(_0x5dcade,_0x222d9a);},'bfNxa':function(_0x46be15,_0xe6bf36){return _0x46be15===_0xe6bf36;},'Bvfmv':_0x51aeab(0x172),'rvLkG':function(_0x4c194c,_0x41813b){return _0x4c194c(_0x41813b);},'DhbDk':function(_0x4b41a7,_0x3cbfc6){return _0x4b41a7(_0x3cbfc6);},'OneKd':_0x51aeab(0x13d),'VzXtv':function(_0x2df151,_0x114a29){return _0x2df151===_0x114a29;},'saFIU':_0x51aeab(0x121),'TbETe':'playwright-browserstack-sdk.config.js','orEAq':function(_0xf09035,_0xaa9779){return _0xf09035-_0xaa9779;},'fxddj':function(_0x3ad2f4,_0x1d0551){return _0x3ad2f4+_0x1d0551;},'rRJqZ':_0x51aeab(0x14f),'LVZvT':function(_0x5ce680,_0x334fb9){return _0x5ce680>_0x334fb9;},'Pofkk':function(_0x17c34d,_0x4b2365){return _0x17c34d+_0x4b2365;},'qOgTR':function(_0x39e89c,_0x4915ec,_0x56dd00,_0x570cb3){return _0x39e89c(_0x4915ec,_0x56dd00,_0x570cb3);},'aoxum':'npx','bXszw':_0x51aeab(0x170),'OCpps':_0x51aeab(0x13a),'wOXWL':_0x51aeab(0x17e),'Fzfmz':_0x51aeab(0x15e),'ikoVw':_0x51aeab(0x15d),'yvUDZ':'close'};!helper[_0x51aeab(0x15a)](process[_0x51aeab(0x135)][_0x51aeab(0x196)])&&(process[_0x51aeab(0x135)]['BROWSERSTACK_AUTOMATION']=!![]);process[_0x51aeab(0x1a5)][_0x51aeab(0x132)](_0x2b51a7[_0x51aeab(0x148)])&&(process[_0x51aeab(0x135)][_0x51aeab(0x196)]=_0x2b51a7['AkhVV'],_0x4a4ebd=_0x4a4ebd[_0x51aeab(0x19a)](_0x1e7c20=>_0x1e7c20!=='--disable-browserstack-automation'));const _0x2efe9c=_0x4a4ebd[_0x51aeab(0x143)](_0x2b51a7['wHiqg']);_0x2b51a7[_0x51aeab(0x16f)](_0x2efe9c,0x0)&&(process[_0x51aeab(0x135)][_0x51aeab(0x13c)]=_0x2b51a7[_0x51aeab(0x118)],_0x4a4ebd=_0x4a4ebd[_0x51aeab(0x19a)](_0x3b4ac2=>_0x3b4ac2!==_0x51aeab(0x18e)));try{const _0x1797ab=path[_0x51aeab(0x17a)](helper['homedir'](),_0x2b51a7['RtJVr'],_0x2b51a7[_0x51aeab(0x124)]);fs[_0x51aeab(0x145)](_0x1797ab)&&fs['unlinkSync'](_0x1797ab);}catch(_0x5b153a){logger[_0x51aeab(0x11a)](_0x2b51a7['YqrTS'](_0x2b51a7[_0x51aeab(0x16a)],_0x5b153a));}if(!_0x2b51a7[_0x51aeab(0x177)](isTestCommand,_0x2b9035,_0x4a4ebd)){_0x2b51a7['HiAUe'](spawnOriginalProcess,_0x4a4ebd);return;}const _0x4db6ba=new BrowserStackSetup(_0x2b9035,FRAMEWORKS[_0x51aeab(0x1a2)]);if(!_0x4db6ba[_0x51aeab(0x1ae)]){logger[_0x51aeab(0x156)](_0x2b51a7[_0x51aeab(0x19d)]);return;}await _0x4db6ba[_0x51aeab(0x12e)]();!helper[_0x51aeab(0x1a8)](_0x4db6ba[_0x51aeab(0x141)])&&_0x4db6ba[_0x51aeab(0x141)][_0x51aeab(0x1aa)](_0x2b51a7['vVEyZ'])&&(process[_0x51aeab(0x135)][_0x51aeab(0x196)]=_0x4db6ba[_0x51aeab(0x141)]['get'](_0x2b51a7['vVEyZ'])||!![]);_0x2b51a7[_0x51aeab(0x16c)](_0x4db6ba[_0x51aeab(0x1ae)]['testObservability'],null)&&!helper['isTrue'](process[_0x51aeab(0x135)][_0x51aeab(0x13c)])&&(process['env'][_0x51aeab(0x13c)]=process[_0x51aeab(0x135)][_0x51aeab(0x13c)]||_0x4db6ba['config'][_0x51aeab(0x189)]);const _0x4c1889=!helper['isFalse'](process[_0x51aeab(0x135)][_0x51aeab(0x13c)]);let _0x3ed666=![];_0x4db6ba[_0x51aeab(0x1ae)][_0x51aeab(0x19e)]&&(_0x3ed666=!![],process[_0x51aeab(0x135)][_0x51aeab(0x169)]=_0x4db6ba[_0x51aeab(0x1ae)][_0x51aeab(0x19e)]);_0x4db6ba[_0x51aeab(0x1ae)][_0x51aeab(0x166)]&&(process[_0x51aeab(0x135)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON['stringify'](_0x4db6ba['config'][_0x51aeab(0x166)]));const _0x2214ad=_0x4a4ebd['concat'](),_0x36c2a8=await _0x2b51a7[_0x51aeab(0x192)](getUserPlaywrightConfig,_0x2b9035,_0x4a4ebd);if(helper[_0x51aeab(0x1a8)](_0x36c2a8)){_0x2b51a7['HiAUe'](spawnOriginalProcess,_0x2214ad);return;}const _0x3180cc=_0x36c2a8[_0x51aeab(0x126)]?path[_0x51aeab(0x182)](_0x36c2a8[_0x51aeab(0x126)]):process[_0x51aeab(0x14c)]();process[_0x51aeab(0x135)][_0x51aeab(0x130)]=_0x3180cc,await TestHubHandler[_0x51aeab(0x139)](FRAMEWORKS[_0x51aeab(0x1a2)],_0x4db6ba);_0x4c1889&&_0x2b51a7[_0x51aeab(0x152)](handleO11yRerun,_0x4a4ebd);let _0x456cae=_0x2b51a7[_0x51aeab(0x117)](process[_0x51aeab(0x135)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML'],_0x2b51a7['Bvfmv']);_0x456cae=_0x456cae||_0x2b51a7['rvLkG'](checkAccessibilityPlatformConfig,_0x4db6ba[_0x51aeab(0x1ae)]),process[_0x51aeab(0x135)][_0x51aeab(0x169)]=_0x456cae;_0x456cae&&_0x2b51a7[_0x51aeab(0x180)](setAccessibilityCapabilities,_0x4db6ba['config']);const _0x2b1923=path[_0x51aeab(0x17a)](_0x36c2a8[_0x51aeab(0x126)]?path[_0x51aeab(0x182)](_0x36c2a8['path']):process[_0x51aeab(0x14c)](),_0x2b51a7[_0x51aeab(0x175)]);fs['writeFileSync'](_0x2b1923,helper[_0x51aeab(0x171)](_0x4db6ba['config'])),process[_0x51aeab(0x135)][_0x51aeab(0x185)]=_0x2b1923,helper[_0x51aeab(0x18b)]();let _0x2fe2c7='';_0x2b51a7['VzXtv'](helper['getPackageType'](),constants[_0x51aeab(0x12a)][_0x51aeab(0x184)])?_0x2fe2c7=_0x2b51a7[_0x51aeab(0x154)]:_0x2fe2c7=_0x2b51a7[_0x51aeab(0x125)];let _0x3a64cb='';if(helper[_0x51aeab(0x191)](_0x36c2a8[_0x51aeab(0x126)])){_0x3a64cb=_0x51aeab(0x137);const _0x59eccf=_0x2fe2c7[_0x51aeab(0x11d)]('.');_0x59eccf[_0x2b51a7[_0x51aeab(0x18a)](_0x59eccf['length'],0x1)]='ts',_0x2fe2c7=_0x59eccf['join']('.'),logger[_0x51aeab(0x11a)](_0x2b51a7[_0x51aeab(0x11b)](_0x2b51a7[_0x51aeab(0x15f)],_0x2fe2c7));}else _0x3a64cb=_0x51aeab(0x15b);const _0x3e0e94=path[_0x51aeab(0x17a)](_0x36c2a8[_0x51aeab(0x126)]?path[_0x51aeab(0x182)](_0x36c2a8['path']):process[_0x51aeab(0x14c)](),_0x2fe2c7);let _0x9f10bf=_0x36c2a8[_0x51aeab(0x126)]?_0x36c2a8[_0x51aeab(0x126)]:'';_0x9f10bf=_0x2b51a7[_0x51aeab(0x19f)](_0x9f10bf[_0x51aeab(0x136)],0x0)?path[_0x51aeab(0x164)](_0x9f10bf):'',process['env'][_0x51aeab(0x14d)]=_0x9f10bf;const _0x21c4b3=helper['getProxyUrl'](_0x4db6ba[_0x51aeab(0x1ae)]);_0x21c4b3&&(_0x3a64cb=_0x2b51a7[_0x51aeab(0x146)](_0x51aeab(0x1a3)+_0x21c4b3+'\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();',_0x3a64cb));helper['filterBrowserstackArgs']({},_0x4a4ebd),fs[_0x51aeab(0x15c)](_0x3e0e94,_0x3a64cb),helper[_0x51aeab(0x18f)]();const _0x2e821a=_0x2b51a7[_0x51aeab(0x1a0)](spawn,_0x2b51a7[_0x51aeab(0x16b)],[_0x2b51a7['bXszw'],_0x2b51a7[_0x51aeab(0x1a7)],_0x2b51a7['wOXWL'],_0x3e0e94,..._0x4a4ebd[_0x51aeab(0x142)](0x2)],{'shell':_0x2b51a7[_0x51aeab(0x183)](process['platform'],_0x2b51a7[_0x51aeab(0x12b)]),'stdio':_0x2b51a7['ikoVw'],'cwd':process[_0x51aeab(0x14c)](),'env':Object[_0x51aeab(0x190)]({},process[_0x51aeab(0x135)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x51aeab(0x198)](_0x2b9035),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x4db6ba[_0x51aeab(0x1ae)][_0x51aeab(0x16d)][_0x51aeab(0x11f)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x4db6ba[_0x51aeab(0x1ae)][_0x51aeab(0x16d)][_0x51aeab(0x186)],'BROWSERSTACK_LOG_LEVEL':_0x4db6ba[_0x51aeab(0x1ae)]['logLevel']})}),_0x4e8b43=()=>{const _0x1dca64=_0x51aeab;try{const _0x320cf8=path[_0x1dca64(0x17a)](helper[_0x1dca64(0x19b)](),_0x2b51a7[_0x1dca64(0x158)],_0x2b51a7[_0x1dca64(0x124)]);if(fs[_0x1dca64(0x145)](_0x320cf8)){let _0x284db1=fs[_0x1dca64(0x123)](_0x320cf8);_0x284db1=JSON['parse'](_0x284db1),_0x4db6ba['errorMessage']=_0x284db1,fs['unlinkSync'](_0x320cf8);}}catch(_0x2c3e1a){logger['debug'](_0x2b51a7[_0x1dca64(0x1ad)](_0x2b51a7[_0x1dca64(0x19c)],_0x2c3e1a));}};_0x2e821a['on'](_0x2b51a7[_0x51aeab(0x18d)],async _0x4c4c9b=>{const _0x5bd46b=_0x51aeab;try{const _0x5849d3=_0x2b51a7['FSxGu'][_0x5bd46b(0x11d)]('|');let _0x11674c=0x0;while(!![]){switch(_0x5849d3[_0x11674c++]){case'0':await utilities[_0x5bd46b(0x127)](_0x4db6ba);continue;case'1':process[_0x5bd46b(0x197)]=_0x4c4c9b;continue;case'2':fs['unlinkSync'](_0x2b1923);continue;case'3':fs[_0x5bd46b(0x168)](_0x3e0e94);continue;case'4':_0x2b51a7[_0x5bd46b(0x181)](_0x4e8b43);continue;case'5':logger[_0x5bd46b(0x11a)](_0x5bd46b(0x13f)+_0x4c4c9b);continue;case'6':logger['debug'](_0x5bd46b(0x144)+_0x2b1923);continue;case'7':await TestHubHandler[_0x5bd46b(0x14e)]();continue;case'8':logger[_0x5bd46b(0x188)]('Deleting\x20'+_0x3e0e94);continue;}break;}}catch(_0x4bd9f3){logger[_0x5bd46b(0x11a)](_0x2b51a7[_0x5bd46b(0x1ad)](_0x2b51a7['lHsBn'],_0x4bd9f3));}});}module[a35_0x1af99a(0x122)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a36_0x199c7c=a36_0xd3da;(function(_0x18dfab,_0x1824fd){const _0x1b055e=a36_0xd3da,_0x46ecf4=_0x18dfab();while(!![]){try{const _0xdbacfc=-parseInt(_0x1b055e(0x204))/0x1*(-parseInt(_0x1b055e(0x1fb))/0x2)+parseInt(_0x1b055e(0x1d6))/0x3+-parseInt(_0x1b055e(0x1e1))/0x4+parseInt(_0x1b055e(0x202))/0x5*(-parseInt(_0x1b055e(0x1ed))/0x6)+-parseInt(_0x1b055e(0x1ea))/0x7*(parseInt(_0x1b055e(0x1e7))/0x8)+parseInt(_0x1b055e(0x207))/0x9*(-parseInt(_0x1b055e(0x1e3))/0xa)+parseInt(_0x1b055e(0x1fe))/0xb*(parseInt(_0x1b055e(0x1e4))/0xc);if(_0xdbacfc===_0x1824fd)break;else _0x46ecf4['push'](_0x46ecf4['shift']());}catch(_0xba6690){_0x46ecf4['push'](_0x46ecf4['shift']());}}}(a36_0x213d,0x5c3eb));const util=require(a36_0x199c7c(0x1dd)),child_process=require('child_process'),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{getFrameworkVersion,debug}=require('../../helpers/test-observability/utils'),helper=require(a36_0x199c7c(0x1fa)),{getLoadUtilsPath,getForkProcessPath}=require(a36_0x199c7c(0x1d9)),{mockIsWorkerRedundant}=require(a36_0x199c7c(0x1db)),logger=require(a36_0x199c7c(0x1e5))['winstonLogger'];function a36_0x213d(){const _0x13e799=['exports','dEULQ','Not\x20able\x20to\x20import\x20globalSetup','DhPgA','requirePWModule','includes','wTUDd','gtnYp','toString','\x20is\x20not\x20found','../../helpers/helper','2PXXUFi','env','BljVj','11792uhXUGi','./mock-process.js','Path\x20','LRGOd','1632520ybIvrc','apply','149761XnWwfI','format','config','81zhlFgU','1.33.0','767190wwXUHJ','MxOHx','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','./reporter/pwUtils','PLAYWRIGHT','./patches','debug','util','ZwEIk','function','isHandlePWErrorSet','2797660DXNTzl','Call\x20to\x20child\x20fork\x20with\x20args\x20','247720jyWyPi','25572CIASlt','../../helpers/logger','RPKxq','8lwQJIt','oESKU','jQYjM','5157019aLiiOd','resolve','xBEsq','12CxdDvL','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','Running\x20existing\x20global\x20setup'];a36_0x213d=function(){return _0x13e799;};return a36_0x213d();}function a36_0xd3da(_0xbeff68,_0x3e3b1c){const _0x213d98=a36_0x213d();return a36_0xd3da=function(_0xd3da97,_0x5e194c){_0xd3da97=_0xd3da97-0x1d6;let _0x35f078=_0x213d98[_0xd3da97];return _0x35f078;},a36_0xd3da(_0xbeff68,_0x3e3b1c);}module[a36_0x199c7c(0x1f0)]=async function(_0x20c4c4){const _0x591c19=a36_0x199c7c,_0x333bc9={'jQYjM':function(_0x1712ee,_0xb60043){return _0x1712ee(_0xb60043);},'wTUDd':function(_0x5bd3b6){return _0x5bd3b6();},'DhPgA':_0x591c19(0x1ff),'XPDxp':function(_0x5bab7d){return _0x5bab7d();},'BljVj':_0x591c19(0x1ef),'xBEsq':function(_0xde6c18){return _0xde6c18();},'oESKU':function(_0x166391,_0x1d48e0){return _0x166391>=_0x1d48e0;},'gtnYp':_0x591c19(0x208),'dEULQ':function(_0x35d0d9,_0xe6414d,_0x46c10d){return _0x35d0d9(_0xe6414d,_0x46c10d);},'MxOHx':function(_0xb27101,_0x59e869){return _0xb27101!==_0x59e869;},'LRGOd':_0x591c19(0x1df),'RPKxq':_0x591c19(0x1f2),'ZwEIk':function(_0x5191f4,_0x4ba230){return _0x5191f4(_0x4ba230);}},_0x3468e=child_process['fork'];if(helper[_0x591c19(0x1e0)]())try{_0x333bc9[_0x591c19(0x1f6)](mockIsWorkerRedundant);}catch(_0xd9aa36){logger[_0x591c19(0x1dc)]('Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20'+util[_0x591c19(0x205)](_0xd9aa36));}child_process['fork']=function(){const _0x368c05=_0x591c19;return _0x333bc9[_0x368c05(0x1e9)](debug,_0x368c05(0x1e2)+arguments[0x0]),arguments[0x0][_0x368c05(0x1f5)](_0x333bc9[_0x368c05(0x1f6)](getForkProcessPath))?arguments[0x0]=require[_0x368c05(0x1eb)](_0x333bc9[_0x368c05(0x1f3)]):logger['error'](_0x368c05(0x200)+_0x333bc9['XPDxp'](getForkProcessPath)+_0x368c05(0x1f9)),_0x3468e[_0x368c05(0x203)](null,arguments);};if(process['env']['BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP']){_0x333bc9[_0x591c19(0x1e9)](debug,_0x333bc9[_0x591c19(0x1fd)]);try{const {loadGlobalHook:_0xb3ce22}=helper[_0x591c19(0x1f4)]['apply'](null,_0x333bc9[_0x591c19(0x1ec)](getLoadUtilsPath)),_0x23e6a5=_0x333bc9[_0x591c19(0x1e9)](getFrameworkVersion,FRAMEWORKS[_0x591c19(0x1da)]);let _0xd5e62a=_0x20c4c4;if(_0x333bc9[_0x591c19(0x1e8)](helper['compareVersions'](_0x23e6a5,_0x333bc9[_0x591c19(0x1f7)]),0x0)){const _0x2d8f4d={};_0x2d8f4d[_0x591c19(0x206)]=_0x20c4c4,_0xd5e62a=_0x2d8f4d;}const _0x5d28a8=await _0x333bc9[_0x591c19(0x1f1)](_0xb3ce22,_0xd5e62a,process[_0x591c19(0x1fc)][_0x591c19(0x1ee)]);if(_0x333bc9[_0x591c19(0x1d7)](typeof _0x5d28a8,_0x333bc9[_0x591c19(0x201)]))throw new Error(_0x333bc9[_0x591c19(0x1e6)]);return _0x5d28a8[_0x591c19(0x203)](null,arguments);}catch(_0x59d10a){_0x333bc9[_0x591c19(0x1de)](debug,_0x591c19(0x1d8)+_0x59d10a[_0x591c19(0x1f8)]());}}};
|