browserstack-node-sdk 1.34.11 → 1.34.12
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 +2 -2
- 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_0x18c7(_0x1c9c04,_0x5f4858){const _0x4f73c1=a29_0x4f73();return a29_0x18c7=function(_0x18c760,_0x21fe57){_0x18c760=_0x18c760-0x84;let _0x540905=_0x4f73c1[_0x18c760];return _0x540905;},a29_0x18c7(_0x1c9c04,_0x5f4858);}function a29_0x4f73(){const _0x1bb1bc=['QckQy','capability','MlDbd','Xowik','../../../bin/utils/constants','ieOptions_','overrideGet','then','mergeDeep','firefoxOptions_','options_','isPacProxy','../../../helpers/globals','proxy_','Builder','session_','../../../helpers/patchHelpers','proxySettings','proxyUrl','ZfBGL','7aWDsAs','__driver','originalBuilder','../../../helpers/helper','Xwyua','sbiJg','1043716EsXbvy','ieOptions','259967wEEiBz','push','QZTCO','vXlqK','2242784UACfUe','send','keys','setCapabilities','Xibbk','rIURy','18996NQsppA','firefoxOptions','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','logLevel','FeoxO','updateHubUrl','build','url_','nApsR','EUFhV','setServer','caps_','getAccessibilityResultsSummary','../../../hubAllocationMethods','chromeOptions','HttpClient','/wd/hub','goog:chromeOptions','SfKpY','optimalHubUrl','getHttpAgent','get','__driversArray','moz:firefoxOptions','YFkOZ','mfTri','overrideExecute','Modifying\x20webdriver\x20builder','1241760VFBQvW','path','__setBrowserOptions','RlzVS','getGlobal','/session','split','edgeOptions_','296992jLdzdK','RNxkx','exports','NIXoo','object','Proxy\x20set\x20to\x20','LGobi','capabilities_','1|0|2|5|3|4','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','requireHttpClient','gaKuA','https://','CAPABILITY_KEY','agent_','debug','newHubUrl','tbeDW','getRequestOptions','browserstackAgentObservability','se:ieOptions','chromeOptions_','storeOptimalHubUrl','867618IwgRAx','Hub\x20url\x20set\x20to\x20','__drivers','LEXvJ','../../../helpers/accessibility-automation/helper','isBrowserstackInfra','BXNmL','error','set','isAccessibilityPlatform','zZCpO','YgWpk','wwmDU','../../../helpers/logger','20IDwzRZ','global','dwNEO','browserStackLogLevel','mveFL','ueRPR','POxCa','setGlobal','safariOptions_'];a29_0x4f73=function(){return _0x1bb1bc;};return a29_0x4f73();}const a29_0x2541c8=a29_0x18c7;(function(_0x599596,_0x5396ee){const _0x18357f=a29_0x18c7,_0x29837e=_0x599596();while(!![]){try{const _0x4d4da6=-parseInt(_0x18357f(0xc4))/0x1+-parseInt(_0x18357f(0xc2))/0x2+parseInt(_0x18357f(0xea))/0x3+parseInt(_0x18357f(0xc8))/0x4+parseInt(_0x18357f(0x9f))/0x5*(parseInt(_0x18357f(0xce))/0x6)+-parseInt(_0x18357f(0xbc))/0x7*(-parseInt(_0x18357f(0xf2))/0x8)+parseInt(_0x18357f(0x91))/0x9;if(_0x4d4da6===_0x5396ee)break;else _0x29837e['push'](_0x29837e['shift']());}catch(_0x2e41b0){_0x29837e['push'](_0x29837e['shift']());}}}(a29_0x4f73,0x52c25));const logger=require(a29_0x2541c8(0x9e))['winstonLogger'],helper=require(a29_0x2541c8(0xbf)),constants=require(a29_0x2541c8(0xac)),hubAllocator=require(a29_0x2541c8(0xdb)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a29_0x2541c8(0xb8)),{setAccessibilityCapabilities,setExtension}=require('../accessibility-automation/helper'),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0x2541c8(0x95)),globals=require(a29_0x2541c8(0xb4)),modify=(_0x31a25d,_0x12a3f8=null,_0x437afa=![])=>{const _0x50cda8=a29_0x2541c8,_0x719a46={'ZfBGL':function(_0x459a0e,_0x16db8e){return _0x459a0e!==_0x16db8e;},'nApsR':_0x50cda8(0xef),'YgWpk':function(_0x5eb0cd,_0x3634a0){return _0x5eb0cd+_0x3634a0;},'mfTri':function(_0x349c47,_0x53d07a){return _0x349c47+_0x53d07a;},'sbiJg':_0x50cda8(0x86),'LEXvJ':_0x50cda8(0xde),'dwNEO':_0x50cda8(0xdf),'ouDRc':_0x50cda8(0xdc),'ueRPR':'ms:edgeOptions','mveFL':'edgeOptions','rIURy':_0x50cda8(0xe5),'wwmDU':_0x50cda8(0xcf),'vXlqK':'safari.options','Xibbk':_0x50cda8(0x8e),'RlzVS':_0x50cda8(0xc3),'SfKpY':function(_0x19c83f,_0x4928dd){return _0x19c83f===_0x4928dd;},'NIXoo':_0x50cda8(0xf6),'QZTCO':'Setting\x20Browserstack\x20capabilities','MlDbd':_0x50cda8(0xe1),'LGobi':'OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','RNxkx':function(_0x65eaf6,_0x5647c2,_0xb17702){return _0x65eaf6(_0x5647c2,_0xb17702);},'Xwyua':function(_0x449809,_0x2e5d67){return _0x449809(_0x2e5d67);},'FNvHw':_0x50cda8(0xfa),'MKVps':function(_0x36077e){return _0x36077e();},'YFkOZ':_0x50cda8(0x9a),'FeoxO':function(_0x3fe50a,_0x43020e,_0x4d4435){return _0x3fe50a(_0x43020e,_0x4d4435);},'ifakB':_0x50cda8(0xfb),'gaKuA':function(_0x329129,_0x44126f){return _0x329129(_0x44126f);},'zknPH':function(_0x2cfed5,_0x24a201){return _0x2cfed5!==_0x24a201;},'EUFhV':function(_0x52e289,_0x35b4be){return _0x52e289!==_0x35b4be;},'POxCa':'Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','QckQy':_0x50cda8(0xe9)},_0x2049e3=helper[_0x50cda8(0x84)]();let _0xfc3617;try{_0xfc3617=helper['requireSeleniumWebdriver'](),_0xfc3617[_0x50cda8(0xbe)]&&(_0xfc3617[_0x50cda8(0xb6)]=_0xfc3617[_0x50cda8(0xbe)]);}catch(_0x53e1d5){return;}if(helper[_0x50cda8(0x96)]()){const _0xb66cd2={};_0xb66cd2[_0x50cda8(0xd1)]=_0x31a25d[_0x50cda8(0xa2)],helper['setLogLevel'](_0xb66cd2,new Map(),new Map()),logger['info'](_0x719a46[_0x50cda8(0xa5)]),logger[_0x50cda8(0x89)](_0x719a46[_0x50cda8(0xa8)]);}class _0x7140bf extends _0x2049e3[_0x50cda8(0xdd)]{[_0x50cda8(0xc9)](_0x2e193d){const _0x5bf0ce=_0x50cda8;if(_0x719a46['ZfBGL'](_0x2e193d[_0x5bf0ce(0xeb)],_0x719a46[_0x5bf0ce(0xd6)])&&_0x719a46[_0x5bf0ce(0xbb)](global[_0x5bf0ce(0x8a)],''))try{global[_0x5bf0ce(0x8a)]=_0x719a46[_0x5bf0ce(0x9c)](_0x719a46[_0x5bf0ce(0xe7)](_0x719a46[_0x5bf0ce(0xc1)],global[_0x5bf0ce(0x8a)]),_0x719a46[_0x5bf0ce(0x94)]),this[_0x5bf0ce(0xb2)]=hubAllocator[_0x5bf0ce(0x8c)](global['newHubUrl']),logger[_0x5bf0ce(0x89)]('New\x20hub\x20url\x20set\x20to\x20'+global[_0x5bf0ce(0x8a)]),global[_0x5bf0ce(0x8a)]='';}catch(_0x375603){logger[_0x5bf0ce(0x98)](_0x375603);}return super['send'](_0x2e193d);}}class _0x2327ef extends _0xfc3617[_0x50cda8(0xb6)]{[_0x50cda8(0xd8)](){const _0x16cb3e=_0x50cda8;return this[_0x16cb3e(0xd5)]=helper['getHubUrl'](_0x31a25d),logger[_0x16cb3e(0x89)](_0x16cb3e(0x92)+this['url_']),this;}[_0x50cda8(0xec)](_0x317a60){const _0x35a184=_0x50cda8;let _0x1dc8f2={};for(const _0x3a860d in _0x317a60){switch(_0x3a860d){case _0x719a46[_0x35a184(0xa1)]:case _0x719a46['ouDRc']:this[_0x35a184(0x8f)]&&(_0x1dc8f2=this[_0x35a184(0x8f)]['get'](this[_0x35a184(0x8f)][_0x35a184(0x87)])||{},this[_0x35a184(0x8f)][_0x35a184(0x99)](this[_0x35a184(0x8f)][_0x35a184(0x87)],helper[_0x35a184(0xb0)](_0x1dc8f2,_0x317a60[_0x3a860d])));break;case _0x719a46[_0x35a184(0xa4)]:case _0x719a46[_0x35a184(0xa3)]:this[_0x35a184(0xf1)]&&(_0x1dc8f2=this[_0x35a184(0xf1)]['get'](this[_0x35a184(0xf1)][_0x35a184(0x87)])||{},this[_0x35a184(0xf1)]['set'](this[_0x35a184(0xf1)][_0x35a184(0x87)],helper[_0x35a184(0xb0)](_0x1dc8f2,_0x317a60[_0x3a860d])));break;case _0x719a46[_0x35a184(0xcd)]:case _0x719a46[_0x35a184(0x9d)]:this[_0x35a184(0xb1)]&&(_0x1dc8f2=this[_0x35a184(0xb1)][_0x35a184(0xe3)](this[_0x35a184(0xb1)][_0x35a184(0x87)])||{},this[_0x35a184(0xb1)][_0x35a184(0x99)](this['firefoxOptions_']['CAPABILITY_KEY'],helper[_0x35a184(0xb0)](_0x1dc8f2,_0x317a60[_0x3a860d])));break;case _0x719a46[_0x35a184(0xc7)]:this[_0x35a184(0xa7)]&&(_0x1dc8f2=this['safariOptions_'][_0x35a184(0xe3)](this[_0x35a184(0xa7)][_0x35a184(0x87)])||{},this['safariOptions_'][_0x35a184(0x99)](this[_0x35a184(0xa7)][_0x35a184(0x87)],helper['mergeDeep'](_0x1dc8f2,_0x317a60[_0x3a860d])));break;case _0x719a46[_0x35a184(0xcc)]:case _0x719a46[_0x35a184(0xed)]:this[_0x35a184(0xad)]&&(_0x1dc8f2=this[_0x35a184(0xad)][_0x35a184(0xe3)](this['ieOptions_'][_0x35a184(0x87)])||{},this[_0x35a184(0xad)][_0x35a184(0x99)](this[_0x35a184(0xad)]['CAPABILITY_KEY'],helper[_0x35a184(0xb0)](_0x1dc8f2,_0x317a60[_0x3a860d])));break;}}}[_0x50cda8(0xcb)](){const _0x50c841=_0x50cda8;return logger[_0x50c841(0x89)](_0x719a46[_0x50c841(0xc6)]),this['__setBrowserOptions'](_0x31a25d[_0x50c841(0xa9)]),Object[_0x50c841(0xca)](_0x31a25d[_0x50c841(0xa9)])['forEach'](_0x461744=>{const _0x148e0b=_0x50c841,_0x1642c3=this[_0x148e0b(0xf9)]['get'](_0x461744);_0x719a46[_0x148e0b(0xe0)](typeof _0x1642c3,_0x719a46[_0x148e0b(0xf5)])?this[_0x148e0b(0xf9)][_0x148e0b(0x99)](_0x461744,helper[_0x148e0b(0xb0)](_0x1642c3,_0x31a25d[_0x148e0b(0xa9)][_0x461744])):this[_0x148e0b(0xf9)][_0x148e0b(0x99)](_0x461744,_0x31a25d[_0x148e0b(0xa9)][_0x461744]);}),this;}['build'](){const _0x4544e7=_0x50cda8,_0x2a65c9={'BXNmL':function(_0x3eb510,_0x3174c5,_0x448515){const _0x5d8805=a29_0x18c7;return _0x719a46[_0x5d8805(0xf3)](_0x3eb510,_0x3174c5,_0x448515);},'zZCpO':function(_0x55109f,_0x3b15c9,_0x2c9aee){const _0x49c023=a29_0x18c7;return _0x719a46[_0x49c023(0xf3)](_0x55109f,_0x3b15c9,_0x2c9aee);},'tbeDW':function(_0x261d9d,_0x26151){const _0x453ba0=a29_0x18c7;return _0x719a46[_0x453ba0(0xc0)](_0x261d9d,_0x26151);}};if(helper[_0x4544e7(0x96)]()){const _0x2e0e6f=_0x719a46['FNvHw'][_0x4544e7(0xf0)]('|');let _0x3641a4=0x0;while(!![]){switch(_0x2e0e6f[_0x3641a4++]){case'0':this['setServer']();continue;case'1':_0x719a46['MKVps'](isAccessibilityAutomationSession)&&_0x719a46[_0x4544e7(0xc0)](setAccessibilityCapabilities,_0x31a25d);continue;case'2':this[_0x4544e7(0xcb)]();continue;case'3':globals[_0x4544e7(0xee)](_0x719a46['YFkOZ'])&&(!_0x719a46[_0x4544e7(0xd2)](setExtension,this,_0x31a25d)&&globals[_0x4544e7(0xa6)](_0x719a46[_0x4544e7(0xe6)],![]));continue;case'4':logger[_0x4544e7(0x89)](_0x719a46['ifakB']);continue;case'5':if(helper[_0x4544e7(0xb3)](_0x31a25d[_0x4544e7(0xb9)]['proxyUrl']))this[_0x4544e7(0x88)]=helper[_0x4544e7(0xe2)](_0x31a25d[_0x4544e7(0xb9)][_0x4544e7(0xba)]);else _0x31a25d['proxySettings'][_0x4544e7(0xba)]&&(this[_0x4544e7(0xb5)]=_0x31a25d[_0x4544e7(0xb9)][_0x4544e7(0xba)],logger[_0x4544e7(0x89)](_0x4544e7(0xf7)+this['proxy_']));continue;}break;}}const _0x436daf=super[_0x4544e7(0xd4)]();return _0x436daf[_0x4544e7(0xb7)][_0x4544e7(0xaf)](_0x429b27=>{const _0x40087a=_0x4544e7;try{const _0x191421=_0x429b27[_0x40087a(0xd9)][_0x40087a(0xe3)](_0x719a46[_0x40087a(0xaa)]);_0x191421?(logger[_0x40087a(0x89)](_0x40087a(0xd0)+_0x191421),hubAllocator[_0x40087a(0xd3)](_0x191421),helper[_0x40087a(0x90)](_0x191421)):logger['debug'](_0x719a46[_0x40087a(0xf8)]);}catch(_0x1faa2a){logger[_0x40087a(0x89)]('ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20'+_0x1faa2a);}}),_0x436daf['quitCount_']=0x0,_0x436daf[_0x4544e7(0xaf)]&&_0x436daf[_0x4544e7(0xaf)](_0x1c07a9=>{const _0x557460=_0x4544e7,_0x3e890a={'Xowik':function(_0x1773d9,_0xc0e0af,_0x1944a5){const _0x99021d=a29_0x18c7;return _0x2a65c9[_0x99021d(0x97)](_0x1773d9,_0xc0e0af,_0x1944a5);}};_0x2a65c9[_0x557460(0x9b)](overrideQuit,_0x1c07a9,_0x436daf),_0x2a65c9[_0x557460(0x8b)](overrideTakeScreenshot,_0x1c07a9),helper[_0x557460(0xae)](_0x1c07a9,_0x31a25d),helper[_0x557460(0xe8)](_0x1c07a9,_0x31a25d),_0x1c07a9['getAccessibilityResultsSummary']=async()=>{const _0xe4487b=_0x557460;return await _0x3e890a[_0xe4487b(0xab)](getAccessibilityResultsSummary,_0x1c07a9,global);},_0x1c07a9['getAccessibilityResults']=async()=>{const _0x4ddd32=_0x557460;return await _0x3e890a[_0x4ddd32(0xab)](getAccessibilityResults,_0x1c07a9,global);};}),_0x436daf[_0x4544e7(0xda)]=async()=>{const _0x3d6601=_0x4544e7;return await _0x2a65c9[_0x3d6601(0x97)](getAccessibilityResultsSummary,_0x436daf,global);},_0x436daf['getAccessibilityResults']=async()=>{const _0x313444=_0x4544e7;return await _0x2a65c9[_0x313444(0x9b)](getAccessibilityResults,_0x436daf,global);},_0x719a46[_0x4544e7(0xc0)](overrideTakeScreenshot,_0x436daf),_0x719a46[_0x4544e7(0x85)](overrideQuit,_0x436daf),helper['overrideGet'](_0x436daf,_0x31a25d),helper[_0x4544e7(0xe8)](_0x436daf,_0x31a25d),helper['isUndefined'](global[_0x4544e7(0xe4)])&&(global[_0x4544e7(0xe4)]=[]),helper['isUndefined'](global[_0x4544e7(0x93)])&&(global[_0x4544e7(0x93)]=[]),global[_0x4544e7(0xe4)][_0x4544e7(0xc5)](_0x436daf),global[_0x4544e7(0xbd)]=_0x436daf,_0x719a46['zknPH'](global['__drivers'],undefined)&&global['__drivers'][_0x4544e7(0xc5)](_0x436daf),_0x12a3f8&&helper['isUndefined'](_0x12a3f8['global']['__driversArray'])&&(_0x12a3f8[_0x4544e7(0xa0)][_0x4544e7(0xe4)]=[]),_0x12a3f8&&_0x719a46[_0x4544e7(0xd7)](_0x12a3f8[_0x4544e7(0xa0)][_0x4544e7(0x93)],undefined)&&(_0x12a3f8['global'][_0x4544e7(0x93)][_0x4544e7(0xc5)](_0x436daf),_0x12a3f8[_0x4544e7(0xa0)]['__driversArray']['push'](_0x436daf)),_0x436daf;}}return _0xfc3617['originalBuilder']=_0xfc3617[_0x50cda8(0xb6)],_0xfc3617[_0x50cda8(0xb6)]=_0x2327ef,_0x2049e3[_0x50cda8(0xdd)]=_0x7140bf,_0xfc3617;};module[a29_0x2541c8(0xf4)][a29_0x2541c8(0x8d)]=modify;
|
|
1
|
+
const a29_0x1d880e=a29_0x4408;(function(_0x1441c1,_0x22bf5e){const _0x254966=a29_0x4408,_0x328479=_0x1441c1();while(!![]){try{const _0x266ce7=-parseInt(_0x254966(0x19c))/0x1+-parseInt(_0x254966(0x1ab))/0x2+-parseInt(_0x254966(0x1c0))/0x3+parseInt(_0x254966(0x191))/0x4*(parseInt(_0x254966(0x1c4))/0x5)+-parseInt(_0x254966(0x1cb))/0x6+parseInt(_0x254966(0x1b3))/0x7*(parseInt(_0x254966(0x192))/0x8)+parseInt(_0x254966(0x1de))/0x9*(parseInt(_0x254966(0x182))/0xa);if(_0x266ce7===_0x22bf5e)break;else _0x328479['push'](_0x328479['shift']());}catch(_0x4a8e9e){_0x328479['push'](_0x328479['shift']());}}}(a29_0x55b0,0x7cb04));const logger=require(a29_0x1d880e(0x194))[a29_0x1d880e(0x17b)],helper=require('../../../helpers/helper'),constants=require('../../../bin/utils/constants'),hubAllocator=require(a29_0x1d880e(0x1ca)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a29_0x1d880e(0x1ae)),{setAccessibilityCapabilities,setExtension}=require(a29_0x1d880e(0x1b7)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0x1d880e(0x1be)),globals=require(a29_0x1d880e(0x16f)),modify=(_0x46157d,_0x376574=null,_0xfbe12d=![])=>{const _0x5300d6=a29_0x1d880e,_0x5385e8={'xngjM':function(_0x77f7cd,_0x20828c){return _0x77f7cd!==_0x20828c;},'PmCiL':_0x5300d6(0x1e3),'gQvjv':function(_0x59f65f,_0x1b0e7f){return _0x59f65f+_0x1b0e7f;},'YbGxn':function(_0x602b6e,_0x51048e){return _0x602b6e+_0x51048e;},'ouDif':_0x5300d6(0x1d6),'qLNQu':'/wd/hub','MBRZT':_0x5300d6(0x1d2),'Lvigz':'chromeOptions','tTXdh':_0x5300d6(0x1d0),'XmJQE':_0x5300d6(0x19e),'vBewY':'moz:firefoxOptions','eofdD':_0x5300d6(0x1ce),'uPjrg':_0x5300d6(0x1dd),'KOEOf':_0x5300d6(0x1c2),'tBkWq':_0x5300d6(0x174),'MVPxZ':function(_0x29a6b6,_0x39b96b){return _0x29a6b6===_0x39b96b;},'XYHAz':_0x5300d6(0x1bd),'CAwkD':_0x5300d6(0x17d),'uCwxl':function(_0x284e35,_0x5aa50,_0x4f8fea){return _0x284e35(_0x5aa50,_0x4f8fea);},'VHaZR':function(_0x5174de,_0x57cf9f){return _0x5174de(_0x57cf9f);},'aiVKA':_0x5300d6(0x1a2),'BSXYc':'OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','VArKm':'2|5|0|4|1|3','GjOuH':_0x5300d6(0x1e4),'IOaVE':function(_0x8190aa,_0x2bdfb5,_0x736adb){return _0x8190aa(_0x2bdfb5,_0x736adb);},'QgTKa':function(_0x260986){return _0x260986();},'ptKCN':function(_0x236f6a,_0x1b9ce5){return _0x236f6a(_0x1b9ce5);},'GYxtY':_0x5300d6(0x1e1),'KULCz':function(_0x5d55ee,_0x595422){return _0x5d55ee(_0x595422);},'LevMx':function(_0x59c9e7,_0x3875a6){return _0x59c9e7(_0x3875a6);},'iKZvf':function(_0x322dd1,_0x99605f){return _0x322dd1!==_0x99605f;},'PgqTg':_0x5300d6(0x1dc),'pDKGX':_0x5300d6(0x1a9)},_0x4724af=helper[_0x5300d6(0x172)]();let _0x45706f;try{_0x45706f=helper[_0x5300d6(0x19d)](),_0x45706f[_0x5300d6(0x195)]&&(_0x45706f[_0x5300d6(0x1c5)]=_0x45706f[_0x5300d6(0x195)]);}catch(_0x475cb6){return;}if(helper[_0x5300d6(0x18e)]()){const _0x379d49={};_0x379d49[_0x5300d6(0x1c8)]=_0x46157d[_0x5300d6(0x181)],helper[_0x5300d6(0x1d9)](_0x379d49,new Map(),new Map()),logger[_0x5300d6(0x186)](_0x5385e8[_0x5300d6(0x196)]),logger[_0x5300d6(0x1cc)](_0x5385e8[_0x5300d6(0x19b)]);}class _0x48549c extends _0x4724af['HttpClient']{[_0x5300d6(0x1e0)](_0x28eaa6){const _0x46e476=_0x5300d6;if(_0x5385e8['xngjM'](_0x28eaa6[_0x46e476(0x18d)],_0x5385e8['PmCiL'])&&_0x5385e8['xngjM'](global[_0x46e476(0x1c9)],''))try{global['newHubUrl']=_0x5385e8[_0x46e476(0x189)](_0x5385e8[_0x46e476(0x170)](_0x5385e8[_0x46e476(0x1c7)],global['newHubUrl']),_0x5385e8[_0x46e476(0x1d4)]),this[_0x46e476(0x18b)]=hubAllocator[_0x46e476(0x1bc)](global[_0x46e476(0x1c9)]),logger['debug'](_0x46e476(0x180)+global[_0x46e476(0x1c9)]),global[_0x46e476(0x1c9)]='';}catch(_0xf1f3a6){logger[_0x46e476(0x185)](_0xf1f3a6);}return super[_0x46e476(0x1e0)](_0x28eaa6);}}class _0x356c22 extends _0x45706f[_0x5300d6(0x1c5)]{[_0x5300d6(0x17c)](){const _0x2abb48=_0x5300d6;return this[_0x2abb48(0x173)]=helper[_0x2abb48(0x1d8)](_0x46157d),logger['debug'](_0x2abb48(0x17f)+this[_0x2abb48(0x173)]),this;}['__setBrowserOptions'](_0x3049d1){const _0x466641=_0x5300d6;let _0xb5537d={};for(const _0x1805e9 in _0x3049d1){switch(_0x1805e9){case _0x5385e8[_0x466641(0x19a)]:case _0x5385e8[_0x466641(0x1b6)]:this['chromeOptions_']&&(_0xb5537d=this[_0x466641(0x18f)][_0x466641(0x1b1)](this[_0x466641(0x18f)][_0x466641(0x1df)])||{},this[_0x466641(0x18f)][_0x466641(0x19f)](this[_0x466641(0x18f)][_0x466641(0x1df)],helper[_0x466641(0x178)](_0xb5537d,_0x3049d1[_0x1805e9])));break;case _0x5385e8[_0x466641(0x1b8)]:case _0x5385e8[_0x466641(0x184)]:this['edgeOptions_']&&(_0xb5537d=this['edgeOptions_'][_0x466641(0x1b1)](this['edgeOptions_']['CAPABILITY_KEY'])||{},this[_0x466641(0x1e5)][_0x466641(0x19f)](this[_0x466641(0x1e5)]['CAPABILITY_KEY'],helper[_0x466641(0x178)](_0xb5537d,_0x3049d1[_0x1805e9])));break;case _0x5385e8[_0x466641(0x1b0)]:case _0x5385e8['eofdD']:this[_0x466641(0x16c)]&&(_0xb5537d=this['firefoxOptions_'][_0x466641(0x1b1)](this[_0x466641(0x16c)][_0x466641(0x1df)])||{},this[_0x466641(0x16c)][_0x466641(0x19f)](this[_0x466641(0x16c)][_0x466641(0x1df)],helper[_0x466641(0x178)](_0xb5537d,_0x3049d1[_0x1805e9])));break;case _0x5385e8[_0x466641(0x1a8)]:this[_0x466641(0x1db)]&&(_0xb5537d=this[_0x466641(0x1db)]['get'](this[_0x466641(0x1db)]['CAPABILITY_KEY'])||{},this[_0x466641(0x1db)][_0x466641(0x19f)](this[_0x466641(0x1db)][_0x466641(0x1df)],helper[_0x466641(0x178)](_0xb5537d,_0x3049d1[_0x1805e9])));break;case _0x5385e8['KOEOf']:case _0x5385e8[_0x466641(0x179)]:this['ieOptions_']&&(_0xb5537d=this[_0x466641(0x1b4)]['get'](this[_0x466641(0x1b4)][_0x466641(0x1df)])||{},this[_0x466641(0x1b4)][_0x466641(0x19f)](this[_0x466641(0x1b4)][_0x466641(0x1df)],helper[_0x466641(0x178)](_0xb5537d,_0x3049d1[_0x1805e9])));break;}}}['setCapabilities'](){const _0x2ee9a2=_0x5300d6;return logger['debug'](_0x5385e8[_0x2ee9a2(0x1b2)]),this[_0x2ee9a2(0x18a)](_0x46157d[_0x2ee9a2(0x1a0)]),Object['keys'](_0x46157d[_0x2ee9a2(0x1a0)])[_0x2ee9a2(0x1b5)](_0x2aea2b=>{const _0x481577=_0x2ee9a2,_0x14b251=this[_0x481577(0x190)][_0x481577(0x1b1)](_0x2aea2b);_0x5385e8[_0x481577(0x1bb)](typeof _0x14b251,_0x5385e8[_0x481577(0x171)])?this[_0x481577(0x190)][_0x481577(0x19f)](_0x2aea2b,helper['mergeDeep'](_0x14b251,_0x46157d[_0x481577(0x1a0)][_0x2aea2b])):this[_0x481577(0x190)][_0x481577(0x19f)](_0x2aea2b,_0x46157d[_0x481577(0x1a0)][_0x2aea2b]);}),this;}[_0x5300d6(0x1c1)](){const _0x47c12b=_0x5300d6,_0x131bca={'axLui':_0x5385e8[_0x47c12b(0x1af)],'bZfQP':_0x5385e8[_0x47c12b(0x1ad)],'itqQo':function(_0x2d839e,_0x399467,_0x4051a0){const _0x482602=_0x47c12b;return _0x5385e8[_0x482602(0x193)](_0x2d839e,_0x399467,_0x4051a0);}};if(helper[_0x47c12b(0x18e)]()){const _0x13be76=_0x5385e8['VArKm'][_0x47c12b(0x1d1)]('|');let _0x406c99=0x0;while(!![]){switch(_0x13be76[_0x406c99++]){case'0':this[_0x47c12b(0x1a5)]();continue;case'1':globals[_0x47c12b(0x1ac)](_0x5385e8[_0x47c12b(0x1d5)])&&(!_0x5385e8['IOaVE'](setExtension,this,_0x46157d)&&globals[_0x47c12b(0x16b)](_0x5385e8[_0x47c12b(0x1d5)],![]));continue;case'2':_0x5385e8[_0x47c12b(0x1e2)](isAccessibilityAutomationSession)&&_0x5385e8[_0x47c12b(0x1a7)](setAccessibilityCapabilities,_0x46157d);continue;case'3':logger['debug'](_0x5385e8[_0x47c12b(0x1c6)]);continue;case'4':if(helper[_0x47c12b(0x16e)](_0x46157d[_0x47c12b(0x199)][_0x47c12b(0x18c)]))this[_0x47c12b(0x1bf)]=helper['getHttpAgent'](_0x46157d[_0x47c12b(0x199)][_0x47c12b(0x18c)]);else _0x46157d[_0x47c12b(0x199)][_0x47c12b(0x18c)]&&(this['proxy_']=_0x46157d[_0x47c12b(0x199)][_0x47c12b(0x18c)],logger[_0x47c12b(0x1cc)]('Proxy\x20set\x20to\x20'+this[_0x47c12b(0x16d)]));continue;case'5':this[_0x47c12b(0x17c)]();continue;}break;}}const _0x1cde19=super[_0x47c12b(0x1c1)]();return _0x1cde19[_0x47c12b(0x198)][_0x47c12b(0x1da)](_0x260228=>{const _0x3b60b8=_0x47c12b;try{const _0x588b6d=_0x260228['caps_'][_0x3b60b8(0x1b1)](_0x131bca[_0x3b60b8(0x1c3)]);_0x588b6d?(logger['debug'](_0x3b60b8(0x188)+_0x588b6d),hubAllocator[_0x3b60b8(0x1ba)](_0x588b6d),helper[_0x3b60b8(0x1cf)](_0x588b6d)):logger[_0x3b60b8(0x1cc)](_0x131bca[_0x3b60b8(0x1b9)]);}catch(_0x172b8b){logger['debug'](_0x3b60b8(0x17a)+_0x172b8b);}}),_0x1cde19['quitCount_']=0x0,_0x1cde19[_0x47c12b(0x1da)]&&_0x1cde19['then'](_0x3a8b02=>{const _0x2bfd60=_0x47c12b,_0x54a219={'odCer':function(_0x308566,_0x2c4203,_0x8be891){const _0x25e2d4=a29_0x4408;return _0x5385e8[_0x25e2d4(0x193)](_0x308566,_0x2c4203,_0x8be891);},'OVtqw':function(_0x3785ba,_0x573ea4,_0x5c37d3){const _0x5f167b=a29_0x4408;return _0x5385e8[_0x5f167b(0x193)](_0x3785ba,_0x573ea4,_0x5c37d3);}};_0x5385e8[_0x2bfd60(0x193)](overrideQuit,_0x3a8b02,_0x1cde19),_0x5385e8[_0x2bfd60(0x1d3)](overrideTakeScreenshot,_0x3a8b02),helper[_0x2bfd60(0x1a3)](_0x3a8b02,_0x46157d),helper[_0x2bfd60(0x183)](_0x3a8b02,_0x46157d),_0x3a8b02[_0x2bfd60(0x1a4)]=async()=>{return await _0x54a219['odCer'](getAccessibilityResultsSummary,_0x3a8b02,global);},_0x3a8b02[_0x2bfd60(0x1d7)]=async()=>{const _0x50a54b=_0x2bfd60;return await _0x54a219[_0x50a54b(0x175)](getAccessibilityResults,_0x3a8b02,global);};}),_0x1cde19[_0x47c12b(0x1a4)]=async()=>{return await _0x131bca['itqQo'](getAccessibilityResultsSummary,_0x1cde19,global);},_0x1cde19[_0x47c12b(0x1d7)]=async()=>{const _0x396d6b=_0x47c12b;return await _0x131bca[_0x396d6b(0x1a6)](getAccessibilityResults,_0x1cde19,global);},_0x5385e8[_0x47c12b(0x176)](overrideTakeScreenshot,_0x1cde19),_0x5385e8['LevMx'](overrideQuit,_0x1cde19),helper[_0x47c12b(0x1a3)](_0x1cde19,_0x46157d),helper[_0x47c12b(0x183)](_0x1cde19,_0x46157d),helper[_0x47c12b(0x1aa)](global[_0x47c12b(0x197)])&&(global[_0x47c12b(0x197)]=[]),helper[_0x47c12b(0x1aa)](global['__drivers'])&&(global[_0x47c12b(0x1cd)]=[]),global[_0x47c12b(0x197)]['push'](_0x1cde19),global['__driver']=_0x1cde19,_0x5385e8[_0x47c12b(0x187)](global['__drivers'],undefined)&&global['__drivers'][_0x47c12b(0x1a1)](_0x1cde19),_0x376574&&helper['isUndefined'](_0x376574['global'][_0x47c12b(0x197)])&&(_0x376574[_0x47c12b(0x177)][_0x47c12b(0x197)]=[]),_0x376574&&_0x5385e8['iKZvf'](_0x376574['global'][_0x47c12b(0x1cd)],undefined)&&(_0x376574[_0x47c12b(0x177)]['__drivers'][_0x47c12b(0x1a1)](_0x1cde19),_0x376574[_0x47c12b(0x177)][_0x47c12b(0x197)][_0x47c12b(0x1a1)](_0x1cde19)),_0x1cde19;}}return _0x45706f[_0x5300d6(0x195)]=_0x45706f['Builder'],_0x45706f[_0x5300d6(0x1c5)]=_0x356c22,_0x4724af[_0x5300d6(0x17e)]=_0x48549c,_0x45706f;};function a29_0x55b0(){const _0x211531=['../../../helpers/accessibility-automation/helper','agent_','2655189RPUvSN','build','se:ieOptions','axLui','5wrTecy','Builder','GYxtY','ouDif','logLevel','newHubUrl','../../../hubAllocationMethods','4400076QExYfs','debug','__drivers','firefoxOptions','storeOptimalHubUrl','ms:edgeOptions','split','goog:chromeOptions','VHaZR','qLNQu','GjOuH','https://','getAccessibilityResults','getHubUrl','setLogLevel','then','safariOptions_','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','safari.options','1437597YMOmYr','CAPABILITY_KEY','send','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','QgTKa','/session','isAccessibilityPlatform','edgeOptions_','setGlobal','firefoxOptions_','proxy_','isPacProxy','../../../helpers/globals','YbGxn','XYHAz','requireHttpClient','url_','ieOptions','OVtqw','KULCz','global','mergeDeep','tBkWq','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','winstonLogger','setServer','Setting\x20Browserstack\x20capabilities','HttpClient','Hub\x20url\x20set\x20to\x20','New\x20hub\x20url\x20set\x20to\x20','browserStackLogLevel','190hVDhnw','overrideExecute','XmJQE','error','info','xngjM','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','gQvjv','__setBrowserOptions','options_','proxyUrl','path','isBrowserstackInfra','chromeOptions_','capabilities_','1626472WbsRtq','8UTQtqB','uCwxl','../../../helpers/logger','originalBuilder','PgqTg','__driversArray','session_','proxySettings','MBRZT','pDKGX','589446tOcfdE','requireSeleniumWebdriver','edgeOptions','set','capability','push','optimalHubUrl','overrideGet','getAccessibilityResultsSummary','setCapabilities','itqQo','ptKCN','uPjrg','Modifying\x20webdriver\x20builder','isUndefined','1669574KWwLqB','getGlobal','BSXYc','../../../helpers/patchHelpers','aiVKA','vBewY','get','CAwkD','782747jmELNc','ieOptions_','forEach','Lvigz','../accessibility-automation/helper','tTXdh','bZfQP','updateHubUrl','MVPxZ','getRequestOptions','object'];a29_0x55b0=function(){return _0x211531;};return a29_0x55b0();}function a29_0x4408(_0x5ed4fa,_0x38103f){const _0x55b0c8=a29_0x55b0();return a29_0x4408=function(_0x4408b6,_0x2f5f8){_0x4408b6=_0x4408b6-0x16b;let _0x3149c6=_0x55b0c8[_0x4408b6];return _0x3149c6;},a29_0x4408(_0x5ed4fa,_0x38103f);}module['exports']['browserstackAgentObservability']=modify;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a30_0x2aa3(_0x3e9a9a,_0x217d77){const _0x1e5993=a30_0x1e59();return a30_0x2aa3=function(_0x2aa38d,_0x15b379){_0x2aa38d=_0x2aa38d-0x1eb;let _0x5091a2=_0x1e5993[_0x2aa38d];return _0x5091a2;},a30_0x2aa3(_0x3e9a9a,_0x217d77);}const a30_0x421635=a30_0x2aa3;(function(_0x47d6f2,_0x1c3783){const _0x341af0=a30_0x2aa3,_0x20be54=_0x47d6f2();while(!![]){try{const _0x146480=-parseInt(_0x341af0(0x1f4))/0x1+-parseInt(_0x341af0(0x1ee))/0x2*(parseInt(_0x341af0(0x1f9))/0x3)+parseInt(_0x341af0(0x1f2))/0x4*(parseInt(_0x341af0(0x1eb))/0x5)+parseInt(_0x341af0(0x1ef))/0x6+parseInt(_0x341af0(0x1f6))/0x7*(-parseInt(_0x341af0(0x1f8))/0x8)+parseInt(_0x341af0(0x1f0))/0x9+parseInt(_0x341af0(0x1f7))/0xa;if(_0x146480===_0x1c3783)break;else _0x20be54['push'](_0x20be54['shift']());}catch(_0x2cf975){_0x20be54['push'](_0x20be54['shift']());}}}(a30_0x1e59,0x4dd5e));function a30_0x1e59(){const _0x49f6a0=['restore','6668VGTqWU','329268LIXkaw','2162097ZhOfGn','../../../bin/utils/constants','11836XBdSKU','DySkN','620014AGkGZK','../../../helpers/request-spy','4103715rTYOkh','13493180FoGsZx','8bJprIW','150hqvwZH','80TfJLYK','../../../helpers/test-observability/utils'];a30_0x1e59=function(){return _0x49f6a0;};return a30_0x1e59();}const requestSpy=require(a30_0x421635(0x1f5)),constants=require(a30_0x421635(0x1f1)),{addRequestSpy}=require(a30_0x421635(0x1ec));exports['mochaHooks']={'beforeAll'(){const _0x259f25=a30_0x421635,_0x1188a1={'DySkN':function(_0x67490f){return _0x67490f();}},_0x5d78bd='browserstack internal helper hook';_0x1188a1[_0x259f25(0x1f3)](addRequestSpy);},'afterAll'(){const _0x43e092=a30_0x421635,_0x3ebc88='browserstack internal helper hook';this['timeout'](0xea60),requestSpy[_0x43e092(0x1ed)]();}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a31_0x10dce6=a31_0x3d8a;(function(_0x2ee0eb,_0x52da67){const _0x19b0f3=a31_0x3d8a,_0x577172=_0x2ee0eb();while(!![]){try{const _0x527cb7=parseInt(_0x19b0f3(0x13d))/0x1*(-parseInt(_0x19b0f3(0x174))/0x2)+parseInt(_0x19b0f3(0x15c))/0x3+-parseInt(_0x19b0f3(0x196))/0x4+-parseInt(_0x19b0f3(0x13e))/0x5*(parseInt(_0x19b0f3(0x166))/0x6)+-parseInt(_0x19b0f3(0x147))/0x7+-parseInt(_0x19b0f3(0x14a))/0x8*(parseInt(_0x19b0f3(0x157))/0x9)+-parseInt(_0x19b0f3(0x193))/0xa*(-parseInt(_0x19b0f3(0x17d))/0xb);if(_0x527cb7===_0x52da67)break;else _0x577172['push'](_0x577172['shift']());}catch(_0x406e7d){_0x577172['push'](_0x577172['shift']());}}}(a31_0x3963,0x463a8));const {v4:uuidv4}=require(a31_0x10dce6(0x14f)),{name,version}=require(a31_0x10dce6(0x169)),logPatcher=require(a31_0x10dce6(0x173)),BSTestOpsPatcher=new logPatcher({}),{debug,isInternalHook,getObservabilityLinkedProductName}=require(a31_0x10dce6(0x155)),{consoleHolder}=require(a31_0x10dce6(0x18a)),{getPlatformVersion}=require(a31_0x10dce6(0x142)),{shouldProcessEventForTesthub}=require(a31_0x10dce6(0x181));function a31_0x3d8a(_0x4f2f99,_0x245933){const _0x396367=a31_0x3963();return a31_0x3d8a=function(_0x3d8a17,_0x402cd1){_0x3d8a17=_0x3d8a17-0x139;let _0x307d90=_0x396367[_0x3d8a17];return _0x307d90;},a31_0x3d8a(_0x4f2f99,_0x245933);}function a31_0x3963(){const _0xffa9fd=['mHpzQ','_beforeAll','WXxqX','substring','passed','MrqqD','state','concat','../../../helpers/test-observability/constants','homdF','mapTestHooks','parent','push','SkYNr','yTagE','getBrowserName','TatAQ','50nDGdBF','aKhGU','__cloud_provider___','465532RZZjqH','failed','_beforeEach','slice','bs:addPlatformDetails:','1hYvTvN','646120ZEihwz','axNSj','markedStatus','SeuNQ','../../../helpers/helper','wTlGr','fAoDE','getHookSkippedTests','reduce','495950PDwgCq','npiIo','keys','451016fYPkYi','indexOf','hookAnalyticsId','GhAvQ','ssTPE','uuid','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','suites','wDoWY','RCALU','getHooksForTest','../../../helpers/test-observability/utils','filter','18NYXIyI','mrzNY','forEach','hJJqr','Ubuur','802074KulmNW','hook:','bwWWs','_afterAll','generic','getHookDetails','TEST_PLATFORM','_afterEach','BIfJp','toJSON','12qUSxPX','WpXUp','type','../../../../package.json','browserstack','split','emit','RiPqj','SHxps','unknown_grid','GIyXS','NkXQt','sendPlatformDetails','../../utils/logPatcher','133954defUaq','getSession','RJsTs','getPlatform','hook','fromEntries','cUtHg','tests','pending','1420562kgQBFQ','rfufY','UcxnA','ktFAm','../../../helpers/testhub/utils'];a31_0x3963=function(){return _0xffa9fd;};return a31_0x3963();}console={},Object[a31_0x10dce6(0x149)](consoleHolder)[a31_0x10dce6(0x159)](_0x53346e=>{console[_0x53346e]=(..._0x205aa1)=>{BSTestOpsPatcher[_0x53346e](..._0x205aa1);};}),exports['getTestEnv']=()=>{const _0x45b9b7=a31_0x10dce6,_0x51593e={'WXxqX':_0x45b9b7(0x160),'RJsTs':function(_0x48f2ee){return _0x48f2ee();}};return{'ci':_0x51593e[_0x45b9b7(0x184)],'key':_0x51593e[_0x45b9b7(0x176)](uuidv4),'version':version,'collector':'js-'+name};},exports[a31_0x10dce6(0x161)]=_0x3e2fb0=>{const _0x6936ab=a31_0x10dce6,_0x2025b5={};_0x2025b5[_0x6936ab(0x187)]=function(_0x1c2c88,_0x4b42a4){return _0x1c2c88!==_0x4b42a4;},_0x2025b5[_0x6936ab(0x14e)]='string',_0x2025b5[_0x6936ab(0x17f)]=function(_0x4b6442,_0x2857b4){return _0x4b6442!==_0x2857b4;},_0x2025b5[_0x6936ab(0x190)]=_0x6936ab(0x15d),_0x2025b5[_0x6936ab(0x15a)]=function(_0x3900b5,_0x5cbc98){return _0x3900b5!==_0x5cbc98;},_0x2025b5['SZQOY']=_0x6936ab(0x178);const _0x188e09=_0x2025b5;if(!_0x3e2fb0||_0x188e09[_0x6936ab(0x187)](typeof _0x3e2fb0,_0x188e09[_0x6936ab(0x14e)]))return[null,null];if(_0x188e09[_0x6936ab(0x17f)](_0x3e2fb0[_0x6936ab(0x14b)](_0x188e09[_0x6936ab(0x190)]),-0x1)){const _0x38f756=_0x3e2fb0['split'](_0x188e09['yTagE']);return[_0x38f756[0x0][_0x6936ab(0x13b)](0x0,-0x1)[_0x6936ab(0x16b)]('\x22')[0x1],_0x38f756[0x1][_0x6936ab(0x185)](0x1)];}else{if(_0x188e09[_0x6936ab(0x15a)](_0x3e2fb0[_0x6936ab(0x14b)](_0x188e09['SZQOY']),-0x1)){const _0x245eb4=_0x3e2fb0['split'](_0x188e09['SZQOY']);return[_0x245eb4[0x0]['slice'](0x0,-0x1)['split']('\x22')[0x1],_0x3e2fb0];}}return[null,null];},exports[a31_0x10dce6(0x154)]=_0xe7b1f8=>{const _0x316dbe=a31_0x10dce6,_0x5d310e={'XoUhW':function(_0x1de8a1,_0x5404ce){return _0x1de8a1(_0x5404ce);},'WpXUp':_0x316dbe(0x183),'NkXQt':'_afterAll','TatAQ':_0x316dbe(0x13a),'BIfJp':_0x316dbe(0x163)};if(!_0xe7b1f8||!_0xe7b1f8[_0x316dbe(0x18d)])return[];const _0x559dee=[];return[_0x5d310e[_0x316dbe(0x167)],_0x5d310e[_0x316dbe(0x171)],_0x5d310e[_0x316dbe(0x192)],_0x5d310e[_0x316dbe(0x164)]][_0x316dbe(0x159)](_0x2c983e=>{const _0x37f34c=_0x316dbe,_0x3fceb2=_0xe7b1f8[_0x37f34c(0x18d)][_0x2c983e]||[];_0x3fceb2[_0x37f34c(0x159)](_0x200b5a=>{const _0x135191=_0x37f34c;_0x200b5a[_0x135191(0x14c)]&&!_0x5d310e['XoUhW'](isInternalHook,_0x200b5a['fn'])&&_0x559dee[_0x135191(0x18e)](_0x200b5a[_0x135191(0x14c)]);});}),[..._0x559dee,...exports[_0x316dbe(0x154)](_0xe7b1f8[_0x316dbe(0x18d)])];},exports[a31_0x10dce6(0x18c)]=_0x3f6865=>{const _0x24c3b8=a31_0x10dce6,_0x22e7dc={'fAoDE':function(_0x47071c){return _0x47071c();},'whafv':function(_0x4a5e4b,_0x3f48b2){return _0x4a5e4b===_0x3f48b2;},'RCALU':_0x24c3b8(0x163),'rfufY':'_beforeAll','SeuNQ':_0x24c3b8(0x15f),'bwWWs':_0x24c3b8(0x13a)};if(!_0x3f6865||!_0x3f6865[_0x24c3b8(0x18d)])return;[_0x22e7dc[_0x24c3b8(0x17e)],_0x22e7dc[_0x24c3b8(0x141)],_0x22e7dc[_0x24c3b8(0x15e)],_0x22e7dc[_0x24c3b8(0x153)]][_0x24c3b8(0x159)](_0x59e75a=>{const _0x2ad96a=_0x24c3b8,_0x2a66d2={'Ubuur':function(_0x2e3453){return _0x22e7dc['fAoDE'](_0x2e3453);},'homdF':function(_0x23ddc5,_0x2418fc){return _0x22e7dc['whafv'](_0x23ddc5,_0x2418fc);},'SHxps':_0x22e7dc[_0x2ad96a(0x153)],'aKhGU':function(_0x307b68){const _0x56b24b=_0x2ad96a;return _0x22e7dc[_0x56b24b(0x144)](_0x307b68);}},_0x3200b4=_0x3f6865[_0x2ad96a(0x18d)][_0x59e75a]||[];_0x3200b4[_0x2ad96a(0x159)](_0x2879de=>{const _0x3d45fe=_0x2ad96a;if(!_0x2879de['hookAnalyticsId'])_0x2879de[_0x3d45fe(0x14c)]=_0x2a66d2[_0x3d45fe(0x15b)](uuidv4);else _0x2879de[_0x3d45fe(0x140)]&&_0x2a66d2[_0x3d45fe(0x18b)](_0x59e75a,_0x2a66d2[_0x3d45fe(0x16e)])&&(_0x2879de[_0x3d45fe(0x14c)]=_0x2a66d2[_0x3d45fe(0x194)](uuidv4),delete _0x2879de[_0x3d45fe(0x140)]);});}),exports[_0x24c3b8(0x18c)](_0x3f6865[_0x24c3b8(0x18d)]);},exports[a31_0x10dce6(0x172)]=async(_0x19568f,_0x177c6c)=>{const _0x5ccab1=a31_0x10dce6,_0x4436a8={'mHpzQ':function(_0x591388){return _0x591388();},'zJvnp':function(_0x2df450,_0x4a5ee6){return _0x2df450(_0x4a5ee6);},'cUtHg':function(_0x421a46,_0x10186b){return _0x421a46(_0x10186b);},'wDoWY':function(_0x5b4a31,_0x841da6){return _0x5b4a31===_0x841da6;},'RiPqj':_0x5ccab1(0x16a),'npiIo':_0x5ccab1(0x16f),'SkYNr':_0x5ccab1(0x162)};try{if(!_0x4436a8[_0x5ccab1(0x182)](shouldProcessEventForTesthub))return;const _0x32c34b=await _0x19568f['getCapabilities'](),_0x3f13dd=await _0x19568f[_0x5ccab1(0x175)](),_0x256ead={},_0x127942=Object[_0x5ccab1(0x179)](_0x3f13dd['getCapabilities']()['map_']),_0x5c873c={'product':_0x4436a8['zJvnp'](getObservabilityLinkedProductName,_0x127942),'capabilities':_0x127942,'platform':_0x32c34b[_0x5ccab1(0x177)](),'platform_version':_0x4436a8[_0x5ccab1(0x17a)](getPlatformVersion,_0x4436a8[_0x5ccab1(0x152)](global[_0x5ccab1(0x195)],_0x4436a8[_0x5ccab1(0x16d)])),'browser':_0x32c34b[_0x5ccab1(0x191)](),'browser_version':_0x32c34b['getBrowserVersion'](),'session_id':_0x3f13dd[_0x5ccab1(0x165)]()};global[_0x5ccab1(0x195)]?_0x256ead[global[_0x5ccab1(0x195)]]=_0x5c873c:_0x256ead[_0x4436a8[_0x5ccab1(0x148)]]=_0x5c873c,process[_0x5ccab1(0x16c)](_0x5ccab1(0x13c)+process['pid'],{'timestamp':new Date()['toISOString'](),'level':null,'message':null,'kind':_0x4436a8[_0x5ccab1(0x18f)],'http_response':_0x256ead,'uuid':_0x177c6c});}catch(_0x2d35f7){_0x4436a8[_0x5ccab1(0x17a)](debug,_0x5ccab1(0x150)+_0x2d35f7);}},exports[a31_0x10dce6(0x145)]=_0x48129f=>{const _0x4220c3=a31_0x10dce6,_0x127231={};_0x127231[_0x4220c3(0x14d)]=function(_0x310bf5,_0x3a97c5){return _0x310bf5!==_0x3a97c5;},_0x127231[_0x4220c3(0x13f)]='hook',_0x127231[_0x4220c3(0x143)]=function(_0x1c2429,_0x8c16ec){return _0x1c2429!==_0x8c16ec;},_0x127231['mrzNY']=_0x4220c3(0x186),_0x127231[_0x4220c3(0x180)]=function(_0x417b88,_0x5932db){return _0x417b88!==_0x5932db;},_0x127231[_0x4220c3(0x170)]=_0x4220c3(0x139);const _0x5ef5c8=_0x127231,_0x5d894d=_0x48129f[_0x4220c3(0x151)][_0x4220c3(0x146)]((_0xb6756a,_0x4fed0b)=>{const _0x5573ac=_0x4220c3,_0x425b36=exports[_0x5573ac(0x145)](_0x4fed0b);return _0x425b36&&(_0xb6756a=_0xb6756a[_0x5573ac(0x189)](_0x425b36)),_0xb6756a;},[]),_0x3c03fe=_0x48129f[_0x4220c3(0x17b)][_0x4220c3(0x156)](_0x293258=>{const _0x419971=_0x4220c3,_0xa6d884=_0x5ef5c8['GhAvQ'](_0x293258[_0x419971(0x168)],_0x5ef5c8[_0x419971(0x13f)])&&!_0x293258[_0x419971(0x140)]&&_0x5ef5c8[_0x419971(0x143)](_0x293258['state'],_0x5ef5c8[_0x419971(0x158)])&&_0x5ef5c8[_0x419971(0x180)](_0x293258[_0x419971(0x188)],_0x5ef5c8[_0x419971(0x170)])&&!_0x293258[_0x419971(0x17c)];return _0xa6d884;});return _0x3c03fe[_0x4220c3(0x189)](_0x5d894d);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a32_0xde5c(){const _0x53de06=['dwOFf','OVXot','JNunk','executeAsyncScript','env','616548UKhIQe','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','../../helpers/testhub/utils','https:','XgARw','\x20-\x20','testAnalyticsId','egyyx','length','sessionNameSet__','Performing\x20scan\x20before\x20saving\x20results','gpxIm','5zWcfyC','thTestRunUuid','suHaA','../../helpers/accessibility-automation/helper','then','app','KZvIO','5221024vzZqUW','isAccessibilityPlatform','AbOCV','gEuMa','startMonitoring','OhTgW','fSayN','cZsVs','MXMMe','__error_messages__','saveTestResults','failed','__drivers','join','52238eLWgKz',',\x22level\x22:\x20\x22','quitCount_','qICfq','timeout','napXZ','passed','sOSha','../../helpers/globals','http:','getCurrentUrl','kgzBp','format','UHcTn','BjXFO','26qyXPPW','7548336zBgcNP','UfFDh','../../helpers/testhub/constants','browserstackSessionName','NIveI','percyCaptureMode','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','PnHeN','../../helpers/logger','wmWyu','pCmGx','../../helpers/accessibility-automation/scripts','FnYFb','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','thBuildUuid','mochaHooks','getGlobal','ENV_VAR','kncvT','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','Failed\x20to\x20store\x20session\x20name:\x20','titlePath','2982472DzwudW','WzQtZ','245EtOMck','protocol','currentTest','shift','OYsWi','dyAyk','__sessionFailed','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','fypRM','debug','6666PKtFVg','err','capabilities','xDFcE','aCvuY','Passed','setGlobal','sMNWp','accessibilityScanStarted','stringify','mXikx','shouldScanTestForAccessibility','performScan','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','driverCleanup','session_','push','./test-observability/mochaUtils','OWISs','SeleF','../../helpers/performance-tester','TJbWp','isArray','negzv','error','32800hkVkHC','message','glwhe','info','135144JbwkCY','winstonLogger'];a32_0xde5c=function(){return _0x53de06;};return a32_0xde5c();}function a32_0x3813(_0x5b1461,_0x522561){const _0xde5ccf=a32_0xde5c();return a32_0x3813=function(_0x3813da,_0xf3673b){_0x3813da=_0x3813da-0x160;let _0x49a381=_0xde5ccf[_0x3813da];return _0x49a381;},a32_0x3813(_0x5b1461,_0x522561);}const a32_0x4225dc=a32_0x3813;(function(_0x2aff75,_0x2e16a4){const _0x4bf0fe=a32_0x3813,_0xac682a=_0x2aff75();while(!![]){try{const _0x5ea755=parseInt(_0x4bf0fe(0x1d6))/0x1*(-parseInt(_0x4bf0fe(0x16e))/0x2)+parseInt(_0x4bf0fe(0x1b5))/0x3+-parseInt(_0x4bf0fe(0x185))/0x4*(-parseInt(_0x4bf0fe(0x1c1))/0x5)+-parseInt(_0x4bf0fe(0x1ae))/0x6*(-parseInt(_0x4bf0fe(0x187))/0x7)+parseInt(_0x4bf0fe(0x1c8))/0x8+parseInt(_0x4bf0fe(0x16f))/0x9+-parseInt(_0x4bf0fe(0x1aa))/0xa*(parseInt(_0x4bf0fe(0x191))/0xb);if(_0x5ea755===_0x2e16a4)break;else _0xac682a['push'](_0xac682a['shift']());}catch(_0x463fe2){_0xac682a['push'](_0xac682a['shift']());}}}(a32_0xde5c,0x89b40));const util=require('util'),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a32_0x4225dc(0x1c4)),{percyAutoCapture}=require('../../helpers/percy/utils'),{sendPlatformDetails}=require(a32_0x4225dc(0x1a2)),{isBrowserstackInfra,markSessionStatus}=require('../../helpers/helper'),PerformanceTester=require(a32_0x4225dc(0x1a5)),scripts=require(a32_0x4225dc(0x17a)),globals=require(a32_0x4225dc(0x167)),logger=require(a32_0x4225dc(0x177))[a32_0x4225dc(0x1af)],{shouldProcessEventForTesthub}=require(a32_0x4225dc(0x1b7)),testHubConstants=require(a32_0x4225dc(0x171));exports[a32_0x4225dc(0x17e)]={'beforeAll'(){const _0x4fd344=a32_0x4225dc,_0x417bb6={'uClvZ':function(_0x3193d2,_0x18f4f4,_0xac363f,_0x28e065){return _0x3193d2(_0x18f4f4,_0xac363f,_0x28e065);},'mXikx':_0x4fd344(0x1d3),'MXMMe':'\x20|\x20','KZvIO':function(_0x57146e,_0x56d6ff,_0x4bd770){return _0x57146e(_0x56d6ff,_0x4bd770);},'UHcTn':_0x4fd344(0x165),'egyyx':function(_0x592901){return _0x592901();},'dyAyk':function(_0x341f64,_0x413447,_0x47f65a){return _0x341f64(_0x413447,_0x47f65a);}};PerformanceTester[_0x4fd344(0x1cc)]();const _0xac1820='browserstack internal helper hook';global[_0x4fd344(0x1d1)]=[],global[_0x4fd344(0x18d)]=![],global[_0x4fd344(0x19f)]=async()=>{const _0x492435=_0x4fd344;let _0x1ac751=![];try{await global[_0x492435(0x1d4)][0x0]['session_'],_0x1ac751=!![],global[_0x492435(0x18d)]?await _0x417bb6['uClvZ'](markSessionStatus,global['__drivers'][0x0],_0x417bb6[_0x492435(0x19b)],global[_0x492435(0x1d1)][_0x492435(0x1d5)](_0x417bb6[_0x492435(0x1d0)])):await _0x417bb6[_0x492435(0x1c7)](markSessionStatus,global[_0x492435(0x1d4)][0x0],_0x417bb6[_0x492435(0x16c)]);}catch(_0x16c407){}global['__error_messages__']=[],global['__sessionFailed']=![];if(_0x1ac751)try{try{_0x417bb6[_0x492435(0x1bc)](shouldProcessEventForTesthub)&&(global[_0x492435(0x1d4)][0x0]&&await _0x417bb6[_0x492435(0x18c)](sendPlatformDetails,global[_0x492435(0x1d4)][0x0],this[_0x492435(0x189)]?this[_0x492435(0x189)][_0x492435(0x1bb)]:null));}catch{}await global[_0x492435(0x1d4)][0x0]['initQuit']();}catch(_0x38ac13){}};},'beforeEach'(_0x35ec8b){const _0x4ec501=a32_0x4225dc,_0x1b7a41={'OWISs':function(_0x1eb667,_0x378668){return _0x1eb667>_0x378668;},'kgzBp':_0x4ec501(0x1ba),'SeleF':function(_0x4e3763,_0xd0ea20,_0x1a2718){return _0x4e3763(_0xd0ea20,_0x1a2718);},'qICfq':'bstackA11yShouldScan','hixtC':function(_0x1b0fdb){return _0x1b0fdb();},'UOnHp':function(_0x4f6ca9,_0x88fbd2){return _0x4f6ca9>_0x88fbd2;},'PnHeN':_0x4ec501(0x1c9),'XgARw':function(_0x400522,_0x8a1fb6){return _0x400522===_0x8a1fb6;},'cZsVs':_0x4ec501(0x168),'TJbWp':_0x4ec501(0x1b8),'aCvuY':'Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','AbOCV':'Automate\x20test\x20case\x20execution\x20has\x20started.','gEuMa':function(_0x17bf2e){return _0x17bf2e();}};new Promise(async _0x4015ee=>{const _0x1c7cbc=_0x4ec501,_0x22dda6='browserstack internal helper hook';let _0x59838b=!![];try{_0x1b7a41[_0x1c7cbc(0x1a3)](global[_0x1c7cbc(0x1d4)][_0x1c7cbc(0x1bd)],0x1)&&(await global[_0x1c7cbc(0x19f)](),global[_0x1c7cbc(0x1d4)][_0x1c7cbc(0x18a)]()),_0x1b7a41[_0x1c7cbc(0x1a3)](global['__drivers'][0x0][_0x1c7cbc(0x161)],0x0)&&(_0x59838b=![],await global['driverCleanup']());}catch{}try{Array[_0x1c7cbc(0x1a7)](global[_0x1c7cbc(0x1d4)])&&global[_0x1c7cbc(0x1d4)][0x0]&&(global[_0x1c7cbc(0x1d4)][0x0][_0x1c7cbc(0x172)]=this[_0x1c7cbc(0x189)][_0x1c7cbc(0x184)]()[_0x1c7cbc(0x1d5)](_0x1b7a41[_0x1c7cbc(0x16a)])),global[_0x1c7cbc(0x172)]=this[_0x1c7cbc(0x189)]['titlePath']()[_0x1c7cbc(0x1d5)](_0x1b7a41['kgzBp']);}catch(_0x3e8aa0){logger[_0x1c7cbc(0x190)](_0x1c7cbc(0x183)+_0x3e8aa0);}this[_0x1c7cbc(0x189)]['shouldScanTestForAccessibility']=_0x1b7a41[_0x1c7cbc(0x1a4)](shouldScanTestForAccessibility,this[_0x1c7cbc(0x189)][_0x1c7cbc(0x184)](),!![]),globals[_0x1c7cbc(0x197)](_0x1b7a41[_0x1c7cbc(0x162)],this[_0x1c7cbc(0x189)][_0x1c7cbc(0x19c)]),this[_0x1c7cbc(0x189)][_0x1c7cbc(0x199)]=!![];if(_0x1b7a41['hixtC'](isAccessibilityAutomationSession)&&_0x59838b&&Array[_0x1c7cbc(0x1a7)](global['__drivers'])&&_0x1b7a41['UOnHp'](global[_0x1c7cbc(0x1d4)][_0x1c7cbc(0x1bd)],0x0)&&globals[_0x1c7cbc(0x17f)](_0x1b7a41[_0x1c7cbc(0x176)]))try{const _0x477065=await global[_0x1c7cbc(0x1d4)][0x0][_0x1c7cbc(0x1a0)];if(_0x477065){let _0x1b675a=!![];const _0x228bc6=await global[_0x1c7cbc(0x1d4)][0x0][_0x1c7cbc(0x169)]();let _0x1b3292;try{_0x1b3292=new URL(_0x228bc6);}catch(_0x2e350f){_0x1b675a=![];}_0x1b675a=_0x1b7a41[_0x1c7cbc(0x1b9)](_0x1b3292['protocol'],_0x1b7a41[_0x1c7cbc(0x1cf)])||_0x1b7a41[_0x1c7cbc(0x1b9)](_0x1b3292[_0x1c7cbc(0x188)],_0x1b7a41[_0x1c7cbc(0x1a6)]),_0x1b675a&&(this[_0x1c7cbc(0x189)][_0x1c7cbc(0x19c)]&&logger[_0x1c7cbc(0x1ad)](_0x1b7a41[_0x1c7cbc(0x195)])),this[_0x1c7cbc(0x189)][_0x1c7cbc(0x199)]=this[_0x1c7cbc(0x189)]['shouldScanTestForAccessibility'],this[_0x1c7cbc(0x189)][_0x1c7cbc(0x19c)]&&logger[_0x1c7cbc(0x1ad)](_0x1b7a41[_0x1c7cbc(0x1ca)]);}}catch(_0x4bb104){logger['error'](_0x1c7cbc(0x17c)+util[_0x1c7cbc(0x16b)](_0x4bb104));}_0x1b7a41[_0x1c7cbc(0x1cb)](_0x4015ee);})[_0x4ec501(0x1c5)](_0x35ec8b);},'afterEach'(_0x533d8c){const _0x1cabfc=a32_0x4225dc,_0x466b1a={'pCmGx':function(_0x4c711f,_0x1c522f){return _0x4c711f>_0x1c522f;},'OVXot':function(_0x22dbef,_0xe31ff3){return _0x22dbef===_0xe31ff3;},'fypRM':'testcase','UfFDh':'appium:app','sOSha':function(_0x5b7c1e,_0x33f05a,_0x56e277,_0x2652bd){return _0x5b7c1e(_0x33f05a,_0x56e277,_0x2652bd);},'NIveI':_0x1cabfc(0x1ba),'suHaA':function(_0x582d06,_0x2bce38){return _0x582d06!==_0x2bce38;},'napXZ':'passed','kncvT':function(_0x4ca139,_0x42ea75,_0x285208){return _0x4ca139(_0x42ea75,_0x285208);},'fSayN':function(_0x2d9943,_0xba9d5c){return _0x2d9943+_0xba9d5c;},'jmoCs':'Failed:\x20','sMNWp':_0x1cabfc(0x1a9),'gpxIm':function(_0x564e6a,_0xf38de6,_0x5c50af){return _0x564e6a(_0xf38de6,_0x5c50af);},'BjXFO':_0x1cabfc(0x196),'FgKiO':_0x1cabfc(0x1ad),'xDFcE':_0x1cabfc(0x1c9),'dyWmJ':'bstackA11yShouldScan','dwOFf':_0x1cabfc(0x182),'OYsWi':_0x1cabfc(0x1bf),'glwhe':'Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','OhTgW':function(_0x5973af){return _0x5973af();},'negzv':function(_0x1ed7c2,_0x3a288c,_0x32e962){return _0x1ed7c2(_0x3a288c,_0x32e962);},'FnYFb':_0x1cabfc(0x190),'wmWyu':function(_0x4794ca,_0x2341c4){return _0x4794ca>_0x2341c4;},'JNunk':function(_0x2bf050){return _0x2bf050();}},_0x5bf9da='browserstack internal helper hook';this[_0x1cabfc(0x163)](0xfde8);const _0x279489=async(_0x14c412,_0x1eed62)=>{const _0x31dcfa=_0x1cabfc;await global[_0x31dcfa(0x1d4)][0x0]['executeScript'](_0x31dcfa(0x1b6)+_0x14c412+_0x31dcfa(0x160)+_0x1eed62+'\x22}}');};new Promise(async _0x809b21=>{const _0x6c050f=_0x1cabfc;try{_0x466b1a[_0x6c050f(0x179)](global['__drivers'][_0x6c050f(0x1bd)],0x1)&&(await global['driverCleanup'](),global[_0x6c050f(0x1d4)]['shift'](),global['__error_messages__']=[],global[_0x6c050f(0x18d)]=![]);try{if(global['percy']&&_0x466b1a[_0x6c050f(0x1b1)](global[_0x6c050f(0x174)],_0x466b1a[_0x6c050f(0x18f)])&&global[_0x6c050f(0x1d4)][0x0]){const _0x512e3d=_0x466b1a['pCmGx'](global[_0x6c050f(0x193)]['length'],0x0)?!!global[_0x6c050f(0x193)][0x0][_0x6c050f(0x1c6)]||!!global[_0x6c050f(0x193)][0x0][_0x466b1a[_0x6c050f(0x170)]]:![],_0x33da74={};_0x33da74['app']=_0x512e3d,await _0x466b1a[_0x6c050f(0x166)](percyAutoCapture,global['__drivers'][0x0],_0x466b1a[_0x6c050f(0x18f)],_0x33da74);}}catch(_0x1af058){}!global['__skipSessionName']&&(await global['__drivers'][0x0]['executeScript'](_0x6c050f(0x175)+JSON[_0x6c050f(0x19a)](this[_0x6c050f(0x189)]['titlePath']()[_0x6c050f(0x1d5)](_0x466b1a[_0x6c050f(0x173)]))+'}}'),global['__drivers'][0x0][_0x6c050f(0x1be)]=!![]);const _0x41443f=_0x466b1a[_0x6c050f(0x1c3)](this[_0x6c050f(0x189)]['state'],_0x466b1a[_0x6c050f(0x164)]);_0x41443f?(global['__sessionFailed']=!![],global['__error_messages__'][_0x6c050f(0x1a1)](this[_0x6c050f(0x189)][_0x6c050f(0x192)][_0x6c050f(0x1ab)]),await _0x466b1a[_0x6c050f(0x181)](_0x279489,JSON['stringify'](_0x466b1a[_0x6c050f(0x1ce)](_0x466b1a['jmoCs'],this[_0x6c050f(0x189)][_0x6c050f(0x192)][_0x6c050f(0x1ab)])),_0x466b1a[_0x6c050f(0x198)])):await _0x466b1a[_0x6c050f(0x1c0)](_0x279489,JSON['stringify'](_0x466b1a[_0x6c050f(0x16d)]),_0x466b1a['FgKiO']);}catch(_0x3be3a0){}try{if(this[_0x6c050f(0x189)]['accessibilityScanStarted']&&globals[_0x6c050f(0x17f)](_0x466b1a[_0x6c050f(0x194)])&&globals['getGlobal'](_0x466b1a['dyWmJ'])){logger[_0x6c050f(0x1ad)](_0x466b1a[_0x6c050f(0x1b0)]);const _0x1df29b={};_0x1df29b[_0x6c050f(0x1c2)]=this[_0x6c050f(0x189)]['testAnalyticsId'],_0x1df29b[_0x6c050f(0x17d)]=process[_0x6c050f(0x1b4)][testHubConstants['ENV_VAR']['BROWSERSTACK_TESTHUB_UUID']],_0x1df29b['thJwtToken']=process[_0x6c050f(0x1b4)][testHubConstants[_0x6c050f(0x180)]['BROWSERSTACK_TESTHUB_JWT']];const _0x5e5511=_0x1df29b;logger[_0x6c050f(0x190)](_0x6c050f(0x19e)+JSON[_0x6c050f(0x19a)](_0x5e5511)),logger[_0x6c050f(0x190)](_0x466b1a[_0x6c050f(0x18b)]),logger[_0x6c050f(0x190)](util[_0x6c050f(0x16b)](await global[_0x6c050f(0x1d4)][0x0]['executeAsyncScript'](scripts[_0x6c050f(0x19d)],{'method':global[_0x6c050f(0x172)]}))),await global[_0x6c050f(0x1d4)][0x0][_0x6c050f(0x1b3)](scripts[_0x6c050f(0x1d2)],_0x5e5511),logger['info'](_0x466b1a[_0x6c050f(0x1ac)]);}}catch(_0x1e40b6){logger[_0x6c050f(0x1a9)](_0x6c050f(0x18e)+this[_0x6c050f(0x189)][_0x6c050f(0x184)]()+'.\x20Error\x20:',_0x1e40b6);}try{try{if(_0x466b1a[_0x6c050f(0x1cd)](shouldProcessEventForTesthub)){global[_0x6c050f(0x1d4)][0x0]&&await _0x466b1a['negzv'](sendPlatformDetails,global['__drivers'][0x0],this['currentTest']?this['currentTest'][_0x6c050f(0x1bb)]:null);if(_0x466b1a[_0x6c050f(0x1cd)](isBrowserstackInfra)){const _0x14e2b2='ObservabilitySync:'+Date['now']();await _0x466b1a[_0x6c050f(0x1a8)](_0x279489,JSON[_0x6c050f(0x19a)](_0x14e2b2),_0x466b1a[_0x6c050f(0x17b)]);}}}catch{}_0x466b1a[_0x6c050f(0x178)](global[_0x6c050f(0x1d4)][0x0][_0x6c050f(0x161)],0x0)&&await global[_0x6c050f(0x19f)]();}catch(_0x22e0e0){}_0x466b1a[_0x6c050f(0x1b2)](_0x809b21);})[_0x1cabfc(0x1c5)](()=>_0x533d8c());},'afterAll'(_0x4b1a77){const _0x53fc94=a32_0x4225dc,_0x4ee680={'WzQtZ':function(_0x579b53){return _0x579b53();}},_0x3a78e9='browserstack internal helper hook';this[_0x53fc94(0x163)](0xfde8),new Promise(async _0x205126=>{const _0x174d85=_0x53fc94;PerformanceTester['stopMonitoring'](),await global[_0x174d85(0x19f)](),_0x4ee680[_0x174d85(0x186)](_0x205126);})[_0x53fc94(0x1c5)](()=>_0x4b1a77());}};
|
|
1
|
+
function a32_0x24e1(_0x2e0bce,_0x33c57f){const _0x3589f9=a32_0x3589();return a32_0x24e1=function(_0x24e120,_0x431d09){_0x24e120=_0x24e120-0xe1;let _0x3da30a=_0x3589f9[_0x24e120];return _0x3da30a;},a32_0x24e1(_0x2e0bce,_0x33c57f);}const a32_0x3c3521=a32_0x24e1;(function(_0x24d8fe,_0x3a633f){const _0x3c00e8=a32_0x24e1,_0x29362f=_0x24d8fe();while(!![]){try{const _0x551a1e=parseInt(_0x3c00e8(0x107))/0x1+-parseInt(_0x3c00e8(0x10c))/0x2+parseInt(_0x3c00e8(0x128))/0x3+parseInt(_0x3c00e8(0x135))/0x4*(parseInt(_0x3c00e8(0x137))/0x5)+parseInt(_0x3c00e8(0x152))/0x6*(parseInt(_0x3c00e8(0xf1))/0x7)+-parseInt(_0x3c00e8(0x138))/0x8*(-parseInt(_0x3c00e8(0xe4))/0x9)+-parseInt(_0x3c00e8(0xfd))/0xa;if(_0x551a1e===_0x3a633f)break;else _0x29362f['push'](_0x29362f['shift']());}catch(_0x4851bc){_0x29362f['push'](_0x29362f['shift']());}}}(a32_0x3589,0x656c4));const util=require('util'),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a32_0x3c3521(0x105)),{percyAutoCapture}=require('../../helpers/percy/utils'),{sendPlatformDetails}=require(a32_0x3c3521(0x150)),{isBrowserstackInfra,markSessionStatus}=require('../../helpers/helper'),PerformanceTester=require(a32_0x3c3521(0x110)),scripts=require(a32_0x3c3521(0x120)),globals=require(a32_0x3c3521(0x130)),logger=require(a32_0x3c3521(0xed))[a32_0x3c3521(0xf2)],{shouldProcessEventForTesthub}=require(a32_0x3c3521(0x10d)),testHubConstants=require(a32_0x3c3521(0x13d));function a32_0x3589(){const _0x3f5be1=['passed','10476010ayhtrN','ZVKaU','appium:app','executeScript','UWwVn','IJngt','performScan','then','../../helpers/accessibility-automation/helper','error','771005lFFbaA','mochaHooks','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','ENV_VAR','__sessionFailed','1243002pytlbD','../../helpers/testhub/utils','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','thBuildUuid','../../helpers/performance-tester','LAuGQ','imFvn','jyoNI','getGlobal','iPLEj','TddFM','titlePath','http:','timeout','__skipSessionName','fOMuC','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','LkxEv','debug','aIOGQ','../../helpers/accessibility-automation/scripts','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','shouldScanTestForAccessibility','executeAsyncScript','testAnalyticsId','info','ntUet','CYBEo','116187oEFTOM','xXxpT','getCurrentUrl','percy','shift','qgHgs','session_','qtKpQ','../../helpers/globals','thTestRunUuid','initQuit','isArray','QMTIu','897628WEtcjp','Failed:\x20','15fiSFMt','1160YVmUyk','saveTestResults','err','thJwtToken','.\x20Error\x20:','../../helpers/testhub/constants','LrdZK','fEDSa','length','TaJaO','bHusw','quitCount_','message','failed','IKPvo','\x20-\x20','currentTest','\x20|\x20','ejecb','myUak','protocol','browserstackSessionName','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','env','./test-observability/mochaUtils','sessionNameSet__','2619390oIEQmI','MTNWJ','gcnGd','eIicq','vORVj','Performing\x20scan\x20before\x20saving\x20results','__error_messages__','BROWSERSTACK_TESTHUB_JWT','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','ZpcHM','app','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','isAccessibilityPlatform','10242LdpIDp','join','state','QhyGj','XBJxV','\x22}}','capabilities','ObservabilitySync:','bstackA11yShouldScan','../../helpers/logger','driverCleanup','__drivers','accessibilityScanStarted','7xBomzf','winstonLogger','IMoKb','stringify','https:','mTeEF','format','BROWSERSTACK_TESTHUB_UUID','Passed','XPTTt',',\x22level\x22:\x20\x22'];a32_0x3589=function(){return _0x3f5be1;};return a32_0x3589();}exports[a32_0x3c3521(0x108)]={'beforeAll'(){const _0x59777d=a32_0x3c3521,_0x106792={'xXxpT':function(_0x513df4,_0x42fcec,_0x2e38a8,_0x3e705c){return _0x513df4(_0x42fcec,_0x2e38a8,_0x3e705c);},'iPLEj':_0x59777d(0x145),'ntUet':_0x59777d(0x149),'XPTTt':function(_0x464a0c,_0x1ac6f4,_0x2cd0b4){return _0x464a0c(_0x1ac6f4,_0x2cd0b4);},'XBJxV':_0x59777d(0xfc),'MTNWJ':function(_0x3a29b4){return _0x3a29b4();}};PerformanceTester['startMonitoring']();const _0x307c9f='browserstack internal helper hook';global['__error_messages__']=[],global[_0x59777d(0x10b)]=![],global[_0x59777d(0xee)]=async()=>{const _0x5ee8fd=_0x59777d;let _0x27a740=![];try{await global[_0x5ee8fd(0xef)][0x0][_0x5ee8fd(0x12e)],_0x27a740=!![],global[_0x5ee8fd(0x10b)]?await _0x106792[_0x5ee8fd(0x129)](markSessionStatus,global[_0x5ee8fd(0xef)][0x0],_0x106792[_0x5ee8fd(0x115)],global[_0x5ee8fd(0x158)]['join'](_0x106792[_0x5ee8fd(0x126)])):await _0x106792[_0x5ee8fd(0xfa)](markSessionStatus,global['__drivers'][0x0],_0x106792[_0x5ee8fd(0xe8)]);}catch(_0x4ac0b6){}global[_0x5ee8fd(0x158)]=[],global[_0x5ee8fd(0x10b)]=![];if(_0x27a740)try{try{_0x106792[_0x5ee8fd(0x153)](shouldProcessEventForTesthub)&&(global['__drivers'][0x0]&&await _0x106792['XPTTt'](sendPlatformDetails,global[_0x5ee8fd(0xef)][0x0],this[_0x5ee8fd(0x148)]?this[_0x5ee8fd(0x148)][_0x5ee8fd(0x124)]:null));}catch{}await global[_0x5ee8fd(0xef)][0x0][_0x5ee8fd(0x132)]();}catch(_0x129dae){}};},'beforeEach'(_0x108e3f){const _0x5aa64b=a32_0x3c3521,_0x7226e4={'UWwVn':function(_0x5ea0c4,_0xf61cd3){return _0x5ea0c4>_0xf61cd3;},'fOMuC':_0x5aa64b(0x147),'XopCP':function(_0xcb77c7,_0x3ea204,_0x4f89e8){return _0xcb77c7(_0x3ea204,_0x4f89e8);},'vORVj':_0x5aa64b(0xec),'PjHiz':function(_0x5777bc){return _0x5777bc();},'myUak':_0x5aa64b(0xe3),'ZpcHM':function(_0xff817c,_0x599b40){return _0xff817c===_0x599b40;},'NgjSE':_0x5aa64b(0x118),'ejecb':_0x5aa64b(0xf5),'bIKZg':_0x5aa64b(0x14e),'imFvn':'Automate\x20test\x20case\x20execution\x20has\x20started.'};new Promise(async _0x24244a=>{const _0x2a8055=_0x5aa64b,_0x4f1875='browserstack internal helper hook';let _0x469fcd=!![];try{_0x7226e4[_0x2a8055(0x101)](global[_0x2a8055(0xef)][_0x2a8055(0x140)],0x1)&&(await global['driverCleanup'](),global[_0x2a8055(0xef)][_0x2a8055(0x12c)]()),_0x7226e4[_0x2a8055(0x101)](global[_0x2a8055(0xef)][0x0][_0x2a8055(0x143)],0x0)&&(_0x469fcd=![],await global[_0x2a8055(0xee)]());}catch{}try{Array[_0x2a8055(0x133)](global['__drivers'])&&global[_0x2a8055(0xef)][0x0]&&(global['__drivers'][0x0][_0x2a8055(0x14d)]=this[_0x2a8055(0x148)][_0x2a8055(0x117)]()[_0x2a8055(0xe5)](_0x7226e4[_0x2a8055(0x11b)])),global[_0x2a8055(0x14d)]=this[_0x2a8055(0x148)][_0x2a8055(0x117)]()[_0x2a8055(0xe5)](_0x7226e4['fOMuC']);}catch(_0x10285f){logger['debug']('Failed\x20to\x20store\x20session\x20name:\x20'+_0x10285f);}this['currentTest'][_0x2a8055(0x122)]=_0x7226e4['XopCP'](shouldScanTestForAccessibility,this[_0x2a8055(0x148)]['titlePath'](),!![]),globals['setGlobal'](_0x7226e4[_0x2a8055(0x156)],this['currentTest']['shouldScanTestForAccessibility']),this['currentTest'][_0x2a8055(0xf0)]=!![];if(_0x7226e4['PjHiz'](isAccessibilityAutomationSession)&&_0x469fcd&&Array['isArray'](global[_0x2a8055(0xef)])&&_0x7226e4[_0x2a8055(0x101)](global[_0x2a8055(0xef)]['length'],0x0)&&globals['getGlobal'](_0x7226e4[_0x2a8055(0x14b)]))try{const _0x46d4d6=await global[_0x2a8055(0xef)][0x0][_0x2a8055(0x12e)];if(_0x46d4d6){let _0x472d63=!![];const _0x2e4c4e=await global['__drivers'][0x0][_0x2a8055(0x12a)]();let _0x2039df;try{_0x2039df=new URL(_0x2e4c4e);}catch(_0x691724){_0x472d63=![];}_0x472d63=_0x7226e4[_0x2a8055(0x15b)](_0x2039df[_0x2a8055(0x14c)],_0x7226e4['NgjSE'])||_0x7226e4[_0x2a8055(0x15b)](_0x2039df['protocol'],_0x7226e4[_0x2a8055(0x14a)]),_0x472d63&&(this[_0x2a8055(0x148)][_0x2a8055(0x122)]&&logger[_0x2a8055(0x125)](_0x7226e4['bIKZg'])),this[_0x2a8055(0x148)][_0x2a8055(0xf0)]=this[_0x2a8055(0x148)][_0x2a8055(0x122)],this[_0x2a8055(0x148)][_0x2a8055(0x122)]&&logger['info'](_0x7226e4[_0x2a8055(0x112)]);}}catch(_0x2dc19c){logger[_0x2a8055(0x106)](_0x2a8055(0x109)+util[_0x2a8055(0xf7)](_0x2dc19c));}_0x7226e4['PjHiz'](_0x24244a);})['then'](_0x108e3f);},'afterEach'(_0x1680b0){const _0xbad8b7=a32_0x3c3521,_0x3439a8={'reOzr':function(_0x5cf6e9,_0x3080df){return _0x5cf6e9>_0x3080df;},'LAuGQ':function(_0x171cf8,_0xd327dd){return _0x171cf8===_0xd327dd;},'lJciS':'testcase','eIicq':function(_0x248a16,_0xf1d7c7){return _0x248a16>_0xf1d7c7;},'CYBEo':_0xbad8b7(0xff),'jyoNI':function(_0x3b1bc2,_0x39c2d1,_0x29ef29,_0x1282f9){return _0x3b1bc2(_0x39c2d1,_0x29ef29,_0x1282f9);},'TaJaO':_0xbad8b7(0x147),'IKPvo':function(_0xd40e4d,_0x344cb9){return _0xd40e4d!==_0x344cb9;},'aIOGQ':'passed','bHusw':function(_0x350080,_0x497af5,_0x389ebb){return _0x350080(_0x497af5,_0x389ebb);},'qgHgs':function(_0x3aec35,_0x5aa1ab){return _0x3aec35+_0x5aa1ab;},'PTovD':_0xbad8b7(0x136),'QhyGj':'error','IMoKb':_0xbad8b7(0xf9),'ZVKaU':_0xbad8b7(0x125),'qtKpQ':_0xbad8b7(0xe3),'QMTIu':'bstackA11yShouldScan','WXrhc':_0xbad8b7(0x121),'gcnGd':_0xbad8b7(0x157),'LrdZK':'Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','LkxEv':function(_0x55616d){return _0x55616d();},'IJngt':function(_0x4e0c9e,_0x424585,_0x10cb94){return _0x4e0c9e(_0x424585,_0x10cb94);},'fEDSa':_0xbad8b7(0x11e),'TddFM':function(_0x4ed30c,_0x12f10c){return _0x4ed30c>_0x12f10c;},'mTeEF':function(_0x3dbeb6){return _0x3dbeb6();}},_0x405221='browserstack internal helper hook';this[_0xbad8b7(0x119)](0xfde8);const _0x574da7=async(_0x37457f,_0x12d8e9)=>{const _0xf4b48d=_0xbad8b7;await global['__drivers'][0x0][_0xf4b48d(0x100)](_0xf4b48d(0x11c)+_0x37457f+_0xf4b48d(0xfb)+_0x12d8e9+_0xf4b48d(0xe9));};new Promise(async _0x391bb1=>{const _0x447ca3=_0xbad8b7;try{_0x3439a8['reOzr'](global[_0x447ca3(0xef)]['length'],0x1)&&(await global[_0x447ca3(0xee)](),global['__drivers'][_0x447ca3(0x12c)](),global[_0x447ca3(0x158)]=[],global['__sessionFailed']=![]);try{if(global[_0x447ca3(0x12b)]&&_0x3439a8[_0x447ca3(0x111)](global['percyCaptureMode'],_0x3439a8['lJciS'])&&global[_0x447ca3(0xef)][0x0]){const _0x322d46=_0x3439a8[_0x447ca3(0x155)](global[_0x447ca3(0xea)]['length'],0x0)?!!global[_0x447ca3(0xea)][0x0]['app']||!!global[_0x447ca3(0xea)][0x0][_0x3439a8[_0x447ca3(0x127)]]:![],_0xdb5304={};_0xdb5304[_0x447ca3(0xe1)]=_0x322d46,await _0x3439a8[_0x447ca3(0x113)](percyAutoCapture,global[_0x447ca3(0xef)][0x0],_0x3439a8['lJciS'],_0xdb5304);}}catch(_0x21a92f){}!global[_0x447ca3(0x11a)]&&(await global[_0x447ca3(0xef)][0x0][_0x447ca3(0x100)](_0x447ca3(0x10e)+JSON[_0x447ca3(0xf4)](this[_0x447ca3(0x148)][_0x447ca3(0x117)]()[_0x447ca3(0xe5)](_0x3439a8[_0x447ca3(0x141)]))+'}}'),global[_0x447ca3(0xef)][0x0][_0x447ca3(0x151)]=!![]);const _0x359d10=_0x3439a8[_0x447ca3(0x146)](this['currentTest'][_0x447ca3(0xe6)],_0x3439a8[_0x447ca3(0x11f)]);_0x359d10?(global[_0x447ca3(0x10b)]=!![],global[_0x447ca3(0x158)]['push'](this[_0x447ca3(0x148)][_0x447ca3(0x13a)]['message']),await _0x3439a8[_0x447ca3(0x142)](_0x574da7,JSON['stringify'](_0x3439a8[_0x447ca3(0x12d)](_0x3439a8['PTovD'],this[_0x447ca3(0x148)][_0x447ca3(0x13a)][_0x447ca3(0x144)])),_0x3439a8[_0x447ca3(0xe7)])):await _0x3439a8[_0x447ca3(0x142)](_0x574da7,JSON[_0x447ca3(0xf4)](_0x3439a8[_0x447ca3(0xf3)]),_0x3439a8[_0x447ca3(0xfe)]);}catch(_0x3f195b){}try{if(this[_0x447ca3(0x148)][_0x447ca3(0xf0)]&&globals[_0x447ca3(0x114)](_0x3439a8[_0x447ca3(0x12f)])&&globals[_0x447ca3(0x114)](_0x3439a8[_0x447ca3(0x134)])){logger[_0x447ca3(0x125)](_0x3439a8['WXrhc']);const _0x42486a={};_0x42486a[_0x447ca3(0x131)]=this['currentTest'][_0x447ca3(0x124)],_0x42486a[_0x447ca3(0x10f)]=process[_0x447ca3(0x14f)][testHubConstants[_0x447ca3(0x10a)][_0x447ca3(0xf8)]],_0x42486a[_0x447ca3(0x13b)]=process[_0x447ca3(0x14f)][testHubConstants[_0x447ca3(0x10a)][_0x447ca3(0x159)]];const _0x18c8d2=_0x42486a;logger[_0x447ca3(0x11e)](_0x447ca3(0xe2)+JSON[_0x447ca3(0xf4)](_0x18c8d2)),logger['debug'](_0x3439a8[_0x447ca3(0x154)]),logger['debug'](util[_0x447ca3(0xf7)](await global[_0x447ca3(0xef)][0x0][_0x447ca3(0x123)](scripts[_0x447ca3(0x103)],{'method':global['browserstackSessionName']}))),await global['__drivers'][0x0][_0x447ca3(0x123)](scripts[_0x447ca3(0x139)],_0x18c8d2),logger[_0x447ca3(0x125)](_0x3439a8[_0x447ca3(0x13e)]);}}catch(_0x9f20dd){logger[_0x447ca3(0x106)](_0x447ca3(0x15a)+this[_0x447ca3(0x148)][_0x447ca3(0x117)]()+_0x447ca3(0x13c),_0x9f20dd);}try{try{if(_0x3439a8[_0x447ca3(0x11d)](shouldProcessEventForTesthub)){global['__drivers'][0x0]&&await _0x3439a8['bHusw'](sendPlatformDetails,global[_0x447ca3(0xef)][0x0],this[_0x447ca3(0x148)]?this['currentTest']['testAnalyticsId']:null);if(_0x3439a8['LkxEv'](isBrowserstackInfra)){const _0x5299b9=_0x447ca3(0xeb)+Date['now']();await _0x3439a8[_0x447ca3(0x102)](_0x574da7,JSON[_0x447ca3(0xf4)](_0x5299b9),_0x3439a8[_0x447ca3(0x13f)]);}}}catch{}_0x3439a8[_0x447ca3(0x116)](global[_0x447ca3(0xef)][0x0][_0x447ca3(0x143)],0x0)&&await global[_0x447ca3(0xee)]();}catch(_0x24e6cc){}_0x3439a8[_0x447ca3(0xf6)](_0x391bb1);})[_0xbad8b7(0x104)](()=>_0x1680b0());},'afterAll'(_0x52a3e3){const _0x1fc594=a32_0x3c3521,_0x3f0145={'XChuZ':function(_0x38e0d8){return _0x38e0d8();}},_0x34fb43='browserstack internal helper hook';this[_0x1fc594(0x119)](0xfde8),new Promise(async _0x31e0a2=>{PerformanceTester['stopMonitoring'](),await global['driverCleanup'](),_0x3f0145['XChuZ'](_0x31e0a2);})[_0x1fc594(0x104)](()=>_0x52a3e3());}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';const a33_0x181391=a33_0x201d;function a33_0x14d5(){const _0x7bbebf=['../../helpers/logger','xMzSF','bCvvS','port','map','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','useW3C','yjDMG','child_process','splice','3650405SFifCO','platform','env','LyoAp','112710vAKUAR','ckJNt','62ArHzvc','trim','test_settings','platforms','EWIhp','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','slice','inherit','lLwdZ','Getting\x20your\x20nightwatch\x20configs\x20from\x20','../../helpers/BrowserStackSetup','--config','config','selenium','AtbqY','mCbxP','getPlatformName','IKuXj','writeFileSync','nightwatch','25640PTYHFu','nktJT','modifyBrowserStackCaps','7ZXXGMo','unlinkSync','hub.browserstack.com','split','info','nightwatch-browserstack.json','nightwatch.cmd','join','14854OIeuMV','nightwatch.conf.js','uDeXE','push','forEach','mergeDeep','QgGMy','Deleting\x20','existsSync','KPklk','debug','VnEYk','test','host','nightwatch.json','--env','5670738nmGUJp','modifyBrowserStackW3CCaps','IzLcY','OeYZb','5078364twnSfV','findIndex','1950456jCvMvn','cwd'];a33_0x14d5=function(){return _0x7bbebf;};return a33_0x14d5();}(function(_0x4ca2eb,_0x1e8e4d){const _0x1193c5=a33_0x201d,_0x2f1292=_0x4ca2eb();while(!![]){try{const _0x19de73=-parseInt(_0x1193c5(0xa9))/0x1*(parseInt(_0x1193c5(0xc8))/0x2)+-parseInt(_0x1193c5(0xa7))/0x3+-parseInt(_0x1193c5(0xbd))/0x4+-parseInt(_0x1193c5(0xea))/0x5+parseInt(_0x1193c5(0xdc))/0x6+-parseInt(_0x1193c5(0xc0))/0x7*(-parseInt(_0x1193c5(0xde))/0x8)+parseInt(_0x1193c5(0xd8))/0x9;if(_0x19de73===_0x1e8e4d)break;else _0x2f1292['push'](_0x2f1292['shift']());}catch(_0x2a3f86){_0x2f1292['push'](_0x2f1292['shift']());}}}(a33_0x14d5,0x76974));function a33_0x201d(_0x4f8b00,_0x5c9a3f){const _0x14d514=a33_0x14d5();return a33_0x201d=function(_0x201d15,_0x234d9a){_0x201d15=_0x201d15-0xa7;let _0x4c0e66=_0x14d514[_0x201d15];return _0x4c0e66;},a33_0x201d(_0x4f8b00,_0x5c9a3f);}const fs=require('fs'),path=require('path'),{spawn}=require(a33_0x181391(0xe8)),logger=require(a33_0x181391(0xe0))['winstonLogger'],{default:BrowserStackSetup}=require(a33_0x181391(0xb3)),helper=require('../../helpers/helper'),constants=require('../utils/constants'),getUserNightwatchConfigs=(_0x3e9489,_0x5d7fd0)=>{const _0x32bde0=a33_0x181391,_0x26e891={'IzLcY':_0x32bde0(0xc9),'lLwdZ':_0x32bde0(0xd6),'bCvvS':function(_0x271b10,_0x467466){return _0x271b10(_0x467466);},'KPklk':_0x32bde0(0xae)};let _0x2997fd=null,_0x14215f={};const _0x2fd7f7=_0x5d7fd0[_0x32bde0(0xdd)](_0x124fdd=>_0x124fdd===_0x32bde0(0xb4));if(!helper['isUndefined'](_0x3e9489[_0x32bde0(0xb5)])&&fs[_0x32bde0(0xd0)](path[_0x32bde0(0xc7)](process[_0x32bde0(0xdf)](),_0x3e9489['config'])))_0x2997fd=path[_0x32bde0(0xc7)](process[_0x32bde0(0xdf)](),_0x3e9489[_0x32bde0(0xb5)]),_0x5d7fd0['splice'](_0x2fd7f7,0x2);else{if(fs[_0x32bde0(0xd0)](path[_0x32bde0(0xc7)](process['cwd'](),_0x26e891[_0x32bde0(0xda)])))_0x2997fd=path[_0x32bde0(0xc7)](process[_0x32bde0(0xdf)](),_0x26e891[_0x32bde0(0xda)]);else fs[_0x32bde0(0xd0)](path[_0x32bde0(0xc7)](process[_0x32bde0(0xdf)](),_0x26e891['lLwdZ']))&&(_0x2997fd=path['join'](process['cwd'](),_0x26e891[_0x32bde0(0xb1)]));}return _0x2997fd?(logger[_0x32bde0(0xc4)](_0x32bde0(0xb2)+_0x2997fd),_0x14215f=_0x26e891[_0x32bde0(0xe2)](require,_0x2997fd)):logger[_0x32bde0(0xc4)](_0x26e891[_0x32bde0(0xd1)]),_0x14215f;},removeExistingEnvs=_0x44c483=>{const _0x299f76=a33_0x181391,_0x1d0826={};_0x1d0826['xMzSF']=function(_0xeb01f2,_0xe65195){return _0xeb01f2>_0xe65195;};const _0x477f0b=_0x1d0826;let _0x20b1ed=_0x44c483[_0x299f76(0xdd)](_0x2cb8ae=>_0x2cb8ae===_0x299f76(0xd7));_0x477f0b['xMzSF'](_0x20b1ed,-0x1)&&_0x44c483[_0x299f76(0xe9)](_0x20b1ed,0x2),_0x20b1ed=_0x44c483[_0x299f76(0xdd)](_0x3a2932=>_0x3a2932==='-e'),_0x477f0b[_0x299f76(0xe1)](_0x20b1ed,-0x1)&&_0x44c483[_0x299f76(0xe9)](_0x20b1ed,0x2);};function run(_0xc48c4e,_0x321064){const _0x1637b0=a33_0x181391,_0x3e71d6={'yjDMG':_0x1637b0(0xbc),'uDeXE':function(_0x3f456f,_0x2f5fe6){return _0x3f456f+_0x2f5fe6;},'mCbxP':_0x1637b0(0xab),'ckJNt':function(_0x190d97,_0x312612,_0x1a7b9d){return _0x190d97(_0x312612,_0x1a7b9d);},'OeYZb':_0x1637b0(0xc2),'AtbqY':_0x1637b0(0xe5),'IKuXj':function(_0x3d2f99,_0x3bc646){return _0x3d2f99===_0x3bc646;},'VnEYk':_0x1637b0(0xc5),'UKLJq':function(_0x375393,_0x2d70b2){return _0x375393(_0x2d70b2);},'JvYID':function(_0x15548c,_0x422d07,_0x42b8aa,_0x3e19f5){return _0x15548c(_0x422d07,_0x42b8aa,_0x3e19f5);},'MHNXW':_0x1637b0(0xc6),'EWIhp':_0x1637b0(0xb4),'QgGMy':'--env','gOfWO':_0x1637b0(0xb0),'JlLMK':'close'},_0x1a5c91=new BrowserStackSetup(_0xc48c4e);if(!_0x1a5c91[_0x1637b0(0xb5)])return;const _0x4297dd=_0x3e71d6[_0x1637b0(0xa8)](getUserNightwatchConfigs,_0xc48c4e,_0x321064),_0x528296={};_0x528296['start_process']=![];const _0x54464e={};_0x54464e[_0x1637b0(0xd5)]=_0x3e71d6[_0x1637b0(0xdb)],_0x54464e[_0x1637b0(0xe3)]=0x1bb;const _0x5d2750={};_0x5d2750['webdriver']=_0x528296,_0x5d2750[_0x1637b0(0xb6)]=_0x54464e;const _0x37056e=_0x5d2750;logger[_0x1637b0(0xc4)](_0x3e71d6[_0x1637b0(0xb7)]);const _0x4b5452={..._0x4297dd},_0x1bf7d3=_0x4b5452,_0x349f86=helper[_0x1637b0(0xe6)](_0x1a5c91['config']),_0x4da2ec=[];_0x1a5c91[_0x1637b0(0xb5)][_0x1637b0(0xac)]['forEach']((_0x176cc1,_0x5440f4)=>{const _0x2f2834=_0x1637b0;_0x349f86?_0x4da2ec[_0x2f2834(0xcb)](helper[_0x2f2834(0xd9)](_0x1a5c91[_0x2f2834(0xb5)],_0x3e71d6[_0x2f2834(0xe7)],_0x5440f4)):_0x4da2ec['push'](helper[_0x2f2834(0xbf)](_0x1a5c91[_0x2f2834(0xb5)],_0x3e71d6[_0x2f2834(0xe7)],_0x5440f4));});const _0x2d6049={},_0x3a386b=[];_0xc48c4e[_0x1637b0(0xec)]=_0xc48c4e[_0x1637b0(0xec)]||_0xc48c4e['e'];const _0x5b5b9f=_0xc48c4e['env']?_0xc48c4e[_0x1637b0(0xec)][_0x1637b0(0xaa)]()[_0x1637b0(0xc3)](',')[_0x1637b0(0xe4)](_0x10a075=>_0x10a075[_0x1637b0(0xaa)]())['filter'](_0x17abc1=>_0x17abc1!==''):[''];_0x3e71d6[_0x1637b0(0xba)](_0x5b5b9f['length'],0x0)&&_0x5b5b9f[_0x1637b0(0xcb)]('');_0x5b5b9f[_0x1637b0(0xcc)](_0x3bd0f3=>{const _0x57d76d=_0x1637b0,_0x422939={'LyoAp':function(_0x33db05,_0x1569c1){const _0x358a9d=a33_0x201d;return _0x3e71d6[_0x358a9d(0xca)](_0x33db05,_0x1569c1);},'nktJT':_0x3e71d6[_0x57d76d(0xb8)]};_0x4da2ec['forEach'](_0x3c634d=>{const _0x254c50=_0x57d76d;let _0x1f617f=_0x422939[_0x254c50(0xed)](helper[_0x254c50(0xb9)](_0x3c634d,'_'),'_'+Date['now']());_0x3bd0f3&&(_0x1f617f+='_'+_0x3bd0f3);if(_0x3bd0f3&&(!_0x4297dd[_0x422939['nktJT']]||!_0x4297dd[_0x422939[_0x254c50(0xbe)]][_0x3bd0f3]))return;const _0x52981d={..._0x37056e};_0x52981d['desiredCapabilities']=_0x3c634d;const _0x407914=_0x52981d;_0x2d6049[_0x1f617f]=_0x3bd0f3?helper[_0x254c50(0xcd)](_0x4297dd[_0x422939[_0x254c50(0xbe)]][_0x3bd0f3],_0x407914):_0x407914,_0x3a386b['push'](_0x1f617f);});});!_0x1bf7d3[_0x1637b0(0xab)]&&(_0x1bf7d3[_0x1637b0(0xab)]={});_0x1bf7d3[_0x1637b0(0xab)]={..._0x1bf7d3[_0x1637b0(0xab)],..._0x2d6049};const _0x14b2b0=path['join'](__dirname,_0x3e71d6[_0x1637b0(0xd3)]);fs[_0x1637b0(0xbb)](_0x14b2b0,JSON['stringify'](_0x1bf7d3)),_0x3e71d6['UKLJq'](removeExistingEnvs,_0x321064);const _0x269a7f=_0x3e71d6['JvYID'](spawn,/^win/[_0x1637b0(0xd4)](process[_0x1637b0(0xeb)])?_0x3e71d6['MHNXW']:_0x3e71d6[_0x1637b0(0xe7)],[_0x3e71d6[_0x1637b0(0xad)],_0x14b2b0,..._0x321064[_0x1637b0(0xaf)](0x1),_0x3e71d6[_0x1637b0(0xce)],_0x3a386b[_0x1637b0(0xc7)](',')],{'stdio':_0x3e71d6['gOfWO']});_0x269a7f['on'](_0x3e71d6['JlLMK'],async _0x2bbb28=>{const _0xed5504=_0x1637b0;logger[_0xed5504(0xd2)]('child\x20process\x20exited\x20with\x20code\x20'+_0x2bbb28),logger[_0xed5504(0xc4)](_0xed5504(0xcf)+_0x14b2b0),fs[_0xed5504(0xc1)](_0x14b2b0);});}module['exports']=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a34_0x2e0a(_0xb14f23,_0x13a36b){const _0x2f0be5=a34_0x2f0b();return a34_0x2e0a=function(_0x2e0a04,_0x1a80cd){_0x2e0a04=_0x2e0a04-0x1ab;let _0x35286f=_0x2f0be5[_0x2e0a04];return _0x35286f;},a34_0x2e0a(_0xb14f23,_0x13a36b);}const a34_0x20a2d8=a34_0x2e0a;(function(_0x49d883,_0x3b48aa){const _0x37e69a=a34_0x2e0a,_0x5d0e49=_0x49d883();while(!![]){try{const _0x10ae04=-parseInt(_0x37e69a(0x1da))/0x1+-parseInt(_0x37e69a(0x1b8))/0x2*(parseInt(_0x37e69a(0x20a))/0x3)+parseInt(_0x37e69a(0x1fa))/0x4+parseInt(_0x37e69a(0x1ed))/0x5+parseInt(_0x37e69a(0x1f1))/0x6+-parseInt(_0x37e69a(0x1cf))/0x7*(parseInt(_0x37e69a(0x1d0))/0x8)+parseInt(_0x37e69a(0x1b5))/0x9*(parseInt(_0x37e69a(0x1e3))/0xa);if(_0x10ae04===_0x3b48aa)break;else _0x5d0e49['push'](_0x5d0e49['shift']());}catch(_0x3dcfa9){_0x5d0e49['push'](_0x5d0e49['shift']());}}}(a34_0x2f0b,0x94b48));function a34_0x2f0b(){const _0x23b1d1=['platformValidation','xNlWl','Mmkmh','getAccessibilityResultsSummary','debug','3499024uJTrPT','CRbrO','browserstack.accessibility','sRxMH','../../helpers/accessibility-automation/helper','accessibilityOptions.authToken','deviceName','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','name','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','hRbNC','WebDriver','browserStackEvaluate','chrome','executeScript','No\x20summaryResults\x20found.','2727krBDmi','dysHm','error','rXNWT','workerInfo','warn','poNIA','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','util','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','wchrs','Nphbt','MrNPY','TQDcH','../../helpers/helper','wcagVersion','method','latest','accessibilityOptions.scannerProcessingTimeout','bstackSdkArgs','scannerProcessingTimeout','qVnoU','format','winstonLogger','Playwright','browserStackExecuteDriver','scannerVersion','mqVcX','45ihxzHu','executeAsyncScript','zNkJs','138sFqcEo','testInfo','uIWfi','KoPpg','currentTest','includeIssueType','env','browserName','playwright-chromium','xQqGl','stringify','setAccessibilityCapabilities','bmZeD','iPjZT','LYPpg','atefq','replace','CPqMC','parse','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','(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','No\x20accessibility\x20results\x20were\x20found.','KKKjS','7707308FixDuw','8abbZvw','dqaPc','(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','dQzfm','connectOptions','../../helpers/accessibility-automation/scripts','project','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','accessibilityOptions.scannerVersion','accessibilityOptions','687348hOrGci','MxlYp','needsReview','mPPzg','constructor','zufcL','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','yhfKs','BS_A11Y_JWT','50550cdxINC','kRyJd','iUPFz','wsEndpoint','use','ytwRv','VWnLU','fFHuk','processAccessibilityCaps','accessibilityOptions.includeIssueType.needsReview','5631485qXzzDl','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','getAccessibilityResults','IByDL','2603286yXrCWP','evaluate','browser_version','accessibilityPlatform'];a34_0x2f0b=function(){return _0x23b1d1;};return a34_0x2f0b();}const util=require(a34_0x20a2d8(0x212)),logger=require('../../helpers/logger')[a34_0x20a2d8(0x1b0)],{isAccessibilityAutomationSession}=require(a34_0x20a2d8(0x1fe)),{isUndefined}=require(a34_0x20a2d8(0x218)),scripts=require(a34_0x20a2d8(0x1d5));exports[a34_0x20a2d8(0x206)]=async(_0x47f173,_0x4f1de3,_0xf1778d={})=>{const _0x4b5b3e=a34_0x20a2d8,_0x53a0f9={};_0x53a0f9[_0x4b5b3e(0x214)]=_0x4b5b3e(0x1ac);const _0x3ee16d=_0x53a0f9;return await _0x47f173[_0x4b5b3e(0x1f2)](_0x4b5b3e(0x1d2)+_0x4f1de3[_0x4b5b3e(0x1c8)](/arguments/g,_0x3ee16d[_0x4b5b3e(0x214)])+_0x4b5b3e(0x203)+JSON['stringify'](_0xf1778d)+')');},exports[a34_0x20a2d8(0x1b2)]=async(_0x1e4e48,_0x196c9c,_0x2f38cc={})=>{const _0x12dfaa=a34_0x20a2d8,_0x2069ad={};_0x2069ad['mqVcX']=function(_0x109fa0,_0x22252e){return _0x109fa0===_0x22252e;},_0x2069ad[_0x12dfaa(0x1b7)]=_0x12dfaa(0x205),_0x2069ad[_0x12dfaa(0x1e8)]=function(_0x35eab8,_0x2020ee){return _0x35eab8===_0x2020ee;},_0x2069ad[_0x12dfaa(0x1f7)]=_0x12dfaa(0x1b1),_0x2069ad[_0x12dfaa(0x1f0)]=_0x12dfaa(0x1ac);const _0xfe29b8=_0x2069ad;if(_0xfe29b8[_0x12dfaa(0x1b4)](_0x1e4e48[_0x12dfaa(0x1de)][_0x12dfaa(0x202)],_0xfe29b8[_0x12dfaa(0x1b7)]))return await _0x1e4e48[_0x12dfaa(0x1b6)](_0x196c9c,_0x2f38cc);else{if(_0xfe29b8[_0x12dfaa(0x1e8)](_0x1e4e48[_0x12dfaa(0x1de)][_0x12dfaa(0x202)],_0xfe29b8[_0x12dfaa(0x1f7)]))return await _0x1e4e48[_0x12dfaa(0x208)](_0x12dfaa(0x1cc)+_0x196c9c[_0x12dfaa(0x1c8)](/arguments/g,_0xfe29b8[_0x12dfaa(0x1f0)])+'\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})('+JSON[_0x12dfaa(0x1c2)](_0x2f38cc)+')');}},exports[a34_0x20a2d8(0x1c3)]=async _0x1efc3a=>{const _0x39fcae=a34_0x20a2d8,_0x2705ba={};_0x2705ba[_0x39fcae(0x20b)]='accessibilityOptions.wcagVersion',_0x2705ba[_0x39fcae(0x1c1)]=_0x39fcae(0x1ab),_0x2705ba[_0x39fcae(0x1fb)]='accessibilityOptions.includeIssueType.bestPractice',_0x2705ba[_0x39fcae(0x1d3)]=_0x39fcae(0x1ec),_0x2705ba[_0x39fcae(0x1e1)]=_0x39fcae(0x1ff),_0x2705ba[_0x39fcae(0x1ba)]=_0x39fcae(0x1d8);const _0x354f84=_0x2705ba;_0x1efc3a['accessibilityOptions']&&(_0x1efc3a['accessibilityOptions'][_0x39fcae(0x219)]&&(_0x1efc3a[_0x354f84['dysHm']]=_0x1efc3a['accessibilityOptions'][_0x39fcae(0x219)]),_0x1efc3a[_0x39fcae(0x1d9)][_0x39fcae(0x1ad)]&&(_0x1efc3a[_0x354f84[_0x39fcae(0x1c1)]]=_0x1efc3a[_0x39fcae(0x1d9)][_0x39fcae(0x1ad)]),_0x1efc3a['accessibilityOptions'][_0x39fcae(0x1bd)]&&(_0x1efc3a[_0x354f84[_0x39fcae(0x1fb)]]=_0x1efc3a[_0x39fcae(0x1d9)][_0x39fcae(0x1bd)]['bestPractice'],_0x1efc3a[_0x354f84[_0x39fcae(0x1d3)]]=_0x1efc3a[_0x39fcae(0x1d9)][_0x39fcae(0x1bd)][_0x39fcae(0x1dc)]));const _0xd2f56e=JSON[_0x39fcae(0x1ca)](process['env'][_0x39fcae(0x213)])[_0x39fcae(0x1b3)];_0x1efc3a[_0x354f84[_0x39fcae(0x1e1)]]=process[_0x39fcae(0x1be)][_0x39fcae(0x1e2)],_0x1efc3a[_0x354f84[_0x39fcae(0x1ba)]]=_0xd2f56e,delete _0x1efc3a[_0x39fcae(0x1d9)];},exports[a34_0x20a2d8(0x1ef)]=async _0x437a9b=>{const _0x542435=a34_0x20a2d8,_0x586031={};_0x586031[_0x542435(0x1c9)]=_0x542435(0x1cd),_0x586031[_0x542435(0x1c5)]=_0x542435(0x201);const _0x3e20b8=_0x586031;if(global[_0x542435(0x1f4)])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x437a9b,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x437a9b,scripts.getResults);return res;}catch{return logger[_0x542435(0x20c)](_0x3e20b8[_0x542435(0x1c9)]),[];}else return logger['warn'](_0x3e20b8[_0x542435(0x1c5)]),[];},exports['performScan']=async(_0x5685fb,_0x2a5dc6='')=>{const _0x453928=a34_0x20a2d8;if(global[_0x453928(0x1f4)]){const _0x5c7135={};return _0x5c7135[_0x453928(0x21a)]=_0x2a5dc6,await exports[_0x453928(0x206)](_0x5685fb,scripts['performScan'],_0x5c7135);}},exports[a34_0x20a2d8(0x1f8)]=async _0x34f79b=>{const _0x5182d8=a34_0x20a2d8,_0x182916={};_0x182916['rXNWT']=_0x5182d8(0x209),_0x182916[_0x5182d8(0x1bb)]=_0x5182d8(0x211);const _0x5ba21a=_0x182916;if(global[_0x5182d8(0x1f4)])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x34f79b,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x34f79b,scripts.getResultsSummary);return summaryResults;}catch{return logger[_0x5182d8(0x1f9)](_0x5ba21a[_0x5182d8(0x20d)]),{};}else return logger['warn'](_0x5ba21a[_0x5182d8(0x1bb)]),{};},exports[a34_0x20a2d8(0x1f5)]=async _0x15fedc=>{const _0x2b51b6=a34_0x20a2d8,_0x501ae9={'sRxMH':function(_0x53e832,_0x12b239){return _0x53e832!==_0x12b239;},'MxlYp':_0x2b51b6(0x1d7),'fFHuk':function(_0x5bf94d,_0x4ccfe0){return _0x5bf94d===_0x4ccfe0;},'bmZeD':'chrome','VwhwT':function(_0x3fd063,_0x7652ce){return _0x3fd063===_0x7652ce;},'qVnoU':_0x2b51b6(0x1c0),'GDDql':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','poNIA':function(_0x38e5f2,_0x1d6ef3){return _0x38e5f2(_0x1d6ef3);},'Nphbt':_0x2b51b6(0x21b),'LYPpg':function(_0xd7de52,_0xca2913){return _0xd7de52>_0xca2913;},'hRbNC':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.'};try{if(!_0x501ae9[_0x2b51b6(0x1fd)](_0x15fedc[_0x2b51b6(0x200)],''))return logger[_0x2b51b6(0x20f)](_0x501ae9[_0x2b51b6(0x1db)]),![];const _0x3285c3=_0x15fedc['browser'];if(!(_0x501ae9[_0x2b51b6(0x1ea)](_0x3285c3,_0x501ae9[_0x2b51b6(0x1c4)])||_0x501ae9['VwhwT'](_0x3285c3,_0x501ae9[_0x2b51b6(0x1ae)])))return logger[_0x2b51b6(0x20f)](_0x501ae9['GDDql']),![];const _0x5f53d8=_0x501ae9[_0x2b51b6(0x210)](parseInt,_0x15fedc['browser_version']);if(!(_0x501ae9[_0x2b51b6(0x1ea)](_0x5f53d8,_0x501ae9[_0x2b51b6(0x215)])||_0x501ae9[_0x2b51b6(0x1c6)](_0x5f53d8,0x5e)))return logger[_0x2b51b6(0x20f)](_0x501ae9[_0x2b51b6(0x204)]),![];}catch(_0x16b420){logger['debug'](_0x2b51b6(0x1cb)+util[_0x2b51b6(0x1af)](_0x16b420));}return!![];},exports[a34_0x20a2d8(0x1eb)]=(_0x3f09d6,_0x35e132,_0x3952e7)=>{const _0x40209a=a34_0x20a2d8,_0xc48195={'iUPFz':function(_0x4e9766){return _0x4e9766();},'KKKjS':_0x40209a(0x1fc),'VWnLU':function(_0x1fc782,_0x3c5ec8){return _0x1fc782===_0x3c5ec8;},'MrNPY':_0x40209a(0x207),'HIzSV':_0x40209a(0x1c0),'zufcL':_0x40209a(0x1e0),'VIYOu':_0x40209a(0x21b),'mPPzg':function(_0x1fb1f1,_0x273961){return _0x1fb1f1>_0x273961;},'atefq':_0x40209a(0x1ee),'xNlWl':function(_0x57700a,_0x2f2b33){return _0x57700a(_0x2f2b33);},'kRyJd':_0x40209a(0x1d7),'dqaPc':function(_0x5a4795,_0x26ff2a){return _0x5a4795+_0x26ff2a;},'TQDcH':function(_0x50c7e3,_0x9ee209){return _0x50c7e3(_0x9ee209);}};try{if(_0xc48195[_0x40209a(0x1e5)](isAccessibilityAutomationSession)){global['accessibilityPlatform']=!![];!_0x3f09d6[_0xc48195[_0x40209a(0x1ce)]]&&(global[_0x40209a(0x1f4)]=![]);!(_0xc48195[_0x40209a(0x1e9)](_0x3f09d6[_0x40209a(0x1bf)],_0xc48195[_0x40209a(0x216)])||_0xc48195['VWnLU'](_0x3f09d6[_0x40209a(0x1bf)],_0xc48195['HIzSV']))&&(logger[_0x40209a(0x20f)](_0xc48195[_0x40209a(0x1df)]),global['accessibilityPlatform']=![]);!(_0xc48195[_0x40209a(0x1e9)](_0x3f09d6['browser_version'],_0xc48195['VIYOu'])||_0xc48195[_0x40209a(0x1dd)](_0x3f09d6[_0x40209a(0x1f3)],0x5e))&&(logger[_0x40209a(0x20f)](_0xc48195[_0x40209a(0x1c7)]),global[_0x40209a(0x1f4)]=![]);!_0xc48195[_0x40209a(0x1f6)](isUndefined,_0x3f09d6[_0x40209a(0x200)])&&(logger[_0x40209a(0x20f)](_0xc48195[_0x40209a(0x1e4)]),global[_0x40209a(0x1f4)]=![]);if(!global[_0x40209a(0x1f4)]){_0x3f09d6[_0xc48195[_0x40209a(0x1ce)]]=![];const _0x519888=_0xc48195[_0x40209a(0x1d1)](_0x35e132,_0xc48195[_0x40209a(0x217)](encodeURIComponent,JSON['stringify'](_0x3f09d6)));_0x3952e7&&(_0x3952e7[_0x40209a(0x1bc)][_0x40209a(0x1b9)][_0x40209a(0x1d6)][_0x40209a(0x1e7)]['connectOptions'][_0x40209a(0x1e6)]=_0x519888,_0x3952e7[_0x40209a(0x20e)]['project']['use'][_0x40209a(0x1d4)][_0x40209a(0x1e6)]=_0x519888);}}}catch(_0x4c8a93){logger[_0x40209a(0x1f9)]('Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20'+util[_0x40209a(0x1af)](_0x4c8a93));}};
|
|
1
|
+
const a34_0x1c3e8a=a34_0x4648;function a34_0x4648(_0x34bc91,_0xd69045){const _0x4f814e=a34_0x4f81();return a34_0x4648=function(_0x4648c3,_0x29a8a8){_0x4648c3=_0x4648c3-0xfa;let _0x53cdd4=_0x4f814e[_0x4648c3];return _0x53cdd4;},a34_0x4648(_0x34bc91,_0xd69045);}(function(_0x35c645,_0x4c7819){const _0x5b9939=a34_0x4648,_0x22eeda=_0x35c645();while(!![]){try{const _0x43379d=parseInt(_0x5b9939(0xfa))/0x1+parseInt(_0x5b9939(0x128))/0x2*(parseInt(_0x5b9939(0x102))/0x3)+parseInt(_0x5b9939(0x13b))/0x4+-parseInt(_0x5b9939(0x126))/0x5*(-parseInt(_0x5b9939(0x148))/0x6)+-parseInt(_0x5b9939(0x131))/0x7*(parseInt(_0x5b9939(0x106))/0x8)+-parseInt(_0x5b9939(0xfe))/0x9+-parseInt(_0x5b9939(0x108))/0xa*(parseInt(_0x5b9939(0x135))/0xb);if(_0x43379d===_0x4c7819)break;else _0x22eeda['push'](_0x22eeda['shift']());}catch(_0x36332b){_0x22eeda['push'](_0x22eeda['shift']());}}}(a34_0x4f81,0x1e020));function a34_0x4f81(){const _0x40e3a8=['accessibilityOptions.includeIssueType.needsReview','jrPVo','629055lwWrZV','GPFFE','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','browser_version','536799PPbShO','nHyap','project','plQLB','272JSiufq','scannerProcessingTimeout','4780TQHtnf','../../helpers/logger','constructor','lrUfW','browserstack.accessibility','qFtgH','QieWF','executeAsyncScript','winstonLogger','processAccessibilityCaps','BS_A11Y_JWT','dUPxp','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','bestPractice','rDdtH','../../helpers/accessibility-automation/scripts','name','use','wcagVersion','accessibilityOptions.scannerVersion','platformValidation','khCXt','cuFcO','yghpd','uicIG','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','../../helpers/helper','warn','YXEEV','accessibilityOptions','5eKFhdT','WebDriver','2apIDoy','getAccessibilityResults','env','EVOlk','GAKJy','bstackSdkArgs','accessibilityOptions.authToken','currentTest','browserStackEvaluate','30394LVmGKK','accessibilityPlatform','eUrKg','stringify','8107dByrdu','debug','browser','executeScript','error','connectOptions','609168nYCZJc','KrSix','fkXLS','testInfo','playwright-chromium','util','eFbMB','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','JGlAJ','No\x20accessibility\x20results\x20were\x20found.','replace','zsdnS','browserStackExecuteDriver','882606ihSaml','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','browserName','performScan','includeIssueType','vgmIK','(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','gTRqK','../../helpers/accessibility-automation/helper','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','deviceName','HtXiy','format','LlzNn','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','parse','IKDvk','zbRJc','evaluate','tMkbY','TeGIu','wsEndpoint','chrome','method','scannerVersion','USMcY','214395XJQAYx','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML'];a34_0x4f81=function(){return _0x40e3a8;};return a34_0x4f81();}const util=require(a34_0x1c3e8a(0x140)),logger=require(a34_0x1c3e8a(0x109))[a34_0x1c3e8a(0x110)],{isAccessibilityAutomationSession}=require(a34_0x1c3e8a(0x150)),{isUndefined}=require(a34_0x1c3e8a(0x122)),scripts=require(a34_0x1c3e8a(0x117));exports[a34_0x1c3e8a(0x130)]=async(_0x1ff6cd,_0x21535f,_0x5f5d24={})=>{const _0xc0be59=a34_0x1c3e8a,_0x595e77={};_0x595e77['zbRJc']=_0xc0be59(0x12d);const _0x4b5b38=_0x595e77;return await _0x1ff6cd[_0xc0be59(0x15b)](_0xc0be59(0x14e)+_0x21535f[_0xc0be59(0x145)](/arguments/g,_0x4b5b38[_0xc0be59(0x15a)])+_0xc0be59(0x151)+JSON['stringify'](_0x5f5d24)+')');},exports[a34_0x1c3e8a(0x147)]=async(_0x5d2252,_0x2a7418,_0xf926b7={})=>{const _0xa212e2=a34_0x1c3e8a,_0xc6d220={};_0xc6d220[_0xa212e2(0x12c)]=function(_0x20e001,_0x33529c){return _0x20e001===_0x33529c;},_0xc6d220[_0xa212e2(0x13d)]=_0xa212e2(0x127),_0xc6d220['nHyap']='Playwright',_0xc6d220['GPFFE']=_0xa212e2(0x12d);const _0x5b1de7=_0xc6d220;if(_0x5b1de7[_0xa212e2(0x12c)](_0x5d2252['constructor'][_0xa212e2(0x118)],_0x5b1de7[_0xa212e2(0x13d)]))return await _0x5d2252[_0xa212e2(0x10f)](_0x2a7418,_0xf926b7);else{if(_0x5b1de7['GAKJy'](_0x5d2252[_0xa212e2(0x10a)][_0xa212e2(0x118)],_0x5b1de7[_0xa212e2(0x103)]))return await _0x5d2252[_0xa212e2(0x138)]('(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'+_0x2a7418[_0xa212e2(0x145)](/arguments/g,_0x5b1de7[_0xa212e2(0xff)])+_0xa212e2(0x142)+JSON[_0xa212e2(0x134)](_0xf926b7)+')');}},exports['setAccessibilityCapabilities']=async _0xa19c26=>{const _0x395d4f=a34_0x1c3e8a,_0x59c551={};_0x59c551['eUrKg']='accessibilityOptions.wcagVersion',_0x59c551[_0x395d4f(0x120)]='accessibilityOptions.scannerProcessingTimeout',_0x59c551[_0x395d4f(0x124)]='accessibilityOptions.includeIssueType.bestPractice',_0x59c551[_0x395d4f(0x116)]=_0x395d4f(0xfc),_0x59c551[_0x395d4f(0x10d)]=_0x395d4f(0x12e),_0x59c551[_0x395d4f(0x143)]=_0x395d4f(0x11b);const _0x311e97=_0x59c551;_0xa19c26[_0x395d4f(0x125)]&&(_0xa19c26[_0x395d4f(0x125)][_0x395d4f(0x11a)]&&(_0xa19c26[_0x311e97[_0x395d4f(0x133)]]=_0xa19c26['accessibilityOptions'][_0x395d4f(0x11a)]),_0xa19c26[_0x395d4f(0x125)][_0x395d4f(0x107)]&&(_0xa19c26[_0x311e97[_0x395d4f(0x120)]]=_0xa19c26[_0x395d4f(0x125)][_0x395d4f(0x107)]),_0xa19c26[_0x395d4f(0x125)][_0x395d4f(0x14c)]&&(_0xa19c26[_0x311e97['YXEEV']]=_0xa19c26[_0x395d4f(0x125)]['includeIssueType'][_0x395d4f(0x115)],_0xa19c26[_0x311e97['rDdtH']]=_0xa19c26['accessibilityOptions']['includeIssueType']['needsReview']));const _0x1fa336=JSON[_0x395d4f(0x158)](process[_0x395d4f(0x12a)][_0x395d4f(0xfb)])[_0x395d4f(0x161)];_0xa19c26[_0x311e97[_0x395d4f(0x10d)]]=process[_0x395d4f(0x12a)][_0x395d4f(0x112)],_0xa19c26[_0x311e97[_0x395d4f(0x143)]]=_0x1fa336,delete _0xa19c26['accessibilityOptions'];},exports[a34_0x1c3e8a(0x129)]=async _0x2eb319=>{const _0x66c9f6=a34_0x1c3e8a,_0x2b3486={};_0x2b3486['ewOha']=_0x66c9f6(0x144),_0x2b3486[_0x66c9f6(0x10b)]=_0x66c9f6(0x121);const _0x3af938=_0x2b3486;if(global[_0x66c9f6(0x132)])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x2eb319,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x2eb319,scripts.getResults);return res;}catch{return logger[_0x66c9f6(0x139)](_0x3af938['ewOha']),[];}else return logger[_0x66c9f6(0x123)](_0x3af938[_0x66c9f6(0x10b)]),[];},exports[a34_0x1c3e8a(0x14b)]=async(_0x4bc5cd,_0x494301='')=>{const _0x25fb86=a34_0x1c3e8a;if(global[_0x25fb86(0x132)]){const _0x3bfee1={};return _0x3bfee1[_0x25fb86(0x160)]=_0x494301,await exports[_0x25fb86(0x130)](_0x4bc5cd,scripts[_0x25fb86(0x14b)],_0x3bfee1);}},exports['getAccessibilityResultsSummary']=async _0x1836d3=>{const _0x37937c=a34_0x1c3e8a,_0x3b5e46={};_0x3b5e46['dUPxp']='No\x20summaryResults\x20found.',_0x3b5e46[_0x37937c(0x155)]=_0x37937c(0x157);const _0x37d0bd=_0x3b5e46;if(global[_0x37937c(0x132)])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x1836d3,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x1836d3,scripts.getResultsSummary);return summaryResults;}catch{return logger[_0x37937c(0x136)](_0x37d0bd[_0x37937c(0x113)]),{};}else return logger[_0x37937c(0x123)](_0x37d0bd['LlzNn']),{};},exports[a34_0x1c3e8a(0x11c)]=async _0x569d99=>{const _0x97938d=a34_0x1c3e8a,_0x2fbc32={'LIXCO':function(_0x2ae4a7,_0x54ad03){return _0x2ae4a7!==_0x54ad03;},'BXlKM':_0x97938d(0x156),'gTRqK':function(_0x276440,_0x367001){return _0x276440===_0x367001;},'HtXiy':'chrome','USMcY':_0x97938d(0x13f),'EVOlk':_0x97938d(0x149),'tMkbY':function(_0x47de20,_0x5f35ae){return _0x47de20(_0x5f35ae);},'KrSix':function(_0x174c85,_0x1ef7ba){return _0x174c85===_0x1ef7ba;},'khCXt':'latest','zsdnS':function(_0x22abc2,_0x19aa3f){return _0x22abc2>_0x19aa3f;},'plQLB':_0x97938d(0x114)};try{if(!_0x2fbc32['LIXCO'](_0x569d99['deviceName'],''))return logger['warn'](_0x2fbc32['BXlKM']),![];const _0x5b3832=_0x569d99[_0x97938d(0x137)];if(!(_0x2fbc32[_0x97938d(0x14f)](_0x5b3832,_0x2fbc32[_0x97938d(0x153)])||_0x2fbc32['gTRqK'](_0x5b3832,_0x2fbc32[_0x97938d(0x162)])))return logger[_0x97938d(0x123)](_0x2fbc32[_0x97938d(0x12b)]),![];const _0x3280a3=_0x2fbc32[_0x97938d(0x15c)](parseInt,_0x569d99[_0x97938d(0x101)]);if(!(_0x2fbc32[_0x97938d(0x13c)](_0x3280a3,_0x2fbc32[_0x97938d(0x11d)])||_0x2fbc32[_0x97938d(0x146)](_0x3280a3,0x5e)))return logger[_0x97938d(0x123)](_0x2fbc32[_0x97938d(0x105)]),![];}catch(_0x59a4dd){logger['debug']('Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20'+util[_0x97938d(0x154)](_0x59a4dd));}return!![];},exports[a34_0x1c3e8a(0x111)]=(_0x1370e3,_0x1f544e,_0xe9b99e)=>{const _0x3cfd49=a34_0x1c3e8a,_0x462015={'yghpd':function(_0x566356){return _0x566356();},'TeGIu':_0x3cfd49(0x10c),'yVaig':function(_0x594895,_0x1a0897){return _0x594895===_0x1a0897;},'vgmIK':_0x3cfd49(0x15f),'SxOdX':_0x3cfd49(0x13f),'dGDqS':_0x3cfd49(0x149),'mZNZA':function(_0x589962,_0x181851){return _0x589962===_0x181851;},'IKDvk':'latest','JAhwU':function(_0x417228,_0x2b6881){return _0x417228>_0x2b6881;},'cuFcO':_0x3cfd49(0x114),'QieWF':function(_0x5f280d,_0x230936){return _0x5f280d(_0x230936);},'eFbMB':_0x3cfd49(0x156),'uFGYo':function(_0x52c0aa,_0x2088fc){return _0x52c0aa+_0x2088fc;},'jrPVo':function(_0x219519,_0x68a64d){return _0x219519(_0x68a64d);}};try{if(_0x462015[_0x3cfd49(0x11f)](isAccessibilityAutomationSession)){global[_0x3cfd49(0x132)]=!![];!_0x1370e3[_0x462015[_0x3cfd49(0x15d)]]&&(global[_0x3cfd49(0x132)]=![]);!(_0x462015['yVaig'](_0x1370e3['browserName'],_0x462015[_0x3cfd49(0x14d)])||_0x462015['yVaig'](_0x1370e3[_0x3cfd49(0x14a)],_0x462015['SxOdX']))&&(logger[_0x3cfd49(0x123)](_0x462015['dGDqS']),global[_0x3cfd49(0x132)]=![]);!(_0x462015['mZNZA'](_0x1370e3[_0x3cfd49(0x101)],_0x462015[_0x3cfd49(0x159)])||_0x462015['JAhwU'](_0x1370e3['browser_version'],0x5e))&&(logger[_0x3cfd49(0x123)](_0x462015[_0x3cfd49(0x11e)]),global['accessibilityPlatform']=![]);!_0x462015[_0x3cfd49(0x10e)](isUndefined,_0x1370e3[_0x3cfd49(0x152)])&&(logger[_0x3cfd49(0x123)](_0x462015[_0x3cfd49(0x141)]),global[_0x3cfd49(0x132)]=![]);if(!global[_0x3cfd49(0x132)]){_0x1370e3[_0x462015[_0x3cfd49(0x15d)]]=![];const _0x74e8ab=_0x462015['uFGYo'](_0x1f544e,_0x462015[_0x3cfd49(0xfd)](encodeURIComponent,JSON[_0x3cfd49(0x134)](_0x1370e3)));_0xe9b99e&&(_0xe9b99e[_0x3cfd49(0x12f)][_0x3cfd49(0x13e)][_0x3cfd49(0x104)]['use'][_0x3cfd49(0x13a)]['wsEndpoint']=_0x74e8ab,_0xe9b99e['workerInfo'][_0x3cfd49(0x104)][_0x3cfd49(0x119)][_0x3cfd49(0x13a)][_0x3cfd49(0x15e)]=_0x74e8ab);}}}catch(_0x7958d8){logger['debug'](_0x3cfd49(0x100)+util[_0x3cfd49(0x154)](_0x7958d8));}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a35_0x3d3a09=a35_0x5606;(function(_0x40ef89,_0x169573){const _0x23eeeb=a35_0x5606,_0x3b239a=_0x40ef89();while(!![]){try{const _0x115ebc=-parseInt(_0x23eeeb(0x188))/0x1*(parseInt(_0x23eeeb(0x1ae))/0x2)+-parseInt(_0x23eeeb(0x1a4))/0x3+-parseInt(_0x23eeeb(0x1dc))/0x4+-parseInt(_0x23eeeb(0x21b))/0x5*(parseInt(_0x23eeeb(0x1f1))/0x6)+parseInt(_0x23eeeb(0x1e1))/0x7+-parseInt(_0x23eeeb(0x19b))/0x8*(-parseInt(_0x23eeeb(0x1ce))/0x9)+parseInt(_0x23eeeb(0x1e7))/0xa*(parseInt(_0x23eeeb(0x1fd))/0xb);if(_0x115ebc===_0x169573)break;else _0x3b239a['push'](_0x3b239a['shift']());}catch(_0x5d3c13){_0x3b239a['push'](_0x3b239a['shift']());}}}(a35_0x5e06,0xcf49b));const fs=require('fs'),path=require(a35_0x3d3a09(0x1d8)),{spawn}=require(a35_0x3d3a09(0x1d6)),{format}=require(a35_0x3d3a09(0x1e8)),logger=require(a35_0x3d3a09(0x1d3))[a35_0x3d3a09(0x207)],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require('../../helpers/helper'),utilities=require(a35_0x3d3a09(0x1b1)),constants=require(a35_0x3d3a09(0x18d)),{FRAMEWORKS}=require(a35_0x3d3a09(0x192)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require('./reporter/pwUtils'),{CrashReporter}=require('../../helpers/test-observability/error-handler'),{getFrameworkVersion}=require(a35_0x3d3a09(0x20a)),{checkAccessibilityPlatformConfig}=require(a35_0x3d3a09(0x1df)),{setAccessibilityCapabilities}=require(a35_0x3d3a09(0x212)),TestHubHandler=require(a35_0x3d3a09(0x1ad)),{shouldProcessEventForTesthub}=require(a35_0x3d3a09(0x1c0)),getUserPlaywrightConfig=async(_0x414f5e,_0x45eacb)=>{const _0x5b9c6a=a35_0x3d3a09,_0x308dab={'xXAcW':function(_0x21d9d4){return _0x21d9d4();},'ylkNA':function(_0x57bb2e,_0x5101c7){return _0x57bb2e(_0x5101c7);},'HWCCK':_0x5b9c6a(0x1a2),'sGTZg':_0x5b9c6a(0x219)},_0x378be8=!helper['isUndefined'](_0x414f5e['config']),_0x43222b=_0x378be8?path[_0x5b9c6a(0x1a8)](process['cwd'](),_0x414f5e[_0x5b9c6a(0x18b)]):process[_0x5b9c6a(0x213)](),{resolveConfigFile:_0x1c0910,resolveConfigLocation:_0x2629d4}=helper[_0x5b9c6a(0x1f2)][_0x5b9c6a(0x20c)](null,_0x308dab['xXAcW'](getConfigLoaderPath)),_0x1b651c=_0x1c0910?_0x308dab[_0x5b9c6a(0x20f)](_0x1c0910,_0x43222b):helper[_0x5b9c6a(0x1ed)](_0x308dab[_0x5b9c6a(0x20f)](_0x2629d4,_0x43222b),[_0x308dab[_0x5b9c6a(0x1d9)]]),_0x639eaf={};if(_0x378be8){const _0x4a5a33=_0x45eacb[_0x5b9c6a(0x18c)](_0x3707b6=>_0x3707b6===_0x5b9c6a(0x1e6)||_0x3707b6==='-c'||_0x3707b6['startsWith'](_0x5b9c6a(0x219)));_0x45eacb[_0x5b9c6a(0x1ab)](_0x4a5a33,_0x45eacb[_0x4a5a33][_0x5b9c6a(0x1e0)](_0x308dab['sGTZg'])?0x1:0x2);}const _0x529ded={};return _0x529ded[_0x5b9c6a(0x1d8)]=_0x1b651c,_0x529ded['config']=_0x639eaf,_0x529ded;},handleO11yRerun=_0x2e8919=>{const _0x541c11=a35_0x3d3a09,_0x15ea8a={};_0x15ea8a['nUNaM']=function(_0x24dcbd,_0x2a31d8){return _0x24dcbd!==_0x2a31d8;},_0x15ea8a[_0x541c11(0x1ee)]=_0x541c11(0x1bc),_0x15ea8a['pIPnh']='--grep';const _0x249ccd=_0x15ea8a,_0x4711a9=helper[_0x541c11(0x1a3)](process[_0x541c11(0x1f8)]['BROWSERSTACK_RERUN']);if(_0x4711a9){const _0x36b86a=process[_0x541c11(0x1f8)][_0x541c11(0x18e)],_0x12b2cc=[];if(_0x249ccd['nUNaM'](_0x36b86a,_0x249ccd[_0x541c11(0x1ee)])&&!helper[_0x541c11(0x196)](_0x36b86a)){_0x36b86a['split'](',')[_0x541c11(0x21a)](_0x4a6542=>{const _0x47ace3=_0x541c11;_0x12b2cc[_0x47ace3(0x197)]('('+_0x4a6542[_0x47ace3(0x21f)]()+')');});const _0x4d583d='^'+_0x12b2cc[_0x541c11(0x1d1)]('|')+'$';_0x2e8919['push'](_0x249ccd[_0x541c11(0x220)],_0x4d583d);}}},spawnOriginalProcess=_0x4985c1=>{const _0x3c05c2=a35_0x3d3a09,_0x1d1e2e={'atGuc':function(_0x5f096d,_0xf35fa2,_0x13b781,_0x52432f){return _0x5f096d(_0xf35fa2,_0x13b781,_0x52432f);},'hzbrl':_0x3c05c2(0x1fe),'fVEtq':_0x3c05c2(0x202),'DPmjT':function(_0xf400f5,_0x58e044){return _0xf400f5===_0x58e044;},'hGjtB':_0x3c05c2(0x1c8),'XqJMg':_0x3c05c2(0x1b5)};_0x1d1e2e[_0x3c05c2(0x1e2)](spawn,_0x1d1e2e['hzbrl'],[_0x1d1e2e['fVEtq'],..._0x4985c1[_0x3c05c2(0x209)](0x1)],{'shell':_0x1d1e2e[_0x3c05c2(0x1f7)](process['platform'],_0x1d1e2e[_0x3c05c2(0x1be)]),'stdio':_0x1d1e2e[_0x3c05c2(0x217)],'cwd':process[_0x3c05c2(0x213)]()});},isTestCommand=(_0x5024ca,_0x1976a8)=>{const _0x3aad99=a35_0x3d3a09,_0x216c34={};_0x216c34[_0x3aad99(0x1f0)]=function(_0xba7483,_0x47461a){return _0xba7483>_0x47461a;},_0x216c34[_0x3aad99(0x1ac)]=function(_0x596156,_0x48f9ee){return _0x596156===_0x48f9ee;},_0x216c34['roJPq']='test';const _0x2ff9f2=_0x216c34;if(_0x2ff9f2[_0x3aad99(0x1f0)](_0x1976a8[_0x3aad99(0x18a)],0x1)&&_0x2ff9f2[_0x3aad99(0x1ac)](_0x1976a8[0x1],_0x2ff9f2[_0x3aad99(0x218)]))return!![];return![];};function a35_0x5606(_0x3bf11c,_0x117496){const _0x5e0678=a35_0x5e06();return a35_0x5606=function(_0x5606f1,_0x3e9393){_0x5606f1=_0x5606f1-0x187;let _0x37cd05=_0x5e0678[_0x5606f1];return _0x37cd05;},a35_0x5606(_0x3bf11c,_0x117496);}async function run(_0x546afd,_0x46a666){const _0x4ff71a=a35_0x3d3a09,_0x54fcf1={'YqEKx':_0x4ff71a(0x199),'KJuSU':'pw_result.json','PrPOE':function(_0x369eb3,_0x559685){return _0x369eb3+_0x559685;},'LJXJE':_0x4ff71a(0x1c3),'bjzIE':_0x4ff71a(0x1c9),'sWUSL':function(_0x25cc5a){return _0x25cc5a();},'CsMFX':function(_0x5ea367,_0x5e8908){return _0x5ea367+_0x5e8908;},'zwXSx':_0x4ff71a(0x194),'jkMnv':'--disable-browserstack-automation','MESAS':'false','ohPzz':_0x4ff71a(0x1a9),'ucjdW':function(_0x468940,_0x525119){return _0x468940>=_0x525119;},'UjzcX':function(_0x2ed42b,_0x4e510a){return _0x2ed42b+_0x4e510a;},'ZRdzS':'Error\x20in\x20deleting\x20playwright\x20results','PImMV':function(_0x35eb79,_0x2028bd,_0x3ab016){return _0x35eb79(_0x2028bd,_0x3ab016);},'wiByJ':function(_0x957f12,_0x56e46d){return _0x957f12(_0x56e46d);},'OgGuf':_0x4ff71a(0x1e3),'EINBc':'automation','rQuPu':function(_0x4abe4c,_0x54d6eb){return _0x4abe4c!=_0x54d6eb;},'eRcaF':function(_0x125253,_0x4f4c9c){return _0x125253===_0x4f4c9c;},'AkXAc':_0x4ff71a(0x216),'tgLqX':function(_0x381150,_0x21af46){return _0x381150(_0x21af46);},'BpeFN':function(_0x5714f3,_0x40d449){return _0x5714f3(_0x40d449);},'jJYOq':'browserstackSetupConfig.json','Fvxiv':_0x4ff71a(0x1c2),'aqZBz':_0x4ff71a(0x1c7),'lXRvX':function(_0x7e855d,_0x260e7f){return _0x7e855d-_0x260e7f;},'vNZWi':_0x4ff71a(0x1a7),'FTekH':function(_0xc11dd7,_0x3b943d){return _0xc11dd7>_0x3b943d;},'ntdMP':function(_0x701906,_0xa53ffa,_0x35b921,_0x3caf3a){return _0x701906(_0xa53ffa,_0x35b921,_0x3caf3a);},'sKSVr':_0x4ff71a(0x1fe),'DkxhG':_0x4ff71a(0x202),'WQdIe':_0x4ff71a(0x1af),'MCxTR':_0x4ff71a(0x1e6),'ymgfh':function(_0x2bcf1b,_0x5e491f){return _0x2bcf1b===_0x5e491f;},'SwzaA':_0x4ff71a(0x1c8),'gzEKX':_0x4ff71a(0x1b5),'OmxDN':_0x4ff71a(0x1b7)};!helper[_0x4ff71a(0x20d)](process[_0x4ff71a(0x1f8)][_0x4ff71a(0x1c6)])&&(process[_0x4ff71a(0x1f8)][_0x4ff71a(0x1c6)]=!![]);process['argv'][_0x4ff71a(0x1fb)](_0x54fcf1[_0x4ff71a(0x1bf)])&&(process[_0x4ff71a(0x1f8)][_0x4ff71a(0x1c6)]=_0x54fcf1[_0x4ff71a(0x1e9)],_0x46a666=_0x46a666[_0x4ff71a(0x1a6)](_0x256e90=>_0x256e90!==_0x4ff71a(0x215)));const _0x2ae0b8=_0x46a666[_0x4ff71a(0x20b)](_0x54fcf1[_0x4ff71a(0x1dd)]);_0x54fcf1[_0x4ff71a(0x1cf)](_0x2ae0b8,0x0)&&(process[_0x4ff71a(0x1f8)][_0x4ff71a(0x1e5)]=_0x54fcf1[_0x4ff71a(0x1e9)],_0x46a666=_0x46a666[_0x4ff71a(0x1a6)](_0x22a0c0=>_0x22a0c0!==_0x4ff71a(0x1a9)));try{const _0x4e1710=path[_0x4ff71a(0x1d1)](helper[_0x4ff71a(0x21c)](),_0x54fcf1[_0x4ff71a(0x1a0)],_0x54fcf1[_0x4ff71a(0x1c5)]);fs['existsSync'](_0x4e1710)&&fs[_0x4ff71a(0x1d7)](_0x4e1710);}catch(_0x1cf4b3){logger['debug'](_0x54fcf1[_0x4ff71a(0x204)](_0x54fcf1[_0x4ff71a(0x198)],_0x1cf4b3));}if(!_0x54fcf1['PImMV'](isTestCommand,_0x546afd,_0x46a666)){_0x54fcf1[_0x4ff71a(0x214)](spawnOriginalProcess,_0x46a666);return;}const _0x44cd5f=new BrowserStackSetup(_0x546afd,FRAMEWORKS[_0x4ff71a(0x19e)]);if(!_0x44cd5f['config']){logger['error'](_0x54fcf1[_0x4ff71a(0x1b8)]);return;}await _0x44cd5f[_0x4ff71a(0x1d0)]();!helper[_0x4ff71a(0x196)](_0x44cd5f['cliConfig'])&&_0x44cd5f[_0x4ff71a(0x1f9)][_0x4ff71a(0x1cb)](_0x54fcf1[_0x4ff71a(0x200)])&&(process[_0x4ff71a(0x1f8)][_0x4ff71a(0x1c6)]=_0x44cd5f['cliConfig'][_0x4ff71a(0x1b2)](_0x54fcf1[_0x4ff71a(0x200)])||!![]);_0x54fcf1[_0x4ff71a(0x1e4)](_0x44cd5f['config'][_0x4ff71a(0x1de)],null)&&!helper[_0x4ff71a(0x1a3)](process['env'][_0x4ff71a(0x1e5)])&&(process[_0x4ff71a(0x1f8)][_0x4ff71a(0x1e5)]=process[_0x4ff71a(0x1f8)][_0x4ff71a(0x1e5)]||_0x44cd5f[_0x4ff71a(0x18b)][_0x4ff71a(0x1de)]);const _0x39acdd=!helper[_0x4ff71a(0x20d)](process[_0x4ff71a(0x1f8)][_0x4ff71a(0x1e5)]);let _0x587b18=![];_0x44cd5f['config'][_0x4ff71a(0x1bd)]&&(_0x587b18=!![],process[_0x4ff71a(0x1f8)][_0x4ff71a(0x1cc)]=_0x44cd5f[_0x4ff71a(0x18b)][_0x4ff71a(0x1bd)]);_0x44cd5f[_0x4ff71a(0x18b)]['accessibilityOptions']&&(process[_0x4ff71a(0x1f8)][_0x4ff71a(0x1ba)]=JSON[_0x4ff71a(0x21d)](_0x44cd5f['config']['accessibilityOptions']));const _0x1804d6=_0x46a666[_0x4ff71a(0x1ef)](),_0x47e2a6=await _0x54fcf1[_0x4ff71a(0x1ff)](getUserPlaywrightConfig,_0x546afd,_0x46a666);if(helper[_0x4ff71a(0x196)](_0x47e2a6)){_0x54fcf1[_0x4ff71a(0x214)](spawnOriginalProcess,_0x1804d6);return;}const _0x3a6426=_0x47e2a6[_0x4ff71a(0x1d8)]?path[_0x4ff71a(0x1fa)](_0x47e2a6[_0x4ff71a(0x1d8)]):process[_0x4ff71a(0x213)]();process[_0x4ff71a(0x1f8)][_0x4ff71a(0x189)]=_0x3a6426,await TestHubHandler[_0x4ff71a(0x191)](FRAMEWORKS[_0x4ff71a(0x19e)],_0x44cd5f);_0x39acdd&&_0x54fcf1[_0x4ff71a(0x214)](handleO11yRerun,_0x46a666);let _0x244cb9=_0x54fcf1['eRcaF'](process[_0x4ff71a(0x1f8)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML'],_0x54fcf1[_0x4ff71a(0x1bb)]);_0x244cb9=_0x244cb9||_0x54fcf1[_0x4ff71a(0x19f)](checkAccessibilityPlatformConfig,_0x44cd5f[_0x4ff71a(0x18b)]),process[_0x4ff71a(0x1f8)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x244cb9;_0x244cb9&&_0x54fcf1['BpeFN'](setAccessibilityCapabilities,_0x44cd5f[_0x4ff71a(0x18b)]);const _0x1cce90=path[_0x4ff71a(0x1d1)](_0x47e2a6[_0x4ff71a(0x1d8)]?path[_0x4ff71a(0x1fa)](_0x47e2a6[_0x4ff71a(0x1d8)]):process[_0x4ff71a(0x213)](),_0x54fcf1[_0x4ff71a(0x1b3)]);fs[_0x4ff71a(0x1c1)](_0x1cce90,helper[_0x4ff71a(0x1ea)](_0x44cd5f[_0x4ff71a(0x18b)])),process[_0x4ff71a(0x1f8)][_0x4ff71a(0x206)]=_0x1cce90,helper[_0x4ff71a(0x1f5)]();let _0xb91e2e='';_0x54fcf1['eRcaF'](helper[_0x4ff71a(0x1b9)](),constants[_0x4ff71a(0x1f3)][_0x4ff71a(0x208)])?_0xb91e2e=_0x54fcf1[_0x4ff71a(0x190)]:_0xb91e2e=_0x54fcf1[_0x4ff71a(0x203)];let _0x2b5fff='';if(helper['isTypescriptProject'](_0x47e2a6[_0x4ff71a(0x1d8)])){_0x2b5fff='\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a';const _0x2887ff=_0xb91e2e[_0x4ff71a(0x1c4)]('.');_0x2887ff[_0x54fcf1['lXRvX'](_0x2887ff['length'],0x1)]='ts',_0xb91e2e=_0x2887ff[_0x4ff71a(0x1d1)]('.'),logger[_0x4ff71a(0x1a1)](_0x54fcf1[_0x4ff71a(0x210)](_0x54fcf1['vNZWi'],_0xb91e2e));}else _0x2b5fff='\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a';const _0x35f89f=path[_0x4ff71a(0x1d1)](_0x47e2a6['path']?path[_0x4ff71a(0x1fa)](_0x47e2a6[_0x4ff71a(0x1d8)]):process['cwd'](),_0xb91e2e);let _0x4e9ee3=_0x47e2a6['path']?_0x47e2a6[_0x4ff71a(0x1d8)]:'';_0x4e9ee3=_0x54fcf1['FTekH'](_0x4e9ee3[_0x4ff71a(0x18a)],0x0)?path[_0x4ff71a(0x1a8)](_0x4e9ee3):'',process['env'][_0x4ff71a(0x211)]=_0x4e9ee3;const _0x1f8d84=helper[_0x4ff71a(0x1aa)](_0x44cd5f[_0x4ff71a(0x18b)]);_0x1f8d84&&(_0x2b5fff=_0x54fcf1['CsMFX'](_0x4ff71a(0x193)+_0x1f8d84+_0x4ff71a(0x21e),_0x2b5fff));helper[_0x4ff71a(0x1eb)]({},_0x46a666),fs[_0x4ff71a(0x1c1)](_0x35f89f,_0x2b5fff),helper[_0x4ff71a(0x1b6)]();const _0x28bffb=_0x54fcf1[_0x4ff71a(0x1d2)](spawn,_0x54fcf1[_0x4ff71a(0x1da)],[_0x54fcf1[_0x4ff71a(0x195)],_0x54fcf1[_0x4ff71a(0x187)],_0x54fcf1[_0x4ff71a(0x1d4)],_0x35f89f,..._0x46a666[_0x4ff71a(0x209)](0x2)],{'shell':_0x54fcf1[_0x4ff71a(0x1fc)](process[_0x4ff71a(0x20e)],_0x54fcf1[_0x4ff71a(0x1d5)]),'stdio':_0x54fcf1[_0x4ff71a(0x1b0)],'cwd':process[_0x4ff71a(0x213)](),'env':Object[_0x4ff71a(0x1ec)]({},process[_0x4ff71a(0x1f8)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x4ff71a(0x18f)](_0x546afd),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x44cd5f['config'][_0x4ff71a(0x201)]['skipSessionStatus'],'BROWSERSTACK_SKIP_SESSION_NAME':_0x44cd5f[_0x4ff71a(0x18b)][_0x4ff71a(0x201)]['skipSessionName'],'BROWSERSTACK_LOG_LEVEL':_0x44cd5f[_0x4ff71a(0x18b)][_0x4ff71a(0x19c)]})}),_0x169bdc=()=>{const _0x2363dc=_0x4ff71a;try{const _0x519e0f=path[_0x2363dc(0x1d1)](helper['homedir'](),_0x54fcf1['YqEKx'],_0x54fcf1['KJuSU']);if(fs['existsSync'](_0x519e0f)){let _0x59d361=fs[_0x2363dc(0x19a)](_0x519e0f);_0x59d361=JSON['parse'](_0x59d361),_0x44cd5f[_0x2363dc(0x1cd)]=_0x59d361,fs[_0x2363dc(0x1d7)](_0x519e0f);}}catch(_0x3b7987){logger[_0x2363dc(0x1a1)](_0x54fcf1[_0x2363dc(0x1f6)](_0x54fcf1[_0x2363dc(0x1a5)],_0x3b7987));}};_0x28bffb['on'](_0x54fcf1['OmxDN'],async _0x272bd5=>{const _0x2798f1=_0x4ff71a;try{const _0x28f663=_0x54fcf1[_0x2798f1(0x1f4)][_0x2798f1(0x1c4)]('|');let _0x24013c=0x0;while(!![]){switch(_0x28f663[_0x24013c++]){case'0':process['exitCode']=_0x272bd5;continue;case'1':_0x54fcf1[_0x2798f1(0x1db)](_0x169bdc);continue;case'2':await TestHubHandler[_0x2798f1(0x19d)]();continue;case'3':fs[_0x2798f1(0x1d7)](_0x35f89f);continue;case'4':await utilities[_0x2798f1(0x1ca)](_0x44cd5f);continue;case'5':fs['unlinkSync'](_0x1cce90);continue;case'6':logger['info'](_0x2798f1(0x1b4)+_0x35f89f);continue;case'7':logger[_0x2798f1(0x1a1)]('Playwright\x20process\x20exited\x20with\x20code\x20'+_0x272bd5);continue;case'8':logger[_0x2798f1(0x1a1)]('Deleting\x20'+_0x1cce90);continue;}break;}}catch(_0x2477bb){logger[_0x2798f1(0x1a1)](_0x54fcf1[_0x2798f1(0x210)](_0x54fcf1['zwXSx'],_0x2477bb));}});}function a35_0x5e06(){const _0x2d1b17=['BrowserStack\x20config\x20file\x20not\x20found.','rQuPu','BROWSERSTACK_TEST_OBSERVABILITY','--config','42945380cGsupq','util','MESAS','serializeToYamlString','filterBrowserstackArgs','assign','nestedKeyValue','ErpXf','concat','lnjos','1602QRyECp','requirePWModule','PACKAGE_TYPE','bjzIE','clearTempPWConfig','PrPOE','DPmjT','env','cliConfig','dirname','includes','ymgfh','11UgeOdb','npx','PImMV','EINBc','testContextOptions','playwright','aqZBz','UjzcX','exports','BROWSERSTACK_SETUP_CONFIG_PATH','winstonLogger','MODULE','slice','../../helpers/test-observability/utils','indexOf','apply','isFalse','platform','ylkNA','CsMFX','USER_CONFIG_DETAILS_PATH','./accessibility-helper','cwd','wiByJ','--disable-browserstack-automation','true','XqJMg','roJPq','--config=','map','13675BGsqPf','homedir','stringify','\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();','trim','pIPnh','WQdIe','1011331TdTUmU','BROWSERSTACK_PW_CONFIG_DIR','length','config','findIndex','../utils/constants','BROWSERSTACK_RERUN_TESTS','getConfigPath','Fvxiv','launchBuild','../../helpers/test-observability/constants','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','Error\x20in\x20closing\x20playwright','DkxhG','isUndefined','push','ZRdzS','.browserstack','readFileSync','16GaPMAU','logLevel','stop','PLAYWRIGHT','tgLqX','YqEKx','debug','resolvedConfigFile','isTrue','4085631CAtWVQ','LJXJE','filter','Updated\x20config\x20file\x20name\x20to\x20-\x20','resolve','--disable-test-observability','getProxyUrl','splice','ykkWT','../../helpers/testhub/testhubHandler','2WbYxPQ','test','gzEKX','../../helpers/utilities','get','jJYOq','Deleting\x20','inherit','markSDKSetupComplete','close','OgGuf','getPackageType','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','AkXAc','null','accessibility','hGjtB','jkMnv','../../helpers/testhub/utils','writeFileSync','playwright-browserstack-sdk.config.cjs','Error\x20in\x20getting\x20funnel\x20data\x20results','split','KJuSU','BROWSERSTACK_AUTOMATION','playwright-browserstack-sdk.config.js','win32','1|2|4|0|7|6|3|8|5','finalExecution','has','BROWSERSTACK_TEST_ACCESSIBILITY_YML','errorMessage','1261773ZSKvoz','ucjdW','initialize','join','ntdMP','../../helpers/logger','MCxTR','SwzaA','child_process','unlinkSync','path','HWCCK','sKSVr','sWUSL','3550928xjgIEn','ohPzz','testObservability','../../helpers/accessibility-automation/helper','startsWith','1857128FRrzXl','atGuc'];a35_0x5e06=function(){return _0x2d1b17;};return a35_0x5e06();}module[a35_0x3d3a09(0x205)]=run;
|
|
2
|
+
'use strict';const a35_0x4c303c=a35_0x46f3;(function(_0x15688c,_0x198286){const _0x5075c1=a35_0x46f3,_0x2ae3df=_0x15688c();while(!![]){try{const _0x58c3cb=parseInt(_0x5075c1(0x199))/0x1*(parseInt(_0x5075c1(0x1e0))/0x2)+parseInt(_0x5075c1(0x14c))/0x3+parseInt(_0x5075c1(0x19b))/0x4+parseInt(_0x5075c1(0x1c8))/0x5+-parseInt(_0x5075c1(0x1c2))/0x6*(parseInt(_0x5075c1(0x1de))/0x7)+-parseInt(_0x5075c1(0x19e))/0x8*(-parseInt(_0x5075c1(0x1c9))/0x9)+parseInt(_0x5075c1(0x15e))/0xa*(-parseInt(_0x5075c1(0x1b1))/0xb);if(_0x58c3cb===_0x198286)break;else _0x2ae3df['push'](_0x2ae3df['shift']());}catch(_0x498f45){_0x2ae3df['push'](_0x2ae3df['shift']());}}}(a35_0x14ac,0xc171b));const fs=require('fs'),path=require('path'),{spawn}=require(a35_0x4c303c(0x157)),{format}=require('util'),logger=require('../../helpers/logger')['winstonLogger'],{default:BrowserStackSetup}=require(a35_0x4c303c(0x1a1)),helper=require(a35_0x4c303c(0x1a5)),utilities=require(a35_0x4c303c(0x1c3)),constants=require('../utils/constants'),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require(a35_0x4c303c(0x19a)),{CrashReporter}=require(a35_0x4c303c(0x187)),{getFrameworkVersion}=require(a35_0x4c303c(0x195)),{checkAccessibilityPlatformConfig}=require('../../helpers/accessibility-automation/helper'),{setAccessibilityCapabilities}=require(a35_0x4c303c(0x160)),TestHubHandler=require('../../helpers/testhub/testhubHandler'),{shouldProcessEventForTesthub}=require(a35_0x4c303c(0x1af)),getUserPlaywrightConfig=async(_0x1286e6,_0x22084a)=>{const _0x15d275=a35_0x4c303c,_0x449d32={'nfxpp':function(_0x4d4885){return _0x4d4885();},'SdnxK':function(_0x31c8f3,_0x5059ac){return _0x31c8f3(_0x5059ac);},'qnyWw':function(_0x38c342,_0x1c046a){return _0x38c342(_0x1c046a);},'gzCwF':'resolvedConfigFile','lSvPF':_0x15d275(0x1d7)},_0x18c086=!helper[_0x15d275(0x16a)](_0x1286e6['config']),_0x5ab9e6=_0x18c086?path['resolve'](process[_0x15d275(0x15b)](),_0x1286e6[_0x15d275(0x158)]):process['cwd'](),{resolveConfigFile:_0x562ea2,resolveConfigLocation:_0x43d3ed}=helper[_0x15d275(0x17a)]['apply'](null,_0x449d32[_0x15d275(0x190)](getConfigLoaderPath)),_0x19131a=_0x562ea2?_0x449d32['SdnxK'](_0x562ea2,_0x5ab9e6):helper[_0x15d275(0x165)](_0x449d32[_0x15d275(0x16b)](_0x43d3ed,_0x5ab9e6),[_0x449d32[_0x15d275(0x1bc)]]),_0x4a1af6={};if(_0x18c086){const _0x4bb864=_0x22084a['findIndex'](_0x3f716f=>_0x3f716f===_0x15d275(0x18d)||_0x3f716f==='-c'||_0x3f716f[_0x15d275(0x1b2)](_0x15d275(0x1d7)));_0x22084a[_0x15d275(0x186)](_0x4bb864,_0x22084a[_0x4bb864]['startsWith'](_0x449d32['lSvPF'])?0x1:0x2);}const _0x3749fd={};return _0x3749fd[_0x15d275(0x1bd)]=_0x19131a,_0x3749fd[_0x15d275(0x158)]=_0x4a1af6,_0x3749fd;},handleO11yRerun=_0x487097=>{const _0x4478a0=a35_0x4c303c,_0x16fbb0={};_0x16fbb0['zDCog']=function(_0x49e34c,_0x3dd374){return _0x49e34c!==_0x3dd374;},_0x16fbb0['ewRMC']=_0x4478a0(0x1d2),_0x16fbb0[_0x4478a0(0x18e)]=_0x4478a0(0x1b8);const _0x2b353f=_0x16fbb0,_0x22d877=helper[_0x4478a0(0x184)](process['env'][_0x4478a0(0x169)]);if(_0x22d877){const _0x50391e=process[_0x4478a0(0x170)]['BROWSERSTACK_RERUN_TESTS'],_0x4bfd05=[];if(_0x2b353f[_0x4478a0(0x180)](_0x50391e,_0x2b353f['ewRMC'])&&!helper[_0x4478a0(0x16a)](_0x50391e)){_0x50391e[_0x4478a0(0x162)](',')[_0x4478a0(0x1c5)](_0xb85f7=>{const _0x57ab0a=_0x4478a0;_0x4bfd05[_0x57ab0a(0x18a)]('('+_0xb85f7[_0x57ab0a(0x15a)]()+')');});const _0xa1f047='^'+_0x4bfd05['join']('|')+'$';_0x487097[_0x4478a0(0x18a)](_0x2b353f[_0x4478a0(0x18e)],_0xa1f047);}}},spawnOriginalProcess=_0x129008=>{const _0x1498a4=a35_0x4c303c,_0x2aa95f={'puRnl':function(_0x4335ac,_0x2e67c5,_0x37fb08,_0x5b763c){return _0x4335ac(_0x2e67c5,_0x37fb08,_0x5b763c);},'kAWpA':_0x1498a4(0x168),'WrNeH':'playwright','BvGTC':function(_0x579bdc,_0x995be9){return _0x579bdc===_0x995be9;},'TXnwP':_0x1498a4(0x143),'wNYZt':_0x1498a4(0x17e)};_0x2aa95f['puRnl'](spawn,_0x2aa95f[_0x1498a4(0x1d0)],[_0x2aa95f[_0x1498a4(0x18f)],..._0x129008[_0x1498a4(0x1b0)](0x1)],{'shell':_0x2aa95f[_0x1498a4(0x14e)](process[_0x1498a4(0x174)],_0x2aa95f[_0x1498a4(0x1dd)]),'stdio':_0x2aa95f['wNYZt'],'cwd':process['cwd']()});},isTestCommand=(_0x4c2317,_0x39a1a6)=>{const _0x5d59d8=a35_0x4c303c,_0x2b5fe3={};_0x2b5fe3[_0x5d59d8(0x1ca)]=function(_0x4b15c6,_0x30c285){return _0x4b15c6>_0x30c285;},_0x2b5fe3[_0x5d59d8(0x1b9)]=function(_0x18ae9b,_0x315023){return _0x18ae9b===_0x315023;},_0x2b5fe3[_0x5d59d8(0x193)]='test';const _0x54fceb=_0x2b5fe3;if(_0x54fceb['cnCzK'](_0x39a1a6[_0x5d59d8(0x1a2)],0x1)&&_0x54fceb[_0x5d59d8(0x1b9)](_0x39a1a6[0x1],_0x54fceb[_0x5d59d8(0x193)]))return!![];return![];};function a35_0x14ac(){const _0xb8e04=['MODULE','NoScH','push','skipSessionName','sKrNs','--config','vlIzy','WrNeH','nfxpp','stop','playwright-browserstack-sdk.config.js','nqrLF','Edeup','../../helpers/test-observability/utils','playwright','BROWSERSTACK_AUTOMATION','finalExecution','61718oFfRXF','./reporter/pwUtils','5161564pUMPzI','EDiqy','accessibilityOptions','472jOPWvF','logLevel','qTSGk','../../helpers/BrowserStackSetup','length','argv','getProxyUrl','../../helpers/helper','ialLe','OXVsL','existsSync','testObservability','--disable-test-observability','parse','BROWSERSTACK_TEST_OBSERVABILITY','TQJEi','ZpqIB','../../helpers/testhub/utils','slice','11QOjbWy','startsWith','BROWSERSTACK_SETUP_CONFIG_PATH','ExrCa','cdntd','PLAYWRIGHT','automation','--grep','uUvaZ','writeFileSync','concat','gzCwF','path','lZZpL','join','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','exitCode','6SzfhXc','../../helpers/utilities','pRXgb','map','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','markSDKSetupComplete','6251445aPtlFn','48699ImwPKK','cnCzK','--disable-browserstack-automation','IbKIR','cliConfig','YwmOh','ROJbw','kAWpA','accessibility','null','includes','uvrzl','Deleting\x20','Playwright\x20process\x20exited\x20with\x20code\x20','--config=','launchBuild','readFileSync','stringify','pBzZF','BrowserStack\x20config\x20file\x20not\x20found.','TXnwP','4178167LuXjZE','indexOf','48ojYiJx','test','win32','assign','AyzCz','Nlbdh','dirname','initialize','OmJrb','unlinkSync','resolve','1530498LFAPsq','close','BvGTC','getPackageType','Updated\x20config\x20file\x20name\x20to\x20-\x20','BROWSERSTACK_PW_CONFIG_DIR','filterBrowserstackArgs','sPtUx','SIRHD','Error\x20in\x20deleting\x20playwright\x20results','tErog','child_process','config','filter','trim','cwd','testContextOptions','errorMessage','34620990lbyRnN','info','./accessibility-helper','jFbLN','split','Error\x20in\x20getting\x20funnel\x20data\x20results','tpUiB','nestedKeyValue','FMcMN','\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();','npx','BROWSERSTACK_RERUN','isUndefined','qnyWw','get','playwright-browserstack-sdk.config.cjs','browserstackSetupConfig.json','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','env','kWctI','getConfigPath','isTypescriptProject','platform','true','BROWSERSTACK_TEST_ACCESSIBILITY_YML','RVGFg','fnaCV','hFHWJ','requirePWModule','homedir','nuFin','serializeToYamlString','inherit','lCGXX','zDCog','SUUzS','skipSessionStatus','Error\x20in\x20closing\x20playwright','isTrue','debug','splice','../../helpers/test-observability/error-handler'];a35_0x14ac=function(){return _0xb8e04;};return a35_0x14ac();}async function run(_0x2733d4,_0x54f324){const _0x15bfad=a35_0x4c303c,_0x25a3e1={'OXVsL':'.browserstack','nuFin':'pw_result.json','FMcMN':function(_0x58db1f,_0x38c5ad){return _0x58db1f+_0x38c5ad;},'EDiqy':_0x15bfad(0x163),'NVbnt':'6|7|8|0|5|3|4|1|2','OmJrb':function(_0x20bdef){return _0x20bdef();},'AyzCz':function(_0x2b2173,_0x4495cb){return _0x2b2173+_0x4495cb;},'TQJEi':_0x15bfad(0x183),'jFbLN':_0x15bfad(0x1cb),'Edeup':'false','MYvhh':_0x15bfad(0x1aa),'ialLe':function(_0x15288b,_0x514ebd){return _0x15288b>=_0x514ebd;},'ExrCa':function(_0x55ac93,_0x1578da){return _0x55ac93+_0x1578da;},'sPtUx':_0x15bfad(0x155),'aFPuT':function(_0x373ed8,_0xa565bc,_0x589874){return _0x373ed8(_0xa565bc,_0x589874);},'cdntd':function(_0xc5c5dc,_0x24bab2){return _0xc5c5dc(_0x24bab2);},'IbKIR':_0x15bfad(0x1dc),'tpUiB':_0x15bfad(0x1b7),'qyavc':function(_0x225a56,_0x34affd){return _0x225a56!=_0x34affd;},'lZZpL':function(_0x21cbd0,_0x35466d){return _0x21cbd0(_0x35466d);},'qTSGk':function(_0x2c9a6b,_0x545eae){return _0x2c9a6b===_0x545eae;},'pBzZF':_0x15bfad(0x175),'uvrzl':_0x15bfad(0x16e),'lCGXX':_0x15bfad(0x16d),'hFHWJ':_0x15bfad(0x192),'pRXgb':function(_0x246100,_0x5c46c9){return _0x246100-_0x5c46c9;},'YwmOh':function(_0x59becc,_0x3d51ab){return _0x59becc+_0x3d51ab;},'ZpqIB':_0x15bfad(0x150),'ROJbw':function(_0x29e76f,_0x460342){return _0x29e76f>_0x460342;},'suODS':function(_0x596f28,_0x1e782a){return _0x596f28+_0x1e782a;},'Nlbdh':function(_0x3d0fd5,_0x5617ed,_0x25b218,_0x10b5ea){return _0x3d0fd5(_0x5617ed,_0x25b218,_0x10b5ea);},'sKrNs':_0x15bfad(0x168),'RVGFg':_0x15bfad(0x196),'SUUzS':_0x15bfad(0x1e1),'SIRHD':_0x15bfad(0x18d),'NoScH':function(_0x5135ab,_0x40822c){return _0x5135ab===_0x40822c;},'fnaCV':'win32','tErog':_0x15bfad(0x17e),'kWctI':_0x15bfad(0x14d)};!helper['isFalse'](process[_0x15bfad(0x170)][_0x15bfad(0x197)])&&(process[_0x15bfad(0x170)][_0x15bfad(0x197)]=!![]);process[_0x15bfad(0x1a3)][_0x15bfad(0x1d3)](_0x25a3e1[_0x15bfad(0x161)])&&(process[_0x15bfad(0x170)]['BROWSERSTACK_AUTOMATION']=_0x25a3e1[_0x15bfad(0x194)],_0x54f324=_0x54f324[_0x15bfad(0x159)](_0xc29cc7=>_0xc29cc7!==_0x15bfad(0x1cb)));const _0x47f9c1=_0x54f324[_0x15bfad(0x1df)](_0x25a3e1['MYvhh']);_0x25a3e1[_0x15bfad(0x1a6)](_0x47f9c1,0x0)&&(process[_0x15bfad(0x170)][_0x15bfad(0x1ac)]=_0x25a3e1[_0x15bfad(0x194)],_0x54f324=_0x54f324[_0x15bfad(0x159)](_0xf02b18=>_0xf02b18!=='--disable-test-observability'));try{const _0x399ca4=path['join'](helper[_0x15bfad(0x17b)](),_0x25a3e1[_0x15bfad(0x1a7)],_0x25a3e1[_0x15bfad(0x17c)]);fs[_0x15bfad(0x1a8)](_0x399ca4)&&fs[_0x15bfad(0x14a)](_0x399ca4);}catch(_0x3ba4cd){logger[_0x15bfad(0x185)](_0x25a3e1[_0x15bfad(0x1b4)](_0x25a3e1[_0x15bfad(0x153)],_0x3ba4cd));}if(!_0x25a3e1['aFPuT'](isTestCommand,_0x2733d4,_0x54f324)){_0x25a3e1[_0x15bfad(0x1b5)](spawnOriginalProcess,_0x54f324);return;}const _0x4320b1=new BrowserStackSetup(_0x2733d4,FRAMEWORKS[_0x15bfad(0x1b6)]);if(!_0x4320b1[_0x15bfad(0x158)]){logger['error'](_0x25a3e1[_0x15bfad(0x1cc)]);return;}await _0x4320b1[_0x15bfad(0x148)]();!helper[_0x15bfad(0x16a)](_0x4320b1['cliConfig'])&&_0x4320b1[_0x15bfad(0x1cd)]['has'](_0x25a3e1[_0x15bfad(0x164)])&&(process[_0x15bfad(0x170)][_0x15bfad(0x197)]=_0x4320b1[_0x15bfad(0x1cd)][_0x15bfad(0x16c)](_0x25a3e1[_0x15bfad(0x164)])||!![]);_0x25a3e1['qyavc'](_0x4320b1[_0x15bfad(0x158)]['testObservability'],null)&&!helper['isTrue'](process[_0x15bfad(0x170)][_0x15bfad(0x1ac)])&&(process['env'][_0x15bfad(0x1ac)]=process[_0x15bfad(0x170)][_0x15bfad(0x1ac)]||_0x4320b1[_0x15bfad(0x158)][_0x15bfad(0x1a9)]);const _0x12b2b6=!helper['isFalse'](process[_0x15bfad(0x170)][_0x15bfad(0x1ac)]);let _0x261101=![];_0x4320b1[_0x15bfad(0x158)][_0x15bfad(0x1d1)]&&(_0x261101=!![],process[_0x15bfad(0x170)][_0x15bfad(0x176)]=_0x4320b1['config'][_0x15bfad(0x1d1)]);_0x4320b1[_0x15bfad(0x158)][_0x15bfad(0x19d)]&&(process[_0x15bfad(0x170)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON[_0x15bfad(0x1da)](_0x4320b1[_0x15bfad(0x158)]['accessibilityOptions']));const _0x4a8f28=_0x54f324[_0x15bfad(0x1bb)](),_0x2c02d7=await _0x25a3e1['aFPuT'](getUserPlaywrightConfig,_0x2733d4,_0x54f324);if(helper['isUndefined'](_0x2c02d7)){_0x25a3e1[_0x15bfad(0x1be)](spawnOriginalProcess,_0x4a8f28);return;}const _0xc21368=_0x2c02d7[_0x15bfad(0x1bd)]?path['dirname'](_0x2c02d7[_0x15bfad(0x1bd)]):process[_0x15bfad(0x15b)]();process['env'][_0x15bfad(0x151)]=_0xc21368,await TestHubHandler[_0x15bfad(0x1d8)](FRAMEWORKS['PLAYWRIGHT'],_0x4320b1);_0x12b2b6&&_0x25a3e1['lZZpL'](handleO11yRerun,_0x54f324);let _0x1fca31=_0x25a3e1[_0x15bfad(0x1a0)](process[_0x15bfad(0x170)][_0x15bfad(0x176)],_0x25a3e1[_0x15bfad(0x1db)]);_0x1fca31=_0x1fca31||_0x25a3e1['cdntd'](checkAccessibilityPlatformConfig,_0x4320b1[_0x15bfad(0x158)]),process[_0x15bfad(0x170)][_0x15bfad(0x176)]=_0x1fca31;_0x1fca31&&_0x25a3e1[_0x15bfad(0x1b5)](setAccessibilityCapabilities,_0x4320b1[_0x15bfad(0x158)]);const _0x50a211=path[_0x15bfad(0x1bf)](_0x2c02d7[_0x15bfad(0x1bd)]?path[_0x15bfad(0x147)](_0x2c02d7[_0x15bfad(0x1bd)]):process[_0x15bfad(0x15b)](),_0x25a3e1[_0x15bfad(0x1d4)]);fs[_0x15bfad(0x1ba)](_0x50a211,helper[_0x15bfad(0x17d)](_0x4320b1['config'])),process[_0x15bfad(0x170)][_0x15bfad(0x1b3)]=_0x50a211,helper['clearTempPWConfig']();let _0x411825='';_0x25a3e1['qTSGk'](helper[_0x15bfad(0x14f)](),constants['PACKAGE_TYPE'][_0x15bfad(0x188)])?_0x411825=_0x25a3e1[_0x15bfad(0x17f)]:_0x411825=_0x25a3e1[_0x15bfad(0x179)];let _0x51c2be='';if(helper[_0x15bfad(0x173)](_0x2c02d7[_0x15bfad(0x1bd)])){_0x51c2be=_0x15bfad(0x1c6);const _0x4da512=_0x411825['split']('.');_0x4da512[_0x25a3e1[_0x15bfad(0x1c4)](_0x4da512[_0x15bfad(0x1a2)],0x1)]='ts',_0x411825=_0x4da512[_0x15bfad(0x1bf)]('.'),logger[_0x15bfad(0x185)](_0x25a3e1[_0x15bfad(0x1ce)](_0x25a3e1[_0x15bfad(0x1ae)],_0x411825));}else _0x51c2be=_0x15bfad(0x1c0);const _0x56a215=path['join'](_0x2c02d7[_0x15bfad(0x1bd)]?path[_0x15bfad(0x147)](_0x2c02d7[_0x15bfad(0x1bd)]):process[_0x15bfad(0x15b)](),_0x411825);let _0x2f65ad=_0x2c02d7[_0x15bfad(0x1bd)]?_0x2c02d7[_0x15bfad(0x1bd)]:'';_0x2f65ad=_0x25a3e1[_0x15bfad(0x1cf)](_0x2f65ad['length'],0x0)?path[_0x15bfad(0x14b)](_0x2f65ad):'',process['env']['USER_CONFIG_DETAILS_PATH']=_0x2f65ad;const _0x48e356=helper[_0x15bfad(0x1a4)](_0x4320b1[_0x15bfad(0x158)]);_0x48e356&&(_0x51c2be=_0x25a3e1['suODS'](_0x15bfad(0x16f)+_0x48e356+_0x15bfad(0x167),_0x51c2be));helper[_0x15bfad(0x152)]({},_0x54f324),fs[_0x15bfad(0x1ba)](_0x56a215,_0x51c2be),helper[_0x15bfad(0x1c7)]();const _0x254e0c=_0x25a3e1[_0x15bfad(0x146)](spawn,_0x25a3e1[_0x15bfad(0x18c)],[_0x25a3e1[_0x15bfad(0x177)],_0x25a3e1[_0x15bfad(0x181)],_0x25a3e1[_0x15bfad(0x154)],_0x56a215,..._0x54f324[_0x15bfad(0x1b0)](0x2)],{'shell':_0x25a3e1[_0x15bfad(0x189)](process['platform'],_0x25a3e1[_0x15bfad(0x178)]),'stdio':_0x25a3e1[_0x15bfad(0x156)],'cwd':process[_0x15bfad(0x15b)](),'env':Object[_0x15bfad(0x144)]({},process['env'],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x15bfad(0x172)](_0x2733d4),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x4320b1['config'][_0x15bfad(0x15c)][_0x15bfad(0x182)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x4320b1[_0x15bfad(0x158)][_0x15bfad(0x15c)][_0x15bfad(0x18b)],'BROWSERSTACK_LOG_LEVEL':_0x4320b1['config'][_0x15bfad(0x19f)]})}),_0xbf3880=()=>{const _0x39a3bf=_0x15bfad;try{const _0x3c30ee=path[_0x39a3bf(0x1bf)](helper[_0x39a3bf(0x17b)](),_0x25a3e1[_0x39a3bf(0x1a7)],_0x25a3e1['nuFin']);if(fs[_0x39a3bf(0x1a8)](_0x3c30ee)){let _0x23dbc3=fs[_0x39a3bf(0x1d9)](_0x3c30ee);_0x23dbc3=JSON[_0x39a3bf(0x1ab)](_0x23dbc3),_0x4320b1[_0x39a3bf(0x15d)]=_0x23dbc3,fs[_0x39a3bf(0x14a)](_0x3c30ee);}}catch(_0x53c463){logger[_0x39a3bf(0x185)](_0x25a3e1[_0x39a3bf(0x166)](_0x25a3e1[_0x39a3bf(0x19c)],_0x53c463));}};_0x254e0c['on'](_0x25a3e1[_0x15bfad(0x171)],async _0x256a1b=>{const _0x1bada6=_0x15bfad;try{const _0x15e120=_0x25a3e1['NVbnt']['split']('|');let _0x13c7a7=0x0;while(!![]){switch(_0x15e120[_0x13c7a7++]){case'0':process[_0x1bada6(0x1c1)]=_0x256a1b;continue;case'1':logger[_0x1bada6(0x185)](_0x1bada6(0x1d5)+_0x50a211);continue;case'2':fs[_0x1bada6(0x14a)](_0x50a211);continue;case'3':logger[_0x1bada6(0x15f)](_0x1bada6(0x1d5)+_0x56a215);continue;case'4':fs[_0x1bada6(0x14a)](_0x56a215);continue;case'5':logger[_0x1bada6(0x185)](_0x1bada6(0x1d6)+_0x256a1b);continue;case'6':_0x25a3e1[_0x1bada6(0x149)](_0xbf3880);continue;case'7':await TestHubHandler[_0x1bada6(0x191)]();continue;case'8':await utilities[_0x1bada6(0x198)](_0x4320b1);continue;}break;}}catch(_0x54b360){logger[_0x1bada6(0x185)](_0x25a3e1[_0x1bada6(0x145)](_0x25a3e1[_0x1bada6(0x1ad)],_0x54b360));}});}function a35_0x46f3(_0x3f8d7a,_0x54f599){const _0x14ac72=a35_0x14ac();return a35_0x46f3=function(_0x46f368,_0x1a9cab){_0x46f368=_0x46f368-0x143;let _0x1c809f=_0x14ac72[_0x46f368];return _0x1c809f;},a35_0x46f3(_0x3f8d7a,_0x54f599);}module['exports']=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a36_0x3f4e88=a36_0x3230;function a36_0x3230(_0x489452,_0x1c6106){const _0x2d9a71=a36_0x2d9a();return a36_0x3230=function(_0x32308a,_0x3aaf62){_0x32308a=_0x32308a-0x148;let _0x259d0e=_0x2d9a71[_0x32308a];return _0x259d0e;},a36_0x3230(_0x489452,_0x1c6106);}(function(_0x3439c4,_0x5c7046){const _0x8b78c4=a36_0x3230,_0x50f00a=_0x3439c4();while(!![]){try{const _0x2ea21e=-parseInt(_0x8b78c4(0x155))/0x1*(parseInt(_0x8b78c4(0x171))/0x2)+-parseInt(_0x8b78c4(0x174))/0x3*(-parseInt(_0x8b78c4(0x14f))/0x4)+-parseInt(_0x8b78c4(0x157))/0x5*(-parseInt(_0x8b78c4(0x16f))/0x6)+parseInt(_0x8b78c4(0x154))/0x7*(parseInt(_0x8b78c4(0x177))/0x8)+parseInt(_0x8b78c4(0x159))/0x9*(-parseInt(_0x8b78c4(0x15f))/0xa)+parseInt(_0x8b78c4(0x172))/0xb*(-parseInt(_0x8b78c4(0x14d))/0xc)+parseInt(_0x8b78c4(0x14e))/0xd;if(_0x2ea21e===_0x5c7046)break;else _0x50f00a['push'](_0x50f00a['shift']());}catch(_0x5bc417){_0x50f00a['push'](_0x50f00a['shift']());}}}(a36_0x2d9a,0xd3be1));const util=require(a36_0x3f4e88(0x149)),child_process=require(a36_0x3f4e88(0x178)),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{getFrameworkVersion,debug}=require(a36_0x3f4e88(0x14a)),helper=require('../../helpers/helper'),{getLoadUtilsPath,getForkProcessPath}=require('./reporter/pwUtils'),{mockIsWorkerRedundant}=require(a36_0x3f4e88(0x150)),logger=require(a36_0x3f4e88(0x14c))[a36_0x3f4e88(0x175)];module[a36_0x3f4e88(0x160)]=async function(_0x1fb8f0){const _0x94038b=a36_0x3f4e88,_0x1e1dc2={'GMhgA':function(_0x2579c0,_0x391207){return _0x2579c0(_0x391207);},'isYck':function(_0x36b88c){return _0x36b88c();},'xZSjH':_0x94038b(0x152),'WNHuP':function(_0x5275b5){return _0x5275b5();},'eAHQa':'Running\x20existing\x20global\x20setup','udqRy':function(_0x24062e){return _0x24062e();},'SUEXD':function(_0x44955b,_0x323032){return _0x44955b(_0x323032);},'BPLsY':function(_0xff429,_0x193d1d){return _0xff429>=_0x193d1d;},'BfIEO':_0x94038b(0x167),'USrjG':function(_0x3bc94c,_0x167666,_0x2ca540){return _0x3bc94c(_0x167666,_0x2ca540);},'GXkwf':function(_0x34718e,_0x311ceb){return _0x34718e!==_0x311ceb;},'txHgF':'function','anYvD':_0x94038b(0x168)},_0x16c464=child_process[_0x94038b(0x179)];if(helper[_0x94038b(0x151)]())try{_0x1e1dc2[_0x94038b(0x15a)](mockIsWorkerRedundant);}catch(_0x18c0b5){logger[_0x94038b(0x170)](_0x94038b(0x16b)+util[_0x94038b(0x16c)](_0x18c0b5));}child_process[_0x94038b(0x179)]=function(){const _0x6988f0=_0x94038b;return _0x1e1dc2[_0x6988f0(0x16d)](debug,_0x6988f0(0x158)+arguments[0x0]),arguments[0x0][_0x6988f0(0x14b)](_0x1e1dc2[_0x6988f0(0x16e)](getForkProcessPath))?arguments[0x0]=require['resolve'](_0x1e1dc2[_0x6988f0(0x165)]):logger[_0x6988f0(0x15e)](_0x6988f0(0x166)+_0x1e1dc2[_0x6988f0(0x16e)](getForkProcessPath)+_0x6988f0(0x16a)),_0x16c464[_0x6988f0(0x169)](null,arguments);};if(process['env'][_0x94038b(0x15b)]){_0x1e1dc2[_0x94038b(0x16d)](debug,_0x1e1dc2[_0x94038b(0x17a)]);try{const {loadGlobalHook:_0x4caf2d}=helper['requirePWModule']['apply'](null,_0x1e1dc2[_0x94038b(0x176)](getLoadUtilsPath)),_0x399f5e=_0x1e1dc2[_0x94038b(0x15c)](getFrameworkVersion,FRAMEWORKS[_0x94038b(0x164)]);let _0x3e7b41=_0x1fb8f0;if(_0x1e1dc2[_0x94038b(0x156)](helper[_0x94038b(0x148)](_0x399f5e,_0x1e1dc2[_0x94038b(0x161)]),0x0)){const _0x28f9d2={};_0x28f9d2[_0x94038b(0x163)]=_0x1fb8f0,_0x3e7b41=_0x28f9d2;}const _0x66456d=await _0x1e1dc2['USrjG'](_0x4caf2d,_0x3e7b41,process[_0x94038b(0x15d)][_0x94038b(0x15b)]);if(_0x1e1dc2[_0x94038b(0x153)](typeof _0x66456d,_0x1e1dc2['txHgF']))throw new Error(_0x1e1dc2['anYvD']);return _0x66456d[_0x94038b(0x169)](null,arguments);}catch(_0x45f805){_0x1e1dc2['SUEXD'](debug,_0x94038b(0x162)+_0x45f805[_0x94038b(0x173)]());}}};function a36_0x2d9a(){const _0x691971=['1531ycwQEY','BPLsY','19945wHMxzk','Call\x20to\x20child\x20fork\x20with\x20args\x20','2507949bGnyyo','WNHuP','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','SUEXD','env','error','50RRnBKS','exports','BfIEO','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','config','PLAYWRIGHT','xZSjH','Path\x20','1.33.0','Not\x20able\x20to\x20import\x20globalSetup','apply','\x20is\x20not\x20found','Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20','format','GMhgA','isYck','2244puNNDR','debug','38qereNa','30140QpbLNR','toString','1980447GCKigb','winstonLogger','udqRy','24HCARGd','child_process','fork','eAHQa','compareVersions','util','../../helpers/test-observability/utils','includes','../../helpers/logger','6108yXQoXq','7922824JGuBUj','8VoFtDt','./patches','isHandlePWErrorSet','./mock-process.js','GXkwf','613011HrZvSi'];a36_0x2d9a=function(){return _0x691971;};return a36_0x2d9a();}
|