browserstack-node-sdk 1.34.2 → 1.34.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance-tester.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function a29_0x4c7c(){const _0x40d835=['newHubUrl','push','split','../../../hubAllocationMethods','__drivers','isUndefined','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','CAPABILITY_KEY','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','2299Mxxcco','11267640wijlzW','../../../bin/utils/constants','6156472KdTkHW','setCapabilities','pKKrq','qXedx','se:ieOptions','7qxFnel','caps_','gqBjL','originalBuilder','New\x20hub\x20url\x20set\x20to\x20','39UNooVt','capability','dKSDZ','vLCqQ','IJttV','sYBOf','5|3|4|0|1|2','yKKqp','JBnXS','hLzpI','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','ieOptions_','Modifying\x20webdriver\x20builder','__driversArray','kVFyu','IIecZ','__setBrowserOptions','kJfse','edgeOptions_','then','proxy_','getHttpAgent','exports','get','proxySettings','JpAWR','923555dkLnXI','Proxy\x20set\x20to\x20','getAccessibilityResultsSummary','iscvW','RmYxo','CMdgQ','set','browserstackAgentObservability','info','PLqJM','RZnzG','mergeDeep','setGlobal','session_','isPacProxy','RWfNp','ZALMZ','requireHttpClient','requireSeleniumWebdriver','../../../helpers/helper','safariOptions_','tbWbD','object','__driver','../../../helpers/patchHelpers','kfvno','30OhNtSE','goog:chromeOptions','send','NjiBm','firefoxOptions_','proxyUrl','Builder','Hub\x20url\x20set\x20to\x20','getAccessibilityResults','BOCWh','isBrowserstackInfra','../../../helpers/accessibility-automation/helper','quitCount_','capabilities_','KMRRh','chromeOptions_','getRequestOptions','build','../../../helpers/logger','eqlUW','/session','safari.options','setServer','DMDMX','../../../helpers/globals','updateHubUrl','url_','edgeOptions','72680oMnrpZ','debug','options_','optimalHubUrl','HttpClient','global','545532HKarSh','9428NyhwtW','https://','getGlobal','2390476eoZPqO','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','path'];a29_0x4c7c=function(){return _0x40d835;};return a29_0x4c7c();}const a29_0xdea631=a29_0x4ff3;(function(_0x1db9a4,_0xf195f2){const _0x1bffbe=a29_0x4ff3,_0x2a2c12=_0x1db9a4();while(!![]){try{const _0xfce2ff=-parseInt(_0x1bffbe(0xc8))/0x1+parseInt(_0x1bffbe(0xc9))/0x2*(-parseInt(_0x1bffbe(0x72))/0x3)+-parseInt(_0x1bffbe(0xcc))/0x4+-parseInt(_0x1bffbe(0x8c))/0x5*(-parseInt(_0x1bffbe(0xa6))/0x6)+parseInt(_0x1bffbe(0x6d))/0x7*(parseInt(_0x1bffbe(0x68))/0x8)+-parseInt(_0x1bffbe(0x66))/0x9+parseInt(_0x1bffbe(0xc2))/0xa*(parseInt(_0x1bffbe(0x65))/0xb);if(_0xfce2ff===_0xf195f2)break;else _0x2a2c12['push'](_0x2a2c12['shift']());}catch(_0x18ef85){_0x2a2c12['push'](_0x2a2c12['shift']());}}}(a29_0x4c7c,0xb8815));function a29_0x4ff3(_0x350f77,_0x3a304b){const _0x4c7c55=a29_0x4c7c();return a29_0x4ff3=function(_0x4ff33c,_0x1bdd10){_0x4ff33c=_0x4ff33c-0x65;let _0x199cd8=_0x4c7c55[_0x4ff33c];return _0x199cd8;},a29_0x4ff3(_0x350f77,_0x3a304b);}const logger=require(a29_0xdea631(0xb8))['winstonLogger'],helper=require(a29_0xdea631(0x9f)),constants=require(a29_0xdea631(0x67)),hubAllocator=require(a29_0xdea631(0xd2)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a29_0xdea631(0xa4)),{setAccessibilityCapabilities,setExtension}=require('../accessibility-automation/helper'),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0xdea631(0xb1)),globals=require(a29_0xdea631(0xbe)),modify=(_0x895fab,_0x516d22=null,_0x267870=![])=>{const _0x4f6a9e=a29_0xdea631,_0x1de8e2={'iscvW':function(_0x26e2e0,_0x51bad6){return _0x26e2e0!==_0x51bad6;},'tbWbD':_0x4f6a9e(0xba),'yKKqp':function(_0x17fe64,_0x366929){return _0x17fe64+_0x366929;},'dKSDZ':function(_0x3b65c5,_0x3fbed9){return _0x3b65c5+_0x3fbed9;},'FTOtv':_0x4f6a9e(0xca),'RmYxo':'/wd/hub','BVNHF':_0x4f6a9e(0xa7),'cugVE':'chromeOptions','kfvno':'ms:edgeOptions','eqlUW':_0x4f6a9e(0xc1),'BOCWh':'moz:firefoxOptions','JpAWR':'firefoxOptions','HZMER':_0x4f6a9e(0xbb),'pKKrq':_0x4f6a9e(0x6c),'kJfse':'ieOptions','EOZeS':function(_0x3101fa,_0x3979e6){return _0x3101fa===_0x3979e6;},'RZnzG':_0x4f6a9e(0xa2),'yFyXK':'Setting\x20Browserstack\x20capabilities','qXedx':function(_0x41cce8,_0x597ebe,_0x205ce5){return _0x41cce8(_0x597ebe,_0x205ce5);},'vLCqQ':function(_0x368654,_0x1e5863,_0x4cd6b6){return _0x368654(_0x1e5863,_0x4cd6b6);},'CMdgQ':function(_0x20e2d8,_0x3d5d23){return _0x20e2d8(_0x3d5d23);},'PLqJM':function(_0x5c8cf5,_0x579a0c,_0x5de5a6){return _0x5c8cf5(_0x579a0c,_0x5de5a6);},'nDLJn':_0x4f6a9e(0xc5),'IIecZ':_0x4f6a9e(0xcd),'NjiBm':_0x4f6a9e(0x78),'JBnXS':'isAccessibilityPlatform','KMRRh':function(_0x1e06f5,_0x3b8b35,_0x2b1736){return _0x1e06f5(_0x3b8b35,_0x2b1736);},'IJttV':_0x4f6a9e(0xd7),'VVSjn':function(_0x5302dd){return _0x5302dd();},'RWfNp':function(_0x55c1bf,_0x15380a){return _0x55c1bf(_0x15380a);},'gqBjL':function(_0x287318,_0x233a72){return _0x287318!==_0x233a72;},'DMDMX':_0x4f6a9e(0xd5),'kVFyu':_0x4f6a9e(0x7e)},_0x35466a=helper[_0x4f6a9e(0x9d)]();let _0x1e4bd5;try{_0x1e4bd5=helper[_0x4f6a9e(0x9e)](),_0x1e4bd5['originalBuilder']&&(_0x1e4bd5[_0x4f6a9e(0xac)]=_0x1e4bd5[_0x4f6a9e(0x70)]);}catch(_0xbc40c7){return;}if(helper[_0x4f6a9e(0xb0)]()){const _0x11f3e7={};_0x11f3e7['logLevel']=_0x895fab['browserStackLogLevel'],helper['setLogLevel'](_0x11f3e7,new Map(),new Map()),logger[_0x4f6a9e(0x94)](_0x1de8e2[_0x4f6a9e(0xbd)]),logger[_0x4f6a9e(0xc3)](_0x1de8e2[_0x4f6a9e(0x80)]);}class _0x25511d extends _0x35466a['HttpClient']{[_0x4f6a9e(0xa8)](_0x2d4956){const _0x86ab58=_0x4f6a9e;if(_0x1de8e2['iscvW'](_0x2d4956[_0x86ab58(0xce)],_0x1de8e2[_0x86ab58(0xa1)])&&_0x1de8e2[_0x86ab58(0x8f)](global[_0x86ab58(0xcf)],''))try{global[_0x86ab58(0xcf)]=_0x1de8e2[_0x86ab58(0x79)](_0x1de8e2[_0x86ab58(0x74)](_0x1de8e2['FTOtv'],global[_0x86ab58(0xcf)]),_0x1de8e2[_0x86ab58(0x90)]),this[_0x86ab58(0xc4)]=hubAllocator[_0x86ab58(0xb6)](global['newHubUrl']),logger['debug'](_0x86ab58(0x71)+global[_0x86ab58(0xcf)]),global['newHubUrl']='';}catch(_0x32d50e){logger['error'](_0x32d50e);}return super['send'](_0x2d4956);}}class _0x1eb573 extends _0x1e4bd5[_0x4f6a9e(0xac)]{['setServer'](){const _0x4e7a6e=_0x4f6a9e;return this[_0x4e7a6e(0xc0)]=helper['getHubUrl'](_0x895fab),logger[_0x4e7a6e(0xc3)](_0x4e7a6e(0xad)+this['url_']),this;}[_0x4f6a9e(0x82)](_0x43ac99){const _0x363459=_0x4f6a9e;let _0x4cd2bd={};for(const _0x397f08 in _0x43ac99){switch(_0x397f08){case _0x1de8e2['BVNHF']:case _0x1de8e2['cugVE']:this['chromeOptions_']&&(_0x4cd2bd=this[_0x363459(0xb5)][_0x363459(0x89)](this[_0x363459(0xb5)][_0x363459(0xd6)])||{},this[_0x363459(0xb5)][_0x363459(0x92)](this['chromeOptions_'][_0x363459(0xd6)],helper['mergeDeep'](_0x4cd2bd,_0x43ac99[_0x397f08])));break;case _0x1de8e2[_0x363459(0xa5)]:case _0x1de8e2[_0x363459(0xb9)]:this[_0x363459(0x84)]&&(_0x4cd2bd=this[_0x363459(0x84)][_0x363459(0x89)](this[_0x363459(0x84)][_0x363459(0xd6)])||{},this[_0x363459(0x84)][_0x363459(0x92)](this['edgeOptions_']['CAPABILITY_KEY'],helper[_0x363459(0x97)](_0x4cd2bd,_0x43ac99[_0x397f08])));break;case _0x1de8e2[_0x363459(0xaf)]:case _0x1de8e2[_0x363459(0x8b)]:this[_0x363459(0xaa)]&&(_0x4cd2bd=this[_0x363459(0xaa)][_0x363459(0x89)](this[_0x363459(0xaa)]['CAPABILITY_KEY'])||{},this['firefoxOptions_'][_0x363459(0x92)](this[_0x363459(0xaa)][_0x363459(0xd6)],helper[_0x363459(0x97)](_0x4cd2bd,_0x43ac99[_0x397f08])));break;case _0x1de8e2['HZMER']:this['safariOptions_']&&(_0x4cd2bd=this['safariOptions_'][_0x363459(0x89)](this[_0x363459(0xa0)][_0x363459(0xd6)])||{},this[_0x363459(0xa0)][_0x363459(0x92)](this[_0x363459(0xa0)][_0x363459(0xd6)],helper[_0x363459(0x97)](_0x4cd2bd,_0x43ac99[_0x397f08])));break;case _0x1de8e2[_0x363459(0x6a)]:case _0x1de8e2[_0x363459(0x83)]:this[_0x363459(0x7d)]&&(_0x4cd2bd=this[_0x363459(0x7d)][_0x363459(0x89)](this[_0x363459(0x7d)][_0x363459(0xd6)])||{},this['ieOptions_']['set'](this[_0x363459(0x7d)]['CAPABILITY_KEY'],helper['mergeDeep'](_0x4cd2bd,_0x43ac99[_0x397f08])));break;}}}[_0x4f6a9e(0x69)](){const _0x241803=_0x4f6a9e;return logger[_0x241803(0xc3)](_0x1de8e2['yFyXK']),this['__setBrowserOptions'](_0x895fab[_0x241803(0x73)]),Object['keys'](_0x895fab[_0x241803(0x73)])['forEach'](_0x55e152=>{const _0x4df67b=_0x241803,_0x4fd9d2=this[_0x4df67b(0xb3)][_0x4df67b(0x89)](_0x55e152);_0x1de8e2['EOZeS'](typeof _0x4fd9d2,_0x1de8e2[_0x4df67b(0x96)])?this['capabilities_'][_0x4df67b(0x92)](_0x55e152,helper[_0x4df67b(0x97)](_0x4fd9d2,_0x895fab[_0x4df67b(0x73)][_0x55e152])):this[_0x4df67b(0xb3)]['set'](_0x55e152,_0x895fab[_0x4df67b(0x73)][_0x55e152]);}),this;}[_0x4f6a9e(0xb7)](){const _0x419ad1=_0x4f6a9e,_0x4bca06={'hLzpI':_0x1de8e2['nDLJn'],'sYBOf':_0x1de8e2[_0x419ad1(0x81)],'ZALMZ':function(_0x9ee98b,_0xd29a7f,_0x5e9d54){return _0x1de8e2['vLCqQ'](_0x9ee98b,_0xd29a7f,_0x5e9d54);}};if(helper[_0x419ad1(0xb0)]()){const _0x4a9af3=_0x1de8e2[_0x419ad1(0xa9)][_0x419ad1(0xd1)]('|');let _0x1e4905=0x0;while(!![]){switch(_0x4a9af3[_0x1e4905++]){case'0':if(helper[_0x419ad1(0x9a)](_0x895fab[_0x419ad1(0x8a)][_0x419ad1(0xab)]))this['agent_']=helper[_0x419ad1(0x87)](_0x895fab[_0x419ad1(0x8a)][_0x419ad1(0xab)]);else _0x895fab[_0x419ad1(0x8a)][_0x419ad1(0xab)]&&(this[_0x419ad1(0x86)]=_0x895fab['proxySettings']['proxyUrl'],logger[_0x419ad1(0xc3)](_0x419ad1(0x8d)+this[_0x419ad1(0x86)]));continue;case'1':globals[_0x419ad1(0xcb)](_0x1de8e2[_0x419ad1(0x7a)])&&(!_0x1de8e2[_0x419ad1(0xb4)](setExtension,this,_0x895fab)&&globals[_0x419ad1(0x98)](_0x1de8e2[_0x419ad1(0x7a)],![]));continue;case'2':logger['debug'](_0x1de8e2[_0x419ad1(0x76)]);continue;case'3':this[_0x419ad1(0xbc)]();continue;case'4':this[_0x419ad1(0x69)]();continue;case'5':_0x1de8e2['VVSjn'](isAccessibilityAutomationSession)&&_0x1de8e2[_0x419ad1(0x91)](setAccessibilityCapabilities,_0x895fab);continue;}break;}}const _0x586510=super[_0x419ad1(0xb7)]();return _0x586510[_0x419ad1(0x99)]['then'](_0x3dd8a7=>{const _0x11ac7f=_0x419ad1;try{const _0x37205d=_0x3dd8a7[_0x11ac7f(0x6e)][_0x11ac7f(0x89)](_0x4bca06[_0x11ac7f(0x7b)]);_0x37205d?(logger[_0x11ac7f(0xc3)]('SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20'+_0x37205d),hubAllocator[_0x11ac7f(0xbf)](_0x37205d),helper['storeOptimalHubUrl'](_0x37205d)):logger[_0x11ac7f(0xc3)](_0x4bca06[_0x11ac7f(0x77)]);}catch(_0x4eaf01){logger[_0x11ac7f(0xc3)](_0x11ac7f(0x7c)+_0x4eaf01);}}),_0x586510[_0x419ad1(0xb2)]=0x0,_0x586510[_0x419ad1(0x85)]&&_0x586510[_0x419ad1(0x85)](_0xd9eaa2=>{const _0x3ce022=_0x419ad1,_0x359f10={'EjuNA':function(_0x52b2f,_0x1e8323,_0x5b8a2d){const _0x1d4990=a29_0x4ff3;return _0x1de8e2[_0x1d4990(0x6b)](_0x52b2f,_0x1e8323,_0x5b8a2d);}};_0x1de8e2[_0x3ce022(0x75)](overrideQuit,_0xd9eaa2,_0x586510),_0x1de8e2[_0x3ce022(0x91)](overrideTakeScreenshot,_0xd9eaa2),helper['overrideGet'](_0xd9eaa2,_0x895fab),helper['overrideExecute'](_0xd9eaa2,_0x895fab),_0xd9eaa2[_0x3ce022(0x8e)]=async()=>{return await _0x359f10['EjuNA'](getAccessibilityResultsSummary,_0xd9eaa2,global);},_0xd9eaa2[_0x3ce022(0xae)]=async()=>{const _0x10aa8d=_0x3ce022;return await _0x4bca06[_0x10aa8d(0x9c)](getAccessibilityResults,_0xd9eaa2,global);};}),_0x586510[_0x419ad1(0x8e)]=async()=>{const _0x331a90=_0x419ad1;return await _0x4bca06[_0x331a90(0x9c)](getAccessibilityResultsSummary,_0x586510,global);},_0x586510[_0x419ad1(0xae)]=async()=>{const _0x36adb9=_0x419ad1;return await _0x1de8e2[_0x36adb9(0x95)](getAccessibilityResults,_0x586510,global);},_0x1de8e2[_0x419ad1(0x91)](overrideTakeScreenshot,_0x586510),_0x1de8e2[_0x419ad1(0x9b)](overrideQuit,_0x586510),helper['overrideGet'](_0x586510,_0x895fab),helper['overrideExecute'](_0x586510,_0x895fab),helper[_0x419ad1(0xd4)](global[_0x419ad1(0x7f)])&&(global[_0x419ad1(0x7f)]=[]),helper[_0x419ad1(0xd4)](global[_0x419ad1(0xd3)])&&(global[_0x419ad1(0xd3)]=[]),global[_0x419ad1(0x7f)][_0x419ad1(0xd0)](_0x586510),global[_0x419ad1(0xa3)]=_0x586510,_0x1de8e2[_0x419ad1(0x6f)](global[_0x419ad1(0xd3)],undefined)&&global[_0x419ad1(0xd3)]['push'](_0x586510),_0x516d22&&helper[_0x419ad1(0xd4)](_0x516d22[_0x419ad1(0xc7)]['__driversArray'])&&(_0x516d22[_0x419ad1(0xc7)]['__driversArray']=[]),_0x516d22&&_0x1de8e2['iscvW'](_0x516d22[_0x419ad1(0xc7)][_0x419ad1(0xd3)],undefined)&&(_0x516d22[_0x419ad1(0xc7)]['__drivers']['push'](_0x586510),_0x516d22['global'][_0x419ad1(0x7f)][_0x419ad1(0xd0)](_0x586510)),_0x586510;}}return _0x1e4bd5[_0x4f6a9e(0x70)]=_0x1e4bd5[_0x4f6a9e(0xac)],_0x1e4bd5[_0x4f6a9e(0xac)]=_0x1eb573,_0x35466a[_0x4f6a9e(0xc6)]=_0x25511d,_0x1e4bd5;};module[a29_0xdea631(0x88)][a29_0xdea631(0x93)]=modify;
|
|
1
|
+
const a29_0x271bf5=a29_0x10e9;(function(_0x32f8d4,_0x417ce9){const _0x5bff36=a29_0x10e9,_0x1ec79d=_0x32f8d4();while(!![]){try{const _0x2d110d=-parseInt(_0x5bff36(0xb2))/0x1+-parseInt(_0x5bff36(0x9e))/0x2+parseInt(_0x5bff36(0xdc))/0x3*(parseInt(_0x5bff36(0xcd))/0x4)+-parseInt(_0x5bff36(0xbb))/0x5*(parseInt(_0x5bff36(0xf3))/0x6)+parseInt(_0x5bff36(0xd0))/0x7+-parseInt(_0x5bff36(0x90))/0x8+-parseInt(_0x5bff36(0xb3))/0x9*(-parseInt(_0x5bff36(0x8b))/0xa);if(_0x2d110d===_0x417ce9)break;else _0x1ec79d['push'](_0x1ec79d['shift']());}catch(_0x2dfcf5){_0x1ec79d['push'](_0x1ec79d['shift']());}}}(a29_0xb824,0x543e7));function a29_0xb824(){const _0x4aea09=['HttpClient','global','guxgF','10wBjUvF','NIUBp','setServer','overrideExecute','browserStackLogLevel','2409488LKfkiF','originalBuilder','evLZG','then','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','ssZYW','caps_','forEach','getRequestOptions','debug','getHubUrl','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','0|5|4|3|2|1','658384SiXIhP','New\x20hub\x20url\x20set\x20to\x20','__setBrowserOptions','__drivers','safariOptions_','get','ldSqx','xtCCM','session_','ms:edgeOptions','options_','QEGpU','hsNML','Eejtp','pVSlP','sqwKC','error','__driversArray','isBrowserstackInfra','Builder','247307EKOdMw','2779065NnjRzP','url_','../../../helpers/patchHelpers','chromeOptions','getGlobal','bIQoP','storeOptimalHubUrl','ieOptions','768415DVlkVt','firefoxOptions','capabilities_','vEkIO','firefoxOptions_','../../../helpers/logger','getAccessibilityResults','build','nuwjM','VVmso','Proxy\x20set\x20to\x20','SetTN','setGlobal','send','capability','../../../bin/utils/constants','isAccessibilityPlatform','chromeOptions_','272XWxmEy','../../../helpers/globals','PXdVx','3444182aqqhTY','keys','/wd/hub','split','getHttpAgent','overrideGet','WkhRO','requireHttpClient','proxyUrl','CAPABILITY_KEY','/session','gNMfn','25395anlciJ','IRGcz','quitCount_','Modifying\x20webdriver\x20builder','ECgJV','getAccessibilityResultsSummary','set','../../../hubAllocationMethods','setCapabilities','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','../accessibility-automation/helper','path','XQEaq','__driver','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','../../../helpers/accessibility-automation/helper','ieOptions_','proxy_','edgeOptions','safari.options','UJbiJ','mergeDeep','GDlZF','6CPxCFA','proxySettings','browserstackAgentObservability','taWfe','wSGIm','push','isPacProxy','rmClD','Hub\x20url\x20set\x20to\x20','edgeOptions_','isUndefined','buhXe','IugbG','info','agent_','newHubUrl','object','HhdVX','GrTCN','tZICx'];a29_0xb824=function(){return _0x4aea09;};return a29_0xb824();}function a29_0x10e9(_0x237ca2,_0x3cb5af){const _0xb8240a=a29_0xb824();return a29_0x10e9=function(_0x10e9a5,_0x379354){_0x10e9a5=_0x10e9a5-0x7e;let _0x5b3534=_0xb8240a[_0x10e9a5];return _0x5b3534;},a29_0x10e9(_0x237ca2,_0x3cb5af);}const logger=require(a29_0x271bf5(0xc0))['winstonLogger'],helper=require('../../../helpers/helper'),constants=require(a29_0x271bf5(0xca)),hubAllocator=require(a29_0x271bf5(0xe3)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a29_0x271bf5(0xb5)),{setAccessibilityCapabilities,setExtension}=require(a29_0x271bf5(0xe6)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0x271bf5(0xeb)),globals=require(a29_0x271bf5(0xce)),modify=(_0x4a3db8,_0x4bd49a=null,_0x3d7e2b=![])=>{const _0x535239=a29_0x271bf5,_0x32cc8b={'rmClD':function(_0x4d3a0c,_0x11f690){return _0x4d3a0c!==_0x11f690;},'XQEaq':_0x535239(0xda),'bIQoP':function(_0x518cd1,_0x1ec4bd){return _0x518cd1!==_0x1ec4bd;},'hsNML':function(_0x26a291,_0x460fa9){return _0x26a291+_0x460fa9;},'ssZYW':'https://','IugbG':_0x535239(0xd2),'vEkIO':'goog:chromeOptions','buhXe':_0x535239(0xb6),'tZICx':_0x535239(0xa7),'MJbZU':_0x535239(0xee),'QXeUa':'moz:firefoxOptions','IRGcz':_0x535239(0xbc),'evLZG':_0x535239(0xef),'VVmso':'se:ieOptions','PIaqZ':_0x535239(0xba),'UJbiJ':function(_0x4a681a,_0x5495fa){return _0x4a681a===_0x5495fa;},'sqwKC':_0x535239(0x84),'taWfe':'Setting\x20Browserstack\x20capabilities','guxgF':'optimalHubUrl','PXdVx':_0x535239(0xea),'xtCCM':function(_0x5dbf24,_0x1d6f38,_0x222e29){return _0x5dbf24(_0x1d6f38,_0x222e29);},'pVSlP':function(_0x2bd19f,_0x95d51,_0x1f6879){return _0x2bd19f(_0x95d51,_0x1f6879);},'dccOr':function(_0x1a183e,_0x512980,_0x2ec7e6){return _0x1a183e(_0x512980,_0x2ec7e6);},'NIUBp':function(_0x1ad1eb,_0x671828){return _0x1ad1eb(_0x671828);},'nuwjM':_0x535239(0x9d),'yXZPw':function(_0x612428){return _0x612428();},'QEGpU':_0x535239(0x9c),'GrTCN':_0x535239(0xcb),'gNMfn':function(_0x4d7e75,_0x5a8c6e,_0xe9dfa0){return _0x4d7e75(_0x5a8c6e,_0xe9dfa0);},'SetTN':function(_0x545512,_0x5c9ad8){return _0x545512(_0x5c9ad8);},'GDlZF':function(_0x4a8359,_0x595629){return _0x4a8359(_0x595629);},'ECgJV':function(_0x873d84,_0x5c9bcc){return _0x873d84!==_0x5c9bcc;},'TXcmj':_0x535239(0xe5),'SSwtF':_0x535239(0xdf)},_0x19af79=helper[_0x535239(0xd7)]();let _0x30a5f4;try{_0x30a5f4=helper['requireSeleniumWebdriver'](),_0x30a5f4[_0x535239(0x91)]&&(_0x30a5f4[_0x535239(0xb1)]=_0x30a5f4[_0x535239(0x91)]);}catch(_0x37da77){return;}if(helper[_0x535239(0xb0)]()){const _0x156358={};_0x156358['logLevel']=_0x4a3db8[_0x535239(0x8f)],helper['setLogLevel'](_0x156358,new Map(),new Map()),logger[_0x535239(0x81)](_0x32cc8b['TXcmj']),logger['debug'](_0x32cc8b['SSwtF']);}class _0x7f2d02 extends _0x19af79[_0x535239(0x88)]{[_0x535239(0xc8)](_0x33b418){const _0x196d8c=_0x535239;if(_0x32cc8b[_0x196d8c(0xfa)](_0x33b418[_0x196d8c(0xe7)],_0x32cc8b[_0x196d8c(0xe8)])&&_0x32cc8b[_0x196d8c(0xb8)](global[_0x196d8c(0x83)],''))try{global[_0x196d8c(0x83)]=_0x32cc8b[_0x196d8c(0xaa)](_0x32cc8b[_0x196d8c(0xaa)](_0x32cc8b[_0x196d8c(0x96)],global[_0x196d8c(0x83)]),_0x32cc8b[_0x196d8c(0x80)]),this[_0x196d8c(0xa8)]=hubAllocator[_0x196d8c(0x99)](global['newHubUrl']),logger['debug'](_0x196d8c(0x9f)+global['newHubUrl']),global['newHubUrl']='';}catch(_0x42fdc4){logger[_0x196d8c(0xae)](_0x42fdc4);}return super[_0x196d8c(0xc8)](_0x33b418);}}class _0x1c29f4 extends _0x30a5f4['Builder']{[_0x535239(0x8d)](){const _0x1cac95=_0x535239;return this[_0x1cac95(0xb4)]=helper[_0x1cac95(0x9b)](_0x4a3db8),logger[_0x1cac95(0x9a)](_0x1cac95(0xfb)+this[_0x1cac95(0xb4)]),this;}[_0x535239(0xa0)](_0x364648){const _0x3360fb=_0x535239;let _0x955835={};for(const _0x524b29 in _0x364648){switch(_0x524b29){case _0x32cc8b[_0x3360fb(0xbe)]:case _0x32cc8b[_0x3360fb(0x7f)]:this[_0x3360fb(0xcc)]&&(_0x955835=this['chromeOptions_']['get'](this[_0x3360fb(0xcc)][_0x3360fb(0xd9)])||{},this['chromeOptions_']['set'](this[_0x3360fb(0xcc)]['CAPABILITY_KEY'],helper[_0x3360fb(0xf1)](_0x955835,_0x364648[_0x524b29])));break;case _0x32cc8b[_0x3360fb(0x87)]:case _0x32cc8b['MJbZU']:this[_0x3360fb(0xfc)]&&(_0x955835=this[_0x3360fb(0xfc)][_0x3360fb(0xa3)](this[_0x3360fb(0xfc)]['CAPABILITY_KEY'])||{},this['edgeOptions_'][_0x3360fb(0xe2)](this[_0x3360fb(0xfc)][_0x3360fb(0xd9)],helper[_0x3360fb(0xf1)](_0x955835,_0x364648[_0x524b29])));break;case _0x32cc8b['QXeUa']:case _0x32cc8b[_0x3360fb(0xdd)]:this['firefoxOptions_']&&(_0x955835=this[_0x3360fb(0xbf)]['get'](this[_0x3360fb(0xbf)]['CAPABILITY_KEY'])||{},this[_0x3360fb(0xbf)][_0x3360fb(0xe2)](this[_0x3360fb(0xbf)][_0x3360fb(0xd9)],helper[_0x3360fb(0xf1)](_0x955835,_0x364648[_0x524b29])));break;case _0x32cc8b[_0x3360fb(0x92)]:this[_0x3360fb(0xa2)]&&(_0x955835=this['safariOptions_']['get'](this['safariOptions_'][_0x3360fb(0xd9)])||{},this[_0x3360fb(0xa2)]['set'](this[_0x3360fb(0xa2)][_0x3360fb(0xd9)],helper[_0x3360fb(0xf1)](_0x955835,_0x364648[_0x524b29])));break;case _0x32cc8b[_0x3360fb(0xc4)]:case _0x32cc8b['PIaqZ']:this[_0x3360fb(0xec)]&&(_0x955835=this[_0x3360fb(0xec)]['get'](this[_0x3360fb(0xec)]['CAPABILITY_KEY'])||{},this['ieOptions_'][_0x3360fb(0xe2)](this[_0x3360fb(0xec)][_0x3360fb(0xd9)],helper['mergeDeep'](_0x955835,_0x364648[_0x524b29])));break;}}}[_0x535239(0xe4)](){const _0xd5fa23=_0x535239,_0x48679d={'HhdVX':function(_0x1ec350,_0x374432){const _0x45c2fd=a29_0x10e9;return _0x32cc8b[_0x45c2fd(0xf0)](_0x1ec350,_0x374432);},'wSGIm':_0x32cc8b[_0xd5fa23(0xad)]};return logger[_0xd5fa23(0x9a)](_0x32cc8b[_0xd5fa23(0xf6)]),this[_0xd5fa23(0xa0)](_0x4a3db8[_0xd5fa23(0xc9)]),Object[_0xd5fa23(0xd1)](_0x4a3db8[_0xd5fa23(0xc9)])[_0xd5fa23(0x98)](_0x2b355b=>{const _0x3c8663=_0xd5fa23,_0x27885a=this[_0x3c8663(0xbd)]['get'](_0x2b355b);_0x48679d[_0x3c8663(0x85)](typeof _0x27885a,_0x48679d[_0x3c8663(0xf7)])?this[_0x3c8663(0xbd)]['set'](_0x2b355b,helper[_0x3c8663(0xf1)](_0x27885a,_0x4a3db8[_0x3c8663(0xc9)][_0x2b355b])):this['capabilities_'][_0x3c8663(0xe2)](_0x2b355b,_0x4a3db8[_0x3c8663(0xc9)][_0x2b355b]);}),this;}[_0x535239(0xc2)](){const _0xe66987=_0x535239,_0x29ff93={'Eejtp':function(_0x1b0b27,_0x1da2b0,_0x5bdfb4){const _0x535b6c=a29_0x10e9;return _0x32cc8b[_0x535b6c(0xac)](_0x1b0b27,_0x1da2b0,_0x5bdfb4);},'ldSqx':function(_0x3267db,_0xf39e7e,_0x1ecaf4){return _0x32cc8b['dccOr'](_0x3267db,_0xf39e7e,_0x1ecaf4);},'WkhRO':function(_0x4973ee,_0x4a56f8,_0x3a7fa4){const _0x39d7f6=a29_0x10e9;return _0x32cc8b[_0x39d7f6(0xa5)](_0x4973ee,_0x4a56f8,_0x3a7fa4);},'BylVC':function(_0x437b56,_0x46bcd6){const _0x48944a=a29_0x10e9;return _0x32cc8b[_0x48944a(0x8c)](_0x437b56,_0x46bcd6);}};if(helper['isBrowserstackInfra']()){const _0x59c268=_0x32cc8b[_0xe66987(0xc3)][_0xe66987(0xd3)]('|');let _0x4b42ef=0x0;while(!![]){switch(_0x59c268[_0x4b42ef++]){case'0':_0x32cc8b['yXZPw'](isAccessibilityAutomationSession)&&_0x32cc8b['NIUBp'](setAccessibilityCapabilities,_0x4a3db8);continue;case'1':logger[_0xe66987(0x9a)](_0x32cc8b[_0xe66987(0xa9)]);continue;case'2':globals[_0xe66987(0xb7)](_0x32cc8b[_0xe66987(0x86)])&&(!_0x32cc8b[_0xe66987(0xdb)](setExtension,this,_0x4a3db8)&&globals[_0xe66987(0xc7)](_0x32cc8b['GrTCN'],![]));continue;case'3':if(helper[_0xe66987(0xf9)](_0x4a3db8[_0xe66987(0xf4)][_0xe66987(0xd8)]))this[_0xe66987(0x82)]=helper[_0xe66987(0xd4)](_0x4a3db8[_0xe66987(0xf4)][_0xe66987(0xd8)]);else _0x4a3db8['proxySettings'][_0xe66987(0xd8)]&&(this[_0xe66987(0xed)]=_0x4a3db8[_0xe66987(0xf4)][_0xe66987(0xd8)],logger[_0xe66987(0x9a)](_0xe66987(0xc5)+this['proxy_']));continue;case'4':this[_0xe66987(0xe4)]();continue;case'5':this[_0xe66987(0x8d)]();continue;}break;}}const _0x1df831=super['build']();return _0x1df831[_0xe66987(0xa6)][_0xe66987(0x93)](_0xedc44e=>{const _0x2514ab=_0xe66987;try{const _0x30d323=_0xedc44e[_0x2514ab(0x97)][_0x2514ab(0xa3)](_0x32cc8b[_0x2514ab(0x8a)]);_0x30d323?(logger[_0x2514ab(0x9a)](_0x2514ab(0x95)+_0x30d323),hubAllocator['updateHubUrl'](_0x30d323),helper[_0x2514ab(0xb9)](_0x30d323)):logger['debug'](_0x32cc8b[_0x2514ab(0xcf)]);}catch(_0x2539e2){logger['debug'](_0x2514ab(0x94)+_0x2539e2);}}),_0x1df831[_0xe66987(0xde)]=0x0,_0x1df831[_0xe66987(0x93)]&&_0x1df831[_0xe66987(0x93)](_0x185691=>{const _0x438ef7=_0xe66987,_0x7b603b={'jxIyB':function(_0x56f493,_0x49c2de,_0x476d58){const _0x1bd19b=a29_0x10e9;return _0x29ff93[_0x1bd19b(0xa4)](_0x56f493,_0x49c2de,_0x476d58);}};_0x29ff93[_0x438ef7(0xd6)](overrideQuit,_0x185691,_0x1df831),_0x29ff93['BylVC'](overrideTakeScreenshot,_0x185691),helper[_0x438ef7(0xd5)](_0x185691,_0x4a3db8),helper[_0x438ef7(0x8e)](_0x185691,_0x4a3db8),_0x185691['getAccessibilityResultsSummary']=async()=>{const _0x29d6cf=_0x438ef7;return await _0x29ff93[_0x29d6cf(0xab)](getAccessibilityResultsSummary,_0x185691,global);},_0x185691[_0x438ef7(0xc1)]=async()=>{return await _0x7b603b['jxIyB'](getAccessibilityResults,_0x185691,global);};}),_0x1df831[_0xe66987(0xe1)]=async()=>{const _0x38e050=_0xe66987;return await _0x29ff93[_0x38e050(0xab)](getAccessibilityResultsSummary,_0x1df831,global);},_0x1df831[_0xe66987(0xc1)]=async()=>{const _0xb72842=_0xe66987;return await _0x32cc8b[_0xb72842(0xa5)](getAccessibilityResults,_0x1df831,global);},_0x32cc8b[_0xe66987(0xc6)](overrideTakeScreenshot,_0x1df831),_0x32cc8b[_0xe66987(0xf2)](overrideQuit,_0x1df831),helper[_0xe66987(0xd5)](_0x1df831,_0x4a3db8),helper[_0xe66987(0x8e)](_0x1df831,_0x4a3db8),helper['isUndefined'](global['__driversArray'])&&(global['__driversArray']=[]),helper[_0xe66987(0x7e)](global[_0xe66987(0xa1)])&&(global[_0xe66987(0xa1)]=[]),global[_0xe66987(0xaf)][_0xe66987(0xf8)](_0x1df831),global[_0xe66987(0xe9)]=_0x1df831,_0x32cc8b[_0xe66987(0xb8)](global['__drivers'],undefined)&&global[_0xe66987(0xa1)][_0xe66987(0xf8)](_0x1df831),_0x4bd49a&&helper['isUndefined'](_0x4bd49a[_0xe66987(0x89)]['__driversArray'])&&(_0x4bd49a[_0xe66987(0x89)][_0xe66987(0xaf)]=[]),_0x4bd49a&&_0x32cc8b[_0xe66987(0xe0)](_0x4bd49a['global']['__drivers'],undefined)&&(_0x4bd49a[_0xe66987(0x89)][_0xe66987(0xa1)]['push'](_0x1df831),_0x4bd49a[_0xe66987(0x89)][_0xe66987(0xaf)][_0xe66987(0xf8)](_0x1df831)),_0x1df831;}}return _0x30a5f4[_0x535239(0x91)]=_0x30a5f4[_0x535239(0xb1)],_0x30a5f4[_0x535239(0xb1)]=_0x1c29f4,_0x19af79[_0x535239(0x88)]=_0x7f2d02,_0x30a5f4;};module['exports'][a29_0x271bf5(0xf5)]=modify;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a30_0x45c5e7=a30_0x5daa;(function(_0x1b4c42,_0x3a8401){const _0x588934=a30_0x5daa,_0x497760=_0x1b4c42();while(!![]){try{const _0x1a8c44=parseInt(_0x588934(0x143))/0x1*(-parseInt(_0x588934(0x137))/0x2)+-parseInt(_0x588934(0x13e))/0x3+parseInt(_0x588934(0x13c))/0x4+-parseInt(_0x588934(0x135))/0x5*(parseInt(_0x588934(0x139))/0x6)+parseInt(_0x588934(0x144))/0x7*(-parseInt(_0x588934(0x145))/0x8)+-parseInt(_0x588934(0x142))/0x9+parseInt(_0x588934(0x13f))/0xa*(parseInt(_0x588934(0x138))/0xb);if(_0x1a8c44===_0x3a8401)break;else _0x497760['push'](_0x497760['shift']());}catch(_0x263257){_0x497760['push'](_0x497760['shift']());}}}(a30_0x15c4,0x54060));function a30_0x15c4(){const _0x3afe17=['1kmiMmH','7dPFlbS','4538216RToRnM','15ZGvikM','mochaHooks','1230598GIQFBk','3221911ttdCBE','49380OFJPeJ','restore','../../../helpers/request-spy','1857692VdbFQW','clqcv','474306NPdxmj','60nwFaVf','../../../bin/utils/constants','timeout','4610709unNtiG'];a30_0x15c4=function(){return _0x3afe17;};return a30_0x15c4();}const requestSpy=require(a30_0x45c5e7(0x13b)),constants=require(a30_0x45c5e7(0x140)),{addRequestSpy}=require('../../../helpers/test-observability/utils');function a30_0x5daa(_0xc312aa,_0x3fd50e){const _0x15c49a=a30_0x15c4();return a30_0x5daa=function(_0x5daa98,_0x488c99){_0x5daa98=_0x5daa98-0x135;let _0x5897cf=_0x15c49a[_0x5daa98];return _0x5897cf;},a30_0x5daa(_0xc312aa,_0x3fd50e);}exports[a30_0x45c5e7(0x136)]={'beforeAll'(){const _0x51f334=a30_0x45c5e7,_0x407b1b={'clqcv':function(_0x48544f){return _0x48544f();}},_0x9cc53d='browserstack internal helper hook';_0x407b1b[_0x51f334(0x13d)](addRequestSpy);},'afterAll'(){const _0x4e7ede=a30_0x45c5e7,_0x2838ed='browserstack internal helper hook';this[_0x4e7ede(0x141)](0xea60),requestSpy[_0x4e7ede(0x13a)]();}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a31_0x19b9(){const _0x508b8a=['kklzq','getPlatform','hookAnalyticsId','cntPJ','1551277PMXqvt','QIfnT','map_','suites','138216CYmlNN','getHooksForTest','277ARaWhI','WOSYo','concat','indexOf','../../utils/logPatcher','type','emit','GgfSk','getHookDetails','browserstack','sendPlatformDetails','app-automate','xFyCo','../../../helpers/helper','js-','getTestEnv','40SbgpkW','generic','_afterAll','hook','../../../helpers/test-observability/constants','48bNiDKC','parent','markedStatus','243452KsPFPu','WvHYk','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','appium:app','QcTjG','304959MAHOKj','passed','substring','wmsKA','fromEntries','VzzUK','_beforeEach','vYaDT','getCapabilities','75614MNJzsA','zvEeG','bs:addPlatformDetails:','TEST_PLATFORM','hook:','../../../helpers/test-observability/utils','gkigT','slice','mapTestHooks','280TVZvra','DAvJm','EBYdP','xowFp','BraSa','__cloud_provider___','jiSoy','forEach','vMWZp','95xTbUXy','jWwRs','ukchm','1732581UtmYQC','keys','getBrowserName','WCRWT','BqNLX','push','20PSXmta','Kbnsq','_beforeAll','split','../../../../package.json','1126ezySXb','state','LxLdm','automate','_afterEach','LxbxE','EizoX','filter','ZbRvo'];a31_0x19b9=function(){return _0x508b8a;};return a31_0x19b9();}const a31_0x532720=a31_0x256b;(function(_0x120b11,_0x305bf7){const _0x520585=a31_0x256b,_0x20c764=_0x120b11();while(!![]){try{const _0x157b2b=parseInt(_0x520585(0x153))/0x1*(parseInt(_0x520585(0x140))/0x2)+-parseInt(_0x520585(0x117))/0x3*(parseInt(_0x520585(0x13b))/0x4)+-parseInt(_0x520585(0x132))/0x5*(-parseInt(_0x520585(0x151))/0x6)+-parseInt(_0x520585(0x120))/0x7*(-parseInt(_0x520585(0x129))/0x8)+parseInt(_0x520585(0x135))/0x9+-parseInt(_0x520585(0x10a))/0xa*(-parseInt(_0x520585(0x112))/0xb)+-parseInt(_0x520585(0x10f))/0xc*(parseInt(_0x520585(0x14d))/0xd);if(_0x157b2b===_0x305bf7)break;else _0x20c764['push'](_0x20c764['shift']());}catch(_0x10dd06){_0x20c764['push'](_0x20c764['shift']());}}}(a31_0x19b9,0x41399));function a31_0x256b(_0xec5453,_0xede4f7){const _0x19b963=a31_0x19b9();return a31_0x256b=function(_0x256b55,_0x34ea26){_0x256b55=_0x256b55-0x101;let _0x2eac08=_0x19b963[_0x256b55];return _0x2eac08;},a31_0x256b(_0xec5453,_0xede4f7);}const {v4:uuidv4}=require('uuid'),{name,version}=require(a31_0x532720(0x13f)),logPatcher=require(a31_0x532720(0x157)),BSTestOpsPatcher=new logPatcher({}),{debug,isInternalHook}=require(a31_0x532720(0x125)),{consoleHolder}=require(a31_0x532720(0x10e)),{getPlatformVersion}=require(a31_0x532720(0x107)),{shouldProcessEventForTesthub}=require('../../../helpers/testhub/utils');console={},Object[a31_0x532720(0x136)](consoleHolder)['forEach'](_0x20c9e7=>{console[_0x20c9e7]=(..._0x2c4596)=>{BSTestOpsPatcher[_0x20c9e7](..._0x2c4596);};}),exports[a31_0x532720(0x109)]=()=>{const _0x12139d=a31_0x532720,_0x4164db={'QcgBq':_0x12139d(0x10b),'efFWA':function(_0x1bd2a2){return _0x1bd2a2();}};return{'ci':_0x4164db['QcgBq'],'key':_0x4164db['efFWA'](uuidv4),'version':version,'collector':_0x12139d(0x108)+name};},exports[a31_0x532720(0x102)]=_0x5f23fa=>{const _0x4c012e=a31_0x532720,_0x1b24dc={};_0x1b24dc[_0x4c012e(0x12f)]=function(_0x3553a7,_0x20589c){return _0x3553a7!==_0x20589c;},_0x1b24dc['WCRWT']='string',_0x1b24dc[_0x4c012e(0x14e)]=function(_0x1df443,_0x10d73d){return _0x1df443!==_0x10d73d;},_0x1b24dc[_0x4c012e(0x11e)]=_0x4c012e(0x124),_0x1b24dc['kklzq']=function(_0x3f53c4,_0x53bb5a){return _0x3f53c4!==_0x53bb5a;},_0x1b24dc['QcTjG']=_0x4c012e(0x10d);const _0x122c86=_0x1b24dc;if(!_0x5f23fa||_0x122c86[_0x4c012e(0x12f)](typeof _0x5f23fa,_0x122c86[_0x4c012e(0x138)]))return[null,null];if(_0x122c86[_0x4c012e(0x14e)](_0x5f23fa[_0x4c012e(0x156)](_0x122c86['vYaDT']),-0x1)){const _0x13a292=_0x5f23fa[_0x4c012e(0x13e)](_0x122c86[_0x4c012e(0x11e)]);return[_0x13a292[0x0][_0x4c012e(0x127)](0x0,-0x1)[_0x4c012e(0x13e)]('\x22')[0x1],_0x13a292[0x1][_0x4c012e(0x119)](0x1)];}else{if(_0x122c86[_0x4c012e(0x149)](_0x5f23fa[_0x4c012e(0x156)](_0x122c86[_0x4c012e(0x116)]),-0x1)){const _0x312db3=_0x5f23fa[_0x4c012e(0x13e)](_0x122c86[_0x4c012e(0x116)]);return[_0x312db3[0x0]['slice'](0x0,-0x1)['split']('\x22')[0x1],_0x5f23fa];}}return[null,null];},exports[a31_0x532720(0x152)]=_0x3e20e0=>{const _0x2811f2=a31_0x532720,_0xa79efc={'dZciM':function(_0x2fe411,_0x4d8050){return _0x2fe411(_0x4d8050);},'LxbxE':_0x2811f2(0x13d),'ukchm':_0x2811f2(0x10c),'GgfSk':_0x2811f2(0x11d),'xFyCo':_0x2811f2(0x144)};if(!_0x3e20e0||!_0x3e20e0[_0x2811f2(0x110)])return[];const _0x18b15a=[];return[_0xa79efc[_0x2811f2(0x145)],_0xa79efc[_0x2811f2(0x134)],_0xa79efc[_0x2811f2(0x101)],_0xa79efc[_0x2811f2(0x106)]][_0x2811f2(0x130)](_0x18f9c6=>{const _0x3575a1=_0x2811f2,_0x2a27d3={'vMWZp':function(_0x4f0be8,_0x33a4b5){return _0xa79efc['dZciM'](_0x4f0be8,_0x33a4b5);}},_0x1180c2=_0x3e20e0[_0x3575a1(0x110)][_0x18f9c6]||[];_0x1180c2[_0x3575a1(0x130)](_0x1b0267=>{const _0x38fbad=_0x3575a1;_0x1b0267[_0x38fbad(0x14b)]&&!_0x2a27d3[_0x38fbad(0x131)](isInternalHook,_0x1b0267['fn'])&&_0x18b15a[_0x38fbad(0x13a)](_0x1b0267[_0x38fbad(0x14b)]);});}),[..._0x18b15a,...exports[_0x2811f2(0x152)](_0x3e20e0[_0x2811f2(0x110)])];},exports['mapTestHooks']=_0x176c19=>{const _0x191919=a31_0x532720,_0x532980={'BqNLX':function(_0xb6cd20){return _0xb6cd20();},'XfXVy':function(_0x432a59,_0x126083){return _0x432a59===_0x126083;},'cntPJ':_0x191919(0x144),'DAvJm':_0x191919(0x13d),'jWwRs':_0x191919(0x10c),'VzzUK':_0x191919(0x11d)};if(!_0x176c19||!_0x176c19[_0x191919(0x110)])return;[_0x532980[_0x191919(0x12a)],_0x532980[_0x191919(0x133)],_0x532980[_0x191919(0x11c)],_0x532980[_0x191919(0x14c)]][_0x191919(0x130)](_0x9b1ac=>{const _0x509e2f=_0x191919,_0xa2a7=_0x176c19['parent'][_0x9b1ac]||[];_0xa2a7[_0x509e2f(0x130)](_0x2cae0f=>{const _0x1dce1e=_0x509e2f;if(!_0x2cae0f[_0x1dce1e(0x14b)])_0x2cae0f[_0x1dce1e(0x14b)]=_0x532980[_0x1dce1e(0x139)](uuidv4);else _0x2cae0f[_0x1dce1e(0x111)]&&_0x532980['XfXVy'](_0x9b1ac,_0x532980[_0x1dce1e(0x14c)])&&(_0x2cae0f['hookAnalyticsId']=_0x532980['BqNLX'](uuidv4),delete _0x2cae0f[_0x1dce1e(0x111)]);});}),exports[_0x191919(0x128)](_0x176c19[_0x191919(0x110)]);},exports[a31_0x532720(0x104)]=async(_0x37071b,_0xb051d9)=>{const _0x2fbbe0=a31_0x532720,_0x1da27d={'EBYdP':function(_0x41fbc0){return _0x41fbc0();},'ZbRvo':function(_0x7729ce,_0xfa2ab2){return _0x7729ce===_0xfa2ab2;},'BraSa':_0x2fbbe0(0x103),'tIzOe':_0x2fbbe0(0x115),'xowFp':'app','zvEeG':_0x2fbbe0(0x105),'kMmVk':_0x2fbbe0(0x143),'LxLdm':function(_0x403c97,_0x53f389){return _0x403c97(_0x53f389);},'gkigT':'unknown_grid','iTmJw':_0x2fbbe0(0x123)};try{if(!_0x1da27d[_0x2fbbe0(0x12b)](shouldProcessEventForTesthub))return;const _0x483d04=await _0x37071b[_0x2fbbe0(0x11f)](),_0xfa41fa=await _0x37071b['getSession'](),_0x20f287={},_0x1a3b0e=Object[_0x2fbbe0(0x11b)](_0xfa41fa[_0x2fbbe0(0x11f)]()[_0x2fbbe0(0x14f)]),_0x596e3a={'product':_0x1da27d[_0x2fbbe0(0x148)](global[_0x2fbbe0(0x12e)],_0x1da27d[_0x2fbbe0(0x12d)])?_0x1a3b0e[_0x1da27d['tIzOe']]||_0x1a3b0e[_0x1da27d[_0x2fbbe0(0x12c)]]?_0x1da27d[_0x2fbbe0(0x121)]:_0x1da27d['kMmVk']:null,'capabilities':_0x1a3b0e,'platform':_0x483d04[_0x2fbbe0(0x14a)](),'platform_version':_0x1da27d[_0x2fbbe0(0x142)](getPlatformVersion,_0x1da27d[_0x2fbbe0(0x148)](global['__cloud_provider___'],_0x1da27d[_0x2fbbe0(0x12d)])),'browser':_0x483d04[_0x2fbbe0(0x137)](),'browser_version':_0x483d04['getBrowserVersion'](),'session_id':_0xfa41fa['toJSON']()};global[_0x2fbbe0(0x12e)]?_0x20f287[global[_0x2fbbe0(0x12e)]]=_0x596e3a:_0x20f287[_0x1da27d[_0x2fbbe0(0x126)]]=_0x596e3a,process[_0x2fbbe0(0x159)](_0x2fbbe0(0x122)+process['pid'],{'timestamp':new Date()['toISOString'](),'level':null,'message':null,'kind':_0x1da27d['iTmJw'],'http_response':_0x20f287,'uuid':_0xb051d9});}catch(_0x21a5f1){_0x1da27d[_0x2fbbe0(0x142)](debug,_0x2fbbe0(0x114)+_0x21a5f1);}},exports['getHookSkippedTests']=_0x4e7215=>{const _0x5d5112=a31_0x532720,_0x2a8ab8={};_0x2a8ab8['WvHYk']=function(_0x5ed118,_0x526811){return _0x5ed118!==_0x526811;},_0x2a8ab8[_0x5d5112(0x154)]=_0x5d5112(0x10d),_0x2a8ab8['EizoX']=function(_0x38ec1d,_0x4357a3){return _0x38ec1d!==_0x4357a3;},_0x2a8ab8[_0x5d5112(0x13c)]=_0x5d5112(0x118),_0x2a8ab8[_0x5d5112(0x11a)]='failed';const _0x3c31a3=_0x2a8ab8,_0x29c523=_0x4e7215[_0x5d5112(0x150)]['reduce']((_0x183e60,_0x5d8de1)=>{const _0x80e47e=_0x5d5112,_0x346e52=exports['getHookSkippedTests'](_0x5d8de1);return _0x346e52&&(_0x183e60=_0x183e60[_0x80e47e(0x155)](_0x346e52)),_0x183e60;},[]),_0x2067c7=_0x4e7215['tests'][_0x5d5112(0x147)](_0x2e04ea=>{const _0x4b997e=_0x5d5112,_0x3bb42c=_0x3c31a3[_0x4b997e(0x113)](_0x2e04ea[_0x4b997e(0x158)],_0x3c31a3[_0x4b997e(0x154)])&&!_0x2e04ea[_0x4b997e(0x111)]&&_0x3c31a3[_0x4b997e(0x146)](_0x2e04ea['state'],_0x3c31a3[_0x4b997e(0x13c)])&&_0x3c31a3[_0x4b997e(0x113)](_0x2e04ea[_0x4b997e(0x141)],_0x3c31a3['wmsKA'])&&!_0x2e04ea['pending'];return _0x3bb42c;});return _0x2067c7[_0x5d5112(0x155)](_0x29c523);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a32_0xe01c8c=a32_0xe4b5;function a32_0x2a2a(){const _0x427917=['YhLqh','stopMonitoring','saveTestResults','length','https:','__drivers','join','SFuAz','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','RzLbb','appium:app','urGyD','format','env','OALAG','../../helpers/percy/utils','10pADwXO','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','jrHed','jXyLK','failed','app','10956771MHuNZI','pIWeT','118482UvBBtX','roeBn','6hGavnl','__sessionFailed','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','sessionNameSet__','isAccessibilityPlatform','testcase','http:','shouldScanTestForAccessibility','then','thTestRunUuid','__skipSessionName','QuVja','../../helpers/testhub/utils','error','now','initQuit','BROWSERSTACK_TESTHUB_JWT','../../helpers/globals','GcdbM','stringify','getGlobal','thBuildUuid','mlTWX','3478434qHayfQ','BROWSERSTACK_TESTHUB_UUID','2883565Dashtr','setGlobal','\x20-\x20','PlyHQ','titlePath','cCXGj','util','../../helpers/helper','WhBFW','oMBco','mochaHooks','mFHjA','testAnalyticsId','../../helpers/testhub/constants','AWEIS','fMSlo','cUvDm','.\x20Error\x20:','isArray','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','executeAsyncScript','passed','7aPsbqD','../../helpers/performance-tester','7355404jgBGkw','debug','../../helpers/logger',',\x22level\x22:\x20\x22','push','driverCleanup','info','quitCount_','kmtlY','ObservabilitySync:','session_','wpzZp','browserstackSessionName','Performing\x20scan\x20before\x20saving\x20results','XTnVD','currentTest','ENV_VAR','protocol','Automate\x20test\x20case\x20execution\x20has\x20started.','percy','getCurrentUrl','8vHulTw','ugPxL','bstackA11yShouldScan','winstonLogger','executeScript','dpGfr','IHowa','shift','Failed\x20to\x20store\x20session\x20name:\x20','42007163iFsjfm','IMHCk','CGGxB','message','fPqUM','capabilities','../../helpers/accessibility-automation/helper','3587008mKFTmh','accessibilityScanStarted','Passed','KFjby','\x22}}','__error_messages__','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','\x20|\x20','./test-observability/mochaUtils','DyMJZ'];a32_0x2a2a=function(){return _0x427917;};return a32_0x2a2a();}(function(_0x2ddc54,_0x4cd022){const _0x533876=a32_0xe4b5,_0x273669=_0x2ddc54();while(!![]){try{const _0x57f2e4=-parseInt(_0x533876(0x173))/0x1*(parseInt(_0x533876(0x142))/0x2)+parseInt(_0x533876(0x15b))/0x3+parseInt(_0x533876(0x19a))/0x4+parseInt(_0x533876(0x15d))/0x5*(parseInt(_0x533876(0x144))/0x6)+parseInt(_0x533876(0x175))/0x7*(parseInt(_0x533876(0x18a))/0x8)+parseInt(_0x533876(0x140))/0x9+-parseInt(_0x533876(0x1b4))/0xa*(parseInt(_0x533876(0x193))/0xb);if(_0x57f2e4===_0x4cd022)break;else _0x273669['push'](_0x273669['shift']());}catch(_0x169447){_0x273669['push'](_0x273669['shift']());}}}(a32_0x2a2a,0xa2fde));const util=require(a32_0xe01c8c(0x163)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a32_0xe01c8c(0x199)),{percyAutoCapture}=require(a32_0xe01c8c(0x1b3)),{sendPlatformDetails}=require(a32_0xe01c8c(0x1a2)),{isBrowserstackInfra,markSessionStatus}=require(a32_0xe01c8c(0x164)),PerformanceTester=require(a32_0xe01c8c(0x174)),scripts=require('../../helpers/accessibility-automation/scripts'),globals=require(a32_0xe01c8c(0x155)),logger=require(a32_0xe01c8c(0x177))[a32_0xe01c8c(0x18d)],{shouldProcessEventForTesthub}=require(a32_0xe01c8c(0x150)),testHubConstants=require(a32_0xe01c8c(0x16a));function a32_0xe4b5(_0x2c719c,_0x14d64f){const _0x2a2a76=a32_0x2a2a();return a32_0xe4b5=function(_0xe4b59d,_0x4d6a00){_0xe4b59d=_0xe4b59d-0x13e;let _0x34ca55=_0x2a2a76[_0xe4b59d];return _0x34ca55;},a32_0xe4b5(_0x2c719c,_0x14d64f);}exports[a32_0xe01c8c(0x167)]={'beforeAll'(){const _0x985bd9=a32_0xe01c8c,_0x574321={'jlITA':function(_0x26441b,_0x509832,_0x3ee766,_0x2f8f00){return _0x26441b(_0x509832,_0x3ee766,_0x2f8f00);},'roeBn':_0x985bd9(0x13e),'cCXGj':_0x985bd9(0x1a1),'SFuAz':function(_0x5c72de,_0xb2d8e4,_0x18133d){return _0x5c72de(_0xb2d8e4,_0x18133d);},'IHowa':'passed','pxytO':function(_0x1dedc8){return _0x1dedc8();}};PerformanceTester['startMonitoring']();const _0x2eec4a='browserstack internal helper hook';global[_0x985bd9(0x19f)]=[],global['__sessionFailed']=![],global[_0x985bd9(0x17a)]=async()=>{const _0x33ed99=_0x985bd9;let _0x5acd28=![];try{await global[_0x33ed99(0x1a9)][0x0]['session_'],_0x5acd28=!![],global[_0x33ed99(0x145)]?await _0x574321['jlITA'](markSessionStatus,global['__drivers'][0x0],_0x574321[_0x33ed99(0x143)],global['__error_messages__'][_0x33ed99(0x1aa)](_0x574321[_0x33ed99(0x162)])):await _0x574321[_0x33ed99(0x1ab)](markSessionStatus,global['__drivers'][0x0],_0x574321[_0x33ed99(0x190)]);}catch(_0x4df911){}global[_0x33ed99(0x19f)]=[],global[_0x33ed99(0x145)]=![];if(_0x5acd28)try{try{_0x574321['pxytO'](shouldProcessEventForTesthub)&&(global[_0x33ed99(0x1a9)][0x0]&&await _0x574321[_0x33ed99(0x1ab)](sendPlatformDetails,global[_0x33ed99(0x1a9)][0x0],this[_0x33ed99(0x184)]?this[_0x33ed99(0x184)][_0x33ed99(0x169)]:null));}catch{}await global[_0x33ed99(0x1a9)][0x0][_0x33ed99(0x153)]();}catch(_0x14ba5c){}};},'beforeEach'(_0x267ca3){const _0xaee9b3=a32_0xe01c8c,_0x267bdb={'DyMJZ':function(_0x145809,_0x4f8782){return _0x145809>_0x4f8782;},'mlTWX':function(_0x21f8ad,_0x388ba6){return _0x21f8ad>_0x388ba6;},'jrHed':_0xaee9b3(0x15f),'fMSlo':function(_0x239de8,_0x6d8f40,_0x3484e3){return _0x239de8(_0x6d8f40,_0x3484e3);},'xEZAV':_0xaee9b3(0x18c),'GcdbM':function(_0x21a4ed){return _0x21a4ed();},'TUaDV':_0xaee9b3(0x148),'gxfEI':function(_0x18349f,_0x31e5d1){return _0x18349f===_0x31e5d1;},'pIWeT':_0xaee9b3(0x14a),'cUvDm':function(_0x7a4919,_0x21db40){return _0x7a4919===_0x21db40;},'cIJAn':_0xaee9b3(0x1a8),'CGGxB':'Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','AWEIS':_0xaee9b3(0x187)};new Promise(async _0x594f51=>{const _0x202e55=_0xaee9b3,_0xbf9259='browserstack internal helper hook';let _0x3d3a45=!![];try{_0x267bdb[_0x202e55(0x1a3)](global[_0x202e55(0x1a9)][_0x202e55(0x1a7)],0x1)&&(await global['driverCleanup'](),global['__drivers']['shift']()),_0x267bdb[_0x202e55(0x15a)](global[_0x202e55(0x1a9)][0x0][_0x202e55(0x17c)],0x0)&&(_0x3d3a45=![],await global[_0x202e55(0x17a)]());}catch{}try{Array[_0x202e55(0x16f)](global[_0x202e55(0x1a9)])&&global[_0x202e55(0x1a9)][0x0]&&(global[_0x202e55(0x1a9)][0x0][_0x202e55(0x181)]=this[_0x202e55(0x184)][_0x202e55(0x161)]()['join'](_0x267bdb[_0x202e55(0x1b6)])),global[_0x202e55(0x181)]=this[_0x202e55(0x184)][_0x202e55(0x161)]()[_0x202e55(0x1aa)](_0x267bdb[_0x202e55(0x1b6)]);}catch(_0xb42979){logger[_0x202e55(0x176)](_0x202e55(0x192)+_0xb42979);}this['currentTest']['shouldScanTestForAccessibility']=_0x267bdb[_0x202e55(0x16c)](shouldScanTestForAccessibility,this[_0x202e55(0x184)][_0x202e55(0x161)](),!![]),globals[_0x202e55(0x15e)](_0x267bdb['xEZAV'],this['currentTest'][_0x202e55(0x14b)]),this[_0x202e55(0x184)]['accessibilityScanStarted']=!![];if(_0x267bdb[_0x202e55(0x156)](isAccessibilityAutomationSession)&&_0x3d3a45&&Array[_0x202e55(0x16f)](global[_0x202e55(0x1a9)])&&_0x267bdb[_0x202e55(0x1a3)](global['__drivers'][_0x202e55(0x1a7)],0x0)&&globals[_0x202e55(0x158)](_0x267bdb['TUaDV']))try{const _0x234b49=await global['__drivers'][0x0][_0x202e55(0x17f)];if(_0x234b49){let _0x348149=!![];const _0x511ad8=await global[_0x202e55(0x1a9)][0x0][_0x202e55(0x189)]();let _0xe4af4a;try{_0xe4af4a=new URL(_0x511ad8);}catch(_0x12508e){_0x348149=![];}_0x348149=_0x267bdb['gxfEI'](_0xe4af4a[_0x202e55(0x186)],_0x267bdb[_0x202e55(0x141)])||_0x267bdb[_0x202e55(0x16d)](_0xe4af4a[_0x202e55(0x186)],_0x267bdb['cIJAn']),_0x348149&&(this[_0x202e55(0x184)][_0x202e55(0x14b)]&&logger[_0x202e55(0x17b)](_0x267bdb[_0x202e55(0x195)])),this[_0x202e55(0x184)][_0x202e55(0x19b)]=this[_0x202e55(0x184)][_0x202e55(0x14b)],this['currentTest'][_0x202e55(0x14b)]&&logger[_0x202e55(0x17b)](_0x267bdb[_0x202e55(0x16b)]);}}catch(_0x26ef5d){logger['error']('Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20'+util[_0x202e55(0x1b0)](_0x26ef5d));}_0x267bdb[_0x202e55(0x156)](_0x594f51);})['then'](_0x267ca3);},'afterEach'(_0x43b8c9){const _0x38ee58=a32_0xe01c8c,_0x1e07cc={'KFjby':function(_0x27019b,_0x1b5316){return _0x27019b>_0x1b5316;},'XgJmZ':function(_0x246685,_0x3d557f){return _0x246685===_0x3d557f;},'IMHCk':_0x38ee58(0x149),'PlyHQ':_0x38ee58(0x1ae),'mFHjA':function(_0x560086,_0x19d889,_0x2046d0,_0x5774ff){return _0x560086(_0x19d889,_0x2046d0,_0x5774ff);},'CfDsF':'\x20-\x20','kmtlY':function(_0x51da27,_0x5e1a3e){return _0x51da27!==_0x5e1a3e;},'YhLqh':_0x38ee58(0x172),'RzLbb':function(_0x59479e,_0xc61112,_0x595f3d){return _0x59479e(_0xc61112,_0x595f3d);},'urGyD':function(_0x196ede,_0x3bde7e){return _0x196ede+_0x3bde7e;},'WhBFW':'Failed:\x20','jXyLK':_0x38ee58(0x151),'QuVja':_0x38ee58(0x19c),'oMBco':'info','ODtSF':'isAccessibilityPlatform','jIJJX':'bstackA11yShouldScan','UGvwD':_0x38ee58(0x146),'dpGfr':_0x38ee58(0x182),'frDlH':'Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','OALAG':function(_0x57f073){return _0x57f073();},'XTnVD':function(_0x53eb3f){return _0x53eb3f();},'TFgwU':function(_0x5dc278,_0x5f063f,_0x407b99){return _0x5dc278(_0x5f063f,_0x407b99);},'fPqUM':_0x38ee58(0x176),'ugPxL':function(_0x4b9e51,_0xcd97ee){return _0x4b9e51>_0xcd97ee;}},_0x4f7cd7='browserstack internal helper hook';this['timeout'](0xfde8);const _0x35b53f=async(_0x12d43a,_0x430896)=>{const _0x52bbb6=_0x38ee58;await global['__drivers'][0x0][_0x52bbb6(0x18e)](_0x52bbb6(0x1ac)+_0x12d43a+_0x52bbb6(0x178)+_0x430896+_0x52bbb6(0x19e));};new Promise(async _0x56e848=>{const _0x8fb27a=_0x38ee58;try{_0x1e07cc[_0x8fb27a(0x19d)](global[_0x8fb27a(0x1a9)][_0x8fb27a(0x1a7)],0x1)&&(await global[_0x8fb27a(0x17a)](),global['__drivers'][_0x8fb27a(0x191)](),global[_0x8fb27a(0x19f)]=[],global[_0x8fb27a(0x145)]=![]);try{if(global[_0x8fb27a(0x188)]&&_0x1e07cc['XgJmZ'](global['percyCaptureMode'],_0x1e07cc[_0x8fb27a(0x194)])&&global[_0x8fb27a(0x1a9)][0x0]){const _0x148a8e=_0x1e07cc[_0x8fb27a(0x19d)](global[_0x8fb27a(0x198)][_0x8fb27a(0x1a7)],0x0)?!!global['capabilities'][0x0]['app']||!!global[_0x8fb27a(0x198)][0x0][_0x1e07cc[_0x8fb27a(0x160)]]:![],_0x215aac={};_0x215aac[_0x8fb27a(0x13f)]=_0x148a8e,await _0x1e07cc[_0x8fb27a(0x168)](percyAutoCapture,global[_0x8fb27a(0x1a9)][0x0],_0x1e07cc[_0x8fb27a(0x194)],_0x215aac);}}catch(_0x4b12dc){}!global[_0x8fb27a(0x14e)]&&(await global['__drivers'][0x0][_0x8fb27a(0x18e)](_0x8fb27a(0x170)+JSON['stringify'](this[_0x8fb27a(0x184)][_0x8fb27a(0x161)]()['join'](_0x1e07cc['CfDsF']))+'}}'),global[_0x8fb27a(0x1a9)][0x0][_0x8fb27a(0x147)]=!![]);const _0x3d7f4f=_0x1e07cc[_0x8fb27a(0x17d)](this['currentTest']['state'],_0x1e07cc[_0x8fb27a(0x1a4)]);_0x3d7f4f?(global['__sessionFailed']=!![],global[_0x8fb27a(0x19f)][_0x8fb27a(0x179)](this[_0x8fb27a(0x184)]['err'][_0x8fb27a(0x196)]),await _0x1e07cc[_0x8fb27a(0x1ad)](_0x35b53f,JSON[_0x8fb27a(0x157)](_0x1e07cc[_0x8fb27a(0x1af)](_0x1e07cc[_0x8fb27a(0x165)],this[_0x8fb27a(0x184)]['err'][_0x8fb27a(0x196)])),_0x1e07cc[_0x8fb27a(0x1b7)])):await _0x1e07cc[_0x8fb27a(0x1ad)](_0x35b53f,JSON[_0x8fb27a(0x157)](_0x1e07cc[_0x8fb27a(0x14f)]),_0x1e07cc[_0x8fb27a(0x166)]);}catch(_0x35b529){}try{if(this['currentTest'][_0x8fb27a(0x19b)]&&globals[_0x8fb27a(0x158)](_0x1e07cc['ODtSF'])&&globals['getGlobal'](_0x1e07cc['jIJJX'])){logger[_0x8fb27a(0x17b)](_0x1e07cc['UGvwD']);const _0x1afbe9={};_0x1afbe9[_0x8fb27a(0x14d)]=this[_0x8fb27a(0x184)][_0x8fb27a(0x169)],_0x1afbe9[_0x8fb27a(0x159)]=process[_0x8fb27a(0x1b1)][testHubConstants[_0x8fb27a(0x185)][_0x8fb27a(0x15c)]],_0x1afbe9['thJwtToken']=process[_0x8fb27a(0x1b1)][testHubConstants[_0x8fb27a(0x185)][_0x8fb27a(0x154)]];const _0x5a9fd4=_0x1afbe9;logger[_0x8fb27a(0x176)](_0x8fb27a(0x1b5)+JSON[_0x8fb27a(0x157)](_0x5a9fd4)),logger[_0x8fb27a(0x176)](_0x1e07cc[_0x8fb27a(0x18f)]),logger[_0x8fb27a(0x176)](util[_0x8fb27a(0x1b0)](await global[_0x8fb27a(0x1a9)][0x0][_0x8fb27a(0x171)](scripts['performScan'],{'method':global[_0x8fb27a(0x181)]}))),await global[_0x8fb27a(0x1a9)][0x0][_0x8fb27a(0x171)](scripts[_0x8fb27a(0x1a6)],_0x5a9fd4),logger['info'](_0x1e07cc['frDlH']);}}catch(_0x4c7c33){logger[_0x8fb27a(0x151)](_0x8fb27a(0x1a0)+this[_0x8fb27a(0x184)][_0x8fb27a(0x161)]()+_0x8fb27a(0x16e),_0x4c7c33);}try{try{if(_0x1e07cc['OALAG'](shouldProcessEventForTesthub)){global[_0x8fb27a(0x1a9)][0x0]&&await _0x1e07cc[_0x8fb27a(0x1ad)](sendPlatformDetails,global[_0x8fb27a(0x1a9)][0x0],this[_0x8fb27a(0x184)]?this[_0x8fb27a(0x184)][_0x8fb27a(0x169)]:null);if(_0x1e07cc[_0x8fb27a(0x183)](isBrowserstackInfra)){const _0x500cdb=_0x8fb27a(0x17e)+Date[_0x8fb27a(0x152)]();await _0x1e07cc['TFgwU'](_0x35b53f,JSON[_0x8fb27a(0x157)](_0x500cdb),_0x1e07cc[_0x8fb27a(0x197)]);}}}catch{}_0x1e07cc[_0x8fb27a(0x18b)](global[_0x8fb27a(0x1a9)][0x0][_0x8fb27a(0x17c)],0x0)&&await global['driverCleanup']();}catch(_0x22e5c0){}_0x1e07cc[_0x8fb27a(0x1b2)](_0x56e848);})[_0x38ee58(0x14c)](()=>_0x43b8c9());},'afterAll'(_0xba7d8c){const _0xb3e706=a32_0xe01c8c,_0x331943={'wpzZp':function(_0x4bd252){return _0x4bd252();}},_0x5e100e='browserstack internal helper hook';this['timeout'](0xfde8),new Promise(async _0x44d46e=>{const _0x42471d=a32_0xe4b5;PerformanceTester[_0x42471d(0x1a5)](),await global[_0x42471d(0x17a)](),_0x331943[_0x42471d(0x180)](_0x44d46e);})[_0xb3e706(0x14c)](()=>_0xba7d8c());}};
|
|
1
|
+
const a32_0x4bf50e=a32_0x2d22;function a32_0x2d22(_0x22a81f,_0x512d34){const _0xd07d12=a32_0xd07d();return a32_0x2d22=function(_0x2d22eb,_0x453d4b){_0x2d22eb=_0x2d22eb-0x157;let _0x56fe4a=_0xd07d12[_0x2d22eb];return _0x56fe4a;},a32_0x2d22(_0x22a81f,_0x512d34);}(function(_0xfa09b2,_0xc16e6f){const _0x17ffed=a32_0x2d22,_0x5eaa8c=_0xfa09b2();while(!![]){try{const _0x33884f=-parseInt(_0x17ffed(0x1c5))/0x1*(parseInt(_0x17ffed(0x17f))/0x2)+parseInt(_0x17ffed(0x1c7))/0x3+parseInt(_0x17ffed(0x18e))/0x4*(parseInt(_0x17ffed(0x1ca))/0x5)+-parseInt(_0x17ffed(0x1c6))/0x6*(parseInt(_0x17ffed(0x1ae))/0x7)+-parseInt(_0x17ffed(0x19b))/0x8*(parseInt(_0x17ffed(0x170))/0x9)+parseInt(_0x17ffed(0x15f))/0xa+-parseInt(_0x17ffed(0x1cd))/0xb;if(_0x33884f===_0xc16e6f)break;else _0x5eaa8c['push'](_0x5eaa8c['shift']());}catch(_0x45eefb){_0x5eaa8c['push'](_0x5eaa8c['shift']());}}}(a32_0xd07d,0x1afe0));const util=require('util'),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a32_0x4bf50e(0x1c3)),{percyAutoCapture}=require('../../helpers/percy/utils'),{sendPlatformDetails}=require(a32_0x4bf50e(0x199)),{isBrowserstackInfra,markSessionStatus}=require('../../helpers/helper'),PerformanceTester=require(a32_0x4bf50e(0x1ad)),scripts=require(a32_0x4bf50e(0x1a3)),globals=require(a32_0x4bf50e(0x1af)),logger=require('../../helpers/logger')[a32_0x4bf50e(0x19f)],{shouldProcessEventForTesthub}=require('../../helpers/testhub/utils'),testHubConstants=require('../../helpers/testhub/constants');exports[a32_0x4bf50e(0x181)]={'beforeAll'(){const _0x355807=a32_0x4bf50e,_0x449219={'cSmyR':function(_0x5dd8a2,_0x193c85,_0x545e8f,_0x2d9c5f){return _0x5dd8a2(_0x193c85,_0x545e8f,_0x2d9c5f);},'nJESF':_0x355807(0x1ab),'INaiz':_0x355807(0x19a),'znecm':function(_0x5aafbd,_0x65ff52,_0x195655){return _0x5aafbd(_0x65ff52,_0x195655);},'tazyr':_0x355807(0x15c),'QPcQf':function(_0xe489dd){return _0xe489dd();}};PerformanceTester['startMonitoring']();const _0x2e3f0d='browserstack internal helper hook';global['__error_messages__']=[],global[_0x355807(0x1b2)]=![],global[_0x355807(0x18b)]=async()=>{const _0x2f233d=_0x355807;let _0x4b9682=![];try{await global[_0x2f233d(0x197)][0x0][_0x2f233d(0x191)],_0x4b9682=!![],global[_0x2f233d(0x1b2)]?await _0x449219[_0x2f233d(0x1c4)](markSessionStatus,global[_0x2f233d(0x197)][0x0],_0x449219[_0x2f233d(0x1a6)],global[_0x2f233d(0x1b5)][_0x2f233d(0x16e)](_0x449219[_0x2f233d(0x19e)])):await _0x449219[_0x2f233d(0x18a)](markSessionStatus,global[_0x2f233d(0x197)][0x0],_0x449219[_0x2f233d(0x16d)]);}catch(_0x5c81a0){}global[_0x2f233d(0x1b5)]=[],global['__sessionFailed']=![];if(_0x4b9682)try{try{_0x449219[_0x2f233d(0x177)](shouldProcessEventForTesthub)&&(global['__drivers'][0x0]&&await _0x449219[_0x2f233d(0x18a)](sendPlatformDetails,global[_0x2f233d(0x197)][0x0],this[_0x2f233d(0x1c9)]?this[_0x2f233d(0x1c9)]['testAnalyticsId']:null));}catch{}await global[_0x2f233d(0x197)][0x0][_0x2f233d(0x17b)]();}catch(_0x13be08){}};},'beforeEach'(_0x15f72d){const _0xdeb4de=a32_0x4bf50e,_0x2fc25c={'IdWCC':function(_0xb0f5ee,_0x523a86){return _0xb0f5ee>_0x523a86;},'XkyDa':function(_0x30480e,_0x508036){return _0x30480e>_0x508036;},'yzQpE':_0xdeb4de(0x1b0),'DuiyB':function(_0x270526,_0x2f8a84,_0x4b3e94){return _0x270526(_0x2f8a84,_0x4b3e94);},'IiITM':'bstackA11yShouldScan','vtaHa':function(_0x36ff5f){return _0x36ff5f();},'vhrGZ':function(_0x360831,_0x27213c){return _0x360831>_0x27213c;},'BiMNC':'isAccessibilityPlatform','lMHKN':function(_0x526271,_0xc4ac26){return _0x526271===_0xc4ac26;},'HHAfY':_0xdeb4de(0x178),'iIYLk':function(_0x5cb170,_0x1d9e6b){return _0x5cb170===_0x1d9e6b;},'TsMlF':'https:','oBVJG':_0xdeb4de(0x1bb),'UeWbL':_0xdeb4de(0x1c8)};new Promise(async _0x5609d4=>{const _0x3c38fd=_0xdeb4de,_0x287474='browserstack internal helper hook';let _0x455c20=!![];try{_0x2fc25c[_0x3c38fd(0x1b3)](global[_0x3c38fd(0x197)][_0x3c38fd(0x180)],0x1)&&(await global['driverCleanup'](),global['__drivers']['shift']()),_0x2fc25c['XkyDa'](global[_0x3c38fd(0x197)][0x0]['quitCount_'],0x0)&&(_0x455c20=![],await global[_0x3c38fd(0x18b)]());}catch{}try{Array[_0x3c38fd(0x1a1)](global[_0x3c38fd(0x197)])&&global[_0x3c38fd(0x197)][0x0]&&(global['__drivers'][0x0][_0x3c38fd(0x1b4)]=this[_0x3c38fd(0x1c9)][_0x3c38fd(0x190)]()['join'](_0x2fc25c[_0x3c38fd(0x198)])),global[_0x3c38fd(0x1b4)]=this[_0x3c38fd(0x1c9)][_0x3c38fd(0x190)]()['join'](_0x2fc25c['yzQpE']);}catch(_0x48753a){logger[_0x3c38fd(0x1a8)](_0x3c38fd(0x172)+_0x48753a);}this[_0x3c38fd(0x1c9)]['shouldScanTestForAccessibility']=_0x2fc25c[_0x3c38fd(0x1ba)](shouldScanTestForAccessibility,this[_0x3c38fd(0x1c9)][_0x3c38fd(0x190)](),!![]),globals[_0x3c38fd(0x1a5)](_0x2fc25c[_0x3c38fd(0x19c)],this['currentTest'][_0x3c38fd(0x16c)]),this[_0x3c38fd(0x1c9)][_0x3c38fd(0x1a0)]=!![];if(_0x2fc25c[_0x3c38fd(0x182)](isAccessibilityAutomationSession)&&_0x455c20&&Array['isArray'](global['__drivers'])&&_0x2fc25c[_0x3c38fd(0x15d)](global[_0x3c38fd(0x197)]['length'],0x0)&&globals[_0x3c38fd(0x168)](_0x2fc25c[_0x3c38fd(0x157)]))try{const _0x4b6a07=await global[_0x3c38fd(0x197)][0x0][_0x3c38fd(0x191)];if(_0x4b6a07){let _0x5c0d68=!![];const _0x5bc5cd=await global[_0x3c38fd(0x197)][0x0][_0x3c38fd(0x1cc)]();let _0x1a1600;try{_0x1a1600=new URL(_0x5bc5cd);}catch(_0x144c1b){_0x5c0d68=![];}_0x5c0d68=_0x2fc25c[_0x3c38fd(0x1a4)](_0x1a1600['protocol'],_0x2fc25c[_0x3c38fd(0x1aa)])||_0x2fc25c[_0x3c38fd(0x196)](_0x1a1600[_0x3c38fd(0x160)],_0x2fc25c[_0x3c38fd(0x15a)]),_0x5c0d68&&(this[_0x3c38fd(0x1c9)][_0x3c38fd(0x16c)]&&logger[_0x3c38fd(0x1a7)](_0x2fc25c[_0x3c38fd(0x1bf)])),this[_0x3c38fd(0x1c9)][_0x3c38fd(0x1a0)]=this['currentTest'][_0x3c38fd(0x16c)],this[_0x3c38fd(0x1c9)][_0x3c38fd(0x16c)]&&logger[_0x3c38fd(0x1a7)](_0x2fc25c[_0x3c38fd(0x16f)]);}}catch(_0x82107e){logger[_0x3c38fd(0x165)](_0x3c38fd(0x1be)+util[_0x3c38fd(0x16a)](_0x82107e));}_0x2fc25c[_0x3c38fd(0x182)](_0x5609d4);})[_0xdeb4de(0x1cb)](_0x15f72d);},'afterEach'(_0x28d158){const _0x3438a1=a32_0x4bf50e,_0x49b02b={'Mjgcm':function(_0x16b1e1,_0x102783){return _0x16b1e1>_0x102783;},'uDEuz':function(_0x48d845,_0x23bb95){return _0x48d845===_0x23bb95;},'TKfwK':_0x3438a1(0x1ac),'NyGPB':_0x3438a1(0x15e),'KETTH':function(_0x2cf863,_0x131ec8,_0x4dbdeb,_0x210792){return _0x2cf863(_0x131ec8,_0x4dbdeb,_0x210792);},'FZVyL':_0x3438a1(0x1b0),'HxjfY':function(_0x2ddc70,_0x424d6f){return _0x2ddc70!==_0x424d6f;},'yFqZw':_0x3438a1(0x15c),'ztLtd':function(_0x1c26eb,_0x2b2317,_0x5d9895){return _0x1c26eb(_0x2b2317,_0x5d9895);},'LdDJT':function(_0x5f0180,_0x399750){return _0x5f0180+_0x399750;},'eHaOL':_0x3438a1(0x192),'VFaBp':_0x3438a1(0x165),'pSKaX':'Passed','buSXc':_0x3438a1(0x1a7),'zvspR':_0x3438a1(0x184),'uhFBZ':_0x3438a1(0x188),'aHeMt':'Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','JZrsj':_0x3438a1(0x163),'iSEeu':_0x3438a1(0x158),'JEuYw':function(_0x4218a5){return _0x4218a5();},'CyQpQ':function(_0x598681){return _0x598681();},'QMDLA':_0x3438a1(0x1a8)},_0x365a22='browserstack internal helper hook';this[_0x3438a1(0x17a)](0xfde8);const _0x2a053f=async(_0x9c6be2,_0x14b78d)=>{const _0x1039b1=_0x3438a1;await global[_0x1039b1(0x197)][0x0]['executeScript']('browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:'+_0x9c6be2+',\x22level\x22:\x20\x22'+_0x14b78d+_0x1039b1(0x159));};new Promise(async _0x205203=>{const _0x4b8176=_0x3438a1;try{_0x49b02b[_0x4b8176(0x1a2)](global[_0x4b8176(0x197)][_0x4b8176(0x180)],0x1)&&(await global['driverCleanup'](),global[_0x4b8176(0x197)]['shift'](),global[_0x4b8176(0x1b5)]=[],global[_0x4b8176(0x1b2)]=![]);try{if(global[_0x4b8176(0x1b9)]&&_0x49b02b[_0x4b8176(0x176)](global[_0x4b8176(0x195)],_0x49b02b[_0x4b8176(0x1ce)])&&global['__drivers'][0x0]){const _0x2466dd=_0x49b02b[_0x4b8176(0x1a2)](global[_0x4b8176(0x162)]['length'],0x0)?!!global[_0x4b8176(0x162)][0x0][_0x4b8176(0x166)]||!!global['capabilities'][0x0][_0x49b02b[_0x4b8176(0x164)]]:![],_0x3b8b67={};_0x3b8b67[_0x4b8176(0x166)]=_0x2466dd,await _0x49b02b[_0x4b8176(0x1b7)](percyAutoCapture,global[_0x4b8176(0x197)][0x0],_0x49b02b[_0x4b8176(0x1ce)],_0x3b8b67);}}catch(_0x3cceac){}!global[_0x4b8176(0x161)]&&(await global[_0x4b8176(0x197)][0x0][_0x4b8176(0x169)]('browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20'+JSON[_0x4b8176(0x18f)](this[_0x4b8176(0x1c9)][_0x4b8176(0x190)]()[_0x4b8176(0x16e)](_0x49b02b['FZVyL']))+'}}'),global[_0x4b8176(0x197)][0x0]['sessionNameSet__']=!![]);const _0x141b92=_0x49b02b[_0x4b8176(0x179)](this[_0x4b8176(0x1c9)]['state'],_0x49b02b[_0x4b8176(0x185)]);_0x141b92?(global['__sessionFailed']=!![],global[_0x4b8176(0x1b5)][_0x4b8176(0x1a9)](this[_0x4b8176(0x1c9)]['err'][_0x4b8176(0x174)]),await _0x49b02b[_0x4b8176(0x18c)](_0x2a053f,JSON[_0x4b8176(0x18f)](_0x49b02b[_0x4b8176(0x171)](_0x49b02b[_0x4b8176(0x18d)],this[_0x4b8176(0x1c9)]['err'][_0x4b8176(0x174)])),_0x49b02b[_0x4b8176(0x1c1)])):await _0x49b02b[_0x4b8176(0x18c)](_0x2a053f,JSON['stringify'](_0x49b02b['pSKaX']),_0x49b02b[_0x4b8176(0x1bd)]);}catch(_0x2c0b7b){}try{if(this['currentTest'][_0x4b8176(0x1a0)]&&globals['getGlobal'](_0x49b02b[_0x4b8176(0x1c0)])&&globals[_0x4b8176(0x168)](_0x49b02b['uhFBZ'])){logger[_0x4b8176(0x1a7)](_0x49b02b['aHeMt']);const _0x2fe6df={};_0x2fe6df[_0x4b8176(0x19d)]=this[_0x4b8176(0x1c9)][_0x4b8176(0x16b)],_0x2fe6df['thBuildUuid']=process['env'][testHubConstants[_0x4b8176(0x1b1)][_0x4b8176(0x17c)]],_0x2fe6df[_0x4b8176(0x186)]=process[_0x4b8176(0x15b)][testHubConstants[_0x4b8176(0x1b1)][_0x4b8176(0x183)]];const _0x207380=_0x2fe6df;logger[_0x4b8176(0x1a8)]('Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20'+JSON['stringify'](_0x207380)),logger[_0x4b8176(0x1a8)](_0x49b02b[_0x4b8176(0x17e)]),logger[_0x4b8176(0x1a8)](util[_0x4b8176(0x16a)](await global[_0x4b8176(0x197)][0x0]['executeAsyncScript'](scripts[_0x4b8176(0x173)],{'method':global[_0x4b8176(0x1b4)]}))),await global['__drivers'][0x0]['executeAsyncScript'](scripts[_0x4b8176(0x17d)],_0x207380),logger['info'](_0x49b02b[_0x4b8176(0x193)]);}}catch(_0x524683){logger[_0x4b8176(0x165)](_0x4b8176(0x167)+this[_0x4b8176(0x1c9)][_0x4b8176(0x190)]()+_0x4b8176(0x1bc),_0x524683);}try{try{if(_0x49b02b[_0x4b8176(0x1c2)](shouldProcessEventForTesthub)){global['__drivers'][0x0]&&await _0x49b02b[_0x4b8176(0x18c)](sendPlatformDetails,global[_0x4b8176(0x197)][0x0],this[_0x4b8176(0x1c9)]?this[_0x4b8176(0x1c9)][_0x4b8176(0x16b)]:null);if(_0x49b02b[_0x4b8176(0x187)](isBrowserstackInfra)){const _0x1a1bb9=_0x4b8176(0x194)+Date[_0x4b8176(0x1b6)]();await _0x49b02b[_0x4b8176(0x18c)](_0x2a053f,JSON[_0x4b8176(0x18f)](_0x1a1bb9),_0x49b02b[_0x4b8176(0x1b8)]);}}}catch{}_0x49b02b[_0x4b8176(0x1a2)](global[_0x4b8176(0x197)][0x0][_0x4b8176(0x189)],0x0)&&await global[_0x4b8176(0x18b)]();}catch(_0x58bd74){}_0x49b02b['JEuYw'](_0x205203);})[_0x3438a1(0x1cb)](()=>_0x28d158());},'afterAll'(_0x4b7a70){const _0xfe0a79=a32_0x4bf50e,_0x5a3ee3={'gQPbx':function(_0x14728a){return _0x14728a();}},_0x3e8983='browserstack internal helper hook';this[_0xfe0a79(0x17a)](0xfde8),new Promise(async _0x5233a2=>{const _0x54d3e7=_0xfe0a79;PerformanceTester[_0x54d3e7(0x175)](),await global[_0x54d3e7(0x18b)](),_0x5a3ee3['gQPbx'](_0x5233a2);})['then'](()=>_0x4b7a70());}};function a32_0xd07d(){const _0x36158c=['../../helpers/accessibility-automation/scripts','lMHKN','setGlobal','nJESF','info','debug','push','HHAfY','failed','testcase','../../helpers/performance-tester','22141NlLMgI','../../helpers/globals','\x20-\x20','ENV_VAR','__sessionFailed','IdWCC','browserstackSessionName','__error_messages__','now','KETTH','QMDLA','percy','DuiyB','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','.\x20Error\x20:','buSXc','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','oBVJG','zvspR','VFaBp','JEuYw','../../helpers/accessibility-automation/helper','cSmyR','6529dCUDdl','174SheoZw','618738tPdUIz','Automate\x20test\x20case\x20execution\x20has\x20started.','currentTest','475fzxnws','then','getCurrentUrl','755238mRpHlJ','TKfwK','BiMNC','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','\x22}}','TsMlF','env','passed','vhrGZ','appium:app','1844260xeZMKK','protocol','__skipSessionName','capabilities','Performing\x20scan\x20before\x20saving\x20results','NyGPB','error','app','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','getGlobal','executeScript','format','testAnalyticsId','shouldScanTestForAccessibility','tazyr','join','UeWbL','72FWizLW','LdDJT','Failed\x20to\x20store\x20session\x20name:\x20','performScan','message','stopMonitoring','uDEuz','QPcQf','http:','HxjfY','timeout','initQuit','BROWSERSTACK_TESTHUB_UUID','saveTestResults','JZrsj','34IkxaRP','length','mochaHooks','vtaHa','BROWSERSTACK_TESTHUB_JWT','isAccessibilityPlatform','yFqZw','thJwtToken','CyQpQ','bstackA11yShouldScan','quitCount_','znecm','driverCleanup','ztLtd','eHaOL','5944XlSkal','stringify','titlePath','session_','Failed:\x20','iSEeu','ObservabilitySync:','percyCaptureMode','iIYLk','__drivers','yzQpE','./test-observability/mochaUtils','\x20|\x20','149904SBjMaQ','IiITM','thTestRunUuid','INaiz','winstonLogger','accessibilityScanStarted','isArray','Mjgcm'];a32_0xd07d=function(){return _0x36158c;};return a32_0xd07d();}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';const a33_0x18f879=a33_0x5b0c;function a33_0x5b0c(_0xca073a,_0x5a4fd2){const _0x11e030=a33_0x11e0();return a33_0x5b0c=function(_0x5b0cc0,_0x452b77){_0x5b0cc0=_0x5b0cc0-0x1a6;let _0x10a6d3=_0x11e030[_0x5b0cc0];return _0x10a6d3;},a33_0x5b0c(_0xca073a,_0x5a4fd2);}(function(_0xf19bb2,_0x1d284e){const _0x5ae911=a33_0x5b0c,_0x1427d9=_0xf19bb2();while(!![]){try{const _0x2057b0=-parseInt(_0x5ae911(0x1b3))/0x1+-parseInt(_0x5ae911(0x1b6))/0x2*(-parseInt(_0x5ae911(0x1dc))/0x3)+parseInt(_0x5ae911(0x1ab))/0x4+parseInt(_0x5ae911(0x1ca))/0x5+parseInt(_0x5ae911(0x1cf))/0x6*(parseInt(_0x5ae911(0x1e4))/0x7)+-parseInt(_0x5ae911(0x1b9))/0x8+parseInt(_0x5ae911(0x1d9))/0x9*(-parseInt(_0x5ae911(0x1b0))/0xa);if(_0x2057b0===_0x1d284e)break;else _0x1427d9['push'](_0x1427d9['shift']());}catch(_0xd8b6c5){_0x1427d9['push'](_0x1427d9['shift']());}}}(a33_0x11e0,0xb48e6));function a33_0x11e0(){const _0x340d4a=['xjAZR','4770640hJRMWC','kVxFw','port','modifyBrowserStackW3CCaps','Deleting\x20','12664310NHDgWV','nightwatch','split','498949DCrlxB','isUndefined','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','542feFiuY','JihHN','filter','3067200sjxmFZ','splice','../../helpers/BrowserStackSetup','push','bfwwz','join','../../helpers/helper','env','forEach','cwd','winstonLogger','useW3C','existsSync','UIbuo','platforms','YvgfR','findIndex','5705090kaJRTT','hub.browserstack.com','tbeQB','WiKAd','selenium','521766grNiel','close','start_process','unlinkSync','nightwatch.conf.js','cXmOe','config','nightwatch.cmd','CaXHH','../utils/constants','18TpoQZv','child_process','info','10533pcshaz','exports','SyaFp','xWRDE','test_settings','YKNpu','Getting\x20your\x20nightwatch\x20configs\x20from\x20','inherit','70oScUHs','map','FAFFA','platform','getPlatformName','--env','ERtwT','nightwatch.json','../../helpers/logger','trim','stringify','slice','modifyBrowserStackCaps','now'];a33_0x11e0=function(){return _0x340d4a;};return a33_0x11e0();}const fs=require('fs'),path=require('path'),{spawn}=require(a33_0x18f879(0x1da)),logger=require(a33_0x18f879(0x1ec))[a33_0x18f879(0x1c3)],{default:BrowserStackSetup}=require(a33_0x18f879(0x1bb)),helper=require(a33_0x18f879(0x1bf)),constants=require(a33_0x18f879(0x1d8)),getUserNightwatchConfigs=(_0x5f4ec3,_0x51a275)=>{const _0x428a9e=a33_0x18f879,_0x26c3ec={'xWRDE':_0x428a9e(0x1d3),'YvgfR':_0x428a9e(0x1eb),'SyaFp':function(_0x215d60,_0x33fae5){return _0x215d60(_0x33fae5);},'CaXHH':'Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file'};let _0x30b17c=null,_0x43ed5d={};const _0x421c4b=_0x51a275[_0x428a9e(0x1c9)](_0x5b1938=>_0x5b1938==='--config');if(!helper[_0x428a9e(0x1b4)](_0x5f4ec3[_0x428a9e(0x1d5)])&&fs[_0x428a9e(0x1c5)](path[_0x428a9e(0x1be)](process[_0x428a9e(0x1c2)](),_0x5f4ec3[_0x428a9e(0x1d5)])))_0x30b17c=path[_0x428a9e(0x1be)](process[_0x428a9e(0x1c2)](),_0x5f4ec3[_0x428a9e(0x1d5)]),_0x51a275[_0x428a9e(0x1ba)](_0x421c4b,0x2);else{if(fs[_0x428a9e(0x1c5)](path[_0x428a9e(0x1be)](process[_0x428a9e(0x1c2)](),_0x26c3ec[_0x428a9e(0x1df)])))_0x30b17c=path[_0x428a9e(0x1be)](process[_0x428a9e(0x1c2)](),_0x26c3ec[_0x428a9e(0x1df)]);else fs['existsSync'](path[_0x428a9e(0x1be)](process['cwd'](),_0x26c3ec[_0x428a9e(0x1c8)]))&&(_0x30b17c=path['join'](process[_0x428a9e(0x1c2)](),_0x26c3ec['YvgfR']));}return _0x30b17c?(logger['info'](_0x428a9e(0x1e2)+_0x30b17c),_0x43ed5d=_0x26c3ec[_0x428a9e(0x1de)](require,_0x30b17c)):logger[_0x428a9e(0x1db)](_0x26c3ec[_0x428a9e(0x1d7)]),_0x43ed5d;},removeExistingEnvs=_0x33e416=>{const _0x40d13a=a33_0x18f879,_0x5c8490={};_0x5c8490[_0x40d13a(0x1aa)]=function(_0x383de0,_0x42b37e){return _0x383de0>_0x42b37e;};const _0x541f1e=_0x5c8490;let _0x506af0=_0x33e416[_0x40d13a(0x1c9)](_0x4f502c=>_0x4f502c===_0x40d13a(0x1e9));_0x541f1e[_0x40d13a(0x1aa)](_0x506af0,-0x1)&&_0x33e416[_0x40d13a(0x1ba)](_0x506af0,0x2),_0x506af0=_0x33e416['findIndex'](_0x373f81=>_0x373f81==='-e'),_0x541f1e[_0x40d13a(0x1aa)](_0x506af0,-0x1)&&_0x33e416['splice'](_0x506af0,0x2);};function run(_0x4f3c05,_0x4d3f22){const _0x4bd4c2=a33_0x18f879,_0x1f995f={'WiKAd':_0x4bd4c2(0x1b1),'Ffdzp':function(_0x3b6d72,_0x4bbd73){return _0x3b6d72+_0x4bbd73;},'bfwwz':_0x4bd4c2(0x1e0),'tbeQB':function(_0x1ecdd7,_0x120e3f,_0x2c0ee5){return _0x1ecdd7(_0x120e3f,_0x2c0ee5);},'kVxFw':_0x4bd4c2(0x1cb),'YKNpu':_0x4bd4c2(0x1b5),'qZRvt':function(_0x592120,_0x3424e1){return _0x592120===_0x3424e1;},'fiOMG':'nightwatch-browserstack.json','FAFFA':function(_0x161977,_0x1cc13f){return _0x161977(_0x1cc13f);},'cbfgv':function(_0x423a08,_0x115726,_0x4cf379,_0x2b14c3){return _0x423a08(_0x115726,_0x4cf379,_0x2b14c3);},'JihHN':_0x4bd4c2(0x1d6),'UIbuo':'--config','cXmOe':_0x4bd4c2(0x1e9),'ERtwT':_0x4bd4c2(0x1e3),'sBjoj':_0x4bd4c2(0x1d0)},_0x8ac793=new BrowserStackSetup(_0x4f3c05);if(!_0x8ac793[_0x4bd4c2(0x1d5)])return;const _0x1c251b=_0x1f995f[_0x4bd4c2(0x1cc)](getUserNightwatchConfigs,_0x4f3c05,_0x4d3f22),_0x5d3a35={};_0x5d3a35[_0x4bd4c2(0x1d1)]=![];const _0x36fa92={};_0x36fa92['host']=_0x1f995f[_0x4bd4c2(0x1ac)],_0x36fa92[_0x4bd4c2(0x1ad)]=0x1bb;const _0x319f5d={};_0x319f5d['webdriver']=_0x5d3a35,_0x319f5d[_0x4bd4c2(0x1ce)]=_0x36fa92;const _0x4bd674=_0x319f5d;logger[_0x4bd4c2(0x1db)](_0x1f995f[_0x4bd4c2(0x1e1)]);const _0x214ee7={..._0x1c251b},_0x36c559=_0x214ee7,_0x551e2b=helper[_0x4bd4c2(0x1c4)](_0x8ac793[_0x4bd4c2(0x1d5)]),_0x4d6065=[];_0x8ac793[_0x4bd4c2(0x1d5)][_0x4bd4c2(0x1c7)]['forEach']((_0x19774d,_0x41c75e)=>{const _0x2d1ed=_0x4bd4c2;_0x551e2b?_0x4d6065[_0x2d1ed(0x1bc)](helper[_0x2d1ed(0x1ae)](_0x8ac793[_0x2d1ed(0x1d5)],_0x1f995f['WiKAd'],_0x41c75e)):_0x4d6065['push'](helper[_0x2d1ed(0x1a8)](_0x8ac793[_0x2d1ed(0x1d5)],_0x1f995f[_0x2d1ed(0x1cd)],_0x41c75e));});const _0x5578bf={},_0x8bc55e=[];_0x4f3c05[_0x4bd4c2(0x1c0)]=_0x4f3c05[_0x4bd4c2(0x1c0)]||_0x4f3c05['e'];const _0x11e20b=_0x4f3c05['env']?_0x4f3c05[_0x4bd4c2(0x1c0)][_0x4bd4c2(0x1ed)]()[_0x4bd4c2(0x1b2)](',')[_0x4bd4c2(0x1e5)](_0x305875=>_0x305875[_0x4bd4c2(0x1ed)]())[_0x4bd4c2(0x1b8)](_0x14d883=>_0x14d883!==''):[''];_0x1f995f['qZRvt'](_0x11e20b['length'],0x0)&&_0x11e20b[_0x4bd4c2(0x1bc)]('');_0x11e20b['forEach'](_0x483497=>{const _0x507788=_0x4bd4c2;_0x4d6065[_0x507788(0x1c1)](_0x11718d=>{const _0x4dc58a=_0x507788;let _0x27aeac=_0x1f995f['Ffdzp'](helper[_0x4dc58a(0x1e8)](_0x11718d,'_'),'_'+Date[_0x4dc58a(0x1a9)]());_0x483497&&(_0x27aeac+='_'+_0x483497);if(_0x483497&&(!_0x1c251b[_0x1f995f['bfwwz']]||!_0x1c251b[_0x1f995f[_0x4dc58a(0x1bd)]][_0x483497]))return;const _0x597e7b={..._0x4bd674};_0x597e7b['desiredCapabilities']=_0x11718d;const _0xaf509d=_0x597e7b;_0x5578bf[_0x27aeac]=_0x483497?helper['mergeDeep'](_0x1c251b[_0x1f995f[_0x4dc58a(0x1bd)]][_0x483497],_0xaf509d):_0xaf509d,_0x8bc55e[_0x4dc58a(0x1bc)](_0x27aeac);});});!_0x36c559[_0x4bd4c2(0x1e0)]&&(_0x36c559['test_settings']={});_0x36c559[_0x4bd4c2(0x1e0)]={..._0x36c559[_0x4bd4c2(0x1e0)],..._0x5578bf};const _0x589f3b=path[_0x4bd4c2(0x1be)](__dirname,_0x1f995f['fiOMG']);fs['writeFileSync'](_0x589f3b,JSON[_0x4bd4c2(0x1a6)](_0x36c559)),_0x1f995f[_0x4bd4c2(0x1e6)](removeExistingEnvs,_0x4d3f22);const _0x31f682=_0x1f995f['cbfgv'](spawn,/^win/['test'](process[_0x4bd4c2(0x1e7)])?_0x1f995f[_0x4bd4c2(0x1b7)]:_0x1f995f[_0x4bd4c2(0x1cd)],[_0x1f995f[_0x4bd4c2(0x1c6)],_0x589f3b,..._0x4d3f22[_0x4bd4c2(0x1a7)](0x1),_0x1f995f[_0x4bd4c2(0x1d4)],_0x8bc55e[_0x4bd4c2(0x1be)](',')],{'stdio':_0x1f995f[_0x4bd4c2(0x1ea)]});_0x31f682['on'](_0x1f995f['sBjoj'],async _0x51b7ed=>{const _0x57368b=_0x4bd4c2;logger['debug']('child\x20process\x20exited\x20with\x20code\x20'+_0x51b7ed),logger[_0x57368b(0x1db)](_0x57368b(0x1af)+_0x589f3b),fs[_0x57368b(0x1d2)](_0x589f3b);});}module[a33_0x18f879(0x1dd)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a34_0x124007=a34_0x3a0a;(function(_0x5253a6,_0x2cc5d2){const _0x3fe13f=a34_0x3a0a,_0x596494=_0x5253a6();while(!![]){try{const _0x14dd35=parseInt(_0x3fe13f(0x18a))/0x1+parseInt(_0x3fe13f(0x1b2))/0x2*(parseInt(_0x3fe13f(0x1b0))/0x3)+-parseInt(_0x3fe13f(0x165))/0x4*(parseInt(_0x3fe13f(0x194))/0x5)+-parseInt(_0x3fe13f(0x17b))/0x6+parseInt(_0x3fe13f(0x187))/0x7+parseInt(_0x3fe13f(0x19b))/0x8+parseInt(_0x3fe13f(0x17d))/0x9;if(_0x14dd35===_0x2cc5d2)break;else _0x596494['push'](_0x596494['shift']());}catch(_0x33bac3){_0x596494['push'](_0x596494['shift']());}}}(a34_0x157b,0x867a7));const util=require(a34_0x124007(0x184)),logger=require(a34_0x124007(0x1ba))[a34_0x124007(0x1ac)],{isAccessibilityAutomationSession}=require(a34_0x124007(0x1b8)),{isUndefined}=require(a34_0x124007(0x17c)),scripts=require(a34_0x124007(0x1b3));function a34_0x3a0a(_0x5c399f,_0x4b4762){const _0x157bed=a34_0x157b();return a34_0x3a0a=function(_0x3a0a40,_0x23946e){_0x3a0a40=_0x3a0a40-0x160;let _0x325835=_0x157bed[_0x3a0a40];return _0x325835;},a34_0x3a0a(_0x5c399f,_0x4b4762);}exports[a34_0x124007(0x1c1)]=async(_0x4ce563,_0x939f24,_0x390031={})=>{const _0x2dcafa=a34_0x124007,_0x55bb55={};_0x55bb55[_0x2dcafa(0x176)]='bstackSdkArgs';const _0xd68493=_0x55bb55;return await _0x4ce563[_0x2dcafa(0x1a3)](_0x2dcafa(0x162)+_0x939f24['replace'](/arguments/g,_0xd68493[_0x2dcafa(0x176)])+'\x0a\x20\x20\x20\x20})\x0a\x20\x20})('+JSON[_0x2dcafa(0x188)](_0x390031)+')');},exports['browserStackExecuteDriver']=async(_0x96c932,_0x240d6e,_0x11278a={})=>{const _0x2cfdf6=a34_0x124007,_0x5423b9={};_0x5423b9['jaipE']=function(_0x517eda,_0x2987ee){return _0x517eda===_0x2987ee;},_0x5423b9['arwVJ']=_0x2cfdf6(0x1b4),_0x5423b9[_0x2cfdf6(0x1c2)]=function(_0x285127,_0x13f289){return _0x285127===_0x13f289;},_0x5423b9[_0x2cfdf6(0x1be)]=_0x2cfdf6(0x19d),_0x5423b9[_0x2cfdf6(0x1bb)]='bstackSdkArgs';const _0x2c0292=_0x5423b9;if(_0x2c0292[_0x2cfdf6(0x196)](_0x96c932[_0x2cfdf6(0x1a2)][_0x2cfdf6(0x1c3)],_0x2c0292['arwVJ']))return await _0x96c932[_0x2cfdf6(0x18c)](_0x240d6e,_0x11278a);else{if(_0x2c0292[_0x2cfdf6(0x1c2)](_0x96c932[_0x2cfdf6(0x1a2)][_0x2cfdf6(0x1c3)],_0x2c0292['rAnmB']))return await _0x96c932[_0x2cfdf6(0x16a)](_0x2cfdf6(0x172)+_0x240d6e[_0x2cfdf6(0x170)](/arguments/g,_0x2c0292[_0x2cfdf6(0x1bb)])+_0x2cfdf6(0x181)+JSON[_0x2cfdf6(0x188)](_0x11278a)+')');}},exports[a34_0x124007(0x191)]=async _0x5c09c9=>{const _0x33de99=a34_0x124007,_0x218117={};_0x218117['zTfgQ']='accessibilityOptions.wcagVersion',_0x218117[_0x33de99(0x18e)]=_0x33de99(0x1a6),_0x218117[_0x33de99(0x1a8)]=_0x33de99(0x182),_0x218117[_0x33de99(0x168)]=_0x33de99(0x1b5),_0x218117[_0x33de99(0x1bd)]=_0x33de99(0x16e),_0x218117[_0x33de99(0x171)]='accessibilityOptions.scannerVersion';const _0x48885f=_0x218117;_0x5c09c9[_0x33de99(0x199)]&&(_0x5c09c9[_0x33de99(0x199)][_0x33de99(0x177)]&&(_0x5c09c9[_0x48885f[_0x33de99(0x1ab)]]=_0x5c09c9[_0x33de99(0x199)][_0x33de99(0x177)]),_0x5c09c9[_0x33de99(0x199)][_0x33de99(0x198)]&&(_0x5c09c9[_0x48885f[_0x33de99(0x18e)]]=_0x5c09c9['accessibilityOptions'][_0x33de99(0x198)]),_0x5c09c9[_0x33de99(0x199)][_0x33de99(0x1c0)]&&(_0x5c09c9[_0x48885f[_0x33de99(0x1a8)]]=_0x5c09c9[_0x33de99(0x199)][_0x33de99(0x1c0)][_0x33de99(0x180)],_0x5c09c9[_0x48885f[_0x33de99(0x168)]]=_0x5c09c9[_0x33de99(0x199)]['includeIssueType'][_0x33de99(0x1bf)]));const _0x32ea94=JSON[_0x33de99(0x16f)](process[_0x33de99(0x173)][_0x33de99(0x192)])[_0x33de99(0x193)];_0x5c09c9[_0x48885f[_0x33de99(0x1bd)]]=process[_0x33de99(0x173)]['BS_A11Y_JWT'],_0x5c09c9[_0x48885f[_0x33de99(0x171)]]=_0x32ea94,delete _0x5c09c9['accessibilityOptions'];},exports[a34_0x124007(0x1c4)]=async _0x4ebe40=>{const _0x459567=a34_0x124007,_0x3a1e16={};_0x3a1e16[_0x459567(0x17f)]=_0x459567(0x18b),_0x3a1e16['wfYFV']=_0x459567(0x1a5);const _0x391669=_0x3a1e16;if(global['accessibilityPlatform'])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x4ebe40,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x4ebe40,scripts.getResults);return res;}catch{return logger[_0x459567(0x175)](_0x391669['jKbfo']),[];}else return logger[_0x459567(0x16c)](_0x391669[_0x459567(0x1bc)]),[];},exports[a34_0x124007(0x183)]=async(_0x383093,_0x147d3d='')=>{const _0x4518e1=a34_0x124007;if(global[_0x4518e1(0x16d)]){const _0x342a2e={};return _0x342a2e['method']=_0x147d3d,await exports[_0x4518e1(0x1c1)](_0x383093,scripts[_0x4518e1(0x183)],_0x342a2e);}},exports[a34_0x124007(0x197)]=async _0x35a494=>{const _0x23a5f4=a34_0x124007,_0x164acb={};_0x164acb['Smfmi']=_0x23a5f4(0x1a7),_0x164acb[_0x23a5f4(0x178)]=_0x23a5f4(0x1c5);const _0x69d01b=_0x164acb;if(global[_0x23a5f4(0x16d)])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x35a494,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x35a494,scripts.getResultsSummary);return summaryResults;}catch{return logger['debug'](_0x69d01b['Smfmi']),{};}else return logger[_0x23a5f4(0x16c)](_0x69d01b[_0x23a5f4(0x178)]),{};},exports[a34_0x124007(0x160)]=async _0x5de6ba=>{const _0x2f2298=a34_0x124007,_0x5f2c69={'mGCRb':function(_0x207502,_0x278c0d){return _0x207502!==_0x278c0d;},'cyOpn':_0x2f2298(0x19c),'FZILB':function(_0x5e7ad8,_0x559458){return _0x5e7ad8===_0x559458;},'QznZh':_0x2f2298(0x1b9),'pLPWY':function(_0x16ddb4,_0x39eec){return _0x16ddb4===_0x39eec;},'WHJhu':'playwright-chromium','pOOLt':_0x2f2298(0x1ad),'MUdmG':function(_0x51bd41,_0x47886f){return _0x51bd41(_0x47886f);},'Nudzu':function(_0x18cb70,_0x1c05e8){return _0x18cb70===_0x1c05e8;},'tHJbS':'latest','sMbYi':function(_0x589d0c,_0xe9f393){return _0x589d0c>_0xe9f393;},'RcjrI':_0x2f2298(0x17e)};try{if(!_0x5f2c69[_0x2f2298(0x189)](_0x5de6ba['deviceName'],''))return logger[_0x2f2298(0x16c)](_0x5f2c69['cyOpn']),![];const _0x28b082=_0x5de6ba[_0x2f2298(0x1aa)];if(!(_0x5f2c69['FZILB'](_0x28b082,_0x5f2c69[_0x2f2298(0x1ae)])||_0x5f2c69[_0x2f2298(0x1a4)](_0x28b082,_0x5f2c69[_0x2f2298(0x186)])))return logger[_0x2f2298(0x16c)](_0x5f2c69[_0x2f2298(0x1a9)]),![];const _0x260576=_0x5f2c69[_0x2f2298(0x1a1)](parseInt,_0x5de6ba[_0x2f2298(0x1af)]);if(!(_0x5f2c69['Nudzu'](_0x260576,_0x5f2c69[_0x2f2298(0x19f)])||_0x5f2c69[_0x2f2298(0x19a)](_0x260576,0x5e)))return logger[_0x2f2298(0x16c)](_0x5f2c69['RcjrI']),![];}catch(_0x2aae69){logger['debug']('Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20'+util[_0x2f2298(0x18d)](_0x2aae69));}return!![];},exports['processAccessibilityCaps']=(_0x58d225,_0x284e26,_0xae3cb8)=>{const _0x3b1b20=a34_0x124007,_0x44a4ec={'CXPtr':function(_0x139f3a){return _0x139f3a();},'wyHPm':_0x3b1b20(0x1b7),'KGDRW':function(_0x27260f,_0x4f7306){return _0x27260f===_0x4f7306;},'IWTRV':'chrome','sPtOQ':_0x3b1b20(0x18f),'dcAvx':_0x3b1b20(0x1ad),'seTTB':'latest','mKluc':function(_0x2bd907,_0x1c8558){return _0x2bd907>_0x1c8558;},'GCVlh':_0x3b1b20(0x17e),'smLww':function(_0x52bd2e,_0xda3a9d){return _0x52bd2e(_0xda3a9d);},'LmDlO':_0x3b1b20(0x19c),'xhNSE':function(_0x45521f,_0x32c26b){return _0x45521f+_0x32c26b;},'QbAnz':function(_0x599768,_0x2196cc){return _0x599768(_0x2196cc);}};try{if(_0x44a4ec[_0x3b1b20(0x195)](isAccessibilityAutomationSession)){global[_0x3b1b20(0x16d)]=!![];!_0x58d225[_0x44a4ec['wyHPm']]&&(global[_0x3b1b20(0x16d)]=![]);!(_0x44a4ec[_0x3b1b20(0x19e)](_0x58d225[_0x3b1b20(0x166)],_0x44a4ec[_0x3b1b20(0x190)])||_0x44a4ec[_0x3b1b20(0x19e)](_0x58d225['browserName'],_0x44a4ec[_0x3b1b20(0x1b1)]))&&(logger[_0x3b1b20(0x16c)](_0x44a4ec['dcAvx']),global[_0x3b1b20(0x16d)]=![]);!(_0x44a4ec[_0x3b1b20(0x19e)](_0x58d225[_0x3b1b20(0x1af)],_0x44a4ec[_0x3b1b20(0x174)])||_0x44a4ec[_0x3b1b20(0x167)](_0x58d225['browser_version'],0x5e))&&(logger[_0x3b1b20(0x16c)](_0x44a4ec[_0x3b1b20(0x163)]),global['accessibilityPlatform']=![]);!_0x44a4ec['smLww'](isUndefined,_0x58d225[_0x3b1b20(0x17a)])&&(logger[_0x3b1b20(0x16c)](_0x44a4ec['LmDlO']),global[_0x3b1b20(0x16d)]=![]);if(!global[_0x3b1b20(0x16d)]){_0x58d225[_0x44a4ec[_0x3b1b20(0x169)]]=![];const _0x320e91=_0x44a4ec['xhNSE'](_0x284e26,_0x44a4ec[_0x3b1b20(0x179)](encodeURIComponent,JSON[_0x3b1b20(0x188)](_0x58d225)));_0xae3cb8&&(_0xae3cb8['currentTest'][_0x3b1b20(0x1c6)][_0x3b1b20(0x16b)][_0x3b1b20(0x164)][_0x3b1b20(0x1b6)][_0x3b1b20(0x185)]=_0x320e91,_0xae3cb8[_0x3b1b20(0x161)][_0x3b1b20(0x16b)][_0x3b1b20(0x164)][_0x3b1b20(0x1b6)][_0x3b1b20(0x185)]=_0x320e91);}}}catch(_0x431103){logger[_0x3b1b20(0x1a0)]('Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20'+util[_0x3b1b20(0x18d)](_0x431103));}};function a34_0x157b(){const _0x10851c=['env','seTTB','error','bDocw','wcagVersion','xtRUX','QbAnz','deviceName','6350832yrEMmR','../../helpers/helper','1059867HZOmVP','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','jKbfo','bestPractice','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','accessibilityOptions.includeIssueType.bestPractice','performScan','util','wsEndpoint','WHJhu','4402433ZHLinx','stringify','mGCRb','351789rkhscW','No\x20accessibility\x20results\x20were\x20found.','executeAsyncScript','format','tpcvG','playwright-chromium','IWTRV','setAccessibilityCapabilities','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','scannerVersion','190340EGHaIP','CXPtr','jaipE','getAccessibilityResultsSummary','scannerProcessingTimeout','accessibilityOptions','sMbYi','2211728dqQHlh','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','Playwright','KGDRW','tHJbS','debug','MUdmG','constructor','evaluate','pLPWY','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','accessibilityOptions.scannerProcessingTimeout','No\x20summaryResults\x20found.','JsqeO','pOOLt','browser','zTfgQ','winstonLogger','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','QznZh','browser_version','751251JXZzBP','sPtOQ','4hvHvwA','../../helpers/accessibility-automation/scripts','WebDriver','accessibilityOptions.includeIssueType.needsReview','connectOptions','browserstack.accessibility','../../helpers/accessibility-automation/helper','chrome','../../helpers/logger','HbLGM','wfYFV','jmnfA','rAnmB','needsReview','includeIssueType','browserStackEvaluate','lgSTK','name','getAccessibilityResults','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','testInfo','platformValidation','workerInfo','(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','GCVlh','use','28sORkUJ','browserName','mKluc','XRqpw','wyHPm','executeScript','project','warn','accessibilityPlatform','accessibilityOptions.authToken','parse','replace','QXCEc','(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'];a34_0x157b=function(){return _0x10851c;};return a34_0x157b();}
|
|
1
|
+
const a34_0x1d3b26=a34_0x7585;(function(_0x4324af,_0x2a8ff2){const _0x37aeeb=a34_0x7585,_0x3de03a=_0x4324af();while(!![]){try{const _0x2c7de5=parseInt(_0x37aeeb(0x1f5))/0x1+parseInt(_0x37aeeb(0x1e1))/0x2+parseInt(_0x37aeeb(0x230))/0x3*(parseInt(_0x37aeeb(0x205))/0x4)+parseInt(_0x37aeeb(0x235))/0x5*(-parseInt(_0x37aeeb(0x209))/0x6)+parseInt(_0x37aeeb(0x220))/0x7+parseInt(_0x37aeeb(0x1fa))/0x8+-parseInt(_0x37aeeb(0x1cd))/0x9*(parseInt(_0x37aeeb(0x204))/0xa);if(_0x2c7de5===_0x2a8ff2)break;else _0x3de03a['push'](_0x3de03a['shift']());}catch(_0x4eb13b){_0x3de03a['push'](_0x3de03a['shift']());}}}(a34_0x1938,0x57f6e));const util=require('util'),logger=require(a34_0x1d3b26(0x222))[a34_0x1d3b26(0x228)],{isAccessibilityAutomationSession}=require(a34_0x1d3b26(0x1d1)),{isUndefined}=require(a34_0x1d3b26(0x1cb)),scripts=require('../../helpers/accessibility-automation/scripts');exports[a34_0x1d3b26(0x231)]=async(_0x45d94d,_0x20863c,_0x356aa6={})=>{const _0xfbcf0=a34_0x1d3b26,_0x1dc836={};_0x1dc836[_0xfbcf0(0x1ff)]=_0xfbcf0(0x1d3);const _0x408de3=_0x1dc836;return await _0x45d94d[_0xfbcf0(0x201)](_0xfbcf0(0x1f8)+_0x20863c[_0xfbcf0(0x208)](/arguments/g,_0x408de3[_0xfbcf0(0x1ff)])+_0xfbcf0(0x212)+JSON[_0xfbcf0(0x20a)](_0x356aa6)+')');},exports[a34_0x1d3b26(0x1eb)]=async(_0x53f5d3,_0x156842,_0x26360b={})=>{const _0x58fc74=a34_0x1d3b26,_0x4280be={};_0x4280be['dbhuG']=function(_0x3b6b44,_0x5ed56a){return _0x3b6b44===_0x5ed56a;},_0x4280be[_0x58fc74(0x225)]=_0x58fc74(0x20f),_0x4280be[_0x58fc74(0x214)]=_0x58fc74(0x227),_0x4280be[_0x58fc74(0x219)]=_0x58fc74(0x1d3);const _0x9382e8=_0x4280be;if(_0x9382e8[_0x58fc74(0x22a)](_0x53f5d3[_0x58fc74(0x1ce)][_0x58fc74(0x20c)],_0x9382e8[_0x58fc74(0x225)]))return await _0x53f5d3['executeAsyncScript'](_0x156842,_0x26360b);else{if(_0x9382e8[_0x58fc74(0x22a)](_0x53f5d3['constructor'][_0x58fc74(0x20c)],_0x9382e8[_0x58fc74(0x214)]))return await _0x53f5d3['executeScript'](_0x58fc74(0x1cc)+_0x156842[_0x58fc74(0x208)](/arguments/g,_0x9382e8[_0x58fc74(0x219)])+_0x58fc74(0x21a)+JSON[_0x58fc74(0x20a)](_0x26360b)+')');}},exports[a34_0x1d3b26(0x22d)]=async _0x56e925=>{const _0xc0688f=a34_0x1d3b26,_0x24f9e7={};_0x24f9e7[_0xc0688f(0x234)]=_0xc0688f(0x21e),_0x24f9e7[_0xc0688f(0x21b)]=_0xc0688f(0x223),_0x24f9e7[_0xc0688f(0x1f2)]=_0xc0688f(0x1e6),_0x24f9e7[_0xc0688f(0x1d5)]=_0xc0688f(0x21f),_0x24f9e7[_0xc0688f(0x1e5)]=_0xc0688f(0x1f1),_0x24f9e7['nUOJb']=_0xc0688f(0x1fc);const _0x2f2de3=_0x24f9e7;_0x56e925[_0xc0688f(0x1ee)]&&(_0x56e925[_0xc0688f(0x1ee)]['wcagVersion']&&(_0x56e925[_0x2f2de3['DLyDK']]=_0x56e925[_0xc0688f(0x1ee)][_0xc0688f(0x1d0)]),_0x56e925[_0xc0688f(0x1ee)][_0xc0688f(0x217)]&&(_0x56e925[_0x2f2de3[_0xc0688f(0x21b)]]=_0x56e925[_0xc0688f(0x1ee)][_0xc0688f(0x217)]),_0x56e925[_0xc0688f(0x1ee)][_0xc0688f(0x1f4)]&&(_0x56e925[_0x2f2de3[_0xc0688f(0x1f2)]]=_0x56e925[_0xc0688f(0x1ee)]['includeIssueType'][_0xc0688f(0x216)],_0x56e925[_0x2f2de3[_0xc0688f(0x1d5)]]=_0x56e925[_0xc0688f(0x1ee)][_0xc0688f(0x1f4)][_0xc0688f(0x1de)]));const _0x140b71=JSON['parse'](process['env'][_0xc0688f(0x211)])['scannerVersion'];_0x56e925[_0x2f2de3[_0xc0688f(0x1e5)]]=process[_0xc0688f(0x236)][_0xc0688f(0x20d)],_0x56e925[_0x2f2de3[_0xc0688f(0x1fe)]]=_0x140b71,delete _0x56e925['accessibilityOptions'];},exports[a34_0x1d3b26(0x1e8)]=async _0x4b2e71=>{const _0x27053c=a34_0x1d3b26,_0x3b8f35={};_0x3b8f35[_0x27053c(0x1db)]=_0x27053c(0x1d6),_0x3b8f35['GjfsT']=_0x27053c(0x218);const _0x39fe61=_0x3b8f35;if(global['accessibilityPlatform'])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x4b2e71,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x4b2e71,scripts.getResults);return res;}catch{return logger[_0x27053c(0x1f6)](_0x39fe61[_0x27053c(0x1db)]),[];}else return logger[_0x27053c(0x232)](_0x39fe61[_0x27053c(0x1ef)]),[];},exports['performScan']=async(_0x23c28a,_0x2a7034='')=>{const _0x2dd25b=a34_0x1d3b26;if(global[_0x2dd25b(0x1d9)]){const _0x2b8e49={};return _0x2b8e49[_0x2dd25b(0x207)]=_0x2a7034,await exports[_0x2dd25b(0x231)](_0x23c28a,scripts[_0x2dd25b(0x210)],_0x2b8e49);}},exports[a34_0x1d3b26(0x202)]=async _0x972634=>{const _0x3025cf=a34_0x1d3b26,_0x2f182a={};_0x2f182a[_0x3025cf(0x1da)]=_0x3025cf(0x200),_0x2f182a[_0x3025cf(0x224)]=_0x3025cf(0x1d8);const _0x5f4340=_0x2f182a;if(global[_0x3025cf(0x1d9)])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x972634,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x972634,scripts.getResultsSummary);return summaryResults;}catch{return logger['debug'](_0x5f4340[_0x3025cf(0x1da)]),{};}else return logger[_0x3025cf(0x232)](_0x5f4340['NLbGk']),{};},exports[a34_0x1d3b26(0x20b)]=async _0x18a33c=>{const _0x8d78c2=a34_0x1d3b26,_0xcef484={'zWVho':function(_0x50ffb2,_0x278ec5){return _0x50ffb2!==_0x278ec5;},'IHiOg':_0x8d78c2(0x1cf),'vPMPd':function(_0x37592b,_0x42c8e4){return _0x37592b===_0x42c8e4;},'TMJDl':_0x8d78c2(0x215),'bqoYQ':function(_0x527f9b,_0xa1ec9e){return _0x527f9b===_0xa1ec9e;},'YVjYR':'playwright-chromium','InYwA':_0x8d78c2(0x22f),'FkcwO':function(_0x4b846d,_0x4e25f0){return _0x4b846d(_0x4e25f0);},'ikLlY':function(_0x24f217,_0x5d228d){return _0x24f217===_0x5d228d;},'rkJKg':'latest','JYueP':function(_0x31b821,_0x45a6df){return _0x31b821>_0x45a6df;},'Ulskz':_0x8d78c2(0x1f9)};try{if(!_0xcef484[_0x8d78c2(0x1dc)](_0x18a33c['deviceName'],''))return logger[_0x8d78c2(0x232)](_0xcef484[_0x8d78c2(0x1e3)]),![];const _0x284a85=_0x18a33c[_0x8d78c2(0x21d)];if(!(_0xcef484[_0x8d78c2(0x213)](_0x284a85,_0xcef484[_0x8d78c2(0x1e0)])||_0xcef484['bqoYQ'](_0x284a85,_0xcef484[_0x8d78c2(0x229)])))return logger[_0x8d78c2(0x232)](_0xcef484[_0x8d78c2(0x1fb)]),![];const _0x18ac79=_0xcef484[_0x8d78c2(0x1e4)](parseInt,_0x18a33c['browser_version']);if(!(_0xcef484['ikLlY'](_0x18ac79,_0xcef484['rkJKg'])||_0xcef484[_0x8d78c2(0x1d2)](_0x18ac79,0x5e)))return logger[_0x8d78c2(0x232)](_0xcef484[_0x8d78c2(0x1ea)]),![];}catch(_0x27e6a2){logger[_0x8d78c2(0x21c)]('Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20'+util['format'](_0x27e6a2));}return!![];},exports[a34_0x1d3b26(0x22c)]=(_0x1d15a0,_0x4428ff,_0xbc7d9c)=>{const _0x285749=a34_0x1d3b26,_0x133f6a={'Iqpaj':function(_0x118a17){return _0x118a17();},'KZRcV':_0x285749(0x1ec),'AhIdF':function(_0x30248d,_0x1733de){return _0x30248d===_0x1733de;},'UzMOW':_0x285749(0x215),'AShoC':function(_0x4e370e,_0x6a322e){return _0x4e370e===_0x6a322e;},'gmQXD':_0x285749(0x221),'FThLX':_0x285749(0x22f),'jLlmu':function(_0x590b70,_0x24aeb2){return _0x590b70===_0x24aeb2;},'FwCQn':'latest','nhDyB':function(_0x4c6f7a,_0xaccc29){return _0x4c6f7a>_0xaccc29;},'uaSRC':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','QCebX':function(_0x1faa9f,_0x4c7079){return _0x1faa9f(_0x4c7079);},'MSRgb':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','FHymf':function(_0x1e0587,_0x45dd55){return _0x1e0587+_0x45dd55;}};try{if(_0x133f6a[_0x285749(0x1f7)](isAccessibilityAutomationSession)){global['accessibilityPlatform']=!![];!_0x1d15a0[_0x133f6a[_0x285749(0x1f3)]]&&(global[_0x285749(0x1d9)]=![]);!(_0x133f6a[_0x285749(0x1df)](_0x1d15a0[_0x285749(0x1dd)],_0x133f6a['UzMOW'])||_0x133f6a['AShoC'](_0x1d15a0[_0x285749(0x1dd)],_0x133f6a[_0x285749(0x206)]))&&(logger[_0x285749(0x232)](_0x133f6a[_0x285749(0x226)]),global['accessibilityPlatform']=![]);!(_0x133f6a[_0x285749(0x203)](_0x1d15a0[_0x285749(0x1d4)],_0x133f6a[_0x285749(0x1e7)])||_0x133f6a['nhDyB'](_0x1d15a0[_0x285749(0x1d4)],0x5e))&&(logger[_0x285749(0x232)](_0x133f6a[_0x285749(0x1ed)]),global[_0x285749(0x1d9)]=![]);!_0x133f6a[_0x285749(0x1ca)](isUndefined,_0x1d15a0[_0x285749(0x233)])&&(logger[_0x285749(0x232)](_0x133f6a['MSRgb']),global[_0x285749(0x1d9)]=![]);if(!global[_0x285749(0x1d9)]){_0x1d15a0[_0x133f6a[_0x285749(0x1f3)]]=![];const _0x53dfb7=_0x133f6a['FHymf'](_0x4428ff,_0x133f6a[_0x285749(0x1ca)](encodeURIComponent,JSON['stringify'](_0x1d15a0)));_0xbc7d9c&&(_0xbc7d9c[_0x285749(0x1e9)][_0x285749(0x22b)]['project']['use'][_0x285749(0x1d7)][_0x285749(0x1f0)]=_0x53dfb7,_0xbc7d9c[_0x285749(0x22e)][_0x285749(0x1e2)]['use'][_0x285749(0x1d7)][_0x285749(0x1f0)]=_0x53dfb7);}}}catch(_0x15fc09){logger[_0x285749(0x21c)](_0x285749(0x20e)+util[_0x285749(0x1fd)](_0x15fc09));}};function a34_0x7585(_0xd162d0,_0x1ffb84){const _0x1938d2=a34_0x1938();return a34_0x7585=function(_0x75851f,_0x31679e){_0x75851f=_0x75851f-0x1ca;let _0x499445=_0x1938d2[_0x75851f];return _0x499445;},a34_0x7585(_0xd162d0,_0x1ffb84);}function a34_0x1938(){const _0x32994b=['../../helpers/accessibility-automation/helper','JYueP','bstackSdkArgs','browser_version','psItS','No\x20accessibility\x20results\x20were\x20found.','connectOptions','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','accessibilityPlatform','XZmGH','ReqgE','zWVho','browserName','needsReview','AhIdF','TMJDl','921174GlGtyF','project','IHiOg','FkcwO','StFON','accessibilityOptions.includeIssueType.bestPractice','FwCQn','getAccessibilityResults','currentTest','Ulskz','browserStackExecuteDriver','browserstack.accessibility','uaSRC','accessibilityOptions','GjfsT','wsEndpoint','accessibilityOptions.authToken','jAdjo','KZRcV','includeIssueType','580722vYxmeS','error','Iqpaj','(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','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','5409304JmsLnW','InYwA','accessibilityOptions.scannerVersion','format','nUOJb','oNsbW','No\x20summaryResults\x20found.','evaluate','getAccessibilityResultsSummary','jLlmu','204730dRfsgW','4UXVZyM','gmQXD','method','replace','478596nLpNps','stringify','platformValidation','name','BS_A11Y_JWT','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','WebDriver','performScan','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','vPMPd','SZpan','chrome','bestPractice','scannerProcessingTimeout','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','ONpWY','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','ZiTuo','debug','browser','accessibilityOptions.wcagVersion','accessibilityOptions.includeIssueType.needsReview','3875004QRVfUp','playwright-chromium','../../helpers/logger','accessibilityOptions.scannerProcessingTimeout','NLbGk','Msijq','FThLX','Playwright','winstonLogger','YVjYR','dbhuG','testInfo','processAccessibilityCaps','setAccessibilityCapabilities','workerInfo','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','1428285zsVVMh','browserStackEvaluate','warn','deviceName','DLyDK','20LkYBPV','env','QCebX','../../helpers/helper','(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','909zggmwr','constructor','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','wcagVersion'];a34_0x1938=function(){return _0x32994b;};return a34_0x1938();}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a35_0x449f89=a35_0x5238;(function(_0x1c52e6,_0x4b0e89){const _0x4e07e8=a35_0x5238,_0x5af607=_0x1c52e6();while(!![]){try{const _0x438560=-parseInt(_0x4e07e8(0x106))/0x1+parseInt(_0x4e07e8(0x119))/0x2*(-parseInt(_0x4e07e8(0xfe))/0x3)+parseInt(_0x4e07e8(0x135))/0x4*(parseInt(_0x4e07e8(0x115))/0x5)+parseInt(_0x4e07e8(0x15b))/0x6*(-parseInt(_0x4e07e8(0x148))/0x7)+-parseInt(_0x4e07e8(0xd1))/0x8+parseInt(_0x4e07e8(0x131))/0x9+parseInt(_0x4e07e8(0x100))/0xa;if(_0x438560===_0x4b0e89)break;else _0x5af607['push'](_0x5af607['shift']());}catch(_0x1b9e9e){_0x5af607['push'](_0x5af607['shift']());}}}(a35_0x1c70,0x9403e));const fs=require('fs'),path=require('path'),{spawn}=require(a35_0x449f89(0xcd)),{format}=require('util'),logger=require('../../helpers/logger')['winstonLogger'],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require('../../helpers/helper'),constants=require(a35_0x449f89(0x14c)),{FRAMEWORKS}=require(a35_0x449f89(0xe6)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require(a35_0x449f89(0x152)),{CrashReporter}=require(a35_0x449f89(0x144)),{getFrameworkVersion}=require('../../helpers/test-observability/utils'),{checkAccessibilityPlatformConfig}=require(a35_0x449f89(0xfd)),{setAccessibilityCapabilities}=require('./accessibility-helper'),TestHubHandler=require('../../helpers/testhub/testhubHandler'),{shouldProcessEventForTesthub}=require(a35_0x449f89(0x107)),getUserPlaywrightConfig=async(_0x1cd5b5,_0x35b38e)=>{const _0x3c6623=a35_0x449f89,_0x315855={'nEqLy':function(_0xb5b102){return _0xb5b102();},'cGdkb':function(_0x51160e,_0x379fd7){return _0x51160e(_0x379fd7);},'uZRNL':function(_0x2c394c,_0x924dfc){return _0x2c394c(_0x924dfc);},'MCKik':_0x3c6623(0x130),'TEwXC':_0x3c6623(0xf0)},_0x3a0650=!helper[_0x3c6623(0x128)](_0x1cd5b5[_0x3c6623(0xe8)]),_0x1d7383=_0x3a0650?path[_0x3c6623(0xeb)](process['cwd'](),_0x1cd5b5[_0x3c6623(0xe8)]):process[_0x3c6623(0xcc)](),{resolveConfigFile:_0x55dde7,resolveConfigLocation:_0x7033fa}=helper[_0x3c6623(0x149)][_0x3c6623(0xec)](null,_0x315855[_0x3c6623(0x15e)](getConfigLoaderPath)),_0x116647=_0x55dde7?_0x315855[_0x3c6623(0x124)](_0x55dde7,_0x1d7383):helper[_0x3c6623(0x134)](_0x315855[_0x3c6623(0xcf)](_0x7033fa,_0x1d7383),[_0x315855['MCKik']]),_0x290844={};if(_0x3a0650){const _0x528338=_0x35b38e[_0x3c6623(0xe3)](_0x29c585=>_0x29c585==='--config'||_0x29c585==='-c'||_0x29c585[_0x3c6623(0x122)](_0x3c6623(0xf0)));_0x35b38e[_0x3c6623(0x103)](_0x528338,_0x35b38e[_0x528338][_0x3c6623(0x122)](_0x315855['TEwXC'])?0x1:0x2);}const _0x7d5192={};return _0x7d5192[_0x3c6623(0x137)]=_0x116647,_0x7d5192['config']=_0x290844,_0x7d5192;},handleO11yRerun=_0x384aa4=>{const _0x369861=a35_0x449f89,_0x5cbac9={};_0x5cbac9[_0x369861(0xff)]=function(_0x356efd,_0x1fda11){return _0x356efd!==_0x1fda11;},_0x5cbac9[_0x369861(0x15c)]=_0x369861(0x143),_0x5cbac9[_0x369861(0x13e)]=_0x369861(0x109);const _0x4374de=_0x5cbac9,_0x458c4f=helper[_0x369861(0xf7)](process[_0x369861(0x142)][_0x369861(0x145)]);if(_0x458c4f){const _0x41e5d9=process[_0x369861(0x142)][_0x369861(0x116)],_0x3dbd05=[];if(_0x4374de[_0x369861(0xff)](_0x41e5d9,_0x4374de[_0x369861(0x15c)])&&!helper[_0x369861(0x128)](_0x41e5d9)){_0x41e5d9[_0x369861(0x146)](',')['map'](_0x59d6a2=>{const _0x58b7eb=_0x369861;_0x3dbd05[_0x58b7eb(0x14d)]('('+_0x59d6a2[_0x58b7eb(0x10c)]()+')');});const _0x5f3613='^'+_0x3dbd05[_0x369861(0xfb)]('|')+'$';_0x384aa4[_0x369861(0x14d)](_0x4374de[_0x369861(0x13e)],_0x5f3613);}}},spawnOriginalProcess=_0x39341e=>{const _0x32ecc1=a35_0x449f89,_0x2169b6={'pmfcX':function(_0x224cfa,_0x36d131,_0x199799,_0x545cc2){return _0x224cfa(_0x36d131,_0x199799,_0x545cc2);},'VNKHG':'npx','cRHOc':_0x32ecc1(0xd0),'eTdLa':function(_0xf97149,_0x2bfd2c){return _0xf97149===_0x2bfd2c;},'avRVY':_0x32ecc1(0x110),'OoOxN':'inherit'};_0x2169b6[_0x32ecc1(0x120)](spawn,_0x2169b6[_0x32ecc1(0x12f)],[_0x2169b6[_0x32ecc1(0x147)],..._0x39341e['slice'](0x1)],{'shell':_0x2169b6[_0x32ecc1(0x12a)](process[_0x32ecc1(0x10f)],_0x2169b6['avRVY']),'stdio':_0x2169b6[_0x32ecc1(0x159)],'cwd':process['cwd']()});},isTestCommand=(_0x1bf6b3,_0x27a69a)=>{const _0xcd5f33=a35_0x449f89,_0xdc36e2={};_0xdc36e2['bgiss']=function(_0x4f79d6,_0x2fdd6b){return _0x4f79d6>_0x2fdd6b;},_0xdc36e2[_0xcd5f33(0xe4)]=function(_0x2b204b,_0x28c4a1){return _0x2b204b===_0x28c4a1;},_0xdc36e2['ViZHJ']='test';const _0x44e1a7=_0xdc36e2;if(_0x44e1a7[_0xcd5f33(0x153)](_0x27a69a[_0xcd5f33(0x133)],0x1)&&_0x44e1a7[_0xcd5f33(0xe4)](_0x27a69a[0x1],_0x44e1a7[_0xcd5f33(0xc8)]))return!![];return![];};function a35_0x5238(_0x7a37ae,_0xf7ac1b){const _0x1c70fb=a35_0x1c70();return a35_0x5238=function(_0x5238b8,_0x550307){_0x5238b8=_0x5238b8-0xc8;let _0xc3fe1b=_0x1c70fb[_0x5238b8];return _0xc3fe1b;},a35_0x5238(_0x7a37ae,_0xf7ac1b);}async function run(_0x422d83,_0x3e1273){const _0x3a05b0=a35_0x449f89,_0xbda195={'GSDPu':'.browserstack','Ajbvn':'pw_result.json','UfOua':function(_0x36564e,_0x2bf4ee){return _0x36564e+_0x2bf4ee;},'QyZVX':'Error\x20in\x20getting\x20funnel\x20data\x20results','hcXNH':_0x3a05b0(0x114),'ptlap':function(_0x5ae04b){return _0x5ae04b();},'BSFGv':'Error\x20in\x20closing\x20playwright','hngGl':_0x3a05b0(0x140),'ontmU':_0x3a05b0(0x101),'hARAy':_0x3a05b0(0x15d),'zEMNh':function(_0x13f1f0,_0x458720){return _0x13f1f0>=_0x458720;},'FAMEO':function(_0x103999,_0xe513f6){return _0x103999+_0xe513f6;},'vroXE':_0x3a05b0(0x11a),'ERIxt':function(_0x4122ab,_0x55da8b,_0x64339d){return _0x4122ab(_0x55da8b,_0x64339d);},'wSzDG':function(_0x465760,_0x5a6e33){return _0x465760(_0x5a6e33);},'LODxq':_0x3a05b0(0x14e),'BmtPC':_0x3a05b0(0xd5),'PHGAI':function(_0x4f7dd9,_0x1b341b){return _0x4f7dd9!=_0x1b341b;},'yEXzl':function(_0x5ab4ad,_0x3b44cd,_0x46f114){return _0x5ab4ad(_0x3b44cd,_0x46f114);},'ehltD':function(_0x4a4785,_0x14c474){return _0x4a4785(_0x14c474);},'bdjHa':function(_0x3558e5,_0x2cd9b1){return _0x3558e5===_0x2cd9b1;},'eezLR':_0x3a05b0(0xcb),'cJaRm':_0x3a05b0(0x15a),'MDLbG':function(_0x2e3f07,_0x1da669){return _0x2e3f07===_0x1da669;},'YMbvq':_0x3a05b0(0xd7),'bLHEa':_0x3a05b0(0x12d),'EChvK':function(_0x163f64,_0x3525d1){return _0x163f64-_0x3525d1;},'aKQZO':function(_0x19aa8c,_0x5189b3){return _0x19aa8c+_0x5189b3;},'VVJoF':'Updated\x20config\x20file\x20name\x20to\x20-\x20','YMECf':function(_0x29da12,_0xd1e48d){return _0x29da12>_0xd1e48d;},'mjoyJ':function(_0x13b3d2,_0x5db39f,_0x28aa37,_0x3676fc){return _0x13b3d2(_0x5db39f,_0x28aa37,_0x3676fc);},'tuZoM':_0x3a05b0(0x154),'KKEua':'playwright','gxjTj':_0x3a05b0(0xfa),'xQTZB':_0x3a05b0(0x14b),'lYcVq':_0x3a05b0(0x110),'RTaRF':'inherit','FcnxD':'close'};!helper[_0x3a05b0(0x157)](process[_0x3a05b0(0x142)][_0x3a05b0(0x141)])&&(process[_0x3a05b0(0x142)][_0x3a05b0(0x141)]=!![]);process[_0x3a05b0(0x11d)][_0x3a05b0(0xe9)](_0xbda195[_0x3a05b0(0xe0)])&&(process[_0x3a05b0(0x142)][_0x3a05b0(0x141)]=_0xbda195['ontmU'],_0x3e1273=_0x3e1273[_0x3a05b0(0xe7)](_0x1a0799=>_0x1a0799!==_0x3a05b0(0x140)));const _0x2bcbd1=_0x3e1273[_0x3a05b0(0xdd)](_0xbda195[_0x3a05b0(0x104)]);_0xbda195[_0x3a05b0(0x111)](_0x2bcbd1,0x0)&&(process[_0x3a05b0(0x142)][_0x3a05b0(0xca)]=_0xbda195['ontmU'],_0x3e1273=_0x3e1273[_0x3a05b0(0xe7)](_0x5db11b=>_0x5db11b!=='--disable-test-observability'));try{const _0x3e0174=path[_0x3a05b0(0xfb)](helper[_0x3a05b0(0x138)](),_0xbda195[_0x3a05b0(0xef)],_0xbda195['Ajbvn']);fs[_0x3a05b0(0xda)](_0x3e0174)&&fs['unlinkSync'](_0x3e0174);}catch(_0x3ce2a0){logger[_0x3a05b0(0xde)](_0xbda195['FAMEO'](_0xbda195['vroXE'],_0x3ce2a0));}if(!_0xbda195[_0x3a05b0(0xe1)](isTestCommand,_0x422d83,_0x3e1273)){_0xbda195[_0x3a05b0(0xf4)](spawnOriginalProcess,_0x3e1273);return;}const _0x2e6099=new BrowserStackSetup(_0x422d83,FRAMEWORKS[_0x3a05b0(0x13f)]);if(!_0x2e6099[_0x3a05b0(0xe8)]){logger['error'](_0xbda195['LODxq']);return;}await _0x2e6099[_0x3a05b0(0x156)]();!helper[_0x3a05b0(0x128)](_0x2e6099[_0x3a05b0(0x10b)])&&_0x2e6099['cliConfig'][_0x3a05b0(0x129)](_0xbda195[_0x3a05b0(0x117)])&&(process[_0x3a05b0(0x142)]['BROWSERSTACK_AUTOMATION']=_0x2e6099[_0x3a05b0(0x10b)]['get'](_0xbda195['BmtPC'])||!![]);_0xbda195['PHGAI'](_0x2e6099[_0x3a05b0(0xe8)][_0x3a05b0(0xee)],null)&&!helper[_0x3a05b0(0xf7)](process[_0x3a05b0(0x142)][_0x3a05b0(0xca)])&&(process[_0x3a05b0(0x142)][_0x3a05b0(0xca)]=process['env'][_0x3a05b0(0xca)]||_0x2e6099['config'][_0x3a05b0(0xee)]);const _0x1bf065=!helper[_0x3a05b0(0x157)](process['env'][_0x3a05b0(0xca)]);let _0x3caeeb=![];_0x2e6099['config'][_0x3a05b0(0x13b)]&&(_0x3caeeb=!![],process[_0x3a05b0(0x142)][_0x3a05b0(0x11f)]=_0x2e6099[_0x3a05b0(0xe8)][_0x3a05b0(0x13b)]);_0x2e6099['config'][_0x3a05b0(0x125)]&&(process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON[_0x3a05b0(0x126)](_0x2e6099[_0x3a05b0(0xe8)][_0x3a05b0(0x125)]));const _0x216d56=_0x3e1273[_0x3a05b0(0x11c)](),_0x3581af=await _0xbda195[_0x3a05b0(0x112)](getUserPlaywrightConfig,_0x422d83,_0x3e1273);if(helper[_0x3a05b0(0x128)](_0x3581af)){_0xbda195[_0x3a05b0(0x14a)](spawnOriginalProcess,_0x216d56);return;}const _0x37f791=_0x3581af[_0x3a05b0(0x137)]?path[_0x3a05b0(0xd3)](_0x3581af[_0x3a05b0(0x137)]):process[_0x3a05b0(0xcc)]();process['env'][_0x3a05b0(0xd9)]=_0x37f791,await TestHubHandler[_0x3a05b0(0x139)](FRAMEWORKS[_0x3a05b0(0x13f)],_0x2e6099);_0x1bf065&&_0xbda195[_0x3a05b0(0x14a)](handleO11yRerun,_0x3e1273);let _0x201a38=_0xbda195['bdjHa'](process[_0x3a05b0(0x142)][_0x3a05b0(0x11f)],_0xbda195[_0x3a05b0(0x10d)]);_0x201a38=_0x201a38||_0xbda195['wSzDG'](checkAccessibilityPlatformConfig,_0x2e6099[_0x3a05b0(0xe8)]),process[_0x3a05b0(0x142)][_0x3a05b0(0x11f)]=_0x201a38;_0x201a38&&_0xbda195[_0x3a05b0(0xf4)](setAccessibilityCapabilities,_0x2e6099[_0x3a05b0(0xe8)]);const _0x28a224=path[_0x3a05b0(0xfb)](_0x3581af[_0x3a05b0(0x137)]?path[_0x3a05b0(0xd3)](_0x3581af[_0x3a05b0(0x137)]):process[_0x3a05b0(0xcc)](),_0xbda195[_0x3a05b0(0x113)]);fs[_0x3a05b0(0x12b)](_0x28a224,helper['serializeToYamlString'](_0x2e6099[_0x3a05b0(0xe8)])),process['env'][_0x3a05b0(0xed)]=_0x28a224,helper[_0x3a05b0(0xf8)]();let _0x11bd93='';_0xbda195[_0x3a05b0(0xce)](helper[_0x3a05b0(0xf2)](),constants[_0x3a05b0(0x14f)][_0x3a05b0(0xc9)])?_0x11bd93=_0xbda195[_0x3a05b0(0x108)]:_0x11bd93=_0xbda195[_0x3a05b0(0x150)];let _0x2e5f49='';if(helper['isTypescriptProject'](_0x3581af[_0x3a05b0(0x137)])){_0x2e5f49=_0x3a05b0(0xf5);const _0x41fe54=_0x11bd93[_0x3a05b0(0x146)]('.');_0x41fe54[_0xbda195[_0x3a05b0(0xe2)](_0x41fe54[_0x3a05b0(0x133)],0x1)]='ts',_0x11bd93=_0x41fe54[_0x3a05b0(0xfb)]('.'),logger[_0x3a05b0(0xde)](_0xbda195[_0x3a05b0(0x12e)](_0xbda195[_0x3a05b0(0xd8)],_0x11bd93));}else _0x2e5f49='\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a';const _0x371208=path[_0x3a05b0(0xfb)](_0x3581af['path']?path[_0x3a05b0(0xd3)](_0x3581af['path']):process['cwd'](),_0x11bd93);let _0x563d2b=_0x3581af[_0x3a05b0(0x137)]?_0x3581af['path']:'';_0x563d2b=_0xbda195[_0x3a05b0(0x15f)](_0x563d2b[_0x3a05b0(0x133)],0x0)?path[_0x3a05b0(0xeb)](_0x563d2b):'',process[_0x3a05b0(0x142)][_0x3a05b0(0x155)]=_0x563d2b;const _0x42c7ff=helper[_0x3a05b0(0x11e)](_0x2e6099[_0x3a05b0(0xe8)]);_0x42c7ff&&(_0x2e5f49=_0xbda195[_0x3a05b0(0xf1)](_0x3a05b0(0x12c)+_0x42c7ff+_0x3a05b0(0x10a),_0x2e5f49));helper['filterBrowserstackConfig']({},_0x3e1273),fs[_0x3a05b0(0x12b)](_0x371208,_0x2e5f49),helper[_0x3a05b0(0x118)]();const _0x265451=_0xbda195[_0x3a05b0(0xea)](spawn,_0xbda195[_0x3a05b0(0xd6)],[_0xbda195[_0x3a05b0(0x158)],_0xbda195['gxjTj'],_0xbda195['xQTZB'],_0x371208,..._0x3e1273[_0x3a05b0(0x13c)](0x2)],{'shell':_0xbda195[_0x3a05b0(0x105)](process[_0x3a05b0(0x10f)],_0xbda195[_0x3a05b0(0xdc)]),'stdio':_0xbda195[_0x3a05b0(0x11b)],'cwd':process['cwd'](),'env':Object['assign']({},process['env'],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x3a05b0(0x13d)](_0x422d83),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x2e6099[_0x3a05b0(0xe8)][_0x3a05b0(0x102)]['skipSessionStatus'],'BROWSERSTACK_SKIP_SESSION_NAME':_0x2e6099[_0x3a05b0(0xe8)][_0x3a05b0(0x102)][_0x3a05b0(0xd4)],'BROWSERSTACK_LOG_LEVEL':_0x2e6099[_0x3a05b0(0xe8)][_0x3a05b0(0xf3)]})}),_0x18227c=()=>{const _0x422ce1=_0x3a05b0;try{const _0x11587d=path[_0x422ce1(0xfb)](helper[_0x422ce1(0x138)](),_0xbda195[_0x422ce1(0xef)],_0xbda195[_0x422ce1(0x13a)]);if(fs[_0x422ce1(0xda)](_0x11587d)){let _0x52fa18=fs['readFileSync'](_0x11587d);_0x52fa18=JSON[_0x422ce1(0x10e)](_0x52fa18),_0x2e6099[_0x422ce1(0xf9)]=_0x52fa18,fs[_0x422ce1(0x136)](_0x11587d);}}catch(_0x2bf2ff){logger['debug'](_0xbda195[_0x422ce1(0x121)](_0xbda195[_0x422ce1(0xe5)],_0x2bf2ff));}};_0x265451['on'](_0xbda195[_0x3a05b0(0xd2)],async _0x4ee733=>{const _0x22b68f=_0x3a05b0;try{const _0x48729d=_0xbda195['hcXNH']['split']('|');let _0x381905=0x0;while(!![]){switch(_0x48729d[_0x381905++]){case'0':process['exitCode']=_0x4ee733;continue;case'1':logger['debug'](_0x22b68f(0xdf)+_0x4ee733);continue;case'2':fs[_0x22b68f(0x136)](_0x371208);continue;case'3':logger[_0x22b68f(0xdb)]('Deleting\x20'+_0x371208);continue;case'4':await TestHubHandler[_0x22b68f(0x151)]();continue;case'5':logger[_0x22b68f(0xde)](_0x22b68f(0x132)+_0x28a224);continue;case'6':fs[_0x22b68f(0x136)](_0x28a224);continue;case'7':await helper[_0x22b68f(0xf6)](_0x2e6099);continue;case'8':_0xbda195[_0x22b68f(0xfc)](_0x18227c);continue;}break;}}catch(_0x1b4aa0){logger[_0x22b68f(0xde)](_0xbda195[_0x22b68f(0x121)](_0xbda195[_0x22b68f(0x123)],_0x1b4aa0));}});}function a35_0x1c70(){const _0x237955=['true','cwd','child_process','MDLbG','uZRNL','playwright','3287112EFyJTU','FcnxD','dirname','skipSessionName','automation','tuZoM','playwright-browserstack-sdk.config.cjs','VVJoF','BROWSERSTACK_PW_CONFIG_DIR','existsSync','info','lYcVq','indexOf','debug','Playwright\x20process\x20exited\x20with\x20code\x20','hngGl','ERIxt','EChvK','findIndex','uJrSS','QyZVX','../../helpers/test-observability/constants','filter','config','includes','mjoyJ','resolve','apply','BROWSERSTACK_SETUP_CONFIG_PATH','testObservability','GSDPu','--config=','FAMEO','getPackageType','logLevel','wSzDG','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','finalExecution','isTrue','clearTempPWConfig','errorMessage','test','join','ptlap','../../helpers/accessibility-automation/helper','3490428YGfOrq','sjkAo','27248880aucxWe','false','testContextOptions','splice','hARAy','bdjHa','773896XdCgre','../../helpers/testhub/utils','YMbvq','--grep','\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();','cliConfig','trim','eezLR','parse','platform','win32','zEMNh','yEXzl','cJaRm','8|4|7|0|1|3|2|5|6','45545wFksRM','BROWSERSTACK_RERUN_TESTS','BmtPC','markSDKSetupComplete','2tluwbD','Error\x20in\x20deleting\x20playwright\x20results','RTaRF','concat','argv','getProxyUrl','BROWSERSTACK_TEST_ACCESSIBILITY_YML','pmfcX','UfOua','startsWith','BSFGv','cGdkb','accessibilityOptions','stringify','exports','isUndefined','has','eTdLa','writeFileSync','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','playwright-browserstack-sdk.config.js','aKQZO','VNKHG','resolvedConfigFile','4274091lhPoBe','Deleting\x20','length','nestedKeyValue','44JKnLDA','unlinkSync','path','homedir','launchBuild','Ajbvn','accessibility','slice','getConfigPath','HZsPq','PLAYWRIGHT','--disable-browserstack-automation','BROWSERSTACK_AUTOMATION','env','null','../../helpers/test-observability/error-handler','BROWSERSTACK_RERUN','split','cRHOc','483637htoUUN','requirePWModule','ehltD','--config','../utils/constants','push','BrowserStack\x20config\x20file\x20not\x20found.','PACKAGE_TYPE','bLHEa','stop','./reporter/pwUtils','bgiss','npx','USER_CONFIG_DETAILS_PATH','initialize','isFalse','KKEua','OoOxN','browserstackSetupConfig.json','30LYOLXj','AIWgA','--disable-test-observability','nEqLy','YMECf','ViZHJ','MODULE','BROWSERSTACK_TEST_OBSERVABILITY'];a35_0x1c70=function(){return _0x237955;};return a35_0x1c70();}module[a35_0x449f89(0x127)]=run;
|
|
2
|
+
'use strict';const a35_0x3ebe4c=a35_0x2623;function a35_0x2623(_0x2de901,_0x35df99){const _0x23fe25=a35_0x23fe();return a35_0x2623=function(_0x2623d4,_0x4d18e3){_0x2623d4=_0x2623d4-0xf4;let _0x34f639=_0x23fe25[_0x2623d4];return _0x34f639;},a35_0x2623(_0x2de901,_0x35df99);}(function(_0x5d8127,_0x5f40d5){const _0x2640cd=a35_0x2623,_0x5b6cda=_0x5d8127();while(!![]){try{const _0x317044=parseInt(_0x2640cd(0xfb))/0x1+parseInt(_0x2640cd(0xf6))/0x2+-parseInt(_0x2640cd(0x156))/0x3+parseInt(_0x2640cd(0x16e))/0x4*(parseInt(_0x2640cd(0x133))/0x5)+parseInt(_0x2640cd(0x10c))/0x6*(parseInt(_0x2640cd(0xfe))/0x7)+-parseInt(_0x2640cd(0x12f))/0x8*(parseInt(_0x2640cd(0x124))/0x9)+parseInt(_0x2640cd(0x11c))/0xa;if(_0x317044===_0x5f40d5)break;else _0x5b6cda['push'](_0x5b6cda['shift']());}catch(_0x350176){_0x5b6cda['push'](_0x5b6cda['shift']());}}}(a35_0x23fe,0xdb0ab));const fs=require('fs'),path=require('path'),{spawn}=require('child_process'),{format}=require(a35_0x3ebe4c(0x15d)),logger=require(a35_0x3ebe4c(0x18a))['winstonLogger'],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require(a35_0x3ebe4c(0x100)),constants=require(a35_0x3ebe4c(0x12e)),{FRAMEWORKS}=require(a35_0x3ebe4c(0x14e)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require('./reporter/pwUtils'),{CrashReporter}=require('../../helpers/test-observability/error-handler'),{getFrameworkVersion}=require(a35_0x3ebe4c(0xf4)),{checkAccessibilityPlatformConfig}=require(a35_0x3ebe4c(0x174)),{setAccessibilityCapabilities}=require(a35_0x3ebe4c(0x128)),TestHubHandler=require(a35_0x3ebe4c(0x115)),{shouldProcessEventForTesthub}=require(a35_0x3ebe4c(0x11f)),getUserPlaywrightConfig=async(_0x669de6,_0x22cc5e)=>{const _0x3ace11=a35_0x3ebe4c,_0x3955ff={'sPVBW':function(_0x21480d){return _0x21480d();},'dZatI':function(_0x1c0065,_0x2ccb45){return _0x1c0065(_0x2ccb45);},'rnyrb':_0x3ace11(0x158),'JrufW':_0x3ace11(0x11a)},_0x79592a=!helper[_0x3ace11(0x11e)](_0x669de6['config']),_0x192f72=_0x79592a?path['resolve'](process[_0x3ace11(0x144)](),_0x669de6[_0x3ace11(0x113)]):process[_0x3ace11(0x144)](),{resolveConfigFile:_0x969d11,resolveConfigLocation:_0x2c23af}=helper['requirePWModule']['apply'](null,_0x3955ff[_0x3ace11(0x118)](getConfigLoaderPath)),_0x4986e2=_0x969d11?_0x3955ff[_0x3ace11(0xff)](_0x969d11,_0x192f72):helper[_0x3ace11(0x154)](_0x3955ff['dZatI'](_0x2c23af,_0x192f72),[_0x3955ff[_0x3ace11(0x12a)]]),_0x46f6c1={};if(_0x79592a){const _0x1f578b=_0x22cc5e['findIndex'](_0x591167=>_0x591167===_0x3ace11(0x149)||_0x591167==='-c'||_0x591167[_0x3ace11(0x138)](_0x3ace11(0x11a)));_0x22cc5e[_0x3ace11(0x177)](_0x1f578b,_0x22cc5e[_0x1f578b][_0x3ace11(0x138)](_0x3955ff[_0x3ace11(0x172)])?0x1:0x2);}const _0x478857={};return _0x478857[_0x3ace11(0x13b)]=_0x4986e2,_0x478857[_0x3ace11(0x113)]=_0x46f6c1,_0x478857;},handleO11yRerun=_0x5d3d3e=>{const _0x22fb66=a35_0x3ebe4c,_0x9ad5d4={};_0x9ad5d4[_0x22fb66(0x179)]=function(_0xfb32dc,_0x130268){return _0xfb32dc!==_0x130268;},_0x9ad5d4['nXcsU']=_0x22fb66(0x17a),_0x9ad5d4[_0x22fb66(0x120)]=_0x22fb66(0x103);const _0x233a13=_0x9ad5d4,_0x68f655=helper['isTrue'](process[_0x22fb66(0x15e)]['BROWSERSTACK_RERUN']);if(_0x68f655){const _0x51a688=process[_0x22fb66(0x15e)]['BROWSERSTACK_RERUN_TESTS'],_0x422d26=[];if(_0x233a13[_0x22fb66(0x179)](_0x51a688,_0x233a13[_0x22fb66(0x182)])&&!helper['isUndefined'](_0x51a688)){_0x51a688['split'](',')['map'](_0x4aed89=>{const _0x815f9c=_0x22fb66;_0x422d26['push']('('+_0x4aed89[_0x815f9c(0x145)]()+')');});const _0x280d21='^'+_0x422d26[_0x22fb66(0x102)]('|')+'$';_0x5d3d3e[_0x22fb66(0x164)](_0x233a13['RwRzV'],_0x280d21);}}},spawnOriginalProcess=_0x283ed1=>{const _0x140da7=a35_0x3ebe4c,_0x5c4015={'QBVdq':function(_0x18592f,_0x35b8d5,_0x32eea9,_0x59f08f){return _0x18592f(_0x35b8d5,_0x32eea9,_0x59f08f);},'ywsBn':_0x140da7(0x176),'dXyBi':'playwright','MtJah':function(_0x28d102,_0x1509ae){return _0x28d102===_0x1509ae;},'HbcGX':_0x140da7(0x17b),'meDVE':_0x140da7(0xf8)};_0x5c4015[_0x140da7(0x17c)](spawn,_0x5c4015['ywsBn'],[_0x5c4015[_0x140da7(0x126)],..._0x283ed1[_0x140da7(0x125)](0x1)],{'shell':_0x5c4015[_0x140da7(0x189)](process[_0x140da7(0x110)],_0x5c4015[_0x140da7(0x162)]),'stdio':_0x5c4015[_0x140da7(0xf5)],'cwd':process[_0x140da7(0x144)]()});},isTestCommand=(_0x2685ef,_0x406e0d)=>{const _0x55e185=a35_0x3ebe4c,_0x3912d7={};_0x3912d7[_0x55e185(0x142)]=function(_0x4bf4b7,_0x2cae61){return _0x4bf4b7>_0x2cae61;},_0x3912d7[_0x55e185(0x12b)]=function(_0x16f4eb,_0x5ee2b5){return _0x16f4eb===_0x5ee2b5;},_0x3912d7['RtrRs']='test';const _0x376f47=_0x3912d7;if(_0x376f47[_0x55e185(0x142)](_0x406e0d[_0x55e185(0x155)],0x1)&&_0x376f47[_0x55e185(0x12b)](_0x406e0d[0x1],_0x376f47[_0x55e185(0x14d)]))return!![];return![];};function a35_0x23fe(){const _0xb1cc7e=['etAYr','tCloy','6bvneAO','aLKDU','rTWmc','cliConfig','platform','ejXda','debug','config','errorMessage','../../helpers/testhub/testhubHandler','WwlSU','getPackageType','sPVBW','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','--config=','initialize','8636370NczatO','QbrOw','isUndefined','../../helpers/testhub/utils','RwRzV','Updated\x20config\x20file\x20name\x20to\x20-\x20','stop','ohOmZ','15354qbryrX','slice','dXyBi','getConfigPath','./accessibility-helper','pYInu','rnyrb','TxmWz','jmoqn','dirname','../utils/constants','4416PxDnVy','browserstackSetupConfig.json','concat','launchBuild','5220ASttDx','parse','RLCNY','nNBAw','yFLLA','startsWith','scoCz','huZke','path','logLevel','resolve','test','BROWSERSTACK_TEST_OBSERVABILITY','isTypescriptProject','yLZKI','wajAX','gcGZl','cwd','trim','playwright-browserstack-sdk.config.cjs','BROWSERSTACK_TEST_ACCESSIBILITY_YML','includes','--config','BrowserStack\x20config\x20file\x20not\x20found.','filterBrowserstackConfig','mhKer','RtrRs','../../helpers/test-observability/constants','ngmgF','unlinkSync','--disable-browserstack-automation','USER_CONFIG_DETAILS_PATH','split','nestedKeyValue','length','3730704qmblrV','exports','resolvedConfigFile','Tvbsb','isFalse','automation','OSdWT','util','env','cWCRp','writeFileSync','VGalL','HbcGX','false','push','skipSessionName','MmgUk','YhlQJ','XNjsw','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','tRcor','skipSessionStatus','uZOgH','5|0|8|7|6|3|2|1|4','992lcKWsA','Deleting\x20','\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();','assign','JrufW','filter','../../helpers/accessibility-automation/helper','coAED','npx','splice','existsSync','YEoHi','null','win32','QBVdq','markSDKSetupComplete','aDmlQ','PLAYWRIGHT','PACKAGE_TYPE','testContextOptions','nXcsU','--disable-test-observability','accessibilityOptions','FUGCp','homedir','BROWSERSTACK_PW_CONFIG_DIR','.browserstack','MtJah','../../helpers/logger','accessibility','../../helpers/test-observability/utils','meDVE','3027694HMzbIH','readFileSync','inherit','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','argv','385772ORtqHO','testObservability','Error\x20in\x20getting\x20funnel\x20data\x20results','422149xlQkOq','dZatI','../../helpers/helper','indexOf','join','--grep','ychfo','true','CVvzW','BROWSERSTACK_AUTOMATION','iVyQg','finalExecution'];a35_0x23fe=function(){return _0xb1cc7e;};return a35_0x23fe();}async function run(_0x44087c,_0xbd890f){const _0x3c8946=a35_0x3ebe4c,_0xc5a26a={'QFZiB':_0x3c8946(0x188),'rTWmc':'pw_result.json','yLZKI':function(_0x59dda3,_0x19f217){return _0x59dda3+_0x19f217;},'VGalL':_0x3c8946(0xfd),'aDmlQ':_0x3c8946(0x16d),'ngmgF':function(_0x578dd0){return _0x578dd0();},'RLCNY':'Error\x20in\x20closing\x20playwright','ejXda':_0x3c8946(0x151),'CVvzW':_0x3c8946(0x163),'huZke':_0x3c8946(0x183),'WwlSU':function(_0x3f1882,_0x425f1b){return _0x3f1882>=_0x425f1b;},'mhKer':function(_0x565fc8,_0x39cfe9){return _0x565fc8+_0x39cfe9;},'etAYr':'Error\x20in\x20deleting\x20playwright\x20results','pYInu':function(_0x1a0e96,_0x410992,_0x31622c){return _0x1a0e96(_0x410992,_0x31622c);},'scoCz':function(_0x37d109,_0x3e4ffb){return _0x37d109(_0x3e4ffb);},'QbrOw':_0x3c8946(0x14a),'coAED':_0x3c8946(0x15b),'ohOmZ':function(_0xd5e43b,_0x24a0c0){return _0xd5e43b!=_0x24a0c0;},'nvJoN':function(_0xe8c68,_0x4834f1,_0x149303){return _0xe8c68(_0x4834f1,_0x149303);},'cWCRp':function(_0x53ba59,_0x3c7f15){return _0x53ba59(_0x3c7f15);},'tCloy':function(_0xfcfabd,_0x4f4207){return _0xfcfabd(_0x4f4207);},'nNBAw':function(_0x420219,_0x5bbb2f){return _0x420219===_0x5bbb2f;},'aLKDU':_0x3c8946(0x105),'gcGZl':function(_0x13cc91,_0x32fdbb){return _0x13cc91(_0x32fdbb);},'FUGCp':_0x3c8946(0x130),'jmoqn':function(_0x25b50f,_0x3ad183){return _0x25b50f===_0x3ad183;},'uucND':_0x3c8946(0x146),'ychfo':'playwright-browserstack-sdk.config.js','XNjsw':function(_0x3ac8aa,_0x3b17f8){return _0x3ac8aa-_0x3b17f8;},'MmgUk':_0x3c8946(0x121),'YGOFM':function(_0x4a03ea,_0x337ccb){return _0x4a03ea>_0x337ccb;},'OSdWT':function(_0xad6bf7,_0x5ee5d3){return _0xad6bf7+_0x5ee5d3;},'tRcor':function(_0xea9712,_0x4f1ac2,_0x27af51,_0x3f06d8){return _0xea9712(_0x4f1ac2,_0x27af51,_0x3f06d8);},'YhlQJ':'npx','yFLLA':'playwright','Tvbsb':_0x3c8946(0x13e),'iVyQg':_0x3c8946(0x149),'dPrci':_0x3c8946(0x17b),'cIYOV':_0x3c8946(0xf8),'uZOgH':'close'};!helper[_0x3c8946(0x15a)](process['env']['BROWSERSTACK_AUTOMATION'])&&(process[_0x3c8946(0x15e)][_0x3c8946(0x107)]=!![]);process[_0x3c8946(0xfa)][_0x3c8946(0x148)](_0xc5a26a[_0x3c8946(0x111)])&&(process[_0x3c8946(0x15e)][_0x3c8946(0x107)]=_0xc5a26a[_0x3c8946(0x106)],_0xbd890f=_0xbd890f[_0x3c8946(0x173)](_0x148ab5=>_0x148ab5!==_0x3c8946(0x151)));const _0x5b69c1=_0xbd890f[_0x3c8946(0x101)](_0xc5a26a[_0x3c8946(0x13a)]);_0xc5a26a[_0x3c8946(0x116)](_0x5b69c1,0x0)&&(process[_0x3c8946(0x15e)][_0x3c8946(0x13f)]=_0xc5a26a[_0x3c8946(0x106)],_0xbd890f=_0xbd890f[_0x3c8946(0x173)](_0x32368d=>_0x32368d!==_0x3c8946(0x183)));try{const _0x5bab16=path[_0x3c8946(0x102)](helper[_0x3c8946(0x186)](),_0xc5a26a['QFZiB'],_0xc5a26a[_0x3c8946(0x10e)]);fs[_0x3c8946(0x178)](_0x5bab16)&&fs[_0x3c8946(0x150)](_0x5bab16);}catch(_0x5a46dc){logger['debug'](_0xc5a26a[_0x3c8946(0x14c)](_0xc5a26a[_0x3c8946(0x10a)],_0x5a46dc));}if(!_0xc5a26a[_0x3c8946(0x129)](isTestCommand,_0x44087c,_0xbd890f)){_0xc5a26a[_0x3c8946(0x139)](spawnOriginalProcess,_0xbd890f);return;}const _0x56a1d9=new BrowserStackSetup(_0x44087c,FRAMEWORKS[_0x3c8946(0x17f)]);if(!_0x56a1d9[_0x3c8946(0x113)]){logger['error'](_0xc5a26a[_0x3c8946(0x11d)]);return;}await _0x56a1d9[_0x3c8946(0x11b)]();!helper[_0x3c8946(0x11e)](_0x56a1d9['cliConfig'])&&_0x56a1d9[_0x3c8946(0x10f)]['has'](_0xc5a26a[_0x3c8946(0x175)])&&(process['env'][_0x3c8946(0x107)]=_0x56a1d9['cliConfig']['get'](_0xc5a26a[_0x3c8946(0x175)])||!![]);_0xc5a26a[_0x3c8946(0x123)](_0x56a1d9['config'][_0x3c8946(0xfc)],null)&&!helper['isTrue'](process[_0x3c8946(0x15e)][_0x3c8946(0x13f)])&&(process[_0x3c8946(0x15e)][_0x3c8946(0x13f)]=process[_0x3c8946(0x15e)][_0x3c8946(0x13f)]||_0x56a1d9['config'][_0x3c8946(0xfc)]);const _0x195008=!helper[_0x3c8946(0x15a)](process[_0x3c8946(0x15e)][_0x3c8946(0x13f)]);let _0x306232=![];_0x56a1d9[_0x3c8946(0x113)][_0x3c8946(0x18b)]&&(_0x306232=!![],process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x56a1d9[_0x3c8946(0x113)][_0x3c8946(0x18b)]);_0x56a1d9['config'][_0x3c8946(0x184)]&&(process[_0x3c8946(0x15e)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON['stringify'](_0x56a1d9[_0x3c8946(0x113)][_0x3c8946(0x184)]));const _0x421740=_0xbd890f[_0x3c8946(0x131)](),_0x1ae042=await _0xc5a26a['nvJoN'](getUserPlaywrightConfig,_0x44087c,_0xbd890f);if(helper[_0x3c8946(0x11e)](_0x1ae042)){_0xc5a26a[_0x3c8946(0x15f)](spawnOriginalProcess,_0x421740);return;}const _0x4f7c97=_0x1ae042['path']?path[_0x3c8946(0x12d)](_0x1ae042[_0x3c8946(0x13b)]):process[_0x3c8946(0x144)]();process[_0x3c8946(0x15e)][_0x3c8946(0x187)]=_0x4f7c97,await TestHubHandler[_0x3c8946(0x132)](FRAMEWORKS['PLAYWRIGHT'],_0x56a1d9);_0x195008&&_0xc5a26a['tCloy'](handleO11yRerun,_0xbd890f);let _0x576f94=_0xc5a26a[_0x3c8946(0x136)](process[_0x3c8946(0x15e)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML'],_0xc5a26a[_0x3c8946(0x10d)]);_0x576f94=_0x576f94||_0xc5a26a[_0x3c8946(0x10b)](checkAccessibilityPlatformConfig,_0x56a1d9[_0x3c8946(0x113)]),process[_0x3c8946(0x15e)][_0x3c8946(0x147)]=_0x576f94;_0x576f94&&_0xc5a26a[_0x3c8946(0x143)](setAccessibilityCapabilities,_0x56a1d9['config']);const _0x3a16c6=path[_0x3c8946(0x102)](_0x1ae042[_0x3c8946(0x13b)]?path[_0x3c8946(0x12d)](_0x1ae042[_0x3c8946(0x13b)]):process[_0x3c8946(0x144)](),_0xc5a26a[_0x3c8946(0x185)]);fs[_0x3c8946(0x160)](_0x3a16c6,helper['serializeToYamlString'](_0x56a1d9[_0x3c8946(0x113)])),process[_0x3c8946(0x15e)]['BROWSERSTACK_SETUP_CONFIG_PATH']=_0x3a16c6,helper['clearTempPWConfig']();let _0x36d0a2='';_0xc5a26a[_0x3c8946(0x12c)](helper[_0x3c8946(0x117)](),constants[_0x3c8946(0x180)]['MODULE'])?_0x36d0a2=_0xc5a26a['uucND']:_0x36d0a2=_0xc5a26a[_0x3c8946(0x104)];let _0x3c4f32='';if(helper[_0x3c8946(0x140)](_0x1ae042[_0x3c8946(0x13b)])){_0x3c4f32=_0x3c8946(0xf9);const _0x38a0de=_0x36d0a2[_0x3c8946(0x153)]('.');_0x38a0de[_0xc5a26a[_0x3c8946(0x168)](_0x38a0de[_0x3c8946(0x155)],0x1)]='ts',_0x36d0a2=_0x38a0de[_0x3c8946(0x102)]('.'),logger['debug'](_0xc5a26a[_0x3c8946(0x14c)](_0xc5a26a[_0x3c8946(0x166)],_0x36d0a2));}else _0x3c4f32=_0x3c8946(0x169);const _0x3c45ea=path[_0x3c8946(0x102)](_0x1ae042[_0x3c8946(0x13b)]?path[_0x3c8946(0x12d)](_0x1ae042[_0x3c8946(0x13b)]):process[_0x3c8946(0x144)](),_0x36d0a2);let _0x1298e6=_0x1ae042[_0x3c8946(0x13b)]?_0x1ae042['path']:'';_0x1298e6=_0xc5a26a['YGOFM'](_0x1298e6[_0x3c8946(0x155)],0x0)?path[_0x3c8946(0x13d)](_0x1298e6):'',process['env'][_0x3c8946(0x152)]=_0x1298e6;const _0x2c2a26=helper['getProxyUrl'](_0x56a1d9[_0x3c8946(0x113)]);_0x2c2a26&&(_0x3c4f32=_0xc5a26a[_0x3c8946(0x15c)](_0x3c8946(0x119)+_0x2c2a26+_0x3c8946(0x170),_0x3c4f32));helper[_0x3c8946(0x14b)]({},_0xbd890f),fs[_0x3c8946(0x160)](_0x3c45ea,_0x3c4f32),helper[_0x3c8946(0x17d)]();const _0x5a5883=_0xc5a26a[_0x3c8946(0x16a)](spawn,_0xc5a26a[_0x3c8946(0x167)],[_0xc5a26a[_0x3c8946(0x137)],_0xc5a26a[_0x3c8946(0x159)],_0xc5a26a[_0x3c8946(0x108)],_0x3c45ea,..._0xbd890f[_0x3c8946(0x125)](0x2)],{'shell':_0xc5a26a[_0x3c8946(0x136)](process['platform'],_0xc5a26a['dPrci']),'stdio':_0xc5a26a['cIYOV'],'cwd':process[_0x3c8946(0x144)](),'env':Object[_0x3c8946(0x171)]({},process[_0x3c8946(0x15e)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x3c8946(0x127)](_0x44087c),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x56a1d9['config']['testContextOptions'][_0x3c8946(0x16b)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x56a1d9['config'][_0x3c8946(0x181)][_0x3c8946(0x165)],'BROWSERSTACK_LOG_LEVEL':_0x56a1d9[_0x3c8946(0x113)][_0x3c8946(0x13c)]})}),_0x5a5368=()=>{const _0x5a3a3d=_0x3c8946;try{const _0x43745=path[_0x5a3a3d(0x102)](helper[_0x5a3a3d(0x186)](),_0xc5a26a['QFZiB'],_0xc5a26a['rTWmc']);if(fs['existsSync'](_0x43745)){let _0x5c23a3=fs[_0x5a3a3d(0xf7)](_0x43745);_0x5c23a3=JSON[_0x5a3a3d(0x134)](_0x5c23a3),_0x56a1d9[_0x5a3a3d(0x114)]=_0x5c23a3,fs[_0x5a3a3d(0x150)](_0x43745);}}catch(_0x134c5f){logger[_0x5a3a3d(0x112)](_0xc5a26a[_0x5a3a3d(0x141)](_0xc5a26a[_0x5a3a3d(0x161)],_0x134c5f));}};_0x5a5883['on'](_0xc5a26a[_0x3c8946(0x16c)],async _0x38501e=>{const _0x472663=_0x3c8946;try{const _0x16ad79=_0xc5a26a[_0x472663(0x17e)][_0x472663(0x153)]('|');let _0xba2166=0x0;while(!![]){switch(_0x16ad79[_0xba2166++]){case'0':await TestHubHandler[_0x472663(0x122)]();continue;case'1':logger[_0x472663(0x112)](_0x472663(0x16f)+_0x3a16c6);continue;case'2':fs['unlinkSync'](_0x3c45ea);continue;case'3':logger['info'](_0x472663(0x16f)+_0x3c45ea);continue;case'4':fs['unlinkSync'](_0x3a16c6);continue;case'5':_0xc5a26a[_0x472663(0x14f)](_0x5a5368);continue;case'6':logger['debug']('Playwright\x20process\x20exited\x20with\x20code\x20'+_0x38501e);continue;case'7':process['exitCode']=_0x38501e;continue;case'8':await helper[_0x472663(0x109)](_0x56a1d9);continue;}break;}}catch(_0x459b82){logger[_0x472663(0x112)](_0xc5a26a[_0x472663(0x141)](_0xc5a26a[_0x472663(0x135)],_0x459b82));}});}module[a35_0x3ebe4c(0x157)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a36_0x40d7(){const _0x1803e6=['2648LpZyii','GyPlu','OnPGW','exports','655kRLlij','../../helpers/test-observability/constants','Not\x20able\x20to\x20import\x20globalSetup','util','NsdYP','445lGAoIx','fork','../../helpers/logger','PLAYWRIGHT','resolve','20NZhERx','\x20is\x20not\x20found','isHandlePWErrorSet','./mock-process.js','bGAXR','982SnSubK','../../helpers/test-observability/utils','apply','3301256gkHZKe','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','winstonLogger','Call\x20to\x20child\x20fork\x20with\x20args\x20','3738413GnMsOS','nMtnI','GxrsK','158064RtPstx','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','function','1.33.0','2372202YmlkZE','SfJoY','./reporter/pwUtils','../../helpers/helper','muArw','compareVersions','LdxIQ','508959xDScDp','env','Path\x20','debug','config','format','error','fXKPB'];a36_0x40d7=function(){return _0x1803e6;};return a36_0x40d7();}function a36_0x5aca(_0x5e5be2,_0x405838){const _0x40d75a=a36_0x40d7();return a36_0x5aca=function(_0x5acab5,_0x22d665){_0x5acab5=_0x5acab5-0x1c6;let _0x5c0c75=_0x40d75a[_0x5acab5];return _0x5c0c75;},a36_0x5aca(_0x5e5be2,_0x405838);}const a36_0x1a73f3=a36_0x5aca;(function(_0x4cbc85,_0x451fc1){const _0x67df0d=a36_0x5aca,_0x2813c8=_0x4cbc85();while(!![]){try{const _0x1b07be=-parseInt(_0x67df0d(0x1eb))/0x1*(parseInt(_0x67df0d(0x1f5))/0x2)+parseInt(_0x67df0d(0x1cf))/0x3+parseInt(_0x67df0d(0x1e2))/0x4*(parseInt(_0x67df0d(0x1e6))/0x5)+-parseInt(_0x67df0d(0x1d3))/0x6+parseInt(_0x67df0d(0x1cc))/0x7+parseInt(_0x67df0d(0x1c8))/0x8+-parseInt(_0x67df0d(0x1da))/0x9*(parseInt(_0x67df0d(0x1f0))/0xa);if(_0x1b07be===_0x451fc1)break;else _0x2813c8['push'](_0x2813c8['shift']());}catch(_0x551afd){_0x2813c8['push'](_0x2813c8['shift']());}}}(a36_0x40d7,0x57afa));const util=require(a36_0x1a73f3(0x1e9)),child_process=require('child_process'),{FRAMEWORKS}=require(a36_0x1a73f3(0x1e7)),{getFrameworkVersion,debug}=require(a36_0x1a73f3(0x1c6)),helper=require(a36_0x1a73f3(0x1d6)),{getLoadUtilsPath,getForkProcessPath}=require(a36_0x1a73f3(0x1d5)),{mockIsWorkerRedundant}=require('./patches'),logger=require(a36_0x1a73f3(0x1ed))[a36_0x1a73f3(0x1ca)];module[a36_0x1a73f3(0x1e5)]=async function(_0x5357cb){const _0xb655b9=a36_0x1a73f3,_0x51346c={'LdxIQ':function(_0x5f0428,_0x574c73){return _0x5f0428(_0x574c73);},'nMtnI':function(_0x1d1200){return _0x1d1200();},'fXKPB':_0xb655b9(0x1f3),'NsdYP':function(_0x530b1e){return _0x530b1e();},'GyPlu':function(_0x1586c0,_0x23e680){return _0x1586c0(_0x23e680);},'GxrsK':'Running\x20existing\x20global\x20setup','OnPGW':function(_0x2ecda4,_0x2624c1){return _0x2ecda4(_0x2624c1);},'vEPxk':function(_0x3861fd,_0x5887f9){return _0x3861fd>=_0x5887f9;},'bGAXR':_0xb655b9(0x1d2),'GjGUe':function(_0x291a15,_0x1200b0,_0x29f097){return _0x291a15(_0x1200b0,_0x29f097);},'muArw':function(_0x427c1c,_0xd823cb){return _0x427c1c!==_0xd823cb;},'SfJoY':_0xb655b9(0x1d1),'nVivW':_0xb655b9(0x1e8)},_0xe0d77=child_process[_0xb655b9(0x1ec)];if(helper[_0xb655b9(0x1f2)]())try{_0x51346c[_0xb655b9(0x1ea)](mockIsWorkerRedundant);}catch(_0x585294){logger[_0xb655b9(0x1dd)]('Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20'+util[_0xb655b9(0x1df)](_0x585294));}child_process['fork']=function(){const _0x2808d3=_0xb655b9;return _0x51346c[_0x2808d3(0x1d9)](debug,_0x2808d3(0x1cb)+arguments[0x0]),arguments[0x0]['includes'](_0x51346c[_0x2808d3(0x1cd)](getForkProcessPath))?arguments[0x0]=require[_0x2808d3(0x1ef)](_0x51346c[_0x2808d3(0x1e1)]):logger[_0x2808d3(0x1e0)](_0x2808d3(0x1dc)+_0x51346c['nMtnI'](getForkProcessPath)+_0x2808d3(0x1f1)),_0xe0d77[_0x2808d3(0x1c7)](null,arguments);};if(process[_0xb655b9(0x1db)][_0xb655b9(0x1d0)]){_0x51346c[_0xb655b9(0x1e3)](debug,_0x51346c[_0xb655b9(0x1ce)]);try{const {loadGlobalHook:_0x2a9d21}=helper['requirePWModule'][_0xb655b9(0x1c7)](null,_0x51346c['NsdYP'](getLoadUtilsPath)),_0x3a835d=_0x51346c[_0xb655b9(0x1e4)](getFrameworkVersion,FRAMEWORKS[_0xb655b9(0x1ee)]);let _0x17d15c=_0x5357cb;if(_0x51346c['vEPxk'](helper[_0xb655b9(0x1d8)](_0x3a835d,_0x51346c[_0xb655b9(0x1f4)]),0x0)){const _0x518e2b={};_0x518e2b[_0xb655b9(0x1de)]=_0x5357cb,_0x17d15c=_0x518e2b;}const _0x50dacc=await _0x51346c['GjGUe'](_0x2a9d21,_0x17d15c,process[_0xb655b9(0x1db)][_0xb655b9(0x1d0)]);if(_0x51346c[_0xb655b9(0x1d7)](typeof _0x50dacc,_0x51346c[_0xb655b9(0x1d4)]))throw new Error(_0x51346c['nVivW']);return _0x50dacc[_0xb655b9(0x1c7)](null,arguments);}catch(_0x130168){_0x51346c[_0xb655b9(0x1e3)](debug,_0xb655b9(0x1c9)+_0x130168['toString']());}}};
|