browserstack-node-sdk 1.34.8 → 1.34.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance-tester.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function a29_0x584f(){const _0x5e4d91=['XSrCk','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','Modifying\x20webdriver\x20builder','SHDLh','../../../helpers/accessibility-automation/helper','edgeOptions_','XjScm','path','__setBrowserOptions','Proxy\x20set\x20to\x20','Builder','exports','84IbohfB','options_','__driver','WjZrj','debug','set','getAccessibilityResults','getRequestOptions','edgeOptions','overrideGet','../../../bin/utils/constants','isBrowserstackInfra','proxySettings','newHubUrl','594867aOUMUG','setServer','lMAOv','keys','15sveINO','1701414wLKPJf','EjTiQ','push','fTSAb','1856koFSVU','se:ieOptions','isAccessibilityPlatform','getHubUrl','forEach','utzQq','New\x20hub\x20url\x20set\x20to\x20','FWAWi','545808uFhHCN','getAccessibilityResultsSummary','requireSeleniumWebdriver','isPacProxy','../../../helpers/globals','__drivers','3990656SWzDIU','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','dSWZD','firefoxOptions_','browserstackAgentObservability','isUndefined','safariOptions_','getHttpAgent','3128480JgJSjy','QSVSD','browserStackLogLevel','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','jTZpU','30eoXSdA','shRqR','build','originalBuilder','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','then','../../../helpers/helper','proxy_','nIvEP','storeOptimalHubUrl','ieOptions_','../../../helpers/patchHelpers','url_','3271968gIgRaW','chromeOptions_','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','caps_','capability','wmDFx','object','capabilities_','AcDWi','/session','proxyUrl','mergeDeep','error','../../../hubAllocationMethods','xgvxM','send','firefoxOptions','../accessibility-automation/helper','updateHubUrl','goog:chromeOptions','moz:firefoxOptions','logLevel','MLVyN','fcjAX','ieOptions','__driversArray','get','RXFQD','CAPABILITY_KEY','PXyaD','irTfl','HttpClient','JmvLp','setCapabilities','Hub\x20url\x20set\x20to\x20','ms:edgeOptions','global','getGlobal','agent_','winstonLogger','gUkNY'];a29_0x584f=function(){return _0x5e4d91;};return a29_0x584f();}const a29_0xd47b0e=a29_0x369b;(function(_0x21b9b3,_0x98c079){const _0x2afdce=a29_0x369b,_0x599c32=_0x21b9b3();while(!![]){try{const _0x3af8cb=-parseInt(_0x2afdce(0x201))/0x1*(-parseInt(_0x2afdce(0x1ea))/0x2)+parseInt(_0x2afdce(0x1fd))/0x3+parseInt(_0x2afdce(0x209))/0x4*(parseInt(_0x2afdce(0x1fc))/0x5)+parseInt(_0x2afdce(0x21c))/0x6*(-parseInt(_0x2afdce(0x1f8))/0x7)+parseInt(_0x2afdce(0x20f))/0x8+-parseInt(_0x2afdce(0x229))/0x9+-parseInt(_0x2afdce(0x217))/0xa;if(_0x3af8cb===_0x98c079)break;else _0x599c32['push'](_0x599c32['shift']());}catch(_0x470c79){_0x599c32['push'](_0x599c32['shift']());}}}(a29_0x584f,0x6e585));const logger=require('../../../helpers/logger')[a29_0xd47b0e(0x1dc)],helper=require(a29_0xd47b0e(0x222)),constants=require(a29_0xd47b0e(0x1f4)),hubAllocator=require(a29_0xd47b0e(0x1c2)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a29_0xd47b0e(0x227)),{setAccessibilityCapabilities,setExtension}=require(a29_0xd47b0e(0x1c6)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0xd47b0e(0x1e2)),globals=require(a29_0xd47b0e(0x20d)),modify=(_0x1d5d22,_0x3faef7=null,_0x463f7e=![])=>{const _0x16d3bc=a29_0xd47b0e,_0x3ef2d2={'fcjAX':function(_0x470009,_0x3e0288){return _0x470009!==_0x3e0288;},'shRqR':_0x16d3bc(0x1be),'gUkNY':function(_0x40abbb,_0x53cd19){return _0x40abbb!==_0x53cd19;},'fTSAb':function(_0x35eb03,_0x535ca1){return _0x35eb03+_0x535ca1;},'JExEF':function(_0x5929f3,_0x5d198c){return _0x5929f3+_0x5d198c;},'PXyaD':'https://','MhMLm':'/wd/hub','jTZpU':_0x16d3bc(0x1c8),'HdrCv':'chromeOptions','QSVSD':_0x16d3bc(0x1d8),'lMAOv':_0x16d3bc(0x1f2),'utzQq':_0x16d3bc(0x1c9),'NTfti':_0x16d3bc(0x1c5),'yWuQK':'safari.options','fVkDi':_0x16d3bc(0x202),'eejQm':_0x16d3bc(0x1cd),'inWEA':function(_0x48cb6a,_0x545413){return _0x48cb6a===_0x545413;},'fkLbt':_0x16d3bc(0x22f),'DyOFh':'Setting\x20Browserstack\x20capabilities','nIvEP':'optimalHubUrl','EjTiQ':_0x16d3bc(0x1df),'SHDLh':function(_0x5af8c1,_0x1f2f52,_0xa1d3f9){return _0x5af8c1(_0x1f2f52,_0xa1d3f9);},'FWAWi':function(_0x1e9402,_0x35f2ab){return _0x1e9402(_0x35f2ab);},'MLVyN':'1|3|0|5|4|2','dSWZD':function(_0x3d1d73){return _0x3d1d73();},'WjZrj':_0x16d3bc(0x21a),'RXFQD':_0x16d3bc(0x203),'JmvLp':function(_0x26fbef,_0x5ac13d){return _0x26fbef(_0x5ac13d);},'XjScm':function(_0x203054,_0x132897){return _0x203054(_0x132897);},'xgvxM':_0x16d3bc(0x220),'XSrCk':_0x16d3bc(0x1e0)},_0x503ad3=helper['requireHttpClient']();let _0x428e20;try{_0x428e20=helper[_0x16d3bc(0x20b)](),_0x428e20[_0x16d3bc(0x21f)]&&(_0x428e20[_0x16d3bc(0x1e8)]=_0x428e20['originalBuilder']);}catch(_0x6a36d0){return;}if(helper[_0x16d3bc(0x1f5)]()){const _0x32778a={};_0x32778a[_0x16d3bc(0x1ca)]=_0x1d5d22[_0x16d3bc(0x219)],helper['setLogLevel'](_0x32778a,new Map(),new Map()),logger['info'](_0x3ef2d2[_0x16d3bc(0x1c3)]),logger[_0x16d3bc(0x1ee)](_0x3ef2d2[_0x16d3bc(0x1de)]);}class _0x2d7737 extends _0x503ad3[_0x16d3bc(0x1d4)]{[_0x16d3bc(0x1c4)](_0x266182){const _0x4cac39=_0x16d3bc;if(_0x3ef2d2[_0x4cac39(0x1cc)](_0x266182[_0x4cac39(0x1e5)],_0x3ef2d2[_0x4cac39(0x21d)])&&_0x3ef2d2[_0x4cac39(0x1dd)](global[_0x4cac39(0x1f7)],''))try{global[_0x4cac39(0x1f7)]=_0x3ef2d2[_0x4cac39(0x200)](_0x3ef2d2['JExEF'](_0x3ef2d2[_0x4cac39(0x1d2)],global['newHubUrl']),_0x3ef2d2['MhMLm']),this[_0x4cac39(0x1eb)]=hubAllocator[_0x4cac39(0x1f1)](global[_0x4cac39(0x1f7)]),logger[_0x4cac39(0x1ee)](_0x4cac39(0x207)+global[_0x4cac39(0x1f7)]),global['newHubUrl']='';}catch(_0x5e04d0){logger[_0x4cac39(0x1c1)](_0x5e04d0);}return super[_0x4cac39(0x1c4)](_0x266182);}}class _0x5265bc extends _0x428e20[_0x16d3bc(0x1e8)]{[_0x16d3bc(0x1f9)](){const _0xe42a7d=_0x16d3bc;return this[_0xe42a7d(0x228)]=helper[_0xe42a7d(0x204)](_0x1d5d22),logger[_0xe42a7d(0x1ee)](_0xe42a7d(0x1d7)+this[_0xe42a7d(0x228)]),this;}[_0x16d3bc(0x1e6)](_0xc75a22){const _0x1e0fb1=_0x16d3bc;let _0x865dda={};for(const _0x53be29 in _0xc75a22){switch(_0x53be29){case _0x3ef2d2[_0x1e0fb1(0x21b)]:case _0x3ef2d2['HdrCv']:this['chromeOptions_']&&(_0x865dda=this['chromeOptions_']['get'](this[_0x1e0fb1(0x22a)][_0x1e0fb1(0x1d1)])||{},this[_0x1e0fb1(0x22a)][_0x1e0fb1(0x1ef)](this['chromeOptions_'][_0x1e0fb1(0x1d1)],helper[_0x1e0fb1(0x1c0)](_0x865dda,_0xc75a22[_0x53be29])));break;case _0x3ef2d2[_0x1e0fb1(0x218)]:case _0x3ef2d2[_0x1e0fb1(0x1fa)]:this[_0x1e0fb1(0x1e3)]&&(_0x865dda=this[_0x1e0fb1(0x1e3)][_0x1e0fb1(0x1cf)](this[_0x1e0fb1(0x1e3)][_0x1e0fb1(0x1d1)])||{},this[_0x1e0fb1(0x1e3)][_0x1e0fb1(0x1ef)](this['edgeOptions_'][_0x1e0fb1(0x1d1)],helper[_0x1e0fb1(0x1c0)](_0x865dda,_0xc75a22[_0x53be29])));break;case _0x3ef2d2[_0x1e0fb1(0x206)]:case _0x3ef2d2['NTfti']:this[_0x1e0fb1(0x212)]&&(_0x865dda=this[_0x1e0fb1(0x212)][_0x1e0fb1(0x1cf)](this[_0x1e0fb1(0x212)][_0x1e0fb1(0x1d1)])||{},this[_0x1e0fb1(0x212)][_0x1e0fb1(0x1ef)](this[_0x1e0fb1(0x212)]['CAPABILITY_KEY'],helper[_0x1e0fb1(0x1c0)](_0x865dda,_0xc75a22[_0x53be29])));break;case _0x3ef2d2['yWuQK']:this[_0x1e0fb1(0x215)]&&(_0x865dda=this['safariOptions_'][_0x1e0fb1(0x1cf)](this['safariOptions_'][_0x1e0fb1(0x1d1)])||{},this['safariOptions_'][_0x1e0fb1(0x1ef)](this[_0x1e0fb1(0x215)]['CAPABILITY_KEY'],helper['mergeDeep'](_0x865dda,_0xc75a22[_0x53be29])));break;case _0x3ef2d2['fVkDi']:case _0x3ef2d2['eejQm']:this[_0x1e0fb1(0x226)]&&(_0x865dda=this[_0x1e0fb1(0x226)][_0x1e0fb1(0x1cf)](this[_0x1e0fb1(0x226)][_0x1e0fb1(0x1d1)])||{},this[_0x1e0fb1(0x226)]['set'](this[_0x1e0fb1(0x226)][_0x1e0fb1(0x1d1)],helper['mergeDeep'](_0x865dda,_0xc75a22[_0x53be29])));break;}}}[_0x16d3bc(0x1d6)](){const _0x591eaa=_0x16d3bc,_0xb1cb3d={'irTfl':function(_0x2af588,_0x11775b){return _0x3ef2d2['inWEA'](_0x2af588,_0x11775b);},'lTouf':_0x3ef2d2['fkLbt']};return logger[_0x591eaa(0x1ee)](_0x3ef2d2['DyOFh']),this[_0x591eaa(0x1e6)](_0x1d5d22[_0x591eaa(0x22d)]),Object[_0x591eaa(0x1fb)](_0x1d5d22[_0x591eaa(0x22d)])[_0x591eaa(0x205)](_0x342260=>{const _0x213184=_0x591eaa,_0x284749=this['capabilities_']['get'](_0x342260);_0xb1cb3d[_0x213184(0x1d3)](typeof _0x284749,_0xb1cb3d['lTouf'])?this['capabilities_'][_0x213184(0x1ef)](_0x342260,helper[_0x213184(0x1c0)](_0x284749,_0x1d5d22[_0x213184(0x22d)][_0x342260])):this[_0x213184(0x230)][_0x213184(0x1ef)](_0x342260,_0x1d5d22[_0x213184(0x22d)][_0x342260]);}),this;}[_0x16d3bc(0x21e)](){const _0x4a829e=_0x16d3bc,_0x224ec6={'wmDFx':function(_0x6f8f4f,_0x1eee99,_0x246574){return _0x3ef2d2['SHDLh'](_0x6f8f4f,_0x1eee99,_0x246574);}};if(helper[_0x4a829e(0x1f5)]()){const _0x25dd18=_0x3ef2d2[_0x4a829e(0x1cb)]['split']('|');let _0x15607d=0x0;while(!![]){switch(_0x25dd18[_0x15607d++]){case'0':this[_0x4a829e(0x1d6)]();continue;case'1':_0x3ef2d2[_0x4a829e(0x211)](isAccessibilityAutomationSession)&&_0x3ef2d2[_0x4a829e(0x208)](setAccessibilityCapabilities,_0x1d5d22);continue;case'2':logger[_0x4a829e(0x1ee)](_0x3ef2d2[_0x4a829e(0x1ed)]);continue;case'3':this[_0x4a829e(0x1f9)]();continue;case'4':globals[_0x4a829e(0x1da)](_0x3ef2d2[_0x4a829e(0x1d0)])&&(!_0x3ef2d2[_0x4a829e(0x1e1)](setExtension,this,_0x1d5d22)&&globals['setGlobal'](_0x3ef2d2[_0x4a829e(0x1d0)],![]));continue;case'5':if(helper[_0x4a829e(0x20c)](_0x1d5d22[_0x4a829e(0x1f6)]['proxyUrl']))this[_0x4a829e(0x1db)]=helper[_0x4a829e(0x216)](_0x1d5d22[_0x4a829e(0x1f6)][_0x4a829e(0x1bf)]);else _0x1d5d22[_0x4a829e(0x1f6)]['proxyUrl']&&(this[_0x4a829e(0x223)]=_0x1d5d22['proxySettings'][_0x4a829e(0x1bf)],logger['debug'](_0x4a829e(0x1e7)+this['proxy_']));continue;}break;}}const _0x2d7af5=super['build']();return _0x2d7af5['session_'][_0x4a829e(0x221)](_0x459ef8=>{const _0x5de270=_0x4a829e;try{const _0x1f0c72=_0x459ef8[_0x5de270(0x22c)][_0x5de270(0x1cf)](_0x3ef2d2[_0x5de270(0x224)]);_0x1f0c72?(logger[_0x5de270(0x1ee)](_0x5de270(0x22b)+_0x1f0c72),hubAllocator[_0x5de270(0x1c7)](_0x1f0c72),helper[_0x5de270(0x225)](_0x1f0c72)):logger[_0x5de270(0x1ee)](_0x3ef2d2[_0x5de270(0x1fe)]);}catch(_0x4ea731){logger[_0x5de270(0x1ee)](_0x5de270(0x210)+_0x4ea731);}}),_0x2d7af5['quitCount_']=0x0,_0x2d7af5[_0x4a829e(0x221)]&&_0x2d7af5['then'](_0x2fdcfe=>{const _0x44a244=_0x4a829e,_0x20fa41={'AcDWi':function(_0x2d7a4a,_0x1ea609,_0xb3f0a1){const _0x130bbb=a29_0x369b;return _0x3ef2d2[_0x130bbb(0x1e1)](_0x2d7a4a,_0x1ea609,_0xb3f0a1);}};_0x3ef2d2[_0x44a244(0x1e1)](overrideQuit,_0x2fdcfe,_0x2d7af5),_0x3ef2d2[_0x44a244(0x208)](overrideTakeScreenshot,_0x2fdcfe),helper[_0x44a244(0x1f3)](_0x2fdcfe,_0x1d5d22),helper['overrideExecute'](_0x2fdcfe,_0x1d5d22),_0x2fdcfe[_0x44a244(0x20a)]=async()=>{const _0x3abfe9=_0x44a244;return await _0x20fa41[_0x3abfe9(0x231)](getAccessibilityResultsSummary,_0x2fdcfe,global);},_0x2fdcfe[_0x44a244(0x1f0)]=async()=>{return await _0x224ec6['wmDFx'](getAccessibilityResults,_0x2fdcfe,global);};}),_0x2d7af5[_0x4a829e(0x20a)]=async()=>{const _0x1959d6=_0x4a829e;return await _0x224ec6[_0x1959d6(0x22e)](getAccessibilityResultsSummary,_0x2d7af5,global);},_0x2d7af5['getAccessibilityResults']=async()=>{return await _0x224ec6['wmDFx'](getAccessibilityResults,_0x2d7af5,global);},_0x3ef2d2[_0x4a829e(0x1d5)](overrideTakeScreenshot,_0x2d7af5),_0x3ef2d2[_0x4a829e(0x1e4)](overrideQuit,_0x2d7af5),helper[_0x4a829e(0x1f3)](_0x2d7af5,_0x1d5d22),helper['overrideExecute'](_0x2d7af5,_0x1d5d22),helper[_0x4a829e(0x214)](global[_0x4a829e(0x1ce)])&&(global[_0x4a829e(0x1ce)]=[]),helper['isUndefined'](global[_0x4a829e(0x20e)])&&(global[_0x4a829e(0x20e)]=[]),global['__driversArray']['push'](_0x2d7af5),global[_0x4a829e(0x1ec)]=_0x2d7af5,_0x3ef2d2['gUkNY'](global[_0x4a829e(0x20e)],undefined)&&global['__drivers'][_0x4a829e(0x1ff)](_0x2d7af5),_0x3faef7&&helper[_0x4a829e(0x214)](_0x3faef7[_0x4a829e(0x1d9)][_0x4a829e(0x1ce)])&&(_0x3faef7[_0x4a829e(0x1d9)]['__driversArray']=[]),_0x3faef7&&_0x3ef2d2[_0x4a829e(0x1cc)](_0x3faef7[_0x4a829e(0x1d9)][_0x4a829e(0x20e)],undefined)&&(_0x3faef7[_0x4a829e(0x1d9)][_0x4a829e(0x20e)][_0x4a829e(0x1ff)](_0x2d7af5),_0x3faef7[_0x4a829e(0x1d9)]['__driversArray'][_0x4a829e(0x1ff)](_0x2d7af5)),_0x2d7af5;}}return _0x428e20['originalBuilder']=_0x428e20[_0x16d3bc(0x1e8)],_0x428e20[_0x16d3bc(0x1e8)]=_0x5265bc,_0x503ad3[_0x16d3bc(0x1d4)]=_0x2d7737,_0x428e20;};function a29_0x369b(_0x506f26,_0x2c3db4){const _0x584f5f=a29_0x584f();return a29_0x369b=function(_0x369b84,_0x56a92e){_0x369b84=_0x369b84-0x1be;let _0x2d9aad=_0x584f5f[_0x369b84];return _0x2d9aad;},a29_0x369b(_0x506f26,_0x2c3db4);}module[a29_0xd47b0e(0x1e9)][a29_0xd47b0e(0x213)]=modify;
|
|
1
|
+
function a29_0x2533(_0x2ecee3,_0x3774d8){const _0x1b6dfb=a29_0x1b6d();return a29_0x2533=function(_0x2533a7,_0x1c98b4){_0x2533a7=_0x2533a7-0x18f;let _0x3fd7e5=_0x1b6dfb[_0x2533a7];return _0x3fd7e5;},a29_0x2533(_0x2ecee3,_0x3774d8);}function a29_0x1b6d(){const _0x2b7832=['isPacProxy','eBxmX','exports','__setBrowserOptions','hPoGJ','quitCount_','agent_','mergeDeep','edgeOptions_','se:ieOptions','YTZvI','lJTFF','getHttpAgent','0|2|4|1|3|5','get','Proxy\x20set\x20to\x20','browserstackAgentObservability','XUlvV','https://','../../../hubAllocationMethods','zLqcl','IrRLU','8bLPvac','DgAhK','eapMB','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','originalBuilder','HttpClient','iZfIf','590887XOhCVu','requireHttpClient','global','208696suffou','getAccessibilityResults','246ZrRBDh','../../../helpers/logger','updateHubUrl','vzpRD','chromeOptions','12ciGhJz','setGlobal','__driversArray','goog:chromeOptions','caps_','build','AlnhP','overrideGet','url_','/wd/hub','getHubUrl','__drivers','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','path','getGlobal','Gixbs','cbBht','set','28fVTfQt','KNoxH','CAPABILITY_KEY','safari.options','../../../helpers/globals','proxy_','twVdX','Builder','then','ms:edgeOptions','nEZVe','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','storeOptimalHubUrl','capability','error','requireSeleniumWebdriver','../../../helpers/helper','newHubUrl','isBrowserstackInfra','CAbrk','safariOptions_','ieOptions','getRequestOptions','438524hxOkfI','FtdPY','BDTwN','forEach','RVlIO','27155bgpwEc','overrideExecute','push','isUndefined','winstonLogger','edgeOptions','__driver','dYIaT','NmUmj','browserStackLogLevel','split','ieOptions_','YbkyA','dYRyI','proxyUrl','proxySettings','nIurZ','../../../helpers/accessibility-automation/helper','object','logLevel','839976apHVPc','send','381093ksbEbZ','capabilities_','setCapabilities','Setting\x20Browserstack\x20capabilities','debug','LTDRk','Hub\x20url\x20set\x20to\x20','firefoxOptions_','grpNn','10bxSxka','chromeOptions_','session_','TyQzP','../../../bin/utils/constants','WOOPU','firefoxOptions','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','isAccessibilityPlatform','setServer','2247822JMcSZw'];a29_0x1b6d=function(){return _0x2b7832;};return a29_0x1b6d();}const a29_0x6aebee=a29_0x2533;(function(_0x1ea918,_0x5b9f54){const _0x31e85f=a29_0x2533,_0x1bf321=_0x1ea918();while(!![]){try{const _0x795101=parseInt(_0x31e85f(0x1b4))/0x1+-parseInt(_0x31e85f(0x1e4))/0x2+parseInt(_0x31e85f(0x1ff))/0x3*(parseInt(_0x31e85f(0x1aa))/0x4)+parseInt(_0x31e85f(0x1e9))/0x5*(parseInt(_0x31e85f(0x1b6))/0x6)+parseInt(_0x31e85f(0x1cd))/0x7*(-parseInt(_0x31e85f(0x1fd))/0x8)+parseInt(_0x31e85f(0x193))/0x9*(parseInt(_0x31e85f(0x208))/0xa)+parseInt(_0x31e85f(0x1b1))/0xb*(-parseInt(_0x31e85f(0x1bb))/0xc);if(_0x795101===_0x5b9f54)break;else _0x1bf321['push'](_0x1bf321['shift']());}catch(_0x2bfe36){_0x1bf321['push'](_0x1bf321['shift']());}}}(a29_0x1b6d,0x3b22c));const logger=require(a29_0x6aebee(0x1b7))[a29_0x6aebee(0x1ed)],helper=require(a29_0x6aebee(0x1dd)),constants=require(a29_0x6aebee(0x20c)),hubAllocator=require(a29_0x6aebee(0x1a7)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require('../../../helpers/patchHelpers'),{setAccessibilityCapabilities,setExtension}=require('../accessibility-automation/helper'),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0x6aebee(0x1fa)),globals=require(a29_0x6aebee(0x1d1)),modify=(_0x566e1f,_0x5b5df6=null,_0x350ef8=![])=>{const _0x117ee3=a29_0x6aebee,_0x249f86={'RVlIO':function(_0x2877b8,_0x37033c){return _0x2877b8!==_0x37033c;},'dWcWW':'/session','dYIaT':function(_0x70c73e,_0x161a3a){return _0x70c73e!==_0x161a3a;},'grpNn':function(_0x71f3a3,_0xa9df81){return _0x71f3a3+_0xa9df81;},'hPoGJ':function(_0x1d921f,_0x48cd60){return _0x1d921f+_0x48cd60;},'IrRLU':_0x117ee3(0x1a6),'BDTwN':_0x117ee3(0x1c4),'KNoxH':_0x117ee3(0x1be),'LTDRk':_0x117ee3(0x1ba),'twVdX':_0x117ee3(0x1d6),'WOOPU':_0x117ee3(0x1ee),'lJTFF':'moz:firefoxOptions','oCZKW':_0x117ee3(0x18f),'YbkyA':_0x117ee3(0x1d0),'nwGJS':_0x117ee3(0x19d),'eBxmX':_0x117ee3(0x1e2),'CAbrk':function(_0x4677b7,_0x499552){return _0x4677b7===_0x499552;},'zLqcl':_0x117ee3(0x1fb),'AlnhP':_0x117ee3(0x202),'XUlvV':'optimalHubUrl','nEZVe':_0x117ee3(0x1c7),'AlAle':function(_0x30c93b,_0x5e8ff4,_0x194a61){return _0x30c93b(_0x5e8ff4,_0x194a61);},'TyQzP':function(_0x1c0a97,_0x16e0b0,_0x3970a9){return _0x1c0a97(_0x16e0b0,_0x3970a9);},'nIurZ':function(_0x57c32f,_0x20fc1b){return _0x57c32f(_0x20fc1b);},'dYRyI':function(_0x1cd687,_0x2a3088,_0x10e2ea){return _0x1cd687(_0x2a3088,_0x10e2ea);},'hsmHE':_0x117ee3(0x1a1),'eapMB':function(_0x1038c0){return _0x1038c0();},'YTZvI':_0x117ee3(0x191),'CxImV':_0x117ee3(0x1d8),'vzpRD':function(_0xb9f59f,_0x194f79){return _0xb9f59f(_0x194f79);},'cbBht':function(_0x21971d,_0x4a2574){return _0x21971d!==_0x4a2574;},'Gixbs':function(_0x20bacd,_0x51a034){return _0x20bacd!==_0x51a034;},'NmUmj':'Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','FtdPY':'Modifying\x20webdriver\x20builder'},_0x4ff5a3=helper[_0x117ee3(0x1b2)]();let _0x1e2d16;try{_0x1e2d16=helper[_0x117ee3(0x1dc)](),_0x1e2d16[_0x117ee3(0x1ae)]&&(_0x1e2d16[_0x117ee3(0x1d4)]=_0x1e2d16[_0x117ee3(0x1ae)]);}catch(_0x554ce0){return;}if(helper[_0x117ee3(0x1df)]()){const _0x43515b={};_0x43515b[_0x117ee3(0x1fc)]=_0x566e1f[_0x117ee3(0x1f2)],helper['setLogLevel'](_0x43515b,new Map(),new Map()),logger['info'](_0x249f86[_0x117ee3(0x1f1)]),logger['debug'](_0x249f86[_0x117ee3(0x1e5)]);}class _0x3bd8a7 extends _0x4ff5a3['HttpClient']{['send'](_0x21aab0){const _0x5b8268=_0x117ee3;if(_0x249f86[_0x5b8268(0x1e8)](_0x21aab0[_0x5b8268(0x1c8)],_0x249f86['dWcWW'])&&_0x249f86[_0x5b8268(0x1f0)](global[_0x5b8268(0x1de)],''))try{global[_0x5b8268(0x1de)]=_0x249f86[_0x5b8268(0x207)](_0x249f86[_0x5b8268(0x198)](_0x249f86[_0x5b8268(0x1a9)],global['newHubUrl']),_0x249f86[_0x5b8268(0x1e6)]),this['options_']=hubAllocator[_0x5b8268(0x1e3)](global[_0x5b8268(0x1de)]),logger[_0x5b8268(0x203)]('New\x20hub\x20url\x20set\x20to\x20'+global[_0x5b8268(0x1de)]),global[_0x5b8268(0x1de)]='';}catch(_0x35b8b6){logger[_0x5b8268(0x1db)](_0x35b8b6);}return super[_0x5b8268(0x1fe)](_0x21aab0);}}class _0x20684e extends _0x1e2d16[_0x117ee3(0x1d4)]{[_0x117ee3(0x192)](){const _0x3aadf3=_0x117ee3;return this[_0x3aadf3(0x1c3)]=helper[_0x3aadf3(0x1c5)](_0x566e1f),logger['debug'](_0x3aadf3(0x205)+this[_0x3aadf3(0x1c3)]),this;}[_0x117ee3(0x197)](_0x3f4f10){const _0x4d4592=_0x117ee3;let _0x7b640d={};for(const _0x36ea3b in _0x3f4f10){switch(_0x36ea3b){case _0x249f86[_0x4d4592(0x1ce)]:case _0x249f86[_0x4d4592(0x204)]:this[_0x4d4592(0x209)]&&(_0x7b640d=this[_0x4d4592(0x209)][_0x4d4592(0x1a2)](this[_0x4d4592(0x209)]['CAPABILITY_KEY'])||{},this['chromeOptions_'][_0x4d4592(0x1cc)](this['chromeOptions_'][_0x4d4592(0x1cf)],helper[_0x4d4592(0x19b)](_0x7b640d,_0x3f4f10[_0x36ea3b])));break;case _0x249f86[_0x4d4592(0x1d3)]:case _0x249f86[_0x4d4592(0x20d)]:this[_0x4d4592(0x19c)]&&(_0x7b640d=this[_0x4d4592(0x19c)]['get'](this[_0x4d4592(0x19c)][_0x4d4592(0x1cf)])||{},this[_0x4d4592(0x19c)]['set'](this[_0x4d4592(0x19c)]['CAPABILITY_KEY'],helper[_0x4d4592(0x19b)](_0x7b640d,_0x3f4f10[_0x36ea3b])));break;case _0x249f86[_0x4d4592(0x19f)]:case _0x249f86['oCZKW']:this[_0x4d4592(0x206)]&&(_0x7b640d=this['firefoxOptions_'][_0x4d4592(0x1a2)](this[_0x4d4592(0x206)][_0x4d4592(0x1cf)])||{},this[_0x4d4592(0x206)][_0x4d4592(0x1cc)](this[_0x4d4592(0x206)][_0x4d4592(0x1cf)],helper['mergeDeep'](_0x7b640d,_0x3f4f10[_0x36ea3b])));break;case _0x249f86[_0x4d4592(0x1f5)]:this[_0x4d4592(0x1e1)]&&(_0x7b640d=this['safariOptions_'][_0x4d4592(0x1a2)](this[_0x4d4592(0x1e1)]['CAPABILITY_KEY'])||{},this[_0x4d4592(0x1e1)]['set'](this['safariOptions_'][_0x4d4592(0x1cf)],helper['mergeDeep'](_0x7b640d,_0x3f4f10[_0x36ea3b])));break;case _0x249f86['nwGJS']:case _0x249f86[_0x4d4592(0x195)]:this[_0x4d4592(0x1f4)]&&(_0x7b640d=this[_0x4d4592(0x1f4)][_0x4d4592(0x1a2)](this[_0x4d4592(0x1f4)]['CAPABILITY_KEY'])||{},this[_0x4d4592(0x1f4)][_0x4d4592(0x1cc)](this['ieOptions_'][_0x4d4592(0x1cf)],helper[_0x4d4592(0x19b)](_0x7b640d,_0x3f4f10[_0x36ea3b])));break;}}}['setCapabilities'](){const _0x457733=_0x117ee3;return logger[_0x457733(0x203)](_0x249f86[_0x457733(0x1c1)]),this[_0x457733(0x197)](_0x566e1f[_0x457733(0x1da)]),Object['keys'](_0x566e1f['capability'])[_0x457733(0x1e7)](_0x452d43=>{const _0x32e784=_0x457733,_0x4e19bb=this['capabilities_'][_0x32e784(0x1a2)](_0x452d43);_0x249f86[_0x32e784(0x1e0)](typeof _0x4e19bb,_0x249f86[_0x32e784(0x1a8)])?this[_0x32e784(0x200)]['set'](_0x452d43,helper[_0x32e784(0x19b)](_0x4e19bb,_0x566e1f[_0x32e784(0x1da)][_0x452d43])):this[_0x32e784(0x200)][_0x32e784(0x1cc)](_0x452d43,_0x566e1f['capability'][_0x452d43]);}),this;}[_0x117ee3(0x1c0)](){const _0xdd7179=_0x117ee3,_0x372eab={'DgAhK':function(_0x25d464,_0x2f257e,_0x2284fe){const _0x4afdb3=a29_0x2533;return _0x249f86[_0x4afdb3(0x1f6)](_0x25d464,_0x2f257e,_0x2284fe);}};if(helper[_0xdd7179(0x1df)]()){const _0x56f720=_0x249f86['hsmHE'][_0xdd7179(0x1f3)]('|');let _0x18962f=0x0;while(!![]){switch(_0x56f720[_0x18962f++]){case'0':_0x249f86[_0xdd7179(0x1ac)](isAccessibilityAutomationSession)&&_0x249f86[_0xdd7179(0x1f9)](setAccessibilityCapabilities,_0x566e1f);continue;case'1':if(helper[_0xdd7179(0x194)](_0x566e1f['proxySettings'][_0xdd7179(0x1f7)]))this[_0xdd7179(0x19a)]=helper[_0xdd7179(0x1a0)](_0x566e1f[_0xdd7179(0x1f8)][_0xdd7179(0x1f7)]);else _0x566e1f[_0xdd7179(0x1f8)][_0xdd7179(0x1f7)]&&(this['proxy_']=_0x566e1f[_0xdd7179(0x1f8)][_0xdd7179(0x1f7)],logger[_0xdd7179(0x203)](_0xdd7179(0x1a3)+this[_0xdd7179(0x1d2)]));continue;case'2':this[_0xdd7179(0x192)]();continue;case'3':globals[_0xdd7179(0x1c9)](_0x249f86[_0xdd7179(0x19e)])&&(!_0x249f86[_0xdd7179(0x20b)](setExtension,this,_0x566e1f)&&globals[_0xdd7179(0x1bc)](_0x249f86[_0xdd7179(0x19e)],![]));continue;case'4':this[_0xdd7179(0x201)]();continue;case'5':logger[_0xdd7179(0x203)](_0x249f86['CxImV']);continue;}break;}}const _0x117c83=super[_0xdd7179(0x1c0)]();return _0x117c83[_0xdd7179(0x20a)][_0xdd7179(0x1d5)](_0x3c799a=>{const _0x409b38=_0xdd7179;try{const _0x45e0f2=_0x3c799a[_0x409b38(0x1bf)][_0x409b38(0x1a2)](_0x249f86[_0x409b38(0x1a5)]);_0x45e0f2?(logger[_0x409b38(0x203)](_0x409b38(0x1ad)+_0x45e0f2),hubAllocator[_0x409b38(0x1b8)](_0x45e0f2),helper[_0x409b38(0x1d9)](_0x45e0f2)):logger['debug'](_0x249f86[_0x409b38(0x1d7)]);}catch(_0x5b7e99){logger[_0x409b38(0x203)](_0x409b38(0x190)+_0x5b7e99);}}),_0x117c83[_0xdd7179(0x199)]=0x0,_0x117c83[_0xdd7179(0x1d5)]&&_0x117c83[_0xdd7179(0x1d5)](_0x1ca79b=>{const _0xec94e3=_0xdd7179,_0x631bd9={'iZfIf':function(_0x2bd906,_0x5084e4,_0x4230c9){return _0x249f86['AlAle'](_0x2bd906,_0x5084e4,_0x4230c9);}};_0x249f86[_0xec94e3(0x20b)](overrideQuit,_0x1ca79b,_0x117c83),_0x249f86[_0xec94e3(0x1f9)](overrideTakeScreenshot,_0x1ca79b),helper[_0xec94e3(0x1c2)](_0x1ca79b,_0x566e1f),helper[_0xec94e3(0x1ea)](_0x1ca79b,_0x566e1f),_0x1ca79b['getAccessibilityResultsSummary']=async()=>{const _0x1a97f4=_0xec94e3;return await _0x372eab[_0x1a97f4(0x1ab)](getAccessibilityResultsSummary,_0x1ca79b,global);},_0x1ca79b[_0xec94e3(0x1b5)]=async()=>{const _0x4c6958=_0xec94e3;return await _0x631bd9[_0x4c6958(0x1b0)](getAccessibilityResults,_0x1ca79b,global);};}),_0x117c83['getAccessibilityResultsSummary']=async()=>{return await _0x249f86['TyQzP'](getAccessibilityResultsSummary,_0x117c83,global);},_0x117c83[_0xdd7179(0x1b5)]=async()=>{const _0x515965=_0xdd7179;return await _0x249f86[_0x515965(0x1f6)](getAccessibilityResults,_0x117c83,global);},_0x249f86[_0xdd7179(0x1f9)](overrideTakeScreenshot,_0x117c83),_0x249f86[_0xdd7179(0x1b9)](overrideQuit,_0x117c83),helper[_0xdd7179(0x1c2)](_0x117c83,_0x566e1f),helper[_0xdd7179(0x1ea)](_0x117c83,_0x566e1f),helper['isUndefined'](global['__driversArray'])&&(global[_0xdd7179(0x1bd)]=[]),helper[_0xdd7179(0x1ec)](global[_0xdd7179(0x1c6)])&&(global[_0xdd7179(0x1c6)]=[]),global['__driversArray'][_0xdd7179(0x1eb)](_0x117c83),global[_0xdd7179(0x1ef)]=_0x117c83,_0x249f86[_0xdd7179(0x1cb)](global[_0xdd7179(0x1c6)],undefined)&&global[_0xdd7179(0x1c6)][_0xdd7179(0x1eb)](_0x117c83),_0x5b5df6&&helper[_0xdd7179(0x1ec)](_0x5b5df6[_0xdd7179(0x1b3)]['__driversArray'])&&(_0x5b5df6[_0xdd7179(0x1b3)]['__driversArray']=[]),_0x5b5df6&&_0x249f86[_0xdd7179(0x1ca)](_0x5b5df6[_0xdd7179(0x1b3)]['__drivers'],undefined)&&(_0x5b5df6[_0xdd7179(0x1b3)][_0xdd7179(0x1c6)][_0xdd7179(0x1eb)](_0x117c83),_0x5b5df6[_0xdd7179(0x1b3)][_0xdd7179(0x1bd)][_0xdd7179(0x1eb)](_0x117c83)),_0x117c83;}}return _0x1e2d16[_0x117ee3(0x1ae)]=_0x1e2d16[_0x117ee3(0x1d4)],_0x1e2d16[_0x117ee3(0x1d4)]=_0x20684e,_0x4ff5a3[_0x117ee3(0x1af)]=_0x3bd8a7,_0x1e2d16;};module[a29_0x6aebee(0x196)][a29_0x6aebee(0x1a4)]=modify;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a30_0x549b(){const _0x17ee3e=['66393OSaMAz','11937779xrcOVE','1061080lYZNNf','43681aiMiLT','11287476iZXaSa','../../../helpers/test-observability/utils','1108944facZhm','6BeVbdt','7461305cAHQtA','156EtqnBW','restore'];a30_0x549b=function(){return _0x17ee3e;};return a30_0x549b();}const a30_0x3a781e=a30_0x312f;(function(_0x2eab9c,_0x1cab80){const _0xf70366=a30_0x312f,_0x27a40a=_0x2eab9c();while(!![]){try{const _0x5d7644=-parseInt(_0xf70366(0x18d))/0x1+parseInt(_0xf70366(0x190))/0x2+-parseInt(_0xf70366(0x195))/0x3*(parseInt(_0xf70366(0x193))/0x4)+parseInt(_0xf70366(0x192))/0x5*(-parseInt(_0xf70366(0x191))/0x6)+parseInt(_0xf70366(0x196))/0x7+-parseInt(_0xf70366(0x18c))/0x8+parseInt(_0xf70366(0x18e))/0x9;if(_0x5d7644===_0x1cab80)break;else _0x27a40a['push'](_0x27a40a['shift']());}catch(_0x1229a7){_0x27a40a['push'](_0x27a40a['shift']());}}}(a30_0x549b,0xefd4b));function a30_0x312f(_0x1d1471,_0x2af4f8){const _0x549b1c=a30_0x549b();return a30_0x312f=function(_0x312fd0,_0x8c6900){_0x312fd0=_0x312fd0-0x18c;let _0x3dec7a=_0x549b1c[_0x312fd0];return _0x3dec7a;},a30_0x312f(_0x1d1471,_0x2af4f8);}const requestSpy=require('../../../helpers/request-spy'),constants=require('../../../bin/utils/constants'),{addRequestSpy}=require(a30_0x3a781e(0x18f));exports['mochaHooks']={'beforeAll'(){const _0x45bd17={'zryGK':function(_0x59436c){return _0x59436c();}},_0x4319f4='browserstack internal helper hook';_0x45bd17['zryGK'](addRequestSpy);},'afterAll'(){const _0x478876=a30_0x3a781e,_0x4b10e5='browserstack internal helper hook';this['timeout'](0xea60),requestSpy[_0x478876(0x194)]();}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a31_0x5a789a=a31_0x4933;(function(_0x460107,_0x2f790b){const _0x3310cf=a31_0x4933,_0x1e9472=_0x460107();while(!![]){try{const _0x2aa250=-parseInt(_0x3310cf(0x16e))/0x1+-parseInt(_0x3310cf(0x197))/0x2*(parseInt(_0x3310cf(0x147))/0x3)+parseInt(_0x3310cf(0x16d))/0x4*(parseInt(_0x3310cf(0x189))/0x5)+parseInt(_0x3310cf(0x194))/0x6*(-parseInt(_0x3310cf(0x191))/0x7)+-parseInt(_0x3310cf(0x176))/0x8*(-parseInt(_0x3310cf(0x158))/0x9)+-parseInt(_0x3310cf(0x17d))/0xa+parseInt(_0x3310cf(0x182))/0xb;if(_0x2aa250===_0x2f790b)break;else _0x1e9472['push'](_0x1e9472['shift']());}catch(_0x2be648){_0x1e9472['push'](_0x1e9472['shift']());}}}(a31_0x1398,0x78f59));function a31_0x4933(_0x351bff,_0x2030c5){const _0x139846=a31_0x1398();return a31_0x4933=function(_0x4933a7,_0x5c0d91){_0x4933a7=_0x4933a7-0x143;let _0x448fbf=_0x139846[_0x4933a7];return _0x448fbf;},a31_0x4933(_0x351bff,_0x2030c5);}const {v4:uuidv4}=require(a31_0x5a789a(0x181)),{name,version}=require(a31_0x5a789a(0x171)),logPatcher=require(a31_0x5a789a(0x154)),BSTestOpsPatcher=new logPatcher({}),{debug,isInternalHook}=require(a31_0x5a789a(0x155)),{consoleHolder}=require(a31_0x5a789a(0x159)),{getPlatformVersion}=require(a31_0x5a789a(0x16b)),{shouldProcessEventForTesthub}=require('../../../helpers/testhub/utils');console={},Object['keys'](consoleHolder)[a31_0x5a789a(0x14a)](_0x5fc3c3=>{console[_0x5fc3c3]=(..._0x26fdca)=>{BSTestOpsPatcher[_0x5fc3c3](..._0x26fdca);};}),exports[a31_0x5a789a(0x18d)]=()=>{const _0x3bc4d3=a31_0x5a789a,_0x380fb2={'UNont':_0x3bc4d3(0x18b),'EZPkF':function(_0x24fb0b){return _0x24fb0b();}};return{'ci':_0x380fb2[_0x3bc4d3(0x166)],'key':_0x380fb2[_0x3bc4d3(0x18c)](uuidv4),'version':version,'collector':'js-'+name};},exports['getHookDetails']=_0x2577a7=>{const _0x77603a=a31_0x5a789a,_0x29f704={};_0x29f704[_0x77603a(0x17b)]=function(_0x409618,_0x3f7593){return _0x409618!==_0x3f7593;},_0x29f704[_0x77603a(0x15c)]=_0x77603a(0x169),_0x29f704['lTddK']='hook:',_0x29f704[_0x77603a(0x17f)]='hook';const _0x2047af=_0x29f704;if(!_0x2577a7||_0x2047af[_0x77603a(0x17b)](typeof _0x2577a7,_0x2047af[_0x77603a(0x15c)]))return[null,null];if(_0x2047af[_0x77603a(0x17b)](_0x2577a7[_0x77603a(0x14d)](_0x2047af[_0x77603a(0x150)]),-0x1)){const _0x1b5290=_0x2577a7[_0x77603a(0x152)](_0x2047af[_0x77603a(0x150)]);return[_0x1b5290[0x0]['slice'](0x0,-0x1)['split']('\x22')[0x1],_0x1b5290[0x1]['substring'](0x1)];}else{if(_0x2047af[_0x77603a(0x17b)](_0x2577a7[_0x77603a(0x14d)](_0x2047af[_0x77603a(0x17f)]),-0x1)){const _0x4b1e74=_0x2577a7['split'](_0x2047af[_0x77603a(0x17f)]);return[_0x4b1e74[0x0][_0x77603a(0x14c)](0x0,-0x1)[_0x77603a(0x152)]('\x22')[0x1],_0x2577a7];}}return[null,null];},exports['getHooksForTest']=_0x3e7f72=>{const _0x182a99=a31_0x5a789a,_0x190745={'TeAXn':function(_0x3a6673,_0xecfe9a){return _0x3a6673(_0xecfe9a);},'QbAhe':_0x182a99(0x190),'ltNvZ':_0x182a99(0x160),'ndTCe':_0x182a99(0x161),'pzWWI':_0x182a99(0x192)};if(!_0x3e7f72||!_0x3e7f72[_0x182a99(0x179)])return[];const _0x161403=[];return[_0x190745[_0x182a99(0x178)],_0x190745['ltNvZ'],_0x190745['ndTCe'],_0x190745[_0x182a99(0x170)]][_0x182a99(0x14a)](_0x400f0b=>{const _0x9b20aa=_0x182a99,_0x168ff5=_0x3e7f72['parent'][_0x400f0b]||[];_0x168ff5[_0x9b20aa(0x14a)](_0x28fc0b=>{const _0x50bddd=_0x9b20aa;_0x28fc0b[_0x50bddd(0x14b)]&&!_0x190745[_0x50bddd(0x16a)](isInternalHook,_0x28fc0b['fn'])&&_0x161403['push'](_0x28fc0b[_0x50bddd(0x14b)]);});}),[..._0x161403,...exports[_0x182a99(0x185)](_0x3e7f72[_0x182a99(0x179)])];},exports[a31_0x5a789a(0x187)]=_0x59e991=>{const _0x13ed96=a31_0x5a789a,_0x1dc5f6={'zDapZ':function(_0x3a399e){return _0x3a399e();},'TgqTi':function(_0x2db9d2,_0x26e244){return _0x2db9d2===_0x26e244;},'EHoxg':'_afterEach','gKYAV':'_beforeAll','Opoas':_0x13ed96(0x160),'JfSzo':'_beforeEach'};if(!_0x59e991||!_0x59e991[_0x13ed96(0x179)])return;[_0x1dc5f6['gKYAV'],_0x1dc5f6[_0x13ed96(0x175)],_0x1dc5f6[_0x13ed96(0x173)],_0x1dc5f6[_0x13ed96(0x177)]][_0x13ed96(0x14a)](_0x3a59a7=>{const _0x154ca4=_0x13ed96,_0x7f8dc9={'oerTu':function(_0x3cbe2e){const _0x57b5ec=a31_0x4933;return _0x1dc5f6[_0x57b5ec(0x15b)](_0x3cbe2e);},'kvgoD':function(_0x18c043,_0x5bf4d7){return _0x1dc5f6['TgqTi'](_0x18c043,_0x5bf4d7);},'xmaHJ':_0x1dc5f6[_0x154ca4(0x177)]},_0x216582=_0x59e991['parent'][_0x3a59a7]||[];_0x216582[_0x154ca4(0x14a)](_0x1fc2d5=>{const _0xa0841e=_0x154ca4;if(!_0x1fc2d5[_0xa0841e(0x14b)])_0x1fc2d5[_0xa0841e(0x14b)]=_0x7f8dc9[_0xa0841e(0x162)](uuidv4);else _0x1fc2d5[_0xa0841e(0x15a)]&&_0x7f8dc9[_0xa0841e(0x15e)](_0x3a59a7,_0x7f8dc9[_0xa0841e(0x16f)])&&(_0x1fc2d5[_0xa0841e(0x14b)]=_0x7f8dc9['oerTu'](uuidv4),delete _0x1fc2d5[_0xa0841e(0x15a)]);});}),exports['mapTestHooks'](_0x59e991[_0x13ed96(0x179)]);},exports['sendPlatformDetails']=async(_0x1d4bfe,_0x20cdf0)=>{const _0x33b216=a31_0x5a789a,_0x9b530f={'CnBle':function(_0x399ca5){return _0x399ca5();},'BbkDt':function(_0x94322c,_0x2ff9d3){return _0x94322c===_0x2ff9d3;},'nYsFa':_0x33b216(0x149),'nDpLT':_0x33b216(0x157),'wtERh':_0x33b216(0x148),'RfJXp':'app-automate','AaWWh':_0x33b216(0x18a),'PcfuT':function(_0x464631,_0x13f9d9){return _0x464631(_0x13f9d9);},'keuqR':function(_0x3ca19d,_0x2387c3){return _0x3ca19d===_0x2387c3;},'XOJXS':_0x33b216(0x195),'fMeiG':_0x33b216(0x163),'MeoUe':function(_0x29a418,_0x55afa5){return _0x29a418(_0x55afa5);}};try{if(!_0x9b530f['CnBle'](shouldProcessEventForTesthub))return;const _0x4d6b27=await _0x1d4bfe[_0x33b216(0x196)](),_0x1bd314=await _0x1d4bfe['getSession'](),_0x57b8d3={},_0x3b9f06=Object[_0x33b216(0x180)](_0x1bd314[_0x33b216(0x196)]()[_0x33b216(0x174)]),_0x2be5fd={'product':_0x9b530f['BbkDt'](global[_0x33b216(0x15d)],_0x9b530f[_0x33b216(0x18f)])?_0x3b9f06[_0x9b530f['nDpLT']]||_0x3b9f06[_0x9b530f['wtERh']]?_0x9b530f[_0x33b216(0x188)]:_0x9b530f[_0x33b216(0x18e)]:null,'capabilities':_0x3b9f06,'platform':_0x4d6b27[_0x33b216(0x153)](),'platform_version':_0x9b530f[_0x33b216(0x15f)](getPlatformVersion,_0x9b530f[_0x33b216(0x193)](global[_0x33b216(0x15d)],_0x9b530f['nYsFa'])),'browser':_0x4d6b27['getBrowserName'](),'browser_version':_0x4d6b27['getBrowserVersion'](),'session_id':_0x1bd314[_0x33b216(0x183)]()};global[_0x33b216(0x15d)]?_0x57b8d3[global[_0x33b216(0x15d)]]=_0x2be5fd:_0x57b8d3[_0x9b530f[_0x33b216(0x17a)]]=_0x2be5fd,process[_0x33b216(0x156)](_0x33b216(0x172)+process['pid'],{'timestamp':new Date()['toISOString'](),'level':null,'message':null,'kind':_0x9b530f[_0x33b216(0x14e)],'http_response':_0x57b8d3,'uuid':_0x20cdf0});}catch(_0x2dd09b){_0x9b530f['MeoUe'](debug,_0x33b216(0x184)+_0x2dd09b);}},exports[a31_0x5a789a(0x168)]=_0x23cb0d=>{const _0x16cb27=a31_0x5a789a,_0x47caa0={};_0x47caa0[_0x16cb27(0x14f)]=function(_0x1ea1e0,_0x1da457){return _0x1ea1e0!==_0x1da457;},_0x47caa0[_0x16cb27(0x165)]=_0x16cb27(0x146),_0x47caa0['GUNBG']=function(_0x39e3c3,_0x4671c9){return _0x39e3c3!==_0x4671c9;},_0x47caa0[_0x16cb27(0x143)]=_0x16cb27(0x145),_0x47caa0['wWsJp']=_0x16cb27(0x164);const _0x591385=_0x47caa0,_0x23ecba=_0x23cb0d['suites'][_0x16cb27(0x144)]((_0x2f2e98,_0x5c3dd0)=>{const _0x191cc3=_0x16cb27,_0x11aeea=exports[_0x191cc3(0x168)](_0x5c3dd0);return _0x11aeea&&(_0x2f2e98=_0x2f2e98[_0x191cc3(0x151)](_0x11aeea)),_0x2f2e98;},[]),_0x2f64e0=_0x23cb0d['tests'][_0x16cb27(0x186)](_0x974d01=>{const _0x5f454e=_0x16cb27,_0x317b47=_0x591385[_0x5f454e(0x14f)](_0x974d01[_0x5f454e(0x167)],_0x591385[_0x5f454e(0x165)])&&!_0x974d01[_0x5f454e(0x15a)]&&_0x591385[_0x5f454e(0x16c)](_0x974d01['state'],_0x591385[_0x5f454e(0x143)])&&_0x591385['GUNBG'](_0x974d01[_0x5f454e(0x17c)],_0x591385['wWsJp'])&&!_0x974d01[_0x5f454e(0x17e)];return _0x317b47;});return _0x2f64e0[_0x16cb27(0x151)](_0x23ecba);};function a31_0x1398(){const _0x4f5b31=['parent','XOJXS','DmhEt','state','1970250uFQHdV','pending','zHwLI','fromEntries','uuid','11735482xHWwGv','toJSON','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','getHooksForTest','filter','mapTestHooks','RfJXp','2939190SjkPHS','automate','generic','EZPkF','getTestEnv','AaWWh','nYsFa','_beforeAll','434TgoAOD','_afterEach','keuqR','150KekUqX','unknown_grid','getCapabilities','11132JbqiEJ','axLPo','reduce','passed','hook','213DWPPvs','app','browserstack','forEach','hookAnalyticsId','slice','indexOf','fMeiG','xcTzE','lTddK','concat','split','getPlatform','../../utils/logPatcher','../../../helpers/test-observability/utils','emit','appium:app','9nTnViB','../../../helpers/test-observability/constants','markedStatus','zDapZ','ChklJ','__cloud_provider___','kvgoD','PcfuT','_afterAll','_beforeEach','oerTu','TEST_PLATFORM','failed','DzemL','UNont','type','getHookSkippedTests','string','TeAXn','../../../helpers/helper','GUNBG','4vDRYOw','905257pwQziX','xmaHJ','pzWWI','../../../../package.json','bs:addPlatformDetails:','JfSzo','map_','Opoas','2718136hlHTHy','EHoxg','QbAhe'];a31_0x1398=function(){return _0x4f5b31;};return a31_0x1398();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a32_0x5e4a(){const _0x595dae=['aJhVy','session_','nEold','iiTyp','__sessionFailed','sessionNameSet__','../../helpers/helper','14114889DVqkAP','kSLtX','mAyZY','isAccessibilityPlatform','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','SRoZH','error','testcase','.\x20Error\x20:','percyCaptureMode','\x22}}','1778343HjVkCF','2217560YXCsAE','6tLqjAs','quitCount_','ObservabilitySync:','passed','BROWSERSTACK_TESTHUB_UUID','protocol','thJwtToken','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','13VbRLLy','tsInS','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','odYDJ','gbvLI','winstonLogger','stRUp','../../helpers/globals','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','kNwWi','Failed\x20to\x20store\x20session\x20name:\x20','join','accessibilityScanStarted','stopMonitoring','now','Qncjs','DTqFc','../../helpers/logger','dfUUa','hWxJJ','https:','http:','percy','performScan','then','3472595GMeTxr','72046kDXleJ','stringify','Pvvfc','browserstackSessionName','shift','ENV_VAR','\x20-\x20','IuoqQ','thTestRunUuid','info','Failed:\x20','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','../../helpers/accessibility-automation/scripts','format','GFjaH','__drivers','push','XmbJJ','err','rKxhn','Samaw','startMonitoring','state','isArray','titlePath','executeAsyncScript','Automate\x20test\x20case\x20execution\x20has\x20started.','executeScript','timeout','cIHrN','HbMif','19579rbUMDH','debug','\x20|\x20','zSlow','bstackA11yShouldScan','message','failed','IvJUT','capabilities','Eirco','appium:app','thBuildUuid','app','LNzFJ','LNyzv','currentTest','driverCleanup','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20',',\x22level\x22:\x20\x22','../../helpers/testhub/utils','2323472NRHkPM','tYUqe','../../helpers/percy/utils','setGlobal','__error_messages__','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','Passed','elJtQ','env','iDfZj','length','sMeAg','vrsjh','util','./test-observability/mochaUtils','getGlobal','shouldScanTestForAccessibility','xksPY'];a32_0x5e4a=function(){return _0x595dae;};return a32_0x5e4a();}function a32_0x2286(_0x241ce9,_0x13d790){const _0x5e4a06=a32_0x5e4a();return a32_0x2286=function(_0x228647,_0x501d8f){_0x228647=_0x228647-0x163;let _0xa1d969=_0x5e4a06[_0x228647];return _0xa1d969;},a32_0x2286(_0x241ce9,_0x13d790);}const a32_0xc757e6=a32_0x2286;(function(_0x13c182,_0x457f7d){const _0x3723a4=a32_0x2286,_0x1e99e9=_0x13c182();while(!![]){try{const _0x18434e=-parseInt(_0x3723a4(0x1ba))/0x1*(-parseInt(_0x3723a4(0x1d4))/0x2)+parseInt(_0x3723a4(0x1b0))/0x3+parseInt(_0x3723a4(0x1b1))/0x4+parseInt(_0x3723a4(0x1d3))/0x5+parseInt(_0x3723a4(0x1b2))/0x6*(-parseInt(_0x3723a4(0x178))/0x7)+-parseInt(_0x3723a4(0x18c))/0x8+-parseInt(_0x3723a4(0x1a5))/0x9;if(_0x18434e===_0x457f7d)break;else _0x1e99e9['push'](_0x1e99e9['shift']());}catch(_0x21dbfa){_0x1e99e9['push'](_0x1e99e9['shift']());}}}(a32_0x5e4a,0x6d7b5));const util=require(a32_0xc757e6(0x199)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require('../../helpers/accessibility-automation/helper'),{percyAutoCapture}=require(a32_0xc757e6(0x18e)),{sendPlatformDetails}=require(a32_0xc757e6(0x19a)),{isBrowserstackInfra,markSessionStatus}=require(a32_0xc757e6(0x1a4)),PerformanceTester=require('../../helpers/performance-tester'),scripts=require(a32_0xc757e6(0x165)),globals=require(a32_0xc757e6(0x1c1)),logger=require(a32_0xc757e6(0x1cb))[a32_0xc757e6(0x1bf)],{shouldProcessEventForTesthub}=require(a32_0xc757e6(0x18b)),testHubConstants=require('../../helpers/testhub/constants');exports['mochaHooks']={'beforeAll'(){const _0x5cf3ef=a32_0xc757e6,_0xa93c4a={'kNwWi':function(_0x18013c,_0x425768,_0x594914,_0xe94a41){return _0x18013c(_0x425768,_0x594914,_0xe94a41);},'zSlow':_0x5cf3ef(0x17e),'IuoqQ':_0x5cf3ef(0x17a),'dfUUa':function(_0xeab0d1,_0x416048,_0x3b42f9){return _0xeab0d1(_0x416048,_0x3b42f9);},'XmbJJ':_0x5cf3ef(0x1b5),'SRoZH':function(_0x4183e9){return _0x4183e9();},'nEold':function(_0x1ae189,_0x3b750c,_0x2691c4){return _0x1ae189(_0x3b750c,_0x2691c4);}};PerformanceTester[_0x5cf3ef(0x16e)]();const _0x97e771='browserstack internal helper hook';global[_0x5cf3ef(0x190)]=[],global['__sessionFailed']=![],global[_0x5cf3ef(0x188)]=async()=>{const _0x20c577=_0x5cf3ef;let _0x5d90df=![];try{await global[_0x20c577(0x168)][0x0][_0x20c577(0x19f)],_0x5d90df=!![],global[_0x20c577(0x1a2)]?await _0xa93c4a[_0x20c577(0x1c3)](markSessionStatus,global[_0x20c577(0x168)][0x0],_0xa93c4a[_0x20c577(0x17b)],global[_0x20c577(0x190)][_0x20c577(0x1c5)](_0xa93c4a[_0x20c577(0x1db)])):await _0xa93c4a[_0x20c577(0x1cc)](markSessionStatus,global[_0x20c577(0x168)][0x0],_0xa93c4a[_0x20c577(0x16a)]);}catch(_0x4badc7){}global[_0x20c577(0x190)]=[],global[_0x20c577(0x1a2)]=![];if(_0x5d90df)try{try{_0xa93c4a[_0x20c577(0x1aa)](shouldProcessEventForTesthub)&&(global[_0x20c577(0x168)][0x0]&&await _0xa93c4a[_0x20c577(0x1a0)](sendPlatformDetails,global[_0x20c577(0x168)][0x0],this['currentTest']?this[_0x20c577(0x187)]['testAnalyticsId']:null));}catch{}await global['__drivers'][0x0]['initQuit']();}catch(_0x1a6491){}};},'beforeEach'(_0x328d36){const _0x51c8e1=a32_0xc757e6,_0x5c4c81={'sMeAg':function(_0x26359b,_0x36223f){return _0x26359b>_0x36223f;},'Vpdjj':_0x51c8e1(0x1da),'LNzFJ':function(_0x4bea95,_0x516686,_0x5b5bea){return _0x4bea95(_0x516686,_0x5b5bea);},'LNyzv':_0x51c8e1(0x17c),'hWxJJ':function(_0x3e49f9){return _0x3e49f9();},'tYUqe':_0x51c8e1(0x1a8),'tsInS':function(_0x410c1a,_0x10e6ff){return _0x410c1a===_0x10e6ff;},'gbvLI':_0x51c8e1(0x1cf),'elJtQ':_0x51c8e1(0x1ce),'Wwglk':_0x51c8e1(0x1a9),'VmNzo':_0x51c8e1(0x173)};new Promise(async _0x245bb7=>{const _0x401848=_0x51c8e1,_0x17bb85='browserstack internal helper hook';let _0x34c79b=!![];try{_0x5c4c81[_0x401848(0x197)](global['__drivers'][_0x401848(0x196)],0x1)&&(await global[_0x401848(0x188)](),global[_0x401848(0x168)][_0x401848(0x1d8)]()),_0x5c4c81[_0x401848(0x197)](global[_0x401848(0x168)][0x0][_0x401848(0x1b3)],0x0)&&(_0x34c79b=![],await global[_0x401848(0x188)]());}catch{}try{Array['isArray'](global[_0x401848(0x168)])&&global[_0x401848(0x168)][0x0]&&(global['__drivers'][0x0]['browserstackSessionName']=this[_0x401848(0x187)]['titlePath']()[_0x401848(0x1c5)](_0x5c4c81['Vpdjj'])),global[_0x401848(0x1d7)]=this[_0x401848(0x187)][_0x401848(0x171)]()[_0x401848(0x1c5)](_0x5c4c81['Vpdjj']);}catch(_0x1b1f01){logger[_0x401848(0x179)](_0x401848(0x1c4)+_0x1b1f01);}this[_0x401848(0x187)][_0x401848(0x19c)]=_0x5c4c81[_0x401848(0x185)](shouldScanTestForAccessibility,this[_0x401848(0x187)]['titlePath'](),!![]),globals[_0x401848(0x18f)](_0x5c4c81[_0x401848(0x186)],this[_0x401848(0x187)][_0x401848(0x19c)]),this[_0x401848(0x187)][_0x401848(0x1c6)]=!![];if(_0x5c4c81[_0x401848(0x1cd)](isAccessibilityAutomationSession)&&_0x34c79b&&Array[_0x401848(0x170)](global['__drivers'])&&_0x5c4c81[_0x401848(0x197)](global[_0x401848(0x168)]['length'],0x0)&&globals[_0x401848(0x19b)](_0x5c4c81[_0x401848(0x18d)]))try{const _0xe1ff88=await global[_0x401848(0x168)][0x0]['session_'];if(_0xe1ff88){let _0x47a3bc=!![];const _0x1fa202=await global['__drivers'][0x0]['getCurrentUrl']();let _0x2e040f;try{_0x2e040f=new URL(_0x1fa202);}catch(_0x377501){_0x47a3bc=![];}_0x47a3bc=_0x5c4c81[_0x401848(0x1bb)](_0x2e040f[_0x401848(0x1b7)],_0x5c4c81[_0x401848(0x1be)])||_0x5c4c81[_0x401848(0x1bb)](_0x2e040f['protocol'],_0x5c4c81[_0x401848(0x193)]),_0x47a3bc&&(this[_0x401848(0x187)][_0x401848(0x19c)]&&logger['info'](_0x5c4c81['Wwglk'])),this['currentTest'][_0x401848(0x1c6)]=this['currentTest'][_0x401848(0x19c)],this[_0x401848(0x187)]['shouldScanTestForAccessibility']&&logger['info'](_0x5c4c81['VmNzo']);}}catch(_0x50e3b0){logger[_0x401848(0x1ab)](_0x401848(0x1b9)+util[_0x401848(0x166)](_0x50e3b0));}_0x5c4c81[_0x401848(0x1cd)](_0x245bb7);})[_0x51c8e1(0x1d2)](_0x328d36);},'afterEach'(_0x2bb139){const _0x1af00d=a32_0xc757e6,_0x2d6707={'rKxhn':function(_0x2f5e7d,_0x5323c4){return _0x2f5e7d>_0x5323c4;},'mGhqM':function(_0x440114,_0x56b702){return _0x440114===_0x56b702;},'aJhVy':_0x1af00d(0x1ac),'VgUIC':_0x1af00d(0x182),'Qncjs':function(_0x58d862,_0x1a75ef,_0x2959e7,_0x47621a){return _0x58d862(_0x1a75ef,_0x2959e7,_0x47621a);},'kSLtX':_0x1af00d(0x1da),'UHDML':function(_0x5da7ef,_0x3dd7e3){return _0x5da7ef!==_0x3dd7e3;},'iDfZj':_0x1af00d(0x1b5),'mAyZY':function(_0xad2949,_0x30e345,_0x42a993){return _0xad2949(_0x30e345,_0x42a993);},'xksPY':function(_0x355d82,_0x270dc3){return _0x355d82+_0x270dc3;},'IGuGp':_0x1af00d(0x163),'DTqFc':_0x1af00d(0x1ab),'iiTyp':function(_0x39432b,_0x17f54c,_0x42b9a0){return _0x39432b(_0x17f54c,_0x42b9a0);},'mOjTw':_0x1af00d(0x192),'odYDJ':_0x1af00d(0x1dd),'Samaw':'isAccessibilityPlatform','Pvvfc':_0x1af00d(0x17c),'stRUp':_0x1af00d(0x191),'IzPEv':'Performing\x20scan\x20before\x20saving\x20results','cIHrN':_0x1af00d(0x1bc),'HbMif':function(_0x254a79){return _0x254a79();},'GFjaH':function(_0x1aca30){return _0x1aca30();},'vrsjh':function(_0xa5ef1e,_0x3a0146,_0x1292ab){return _0xa5ef1e(_0x3a0146,_0x1292ab);},'qbVmT':_0x1af00d(0x179),'Eirco':function(_0x3ceef9,_0x2c97d7){return _0x3ceef9>_0x2c97d7;}},_0x459879='browserstack internal helper hook';this[_0x1af00d(0x175)](0xfde8);const _0x2d9a42=async(_0xcf11f5,_0x599565)=>{const _0x39352c=_0x1af00d;await global[_0x39352c(0x168)][0x0][_0x39352c(0x174)](_0x39352c(0x1c2)+_0xcf11f5+_0x39352c(0x18a)+_0x599565+_0x39352c(0x1af));};new Promise(async _0x19e3da=>{const _0x184755=_0x1af00d;try{_0x2d6707[_0x184755(0x16c)](global[_0x184755(0x168)]['length'],0x1)&&(await global[_0x184755(0x188)](),global[_0x184755(0x168)][_0x184755(0x1d8)](),global[_0x184755(0x190)]=[],global[_0x184755(0x1a2)]=![]);try{if(global[_0x184755(0x1d0)]&&_0x2d6707['mGhqM'](global[_0x184755(0x1ae)],_0x2d6707[_0x184755(0x19e)])&&global[_0x184755(0x168)][0x0]){const _0xe52fd7=_0x2d6707['rKxhn'](global[_0x184755(0x180)][_0x184755(0x196)],0x0)?!!global[_0x184755(0x180)][0x0][_0x184755(0x184)]||!!global[_0x184755(0x180)][0x0][_0x2d6707['VgUIC']]:![],_0x26da7b={};_0x26da7b[_0x184755(0x184)]=_0xe52fd7,await _0x2d6707[_0x184755(0x1c9)](percyAutoCapture,global[_0x184755(0x168)][0x0],_0x2d6707['aJhVy'],_0x26da7b);}}catch(_0x5711d6){}!global['__skipSessionName']&&(await global[_0x184755(0x168)][0x0][_0x184755(0x174)](_0x184755(0x189)+JSON[_0x184755(0x1d5)](this[_0x184755(0x187)]['titlePath']()[_0x184755(0x1c5)](_0x2d6707[_0x184755(0x1a6)]))+'}}'),global[_0x184755(0x168)][0x0][_0x184755(0x1a3)]=!![]);const _0x57a79e=_0x2d6707['UHDML'](this[_0x184755(0x187)][_0x184755(0x16f)],_0x2d6707[_0x184755(0x195)]);_0x57a79e?(global[_0x184755(0x1a2)]=!![],global[_0x184755(0x190)][_0x184755(0x169)](this[_0x184755(0x187)][_0x184755(0x16b)]['message']),await _0x2d6707[_0x184755(0x1a7)](_0x2d9a42,JSON['stringify'](_0x2d6707[_0x184755(0x19d)](_0x2d6707['IGuGp'],this[_0x184755(0x187)][_0x184755(0x16b)][_0x184755(0x17d)])),_0x2d6707[_0x184755(0x1ca)])):await _0x2d6707[_0x184755(0x1a1)](_0x2d9a42,JSON[_0x184755(0x1d5)](_0x2d6707['mOjTw']),_0x2d6707[_0x184755(0x1bd)]);}catch(_0x163db3){}try{if(this[_0x184755(0x187)][_0x184755(0x1c6)]&&globals[_0x184755(0x19b)](_0x2d6707[_0x184755(0x16d)])&&globals[_0x184755(0x19b)](_0x2d6707[_0x184755(0x1d6)])){logger['info'](_0x2d6707[_0x184755(0x1c0)]);const _0x4141e7={};_0x4141e7[_0x184755(0x1dc)]=this[_0x184755(0x187)]['testAnalyticsId'],_0x4141e7[_0x184755(0x183)]=process[_0x184755(0x194)][testHubConstants[_0x184755(0x1d9)][_0x184755(0x1b6)]],_0x4141e7[_0x184755(0x1b8)]=process['env'][testHubConstants[_0x184755(0x1d9)]['BROWSERSTACK_TESTHUB_JWT']];const _0x509219=_0x4141e7;logger['debug'](_0x184755(0x164)+JSON[_0x184755(0x1d5)](_0x509219)),logger[_0x184755(0x179)](_0x2d6707['IzPEv']),logger[_0x184755(0x179)](util[_0x184755(0x166)](await global[_0x184755(0x168)][0x0][_0x184755(0x172)](scripts[_0x184755(0x1d1)],{'method':global[_0x184755(0x1d7)]}))),await global[_0x184755(0x168)][0x0][_0x184755(0x172)](scripts['saveTestResults'],_0x509219),logger[_0x184755(0x1dd)](_0x2d6707[_0x184755(0x176)]);}}catch(_0x44c1cd){logger[_0x184755(0x1ab)]('Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20'+this[_0x184755(0x187)][_0x184755(0x171)]()+_0x184755(0x1ad),_0x44c1cd);}try{try{if(_0x2d6707[_0x184755(0x177)](shouldProcessEventForTesthub)){global[_0x184755(0x168)][0x0]&&await _0x2d6707[_0x184755(0x1a1)](sendPlatformDetails,global['__drivers'][0x0],this[_0x184755(0x187)]?this[_0x184755(0x187)]['testAnalyticsId']:null);if(_0x2d6707[_0x184755(0x167)](isBrowserstackInfra)){const _0x1d30d5=_0x184755(0x1b4)+Date[_0x184755(0x1c8)]();await _0x2d6707[_0x184755(0x198)](_0x2d9a42,JSON['stringify'](_0x1d30d5),_0x2d6707['qbVmT']);}}}catch{}_0x2d6707[_0x184755(0x181)](global[_0x184755(0x168)][0x0][_0x184755(0x1b3)],0x0)&&await global[_0x184755(0x188)]();}catch(_0x1e764b){}_0x2d6707[_0x184755(0x177)](_0x19e3da);})[_0x1af00d(0x1d2)](()=>_0x2bb139());},'afterAll'(_0xdd094){const _0x3a1e0b=a32_0xc757e6,_0x3f7fa3={'IvJUT':function(_0x4c6bf1){return _0x4c6bf1();}},_0x4f4107='browserstack internal helper hook';this[_0x3a1e0b(0x175)](0xfde8),new Promise(async _0x400cd4=>{const _0x29e862=_0x3a1e0b;PerformanceTester[_0x29e862(0x1c7)](),await global[_0x29e862(0x188)](),_0x3f7fa3[_0x29e862(0x17f)](_0x400cd4);})[_0x3a1e0b(0x1d2)](()=>_0xdd094());}};
|
|
1
|
+
function a32_0x5907(_0x50dfc6,_0x594cf5){const _0x284957=a32_0x2849();return a32_0x5907=function(_0x590742,_0x2448de){_0x590742=_0x590742-0x97;let _0x205c93=_0x284957[_0x590742];return _0x205c93;},a32_0x5907(_0x50dfc6,_0x594cf5);}const a32_0x4bbcf4=a32_0x5907;(function(_0x5d03c4,_0x37636a){const _0x339449=a32_0x5907,_0x5bd6fb=_0x5d03c4();while(!![]){try{const _0x33a875=-parseInt(_0x339449(0xff))/0x1*(-parseInt(_0x339449(0x103))/0x2)+-parseInt(_0x339449(0xa0))/0x3*(parseInt(_0x339449(0x10a))/0x4)+-parseInt(_0x339449(0xe2))/0x5+parseInt(_0x339449(0xd3))/0x6+parseInt(_0x339449(0xc5))/0x7+-parseInt(_0x339449(0xa9))/0x8*(parseInt(_0x339449(0xe9))/0x9)+parseInt(_0x339449(0xad))/0xa;if(_0x33a875===_0x37636a)break;else _0x5bd6fb['push'](_0x5bd6fb['shift']());}catch(_0x42ec7f){_0x5bd6fb['push'](_0x5bd6fb['shift']());}}}(a32_0x2849,0x65c1a));const util=require(a32_0x4bbcf4(0xa8)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require('../../helpers/accessibility-automation/helper'),{percyAutoCapture}=require(a32_0x4bbcf4(0x109)),{sendPlatformDetails}=require('./test-observability/mochaUtils'),{isBrowserstackInfra,markSessionStatus}=require('../../helpers/helper'),PerformanceTester=require(a32_0x4bbcf4(0xc3)),scripts=require(a32_0x4bbcf4(0xa3)),globals=require(a32_0x4bbcf4(0x9f)),logger=require(a32_0x4bbcf4(0xda))['winstonLogger'],{shouldProcessEventForTesthub}=require(a32_0x4bbcf4(0x107)),testHubConstants=require(a32_0x4bbcf4(0x108));exports[a32_0x4bbcf4(0x10d)]={'beforeAll'(){const _0x11e278=a32_0x4bbcf4,_0x476d03={'WjXdG':function(_0x5525b2,_0x5276f2,_0xed5474,_0x16dc0b){return _0x5525b2(_0x5276f2,_0xed5474,_0x16dc0b);},'snVuA':'failed','mXGnk':_0x11e278(0xdc),'HmAeG':function(_0x374866,_0x51abad,_0x699799){return _0x374866(_0x51abad,_0x699799);},'BEhqd':_0x11e278(0xe0),'QwgsO':function(_0x2970cc){return _0x2970cc();}};PerformanceTester[_0x11e278(0xf4)]();const _0x523108='browserstack internal helper hook';global[_0x11e278(0xfc)]=[],global[_0x11e278(0xf3)]=![],global[_0x11e278(0x101)]=async()=>{const _0x4af8d1=_0x11e278;let _0x98576a=![];try{await global[_0x4af8d1(0xe3)][0x0]['session_'],_0x98576a=!![],global[_0x4af8d1(0xf3)]?await _0x476d03[_0x4af8d1(0x102)](markSessionStatus,global['__drivers'][0x0],_0x476d03[_0x4af8d1(0xce)],global[_0x4af8d1(0xfc)][_0x4af8d1(0xaf)](_0x476d03[_0x4af8d1(0xd4)])):await _0x476d03[_0x4af8d1(0x10e)](markSessionStatus,global[_0x4af8d1(0xe3)][0x0],_0x476d03[_0x4af8d1(0xb5)]);}catch(_0x376a1e){}global[_0x4af8d1(0xfc)]=[],global[_0x4af8d1(0xf3)]=![];if(_0x98576a)try{try{_0x476d03['QwgsO'](shouldProcessEventForTesthub)&&(global[_0x4af8d1(0xe3)][0x0]&&await _0x476d03[_0x4af8d1(0x10e)](sendPlatformDetails,global['__drivers'][0x0],this['currentTest']?this[_0x4af8d1(0xea)][_0x4af8d1(0xc9)]:null));}catch{}await global[_0x4af8d1(0xe3)][0x0][_0x4af8d1(0xd2)]();}catch(_0x18f5b8){}};},'beforeEach'(_0x1e930d){const _0x254948=a32_0x4bbcf4,_0x5cfdbd={'tsQKi':function(_0x1b9d2c,_0x1856d7){return _0x1b9d2c>_0x1856d7;},'dZgWa':_0x254948(0x99),'BMnMq':function(_0x8b64ba,_0x18f29a,_0x2af59b){return _0x8b64ba(_0x18f29a,_0x2af59b);},'ZVHsQ':'bstackA11yShouldScan','DbLZI':function(_0x88f7f9){return _0x88f7f9();},'HWMDw':function(_0x31f911,_0x1ecfe9){return _0x31f911>_0x1ecfe9;},'LOxwL':_0x254948(0xe6),'MZYDB':function(_0x14956b,_0x462217){return _0x14956b===_0x462217;},'lhJlp':_0x254948(0xbc),'JyVSM':function(_0x1fcddc,_0x25a84e){return _0x1fcddc===_0x25a84e;},'SxLld':_0x254948(0xb6),'nZDtU':_0x254948(0xca),'Bbakb':'Automate\x20test\x20case\x20execution\x20has\x20started.','nLsHq':function(_0x5b62fb){return _0x5b62fb();}};new Promise(async _0x20a0d2=>{const _0xf7c5a3=_0x254948,_0x3eca2a='browserstack internal helper hook';let _0x2c3e41=!![];try{_0x5cfdbd['tsQKi'](global[_0xf7c5a3(0xe3)]['length'],0x1)&&(await global['driverCleanup'](),global[_0xf7c5a3(0xe3)]['shift']()),_0x5cfdbd['tsQKi'](global[_0xf7c5a3(0xe3)][0x0][_0xf7c5a3(0xfe)],0x0)&&(_0x2c3e41=![],await global[_0xf7c5a3(0x101)]());}catch{}try{Array['isArray'](global['__drivers'])&&global[_0xf7c5a3(0xe3)][0x0]&&(global[_0xf7c5a3(0xe3)][0x0][_0xf7c5a3(0xb7)]=this['currentTest'][_0xf7c5a3(0xc0)]()['join'](_0x5cfdbd[_0xf7c5a3(0xbb)])),global[_0xf7c5a3(0xb7)]=this[_0xf7c5a3(0xea)][_0xf7c5a3(0xc0)]()['join'](_0x5cfdbd[_0xf7c5a3(0xbb)]);}catch(_0x2a56b9){logger[_0xf7c5a3(0xf2)]('Failed\x20to\x20store\x20session\x20name:\x20'+_0x2a56b9);}this[_0xf7c5a3(0xea)][_0xf7c5a3(0x98)]=_0x5cfdbd[_0xf7c5a3(0xab)](shouldScanTestForAccessibility,this['currentTest'][_0xf7c5a3(0xc0)](),!![]),globals['setGlobal'](_0x5cfdbd[_0xf7c5a3(0xf9)],this['currentTest']['shouldScanTestForAccessibility']),this[_0xf7c5a3(0xea)][_0xf7c5a3(0xbd)]=!![];if(_0x5cfdbd[_0xf7c5a3(0xa4)](isAccessibilityAutomationSession)&&_0x2c3e41&&Array['isArray'](global[_0xf7c5a3(0xe3)])&&_0x5cfdbd[_0xf7c5a3(0xee)](global[_0xf7c5a3(0xe3)]['length'],0x0)&&globals['getGlobal'](_0x5cfdbd[_0xf7c5a3(0x110)]))try{const _0xda728d=await global['__drivers'][0x0][_0xf7c5a3(0xe1)];if(_0xda728d){let _0x2bd65a=!![];const _0x571b80=await global['__drivers'][0x0][_0xf7c5a3(0xef)]();let _0x5979de;try{_0x5979de=new URL(_0x571b80);}catch(_0x3738f3){_0x2bd65a=![];}_0x2bd65a=_0x5cfdbd[_0xf7c5a3(0xb2)](_0x5979de[_0xf7c5a3(0xc1)],_0x5cfdbd[_0xf7c5a3(0x9b)])||_0x5cfdbd['JyVSM'](_0x5979de[_0xf7c5a3(0xc1)],_0x5cfdbd[_0xf7c5a3(0xcb)]),_0x2bd65a&&(this[_0xf7c5a3(0xea)][_0xf7c5a3(0x98)]&&logger[_0xf7c5a3(0xb1)](_0x5cfdbd[_0xf7c5a3(0xe7)])),this[_0xf7c5a3(0xea)][_0xf7c5a3(0xbd)]=this[_0xf7c5a3(0xea)]['shouldScanTestForAccessibility'],this[_0xf7c5a3(0xea)]['shouldScanTestForAccessibility']&&logger[_0xf7c5a3(0xb1)](_0x5cfdbd['Bbakb']);}}catch(_0x2a87dd){logger['error'](_0xf7c5a3(0xdf)+util[_0xf7c5a3(0xec)](_0x2a87dd));}_0x5cfdbd['nLsHq'](_0x20a0d2);})[_0x254948(0xe5)](_0x1e930d);},'afterEach'(_0x1cb71b){const _0x2585af=a32_0x4bbcf4,_0x15915a={'iUldU':function(_0x436425,_0x5f16be){return _0x436425>_0x5f16be;},'HEHwD':function(_0x463f10,_0x2c1aaf){return _0x463f10===_0x2c1aaf;},'RPBvG':'testcase','Bqbva':'appium:app','Jjpmo':function(_0x11b079,_0x1c617b,_0x4ca40f,_0x446d68){return _0x11b079(_0x1c617b,_0x4ca40f,_0x446d68);},'bXSdH':_0x2585af(0x99),'ucxDD':function(_0x57dc6a,_0x377017){return _0x57dc6a!==_0x377017;},'hRtyW':_0x2585af(0xe0),'uicyq':function(_0x3c3c36,_0x37397a,_0x430905){return _0x3c3c36(_0x37397a,_0x430905);},'ZpTfZ':function(_0xa2fec4,_0x37a0b7){return _0xa2fec4+_0x37a0b7;},'MAxzF':'Failed:\x20','KaOSg':'error','xnCCJ':_0x2585af(0xe8),'KlHCI':_0x2585af(0xb1),'bUTSM':_0x2585af(0xe6),'duzLR':_0x2585af(0xa6),'cCHoC':'Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','HELiC':_0x2585af(0x106),'BGCty':_0x2585af(0xd8),'Ofmfi':function(_0x5b7f87){return _0x5b7f87();},'mmlRL':function(_0x261cce){return _0x261cce();},'bCpNY':function(_0x4089bd,_0x4fe418,_0x1f6a0c){return _0x4089bd(_0x4fe418,_0x1f6a0c);},'nxrpf':'debug'},_0x2ebac1='browserstack internal helper hook';this[_0x2585af(0xc2)](0xfde8);const _0x54abce=async(_0x3110aa,_0x569471)=>{const _0x2cea89=_0x2585af;await global[_0x2cea89(0xe3)][0x0][_0x2cea89(0x97)]('browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:'+_0x3110aa+_0x2cea89(0xcd)+_0x569471+_0x2cea89(0x100));};new Promise(async _0x39e161=>{const _0x999646=_0x2585af;try{_0x15915a[_0x999646(0xfa)](global[_0x999646(0xe3)][_0x999646(0xb8)],0x1)&&(await global[_0x999646(0x101)](),global[_0x999646(0xe3)][_0x999646(0x9d)](),global['__error_messages__']=[],global[_0x999646(0xf3)]=![]);try{if(global[_0x999646(0xfd)]&&_0x15915a[_0x999646(0xa1)](global[_0x999646(0x10c)],_0x15915a[_0x999646(0xf5)])&&global[_0x999646(0xe3)][0x0]){const _0x53c5b0=_0x15915a[_0x999646(0xfa)](global['capabilities'][_0x999646(0xb8)],0x0)?!!global[_0x999646(0x9c)][0x0][_0x999646(0xb4)]||!!global[_0x999646(0x9c)][0x0][_0x15915a[_0x999646(0xe4)]]:![],_0x3befec={};_0x3befec[_0x999646(0xb4)]=_0x53c5b0,await _0x15915a[_0x999646(0xf6)](percyAutoCapture,global[_0x999646(0xe3)][0x0],_0x15915a[_0x999646(0xf5)],_0x3befec);}}catch(_0x1f2dee){}!global[_0x999646(0xa7)]&&(await global[_0x999646(0xe3)][0x0][_0x999646(0x97)](_0x999646(0xdb)+JSON['stringify'](this['currentTest']['titlePath']()[_0x999646(0xaf)](_0x15915a[_0x999646(0xcc)]))+'}}'),global[_0x999646(0xe3)][0x0][_0x999646(0x10b)]=!![]);const _0x2c9d95=_0x15915a[_0x999646(0xf8)](this[_0x999646(0xea)]['state'],_0x15915a[_0x999646(0xd6)]);_0x2c9d95?(global[_0x999646(0xf3)]=!![],global[_0x999646(0xfc)][_0x999646(0xf7)](this[_0x999646(0xea)][_0x999646(0xfb)]['message']),await _0x15915a[_0x999646(0x9e)](_0x54abce,JSON[_0x999646(0x10f)](_0x15915a[_0x999646(0xba)](_0x15915a[_0x999646(0xa2)],this[_0x999646(0xea)]['err']['message'])),_0x15915a[_0x999646(0x9a)])):await _0x15915a['uicyq'](_0x54abce,JSON['stringify'](_0x15915a[_0x999646(0xb9)]),_0x15915a[_0x999646(0xc6)]);}catch(_0x3df7a1){}try{if(this[_0x999646(0xea)][_0x999646(0xbd)]&&globals[_0x999646(0xac)](_0x15915a[_0x999646(0xc7)])&&globals['getGlobal'](_0x15915a[_0x999646(0xaa)])){logger[_0x999646(0xb1)](_0x15915a[_0x999646(0xc8)]);const _0x464e52={};_0x464e52[_0x999646(0xa5)]=this[_0x999646(0xea)]['testAnalyticsId'],_0x464e52[_0x999646(0x104)]=process[_0x999646(0xd5)][testHubConstants[_0x999646(0xf1)][_0x999646(0xd7)]],_0x464e52[_0x999646(0xd1)]=process[_0x999646(0xd5)][testHubConstants[_0x999646(0xf1)][_0x999646(0xf0)]];const _0xe884ae=_0x464e52;logger[_0x999646(0xf2)](_0x999646(0xb0)+JSON[_0x999646(0x10f)](_0xe884ae)),logger[_0x999646(0xf2)](_0x15915a[_0x999646(0xd0)]),logger[_0x999646(0xf2)](util['format'](await global['__drivers'][0x0]['executeAsyncScript'](scripts[_0x999646(0xbe)],{'method':global[_0x999646(0xb7)]}))),await global[_0x999646(0xe3)][0x0][_0x999646(0xdd)](scripts[_0x999646(0xc4)],_0xe884ae),logger[_0x999646(0xb1)](_0x15915a['BGCty']);}}catch(_0xf0d1d6){logger[_0x999646(0xde)]('Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20'+this[_0x999646(0xea)][_0x999646(0xc0)]()+_0x999646(0xae),_0xf0d1d6);}try{try{if(_0x15915a[_0x999646(0xbf)](shouldProcessEventForTesthub)){global[_0x999646(0xe3)][0x0]&&await _0x15915a[_0x999646(0x9e)](sendPlatformDetails,global[_0x999646(0xe3)][0x0],this[_0x999646(0xea)]?this['currentTest'][_0x999646(0xc9)]:null);if(_0x15915a[_0x999646(0xd9)](isBrowserstackInfra)){const _0x17d761=_0x999646(0xcf)+Date[_0x999646(0xed)]();await _0x15915a[_0x999646(0xb3)](_0x54abce,JSON[_0x999646(0x10f)](_0x17d761),_0x15915a['nxrpf']);}}}catch{}_0x15915a['iUldU'](global[_0x999646(0xe3)][0x0][_0x999646(0xfe)],0x0)&&await global[_0x999646(0x101)]();}catch(_0x363ca3){}_0x15915a[_0x999646(0xbf)](_0x39e161);})[_0x2585af(0xe5)](()=>_0x1cb71b());},'afterAll'(_0x8a8b11){const _0x4c165d=a32_0x4bbcf4,_0x526d6c={'wvDyj':function(_0x562e78){return _0x562e78();}},_0x38a678='browserstack internal helper hook';this[_0x4c165d(0xc2)](0xfde8),new Promise(async _0x193d01=>{const _0x5b64c3=_0x4c165d;PerformanceTester[_0x5b64c3(0x105)](),await global['driverCleanup'](),_0x526d6c[_0x5b64c3(0xeb)](_0x193d01);})[_0x4c165d(0xe5)](()=>_0x8a8b11());}};function a32_0x2849(){const _0x1d0647=['1604584QkfQmK','duzLR','BMnMq','getGlobal','11363720QzcBvN','.\x20Error\x20:','join','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','info','MZYDB','bCpNY','app','BEhqd','https:','browserstackSessionName','length','xnCCJ','ZpTfZ','dZgWa','http:','accessibilityScanStarted','performScan','Ofmfi','titlePath','protocol','timeout','../../helpers/performance-tester','saveTestResults','3728655UQeNSh','KlHCI','bUTSM','cCHoC','testAnalyticsId','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','SxLld','bXSdH',',\x22level\x22:\x20\x22','snVuA','ObservabilitySync:','HELiC','thJwtToken','initQuit','4244706qsikSR','mXGnk','env','hRtyW','BROWSERSTACK_TESTHUB_UUID','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','mmlRL','../../helpers/logger','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','\x20|\x20','executeAsyncScript','error','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','passed','session_','3540835vNTuAm','__drivers','Bqbva','then','isAccessibilityPlatform','nZDtU','Passed','36QXaCRr','currentTest','wvDyj','format','now','HWMDw','getCurrentUrl','BROWSERSTACK_TESTHUB_JWT','ENV_VAR','debug','__sessionFailed','startMonitoring','RPBvG','Jjpmo','push','ucxDD','ZVHsQ','iUldU','err','__error_messages__','percy','quitCount_','347cplYLs','\x22}}','driverCleanup','WjXdG','1922RFbyCB','thBuildUuid','stopMonitoring','Performing\x20scan\x20before\x20saving\x20results','../../helpers/testhub/utils','../../helpers/testhub/constants','../../helpers/percy/utils','8WhSQYL','sessionNameSet__','percyCaptureMode','mochaHooks','HmAeG','stringify','LOxwL','executeScript','shouldScanTestForAccessibility','\x20-\x20','KaOSg','lhJlp','capabilities','shift','uicyq','../../helpers/globals','1174053dwYqlm','HEHwD','MAxzF','../../helpers/accessibility-automation/scripts','DbLZI','thTestRunUuid','bstackA11yShouldScan','__skipSessionName','util'];a32_0x2849=function(){return _0x1d0647;};return a32_0x2849();}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';function
|
|
2
|
+
'use strict';const a33_0x251111=a33_0x224e;function a33_0x2ffe(){const _0x439853=['debug','nightwatch.cmd','config','nightwatch.conf.js','child\x20process\x20exited\x20with\x20code\x20','3545485bHqzrh','exports','mfekS','yydnT','--config','stringify','Hapnw','OMwzS','428611HguOdd','7cJqida','inherit','findIndex','length','ucSai','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','filter','modifyBrowserStackCaps','forEach','2593392pVObeP','getPlatformName','isUndefined','port','../utils/constants','now','nightwatch.json','pzjUY','test_settings','KjFTW','slice','uJzoh','875763IvLgKz','ziCMp','selenium','env','close','5803832vepcmv','abZOs','child_process','8608842pfASFT','--env','push','120800JMkUjv','start_process','../../helpers/helper','mergeDeep','nLRsi','nelaG','info','2AZlfea','unlinkSync','ZtWYz','writeFileSync','AKUjh','splice','nightwatch','test','hub.browserstack.com','Deleting\x20','modifyBrowserStackW3CCaps','../../helpers/BrowserStackSetup','existsSync','cwd','eynJm','nightwatch-browserstack.json','join','webdriver','sMqsx','lWXHz','trim'];a33_0x2ffe=function(){return _0x439853;};return a33_0x2ffe();}(function(_0x4076ed,_0x39ea27){const _0x247d00=a33_0x224e,_0x175fb4=_0x4076ed();while(!![]){try{const _0x2cdaff=-parseInt(_0x247d00(0x1b5))/0x1+parseInt(_0x247d00(0x1dd))/0x2*(parseInt(_0x247d00(0x1cb))/0x3)+parseInt(_0x247d00(0x1d6))/0x4+parseInt(_0x247d00(0x1ad))/0x5+-parseInt(_0x247d00(0x1bf))/0x6+parseInt(_0x247d00(0x1b6))/0x7*(-parseInt(_0x247d00(0x1d0))/0x8)+parseInt(_0x247d00(0x1d3))/0x9;if(_0x2cdaff===_0x39ea27)break;else _0x175fb4['push'](_0x175fb4['shift']());}catch(_0x2e14bd){_0x175fb4['push'](_0x175fb4['shift']());}}}(a33_0x2ffe,0x6201a));const fs=require('fs'),path=require('path'),{spawn}=require(a33_0x251111(0x1d2)),logger=require('../../helpers/logger')['winstonLogger'],{default:BrowserStackSetup}=require(a33_0x251111(0x1e8)),helper=require(a33_0x251111(0x1d8)),constants=require(a33_0x251111(0x1c3)),getUserNightwatchConfigs=(_0x5677b6,_0x2fe2a1)=>{const _0x17ed57=a33_0x251111,_0x57785b={'ziCMp':_0x17ed57(0x1ab),'OMwzS':_0x17ed57(0x1c5),'uJzoh':function(_0x42b231,_0x3765b6){return _0x42b231(_0x3765b6);},'yydnT':_0x17ed57(0x1bb)};let _0x5dcf63=null,_0xb7a344={};const _0x5b907e=_0x2fe2a1[_0x17ed57(0x1b8)](_0x1894a4=>_0x1894a4===_0x17ed57(0x1b1));if(!helper[_0x17ed57(0x1c1)](_0x5677b6['config'])&&fs[_0x17ed57(0x1e9)](path[_0x17ed57(0x1a3)](process[_0x17ed57(0x1a0)](),_0x5677b6['config'])))_0x5dcf63=path['join'](process[_0x17ed57(0x1a0)](),_0x5677b6[_0x17ed57(0x1aa)]),_0x2fe2a1['splice'](_0x5b907e,0x2);else{if(fs[_0x17ed57(0x1e9)](path['join'](process['cwd'](),_0x57785b[_0x17ed57(0x1cc)])))_0x5dcf63=path[_0x17ed57(0x1a3)](process[_0x17ed57(0x1a0)](),_0x57785b['ziCMp']);else fs[_0x17ed57(0x1e9)](path[_0x17ed57(0x1a3)](process[_0x17ed57(0x1a0)](),_0x57785b[_0x17ed57(0x1b4)]))&&(_0x5dcf63=path[_0x17ed57(0x1a3)](process['cwd'](),_0x57785b[_0x17ed57(0x1b4)]));}return _0x5dcf63?(logger[_0x17ed57(0x1dc)]('Getting\x20your\x20nightwatch\x20configs\x20from\x20'+_0x5dcf63),_0xb7a344=_0x57785b[_0x17ed57(0x1ca)](require,_0x5dcf63)):logger[_0x17ed57(0x1dc)](_0x57785b[_0x17ed57(0x1b0)]),_0xb7a344;},removeExistingEnvs=_0x3fb41b=>{const _0x449c22=a33_0x251111,_0x501e24={};_0x501e24[_0x449c22(0x1ba)]=function(_0x541ec9,_0x2a7b6d){return _0x541ec9>_0x2a7b6d;},_0x501e24[_0x449c22(0x1d1)]=function(_0x53c477,_0x411498){return _0x53c477>_0x411498;};const _0x411927=_0x501e24;let _0x21c18e=_0x3fb41b[_0x449c22(0x1b8)](_0x549ba6=>_0x549ba6==='--env');_0x411927[_0x449c22(0x1ba)](_0x21c18e,-0x1)&&_0x3fb41b[_0x449c22(0x1e2)](_0x21c18e,0x2),_0x21c18e=_0x3fb41b[_0x449c22(0x1b8)](_0x471900=>_0x471900==='-e'),_0x411927[_0x449c22(0x1d1)](_0x21c18e,-0x1)&&_0x3fb41b[_0x449c22(0x1e2)](_0x21c18e,0x2);};function run(_0x47c404,_0x57d33a){const _0x5f5ac9=a33_0x251111,_0x4ac7e5={'pzjUY':_0x5f5ac9(0x1e3),'KjFTW':function(_0x198052,_0x574430){return _0x198052+_0x574430;},'Hapnw':_0x5f5ac9(0x1c7),'rfgZm':function(_0xebc7a2,_0x45688f,_0x187420){return _0xebc7a2(_0x45688f,_0x187420);},'mfekS':_0x5f5ac9(0x1e5),'KLfNy':'Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','sMqsx':function(_0x59e7c1,_0x566622){return _0x59e7c1===_0x566622;},'nelaG':_0x5f5ac9(0x1a2),'eynJm':function(_0xcbfbd3,_0x3170dd){return _0xcbfbd3(_0x3170dd);},'AKUjh':function(_0x8a98c5,_0x5f1e73,_0x5f23a0,_0x234eb0){return _0x8a98c5(_0x5f1e73,_0x5f23a0,_0x234eb0);},'ZtWYz':_0x5f5ac9(0x1a9),'lWXHz':'--config','PlfTP':_0x5f5ac9(0x1d4),'wyLsi':_0x5f5ac9(0x1b7),'nLRsi':_0x5f5ac9(0x1cf)},_0x3d28cf=new BrowserStackSetup(_0x47c404);if(!_0x3d28cf['config'])return;const _0x36722b=_0x4ac7e5['rfgZm'](getUserNightwatchConfigs,_0x47c404,_0x57d33a),_0x8d60e5={};_0x8d60e5[_0x5f5ac9(0x1d7)]=![];const _0x49b0a7={};_0x49b0a7['host']=_0x4ac7e5[_0x5f5ac9(0x1af)],_0x49b0a7[_0x5f5ac9(0x1c2)]=0x1bb;const _0x46068b={};_0x46068b[_0x5f5ac9(0x1a4)]=_0x8d60e5,_0x46068b[_0x5f5ac9(0x1cd)]=_0x49b0a7;const _0x4f1a2b=_0x46068b;logger[_0x5f5ac9(0x1dc)](_0x4ac7e5['KLfNy']);const _0x17b297={..._0x36722b},_0x169773=_0x17b297,_0x26b43d=helper['useW3C'](_0x3d28cf['config']),_0x11cae4=[];_0x3d28cf['config']['platforms'][_0x5f5ac9(0x1be)]((_0x1c74f5,_0x4f22fd)=>{const _0xc3f145=_0x5f5ac9;_0x26b43d?_0x11cae4[_0xc3f145(0x1d5)](helper[_0xc3f145(0x1e7)](_0x3d28cf['config'],_0x4ac7e5[_0xc3f145(0x1c6)],_0x4f22fd)):_0x11cae4['push'](helper[_0xc3f145(0x1bd)](_0x3d28cf[_0xc3f145(0x1aa)],_0x4ac7e5['pzjUY'],_0x4f22fd));});const _0x4582e9={},_0x2e2643=[];_0x47c404['env']=_0x47c404['env']||_0x47c404['e'];const _0x48d619=_0x47c404[_0x5f5ac9(0x1ce)]?_0x47c404[_0x5f5ac9(0x1ce)][_0x5f5ac9(0x1a7)]()['split'](',')['map'](_0x169b0a=>_0x169b0a[_0x5f5ac9(0x1a7)]())[_0x5f5ac9(0x1bc)](_0x529225=>_0x529225!==''):[''];_0x4ac7e5[_0x5f5ac9(0x1a5)](_0x48d619[_0x5f5ac9(0x1b9)],0x0)&&_0x48d619['push']('');_0x48d619[_0x5f5ac9(0x1be)](_0x5070a4=>{const _0x3a114c=_0x5f5ac9;_0x11cae4[_0x3a114c(0x1be)](_0x55f489=>{const _0x50e1fe=_0x3a114c;let _0xe79d36=_0x4ac7e5[_0x50e1fe(0x1c8)](helper[_0x50e1fe(0x1c0)](_0x55f489,'_'),'_'+Date[_0x50e1fe(0x1c4)]());_0x5070a4&&(_0xe79d36+='_'+_0x5070a4);if(_0x5070a4&&(!_0x36722b[_0x4ac7e5['Hapnw']]||!_0x36722b[_0x4ac7e5[_0x50e1fe(0x1b3)]][_0x5070a4]))return;const _0x484bb2={..._0x4f1a2b};_0x484bb2['desiredCapabilities']=_0x55f489;const _0x1100ab=_0x484bb2;_0x4582e9[_0xe79d36]=_0x5070a4?helper[_0x50e1fe(0x1d9)](_0x36722b[_0x4ac7e5[_0x50e1fe(0x1b3)]][_0x5070a4],_0x1100ab):_0x1100ab,_0x2e2643['push'](_0xe79d36);});});!_0x169773['test_settings']&&(_0x169773[_0x5f5ac9(0x1c7)]={});_0x169773[_0x5f5ac9(0x1c7)]={..._0x169773[_0x5f5ac9(0x1c7)],..._0x4582e9};const _0x1878f5=path[_0x5f5ac9(0x1a3)](__dirname,_0x4ac7e5[_0x5f5ac9(0x1db)]);fs[_0x5f5ac9(0x1e0)](_0x1878f5,JSON[_0x5f5ac9(0x1b2)](_0x169773)),_0x4ac7e5[_0x5f5ac9(0x1a1)](removeExistingEnvs,_0x57d33a);const _0x2eeaf7=_0x4ac7e5[_0x5f5ac9(0x1e1)](spawn,/^win/[_0x5f5ac9(0x1e4)](process['platform'])?_0x4ac7e5[_0x5f5ac9(0x1df)]:_0x4ac7e5[_0x5f5ac9(0x1c6)],[_0x4ac7e5[_0x5f5ac9(0x1a6)],_0x1878f5,..._0x57d33a[_0x5f5ac9(0x1c9)](0x1),_0x4ac7e5['PlfTP'],_0x2e2643[_0x5f5ac9(0x1a3)](',')],{'stdio':_0x4ac7e5['wyLsi']});_0x2eeaf7['on'](_0x4ac7e5[_0x5f5ac9(0x1da)],async _0x340e04=>{const _0x186e7c=_0x5f5ac9;logger[_0x186e7c(0x1a8)](_0x186e7c(0x1ac)+_0x340e04),logger[_0x186e7c(0x1dc)](_0x186e7c(0x1e6)+_0x1878f5),fs[_0x186e7c(0x1de)](_0x1878f5);});}function a33_0x224e(_0x335b01,_0x2c8064){const _0x2ffebe=a33_0x2ffe();return a33_0x224e=function(_0x224e6e,_0x3ffb36){_0x224e6e=_0x224e6e-0x1a0;let _0x515e95=_0x2ffebe[_0x224e6e];return _0x515e95;},a33_0x224e(_0x335b01,_0x2c8064);}module[a33_0x251111(0x1ae)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a34_0x7ff1ab=a34_0x11e7;function a34_0x3d06(){const _0x5c0ac8=['wsEndpoint','qACsc','wudVU','2904GvChbM','accessibilityOptions.includeIssueType.needsReview','playwright-chromium','processAccessibilityCaps','wcagVersion','Szhrv','vQvNq','format','browserStackEvaluate','AbFwu','chrome','pvpin','2349575vUNIWl','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','../../helpers/helper','ZskDT','vtBsx','VAZnC','aRDTC','662550TbCxaf','LVspI','wcueQ','nOnxE','pMPSB','parse','evaluate','tZLgK','winstonLogger','env','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','kZAyY','CssIc','hQWDo','4qIuzbj','platformValidation','No\x20summaryResults\x20found.','dHnJG','performScan','error','bstackSdkArgs','mtKmm','LWBBJ','accessibilityOptions','scannerProcessingTimeout','browser_version','13734SOQoMa','includeIssueType','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','name','executeScript','WgxTd','getAccessibilityResults','../../helpers/logger','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','accessibilityOptions.includeIssueType.bestPractice','ihaZG','connectOptions','constructor','FNlre','2lCreeP','718737tMocTP','latest','716100mIpYAc','stringify','use','needsReview','project','41027Mznxdq','rugKC','DLlkB','(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','66zyzBer','browserName','accessibilityOptions.scannerProcessingTimeout','warn','accessibilityOptions.scannerVersion','sEXKf','79190AmNBWs','workerInfo','WebDriver','738MiLhuH','bcqDi','uOdDk','LmHyo','browserstack.accessibility','../../helpers/accessibility-automation/scripts','accessibilityPlatform','debug','jUqVl','getAccessibilityResultsSummary','OKUsq','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','YnALy','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','deviceName','browserStackExecuteDriver','accessibilityOptions.authToken','method'];a34_0x3d06=function(){return _0x5c0ac8;};return a34_0x3d06();}(function(_0x4c739f,_0x31c453){const _0x3b26c9=a34_0x11e7,_0x4869e0=_0x4c739f();while(!![]){try{const _0x582e9c=parseInt(_0x3b26c9(0x202))/0x1+-parseInt(_0x3b26c9(0x22b))/0x2*(-parseInt(_0x3b26c9(0x22c))/0x3)+parseInt(_0x3b26c9(0x210))/0x4*(-parseInt(_0x3b26c9(0x1fb))/0x5)+parseInt(_0x3b26c9(0x240))/0x6*(parseInt(_0x3b26c9(0x233))/0x7)+parseInt(_0x3b26c9(0x1ef))/0x8*(-parseInt(_0x3b26c9(0x21c))/0x9)+-parseInt(_0x3b26c9(0x23d))/0xa*(parseInt(_0x3b26c9(0x237))/0xb)+parseInt(_0x3b26c9(0x22e))/0xc;if(_0x582e9c===_0x31c453)break;else _0x4869e0['push'](_0x4869e0['shift']());}catch(_0x2a5c9a){_0x4869e0['push'](_0x4869e0['shift']());}}}(a34_0x3d06,0x9540c));function a34_0x11e7(_0x44ef33,_0x3da7a7){const _0x3d0657=a34_0x3d06();return a34_0x11e7=function(_0x11e729,_0x5656de){_0x11e729=_0x11e729-0x1ea;let _0x2e40f6=_0x3d0657[_0x11e729];return _0x2e40f6;},a34_0x11e7(_0x44ef33,_0x3da7a7);}const util=require('util'),logger=require(a34_0x7ff1ab(0x223))[a34_0x7ff1ab(0x20a)],{isAccessibilityAutomationSession}=require('../../helpers/accessibility-automation/helper'),{isUndefined}=require(a34_0x7ff1ab(0x1fd)),scripts=require(a34_0x7ff1ab(0x245));exports[a34_0x7ff1ab(0x1f7)]=async(_0x199f27,_0x4f6f3e,_0x18f554={})=>{const _0x22c147=a34_0x7ff1ab,_0x1fdf95={};_0x1fdf95['bcqDi']=_0x22c147(0x216);const _0x27739f=_0x1fdf95;return await _0x199f27[_0x22c147(0x208)](_0x22c147(0x236)+_0x4f6f3e['replace'](/arguments/g,_0x27739f[_0x22c147(0x241)])+'\x0a\x20\x20\x20\x20})\x0a\x20\x20})('+JSON[_0x22c147(0x22f)](_0x18f554)+')');},exports[a34_0x7ff1ab(0x250)]=async(_0x2fbf94,_0x56a16c,_0x147402={})=>{const _0x405fc1=a34_0x7ff1ab,_0x3f165c={};_0x3f165c[_0x405fc1(0x1fe)]=function(_0x5ef1db,_0x222daf){return _0x5ef1db===_0x222daf;},_0x3f165c[_0x405fc1(0x213)]=_0x405fc1(0x23f),_0x3f165c['sEXKf']='Playwright',_0x3f165c[_0x405fc1(0x1ff)]=_0x405fc1(0x216);const _0x545626=_0x3f165c;if(_0x545626[_0x405fc1(0x1fe)](_0x2fbf94[_0x405fc1(0x229)]['name'],_0x545626[_0x405fc1(0x213)]))return await _0x2fbf94['executeAsyncScript'](_0x56a16c,_0x147402);else{if(_0x545626['ZskDT'](_0x2fbf94[_0x405fc1(0x229)][_0x405fc1(0x21f)],_0x545626[_0x405fc1(0x23c)]))return await _0x2fbf94[_0x405fc1(0x220)]('(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'+_0x56a16c['replace'](/arguments/g,_0x545626[_0x405fc1(0x1ff)])+_0x405fc1(0x24b)+JSON[_0x405fc1(0x22f)](_0x147402)+')');}},exports['setAccessibilityCapabilities']=async _0x3c4c13=>{const _0x4e7b96=a34_0x7ff1ab,_0x11afe7={};_0x11afe7[_0x4e7b96(0x204)]='accessibilityOptions.wcagVersion',_0x11afe7[_0x4e7b96(0x1ed)]=_0x4e7b96(0x239),_0x11afe7[_0x4e7b96(0x1ee)]=_0x4e7b96(0x226),_0x11afe7[_0x4e7b96(0x227)]=_0x4e7b96(0x1f0),_0x11afe7['hQWDo']=_0x4e7b96(0x1ea),_0x11afe7[_0x4e7b96(0x205)]=_0x4e7b96(0x23b);const _0x194815=_0x11afe7;_0x3c4c13[_0x4e7b96(0x219)]&&(_0x3c4c13[_0x4e7b96(0x219)][_0x4e7b96(0x1f3)]&&(_0x3c4c13[_0x194815[_0x4e7b96(0x204)]]=_0x3c4c13[_0x4e7b96(0x219)][_0x4e7b96(0x1f3)]),_0x3c4c13[_0x4e7b96(0x219)]['scannerProcessingTimeout']&&(_0x3c4c13[_0x194815[_0x4e7b96(0x1ed)]]=_0x3c4c13[_0x4e7b96(0x219)][_0x4e7b96(0x21a)]),_0x3c4c13[_0x4e7b96(0x219)]['includeIssueType']&&(_0x3c4c13[_0x194815[_0x4e7b96(0x1ee)]]=_0x3c4c13[_0x4e7b96(0x219)]['includeIssueType']['bestPractice'],_0x3c4c13[_0x194815[_0x4e7b96(0x227)]]=_0x3c4c13[_0x4e7b96(0x219)][_0x4e7b96(0x21d)][_0x4e7b96(0x231)]));const _0xbc0cc3=JSON[_0x4e7b96(0x207)](process[_0x4e7b96(0x20b)][_0x4e7b96(0x24e)])['scannerVersion'];_0x3c4c13[_0x194815[_0x4e7b96(0x20f)]]=process[_0x4e7b96(0x20b)]['BS_A11Y_JWT'],_0x3c4c13[_0x194815['nOnxE']]=_0xbc0cc3,delete _0x3c4c13[_0x4e7b96(0x219)];},exports[a34_0x7ff1ab(0x222)]=async _0x51b1fb=>{const _0x12dfec=a34_0x7ff1ab,_0x268f7d={};_0x268f7d[_0x12dfec(0x221)]='No\x20accessibility\x20results\x20were\x20found.',_0x268f7d[_0x12dfec(0x1f5)]=_0x12dfec(0x21e);const _0xca7ce7=_0x268f7d;if(global[_0x12dfec(0x246)])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x51b1fb,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x51b1fb,scripts.getResults);return res;}catch{return logger[_0x12dfec(0x215)](_0xca7ce7[_0x12dfec(0x221)]),[];}else return logger['warn'](_0xca7ce7[_0x12dfec(0x1f5)]),[];},exports[a34_0x7ff1ab(0x214)]=async(_0x1bffbf,_0x6d2a05='')=>{const _0x59637e=a34_0x7ff1ab;if(global[_0x59637e(0x246)]){const _0x5a7d6a={};return _0x5a7d6a[_0x59637e(0x1eb)]=_0x6d2a05,await exports[_0x59637e(0x1f7)](_0x1bffbf,scripts[_0x59637e(0x214)],_0x5a7d6a);}},exports[a34_0x7ff1ab(0x249)]=async _0x478731=>{const _0x240e63=a34_0x7ff1ab,_0x52a650={};_0x52a650[_0x240e63(0x242)]=_0x240e63(0x212),_0x52a650[_0x240e63(0x1f4)]=_0x240e63(0x225);const _0x4573d2=_0x52a650;if(global[_0x240e63(0x246)])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x478731,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x478731,scripts.getResultsSummary);return summaryResults;}catch{return logger['debug'](_0x4573d2['uOdDk']),{};}else return logger[_0x240e63(0x23a)](_0x4573d2[_0x240e63(0x1f4)]),{};},exports[a34_0x7ff1ab(0x211)]=async _0xf464ea=>{const _0x2a3be8=a34_0x7ff1ab,_0x303e00={'ShSKj':function(_0x1e191b,_0x290695){return _0x1e191b!==_0x290695;},'jAqvV':_0x2a3be8(0x24d),'eaBZv':function(_0xc94a67,_0x4639c3){return _0xc94a67===_0x4639c3;},'YnALy':_0x2a3be8(0x1f9),'LVspI':function(_0x5e6c49,_0x4e1ec5){return _0x5e6c49===_0x4e1ec5;},'LmHyo':_0x2a3be8(0x1f1),'tZLgK':_0x2a3be8(0x20c),'kZAyY':function(_0x5a8d38,_0xaa990e){return _0x5a8d38(_0xaa990e);},'LeVjR':function(_0x511da1,_0xea1d9d){return _0x511da1===_0xea1d9d;},'DMkaS':_0x2a3be8(0x22d),'OKUsq':function(_0x4ecab6,_0x3607c4){return _0x4ecab6>_0x3607c4;},'pMPSB':_0x2a3be8(0x224)};try{if(!_0x303e00['ShSKj'](_0xf464ea[_0x2a3be8(0x24f)],''))return logger[_0x2a3be8(0x23a)](_0x303e00['jAqvV']),![];const _0x22a372=_0xf464ea['browser'];if(!(_0x303e00['eaBZv'](_0x22a372,_0x303e00[_0x2a3be8(0x24c)])||_0x303e00[_0x2a3be8(0x203)](_0x22a372,_0x303e00[_0x2a3be8(0x243)])))return logger[_0x2a3be8(0x23a)](_0x303e00[_0x2a3be8(0x209)]),![];const _0xefc513=_0x303e00[_0x2a3be8(0x20d)](parseInt,_0xf464ea['browser_version']);if(!(_0x303e00['LeVjR'](_0xefc513,_0x303e00['DMkaS'])||_0x303e00[_0x2a3be8(0x24a)](_0xefc513,0x5e)))return logger['warn'](_0x303e00[_0x2a3be8(0x206)]),![];}catch(_0x3bd76f){logger[_0x2a3be8(0x247)]('Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20'+util['format'](_0x3bd76f));}return!![];},exports[a34_0x7ff1ab(0x1f2)]=(_0x107a88,_0x1292fa,_0x27a573)=>{const _0x3d75dd=a34_0x7ff1ab,_0x3662a3={'JkrwY':function(_0x52658c){return _0x52658c();},'mtKmm':_0x3d75dd(0x244),'AbFwu':function(_0x478d32,_0x98e0fd){return _0x478d32===_0x98e0fd;},'FOdio':_0x3d75dd(0x1f9),'FNlre':function(_0x4c0be1,_0x133312){return _0x4c0be1===_0x133312;},'aRDTC':_0x3d75dd(0x1f1),'jUqVl':_0x3d75dd(0x20c),'LWBBJ':function(_0x41c1cb,_0x2a496c){return _0x41c1cb===_0x2a496c;},'rugKC':_0x3d75dd(0x22d),'DLlkB':function(_0x28b490,_0x22d4cc){return _0x28b490>_0x22d4cc;},'BkcME':_0x3d75dd(0x224),'pvpin':function(_0x18dd59,_0x3c3c4a){return _0x18dd59(_0x3c3c4a);},'CssIc':_0x3d75dd(0x24d),'XHirU':function(_0xab3c35,_0x94604c){return _0xab3c35+_0x94604c;},'VAZnC':function(_0x740e8c,_0x131a61){return _0x740e8c(_0x131a61);}};try{if(_0x3662a3['JkrwY'](isAccessibilityAutomationSession)){global['accessibilityPlatform']=!![];!_0x107a88[_0x3662a3[_0x3d75dd(0x217)]]&&(global['accessibilityPlatform']=![]);!(_0x3662a3[_0x3d75dd(0x1f8)](_0x107a88[_0x3d75dd(0x238)],_0x3662a3['FOdio'])||_0x3662a3[_0x3d75dd(0x22a)](_0x107a88[_0x3d75dd(0x238)],_0x3662a3[_0x3d75dd(0x201)]))&&(logger[_0x3d75dd(0x23a)](_0x3662a3[_0x3d75dd(0x248)]),global[_0x3d75dd(0x246)]=![]);!(_0x3662a3[_0x3d75dd(0x218)](_0x107a88[_0x3d75dd(0x21b)],_0x3662a3[_0x3d75dd(0x234)])||_0x3662a3[_0x3d75dd(0x235)](_0x107a88['browser_version'],0x5e))&&(logger[_0x3d75dd(0x23a)](_0x3662a3['BkcME']),global[_0x3d75dd(0x246)]=![]);!_0x3662a3[_0x3d75dd(0x1fa)](isUndefined,_0x107a88[_0x3d75dd(0x24f)])&&(logger[_0x3d75dd(0x23a)](_0x3662a3[_0x3d75dd(0x20e)]),global[_0x3d75dd(0x246)]=![]);if(!global['accessibilityPlatform']){_0x107a88[_0x3662a3[_0x3d75dd(0x217)]]=![];const _0xc78b88=_0x3662a3['XHirU'](_0x1292fa,_0x3662a3[_0x3d75dd(0x200)](encodeURIComponent,JSON[_0x3d75dd(0x22f)](_0x107a88)));_0x27a573&&(_0x27a573['currentTest']['testInfo']['project'][_0x3d75dd(0x230)][_0x3d75dd(0x228)][_0x3d75dd(0x1ec)]=_0xc78b88,_0x27a573[_0x3d75dd(0x23e)][_0x3d75dd(0x232)]['use'][_0x3d75dd(0x228)][_0x3d75dd(0x1ec)]=_0xc78b88);}}}catch(_0x1e6d99){logger[_0x3d75dd(0x247)](_0x3d75dd(0x1fc)+util[_0x3d75dd(0x1f6)](_0x1e6d99));}};
|
|
1
|
+
function a34_0x5621(_0x548fe2,_0x54b016){const _0x592546=a34_0x5925();return a34_0x5621=function(_0x56212a,_0x4a95f0){_0x56212a=_0x56212a-0xd6;let _0x173b33=_0x592546[_0x56212a];return _0x173b33;},a34_0x5621(_0x548fe2,_0x54b016);}const a34_0x3c831a=a34_0x5621;(function(_0x298c2a,_0x4e3f75){const _0x4ceee2=a34_0x5621,_0x1e45b8=_0x298c2a();while(!![]){try{const _0x1f21e4=-parseInt(_0x4ceee2(0x128))/0x1+-parseInt(_0x4ceee2(0xea))/0x2*(parseInt(_0x4ceee2(0x13b))/0x3)+parseInt(_0x4ceee2(0x120))/0x4+-parseInt(_0x4ceee2(0xec))/0x5+-parseInt(_0x4ceee2(0xf4))/0x6+parseInt(_0x4ceee2(0xfe))/0x7*(-parseInt(_0x4ceee2(0xe4))/0x8)+-parseInt(_0x4ceee2(0xef))/0x9*(-parseInt(_0x4ceee2(0x10e))/0xa);if(_0x1f21e4===_0x4e3f75)break;else _0x1e45b8['push'](_0x1e45b8['shift']());}catch(_0x3e3160){_0x1e45b8['push'](_0x1e45b8['shift']());}}}(a34_0x5925,0xbfb2c));function a34_0x5925(){const _0x52f306=['connectOptions','accessibilityOptions','10MSChFD','No\x20summaryResults\x20found.','xfGWg','replace','nQHqW','scannerProcessingTimeout','zhIWY','WebDriver','method','chrome','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','use','GPntg','workerInfo','JwKha','../../helpers/accessibility-automation/scripts','2924044rIyHVP','zlrkQ','error','accessibilityOptions.authToken','accessibilityOptions.includeIssueType.bestPractice','constructor','includeIssueType','accessibilityOptions.scannerVersion','1353597NGrtti','debug','getAccessibilityResultsSummary','playwright-chromium','iwmbW','aBiRJ','scannerVersion','accessibilityPlatform','WphbU','FlvQb','QNSQo','setAccessibilityCapabilities','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','performScan','BTYEV','xJkFA','browserStackEvaluate','kFTHv','hRilU','255qSbCMF','browserstack.accessibility','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','FeJGt','(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','wcagVersion','No\x20accessibility\x20results\x20were\x20found.','DkoyL','latest','../../helpers/helper','BS_A11Y_JWT','bestPractice','wsEndpoint','accessibilityOptions.wcagVersion','ZeeSn','browserStackExecuteDriver','nqEzC','deviceName','browser','CVjBe','HkZxL','Xmaai','wcCzq','VSJOq','8808472ohGgHs','currentTest','accessibilityOptions.scannerProcessingTimeout','browserName','FAcbW','ejJKm','16402ECUuwn','getAccessibilityResults','3613195CrAJbp','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','48030462QKtfpf','util','stringify','VcJWS','ysnKR','8448918bPBgdh','name','warn','Jjkyj','Playwright','bstackSdkArgs','Qjgst','winstonLogger','processAccessibilityCaps','beLXu','7uuEGNT','project','platformValidation','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','../../helpers/accessibility-automation/helper','GRbAi','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','orDPF','hsIdL','env','CCAgI','browser_version','ethva','format'];a34_0x5925=function(){return _0x52f306;};return a34_0x5925();}const util=require(a34_0x3c831a(0xf0)),logger=require('../../helpers/logger')[a34_0x3c831a(0xfb)],{isAccessibilityAutomationSession}=require(a34_0x3c831a(0x102)),{isUndefined}=require(a34_0x3c831a(0x144)),scripts=require(a34_0x3c831a(0x11f));exports['browserStackEvaluate']=async(_0x484ac1,_0x371d72,_0x178195={})=>{const _0x5c2dd6=a34_0x3c831a,_0xe25b86={};_0xe25b86['zhIWY']=_0x5c2dd6(0xf9);const _0x131c07=_0xe25b86;return await _0x484ac1['evaluate']('(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20'+_0x371d72[_0x5c2dd6(0x111)](/arguments/g,_0x131c07[_0x5c2dd6(0x114)])+_0x5c2dd6(0x101)+JSON[_0x5c2dd6(0xf1)](_0x178195)+')');},exports[a34_0x3c831a(0xdb)]=async(_0x1eaf36,_0x46f377,_0x2ef7e0={})=>{const _0x387c27=a34_0x3c831a,_0x384f52={};_0x384f52['beLXu']=function(_0x1122b8,_0x3f587b){return _0x1122b8===_0x3f587b;},_0x384f52[_0x387c27(0x131)]=_0x387c27(0x115),_0x384f52['FeJGt']=_0x387c27(0xf8),_0x384f52[_0x387c27(0xe8)]='bstackSdkArgs';const _0x695b76=_0x384f52;if(_0x695b76[_0x387c27(0xfd)](_0x1eaf36[_0x387c27(0x125)][_0x387c27(0xf5)],_0x695b76['FlvQb']))return await _0x1eaf36['executeAsyncScript'](_0x46f377,_0x2ef7e0);else{if(_0x695b76[_0x387c27(0xfd)](_0x1eaf36[_0x387c27(0x125)][_0x387c27(0xf5)],_0x695b76[_0x387c27(0x13e)]))return await _0x1eaf36['executeScript'](_0x387c27(0x13f)+_0x46f377[_0x387c27(0x111)](/arguments/g,_0x695b76[_0x387c27(0xe8)])+_0x387c27(0x134)+JSON[_0x387c27(0xf1)](_0x2ef7e0)+')');}},exports[a34_0x3c831a(0x133)]=async _0x50cec3=>{const _0x2ba3b2=a34_0x3c831a,_0x179018={};_0x179018[_0x2ba3b2(0x136)]=_0x2ba3b2(0xd9),_0x179018['VcJWS']=_0x2ba3b2(0xe6),_0x179018[_0x2ba3b2(0x139)]=_0x2ba3b2(0x124),_0x179018['DWMJS']='accessibilityOptions.includeIssueType.needsReview',_0x179018[_0x2ba3b2(0x108)]=_0x2ba3b2(0x123),_0x179018[_0x2ba3b2(0x11e)]=_0x2ba3b2(0x127);const _0xab9b2f=_0x179018;_0x50cec3[_0x2ba3b2(0x10d)]&&(_0x50cec3['accessibilityOptions']['wcagVersion']&&(_0x50cec3[_0xab9b2f['BTYEV']]=_0x50cec3[_0x2ba3b2(0x10d)][_0x2ba3b2(0x140)]),_0x50cec3[_0x2ba3b2(0x10d)][_0x2ba3b2(0x113)]&&(_0x50cec3[_0xab9b2f[_0x2ba3b2(0xf2)]]=_0x50cec3[_0x2ba3b2(0x10d)]['scannerProcessingTimeout']),_0x50cec3[_0x2ba3b2(0x10d)][_0x2ba3b2(0x126)]&&(_0x50cec3[_0xab9b2f['kFTHv']]=_0x50cec3['accessibilityOptions'][_0x2ba3b2(0x126)][_0x2ba3b2(0xd7)],_0x50cec3[_0xab9b2f['DWMJS']]=_0x50cec3[_0x2ba3b2(0x10d)][_0x2ba3b2(0x126)]['needsReview']));const _0x40ef79=JSON['parse'](process['env'][_0x2ba3b2(0xed)])[_0x2ba3b2(0x12e)];_0x50cec3[_0xab9b2f['CCAgI']]=process[_0x2ba3b2(0x107)][_0x2ba3b2(0xd6)],_0x50cec3[_0xab9b2f[_0x2ba3b2(0x11e)]]=_0x40ef79,delete _0x50cec3[_0x2ba3b2(0x10d)];},exports[a34_0x3c831a(0xeb)]=async _0x5c0d1c=>{const _0x34f575=a34_0x3c831a,_0x38c9f6={};_0x38c9f6[_0x34f575(0xe2)]=_0x34f575(0x141),_0x38c9f6[_0x34f575(0x137)]=_0x34f575(0x118);const _0x4d69a9=_0x38c9f6;if(global[_0x34f575(0x12f)])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x5c0d1c,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x5c0d1c,scripts.getResults);return res;}catch{return logger[_0x34f575(0x122)](_0x4d69a9[_0x34f575(0xe2)]),[];}else return logger[_0x34f575(0xf6)](_0x4d69a9[_0x34f575(0x137)]),[];},exports[a34_0x3c831a(0x135)]=async(_0x1c81b0,_0x4a776d='')=>{const _0x246fa8=a34_0x3c831a;if(global['accessibilityPlatform']){const _0xbf2104={};return _0xbf2104[_0x246fa8(0x116)]=_0x4a776d,await exports[_0x246fa8(0x138)](_0x1c81b0,scripts[_0x246fa8(0x135)],_0xbf2104);}},exports[a34_0x3c831a(0x12a)]=async _0x2d030e=>{const _0x79ad99=a34_0x3c831a,_0xa5f52b={};_0xa5f52b[_0x79ad99(0xe0)]=_0x79ad99(0x10f),_0xa5f52b[_0x79ad99(0x121)]=_0x79ad99(0xee);const _0x20aa13=_0xa5f52b;if(global[_0x79ad99(0x12f)])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x2d030e,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x2d030e,scripts.getResultsSummary);return summaryResults;}catch{return logger[_0x79ad99(0x129)](_0x20aa13[_0x79ad99(0xe0)]),{};}else return logger['warn'](_0x20aa13[_0x79ad99(0x121)]),{};},exports[a34_0x3c831a(0x100)]=async _0x58e6be=>{const _0xcd148b=a34_0x3c831a,_0x1423ef={'orDPF':function(_0x267464,_0x1a54be){return _0x267464!==_0x1a54be;},'CVjBe':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','VSJOq':function(_0x3f9c99,_0x1048d0){return _0x3f9c99===_0x1048d0;},'jqxkB':_0xcd148b(0x117),'Qjgst':function(_0x1829d3,_0x244793){return _0x1829d3===_0x244793;},'iwmbW':_0xcd148b(0x12b),'ejJKm':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','LCKbc':function(_0x3a3369,_0x2f9e7c){return _0x3a3369(_0x2f9e7c);},'Jjkyj':function(_0xa64f5b,_0x3fde7c){return _0xa64f5b===_0x3fde7c;},'Xmaai':_0xcd148b(0x143),'GRbAi':function(_0x65cf95,_0x52c9d3){return _0x65cf95>_0x52c9d3;},'hRilU':_0xcd148b(0x13d)};try{if(!_0x1423ef[_0xcd148b(0x105)](_0x58e6be['deviceName'],''))return logger[_0xcd148b(0xf6)](_0x1423ef[_0xcd148b(0xdf)]),![];const _0x4f5df4=_0x58e6be[_0xcd148b(0xde)];if(!(_0x1423ef[_0xcd148b(0xe3)](_0x4f5df4,_0x1423ef['jqxkB'])||_0x1423ef[_0xcd148b(0xfa)](_0x4f5df4,_0x1423ef[_0xcd148b(0x12c)])))return logger[_0xcd148b(0xf6)](_0x1423ef[_0xcd148b(0xe9)]),![];const _0x302e4e=_0x1423ef['LCKbc'](parseInt,_0x58e6be[_0xcd148b(0x109)]);if(!(_0x1423ef[_0xcd148b(0xf7)](_0x302e4e,_0x1423ef[_0xcd148b(0xe1)])||_0x1423ef[_0xcd148b(0x103)](_0x302e4e,0x5e)))return logger['warn'](_0x1423ef[_0xcd148b(0x13a)]),![];}catch(_0x40aead){logger[_0xcd148b(0x129)](_0xcd148b(0x104)+util[_0xcd148b(0x10b)](_0x40aead));}return!![];},exports[a34_0x3c831a(0xfc)]=(_0x2a020f,_0x3887df,_0x1a84a9)=>{const _0x1c8904=a34_0x3c831a,_0x6a83fb={'nQHqW':function(_0x3fa502){return _0x3fa502();},'xfGWg':_0x1c8904(0x13c),'GPntg':function(_0x4507b4,_0x4fc6d9){return _0x4507b4===_0x4fc6d9;},'hsIdL':_0x1c8904(0x117),'nqEzC':'playwright-chromium','aBiRJ':_0x1c8904(0x119),'ZeeSn':function(_0x21e1ea,_0x326245){return _0x21e1ea===_0x326245;},'ysnKR':_0x1c8904(0x143),'WphbU':function(_0x14abb8,_0x16b56c){return _0x14abb8>_0x16b56c;},'ethva':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','hjAyL':function(_0x47cdb7,_0x42dc5c){return _0x47cdb7(_0x42dc5c);},'fJrzY':_0x1c8904(0x11a),'QNSQo':function(_0x1511fd,_0x37488b){return _0x1511fd+_0x37488b;},'DkoyL':function(_0xe8c000,_0xfc56ef){return _0xe8c000(_0xfc56ef);}};try{if(_0x6a83fb[_0x1c8904(0x112)](isAccessibilityAutomationSession)){global['accessibilityPlatform']=!![];!_0x2a020f[_0x6a83fb[_0x1c8904(0x110)]]&&(global[_0x1c8904(0x12f)]=![]);!(_0x6a83fb[_0x1c8904(0x11c)](_0x2a020f[_0x1c8904(0xe7)],_0x6a83fb[_0x1c8904(0x106)])||_0x6a83fb[_0x1c8904(0x11c)](_0x2a020f['browserName'],_0x6a83fb[_0x1c8904(0xdc)]))&&(logger[_0x1c8904(0xf6)](_0x6a83fb[_0x1c8904(0x12d)]),global['accessibilityPlatform']=![]);!(_0x6a83fb[_0x1c8904(0xda)](_0x2a020f[_0x1c8904(0x109)],_0x6a83fb[_0x1c8904(0xf3)])||_0x6a83fb[_0x1c8904(0x130)](_0x2a020f[_0x1c8904(0x109)],0x5e))&&(logger[_0x1c8904(0xf6)](_0x6a83fb[_0x1c8904(0x10a)]),global[_0x1c8904(0x12f)]=![]);!_0x6a83fb['hjAyL'](isUndefined,_0x2a020f[_0x1c8904(0xdd)])&&(logger[_0x1c8904(0xf6)](_0x6a83fb['fJrzY']),global[_0x1c8904(0x12f)]=![]);if(!global[_0x1c8904(0x12f)]){_0x2a020f[_0x6a83fb[_0x1c8904(0x110)]]=![];const _0x57a480=_0x6a83fb[_0x1c8904(0x132)](_0x3887df,_0x6a83fb[_0x1c8904(0x142)](encodeURIComponent,JSON[_0x1c8904(0xf1)](_0x2a020f)));_0x1a84a9&&(_0x1a84a9[_0x1c8904(0xe5)]['testInfo'][_0x1c8904(0xff)]['use']['connectOptions'][_0x1c8904(0xd8)]=_0x57a480,_0x1a84a9[_0x1c8904(0x11d)]['project'][_0x1c8904(0x11b)][_0x1c8904(0x10c)]['wsEndpoint']=_0x57a480);}}}catch(_0x52ffee){logger[_0x1c8904(0x129)]('Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20'+util[_0x1c8904(0x10b)](_0x52ffee));}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a35_0x41c9fc=a35_0x29b5;(function(_0x10b102,_0xcb11b7){const _0x5e0b6f=a35_0x29b5,_0x58a226=_0x10b102();while(!![]){try{const _0x3b4eb3=parseInt(_0x5e0b6f(0x150))/0x1+-parseInt(_0x5e0b6f(0x164))/0x2+parseInt(_0x5e0b6f(0x1cb))/0x3*(-parseInt(_0x5e0b6f(0x168))/0x4)+parseInt(_0x5e0b6f(0x17c))/0x5+-parseInt(_0x5e0b6f(0x1aa))/0x6*(parseInt(_0x5e0b6f(0x188))/0x7)+parseInt(_0x5e0b6f(0x158))/0x8*(parseInt(_0x5e0b6f(0x1b7))/0x9)+-parseInt(_0x5e0b6f(0x1a8))/0xa;if(_0x3b4eb3===_0xcb11b7)break;else _0x58a226['push'](_0x58a226['shift']());}catch(_0x3f662a){_0x58a226['push'](_0x58a226['shift']());}}}(a35_0xef87,0xb6aea));function a35_0xef87(){const _0x4b7921=['Error\x20in\x20closing\x20playwright','pw_result.json','xiieA','getProxyUrl','1288393AyASSw','fsevf','getPackageType','../../helpers/helper','filter','accessibility','isTypescriptProject','close','6933464YjZIiZ','split','UYYuE','win32','path','stringify','dqpbM','KTDSd','Updated\x20config\x20file\x20name\x20to\x20-\x20','BROWSERSTACK_TEST_ACCESSIBILITY_YML','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','existsSync','1714626PdPjJl','assign','BROWSERSTACK_AUTOMATION','8|3|6|7|1|0|2|4|5','61616AtjHZT','--config','isTrue','xHrVF','nestedKeyValue','.browserstack','logLevel','notOy','../../helpers/logger','join','parse','VsgSe','./reporter/pwUtils','--grep','EiQKu','homedir','LHJky','browserstackSetupConfig.json','winstonLogger','mySAF','110375iPkfUa','bseyu','../../helpers/testhub/utils','lUIzy','--disable-browserstack-automation','twtff','cwd','true','Playwright\x20process\x20exited\x20with\x20code\x20','../../helpers/utilities','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','test','7omFzrG','filterBrowserstackConfig','tgvzY','../../helpers/test-observability/constants','suRaV','../../helpers/accessibility-automation/helper','finalExecution','skipSessionStatus','playwright','bfppU','BROWSERSTACK_SETUP_CONFIG_PATH','\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();','./accessibility-helper','Error\x20in\x20getting\x20funnel\x20data\x20results','BROWSERSTACK_TEST_OBSERVABILITY','Iynew','get','wczuO','inherit','zszry','exports','BROWSERSTACK_RERUN_TESTS','initialize','Caijx','accessibilityOptions','TjzjH','USER_CONFIG_DETAILS_PATH','splice','getConfigPath','isUndefined','concat','slice','479730GEbYZE','MODULE','2402202ofPzgm','isFalse','QAvKk','trim','map','exitCode','false','debug','push','launchBuild','has','GWyHP','pIZpV','9lZJfwJ','requirePWModule','arfhx','Bivxi','eHNIA','includes','testContextOptions','findIndex','BrowserStack\x20config\x20file\x20not\x20found.','indexOf','Error\x20in\x20deleting\x20playwright\x20results','unlinkSync','writeFileSync','--config=','Deleting\x20','PLAYWRIGHT','skipSessionName','BUcVh','dirname','errorMessage','24esbELa','testObservability','Esach','hppYo','lVBbD','env','nIsWw','length','../../helpers/testhub/testhubHandler','../../helpers/test-observability/utils','cliConfig','config','util','PACKAGE_TYPE','--disable-test-observability','UjbUX','BROWSERSTACK_RERUN','wbOfP','info','BROWSERSTACK_PW_CONFIG_DIR','yyMWV','taEGf','Mhzyf','argv','npx','xGfbe','JkToj','error','UxHud','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','startsWith'];a35_0xef87=function(){return _0x4b7921;};return a35_0xef87();}function a35_0x29b5(_0x4fe7b7,_0x482a9b){const _0xef87bf=a35_0xef87();return a35_0x29b5=function(_0x29b5de,_0x3c0963){_0x29b5de=_0x29b5de-0x13f;let _0x5b0bc0=_0xef87bf[_0x29b5de];return _0x5b0bc0;},a35_0x29b5(_0x4fe7b7,_0x482a9b);}const fs=require('fs'),path=require(a35_0x41c9fc(0x15c)),{spawn}=require('child_process'),{format}=require(a35_0x41c9fc(0x1d7)),logger=require(a35_0x41c9fc(0x170))[a35_0x41c9fc(0x17a)],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require(a35_0x41c9fc(0x153)),utilities=require(a35_0x41c9fc(0x185)),constants=require('../utils/constants'),{FRAMEWORKS}=require(a35_0x41c9fc(0x18b)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require(a35_0x41c9fc(0x174)),{CrashReporter}=require('../../helpers/test-observability/error-handler'),{getFrameworkVersion}=require(a35_0x41c9fc(0x1d4)),{checkAccessibilityPlatformConfig}=require(a35_0x41c9fc(0x18d)),{setAccessibilityCapabilities}=require(a35_0x41c9fc(0x194)),TestHubHandler=require(a35_0x41c9fc(0x1d3)),{shouldProcessEventForTesthub}=require(a35_0x41c9fc(0x17e)),getUserPlaywrightConfig=async(_0x50074a,_0x29eaa1)=>{const _0x2b16ae=a35_0x41c9fc,_0x12f0b4={'lUIzy':function(_0x4b18a3){return _0x4b18a3();},'UxHud':function(_0x5196a3,_0x2ee722){return _0x5196a3(_0x2ee722);},'KTDSd':function(_0x5d1726,_0x5db78b){return _0x5d1726(_0x5db78b);},'TFUEx':'resolvedConfigFile','jmpkq':_0x2b16ae(0x1c4)},_0x1125d7=!helper[_0x2b16ae(0x1a5)](_0x50074a[_0x2b16ae(0x1d6)]),_0x572cce=_0x1125d7?path['resolve'](process[_0x2b16ae(0x182)](),_0x50074a['config']):process[_0x2b16ae(0x182)](),{resolveConfigFile:_0x4c22c8,resolveConfigLocation:_0x1862e5}=helper[_0x2b16ae(0x1b8)]['apply'](null,_0x12f0b4[_0x2b16ae(0x17f)](getConfigLoaderPath)),_0x3f16e6=_0x4c22c8?_0x12f0b4[_0x2b16ae(0x149)](_0x4c22c8,_0x572cce):helper[_0x2b16ae(0x16c)](_0x12f0b4[_0x2b16ae(0x15f)](_0x1862e5,_0x572cce),[_0x12f0b4['TFUEx']]),_0x397a30={};if(_0x1125d7){const _0x282967=_0x29eaa1[_0x2b16ae(0x1be)](_0x11a4f4=>_0x11a4f4===_0x2b16ae(0x169)||_0x11a4f4==='-c'||_0x11a4f4[_0x2b16ae(0x14b)](_0x2b16ae(0x1c4)));_0x29eaa1[_0x2b16ae(0x1a3)](_0x282967,_0x29eaa1[_0x282967][_0x2b16ae(0x14b)](_0x12f0b4['jmpkq'])?0x1:0x2);}const _0x156deb={};return _0x156deb[_0x2b16ae(0x15c)]=_0x3f16e6,_0x156deb['config']=_0x397a30,_0x156deb;},handleO11yRerun=_0x3c7c3c=>{const _0x54f4d0=a35_0x41c9fc,_0x449a32={};_0x449a32['suRaV']=function(_0x34111e,_0x2d779e){return _0x34111e!==_0x2d779e;},_0x449a32[_0x54f4d0(0x14e)]='null',_0x449a32[_0x54f4d0(0x178)]=_0x54f4d0(0x175);const _0x1315b0=_0x449a32,_0xb6fb55=helper[_0x54f4d0(0x16a)](process['env'][_0x54f4d0(0x1db)]);if(_0xb6fb55){const _0xb5e215=process[_0x54f4d0(0x1d0)][_0x54f4d0(0x19d)],_0x168942=[];if(_0x1315b0[_0x54f4d0(0x18c)](_0xb5e215,_0x1315b0[_0x54f4d0(0x14e)])&&!helper[_0x54f4d0(0x1a5)](_0xb5e215)){_0xb5e215[_0x54f4d0(0x159)](',')[_0x54f4d0(0x1ae)](_0xee9799=>{const _0x1065fc=_0x54f4d0;_0x168942[_0x1065fc(0x1b2)]('('+_0xee9799[_0x1065fc(0x1ad)]()+')');});const _0x2202be='^'+_0x168942[_0x54f4d0(0x171)]('|')+'$';_0x3c7c3c[_0x54f4d0(0x1b2)](_0x1315b0[_0x54f4d0(0x178)],_0x2202be);}}},spawnOriginalProcess=_0x293787=>{const _0xa8419=a35_0x41c9fc,_0x22a188={'mySAF':function(_0x349bd7,_0x16e5be,_0x356ddb,_0x51f217){return _0x349bd7(_0x16e5be,_0x356ddb,_0x51f217);},'Caijx':_0xa8419(0x145),'zszry':_0xa8419(0x190),'NsFFH':function(_0x191e23,_0x4eb20f){return _0x191e23===_0x4eb20f;},'zpTQh':_0xa8419(0x15b),'TjzjH':_0xa8419(0x19a)};_0x22a188[_0xa8419(0x17b)](spawn,_0x22a188[_0xa8419(0x19f)],[_0x22a188[_0xa8419(0x19b)],..._0x293787[_0xa8419(0x1a7)](0x1)],{'shell':_0x22a188['NsFFH'](process['platform'],_0x22a188['zpTQh']),'stdio':_0x22a188[_0xa8419(0x1a1)],'cwd':process[_0xa8419(0x182)]()});},isTestCommand=(_0x2ada73,_0x5bdbbb)=>{const _0xfae5d6=a35_0x41c9fc,_0x9a9d4a={};_0x9a9d4a[_0xfae5d6(0x173)]=function(_0x27b32a,_0x4beb9f){return _0x27b32a>_0x4beb9f;},_0x9a9d4a[_0xfae5d6(0x1dc)]=function(_0x485e95,_0x10374e){return _0x485e95===_0x10374e;},_0x9a9d4a[_0xfae5d6(0x1d1)]=_0xfae5d6(0x187);const _0x4396da=_0x9a9d4a;if(_0x4396da['VsgSe'](_0x5bdbbb[_0xfae5d6(0x1d2)],0x1)&&_0x4396da['wbOfP'](_0x5bdbbb[0x1],_0x4396da[_0xfae5d6(0x1d1)]))return!![];return![];};async function run(_0x1914a0,_0x549907){const _0x2e9283=a35_0x41c9fc,_0x2d12d3={'Mhzyf':_0x2e9283(0x16d),'pIZpV':_0x2e9283(0x14d),'zFWeQ':function(_0x58a6ed,_0x4ebf40){return _0x58a6ed+_0x4ebf40;},'xHrVF':_0x2e9283(0x195),'wczuO':_0x2e9283(0x167),'UYYuE':function(_0x5ed325){return _0x5ed325();},'fsevf':_0x2e9283(0x14c),'JkToj':_0x2e9283(0x180),'xGfbe':_0x2e9283(0x1b0),'eHNIA':'--disable-test-observability','Iynew':function(_0x3c0c37,_0x4d0c74){return _0x3c0c37>=_0x4d0c74;},'dqpbM':function(_0x57d11c,_0x45b4f5){return _0x57d11c+_0x45b4f5;},'lVBbD':_0x2e9283(0x1c1),'JRIQu':function(_0x22a7ff,_0x220258,_0x253048){return _0x22a7ff(_0x220258,_0x253048);},'bfppU':function(_0xe2ce69,_0x1ae798){return _0xe2ce69(_0x1ae798);},'Jruuf':_0x2e9283(0x1bf),'Bivxi':'automation','yyMWV':function(_0x1dd71d,_0x2e224d){return _0x1dd71d!=_0x2e224d;},'arfhx':function(_0x97347c,_0x10a7eb,_0x40b35b){return _0x97347c(_0x10a7eb,_0x40b35b);},'GWyHP':function(_0x227334,_0xc85227){return _0x227334(_0xc85227);},'tgvzY':function(_0x27141f,_0x243eaf){return _0x27141f===_0x243eaf;},'taEGf':_0x2e9283(0x183),'QAvKk':_0x2e9283(0x179),'zNaaO':'playwright-browserstack-sdk.config.cjs','DggIu':'playwright-browserstack-sdk.config.js','VxCpe':function(_0xcd9014,_0x5a687f){return _0xcd9014-_0x5a687f;},'hppYo':function(_0x53e287,_0x4a0965){return _0x53e287+_0x4a0965;},'WHtFN':_0x2e9283(0x160),'emqwS':function(_0x258b13,_0xbebd86){return _0x258b13>_0xbebd86;},'vKaUX':function(_0x3ffd74,_0x3aa110){return _0x3ffd74+_0x3aa110;},'Esach':function(_0x20b4fd,_0x594f3a,_0x4d9768,_0x595ab4){return _0x20b4fd(_0x594f3a,_0x4d9768,_0x595ab4);},'notOy':_0x2e9283(0x145),'bseyu':_0x2e9283(0x190),'zKQYH':_0x2e9283(0x187),'BUcVh':_0x2e9283(0x169),'UjbUX':'win32','EiQKu':_0x2e9283(0x19a),'twtff':_0x2e9283(0x157)};!helper[_0x2e9283(0x1ab)](process[_0x2e9283(0x1d0)][_0x2e9283(0x166)])&&(process['env']['BROWSERSTACK_AUTOMATION']=!![]);process[_0x2e9283(0x144)][_0x2e9283(0x1bc)](_0x2d12d3[_0x2e9283(0x147)])&&(process[_0x2e9283(0x1d0)][_0x2e9283(0x166)]=_0x2d12d3[_0x2e9283(0x146)],_0x549907=_0x549907[_0x2e9283(0x154)](_0x35b09b=>_0x35b09b!=='--disable-browserstack-automation'));const _0x57dcd4=_0x549907[_0x2e9283(0x1c0)](_0x2d12d3[_0x2e9283(0x1bb)]);_0x2d12d3[_0x2e9283(0x197)](_0x57dcd4,0x0)&&(process[_0x2e9283(0x1d0)][_0x2e9283(0x196)]=_0x2d12d3['xGfbe'],_0x549907=_0x549907[_0x2e9283(0x154)](_0xcd2bc4=>_0xcd2bc4!==_0x2e9283(0x1d9)));try{const _0x3b9466=path[_0x2e9283(0x171)](helper[_0x2e9283(0x177)](),_0x2d12d3['Mhzyf'],_0x2d12d3[_0x2e9283(0x1b6)]);fs[_0x2e9283(0x163)](_0x3b9466)&&fs[_0x2e9283(0x1c2)](_0x3b9466);}catch(_0x442f9a){logger[_0x2e9283(0x1b1)](_0x2d12d3[_0x2e9283(0x15e)](_0x2d12d3[_0x2e9283(0x1cf)],_0x442f9a));}if(!_0x2d12d3['JRIQu'](isTestCommand,_0x1914a0,_0x549907)){_0x2d12d3[_0x2e9283(0x191)](spawnOriginalProcess,_0x549907);return;}const _0x1479da=new BrowserStackSetup(_0x1914a0,FRAMEWORKS[_0x2e9283(0x1c6)]);if(!_0x1479da[_0x2e9283(0x1d6)]){logger[_0x2e9283(0x148)](_0x2d12d3['Jruuf']);return;}await _0x1479da[_0x2e9283(0x19e)]();!helper[_0x2e9283(0x1a5)](_0x1479da[_0x2e9283(0x1d5)])&&_0x1479da[_0x2e9283(0x1d5)][_0x2e9283(0x1b4)](_0x2d12d3[_0x2e9283(0x1ba)])&&(process[_0x2e9283(0x1d0)][_0x2e9283(0x166)]=_0x1479da[_0x2e9283(0x1d5)][_0x2e9283(0x198)](_0x2d12d3[_0x2e9283(0x1ba)])||!![]);_0x2d12d3[_0x2e9283(0x141)](_0x1479da['config'][_0x2e9283(0x1cc)],null)&&!helper[_0x2e9283(0x16a)](process['env'][_0x2e9283(0x196)])&&(process[_0x2e9283(0x1d0)][_0x2e9283(0x196)]=process[_0x2e9283(0x1d0)][_0x2e9283(0x196)]||_0x1479da[_0x2e9283(0x1d6)][_0x2e9283(0x1cc)]);const _0x51a112=!helper['isFalse'](process[_0x2e9283(0x1d0)]['BROWSERSTACK_TEST_OBSERVABILITY']);let _0x3d5925=![];_0x1479da[_0x2e9283(0x1d6)][_0x2e9283(0x155)]&&(_0x3d5925=!![],process[_0x2e9283(0x1d0)][_0x2e9283(0x161)]=_0x1479da['config'][_0x2e9283(0x155)]);_0x1479da[_0x2e9283(0x1d6)][_0x2e9283(0x1a0)]&&(process['env'][_0x2e9283(0x162)]=JSON[_0x2e9283(0x15d)](_0x1479da[_0x2e9283(0x1d6)]['accessibilityOptions']));const _0x26aaaf=_0x549907[_0x2e9283(0x1a6)](),_0x1805eb=await _0x2d12d3[_0x2e9283(0x1b9)](getUserPlaywrightConfig,_0x1914a0,_0x549907);if(helper['isUndefined'](_0x1805eb)){_0x2d12d3[_0x2e9283(0x1b5)](spawnOriginalProcess,_0x26aaaf);return;}const _0x290191=_0x1805eb[_0x2e9283(0x15c)]?path[_0x2e9283(0x1c9)](_0x1805eb[_0x2e9283(0x15c)]):process[_0x2e9283(0x182)]();process[_0x2e9283(0x1d0)][_0x2e9283(0x140)]=_0x290191,await TestHubHandler[_0x2e9283(0x1b3)](FRAMEWORKS['PLAYWRIGHT'],_0x1479da);_0x51a112&&_0x2d12d3[_0x2e9283(0x1b5)](handleO11yRerun,_0x549907);let _0xbc10c2=_0x2d12d3[_0x2e9283(0x18a)](process[_0x2e9283(0x1d0)][_0x2e9283(0x161)],_0x2d12d3[_0x2e9283(0x142)]);_0xbc10c2=_0xbc10c2||_0x2d12d3[_0x2e9283(0x1b5)](checkAccessibilityPlatformConfig,_0x1479da[_0x2e9283(0x1d6)]),process['env'][_0x2e9283(0x161)]=_0xbc10c2;_0xbc10c2&&_0x2d12d3[_0x2e9283(0x1b5)](setAccessibilityCapabilities,_0x1479da[_0x2e9283(0x1d6)]);const _0x48a5e1=path[_0x2e9283(0x171)](_0x1805eb[_0x2e9283(0x15c)]?path[_0x2e9283(0x1c9)](_0x1805eb[_0x2e9283(0x15c)]):process[_0x2e9283(0x182)](),_0x2d12d3[_0x2e9283(0x1ac)]);fs[_0x2e9283(0x1c3)](_0x48a5e1,helper['serializeToYamlString'](_0x1479da[_0x2e9283(0x1d6)])),process[_0x2e9283(0x1d0)][_0x2e9283(0x192)]=_0x48a5e1,helper['clearTempPWConfig']();let _0xf7b8b4='';_0x2d12d3['tgvzY'](helper[_0x2e9283(0x152)](),constants[_0x2e9283(0x1d8)][_0x2e9283(0x1a9)])?_0xf7b8b4=_0x2d12d3['zNaaO']:_0xf7b8b4=_0x2d12d3['DggIu'];let _0x7fb88d='';if(helper[_0x2e9283(0x156)](_0x1805eb[_0x2e9283(0x15c)])){_0x7fb88d='\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a';const _0x31871e=_0xf7b8b4[_0x2e9283(0x159)]('.');_0x31871e[_0x2d12d3['VxCpe'](_0x31871e[_0x2e9283(0x1d2)],0x1)]='ts',_0xf7b8b4=_0x31871e['join']('.'),logger[_0x2e9283(0x1b1)](_0x2d12d3[_0x2e9283(0x1ce)](_0x2d12d3['WHtFN'],_0xf7b8b4));}else _0x7fb88d=_0x2e9283(0x186);const _0x1e91df=path[_0x2e9283(0x171)](_0x1805eb[_0x2e9283(0x15c)]?path[_0x2e9283(0x1c9)](_0x1805eb['path']):process[_0x2e9283(0x182)](),_0xf7b8b4);let _0x2f9760=_0x1805eb['path']?_0x1805eb['path']:'';_0x2f9760=_0x2d12d3['emqwS'](_0x2f9760[_0x2e9283(0x1d2)],0x0)?path['resolve'](_0x2f9760):'',process[_0x2e9283(0x1d0)][_0x2e9283(0x1a2)]=_0x2f9760;const _0x3c06e3=helper[_0x2e9283(0x14f)](_0x1479da[_0x2e9283(0x1d6)]);_0x3c06e3&&(_0x7fb88d=_0x2d12d3['vKaUX'](_0x2e9283(0x14a)+_0x3c06e3+_0x2e9283(0x193),_0x7fb88d));helper[_0x2e9283(0x189)]({},_0x549907),fs[_0x2e9283(0x1c3)](_0x1e91df,_0x7fb88d),helper['markSDKSetupComplete']();const _0x38a86b=_0x2d12d3[_0x2e9283(0x1cd)](spawn,_0x2d12d3[_0x2e9283(0x16f)],[_0x2d12d3[_0x2e9283(0x17d)],_0x2d12d3['zKQYH'],_0x2d12d3[_0x2e9283(0x1c8)],_0x1e91df,..._0x549907[_0x2e9283(0x1a7)](0x2)],{'shell':_0x2d12d3[_0x2e9283(0x18a)](process['platform'],_0x2d12d3[_0x2e9283(0x1da)]),'stdio':_0x2d12d3[_0x2e9283(0x176)],'cwd':process['cwd'](),'env':Object[_0x2e9283(0x165)]({},process['env'],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x2e9283(0x1a4)](_0x1914a0),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x1479da[_0x2e9283(0x1d6)][_0x2e9283(0x1bd)][_0x2e9283(0x18f)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x1479da[_0x2e9283(0x1d6)]['testContextOptions'][_0x2e9283(0x1c7)],'BROWSERSTACK_LOG_LEVEL':_0x1479da[_0x2e9283(0x1d6)][_0x2e9283(0x16e)]})}),_0x46396e=()=>{const _0x5d962b=_0x2e9283;try{const _0x4c8896=path[_0x5d962b(0x171)](helper[_0x5d962b(0x177)](),_0x2d12d3[_0x5d962b(0x143)],_0x2d12d3[_0x5d962b(0x1b6)]);if(fs[_0x5d962b(0x163)](_0x4c8896)){let _0x3cc247=fs['readFileSync'](_0x4c8896);_0x3cc247=JSON[_0x5d962b(0x172)](_0x3cc247),_0x1479da[_0x5d962b(0x1ca)]=_0x3cc247,fs['unlinkSync'](_0x4c8896);}}catch(_0x4c665f){logger['debug'](_0x2d12d3['zFWeQ'](_0x2d12d3[_0x5d962b(0x16b)],_0x4c665f));}};_0x38a86b['on'](_0x2d12d3[_0x2e9283(0x181)],async _0x51283f=>{const _0x113b89=_0x2e9283;try{const _0xc24a94=_0x2d12d3[_0x113b89(0x199)][_0x113b89(0x159)]('|');let _0x5337b1=0x0;while(!![]){switch(_0xc24a94[_0x5337b1++]){case'0':logger[_0x113b89(0x13f)](_0x113b89(0x1c5)+_0x1e91df);continue;case'1':logger['debug'](_0x113b89(0x184)+_0x51283f);continue;case'2':fs['unlinkSync'](_0x1e91df);continue;case'3':await TestHubHandler['stop']();continue;case'4':logger[_0x113b89(0x1b1)]('Deleting\x20'+_0x48a5e1);continue;case'5':fs[_0x113b89(0x1c2)](_0x48a5e1);continue;case'6':await utilities[_0x113b89(0x18e)](_0x1479da);continue;case'7':process[_0x113b89(0x1af)]=_0x51283f;continue;case'8':_0x2d12d3[_0x113b89(0x15a)](_0x46396e);continue;}break;}}catch(_0x3c08f2){logger[_0x113b89(0x1b1)](_0x2d12d3['zFWeQ'](_0x2d12d3[_0x113b89(0x151)],_0x3c08f2));}});}module[a35_0x41c9fc(0x19c)]=run;
|
|
2
|
+
'use strict';function a35_0x33aa(){const _0x5f5685=['qfKxE','PACKAGE_TYPE','../../helpers/test-observability/error-handler','../../helpers/BrowserStackSetup','tPgDq','config','getProxyUrl','3451068BdCxjG','BvpCJ','8VpdiJJ','WfJbv','4AEKOzl','Error\x20in\x20getting\x20funnel\x20data\x20results','platform','test','518XOuSOY','skipSessionStatus','trim','dirname','length','true','nJOTO','QsFYJ','8761660QciHej','initialize','playwright-browserstack-sdk.config.cjs','QQCpD','BROWSERSTACK_TEST_OBSERVABILITY','LgzqA','Error\x20in\x20closing\x20playwright','Updated\x20config\x20file\x20name\x20to\x20-\x20','startsWith','env','isUndefined','mLqlz','accessibilityOptions','indexOf','Playwright\x20process\x20exited\x20with\x20code\x20','vTkQG','4979970puIYet','kJebM','isTypescriptProject','\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();','Deleting\x20','3208prBhPD','testObservability','cliConfig','697575tWYxDi','nestedKeyValue','jrjpA','join','inherit','skipSessionName','KUuAb','info','moXkv','FvYSB','fRVmc','GPKcA','ogmFD','existsSync','gYeTA','split','--config','resolve','LtSpR','filter','accessibility','gYASb','filterBrowserstackArgs','../../helpers/test-observability/utils','requirePWModule','close','launchBuild','../../helpers/accessibility-automation/helper','../../helpers/logger','slice','kADrM','markSDKSetupComplete','BrowserStack\x20config\x20file\x20not\x20found.','playwright','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','--disable-test-observability','getPackageType','KLRDu','4|1|8|3|0|7|5|2|6','PLAYWRIGHT','finalExecution','322009TchOUH','BROWSERSTACK_AUTOMATION','debug','USER_CONFIG_DETAILS_PATH','push','exports','ERGPC','resolvedConfigFile','argv','cwd','GOrca','./accessibility-helper','readFileSync','BROWSERSTACK_TEST_ACCESSIBILITY_YML','browserstackSetupConfig.json','getConfigPath','fiXHl','npx','--disable-browserstack-automation','winstonLogger','./reporter/pwUtils','splice','isFalse','arCli','Error\x20in\x20deleting\x20playwright\x20results','gSYBd','XFLxI','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','gBRqs','--config=','path','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','stringify','MODULE','veycl','isTrue','automation','../../helpers/utilities','OSVfj','../../helpers/test-observability/constants','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','map','findIndex','child_process','BvpPm','YlusF','KgysB','2671300FnTyeU','get','win32','BROWSERSTACK_RERUN_TESTS','../../helpers/helper','unlinkSync','llfHN','null','mhwax','playwright-browserstack-sdk.config.js','KMgDW','util','--grep','aIlCG'];a35_0x33aa=function(){return _0x5f5685;};return a35_0x33aa();}const a35_0x4c01c1=a35_0x299a;(function(_0x1c0823,_0xa072b0){const _0x195742=a35_0x299a,_0x100a39=_0x1c0823();while(!![]){try{const _0x823b47=parseInt(_0x195742(0x212))/0x1*(-parseInt(_0x195742(0x1c5))/0x2)+parseInt(_0x195742(0x1e9))/0x3*(-parseInt(_0x195742(0x1c3))/0x4)+parseInt(_0x195742(0x241))/0x5+parseInt(_0x195742(0x256))/0x6+parseInt(_0x195742(0x1c9))/0x7*(parseInt(_0x195742(0x1e6))/0x8)+-parseInt(_0x195742(0x1e1))/0x9+parseInt(_0x195742(0x1d1))/0xa;if(_0x823b47===_0xa072b0)break;else _0x100a39['push'](_0x100a39['shift']());}catch(_0x34fc8b){_0x100a39['push'](_0x100a39['shift']());}}}(a35_0x33aa,0x56270));function a35_0x299a(_0x1ea347,_0x15694a){const _0x33aa8e=a35_0x33aa();return a35_0x299a=function(_0x299a20,_0xbce038){_0x299a20=_0x299a20-0x1c2;let _0x28898e=_0x33aa8e[_0x299a20];return _0x28898e;},a35_0x299a(_0x1ea347,_0x15694a);}const fs=require('fs'),path=require('path'),{spawn}=require(a35_0x4c01c1(0x23d)),{format}=require(a35_0x4c01c1(0x24c)),logger=require(a35_0x4c01c1(0x205))[a35_0x4c01c1(0x225)],{default:BrowserStackSetup}=require(a35_0x4c01c1(0x252)),helper=require(a35_0x4c01c1(0x245)),utilities=require(a35_0x4c01c1(0x237)),constants=require('../utils/constants'),{FRAMEWORKS}=require(a35_0x4c01c1(0x239)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require(a35_0x4c01c1(0x226)),{CrashReporter}=require(a35_0x4c01c1(0x251)),{getFrameworkVersion}=require(a35_0x4c01c1(0x200)),{checkAccessibilityPlatformConfig}=require(a35_0x4c01c1(0x204)),{setAccessibilityCapabilities}=require(a35_0x4c01c1(0x21d)),TestHubHandler=require('../../helpers/testhub/testhubHandler'),{shouldProcessEventForTesthub}=require('../../helpers/testhub/utils'),getUserPlaywrightConfig=async(_0x325411,_0x18e90d)=>{const _0x496733=a35_0x4c01c1,_0x1cfd1e={'FNYWn':function(_0x399758){return _0x399758();},'llfHN':function(_0x4a7fc8,_0x17754d){return _0x4a7fc8(_0x17754d);},'yJpZY':_0x496733(0x219),'YxlRJ':_0x496733(0x22f)},_0x351404=!helper['isUndefined'](_0x325411['config']),_0x2ed491=_0x351404?path[_0x496733(0x1fa)](process[_0x496733(0x21b)](),_0x325411[_0x496733(0x254)]):process[_0x496733(0x21b)](),{resolveConfigFile:_0x59d5c4,resolveConfigLocation:_0x1e7674}=helper[_0x496733(0x201)]['apply'](null,_0x1cfd1e['FNYWn'](getConfigLoaderPath)),_0x32dcdd=_0x59d5c4?_0x1cfd1e['llfHN'](_0x59d5c4,_0x2ed491):helper[_0x496733(0x1ea)](_0x1cfd1e[_0x496733(0x247)](_0x1e7674,_0x2ed491),[_0x1cfd1e['yJpZY']]),_0x2145a2={};if(_0x351404){const _0x17fd14=_0x18e90d[_0x496733(0x23c)](_0xe43326=>_0xe43326===_0x496733(0x1f9)||_0xe43326==='-c'||_0xe43326[_0x496733(0x1d9)](_0x496733(0x22f)));_0x18e90d[_0x496733(0x227)](_0x17fd14,_0x18e90d[_0x17fd14][_0x496733(0x1d9)](_0x1cfd1e['YxlRJ'])?0x1:0x2);}const _0x400e99={};return _0x400e99[_0x496733(0x230)]=_0x32dcdd,_0x400e99[_0x496733(0x254)]=_0x2145a2,_0x400e99;},handleO11yRerun=_0x1adc33=>{const _0x132324=a35_0x4c01c1,_0x5bd07d={};_0x5bd07d[_0x132324(0x1f5)]=function(_0x3ffe6d,_0x368d4d){return _0x3ffe6d!==_0x368d4d;},_0x5bd07d['ERGPC']=_0x132324(0x248),_0x5bd07d[_0x132324(0x1f3)]=_0x132324(0x24d);const _0x490a2b=_0x5bd07d,_0x4f9dde=helper[_0x132324(0x235)](process[_0x132324(0x1da)]['BROWSERSTACK_RERUN']);if(_0x4f9dde){const _0x40c58e=process['env'][_0x132324(0x244)],_0x3cb1f6=[];if(_0x490a2b[_0x132324(0x1f5)](_0x40c58e,_0x490a2b[_0x132324(0x218)])&&!helper[_0x132324(0x1db)](_0x40c58e)){_0x40c58e['split'](',')[_0x132324(0x23b)](_0x721692=>{const _0x530a78=_0x132324;_0x3cb1f6[_0x530a78(0x216)]('('+_0x721692[_0x530a78(0x1cb)]()+')');});const _0x4676e9='^'+_0x3cb1f6[_0x132324(0x1ec)]('|')+'$';_0x1adc33[_0x132324(0x216)](_0x490a2b[_0x132324(0x1f3)],_0x4676e9);}}},spawnOriginalProcess=_0x450747=>{const _0x539810=a35_0x4c01c1,_0x182f1f={'tPgDq':function(_0x5a2bd4,_0x55021f,_0x5f063b,_0x41584d){return _0x5a2bd4(_0x55021f,_0x5f063b,_0x41584d);},'kADrM':_0x539810(0x223),'kBwvW':_0x539810(0x20a),'kJebM':function(_0x49e29d,_0x139df7){return _0x49e29d===_0x139df7;},'gLtQe':_0x539810(0x243),'QsFYJ':_0x539810(0x1ed)};_0x182f1f[_0x539810(0x253)](spawn,_0x182f1f[_0x539810(0x207)],[_0x182f1f['kBwvW'],..._0x450747[_0x539810(0x206)](0x1)],{'shell':_0x182f1f[_0x539810(0x1e2)](process[_0x539810(0x1c7)],_0x182f1f['gLtQe']),'stdio':_0x182f1f[_0x539810(0x1d0)],'cwd':process[_0x539810(0x21b)]()});},isTestCommand=(_0x58f92f,_0x20425a)=>{const _0x52ff8e=a35_0x4c01c1,_0x479ed4={};_0x479ed4['GFJvf']=function(_0x235c19,_0x4bdf16){return _0x235c19>_0x4bdf16;},_0x479ed4[_0x52ff8e(0x24b)]=function(_0x13ac46,_0x56948a){return _0x13ac46===_0x56948a;},_0x479ed4['AWpwF']='test';const _0x5a72a3=_0x479ed4;if(_0x5a72a3['GFJvf'](_0x20425a[_0x52ff8e(0x1cd)],0x1)&&_0x5a72a3[_0x52ff8e(0x24b)](_0x20425a[0x1],_0x5a72a3['AWpwF']))return!![];return![];};async function run(_0x12a0ae,_0x41252c){const _0x1aecf7=a35_0x4c01c1,_0xab1042={'gSYBd':'.browserstack','jrjpA':'pw_result.json','vTkQG':function(_0x597f9f,_0x1eecf5){return _0x597f9f+_0x1eecf5;},'hrgnf':_0x1aecf7(0x1c6),'KLRDu':_0x1aecf7(0x20f),'YeLdE':function(_0x262396){return _0x262396();},'KUuAb':function(_0x4b3c80,_0x526864){return _0x4b3c80+_0x526864;},'GPKcA':_0x1aecf7(0x1d7),'gBRqs':_0x1aecf7(0x224),'aIlCG':'false','nJOTO':_0x1aecf7(0x20c),'FvYSB':function(_0x190ebc,_0x4d3012){return _0x190ebc>=_0x4d3012;},'KgysB':function(_0x1778b9,_0x2a79ef){return _0x1778b9+_0x2a79ef;},'moXkv':_0x1aecf7(0x22a),'mLqlz':function(_0x467074,_0x6edf50,_0x1131b7){return _0x467074(_0x6edf50,_0x1131b7);},'QQCpD':function(_0x2f75c6,_0x371f50){return _0x2f75c6(_0x371f50);},'WfJbv':_0x1aecf7(0x209),'XFLxI':_0x1aecf7(0x236),'AMjAX':function(_0x4fd125,_0x4b0310){return _0x4fd125!=_0x4b0310;},'gYASb':function(_0x488537,_0x4a129c,_0x4d8124){return _0x488537(_0x4a129c,_0x4d8124);},'YlusF':function(_0x30c7c8,_0x237e95){return _0x30c7c8(_0x237e95);},'BvpCJ':function(_0x19a2a9,_0x1a75b2){return _0x19a2a9===_0x1a75b2;},'DcNeu':_0x1aecf7(0x1ce),'arCli':_0x1aecf7(0x220),'LtSpR':function(_0x2b33a8,_0x5abd27){return _0x2b33a8===_0x5abd27;},'qfKxE':_0x1aecf7(0x1d3),'RoudM':_0x1aecf7(0x24a),'fiXHl':function(_0x297d06,_0x51d400){return _0x297d06-_0x51d400;},'FMqFA':_0x1aecf7(0x1d8),'LgzqA':function(_0x578efe,_0x32f1b9){return _0x578efe>_0x32f1b9;},'GOrca':function(_0x598ee5,_0x44699e){return _0x598ee5+_0x44699e;},'gYeTA':function(_0x8008e9,_0x99efe4,_0xf5b31b,_0x1d774c){return _0x8008e9(_0x99efe4,_0xf5b31b,_0x1d774c);},'dPslW':'npx','nyBPE':_0x1aecf7(0x20a),'mhwax':_0x1aecf7(0x1c8),'BvpPm':_0x1aecf7(0x1f9),'zxJJk':_0x1aecf7(0x243),'veycl':'inherit','OSVfj':_0x1aecf7(0x202)};!helper[_0x1aecf7(0x228)](process[_0x1aecf7(0x1da)]['BROWSERSTACK_AUTOMATION'])&&(process[_0x1aecf7(0x1da)][_0x1aecf7(0x213)]=!![]);process[_0x1aecf7(0x21a)]['includes'](_0xab1042[_0x1aecf7(0x22e)])&&(process[_0x1aecf7(0x1da)][_0x1aecf7(0x213)]=_0xab1042[_0x1aecf7(0x24e)],_0x41252c=_0x41252c['filter'](_0x5e5b3f=>_0x5e5b3f!==_0x1aecf7(0x224)));const _0x3bd7ff=_0x41252c[_0x1aecf7(0x1de)](_0xab1042[_0x1aecf7(0x1cf)]);_0xab1042[_0x1aecf7(0x1f2)](_0x3bd7ff,0x0)&&(process[_0x1aecf7(0x1da)][_0x1aecf7(0x1d5)]=_0xab1042[_0x1aecf7(0x24e)],_0x41252c=_0x41252c[_0x1aecf7(0x1fc)](_0x1e79e1=>_0x1e79e1!==_0x1aecf7(0x20c)));try{const _0x2bd851=path[_0x1aecf7(0x1ec)](helper['homedir'](),_0xab1042['gSYBd'],_0xab1042[_0x1aecf7(0x1eb)]);fs[_0x1aecf7(0x1f6)](_0x2bd851)&&fs[_0x1aecf7(0x246)](_0x2bd851);}catch(_0x5252bb){logger[_0x1aecf7(0x214)](_0xab1042[_0x1aecf7(0x240)](_0xab1042[_0x1aecf7(0x1f1)],_0x5252bb));}if(!_0xab1042[_0x1aecf7(0x1dc)](isTestCommand,_0x12a0ae,_0x41252c)){_0xab1042['QQCpD'](spawnOriginalProcess,_0x41252c);return;}const _0x38996f=new BrowserStackSetup(_0x12a0ae,FRAMEWORKS[_0x1aecf7(0x210)]);if(!_0x38996f[_0x1aecf7(0x254)]){logger['error'](_0xab1042[_0x1aecf7(0x1c4)]);return;}await _0x38996f[_0x1aecf7(0x1d2)]();!helper[_0x1aecf7(0x1db)](_0x38996f['cliConfig'])&&_0x38996f[_0x1aecf7(0x1e8)]['has'](_0xab1042[_0x1aecf7(0x22c)])&&(process['env']['BROWSERSTACK_AUTOMATION']=_0x38996f[_0x1aecf7(0x1e8)][_0x1aecf7(0x242)](_0xab1042[_0x1aecf7(0x22c)])||!![]);_0xab1042['AMjAX'](_0x38996f[_0x1aecf7(0x254)][_0x1aecf7(0x1e7)],null)&&!helper[_0x1aecf7(0x235)](process[_0x1aecf7(0x1da)]['BROWSERSTACK_TEST_OBSERVABILITY'])&&(process['env'][_0x1aecf7(0x1d5)]=process[_0x1aecf7(0x1da)][_0x1aecf7(0x1d5)]||_0x38996f['config'][_0x1aecf7(0x1e7)]);const _0x11f3f5=!helper[_0x1aecf7(0x228)](process[_0x1aecf7(0x1da)][_0x1aecf7(0x1d5)]);let _0x32058f=![];_0x38996f[_0x1aecf7(0x254)][_0x1aecf7(0x1fd)]&&(_0x32058f=!![],process[_0x1aecf7(0x1da)][_0x1aecf7(0x21f)]=_0x38996f[_0x1aecf7(0x254)][_0x1aecf7(0x1fd)]);_0x38996f[_0x1aecf7(0x254)]['accessibilityOptions']&&(process['env'][_0x1aecf7(0x23a)]=JSON[_0x1aecf7(0x232)](_0x38996f[_0x1aecf7(0x254)][_0x1aecf7(0x1dd)]));const _0x319428=_0x41252c['concat'](),_0x3950eb=await _0xab1042[_0x1aecf7(0x1fe)](getUserPlaywrightConfig,_0x12a0ae,_0x41252c);if(helper[_0x1aecf7(0x1db)](_0x3950eb)){_0xab1042[_0x1aecf7(0x23f)](spawnOriginalProcess,_0x319428);return;}const _0x4071cc=_0x3950eb[_0x1aecf7(0x230)]?path[_0x1aecf7(0x1cc)](_0x3950eb[_0x1aecf7(0x230)]):process[_0x1aecf7(0x21b)]();process[_0x1aecf7(0x1da)]['BROWSERSTACK_PW_CONFIG_DIR']=_0x4071cc,await TestHubHandler[_0x1aecf7(0x203)](FRAMEWORKS[_0x1aecf7(0x210)],_0x38996f);_0x11f3f5&&_0xab1042['QQCpD'](handleO11yRerun,_0x41252c);let _0x4b75ce=_0xab1042['BvpCJ'](process[_0x1aecf7(0x1da)][_0x1aecf7(0x21f)],_0xab1042['DcNeu']);_0x4b75ce=_0x4b75ce||_0xab1042[_0x1aecf7(0x1d4)](checkAccessibilityPlatformConfig,_0x38996f[_0x1aecf7(0x254)]),process[_0x1aecf7(0x1da)][_0x1aecf7(0x21f)]=_0x4b75ce;_0x4b75ce&&_0xab1042[_0x1aecf7(0x23f)](setAccessibilityCapabilities,_0x38996f[_0x1aecf7(0x254)]);const _0x468c73=path[_0x1aecf7(0x1ec)](_0x3950eb[_0x1aecf7(0x230)]?path[_0x1aecf7(0x1cc)](_0x3950eb['path']):process[_0x1aecf7(0x21b)](),_0xab1042[_0x1aecf7(0x229)]);fs['writeFileSync'](_0x468c73,helper['serializeToYamlString'](_0x38996f[_0x1aecf7(0x254)])),process[_0x1aecf7(0x1da)]['BROWSERSTACK_SETUP_CONFIG_PATH']=_0x468c73,helper['clearTempPWConfig']();let _0x5e085c='';_0xab1042[_0x1aecf7(0x1fb)](helper[_0x1aecf7(0x20d)](),constants[_0x1aecf7(0x250)][_0x1aecf7(0x233)])?_0x5e085c=_0xab1042[_0x1aecf7(0x24f)]:_0x5e085c=_0xab1042['RoudM'];let _0x5e5b7a='';if(helper[_0x1aecf7(0x1e3)](_0x3950eb[_0x1aecf7(0x230)])){_0x5e5b7a=_0x1aecf7(0x20b);const _0x414fe0=_0x5e085c[_0x1aecf7(0x1f8)]('.');_0x414fe0[_0xab1042[_0x1aecf7(0x222)](_0x414fe0[_0x1aecf7(0x1cd)],0x1)]='ts',_0x5e085c=_0x414fe0[_0x1aecf7(0x1ec)]('.'),logger[_0x1aecf7(0x214)](_0xab1042['KUuAb'](_0xab1042['FMqFA'],_0x5e085c));}else _0x5e5b7a=_0x1aecf7(0x22d);const _0x3b7a81=path[_0x1aecf7(0x1ec)](_0x3950eb[_0x1aecf7(0x230)]?path[_0x1aecf7(0x1cc)](_0x3950eb[_0x1aecf7(0x230)]):process[_0x1aecf7(0x21b)](),_0x5e085c);let _0x43fe52=_0x3950eb[_0x1aecf7(0x230)]?_0x3950eb[_0x1aecf7(0x230)]:'';_0x43fe52=_0xab1042[_0x1aecf7(0x1d6)](_0x43fe52['length'],0x0)?path['resolve'](_0x43fe52):'',process['env'][_0x1aecf7(0x215)]=_0x43fe52;const _0x3fb2f1=helper[_0x1aecf7(0x255)](_0x38996f[_0x1aecf7(0x254)]);_0x3fb2f1&&(_0x5e5b7a=_0xab1042[_0x1aecf7(0x21c)](_0x1aecf7(0x231)+_0x3fb2f1+_0x1aecf7(0x1e4),_0x5e5b7a));helper[_0x1aecf7(0x1ff)]({},_0x41252c),fs['writeFileSync'](_0x3b7a81,_0x5e5b7a),helper[_0x1aecf7(0x208)]();const _0x3edaee=_0xab1042[_0x1aecf7(0x1f7)](spawn,_0xab1042['dPslW'],[_0xab1042['nyBPE'],_0xab1042[_0x1aecf7(0x249)],_0xab1042[_0x1aecf7(0x23e)],_0x3b7a81,..._0x41252c[_0x1aecf7(0x206)](0x2)],{'shell':_0xab1042[_0x1aecf7(0x1c2)](process[_0x1aecf7(0x1c7)],_0xab1042['zxJJk']),'stdio':_0xab1042[_0x1aecf7(0x234)],'cwd':process[_0x1aecf7(0x21b)](),'env':Object['assign']({},process[_0x1aecf7(0x1da)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x1aecf7(0x221)](_0x12a0ae),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x38996f[_0x1aecf7(0x254)]['testContextOptions'][_0x1aecf7(0x1ca)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x38996f[_0x1aecf7(0x254)]['testContextOptions'][_0x1aecf7(0x1ee)],'BROWSERSTACK_LOG_LEVEL':_0x38996f[_0x1aecf7(0x254)]['logLevel']})}),_0x44cfdd=()=>{const _0x41b20b=_0x1aecf7;try{const _0x4736de=path['join'](helper['homedir'](),_0xab1042[_0x41b20b(0x22b)],_0xab1042[_0x41b20b(0x1eb)]);if(fs[_0x41b20b(0x1f6)](_0x4736de)){let _0xd75460=fs[_0x41b20b(0x21e)](_0x4736de);_0xd75460=JSON['parse'](_0xd75460),_0x38996f['errorMessage']=_0xd75460,fs[_0x41b20b(0x246)](_0x4736de);}}catch(_0x235721){logger['debug'](_0xab1042[_0x41b20b(0x1e0)](_0xab1042['hrgnf'],_0x235721));}};_0x3edaee['on'](_0xab1042[_0x1aecf7(0x238)],async _0x508988=>{const _0x469916=_0x1aecf7;try{const _0x9e4ec8=_0xab1042[_0x469916(0x20e)]['split']('|');let _0x142be1=0x0;while(!![]){switch(_0x9e4ec8[_0x142be1++]){case'0':logger[_0x469916(0x214)](_0x469916(0x1df)+_0x508988);continue;case'1':await TestHubHandler['stop']();continue;case'2':logger[_0x469916(0x214)]('Deleting\x20'+_0x468c73);continue;case'3':process['exitCode']=_0x508988;continue;case'4':_0xab1042['YeLdE'](_0x44cfdd);continue;case'5':fs[_0x469916(0x246)](_0x3b7a81);continue;case'6':fs[_0x469916(0x246)](_0x468c73);continue;case'7':logger[_0x469916(0x1f0)](_0x469916(0x1e5)+_0x3b7a81);continue;case'8':await utilities[_0x469916(0x211)](_0x38996f);continue;}break;}}catch(_0x517697){logger[_0x469916(0x214)](_0xab1042[_0x469916(0x1ef)](_0xab1042[_0x469916(0x1f4)],_0x517697));}});}module[a35_0x4c01c1(0x217)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a36_0x547859=a36_0x1902;(function(_0x26c7b7,_0xd2195b){const _0x33979a=a36_0x1902,_0x2021e9=_0x26c7b7();while(!![]){try{const _0x31dd5c=-parseInt(_0x33979a(0x179))/0x1*(parseInt(_0x33979a(0x182))/0x2)+-parseInt(_0x33979a(0x18f))/0x3*(-parseInt(_0x33979a(0x173))/0x4)+-parseInt(_0x33979a(0x17e))/0x5+-parseInt(_0x33979a(0x16c))/0x6*(parseInt(_0x33979a(0x190))/0x7)+parseInt(_0x33979a(0x18d))/0x8*(-parseInt(_0x33979a(0x175))/0x9)+-parseInt(_0x33979a(0x184))/0xa*(-parseInt(_0x33979a(0x191))/0xb)+-parseInt(_0x33979a(0x18c))/0xc*(-parseInt(_0x33979a(0x193))/0xd);if(_0x31dd5c===_0xd2195b)break;else _0x2021e9['push'](_0x2021e9['shift']());}catch(_0x1f7591){_0x2021e9['push'](_0x2021e9['shift']());}}}(a36_0x4f4a,0xe5424));const util=require('util'),child_process=require(a36_0x547859(0x192)),{FRAMEWORKS}=require(a36_0x547859(0x176)),{getFrameworkVersion,debug}=require(a36_0x547859(0x171)),helper=require(a36_0x547859(0x17d)),{getLoadUtilsPath,getForkProcessPath}=require(a36_0x547859(0x194)),{mockIsWorkerRedundant}=require('./patches'),logger=require('../../helpers/logger')[a36_0x547859(0x197)];function a36_0x1902(_0x4161b7,_0x55545a){const _0x4f4a08=a36_0x4f4a();return a36_0x1902=function(_0x190272,_0x13eeef){_0x190272=_0x190272-0x16a;let _0x2c631d=_0x4f4a08[_0x190272];return _0x2c631d;},a36_0x1902(_0x4161b7,_0x55545a);}module[a36_0x547859(0x16b)]=async function(_0x15b1f2){const _0x17002f=a36_0x547859,_0x1047e1={'AkXNX':function(_0x6f3472,_0x32611d){return _0x6f3472(_0x32611d);},'aUuVB':function(_0x39c1e8){return _0x39c1e8();},'XLBuV':_0x17002f(0x185),'RixBU':function(_0x278ab4){return _0x278ab4();},'wzWyN':function(_0x217d6f,_0x4128b8){return _0x217d6f(_0x4128b8);},'JlOhN':_0x17002f(0x18b),'FdCJg':function(_0x1175ba,_0x5211ae){return _0x1175ba(_0x5211ae);},'HsPZr':function(_0x44ead7,_0x5ee955){return _0x44ead7>=_0x5ee955;},'nlEJw':_0x17002f(0x17c),'GvZtx':function(_0x23a2a1,_0x3d3232,_0x5d75af){return _0x23a2a1(_0x3d3232,_0x5d75af);},'vAsZW':function(_0x1f773b,_0x39512f){return _0x1f773b!==_0x39512f;},'zmgYO':_0x17002f(0x186),'uELMy':'Not\x20able\x20to\x20import\x20globalSetup','pzZZp':function(_0x483c93,_0x2546b3){return _0x483c93(_0x2546b3);}},_0x307bb7=child_process[_0x17002f(0x16e)];if(helper[_0x17002f(0x17b)]())try{_0x1047e1[_0x17002f(0x174)](mockIsWorkerRedundant);}catch(_0x5e1c49){logger['debug'](_0x17002f(0x189)+util[_0x17002f(0x16f)](_0x5e1c49));}child_process[_0x17002f(0x16e)]=function(){const _0x33a438=_0x17002f;return _0x1047e1[_0x33a438(0x18e)](debug,_0x33a438(0x188)+arguments[0x0]),arguments[0x0]['includes'](_0x1047e1[_0x33a438(0x198)](getForkProcessPath))?arguments[0x0]=require[_0x33a438(0x16d)](_0x1047e1['XLBuV']):logger[_0x33a438(0x187)]('Path\x20'+_0x1047e1[_0x33a438(0x198)](getForkProcessPath)+_0x33a438(0x195)),_0x307bb7[_0x33a438(0x178)](null,arguments);};if(process[_0x17002f(0x170)][_0x17002f(0x181)]){_0x1047e1['wzWyN'](debug,_0x1047e1['JlOhN']);try{const {loadGlobalHook:_0x421955}=helper['requirePWModule'][_0x17002f(0x178)](null,_0x1047e1[_0x17002f(0x174)](getLoadUtilsPath)),_0x312217=_0x1047e1[_0x17002f(0x18a)](getFrameworkVersion,FRAMEWORKS[_0x17002f(0x16a)]);let _0x43c38b=_0x15b1f2;if(_0x1047e1[_0x17002f(0x180)](helper['compareVersions'](_0x312217,_0x1047e1[_0x17002f(0x177)]),0x0)){const _0x11d47c={};_0x11d47c[_0x17002f(0x183)]=_0x15b1f2,_0x43c38b=_0x11d47c;}const _0x309cd0=await _0x1047e1[_0x17002f(0x196)](_0x421955,_0x43c38b,process[_0x17002f(0x170)][_0x17002f(0x181)]);if(_0x1047e1['vAsZW'](typeof _0x309cd0,_0x1047e1[_0x17002f(0x172)]))throw new Error(_0x1047e1['uELMy']);return _0x309cd0[_0x17002f(0x178)](null,arguments);}catch(_0x1454a7){_0x1047e1[_0x17002f(0x199)](debug,_0x17002f(0x17a)+_0x1454a7[_0x17002f(0x17f)]());}}};function a36_0x4f4a(){const _0x116169=['6722872TwYvhd','AkXNX','33iNNjtJ','3628415LRWjrD','11cCeXgO','child_process','26xEjJdU','./reporter/pwUtils','\x20is\x20not\x20found','GvZtx','winstonLogger','aUuVB','pzZZp','PLAYWRIGHT','exports','12pRQfFh','resolve','fork','format','env','../../helpers/test-observability/utils','zmgYO','533516TryGYd','RixBU','9PWSStn','../../helpers/test-observability/constants','nlEJw','apply','52214fOnGiq','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','isHandlePWErrorSet','1.33.0','../../helpers/helper','8223295tnfMUr','toString','HsPZr','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','2UIMzxq','config','13827570XcyycX','./mock-process.js','function','error','Call\x20to\x20child\x20fork\x20with\x20args\x20','Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20','FdCJg','Running\x20existing\x20global\x20setup','9978240ClMgVF'];a36_0x4f4a=function(){return _0x116169;};return a36_0x4f4a();}
|