browserstack-node-sdk 1.35.1 → 1.35.2
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/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.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/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.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/metadata.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/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/processHelper.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_0x3197(){const _0x1f2186=['CFhkG','ZJliv','uZmWY','isAccessibilityPlatform','eMhcj','__drivers','chromeOptions','overrideGet','ieOptions_','originalBuilder','../../../helpers/helper','PQrRh','../../../helpers/patchHelpers','storeOptimalHubUrl','ztXfQ','New\x20hub\x20url\x20set\x20to\x20','getGlobal','__driver','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','keys','FCNrT','131755KDQCaN','329WznQnv','SNtRP','global','../accessibility-automation/helper','252wVUOdK','adpYw','6zBHEJq','requireSeleniumWebdriver','set','maeJh','send','898606UAJSWW','1RngPFl','Hub\x20url\x20set\x20to\x20','ieOptions','UASWS','CAPABILITY_KEY','__driversArray','then','newHubUrl','setCapabilities','forEach','split','../../../helpers/globals','proxySettings','error','isPacProxy','getHubUrl','eTsKi','xFSiX','object','LBSQK','HttpClient','push','../../../helpers/accessibility-automation/helper','getAccessibilityResultsSummary','capabilities_','fXhEV','uESkz','GBaOe','quitCount_','KcyuO','1753180pexupy','CJxHi','firefoxOptions_','Proxy\x20set\x20to\x20','getRequestOptions','safariOptions_','get','4kbkgRj','getHttpAgent','agent_','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','isUndefined','KcDVh','ISNRp','path','proxy_','chromeOptions_','optimalHubUrl','76696kyTpwR','UEccp','PMvlO','url_','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','proxyUrl','mergeDeep','rlQxj','ms:edgeOptions','EWbOc','getAccessibilityResults','browserStackLogLevel','aZbcb','setLogLevel','isBrowserstackInfra','__setBrowserOptions','updateHubUrl','setGlobal','safari.options','edgeOptions_','/wd/hub','capability','setServer','Builder','1221264buqQOg','moz:firefoxOptions','10CNpBiK','build','326915nUXDzr','CCTZE','KdXtp','OxCSu','../../../hubAllocationMethods','firefoxOptions','Modifying\x20webdriver\x20builder','winstonLogger','requireHttpClient','session_','fzqbj','481695qsyARB','info','debug'];a29_0x3197=function(){return _0x1f2186;};return a29_0x3197();}function a29_0x1aef(_0x1a16cf,_0x168875){const _0x319706=a29_0x3197();return a29_0x1aef=function(_0x1aef3f,_0x1542f0){_0x1aef3f=_0x1aef3f-0xfe;let _0x82702d=_0x319706[_0x1aef3f];return _0x82702d;},a29_0x1aef(_0x1a16cf,_0x168875);}const a29_0x569240=a29_0x1aef;(function(_0x48045c,_0x5da582){const _0x188c3d=a29_0x1aef,_0x5cd06e=_0x48045c();while(!![]){try{const _0x991e2f=-parseInt(_0x188c3d(0x13b))/0x1*(-parseInt(_0x188c3d(0x13a))/0x2)+parseInt(_0x188c3d(0x116))/0x3*(-parseInt(_0x188c3d(0x160))/0x4)+parseInt(_0x188c3d(0x10b))/0x5*(parseInt(_0x188c3d(0x135))/0x6)+parseInt(_0x188c3d(0x12f))/0x7*(parseInt(_0x188c3d(0x16b))/0x8)+parseInt(_0x188c3d(0x107))/0x9+parseInt(_0x188c3d(0x109))/0xa*(-parseInt(_0x188c3d(0x159))/0xb)+parseInt(_0x188c3d(0x133))/0xc*(-parseInt(_0x188c3d(0x12e))/0xd);if(_0x991e2f===_0x5da582)break;else _0x5cd06e['push'](_0x5cd06e['shift']());}catch(_0xfb2904){_0x5cd06e['push'](_0x5cd06e['shift']());}}}(a29_0x3197,0x8ab7f));const logger=require('../../../helpers/logger')[a29_0x569240(0x112)],helper=require(a29_0x569240(0x123)),constants=require('../../../bin/utils/constants'),hubAllocator=require(a29_0x569240(0x10f)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a29_0x569240(0x125)),{setAccessibilityCapabilities,setExtension}=require(a29_0x569240(0x132)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0x569240(0x151)),globals=require(a29_0x569240(0x146)),{overrideExecute}=require('./helpers/patchHelper'),modify=(_0x22f170,_0x4ec654=null,_0x5c9ed9=![])=>{const _0x476a8e=a29_0x569240,_0x433c1c={'KdXtp':function(_0x26c971,_0x324479){return _0x26c971!==_0x324479;},'qKqat':'/session','CFhkG':function(_0x8646e4,_0x1ca755){return _0x8646e4+_0x1ca755;},'lbBbw':function(_0x2dea59,_0x32b4c8){return _0x2dea59+_0x32b4c8;},'maeJh':'https://','qHoCW':_0x476a8e(0x103),'LBSQK':'goog:chromeOptions','PMvlO':_0x476a8e(0x11f),'xFSiX':_0x476a8e(0x173),'TUPav':'edgeOptions','fzqbj':_0x476a8e(0x108),'KcDVh':_0x476a8e(0x110),'ztXfQ':_0x476a8e(0x101),'EWbOc':'se:ieOptions','KcyuO':_0x476a8e(0x13d),'fXhEV':function(_0x930c43,_0x51a8cb){return _0x930c43===_0x51a8cb;},'FzrOg':_0x476a8e(0x14d),'eMhcj':'Setting\x20Browserstack\x20capabilities','CJxHi':_0x476a8e(0x16a),'eTsKi':'OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','UASWS':function(_0x3ea4d8,_0x40a353,_0x49a444){return _0x3ea4d8(_0x40a353,_0x49a444);},'SNtRP':function(_0x4ca493,_0x2489bf){return _0x4ca493(_0x2489bf);},'UEccp':function(_0x20b2fa,_0x5c87ab,_0x48b092){return _0x20b2fa(_0x5c87ab,_0x48b092);},'adpYw':'2|5|1|0|4|3','GBaOe':function(_0x14207d){return _0x14207d();},'OxCSu':'Running\x20your\x20test\x20suite\x20on\x20BrowserStack','FCNrT':_0x476a8e(0x11c),'iNBzx':function(_0x1554d1,_0x54edb0,_0x595343){return _0x1554d1(_0x54edb0,_0x595343);},'CCTZE':function(_0x309e94,_0x3bd793){return _0x309e94(_0x3bd793);},'aZbcb':function(_0x2cc5e6,_0x42ce24,_0x2933de){return _0x2cc5e6(_0x42ce24,_0x2933de);},'uESkz':function(_0x377e74,_0x3185b4){return _0x377e74!==_0x3185b4;},'rlQxj':_0x476a8e(0x163),'NgxKr':_0x476a8e(0x111)},_0x107ac2=helper[_0x476a8e(0x113)]();let _0x206f4d;try{_0x206f4d=helper[_0x476a8e(0x136)](),_0x206f4d['originalBuilder']&&(_0x206f4d['Builder']=_0x206f4d[_0x476a8e(0x122)]);}catch(_0x2779be){return;}if(helper[_0x476a8e(0x179)]()){const _0x1cc285={};_0x1cc285['logLevel']=_0x22f170[_0x476a8e(0x176)],helper[_0x476a8e(0x178)](_0x1cc285,new Map(),new Map()),logger[_0x476a8e(0x117)](_0x433c1c[_0x476a8e(0x172)]),logger['debug'](_0x433c1c['NgxKr']);}class _0x62ee6f extends _0x107ac2[_0x476a8e(0x14f)]{[_0x476a8e(0x139)](_0x566fbb){const _0x4218e4=_0x476a8e;if(_0x433c1c[_0x4218e4(0x10d)](_0x566fbb[_0x4218e4(0x167)],_0x433c1c['qKqat'])&&_0x433c1c['KdXtp'](global['newHubUrl'],''))try{global['newHubUrl']=_0x433c1c[_0x4218e4(0x119)](_0x433c1c['lbBbw'](_0x433c1c[_0x4218e4(0x138)],global[_0x4218e4(0x142)]),_0x433c1c['qHoCW']),this['options_']=hubAllocator[_0x4218e4(0x15d)](global['newHubUrl']),logger[_0x4218e4(0x118)](_0x4218e4(0x128)+global['newHubUrl']),global[_0x4218e4(0x142)]='';}catch(_0x589f5b){logger[_0x4218e4(0x148)](_0x589f5b);}return super[_0x4218e4(0x139)](_0x566fbb);}}class _0x5deafc extends _0x206f4d[_0x476a8e(0x106)]{[_0x476a8e(0x105)](){const _0x508679=_0x476a8e;return this[_0x508679(0x16e)]=helper[_0x508679(0x14a)](_0x22f170),logger[_0x508679(0x118)](_0x508679(0x13c)+this[_0x508679(0x16e)]),this;}[_0x476a8e(0xfe)](_0x5064c0){const _0x302eac=_0x476a8e;let _0x3fd6e6={};for(const _0x2ae464 in _0x5064c0){switch(_0x2ae464){case _0x433c1c[_0x302eac(0x14e)]:case _0x433c1c[_0x302eac(0x16d)]:this[_0x302eac(0x169)]&&(_0x3fd6e6=this[_0x302eac(0x169)][_0x302eac(0x15f)](this[_0x302eac(0x169)][_0x302eac(0x13f)])||{},this[_0x302eac(0x169)][_0x302eac(0x137)](this['chromeOptions_'][_0x302eac(0x13f)],helper[_0x302eac(0x171)](_0x3fd6e6,_0x5064c0[_0x2ae464])));break;case _0x433c1c[_0x302eac(0x14c)]:case _0x433c1c['TUPav']:this[_0x302eac(0x102)]&&(_0x3fd6e6=this[_0x302eac(0x102)][_0x302eac(0x15f)](this[_0x302eac(0x102)][_0x302eac(0x13f)])||{},this[_0x302eac(0x102)][_0x302eac(0x137)](this[_0x302eac(0x102)][_0x302eac(0x13f)],helper[_0x302eac(0x171)](_0x3fd6e6,_0x5064c0[_0x2ae464])));break;case _0x433c1c[_0x302eac(0x115)]:case _0x433c1c[_0x302eac(0x165)]:this['firefoxOptions_']&&(_0x3fd6e6=this['firefoxOptions_'][_0x302eac(0x15f)](this[_0x302eac(0x15b)][_0x302eac(0x13f)])||{},this[_0x302eac(0x15b)]['set'](this[_0x302eac(0x15b)][_0x302eac(0x13f)],helper[_0x302eac(0x171)](_0x3fd6e6,_0x5064c0[_0x2ae464])));break;case _0x433c1c[_0x302eac(0x127)]:this[_0x302eac(0x15e)]&&(_0x3fd6e6=this[_0x302eac(0x15e)][_0x302eac(0x15f)](this[_0x302eac(0x15e)][_0x302eac(0x13f)])||{},this['safariOptions_']['set'](this[_0x302eac(0x15e)][_0x302eac(0x13f)],helper[_0x302eac(0x171)](_0x3fd6e6,_0x5064c0[_0x2ae464])));break;case _0x433c1c[_0x302eac(0x174)]:case _0x433c1c[_0x302eac(0x158)]:this[_0x302eac(0x121)]&&(_0x3fd6e6=this[_0x302eac(0x121)][_0x302eac(0x15f)](this[_0x302eac(0x121)][_0x302eac(0x13f)])||{},this[_0x302eac(0x121)]['set'](this['ieOptions_'][_0x302eac(0x13f)],helper['mergeDeep'](_0x3fd6e6,_0x5064c0[_0x2ae464])));break;}}}[_0x476a8e(0x143)](){const _0x1dc7bb=_0x476a8e;return logger['debug'](_0x433c1c[_0x1dc7bb(0x11d)]),this['__setBrowserOptions'](_0x22f170[_0x1dc7bb(0x104)]),Object[_0x1dc7bb(0x12c)](_0x22f170['capability'])[_0x1dc7bb(0x144)](_0x35526a=>{const _0x3fff07=_0x1dc7bb,_0x58866c=this[_0x3fff07(0x153)][_0x3fff07(0x15f)](_0x35526a);_0x433c1c[_0x3fff07(0x154)](typeof _0x58866c,_0x433c1c['FzrOg'])?this['capabilities_'][_0x3fff07(0x137)](_0x35526a,helper[_0x3fff07(0x171)](_0x58866c,_0x22f170[_0x3fff07(0x104)][_0x35526a])):this[_0x3fff07(0x153)][_0x3fff07(0x137)](_0x35526a,_0x22f170[_0x3fff07(0x104)][_0x35526a]);}),this;}[_0x476a8e(0x10a)](){const _0x2305fc=_0x476a8e,_0x352ac7={'PQrRh':function(_0x176530,_0x5e6e1c,_0x35f6d9){const _0xd48ba7=a29_0x1aef;return _0x433c1c[_0xd48ba7(0x13e)](_0x176530,_0x5e6e1c,_0x35f6d9);},'ZJliv':function(_0x23227e,_0x5645c0){const _0x5d6df2=a29_0x1aef;return _0x433c1c[_0x5d6df2(0x130)](_0x23227e,_0x5645c0);},'uZmWY':function(_0x76bdbf,_0x174fbc,_0x2eda99){const _0x1a5043=a29_0x1aef;return _0x433c1c[_0x1a5043(0x13e)](_0x76bdbf,_0x174fbc,_0x2eda99);},'oUJSX':function(_0x433370,_0x189048,_0x2145a5){const _0x226c07=a29_0x1aef;return _0x433c1c[_0x226c07(0x16c)](_0x433370,_0x189048,_0x2145a5);}};if(helper['isBrowserstackInfra']()){const _0x197bae=_0x433c1c[_0x2305fc(0x134)][_0x2305fc(0x145)]('|');let _0x191929=0x0;while(!![]){switch(_0x197bae[_0x191929++]){case'0':if(helper[_0x2305fc(0x149)](_0x22f170['proxySettings']['proxyUrl']))this[_0x2305fc(0x162)]=helper[_0x2305fc(0x161)](_0x22f170['proxySettings'][_0x2305fc(0x170)]);else _0x22f170[_0x2305fc(0x147)][_0x2305fc(0x170)]&&(this[_0x2305fc(0x168)]=_0x22f170[_0x2305fc(0x147)][_0x2305fc(0x170)],logger[_0x2305fc(0x118)](_0x2305fc(0x15c)+this[_0x2305fc(0x168)]));continue;case'1':this['setCapabilities']();continue;case'2':_0x433c1c[_0x2305fc(0x156)](isAccessibilityAutomationSession)&&_0x433c1c[_0x2305fc(0x130)](setAccessibilityCapabilities,_0x22f170);continue;case'3':logger['debug'](_0x433c1c[_0x2305fc(0x10e)]);continue;case'4':globals[_0x2305fc(0x129)](_0x433c1c[_0x2305fc(0x12d)])&&(!_0x433c1c['iNBzx'](setExtension,this,_0x22f170)&&globals[_0x2305fc(0x100)](_0x433c1c[_0x2305fc(0x12d)],![]));continue;case'5':this[_0x2305fc(0x105)]();continue;}break;}}const _0x120ffd=super[_0x2305fc(0x10a)]();return _0x120ffd[_0x2305fc(0x114)][_0x2305fc(0x141)](_0x34015b=>{const _0x526c03=_0x2305fc;try{const _0x38c2fd=_0x34015b['caps_'][_0x526c03(0x15f)](_0x433c1c[_0x526c03(0x15a)]);_0x38c2fd?(logger[_0x526c03(0x118)](_0x526c03(0x12b)+_0x38c2fd),hubAllocator[_0x526c03(0xff)](_0x38c2fd),helper[_0x526c03(0x126)](_0x38c2fd)):logger[_0x526c03(0x118)](_0x433c1c[_0x526c03(0x14b)]);}catch(_0x45a6a5){logger[_0x526c03(0x118)](_0x526c03(0x16f)+_0x45a6a5);}}),_0x120ffd[_0x2305fc(0x157)]=0x0,_0x120ffd['then']&&_0x120ffd[_0x2305fc(0x141)](_0x33e8e0=>{const _0xd0fdcb=_0x2305fc,_0x2c32ef={'ISNRp':function(_0x436466,_0x32f6d0,_0x3d0ba4){const _0x4681d0=a29_0x1aef;return _0x352ac7[_0x4681d0(0x124)](_0x436466,_0x32f6d0,_0x3d0ba4);}};_0x352ac7[_0xd0fdcb(0x124)](overrideQuit,_0x33e8e0,_0x120ffd),_0x352ac7[_0xd0fdcb(0x11a)](overrideTakeScreenshot,_0x33e8e0),helper['overrideGet'](_0x33e8e0,_0x22f170),_0x352ac7[_0xd0fdcb(0x124)](overrideExecute,_0x33e8e0,_0x22f170),_0x33e8e0[_0xd0fdcb(0x152)]=async()=>{const _0x4df6a2=_0xd0fdcb;return await _0x352ac7[_0x4df6a2(0x124)](getAccessibilityResultsSummary,_0x33e8e0,global);},_0x33e8e0[_0xd0fdcb(0x175)]=async()=>{const _0x4f526e=_0xd0fdcb;return await _0x2c32ef[_0x4f526e(0x166)](getAccessibilityResults,_0x33e8e0,global);};}),_0x120ffd[_0x2305fc(0x152)]=async()=>{const _0x4bc567=_0x2305fc;return await _0x352ac7[_0x4bc567(0x11b)](getAccessibilityResultsSummary,_0x120ffd,global);},_0x120ffd[_0x2305fc(0x175)]=async()=>{return await _0x352ac7['oUJSX'](getAccessibilityResults,_0x120ffd,global);},_0x433c1c[_0x2305fc(0x130)](overrideTakeScreenshot,_0x120ffd),_0x433c1c[_0x2305fc(0x10c)](overrideQuit,_0x120ffd),helper[_0x2305fc(0x120)](_0x120ffd,_0x22f170),_0x433c1c[_0x2305fc(0x177)](overrideExecute,_0x120ffd,_0x22f170),helper[_0x2305fc(0x164)](global[_0x2305fc(0x140)])&&(global['__driversArray']=[]),helper[_0x2305fc(0x164)](global[_0x2305fc(0x11e)])&&(global[_0x2305fc(0x11e)]=[]),global[_0x2305fc(0x140)]['push'](_0x120ffd),global[_0x2305fc(0x12a)]=_0x120ffd,_0x433c1c[_0x2305fc(0x10d)](global[_0x2305fc(0x11e)],undefined)&&global[_0x2305fc(0x11e)][_0x2305fc(0x150)](_0x120ffd),_0x4ec654&&helper['isUndefined'](_0x4ec654['global'][_0x2305fc(0x140)])&&(_0x4ec654[_0x2305fc(0x131)]['__driversArray']=[]),_0x4ec654&&_0x433c1c[_0x2305fc(0x155)](_0x4ec654[_0x2305fc(0x131)][_0x2305fc(0x11e)],undefined)&&(_0x4ec654[_0x2305fc(0x131)][_0x2305fc(0x11e)][_0x2305fc(0x150)](_0x120ffd),_0x4ec654[_0x2305fc(0x131)][_0x2305fc(0x140)][_0x2305fc(0x150)](_0x120ffd)),_0x120ffd;}}return _0x206f4d[_0x476a8e(0x122)]=_0x206f4d[_0x476a8e(0x106)],_0x206f4d[_0x476a8e(0x106)]=_0x5deafc,_0x107ac2[_0x476a8e(0x14f)]=_0x62ee6f,_0x206f4d;};module['exports']['browserstackAgentObservability']=modify;
|
|
1
|
+
function a29_0x39a5(){const _0x48c7b9=['newHubUrl','kLylw','HttpClient','isPacProxy','setServer','OFNzi','755gCndhy','se:ieOptions','originalBuilder','0|4|3|5|1|2','OdMzZ','../../../bin/utils/constants','XmboH','../accessibility-automation/helper','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','../../../helpers/helper','keys','build','../../../helpers/patchHelpers','ZYXQA','uvKnN','dRDVo','quitCount_','__setBrowserOptions','firefoxOptions_','232vBEtbN','requireSeleniumWebdriver','AYSSY','https://','Builder','/wd/hub','iFtae','session_','1539671tRbOvm','PXmMw','safariOptions_','setGlobal','ieOptions_','__driver','chromeOptions','url_','edgeOptions_','push','rSWzk','proxyUrl','HlJNv','../../../helpers/globals','CAPABILITY_KEY','Proxy\x20set\x20to\x20','amRTG','10vkWCiC','proxySettings','../../../hubAllocationMethods','capability','goog:chromeOptions','TUWOT','./helpers/patchHelper','cMnWF','TFydp','firefoxOptions','kWNAB','Modifying\x20webdriver\x20builder','LwASz','safari.options','463424bNcYtz','setCapabilities','__drivers','MivCV','255lCiLNL','moz:firefoxOptions','object','setLogLevel','getHubUrl','optimalHubUrl','isUndefined','wpWkm','ieOptions','oStIL','set','6FQhCyQ','iubGX','isAccessibilityPlatform','caps_','browserstackAgentObservability','mergeDeep','send','__driversArray','ChOqx','global','Setting\x20Browserstack\x20capabilities','ZwpKF','bGoLc','4567717yTkBHw','then','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','get','1928CdvSsN','New\x20hub\x20url\x20set\x20to\x20','cqXhR','browserStackLogLevel','zUlTb','qoPot','proxy_','459085PKeOJO','linFr','requireHttpClient','getAccessibilityResults','zauuu','vfZXq','overrideGet','../../../helpers/logger','GxHvt','debug','/session','getAccessibilityResultsSummary','fUaQq','3523797MgEBQI','error','YJZhx','isBrowserstackInfra','sZhVa','winstonLogger','logLevel','capabilities_','chromeOptions_','guLiU'];a29_0x39a5=function(){return _0x48c7b9;};return a29_0x39a5();}const a29_0x50f935=a29_0x35b6;(function(_0x3d4597,_0x36f187){const _0x160011=a29_0x35b6,_0x1e6c41=_0x3d4597();while(!![]){try{const _0x1aea3c=parseInt(_0x160011(0x182))/0x1+parseInt(_0x160011(0x17b))/0x2*(parseInt(_0x160011(0x15f))/0x3)+-parseInt(_0x160011(0x134))/0x4*(parseInt(_0x160011(0x19f))/0x5)+-parseInt(_0x160011(0x16a))/0x6*(parseInt(_0x160011(0x13c))/0x7)+-parseInt(_0x160011(0x15b))/0x8+parseInt(_0x160011(0x18f))/0x9+-parseInt(_0x160011(0x14d))/0xa*(parseInt(_0x160011(0x177))/0xb);if(_0x1aea3c===_0x36f187)break;else _0x1e6c41['push'](_0x1e6c41['shift']());}catch(_0x426028){_0x1e6c41['push'](_0x1e6c41['shift']());}}}(a29_0x39a5,0x38510));function a29_0x35b6(_0x1635e2,_0x5cfc0a){const _0x39a5dd=a29_0x39a5();return a29_0x35b6=function(_0x35b6de,_0x3cfd21){_0x35b6de=_0x35b6de-0x12e;let _0x1f4ef3=_0x39a5dd[_0x35b6de];return _0x1f4ef3;},a29_0x35b6(_0x1635e2,_0x5cfc0a);}const logger=require(a29_0x50f935(0x189))[a29_0x50f935(0x194)],helper=require(a29_0x50f935(0x1a8)),constants=require(a29_0x50f935(0x1a4)),hubAllocator=require(a29_0x50f935(0x14f)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a29_0x50f935(0x1ab)),{setAccessibilityCapabilities,setExtension}=require(a29_0x50f935(0x1a6)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require('../../../helpers/accessibility-automation/helper'),globals=require(a29_0x50f935(0x149)),{overrideExecute}=require(a29_0x50f935(0x153)),modify=(_0x4aa85c,_0x50d0a1=null,_0x17262b=![])=>{const _0x4e2fa2=a29_0x50f935,_0x424b40={'AYSSY':function(_0x1c5016,_0x3927be){return _0x1c5016!==_0x3927be;},'TFydp':_0x4e2fa2(0x18c),'PXmMw':function(_0x1b556b,_0x39ff47){return _0x1b556b+_0x39ff47;},'rEriy':function(_0x462861,_0x247303){return _0x462861+_0x247303;},'OFNzi':_0x4e2fa2(0x137),'vfZXq':_0x4e2fa2(0x139),'quYWO':_0x4e2fa2(0x151),'oStIL':_0x4e2fa2(0x142),'YJZhx':'ms:edgeOptions','HlJNv':'edgeOptions','iFtae':_0x4e2fa2(0x160),'kWNAB':_0x4e2fa2(0x156),'iubGX':_0x4e2fa2(0x15a),'uvKnN':_0x4e2fa2(0x1a0),'TUWOT':_0x4e2fa2(0x167),'lAksS':function(_0x5c5f3a,_0x4a28d3){return _0x5c5f3a===_0x4a28d3;},'USmyt':_0x4e2fa2(0x161),'zUlTb':_0x4e2fa2(0x174),'ZYXQA':function(_0x2a4473,_0x12acea,_0x2ab0f7){return _0x2a4473(_0x12acea,_0x2ab0f7);},'rSWzk':function(_0x16d4f5,_0x23aaaa){return _0x16d4f5(_0x23aaaa);},'LwASz':function(_0x25562d,_0x5d3919,_0x129416){return _0x25562d(_0x5d3919,_0x129416);},'amRTG':function(_0x33cf7e,_0xa6ebee,_0x246c49){return _0x33cf7e(_0xa6ebee,_0x246c49);},'wpWkm':_0x4e2fa2(0x164),'Iytxm':'OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','fUaQq':function(_0x2fe06b,_0x14d126,_0x4b566b){return _0x2fe06b(_0x14d126,_0x4b566b);},'OdMzZ':_0x4e2fa2(0x1a2),'bGoLc':function(_0x230dc3){return _0x230dc3();},'sZhVa':_0x4e2fa2(0x16c),'ChOqx':'Running\x20your\x20test\x20suite\x20on\x20BrowserStack','MivCV':function(_0x175eb2,_0xb701a0){return _0x175eb2(_0xb701a0);},'ZwpKF':function(_0x48d533,_0x21380b){return _0x48d533(_0x21380b);},'zauuu':function(_0x5b7d20,_0x2da911,_0x1e93d3){return _0x5b7d20(_0x2da911,_0x1e93d3);},'cMnWF':function(_0x594487,_0x746a16){return _0x594487!==_0x746a16;},'XmboH':_0x4e2fa2(0x1a7),'qoPot':_0x4e2fa2(0x158)},_0x2b18ab=helper[_0x4e2fa2(0x184)]();let _0x316391;try{_0x316391=helper[_0x4e2fa2(0x135)](),_0x316391[_0x4e2fa2(0x1a1)]&&(_0x316391[_0x4e2fa2(0x138)]=_0x316391[_0x4e2fa2(0x1a1)]);}catch(_0x74ac1e){return;}if(helper[_0x4e2fa2(0x192)]()){const _0x4655df={};_0x4655df[_0x4e2fa2(0x195)]=_0x4aa85c[_0x4e2fa2(0x17e)],helper[_0x4e2fa2(0x162)](_0x4655df,new Map(),new Map()),logger['info'](_0x424b40[_0x4e2fa2(0x1a5)]),logger[_0x4e2fa2(0x18b)](_0x424b40[_0x4e2fa2(0x180)]);}class _0x3cb2f4 extends _0x2b18ab[_0x4e2fa2(0x19b)]{[_0x4e2fa2(0x170)](_0x8fd001){const _0x59d90e=_0x4e2fa2;if(_0x424b40[_0x59d90e(0x136)](_0x8fd001['path'],_0x424b40[_0x59d90e(0x155)])&&_0x424b40['AYSSY'](global[_0x59d90e(0x199)],''))try{global[_0x59d90e(0x199)]=_0x424b40[_0x59d90e(0x13d)](_0x424b40['rEriy'](_0x424b40[_0x59d90e(0x19e)],global[_0x59d90e(0x199)]),_0x424b40[_0x59d90e(0x187)]),this['options_']=hubAllocator['getRequestOptions'](global[_0x59d90e(0x199)]),logger['debug'](_0x59d90e(0x17c)+global[_0x59d90e(0x199)]),global[_0x59d90e(0x199)]='';}catch(_0x256edf){logger[_0x59d90e(0x190)](_0x256edf);}return super[_0x59d90e(0x170)](_0x8fd001);}}class _0x1b1336 extends _0x316391[_0x4e2fa2(0x138)]{['setServer'](){const _0x195d27=_0x4e2fa2;return this[_0x195d27(0x143)]=helper[_0x195d27(0x163)](_0x4aa85c),logger[_0x195d27(0x18b)]('Hub\x20url\x20set\x20to\x20'+this[_0x195d27(0x143)]),this;}[_0x4e2fa2(0x132)](_0x121fd6){const _0x1a98a8=_0x4e2fa2;let _0x2ad344={};for(const _0x3c3f8c in _0x121fd6){switch(_0x3c3f8c){case _0x424b40['quYWO']:case _0x424b40[_0x1a98a8(0x168)]:this[_0x1a98a8(0x197)]&&(_0x2ad344=this[_0x1a98a8(0x197)][_0x1a98a8(0x17a)](this[_0x1a98a8(0x197)]['CAPABILITY_KEY'])||{},this['chromeOptions_'][_0x1a98a8(0x169)](this[_0x1a98a8(0x197)][_0x1a98a8(0x14a)],helper[_0x1a98a8(0x16f)](_0x2ad344,_0x121fd6[_0x3c3f8c])));break;case _0x424b40[_0x1a98a8(0x191)]:case _0x424b40[_0x1a98a8(0x148)]:this['edgeOptions_']&&(_0x2ad344=this[_0x1a98a8(0x144)][_0x1a98a8(0x17a)](this['edgeOptions_'][_0x1a98a8(0x14a)])||{},this[_0x1a98a8(0x144)]['set'](this[_0x1a98a8(0x144)][_0x1a98a8(0x14a)],helper[_0x1a98a8(0x16f)](_0x2ad344,_0x121fd6[_0x3c3f8c])));break;case _0x424b40[_0x1a98a8(0x13a)]:case _0x424b40[_0x1a98a8(0x157)]:this[_0x1a98a8(0x133)]&&(_0x2ad344=this['firefoxOptions_'][_0x1a98a8(0x17a)](this[_0x1a98a8(0x133)][_0x1a98a8(0x14a)])||{},this[_0x1a98a8(0x133)]['set'](this[_0x1a98a8(0x133)]['CAPABILITY_KEY'],helper['mergeDeep'](_0x2ad344,_0x121fd6[_0x3c3f8c])));break;case _0x424b40[_0x1a98a8(0x16b)]:this['safariOptions_']&&(_0x2ad344=this['safariOptions_'][_0x1a98a8(0x17a)](this[_0x1a98a8(0x13e)][_0x1a98a8(0x14a)])||{},this[_0x1a98a8(0x13e)][_0x1a98a8(0x169)](this[_0x1a98a8(0x13e)]['CAPABILITY_KEY'],helper['mergeDeep'](_0x2ad344,_0x121fd6[_0x3c3f8c])));break;case _0x424b40[_0x1a98a8(0x12f)]:case _0x424b40[_0x1a98a8(0x152)]:this['ieOptions_']&&(_0x2ad344=this[_0x1a98a8(0x140)]['get'](this[_0x1a98a8(0x140)][_0x1a98a8(0x14a)])||{},this[_0x1a98a8(0x140)][_0x1a98a8(0x169)](this['ieOptions_'][_0x1a98a8(0x14a)],helper[_0x1a98a8(0x16f)](_0x2ad344,_0x121fd6[_0x3c3f8c])));break;}}}[_0x4e2fa2(0x15c)](){const _0x1c129b=_0x4e2fa2,_0xcfae28={'dRDVo':function(_0x333cbf,_0x5cda0a){return _0x424b40['lAksS'](_0x333cbf,_0x5cda0a);},'kLylw':_0x424b40['USmyt']};return logger['debug'](_0x424b40[_0x1c129b(0x17f)]),this[_0x1c129b(0x132)](_0x4aa85c[_0x1c129b(0x150)]),Object[_0x1c129b(0x1a9)](_0x4aa85c[_0x1c129b(0x150)])['forEach'](_0x348900=>{const _0x1c9cc2=_0x1c129b,_0x48be73=this[_0x1c9cc2(0x196)]['get'](_0x348900);_0xcfae28[_0x1c9cc2(0x130)](typeof _0x48be73,_0xcfae28[_0x1c9cc2(0x19a)])?this['capabilities_'][_0x1c9cc2(0x169)](_0x348900,helper[_0x1c9cc2(0x16f)](_0x48be73,_0x4aa85c['capability'][_0x348900])):this[_0x1c9cc2(0x196)][_0x1c9cc2(0x169)](_0x348900,_0x4aa85c[_0x1c9cc2(0x150)][_0x348900]);}),this;}['build'](){const _0x5b782e=_0x4e2fa2,_0x5b2bb4={'GxHvt':_0x424b40[_0x5b782e(0x166)],'linFr':_0x424b40['Iytxm'],'cqXhR':function(_0x3f8233,_0x23790d,_0x37af4a){const _0xa8804d=_0x5b782e;return _0x424b40[_0xa8804d(0x18e)](_0x3f8233,_0x23790d,_0x37af4a);}};if(helper[_0x5b782e(0x192)]()){const _0x7f5a7c=_0x424b40[_0x5b782e(0x1a3)]['split']('|');let _0x8835c3=0x0;while(!![]){switch(_0x7f5a7c[_0x8835c3++]){case'0':_0x424b40[_0x5b782e(0x176)](isAccessibilityAutomationSession)&&_0x424b40[_0x5b782e(0x146)](setAccessibilityCapabilities,_0x4aa85c);continue;case'1':globals['getGlobal'](_0x424b40[_0x5b782e(0x193)])&&(!_0x424b40[_0x5b782e(0x159)](setExtension,this,_0x4aa85c)&&globals[_0x5b782e(0x13f)](_0x424b40['sZhVa'],![]));continue;case'2':logger[_0x5b782e(0x18b)](_0x424b40[_0x5b782e(0x172)]);continue;case'3':this[_0x5b782e(0x15c)]();continue;case'4':this[_0x5b782e(0x19d)]();continue;case'5':if(helper[_0x5b782e(0x19c)](_0x4aa85c[_0x5b782e(0x14e)][_0x5b782e(0x147)]))this['agent_']=helper['getHttpAgent'](_0x4aa85c['proxySettings'][_0x5b782e(0x147)]);else _0x4aa85c[_0x5b782e(0x14e)][_0x5b782e(0x147)]&&(this[_0x5b782e(0x181)]=_0x4aa85c['proxySettings']['proxyUrl'],logger[_0x5b782e(0x18b)](_0x5b782e(0x14b)+this['proxy_']));continue;}break;}}const _0x2b5628=super[_0x5b782e(0x1aa)]();return _0x2b5628[_0x5b782e(0x13b)][_0x5b782e(0x178)](_0x395c2a=>{const _0x331c15=_0x5b782e;try{const _0x57dd4a=_0x395c2a[_0x331c15(0x16d)][_0x331c15(0x17a)](_0x5b2bb4[_0x331c15(0x18a)]);_0x57dd4a?(logger[_0x331c15(0x18b)](_0x331c15(0x179)+_0x57dd4a),hubAllocator['updateHubUrl'](_0x57dd4a),helper['storeOptimalHubUrl'](_0x57dd4a)):logger[_0x331c15(0x18b)](_0x5b2bb4[_0x331c15(0x183)]);}catch(_0x4deba6){logger[_0x331c15(0x18b)]('ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20'+_0x4deba6);}}),_0x2b5628[_0x5b782e(0x131)]=0x0,_0x2b5628[_0x5b782e(0x178)]&&_0x2b5628['then'](_0xa476ec=>{const _0x1dc305=_0x5b782e,_0x3b1ba4={'guLiU':function(_0x1f9645,_0x21bba5,_0x9715d9){const _0x2984e2=a29_0x35b6;return _0x424b40[_0x2984e2(0x12e)](_0x1f9645,_0x21bba5,_0x9715d9);}};_0x424b40[_0x1dc305(0x12e)](overrideQuit,_0xa476ec,_0x2b5628),_0x424b40['rSWzk'](overrideTakeScreenshot,_0xa476ec),helper[_0x1dc305(0x188)](_0xa476ec,_0x4aa85c),_0x424b40[_0x1dc305(0x159)](overrideExecute,_0xa476ec,_0x4aa85c),_0xa476ec[_0x1dc305(0x18d)]=async()=>{const _0x429946=_0x1dc305;return await _0x3b1ba4[_0x429946(0x198)](getAccessibilityResultsSummary,_0xa476ec,global);},_0xa476ec[_0x1dc305(0x185)]=async()=>{const _0x2240d0=_0x1dc305;return await _0x5b2bb4[_0x2240d0(0x17d)](getAccessibilityResults,_0xa476ec,global);};}),_0x2b5628[_0x5b782e(0x18d)]=async()=>{return await _0x424b40['LwASz'](getAccessibilityResultsSummary,_0x2b5628,global);},_0x2b5628['getAccessibilityResults']=async()=>{const _0x19b2b3=_0x5b782e;return await _0x424b40[_0x19b2b3(0x14c)](getAccessibilityResults,_0x2b5628,global);},_0x424b40[_0x5b782e(0x15e)](overrideTakeScreenshot,_0x2b5628),_0x424b40[_0x5b782e(0x175)](overrideQuit,_0x2b5628),helper['overrideGet'](_0x2b5628,_0x4aa85c),_0x424b40[_0x5b782e(0x186)](overrideExecute,_0x2b5628,_0x4aa85c),helper[_0x5b782e(0x165)](global[_0x5b782e(0x171)])&&(global['__driversArray']=[]),helper[_0x5b782e(0x165)](global['__drivers'])&&(global[_0x5b782e(0x15d)]=[]),global[_0x5b782e(0x171)][_0x5b782e(0x145)](_0x2b5628),global[_0x5b782e(0x141)]=_0x2b5628,_0x424b40[_0x5b782e(0x154)](global[_0x5b782e(0x15d)],undefined)&&global[_0x5b782e(0x15d)][_0x5b782e(0x145)](_0x2b5628),_0x50d0a1&&helper[_0x5b782e(0x165)](_0x50d0a1['global'][_0x5b782e(0x171)])&&(_0x50d0a1['global'][_0x5b782e(0x171)]=[]),_0x50d0a1&&_0x424b40[_0x5b782e(0x154)](_0x50d0a1[_0x5b782e(0x173)]['__drivers'],undefined)&&(_0x50d0a1[_0x5b782e(0x173)][_0x5b782e(0x15d)][_0x5b782e(0x145)](_0x2b5628),_0x50d0a1['global'][_0x5b782e(0x171)][_0x5b782e(0x145)](_0x2b5628)),_0x2b5628;}}return _0x316391[_0x4e2fa2(0x1a1)]=_0x316391['Builder'],_0x316391[_0x4e2fa2(0x138)]=_0x1b1336,_0x2b18ab[_0x4e2fa2(0x19b)]=_0x3cb2f4,_0x316391;};module['exports'][a29_0x50f935(0x16e)]=modify;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a30_0x119d3e=a30_0x538d;(function(_0x1a7156,_0x5ac3e2){const _0xa02cc9=a30_0x538d,_0x377cde=_0x1a7156();while(!![]){try{const _0x51fdc5=parseInt(_0xa02cc9(0x72))/0x1+parseInt(_0xa02cc9(0x79))/0x2*(-parseInt(_0xa02cc9(0x70))/0x3)+parseInt(_0xa02cc9(0x7d))/0x4*(parseInt(_0xa02cc9(0x78))/0x5)+-parseInt(_0xa02cc9(0x7e))/0x6*(parseInt(_0xa02cc9(0x7c))/0x7)+parseInt(_0xa02cc9(0x7b))/0x8*(parseInt(_0xa02cc9(0x75))/0x9)+parseInt(_0xa02cc9(0x7a))/0xa+-parseInt(_0xa02cc9(0x74))/0xb;if(_0x51fdc5===_0x5ac3e2)break;else _0x377cde['push'](_0x377cde['shift']());}catch(_0x2d3747){_0x377cde['push'](_0x377cde['shift']());}}}(a30_0x566e,0x9f532));function a30_0x566e(){const _0x4e2006=['1009493ATfaXn','../../../bin/utils/constants','16303617EVUukI','3493782brxslU','timeout','mochaHooks','10cdIXkc','12KyZcML','6010430JzPxxH','16uwtQan','455lcVuMu','2600172mRctif','65814YUCOrC','../../../helpers/request-spy','419646atypga','restore'];a30_0x566e=function(){return _0x4e2006;};return a30_0x566e();}function a30_0x538d(_0x243e45,_0x99206b){const _0x566e9f=a30_0x566e();return a30_0x538d=function(_0x538d90,_0x1adbf7){_0x538d90=_0x538d90-0x70;let _0x4b79c8=_0x566e9f[_0x538d90];return _0x4b79c8;},a30_0x538d(_0x243e45,_0x99206b);}const requestSpy=require(a30_0x119d3e(0x7f)),constants=require(a30_0x119d3e(0x73)),{addRequestSpy}=require('../../../helpers/test-observability/utils');exports[a30_0x119d3e(0x77)]={'beforeAll'(){const _0x2be757={'YmRpv':function(_0x4c0202){return _0x4c0202();}},_0x480d4b='browserstack internal helper hook';_0x2be757['YmRpv'](addRequestSpy);},'afterAll'(){const _0x4060cf=a30_0x119d3e,_0x1a5bd4='browserstack internal helper hook';this[_0x4060cf(0x76)](0xea60),requestSpy[_0x4060cf(0x71)]();}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a31_0x12a5dd=a31_0x3dff;function a31_0x4437(){const _0x3b0636=['../../../helpers/test-observability/constants','32DaeSNw','tests','getCapabilities','27836OIissx','672289UZrmsJ','qbKww','151160fandZc','TEST_PLATFORM','toJSON','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','qDlUa','10IanOsT','xftIF','concat','edBsG','unknown_grid','passed','mapTestHooks','forEach','split','QOLVk','_beforeAll','pid','485982KkTycg','get','push','pYsNg','_afterAll','getTestEnv','RhkPL','../../../helpers/testhub/utils','Fcpqm','getHookSkippedTests','2699946UMXXKM','BVdrp','../../../helpers/helper','__cloud_provider___','../../utils/logPatcher','VOOXO','suites','emit','78VEWOgb','filter','slice','markedStatus','string','generic','getHooksForTest','../../../helpers/test-observability/utils','bs:addPlatformDetails:','getBrowserVersion','_afterEach','UMPCs','657QFtAxi','type','getSession','GxJUJ','wmFWY','zcKhE','IppXG','Jaacp','Qymug','8734605xRdOdU','map_','QKbkj','DVhwr','../../../../package.json','QpCpU','sendPlatformDetails','platformVersion','zYfbv','pending','toISOString','hook:','indexOf','14844oHAUdu','oYjIM','EycPp','uuid','hookAnalyticsId','krcmo','HMPtc','SCSbK','hook','_beforeEach','failed','parent','state','XUEnF'];a31_0x4437=function(){return _0x3b0636;};return a31_0x4437();}(function(_0x1d663e,_0x21127b){const _0x355cf5=a31_0x3dff,_0x165f04=_0x1d663e();while(!![]){try{const _0x49779e=parseInt(_0x355cf5(0x120))/0x1+-parseInt(_0x355cf5(0x11f))/0x2+parseInt(_0x355cf5(0xf7))/0x3*(-parseInt(_0x355cf5(0x10d))/0x4)+parseInt(_0x355cf5(0x122))/0x5*(parseInt(_0x355cf5(0xeb))/0x6)+-parseInt(_0x355cf5(0xd9))/0x7*(parseInt(_0x355cf5(0x11c))/0x8)+parseInt(_0x355cf5(0xe3))/0x9*(-parseInt(_0x355cf5(0x127))/0xa)+parseInt(_0x355cf5(0x100))/0xb;if(_0x49779e===_0x21127b)break;else _0x165f04['push'](_0x165f04['shift']());}catch(_0x2e53b0){_0x165f04['push'](_0x165f04['shift']());}}}(a31_0x4437,0x6f17b));const {v4:uuidv4}=require(a31_0x12a5dd(0x110)),{name,version}=require(a31_0x12a5dd(0x104)),logPatcher=require(a31_0x12a5dd(0xe7)),BSTestOpsPatcher=new logPatcher({}),{debug,isInternalHook,getObservabilityLinkedProductName}=require(a31_0x12a5dd(0xf2)),{consoleHolder}=require(a31_0x12a5dd(0x11b)),{getPlatformVersion}=require(a31_0x12a5dd(0xe5)),{shouldProcessEventForTesthub}=require(a31_0x12a5dd(0xe0)),{isFunction}=require('lodash'),{patchConsoleLogger}=require('../../../helpers/test-observability/utils');function a31_0x3dff(_0x51b978,_0x5f1fd9){const _0x443704=a31_0x4437();return a31_0x3dff=function(_0x3dffad,_0x4ce653){_0x3dffad=_0x3dffad-0xd7;let _0x39bd15=_0x443704[_0x3dffad];return _0x39bd15;},a31_0x3dff(_0x51b978,_0x5f1fd9);}patchConsoleLogger(),exports[a31_0x12a5dd(0xde)]=()=>{const _0x2995e0=a31_0x12a5dd,_0x152a92={'DVhwr':_0x2995e0(0xf0),'Qymug':function(_0x3b2deb){return _0x3b2deb();}};return{'ci':_0x152a92[_0x2995e0(0x103)],'key':_0x152a92[_0x2995e0(0xff)](uuidv4),'version':version,'collector':'js-'+name};},exports['getHookDetails']=_0x33ce91=>{const _0x370713=a31_0x12a5dd,_0xd95792={};_0xd95792[_0x370713(0x121)]=function(_0x53b818,_0x25b0e7){return _0x53b818!==_0x25b0e7;},_0xd95792[_0x370713(0xdc)]=_0x370713(0xef),_0xd95792[_0x370713(0xe1)]=_0x370713(0x10b),_0xd95792['GxJUJ']='hook';const _0x19710f=_0xd95792;if(!_0x33ce91||_0x19710f['qbKww'](typeof _0x33ce91,_0x19710f[_0x370713(0xdc)]))return[null,null];if(_0x19710f[_0x370713(0x121)](_0x33ce91[_0x370713(0x10c)](_0x19710f[_0x370713(0xe1)]),-0x1)){const _0x24a73d=_0x33ce91[_0x370713(0x12f)](_0x19710f['Fcpqm']);return[_0x24a73d[0x0]['slice'](0x0,-0x1)[_0x370713(0x12f)]('\x22')[0x1],_0x24a73d[0x1]['substring'](0x1)];}else{if(_0x19710f[_0x370713(0x121)](_0x33ce91[_0x370713(0x10c)](_0x19710f[_0x370713(0xfa)]),-0x1)){const _0x40a230=_0x33ce91[_0x370713(0x12f)](_0x19710f[_0x370713(0xfa)]);return[_0x40a230[0x0][_0x370713(0xed)](0x0,-0x1)[_0x370713(0x12f)]('\x22')[0x1],_0x33ce91];}}return[null,null];},exports[a31_0x12a5dd(0xf1)]=_0x1df092=>{const _0x1926f4=a31_0x12a5dd,_0x53acf9={'VOOXO':function(_0x243625,_0x2b0955){return _0x243625(_0x2b0955);},'edBsG':_0x1926f4(0xd7),'QOLVk':'_afterAll','BVdrp':_0x1926f4(0x116),'RhkPL':_0x1926f4(0xf5)};if(!_0x1df092||!_0x1df092[_0x1926f4(0x118)])return[];const _0x3c176f=[];return[_0x53acf9[_0x1926f4(0x12a)],_0x53acf9[_0x1926f4(0x130)],_0x53acf9[_0x1926f4(0xe4)],_0x53acf9[_0x1926f4(0xdf)]][_0x1926f4(0x12e)](_0x4d4814=>{const _0x3b8c38=_0x1926f4,_0x4dfd51=_0x1df092[_0x3b8c38(0x118)][_0x4d4814]||[];_0x4dfd51[_0x3b8c38(0x12e)](_0x100db5=>{const _0x50ddf2=_0x3b8c38;_0x100db5[_0x50ddf2(0x111)]&&!_0x53acf9[_0x50ddf2(0xe8)](isInternalHook,_0x100db5['fn'])&&_0x3c176f[_0x50ddf2(0xdb)](_0x100db5[_0x50ddf2(0x111)]);});}),[..._0x3c176f,...exports[_0x1926f4(0xf1)](_0x1df092[_0x1926f4(0x118)])];},exports[a31_0x12a5dd(0x12d)]=_0x551f96=>{const _0x16ebed=a31_0x12a5dd,_0x33b3ed={'wmFWY':function(_0x13a837){return _0x13a837();},'krcmo':function(_0x24ed7e,_0x33c383){return _0x24ed7e===_0x33c383;},'Jaacp':_0x16ebed(0xf5),'zcKhE':_0x16ebed(0xd7),'xftIF':_0x16ebed(0xdd),'BLAUK':_0x16ebed(0x116)};if(!_0x551f96||!_0x551f96[_0x16ebed(0x118)])return;[_0x33b3ed[_0x16ebed(0xfc)],_0x33b3ed[_0x16ebed(0x128)],_0x33b3ed['BLAUK'],_0x33b3ed[_0x16ebed(0xfe)]][_0x16ebed(0x12e)](_0x1dd28f=>{const _0x545dba=_0x16ebed,_0x346931=_0x551f96[_0x545dba(0x118)][_0x1dd28f]||[];_0x346931[_0x545dba(0x12e)](_0x3ffbd1=>{const _0x420fc2=_0x545dba;if(!_0x3ffbd1[_0x420fc2(0x111)])_0x3ffbd1['hookAnalyticsId']=_0x33b3ed[_0x420fc2(0xfb)](uuidv4);else _0x3ffbd1[_0x420fc2(0xee)]&&_0x33b3ed[_0x420fc2(0x112)](_0x1dd28f,_0x33b3ed[_0x420fc2(0xfe)])&&(_0x3ffbd1[_0x420fc2(0x111)]=_0x33b3ed[_0x420fc2(0xfb)](uuidv4),delete _0x3ffbd1[_0x420fc2(0xee)]);});}),exports[_0x16ebed(0x12d)](_0x551f96[_0x16ebed(0x118)]);},exports[a31_0x12a5dd(0x106)]=async(_0x2806ec,_0x2fc929)=>{const _0x57bac0=a31_0x12a5dd,_0x2c50aa={'SCSbK':function(_0x393aeb){return _0x393aeb();},'rzSHm':function(_0x357be2,_0x23ae35){return _0x357be2(_0x23ae35);},'EycPp':_0x57bac0(0x107),'zYfbv':function(_0x43519f,_0x5dc5f6){return _0x43519f(_0x5dc5f6);},'QpCpU':function(_0x3f1392,_0x8d807f){return _0x3f1392===_0x8d807f;},'QKbkj':'browserstack','HMPtc':_0x57bac0(0x12b),'UMPCs':_0x57bac0(0x123)};try{if(!_0x2c50aa[_0x57bac0(0x114)](shouldProcessEventForTesthub))return;const _0x2de497=await _0x2806ec[_0x57bac0(0x11e)](),_0x1e218f=await _0x2806ec[_0x57bac0(0xf9)](),_0x233134={},_0x3f06e2=Object['fromEntries'](_0x1e218f[_0x57bac0(0x11e)]()[_0x57bac0(0x101)]),_0x511616={'product':_0x2c50aa['rzSHm'](getObservabilityLinkedProductName,_0x3f06e2),'capabilities':_0x3f06e2,'platform':_0x2de497['getPlatform'](),'platform_version':_0x2de497['get'](_0x2c50aa[_0x57bac0(0x10f)])?_0x2de497[_0x57bac0(0xda)](_0x2c50aa[_0x57bac0(0x10f)]):_0x2c50aa['zYfbv'](getPlatformVersion,_0x2c50aa[_0x57bac0(0x105)](global[_0x57bac0(0xe6)],_0x2c50aa[_0x57bac0(0x102)])),'browser':_0x2de497['getBrowserName'](),'browser_version':_0x2de497[_0x57bac0(0xf4)](),'session_id':_0x1e218f[_0x57bac0(0x124)]()};global[_0x57bac0(0xe6)]?_0x233134[global[_0x57bac0(0xe6)]]=_0x511616:_0x233134[_0x2c50aa[_0x57bac0(0x113)]]=_0x511616,process[_0x57bac0(0xea)](_0x57bac0(0xf3)+process[_0x57bac0(0xd8)],{'timestamp':new Date()[_0x57bac0(0x10a)](),'level':null,'message':null,'kind':_0x2c50aa[_0x57bac0(0xf6)],'http_response':_0x233134,'uuid':_0x2fc929});}catch(_0x5c0025){_0x2c50aa[_0x57bac0(0x108)](debug,_0x57bac0(0x125)+_0x5c0025);}},exports['getHookSkippedTests']=_0x5e7aac=>{const _0x108a36=a31_0x12a5dd,_0x3773da={};_0x3773da['IppXG']=function(_0x3f6225,_0x1b2524){return _0x3f6225!==_0x1b2524;},_0x3773da[_0x108a36(0x11a)]=_0x108a36(0x115),_0x3773da['qDlUa']=function(_0x4c97de,_0xc12615){return _0x4c97de!==_0xc12615;},_0x3773da['AdAjJ']=_0x108a36(0x12c),_0x3773da['oYjIM']=_0x108a36(0x117);const _0x45aaff=_0x3773da,_0x1e9de9=_0x5e7aac[_0x108a36(0xe9)]['reduce']((_0x50fcb8,_0x25a247)=>{const _0xc5c951=_0x108a36,_0x2ba3eb=exports[_0xc5c951(0xe2)](_0x25a247);return _0x2ba3eb&&(_0x50fcb8=_0x50fcb8[_0xc5c951(0x129)](_0x2ba3eb)),_0x50fcb8;},[]),_0x4c5526=_0x5e7aac[_0x108a36(0x11d)][_0x108a36(0xec)](_0x199a3e=>{const _0x469beb=_0x108a36,_0x36c006=_0x45aaff[_0x469beb(0xfd)](_0x199a3e[_0x469beb(0xf8)],_0x45aaff[_0x469beb(0x11a)])&&!_0x199a3e['markedStatus']&&_0x45aaff[_0x469beb(0x126)](_0x199a3e[_0x469beb(0x119)],_0x45aaff['AdAjJ'])&&_0x45aaff[_0x469beb(0x126)](_0x199a3e[_0x469beb(0x119)],_0x45aaff[_0x469beb(0x10e)])&&!_0x199a3e[_0x469beb(0x109)];return _0x36c006;});return _0x4c5526[_0x108a36(0x129)](_0x1e9de9);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a32_0xe504(_0x48b672,_0x544a1b){const _0x5a5129=a32_0x5a51();return a32_0xe504=function(_0xe50410,_0x34dd48){_0xe50410=_0xe50410-0xe5;let _0x38adbb=_0x5a5129[_0xe50410];return _0x38adbb;},a32_0xe504(_0x48b672,_0x544a1b);}function a32_0x5a51(){const _0x4de96b=['bnsvo','115518KsmdHh','error','thTestRunUuid','../../helpers/helper','passed','lvCOu','err','4KXaHgB','PERFORM_SCAN','performScan','http:','Performing\x20scan\x20before\x20saving\x20results','5179188fYwayP','thBuildUuid','Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20',',\x22level\x22:\x20\x22','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','cVYbJ','isAccessibilityPlatform','gMdVx','444536wgLTPA','\x20|\x20','lAiXH','sessionName','awmjs','shouldScanTestForAccessibility','app','BCrti','Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20','then','CJVrB','RKISZ','beforeAll','ObservabilitySync:','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','juaXM','ENV_VAR','join','203lOruKa','failed','__error_messages__','ufTkU','isArray','\x20-\x20','__skipSessionName','GOLFs','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','Failed:\x20','afterAll','sdQJy','SYNC','../../helpers/testhub/utils','SESSION_NAME','81PBCyiH','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','thJwtToken','startMonitoring','executeAsyncScript','vrRbc','bTLgx','xgIgc','zEuzz','start','sYQUR','Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20','XgXLi','WprAi','winstonLogger','percyCaptureMode','./test-observability/mochaUtils','../../helpers/performance/performance-tester','stringify','Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20','titlePath','FDfMf','pNGVM','https:','BROWSERSTACK_TESTHUB_UUID','rfzwN','push','ejmyz','timeout','afterTest','capabilities','UojyA','WGNbU','Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20','FmRyU','.\x20Error\x20:','gFrfZ','afterEach','length','mrBwZ','../../helpers/percy/utils','mochaHooks','gDYNM','getCurrentUrl','__sessionFailed','vDxUG','PJqBr','SmikL','spbJY','__platformCaps','SAVE_RESULTS','VuyYu','FavRy','dHmUK','SESSION_STATUS','beforeEach','getGlobal','xFIRk','testAnalyticsId','executeScript','browserstackSessionName','initQuit','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','821844flUHtD','end','driverCleanup','jzFZi','now','protocol','xaiaX','percy','27082935MGdvnf','MvEUQ','KzwGu','DAjiy','../../helpers/performance/constants','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','ujqXe','QAoDi','gGjXE','sessionNameSet__','message','bstackA11yShouldScan','measureWrapper','PYUYt','509485YjjPDL','PdvGn','XvFHO','IrKzT','usptV','testcase','debug','format','setGlobal','accessibilityScanStarted','session_','util','index','932190gfvJIE','WOBtd','\x22}}','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','quitCount_','NeWOh','command','SDK_HOOK','yCFKF','../../helpers/testhub/constants','finally','rqhJu','UtZsG','18YdamCP','info','cdhvV','currentTest','browserstackTestName','KdpAB','tVhjJ','grUlG','__drivers','env'];a32_0x5a51=function(){return _0x4de96b;};return a32_0x5a51();}const a32_0x1f79fa=a32_0xe504;(function(_0x567b45,_0x2151a6){const _0x401422=a32_0xe504,_0x1def07=_0x567b45();while(!![]){try{const _0x3e5443=-parseInt(_0x401422(0xf3))/0x1+parseInt(_0x401422(0x12e))/0x2*(parseInt(_0x401422(0x164))/0x3)+-parseInt(_0x401422(0x135))/0x4*(parseInt(_0x401422(0x109))/0x5)+parseInt(_0x401422(0x13a))/0x6+parseInt(_0x401422(0x154))/0x7*(parseInt(_0x401422(0x142))/0x8)+-parseInt(_0x401422(0x123))/0x9*(-parseInt(_0x401422(0x116))/0xa)+-parseInt(_0x401422(0xfb))/0xb;if(_0x3e5443===_0x2151a6)break;else _0x1def07['push'](_0x1def07['shift']());}catch(_0x588cd2){_0x1def07['push'](_0x1def07['shift']());}}}(a32_0x5a51,0xcbcba));const util=require(a32_0x1f79fa(0x114)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require('../../helpers/accessibility-automation/helper'),{percyAutoCapture}=require(a32_0x1f79fa(0x18c)),{sendPlatformDetails}=require(a32_0x1f79fa(0x174)),{isBrowserstackInfra,markSessionStatus,nestedKeyValue}=require(a32_0x1f79fa(0x131)),PerformanceTester=require(a32_0x1f79fa(0x175)),{AUTOMATE_EVENTS:PerformanceAutEvents,O11y_EVENTS:PerformanceO11yEvents,A11Y_EVENTS:PerformanceA11yEvents,EVENTS:PerformanceSdkEvents}=require(a32_0x1f79fa(0xff)),scripts=require('../../helpers/accessibility-automation/scripts'),globals=require('../../helpers/globals'),logger=require('../../helpers/logger')[a32_0x1f79fa(0x172)],{shouldProcessEventForTesthub}=require(a32_0x1f79fa(0x162)),testHubConstants=require(a32_0x1f79fa(0x11f));exports[a32_0x1f79fa(0x18d)]={'beforeAll'(){const _0x16988f=a32_0x1f79fa,_0x2cfdca={'bnsvo':function(_0x532abb,_0x2b4373,_0x4121e4,_0x2c4cd8){return _0x532abb(_0x2b4373,_0x4121e4,_0x2c4cd8);},'WprAi':_0x16988f(0x155),'gFrfZ':_0x16988f(0x143),'GOLFs':function(_0x45d583,_0x5bc800,_0x314701){return _0x45d583(_0x5bc800,_0x314701);},'rWFMC':_0x16988f(0x132),'PYUYt':function(_0x5104d1){return _0x5104d1();},'PJqBr':function(_0x5a1804,_0x322baa,_0xc28d6e){return _0x5a1804(_0x322baa,_0xc28d6e);},'yhXIT':_0x16988f(0x115),'bTLgx':_0x16988f(0x14e)};PerformanceTester[_0x16988f(0x167)]();const _0x12c8c1='browserstack internal helper hook';PerformanceTester[_0x16988f(0x107)](PerformanceSdkEvents[_0x16988f(0x11d)],()=>{const _0x3c8548=_0x16988f,_0x2d4f0d={'JOYQF':function(_0x7ec96e,_0x3c363c,_0x416736,_0x3134de){const _0x6080dc=a32_0xe504;return _0x2cfdca[_0x6080dc(0x12d)](_0x7ec96e,_0x3c363c,_0x416736,_0x3134de);},'VuyYu':_0x2cfdca[_0x3c8548(0x171)],'XgXLi':_0x2cfdca[_0x3c8548(0x188)],'vDxUG':function(_0x20c2ff,_0x1afd7c,_0x4d4a0a){const _0x35b92e=_0x3c8548;return _0x2cfdca[_0x35b92e(0x15b)](_0x20c2ff,_0x1afd7c,_0x4d4a0a);},'juaXM':_0x2cfdca['rWFMC'],'yCFKF':function(_0x3e90ea){const _0x423183=_0x3c8548;return _0x2cfdca[_0x423183(0x108)](_0x3e90ea);},'XvFHO':function(_0x5426f3,_0x5e6e9c,_0x400eab){return _0x2cfdca['GOLFs'](_0x5426f3,_0x5e6e9c,_0x400eab);}};global[_0x3c8548(0x156)]=[],global['__sessionFailed']=![],global[_0x3c8548(0xf5)]=async()=>{const _0x5d0042=_0x3c8548;let _0x148eec=![];try{await global['__drivers'][0x0][_0x5d0042(0x113)],_0x148eec=!![],global[_0x5d0042(0x190)]?await _0x2d4f0d['JOYQF'](markSessionStatus,global[_0x5d0042(0x12b)][0x0],_0x2d4f0d[_0x5d0042(0xe7)],global[_0x5d0042(0x156)][_0x5d0042(0x153)](_0x2d4f0d[_0x5d0042(0x170)])):await _0x2d4f0d[_0x5d0042(0x191)](markSessionStatus,global['__drivers'][0x0],_0x2d4f0d[_0x5d0042(0x151)]);}catch(_0x4a32ba){logger[_0x5d0042(0x10f)](_0x5d0042(0x16f)+_0x4a32ba);}global['__error_messages__']=[],global[_0x5d0042(0x190)]=![];if(_0x148eec)try{try{_0x2d4f0d[_0x5d0042(0x11e)](shouldProcessEventForTesthub)&&(global[_0x5d0042(0x12b)][0x0]&&await _0x2d4f0d[_0x5d0042(0x10b)](sendPlatformDetails,global[_0x5d0042(0x12b)][0x0],this[_0x5d0042(0x126)]?this[_0x5d0042(0x126)]['testAnalyticsId']:null));}catch(_0x5abde1){logger[_0x5d0042(0x10f)](_0x5d0042(0x13c)+_0x5abde1);}await global[_0x5d0042(0x12b)][0x0][_0x5d0042(0xf1)]();}catch(_0x12b8a9){logger['debug'](_0x5d0042(0x150)+_0x12b8a9);}};},{'platform':_0x2cfdca[_0x16988f(0x192)](nestedKeyValue,global['__platformCaps'],[_0x2cfdca['yhXIT']]),'hookType':_0x2cfdca[_0x16988f(0x16a)]})();},'beforeEach'(_0x36b691){const _0x14daec=a32_0x1f79fa,_0x2f5219={'zTFba':function(_0x4b4374,_0x4da47e){return _0x4b4374>_0x4da47e;},'NeWOh':function(_0x13fec9,_0x2aebdf){return _0x13fec9>_0x2aebdf;},'dHmUK':_0x14daec(0x159),'FmRyU':function(_0x3b0ac6,_0x19851b,_0x1b4b1a){return _0x3b0ac6(_0x19851b,_0x1b4b1a);},'ujqXe':_0x14daec(0x106),'sdQJy':function(_0x34155a){return _0x34155a();},'FavRy':function(_0x1a6038,_0x4255c7){return _0x1a6038>_0x4255c7;},'zEuzz':_0x14daec(0x140),'pNGVM':function(_0x1432ff,_0x11bf07){return _0x1432ff===_0x11bf07;},'bjViR':_0x14daec(0x138),'xgIgc':function(_0x4758db,_0x338bd4){return _0x4758db===_0x338bd4;},'gGjXE':_0x14daec(0x17b),'xaiaX':_0x14daec(0x119),'hSGHd':'Automate\x20test\x20case\x20execution\x20has\x20started.','xFIRk':_0x14daec(0x127),'CfonJ':_0x14daec(0x115),'spbJY':_0x14daec(0xeb)};globals['setGlobal'](_0x2f5219[_0x14daec(0xed)],this[_0x14daec(0x126)][_0x14daec(0x178)]()[_0x14daec(0x153)](_0x2f5219[_0x14daec(0xe9)])),PerformanceTester[_0x14daec(0x107)](PerformanceSdkEvents[_0x14daec(0x11d)],()=>{const _0xdd065e=_0x14daec,_0x21ed44={'awmjs':function(_0x436757){const _0x6e7f37=a32_0xe504;return _0x2f5219[_0x6e7f37(0x160)](_0x436757);}},_0x1f6a90='browserstack internal helper hook';new Promise(async _0x1fa3c2=>{const _0x2f66bf=a32_0xe504;let _0x2f06e1=!![];try{_0x2f5219['zTFba'](global[_0x2f66bf(0x12b)]['length'],0x1)&&(await global[_0x2f66bf(0xf5)](),global[_0x2f66bf(0x12b)]['shift']()),_0x2f5219[_0x2f66bf(0x11b)](global[_0x2f66bf(0x12b)][0x0][_0x2f66bf(0x11a)],0x0)&&(_0x2f06e1=![],await global[_0x2f66bf(0xf5)]());}catch(_0x4f5b17){logger['debug'](_0x2f66bf(0x150)+_0x4f5b17);}try{Array[_0x2f66bf(0x158)](global[_0x2f66bf(0x12b)])&&global[_0x2f66bf(0x12b)][0x0]&&(global['__drivers'][0x0]['browserstackSessionName']=this[_0x2f66bf(0x126)][_0x2f66bf(0x178)]()['join'](_0x2f5219[_0x2f66bf(0xe9)])),global['browserstackSessionName']=this[_0x2f66bf(0x126)][_0x2f66bf(0x178)]()[_0x2f66bf(0x153)](_0x2f5219[_0x2f66bf(0xe9)]);}catch(_0x5b0092){logger[_0x2f66bf(0x10f)]('Failed\x20to\x20store\x20session\x20name:\x20'+_0x5b0092);}this['currentTest'][_0x2f66bf(0x147)]=_0x2f5219['FmRyU'](shouldScanTestForAccessibility,this[_0x2f66bf(0x126)][_0x2f66bf(0x178)](),!![]),globals[_0x2f66bf(0x111)](_0x2f5219[_0x2f66bf(0x101)],this[_0x2f66bf(0x126)][_0x2f66bf(0x147)]),this['currentTest'][_0x2f66bf(0x112)]=!![];if(_0x2f5219[_0x2f66bf(0x160)](isAccessibilityAutomationSession)&&_0x2f06e1&&Array[_0x2f66bf(0x158)](global[_0x2f66bf(0x12b)])&&_0x2f5219[_0x2f66bf(0xe8)](global['__drivers'][_0x2f66bf(0x18a)],0x0)&&globals['getGlobal'](_0x2f5219[_0x2f66bf(0x16c)]))try{const _0x4eb341=await global[_0x2f66bf(0x12b)][0x0][_0x2f66bf(0x113)];if(_0x4eb341){let _0x54e8b7=!![];const _0x54d415=await global['__drivers'][0x0][_0x2f66bf(0x18f)]();let _0x254c96;try{_0x254c96=new URL(_0x54d415);}catch(_0x2ca87e){_0x54e8b7=![];}_0x54e8b7=_0x2f5219[_0x2f66bf(0x17a)](_0x254c96[_0x2f66bf(0xf8)],_0x2f5219['bjViR'])||_0x2f5219[_0x2f66bf(0x16b)](_0x254c96['protocol'],_0x2f5219[_0x2f66bf(0x103)]),_0x54e8b7&&(this[_0x2f66bf(0x126)][_0x2f66bf(0x147)]&&logger['info'](_0x2f5219[_0x2f66bf(0xf9)])),this['currentTest'][_0x2f66bf(0x112)]=this[_0x2f66bf(0x126)][_0x2f66bf(0x147)],this[_0x2f66bf(0x126)][_0x2f66bf(0x147)]&&logger[_0x2f66bf(0x124)](_0x2f5219['hSGHd']);}}catch(_0x120caf){logger[_0x2f66bf(0x12f)](_0x2f66bf(0x15d)+util['format'](_0x120caf));}_0x2f5219['sdQJy'](_0x1fa3c2);})[_0xdd065e(0x14b)](()=>{const _0x412301=_0xdd065e;_0x21ed44[_0x412301(0x146)](_0x36b691);});},{'platform':_0x2f5219[_0x14daec(0x186)](nestedKeyValue,global['__platformCaps'],[_0x2f5219['CfonJ']]),'hookType':_0x2f5219[_0x14daec(0x194)]})();},'afterEach'(_0x4e6d0f){const _0x237d0c=a32_0x1f79fa,_0x9fc301={'grUlG':function(_0x92dd38,_0x5d9349){return _0x92dd38>_0x5d9349;},'WOBtd':function(_0x2eb286,_0x3fdd18){return _0x2eb286===_0x3fdd18;},'jzFZi':_0x237d0c(0x10e),'bWoLc':'appium:app','mrBwZ':function(_0x559967,_0xcefcc6,_0x2977e4,_0x9cab16){return _0x559967(_0xcefcc6,_0x2977e4,_0x9cab16);},'KdpAB':'isAccessibilityPlatform','tVhjJ':_0x237d0c(0x106),'PdvGn':_0x237d0c(0xf2),'FDfMf':_0x237d0c(0x139),'QAoDi':_0x237d0c(0x181),'sYQUR':_0x237d0c(0x15c),'DAjiy':function(_0xafd7){return _0xafd7();},'cdhvV':function(_0x1a816f,_0x195b1a,_0x3a2c03){return _0x1a816f(_0x195b1a,_0x3a2c03);},'UtZsG':function(_0x4e7b31){return _0x4e7b31();},'gMdVx':_0x237d0c(0x10f),'vrRbc':function(_0x208c70){return _0x208c70();},'UojyA':_0x237d0c(0x159),'KzwGu':function(_0x1422af,_0x6091e0){return _0x1422af!==_0x6091e0;},'uFFTx':_0x237d0c(0x132),'cVYbJ':function(_0x19587d,_0x192383,_0x15378c){return _0x19587d(_0x192383,_0x15378c);},'zlXKA':function(_0x5f414f,_0x219257){return _0x5f414f+_0x219257;},'gDYNM':_0x237d0c(0x15e),'ejmyz':_0x237d0c(0x12f),'mBIll':function(_0x176a8f,_0x261d91,_0xa0aaaa){return _0x176a8f(_0x261d91,_0xa0aaaa);},'rfzwN':'Passed','WGNbU':_0x237d0c(0x124),'kSyMb':function(_0x58fc99,_0x3d6237,_0xfc5fd){return _0x58fc99(_0x3d6237,_0xfc5fd);},'RKISZ':_0x237d0c(0x115),'ufTkU':_0x237d0c(0x189)},_0x225c9f='browserstack internal helper hook';this[_0x237d0c(0x180)](0xfde8),global[_0x237d0c(0x145)]=this[_0x237d0c(0x126)][_0x237d0c(0x178)]()[_0x237d0c(0x153)](_0x9fc301[_0x237d0c(0x183)]),PerformanceTester[_0x237d0c(0x107)](PerformanceSdkEvents[_0x237d0c(0x11d)],()=>{const _0x2a9b41=_0x237d0c,_0x5dc59b={'dNCZb':_0x9fc301[_0x2a9b41(0x183)],'lAiXH':function(_0x5848ff,_0x5def12){const _0x4fd622=_0x2a9b41;return _0x9fc301[_0x4fd622(0xfd)](_0x5848ff,_0x5def12);},'SmikL':_0x9fc301['uFFTx'],'rqhJu':function(_0x195d77,_0x5d03e5,_0x3ac516){const _0x282da7=_0x2a9b41;return _0x9fc301[_0x282da7(0x13f)](_0x195d77,_0x5d03e5,_0x3ac516);},'CJVrB':function(_0x2987e9,_0x1b0260){return _0x9fc301['zlXKA'](_0x2987e9,_0x1b0260);},'IobNk':_0x9fc301[_0x2a9b41(0x18e)],'MvEUQ':_0x9fc301[_0x2a9b41(0x17f)],'TvxlP':function(_0x588308,_0x12ec75,_0x5d7767){return _0x9fc301['mBIll'](_0x588308,_0x12ec75,_0x5d7767);},'BCrti':_0x9fc301[_0x2a9b41(0x17d)],'hFVfc':_0x9fc301[_0x2a9b41(0x184)]},_0x5b0c92=async(_0x15f82d,_0x5634ee)=>{const _0x53f386=_0x2a9b41;await global[_0x53f386(0x12b)][0x0][_0x53f386(0xef)]('browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:'+_0x15f82d+_0x53f386(0x13d)+_0x5634ee+_0x53f386(0x118));};new Promise(async _0x57cccf=>{const _0x44f32f=_0x2a9b41;try{_0x9fc301[_0x44f32f(0x12a)](global[_0x44f32f(0x12b)]['length'],0x1)&&(await global[_0x44f32f(0xf5)](),global[_0x44f32f(0x12b)]['shift'](),global[_0x44f32f(0x156)]=[],global[_0x44f32f(0x190)]=![]);try{if(global[_0x44f32f(0xfa)]&&_0x9fc301[_0x44f32f(0x117)](global[_0x44f32f(0x173)],_0x9fc301['jzFZi'])&&global[_0x44f32f(0x12b)][0x0]){const _0x2015bd=_0x9fc301[_0x44f32f(0x12a)](global[_0x44f32f(0x182)][_0x44f32f(0x18a)],0x0)?!!global['capabilities'][0x0][_0x44f32f(0x148)]||!!global['capabilities'][0x0][_0x9fc301['bWoLc']]:![],_0x183fc0={};_0x183fc0[_0x44f32f(0x148)]=_0x2015bd,await _0x9fc301[_0x44f32f(0x18b)](percyAutoCapture,global[_0x44f32f(0x12b)][0x0],_0x9fc301[_0x44f32f(0xf6)],_0x183fc0);}}catch(_0x2ceb29){logger[_0x44f32f(0x10f)](_0x44f32f(0x177)+_0x2ceb29);}!global[_0x44f32f(0x15a)]&&(await PerformanceTester[_0x44f32f(0x107)](PerformanceAutEvents[_0x44f32f(0x163)],async()=>{const _0x153f83=_0x44f32f;await global['__drivers'][0x0][_0x153f83(0xef)](_0x153f83(0x13e)+JSON[_0x153f83(0x176)](this[_0x153f83(0x126)][_0x153f83(0x178)]()[_0x153f83(0x153)](_0x5dc59b['dNCZb']))+'}}');})(),global['__drivers'][0x0][_0x44f32f(0x104)]=!![]),await PerformanceTester[_0x44f32f(0x107)](PerformanceAutEvents[_0x44f32f(0xea)],async()=>{const _0x446476=_0x44f32f,_0x2541be=_0x5dc59b[_0x446476(0x144)](this[_0x446476(0x126)]['state'],_0x5dc59b[_0x446476(0x193)]);_0x2541be?(global['__sessionFailed']=!![],global[_0x446476(0x156)][_0x446476(0x17e)](this[_0x446476(0x126)][_0x446476(0x134)][_0x446476(0x105)]),await _0x5dc59b[_0x446476(0x121)](_0x5b0c92,JSON[_0x446476(0x176)](_0x5dc59b[_0x446476(0x14c)](_0x5dc59b['IobNk'],this['currentTest']['err'][_0x446476(0x105)])),_0x5dc59b[_0x446476(0xfc)])):await _0x5dc59b['TvxlP'](_0x5b0c92,JSON[_0x446476(0x176)](_0x5dc59b[_0x446476(0x149)]),_0x5dc59b['hFVfc']);})();}catch(_0xf66550){logger[_0x44f32f(0x10f)](_0x44f32f(0x185)+_0xf66550);}try{if(this[_0x44f32f(0x126)][_0x44f32f(0x112)]&&globals[_0x44f32f(0xec)](_0x9fc301[_0x44f32f(0x128)])&&globals[_0x44f32f(0xec)](_0x9fc301[_0x44f32f(0x129)])){logger[_0x44f32f(0x124)](_0x9fc301[_0x44f32f(0x10a)]);const _0x333683={};_0x333683[_0x44f32f(0x130)]=this[_0x44f32f(0x126)][_0x44f32f(0xee)],_0x333683[_0x44f32f(0x13b)]=process[_0x44f32f(0x12c)][testHubConstants[_0x44f32f(0x152)][_0x44f32f(0x17c)]],_0x333683[_0x44f32f(0x166)]=process[_0x44f32f(0x12c)][testHubConstants['ENV_VAR']['BROWSERSTACK_TESTHUB_JWT']];const _0x2d2713=_0x333683;logger[_0x44f32f(0x10f)](_0x44f32f(0x100)+JSON[_0x44f32f(0x176)](_0x2d2713)),logger[_0x44f32f(0x10f)](_0x9fc301[_0x44f32f(0x179)]);const _0x187fb8={};_0x187fb8[_0x44f32f(0x11c)]=_0x9fc301[_0x44f32f(0x102)],await PerformanceTester['measureWrapper'](PerformanceA11yEvents[_0x44f32f(0x136)],async()=>{const _0x3b57f7=_0x44f32f;logger['debug'](util[_0x3b57f7(0x110)](await global[_0x3b57f7(0x12b)][0x0][_0x3b57f7(0x168)](scripts[_0x3b57f7(0x137)],{'method':global[_0x3b57f7(0xf0)]})));},_0x187fb8)(),await PerformanceTester[_0x44f32f(0x107)](PerformanceA11yEvents[_0x44f32f(0xe6)],async()=>{const _0x3999e4=_0x44f32f;await global[_0x3999e4(0x12b)][0x0][_0x3999e4(0x168)](scripts['saveTestResults'],_0x2d2713);})(),logger[_0x44f32f(0x124)](_0x9fc301[_0x44f32f(0x16e)]);}}catch(_0x4406bb){logger[_0x44f32f(0x12f)](_0x44f32f(0x165)+this['currentTest'][_0x44f32f(0x178)]()+_0x44f32f(0x187),_0x4406bb);}try{try{if(_0x9fc301[_0x44f32f(0xfe)](shouldProcessEventForTesthub)){global[_0x44f32f(0x12b)][0x0]&&await _0x9fc301['cdhvV'](sendPlatformDetails,global['__drivers'][0x0],this[_0x44f32f(0x126)]?this[_0x44f32f(0x126)]['testAnalyticsId']:null);if(_0x9fc301[_0x44f32f(0x122)](isBrowserstackInfra)){PerformanceTester[_0x44f32f(0x16d)](PerformanceO11yEvents[_0x44f32f(0x161)]);const _0x3a3987=_0x44f32f(0x14f)+Date[_0x44f32f(0xf7)]();await _0x9fc301[_0x44f32f(0x125)](_0x5b0c92,JSON[_0x44f32f(0x176)](_0x3a3987),_0x9fc301[_0x44f32f(0x141)]),PerformanceTester[_0x44f32f(0xf4)](PerformanceO11yEvents['SYNC']);}}}catch(_0x36996e){logger['debug'](_0x44f32f(0x14a)+_0x36996e),PerformanceTester['end'](PerformanceO11yEvents['SYNC'],![],_0x36996e);}_0x9fc301[_0x44f32f(0x12a)](global[_0x44f32f(0x12b)][0x0][_0x44f32f(0x11a)],0x0)&&await global[_0x44f32f(0xf5)]();}catch(_0x5c54bf){logger[_0x44f32f(0x10f)](_0x44f32f(0x150)+_0x5c54bf);}_0x9fc301['UtZsG'](_0x57cccf);})[_0x2a9b41(0x14b)](()=>{const _0x532ad3=_0x2a9b41;_0x9fc301[_0x532ad3(0x169)](_0x4e6d0f);});},{'platform':_0x9fc301['kSyMb'](nestedKeyValue,global[_0x237d0c(0xe5)],[_0x9fc301[_0x237d0c(0x14d)]]),'hookType':_0x9fc301[_0x237d0c(0x157)]})();},'afterAll'(_0x1eae9b){const _0x59226e=a32_0x1f79fa,_0x2e8690={'usptV':function(_0x58ce80){return _0x58ce80();},'lvCOu':function(_0x18e6fa,_0x59aad6,_0x36bffe){return _0x18e6fa(_0x59aad6,_0x36bffe);},'picZb':_0x59226e(0x115),'IrKzT':_0x59226e(0x15f)},_0x3b1e2c='browserstack internal helper hook';this[_0x59226e(0x180)](0xfde8),PerformanceTester[_0x59226e(0x107)](PerformanceSdkEvents['SDK_HOOK'],()=>{const _0xf2d0cc=_0x59226e;new Promise(async _0x17c65e=>{const _0xd1d5f5=a32_0xe504;await global[_0xd1d5f5(0xf5)](),_0x2e8690[_0xd1d5f5(0x10d)](_0x17c65e);})[_0xf2d0cc(0x14b)]()[_0xf2d0cc(0x120)](()=>{_0x2e8690['usptV'](_0x1eae9b);});},{'platform':_0x2e8690[_0x59226e(0x133)](nestedKeyValue,global[_0x59226e(0xe5)],[_0x2e8690['picZb']]),'hookType':_0x2e8690[_0x59226e(0x10c)]})();}};
|
|
1
|
+
const a32_0x482436=a32_0x1c90;(function(_0x4f587c,_0x1ff382){const _0x1af31f=a32_0x1c90,_0x5f3073=_0x4f587c();while(!![]){try{const _0x2f0b28=-parseInt(_0x1af31f(0x13e))/0x1+parseInt(_0x1af31f(0xd6))/0x2+-parseInt(_0x1af31f(0xeb))/0x3*(parseInt(_0x1af31f(0x14e))/0x4)+parseInt(_0x1af31f(0xd4))/0x5+parseInt(_0x1af31f(0xea))/0x6*(-parseInt(_0x1af31f(0x12e))/0x7)+parseInt(_0x1af31f(0xc7))/0x8*(parseInt(_0x1af31f(0x11d))/0x9)+-parseInt(_0x1af31f(0xca))/0xa;if(_0x2f0b28===_0x1ff382)break;else _0x5f3073['push'](_0x5f3073['shift']());}catch(_0x2b6784){_0x5f3073['push'](_0x5f3073['shift']());}}}(a32_0x21ed,0x3b15f));const util=require('util'),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a32_0x482436(0x108)),{percyAutoCapture}=require('../../helpers/percy/utils'),{sendPlatformDetails}=require('./test-observability/mochaUtils'),{isBrowserstackInfra,markSessionStatus,nestedKeyValue}=require(a32_0x482436(0xcd)),PerformanceTester=require(a32_0x482436(0x14a)),{AUTOMATE_EVENTS:PerformanceAutEvents,O11y_EVENTS:PerformanceO11yEvents,A11Y_EVENTS:PerformanceA11yEvents,EVENTS:PerformanceSdkEvents}=require(a32_0x482436(0x12b)),scripts=require(a32_0x482436(0x122)),globals=require('../../helpers/globals'),logger=require(a32_0x482436(0x11e))['winstonLogger'],{shouldProcessEventForTesthub}=require('../../helpers/testhub/utils'),testHubConstants=require(a32_0x482436(0x10b));function a32_0x21ed(){const _0x326a34=['TxZEn','\x22}}','../../helpers/helper','lIupy','FeEGr','ENV_VAR','afterTest','index','whQyC','1350735PsRElG','appium:app','871500QaWwRE','ABKia','UjWBE','__error_messages__','accessibilityScanStarted','env','rjnbR','driverCleanup','JFWiB','quitCount_','IrHXx','initQuit','cwOVU','then','sessionName','AgjPt','xQAQp','vOZeb','browserstackTestName','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','66mwccrg','6054LFFovb','Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20','tisvA','rASpF','MsRAW','format','shift','https:','BROWSERSTACK_TESTHUB_JWT','QIKTO','jOPvo','executeScript','start','passed','app','QmvrB','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','percy','SYNC','QQsPw','capabilities','PeEbi','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20','mochaHooks','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','afterEach','../../helpers/accessibility-automation/helper','Performing\x20scan\x20before\x20saving\x20results','IZzMo','../../helpers/testhub/constants','lqkTH','RWTWx','Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20','testAnalyticsId','Failed:\x20','cKeES','BOEtF','protocol','info','uksko','Automate\x20test\x20case\x20execution\x20has\x20started.','debug','nLsIA','JPRro','pPQwy','GOHVf','EdpoC','1796463zVBLLg','../../helpers/logger','gdPgK','Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20','zRNZX','../../helpers/accessibility-automation/scripts','error','message','executeAsyncScript','FTVEU','lzhIi','Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20','SESSION_NAME','XoIiy','../../helpers/performance/constants','xSrUo','beforeEach','285761jYNXbe','hHkPt','__platformCaps','wnFGT','__drivers','Failed\x20to\x20store\x20session\x20name:\x20','WLQuq','__sessionFailed','http:','EjgoV','tnvpg','SDK_HOOK','OxPrU','currentTest','thBuildUuid','isAccessibilityPlatform','218746ozINki','rKjjn','mhVey','thHBa','Passed','dpvxc','length','push','UOPAv','startMonitoring','percyCaptureMode','beforeAll','../../helpers/performance/performance-tester','getGlobal','SAVE_RESULTS','measureWrapper','172MFOVOa','setGlobal','AAmLx','hbeZn','YCsdP','now','saveTestResults','Qoflw','WOABP','JAPTK','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','bstackA11yShouldScan','PERFORM_SCAN','aGzBI','.\x20Error\x20:','isArray','ovjcL','jHSKr','finally','join','\x20|\x20','shouldScanTestForAccessibility','yvGtX','session_','\x20-\x20','browserstackSessionName','neOMu','ObservabilitySync:','titlePath','LXzzK','thTestRunUuid','stringify','thJwtToken','16UDQZhy','sessionNameSet__','LwFmN','1085230uApPwL'];a32_0x21ed=function(){return _0x326a34;};return a32_0x21ed();}function a32_0x1c90(_0x289b46,_0x2ffd28){const _0x21ede6=a32_0x21ed();return a32_0x1c90=function(_0x1c9002,_0x3ecb8c){_0x1c9002=_0x1c9002-0xc2;let _0x963ec8=_0x21ede6[_0x1c9002];return _0x963ec8;},a32_0x1c90(_0x289b46,_0x2ffd28);}exports[a32_0x482436(0x103)]={'beforeAll'(){const _0x115f3d=a32_0x482436,_0x258d30={'nLsIA':function(_0x3628f2,_0x18406a,_0x1a3d6f,_0x3d20b4){return _0x3628f2(_0x18406a,_0x1a3d6f,_0x3d20b4);},'EikcY':'failed','jOPvo':_0x115f3d(0x162),'WQAcs':function(_0x4a7b64,_0x676a96,_0x45ab39){return _0x4a7b64(_0x676a96,_0x45ab39);},'WOABP':_0x115f3d(0xf8),'hHkPt':function(_0x5f3247){return _0x5f3247();},'xQAQp':_0x115f3d(0xd2),'xQLCc':_0x115f3d(0x149)};PerformanceTester[_0x115f3d(0x147)]();const _0x48ae5f='browserstack internal helper hook';PerformanceTester['measureWrapper'](PerformanceSdkEvents['SDK_HOOK'],()=>{const _0x7682e2=_0x115f3d,_0x3ffcde={'nskie':function(_0x2be9b3,_0x212e6e,_0x178c85,_0x308ef7){const _0x533199=a32_0x1c90;return _0x258d30[_0x533199(0x118)](_0x2be9b3,_0x212e6e,_0x178c85,_0x308ef7);},'ovjcL':_0x258d30['EikcY'],'lzhIi':_0x258d30[_0x7682e2(0xf5)],'LwFmN':function(_0x52c837,_0x34929e,_0x585b85){return _0x258d30['WQAcs'](_0x52c837,_0x34929e,_0x585b85);},'JPRro':_0x258d30[_0x7682e2(0x156)],'vOXVG':function(_0x1ddf6c){const _0x26424b=_0x7682e2;return _0x258d30[_0x26424b(0x12f)](_0x1ddf6c);}};global[_0x7682e2(0xd9)]=[],global['__sessionFailed']=![],global['driverCleanup']=async()=>{const _0x2bcd84=_0x7682e2;let _0x1f8a4b=![];try{await global[_0x2bcd84(0x132)][0x0][_0x2bcd84(0x165)],_0x1f8a4b=!![],global['__sessionFailed']?await _0x3ffcde['nskie'](markSessionStatus,global['__drivers'][0x0],_0x3ffcde[_0x2bcd84(0x15e)],global['__error_messages__'][_0x2bcd84(0x161)](_0x3ffcde[_0x2bcd84(0x127)])):await _0x3ffcde['LwFmN'](markSessionStatus,global['__drivers'][0x0],_0x3ffcde[_0x2bcd84(0x119)]);}catch(_0x22a551){logger['debug'](_0x2bcd84(0x120)+_0x22a551);}global['__error_messages__']=[],global[_0x2bcd84(0x135)]=![];if(_0x1f8a4b)try{try{_0x3ffcde['vOXVG'](shouldProcessEventForTesthub)&&(global['__drivers'][0x0]&&await _0x3ffcde[_0x2bcd84(0xc9)](sendPlatformDetails,global[_0x2bcd84(0x132)][0x0],this[_0x2bcd84(0x13b)]?this[_0x2bcd84(0x13b)][_0x2bcd84(0x10f)]:null));}catch(_0x3d6458){logger[_0x2bcd84(0x117)](_0x2bcd84(0xec)+_0x3d6458);}await global['__drivers'][0x0][_0x2bcd84(0xe1)]();}catch(_0x496caf){logger[_0x2bcd84(0x117)](_0x2bcd84(0x105)+_0x496caf);}};},{'platform':_0x258d30['WQAcs'](nestedKeyValue,global[_0x115f3d(0x130)],[_0x258d30[_0x115f3d(0xe6)]]),'hookType':_0x258d30['xQLCc']})();},'beforeEach'(_0x1251e2){const _0x80876c=a32_0x482436,_0x4bea16={'lIupy':function(_0x2b24c8){return _0x2b24c8();},'mhVey':function(_0x3072d4,_0xfbb2c9){return _0x3072d4>_0xfbb2c9;},'RWTWx':'\x20-\x20','CCujg':function(_0x3342cb,_0x212b84,_0x1f646d){return _0x3342cb(_0x212b84,_0x1f646d);},'YCsdP':_0x80876c(0x159),'dpvxc':function(_0x56ec31){return _0x56ec31();},'whQyC':_0x80876c(0x13d),'gdPgK':function(_0x3d43dc,_0x3ab7f5){return _0x3d43dc===_0x3ab7f5;},'neOMu':_0x80876c(0x136),'rXVoM':_0x80876c(0xf2),'ADqoW':_0x80876c(0x101),'hbeZn':_0x80876c(0x116),'vOZeb':_0x80876c(0xe8),'QJbOi':'index','zGtNH':_0x80876c(0x12d)};globals['setGlobal'](_0x4bea16[_0x80876c(0xe7)],this['currentTest'][_0x80876c(0xc2)]()[_0x80876c(0x161)](_0x4bea16[_0x80876c(0x10d)])),PerformanceTester[_0x80876c(0x14d)](PerformanceSdkEvents[_0x80876c(0x139)],()=>{const _0x190ae5=_0x80876c,_0x5badb9={'TxZEn':function(_0x14972f,_0x887004){const _0x375194=a32_0x1c90;return _0x4bea16[_0x375194(0x140)](_0x14972f,_0x887004);},'QIKTO':function(_0x12a5c2,_0x3b7d2e){return _0x4bea16['mhVey'](_0x12a5c2,_0x3b7d2e);},'rASpF':_0x4bea16[_0x190ae5(0x10d)],'IZzMo':function(_0x63da1e,_0x497757,_0x15e757){return _0x4bea16['CCujg'](_0x63da1e,_0x497757,_0x15e757);},'FTVEU':_0x4bea16[_0x190ae5(0x152)],'UOPAv':function(_0x50167e){const _0x409962=_0x190ae5;return _0x4bea16[_0x409962(0x143)](_0x50167e);},'UjWBE':function(_0x3aa30d,_0x3905a7){const _0x38ae02=_0x190ae5;return _0x4bea16[_0x38ae02(0x140)](_0x3aa30d,_0x3905a7);},'pPQwy':_0x4bea16[_0x190ae5(0xd3)],'xSrUo':function(_0x4e20a8,_0x1040ab){const _0x498a70=_0x190ae5;return _0x4bea16[_0x498a70(0x11f)](_0x4e20a8,_0x1040ab);},'ABKia':_0x4bea16[_0x190ae5(0x168)],'CmcCT':_0x4bea16['rXVoM'],'iXsGm':_0x4bea16['ADqoW'],'JAPTK':_0x4bea16[_0x190ae5(0x151)],'PeEbi':function(_0x335794){const _0x338869=_0x190ae5;return _0x4bea16[_0x338869(0xce)](_0x335794);}},_0x4bfb29='browserstack internal helper hook';new Promise(async _0x2e0af0=>{const _0x36c0e5=_0x190ae5;let _0x3a5b4a=!![];try{_0x5badb9[_0x36c0e5(0xcb)](global[_0x36c0e5(0x132)]['length'],0x1)&&(await global['driverCleanup'](),global['__drivers'][_0x36c0e5(0xf1)]()),_0x5badb9[_0x36c0e5(0xf4)](global['__drivers'][0x0]['quitCount_'],0x0)&&(_0x3a5b4a=![],await global[_0x36c0e5(0xdd)]());}catch(_0x54b22c){logger[_0x36c0e5(0x117)](_0x36c0e5(0x105)+_0x54b22c);}try{Array[_0x36c0e5(0x15d)](global[_0x36c0e5(0x132)])&&global[_0x36c0e5(0x132)][0x0]&&(global[_0x36c0e5(0x132)][0x0][_0x36c0e5(0x167)]=this[_0x36c0e5(0x13b)][_0x36c0e5(0xc2)]()[_0x36c0e5(0x161)](_0x5badb9[_0x36c0e5(0xee)])),global[_0x36c0e5(0x167)]=this[_0x36c0e5(0x13b)][_0x36c0e5(0xc2)]()[_0x36c0e5(0x161)](_0x5badb9[_0x36c0e5(0xee)]);}catch(_0x41f418){logger[_0x36c0e5(0x117)](_0x36c0e5(0x133)+_0x41f418);}this[_0x36c0e5(0x13b)][_0x36c0e5(0x163)]=_0x5badb9[_0x36c0e5(0x10a)](shouldScanTestForAccessibility,this[_0x36c0e5(0x13b)][_0x36c0e5(0xc2)](),!![]),globals[_0x36c0e5(0x14f)](_0x5badb9[_0x36c0e5(0x126)],this['currentTest']['shouldScanTestForAccessibility']),this[_0x36c0e5(0x13b)][_0x36c0e5(0xda)]=!![];if(_0x5badb9[_0x36c0e5(0x146)](isAccessibilityAutomationSession)&&_0x3a5b4a&&Array[_0x36c0e5(0x15d)](global[_0x36c0e5(0x132)])&&_0x5badb9[_0x36c0e5(0xd8)](global[_0x36c0e5(0x132)][_0x36c0e5(0x144)],0x0)&&globals['getGlobal'](_0x5badb9[_0x36c0e5(0x11a)]))try{const _0x1b3663=await global[_0x36c0e5(0x132)][0x0][_0x36c0e5(0x165)];if(_0x1b3663){let _0x37881d=!![];const _0xa43957=await global[_0x36c0e5(0x132)][0x0]['getCurrentUrl']();let _0x531b9f;try{_0x531b9f=new URL(_0xa43957);}catch(_0x5ca768){_0x37881d=![];}_0x37881d=_0x5badb9[_0x36c0e5(0x12c)](_0x531b9f[_0x36c0e5(0x113)],_0x5badb9[_0x36c0e5(0xd7)])||_0x5badb9[_0x36c0e5(0x12c)](_0x531b9f[_0x36c0e5(0x113)],_0x5badb9['CmcCT']),_0x37881d&&(this[_0x36c0e5(0x13b)]['shouldScanTestForAccessibility']&&logger[_0x36c0e5(0x114)](_0x5badb9['iXsGm'])),this[_0x36c0e5(0x13b)][_0x36c0e5(0xda)]=this['currentTest']['shouldScanTestForAccessibility'],this['currentTest']['shouldScanTestForAccessibility']&&logger['info'](_0x5badb9[_0x36c0e5(0x157)]);}}catch(_0x14a200){logger[_0x36c0e5(0x123)](_0x36c0e5(0xe9)+util[_0x36c0e5(0xf0)](_0x14a200));}_0x5badb9[_0x36c0e5(0x100)](_0x2e0af0);})[_0x190ae5(0xe3)](()=>{const _0x1ea149=_0x190ae5;_0x4bea16[_0x1ea149(0xce)](_0x1251e2);});},{'platform':_0x4bea16['CCujg'](nestedKeyValue,global[_0x80876c(0x130)],[_0x4bea16['QJbOi']]),'hookType':_0x4bea16['zGtNH']})();},'afterEach'(_0x181427){const _0x3c760d=a32_0x482436,_0x567cef={'IrHXx':_0x3c760d(0x166),'EjgoV':function(_0xa418bc,_0x2011df){return _0xa418bc!==_0x2011df;},'QmvrB':_0x3c760d(0xf8),'jHSKr':function(_0x28e272,_0xabc32a,_0x2f97f7){return _0x28e272(_0xabc32a,_0x2f97f7);},'AAmLx':function(_0x447d4c,_0x27f5d7){return _0x447d4c+_0x27f5d7;},'EdpoC':_0x3c760d(0x110),'thHBa':_0x3c760d(0x123),'KmMRj':_0x3c760d(0x142),'rKjjn':_0x3c760d(0x114),'zOxNI':function(_0x22c693,_0x2491e0){return _0x22c693>_0x2491e0;},'GOHVf':function(_0x57a582,_0x15eee3){return _0x57a582===_0x15eee3;},'bxpLH':'testcase','WLQuq':function(_0x58bf1e,_0x30b934){return _0x58bf1e>_0x30b934;},'XoIiy':_0x3c760d(0xd5),'QleLh':function(_0x1a343f,_0x1bb7e3,_0x1d534b,_0x3eb7d5){return _0x1a343f(_0x1bb7e3,_0x1d534b,_0x3eb7d5);},'Qoflw':_0x3c760d(0x13d),'OAgUK':_0x3c760d(0x159),'aGzBI':_0x3c760d(0x106),'OxPrU':_0x3c760d(0x109),'rjnbR':_0x3c760d(0xd1),'FeEGr':_0x3c760d(0x158),'uksko':function(_0x4ddec1){return _0x4ddec1();},'BOEtF':_0x3c760d(0x117),'tisvA':function(_0x569fb6,_0x4d4ad2){return _0x569fb6>_0x4d4ad2;},'JFWiB':function(_0xa98bed){return _0xa98bed();},'mCSAr':function(_0x1c0279,_0x26ad72,_0xc0528e){return _0x1c0279(_0x26ad72,_0xc0528e);},'AgjPt':_0x3c760d(0xd2),'LXzzK':_0x3c760d(0x107)},_0x2f7983='browserstack internal helper hook';this['timeout'](0xfde8),global[_0x3c760d(0xe4)]=this[_0x3c760d(0x13b)][_0x3c760d(0xc2)]()[_0x3c760d(0x161)](_0x567cef['IrHXx']),PerformanceTester[_0x3c760d(0x14d)](PerformanceSdkEvents[_0x3c760d(0x139)],()=>{const _0x1ea588=_0x3c760d,_0x4293dd=async(_0x13f923,_0x2384d0)=>{const _0x55352c=a32_0x1c90;await global[_0x55352c(0x132)][0x0][_0x55352c(0xf6)]('browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:'+_0x13f923+',\x22level\x22:\x20\x22'+_0x2384d0+_0x55352c(0xcc));};new Promise(async _0x4a123c=>{const _0x3e865b=a32_0x1c90,_0x1ca91d={'yvGtX':_0x567cef[_0x3e865b(0xe0)],'lqkTH':function(_0x23d7e9,_0x45b44f){const _0x25e695=_0x3e865b;return _0x567cef[_0x25e695(0x137)](_0x23d7e9,_0x45b44f);},'DjIbW':_0x567cef[_0x3e865b(0xfa)],'cKeES':function(_0x54c227,_0x117182,_0x415211){const _0x25a69c=_0x3e865b;return _0x567cef[_0x25a69c(0x15f)](_0x54c227,_0x117182,_0x415211);},'BwqEm':function(_0x1d2560,_0x1f4810){const _0x5d160c=_0x3e865b;return _0x567cef[_0x5d160c(0x150)](_0x1d2560,_0x1f4810);},'MqJxM':_0x567cef[_0x3e865b(0x11c)],'tnvpg':_0x567cef[_0x3e865b(0x141)],'QQsPw':_0x567cef['KmMRj'],'cwOVU':_0x567cef[_0x3e865b(0x13f)]};try{_0x567cef['zOxNI'](global[_0x3e865b(0x132)]['length'],0x1)&&(await global['driverCleanup'](),global[_0x3e865b(0x132)][_0x3e865b(0xf1)](),global['__error_messages__']=[],global[_0x3e865b(0x135)]=![]);try{if(global[_0x3e865b(0xfc)]&&_0x567cef[_0x3e865b(0x11b)](global[_0x3e865b(0x148)],_0x567cef['bxpLH'])&&global[_0x3e865b(0x132)][0x0]){const _0x5a22af=_0x567cef[_0x3e865b(0x134)](global[_0x3e865b(0xff)][_0x3e865b(0x144)],0x0)?!!global['capabilities'][0x0][_0x3e865b(0xf9)]||!!global[_0x3e865b(0xff)][0x0][_0x567cef[_0x3e865b(0x12a)]]:![],_0x54e4ce={};_0x54e4ce['app']=_0x5a22af,await _0x567cef['QleLh'](percyAutoCapture,global[_0x3e865b(0x132)][0x0],_0x567cef['bxpLH'],_0x54e4ce);}}catch(_0x2a3b27){logger[_0x3e865b(0x117)](_0x3e865b(0x102)+_0x2a3b27);}!global['__skipSessionName']&&(await PerformanceTester[_0x3e865b(0x14d)](PerformanceAutEvents[_0x3e865b(0x129)],async()=>{const _0x1cf3df=_0x3e865b;await global['__drivers'][0x0]['executeScript']('browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20'+JSON[_0x1cf3df(0xc5)](this['currentTest'][_0x1cf3df(0xc2)]()[_0x1cf3df(0x161)](_0x1ca91d[_0x1cf3df(0x164)]))+'}}');})(),global[_0x3e865b(0x132)][0x0][_0x3e865b(0xc8)]=!![]),await PerformanceTester[_0x3e865b(0x14d)](PerformanceAutEvents['SESSION_STATUS'],async()=>{const _0x34b49f=_0x3e865b,_0x2267d2=_0x1ca91d[_0x34b49f(0x10c)](this[_0x34b49f(0x13b)]['state'],_0x1ca91d['DjIbW']);_0x2267d2?(global[_0x34b49f(0x135)]=!![],global[_0x34b49f(0xd9)][_0x34b49f(0x145)](this[_0x34b49f(0x13b)]['err'][_0x34b49f(0x124)]),await _0x1ca91d['cKeES'](_0x4293dd,JSON['stringify'](_0x1ca91d['BwqEm'](_0x1ca91d['MqJxM'],this[_0x34b49f(0x13b)]['err'][_0x34b49f(0x124)])),_0x1ca91d[_0x34b49f(0x138)])):await _0x1ca91d[_0x34b49f(0x111)](_0x4293dd,JSON[_0x34b49f(0xc5)](_0x1ca91d[_0x34b49f(0xfe)]),_0x1ca91d[_0x34b49f(0xe2)]);})();}catch(_0x176be1){logger[_0x3e865b(0x117)](_0x3e865b(0x128)+_0x176be1);}try{if(this[_0x3e865b(0x13b)][_0x3e865b(0xda)]&&globals[_0x3e865b(0x14b)](_0x567cef[_0x3e865b(0x155)])&&globals[_0x3e865b(0x14b)](_0x567cef['OAgUK'])){logger['info'](_0x567cef[_0x3e865b(0x15b)]);const _0x279130={};_0x279130[_0x3e865b(0xc4)]=this[_0x3e865b(0x13b)][_0x3e865b(0x10f)],_0x279130[_0x3e865b(0x13c)]=process[_0x3e865b(0xdb)][testHubConstants[_0x3e865b(0xd0)]['BROWSERSTACK_TESTHUB_UUID']],_0x279130[_0x3e865b(0xc6)]=process[_0x3e865b(0xdb)][testHubConstants[_0x3e865b(0xd0)][_0x3e865b(0xf3)]];const _0x2e8300=_0x279130;logger[_0x3e865b(0x117)](_0x3e865b(0x104)+JSON['stringify'](_0x2e8300)),logger[_0x3e865b(0x117)](_0x567cef[_0x3e865b(0x13a)]);const _0x1ba52f={};_0x1ba52f['command']=_0x567cef[_0x3e865b(0xdc)],await PerformanceTester['measureWrapper'](PerformanceA11yEvents[_0x3e865b(0x15a)],async()=>{const _0x4cc7fb=_0x3e865b;logger[_0x4cc7fb(0x117)](util[_0x4cc7fb(0xf0)](await global[_0x4cc7fb(0x132)][0x0][_0x4cc7fb(0x125)](scripts['performScan'],{'method':global[_0x4cc7fb(0x167)]})));},_0x1ba52f)(),await PerformanceTester[_0x3e865b(0x14d)](PerformanceA11yEvents[_0x3e865b(0x14c)],async()=>{const _0x252cf9=_0x3e865b;await global[_0x252cf9(0x132)][0x0]['executeAsyncScript'](scripts[_0x252cf9(0x154)],_0x2e8300);})(),logger[_0x3e865b(0x114)](_0x567cef[_0x3e865b(0xcf)]);}}catch(_0x13158a){logger['error'](_0x3e865b(0xfb)+this[_0x3e865b(0x13b)][_0x3e865b(0xc2)]()+_0x3e865b(0x15c),_0x13158a);}try{try{if(_0x567cef[_0x3e865b(0x115)](shouldProcessEventForTesthub)){global[_0x3e865b(0x132)][0x0]&&await _0x567cef[_0x3e865b(0x15f)](sendPlatformDetails,global[_0x3e865b(0x132)][0x0],this[_0x3e865b(0x13b)]?this[_0x3e865b(0x13b)][_0x3e865b(0x10f)]:null);if(_0x567cef[_0x3e865b(0x115)](isBrowserstackInfra)){PerformanceTester[_0x3e865b(0xf7)](PerformanceO11yEvents[_0x3e865b(0xfd)]);const _0x3db7b2=_0x3e865b(0x169)+Date[_0x3e865b(0x153)]();await _0x567cef[_0x3e865b(0x15f)](_0x4293dd,JSON['stringify'](_0x3db7b2),_0x567cef[_0x3e865b(0x112)]),PerformanceTester['end'](PerformanceO11yEvents[_0x3e865b(0xfd)]);}}}catch(_0x4e63df){logger[_0x3e865b(0x117)](_0x3e865b(0x10e)+_0x4e63df),PerformanceTester['end'](PerformanceO11yEvents[_0x3e865b(0xfd)],![],_0x4e63df);}_0x567cef[_0x3e865b(0xed)](global['__drivers'][0x0][_0x3e865b(0xdf)],0x0)&&await global['driverCleanup']();}catch(_0x204c61){logger['debug'](_0x3e865b(0x105)+_0x204c61);}_0x567cef[_0x3e865b(0xde)](_0x4a123c);})[_0x1ea588(0xe3)](()=>{const _0x152d35=_0x1ea588;_0x567cef[_0x152d35(0xde)](_0x181427);});},{'platform':_0x567cef['mCSAr'](nestedKeyValue,global[_0x3c760d(0x130)],[_0x567cef[_0x3c760d(0xe5)]]),'hookType':_0x567cef[_0x3c760d(0xc3)]})();},'afterAll'(_0x17be06){const _0x3c8ab0=a32_0x482436,_0x386356={'wnFGT':function(_0x4ba619){return _0x4ba619();},'zRFgI':function(_0x2bf97f,_0x5125a1,_0x2bd337){return _0x2bf97f(_0x5125a1,_0x2bd337);},'zRNZX':_0x3c8ab0(0xd2),'MsRAW':'afterAll'},_0x10d4e7='browserstack internal helper hook';this['timeout'](0xfde8),PerformanceTester['measureWrapper'](PerformanceSdkEvents[_0x3c8ab0(0x139)],()=>{const _0x44027b=_0x3c8ab0,_0x14d32f={'iYlaC':function(_0x2f669a){return _0x386356['wnFGT'](_0x2f669a);}};new Promise(async _0xafebe9=>{const _0x57f68b=a32_0x1c90;await global[_0x57f68b(0xdd)](),_0x386356[_0x57f68b(0x131)](_0xafebe9);})[_0x44027b(0xe3)]()[_0x44027b(0x160)](()=>{_0x14d32f['iYlaC'](_0x17be06);});},{'platform':_0x386356['zRFgI'](nestedKeyValue,global[_0x3c8ab0(0x130)],[_0x386356[_0x3c8ab0(0x121)]]),'hookType':_0x386356[_0x3c8ab0(0xef)]})();}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';const a33_0x22a72a=a33_0xea45;(function(_0xb126c5,_0xb493ab){const _0x14d033=a33_0xea45,_0x2fd509=_0xb126c5();while(!![]){try{const _0x1b6790=parseInt(_0x14d033(0x156))/0x1+parseInt(_0x14d033(0x126))/0x2+-parseInt(_0x14d033(0x161))/0x3+parseInt(_0x14d033(0x12d))/0x4*(parseInt(_0x14d033(0x146))/0x5)+-parseInt(_0x14d033(0x12a))/0x6*(parseInt(_0x14d033(0x127))/0x7)+-parseInt(_0x14d033(0x145))/0x8+parseInt(_0x14d033(0x164))/0x9*(parseInt(_0x14d033(0x121))/0xa);if(_0x1b6790===_0xb493ab)break;else _0x2fd509['push'](_0x2fd509['shift']());}catch(_0x4b0747){_0x2fd509['push'](_0x2fd509['shift']());}}}(a33_0x49ee,0x19578));const fs=require('fs'),path=require('path'),{spawn}=require('child_process'),logger=require(a33_0x22a72a(0x155))[a33_0x22a72a(0x15e)],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require(a33_0x22a72a(0x13d)),constants=require(a33_0x22a72a(0x137)),getUserNightwatchConfigs=(_0x2b6d83,_0x825ede)=>{const _0x4b3a61=a33_0x22a72a,_0x55e56a={'cTxAM':_0x4b3a61(0x134),'Kcgzb':_0x4b3a61(0x12b),'QvVou':function(_0x65a4e,_0x121f76){return _0x65a4e(_0x121f76);},'BCoks':_0x4b3a61(0x13c)};let _0x37dad8=null,_0x10b252={};const _0x34d74a=_0x825ede[_0x4b3a61(0x150)](_0x8fe31d=>_0x8fe31d===_0x4b3a61(0x167));if(!helper[_0x4b3a61(0x15d)](_0x2b6d83[_0x4b3a61(0x154)])&&fs[_0x4b3a61(0x165)](path['join'](process[_0x4b3a61(0x130)](),_0x2b6d83[_0x4b3a61(0x154)])))_0x37dad8=path[_0x4b3a61(0x131)](process[_0x4b3a61(0x130)](),_0x2b6d83[_0x4b3a61(0x154)]),_0x825ede[_0x4b3a61(0x124)](_0x34d74a,0x2);else{if(fs[_0x4b3a61(0x165)](path[_0x4b3a61(0x131)](process[_0x4b3a61(0x130)](),_0x55e56a[_0x4b3a61(0x162)])))_0x37dad8=path[_0x4b3a61(0x131)](process['cwd'](),_0x55e56a['cTxAM']);else fs[_0x4b3a61(0x165)](path[_0x4b3a61(0x131)](process[_0x4b3a61(0x130)](),_0x55e56a[_0x4b3a61(0x14c)]))&&(_0x37dad8=path[_0x4b3a61(0x131)](process[_0x4b3a61(0x130)](),_0x55e56a[_0x4b3a61(0x14c)]));}return _0x37dad8?(logger[_0x4b3a61(0x140)](_0x4b3a61(0x12f)+_0x37dad8),_0x10b252=_0x55e56a[_0x4b3a61(0x132)](require,_0x37dad8)):logger['info'](_0x55e56a[_0x4b3a61(0x133)]),_0x10b252;},removeExistingEnvs=_0x2fbfa8=>{const _0x6252ce=a33_0x22a72a,_0x2a1df0={};_0x2a1df0[_0x6252ce(0x12c)]=function(_0x56eb55,_0x4e6a6f){return _0x56eb55>_0x4e6a6f;};const _0x97f980=_0x2a1df0;let _0x32ce4e=_0x2fbfa8[_0x6252ce(0x150)](_0x4ac115=>_0x4ac115===_0x6252ce(0x15a));_0x97f980[_0x6252ce(0x12c)](_0x32ce4e,-0x1)&&_0x2fbfa8[_0x6252ce(0x124)](_0x32ce4e,0x2),_0x32ce4e=_0x2fbfa8['findIndex'](_0x27f7f9=>_0x27f7f9==='-e'),_0x97f980[_0x6252ce(0x12c)](_0x32ce4e,-0x1)&&_0x2fbfa8[_0x6252ce(0x124)](_0x32ce4e,0x2);};function a33_0xea45(_0x16856b,_0x2a0409){const _0x49eeb9=a33_0x49ee();return a33_0xea45=function(_0xea450f,_0xaf29e6){_0xea450f=_0xea450f-0x11f;let _0x3f7bbe=_0x49eeb9[_0xea450f];return _0x3f7bbe;},a33_0xea45(_0x16856b,_0x2a0409);}function a33_0x49ee(){const _0x40f6c7=['writeFileSync','slice','DjSRV','--env','platforms','forEach','isUndefined','winstonLogger','cQBRq','platform','274722eJkLnP','cTxAM','test','7263twfZWz','existsSync','map','--config','length','FyNUC','test_settings','ZWSoZ','2340nXWkAz','nightwatch-browserstack.json','child\x20process\x20exited\x20with\x20code\x20','splice','host','200518KSKnyD','3619hJJYDV','filter','tGIrN','2256ptBnNH','nightwatch.json','iAkrF','11044bfXdZf','kRBMp','Getting\x20your\x20nightwatch\x20configs\x20from\x20','cwd','join','QvVou','BCoks','nightwatch.conf.js','split','JveWQ','../utils/constants','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','modifyBrowserStackCaps','getPlatformName','OQAFR','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','../../helpers/helper','trim','debug','info','modifyBrowserStackW3CCaps','UozsV','webdriver','push','461280bdOzCI','70mszuwu','useW3C','close','hub.browserstack.com','eCDwh','WVote','Kcgzb','desiredCapabilities','selenium','rSygV','findIndex','start_process','BXLqb','env','config','../../helpers/logger','119675QHmrFF'];a33_0x49ee=function(){return _0x40f6c7;};return a33_0x49ee();}function run(_0x45951f,_0x563114){const _0xa37ff0=a33_0x22a72a,_0x5888c6={'cQBRq':'nightwatch','ZWSoZ':function(_0x493a20,_0x48fe83){return _0x493a20+_0x48fe83;},'FyNUC':'test_settings','eCDwh':function(_0x3403af,_0x1aaa8c,_0xc2a01b){return _0x3403af(_0x1aaa8c,_0xc2a01b);},'JveWQ':_0xa37ff0(0x149),'UozsV':_0xa37ff0(0x138),'kRBMp':function(_0x2d1fd0,_0x442197){return _0x2d1fd0===_0x442197;},'ovYFR':_0xa37ff0(0x122),'OQAFR':function(_0xa5e637,_0x860e72){return _0xa5e637(_0x860e72);},'vtHTt':function(_0x2323cc,_0x1ee837,_0x378b4f,_0x429faf){return _0x2323cc(_0x1ee837,_0x378b4f,_0x429faf);},'DNzqf':'nightwatch.cmd','DjSRV':_0xa37ff0(0x167),'lQcld':_0xa37ff0(0x15a),'BXLqb':'inherit','WVote':_0xa37ff0(0x148)},_0x42d365=new BrowserStackSetup(_0x45951f);if(!_0x42d365[_0xa37ff0(0x154)])return;const _0x56ef3e=_0x5888c6[_0xa37ff0(0x14a)](getUserNightwatchConfigs,_0x45951f,_0x563114),_0x5e07eb={};_0x5e07eb[_0xa37ff0(0x151)]=![];const _0x29ba07={};_0x29ba07[_0xa37ff0(0x125)]=_0x5888c6[_0xa37ff0(0x136)],_0x29ba07['port']=0x1bb;const _0x33c0f1={};_0x33c0f1[_0xa37ff0(0x143)]=_0x5e07eb,_0x33c0f1[_0xa37ff0(0x14e)]=_0x29ba07;const _0x1968e3=_0x33c0f1;logger['info'](_0x5888c6[_0xa37ff0(0x142)]);const _0x4fb13b={..._0x56ef3e},_0x2162d0=_0x4fb13b,_0x4f7222=helper[_0xa37ff0(0x147)](_0x42d365['config']),_0x2ac1aa=[];_0x42d365[_0xa37ff0(0x154)][_0xa37ff0(0x15b)][_0xa37ff0(0x15c)]((_0x2608ef,_0x5b0cac)=>{const _0x3dc539=_0xa37ff0;_0x4f7222?_0x2ac1aa[_0x3dc539(0x144)](helper[_0x3dc539(0x141)](_0x42d365[_0x3dc539(0x154)],_0x5888c6[_0x3dc539(0x15f)],_0x5b0cac)):_0x2ac1aa[_0x3dc539(0x144)](helper[_0x3dc539(0x139)](_0x42d365['config'],_0x5888c6['cQBRq'],_0x5b0cac));});const _0x12104e={},_0x41a10f=[];_0x45951f[_0xa37ff0(0x153)]=_0x45951f[_0xa37ff0(0x153)]||_0x45951f['e'];const _0x46d6ba=_0x45951f[_0xa37ff0(0x153)]?_0x45951f['env'][_0xa37ff0(0x13e)]()[_0xa37ff0(0x135)](',')[_0xa37ff0(0x166)](_0xe6598e=>_0xe6598e[_0xa37ff0(0x13e)]())[_0xa37ff0(0x128)](_0xa0fae9=>_0xa0fae9!==''):[''];_0x5888c6[_0xa37ff0(0x12e)](_0x46d6ba[_0xa37ff0(0x168)],0x0)&&_0x46d6ba[_0xa37ff0(0x144)]('');_0x46d6ba['forEach'](_0x9d581c=>{const _0x24a84a=_0xa37ff0,_0x3a9a4b={'tGIrN':function(_0x2f0a50,_0x31962f){const _0x3bd42f=a33_0xea45;return _0x5888c6[_0x3bd42f(0x120)](_0x2f0a50,_0x31962f);},'rSygV':_0x5888c6[_0x24a84a(0x169)]};_0x2ac1aa[_0x24a84a(0x15c)](_0xbf58c9=>{const _0x23cb01=_0x24a84a;let _0x5ccdcf=_0x3a9a4b[_0x23cb01(0x129)](helper[_0x23cb01(0x13a)](_0xbf58c9,'_'),'_'+Date['now']());_0x9d581c&&(_0x5ccdcf+='_'+_0x9d581c);if(_0x9d581c&&(!_0x56ef3e[_0x3a9a4b[_0x23cb01(0x14f)]]||!_0x56ef3e[_0x3a9a4b[_0x23cb01(0x14f)]][_0x9d581c]))return;const _0x32c177={..._0x1968e3};_0x32c177[_0x23cb01(0x14d)]=_0xbf58c9;const _0x5884ca=_0x32c177;_0x12104e[_0x5ccdcf]=_0x9d581c?helper['mergeDeep'](_0x56ef3e[_0x3a9a4b[_0x23cb01(0x14f)]][_0x9d581c],_0x5884ca):_0x5884ca,_0x41a10f[_0x23cb01(0x144)](_0x5ccdcf);});});!_0x2162d0[_0xa37ff0(0x11f)]&&(_0x2162d0[_0xa37ff0(0x11f)]={});_0x2162d0[_0xa37ff0(0x11f)]={..._0x2162d0[_0xa37ff0(0x11f)],..._0x12104e};const _0x153d78=path['join'](__dirname,_0x5888c6['ovYFR']);fs[_0xa37ff0(0x157)](_0x153d78,JSON['stringify'](_0x2162d0)),_0x5888c6[_0xa37ff0(0x13b)](removeExistingEnvs,_0x563114);const _0x1d5b12=_0x5888c6['vtHTt'](spawn,/^win/[_0xa37ff0(0x163)](process[_0xa37ff0(0x160)])?_0x5888c6['DNzqf']:_0x5888c6['cQBRq'],[_0x5888c6[_0xa37ff0(0x159)],_0x153d78,..._0x563114[_0xa37ff0(0x158)](0x1),_0x5888c6['lQcld'],_0x41a10f[_0xa37ff0(0x131)](',')],{'stdio':_0x5888c6[_0xa37ff0(0x152)]});_0x1d5b12['on'](_0x5888c6[_0xa37ff0(0x14b)],async _0x2617a5=>{const _0x349161=_0xa37ff0;logger[_0x349161(0x13f)](_0x349161(0x123)+_0x2617a5),logger[_0x349161(0x140)]('Deleting\x20'+_0x153d78),fs['unlinkSync'](_0x153d78);});}module['exports']=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a34_0x24fb(){const _0x4e849d=['debug','accessibilityOptions.authToken','setAccessibilityCapabilities','DUOLR','(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','7219805JVBUIL','5956907qUEQwH','4tRXhZJ','7508550FDyBRK','734QdUMNe','dMwzl','executeScript','108hbppBC','browser','zgeie','../../helpers/helper','chrome','needsReview','accessibilityOptions','BCJSx','WEHQm','browserstack.accessibility','fPCSL','jkerN','includeIssueType','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','accessibilityPlatform','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','1041537hTKpeN','warn','getAccessibilityResultsSummary','No\x20accessibility\x20results\x20were\x20found.','constructor','deviceName','currentTest','YVTqD','winstonLogger','LHzeC','yDHsL','parse','790AdcrTr','bZbcj','command','lGoQj','LWdNw','KoEJP','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','8YQsssi','evaluate','ZMcOa','wsEndpoint','IwYbP','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','bstackSdkArgs','latest','name','format','util','../../helpers/accessibility-automation/scripts','wcagVersion','playwright-chromium','error','YUFNT','sHuWY','scannerProcessingTimeout','SuNcF','YFytg','sjfBW','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','csFka','performScan','browser_version','80fGxIMI','processAccessibilityCaps','YBykZ','replace','../../helpers/performance/performance-tester','RrQsO','PERFORM_SCAN','accessibilityOptions.scannerVersion','1090827QMzqXw','accessibilityOptions.scannerProcessingTimeout','waEyQ','TwvZI','../../helpers/logger','browserStackEvaluate','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','IGMWP','stringify','PwyBQ','FPvvn','No\x20summaryResults\x20found.','BS_A11Y_JWT','browserName','GGzAn','use','(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','scannerVersion','odfcl','bestPractice','biKNR','connectOptions','WCKkR','project','1540602lVKiZC','DhToG','measureWrapper'];a34_0x24fb=function(){return _0x4e849d;};return a34_0x24fb();}const a34_0xa631d3=a34_0xe347;(function(_0x5ac833,_0x1b32c4){const _0x5cb58d=a34_0xe347,_0x47a881=_0x5ac833();while(!![]){try{const _0x3fee3b=parseInt(_0x5cb58d(0x245))/0x1*(parseInt(_0x5cb58d(0x1f9))/0x2)+-parseInt(_0x5cb58d(0x239))/0x3+-parseInt(_0x5cb58d(0x243))/0x4*(parseInt(_0x5cb58d(0x241))/0x5)+-parseInt(_0x5cb58d(0x244))/0x6+-parseInt(_0x5cb58d(0x1ed))/0x7*(parseInt(_0x5cb58d(0x200))/0x8)+-parseInt(_0x5cb58d(0x221))/0x9*(parseInt(_0x5cb58d(0x219))/0xa)+-parseInt(_0x5cb58d(0x242))/0xb*(-parseInt(_0x5cb58d(0x248))/0xc);if(_0x3fee3b===_0x1b32c4)break;else _0x47a881['push'](_0x47a881['shift']());}catch(_0x20de93){_0x47a881['push'](_0x47a881['shift']());}}}(a34_0x24fb,0xcc34c));function a34_0xe347(_0x36b393,_0x3896f6){const _0x24fb8e=a34_0x24fb();return a34_0xe347=function(_0xe34769,_0x3225e0){_0xe34769=_0xe34769-0x1e9;let _0x17539c=_0x24fb8e[_0xe34769];return _0x17539c;},a34_0xe347(_0x36b393,_0x3896f6);}const util=require(a34_0xa631d3(0x20a)),logger=require(a34_0xa631d3(0x225))[a34_0xa631d3(0x1f5)],{isAccessibilityAutomationSession}=require('../../helpers/accessibility-automation/helper'),{isUndefined}=require(a34_0xa631d3(0x24b)),scripts=require(a34_0xa631d3(0x20b)),PerformanceTester=require(a34_0xa631d3(0x21d)),{A11Y_EVENTS:PerformanceA11yEvents}=require('../../helpers/performance/constants');exports[a34_0xa631d3(0x226)]=async(_0x3134f8,_0x20b8b7,_0xd2cbc1={})=>{const _0xa3698b=a34_0xa631d3,_0x1e129e={};_0x1e129e[_0xa3698b(0x23f)]=_0xa3698b(0x206);const _0x6337eb=_0x1e129e;return await _0x3134f8[_0xa3698b(0x201)](_0xa3698b(0x231)+_0x20b8b7[_0xa3698b(0x21c)](/arguments/g,_0x6337eb['DUOLR'])+_0xa3698b(0x215)+JSON['stringify'](_0xd2cbc1)+')');},exports['browserStackExecuteDriver']=async(_0xf6ad6,_0x2ff5f2,_0x3b91b9={})=>{const _0x5d9904=a34_0xa631d3,_0x5ae5c4={};_0x5ae5c4[_0x5d9904(0x252)]=function(_0x2e7749,_0x276c05){return _0x2e7749===_0x276c05;},_0x5ae5c4[_0x5d9904(0x1fc)]='WebDriver',_0x5ae5c4[_0x5d9904(0x210)]=function(_0x27569d,_0x93013b){return _0x27569d===_0x93013b;},_0x5ae5c4['YUFNT']='Playwright',_0x5ae5c4[_0x5d9904(0x1f6)]='bstackSdkArgs';const _0x5a345b=_0x5ae5c4;if(_0x5a345b[_0x5d9904(0x252)](_0xf6ad6[_0x5d9904(0x1f1)][_0x5d9904(0x208)],_0x5a345b[_0x5d9904(0x1fc)]))return await _0xf6ad6['executeAsyncScript'](_0x2ff5f2,_0x3b91b9);else{if(_0x5a345b[_0x5d9904(0x210)](_0xf6ad6['constructor'][_0x5d9904(0x208)],_0x5a345b[_0x5d9904(0x20f)]))return await _0xf6ad6[_0x5d9904(0x247)](_0x5d9904(0x240)+_0x2ff5f2[_0x5d9904(0x21c)](/arguments/g,_0x5a345b[_0x5d9904(0x1f6)])+_0x5d9904(0x227)+JSON[_0x5d9904(0x229)](_0x3b91b9)+')');}},exports[a34_0xa631d3(0x23e)]=async _0x22a9fa=>{const _0x98ebf5=a34_0xa631d3,_0x35c36e={};_0x35c36e[_0x98ebf5(0x233)]='accessibilityOptions.wcagVersion',_0x35c36e[_0x98ebf5(0x253)]=_0x98ebf5(0x222),_0x35c36e[_0x98ebf5(0x212)]='accessibilityOptions.includeIssueType.bestPractice',_0x35c36e[_0x98ebf5(0x1fe)]='accessibilityOptions.includeIssueType.needsReview',_0x35c36e['YVTqD']=_0x98ebf5(0x23d),_0x35c36e['waEyQ']=_0x98ebf5(0x220);const _0x4bd931=_0x35c36e;_0x22a9fa['accessibilityOptions']&&(_0x22a9fa[_0x98ebf5(0x24e)][_0x98ebf5(0x20c)]&&(_0x22a9fa[_0x4bd931[_0x98ebf5(0x233)]]=_0x22a9fa[_0x98ebf5(0x24e)][_0x98ebf5(0x20c)]),_0x22a9fa['accessibilityOptions'][_0x98ebf5(0x211)]&&(_0x22a9fa[_0x4bd931[_0x98ebf5(0x253)]]=_0x22a9fa[_0x98ebf5(0x24e)][_0x98ebf5(0x211)]),_0x22a9fa[_0x98ebf5(0x24e)][_0x98ebf5(0x1e9)]&&(_0x22a9fa[_0x4bd931[_0x98ebf5(0x212)]]=_0x22a9fa['accessibilityOptions']['includeIssueType'][_0x98ebf5(0x234)],_0x22a9fa[_0x4bd931[_0x98ebf5(0x1fe)]]=_0x22a9fa[_0x98ebf5(0x24e)][_0x98ebf5(0x1e9)][_0x98ebf5(0x24d)]));const _0x2e18f0=JSON[_0x98ebf5(0x1f8)](process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML'])[_0x98ebf5(0x232)];_0x22a9fa[_0x4bd931[_0x98ebf5(0x1f4)]]=process['env'][_0x98ebf5(0x22d)],_0x22a9fa[_0x4bd931[_0x98ebf5(0x223)]]=_0x2e18f0,delete _0x22a9fa['accessibilityOptions'];},exports['getAccessibilityResults']=async _0x196178=>{const _0x5198b0=a34_0xa631d3,_0x37376a={};_0x37376a[_0x5198b0(0x1fd)]=_0x5198b0(0x1f0),_0x37376a['WCKkR']='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.';const _0x6fbf70=_0x37376a;if(global[_0x5198b0(0x1eb)])try{logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x196178,scripts.performScan)));},{command:'getAccessibilityResults'})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x196178,scripts.getResults);})();return res;}catch{return logger[_0x5198b0(0x20e)](_0x6fbf70[_0x5198b0(0x1fd)]),[];}else return logger[_0x5198b0(0x1ee)](_0x6fbf70[_0x5198b0(0x237)]),[];},exports[a34_0xa631d3(0x217)]=async(_0x47c365,_0x55b2f2='')=>{const _0x40371e=a34_0xa631d3;if(global['accessibilityPlatform'])return await PerformanceTester[_0x40371e(0x23b)](PerformanceA11yEvents[_0x40371e(0x21f)],async()=>{const _0x3c3f3f=_0x40371e,_0x22ea03={};_0x22ea03[_0x3c3f3f(0x1fb)]=_0x55b2f2,await exports[_0x3c3f3f(0x226)](_0x47c365,scripts[_0x3c3f3f(0x217)],_0x22ea03);},{'command':_0x55b2f2})();},exports[a34_0xa631d3(0x1ef)]=async _0x2a091e=>{const _0x5d33f8=a34_0xa631d3,_0x3558d8={};_0x3558d8[_0x5d33f8(0x24f)]=_0x5d33f8(0x22c),_0x3558d8[_0x5d33f8(0x21e)]='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.';const _0x16f490=_0x3558d8;if(global[_0x5d33f8(0x1eb)])try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x2a091e,scripts.performScan)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x2a091e,scripts.getResultsSummary);})();return summaryResults;}catch{return logger[_0x5d33f8(0x23c)](_0x16f490['BCJSx']),{};}else return logger['warn'](_0x16f490[_0x5d33f8(0x21e)]),{};},exports['platformValidation']=async _0x161264=>{const _0x174a0b=a34_0xa631d3,_0x18cd03={'bZbcj':function(_0xa21626,_0x1e812c){return _0xa21626!==_0x1e812c;},'EFGuT':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','IwYbP':function(_0x4ace2e,_0x468e7d){return _0x4ace2e===_0x468e7d;},'bALkj':_0x174a0b(0x24c),'PwyBQ':function(_0x417688,_0x57592a){return _0x417688===_0x57592a;},'zgeie':_0x174a0b(0x20d),'WEHQm':_0x174a0b(0x1ec),'BvyBH':function(_0x204e83,_0x400875){return _0x204e83(_0x400875);},'SiBaQ':_0x174a0b(0x207),'yDHsL':function(_0x4208c1,_0xd3cbae){return _0x4208c1>_0xd3cbae;},'DhToG':_0x174a0b(0x1ff)};try{if(!_0x18cd03[_0x174a0b(0x1fa)](_0x161264[_0x174a0b(0x1f2)],''))return logger['warn'](_0x18cd03['EFGuT']),![];const _0x23591b=_0x161264[_0x174a0b(0x249)];if(!(_0x18cd03[_0x174a0b(0x204)](_0x23591b,_0x18cd03['bALkj'])||_0x18cd03[_0x174a0b(0x22a)](_0x23591b,_0x18cd03[_0x174a0b(0x24a)])))return logger[_0x174a0b(0x1ee)](_0x18cd03[_0x174a0b(0x250)]),![];const _0x41a5e7=_0x18cd03['BvyBH'](parseInt,_0x161264[_0x174a0b(0x218)]);if(!(_0x18cd03[_0x174a0b(0x204)](_0x41a5e7,_0x18cd03['SiBaQ'])||_0x18cd03[_0x174a0b(0x1f7)](_0x41a5e7,0x5e)))return logger[_0x174a0b(0x1ee)](_0x18cd03[_0x174a0b(0x23a)]),![];}catch(_0x17a85f){logger['debug'](_0x174a0b(0x1ea)+util[_0x174a0b(0x209)](_0x17a85f));}return!![];},exports[a34_0xa631d3(0x21a)]=(_0x816d98,_0x54be2b,_0x3348a5)=>{const _0x25d2b7=a34_0xa631d3,_0x20de2b={'ItMVj':function(_0x4b9f46){return _0x4b9f46();},'dMwzl':_0x25d2b7(0x251),'csFka':function(_0x3044f5,_0x560b7f){return _0x3044f5===_0x560b7f;},'sjfBW':_0x25d2b7(0x24c),'YBykZ':function(_0x38f38e,_0x4c4eb1){return _0x38f38e===_0x4c4eb1;},'FPvvn':'playwright-chromium','hpQEB':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','YFytg':'latest','ZMcOa':function(_0x35ddf4,_0x1bab93){return _0x35ddf4>_0x1bab93;},'IGMWP':_0x25d2b7(0x1ff),'TwvZI':function(_0x39f682,_0x5d25bb){return _0x39f682(_0x5d25bb);},'biKNR':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','hgTPV':function(_0x45cd85,_0x2bf9c0){return _0x45cd85+_0x2bf9c0;},'GGzAn':function(_0x43ce1a,_0x17c525){return _0x43ce1a(_0x17c525);}};try{if(_0x20de2b['ItMVj'](isAccessibilityAutomationSession)){global[_0x25d2b7(0x1eb)]=!![];!_0x816d98[_0x20de2b[_0x25d2b7(0x246)]]&&(global[_0x25d2b7(0x1eb)]=![]);!(_0x20de2b[_0x25d2b7(0x216)](_0x816d98[_0x25d2b7(0x22e)],_0x20de2b[_0x25d2b7(0x214)])||_0x20de2b[_0x25d2b7(0x21b)](_0x816d98['browserName'],_0x20de2b[_0x25d2b7(0x22b)]))&&(logger[_0x25d2b7(0x1ee)](_0x20de2b['hpQEB']),global[_0x25d2b7(0x1eb)]=![]);!(_0x20de2b[_0x25d2b7(0x216)](_0x816d98[_0x25d2b7(0x218)],_0x20de2b[_0x25d2b7(0x213)])||_0x20de2b[_0x25d2b7(0x202)](_0x816d98[_0x25d2b7(0x218)],0x5e))&&(logger[_0x25d2b7(0x1ee)](_0x20de2b[_0x25d2b7(0x228)]),global[_0x25d2b7(0x1eb)]=![]);!_0x20de2b[_0x25d2b7(0x224)](isUndefined,_0x816d98[_0x25d2b7(0x1f2)])&&(logger[_0x25d2b7(0x1ee)](_0x20de2b[_0x25d2b7(0x235)]),global['accessibilityPlatform']=![]);if(!global[_0x25d2b7(0x1eb)]){_0x816d98[_0x20de2b['dMwzl']]=![];const _0x1c2645=_0x20de2b['hgTPV'](_0x54be2b,_0x20de2b[_0x25d2b7(0x22f)](encodeURIComponent,JSON[_0x25d2b7(0x229)](_0x816d98)));_0x3348a5&&(_0x3348a5[_0x25d2b7(0x1f3)]['testInfo'][_0x25d2b7(0x238)]['use']['connectOptions'][_0x25d2b7(0x203)]=_0x1c2645,_0x3348a5['workerInfo'][_0x25d2b7(0x238)][_0x25d2b7(0x230)][_0x25d2b7(0x236)][_0x25d2b7(0x203)]=_0x1c2645);}}}catch(_0x3d7e1f){logger['debug'](_0x25d2b7(0x205)+util[_0x25d2b7(0x209)](_0x3d7e1f));}};
|
|
1
|
+
function a34_0x3328(){const _0x4d1ce8=['fuWUE','zoVdE','No\x20accessibility\x20results\x20were\x20found.','1621070ilPoVU','wcagVersion','TRYuh','stringify','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','jzmyL','playwright-chromium','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','207ghAuwp','pSYxe','jzjQG','LTfeF','FfsCU','jAyNE','bstackSdkArgs','eiUEj','fKavV','format','deviceName','FIBdh','gDjIK','getAccessibilityResults','accessibilityOptions.includeIssueType.bestPractice','scannerVersion','NbmUk','util','PERFORM_SCAN','accessibilityOptions.includeIssueType.needsReview','accessibilityOptions.scannerVersion','zblBu','pLZom','GDXUj','zpCJJ','bestPractice','../../helpers/performance/constants','performScan','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','wsEndpoint','env','evaluate','cQWvI','329312MgtRWr','name','accessibilityOptions.scannerProcessingTimeout','warn','connectOptions','browser','parse','currentTest','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','19272470IicRBL','executeScript','platformValidation','(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','constructor','QKsCd','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','accessibilityPlatform','browserStackEvaluate','4ruhTby','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','browserstack.accessibility','testInfo','../../helpers/helper','executeAsyncScript','GupyI','FlgMz','error','accessibilityOptions','browser_version','YHwpv','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','473860NQwSLK','No\x20summaryResults\x20found.','OOBer','browserName','project','includeIssueType','tniue','jSdOY','FWPOU','browserStackExecuteDriver','accessibilityOptions.authToken','BS_A11Y_JWT','../../helpers/accessibility-automation/helper','latest','debug','winstonLogger','use','Rkshg','1088895ASlYQs','oJLdu','2710443WDodFZ','getAccessibilityResultsSummary','AdLtc','ZfJes','ePhrH','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','kZBwr','WebDriver','Cbcoc','scannerProcessingTimeout','2515135WCpoRw','../../helpers/performance/performance-tester','sibfL','42YfdNjL','xqwqt','accessibilityOptions.wcagVersion','setAccessibilityCapabilities','chrome','needsReview','ofMGM'];a34_0x3328=function(){return _0x4d1ce8;};return a34_0x3328();}const a34_0x87fc01=a34_0x59fe;(function(_0x5e6be6,_0x2a9f52){const _0x2a0847=a34_0x59fe,_0x34d825=_0x5e6be6();while(!![]){try{const _0x2ea391=-parseInt(_0x2a0847(0x102))/0x1+parseInt(_0x2a0847(0xa7))/0x2+parseInt(_0x2a0847(0x104))/0x3*(-parseInt(_0x2a0847(0xe3))/0x4)+-parseInt(_0x2a0847(0xf0))/0x5*(parseInt(_0x2a0847(0x111))/0x6)+-parseInt(_0x2a0847(0x10e))/0x7+-parseInt(_0x2a0847(0xd1))/0x8*(-parseInt(_0x2a0847(0xaf))/0x9)+parseInt(_0x2a0847(0xda))/0xa;if(_0x2ea391===_0x2a9f52)break;else _0x34d825['push'](_0x34d825['shift']());}catch(_0x30513c){_0x34d825['push'](_0x34d825['shift']());}}}(a34_0x3328,0xa371d));function a34_0x59fe(_0x1a40ae,_0x21ea1e){const _0x332864=a34_0x3328();return a34_0x59fe=function(_0x59fecb,_0x32820b){_0x59fecb=_0x59fecb-0xa5;let _0x51afd6=_0x332864[_0x59fecb];return _0x51afd6;},a34_0x59fe(_0x1a40ae,_0x21ea1e);}const util=require(a34_0x87fc01(0xc0)),logger=require('../../helpers/logger')[a34_0x87fc01(0xff)],{isAccessibilityAutomationSession}=require(a34_0x87fc01(0xfc)),{isUndefined}=require(a34_0x87fc01(0xe7)),scripts=require('../../helpers/accessibility-automation/scripts'),PerformanceTester=require(a34_0x87fc01(0x10f)),{A11Y_EVENTS:PerformanceA11yEvents}=require(a34_0x87fc01(0xc9));exports['browserStackEvaluate']=async(_0x43e0eb,_0x230076,_0x20af91={})=>{const _0x17de8a=a34_0x87fc01,_0x5686c5={};_0x5686c5['GDXUj']=_0x17de8a(0xb5);const _0x456e67=_0x5686c5;return await _0x43e0eb[_0x17de8a(0xcf)]('(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'+_0x230076['replace'](/arguments/g,_0x456e67[_0x17de8a(0xc6)])+_0x17de8a(0xcc)+JSON[_0x17de8a(0xaa)](_0x20af91)+')');},exports[a34_0x87fc01(0xf9)]=async(_0x55f5b1,_0x1daadd,_0x18ad2d={})=>{const _0x4b83ff=a34_0x87fc01,_0x5bf969={};_0x5bf969[_0x4b83ff(0xbf)]=function(_0x82b2ae,_0x542345){return _0x82b2ae===_0x542345;},_0x5bf969[_0x4b83ff(0xf8)]=_0x4b83ff(0x10b),_0x5bf969[_0x4b83ff(0x10c)]=function(_0x15f7e8,_0x44f49e){return _0x15f7e8===_0x44f49e;},_0x5bf969[_0x4b83ff(0x10a)]='Playwright',_0x5bf969['mKFWp']='bstackSdkArgs';const _0x338f6b=_0x5bf969;if(_0x338f6b[_0x4b83ff(0xbf)](_0x55f5b1[_0x4b83ff(0xde)][_0x4b83ff(0xd2)],_0x338f6b[_0x4b83ff(0xf8)]))return await _0x55f5b1[_0x4b83ff(0xe8)](_0x1daadd,_0x18ad2d);else{if(_0x338f6b['Cbcoc'](_0x55f5b1[_0x4b83ff(0xde)][_0x4b83ff(0xd2)],_0x338f6b['kZBwr']))return await _0x55f5b1[_0x4b83ff(0xdb)](_0x4b83ff(0xdd)+_0x1daadd['replace'](/arguments/g,_0x338f6b['mKFWp'])+_0x4b83ff(0xef)+JSON[_0x4b83ff(0xaa)](_0x18ad2d)+')');}},exports[a34_0x87fc01(0x114)]=async _0x516665=>{const _0x16b781=a34_0x87fc01,_0x5398c3={};_0x5398c3[_0x16b781(0xb0)]=_0x16b781(0x113),_0x5398c3[_0x16b781(0x101)]=_0x16b781(0xd3),_0x5398c3[_0x16b781(0xb3)]=_0x16b781(0xbd),_0x5398c3['TRYuh']=_0x16b781(0xc2),_0x5398c3[_0x16b781(0xc5)]=_0x16b781(0xfa),_0x5398c3[_0x16b781(0xba)]=_0x16b781(0xc3);const _0x435732=_0x5398c3;_0x516665[_0x16b781(0xec)]&&(_0x516665['accessibilityOptions'][_0x16b781(0xa8)]&&(_0x516665[_0x435732[_0x16b781(0xb0)]]=_0x516665[_0x16b781(0xec)]['wcagVersion']),_0x516665[_0x16b781(0xec)][_0x16b781(0x10d)]&&(_0x516665[_0x435732[_0x16b781(0x101)]]=_0x516665[_0x16b781(0xec)]['scannerProcessingTimeout']),_0x516665[_0x16b781(0xec)][_0x16b781(0xf5)]&&(_0x516665[_0x435732[_0x16b781(0xb3)]]=_0x516665[_0x16b781(0xec)][_0x16b781(0xf5)][_0x16b781(0xc8)],_0x516665[_0x435732[_0x16b781(0xa9)]]=_0x516665['accessibilityOptions'][_0x16b781(0xf5)][_0x16b781(0x116)]));const _0x4f0773=JSON[_0x16b781(0xd7)](process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML'])[_0x16b781(0xbe)];_0x516665[_0x435732[_0x16b781(0xc5)]]=process[_0x16b781(0xce)][_0x16b781(0xfb)],_0x516665[_0x435732[_0x16b781(0xba)]]=_0x4f0773,delete _0x516665[_0x16b781(0xec)];},exports[a34_0x87fc01(0xbc)]=async _0x51ac40=>{const _0x11649b=a34_0x87fc01,_0x45d11a={};_0x45d11a[_0x11649b(0xc7)]=_0x11649b(0xa6),_0x45d11a[_0x11649b(0xb7)]=_0x11649b(0xe0);const _0x4d44c7=_0x45d11a;if(global[_0x11649b(0xe1)])try{logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x51ac40,scripts.performScan)));},{command:'getAccessibilityResults'})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x51ac40,scripts.getResults);})();return res;}catch{return logger[_0x11649b(0xeb)](_0x4d44c7[_0x11649b(0xc7)]),[];}else return logger['warn'](_0x4d44c7[_0x11649b(0xb7)]),[];},exports[a34_0x87fc01(0xca)]=async(_0x1d3665,_0xf49c0a='')=>{const _0x30f19a=a34_0x87fc01;if(global[_0x30f19a(0xe1)])return await PerformanceTester['measureWrapper'](PerformanceA11yEvents[_0x30f19a(0xc1)],async()=>{const _0x112942=_0x30f19a,_0x12ceab={};_0x12ceab['command']=_0xf49c0a,await exports[_0x112942(0xe2)](_0x1d3665,scripts[_0x112942(0xca)],_0x12ceab);},{'command':_0xf49c0a})();},exports[a34_0x87fc01(0x105)]=async _0x37e357=>{const _0x5487c0=a34_0x87fc01,_0xf39efe={};_0xf39efe[_0x5487c0(0xf6)]=_0x5487c0(0xf1),_0xf39efe[_0x5487c0(0x117)]=_0x5487c0(0xd9);const _0x405c3b=_0xf39efe;if(global[_0x5487c0(0xe1)])try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x37e357,scripts.performScan)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x37e357,scripts.getResultsSummary);})();return summaryResults;}catch{return logger['debug'](_0x405c3b[_0x5487c0(0xf6)]),{};}else return logger[_0x5487c0(0xd4)](_0x405c3b['ofMGM']),{};},exports[a34_0x87fc01(0xdc)]=async _0xb5eff9=>{const _0x367d9f=a34_0x87fc01,_0x5f13c6={'jzjQG':function(_0x23114e,_0x20561d){return _0x23114e!==_0x20561d;},'OOBer':_0x367d9f(0xcb),'jSdOY':function(_0x5da3d9,_0x3a85a6){return _0x5da3d9===_0x3a85a6;},'cQWvI':_0x367d9f(0x115),'zoVdE':function(_0x5da686,_0x381af2){return _0x5da686===_0x381af2;},'FlgMz':_0x367d9f(0xad),'YHwpv':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','lOjQf':function(_0x28ab1d,_0x1ee016){return _0x28ab1d(_0x1ee016);},'jzmyL':function(_0x2b6d99,_0x5f2212){return _0x2b6d99===_0x5f2212;},'gDjIK':_0x367d9f(0xfd),'LTfeF':function(_0x4e5f3a,_0x507e46){return _0x4e5f3a>_0x507e46;},'ZfJes':_0x367d9f(0xab)};try{if(!_0x5f13c6[_0x367d9f(0xb1)](_0xb5eff9[_0x367d9f(0xb9)],''))return logger[_0x367d9f(0xd4)](_0x5f13c6[_0x367d9f(0xf2)]),![];const _0x3038a2=_0xb5eff9[_0x367d9f(0xd6)];if(!(_0x5f13c6[_0x367d9f(0xf7)](_0x3038a2,_0x5f13c6[_0x367d9f(0xd0)])||_0x5f13c6[_0x367d9f(0xa5)](_0x3038a2,_0x5f13c6[_0x367d9f(0xea)])))return logger[_0x367d9f(0xd4)](_0x5f13c6[_0x367d9f(0xee)]),![];const _0x15a24d=_0x5f13c6['lOjQf'](parseInt,_0xb5eff9[_0x367d9f(0xed)]);if(!(_0x5f13c6[_0x367d9f(0xac)](_0x15a24d,_0x5f13c6[_0x367d9f(0xbb)])||_0x5f13c6[_0x367d9f(0xb2)](_0x15a24d,0x5e)))return logger['warn'](_0x5f13c6[_0x367d9f(0x107)]),![];}catch(_0x50cd78){logger[_0x367d9f(0xfe)](_0x367d9f(0xe4)+util[_0x367d9f(0xb8)](_0x50cd78));}return!![];},exports['processAccessibilityCaps']=(_0x52e9f8,_0x4917a9,_0x5e8b5a)=>{const _0x1979ae=a34_0x87fc01,_0x3be04a={'QKsCd':function(_0x5fae19){return _0x5fae19();},'XUoLC':_0x1979ae(0xe5),'ePhrH':function(_0xc678e2,_0x404823){return _0xc678e2===_0x404823;},'sibfL':'chrome','UNRLr':function(_0x21c661,_0x26d17d){return _0x21c661===_0x26d17d;},'fuWUE':_0x1979ae(0xad),'oJLdu':_0x1979ae(0x109),'zblBu':'latest','jAyNE':function(_0x5c6ff7,_0xbdd98){return _0x5c6ff7>_0xbdd98;},'eiUEj':_0x1979ae(0xab),'AdLtc':function(_0x4a1d3e,_0x5e646c){return _0x4a1d3e(_0x5e646c);},'xqwqt':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','GupyI':function(_0xa738a7,_0x62fef7){return _0xa738a7+_0x62fef7;}};try{if(_0x3be04a[_0x1979ae(0xdf)](isAccessibilityAutomationSession)){global[_0x1979ae(0xe1)]=!![];!_0x52e9f8[_0x3be04a['XUoLC']]&&(global['accessibilityPlatform']=![]);!(_0x3be04a[_0x1979ae(0x108)](_0x52e9f8[_0x1979ae(0xf3)],_0x3be04a[_0x1979ae(0x110)])||_0x3be04a['UNRLr'](_0x52e9f8[_0x1979ae(0xf3)],_0x3be04a[_0x1979ae(0x118)]))&&(logger[_0x1979ae(0xd4)](_0x3be04a[_0x1979ae(0x103)]),global[_0x1979ae(0xe1)]=![]);!(_0x3be04a[_0x1979ae(0x108)](_0x52e9f8['browser_version'],_0x3be04a[_0x1979ae(0xc4)])||_0x3be04a[_0x1979ae(0xb4)](_0x52e9f8[_0x1979ae(0xed)],0x5e))&&(logger[_0x1979ae(0xd4)](_0x3be04a[_0x1979ae(0xb6)]),global['accessibilityPlatform']=![]);!_0x3be04a[_0x1979ae(0x106)](isUndefined,_0x52e9f8['deviceName'])&&(logger[_0x1979ae(0xd4)](_0x3be04a[_0x1979ae(0x112)]),global[_0x1979ae(0xe1)]=![]);if(!global['accessibilityPlatform']){_0x52e9f8[_0x3be04a['XUoLC']]=![];const _0x772b6b=_0x3be04a[_0x1979ae(0xe9)](_0x4917a9,_0x3be04a[_0x1979ae(0x106)](encodeURIComponent,JSON[_0x1979ae(0xaa)](_0x52e9f8)));_0x5e8b5a&&(_0x5e8b5a[_0x1979ae(0xd8)][_0x1979ae(0xe6)][_0x1979ae(0xf4)]['use'][_0x1979ae(0xd5)][_0x1979ae(0xcd)]=_0x772b6b,_0x5e8b5a['workerInfo'][_0x1979ae(0xf4)][_0x1979ae(0x100)][_0x1979ae(0xd5)][_0x1979ae(0xcd)]=_0x772b6b);}}}catch(_0x4b5845){logger[_0x1979ae(0xfe)](_0x1979ae(0xae)+util[_0x1979ae(0xb8)](_0x4b5845));}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a35_0x336b29=a35_0x3e3e;(function(_0x534c19,_0x24e989){const _0x558e51=a35_0x3e3e,_0x11c29=_0x534c19();while(!![]){try{const _0x2102db=-parseInt(_0x558e51(0x150))/0x1+parseInt(_0x558e51(0x182))/0x2*(parseInt(_0x558e51(0x107))/0x3)+parseInt(_0x558e51(0x101))/0x4*(-parseInt(_0x558e51(0x16f))/0x5)+parseInt(_0x558e51(0x170))/0x6*(parseInt(_0x558e51(0x152))/0x7)+-parseInt(_0x558e51(0x171))/0x8+parseInt(_0x558e51(0x124))/0x9*(-parseInt(_0x558e51(0x104))/0xa)+parseInt(_0x558e51(0xf2))/0xb*(parseInt(_0x558e51(0x142))/0xc);if(_0x2102db===_0x24e989)break;else _0x11c29['push'](_0x11c29['shift']());}catch(_0x1d4bad){_0x11c29['push'](_0x11c29['shift']());}}}(a35_0x5a82,0xe20a6));function a35_0x3e3e(_0x5c15b4,_0xdf4850){const _0x5a82a5=a35_0x5a82();return a35_0x3e3e=function(_0x3e3e69,_0x11526e){_0x3e3e69=_0x3e3e69-0xee;let _0xfcbd7e=_0x5a82a5[_0x3e3e69];return _0xfcbd7e;},a35_0x3e3e(_0x5c15b4,_0xdf4850);}const fs=require('fs'),path=require(a35_0x336b29(0x111)),{spawn}=require(a35_0x336b29(0xfd)),{format}=require('util'),logger=require('../../helpers/logger')['winstonLogger'],{default:BrowserStackSetup}=require(a35_0x336b29(0xff)),helper=require('../../helpers/helper'),utilities=require(a35_0x336b29(0x189)),constants=require('../utils/constants'),{FRAMEWORKS}=require(a35_0x336b29(0x12c)),{getConfigLoaderPath}=require(a35_0x336b29(0xf8)),{checkAccessibilityPlatformConfig}=require(a35_0x336b29(0x134)),{setAccessibilityCapabilities}=require('./accessibility-helper'),{printBuildLink}=require(a35_0x336b29(0x114)),TestDetails=require(a35_0x336b29(0x120)),TestHubHandler=require('../../helpers/testhub/testhubHandler'),PerformanceTester=require('../../helpers/performance/performance-tester'),PerformanceEvents=require(a35_0x336b29(0x10c))[a35_0x336b29(0x18b)],getUserPlaywrightConfig=async(_0xe5aaca,_0x32f212)=>{const _0x51ac3f=a35_0x336b29,_0x4a043a={'NoZzT':function(_0xb701f8){return _0xb701f8();},'ctdGM':function(_0x3b1e60,_0x7305fb){return _0x3b1e60(_0x7305fb);},'rHfki':function(_0x509485,_0x1c6872){return _0x509485(_0x1c6872);},'dvjaW':_0x51ac3f(0x148),'FvnvO':_0x51ac3f(0x164)},_0xe876aa=!helper[_0x51ac3f(0x10b)](_0xe5aaca['config']),_0x553a6d=_0xe876aa?path[_0x51ac3f(0x116)](process[_0x51ac3f(0x18a)](),_0xe5aaca['config']):process['cwd'](),{resolveConfigFile:_0x475936,resolveConfigLocation:_0x46f4f0}=helper['requirePWModule']['apply'](null,_0x4a043a[_0x51ac3f(0x132)](getConfigLoaderPath)),_0x51b9e2=_0x475936?_0x4a043a[_0x51ac3f(0xf1)](_0x475936,_0x553a6d):helper['nestedKeyValue'](_0x4a043a[_0x51ac3f(0x18d)](_0x46f4f0,_0x553a6d),[_0x4a043a[_0x51ac3f(0x173)]]),_0x21d8d1={};if(_0xe876aa){const _0x1ab312=_0x32f212[_0x51ac3f(0x185)](_0x2681a9=>_0x2681a9==='--config'||_0x2681a9==='-c'||_0x2681a9[_0x51ac3f(0x16c)](_0x51ac3f(0x164)));_0x32f212['splice'](_0x1ab312,_0x32f212[_0x1ab312][_0x51ac3f(0x16c)](_0x4a043a[_0x51ac3f(0x122)])?0x1:0x2);}const _0x137b6d={};return _0x137b6d[_0x51ac3f(0x111)]=_0x51b9e2,_0x137b6d[_0x51ac3f(0xf5)]=_0x21d8d1,_0x137b6d;},handleO11yRerun=_0x366d4a=>{const _0x447960=a35_0x336b29,_0x280c81={};_0x280c81['barGG']=_0x447960(0x186);const _0x4fa1fd=_0x280c81,_0x25b5a9=helper[_0x447960(0x14f)](process['env'][_0x447960(0x11f)]);if(_0x25b5a9){const _0x223ce1=process[_0x447960(0x194)][_0x447960(0xf3)],_0x65f72c=[];if(helper[_0x447960(0x139)](_0x223ce1)&&!helper[_0x447960(0x10b)](_0x223ce1)){_0x223ce1[_0x447960(0x151)](',')['map'](_0x7026df=>{const _0x251e98=_0x447960;_0x65f72c[_0x251e98(0x157)]('('+_0x7026df[_0x251e98(0x130)]()+')');});const _0x6e27d3='^'+_0x65f72c[_0x447960(0x158)]('|')+'$';_0x366d4a[_0x447960(0x157)](_0x4fa1fd['barGG'],_0x6e27d3);}}},spawnOriginalProcess=_0x3ceb4f=>{const _0x2558a6=a35_0x336b29,_0x52061f={'zbiNw':function(_0x9849b3,_0x32f66b,_0x37f0d4,_0x383dad){return _0x9849b3(_0x32f66b,_0x37f0d4,_0x383dad);},'TuEZH':_0x2558a6(0x138),'Meitm':_0x2558a6(0xee),'TlIAh':function(_0x18291e,_0x5dcb77){return _0x18291e===_0x5dcb77;},'znWsF':_0x2558a6(0x131),'zrIdc':_0x2558a6(0x10f)};_0x52061f[_0x2558a6(0x103)](spawn,_0x52061f['TuEZH'],[_0x52061f['Meitm'],..._0x3ceb4f[_0x2558a6(0x14b)](0x1)],{'shell':_0x52061f['TlIAh'](process[_0x2558a6(0x168)],_0x52061f[_0x2558a6(0x14a)]),'stdio':_0x52061f[_0x2558a6(0x12a)],'cwd':process[_0x2558a6(0x18a)]()});},isTestCommand=(_0x42f9ae,_0x1f75df)=>{const _0x6b86e9=a35_0x336b29,_0x221b0d={};_0x221b0d['xiCwN']=function(_0x6ef552,_0x41ab54){return _0x6ef552>_0x41ab54;},_0x221b0d[_0x6b86e9(0xfc)]=function(_0x392307,_0x517d7d){return _0x392307===_0x517d7d;},_0x221b0d[_0x6b86e9(0x174)]=_0x6b86e9(0x15a);const _0x3478e7=_0x221b0d;if(_0x3478e7[_0x6b86e9(0x181)](_0x1f75df[_0x6b86e9(0x121)],0x1)&&_0x3478e7[_0x6b86e9(0xfc)](_0x1f75df[0x1],_0x3478e7[_0x6b86e9(0x174)]))return!![];return![];};async function run(_0x67c642,_0x56f15d){const _0x27e8b9=a35_0x336b29,_0x2eb0bb={'EswhV':function(_0x57194d,_0x162fd){return _0x57194d(_0x162fd);},'JGecI':_0x27e8b9(0xfa),'SeOWz':_0x27e8b9(0x195),'SomHG':function(_0x24165f,_0xf018c){return _0x24165f+_0xf018c;},'EOWUY':_0x27e8b9(0x160),'ElOmE':function(_0x3df22c){return _0x3df22c();},'mSpuj':'Error\x20in\x20closing\x20playwright','xwGyy':_0x27e8b9(0x169),'GELKB':'automation','VffHZ':function(_0x542f2c,_0x590244){return _0x542f2c!=_0x590244;},'ksoaw':function(_0xb22d8b,_0x43ebe3,_0x3491ff){return _0xb22d8b(_0x43ebe3,_0x3491ff);},'rUAJN':function(_0x55b9a1,_0x531d73){return _0x55b9a1(_0x531d73);},'elcev':function(_0x265c28,_0x26bb95){return _0x265c28===_0x26bb95;},'pXsRH':'true','Aexho':function(_0x10d2cd,_0x5d7005){return _0x10d2cd(_0x5d7005);},'sRKDB':function(_0x4176e9,_0x3f4eeb){return _0x4176e9(_0x3f4eeb);},'Tmnyg':_0x27e8b9(0x11d),'xJDlL':_0x27e8b9(0x12e),'cLyTD':'playwright-browserstack-sdk.config.js','IkVDh':function(_0x281246,_0x26b4b7){return _0x281246-_0x26b4b7;},'JQNYQ':_0x27e8b9(0x106),'Swdrr':function(_0xeca3e6,_0x212685){return _0xeca3e6>_0x212685;},'EItAx':function(_0x9aedcb,_0x5865a9){return _0x9aedcb+_0x5865a9;},'ExXtF':function(_0x2a4f5b,_0x3b17a4,_0x34721f,_0x45ba71){return _0x2a4f5b(_0x3b17a4,_0x34721f,_0x45ba71);},'Rlivd':_0x27e8b9(0x138),'UPzXq':_0x27e8b9(0xee),'jGhZi':_0x27e8b9(0x15a),'IKxxM':_0x27e8b9(0x100),'LzzsW':function(_0x4b6a7a,_0x255522){return _0x4b6a7a===_0x255522;},'adFFH':_0x27e8b9(0x131),'NvhgZ':_0x27e8b9(0x10f),'RVHgA':_0x27e8b9(0x180),'FkfSg':_0x27e8b9(0x11b),'vQUbf':_0x27e8b9(0x10e),'Ytxiv':_0x27e8b9(0x11c),'cflHg':function(_0x950eb2,_0x9f7847){return _0x950eb2>=_0x9f7847;},'lkRrD':function(_0x481d26,_0x29b82b){return _0x481d26+_0x29b82b;},'ulzMJ':'Error\x20in\x20deleting\x20playwright\x20results','Wfpcq':function(_0x517827,_0x1b9d25){return _0x517827(_0x1b9d25);}};!helper['isFalse'](process['env'][_0x27e8b9(0x147)])&&(process['env'][_0x27e8b9(0x147)]=!![]);process['argv'][_0x27e8b9(0x178)](_0x2eb0bb[_0x27e8b9(0x14d)])&&(process['env'][_0x27e8b9(0x147)]=_0x2eb0bb[_0x27e8b9(0x17c)],_0x56f15d=_0x56f15d[_0x27e8b9(0x13f)](_0x2c9926=>_0x2c9926!==_0x27e8b9(0x11b)));const _0x176483=_0x56f15d[_0x27e8b9(0x102)](_0x2eb0bb[_0x27e8b9(0x166)]);_0x2eb0bb[_0x27e8b9(0x15f)](_0x176483,0x0)&&(process[_0x27e8b9(0x194)][_0x27e8b9(0x17f)]=_0x2eb0bb[_0x27e8b9(0x17c)],_0x56f15d=_0x56f15d[_0x27e8b9(0x13f)](_0x557151=>_0x557151!==_0x27e8b9(0x11c)));try{const _0x5a6db1=path[_0x27e8b9(0x158)](helper[_0x27e8b9(0x128)](),_0x2eb0bb[_0x27e8b9(0x12d)],_0x2eb0bb[_0x27e8b9(0x110)]);fs[_0x27e8b9(0x112)](_0x5a6db1)&&fs[_0x27e8b9(0x172)](_0x5a6db1);}catch(_0x13593f){logger[_0x27e8b9(0x15e)](_0x2eb0bb[_0x27e8b9(0x161)](_0x2eb0bb[_0x27e8b9(0x113)],_0x13593f));}if(!_0x2eb0bb[_0x27e8b9(0x127)](isTestCommand,_0x67c642,_0x56f15d)){_0x2eb0bb[_0x27e8b9(0x176)](spawnOriginalProcess,_0x56f15d);return;}const _0x22cc4b=new BrowserStackSetup(_0x67c642,FRAMEWORKS[_0x27e8b9(0x155)]);await PerformanceTester[_0x27e8b9(0x13e)](PerformanceEvents['SDK_PRE_INITIALIZE'],async()=>{const _0x110ad6=_0x27e8b9,_0x3aeede={'VwWuu':_0x2eb0bb[_0x110ad6(0x12d)],'VrngH':_0x2eb0bb['SeOWz'],'XIOWr':function(_0x55e286,_0x30ab88){const _0x2365dc=_0x110ad6;return _0x2eb0bb[_0x2365dc(0x156)](_0x55e286,_0x30ab88);},'tObhD':_0x2eb0bb['EOWUY'],'NSynV':function(_0x5ac893){const _0xe0143=_0x110ad6;return _0x2eb0bb[_0xe0143(0x140)](_0x5ac893);},'EEvPN':_0x2eb0bb[_0x110ad6(0x192)]};if(!_0x22cc4b[_0x110ad6(0xf5)]){logger[_0x110ad6(0xf7)](_0x2eb0bb[_0x110ad6(0x129)]);return;}await _0x22cc4b[_0x110ad6(0x17a)]();!helper[_0x110ad6(0x10b)](_0x22cc4b[_0x110ad6(0x184)])&&_0x22cc4b[_0x110ad6(0x184)][_0x110ad6(0x136)](_0x2eb0bb[_0x110ad6(0x12b)])&&(process[_0x110ad6(0x194)][_0x110ad6(0x147)]=_0x22cc4b['cliConfig'][_0x110ad6(0xf0)](_0x2eb0bb[_0x110ad6(0x12b)])||!![]);_0x2eb0bb[_0x110ad6(0x18e)](_0x22cc4b[_0x110ad6(0xf5)][_0x110ad6(0x191)],null)&&!helper[_0x110ad6(0x14f)](process['env'][_0x110ad6(0x17f)])&&(process[_0x110ad6(0x194)][_0x110ad6(0x17f)]=process[_0x110ad6(0x194)][_0x110ad6(0x17f)]||_0x22cc4b[_0x110ad6(0xf5)][_0x110ad6(0x191)]);const _0x21c68e=!helper[_0x110ad6(0x16e)](process[_0x110ad6(0x194)]['BROWSERSTACK_TEST_OBSERVABILITY']);let _0x290a50=![];_0x22cc4b['config'][_0x110ad6(0x190)]&&(_0x290a50=!![],process[_0x110ad6(0x194)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x22cc4b[_0x110ad6(0xf5)][_0x110ad6(0x190)]);_0x22cc4b[_0x110ad6(0xf5)][_0x110ad6(0x135)]&&(process[_0x110ad6(0x194)][_0x110ad6(0x16a)]=JSON['stringify'](_0x22cc4b[_0x110ad6(0xf5)][_0x110ad6(0x135)]));const _0x31e43c=_0x56f15d[_0x110ad6(0xef)](),_0x415d28=await _0x2eb0bb['ksoaw'](getUserPlaywrightConfig,_0x67c642,_0x56f15d);if(helper['isUndefined'](_0x415d28)){_0x2eb0bb[_0x110ad6(0x162)](spawnOriginalProcess,_0x31e43c);return;}const _0x4d8479=_0x415d28[_0x110ad6(0x111)]?path[_0x110ad6(0x11e)](_0x415d28[_0x110ad6(0x111)]):process[_0x110ad6(0x18a)]();process[_0x110ad6(0x194)][_0x110ad6(0x15b)]=_0x4d8479,await PerformanceTester['measureWrapper'](PerformanceEvents[_0x110ad6(0x15d)],async()=>{const _0x47461d=_0x110ad6;await TestHubHandler['launchBuild'](FRAMEWORKS[_0x47461d(0x155)],_0x22cc4b),_0x21c68e&&_0x2eb0bb[_0x47461d(0x165)](handleO11yRerun,_0x56f15d);})();let _0x525309=_0x2eb0bb['elcev'](process[_0x110ad6(0x194)][_0x110ad6(0x119)],_0x2eb0bb[_0x110ad6(0x10d)]);_0x525309=_0x525309||_0x2eb0bb[_0x110ad6(0x109)](checkAccessibilityPlatformConfig,_0x22cc4b['config']),process['env'][_0x110ad6(0x119)]=_0x525309;_0x525309&&_0x2eb0bb['sRKDB'](setAccessibilityCapabilities,_0x22cc4b[_0x110ad6(0xf5)]);const _0x2f9b10=path[_0x110ad6(0x158)](_0x415d28[_0x110ad6(0x111)]?path['dirname'](_0x415d28[_0x110ad6(0x111)]):process[_0x110ad6(0x18a)](),_0x2eb0bb[_0x110ad6(0x16d)]);fs[_0x110ad6(0x16b)](_0x2f9b10,helper[_0x110ad6(0x18f)](_0x22cc4b[_0x110ad6(0xf5)])),process[_0x110ad6(0x194)][_0x110ad6(0x12f)]=_0x2f9b10,helper[_0x110ad6(0x193)]();let _0x2fc647='';_0x2eb0bb[_0x110ad6(0x159)](helper[_0x110ad6(0x153)](),constants['PACKAGE_TYPE'][_0x110ad6(0x10a)])?_0x2fc647=_0x2eb0bb[_0x110ad6(0x137)]:_0x2fc647=_0x2eb0bb[_0x110ad6(0x118)];let _0x5f5a94='';if(helper[_0x110ad6(0x14e)](_0x415d28[_0x110ad6(0x111)])){_0x5f5a94=_0x110ad6(0x146);const _0xe50f9f=_0x2fc647[_0x110ad6(0x151)]('.');_0xe50f9f[_0x2eb0bb[_0x110ad6(0x143)](_0xe50f9f['length'],0x1)]='ts',_0x2fc647=_0xe50f9f['join']('.'),logger[_0x110ad6(0x15e)](_0x2eb0bb['SomHG'](_0x2eb0bb[_0x110ad6(0x145)],_0x2fc647));}else _0x5f5a94=_0x110ad6(0x141);const _0x3954ec=path['join'](_0x415d28[_0x110ad6(0x111)]?path[_0x110ad6(0x11e)](_0x415d28[_0x110ad6(0x111)]):process[_0x110ad6(0x18a)](),_0x2fc647);let _0x307b57=_0x415d28['path']?_0x415d28[_0x110ad6(0x111)]:'';_0x307b57=_0x2eb0bb[_0x110ad6(0x187)](_0x307b57['length'],0x0)?path['resolve'](_0x307b57):'',process[_0x110ad6(0x194)][_0x110ad6(0x18c)]=_0x307b57;const _0x670079=helper[_0x110ad6(0x105)](_0x22cc4b[_0x110ad6(0xf5)]);_0x670079&&(_0x5f5a94=_0x2eb0bb[_0x110ad6(0x183)](_0x110ad6(0x175)+_0x670079+_0x110ad6(0xf4),_0x5f5a94));helper[_0x110ad6(0x115)]({},_0x56f15d),fs[_0x110ad6(0x16b)](_0x3954ec,_0x5f5a94),PerformanceTester['end'](PerformanceEvents[_0x110ad6(0x17e)]);const _0x5049ae=_0x2eb0bb[_0x110ad6(0x125)](spawn,_0x2eb0bb[_0x110ad6(0x144)],[_0x2eb0bb[_0x110ad6(0x163)],_0x2eb0bb[_0x110ad6(0xf9)],_0x2eb0bb['IKxxM'],_0x3954ec,..._0x56f15d[_0x110ad6(0x14b)](0x2)],{'shell':_0x2eb0bb[_0x110ad6(0xfe)](process[_0x110ad6(0x168)],_0x2eb0bb['adFFH']),'stdio':_0x2eb0bb[_0x110ad6(0xf6)],'cwd':process[_0x110ad6(0x18a)](),'env':Object['assign']({},process[_0x110ad6(0x194)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper['getConfigPath'](_0x67c642),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x22cc4b[_0x110ad6(0xf5)][_0x110ad6(0x13b)][_0x110ad6(0x13a)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x22cc4b[_0x110ad6(0xf5)][_0x110ad6(0x13b)][_0x110ad6(0x188)],'BROWSERSTACK_LOG_LEVEL':_0x22cc4b['config'][_0x110ad6(0x133)]})}),_0x10ef6a=()=>{const _0x42f280=_0x110ad6;try{const _0x1a60ec=path[_0x42f280(0x158)](helper[_0x42f280(0x128)](),_0x3aeede[_0x42f280(0x14c)],_0x3aeede[_0x42f280(0x13d)]);if(fs[_0x42f280(0x112)](_0x1a60ec)){let _0x3f9171=fs[_0x42f280(0x179)](_0x1a60ec);_0x3f9171=JSON[_0x42f280(0x15c)](_0x3f9171),_0x22cc4b[_0x42f280(0x13c)]=_0x3f9171,fs[_0x42f280(0x172)](_0x1a60ec);}}catch(_0xb61053){logger[_0x42f280(0x15e)](_0x3aeede[_0x42f280(0x108)](_0x3aeede['tObhD'],_0xb61053));}};_0x5049ae['on'](_0x2eb0bb[_0x110ad6(0x167)],async _0x21df44=>{const _0x9dcbbb=_0x110ad6;try{PerformanceTester[_0x9dcbbb(0x117)](PerformanceEvents[_0x9dcbbb(0x149)]),_0x3aeede[_0x9dcbbb(0x17d)](_0x10ef6a),await TestHubHandler[_0x9dcbbb(0x154)](),TestDetails['shutdown'](),_0x3aeede[_0x9dcbbb(0x17d)](printBuildLink),await utilities['finalExecution'](_0x22cc4b),process[_0x9dcbbb(0x17b)]=_0x21df44,logger[_0x9dcbbb(0x15e)]('Playwright\x20process\x20exited\x20with\x20code\x20'+_0x21df44),logger[_0x9dcbbb(0x126)]('Deleting\x20'+_0x3954ec),fs[_0x9dcbbb(0x172)](_0x3954ec);fs[_0x9dcbbb(0x112)](_0x2f9b10)&&(logger[_0x9dcbbb(0x15e)](_0x9dcbbb(0x11a)+_0x2f9b10),fs[_0x9dcbbb(0x172)](_0x2f9b10));const _0x1469b7=fs[_0x9dcbbb(0xfb)](path[_0x9dcbbb(0x158)](helper[_0x9dcbbb(0x128)](),_0x3aeede[_0x9dcbbb(0x14c)]))[_0x9dcbbb(0x13f)](_0x2878be=>_0x2878be[_0x9dcbbb(0x16c)]('trace_'));_0x1469b7[_0x9dcbbb(0x177)](_0x43b153=>{const _0x4fc433=_0x9dcbbb;fs['unlinkSync'](path[_0x4fc433(0x158)](helper[_0x4fc433(0x128)](),_0x3aeede[_0x4fc433(0x14c)],_0x43b153));});}catch(_0x3e9408){logger['debug'](_0x3aeede[_0x9dcbbb(0x108)](_0x3aeede['EEvPN'],_0x3e9408));}});})();}function a35_0x5a82(){const _0x31987e=['Deleting\x20','--disable-browserstack-automation','--disable-test-observability','browserstackSetupConfig.json','dirname','BROWSERSTACK_RERUN','./reporter/test-details','length','FvnvO','exports','10889487vkalPD','ExXtF','info','ksoaw','homedir','xwGyy','zrIdc','GELKB','../../helpers/test-observability/constants','JGecI','playwright-browserstack-sdk.config.cjs','BROWSERSTACK_SETUP_CONFIG_PATH','trim','win32','NoZzT','logLevel','../../helpers/accessibility-automation/helper','accessibilityOptions','has','xJDlL','npx','validateRerunTestList','skipSessionStatus','testContextOptions','errorMessage','VrngH','measureWrapper','filter','ElOmE','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','7596132uuawoi','IkVDh','Rlivd','JQNYQ','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','BROWSERSTACK_AUTOMATION','resolvedConfigFile','SDK_CLEANUP','znWsF','slice','VwWuu','FkfSg','isTypescriptProject','isTrue','385665vnlemU','split','21dXvtEu','getPackageType','stop','PLAYWRIGHT','SomHG','push','join','elcev','test','BROWSERSTACK_PW_CONFIG_DIR','parse','SDK_POST_INITIALIZE','debug','cflHg','Error\x20in\x20getting\x20funnel\x20data\x20results','lkRrD','rUAJN','UPzXq','--config=','EswhV','Ytxiv','RVHgA','platform','BrowserStack\x20config\x20file\x20not\x20found.','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','writeFileSync','startsWith','Tmnyg','isFalse','22465qDtnsa','1821972tGsDic','505448ntGsey','unlinkSync','dvjaW','HkoMq','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','Wfpcq','forEach','includes','readFileSync','initialize','exitCode','vQUbf','NSynV','SDK_SETUP','BROWSERSTACK_TEST_OBSERVABILITY','close','xiCwN','6gqppfS','EItAx','cliConfig','findIndex','--grep','Swdrr','skipSessionName','../../helpers/utilities','cwd','EVENTS','USER_CONFIG_DETAILS_PATH','rHfki','VffHZ','serializeToYamlString','accessibility','testObservability','mSpuj','clearTempPWConfig','env','pw_result.json','playwright','concat','get','ctdGM','33jxnpmP','BROWSERSTACK_RERUN_TESTS','\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();','config','NvhgZ','error','./reporter/pwUtils','jGhZi','.browserstack','readdirSync','gTaGf','child_process','LzzsW','../../helpers/BrowserStackSetup','--config','424FPvWtZ','indexOf','zbiNw','10tmLsOc','getProxyUrl','Updated\x20config\x20file\x20name\x20to\x20-\x20','250890fveSxV','XIOWr','Aexho','MODULE','isUndefined','../../helpers/performance/constants','pXsRH','false','inherit','SeOWz','path','existsSync','ulzMJ','../../helpers/test-observability/utils','filterBrowserstackArgs','resolve','start','cLyTD','BROWSERSTACK_TEST_ACCESSIBILITY_YML'];a35_0x5a82=function(){return _0x31987e;};return a35_0x5a82();}module[a35_0x336b29(0x123)]=run;
|
|
2
|
+
'use strict';const a35_0x54de17=a35_0x50f1;(function(_0x2fb814,_0x3e1a93){const _0x1c9d97=a35_0x50f1,_0xf2626d=_0x2fb814();while(!![]){try{const _0x520c7f=parseInt(_0x1c9d97(0x11a))/0x1*(-parseInt(_0x1c9d97(0x105))/0x2)+parseInt(_0x1c9d97(0x169))/0x3+-parseInt(_0x1c9d97(0x11b))/0x4+parseInt(_0x1c9d97(0x15f))/0x5*(-parseInt(_0x1c9d97(0x10b))/0x6)+parseInt(_0x1c9d97(0x1a7))/0x7+-parseInt(_0x1c9d97(0x199))/0x8+-parseInt(_0x1c9d97(0x12c))/0x9*(-parseInt(_0x1c9d97(0x179))/0xa);if(_0x520c7f===_0x3e1a93)break;else _0xf2626d['push'](_0xf2626d['shift']());}catch(_0x12456a){_0xf2626d['push'](_0xf2626d['shift']());}}}(a35_0x59b1,0xcdba4));function a35_0x59b1(){const _0x51f14f=['readdirSync','../../helpers/testhub/testhubHandler','push','VIgdM','TllYk','resolvedConfigFile','assign','BrowserStack\x20config\x20file\x20not\x20found.','../../helpers/BrowserStackSetup','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','8550848mOuCXE','writeFileSync','WsAJE','homedir','child_process','concat','filter','testObservability','length','vFhpg','platform','browserstackSetupConfig.json','BROWSERSTACK_PW_CONFIG_DIR','existsSync','9166752XBtMQi','--disable-test-observability','launchBuild','MCfvJ','isTypescriptProject','env','14GoQftW','idqaP','Updated\x20config\x20file\x20name\x20to\x20-\x20','startsWith','isUndefined','cwd','3210losJWn','BROWSERSTACK_RERUN','splice','skipSessionStatus','testContextOptions','../../helpers/performance/constants','cliConfig','TAjqb','RrXYb','SDK_PRE_INITIALIZE','path','requirePWModule','VsOUC','inherit','HBRhR','35487ryxgtO','1746632cTPiku','jPtmE','BROWSERSTACK_SETUP_CONFIG_PATH','resolve','XfEZA','slice','SamhM','unlinkSync','SDK_POST_INITIALIZE','PLAYWRIGHT','daGzT','BfxxX','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','getProxyUrl','BROWSERSTACK_TEST_ACCESSIBILITY_YML','debug','HvVbN','10665gGPQvT','logLevel','QaqWr','parse','has','isFalse','MODULE','exitCode','win32','XQhsP','Deleting\x20','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','../../helpers/test-observability/constants','errorMessage','AikBF','util','CHQyh','.browserstack','USER_CONFIG_DETAILS_PATH','winstonLogger','BROWSERSTACK_RERUN_TESTS','config','../../helpers/accessibility-automation/helper','skipSessionName','EVENTS','accessibilityOptions','measureWrapper','mSMKQ','map','neRpS','LAJIS','TiJvj','isTrue','DUzrn','JyHnQ','filterBrowserstackArgs','pw_result.json','PACKAGE_TYPE','\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();','--config','accessibility','getConfigPath','dirname','zxBQt','playwright-browserstack-sdk.config.cjs','qapMA','exports','YqxPG','IonqK','qRbDL','trace_','6025yIqPWQ','rRWfZ','nLycf','WypNX','test','trim','Bqqvu','ODaaj','XcYvz','Error\x20in\x20getting\x20funnel\x20data\x20results','4590021LhyBdS','./reporter/pwUtils','false','BROWSERSTACK_TEST_OBSERVABILITY','ybSUT','serializeToYamlString','./accessibility-helper','../../helpers/utilities','--config=','shutdown','join','ruOYB','VEfdC','argv','get','end','3390gJMQQK','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','../../helpers/helper','BQweA','bgtnA','BROWSERSTACK_AUTOMATION','Playwright\x20process\x20exited\x20with\x20code\x20','--grep','playwright','automation','IAlTR','true','--disable-browserstack-automation','AphfV','../../helpers/logger','initialize','npx','includes','split','../../helpers/test-observability/utils','hVCCk','error'];a35_0x59b1=function(){return _0x51f14f;};return a35_0x59b1();}const fs=require('fs'),path=require(a35_0x54de17(0x115)),{spawn}=require(a35_0x54de17(0x19d)),{format}=require(a35_0x54de17(0x13b)),logger=require(a35_0x54de17(0x187))[a35_0x54de17(0x13f)],{default:BrowserStackSetup}=require(a35_0x54de17(0x197)),helper=require(a35_0x54de17(0x17b)),utilities=require(a35_0x54de17(0x170)),constants=require('../utils/constants'),{FRAMEWORKS}=require(a35_0x54de17(0x138)),{getConfigLoaderPath}=require(a35_0x54de17(0x16a)),{checkAccessibilityPlatformConfig}=require(a35_0x54de17(0x142)),{setAccessibilityCapabilities}=require(a35_0x54de17(0x16f)),{printBuildLink}=require(a35_0x54de17(0x18c)),TestDetails=require('./reporter/test-details'),TestHubHandler=require(a35_0x54de17(0x190)),PerformanceTester=require('../../helpers/performance/performance-tester'),PerformanceEvents=require(a35_0x54de17(0x110))[a35_0x54de17(0x144)],getUserPlaywrightConfig=async(_0x441ed2,_0x3456d0)=>{const _0x98538=a35_0x54de17,_0x14770c={'qRbDL':function(_0xc0c21b){return _0xc0c21b();},'AphfV':function(_0x1e8642,_0x1b8d18){return _0x1e8642(_0x1b8d18);},'nLycf':_0x98538(0x194),'zxBQt':'--config='},_0x2d55ec=!helper['isUndefined'](_0x441ed2[_0x98538(0x141)]),_0xaf7caa=_0x2d55ec?path['resolve'](process[_0x98538(0x10a)](),_0x441ed2['config']):process[_0x98538(0x10a)](),{resolveConfigFile:_0x15790e,resolveConfigLocation:_0x97bc15}=helper[_0x98538(0x116)]['apply'](null,_0x14770c[_0x98538(0x15d)](getConfigLoaderPath)),_0x31063e=_0x15790e?_0x14770c[_0x98538(0x186)](_0x15790e,_0xaf7caa):helper['nestedKeyValue'](_0x14770c[_0x98538(0x186)](_0x97bc15,_0xaf7caa),[_0x14770c[_0x98538(0x161)]]),_0x3d17f9={};if(_0x2d55ec){const _0x2b58d5=_0x3456d0['findIndex'](_0x54b0db=>_0x54b0db==='--config'||_0x54b0db==='-c'||_0x54b0db[_0x98538(0x108)](_0x98538(0x171)));_0x3456d0[_0x98538(0x10d)](_0x2b58d5,_0x3456d0[_0x2b58d5][_0x98538(0x108)](_0x14770c[_0x98538(0x157)])?0x1:0x2);}const _0x812e4c={};return _0x812e4c['path']=_0x31063e,_0x812e4c[_0x98538(0x141)]=_0x3d17f9,_0x812e4c;},handleO11yRerun=_0x1f6295=>{const _0x47b748=a35_0x54de17,_0x351e90={};_0x351e90[_0x47b748(0x15b)]=_0x47b748(0x180);const _0x3c799f=_0x351e90,_0x404afa=helper['isTrue'](process[_0x47b748(0x104)][_0x47b748(0x10c)]);if(_0x404afa){const _0x2ad5c2=process[_0x47b748(0x104)][_0x47b748(0x140)],_0x88a50f=[];if(helper['validateRerunTestList'](_0x2ad5c2)&&!helper[_0x47b748(0x109)](_0x2ad5c2)){_0x2ad5c2['split'](',')[_0x47b748(0x148)](_0x33a111=>{const _0x3991f4=_0x47b748;_0x88a50f['push']('('+_0x33a111[_0x3991f4(0x164)]()+')');});const _0x3f097a='^'+_0x88a50f['join']('|')+'$';_0x1f6295[_0x47b748(0x191)](_0x3c799f[_0x47b748(0x15b)],_0x3f097a);}}},spawnOriginalProcess=_0x349b7f=>{const _0x29acdb=a35_0x54de17,_0x461605={'gbYgD':function(_0x5377b0,_0x261815,_0xe72faf,_0x315aee){return _0x5377b0(_0x261815,_0xe72faf,_0x315aee);},'WypNX':_0x29acdb(0x189),'tOdsl':_0x29acdb(0x181),'daGzT':function(_0x399f2a,_0x4d892c){return _0x399f2a===_0x4d892c;},'IonqK':_0x29acdb(0x134),'AikBF':_0x29acdb(0x118)};_0x461605['gbYgD'](spawn,_0x461605[_0x29acdb(0x162)],[_0x461605['tOdsl'],..._0x349b7f[_0x29acdb(0x120)](0x1)],{'shell':_0x461605[_0x29acdb(0x125)](process[_0x29acdb(0x1a3)],_0x461605[_0x29acdb(0x15c)]),'stdio':_0x461605[_0x29acdb(0x13a)],'cwd':process[_0x29acdb(0x10a)]()});},isTestCommand=(_0x13fd40,_0x2c412c)=>{const _0x19beb4=a35_0x54de17,_0x111cb8={};_0x111cb8[_0x19beb4(0x119)]=function(_0xa2254b,_0x29ba91){return _0xa2254b>_0x29ba91;},_0x111cb8[_0x19beb4(0x112)]=function(_0x3d784c,_0x468b65){return _0x3d784c===_0x468b65;},_0x111cb8[_0x19beb4(0x1a2)]=_0x19beb4(0x163);const _0x58bf7c=_0x111cb8;if(_0x58bf7c[_0x19beb4(0x119)](_0x2c412c[_0x19beb4(0x1a1)],0x1)&&_0x58bf7c[_0x19beb4(0x112)](_0x2c412c[0x1],_0x58bf7c['vFhpg']))return!![];return![];};async function run(_0x24d24f,_0x5caa41){const _0x11325c=a35_0x54de17,_0x2c2a26={'SamhM':function(_0x498f9d,_0x53a7f2){return _0x498f9d(_0x53a7f2);},'jPtmE':_0x11325c(0x13d),'LAJIS':_0x11325c(0x150),'bgtnA':function(_0x5ac196,_0x4994bb){return _0x5ac196+_0x4994bb;},'HvVbN':_0x11325c(0x168),'neRpS':function(_0x3d502b){return _0x3d502b();},'zogVk':function(_0x5956d5,_0x303254){return _0x5956d5+_0x303254;},'idqaP':'Error\x20in\x20closing\x20playwright','DUzrn':_0x11325c(0x196),'IAlTR':_0x11325c(0x182),'hVCCk':function(_0x1d3467,_0x2c2c24){return _0x1d3467!=_0x2c2c24;},'CHQyh':function(_0x66fbf4,_0x392d7a,_0x4a33d7){return _0x66fbf4(_0x392d7a,_0x4a33d7);},'VEfdC':function(_0xb45464,_0x689001){return _0xb45464===_0x689001;},'RrXYb':_0x11325c(0x184),'TllYk':_0x11325c(0x1a4),'WsAJE':_0x11325c(0x158),'MCfvJ':'playwright-browserstack-sdk.config.js','BfxxX':function(_0x2f0501,_0x5b47a9){return _0x2f0501-_0x5b47a9;},'ybSUT':_0x11325c(0x107),'rRWfZ':function(_0x37e088,_0xbb6b46){return _0x37e088>_0xbb6b46;},'VIgdM':function(_0x2d1dc5,_0x1adde0){return _0x2d1dc5+_0x1adde0;},'mSMKQ':function(_0x32be23,_0x21d52c,_0x158d55,_0x52e6ed){return _0x32be23(_0x21d52c,_0x158d55,_0x52e6ed);},'VsOUC':_0x11325c(0x189),'FTONE':'playwright','XcYvz':_0x11325c(0x163),'YUhgI':_0x11325c(0x153),'Bqqvu':function(_0x17ae47,_0x3b8bdc){return _0x17ae47===_0x3b8bdc;},'QaqWr':_0x11325c(0x134),'qapMA':_0x11325c(0x118),'ODaaj':'close','ruOYB':'--disable-browserstack-automation','BQweA':_0x11325c(0x16b),'dCuKT':_0x11325c(0x1a8),'JyHnQ':function(_0x70307c,_0x337033){return _0x70307c>=_0x337033;},'TiJvj':'Error\x20in\x20deleting\x20playwright\x20results','XfEZA':function(_0x6a110e,_0x3c725c){return _0x6a110e(_0x3c725c);}};!helper[_0x11325c(0x131)](process[_0x11325c(0x104)][_0x11325c(0x17e)])&&(process[_0x11325c(0x104)][_0x11325c(0x17e)]=!![]);process[_0x11325c(0x176)][_0x11325c(0x18a)](_0x2c2a26[_0x11325c(0x174)])&&(process['env'][_0x11325c(0x17e)]=_0x2c2a26[_0x11325c(0x17c)],_0x5caa41=_0x5caa41[_0x11325c(0x19f)](_0x4234a1=>_0x4234a1!==_0x11325c(0x185)));const _0x34e7f7=_0x5caa41['indexOf'](_0x2c2a26['dCuKT']);_0x2c2a26[_0x11325c(0x14e)](_0x34e7f7,0x0)&&(process['env'][_0x11325c(0x16c)]=_0x2c2a26[_0x11325c(0x17c)],_0x5caa41=_0x5caa41['filter'](_0x145f86=>_0x145f86!==_0x11325c(0x1a8)));try{const _0x577c19=path[_0x11325c(0x173)](helper[_0x11325c(0x19c)](),_0x2c2a26[_0x11325c(0x11c)],_0x2c2a26[_0x11325c(0x14a)]);fs[_0x11325c(0x1a6)](_0x577c19)&&fs['unlinkSync'](_0x577c19);}catch(_0x3e9611){logger[_0x11325c(0x12a)](_0x2c2a26[_0x11325c(0x192)](_0x2c2a26[_0x11325c(0x14b)],_0x3e9611));}if(!_0x2c2a26[_0x11325c(0x13c)](isTestCommand,_0x24d24f,_0x5caa41)){_0x2c2a26[_0x11325c(0x11f)](spawnOriginalProcess,_0x5caa41);return;}const _0x560ae4=new BrowserStackSetup(_0x24d24f,FRAMEWORKS[_0x11325c(0x124)]);await PerformanceTester[_0x11325c(0x146)](PerformanceEvents[_0x11325c(0x114)],async()=>{const _0x21282c=_0x11325c,_0x4f2a36={};_0x4f2a36[_0x21282c(0x135)]=_0x2c2a26['jPtmE'];const _0x56f0da=_0x4f2a36;if(!_0x560ae4['config']){logger[_0x21282c(0x18e)](_0x2c2a26[_0x21282c(0x14d)]);return;}await _0x560ae4[_0x21282c(0x188)]();!helper[_0x21282c(0x109)](_0x560ae4[_0x21282c(0x111)])&&_0x560ae4['cliConfig'][_0x21282c(0x130)](_0x2c2a26[_0x21282c(0x183)])&&(process['env'][_0x21282c(0x17e)]=_0x560ae4[_0x21282c(0x111)][_0x21282c(0x177)](_0x2c2a26[_0x21282c(0x183)])||!![]);_0x2c2a26[_0x21282c(0x18d)](_0x560ae4[_0x21282c(0x141)]['testObservability'],null)&&!helper[_0x21282c(0x14c)](process[_0x21282c(0x104)][_0x21282c(0x16c)])&&(process[_0x21282c(0x104)][_0x21282c(0x16c)]=process[_0x21282c(0x104)][_0x21282c(0x16c)]||_0x560ae4['config'][_0x21282c(0x1a0)]);const _0x19b32b=!helper['isFalse'](process['env'][_0x21282c(0x16c)]);let _0x19d3d7=![];_0x560ae4[_0x21282c(0x141)][_0x21282c(0x154)]&&(_0x19d3d7=!![],process[_0x21282c(0x104)][_0x21282c(0x129)]=_0x560ae4[_0x21282c(0x141)][_0x21282c(0x154)]);_0x560ae4[_0x21282c(0x141)][_0x21282c(0x145)]&&(process['env'][_0x21282c(0x198)]=JSON['stringify'](_0x560ae4[_0x21282c(0x141)][_0x21282c(0x145)]));const _0x4757dd=_0x5caa41[_0x21282c(0x19e)](),_0x538cdc=await _0x2c2a26[_0x21282c(0x13c)](getUserPlaywrightConfig,_0x24d24f,_0x5caa41);if(helper['isUndefined'](_0x538cdc)){_0x2c2a26[_0x21282c(0x121)](spawnOriginalProcess,_0x4757dd);return;}const _0xa5ece7=_0x538cdc['path']?path[_0x21282c(0x156)](_0x538cdc['path']):process[_0x21282c(0x10a)]();process[_0x21282c(0x104)][_0x21282c(0x1a5)]=_0xa5ece7,await PerformanceTester[_0x21282c(0x146)](PerformanceEvents[_0x21282c(0x123)],async()=>{const _0x399110=_0x21282c;await TestHubHandler[_0x399110(0x1a9)](FRAMEWORKS['PLAYWRIGHT'],_0x560ae4),_0x19b32b&&_0x2c2a26['SamhM'](handleO11yRerun,_0x5caa41);})();let _0x1b67f1=_0x2c2a26[_0x21282c(0x175)](process['env'][_0x21282c(0x129)],_0x2c2a26[_0x21282c(0x113)]);_0x1b67f1=_0x1b67f1||_0x2c2a26[_0x21282c(0x121)](checkAccessibilityPlatformConfig,_0x560ae4[_0x21282c(0x141)]),process[_0x21282c(0x104)][_0x21282c(0x129)]=_0x1b67f1;_0x1b67f1&&_0x2c2a26[_0x21282c(0x121)](setAccessibilityCapabilities,_0x560ae4[_0x21282c(0x141)]);const _0x523109=path[_0x21282c(0x173)](_0x538cdc[_0x21282c(0x115)]?path[_0x21282c(0x156)](_0x538cdc['path']):process[_0x21282c(0x10a)](),_0x2c2a26[_0x21282c(0x193)]);fs[_0x21282c(0x19a)](_0x523109,helper[_0x21282c(0x16e)](_0x560ae4[_0x21282c(0x141)])),process[_0x21282c(0x104)][_0x21282c(0x11d)]=_0x523109,helper['clearTempPWConfig']();let _0x2a7856='';_0x2c2a26[_0x21282c(0x175)](helper['getPackageType'](),constants[_0x21282c(0x151)][_0x21282c(0x132)])?_0x2a7856=_0x2c2a26[_0x21282c(0x19b)]:_0x2a7856=_0x2c2a26[_0x21282c(0x1aa)];let _0x374f6c='';if(helper[_0x21282c(0x1ab)](_0x538cdc[_0x21282c(0x115)])){_0x374f6c=_0x21282c(0x137);const _0x458783=_0x2a7856[_0x21282c(0x18b)]('.');_0x458783[_0x2c2a26[_0x21282c(0x126)](_0x458783[_0x21282c(0x1a1)],0x1)]='ts',_0x2a7856=_0x458783[_0x21282c(0x173)]('.'),logger['debug'](_0x2c2a26[_0x21282c(0x17d)](_0x2c2a26[_0x21282c(0x16d)],_0x2a7856));}else _0x374f6c=_0x21282c(0x17a);const _0x14dafe=path[_0x21282c(0x173)](_0x538cdc['path']?path[_0x21282c(0x156)](_0x538cdc[_0x21282c(0x115)]):process[_0x21282c(0x10a)](),_0x2a7856);let _0x2943a7=_0x538cdc[_0x21282c(0x115)]?_0x538cdc['path']:'';_0x2943a7=_0x2c2a26[_0x21282c(0x160)](_0x2943a7['length'],0x0)?path[_0x21282c(0x11e)](_0x2943a7):'',process[_0x21282c(0x104)][_0x21282c(0x13e)]=_0x2943a7;const _0x28888d=helper[_0x21282c(0x128)](_0x560ae4['config']);_0x28888d&&(_0x374f6c=_0x2c2a26['VIgdM'](_0x21282c(0x127)+_0x28888d+_0x21282c(0x152),_0x374f6c));helper[_0x21282c(0x14f)]({},_0x5caa41),fs[_0x21282c(0x19a)](_0x14dafe,_0x374f6c),PerformanceTester[_0x21282c(0x178)](PerformanceEvents['SDK_SETUP']);const _0x4c5a91=_0x2c2a26[_0x21282c(0x147)](spawn,_0x2c2a26[_0x21282c(0x117)],[_0x2c2a26['FTONE'],_0x2c2a26[_0x21282c(0x167)],_0x2c2a26['YUhgI'],_0x14dafe,..._0x5caa41[_0x21282c(0x120)](0x2)],{'shell':_0x2c2a26[_0x21282c(0x165)](process[_0x21282c(0x1a3)],_0x2c2a26[_0x21282c(0x12e)]),'stdio':_0x2c2a26[_0x21282c(0x159)],'cwd':process['cwd'](),'env':Object[_0x21282c(0x195)]({},process[_0x21282c(0x104)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x21282c(0x155)](_0x24d24f),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x560ae4[_0x21282c(0x141)][_0x21282c(0x10f)][_0x21282c(0x10e)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x560ae4[_0x21282c(0x141)][_0x21282c(0x10f)][_0x21282c(0x143)],'BROWSERSTACK_LOG_LEVEL':_0x560ae4[_0x21282c(0x141)][_0x21282c(0x12d)]})}),_0x7e6fa4=()=>{const _0x90272b=_0x21282c;try{const _0x38ca4e=path[_0x90272b(0x173)](helper[_0x90272b(0x19c)](),_0x2c2a26['jPtmE'],_0x2c2a26[_0x90272b(0x14a)]);if(fs['existsSync'](_0x38ca4e)){let _0x291707=fs['readFileSync'](_0x38ca4e);_0x291707=JSON[_0x90272b(0x12f)](_0x291707),_0x560ae4[_0x90272b(0x139)]=_0x291707,fs['unlinkSync'](_0x38ca4e);}}catch(_0x5d0b34){logger[_0x90272b(0x12a)](_0x2c2a26[_0x90272b(0x17d)](_0x2c2a26[_0x90272b(0x12b)],_0x5d0b34));}};_0x4c5a91['on'](_0x2c2a26[_0x21282c(0x166)],async _0x1f124b=>{const _0x49f63c=_0x21282c;try{PerformanceTester['start'](PerformanceEvents['SDK_CLEANUP']),_0x2c2a26[_0x49f63c(0x149)](_0x7e6fa4),await TestHubHandler['stop'](),TestDetails[_0x49f63c(0x172)](),_0x2c2a26[_0x49f63c(0x149)](printBuildLink),await utilities['finalExecution'](_0x560ae4),process[_0x49f63c(0x133)]=_0x1f124b,logger['debug'](_0x49f63c(0x17f)+_0x1f124b),logger['info'](_0x49f63c(0x136)+_0x14dafe),fs['unlinkSync'](_0x14dafe);fs[_0x49f63c(0x1a6)](_0x523109)&&(logger[_0x49f63c(0x12a)](_0x49f63c(0x136)+_0x523109),fs[_0x49f63c(0x122)](_0x523109));const _0x557c5e=fs[_0x49f63c(0x18f)](path[_0x49f63c(0x173)](helper[_0x49f63c(0x19c)](),_0x2c2a26['jPtmE']))['filter'](_0x54da17=>_0x54da17['startsWith'](_0x49f63c(0x15e)));_0x557c5e['forEach'](_0x2a501e=>{const _0x34a121=_0x49f63c;fs[_0x34a121(0x122)](path[_0x34a121(0x173)](helper[_0x34a121(0x19c)](),_0x56f0da[_0x34a121(0x135)],_0x2a501e));});}catch(_0x3b3a49){logger[_0x49f63c(0x12a)](_0x2c2a26['zogVk'](_0x2c2a26[_0x49f63c(0x106)],_0x3b3a49));}});})();}function a35_0x50f1(_0x3e2142,_0x579c4a){const _0x59b16b=a35_0x59b1();return a35_0x50f1=function(_0x50f194,_0x1013ef){_0x50f194=_0x50f194-0x104;let _0x209122=_0x59b16b[_0x50f194];return _0x209122;},a35_0x50f1(_0x3e2142,_0x579c4a);}module[a35_0x54de17(0x15a)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a36_0x41c761=a36_0x4c0f;function a36_0x4c0f(_0x42d609,_0x4f14ab){const _0x4914ac=a36_0x4914();return a36_0x4c0f=function(_0x4c0f08,_0x3baad7){_0x4c0f08=_0x4c0f08-0x168;let _0x513b91=_0x4914ac[_0x4c0f08];return _0x513b91;},a36_0x4c0f(_0x42d609,_0x4f14ab);}(function(_0x3d7ef4,_0x1fb855){const _0x5a8191=a36_0x4c0f,_0x45172e=_0x3d7ef4();while(!![]){try{const _0x586bc1=parseInt(_0x5a8191(0x17a))/0x1+-parseInt(_0x5a8191(0x179))/0x2+-parseInt(_0x5a8191(0x186))/0x3*(parseInt(_0x5a8191(0x185))/0x4)+-parseInt(_0x5a8191(0x18c))/0x5+-parseInt(_0x5a8191(0x174))/0x6*(parseInt(_0x5a8191(0x191))/0x7)+-parseInt(_0x5a8191(0x177))/0x8*(parseInt(_0x5a8191(0x172))/0x9)+parseInt(_0x5a8191(0x190))/0xa*(parseInt(_0x5a8191(0x17e))/0xb);if(_0x586bc1===_0x1fb855)break;else _0x45172e['push'](_0x45172e['shift']());}catch(_0x8b18e2){_0x45172e['push'](_0x45172e['shift']());}}}(a36_0x4914,0x73868));const util=require(a36_0x41c761(0x16a)),child_process=require('child_process'),{FRAMEWORKS}=require(a36_0x41c761(0x194)),{getFrameworkVersion,debug}=require(a36_0x41c761(0x188)),helper=require(a36_0x41c761(0x181)),{getLoadUtilsPath,getForkProcessPath}=require(a36_0x41c761(0x180)),{mockIsWorkerRedundant}=require('./patches'),logger=require('../../helpers/logger')['winstonLogger'];module[a36_0x41c761(0x18a)]=async function(_0x54fce3){const _0x544606=a36_0x41c761,_0xcbb9b={'HJfIl':function(_0x291948,_0x2f0a4b){return _0x291948(_0x2f0a4b);},'iOAcP':function(_0x502ef8){return _0x502ef8();},'RMFrr':_0x544606(0x18b),'sDCCj':function(_0x28ef82){return _0x28ef82();},'kEPvB':function(_0x5f0d4d,_0x2cb017){return _0x5f0d4d(_0x2cb017);},'GLpSd':_0x544606(0x16d),'OPdzb':function(_0x3026e2,_0xc03e33){return _0x3026e2>=_0xc03e33;},'FUcjL':_0x544606(0x17f),'qLUXR':function(_0x7cc2d4,_0x376c1a,_0x4d0c6a){return _0x7cc2d4(_0x376c1a,_0x4d0c6a);},'pcvKH':function(_0x1d9fc4,_0x1cf19b){return _0x1d9fc4!==_0x1cf19b;},'iEeSq':'function','gplLK':_0x544606(0x17d),'Kavom':function(_0x662314,_0x3cf215){return _0x662314(_0x3cf215);}},_0x15ea4b=child_process[_0x544606(0x168)];if(helper[_0x544606(0x170)]())try{_0xcbb9b[_0x544606(0x171)](mockIsWorkerRedundant);}catch(_0x56a6c4){logger[_0x544606(0x183)](_0x544606(0x192)+util[_0x544606(0x169)](_0x56a6c4));}child_process[_0x544606(0x168)]=function(){const _0x573459=_0x544606;return _0xcbb9b[_0x573459(0x16f)](debug,_0x573459(0x176)+arguments[0x0]),arguments[0x0][_0x573459(0x189)](_0xcbb9b[_0x573459(0x171)](getForkProcessPath))?arguments[0x0]=require['resolve'](_0xcbb9b[_0x573459(0x18d)]):logger['error']('Path\x20'+_0xcbb9b['sDCCj'](getForkProcessPath)+'\x20is\x20not\x20found'),_0x15ea4b['apply'](null,arguments);};if(process['env']['BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP']){_0xcbb9b[_0x544606(0x182)](debug,_0xcbb9b[_0x544606(0x18e)]);try{const {loadGlobalHook:_0x35e2ae}=helper[_0x544606(0x16b)][_0x544606(0x17b)](null,_0xcbb9b[_0x544606(0x171)](getLoadUtilsPath)),_0x256023=_0xcbb9b['kEPvB'](getFrameworkVersion,FRAMEWORKS['PLAYWRIGHT']);let _0x3d899b=_0x54fce3;if(_0xcbb9b[_0x544606(0x193)](helper['compareVersions'](_0x256023,_0xcbb9b[_0x544606(0x187)]),0x0)){const _0x19a9d5={};_0x19a9d5[_0x544606(0x18f)]=_0x54fce3,_0x3d899b=_0x19a9d5;}const _0x264238=await _0xcbb9b[_0x544606(0x17c)](_0x35e2ae,_0x3d899b,process[_0x544606(0x173)][_0x544606(0x175)]);if(_0xcbb9b[_0x544606(0x16e)](typeof _0x264238,_0xcbb9b[_0x544606(0x178)]))throw new Error(_0xcbb9b[_0x544606(0x184)]);return _0x264238['apply'](null,arguments);}catch(_0x478ae8){_0xcbb9b[_0x544606(0x195)](debug,'Error\x20in\x20calling\x20existing\x20global\x20setup:\x20'+_0x478ae8[_0x544606(0x16c)]());}}};function a36_0x4914(){const _0x55dd2e=['gplLK','376672VcGJFe','3oYNzNU','FUcjL','../../helpers/test-observability/utils','includes','exports','./mock-process.js','2666405iGGhwI','RMFrr','GLpSd','config','49030qbpxQq','243509UXGLpA','Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20','OPdzb','../../helpers/test-observability/constants','Kavom','fork','format','util','requirePWModule','toString','Running\x20existing\x20global\x20setup','pcvKH','HJfIl','isHandlePWErrorSet','iOAcP','1287sFjeTS','env','24tRlEiZ','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','Call\x20to\x20child\x20fork\x20with\x20args\x20','5688AsPVph','iEeSq','1452556kRAmug','778251gMQwTU','apply','qLUXR','Not\x20able\x20to\x20import\x20globalSetup','2893KHkTMZ','1.33.0','./reporter/pwUtils','../../helpers/helper','kEPvB','debug'];a36_0x4914=function(){return _0x55dd2e;};return a36_0x4914();}
|