browserstack-node-sdk 1.34.28 → 1.34.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -60
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance-tester.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function a29_0x3a87(){const _0x53ef5a=['qwvge','SRmhs','qvvii','build','vFJRV','session_','object','capabilities_','GZGna','Proxy\x20set\x20to\x20','debug','New\x20hub\x20url\x20set\x20to\x20','../../../helpers/patchHelpers','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','__setBrowserOptions','YvIUv','proxySettings','GjtIy','401552HFyNbW','newHubUrl','setLogLevel','edgeOptions_','mKCOg','rOmFx','mergeDeep','__driver','../../../helpers/logger','MJnta','browserStackLogLevel','options_','../../../helpers/helper','edgeOptions','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','sbTRM','../../../bin/utils/constants','chromeOptions_','XVHRS','98398rsEoxA','quitCount_','TGBOj','split','CAPABILITY_KEY','setCapabilities','requireSeleniumWebdriver','then','getAccessibilityResults','updateHubUrl','requireHttpClient','1160756BOYOyd','push','exports','setServer','gyWgd','moz:firefoxOptions','HttpClient','isPacProxy','ONzDK','browserstackAgentObservability','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','isBrowserstackInfra','capability','OOVXa','info','firefoxOptions_','caps_','MhKKv','ECVal','./helpers/patchHelper','Bsvtr','sGidg','DeSiu','/wd/hub','global','Hub\x20url\x20set\x20to\x20','logLevel','getGlobal','getHttpAgent','safariOptions_','optimalHubUrl','FKpbH','../../../helpers/globals','se:ieOptions','set','storeOptimalHubUrl','klVqj','MfXKB','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','kWbLQ','1|5|3|4|2|0','TFavM','vjlhP','FWiFy','mkXgL','1668632vTVbBo','getAccessibilityResultsSummary','loWkF','108eVbHkM','/session','1669060PexBRp','ZijJh','proxy_','originalBuilder','firefoxOptions','goog:chromeOptions','21ovOwjN','mVlAO','winstonLogger','__drivers','ieOptions_','../accessibility-automation/helper','send','ieOptions','../../../hubAllocationMethods','Kglvo','yfOVa','getHubUrl','proxyUrl','getRequestOptions','safari.options','__driversArray','Builder','get','PKerL','url_','chromeOptions','7017291RZBrmN','isUndefined','178283CrEmkx','../../../helpers/accessibility-automation/helper','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND'];a29_0x3a87=function(){return _0x53ef5a;};return a29_0x3a87();}function a29_0x3e1d(_0x1f4ecc,_0x48ae9d){const _0x3a871e=a29_0x3a87();return a29_0x3e1d=function(_0x3e1d6b,_0x4ab2b9){_0x3e1d6b=_0x3e1d6b-0xc2;let _0x5b824a=_0x3a871e[_0x3e1d6b];return _0x5b824a;},a29_0x3e1d(_0x1f4ecc,_0x48ae9d);}const a29_0x139dde=a29_0x3e1d;(function(_0x24dc85,_0x1841e5){const _0x249363=a29_0x3e1d,_0x33cb46=_0x24dc85();while(!![]){try{const _0x5b2c83=-parseInt(_0x249363(0xf3))/0x1+parseInt(_0x249363(0x106))/0x2*(-parseInt(_0x249363(0xc7))/0x3)+parseInt(_0x249363(0x111))/0x4+-parseInt(_0x249363(0x143))/0x5+parseInt(_0x249363(0x141))/0x6*(parseInt(_0x249363(0xde))/0x7)+-parseInt(_0x249363(0x13e))/0x8+parseInt(_0x249363(0xdc))/0x9;if(_0x5b2c83===_0x1841e5)break;else _0x33cb46['push'](_0x33cb46['shift']());}catch(_0x1db870){_0x33cb46['push'](_0x33cb46['shift']());}}}(a29_0x3a87,0x3a97a));const logger=require(a29_0x139dde(0xfb))[a29_0x139dde(0xc9)],helper=require(a29_0x139dde(0xff)),constants=require(a29_0x139dde(0x103)),hubAllocator=require(a29_0x139dde(0xcf)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a29_0x139dde(0xed)),{setAccessibilityCapabilities,setExtension}=require(a29_0x139dde(0xcc)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0x139dde(0xdf)),globals=require(a29_0x139dde(0x131)),{overrideExecute}=require(a29_0x139dde(0x124)),modify=(_0x1a4e6f,_0x4156fe=null,_0x4e37a1=![])=>{const _0x29b42d=a29_0x139dde,_0x4305c0={'MhKKv':function(_0x1bb117,_0x24c39e){return _0x1bb117!==_0x24c39e;},'qwvge':_0x29b42d(0x142),'loWkF':function(_0x696a25,_0x7b698){return _0x696a25!==_0x7b698;},'mKCOg':function(_0x43e730,_0x13d1aa){return _0x43e730+_0x13d1aa;},'MfXKB':function(_0x541476,_0x4c25cf){return _0x541476+_0x4c25cf;},'rOmFx':'https://','Bsvtr':_0x29b42d(0x128),'mkXgL':_0x29b42d(0xc6),'OOVXa':_0x29b42d(0xdb),'ECVal':'ms:edgeOptions','klVqj':_0x29b42d(0x100),'sbTRM':_0x29b42d(0x116),'TFavM':_0x29b42d(0xc5),'qvvii':_0x29b42d(0xd5),'GZGna':_0x29b42d(0x132),'gyWgd':_0x29b42d(0xce),'yfOVa':function(_0x18f520,_0x457e6d){return _0x18f520===_0x457e6d;},'PKerL':_0x29b42d(0xe7),'zXdqQ':'Setting\x20Browserstack\x20capabilities','YvIUv':_0x29b42d(0x12f),'XVHRS':_0x29b42d(0xe0),'ONzDK':function(_0xfa7d75,_0x26cef2,_0x1715bd){return _0xfa7d75(_0x26cef2,_0x1715bd);},'vjlhP':function(_0x18d6a8,_0x5940e3,_0x479163){return _0x18d6a8(_0x5940e3,_0x479163);},'ZijJh':function(_0x289062,_0x9f0db6,_0x4788b6){return _0x289062(_0x9f0db6,_0x4788b6);},'MJnta':function(_0x32baa1,_0x18172b){return _0x32baa1(_0x18172b);},'sGidg':_0x29b42d(0x139),'CNifu':_0x29b42d(0xee),'TGBOj':function(_0x21c7a0){return _0x21c7a0();},'kWbLQ':'isAccessibilityPlatform','DeSiu':function(_0x46fefb,_0x2eea84){return _0x46fefb!==_0x2eea84;},'GjtIy':function(_0x2def48,_0xa9b831){return _0x2def48!==_0xa9b831;},'SRmhs':_0x29b42d(0x137),'Kglvo':'Modifying\x20webdriver\x20builder'},_0x37a84f=helper[_0x29b42d(0x110)]();let _0xa8e690;try{_0xa8e690=helper[_0x29b42d(0x10c)](),_0xa8e690[_0x29b42d(0xc4)]&&(_0xa8e690[_0x29b42d(0xd7)]=_0xa8e690[_0x29b42d(0xc4)]);}catch(_0x42a3ef){return;}if(helper['isBrowserstackInfra']()){const _0x55d3c6={};_0x55d3c6[_0x29b42d(0x12b)]=_0x1a4e6f[_0x29b42d(0xfd)],helper[_0x29b42d(0xf5)](_0x55d3c6,new Map(),new Map()),logger[_0x29b42d(0x11f)](_0x4305c0[_0x29b42d(0xe2)]),logger[_0x29b42d(0xeb)](_0x4305c0[_0x29b42d(0xd0)]);}class _0x364652 extends _0x37a84f['HttpClient']{[_0x29b42d(0xcd)](_0x188132){const _0x2f64d6=_0x29b42d;if(_0x4305c0[_0x2f64d6(0x122)](_0x188132['path'],_0x4305c0[_0x2f64d6(0xe1)])&&_0x4305c0[_0x2f64d6(0x140)](global[_0x2f64d6(0xf4)],''))try{global[_0x2f64d6(0xf4)]=_0x4305c0[_0x2f64d6(0xf7)](_0x4305c0[_0x2f64d6(0x136)](_0x4305c0[_0x2f64d6(0xf8)],global[_0x2f64d6(0xf4)]),_0x4305c0[_0x2f64d6(0x125)]),this[_0x2f64d6(0xfe)]=hubAllocator[_0x2f64d6(0xd4)](global[_0x2f64d6(0xf4)]),logger[_0x2f64d6(0xeb)](_0x2f64d6(0xec)+global[_0x2f64d6(0xf4)]),global[_0x2f64d6(0xf4)]='';}catch(_0x557822){logger['error'](_0x557822);}return super[_0x2f64d6(0xcd)](_0x188132);}}class _0x26e59d extends _0xa8e690[_0x29b42d(0xd7)]{[_0x29b42d(0x114)](){const _0x2ceed1=_0x29b42d;return this[_0x2ceed1(0xda)]=helper[_0x2ceed1(0xd2)](_0x1a4e6f),logger[_0x2ceed1(0xeb)](_0x2ceed1(0x12a)+this[_0x2ceed1(0xda)]),this;}[_0x29b42d(0xef)](_0x5e7585){const _0x5a9c30=_0x29b42d;let _0xa27349={};for(const _0x473f19 in _0x5e7585){switch(_0x473f19){case _0x4305c0[_0x5a9c30(0x13d)]:case _0x4305c0[_0x5a9c30(0x11e)]:this[_0x5a9c30(0x104)]&&(_0xa27349=this[_0x5a9c30(0x104)]['get'](this['chromeOptions_'][_0x5a9c30(0x10a)])||{},this[_0x5a9c30(0x104)][_0x5a9c30(0x133)](this[_0x5a9c30(0x104)][_0x5a9c30(0x10a)],helper['mergeDeep'](_0xa27349,_0x5e7585[_0x473f19])));break;case _0x4305c0[_0x5a9c30(0x123)]:case _0x4305c0[_0x5a9c30(0x135)]:this[_0x5a9c30(0xf6)]&&(_0xa27349=this[_0x5a9c30(0xf6)][_0x5a9c30(0xd8)](this[_0x5a9c30(0xf6)]['CAPABILITY_KEY'])||{},this[_0x5a9c30(0xf6)][_0x5a9c30(0x133)](this[_0x5a9c30(0xf6)][_0x5a9c30(0x10a)],helper[_0x5a9c30(0xf9)](_0xa27349,_0x5e7585[_0x473f19])));break;case _0x4305c0[_0x5a9c30(0x102)]:case _0x4305c0[_0x5a9c30(0x13a)]:this[_0x5a9c30(0x120)]&&(_0xa27349=this[_0x5a9c30(0x120)][_0x5a9c30(0xd8)](this[_0x5a9c30(0x120)]['CAPABILITY_KEY'])||{},this['firefoxOptions_'][_0x5a9c30(0x133)](this[_0x5a9c30(0x120)][_0x5a9c30(0x10a)],helper[_0x5a9c30(0xf9)](_0xa27349,_0x5e7585[_0x473f19])));break;case _0x4305c0[_0x5a9c30(0xe3)]:this[_0x5a9c30(0x12e)]&&(_0xa27349=this[_0x5a9c30(0x12e)][_0x5a9c30(0xd8)](this[_0x5a9c30(0x12e)][_0x5a9c30(0x10a)])||{},this[_0x5a9c30(0x12e)][_0x5a9c30(0x133)](this[_0x5a9c30(0x12e)][_0x5a9c30(0x10a)],helper['mergeDeep'](_0xa27349,_0x5e7585[_0x473f19])));break;case _0x4305c0[_0x5a9c30(0xe9)]:case _0x4305c0[_0x5a9c30(0x115)]:this[_0x5a9c30(0xcb)]&&(_0xa27349=this[_0x5a9c30(0xcb)][_0x5a9c30(0xd8)](this[_0x5a9c30(0xcb)][_0x5a9c30(0x10a)])||{},this['ieOptions_']['set'](this[_0x5a9c30(0xcb)][_0x5a9c30(0x10a)],helper[_0x5a9c30(0xf9)](_0xa27349,_0x5e7585[_0x473f19])));break;}}}[_0x29b42d(0x10b)](){const _0x36a427=_0x29b42d,_0x39d598={'YOUhw':function(_0x2ea986,_0x258be8){const _0x1db1b2=a29_0x3e1d;return _0x4305c0[_0x1db1b2(0xd1)](_0x2ea986,_0x258be8);},'FWiFy':_0x4305c0[_0x36a427(0xd9)]};return logger[_0x36a427(0xeb)](_0x4305c0['zXdqQ']),this[_0x36a427(0xef)](_0x1a4e6f[_0x36a427(0x11d)]),Object['keys'](_0x1a4e6f[_0x36a427(0x11d)])['forEach'](_0x133307=>{const _0x56050e=_0x36a427,_0x20592f=this[_0x56050e(0xe8)][_0x56050e(0xd8)](_0x133307);_0x39d598['YOUhw'](typeof _0x20592f,_0x39d598[_0x56050e(0x13c)])?this[_0x56050e(0xe8)][_0x56050e(0x133)](_0x133307,helper[_0x56050e(0xf9)](_0x20592f,_0x1a4e6f[_0x56050e(0x11d)][_0x133307])):this[_0x56050e(0xe8)][_0x56050e(0x133)](_0x133307,_0x1a4e6f[_0x56050e(0x11d)][_0x133307]);}),this;}['build'](){const _0x559c4b=_0x29b42d,_0x3b2bd6={'mVlAO':function(_0xfe13cb,_0xe7df23,_0x26dd63){const _0x3e1486=a29_0x3e1d;return _0x4305c0[_0x3e1486(0xc2)](_0xfe13cb,_0xe7df23,_0x26dd63);},'vFJRV':function(_0x38c6c4,_0x145999,_0x7ab89){const _0x141626=a29_0x3e1d;return _0x4305c0[_0x141626(0x13b)](_0x38c6c4,_0x145999,_0x7ab89);},'Tbvqy':function(_0xdbb77a,_0x2c4d4c){const _0x4a7843=a29_0x3e1d;return _0x4305c0[_0x4a7843(0xfc)](_0xdbb77a,_0x2c4d4c);}};if(helper[_0x559c4b(0x11c)]()){const _0x333c09=_0x4305c0[_0x559c4b(0x126)][_0x559c4b(0x109)]('|');let _0xdde3b3=0x0;while(!![]){switch(_0x333c09[_0xdde3b3++]){case'0':logger[_0x559c4b(0xeb)](_0x4305c0['CNifu']);continue;case'1':_0x4305c0[_0x559c4b(0x108)](isAccessibilityAutomationSession)&&_0x4305c0[_0x559c4b(0xfc)](setAccessibilityCapabilities,_0x1a4e6f);continue;case'2':globals[_0x559c4b(0x12c)](_0x4305c0[_0x559c4b(0x138)])&&(!_0x4305c0[_0x559c4b(0x119)](setExtension,this,_0x1a4e6f)&&globals['setGlobal'](_0x4305c0[_0x559c4b(0x138)],![]));continue;case'3':this[_0x559c4b(0x10b)]();continue;case'4':if(helper[_0x559c4b(0x118)](_0x1a4e6f['proxySettings'][_0x559c4b(0xd3)]))this['agent_']=helper[_0x559c4b(0x12d)](_0x1a4e6f[_0x559c4b(0xf1)][_0x559c4b(0xd3)]);else _0x1a4e6f[_0x559c4b(0xf1)][_0x559c4b(0xd3)]&&(this['proxy_']=_0x1a4e6f[_0x559c4b(0xf1)][_0x559c4b(0xd3)],logger['debug'](_0x559c4b(0xea)+this[_0x559c4b(0xc3)]));continue;case'5':this[_0x559c4b(0x114)]();continue;}break;}}const _0x2e3299=super[_0x559c4b(0xe4)]();return _0x2e3299[_0x559c4b(0xe6)]['then'](_0x4ad667=>{const _0x2de6d3=_0x559c4b;try{const _0x260856=_0x4ad667[_0x2de6d3(0x121)]['get'](_0x4305c0[_0x2de6d3(0xf0)]);_0x260856?(logger[_0x2de6d3(0xeb)](_0x2de6d3(0x101)+_0x260856),hubAllocator[_0x2de6d3(0x10f)](_0x260856),helper[_0x2de6d3(0x134)](_0x260856)):logger['debug'](_0x4305c0[_0x2de6d3(0x105)]);}catch(_0x542041){logger['debug'](_0x2de6d3(0x11b)+_0x542041);}}),_0x2e3299[_0x559c4b(0x107)]=0x0,_0x2e3299[_0x559c4b(0x10d)]&&_0x2e3299[_0x559c4b(0x10d)](_0x2ca2e1=>{const _0x36dc64=_0x559c4b,_0x235b01={'FKpbH':function(_0x786bf2,_0x51fae2,_0x368c19){return _0x3b2bd6['vFJRV'](_0x786bf2,_0x51fae2,_0x368c19);}};_0x3b2bd6[_0x36dc64(0xe5)](overrideQuit,_0x2ca2e1,_0x2e3299),_0x3b2bd6['Tbvqy'](overrideTakeScreenshot,_0x2ca2e1),helper['overrideGet'](_0x2ca2e1,_0x1a4e6f),_0x3b2bd6[_0x36dc64(0xe5)](overrideExecute,_0x2ca2e1,_0x1a4e6f),_0x2ca2e1[_0x36dc64(0x13f)]=async()=>{const _0x2624c0=_0x36dc64;return await _0x3b2bd6[_0x2624c0(0xc8)](getAccessibilityResultsSummary,_0x2ca2e1,global);},_0x2ca2e1['getAccessibilityResults']=async()=>{const _0xd7ddc5=_0x36dc64;return await _0x235b01[_0xd7ddc5(0x130)](getAccessibilityResults,_0x2ca2e1,global);};}),_0x2e3299['getAccessibilityResultsSummary']=async()=>{return await _0x4305c0['ONzDK'](getAccessibilityResultsSummary,_0x2e3299,global);},_0x2e3299[_0x559c4b(0x10e)]=async()=>{const _0x5c1a6d=_0x559c4b;return await _0x4305c0[_0x5c1a6d(0x13b)](getAccessibilityResults,_0x2e3299,global);},_0x4305c0[_0x559c4b(0xfc)](overrideTakeScreenshot,_0x2e3299),_0x4305c0[_0x559c4b(0xfc)](overrideQuit,_0x2e3299),helper['overrideGet'](_0x2e3299,_0x1a4e6f),_0x4305c0[_0x559c4b(0x119)](overrideExecute,_0x2e3299,_0x1a4e6f),helper[_0x559c4b(0xdd)](global[_0x559c4b(0xd6)])&&(global['__driversArray']=[]),helper[_0x559c4b(0xdd)](global[_0x559c4b(0xca)])&&(global[_0x559c4b(0xca)]=[]),global['__driversArray'][_0x559c4b(0x112)](_0x2e3299),global[_0x559c4b(0xfa)]=_0x2e3299,_0x4305c0[_0x559c4b(0x127)](global[_0x559c4b(0xca)],undefined)&&global['__drivers'][_0x559c4b(0x112)](_0x2e3299),_0x4156fe&&helper[_0x559c4b(0xdd)](_0x4156fe['global'][_0x559c4b(0xd6)])&&(_0x4156fe[_0x559c4b(0x129)]['__driversArray']=[]),_0x4156fe&&_0x4305c0[_0x559c4b(0xf2)](_0x4156fe[_0x559c4b(0x129)][_0x559c4b(0xca)],undefined)&&(_0x4156fe['global'][_0x559c4b(0xca)][_0x559c4b(0x112)](_0x2e3299),_0x4156fe[_0x559c4b(0x129)][_0x559c4b(0xd6)]['push'](_0x2e3299)),_0x2e3299;}}return _0xa8e690[_0x29b42d(0xc4)]=_0xa8e690[_0x29b42d(0xd7)],_0xa8e690[_0x29b42d(0xd7)]=_0x26e59d,_0x37a84f[_0x29b42d(0x117)]=_0x364652,_0xa8e690;};module[a29_0x139dde(0x113)][a29_0x139dde(0x11a)]=modify;
|
|
1
|
+
const a29_0x5dfa0c=a29_0x323f;(function(_0x4ef917,_0xdd47cc){const _0x23b63e=a29_0x323f,_0x5d584d=_0x4ef917();while(!![]){try{const _0x4bbfb9=-parseInt(_0x23b63e(0x1dc))/0x1+-parseInt(_0x23b63e(0x1d9))/0x2*(parseInt(_0x23b63e(0x1a7))/0x3)+parseInt(_0x23b63e(0x1b3))/0x4+-parseInt(_0x23b63e(0x17c))/0x5+parseInt(_0x23b63e(0x177))/0x6+-parseInt(_0x23b63e(0x176))/0x7+parseInt(_0x23b63e(0x18b))/0x8;if(_0x4bbfb9===_0xdd47cc)break;else _0x5d584d['push'](_0x5d584d['shift']());}catch(_0x1ef703){_0x5d584d['push'](_0x5d584d['shift']());}}}(a29_0x40ec,0xcfcac));function a29_0x323f(_0x539732,_0x5d6b9d){const _0x40eca9=a29_0x40ec();return a29_0x323f=function(_0x323fce,_0xdc2e30){_0x323fce=_0x323fce-0x174;let _0x6d328e=_0x40eca9[_0x323fce];return _0x6d328e;},a29_0x323f(_0x539732,_0x5d6b9d);}const logger=require(a29_0x5dfa0c(0x1a4))[a29_0x5dfa0c(0x1c8)],helper=require(a29_0x5dfa0c(0x188)),constants=require(a29_0x5dfa0c(0x1cf)),hubAllocator=require(a29_0x5dfa0c(0x189)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a29_0x5dfa0c(0x1e3)),{setAccessibilityCapabilities,setExtension}=require('../accessibility-automation/helper'),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0x5dfa0c(0x19e)),globals=require('../../../helpers/globals'),{overrideExecute}=require(a29_0x5dfa0c(0x1a0)),modify=(_0x150948,_0x545a7e=null,_0x5bcf51=![])=>{const _0x296e9b=a29_0x5dfa0c,_0x258b1f={'mETIt':function(_0x3f35ce,_0x3d50ec){return _0x3f35ce!==_0x3d50ec;},'EBacR':_0x296e9b(0x18c),'Lkilr':function(_0x20ece0,_0x25e755){return _0x20ece0+_0x25e755;},'JyMRc':function(_0x4d1ce2,_0x1b25ea){return _0x4d1ce2+_0x1b25ea;},'FCOMf':_0x296e9b(0x1c6),'qvFBs':'/wd/hub','Bwcaz':_0x296e9b(0x17d),'iNyND':'chromeOptions','doMqE':_0x296e9b(0x1b9),'KfZWD':'edgeOptions','pEzFq':'moz:firefoxOptions','BxoHZ':_0x296e9b(0x1a9),'OTucM':_0x296e9b(0x184),'ZsDoQ':_0x296e9b(0x194),'yzsxV':_0x296e9b(0x1d0),'jVOfe':function(_0x391f80,_0x403589){return _0x391f80===_0x403589;},'cxsdv':_0x296e9b(0x1d8),'ZWZJi':_0x296e9b(0x1da),'fuQjv':function(_0x30a78b,_0x207643,_0x3088c9){return _0x30a78b(_0x207643,_0x3088c9);},'XYper':function(_0x14426d,_0x391f61){return _0x14426d(_0x391f61);},'ldJVd':function(_0xfa5957,_0x5dd7a2,_0x5ce012){return _0xfa5957(_0x5dd7a2,_0x5ce012);},'bCGJy':'optimalHubUrl','BNOTW':_0x296e9b(0x183),'yNgiX':function(_0x319db1,_0x147a68,_0x3d7cd3){return _0x319db1(_0x147a68,_0x3d7cd3);},'TieIs':_0x296e9b(0x19d),'YnQmy':_0x296e9b(0x18a),'FSXQD':'isAccessibilityPlatform','dBJJg':function(_0x427184){return _0x427184();},'bagzE':function(_0xbe4695,_0x36aa25){return _0xbe4695(_0x36aa25);},'DFfZW':function(_0x53d07b,_0x47f91f){return _0x53d07b(_0x47f91f);},'cQchN':function(_0x113af0,_0x173512,_0x1d978b){return _0x113af0(_0x173512,_0x1d978b);},'aAUqB':function(_0x3fc3d7,_0x1ed08b){return _0x3fc3d7!==_0x1ed08b;},'KiZGJ':function(_0xf0be38,_0x19d88a){return _0xf0be38!==_0x19d88a;},'JQGxa':'Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','JxTpf':_0x296e9b(0x1df)},_0x52b726=helper[_0x296e9b(0x19f)]();let _0xfb2818;try{_0xfb2818=helper[_0x296e9b(0x1c0)](),_0xfb2818[_0x296e9b(0x1b8)]&&(_0xfb2818[_0x296e9b(0x1e4)]=_0xfb2818[_0x296e9b(0x1b8)]);}catch(_0x2aeac3){return;}if(helper[_0x296e9b(0x1b4)]()){const _0x4bbaac={};_0x4bbaac[_0x296e9b(0x1d4)]=_0x150948[_0x296e9b(0x195)],helper[_0x296e9b(0x1d2)](_0x4bbaac,new Map(),new Map()),logger[_0x296e9b(0x1c9)](_0x258b1f['JQGxa']),logger[_0x296e9b(0x175)](_0x258b1f[_0x296e9b(0x178)]);}class _0xe88f7c extends _0x52b726[_0x296e9b(0x1d6)]{[_0x296e9b(0x192)](_0x5b617d){const _0x4a8c20=_0x296e9b;if(_0x258b1f['mETIt'](_0x5b617d[_0x4a8c20(0x1de)],_0x258b1f[_0x4a8c20(0x1bf)])&&_0x258b1f[_0x4a8c20(0x17b)](global[_0x4a8c20(0x1c7)],''))try{global[_0x4a8c20(0x1c7)]=_0x258b1f['Lkilr'](_0x258b1f[_0x4a8c20(0x1bb)](_0x258b1f[_0x4a8c20(0x1c4)],global['newHubUrl']),_0x258b1f[_0x4a8c20(0x1e5)]),this['options_']=hubAllocator['getRequestOptions'](global[_0x4a8c20(0x1c7)]),logger['debug']('New\x20hub\x20url\x20set\x20to\x20'+global[_0x4a8c20(0x1c7)]),global['newHubUrl']='';}catch(_0x190763){logger[_0x4a8c20(0x191)](_0x190763);}return super[_0x4a8c20(0x192)](_0x5b617d);}}class _0x15fc10 extends _0xfb2818[_0x296e9b(0x1e4)]{['setServer'](){const _0x14f1f8=_0x296e9b;return this['url_']=helper[_0x14f1f8(0x196)](_0x150948),logger['debug']('Hub\x20url\x20set\x20to\x20'+this[_0x14f1f8(0x1bd)]),this;}[_0x296e9b(0x1ea)](_0x1c96ff){const _0xe5762b=_0x296e9b;let _0x492a9e={};for(const _0x2df6f9 in _0x1c96ff){switch(_0x2df6f9){case _0x258b1f['Bwcaz']:case _0x258b1f[_0xe5762b(0x17e)]:this[_0xe5762b(0x1a2)]&&(_0x492a9e=this[_0xe5762b(0x1a2)][_0xe5762b(0x1db)](this[_0xe5762b(0x1a2)][_0xe5762b(0x18d)])||{},this[_0xe5762b(0x1a2)][_0xe5762b(0x1b0)](this[_0xe5762b(0x1a2)][_0xe5762b(0x18d)],helper[_0xe5762b(0x1d7)](_0x492a9e,_0x1c96ff[_0x2df6f9])));break;case _0x258b1f['doMqE']:case _0x258b1f[_0xe5762b(0x19b)]:this['edgeOptions_']&&(_0x492a9e=this[_0xe5762b(0x1e6)][_0xe5762b(0x1db)](this[_0xe5762b(0x1e6)]['CAPABILITY_KEY'])||{},this['edgeOptions_'][_0xe5762b(0x1b0)](this[_0xe5762b(0x1e6)][_0xe5762b(0x18d)],helper['mergeDeep'](_0x492a9e,_0x1c96ff[_0x2df6f9])));break;case _0x258b1f[_0xe5762b(0x1d1)]:case _0x258b1f[_0xe5762b(0x1ce)]:this['firefoxOptions_']&&(_0x492a9e=this[_0xe5762b(0x1c1)][_0xe5762b(0x1db)](this['firefoxOptions_'][_0xe5762b(0x18d)])||{},this[_0xe5762b(0x1c1)]['set'](this['firefoxOptions_'][_0xe5762b(0x18d)],helper['mergeDeep'](_0x492a9e,_0x1c96ff[_0x2df6f9])));break;case _0x258b1f[_0xe5762b(0x1dd)]:this['safariOptions_']&&(_0x492a9e=this[_0xe5762b(0x17a)][_0xe5762b(0x1db)](this[_0xe5762b(0x17a)][_0xe5762b(0x18d)])||{},this['safariOptions_'][_0xe5762b(0x1b0)](this[_0xe5762b(0x17a)][_0xe5762b(0x18d)],helper['mergeDeep'](_0x492a9e,_0x1c96ff[_0x2df6f9])));break;case _0x258b1f[_0xe5762b(0x186)]:case _0x258b1f[_0xe5762b(0x1cb)]:this['ieOptions_']&&(_0x492a9e=this[_0xe5762b(0x185)]['get'](this['ieOptions_'][_0xe5762b(0x18d)])||{},this[_0xe5762b(0x185)][_0xe5762b(0x1b0)](this[_0xe5762b(0x185)]['CAPABILITY_KEY'],helper['mergeDeep'](_0x492a9e,_0x1c96ff[_0x2df6f9])));break;}}}[_0x296e9b(0x1e2)](){const _0x57c4a9=_0x296e9b,_0x38dcb2={'YmeEk':function(_0x365827,_0x44fcf6){const _0x2117fd=a29_0x323f;return _0x258b1f[_0x2117fd(0x1a5)](_0x365827,_0x44fcf6);},'bWsou':_0x258b1f[_0x57c4a9(0x19c)]};return logger[_0x57c4a9(0x175)](_0x258b1f[_0x57c4a9(0x1a6)]),this[_0x57c4a9(0x1ea)](_0x150948[_0x57c4a9(0x1ae)]),Object['keys'](_0x150948['capability'])[_0x57c4a9(0x199)](_0x28dd65=>{const _0x208f5f=_0x57c4a9,_0x6706e3=this[_0x208f5f(0x1a3)][_0x208f5f(0x1db)](_0x28dd65);_0x38dcb2[_0x208f5f(0x1e9)](typeof _0x6706e3,_0x38dcb2[_0x208f5f(0x1e8)])?this['capabilities_'][_0x208f5f(0x1b0)](_0x28dd65,helper['mergeDeep'](_0x6706e3,_0x150948[_0x208f5f(0x1ae)][_0x28dd65])):this['capabilities_'][_0x208f5f(0x1b0)](_0x28dd65,_0x150948[_0x208f5f(0x1ae)][_0x28dd65]);}),this;}['build'](){const _0x131773=_0x296e9b,_0x52800b={'TQMRI':_0x258b1f[_0x131773(0x1cd)],'NYmyG':_0x258b1f[_0x131773(0x180)],'fwxSe':function(_0x58037b,_0x28a06c,_0x25397a){const _0x5e106c=_0x131773;return _0x258b1f[_0x5e106c(0x179)](_0x58037b,_0x28a06c,_0x25397a);}};if(helper[_0x131773(0x1b4)]()){const _0x196872=_0x258b1f[_0x131773(0x1a1)]['split']('|');let _0x8139e1=0x0;while(!![]){switch(_0x196872[_0x8139e1++]){case'0':this['setCapabilities']();continue;case'1':logger[_0x131773(0x175)](_0x258b1f[_0x131773(0x1c5)]);continue;case'2':if(helper['isPacProxy'](_0x150948['proxySettings'][_0x131773(0x1e7)]))this[_0x131773(0x198)]=helper[_0x131773(0x1ba)](_0x150948['proxySettings'][_0x131773(0x1e7)]);else _0x150948['proxySettings'][_0x131773(0x1e7)]&&(this[_0x131773(0x1aa)]=_0x150948['proxySettings'][_0x131773(0x1e7)],logger[_0x131773(0x175)](_0x131773(0x18f)+this[_0x131773(0x1aa)]));continue;case'3':globals[_0x131773(0x187)](_0x258b1f[_0x131773(0x1be)])&&(!_0x258b1f[_0x131773(0x179)](setExtension,this,_0x150948)&&globals[_0x131773(0x1b1)](_0x258b1f[_0x131773(0x1be)],![]));continue;case'4':this['setServer']();continue;case'5':_0x258b1f[_0x131773(0x193)](isAccessibilityAutomationSession)&&_0x258b1f['XYper'](setAccessibilityCapabilities,_0x150948);continue;}break;}}const _0x1cda15=super[_0x131773(0x19a)]();return _0x1cda15[_0x131773(0x1c2)]['then'](_0x2a7847=>{const _0x238a9f=_0x131773;try{const _0x211e20=_0x2a7847['caps_'][_0x238a9f(0x1db)](_0x52800b[_0x238a9f(0x174)]);_0x211e20?(logger[_0x238a9f(0x175)]('SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20'+_0x211e20),hubAllocator['updateHubUrl'](_0x211e20),helper[_0x238a9f(0x1e0)](_0x211e20)):logger[_0x238a9f(0x175)](_0x52800b['NYmyG']);}catch(_0x5cfbdc){logger[_0x238a9f(0x175)](_0x238a9f(0x18e)+_0x5cfbdc);}}),_0x1cda15[_0x131773(0x181)]=0x0,_0x1cda15['then']&&_0x1cda15[_0x131773(0x17f)](_0x5c31a6=>{const _0x34c02d=_0x131773,_0x45bcd8={'lEAna':function(_0x184af3,_0x3f43b1,_0xb6de12){const _0xb3f42=a29_0x323f;return _0x258b1f[_0xb3f42(0x1b6)](_0x184af3,_0x3f43b1,_0xb6de12);}};_0x258b1f[_0x34c02d(0x1b6)](overrideQuit,_0x5c31a6,_0x1cda15),_0x258b1f[_0x34c02d(0x1d5)](overrideTakeScreenshot,_0x5c31a6),helper[_0x34c02d(0x1cc)](_0x5c31a6,_0x150948),_0x258b1f[_0x34c02d(0x1b6)](overrideExecute,_0x5c31a6,_0x150948),_0x5c31a6[_0x34c02d(0x1ca)]=async()=>{return await _0x52800b['fwxSe'](getAccessibilityResultsSummary,_0x5c31a6,global);},_0x5c31a6[_0x34c02d(0x1ab)]=async()=>{const _0x1a340e=_0x34c02d;return await _0x45bcd8[_0x1a340e(0x1c3)](getAccessibilityResults,_0x5c31a6,global);};}),_0x1cda15['getAccessibilityResultsSummary']=async()=>{return await _0x52800b['fwxSe'](getAccessibilityResultsSummary,_0x1cda15,global);},_0x1cda15['getAccessibilityResults']=async()=>{const _0x4b54ef=_0x131773;return await _0x258b1f[_0x4b54ef(0x1d3)](getAccessibilityResults,_0x1cda15,global);},_0x258b1f[_0x131773(0x1ad)](overrideTakeScreenshot,_0x1cda15),_0x258b1f[_0x131773(0x1b5)](overrideQuit,_0x1cda15),helper[_0x131773(0x1cc)](_0x1cda15,_0x150948),_0x258b1f[_0x131773(0x1a8)](overrideExecute,_0x1cda15,_0x150948),helper['isUndefined'](global[_0x131773(0x1bc)])&&(global[_0x131773(0x1bc)]=[]),helper[_0x131773(0x1b2)](global[_0x131773(0x182)])&&(global[_0x131773(0x182)]=[]),global[_0x131773(0x1bc)][_0x131773(0x1b7)](_0x1cda15),global[_0x131773(0x1e1)]=_0x1cda15,_0x258b1f['aAUqB'](global[_0x131773(0x182)],undefined)&&global[_0x131773(0x182)]['push'](_0x1cda15),_0x545a7e&&helper[_0x131773(0x1b2)](_0x545a7e[_0x131773(0x190)][_0x131773(0x1bc)])&&(_0x545a7e[_0x131773(0x190)][_0x131773(0x1bc)]=[]),_0x545a7e&&_0x258b1f[_0x131773(0x1ac)](_0x545a7e[_0x131773(0x190)][_0x131773(0x182)],undefined)&&(_0x545a7e['global'][_0x131773(0x182)][_0x131773(0x1b7)](_0x1cda15),_0x545a7e[_0x131773(0x190)][_0x131773(0x1bc)][_0x131773(0x1b7)](_0x1cda15)),_0x1cda15;}}return _0xfb2818[_0x296e9b(0x1b8)]=_0xfb2818[_0x296e9b(0x1e4)],_0xfb2818[_0x296e9b(0x1e4)]=_0x15fc10,_0x52b726[_0x296e9b(0x1d6)]=_0xe88f7c,_0xfb2818;};function a29_0x40ec(){const _0x2946f6=['BNOTW','quitCount_','__drivers','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','safari.options','ieOptions_','ZsDoQ','getGlobal','../../../helpers/helper','../../../hubAllocationMethods','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','14974304CEasSK','/session','CAPABILITY_KEY','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','Proxy\x20set\x20to\x20','global','error','send','dBJJg','se:ieOptions','browserStackLogLevel','getHubUrl','exports','agent_','forEach','build','KfZWD','cxsdv','5|4|0|2|3|1','../../../helpers/accessibility-automation/helper','requireHttpClient','./helpers/patchHelper','TieIs','chromeOptions_','capabilities_','../../../helpers/logger','jVOfe','ZWZJi','11343UVWRxo','cQchN','firefoxOptions','proxy_','getAccessibilityResults','KiZGJ','bagzE','capability','browserstackAgentObservability','set','setGlobal','isUndefined','2677280aLOBwD','isBrowserstackInfra','DFfZW','fuQjv','push','originalBuilder','ms:edgeOptions','getHttpAgent','JyMRc','__driversArray','url_','FSXQD','EBacR','requireSeleniumWebdriver','firefoxOptions_','session_','lEAna','FCOMf','YnQmy','https://','newHubUrl','winstonLogger','info','getAccessibilityResultsSummary','yzsxV','overrideGet','bCGJy','BxoHZ','../../../bin/utils/constants','ieOptions','pEzFq','setLogLevel','ldJVd','logLevel','XYper','HttpClient','mergeDeep','object','308voKeBt','Setting\x20Browserstack\x20capabilities','get','176393EyPFLl','OTucM','path','Modifying\x20webdriver\x20builder','storeOptimalHubUrl','__driver','setCapabilities','../../../helpers/patchHelpers','Builder','qvFBs','edgeOptions_','proxyUrl','bWsou','YmeEk','__setBrowserOptions','TQMRI','debug','7781165OfISSn','5226870kyMUIg','JxTpf','yNgiX','safariOptions_','mETIt','3454375bvctqp','goog:chromeOptions','iNyND','then'];a29_0x40ec=function(){return _0x2946f6;};return a29_0x40ec();}module[a29_0x5dfa0c(0x197)][a29_0x5dfa0c(0x1af)]=modify;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a30_0x21dc(){const _0x2f1d5d=['8972990jmvsxM','663118jurJdo','12745287CaSzDR','6574384GfwnZG','mochaHooks','3CPEBhJ','TegOM','restore','1446VVrBQZ','33223322BHbjWX','7fUseJY','../../../helpers/test-observability/utils','13255HdwEYJ','2lzhuBI','2744696dSiDCY'];a30_0x21dc=function(){return _0x2f1d5d;};return a30_0x21dc();}function a30_0x4eb0(_0x3921e7,_0x5e6ecb){const _0x21dc69=a30_0x21dc();return a30_0x4eb0=function(_0x4eb0d3,_0x5551b0){_0x4eb0d3=_0x4eb0d3-0x129;let _0x5756b0=_0x21dc69[_0x4eb0d3];return _0x5756b0;},a30_0x4eb0(_0x3921e7,_0x5e6ecb);}const a30_0xac83f3=a30_0x4eb0;(function(_0x203c5d,_0x4fcad0){const _0x5bc68e=a30_0x4eb0,_0x225799=_0x203c5d();while(!![]){try{const _0x345b58=parseInt(_0x5bc68e(0x12c))/0x1*(-parseInt(_0x5bc68e(0x129))/0x2)+parseInt(_0x5bc68e(0x130))/0x3*(parseInt(_0x5bc68e(0x12a))/0x4)+-parseInt(_0x5bc68e(0x137))/0x5*(-parseInt(_0x5bc68e(0x133))/0x6)+parseInt(_0x5bc68e(0x135))/0x7*(parseInt(_0x5bc68e(0x12e))/0x8)+parseInt(_0x5bc68e(0x12d))/0x9+parseInt(_0x5bc68e(0x12b))/0xa+-parseInt(_0x5bc68e(0x134))/0xb;if(_0x345b58===_0x4fcad0)break;else _0x225799['push'](_0x225799['shift']());}catch(_0x310328){_0x225799['push'](_0x225799['shift']());}}}(a30_0x21dc,0xbdab5));const requestSpy=require('../../../helpers/request-spy'),constants=require('../../../bin/utils/constants'),{addRequestSpy}=require(a30_0xac83f3(0x136));exports[a30_0xac83f3(0x12f)]={'beforeAll'(){const _0x255a26=a30_0xac83f3,_0x3bf880={'TegOM':function(_0x368f76){return _0x368f76();}},_0x175a60='browserstack internal helper hook';_0x3bf880[_0x255a26(0x131)](addRequestSpy);},'afterAll'(){const _0x1487d6=a30_0xac83f3,_0x42e77c='browserstack internal helper hook';this['timeout'](0xea60),requestSpy[_0x1487d6(0x132)]();}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a31_0x3c1f95=a31_0x593e;function a31_0x593e(_0x4bfbd6,_0x1430cb){const _0x399d1d=a31_0x399d();return a31_0x593e=function(_0x593ef,_0x47bdb6){_0x593ef=_0x593ef-0x181;let _0x206bf6=_0x399d1d[_0x593ef];return _0x206bf6;},a31_0x593e(_0x4bfbd6,_0x1430cb);}(function(_0x21327c,_0x578086){const _0x30952b=a31_0x593e,_0x31c656=_0x21327c();while(!![]){try{const _0x1609e9=parseInt(_0x30952b(0x1d9))/0x1+-parseInt(_0x30952b(0x194))/0x2+-parseInt(_0x30952b(0x1d3))/0x3+-parseInt(_0x30952b(0x1a5))/0x4+-parseInt(_0x30952b(0x19b))/0x5*(-parseInt(_0x30952b(0x197))/0x6)+-parseInt(_0x30952b(0x1a9))/0x7+-parseInt(_0x30952b(0x18f))/0x8*(-parseInt(_0x30952b(0x183))/0x9);if(_0x1609e9===_0x578086)break;else _0x31c656['push'](_0x31c656['shift']());}catch(_0x3b773a){_0x31c656['push'](_0x31c656['shift']());}}}(a31_0x399d,0xba715));function a31_0x399d(){const _0x23a9bc=['_afterEach','5041352uufLjE','js-','reduce','fEdbE','getHookSkippedTests','2423542kpmTMB','Ptyfd','getPlatform','299940XxinVW','uuid','oXnpr','CtxOo','150cbwjZR','sNGXR','parent','xSeGw','geDtm','TBiVK','YxDEZ','ZZFSc','hook','oyueC','3826420ewkSCC','IDtrN','type','getTestEnv','8914920rDMgFh','emit','getHooksForTest','string','sendPlatformDetails','__cloud_provider___','../../../helpers/helper','fromEntries','SZiiB','bs:addPlatformDetails:','split','TEST_PLATFORM','map_','suites','markedStatus','concat','BqGJr','cHYAs','unknown_grid','Dtoza','lodash','xkseo','../../utils/logPatcher','dBGxn','bhwfi','_beforeAll','_afterAll','../../../../package.json','filter','pending','browserstack','getSession','zpIvp','hook:','toISOString','hookAnalyticsId','indexOf','nBVtf','NDTsi','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','getCapabilities','substring','1524510GsUqvJ','TXPex','getHookDetails','failed','hoFmt','NSizU','63230tkFOdh','push','../../../helpers/test-observability/constants','pid','getBrowserVersion','45zIsOCS','_beforeEach','MYgqr','Qkkwd','forEach','../../../helpers/test-observability/utils','toJSON','state','slice','mapTestHooks','generic'];a31_0x399d=function(){return _0x23a9bc;};return a31_0x399d();}const {v4:uuidv4}=require(a31_0x3c1f95(0x198)),{name,version}=require(a31_0x3c1f95(0x1c4)),logPatcher=require(a31_0x3c1f95(0x1bf)),BSTestOpsPatcher=new logPatcher({}),{debug,isInternalHook,getObservabilityLinkedProductName}=require('../../../helpers/test-observability/utils'),{consoleHolder}=require(a31_0x3c1f95(0x1db)),{getPlatformVersion}=require(a31_0x3c1f95(0x1af)),{shouldProcessEventForTesthub}=require('../../../helpers/testhub/utils'),{isFunction}=require(a31_0x3c1f95(0x1bd)),{patchConsoleLogger}=require(a31_0x3c1f95(0x188));patchConsoleLogger(),exports[a31_0x3c1f95(0x1a8)]=()=>{const _0xf6ecb=a31_0x3c1f95,_0x1400b8={'Qkkwd':_0xf6ecb(0x18d),'NDTsi':function(_0x127a05){return _0x127a05();}};return{'ci':_0x1400b8[_0xf6ecb(0x186)],'key':_0x1400b8[_0xf6ecb(0x1cf)](uuidv4),'version':version,'collector':_0xf6ecb(0x190)+name};},exports[a31_0x3c1f95(0x1d5)]=_0x1041bd=>{const _0x333747=a31_0x3c1f95,_0x36b5a8={};_0x36b5a8[_0x333747(0x1bc)]=function(_0x4d10e9,_0x2de965){return _0x4d10e9!==_0x2de965;},_0x36b5a8[_0x333747(0x192)]=_0x333747(0x1ac),_0x36b5a8[_0x333747(0x1b9)]=function(_0x5bf608,_0x50c270){return _0x5bf608!==_0x50c270;},_0x36b5a8[_0x333747(0x1a0)]=_0x333747(0x1ca),_0x36b5a8[_0x333747(0x199)]=_0x333747(0x1a3);const _0x3cdc07=_0x36b5a8;if(!_0x1041bd||_0x3cdc07['Dtoza'](typeof _0x1041bd,_0x3cdc07[_0x333747(0x192)]))return[null,null];if(_0x3cdc07[_0x333747(0x1b9)](_0x1041bd[_0x333747(0x1cd)](_0x3cdc07[_0x333747(0x1a0)]),-0x1)){const _0x54a4b8=_0x1041bd[_0x333747(0x1b3)](_0x3cdc07['TBiVK']);return[_0x54a4b8[0x0][_0x333747(0x18b)](0x0,-0x1)[_0x333747(0x1b3)]('\x22')[0x1],_0x54a4b8[0x1][_0x333747(0x1d2)](0x1)];}else{if(_0x3cdc07[_0x333747(0x1b9)](_0x1041bd[_0x333747(0x1cd)](_0x3cdc07[_0x333747(0x199)]),-0x1)){const _0x2cfacd=_0x1041bd[_0x333747(0x1b3)](_0x3cdc07['oXnpr']);return[_0x2cfacd[0x0][_0x333747(0x18b)](0x0,-0x1)[_0x333747(0x1b3)]('\x22')[0x1],_0x1041bd];}}return[null,null];},exports[a31_0x3c1f95(0x1ab)]=_0x34b6eb=>{const _0x54285a=a31_0x3c1f95,_0x500201={'oeply':function(_0x1404f2,_0x5cb76c){return _0x1404f2(_0x5cb76c);},'nBVtf':_0x54285a(0x1c2),'CtxOo':'_afterAll','IDtrN':_0x54285a(0x184),'Wgzbg':_0x54285a(0x18e)};if(!_0x34b6eb||!_0x34b6eb[_0x54285a(0x19d)])return[];const _0x153715=[];return[_0x500201[_0x54285a(0x1ce)],_0x500201[_0x54285a(0x19a)],_0x500201[_0x54285a(0x1a6)],_0x500201['Wgzbg']][_0x54285a(0x187)](_0x11fbea=>{const _0x26c1bf={'TXPex':function(_0x5de692,_0x2dcc7e){return _0x500201['oeply'](_0x5de692,_0x2dcc7e);}},_0x197374=_0x34b6eb['parent'][_0x11fbea]||[];_0x197374['forEach'](_0xa2817a=>{const _0x19c68a=a31_0x593e;_0xa2817a[_0x19c68a(0x1cc)]&&!_0x26c1bf[_0x19c68a(0x1d4)](isInternalHook,_0xa2817a['fn'])&&_0x153715[_0x19c68a(0x1da)](_0xa2817a['hookAnalyticsId']);});}),[..._0x153715,...exports[_0x54285a(0x1ab)](_0x34b6eb[_0x54285a(0x19d)])];},exports[a31_0x3c1f95(0x18c)]=_0x1518e2=>{const _0x53f0a1=a31_0x3c1f95,_0xa9ed57={'NSizU':function(_0x39ee23){return _0x39ee23();},'Ptyfd':function(_0x1e0ed0,_0x49714b){return _0x1e0ed0===_0x49714b;},'MYgqr':_0x53f0a1(0x18e),'geDtm':_0x53f0a1(0x1c2),'oyueC':_0x53f0a1(0x1c3),'bhwfi':'_beforeEach'};if(!_0x1518e2||!_0x1518e2[_0x53f0a1(0x19d)])return;[_0xa9ed57[_0x53f0a1(0x19f)],_0xa9ed57[_0x53f0a1(0x1a4)],_0xa9ed57[_0x53f0a1(0x1c1)],_0xa9ed57[_0x53f0a1(0x185)]][_0x53f0a1(0x187)](_0x57cdc4=>{const _0x287064=_0x53f0a1,_0x2a2bcf=_0x1518e2[_0x287064(0x19d)][_0x57cdc4]||[];_0x2a2bcf[_0x287064(0x187)](_0xe199eb=>{const _0x1a5e21=_0x287064;if(!_0xe199eb['hookAnalyticsId'])_0xe199eb[_0x1a5e21(0x1cc)]=_0xa9ed57[_0x1a5e21(0x1d8)](uuidv4);else _0xe199eb[_0x1a5e21(0x1b7)]&&_0xa9ed57[_0x1a5e21(0x195)](_0x57cdc4,_0xa9ed57[_0x1a5e21(0x185)])&&(_0xe199eb['hookAnalyticsId']=_0xa9ed57[_0x1a5e21(0x1d8)](uuidv4),delete _0xe199eb[_0x1a5e21(0x1b7)]);});}),exports[_0x53f0a1(0x18c)](_0x1518e2['parent']);},exports[a31_0x3c1f95(0x1ad)]=async(_0x9a9a83,_0x1ab62b)=>{const _0x512762=a31_0x3c1f95,_0x31f2c4={'cHYAs':function(_0x453160){return _0x453160();},'ZZFSc':function(_0x4cb5cd,_0x536c03){return _0x4cb5cd(_0x536c03);},'zpIvp':function(_0x49b179,_0x409b06){return _0x49b179===_0x409b06;},'sNGXR':_0x512762(0x1c7),'UqXQl':_0x512762(0x1bb),'xkseo':_0x512762(0x1b4)};try{if(!_0x31f2c4[_0x512762(0x1ba)](shouldProcessEventForTesthub))return;const _0x36e7df=await _0x9a9a83[_0x512762(0x1d1)](),_0x1fcb2e=await _0x9a9a83[_0x512762(0x1c8)](),_0xc0e026={},_0x22197b=Object[_0x512762(0x1b0)](_0x1fcb2e[_0x512762(0x1d1)]()[_0x512762(0x1b5)]),_0x15f0cc={'product':_0x31f2c4[_0x512762(0x1a2)](getObservabilityLinkedProductName,_0x22197b),'capabilities':_0x22197b,'platform':_0x36e7df[_0x512762(0x196)](),'platform_version':_0x31f2c4[_0x512762(0x1a2)](getPlatformVersion,_0x31f2c4[_0x512762(0x1c9)](global[_0x512762(0x1ae)],_0x31f2c4[_0x512762(0x19c)])),'browser':_0x36e7df['getBrowserName'](),'browser_version':_0x36e7df[_0x512762(0x182)](),'session_id':_0x1fcb2e[_0x512762(0x189)]()};global[_0x512762(0x1ae)]?_0xc0e026[global[_0x512762(0x1ae)]]=_0x15f0cc:_0xc0e026[_0x31f2c4['UqXQl']]=_0x15f0cc,process[_0x512762(0x1aa)](_0x512762(0x1b2)+process[_0x512762(0x181)],{'timestamp':new Date()[_0x512762(0x1cb)](),'level':null,'message':null,'kind':_0x31f2c4[_0x512762(0x1be)],'http_response':_0xc0e026,'uuid':_0x1ab62b});}catch(_0x38972f){_0x31f2c4[_0x512762(0x1a2)](debug,_0x512762(0x1d0)+_0x38972f);}},exports['getHookSkippedTests']=_0x59bbfe=>{const _0x46ff0b=a31_0x3c1f95,_0x36a8c6={};_0x36a8c6[_0x46ff0b(0x1d7)]=function(_0x2ac624,_0x28bbb8){return _0x2ac624!==_0x28bbb8;},_0x36a8c6['YxDEZ']='hook',_0x36a8c6[_0x46ff0b(0x19e)]='passed',_0x36a8c6[_0x46ff0b(0x1b1)]=function(_0x29e0d2,_0x3d6a15){return _0x29e0d2!==_0x3d6a15;},_0x36a8c6[_0x46ff0b(0x1c0)]=_0x46ff0b(0x1d6);const _0x335b8d=_0x36a8c6,_0x2997ea=_0x59bbfe[_0x46ff0b(0x1b6)][_0x46ff0b(0x191)]((_0x5d066c,_0x5e985d)=>{const _0x1afe74=_0x46ff0b,_0x30e92e=exports[_0x1afe74(0x193)](_0x5e985d);return _0x30e92e&&(_0x5d066c=_0x5d066c[_0x1afe74(0x1b8)](_0x30e92e)),_0x5d066c;},[]),_0x2dac94=_0x59bbfe['tests'][_0x46ff0b(0x1c5)](_0x14c347=>{const _0x22ed6e=_0x46ff0b,_0x2a415d=_0x335b8d[_0x22ed6e(0x1d7)](_0x14c347[_0x22ed6e(0x1a7)],_0x335b8d[_0x22ed6e(0x1a1)])&&!_0x14c347[_0x22ed6e(0x1b7)]&&_0x335b8d[_0x22ed6e(0x1d7)](_0x14c347[_0x22ed6e(0x18a)],_0x335b8d[_0x22ed6e(0x19e)])&&_0x335b8d[_0x22ed6e(0x1b1)](_0x14c347['state'],_0x335b8d[_0x22ed6e(0x1c0)])&&!_0x14c347[_0x22ed6e(0x1c6)];return _0x2a415d;});return _0x2dac94[_0x46ff0b(0x1b8)](_0x2997ea);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a32_0x3cb7a6=a32_0x2460;(function(_0x5c6839,_0x5463a8){const _0x254f13=a32_0x2460,_0x59d5a9=_0x5c6839();while(!![]){try{const _0x485995=parseInt(_0x254f13(0x16c))/0x1+parseInt(_0x254f13(0x1bc))/0x2*(-parseInt(_0x254f13(0x14d))/0x3)+-parseInt(_0x254f13(0x193))/0x4+parseInt(_0x254f13(0x18f))/0x5+parseInt(_0x254f13(0x169))/0x6+-parseInt(_0x254f13(0x143))/0x7*(parseInt(_0x254f13(0x179))/0x8)+-parseInt(_0x254f13(0x1ae))/0x9*(parseInt(_0x254f13(0x157))/0xa);if(_0x485995===_0x5463a8)break;else _0x59d5a9['push'](_0x59d5a9['shift']());}catch(_0x2e358d){_0x59d5a9['push'](_0x59d5a9['shift']());}}}(a32_0x5c60,0xac92e));const util=require(a32_0x3cb7a6(0x1be)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a32_0x3cb7a6(0x1a7)),{percyAutoCapture}=require(a32_0x3cb7a6(0x19d)),{sendPlatformDetails}=require('./test-observability/mochaUtils'),{isBrowserstackInfra,markSessionStatus}=require(a32_0x3cb7a6(0x17b)),PerformanceTester=require(a32_0x3cb7a6(0x18b)),scripts=require('../../helpers/accessibility-automation/scripts'),globals=require(a32_0x3cb7a6(0x1ad)),logger=require(a32_0x3cb7a6(0x1bf))[a32_0x3cb7a6(0x19c)],{shouldProcessEventForTesthub}=require(a32_0x3cb7a6(0x185)),testHubConstants=require(a32_0x3cb7a6(0x141));function a32_0x5c60(){const _0x5184a0=['BROWSERSTACK_TESTHUB_JWT','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','protocol','aFbSt','error','ToGpk','capabilities','6520XcETeK','\x20-\x20','../../helpers/helper','isArray','stopMonitoring','then','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','testAnalyticsId','__error_messages__','percyCaptureMode','hOWQE','timeout','../../helpers/testhub/utils','accessibilityScanStarted','push','executeAsyncScript','vpWWA','https:','../../helpers/performance-tester','gnJPz','JtMow','join','3427975fzNHPB','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','KlKlg','wrhMB','56316eaciLN','getGlobal','currentTest','CddEc','__skipSessionName','dRWgD','idxMQ','performScan','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','winstonLogger','../../helpers/percy/utils','failed','MDwDI','saveTestResults','exNiH','setGlobal','__drivers','shift','initQuit','env','../../helpers/accessibility-automation/helper','PLXgX','RUiHL','length','http:','thTestRunUuid','../../helpers/globals','9MuTxYL','Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20','thBuildUuid','state','ObservabilitySync:','BROWSERSTACK_TESTHUB_UUID','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','err','getCurrentUrl','\x20|\x20','testcase','xwvug','.\x20Error\x20:','debug','2HbaGmb','driverCleanup','util','../../helpers/logger','format','ENV_VAR','Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20','../../helpers/testhub/constants',',\x22level\x22:\x20\x22','5376awuMyJ','startMonitoring','XQlAr','quitCount_','Bnksp','hxTwK','cOMnf','Performing\x20scan\x20before\x20saving\x20results','oSAmo','Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20','326526DgsNkb','browserstackSessionName','appium:app','percy','isAccessibilityPlatform','KoGPS','app','zYmMf','kPQPA','thJwtToken','2337290hkFMmz','Passed','OWNfN','EgVfy','session_','ulnGw','PbIPc','titlePath','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','bstackA11yShouldScan','shouldScanTestForAccessibility','__sessionFailed','YOXoZ','info','message','now','stringify','executeScript','1066200wOPfiG','\x22}}','BwaYc','826137rijeLo','jZyRA','mochaHooks','Failed\x20to\x20store\x20session\x20name:\x20','Failed:\x20','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.'];a32_0x5c60=function(){return _0x5184a0;};return a32_0x5c60();}function a32_0x2460(_0x438bc9,_0x3fb585){const _0x5c6081=a32_0x5c60();return a32_0x2460=function(_0x24603e,_0x32b471){_0x24603e=_0x24603e-0x13e;let _0x558347=_0x5c6081[_0x24603e];return _0x558347;},a32_0x2460(_0x438bc9,_0x3fb585);}exports[a32_0x3cb7a6(0x16e)]={'beforeAll'(){const _0x481500=a32_0x3cb7a6,_0x1498a5={'XQlAr':function(_0x5e1a97,_0x33492f,_0xf0c00d,_0x92b447){return _0x5e1a97(_0x33492f,_0xf0c00d,_0x92b447);},'RUiHL':_0x481500(0x19e),'oqLow':_0x481500(0x1b7),'exNiH':function(_0x20047b,_0x2877f0,_0x20d233){return _0x20047b(_0x2877f0,_0x20d233);},'YOXoZ':'passed','kPQPA':function(_0x5aac2e){return _0x5aac2e();},'SqOPW':function(_0x398279,_0x30d08e,_0xbee3b4){return _0x398279(_0x30d08e,_0xbee3b4);}};PerformanceTester[_0x481500(0x144)]();const _0x5d85c8='browserstack internal helper hook';global[_0x481500(0x181)]=[],global[_0x481500(0x162)]=![],global['driverCleanup']=async()=>{const _0x2dfd74=_0x481500;let _0x573c89=![];try{await global['__drivers'][0x0]['session_'],_0x573c89=!![],global[_0x2dfd74(0x162)]?await _0x1498a5[_0x2dfd74(0x145)](markSessionStatus,global[_0x2dfd74(0x1a3)][0x0],_0x1498a5[_0x2dfd74(0x1a9)],global[_0x2dfd74(0x181)][_0x2dfd74(0x18e)](_0x1498a5['oqLow'])):await _0x1498a5[_0x2dfd74(0x1a1)](markSessionStatus,global[_0x2dfd74(0x1a3)][0x0],_0x1498a5[_0x2dfd74(0x163)]);}catch(_0x3abf0c){logger[_0x2dfd74(0x1bb)](_0x2dfd74(0x14c)+_0x3abf0c);}global[_0x2dfd74(0x181)]=[],global[_0x2dfd74(0x162)]=![];if(_0x573c89)try{try{_0x1498a5[_0x2dfd74(0x155)](shouldProcessEventForTesthub)&&(global['__drivers'][0x0]&&await _0x1498a5['SqOPW'](sendPlatformDetails,global[_0x2dfd74(0x1a3)][0x0],this[_0x2dfd74(0x195)]?this[_0x2dfd74(0x195)][_0x2dfd74(0x180)]:null));}catch(_0x1def7b){logger[_0x2dfd74(0x1bb)](_0x2dfd74(0x140)+_0x1def7b);}await global[_0x2dfd74(0x1a3)][0x0][_0x2dfd74(0x1a5)]();}catch(_0x89d1c9){logger[_0x2dfd74(0x1bb)](_0x2dfd74(0x15f)+_0x89d1c9);}};},'beforeEach'(_0x59707b){const _0x38b0b4=a32_0x3cb7a6,_0x589baa={'jZyRA':function(_0x8a6e91,_0x1f4656){return _0x8a6e91>_0x1f4656;},'ulnGw':_0x38b0b4(0x17a),'KlKlg':function(_0x59715f,_0x1c5b0d,_0x4cac0a){return _0x59715f(_0x1c5b0d,_0x4cac0a);},'JtMow':'bstackA11yShouldScan','vpWWA':function(_0x2ecfb1){return _0x2ecfb1();},'Wxmsm':_0x38b0b4(0x151),'wrhMB':function(_0x9a80c5,_0xb9b22){return _0x9a80c5===_0xb9b22;},'aFbSt':_0x38b0b4(0x1ab),'cYVqz':function(_0x1d070d,_0x352ab0){return _0x1d070d===_0x352ab0;},'BwaYc':_0x38b0b4(0x18a),'hOWQE':_0x38b0b4(0x173),'dRWgD':'Automate\x20test\x20case\x20execution\x20has\x20started.'};new Promise(async _0x483315=>{const _0x198542=_0x38b0b4,_0x4521f3='browserstack internal helper hook';let _0x34314f=!![];try{_0x589baa[_0x198542(0x16d)](global['__drivers'][_0x198542(0x1aa)],0x1)&&(await global[_0x198542(0x1bd)](),global['__drivers']['shift']()),_0x589baa[_0x198542(0x16d)](global[_0x198542(0x1a3)][0x0]['quitCount_'],0x0)&&(_0x34314f=![],await global[_0x198542(0x1bd)]());}catch(_0x28d491){logger[_0x198542(0x1bb)](_0x198542(0x15f)+_0x28d491);}try{Array[_0x198542(0x17c)](global[_0x198542(0x1a3)])&&global[_0x198542(0x1a3)][0x0]&&(global[_0x198542(0x1a3)][0x0][_0x198542(0x14e)]=this[_0x198542(0x195)][_0x198542(0x15e)]()[_0x198542(0x18e)](_0x589baa[_0x198542(0x15c)])),global[_0x198542(0x14e)]=this['currentTest'][_0x198542(0x15e)]()[_0x198542(0x18e)](_0x589baa[_0x198542(0x15c)]);}catch(_0x35d183){logger[_0x198542(0x1bb)](_0x198542(0x16f)+_0x35d183);}this[_0x198542(0x195)][_0x198542(0x161)]=_0x589baa[_0x198542(0x191)](shouldScanTestForAccessibility,this[_0x198542(0x195)][_0x198542(0x15e)](),!![]),globals[_0x198542(0x1a2)](_0x589baa[_0x198542(0x18d)],this['currentTest'][_0x198542(0x161)]),this[_0x198542(0x195)][_0x198542(0x186)]=!![];if(_0x589baa[_0x198542(0x189)](isAccessibilityAutomationSession)&&_0x34314f&&Array[_0x198542(0x17c)](global[_0x198542(0x1a3)])&&_0x589baa[_0x198542(0x16d)](global['__drivers'][_0x198542(0x1aa)],0x0)&&globals[_0x198542(0x194)](_0x589baa['Wxmsm']))try{const _0x2effb1=await global[_0x198542(0x1a3)][0x0][_0x198542(0x15b)];if(_0x2effb1){let _0x355375=!![];const _0x26cbd4=await global[_0x198542(0x1a3)][0x0][_0x198542(0x1b6)]();let _0x4666bd;try{_0x4666bd=new URL(_0x26cbd4);}catch(_0x492dea){_0x355375=![];}_0x355375=_0x589baa[_0x198542(0x192)](_0x4666bd[_0x198542(0x174)],_0x589baa[_0x198542(0x175)])||_0x589baa['cYVqz'](_0x4666bd['protocol'],_0x589baa[_0x198542(0x16b)]),_0x355375&&(this[_0x198542(0x195)][_0x198542(0x161)]&&logger[_0x198542(0x164)](_0x589baa[_0x198542(0x183)])),this[_0x198542(0x195)][_0x198542(0x186)]=this[_0x198542(0x195)][_0x198542(0x161)],this[_0x198542(0x195)]['shouldScanTestForAccessibility']&&logger[_0x198542(0x164)](_0x589baa[_0x198542(0x198)]);}}catch(_0x247eae){logger['error'](_0x198542(0x17f)+util['format'](_0x247eae));}_0x589baa['vpWWA'](_0x483315);})[_0x38b0b4(0x17e)](_0x59707b);},'afterEach'(_0x38b155){const _0x3de7d7=a32_0x3cb7a6,_0x38c184={'CddEc':function(_0x2826da,_0x17b411){return _0x2826da>_0x17b411;},'yuQOP':function(_0x55b107,_0x194cd1){return _0x55b107===_0x194cd1;},'oSAmo':_0x3de7d7(0x1b8),'hxTwK':_0x3de7d7(0x14f),'ToGpk':function(_0x28e53d,_0x56dfdc,_0x267c40,_0x373fb7){return _0x28e53d(_0x56dfdc,_0x267c40,_0x373fb7);},'gnJPz':'\x20-\x20','zYmMf':function(_0x41fee7,_0x3f6cc9){return _0x41fee7!==_0x3f6cc9;},'wsfSt':'passed','MDwDI':function(_0x540d9c,_0x356119,_0x46549d){return _0x540d9c(_0x356119,_0x46549d);},'KoGPS':function(_0x300bf0,_0x721c76){return _0x300bf0+_0x721c76;},'cOMnf':_0x3de7d7(0x170),'OWNfN':_0x3de7d7(0x176),'PLXgX':_0x3de7d7(0x158),'idxMQ':'info','Bnksp':'isAccessibilityPlatform','NJVdr':_0x3de7d7(0x160),'uQDnG':_0x3de7d7(0x19b),'xwvug':_0x3de7d7(0x14a),'zXJvs':_0x3de7d7(0x171),'VjTUm':function(_0x340475){return _0x340475();},'OMonL':function(_0x3b6de5){return _0x3b6de5();},'PiCVQ':'debug','PbIPc':function(_0xe9e2d8){return _0xe9e2d8();}},_0xab0c8f='browserstack internal helper hook';this[_0x3de7d7(0x184)](0xfde8);const _0x148c2f=async(_0x1ffb42,_0x2202a5)=>{const _0x509c08=_0x3de7d7;await global['__drivers'][0x0][_0x509c08(0x168)]('browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:'+_0x1ffb42+_0x509c08(0x142)+_0x2202a5+_0x509c08(0x16a));};new Promise(async _0x1eb349=>{const _0x2ea67c=_0x3de7d7;try{_0x38c184[_0x2ea67c(0x196)](global[_0x2ea67c(0x1a3)][_0x2ea67c(0x1aa)],0x1)&&(await global['driverCleanup'](),global['__drivers'][_0x2ea67c(0x1a4)](),global[_0x2ea67c(0x181)]=[],global[_0x2ea67c(0x162)]=![]);try{if(global[_0x2ea67c(0x150)]&&_0x38c184['yuQOP'](global[_0x2ea67c(0x182)],_0x38c184[_0x2ea67c(0x14b)])&&global[_0x2ea67c(0x1a3)][0x0]){const _0x2b5ca0=_0x38c184['CddEc'](global['capabilities'][_0x2ea67c(0x1aa)],0x0)?!!global['capabilities'][0x0][_0x2ea67c(0x153)]||!!global[_0x2ea67c(0x178)][0x0][_0x38c184[_0x2ea67c(0x148)]]:![],_0x416653={};_0x416653['app']=_0x2b5ca0,await _0x38c184[_0x2ea67c(0x177)](percyAutoCapture,global[_0x2ea67c(0x1a3)][0x0],_0x38c184['oSAmo'],_0x416653);}}catch(_0xdb335c){logger['debug']('Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20'+_0xdb335c);}!global[_0x2ea67c(0x197)]&&(await global['__drivers'][0x0][_0x2ea67c(0x168)](_0x2ea67c(0x1b4)+JSON[_0x2ea67c(0x167)](this[_0x2ea67c(0x195)][_0x2ea67c(0x15e)]()[_0x2ea67c(0x18e)](_0x38c184[_0x2ea67c(0x18c)]))+'}}'),global[_0x2ea67c(0x1a3)][0x0]['sessionNameSet__']=!![]);const _0x57cd8d=_0x38c184[_0x2ea67c(0x154)](this[_0x2ea67c(0x195)][_0x2ea67c(0x1b1)],_0x38c184['wsfSt']);_0x57cd8d?(global[_0x2ea67c(0x162)]=!![],global[_0x2ea67c(0x181)][_0x2ea67c(0x187)](this[_0x2ea67c(0x195)][_0x2ea67c(0x1b5)][_0x2ea67c(0x165)]),await _0x38c184[_0x2ea67c(0x19f)](_0x148c2f,JSON[_0x2ea67c(0x167)](_0x38c184[_0x2ea67c(0x152)](_0x38c184[_0x2ea67c(0x149)],this['currentTest'][_0x2ea67c(0x1b5)]['message'])),_0x38c184[_0x2ea67c(0x159)])):await _0x38c184[_0x2ea67c(0x19f)](_0x148c2f,JSON[_0x2ea67c(0x167)](_0x38c184[_0x2ea67c(0x1a8)]),_0x38c184[_0x2ea67c(0x199)]);}catch(_0x54b24b){logger['debug']('Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20'+_0x54b24b);}try{if(this[_0x2ea67c(0x195)][_0x2ea67c(0x186)]&&globals[_0x2ea67c(0x194)](_0x38c184[_0x2ea67c(0x147)])&&globals['getGlobal'](_0x38c184['NJVdr'])){logger['info'](_0x38c184['uQDnG']);const _0x4b9847={};_0x4b9847[_0x2ea67c(0x1ac)]=this[_0x2ea67c(0x195)][_0x2ea67c(0x180)],_0x4b9847[_0x2ea67c(0x1b0)]=process[_0x2ea67c(0x1a6)][testHubConstants[_0x2ea67c(0x13f)][_0x2ea67c(0x1b3)]],_0x4b9847[_0x2ea67c(0x156)]=process['env'][testHubConstants['ENV_VAR'][_0x2ea67c(0x172)]];const _0x193366=_0x4b9847;logger[_0x2ea67c(0x1bb)](_0x2ea67c(0x190)+JSON['stringify'](_0x193366)),logger['debug'](_0x38c184[_0x2ea67c(0x1b9)]),logger['debug'](util[_0x2ea67c(0x13e)](await global[_0x2ea67c(0x1a3)][0x0]['executeAsyncScript'](scripts[_0x2ea67c(0x19a)],{'method':global[_0x2ea67c(0x14e)]}))),await global[_0x2ea67c(0x1a3)][0x0][_0x2ea67c(0x188)](scripts[_0x2ea67c(0x1a0)],_0x193366),logger[_0x2ea67c(0x164)](_0x38c184['zXJvs']);}}catch(_0xc8e351){logger[_0x2ea67c(0x176)]('Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20'+this[_0x2ea67c(0x195)][_0x2ea67c(0x15e)]()+_0x2ea67c(0x1ba),_0xc8e351);}try{try{if(_0x38c184['VjTUm'](shouldProcessEventForTesthub)){global[_0x2ea67c(0x1a3)][0x0]&&await _0x38c184[_0x2ea67c(0x19f)](sendPlatformDetails,global[_0x2ea67c(0x1a3)][0x0],this[_0x2ea67c(0x195)]?this[_0x2ea67c(0x195)]['testAnalyticsId']:null);if(_0x38c184['OMonL'](isBrowserstackInfra)){const _0x4e6918=_0x2ea67c(0x1b2)+Date[_0x2ea67c(0x166)]();await _0x38c184[_0x2ea67c(0x19f)](_0x148c2f,JSON[_0x2ea67c(0x167)](_0x4e6918),_0x38c184['PiCVQ']);}}}catch(_0x24ed0b){logger[_0x2ea67c(0x1bb)](_0x2ea67c(0x1af)+_0x24ed0b);}_0x38c184[_0x2ea67c(0x196)](global[_0x2ea67c(0x1a3)][0x0][_0x2ea67c(0x146)],0x0)&&await global[_0x2ea67c(0x1bd)]();}catch(_0x5a1024){logger['debug']('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0x5a1024);}_0x38c184[_0x2ea67c(0x15d)](_0x1eb349);})[_0x3de7d7(0x17e)](()=>_0x38b155());},'afterAll'(_0x32ddf4){const _0x20702d=a32_0x3cb7a6,_0x2f08b7={'EgVfy':function(_0x4fac25){return _0x4fac25();}},_0x5250e7='browserstack internal helper hook';this['timeout'](0xfde8),new Promise(async _0x33b449=>{const _0x47480f=a32_0x2460;PerformanceTester[_0x47480f(0x17d)](),await global[_0x47480f(0x1bd)](),_0x2f08b7[_0x47480f(0x15a)](_0x33b449);})[_0x20702d(0x17e)](()=>_0x32ddf4());}};
|
|
1
|
+
function a32_0x3ed8(){const _0xeee44d=['session_','59577PlbQEe','CVaHE','mWNtl','../../helpers/globals','PcgeZ','UObah','Failed:\x20','Failed\x20to\x20store\x20session\x20name:\x20','now','accessibilityScanStarted','shift','./test-observability/mochaUtils','__skipSessionName','driverCleanup','aDAzl','Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','capabilities','cfCyc','DUMvy','Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20','EInty','performScan','SMPuK','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','izHYr','XkBex','ENV_VAR','TYSqo','../../helpers/percy/utils','titlePath','app','isArray','BROWSERSTACK_TESTHUB_JWT','smZNS','thJwtToken','\x20-\x20','pVFwW','4121112YEHPEs','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','KmqSU','failed','push','bstackA11yShouldScan','AysFo','thBuildUuid','OkWCJ','__sessionFailed','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','ObservabilitySync:','BROWSERSTACK_TESTHUB_UUID','144FHQRJM','TnBxZ','err','DAGbf','qGRYF','20837682UXZLKV','MExDM','http:','GWfNv','env','../../helpers/testhub/utils','timeout','setGlobal','join','shouldScanTestForAccessibility','testcase','stringify','testAnalyticsId','protocol','winstonLogger','info','executeScript','umpFk','startMonitoring','appium:app','browserstackSessionName','../../helpers/helper','format','Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20','Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20','yjZVU','quitCount_','IAXAj','currentTest','message','getCurrentUrl','../../helpers/accessibility-automation/helper','saveTestResults','FHVFH','Japni','Dyiee','irYTi','DTQOP','error','Performing\x20scan\x20before\x20saving\x20results','1457080CDqxhF','\x22}}','ZzLAx','3qCKbtg','percyCaptureMode','stopMonitoring','__drivers','ncAsF','.\x20Error\x20:','__error_messages__','https:','then','VZuWJ','debug','VDFwQ','PKHaj','passed','executeAsyncScript','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','initQuit','212392oZmriI','KpkzF','sessionNameSet__','length','346956FAkDxN','788505ikUeEf'];a32_0x3ed8=function(){return _0xeee44d;};return a32_0x3ed8();}const a32_0xc163ba=a32_0x24cc;(function(_0x15a74d,_0x48fb24){const _0x33278c=a32_0x24cc,_0x5bb35a=_0x15a74d();while(!![]){try{const _0x3911a9=-parseInt(_0x33278c(0xf1))/0x1+-parseInt(_0x33278c(0xec))/0x2+-parseInt(_0x33278c(0xdb))/0x3*(parseInt(_0x33278c(0x119))/0x4)+parseInt(_0x33278c(0xd8))/0x5+parseInt(_0x33278c(0xf0))/0x6+parseInt(_0x33278c(0xf3))/0x7*(-parseInt(_0x33278c(0x127))/0x8)+parseInt(_0x33278c(0x12c))/0x9;if(_0x3911a9===_0x48fb24)break;else _0x5bb35a['push'](_0x5bb35a['shift']());}catch(_0xa1e3c4){_0x5bb35a['push'](_0x5bb35a['shift']());}}}(a32_0x3ed8,0x8f27b));function a32_0x24cc(_0x1a1622,_0x4ff058){const _0x3ed877=a32_0x3ed8();return a32_0x24cc=function(_0x24cc12,_0x1e1afd){_0x24cc12=_0x24cc12-0xce;let _0x208f06=_0x3ed877[_0x24cc12];return _0x208f06;},a32_0x24cc(_0x1a1622,_0x4ff058);}const util=require('util'),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a32_0xc163ba(0xcf)),{percyAutoCapture}=require(a32_0xc163ba(0x110)),{sendPlatformDetails}=require(a32_0xc163ba(0xfe)),{isBrowserstackInfra,markSessionStatus}=require(a32_0xc163ba(0x141)),PerformanceTester=require('../../helpers/performance-tester'),scripts=require('../../helpers/accessibility-automation/scripts'),globals=require(a32_0xc163ba(0xf6)),logger=require('../../helpers/logger')[a32_0xc163ba(0x13a)],{shouldProcessEventForTesthub}=require(a32_0xc163ba(0x131)),testHubConstants=require('../../helpers/testhub/constants');exports['mochaHooks']={'beforeAll'(){const _0x1da280=a32_0xc163ba,_0x46780e={'mWNtl':function(_0x34cb3d,_0x45f1c1,_0x5718ca,_0x1e436c){return _0x34cb3d(_0x45f1c1,_0x5718ca,_0x1e436c);},'ncAsF':_0x1da280(0x11c),'Dyiee':'\x20|\x20','PngXe':function(_0x4f46f9,_0x2002f5,_0x51cdd0){return _0x4f46f9(_0x2002f5,_0x51cdd0);},'VDFwQ':_0x1da280(0xe8),'PcgeZ':function(_0x35b7cb){return _0x35b7cb();},'SMPuK':function(_0x32b7a7,_0x13be70,_0x2e52e7){return _0x32b7a7(_0x13be70,_0x2e52e7);}};PerformanceTester[_0x1da280(0x13e)]();const _0x4d743b='browserstack internal helper hook';global['__error_messages__']=[],global[_0x1da280(0x122)]=![],global[_0x1da280(0x100)]=async()=>{const _0x31a4eb=_0x1da280;let _0x362cc4=![];try{await global[_0x31a4eb(0xde)][0x0]['session_'],_0x362cc4=!![],global[_0x31a4eb(0x122)]?await _0x46780e[_0x31a4eb(0xf5)](markSessionStatus,global['__drivers'][0x0],_0x46780e[_0x31a4eb(0xdf)],global['__error_messages__'][_0x31a4eb(0x134)](_0x46780e[_0x31a4eb(0xd3)])):await _0x46780e['PngXe'](markSessionStatus,global['__drivers'][0x0],_0x46780e[_0x31a4eb(0xe6)]);}catch(_0x3296a6){logger['debug'](_0x31a4eb(0x144)+_0x3296a6);}global['__error_messages__']=[],global[_0x31a4eb(0x122)]=![];if(_0x362cc4)try{try{_0x46780e[_0x31a4eb(0xf7)](shouldProcessEventForTesthub)&&(global[_0x31a4eb(0xde)][0x0]&&await _0x46780e[_0x31a4eb(0x10a)](sendPlatformDetails,global[_0x31a4eb(0xde)][0x0],this['currentTest']?this['currentTest'][_0x31a4eb(0x138)]:null));}catch(_0x89619a){logger[_0x31a4eb(0xe5)](_0x31a4eb(0x143)+_0x89619a);}await global['__drivers'][0x0][_0x31a4eb(0xeb)]();}catch(_0x37fde4){logger['debug']('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0x37fde4);}};},'beforeEach'(_0x47d2b2){const _0x314b5f=a32_0xc163ba,_0x1305ed={'XBAQB':function(_0x32e5ac,_0x62617d){return _0x32e5ac>_0x62617d;},'CVaHE':function(_0x4d1d09,_0x2775de){return _0x4d1d09>_0x2775de;},'TnBxZ':'\x20-\x20','XkBex':function(_0x4ed5e3,_0x3d8893,_0x46f028){return _0x4ed5e3(_0x3d8893,_0x46f028);},'WXAAs':_0x314b5f(0x11e),'EInty':function(_0x43e73d){return _0x43e73d();},'IAXAj':function(_0xb1ced9,_0xea759e){return _0xb1ced9>_0xea759e;},'PKHaj':'isAccessibilityPlatform','umpFk':function(_0x509f7e,_0x550f77){return _0x509f7e===_0x550f77;},'LiFoH':_0x314b5f(0x12e),'AysFo':function(_0x2e57e1,_0x24c31e){return _0x2e57e1===_0x24c31e;},'qGRYF':_0x314b5f(0xe2),'GWfNv':_0x314b5f(0x123),'TYSqo':'Automate\x20test\x20case\x20execution\x20has\x20started.','izHYr':function(_0x27327c){return _0x27327c();}};new Promise(async _0x4ee622=>{const _0x30cbba=_0x314b5f,_0x344f98='browserstack internal helper hook';let _0x92ec47=!![];try{_0x1305ed['XBAQB'](global[_0x30cbba(0xde)]['length'],0x1)&&(await global[_0x30cbba(0x100)](),global[_0x30cbba(0xde)][_0x30cbba(0xfd)]()),_0x1305ed[_0x30cbba(0xf4)](global[_0x30cbba(0xde)][0x0]['quitCount_'],0x0)&&(_0x92ec47=![],await global[_0x30cbba(0x100)]());}catch(_0x1eaf68){logger['debug'](_0x30cbba(0x124)+_0x1eaf68);}try{Array[_0x30cbba(0x113)](global[_0x30cbba(0xde)])&&global[_0x30cbba(0xde)][0x0]&&(global[_0x30cbba(0xde)][0x0]['browserstackSessionName']=this[_0x30cbba(0x148)]['titlePath']()[_0x30cbba(0x134)](_0x1305ed[_0x30cbba(0x128)])),global[_0x30cbba(0x140)]=this[_0x30cbba(0x148)]['titlePath']()[_0x30cbba(0x134)](_0x1305ed[_0x30cbba(0x128)]);}catch(_0x2024e9){logger['debug'](_0x30cbba(0xfa)+_0x2024e9);}this[_0x30cbba(0x148)][_0x30cbba(0x135)]=_0x1305ed[_0x30cbba(0x10d)](shouldScanTestForAccessibility,this[_0x30cbba(0x148)][_0x30cbba(0x111)](),!![]),globals[_0x30cbba(0x133)](_0x1305ed['WXAAs'],this[_0x30cbba(0x148)][_0x30cbba(0x135)]),this[_0x30cbba(0x148)][_0x30cbba(0xfc)]=!![];if(_0x1305ed[_0x30cbba(0x108)](isAccessibilityAutomationSession)&&_0x92ec47&&Array['isArray'](global[_0x30cbba(0xde)])&&_0x1305ed[_0x30cbba(0x147)](global[_0x30cbba(0xde)][_0x30cbba(0xef)],0x0)&&globals['getGlobal'](_0x1305ed[_0x30cbba(0xe7)]))try{const _0xa53554=await global['__drivers'][0x0][_0x30cbba(0xf2)];if(_0xa53554){let _0x1266e4=!![];const _0x45948c=await global[_0x30cbba(0xde)][0x0][_0x30cbba(0xce)]();let _0xc49f89;try{_0xc49f89=new URL(_0x45948c);}catch(_0x501742){_0x1266e4=![];}_0x1266e4=_0x1305ed[_0x30cbba(0x13d)](_0xc49f89[_0x30cbba(0x139)],_0x1305ed['LiFoH'])||_0x1305ed[_0x30cbba(0x11f)](_0xc49f89[_0x30cbba(0x139)],_0x1305ed[_0x30cbba(0x12b)]),_0x1266e4&&(this[_0x30cbba(0x148)][_0x30cbba(0x135)]&&logger[_0x30cbba(0x13b)](_0x1305ed[_0x30cbba(0x12f)])),this[_0x30cbba(0x148)][_0x30cbba(0xfc)]=this['currentTest'][_0x30cbba(0x135)],this[_0x30cbba(0x148)][_0x30cbba(0x135)]&&logger[_0x30cbba(0x13b)](_0x1305ed[_0x30cbba(0x10f)]);}}catch(_0x1892a9){logger[_0x30cbba(0xd6)](_0x30cbba(0xea)+util[_0x30cbba(0x142)](_0x1892a9));}_0x1305ed[_0x30cbba(0x10c)](_0x4ee622);})[_0x314b5f(0xe3)](_0x47d2b2);},'afterEach'(_0x19adb5){const _0x10a663=a32_0xc163ba,_0x572faf={'OsuEV':function(_0x38a601,_0x1931b4){return _0x38a601>_0x1931b4;},'pVFwW':function(_0x5e5acb,_0x3190af){return _0x5e5acb===_0x3190af;},'aDAzl':_0x10a663(0x136),'KpkzF':function(_0x375f28,_0x29b1c3){return _0x375f28>_0x29b1c3;},'DTQOP':_0x10a663(0x13f),'VZuWJ':function(_0x43e403,_0xec31fb,_0x342156,_0x1b3d7b){return _0x43e403(_0xec31fb,_0x342156,_0x1b3d7b);},'gVVxU':_0x10a663(0x117),'bYCmT':function(_0xce565c,_0x4354b1){return _0xce565c!==_0x4354b1;},'Japni':'passed','UObah':function(_0x5f4a22,_0x38526c,_0x306250){return _0x5f4a22(_0x38526c,_0x306250);},'FHVFH':function(_0x3c3504,_0x27fa6e){return _0x3c3504+_0x27fa6e;},'yctzk':_0x10a663(0xf9),'DAGbf':_0x10a663(0xd6),'irYTi':function(_0x1ed9c1,_0x3d8c58,_0xf09978){return _0x1ed9c1(_0x3d8c58,_0xf09978);},'cfCyc':'Passed','KmqSU':_0x10a663(0x13b),'OkWCJ':'isAccessibilityPlatform','DUMvy':_0x10a663(0x11e),'niYWC':'Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','yjZVU':_0x10a663(0xd7),'lBfJi':_0x10a663(0x103),'MExDM':function(_0x56a807){return _0x56a807();},'ZzLAx':function(_0xee1e78,_0x239880,_0x2e5906){return _0xee1e78(_0x239880,_0x2e5906);},'cirhE':_0x10a663(0xe5)},_0x13b94d='browserstack internal helper hook';this['timeout'](0xfde8);const _0x3ceba5=async(_0x19becb,_0x468ccc)=>{const _0x323477=_0x10a663;await global[_0x323477(0xde)][0x0][_0x323477(0x13c)](_0x323477(0x11a)+_0x19becb+',\x22level\x22:\x20\x22'+_0x468ccc+_0x323477(0xd9));};new Promise(async _0xa762c1=>{const _0x278c3d=_0x10a663;try{_0x572faf['OsuEV'](global['__drivers'][_0x278c3d(0xef)],0x1)&&(await global['driverCleanup'](),global[_0x278c3d(0xde)][_0x278c3d(0xfd)](),global[_0x278c3d(0xe1)]=[],global[_0x278c3d(0x122)]=![]);try{if(global['percy']&&_0x572faf[_0x278c3d(0x118)](global[_0x278c3d(0xdc)],_0x572faf[_0x278c3d(0x101)])&&global[_0x278c3d(0xde)][0x0]){const _0x282118=_0x572faf[_0x278c3d(0xed)](global[_0x278c3d(0x104)]['length'],0x0)?!!global[_0x278c3d(0x104)][0x0][_0x278c3d(0x112)]||!!global[_0x278c3d(0x104)][0x0][_0x572faf[_0x278c3d(0xd5)]]:![],_0x5956fc={};_0x5956fc[_0x278c3d(0x112)]=_0x282118,await _0x572faf[_0x278c3d(0xe4)](percyAutoCapture,global[_0x278c3d(0xde)][0x0],_0x572faf[_0x278c3d(0x101)],_0x5956fc);}}catch(_0x53e1b5){logger[_0x278c3d(0xe5)](_0x278c3d(0x102)+_0x53e1b5);}!global[_0x278c3d(0xff)]&&(await global[_0x278c3d(0xde)][0x0][_0x278c3d(0x13c)]('browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20'+JSON['stringify'](this[_0x278c3d(0x148)][_0x278c3d(0x111)]()[_0x278c3d(0x134)](_0x572faf['gVVxU']))+'}}'),global['__drivers'][0x0][_0x278c3d(0xee)]=!![]);const _0x458ef7=_0x572faf['bYCmT'](this[_0x278c3d(0x148)]['state'],_0x572faf[_0x278c3d(0xd2)]);_0x458ef7?(global[_0x278c3d(0x122)]=!![],global[_0x278c3d(0xe1)][_0x278c3d(0x11d)](this[_0x278c3d(0x148)][_0x278c3d(0x129)][_0x278c3d(0x149)]),await _0x572faf['UObah'](_0x3ceba5,JSON[_0x278c3d(0x137)](_0x572faf[_0x278c3d(0xd1)](_0x572faf['yctzk'],this['currentTest'][_0x278c3d(0x129)][_0x278c3d(0x149)])),_0x572faf[_0x278c3d(0x12a)])):await _0x572faf[_0x278c3d(0xd4)](_0x3ceba5,JSON[_0x278c3d(0x137)](_0x572faf[_0x278c3d(0x105)]),_0x572faf[_0x278c3d(0x11b)]);}catch(_0x73523c){logger['debug']('Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20'+_0x73523c);}try{if(this[_0x278c3d(0x148)][_0x278c3d(0xfc)]&&globals['getGlobal'](_0x572faf[_0x278c3d(0x121)])&&globals['getGlobal'](_0x572faf[_0x278c3d(0x106)])){logger[_0x278c3d(0x13b)](_0x572faf['niYWC']);const _0x1ba7aa={};_0x1ba7aa['thTestRunUuid']=this[_0x278c3d(0x148)][_0x278c3d(0x138)],_0x1ba7aa[_0x278c3d(0x120)]=process[_0x278c3d(0x130)][testHubConstants[_0x278c3d(0x10e)][_0x278c3d(0x126)]],_0x1ba7aa[_0x278c3d(0x116)]=process[_0x278c3d(0x130)][testHubConstants[_0x278c3d(0x10e)][_0x278c3d(0x114)]];const _0x39f241=_0x1ba7aa;logger[_0x278c3d(0xe5)]('Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20'+JSON[_0x278c3d(0x137)](_0x39f241)),logger[_0x278c3d(0xe5)](_0x572faf[_0x278c3d(0x145)]),logger[_0x278c3d(0xe5)](util[_0x278c3d(0x142)](await global[_0x278c3d(0xde)][0x0]['executeAsyncScript'](scripts[_0x278c3d(0x109)],{'method':global[_0x278c3d(0x140)]}))),await global[_0x278c3d(0xde)][0x0][_0x278c3d(0xe9)](scripts[_0x278c3d(0xd0)],_0x39f241),logger[_0x278c3d(0x13b)](_0x572faf['lBfJi']);}}catch(_0x42b817){logger['error'](_0x278c3d(0x10b)+this[_0x278c3d(0x148)][_0x278c3d(0x111)]()+_0x278c3d(0xe0),_0x42b817);}try{try{if(_0x572faf[_0x278c3d(0x12d)](shouldProcessEventForTesthub)){global[_0x278c3d(0xde)][0x0]&&await _0x572faf[_0x278c3d(0xda)](sendPlatformDetails,global[_0x278c3d(0xde)][0x0],this['currentTest']?this[_0x278c3d(0x148)][_0x278c3d(0x138)]:null);if(_0x572faf[_0x278c3d(0x12d)](isBrowserstackInfra)){const _0x1e575c=_0x278c3d(0x125)+Date[_0x278c3d(0xfb)]();await _0x572faf[_0x278c3d(0xf8)](_0x3ceba5,JSON[_0x278c3d(0x137)](_0x1e575c),_0x572faf['cirhE']);}}}catch(_0x305a8f){logger[_0x278c3d(0xe5)](_0x278c3d(0x107)+_0x305a8f);}_0x572faf[_0x278c3d(0xed)](global[_0x278c3d(0xde)][0x0][_0x278c3d(0x146)],0x0)&&await global[_0x278c3d(0x100)]();}catch(_0xd68944){logger[_0x278c3d(0xe5)]('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0xd68944);}_0x572faf[_0x278c3d(0x12d)](_0xa762c1);})['then'](()=>_0x19adb5());},'afterAll'(_0x318185){const _0x6dcc26=a32_0xc163ba,_0x532b3c={'smZNS':function(_0x11a51c){return _0x11a51c();}},_0x5d850f='browserstack internal helper hook';this[_0x6dcc26(0x132)](0xfde8),new Promise(async _0xd3ad3f=>{const _0x49f156=_0x6dcc26;PerformanceTester[_0x49f156(0xdd)](),await global[_0x49f156(0x100)](),_0x532b3c[_0x49f156(0x115)](_0xd3ad3f);})['then'](()=>_0x318185());}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';function
|
|
2
|
+
'use strict';const a33_0x1b9796=a33_0x1d17;(function(_0x45786a,_0x2391f9){const _0x66d82a=a33_0x1d17,_0x168c24=_0x45786a();while(!![]){try{const _0x5d19be=parseInt(_0x66d82a(0x175))/0x1+-parseInt(_0x66d82a(0x199))/0x2*(-parseInt(_0x66d82a(0x167))/0x3)+parseInt(_0x66d82a(0x1ac))/0x4+-parseInt(_0x66d82a(0x1b1))/0x5+-parseInt(_0x66d82a(0x16b))/0x6*(parseInt(_0x66d82a(0x17c))/0x7)+-parseInt(_0x66d82a(0x166))/0x8*(-parseInt(_0x66d82a(0x19a))/0x9)+-parseInt(_0x66d82a(0x1b3))/0xa*(parseInt(_0x66d82a(0x189))/0xb);if(_0x5d19be===_0x2391f9)break;else _0x168c24['push'](_0x168c24['shift']());}catch(_0x140f54){_0x168c24['push'](_0x168c24['shift']());}}}(a33_0x9eda,0xa898e));function a33_0x9eda(){const _0x264708=['port','oLppa','../../helpers/logger','175pkxmAd','nightwatch.conf.js','TibKu','nightwatch.cmd','existsSync','join','XpRub','hub.browserstack.com','mRuxP','forEach','trim','Deleting\x20','zsyhO','30580ucApbU','ntSoj','HUlVm','selenium','CHKql','slice','UWqWL','Pyojh','isUndefined','--env','child\x20process\x20exited\x20with\x20code\x20','config','KwxsU','../../helpers/BrowserStackSetup','wKfnM','exports','70kkWSnA','4650831XcKwhH','ZnNWK','inherit','platforms','filter','findIndex','push','kDhQF','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','close','modifyBrowserStackCaps','start_process','path','stringify','info','child_process','EgRtm','debug','5187876sydBXG','host','fpwVU','BWXTh','modifyBrowserStackW3CCaps','3344660WBHskB','test_settings','5480ImrHMS','--config','env','nightwatch','8YnnGeV','82434KtmtRt','platform','webdriver','KUZId','178692Qdoehu','mergeDeep','nightwatch.json','cwd','nightwatch-browserstack.json','Getting\x20your\x20nightwatch\x20configs\x20from\x20','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','rIIWi','winstonLogger','../utils/constants','852038elWHwe','length','useW3C','GUfwM'];a33_0x9eda=function(){return _0x264708;};return a33_0x9eda();}function a33_0x1d17(_0x5956da,_0x567c3f){const _0x9eda14=a33_0x9eda();return a33_0x1d17=function(_0x1d17cd,_0x30683d){_0x1d17cd=_0x1d17cd-0x165;let _0x4a9bba=_0x9eda14[_0x1d17cd];return _0x4a9bba;},a33_0x1d17(_0x5956da,_0x567c3f);}const fs=require('fs'),path=require(a33_0x1b9796(0x1a6)),{spawn}=require(a33_0x1b9796(0x1a9)),logger=require(a33_0x1b9796(0x17b))[a33_0x1b9796(0x173)],{default:BrowserStackSetup}=require(a33_0x1b9796(0x196)),helper=require('../../helpers/helper'),constants=require(a33_0x1b9796(0x174)),getUserNightwatchConfigs=(_0x226374,_0x4496bb)=>{const _0x259bfd=a33_0x1b9796,_0x522571={'BWXTh':_0x259bfd(0x17d),'fpwVU':_0x259bfd(0x16d),'KwxsU':function(_0x5ed2c3,_0x1ed43c){return _0x5ed2c3(_0x1ed43c);},'wKfnM':_0x259bfd(0x171)};let _0x11a564=null,_0x325d72={};const _0x34991d=_0x4496bb[_0x259bfd(0x19f)](_0x29cac6=>_0x29cac6===_0x259bfd(0x1b4));if(!helper[_0x259bfd(0x191)](_0x226374['config'])&&fs[_0x259bfd(0x180)](path[_0x259bfd(0x181)](process[_0x259bfd(0x16e)](),_0x226374[_0x259bfd(0x194)])))_0x11a564=path[_0x259bfd(0x181)](process[_0x259bfd(0x16e)](),_0x226374[_0x259bfd(0x194)]),_0x4496bb['splice'](_0x34991d,0x2);else{if(fs[_0x259bfd(0x180)](path[_0x259bfd(0x181)](process['cwd'](),_0x522571[_0x259bfd(0x1af)])))_0x11a564=path['join'](process['cwd'](),_0x522571[_0x259bfd(0x1af)]);else fs[_0x259bfd(0x180)](path['join'](process['cwd'](),_0x522571['fpwVU']))&&(_0x11a564=path[_0x259bfd(0x181)](process[_0x259bfd(0x16e)](),_0x522571[_0x259bfd(0x1ae)]));}return _0x11a564?(logger[_0x259bfd(0x1a8)](_0x259bfd(0x170)+_0x11a564),_0x325d72=_0x522571[_0x259bfd(0x195)](require,_0x11a564)):logger[_0x259bfd(0x1a8)](_0x522571[_0x259bfd(0x197)]),_0x325d72;},removeExistingEnvs=_0x3592eb=>{const _0xcb1dd1=a33_0x1b9796,_0x267031={};_0x267031['zsyhO']=function(_0x524759,_0x5a2db9){return _0x524759>_0x5a2db9;},_0x267031['EgRtm']=function(_0x594af8,_0x37d8fa){return _0x594af8>_0x37d8fa;};const _0x54b6ce=_0x267031;let _0x2149a9=_0x3592eb[_0xcb1dd1(0x19f)](_0x163ade=>_0x163ade===_0xcb1dd1(0x192));_0x54b6ce[_0xcb1dd1(0x188)](_0x2149a9,-0x1)&&_0x3592eb['splice'](_0x2149a9,0x2),_0x2149a9=_0x3592eb[_0xcb1dd1(0x19f)](_0x580336=>_0x580336==='-e'),_0x54b6ce[_0xcb1dd1(0x1aa)](_0x2149a9,-0x1)&&_0x3592eb['splice'](_0x2149a9,0x2);};function run(_0x456272,_0x14b6d0){const _0x36206a=a33_0x1b9796,_0x3898a9={'TibKu':_0x36206a(0x165),'ZnNWK':function(_0x26293e,_0x5f59fc){return _0x26293e+_0x5f59fc;},'mRuxP':_0x36206a(0x1b2),'ntSoj':function(_0x51900b,_0x432b1e,_0x58b68c){return _0x51900b(_0x432b1e,_0x58b68c);},'GUfwM':_0x36206a(0x183),'oLppa':_0x36206a(0x1a2),'JNZAI':function(_0x5781bb,_0x1c3be9){return _0x5781bb===_0x1c3be9;},'KUZId':_0x36206a(0x16f),'CHKql':function(_0x298b51,_0x369f50){return _0x298b51(_0x369f50);},'kDhQF':function(_0x3e62d0,_0x48c507,_0x4b1714,_0x30cd7a){return _0x3e62d0(_0x48c507,_0x4b1714,_0x30cd7a);},'UWqWL':_0x36206a(0x17f),'nQTzq':_0x36206a(0x1b4),'rIIWi':'--env','zOOCr':_0x36206a(0x19c),'Pyojh':_0x36206a(0x1a3)},_0x38aa13=new BrowserStackSetup(_0x456272);if(!_0x38aa13['config'])return;const _0x1173bc=_0x3898a9[_0x36206a(0x18a)](getUserNightwatchConfigs,_0x456272,_0x14b6d0),_0x4258f4={};_0x4258f4[_0x36206a(0x1a5)]=![];const _0x32af27={};_0x32af27[_0x36206a(0x1ad)]=_0x3898a9[_0x36206a(0x178)],_0x32af27[_0x36206a(0x179)]=0x1bb;const _0x5b4205={};_0x5b4205[_0x36206a(0x169)]=_0x4258f4,_0x5b4205[_0x36206a(0x18c)]=_0x32af27;const _0xd17091=_0x5b4205;logger['info'](_0x3898a9[_0x36206a(0x17a)]);const _0x5cbcc9={..._0x1173bc},_0x3f68b4=_0x5cbcc9,_0x44efa9=helper[_0x36206a(0x177)](_0x38aa13[_0x36206a(0x194)]),_0x119832=[];_0x38aa13[_0x36206a(0x194)][_0x36206a(0x19d)]['forEach']((_0x21ad89,_0x32cc1d)=>{const _0x43aef1=_0x36206a;_0x44efa9?_0x119832['push'](helper[_0x43aef1(0x1b0)](_0x38aa13[_0x43aef1(0x194)],_0x3898a9[_0x43aef1(0x17e)],_0x32cc1d)):_0x119832[_0x43aef1(0x1a0)](helper[_0x43aef1(0x1a4)](_0x38aa13[_0x43aef1(0x194)],_0x3898a9['TibKu'],_0x32cc1d));});const _0xe58970={},_0x336c50=[];_0x456272[_0x36206a(0x1b5)]=_0x456272[_0x36206a(0x1b5)]||_0x456272['e'];const _0x1e3826=_0x456272[_0x36206a(0x1b5)]?_0x456272[_0x36206a(0x1b5)]['trim']()['split'](',')['map'](_0x3e3537=>_0x3e3537[_0x36206a(0x186)]())[_0x36206a(0x19e)](_0x3b51a8=>_0x3b51a8!==''):[''];_0x3898a9['JNZAI'](_0x1e3826[_0x36206a(0x176)],0x0)&&_0x1e3826[_0x36206a(0x1a0)]('');_0x1e3826[_0x36206a(0x185)](_0x2a1e8d=>{const _0x342b4e=_0x36206a,_0xcce8e0={'HUlVm':function(_0x3f101d,_0x1d34f7){const _0x319a51=a33_0x1d17;return _0x3898a9[_0x319a51(0x19b)](_0x3f101d,_0x1d34f7);},'XpRub':_0x3898a9[_0x342b4e(0x184)]};_0x119832['forEach'](_0x331cd5=>{const _0x3383f9=_0x342b4e;let _0x28e4ec=_0xcce8e0[_0x3383f9(0x18b)](helper['getPlatformName'](_0x331cd5,'_'),'_'+Date['now']());_0x2a1e8d&&(_0x28e4ec+='_'+_0x2a1e8d);if(_0x2a1e8d&&(!_0x1173bc[_0xcce8e0[_0x3383f9(0x182)]]||!_0x1173bc[_0xcce8e0['XpRub']][_0x2a1e8d]))return;const _0xb6c34={..._0xd17091};_0xb6c34['desiredCapabilities']=_0x331cd5;const _0x265045=_0xb6c34;_0xe58970[_0x28e4ec]=_0x2a1e8d?helper[_0x3383f9(0x16c)](_0x1173bc[_0xcce8e0[_0x3383f9(0x182)]][_0x2a1e8d],_0x265045):_0x265045,_0x336c50[_0x3383f9(0x1a0)](_0x28e4ec);});});!_0x3f68b4[_0x36206a(0x1b2)]&&(_0x3f68b4[_0x36206a(0x1b2)]={});_0x3f68b4[_0x36206a(0x1b2)]={..._0x3f68b4[_0x36206a(0x1b2)],..._0xe58970};const _0x2ef17a=path[_0x36206a(0x181)](__dirname,_0x3898a9[_0x36206a(0x16a)]);fs['writeFileSync'](_0x2ef17a,JSON[_0x36206a(0x1a7)](_0x3f68b4)),_0x3898a9[_0x36206a(0x18d)](removeExistingEnvs,_0x14b6d0);const _0x1ae865=_0x3898a9[_0x36206a(0x1a1)](spawn,/^win/['test'](process[_0x36206a(0x168)])?_0x3898a9[_0x36206a(0x18f)]:_0x3898a9[_0x36206a(0x17e)],[_0x3898a9['nQTzq'],_0x2ef17a,..._0x14b6d0[_0x36206a(0x18e)](0x1),_0x3898a9[_0x36206a(0x172)],_0x336c50[_0x36206a(0x181)](',')],{'stdio':_0x3898a9['zOOCr']});_0x1ae865['on'](_0x3898a9[_0x36206a(0x190)],async _0x5ef0b2=>{const _0x3efc7d=_0x36206a;logger[_0x3efc7d(0x1ab)](_0x3efc7d(0x193)+_0x5ef0b2),logger['info'](_0x3efc7d(0x187)+_0x2ef17a),fs['unlinkSync'](_0x2ef17a);});}module[a33_0x1b9796(0x198)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a34_0x2eaf(_0x497612,_0x33a4bd){const _0x59c3ea=a34_0x59c3();return a34_0x2eaf=function(_0x2eaf6f,_0x2983ea){_0x2eaf6f=_0x2eaf6f-0xd7;let _0x54a639=_0x59c3ea[_0x2eaf6f];return _0x54a639;},a34_0x2eaf(_0x497612,_0x33a4bd);}const a34_0x107325=a34_0x2eaf;(function(_0x59d2dd,_0x75e084){const _0x5879d6=a34_0x2eaf,_0x40826b=_0x59d2dd();while(!![]){try{const _0x447f83=parseInt(_0x5879d6(0x11f))/0x1*(parseInt(_0x5879d6(0xee))/0x2)+-parseInt(_0x5879d6(0xfd))/0x3*(parseInt(_0x5879d6(0xe2))/0x4)+-parseInt(_0x5879d6(0xdf))/0x5+parseInt(_0x5879d6(0xe9))/0x6+-parseInt(_0x5879d6(0x128))/0x7+-parseInt(_0x5879d6(0xe8))/0x8+parseInt(_0x5879d6(0x10c))/0x9;if(_0x447f83===_0x75e084)break;else _0x40826b['push'](_0x40826b['shift']());}catch(_0x5a54ed){_0x40826b['push'](_0x40826b['shift']());}}}(a34_0x59c3,0x4c924));function a34_0x59c3(){const _0x50ceed=['Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','JNlyy','bstackSdkArgs','platformValidation','performScan','project','../../helpers/logger','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','ssduw','kzbhd','evaluate','browserName','Wmgwr','(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','No\x20accessibility\x20results\x20were\x20found.','xxQCN','kYOZI','BKamO','accessibilityOptions','testInfo','KuFGr','455860Pmulec','deviceName','needsReview','49116khQloO','ALhbo','dStFn','workerInfo','warn','NtkFQ','3460984BcnjOQ','1431168sKXXME','DUcMn','accessibilityOptions.scannerVersion','processAccessibilityCaps','stringify','2108Oxzsev','eojOG','browser_version','includeIssueType','../../helpers/accessibility-automation/helper','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','accessibilityOptions.includeIssueType.needsReview','wcagVersion','azzlh','latest','NyWSB','qEWZB','BS_A11Y_JWT','FUpgz','browser','21AvtRNn','geRlN','chrome','../../helpers/accessibility-automation/scripts','error','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','format','BIKBe','wajgr','../../helpers/helper','rBIvU','mIKVk','use','PoOwe','accessibilityPlatform','3187494NtvyFK','kvwka','playwright-chromium','cNDwL','nqUgM','method','replace','Playwright','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','accessibilityOptions.scannerProcessingTimeout','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','constructor','name','util','browserStackEvaluate','ezjPB','executeAsyncScript','cDqdh','winstonLogger','542nAIenK','env','executeScript','scannerProcessingTimeout','Qbzif','getAccessibilityResults','accessibilityOptions.includeIssueType.bestPractice','debug','tcxyW','1684046iPGjmZ','(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','setAccessibilityCapabilities','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','MxXTS','XCtHN','mIRiO','ULvXN'];a34_0x59c3=function(){return _0x50ceed;};return a34_0x59c3();}const util=require(a34_0x107325(0x119)),logger=require(a34_0x107325(0x136))[a34_0x107325(0x11e)],{isAccessibilityAutomationSession}=require(a34_0x107325(0xf2)),{isUndefined}=require(a34_0x107325(0x106)),scripts=require(a34_0x107325(0x100));exports['browserStackEvaluate']=async(_0x3fe016,_0x278990,_0x34283a={})=>{const _0xb06b22=a34_0x107325,_0x1fd6ae={};_0x1fd6ae[_0xb06b22(0x10a)]=_0xb06b22(0x132);const _0xd78789=_0x1fd6ae;return await _0x3fe016[_0xb06b22(0x13a)](_0xb06b22(0xd7)+_0x278990[_0xb06b22(0x112)](/arguments/g,_0xd78789[_0xb06b22(0x10a)])+_0xb06b22(0xf3)+JSON[_0xb06b22(0xed)](_0x34283a)+')');},exports['browserStackExecuteDriver']=async(_0x36e10a,_0xf48205,_0x2f3a9c={})=>{const _0x481d5b=a34_0x107325,_0x10f6f6={};_0x10f6f6[_0x481d5b(0x13c)]=function(_0x28ac6a,_0x501fcb){return _0x28ac6a===_0x501fcb;},_0x10f6f6['RgBJC']='WebDriver',_0x10f6f6[_0x481d5b(0xe3)]=function(_0x1b4179,_0x254c62){return _0x1b4179===_0x254c62;},_0x10f6f6[_0x481d5b(0x11d)]=_0x481d5b(0x113),_0x10f6f6[_0x481d5b(0x12c)]=_0x481d5b(0x132);const _0x170a6b=_0x10f6f6;if(_0x170a6b[_0x481d5b(0x13c)](_0x36e10a[_0x481d5b(0x117)]['name'],_0x170a6b['RgBJC']))return await _0x36e10a[_0x481d5b(0x11c)](_0xf48205,_0x2f3a9c);else{if(_0x170a6b[_0x481d5b(0xe3)](_0x36e10a[_0x481d5b(0x117)][_0x481d5b(0x118)],_0x170a6b['cDqdh']))return await _0x36e10a[_0x481d5b(0x121)](_0x481d5b(0x129)+_0xf48205[_0x481d5b(0x112)](/arguments/g,_0x170a6b[_0x481d5b(0x12c)])+_0x481d5b(0x102)+JSON[_0x481d5b(0xed)](_0x2f3a9c)+')');}},exports[a34_0x107325(0x12a)]=async _0xc876d0=>{const _0xfd7f5b=a34_0x107325,_0x2bdb72={};_0x2bdb72['tDDSG']='accessibilityOptions.wcagVersion',_0x2bdb72[_0xfd7f5b(0xde)]=_0xfd7f5b(0x115),_0x2bdb72[_0xfd7f5b(0xfb)]=_0xfd7f5b(0x125),_0x2bdb72[_0xfd7f5b(0x105)]=_0xfd7f5b(0xf4),_0x2bdb72[_0xfd7f5b(0x108)]='accessibilityOptions.authToken',_0x2bdb72[_0xfd7f5b(0x10f)]=_0xfd7f5b(0xeb);const _0x2e9ebe=_0x2bdb72;_0xc876d0[_0xfd7f5b(0xdc)]&&(_0xc876d0['accessibilityOptions'][_0xfd7f5b(0xf5)]&&(_0xc876d0[_0x2e9ebe['tDDSG']]=_0xc876d0[_0xfd7f5b(0xdc)][_0xfd7f5b(0xf5)]),_0xc876d0[_0xfd7f5b(0xdc)]['scannerProcessingTimeout']&&(_0xc876d0[_0x2e9ebe[_0xfd7f5b(0xde)]]=_0xc876d0[_0xfd7f5b(0xdc)][_0xfd7f5b(0x122)]),_0xc876d0[_0xfd7f5b(0xdc)][_0xfd7f5b(0xf1)]&&(_0xc876d0[_0x2e9ebe[_0xfd7f5b(0xfb)]]=_0xc876d0[_0xfd7f5b(0xdc)]['includeIssueType']['bestPractice'],_0xc876d0[_0x2e9ebe[_0xfd7f5b(0x105)]]=_0xc876d0[_0xfd7f5b(0xdc)][_0xfd7f5b(0xf1)][_0xfd7f5b(0xe1)]));const _0x100f72=JSON['parse'](process[_0xfd7f5b(0x120)][_0xfd7f5b(0x116)])['scannerVersion'];_0xc876d0[_0x2e9ebe[_0xfd7f5b(0x108)]]=process['env'][_0xfd7f5b(0xfa)],_0xc876d0[_0x2e9ebe[_0xfd7f5b(0x10f)]]=_0x100f72,delete _0xc876d0['accessibilityOptions'];},exports[a34_0x107325(0x124)]=async _0x5dce94=>{const _0x2c54c2=a34_0x107325,_0x41bd7b={};_0x41bd7b[_0x2c54c2(0x12d)]=_0x2c54c2(0xd8),_0x41bd7b[_0x2c54c2(0x127)]='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.';const _0x36c5b9=_0x41bd7b;if(global[_0x2c54c2(0x10b)])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x5dce94,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x5dce94,scripts.getResults);return res;}catch{return logger[_0x2c54c2(0x101)](_0x36c5b9[_0x2c54c2(0x12d)]),[];}else return logger['warn'](_0x36c5b9['tcxyW']),[];},exports[a34_0x107325(0x134)]=async(_0x366450,_0x13316e='')=>{const _0x4317cf=a34_0x107325;if(global['accessibilityPlatform']){const _0x22a5fb={};return _0x22a5fb[_0x4317cf(0x111)]=_0x13316e,await exports[_0x4317cf(0x11a)](_0x366450,scripts['performScan'],_0x22a5fb);}},exports['getAccessibilityResultsSummary']=async _0xc62f33=>{const _0x950585=a34_0x107325,_0x28349c={};_0x28349c[_0x950585(0xe7)]='No\x20summaryResults\x20found.',_0x28349c[_0x950585(0x138)]='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.';const _0x2ef8d8=_0x28349c;if(global[_0x950585(0x10b)])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0xc62f33,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0xc62f33,scripts.getResultsSummary);return summaryResults;}catch{return logger['debug'](_0x2ef8d8['NtkFQ']),{};}else return logger['warn'](_0x2ef8d8[_0x950585(0x138)]),{};},exports[a34_0x107325(0x133)]=async _0x4f695b=>{const _0x5b830a=a34_0x107325,_0x27126f={'eojOG':function(_0x561529,_0x5c46c2){return _0x561529!==_0x5c46c2;},'JNlyy':_0x5b830a(0x130),'RwmCh':function(_0x5f2c01,_0x35ae4f){return _0x5f2c01===_0x35ae4f;},'rBIvU':_0x5b830a(0xff),'ezjPB':function(_0x4a2c42,_0x5d4e3a){return _0x4a2c42===_0x5d4e3a;},'kYOZI':_0x5b830a(0x10e),'mIRiO':_0x5b830a(0x114),'ULvXN':function(_0xbbec46,_0x33d5b5){return _0xbbec46(_0x33d5b5);},'Qbzif':function(_0x236c04,_0x46a899){return _0x236c04===_0x46a899;},'UbJYH':_0x5b830a(0xf7),'DUcMn':function(_0xaf1e24,_0x30c2d1){return _0xaf1e24>_0x30c2d1;},'FkktQ':_0x5b830a(0x12b)};try{if(!_0x27126f[_0x5b830a(0xef)](_0x4f695b[_0x5b830a(0xe0)],''))return logger[_0x5b830a(0xe6)](_0x27126f[_0x5b830a(0x131)]),![];const _0x1745ef=_0x4f695b[_0x5b830a(0xfc)];if(!(_0x27126f['RwmCh'](_0x1745ef,_0x27126f[_0x5b830a(0x107)])||_0x27126f[_0x5b830a(0x11b)](_0x1745ef,_0x27126f[_0x5b830a(0xda)])))return logger['warn'](_0x27126f[_0x5b830a(0x12e)]),![];const _0x2a9ec2=_0x27126f[_0x5b830a(0x12f)](parseInt,_0x4f695b[_0x5b830a(0xf0)]);if(!(_0x27126f[_0x5b830a(0x123)](_0x2a9ec2,_0x27126f['UbJYH'])||_0x27126f[_0x5b830a(0xea)](_0x2a9ec2,0x5e)))return logger[_0x5b830a(0xe6)](_0x27126f['FkktQ']),![];}catch(_0x2778b5){logger[_0x5b830a(0x126)](_0x5b830a(0x137)+util['format'](_0x2778b5));}return!![];},exports[a34_0x107325(0xec)]=(_0x137944,_0xf02ce7,_0x304240)=>{const _0x577cab=a34_0x107325,_0x1bf12c={'azzlh':function(_0x54124c){return _0x54124c();},'nqUgM':'browserstack.accessibility','qEWZB':function(_0x1b3cbc,_0x3ab57b){return _0x1b3cbc===_0x3ab57b;},'dStFn':_0x577cab(0xff),'geRlN':function(_0x143283,_0x3e8a4c){return _0x143283===_0x3e8a4c;},'NyWSB':_0x577cab(0x10e),'xxQCN':_0x577cab(0x114),'fmEjm':'latest','MxTcV':function(_0x19c973,_0x12704d){return _0x19c973>_0x12704d;},'kzbhd':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','BIKBe':function(_0x483f24,_0x2a63fe){return _0x483f24(_0x2a63fe);},'kvwka':_0x577cab(0x130),'BKamO':function(_0x3ed647,_0x2dc3f8){return _0x3ed647+_0x2dc3f8;}};try{if(_0x1bf12c[_0x577cab(0xf6)](isAccessibilityAutomationSession)){global[_0x577cab(0x10b)]=!![];!_0x137944[_0x1bf12c[_0x577cab(0x110)]]&&(global[_0x577cab(0x10b)]=![]);!(_0x1bf12c[_0x577cab(0xf9)](_0x137944[_0x577cab(0x13b)],_0x1bf12c[_0x577cab(0xe4)])||_0x1bf12c[_0x577cab(0xfe)](_0x137944[_0x577cab(0x13b)],_0x1bf12c[_0x577cab(0xf8)]))&&(logger['warn'](_0x1bf12c[_0x577cab(0xd9)]),global[_0x577cab(0x10b)]=![]);!(_0x1bf12c[_0x577cab(0xf9)](_0x137944[_0x577cab(0xf0)],_0x1bf12c['fmEjm'])||_0x1bf12c['MxTcV'](_0x137944[_0x577cab(0xf0)],0x5e))&&(logger[_0x577cab(0xe6)](_0x1bf12c[_0x577cab(0x139)]),global[_0x577cab(0x10b)]=![]);!_0x1bf12c[_0x577cab(0x104)](isUndefined,_0x137944[_0x577cab(0xe0)])&&(logger[_0x577cab(0xe6)](_0x1bf12c[_0x577cab(0x10d)]),global[_0x577cab(0x10b)]=![]);if(!global[_0x577cab(0x10b)]){_0x137944[_0x1bf12c[_0x577cab(0x110)]]=![];const _0x714a14=_0x1bf12c[_0x577cab(0xdb)](_0xf02ce7,_0x1bf12c[_0x577cab(0x104)](encodeURIComponent,JSON[_0x577cab(0xed)](_0x137944)));_0x304240&&(_0x304240['currentTest'][_0x577cab(0xdd)][_0x577cab(0x135)][_0x577cab(0x109)]['connectOptions']['wsEndpoint']=_0x714a14,_0x304240[_0x577cab(0xe5)][_0x577cab(0x135)][_0x577cab(0x109)]['connectOptions']['wsEndpoint']=_0x714a14);}}}catch(_0x23713d){logger[_0x577cab(0x126)]('Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20'+util[_0x577cab(0x103)](_0x23713d));}};
|
|
1
|
+
function a34_0x5bc5(_0x17cdcd,_0x2513fa){const _0x2548cb=a34_0x2548();return a34_0x5bc5=function(_0x5bc5d7,_0x2b6336){_0x5bc5d7=_0x5bc5d7-0x101;let _0x16e3f6=_0x2548cb[_0x5bc5d7];return _0x16e3f6;},a34_0x5bc5(_0x17cdcd,_0x2513fa);}const a34_0x4b4175=a34_0x5bc5;(function(_0x432c1b,_0x271a1e){const _0x32fe18=a34_0x5bc5,_0x3c3648=_0x432c1b();while(!![]){try{const _0x4183dd=parseInt(_0x32fe18(0x12d))/0x1+-parseInt(_0x32fe18(0x14a))/0x2*(parseInt(_0x32fe18(0x11e))/0x3)+-parseInt(_0x32fe18(0x11d))/0x4*(-parseInt(_0x32fe18(0x124))/0x5)+parseInt(_0x32fe18(0x113))/0x6*(parseInt(_0x32fe18(0x123))/0x7)+parseInt(_0x32fe18(0x14d))/0x8*(-parseInt(_0x32fe18(0x13d))/0x9)+parseInt(_0x32fe18(0x116))/0xa*(parseInt(_0x32fe18(0x107))/0xb)+parseInt(_0x32fe18(0x13f))/0xc*(parseInt(_0x32fe18(0x134))/0xd);if(_0x4183dd===_0x271a1e)break;else _0x3c3648['push'](_0x3c3648['shift']());}catch(_0x2d70ce){_0x3c3648['push'](_0x3c3648['shift']());}}}(a34_0x2548,0x49e41));function a34_0x2548(){const _0x20fb81=['debug','parse','pcHOq','Ynfje','../../helpers/accessibility-automation/scripts','util','accessibilityOptions','name','xUVTP','UpeIs','FlOWM','AxYGe','KPIDM','playwright-chromium','../../helpers/accessibility-automation/helper','QgqpM','PbvZN','warn','hlWMk','NNzJK','env','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','ZMZoP','latest','wcagVersion','jhlnf','constructor','executeScript','vryDB','347798IWyDfc','FiIIs','NxLMf','accessibilityOptions.includeIssueType.needsReview','error','BjKwz','stringify','PoJhO','accessibilityOptions.includeIssueType.bestPractice','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','../../helpers/helper','browser','4410czFXxt','jtcQq','pFmbR','160jjwMVA','(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','includeIssueType','accessibilityOptions.scannerProcessingTimeout','wsEndpoint','getAccessibilityResults','szPdO','4tqyJAD','1765839JUBOFu','JvMib','method','needsReview','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','735huPXIu','184155pzLMur','executeAsyncScript','getAccessibilityResultsSummary','Playwright','currentTest','JvzNh','../../helpers/logger','RFssI','winstonLogger','166529zapAIl','ZYmBi','AgcLy','connectOptions','vsRIu','bstackSdkArgs','chrome','611jEFGcv','mfFEt','accessibilityPlatform','LnjrQ','testInfo','replace','htCTK','browserName','jrtpQ','4172139FzPqbn','NJJKT','145128uMOXLX','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','format','processAccessibilityCaps','fybOs','scannerProcessingTimeout','WebDriver','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','performScan','HrlhY','use','2nDLzun','browserStackExecuteDriver','oAzGy','8lFZBRF','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','bestPractice','setAccessibilityCapabilities'];a34_0x2548=function(){return _0x20fb81;};return a34_0x2548();}const util=require(a34_0x4b4175(0x156)),logger=require(a34_0x4b4175(0x12a))[a34_0x4b4175(0x12c)],{isAccessibilityAutomationSession}=require(a34_0x4b4175(0x15f)),{isUndefined}=require(a34_0x4b4175(0x111)),scripts=require(a34_0x4b4175(0x155));exports['browserStackEvaluate']=async(_0xf31de9,_0x38527e,_0x211a22={})=>{const _0x4bccf7=a34_0x4b4175,_0x397630={};_0x397630['oAzGy']=_0x4bccf7(0x132);const _0x3fc690=_0x397630;return await _0xf31de9['evaluate']('(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20'+_0x38527e[_0x4bccf7(0x139)](/arguments/g,_0x3fc690[_0x4bccf7(0x14c)])+'\x0a\x20\x20\x20\x20})\x0a\x20\x20})('+JSON['stringify'](_0x211a22)+')');},exports[a34_0x4b4175(0x14b)]=async(_0x8aa9c,_0x1b0360,_0x5e4953={})=>{const _0x1a43cb=a34_0x4b4175,_0x309b5f={};_0x309b5f[_0x1a43cb(0x163)]=function(_0x2f5f32,_0x55c101){return _0x2f5f32===_0x55c101;},_0x309b5f['PbvZN']=_0x1a43cb(0x145),_0x309b5f['pFmbR']=function(_0x59969a,_0x5774b0){return _0x59969a===_0x5774b0;},_0x309b5f[_0x1a43cb(0x103)]=_0x1a43cb(0x127),_0x309b5f[_0x1a43cb(0x114)]=_0x1a43cb(0x132);const _0x5bac5c=_0x309b5f;if(_0x5bac5c[_0x1a43cb(0x163)](_0x8aa9c['constructor'][_0x1a43cb(0x158)],_0x5bac5c[_0x1a43cb(0x161)]))return await _0x8aa9c[_0x1a43cb(0x125)](_0x1b0360,_0x5e4953);else{if(_0x5bac5c[_0x1a43cb(0x115)](_0x8aa9c[_0x1a43cb(0x104)][_0x1a43cb(0x158)],_0x5bac5c[_0x1a43cb(0x103)]))return await _0x8aa9c[_0x1a43cb(0x105)](_0x1a43cb(0x117)+_0x1b0360[_0x1a43cb(0x139)](/arguments/g,_0x5bac5c[_0x1a43cb(0x114)])+'\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})('+JSON[_0x1a43cb(0x10d)](_0x5e4953)+')');}},exports[a34_0x4b4175(0x150)]=async _0x311f9a=>{const _0x5bbc59=a34_0x4b4175,_0x55d51c={};_0x55d51c[_0x5bbc59(0x131)]='accessibilityOptions.wcagVersion',_0x55d51c['KPIDM']=_0x5bbc59(0x119),_0x55d51c[_0x5bbc59(0x12b)]=_0x5bbc59(0x10f),_0x55d51c[_0x5bbc59(0x15c)]=_0x5bbc59(0x10a),_0x55d51c['NJJKT']='accessibilityOptions.authToken',_0x55d51c[_0x5bbc59(0x106)]='accessibilityOptions.scannerVersion';const _0x52b853=_0x55d51c;_0x311f9a[_0x5bbc59(0x157)]&&(_0x311f9a[_0x5bbc59(0x157)][_0x5bbc59(0x102)]&&(_0x311f9a[_0x52b853[_0x5bbc59(0x131)]]=_0x311f9a[_0x5bbc59(0x157)][_0x5bbc59(0x102)]),_0x311f9a[_0x5bbc59(0x157)][_0x5bbc59(0x144)]&&(_0x311f9a[_0x52b853[_0x5bbc59(0x15d)]]=_0x311f9a[_0x5bbc59(0x157)][_0x5bbc59(0x144)]),_0x311f9a[_0x5bbc59(0x157)]['includeIssueType']&&(_0x311f9a[_0x52b853[_0x5bbc59(0x12b)]]=_0x311f9a['accessibilityOptions'][_0x5bbc59(0x118)][_0x5bbc59(0x14f)],_0x311f9a[_0x52b853[_0x5bbc59(0x15c)]]=_0x311f9a[_0x5bbc59(0x157)]['includeIssueType'][_0x5bbc59(0x121)]));const _0x5baa27=JSON[_0x5bbc59(0x152)](process[_0x5bbc59(0x165)][_0x5bbc59(0x146)])['scannerVersion'];_0x311f9a[_0x52b853[_0x5bbc59(0x13e)]]=process[_0x5bbc59(0x165)]['BS_A11Y_JWT'],_0x311f9a[_0x52b853[_0x5bbc59(0x106)]]=_0x5baa27,delete _0x311f9a[_0x5bbc59(0x157)];},exports[a34_0x4b4175(0x11b)]=async _0x176298=>{const _0x38e4a8=a34_0x4b4175,_0x388a78={};_0x388a78[_0x38e4a8(0x109)]='No\x20accessibility\x20results\x20were\x20found.',_0x388a78[_0x38e4a8(0x129)]='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.';const _0x4fc181=_0x388a78;if(global['accessibilityPlatform'])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x176298,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x176298,scripts.getResults);return res;}catch{return logger[_0x38e4a8(0x10b)](_0x4fc181['NxLMf']),[];}else return logger[_0x38e4a8(0x162)](_0x4fc181[_0x38e4a8(0x129)]),[];},exports['performScan']=async(_0x4a2737,_0x385904='')=>{const _0x4d87a9=a34_0x4b4175;if(global[_0x4d87a9(0x136)]){const _0x2b0a0e={};return _0x2b0a0e[_0x4d87a9(0x120)]=_0x385904,await exports['browserStackEvaluate'](_0x4a2737,scripts[_0x4d87a9(0x147)],_0x2b0a0e);}},exports[a34_0x4b4175(0x126)]=async _0x1be1c9=>{const _0x322b3a=a34_0x4b4175,_0x4633c7={};_0x4633c7['rURbN']='No\x20summaryResults\x20found.',_0x4633c7[_0x322b3a(0x154)]=_0x322b3a(0x110);const _0x54abd7=_0x4633c7;if(global['accessibilityPlatform'])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x1be1c9,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x1be1c9,scripts.getResultsSummary);return summaryResults;}catch{return logger[_0x322b3a(0x151)](_0x54abd7['rURbN']),{};}else return logger[_0x322b3a(0x162)](_0x54abd7[_0x322b3a(0x154)]),{};},exports['platformValidation']=async _0x4b8620=>{const _0x5200d8=a34_0x4b4175,_0x526ebd={'MeFsW':function(_0x2b5d94,_0x5e7079){return _0x2b5d94!==_0x5e7079;},'FqXdE':_0x5200d8(0x140),'AgcLy':function(_0x3a7557,_0x4a9db7){return _0x3a7557===_0x4a9db7;},'PoJhO':_0x5200d8(0x133),'LnjrQ':_0x5200d8(0x15e),'FlOWM':_0x5200d8(0x166),'HrlhY':function(_0x16372a,_0x329f38){return _0x16372a(_0x329f38);},'UpeIs':function(_0xd35804,_0x42d937){return _0xd35804===_0x42d937;},'JvMib':_0x5200d8(0x101),'QgqpM':function(_0x2170ad,_0x5018c9){return _0x2170ad>_0x5018c9;},'pcHOq':_0x5200d8(0x122)};try{if(!_0x526ebd['MeFsW'](_0x4b8620['deviceName'],''))return logger[_0x5200d8(0x162)](_0x526ebd['FqXdE']),![];const _0x41c020=_0x4b8620[_0x5200d8(0x112)];if(!(_0x526ebd[_0x5200d8(0x12f)](_0x41c020,_0x526ebd[_0x5200d8(0x10e)])||_0x526ebd[_0x5200d8(0x12f)](_0x41c020,_0x526ebd[_0x5200d8(0x137)])))return logger[_0x5200d8(0x162)](_0x526ebd[_0x5200d8(0x15b)]),![];const _0x38c22c=_0x526ebd[_0x5200d8(0x148)](parseInt,_0x4b8620['browser_version']);if(!(_0x526ebd[_0x5200d8(0x15a)](_0x38c22c,_0x526ebd[_0x5200d8(0x11f)])||_0x526ebd[_0x5200d8(0x160)](_0x38c22c,0x5e)))return logger[_0x5200d8(0x162)](_0x526ebd[_0x5200d8(0x153)]),![];}catch(_0x19df16){logger[_0x5200d8(0x151)]('Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20'+util[_0x5200d8(0x141)](_0x19df16));}return!![];},exports[a34_0x4b4175(0x142)]=(_0x4f98fc,_0x5a3b89,_0x419342)=>{const _0x510f82=a34_0x4b4175,_0x48f9a1={'ZMZoP':function(_0x4103ca){return _0x4103ca();},'FiIIs':'browserstack.accessibility','fybOs':function(_0x8e3630,_0x31c9a1){return _0x8e3630===_0x31c9a1;},'QIAhI':_0x510f82(0x133),'NNzJK':'playwright-chromium','xUVTP':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','szPdO':function(_0x2aef12,_0x591bfb){return _0x2aef12===_0x591bfb;},'GJmwW':_0x510f82(0x101),'mfFEt':function(_0x211ded,_0x46e460){return _0x211ded>_0x46e460;},'htCTK':_0x510f82(0x122),'jrtpQ':function(_0x43d5c2,_0x272c71){return _0x43d5c2(_0x272c71);},'BjKwz':_0x510f82(0x140),'ZYmBi':function(_0x1d060f,_0x8f7f7){return _0x1d060f+_0x8f7f7;}};try{if(_0x48f9a1[_0x510f82(0x167)](isAccessibilityAutomationSession)){global[_0x510f82(0x136)]=!![];!_0x4f98fc[_0x48f9a1['FiIIs']]&&(global[_0x510f82(0x136)]=![]);!(_0x48f9a1[_0x510f82(0x143)](_0x4f98fc['browserName'],_0x48f9a1['QIAhI'])||_0x48f9a1[_0x510f82(0x143)](_0x4f98fc[_0x510f82(0x13b)],_0x48f9a1[_0x510f82(0x164)]))&&(logger[_0x510f82(0x162)](_0x48f9a1[_0x510f82(0x159)]),global[_0x510f82(0x136)]=![]);!(_0x48f9a1[_0x510f82(0x11c)](_0x4f98fc['browser_version'],_0x48f9a1['GJmwW'])||_0x48f9a1[_0x510f82(0x135)](_0x4f98fc['browser_version'],0x5e))&&(logger[_0x510f82(0x162)](_0x48f9a1[_0x510f82(0x13a)]),global['accessibilityPlatform']=![]);!_0x48f9a1[_0x510f82(0x13c)](isUndefined,_0x4f98fc['deviceName'])&&(logger['warn'](_0x48f9a1[_0x510f82(0x10c)]),global[_0x510f82(0x136)]=![]);if(!global[_0x510f82(0x136)]){_0x4f98fc[_0x48f9a1[_0x510f82(0x108)]]=![];const _0x39c8c5=_0x48f9a1[_0x510f82(0x12e)](_0x5a3b89,_0x48f9a1[_0x510f82(0x13c)](encodeURIComponent,JSON[_0x510f82(0x10d)](_0x4f98fc)));_0x419342&&(_0x419342[_0x510f82(0x128)][_0x510f82(0x138)]['project']['use'][_0x510f82(0x130)]['wsEndpoint']=_0x39c8c5,_0x419342['workerInfo']['project'][_0x510f82(0x149)][_0x510f82(0x130)][_0x510f82(0x11a)]=_0x39c8c5);}}}catch(_0x5774cd){logger[_0x510f82(0x151)](_0x510f82(0x14e)+util[_0x510f82(0x141)](_0x5774cd));}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a35_0xa463fa=a35_0x9082;(function(_0xb6d58c,_0x2ef2e8){const _0x3d158a=a35_0x9082,_0x778dbd=_0xb6d58c();while(!![]){try{const _0x2d3193=-parseInt(_0x3d158a(0x136))/0x1*(-parseInt(_0x3d158a(0x134))/0x2)+parseInt(_0x3d158a(0x13f))/0x3*(parseInt(_0x3d158a(0x153))/0x4)+-parseInt(_0x3d158a(0x144))/0x5+-parseInt(_0x3d158a(0x148))/0x6*(parseInt(_0x3d158a(0x115))/0x7)+parseInt(_0x3d158a(0xfa))/0x8+parseInt(_0x3d158a(0x140))/0x9+-parseInt(_0x3d158a(0xdd))/0xa*(parseInt(_0x3d158a(0x111))/0xb);if(_0x2d3193===_0x2ef2e8)break;else _0x778dbd['push'](_0x778dbd['shift']());}catch(_0x3f7ed9){_0x778dbd['push'](_0x778dbd['shift']());}}}(a35_0x34e7,0xb9172));function a35_0x9082(_0x436edf,_0x340e4e){const _0x34e7c3=a35_0x34e7();return a35_0x9082=function(_0x9082f,_0x55e459){_0x9082f=_0x9082f-0xc8;let _0x20d669=_0x34e7c3[_0x9082f];return _0x20d669;},a35_0x9082(_0x436edf,_0x340e4e);}const fs=require('fs'),path=require(a35_0xa463fa(0x123)),{spawn}=require(a35_0xa463fa(0x114)),{format}=require('util'),logger=require(a35_0xa463fa(0xf4))[a35_0xa463fa(0xdb)],{default:BrowserStackSetup}=require(a35_0xa463fa(0x12d)),helper=require(a35_0xa463fa(0xd8)),utilities=require(a35_0xa463fa(0x14d)),constants=require(a35_0xa463fa(0x129)),{FRAMEWORKS}=require(a35_0xa463fa(0x13b)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require(a35_0xa463fa(0x143)),{CrashReporter}=require(a35_0xa463fa(0xd3)),{getFrameworkVersion}=require(a35_0xa463fa(0x138)),{checkAccessibilityPlatformConfig}=require('../../helpers/accessibility-automation/helper'),{setAccessibilityCapabilities}=require('./accessibility-helper'),TestHubHandler=require(a35_0xa463fa(0x10d)),{shouldProcessEventForTesthub}=require(a35_0xa463fa(0xf1)),getUserPlaywrightConfig=async(_0x6b1062,_0x47b0de)=>{const _0x49a89c=a35_0xa463fa,_0x127b4b={'SdvIQ':function(_0x1c2b7e){return _0x1c2b7e();},'BcALl':function(_0x59a07f,_0x4be197){return _0x59a07f(_0x4be197);},'mlDKb':_0x49a89c(0xfb),'xSgRd':_0x49a89c(0x137)},_0x306aa4=!helper[_0x49a89c(0x142)](_0x6b1062['config']),_0x3c3976=_0x306aa4?path[_0x49a89c(0x125)](process[_0x49a89c(0x118)](),_0x6b1062[_0x49a89c(0x141)]):process[_0x49a89c(0x118)](),{resolveConfigFile:_0x4896f2,resolveConfigLocation:_0x1153e1}=helper[_0x49a89c(0x151)][_0x49a89c(0xde)](null,_0x127b4b[_0x49a89c(0x150)](getConfigLoaderPath)),_0x4f84bf=_0x4896f2?_0x127b4b['BcALl'](_0x4896f2,_0x3c3976):helper[_0x49a89c(0x14b)](_0x127b4b[_0x49a89c(0x15c)](_0x1153e1,_0x3c3976),[_0x127b4b[_0x49a89c(0xd5)]]),_0x1cf123={};if(_0x306aa4){const _0x4158e4=_0x47b0de['findIndex'](_0x3523c1=>_0x3523c1===_0x49a89c(0xec)||_0x3523c1==='-c'||_0x3523c1[_0x49a89c(0xce)](_0x49a89c(0x137)));_0x47b0de[_0x49a89c(0x135)](_0x4158e4,_0x47b0de[_0x4158e4][_0x49a89c(0xce)](_0x127b4b[_0x49a89c(0x11e)])?0x1:0x2);}const _0x49c89b={};return _0x49c89b[_0x49a89c(0x123)]=_0x4f84bf,_0x49c89b[_0x49a89c(0x141)]=_0x1cf123,_0x49c89b;},handleO11yRerun=_0x49b6b8=>{const _0x282af5=a35_0xa463fa,_0xafc75e={};_0xafc75e[_0x282af5(0x11f)]=function(_0x4b7715,_0x309c75){return _0x4b7715!==_0x309c75;},_0xafc75e['Ktnyd']='null',_0xafc75e[_0x282af5(0x10e)]='--grep';const _0x37488e=_0xafc75e,_0xd1bbf7=helper[_0x282af5(0x147)](process[_0x282af5(0xd4)]['BROWSERSTACK_RERUN']);if(_0xd1bbf7){const _0x566740=process[_0x282af5(0xd4)]['BROWSERSTACK_RERUN_TESTS'],_0x2ee188=[];if(_0x37488e['OPXob'](_0x566740,_0x37488e[_0x282af5(0x15e)])&&!helper[_0x282af5(0x142)](_0x566740)){_0x566740[_0x282af5(0xe5)](',')[_0x282af5(0x10a)](_0x565635=>{const _0x2b5b79=_0x282af5;_0x2ee188[_0x2b5b79(0x158)]('('+_0x565635[_0x2b5b79(0x15f)]()+')');});const _0x26b942='^'+_0x2ee188['join']('|')+'$';_0x49b6b8[_0x282af5(0x158)](_0x37488e[_0x282af5(0x10e)],_0x26b942);}}},spawnOriginalProcess=_0x2f1997=>{const _0x1c43f0=a35_0xa463fa,_0x15938c={'VHbFq':function(_0x3237b0,_0xe4af8a,_0x261d1f,_0x31d6e6){return _0x3237b0(_0xe4af8a,_0x261d1f,_0x31d6e6);},'uqylL':_0x1c43f0(0x11c),'HFxSY':_0x1c43f0(0x11d),'LaZGK':function(_0x3d9bb4,_0x455c1c){return _0x3d9bb4===_0x455c1c;},'ygkBc':_0x1c43f0(0xda),'jTIiS':_0x1c43f0(0x112)};_0x15938c[_0x1c43f0(0x131)](spawn,_0x15938c[_0x1c43f0(0xe6)],[_0x15938c[_0x1c43f0(0x139)],..._0x2f1997[_0x1c43f0(0x11a)](0x1)],{'shell':_0x15938c[_0x1c43f0(0x15d)](process['platform'],_0x15938c[_0x1c43f0(0xf2)]),'stdio':_0x15938c[_0x1c43f0(0xc8)],'cwd':process[_0x1c43f0(0x118)]()});},isTestCommand=(_0x39d075,_0x124d88)=>{const _0xe78861=a35_0xa463fa,_0x1ce43d={};_0x1ce43d[_0xe78861(0x133)]=function(_0x3d3656,_0x5e5855){return _0x3d3656>_0x5e5855;},_0x1ce43d[_0xe78861(0xf5)]=function(_0x55206a,_0x1b75d7){return _0x55206a===_0x1b75d7;},_0x1ce43d[_0xe78861(0x164)]=_0xe78861(0xeb);const _0xa9bd4f=_0x1ce43d;if(_0xa9bd4f[_0xe78861(0x133)](_0x124d88[_0xe78861(0xf0)],0x1)&&_0xa9bd4f[_0xe78861(0xf5)](_0x124d88[0x1],_0xa9bd4f['xFfVQ']))return!![];return![];};async function run(_0xab064,_0x56fe5f){const _0x52d68c=a35_0xa463fa,_0x98f4a8={'jHKrp':'.browserstack','jbNHh':_0x52d68c(0x165),'HmrBG':function(_0x519201,_0x3d2791){return _0x519201+_0x3d2791;},'uSMQX':'Error\x20in\x20getting\x20funnel\x20data\x20results','tGRge':_0x52d68c(0x15b),'BicYb':function(_0x138711){return _0x138711();},'qdzpK':_0x52d68c(0x122),'syfwF':_0x52d68c(0x132),'XbodK':'false','IzjnT':'--disable-test-observability','glfkP':function(_0x5045ae,_0x3435a9){return _0x5045ae>=_0x3435a9;},'Uwuox':function(_0x56791f,_0x36c2e8){return _0x56791f+_0x36c2e8;},'tXAIr':_0x52d68c(0x157),'JnFFH':function(_0x345ab0,_0x313e31,_0x69d6a7){return _0x345ab0(_0x313e31,_0x69d6a7);},'jRSjF':function(_0x3b18a1,_0xa4b702){return _0x3b18a1(_0xa4b702);},'hauTQ':_0x52d68c(0xdf),'vgttr':'automation','qzbZC':function(_0x1c493f,_0x1b8eb8){return _0x1c493f!=_0x1b8eb8;},'lvbtU':function(_0xadb4a5,_0x5249b3,_0x520590){return _0xadb4a5(_0x5249b3,_0x520590);},'edlkW':function(_0xca68bc,_0x4c25a9){return _0xca68bc(_0x4c25a9);},'SAtXf':function(_0x353229,_0x2c075b){return _0x353229===_0x2c075b;},'JDLte':_0x52d68c(0x124),'tZtgn':function(_0x5aada5,_0xd7fc66){return _0x5aada5(_0xd7fc66);},'aWnXE':_0x52d68c(0xe8),'NOkOn':function(_0x522554,_0x3aa2ca){return _0x522554===_0x3aa2ca;},'gvmDe':_0x52d68c(0xfc),'qkrSo':_0x52d68c(0xe3),'Usxne':function(_0x58a308,_0x2383c5){return _0x58a308-_0x2383c5;},'FwtZW':'Updated\x20config\x20file\x20name\x20to\x20-\x20','gZKFU':function(_0x403b74,_0x227c49){return _0x403b74>_0x227c49;},'ezear':function(_0x192acd,_0x1f5d92,_0x1a34df,_0x1de1c5){return _0x192acd(_0x1f5d92,_0x1a34df,_0x1de1c5);},'UjfPx':_0x52d68c(0x11c),'uGCbG':'playwright','BdgMN':_0x52d68c(0xeb),'VUenr':_0x52d68c(0xec),'fuChf':function(_0x13bd5b,_0x542113){return _0x13bd5b===_0x542113;},'fXAvt':'win32','SXGDt':_0x52d68c(0x112),'bJfzJ':_0x52d68c(0xdc)};!helper[_0x52d68c(0xe0)](process[_0x52d68c(0xd4)]['BROWSERSTACK_AUTOMATION'])&&(process[_0x52d68c(0xd4)][_0x52d68c(0x15a)]=!![]);process[_0x52d68c(0x156)][_0x52d68c(0x161)](_0x98f4a8[_0x52d68c(0xd0)])&&(process[_0x52d68c(0xd4)][_0x52d68c(0x15a)]=_0x98f4a8[_0x52d68c(0x12b)],_0x56fe5f=_0x56fe5f[_0x52d68c(0xc9)](_0x1d1aaa=>_0x1d1aaa!==_0x52d68c(0x132)));const _0x2f0258=_0x56fe5f[_0x52d68c(0x160)](_0x98f4a8[_0x52d68c(0xfd)]);_0x98f4a8[_0x52d68c(0xd9)](_0x2f0258,0x0)&&(process[_0x52d68c(0xd4)][_0x52d68c(0xfe)]=_0x98f4a8['XbodK'],_0x56fe5f=_0x56fe5f[_0x52d68c(0xc9)](_0x41d0bf=>_0x41d0bf!==_0x52d68c(0xd6)));try{const _0x437a1a=path[_0x52d68c(0x107)](helper[_0x52d68c(0x13d)](),_0x98f4a8[_0x52d68c(0x11b)],_0x98f4a8[_0x52d68c(0x106)]);fs[_0x52d68c(0x155)](_0x437a1a)&&fs[_0x52d68c(0x102)](_0x437a1a);}catch(_0x337aaf){logger[_0x52d68c(0xf3)](_0x98f4a8[_0x52d68c(0xe7)](_0x98f4a8[_0x52d68c(0x14c)],_0x337aaf));}if(!_0x98f4a8['JnFFH'](isTestCommand,_0xab064,_0x56fe5f)){_0x98f4a8[_0x52d68c(0xe9)](spawnOriginalProcess,_0x56fe5f);return;}const _0x50581f=new BrowserStackSetup(_0xab064,FRAMEWORKS[_0x52d68c(0x14f)]);if(!_0x50581f[_0x52d68c(0x141)]){logger[_0x52d68c(0x128)](_0x98f4a8['hauTQ']);return;}await _0x50581f['initialize']();!helper[_0x52d68c(0x142)](_0x50581f[_0x52d68c(0x12c)])&&_0x50581f[_0x52d68c(0x12c)][_0x52d68c(0xd1)](_0x98f4a8[_0x52d68c(0x116)])&&(process['env'][_0x52d68c(0x15a)]=_0x50581f[_0x52d68c(0x12c)][_0x52d68c(0x13e)](_0x98f4a8[_0x52d68c(0x116)])||!![]);_0x98f4a8[_0x52d68c(0x149)](_0x50581f['config'][_0x52d68c(0x10b)],null)&&!helper[_0x52d68c(0x147)](process[_0x52d68c(0xd4)][_0x52d68c(0xfe)])&&(process['env'][_0x52d68c(0xfe)]=process['env']['BROWSERSTACK_TEST_OBSERVABILITY']||_0x50581f[_0x52d68c(0x141)]['testObservability']);const _0x3df49f=!helper[_0x52d68c(0xe0)](process[_0x52d68c(0xd4)][_0x52d68c(0xfe)]);let _0x276a22=![];_0x50581f[_0x52d68c(0x141)][_0x52d68c(0x120)]&&(_0x276a22=!![],process[_0x52d68c(0xd4)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x50581f[_0x52d68c(0x141)][_0x52d68c(0x120)]);_0x50581f[_0x52d68c(0x141)]['accessibilityOptions']&&(process[_0x52d68c(0xd4)][_0x52d68c(0x108)]=JSON[_0x52d68c(0x10f)](_0x50581f['config'][_0x52d68c(0x109)]));const _0x133c39=_0x56fe5f['concat'](),_0x53bb1a=await _0x98f4a8[_0x52d68c(0xd2)](getUserPlaywrightConfig,_0xab064,_0x56fe5f);if(helper[_0x52d68c(0x142)](_0x53bb1a)){_0x98f4a8[_0x52d68c(0xcf)](spawnOriginalProcess,_0x133c39);return;}const _0xc9c965=_0x53bb1a['path']?path[_0x52d68c(0x126)](_0x53bb1a[_0x52d68c(0x123)]):process['cwd']();process[_0x52d68c(0xd4)][_0x52d68c(0xef)]=_0xc9c965,await TestHubHandler[_0x52d68c(0x12f)](FRAMEWORKS[_0x52d68c(0x14f)],_0x50581f);_0x3df49f&&_0x98f4a8[_0x52d68c(0xe9)](handleO11yRerun,_0x56fe5f);let _0x5946f7=_0x98f4a8['SAtXf'](process[_0x52d68c(0xd4)][_0x52d68c(0xed)],_0x98f4a8[_0x52d68c(0x13a)]);_0x5946f7=_0x5946f7||_0x98f4a8['tZtgn'](checkAccessibilityPlatformConfig,_0x50581f['config']),process['env'][_0x52d68c(0xed)]=_0x5946f7;_0x5946f7&&_0x98f4a8[_0x52d68c(0xcf)](setAccessibilityCapabilities,_0x50581f[_0x52d68c(0x141)]);const _0x461cdb=path[_0x52d68c(0x107)](_0x53bb1a['path']?path[_0x52d68c(0x126)](_0x53bb1a[_0x52d68c(0x123)]):process[_0x52d68c(0x118)](),_0x98f4a8[_0x52d68c(0x13c)]);fs['writeFileSync'](_0x461cdb,helper['serializeToYamlString'](_0x50581f[_0x52d68c(0x141)])),process[_0x52d68c(0xd4)][_0x52d68c(0x113)]=_0x461cdb,helper[_0x52d68c(0x12a)]();let _0x719c69='';_0x98f4a8['NOkOn'](helper[_0x52d68c(0xcc)](),constants[_0x52d68c(0xe1)][_0x52d68c(0x119)])?_0x719c69=_0x98f4a8[_0x52d68c(0x101)]:_0x719c69=_0x98f4a8[_0x52d68c(0x166)];let _0x4f16e4='';if(helper[_0x52d68c(0xe4)](_0x53bb1a[_0x52d68c(0x123)])){_0x4f16e4=_0x52d68c(0x127);const _0x5f1158=_0x719c69['split']('.');_0x5f1158[_0x98f4a8['Usxne'](_0x5f1158[_0x52d68c(0xf0)],0x1)]='ts',_0x719c69=_0x5f1158[_0x52d68c(0x107)]('.'),logger[_0x52d68c(0xf3)](_0x98f4a8['HmrBG'](_0x98f4a8[_0x52d68c(0x145)],_0x719c69));}else _0x4f16e4=_0x52d68c(0xea);const _0x355db0=path[_0x52d68c(0x107)](_0x53bb1a[_0x52d68c(0x123)]?path['dirname'](_0x53bb1a[_0x52d68c(0x123)]):process['cwd'](),_0x719c69);let _0x2cfa3b=_0x53bb1a[_0x52d68c(0x123)]?_0x53bb1a[_0x52d68c(0x123)]:'';_0x2cfa3b=_0x98f4a8[_0x52d68c(0x103)](_0x2cfa3b['length'],0x0)?path['resolve'](_0x2cfa3b):'',process[_0x52d68c(0xd4)][_0x52d68c(0xff)]=_0x2cfa3b;const _0x2449c1=helper[_0x52d68c(0x121)](_0x50581f[_0x52d68c(0x141)]);_0x2449c1&&(_0x4f16e4=_0x98f4a8[_0x52d68c(0xe7)](_0x52d68c(0x130)+_0x2449c1+_0x52d68c(0xcb),_0x4f16e4));helper[_0x52d68c(0x12e)]({},_0x56fe5f),fs[_0x52d68c(0xd7)](_0x355db0,_0x4f16e4),helper[_0x52d68c(0x162)]();const _0x560c6c=_0x98f4a8['ezear'](spawn,_0x98f4a8[_0x52d68c(0x159)],[_0x98f4a8[_0x52d68c(0x100)],_0x98f4a8[_0x52d68c(0x152)],_0x98f4a8[_0x52d68c(0xca)],_0x355db0,..._0x56fe5f[_0x52d68c(0x11a)](0x2)],{'shell':_0x98f4a8[_0x52d68c(0xcd)](process['platform'],_0x98f4a8[_0x52d68c(0x163)]),'stdio':_0x98f4a8['SXGDt'],'cwd':process[_0x52d68c(0x118)](),'env':Object[_0x52d68c(0xee)]({},process[_0x52d68c(0xd4)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper['getConfigPath'](_0xab064),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x50581f['config'][_0x52d68c(0x14e)]['skipSessionStatus'],'BROWSERSTACK_SKIP_SESSION_NAME':_0x50581f[_0x52d68c(0x141)]['testContextOptions'][_0x52d68c(0x10c)],'BROWSERSTACK_LOG_LEVEL':_0x50581f[_0x52d68c(0x141)][_0x52d68c(0xf8)]})}),_0x3a13db=()=>{const _0x3387ed=_0x52d68c;try{const _0x37565d=path[_0x3387ed(0x107)](helper[_0x3387ed(0x13d)](),_0x98f4a8[_0x3387ed(0x11b)],_0x98f4a8[_0x3387ed(0x106)]);if(fs[_0x3387ed(0x155)](_0x37565d)){let _0xc4beaf=fs[_0x3387ed(0xf9)](_0x37565d);_0xc4beaf=JSON[_0x3387ed(0xf7)](_0xc4beaf),_0x50581f[_0x3387ed(0x14a)]=_0xc4beaf,fs[_0x3387ed(0x102)](_0x37565d);}}catch(_0xdf9257){logger[_0x3387ed(0xf3)](_0x98f4a8[_0x3387ed(0xe2)](_0x98f4a8['uSMQX'],_0xdf9257));}};_0x560c6c['on'](_0x98f4a8[_0x52d68c(0x105)],async _0x211b18=>{const _0x42c790=_0x52d68c;try{const _0x26e353=_0x98f4a8[_0x42c790(0x154)]['split']('|');let _0x378bb8=0x0;while(!![]){switch(_0x26e353[_0x378bb8++]){case'0':await utilities[_0x42c790(0xf6)](_0x50581f);continue;case'1':fs[_0x42c790(0x102)](_0x355db0);continue;case'2':_0x98f4a8['BicYb'](_0x3a13db);continue;case'3':logger['debug']('Playwright\x20process\x20exited\x20with\x20code\x20'+_0x211b18);continue;case'4':await TestHubHandler[_0x42c790(0x104)]();continue;case'5':process[_0x42c790(0x110)]=_0x211b18;continue;case'6':logger['info'](_0x42c790(0x146)+_0x355db0);continue;case'7':logger[_0x42c790(0xf3)](_0x42c790(0x146)+_0x461cdb);continue;case'8':fs[_0x42c790(0x102)](_0x461cdb);continue;}break;}}catch(_0x3f5cd7){logger[_0x42c790(0xf3)](_0x98f4a8[_0x42c790(0xe2)](_0x98f4a8['qdzpK'],_0x3f5cd7));}});}module[a35_0xa463fa(0x117)]=run;function a35_0x34e7(){const _0xc42fe7=['../../helpers/logger','xIeDp','finalExecution','parse','logLevel','readFileSync','5902800VyjPbb','resolvedConfigFile','playwright-browserstack-sdk.config.cjs','IzjnT','BROWSERSTACK_TEST_OBSERVABILITY','USER_CONFIG_DETAILS_PATH','uGCbG','gvmDe','unlinkSync','gZKFU','stop','bJfzJ','jbNHh','join','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','accessibilityOptions','map','testObservability','skipSessionName','../../helpers/testhub/testhubHandler','FqMeS','stringify','exitCode','2224123kTGCsQ','inherit','BROWSERSTACK_SETUP_CONFIG_PATH','child_process','518XMSfXR','vgttr','exports','cwd','MODULE','slice','jHKrp','npx','playwright','xSgRd','OPXob','accessibility','getProxyUrl','Error\x20in\x20closing\x20playwright','path','true','resolve','dirname','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','error','../utils/constants','clearTempPWConfig','XbodK','cliConfig','../../helpers/BrowserStackSetup','filterBrowserstackArgs','launchBuild','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','VHbFq','--disable-browserstack-automation','UJkQn','2oAZJad','splice','451957kIqdIc','--config=','../../helpers/test-observability/utils','HFxSY','JDLte','../../helpers/test-observability/constants','aWnXE','homedir','get','12imsBhk','12340665sbLHTl','config','isUndefined','./reporter/pwUtils','1964480BSjvRL','FwtZW','Deleting\x20','isTrue','87234LsHrjc','qzbZC','errorMessage','nestedKeyValue','tXAIr','../../helpers/utilities','testContextOptions','PLAYWRIGHT','SdvIQ','requirePWModule','BdgMN','474692iHYdcs','tGRge','existsSync','argv','Error\x20in\x20deleting\x20playwright\x20results','push','UjfPx','BROWSERSTACK_AUTOMATION','2|4|0|5|3|6|1|7|8','BcALl','LaZGK','Ktnyd','trim','indexOf','includes','markSDKSetupComplete','fXAvt','xFfVQ','pw_result.json','qkrSo','jTIiS','filter','VUenr','\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();','getPackageType','fuChf','startsWith','edlkW','syfwF','has','lvbtU','../../helpers/test-observability/error-handler','env','mlDKb','--disable-test-observability','writeFileSync','../../helpers/helper','glfkP','win32','winstonLogger','close','40riJGrm','apply','BrowserStack\x20config\x20file\x20not\x20found.','isFalse','PACKAGE_TYPE','HmrBG','playwright-browserstack-sdk.config.js','isTypescriptProject','split','uqylL','Uwuox','browserstackSetupConfig.json','jRSjF','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','test','--config','BROWSERSTACK_TEST_ACCESSIBILITY_YML','assign','BROWSERSTACK_PW_CONFIG_DIR','length','../../helpers/testhub/utils','ygkBc','debug'];a35_0x34e7=function(){return _0xc42fe7;};return a35_0x34e7();}
|
|
2
|
+
'use strict';const a35_0x5efd26=a35_0x5dae;function a35_0x5dae(_0x3036b7,_0x2bd7b6){const _0x1d6796=a35_0x1d67();return a35_0x5dae=function(_0x5dae41,_0x587e3c){_0x5dae41=_0x5dae41-0x76;let _0x13ccc2=_0x1d6796[_0x5dae41];return _0x13ccc2;},a35_0x5dae(_0x3036b7,_0x2bd7b6);}(function(_0x453073,_0x5a2f58){const _0x1df9ff=a35_0x5dae,_0x14209a=_0x453073();while(!![]){try{const _0x437076=-parseInt(_0x1df9ff(0xd4))/0x1*(-parseInt(_0x1df9ff(0xa1))/0x2)+parseInt(_0x1df9ff(0xd7))/0x3+-parseInt(_0x1df9ff(0xad))/0x4*(parseInt(_0x1df9ff(0xce))/0x5)+parseInt(_0x1df9ff(0xe4))/0x6+parseInt(_0x1df9ff(0xbb))/0x7+parseInt(_0x1df9ff(0xd1))/0x8+-parseInt(_0x1df9ff(0xff))/0x9;if(_0x437076===_0x5a2f58)break;else _0x14209a['push'](_0x14209a['shift']());}catch(_0x5ab883){_0x14209a['push'](_0x14209a['shift']());}}}(a35_0x1d67,0x757df));function a35_0x1d67(){const _0x4b9a42=['debug','--config=','ckbSW','Error\x20in\x20closing\x20playwright','nDTJO','testContextOptions','tyzJC','17061030LwVwHv','readFileSync','skipSessionName','isTypescriptProject','--config','getConfigPath','AiAuw','platform','getProxyUrl','FRzcu','pw_result.json','isTrue','errorMessage','../../helpers/logger','writeFileSync','npx','PzgqY','Deleting\x20','../../helpers/utilities','path','push','BROWSERSTACK_TEST_OBSERVABILITY','nestedKeyValue','Playwright\x20process\x20exited\x20with\x20code\x20','jAswg','inherit','testObservability','close','splice','true','finalExecution','PnXWr','filterBrowserstackArgs','config','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','rZIjk','vInia','OcTla','resolvedConfigFile','dtqNC','indexOf','../../helpers/testhub/utils','exports','includes','eNqAD','USER_CONFIG_DETAILS_PATH','Error\x20in\x20deleting\x20playwright\x20results','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','mfxHX','playwright-browserstack-sdk.config.js','parse','launchBuild','stop','DVsCJ','split','oiDeh','62986oTaebO','gDsSV','NvmOu','../../helpers/test-observability/utils','BrowserStack\x20config\x20file\x20not\x20found.','length','lXMzZ','info','oWqPR','KtlMN','test','osMGV','108LSFwIg','BROWSERSTACK_RERUN','concat','sNveJ','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','existsSync','resolve','./accessibility-helper','--disable-test-observability','PLAYWRIGHT','--disable-browserstack-automation','accessibilityOptions','skipSessionStatus','uzRFf','1536696cNHPRS','VwyCb','playwright-browserstack-sdk.config.cjs','BROWSERSTACK_TEST_ACCESSIBILITY_YML','has','../utils/constants','unlinkSync','dirname','EshFq','CEUeR','win32','BROWSERSTACK_AUTOMATION','sElaT','CyHbp','accessibility','exitCode','JNtyP','browserstackSetupConfig.json','env','1265XhePhJ','cliConfig','HvXGa','5623616csCkCK','error','playwright','3ZMEfgz','map','hquMj','1470816QMKulh','isFalse','ufZNJ','../../helpers/test-observability/error-handler','trim','slice','AlvoY','markSDKSetupComplete','unObj','homedir','sMiRm','isUndefined','../../helpers/accessibility-automation/helper','5259102pLWRwg','join','argv','Error\x20in\x20getting\x20funnel\x20data\x20results','LEjst','MODULE','cwd','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','BROWSERSTACK_PW_CONFIG_DIR','frEfn','requirePWModule','filter','util','stringify','YqUaw','owumD','getPackageType','8|3|0|6|7|1|2|4|5','false','mqHbZ'];a35_0x1d67=function(){return _0x4b9a42;};return a35_0x1d67();}const fs=require('fs'),path=require('path'),{spawn}=require('child_process'),{format}=require(a35_0x5efd26(0xf0)),logger=require(a35_0x5efd26(0x76))['winstonLogger'],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require('../../helpers/helper'),utilities=require(a35_0x5efd26(0x7b)),constants=require(a35_0x5efd26(0xc0)),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require('./reporter/pwUtils'),{CrashReporter}=require(a35_0x5efd26(0xda)),{getFrameworkVersion}=require(a35_0x5efd26(0xa4)),{checkAccessibilityPlatformConfig}=require(a35_0x5efd26(0xe3)),{setAccessibilityCapabilities}=require(a35_0x5efd26(0xb4)),TestHubHandler=require('../../helpers/testhub/testhubHandler'),{shouldProcessEventForTesthub}=require(a35_0x5efd26(0x92)),getUserPlaywrightConfig=async(_0x16d4af,_0x447c3a)=>{const _0x124805=a35_0x5efd26,_0x5f07ac={'CyHbp':function(_0x4b89d6){return _0x4b89d6();},'owumD':function(_0xb140d0,_0x2a9de9){return _0xb140d0(_0x2a9de9);},'VwyCb':_0x124805(0x8f),'PnXWr':_0x124805(0xf9)},_0x5b6525=!helper[_0x124805(0xe2)](_0x16d4af[_0x124805(0x8a)]),_0x182ce1=_0x5b6525?path[_0x124805(0xb3)](process[_0x124805(0xea)](),_0x16d4af[_0x124805(0x8a)]):process[_0x124805(0xea)](),{resolveConfigFile:_0x56717d,resolveConfigLocation:_0x3e0625}=helper[_0x124805(0xee)]['apply'](null,_0x5f07ac[_0x124805(0xc8)](getConfigLoaderPath)),_0x3de3d4=_0x56717d?_0x5f07ac[_0x124805(0xf3)](_0x56717d,_0x182ce1):helper[_0x124805(0x7f)](_0x5f07ac[_0x124805(0xf3)](_0x3e0625,_0x182ce1),[_0x5f07ac[_0x124805(0xbc)]]),_0x7de7d9={};if(_0x5b6525){const _0x29681e=_0x447c3a['findIndex'](_0xfe5688=>_0xfe5688===_0x124805(0x103)||_0xfe5688==='-c'||_0xfe5688['startsWith'](_0x124805(0xf9)));_0x447c3a[_0x124805(0x85)](_0x29681e,_0x447c3a[_0x29681e]['startsWith'](_0x5f07ac[_0x124805(0x88)])?0x1:0x2);}const _0x21b72f={};return _0x21b72f[_0x124805(0x7c)]=_0x3de3d4,_0x21b72f[_0x124805(0x8a)]=_0x7de7d9,_0x21b72f;},handleO11yRerun=_0x10293d=>{const _0x53e13a=a35_0x5efd26,_0x555465={};_0x555465['nDTJO']=function(_0xbafe24,_0x206e7c){return _0xbafe24!==_0x206e7c;},_0x555465['hquMj']='null',_0x555465[_0x53e13a(0xa2)]='--grep';const _0x17326d=_0x555465,_0x2c9c16=helper[_0x53e13a(0x10a)](process[_0x53e13a(0xcd)][_0x53e13a(0xae)]);if(_0x2c9c16){const _0x1b9c7f=process[_0x53e13a(0xcd)]['BROWSERSTACK_RERUN_TESTS'],_0xff837c=[];if(_0x17326d[_0x53e13a(0xfc)](_0x1b9c7f,_0x17326d[_0x53e13a(0xd6)])&&!helper['isUndefined'](_0x1b9c7f)){_0x1b9c7f[_0x53e13a(0x9f)](',')[_0x53e13a(0xd5)](_0x2f56e6=>{const _0x19521f=_0x53e13a;_0xff837c[_0x19521f(0x7d)]('('+_0x2f56e6[_0x19521f(0xdb)]()+')');});const _0x5b646f='^'+_0xff837c[_0x53e13a(0xe5)]('|')+'$';_0x10293d[_0x53e13a(0x7d)](_0x17326d['gDsSV'],_0x5b646f);}}},spawnOriginalProcess=_0xebcb7c=>{const _0x44617f=a35_0x5efd26,_0x90f5ce={'mfxHX':function(_0x56ac20,_0x2f5efc,_0x370c96,_0x23f45a){return _0x56ac20(_0x2f5efc,_0x370c96,_0x23f45a);},'ABznT':_0x44617f(0x78),'HvXGa':_0x44617f(0xd3),'oiDeh':function(_0x52ab18,_0x5cc05d){return _0x52ab18===_0x5cc05d;},'gYiGX':_0x44617f(0xc5),'ufZNJ':_0x44617f(0x82)};_0x90f5ce[_0x44617f(0x99)](spawn,_0x90f5ce['ABznT'],[_0x90f5ce[_0x44617f(0xd0)],..._0xebcb7c[_0x44617f(0xdc)](0x1)],{'shell':_0x90f5ce[_0x44617f(0xa0)](process[_0x44617f(0x106)],_0x90f5ce['gYiGX']),'stdio':_0x90f5ce[_0x44617f(0xd9)],'cwd':process[_0x44617f(0xea)]()});},isTestCommand=(_0x564d5f,_0x38b749)=>{const _0x3ee02a=a35_0x5efd26,_0x402b26={};_0x402b26['EshFq']=function(_0x5f0ca6,_0x200095){return _0x5f0ca6>_0x200095;},_0x402b26[_0x3ee02a(0xcb)]=function(_0x1aea09,_0x45d094){return _0x1aea09===_0x45d094;},_0x402b26['rZIjk']=_0x3ee02a(0xab);const _0x38291b=_0x402b26;if(_0x38291b[_0x3ee02a(0xc3)](_0x38b749[_0x3ee02a(0xa6)],0x1)&&_0x38291b[_0x3ee02a(0xcb)](_0x38b749[0x1],_0x38291b[_0x3ee02a(0x8c)]))return!![];return![];};async function run(_0x1dcf2d,_0xd4195c){const _0x529f0a=a35_0x5efd26,_0x25ce14={'mqHbZ':'.browserstack','unObj':_0x529f0a(0x109),'sElaT':function(_0x2ca8a2,_0x448c09){return _0x2ca8a2+_0x448c09;},'jAswg':_0x529f0a(0xe7),'lXMzZ':_0x529f0a(0xf5),'ZENHm':function(_0x591499){return _0x591499();},'dtqNC':_0x529f0a(0xfb),'AiAuw':_0x529f0a(0xb7),'osMGV':_0x529f0a(0xf6),'ckbSW':'--disable-test-observability','wHmxS':function(_0x1c6b2d,_0x4c47cf){return _0x1c6b2d>=_0x4c47cf;},'aTqQU':_0x529f0a(0x97),'zfbIY':function(_0xa5d91f,_0x30c47f,_0x121e67){return _0xa5d91f(_0x30c47f,_0x121e67);},'frEfn':function(_0x334a74,_0x5519ce){return _0x334a74(_0x5519ce);},'PzgqY':_0x529f0a(0xa5),'sNveJ':'automation','tyzJC':function(_0x4bdc63,_0x43747f){return _0x4bdc63!=_0x43747f;},'AlvoY':function(_0x3b4683,_0x1f79b6,_0x4452f6){return _0x3b4683(_0x1f79b6,_0x4452f6);},'KtlMN':function(_0x321ce9,_0x3d3ea0){return _0x321ce9(_0x3d3ea0);},'uzRFf':function(_0x1fef82,_0x2362db){return _0x1fef82===_0x2362db;},'IadxE':_0x529f0a(0x86),'vInia':function(_0x4f218b,_0x1178d6){return _0x4f218b(_0x1178d6);},'DVsCJ':_0x529f0a(0xcc),'dwOvv':function(_0x2fa5fe,_0x22bae1){return _0x2fa5fe===_0x22bae1;},'LEjst':_0x529f0a(0xbd),'zRhWT':_0x529f0a(0x9a),'oWqPR':function(_0x4cd887,_0x508619){return _0x4cd887-_0x508619;},'FRzcu':'Updated\x20config\x20file\x20name\x20to\x20-\x20','sMiRm':function(_0x217f71,_0x1ffc4c){return _0x217f71>_0x1ffc4c;},'OcTla':function(_0x3adb06,_0x40bc65,_0xc55877,_0x4b17ed){return _0x3adb06(_0x40bc65,_0xc55877,_0x4b17ed);},'CEUeR':'npx','ASKBm':_0x529f0a(0xd3),'NvmOu':_0x529f0a(0xab),'dkeDa':_0x529f0a(0x103),'efMej':_0x529f0a(0xc5),'YqUaw':_0x529f0a(0x82),'eNqAD':_0x529f0a(0x84)};!helper[_0x529f0a(0xd8)](process['env'][_0x529f0a(0xc6)])&&(process[_0x529f0a(0xcd)][_0x529f0a(0xc6)]=!![]);process[_0x529f0a(0xe6)][_0x529f0a(0x94)](_0x25ce14[_0x529f0a(0x105)])&&(process[_0x529f0a(0xcd)][_0x529f0a(0xc6)]=_0x25ce14[_0x529f0a(0xac)],_0xd4195c=_0xd4195c[_0x529f0a(0xef)](_0x1a5828=>_0x1a5828!==_0x529f0a(0xb7)));const _0x347771=_0xd4195c[_0x529f0a(0x91)](_0x25ce14[_0x529f0a(0xfa)]);_0x25ce14['wHmxS'](_0x347771,0x0)&&(process[_0x529f0a(0xcd)][_0x529f0a(0x7e)]=_0x25ce14[_0x529f0a(0xac)],_0xd4195c=_0xd4195c['filter'](_0x2c08b7=>_0x2c08b7!==_0x529f0a(0xb5)));try{const _0x40982c=path[_0x529f0a(0xe5)](helper[_0x529f0a(0xe0)](),_0x25ce14['mqHbZ'],_0x25ce14[_0x529f0a(0xdf)]);fs[_0x529f0a(0xb2)](_0x40982c)&&fs[_0x529f0a(0xc1)](_0x40982c);}catch(_0x751e36){logger[_0x529f0a(0xf8)](_0x25ce14['sElaT'](_0x25ce14['aTqQU'],_0x751e36));}if(!_0x25ce14['zfbIY'](isTestCommand,_0x1dcf2d,_0xd4195c)){_0x25ce14[_0x529f0a(0xed)](spawnOriginalProcess,_0xd4195c);return;}const _0x1eb2dc=new BrowserStackSetup(_0x1dcf2d,FRAMEWORKS['PLAYWRIGHT']);if(!_0x1eb2dc['config']){logger[_0x529f0a(0xd2)](_0x25ce14[_0x529f0a(0x79)]);return;}await _0x1eb2dc['initialize']();!helper[_0x529f0a(0xe2)](_0x1eb2dc['cliConfig'])&&_0x1eb2dc[_0x529f0a(0xcf)][_0x529f0a(0xbf)](_0x25ce14[_0x529f0a(0xb0)])&&(process[_0x529f0a(0xcd)][_0x529f0a(0xc6)]=_0x1eb2dc[_0x529f0a(0xcf)]['get'](_0x25ce14[_0x529f0a(0xb0)])||!![]);_0x25ce14[_0x529f0a(0xfe)](_0x1eb2dc[_0x529f0a(0x8a)][_0x529f0a(0x83)],null)&&!helper['isTrue'](process[_0x529f0a(0xcd)][_0x529f0a(0x7e)])&&(process[_0x529f0a(0xcd)][_0x529f0a(0x7e)]=process[_0x529f0a(0xcd)][_0x529f0a(0x7e)]||_0x1eb2dc[_0x529f0a(0x8a)][_0x529f0a(0x83)]);const _0x15c98a=!helper['isFalse'](process[_0x529f0a(0xcd)][_0x529f0a(0x7e)]);let _0x5f605f=![];_0x1eb2dc[_0x529f0a(0x8a)][_0x529f0a(0xc9)]&&(_0x5f605f=!![],process[_0x529f0a(0xcd)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x1eb2dc[_0x529f0a(0x8a)][_0x529f0a(0xc9)]);_0x1eb2dc[_0x529f0a(0x8a)][_0x529f0a(0xb8)]&&(process[_0x529f0a(0xcd)][_0x529f0a(0x98)]=JSON[_0x529f0a(0xf1)](_0x1eb2dc[_0x529f0a(0x8a)]['accessibilityOptions']));const _0x230743=_0xd4195c[_0x529f0a(0xaf)](),_0x1679e5=await _0x25ce14[_0x529f0a(0xdd)](getUserPlaywrightConfig,_0x1dcf2d,_0xd4195c);if(helper[_0x529f0a(0xe2)](_0x1679e5)){_0x25ce14['frEfn'](spawnOriginalProcess,_0x230743);return;}const _0x2a2e74=_0x1679e5[_0x529f0a(0x7c)]?path[_0x529f0a(0xc2)](_0x1679e5[_0x529f0a(0x7c)]):process[_0x529f0a(0xea)]();process['env'][_0x529f0a(0xec)]=_0x2a2e74,await TestHubHandler[_0x529f0a(0x9c)](FRAMEWORKS[_0x529f0a(0xb6)],_0x1eb2dc);_0x15c98a&&_0x25ce14[_0x529f0a(0xaa)](handleO11yRerun,_0xd4195c);let _0x4ff354=_0x25ce14[_0x529f0a(0xba)](process[_0x529f0a(0xcd)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML'],_0x25ce14['IadxE']);_0x4ff354=_0x4ff354||_0x25ce14[_0x529f0a(0xed)](checkAccessibilityPlatformConfig,_0x1eb2dc[_0x529f0a(0x8a)]),process['env'][_0x529f0a(0xbe)]=_0x4ff354;_0x4ff354&&_0x25ce14[_0x529f0a(0x8d)](setAccessibilityCapabilities,_0x1eb2dc['config']);const _0x2e55ba=path[_0x529f0a(0xe5)](_0x1679e5[_0x529f0a(0x7c)]?path[_0x529f0a(0xc2)](_0x1679e5[_0x529f0a(0x7c)]):process['cwd'](),_0x25ce14[_0x529f0a(0x9e)]);fs[_0x529f0a(0x77)](_0x2e55ba,helper['serializeToYamlString'](_0x1eb2dc[_0x529f0a(0x8a)])),process[_0x529f0a(0xcd)]['BROWSERSTACK_SETUP_CONFIG_PATH']=_0x2e55ba,helper['clearTempPWConfig']();let _0x4edf8f='';_0x25ce14['dwOvv'](helper[_0x529f0a(0xf4)](),constants['PACKAGE_TYPE'][_0x529f0a(0xe9)])?_0x4edf8f=_0x25ce14[_0x529f0a(0xe8)]:_0x4edf8f=_0x25ce14['zRhWT'];let _0x111793='';if(helper[_0x529f0a(0x102)](_0x1679e5[_0x529f0a(0x7c)])){_0x111793=_0x529f0a(0xeb);const _0x2a5a76=_0x4edf8f[_0x529f0a(0x9f)]('.');_0x2a5a76[_0x25ce14[_0x529f0a(0xa9)](_0x2a5a76['length'],0x1)]='ts',_0x4edf8f=_0x2a5a76['join']('.'),logger['debug'](_0x25ce14[_0x529f0a(0xc7)](_0x25ce14[_0x529f0a(0x108)],_0x4edf8f));}else _0x111793=_0x529f0a(0x8b);const _0x23dccf=path['join'](_0x1679e5[_0x529f0a(0x7c)]?path[_0x529f0a(0xc2)](_0x1679e5[_0x529f0a(0x7c)]):process[_0x529f0a(0xea)](),_0x4edf8f);let _0x4d7643=_0x1679e5['path']?_0x1679e5[_0x529f0a(0x7c)]:'';_0x4d7643=_0x25ce14[_0x529f0a(0xe1)](_0x4d7643[_0x529f0a(0xa6)],0x0)?path[_0x529f0a(0xb3)](_0x4d7643):'',process[_0x529f0a(0xcd)][_0x529f0a(0x96)]=_0x4d7643;const _0x318a70=helper[_0x529f0a(0x107)](_0x1eb2dc[_0x529f0a(0x8a)]);_0x318a70&&(_0x111793=_0x25ce14['sElaT'](_0x529f0a(0xb1)+_0x318a70+'\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();',_0x111793));helper[_0x529f0a(0x89)]({},_0xd4195c),fs['writeFileSync'](_0x23dccf,_0x111793),helper[_0x529f0a(0xde)]();const _0xbb0bed=_0x25ce14[_0x529f0a(0x8e)](spawn,_0x25ce14[_0x529f0a(0xc4)],[_0x25ce14['ASKBm'],_0x25ce14[_0x529f0a(0xa3)],_0x25ce14['dkeDa'],_0x23dccf,..._0xd4195c[_0x529f0a(0xdc)](0x2)],{'shell':_0x25ce14[_0x529f0a(0xba)](process[_0x529f0a(0x106)],_0x25ce14['efMej']),'stdio':_0x25ce14[_0x529f0a(0xf2)],'cwd':process[_0x529f0a(0xea)](),'env':Object['assign']({},process[_0x529f0a(0xcd)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x529f0a(0x104)](_0x1dcf2d),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x1eb2dc['config'][_0x529f0a(0xfd)][_0x529f0a(0xb9)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x1eb2dc[_0x529f0a(0x8a)][_0x529f0a(0xfd)][_0x529f0a(0x101)],'BROWSERSTACK_LOG_LEVEL':_0x1eb2dc['config']['logLevel']})}),_0x456135=()=>{const _0x32999b=_0x529f0a;try{const _0x51d2c9=path[_0x32999b(0xe5)](helper[_0x32999b(0xe0)](),_0x25ce14[_0x32999b(0xf7)],_0x25ce14[_0x32999b(0xdf)]);if(fs['existsSync'](_0x51d2c9)){let _0x57acda=fs[_0x32999b(0x100)](_0x51d2c9);_0x57acda=JSON[_0x32999b(0x9b)](_0x57acda),_0x1eb2dc[_0x32999b(0x10b)]=_0x57acda,fs[_0x32999b(0xc1)](_0x51d2c9);}}catch(_0x18d730){logger[_0x32999b(0xf8)](_0x25ce14[_0x32999b(0xc7)](_0x25ce14[_0x32999b(0x81)],_0x18d730));}};_0xbb0bed['on'](_0x25ce14[_0x529f0a(0x95)],async _0x25d221=>{const _0x35dbb2=_0x529f0a;try{const _0x2bcd82=_0x25ce14[_0x35dbb2(0xa7)][_0x35dbb2(0x9f)]('|');let _0x4f10aa=0x0;while(!![]){switch(_0x2bcd82[_0x4f10aa++]){case'0':await utilities[_0x35dbb2(0x87)](_0x1eb2dc);continue;case'1':logger[_0x35dbb2(0xa8)](_0x35dbb2(0x7a)+_0x23dccf);continue;case'2':fs[_0x35dbb2(0xc1)](_0x23dccf);continue;case'3':await TestHubHandler[_0x35dbb2(0x9d)]();continue;case'4':logger[_0x35dbb2(0xf8)](_0x35dbb2(0x7a)+_0x2e55ba);continue;case'5':fs['unlinkSync'](_0x2e55ba);continue;case'6':process[_0x35dbb2(0xca)]=_0x25d221;continue;case'7':logger[_0x35dbb2(0xf8)](_0x35dbb2(0x80)+_0x25d221);continue;case'8':_0x25ce14['ZENHm'](_0x456135);continue;}break;}}catch(_0x1a5959){logger['debug'](_0x25ce14[_0x35dbb2(0xc7)](_0x25ce14[_0x35dbb2(0x90)],_0x1a5959));}});}module[a35_0x5efd26(0x93)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a36_0x1ce6da=a36_0x4f0a;(function(_0x44b886,_0x5abc1e){const _0x43648d=a36_0x4f0a,_0x1fcc5d=_0x44b886();while(!![]){try{const _0xad63a6=parseInt(_0x43648d(0x1f4))/0x1+-parseInt(_0x43648d(0x1e2))/0x2*(parseInt(_0x43648d(0x1e6))/0x3)+-parseInt(_0x43648d(0x1f3))/0x4+parseInt(_0x43648d(0x214))/0x5*(-parseInt(_0x43648d(0x200))/0x6)+parseInt(_0x43648d(0x1eb))/0x7+-parseInt(_0x43648d(0x20f))/0x8*(parseInt(_0x43648d(0x210))/0x9)+parseInt(_0x43648d(0x1fd))/0xa;if(_0xad63a6===_0x5abc1e)break;else _0x1fcc5d['push'](_0x1fcc5d['shift']());}catch(_0x3c65e9){_0x1fcc5d['push'](_0x1fcc5d['shift']());}}}(a36_0x316f,0xcd74a));const util=require(a36_0x1ce6da(0x206)),child_process=require(a36_0x1ce6da(0x1fb)),{FRAMEWORKS}=require(a36_0x1ce6da(0x1f2)),{getFrameworkVersion,debug}=require(a36_0x1ce6da(0x1f9)),helper=require(a36_0x1ce6da(0x212)),{getLoadUtilsPath,getForkProcessPath}=require(a36_0x1ce6da(0x1e4)),{mockIsWorkerRedundant}=require('./patches'),logger=require(a36_0x1ce6da(0x209))[a36_0x1ce6da(0x213)];function a36_0x316f(){const _0x4dbf1b=['BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','2406OkROdb','config','wpYdy','KXrwO','Path\x20','resolve','util','Not\x20able\x20to\x20import\x20globalSetup','requirePWModule','../../helpers/logger','vzSfF','jbFlv','compareVersions','qVluW','error','630320jIboof','90dxCfOa','Running\x20existing\x20global\x20setup','../../helpers/helper','winstonLogger','12680xJxjqT','1786PdXVFl','ZcgUA','./reporter/pwUtils','fork','5451Yaunrc','apply','1.33.0','WqBsm','wcUnm','1798069xVLxOJ','format','XJdND','includes','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','PLAYWRIGHT','Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20','../../helpers/test-observability/constants','6062336XWxOdr','1259403csbVjY','toString','miuJo','XbIAV','env','../../helpers/test-observability/utils','GlPMv','child_process','exports','42682770wOpPTo','./mock-process.js'];a36_0x316f=function(){return _0x4dbf1b;};return a36_0x316f();}function a36_0x4f0a(_0xe21d0e,_0x21aa97){const _0x316ffe=a36_0x316f();return a36_0x4f0a=function(_0x4f0a3d,_0x3f050a){_0x4f0a3d=_0x4f0a3d-0x1e2;let _0x895b60=_0x316ffe[_0x4f0a3d];return _0x895b60;},a36_0x4f0a(_0xe21d0e,_0x21aa97);}module[a36_0x1ce6da(0x1fc)]=async function(_0x148c73){const _0xc1e97e=a36_0x1ce6da,_0x5b8fe1={'vzSfF':function(_0x30e2e2,_0x479722){return _0x30e2e2(_0x479722);},'XJdND':function(_0x51abfc){return _0x51abfc();},'WqBsm':_0xc1e97e(0x1fe),'wcUnm':function(_0x15ce64){return _0x15ce64();},'dfdBN':function(_0xa22f5f){return _0xa22f5f();},'KXrwO':function(_0x4ac387,_0x24135a){return _0x4ac387(_0x24135a);},'qVluW':_0xc1e97e(0x211),'iWSvs':function(_0x594a0e){return _0x594a0e();},'XbIAV':function(_0x1c0558,_0x2881d1){return _0x1c0558(_0x2881d1);},'jgqdm':function(_0x4a0439,_0x1190a7){return _0x4a0439>=_0x1190a7;},'jbFlv':_0xc1e97e(0x1e8),'wpYdy':function(_0x433ec9,_0x560ab3,_0x560e0d){return _0x433ec9(_0x560ab3,_0x560e0d);},'ZcgUA':function(_0x1f1ba8,_0x4fd99b){return _0x1f1ba8!==_0x4fd99b;},'GlPMv':'function','stnPp':_0xc1e97e(0x207),'miuJo':function(_0x178835,_0x9ac0aa){return _0x178835(_0x9ac0aa);}},_0x8dd60f=child_process[_0xc1e97e(0x1e5)];if(helper['isHandlePWErrorSet']())try{_0x5b8fe1['dfdBN'](mockIsWorkerRedundant);}catch(_0x400b22){logger['debug'](_0xc1e97e(0x1f1)+util[_0xc1e97e(0x1ec)](_0x400b22));}child_process[_0xc1e97e(0x1e5)]=function(){const _0x21c1b4=_0xc1e97e;return _0x5b8fe1[_0x21c1b4(0x20a)](debug,'Call\x20to\x20child\x20fork\x20with\x20args\x20'+arguments[0x0]),arguments[0x0][_0x21c1b4(0x1ee)](_0x5b8fe1[_0x21c1b4(0x1ed)](getForkProcessPath))?arguments[0x0]=require[_0x21c1b4(0x205)](_0x5b8fe1[_0x21c1b4(0x1e9)]):logger[_0x21c1b4(0x20e)](_0x21c1b4(0x204)+_0x5b8fe1[_0x21c1b4(0x1ea)](getForkProcessPath)+'\x20is\x20not\x20found'),_0x8dd60f['apply'](null,arguments);};if(process[_0xc1e97e(0x1f8)]['BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP']){_0x5b8fe1[_0xc1e97e(0x203)](debug,_0x5b8fe1[_0xc1e97e(0x20d)]);try{const {loadGlobalHook:_0x2f5877}=helper[_0xc1e97e(0x208)][_0xc1e97e(0x1e7)](null,_0x5b8fe1['iWSvs'](getLoadUtilsPath)),_0x112b74=_0x5b8fe1[_0xc1e97e(0x1f7)](getFrameworkVersion,FRAMEWORKS[_0xc1e97e(0x1f0)]);let _0x1044c7=_0x148c73;if(_0x5b8fe1['jgqdm'](helper[_0xc1e97e(0x20c)](_0x112b74,_0x5b8fe1[_0xc1e97e(0x20b)]),0x0)){const _0xddddfd={};_0xddddfd[_0xc1e97e(0x201)]=_0x148c73,_0x1044c7=_0xddddfd;}const _0x4476af=await _0x5b8fe1[_0xc1e97e(0x202)](_0x2f5877,_0x1044c7,process[_0xc1e97e(0x1f8)][_0xc1e97e(0x1ff)]);if(_0x5b8fe1[_0xc1e97e(0x1e3)](typeof _0x4476af,_0x5b8fe1[_0xc1e97e(0x1fa)]))throw new Error(_0x5b8fe1['stnPp']);return _0x4476af[_0xc1e97e(0x1e7)](null,arguments);}catch(_0x19a4bd){_0x5b8fe1[_0xc1e97e(0x1f6)](debug,_0xc1e97e(0x1ef)+_0x19a4bd[_0xc1e97e(0x1f5)]());}}};
|