browserstack-node-sdk 1.34.6 → 1.34.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance-tester.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a29_0x481bdb=a29_0x5d7c;function a29_0x5d7c(_0x4deb7b,_0x2b6931){const _0x39d43d=a29_0x39d4();return a29_0x5d7c=function(_0x5d7c04,_0x692b73){_0x5d7c04=_0x5d7c04-0xc2;let _0x5a4b2e=_0x39d43d[_0x5d7c04];return _0x5a4b2e;},a29_0x5d7c(_0x4deb7b,_0x2b6931);}(function(_0x36dd7e,_0x55a865){const _0x30adc2=a29_0x5d7c,_0x5b06d8=_0x36dd7e();while(!![]){try{const _0x31e16a=parseInt(_0x30adc2(0xde))/0x1+parseInt(_0x30adc2(0xdd))/0x2*(-parseInt(_0x30adc2(0xf6))/0x3)+-parseInt(_0x30adc2(0x113))/0x4*(parseInt(_0x30adc2(0xd9))/0x5)+parseInt(_0x30adc2(0x106))/0x6*(-parseInt(_0x30adc2(0x117))/0x7)+parseInt(_0x30adc2(0xe8))/0x8+-parseInt(_0x30adc2(0xee))/0x9+parseInt(_0x30adc2(0x140))/0xa;if(_0x31e16a===_0x55a865)break;else _0x5b06d8['push'](_0x5b06d8['shift']());}catch(_0x261b2e){_0x5b06d8['push'](_0x5b06d8['shift']());}}}(a29_0x39d4,0xe6cc9));const logger=require(a29_0x481bdb(0x108))[a29_0x481bdb(0x132)],helper=require(a29_0x481bdb(0xec)),constants=require(a29_0x481bdb(0xcf)),hubAllocator=require(a29_0x481bdb(0xfb)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a29_0x481bdb(0x111)),{setAccessibilityCapabilities,setExtension}=require(a29_0x481bdb(0x125)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0x481bdb(0xfd)),globals=require('../../../helpers/globals'),modify=(_0x547eca,_0x12e0de=null,_0x1b5aab=![])=>{const _0x3c3738=a29_0x481bdb,_0x294c23={'NspDQ':function(_0x5bdb49,_0x44dcfc){return _0x5bdb49!==_0x44dcfc;},'cnbFq':_0x3c3738(0x10a),'hFDFy':function(_0x284705,_0x5975dc){return _0x284705!==_0x5975dc;},'Dcgbc':function(_0x5a2a19,_0x4915be){return _0x5a2a19+_0x4915be;},'AVgSJ':_0x3c3738(0xef),'MuAcN':_0x3c3738(0x124),'JPhMl':_0x3c3738(0x12c),'eNKrI':_0x3c3738(0x114),'BProq':_0x3c3738(0x116),'mopBE':_0x3c3738(0xf9),'nEIFx':_0x3c3738(0x121),'PUjfp':_0x3c3738(0xe3),'uiSfu':_0x3c3738(0xc8),'fizlI':_0x3c3738(0xf3),'oyUbD':_0x3c3738(0xf7),'amZJT':function(_0x26ab89,_0x5ea003){return _0x26ab89===_0x5ea003;},'rDTKH':_0x3c3738(0x112),'jRMOF':_0x3c3738(0xce),'ZdZvr':'optimalHubUrl','hywky':_0x3c3738(0xc2),'ciVNF':function(_0x4b7161,_0x5edec5,_0x10c746){return _0x4b7161(_0x5edec5,_0x10c746);},'rrTmK':function(_0x432fc1,_0x2179d6,_0x207825){return _0x432fc1(_0x2179d6,_0x207825);},'aMeQm':function(_0x140635,_0x56e90c){return _0x140635(_0x56e90c);},'yIStA':function(_0x3b3547,_0x4fd4a1,_0x15cd42){return _0x3b3547(_0x4fd4a1,_0x15cd42);},'lSVPA':_0x3c3738(0xf4),'RmPuJ':'isAccessibilityPlatform','yIitb':function(_0x16d287){return _0x16d287();},'hJhem':function(_0x56dbd9,_0x1624d8){return _0x56dbd9(_0x1624d8);},'vOEMO':_0x3c3738(0x13e),'RGYnX':function(_0x5c166c,_0x543b35){return _0x5c166c(_0x543b35);},'EeAij':function(_0x5787b2,_0x1ea71f){return _0x5787b2(_0x1ea71f);},'jRKDU':function(_0x2975d2,_0x3e1130){return _0x2975d2!==_0x3e1130;},'GJnuv':function(_0x5440d5,_0x21ae77){return _0x5440d5!==_0x21ae77;},'xKEMV':_0x3c3738(0x138),'oOWTV':_0x3c3738(0xcc)},_0x3bde75=helper[_0x3c3738(0x11b)]();let _0x8e0449;try{_0x8e0449=helper[_0x3c3738(0x11e)](),_0x8e0449[_0x3c3738(0xd5)]&&(_0x8e0449[_0x3c3738(0xd6)]=_0x8e0449[_0x3c3738(0xd5)]);}catch(_0xb1ad2e){return;}if(helper[_0x3c3738(0xd7)]()){const _0x2dc2aa={};_0x2dc2aa[_0x3c3738(0xe2)]=_0x547eca[_0x3c3738(0x137)],helper[_0x3c3738(0x118)](_0x2dc2aa,new Map(),new Map()),logger[_0x3c3738(0x11d)](_0x294c23[_0x3c3738(0x119)]),logger[_0x3c3738(0xda)](_0x294c23[_0x3c3738(0xd4)]);}class _0x32cac2 extends _0x3bde75[_0x3c3738(0x131)]{[_0x3c3738(0xf0)](_0x43ebaf){const _0x4086f5=_0x3c3738;if(_0x294c23[_0x4086f5(0xe1)](_0x43ebaf[_0x4086f5(0xe9)],_0x294c23[_0x4086f5(0xd3)])&&_0x294c23[_0x4086f5(0xed)](global[_0x4086f5(0xe4)],''))try{global['newHubUrl']=_0x294c23['Dcgbc'](_0x294c23[_0x4086f5(0x135)](_0x294c23['AVgSJ'],global[_0x4086f5(0xe4)]),_0x294c23[_0x4086f5(0x12e)]),this['options_']=hubAllocator[_0x4086f5(0x10b)](global[_0x4086f5(0xe4)]),logger['debug'](_0x4086f5(0xfe)+global[_0x4086f5(0xe4)]),global[_0x4086f5(0xe4)]='';}catch(_0x2b070e){logger['error'](_0x2b070e);}return super[_0x4086f5(0xf0)](_0x43ebaf);}}class _0x303957 extends _0x8e0449['Builder']{[_0x3c3738(0x11a)](){const _0x25858a=_0x3c3738;return this[_0x25858a(0x105)]=helper['getHubUrl'](_0x547eca),logger['debug'](_0x25858a(0x103)+this[_0x25858a(0x105)]),this;}[_0x3c3738(0x122)](_0x1b16ec){const _0x517dfa=_0x3c3738;let _0x26cde2={};for(const _0xd6cc80 in _0x1b16ec){switch(_0xd6cc80){case _0x294c23['JPhMl']:case _0x294c23[_0x517dfa(0x12b)]:this[_0x517dfa(0xc4)]&&(_0x26cde2=this[_0x517dfa(0xc4)][_0x517dfa(0x100)](this['chromeOptions_'][_0x517dfa(0xc5)])||{},this[_0x517dfa(0xc4)][_0x517dfa(0x101)](this['chromeOptions_'][_0x517dfa(0xc5)],helper[_0x517dfa(0xff)](_0x26cde2,_0x1b16ec[_0xd6cc80])));break;case _0x294c23[_0x517dfa(0x143)]:case _0x294c23['mopBE']:this[_0x517dfa(0xc7)]&&(_0x26cde2=this[_0x517dfa(0xc7)][_0x517dfa(0x100)](this[_0x517dfa(0xc7)][_0x517dfa(0xc5)])||{},this[_0x517dfa(0xc7)][_0x517dfa(0x101)](this['edgeOptions_']['CAPABILITY_KEY'],helper[_0x517dfa(0xff)](_0x26cde2,_0x1b16ec[_0xd6cc80])));break;case _0x294c23[_0x517dfa(0x123)]:case _0x294c23[_0x517dfa(0x139)]:this[_0x517dfa(0xe0)]&&(_0x26cde2=this['firefoxOptions_'][_0x517dfa(0x100)](this['firefoxOptions_'][_0x517dfa(0xc5)])||{},this[_0x517dfa(0xe0)][_0x517dfa(0x101)](this[_0x517dfa(0xe0)]['CAPABILITY_KEY'],helper['mergeDeep'](_0x26cde2,_0x1b16ec[_0xd6cc80])));break;case _0x294c23[_0x517dfa(0x129)]:this['safariOptions_']&&(_0x26cde2=this['safariOptions_']['get'](this['safariOptions_'][_0x517dfa(0xc5)])||{},this[_0x517dfa(0x12a)]['set'](this[_0x517dfa(0x12a)][_0x517dfa(0xc5)],helper[_0x517dfa(0xff)](_0x26cde2,_0x1b16ec[_0xd6cc80])));break;case _0x294c23[_0x517dfa(0x10d)]:case _0x294c23[_0x517dfa(0x12f)]:this[_0x517dfa(0x10e)]&&(_0x26cde2=this[_0x517dfa(0x10e)][_0x517dfa(0x100)](this[_0x517dfa(0x10e)][_0x517dfa(0xc5)])||{},this[_0x517dfa(0x10e)]['set'](this[_0x517dfa(0x10e)][_0x517dfa(0xc5)],helper[_0x517dfa(0xff)](_0x26cde2,_0x1b16ec[_0xd6cc80])));break;}}}[_0x3c3738(0xc3)](){const _0x1c9194=_0x3c3738;return logger['debug'](_0x294c23[_0x1c9194(0x13f)]),this[_0x1c9194(0x122)](_0x547eca['capability']),Object[_0x1c9194(0xf8)](_0x547eca[_0x1c9194(0x11f)])['forEach'](_0x41da12=>{const _0xeb6c27=_0x1c9194,_0x8b241=this[_0xeb6c27(0x13b)][_0xeb6c27(0x100)](_0x41da12);_0x294c23[_0xeb6c27(0x13a)](typeof _0x8b241,_0x294c23[_0xeb6c27(0x115)])?this[_0xeb6c27(0x13b)]['set'](_0x41da12,helper['mergeDeep'](_0x8b241,_0x547eca[_0xeb6c27(0x11f)][_0x41da12])):this[_0xeb6c27(0x13b)][_0xeb6c27(0x101)](_0x41da12,_0x547eca[_0xeb6c27(0x11f)][_0x41da12]);}),this;}[_0x3c3738(0x13c)](){const _0xea8d31=_0x3c3738,_0x92eb57={'APTOE':function(_0x48d8ac,_0x467c0a,_0x11f1ca){const _0x4837e5=a29_0x5d7c;return _0x294c23[_0x4837e5(0x104)](_0x48d8ac,_0x467c0a,_0x11f1ca);}};if(helper[_0xea8d31(0xd7)]()){const _0x1d3360=_0x294c23[_0xea8d31(0xcb)][_0xea8d31(0xd1)]('|');let _0x5e930e=0x0;while(!![]){switch(_0x1d3360[_0x5e930e++]){case'0':this['setCapabilities']();continue;case'1':globals[_0xea8d31(0x110)](_0x294c23[_0xea8d31(0xc9)])&&(!_0x294c23[_0xea8d31(0xdb)](setExtension,this,_0x547eca)&&globals[_0xea8d31(0x10f)](_0x294c23[_0xea8d31(0xc9)],![]));continue;case'2':this[_0xea8d31(0x11a)]();continue;case'3':_0x294c23[_0xea8d31(0xfc)](isAccessibilityAutomationSession)&&_0x294c23['hJhem'](setAccessibilityCapabilities,_0x547eca);continue;case'4':if(helper[_0xea8d31(0xf2)](_0x547eca['proxySettings'][_0xea8d31(0x11c)]))this[_0xea8d31(0x136)]=helper[_0xea8d31(0x130)](_0x547eca[_0xea8d31(0xc6)]['proxyUrl']);else _0x547eca[_0xea8d31(0xc6)][_0xea8d31(0x11c)]&&(this[_0xea8d31(0x102)]=_0x547eca[_0xea8d31(0xc6)]['proxyUrl'],logger[_0xea8d31(0xda)](_0xea8d31(0xd2)+this[_0xea8d31(0x102)]));continue;case'5':logger[_0xea8d31(0xda)](_0x294c23[_0xea8d31(0x134)]);continue;}break;}}const _0x4d00a6=super['build']();return _0x4d00a6['session_'][_0xea8d31(0xf1)](_0x5885d1=>{const _0x17ff9e=_0xea8d31;try{const _0x3a90a2=_0x5885d1[_0x17ff9e(0x10c)][_0x17ff9e(0x100)](_0x294c23[_0x17ff9e(0x109)]);_0x3a90a2?(logger[_0x17ff9e(0xda)]('SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20'+_0x3a90a2),hubAllocator[_0x17ff9e(0x133)](_0x3a90a2),helper[_0x17ff9e(0xd0)](_0x3a90a2)):logger['debug'](_0x294c23[_0x17ff9e(0xf5)]);}catch(_0x1fbfd0){logger[_0x17ff9e(0xda)]('ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20'+_0x1fbfd0);}}),_0x4d00a6[_0xea8d31(0x126)]=0x0,_0x4d00a6['then']&&_0x4d00a6[_0xea8d31(0xf1)](_0x421982=>{const _0x2f3cd6=_0xea8d31,_0x46b3cd={'hHkaV':function(_0x39a705,_0x2de518,_0x25c73d){return _0x294c23['ciVNF'](_0x39a705,_0x2de518,_0x25c73d);},'cDvYa':function(_0x262d5d,_0xd67f6a,_0x1057c2){const _0x15d0fc=a29_0x5d7c;return _0x294c23[_0x15d0fc(0xdb)](_0x262d5d,_0xd67f6a,_0x1057c2);}};_0x294c23['ciVNF'](overrideQuit,_0x421982,_0x4d00a6),_0x294c23[_0x2f3cd6(0x127)](overrideTakeScreenshot,_0x421982),helper[_0x2f3cd6(0x141)](_0x421982,_0x547eca),helper['overrideExecute'](_0x421982,_0x547eca),_0x421982[_0x2f3cd6(0x107)]=async()=>{const _0x3f2667=_0x2f3cd6;return await _0x46b3cd[_0x3f2667(0xe5)](getAccessibilityResultsSummary,_0x421982,global);},_0x421982[_0x2f3cd6(0xea)]=async()=>{return await _0x46b3cd['cDvYa'](getAccessibilityResults,_0x421982,global);};}),_0x4d00a6[_0xea8d31(0x107)]=async()=>{const _0x2c3abb=_0xea8d31;return await _0x92eb57[_0x2c3abb(0xcd)](getAccessibilityResultsSummary,_0x4d00a6,global);},_0x4d00a6[_0xea8d31(0xea)]=async()=>{return await _0x294c23['rrTmK'](getAccessibilityResults,_0x4d00a6,global);},_0x294c23[_0xea8d31(0x120)](overrideTakeScreenshot,_0x4d00a6),_0x294c23[_0xea8d31(0x12d)](overrideQuit,_0x4d00a6),helper[_0xea8d31(0x141)](_0x4d00a6,_0x547eca),helper[_0xea8d31(0x142)](_0x4d00a6,_0x547eca),helper[_0xea8d31(0xfa)](global[_0xea8d31(0xe6)])&&(global[_0xea8d31(0xe6)]=[]),helper[_0xea8d31(0xfa)](global['__drivers'])&&(global[_0xea8d31(0xca)]=[]),global['__driversArray']['push'](_0x4d00a6),global[_0xea8d31(0xeb)]=_0x4d00a6,_0x294c23[_0xea8d31(0xd8)](global[_0xea8d31(0xca)],undefined)&&global[_0xea8d31(0xca)][_0xea8d31(0xdf)](_0x4d00a6),_0x12e0de&&helper[_0xea8d31(0xfa)](_0x12e0de[_0xea8d31(0xe7)][_0xea8d31(0xe6)])&&(_0x12e0de[_0xea8d31(0xe7)][_0xea8d31(0xe6)]=[]),_0x12e0de&&_0x294c23[_0xea8d31(0xdc)](_0x12e0de['global'][_0xea8d31(0xca)],undefined)&&(_0x12e0de[_0xea8d31(0xe7)][_0xea8d31(0xca)][_0xea8d31(0xdf)](_0x4d00a6),_0x12e0de[_0xea8d31(0xe7)]['__driversArray'][_0xea8d31(0xdf)](_0x4d00a6)),_0x4d00a6;}}return _0x8e0449[_0x3c3738(0xd5)]=_0x8e0449[_0x3c3738(0xd6)],_0x8e0449['Builder']=_0x303957,_0x3bde75[_0x3c3738(0x131)]=_0x32cac2,_0x8e0449;};function a29_0x39d4(){const _0x2535f6=['setLogLevel','xKEMV','setServer','requireHttpClient','proxyUrl','info','requireSeleniumWebdriver','capability','RGYnX','moz:firefoxOptions','__setBrowserOptions','nEIFx','/wd/hub','../accessibility-automation/helper','quitCount_','aMeQm','browserstackAgentObservability','uiSfu','safariOptions_','eNKrI','goog:chromeOptions','EeAij','MuAcN','oyUbD','getHttpAgent','HttpClient','winstonLogger','updateHubUrl','vOEMO','Dcgbc','agent_','browserStackLogLevel','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','PUjfp','amZJT','capabilities_','build','exports','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','jRMOF','34540580IEbztF','overrideGet','overrideExecute','BProq','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','setCapabilities','chromeOptions_','CAPABILITY_KEY','proxySettings','edgeOptions_','safari.options','RmPuJ','__drivers','lSVPA','Modifying\x20webdriver\x20builder','APTOE','Setting\x20Browserstack\x20capabilities','../../../bin/utils/constants','storeOptimalHubUrl','split','Proxy\x20set\x20to\x20','cnbFq','oOWTV','originalBuilder','Builder','isBrowserstackInfra','jRKDU','145PvQaBy','debug','rrTmK','GJnuv','139092exYeTL','739407pTJwdF','push','firefoxOptions_','NspDQ','logLevel','firefoxOptions','newHubUrl','hHkaV','__driversArray','global','797520JqSQqw','path','getAccessibilityResults','__driver','../../../helpers/helper','hFDFy','12480705TUVxNl','https://','send','then','isPacProxy','se:ieOptions','3|2|0|4|1|5','hywky','3ywsHwC','ieOptions','keys','edgeOptions','isUndefined','../../../hubAllocationMethods','yIitb','../../../helpers/accessibility-automation/helper','New\x20hub\x20url\x20set\x20to\x20','mergeDeep','get','set','proxy_','Hub\x20url\x20set\x20to\x20','yIStA','url_','30CdNxVJ','getAccessibilityResultsSummary','../../../helpers/logger','ZdZvr','/session','getRequestOptions','caps_','fizlI','ieOptions_','setGlobal','getGlobal','../../../helpers/patchHelpers','object','238916xlLkDl','chromeOptions','rDTKH','ms:edgeOptions','223118SZksdu'];a29_0x39d4=function(){return _0x2535f6;};return a29_0x39d4();}module[a29_0x481bdb(0x13d)][a29_0x481bdb(0x128)]=modify;
|
|
1
|
+
const a29_0x3515ee=a29_0x10ad;(function(_0x22665e,_0x45016b){const _0x305994=a29_0x10ad,_0xe70800=_0x22665e();while(!![]){try{const _0x15a239=parseInt(_0x305994(0x1fb))/0x1*(-parseInt(_0x305994(0x1ac))/0x2)+-parseInt(_0x305994(0x1d5))/0x3*(-parseInt(_0x305994(0x1c8))/0x4)+parseInt(_0x305994(0x215))/0x5+parseInt(_0x305994(0x218))/0x6+parseInt(_0x305994(0x1ee))/0x7+-parseInt(_0x305994(0x217))/0x8*(-parseInt(_0x305994(0x1ea))/0x9)+parseInt(_0x305994(0x1b4))/0xa*(-parseInt(_0x305994(0x1a9))/0xb);if(_0x15a239===_0x45016b)break;else _0xe70800['push'](_0xe70800['shift']());}catch(_0x22f365){_0xe70800['push'](_0xe70800['shift']());}}}(a29_0x415b,0xef4f2));function a29_0x10ad(_0x5f3c09,_0x3adac3){const _0x415b0b=a29_0x415b();return a29_0x10ad=function(_0x10ade3,_0x26111c){_0x10ade3=_0x10ade3-0x19f;let _0x5d068d=_0x415b0b[_0x10ade3];return _0x5d068d;},a29_0x10ad(_0x5f3c09,_0x3adac3);}const logger=require('../../../helpers/logger')[a29_0x3515ee(0x1f0)],helper=require('../../../helpers/helper'),constants=require('../../../bin/utils/constants'),hubAllocator=require(a29_0x3515ee(0x1bb)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require('../../../helpers/patchHelpers'),{setAccessibilityCapabilities,setExtension}=require(a29_0x3515ee(0x1c0)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0x3515ee(0x1d1)),globals=require(a29_0x3515ee(0x201)),modify=(_0x2502f4,_0x48842c=null,_0x1010f5=![])=>{const _0x375e91=a29_0x3515ee,_0x5974e6={'FbMRi':function(_0x1dd76a,_0x438ff7){return _0x1dd76a!==_0x438ff7;},'ctGSq':'/session','rqTvp':function(_0x4e7dcb,_0x3ce4ef){return _0x4e7dcb!==_0x3ce4ef;},'PEnCj':function(_0x3adda8,_0x4ce281){return _0x3adda8+_0x4ce281;},'uJcuf':'https://','ZZUCe':_0x375e91(0x1e4),'BulgO':_0x375e91(0x1aa),'dInlk':_0x375e91(0x1a4),'YKfZb':'ms:edgeOptions','JVeCi':_0x375e91(0x1f6),'qeRrZ':_0x375e91(0x211),'DVXSa':_0x375e91(0x1ef),'poKJR':_0x375e91(0x1e0),'vDuCz':_0x375e91(0x20d),'gkoYS':'ieOptions','wjyPu':function(_0x2c10bf,_0x2f1ba6){return _0x2c10bf===_0x2f1ba6;},'SBmWQ':_0x375e91(0x1e1),'kkMqZ':_0x375e91(0x207),'SAaMi':function(_0x3ba1ee,_0x34c4f8,_0x1b3397){return _0x3ba1ee(_0x34c4f8,_0x1b3397);},'EMBjY':function(_0x42c323,_0x2adb90,_0x44cf76){return _0x42c323(_0x2adb90,_0x44cf76);},'ejYqb':'optimalHubUrl','BqaBz':_0x375e91(0x1f9),'MgJBq':function(_0x173ae2,_0x11dca6,_0x47137e){return _0x173ae2(_0x11dca6,_0x47137e);},'ncheM':function(_0x50af6b,_0x16fe19){return _0x50af6b(_0x16fe19);},'BTtzW':_0x375e91(0x1a2),'nzdOf':_0x375e91(0x1f8),'CQGvc':function(_0x12f967){return _0x12f967();},'eZBhP':function(_0x527dd6,_0x21877d){return _0x527dd6(_0x21877d);},'rJAtW':_0x375e91(0x203),'ePabn':function(_0x583409,_0x431d4d){return _0x583409(_0x431d4d);},'LMdaI':function(_0x155a1b,_0x244dc2){return _0x155a1b!==_0x244dc2;},'goBqj':'Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','bvlMd':_0x375e91(0x1d0)},_0x24b613=helper[_0x375e91(0x1de)]();let _0x62120f;try{_0x62120f=helper['requireSeleniumWebdriver'](),_0x62120f[_0x375e91(0x1bc)]&&(_0x62120f[_0x375e91(0x1d8)]=_0x62120f[_0x375e91(0x1bc)]);}catch(_0xe1e033){return;}if(helper['isBrowserstackInfra']()){const _0x1f6f28={};_0x1f6f28[_0x375e91(0x209)]=_0x2502f4[_0x375e91(0x219)],helper[_0x375e91(0x1d3)](_0x1f6f28,new Map(),new Map()),logger[_0x375e91(0x210)](_0x5974e6[_0x375e91(0x1e7)]),logger[_0x375e91(0x1d7)](_0x5974e6[_0x375e91(0x1ae)]);}class _0x407ec5 extends _0x24b613['HttpClient']{[_0x375e91(0x20f)](_0x534e76){const _0x36daf8=_0x375e91;if(_0x5974e6[_0x36daf8(0x1fa)](_0x534e76['path'],_0x5974e6[_0x36daf8(0x1ff)])&&_0x5974e6[_0x36daf8(0x1dd)](global['newHubUrl'],''))try{global[_0x36daf8(0x1bf)]=_0x5974e6[_0x36daf8(0x1cf)](_0x5974e6[_0x36daf8(0x1cf)](_0x5974e6[_0x36daf8(0x213)],global[_0x36daf8(0x1bf)]),_0x5974e6[_0x36daf8(0x1ab)]),this[_0x36daf8(0x1a3)]=hubAllocator['getRequestOptions'](global[_0x36daf8(0x1bf)]),logger[_0x36daf8(0x1d7)](_0x36daf8(0x20b)+global[_0x36daf8(0x1bf)]),global[_0x36daf8(0x1bf)]='';}catch(_0x9ae5a6){logger[_0x36daf8(0x1be)](_0x9ae5a6);}return super[_0x36daf8(0x20f)](_0x534e76);}}class _0x2f4a61 extends _0x62120f['Builder']{[_0x375e91(0x1f3)](){const _0x5f2f23=_0x375e91;return this[_0x5f2f23(0x1e9)]=helper[_0x5f2f23(0x1e8)](_0x2502f4),logger['debug'](_0x5f2f23(0x1f7)+this[_0x5f2f23(0x1e9)]),this;}[_0x375e91(0x1b7)](_0x23fc79){const _0x286471=_0x375e91;let _0x45a003={};for(const _0x3df16e in _0x23fc79){switch(_0x3df16e){case _0x5974e6[_0x286471(0x1a7)]:case _0x5974e6[_0x286471(0x1e3)]:this['chromeOptions_']&&(_0x45a003=this[_0x286471(0x1a6)][_0x286471(0x1f4)](this[_0x286471(0x1a6)][_0x286471(0x1b9)])||{},this[_0x286471(0x1a6)][_0x286471(0x1bd)](this[_0x286471(0x1a6)][_0x286471(0x1b9)],helper[_0x286471(0x1c1)](_0x45a003,_0x23fc79[_0x3df16e])));break;case _0x5974e6[_0x286471(0x1dc)]:case _0x5974e6['JVeCi']:this['edgeOptions_']&&(_0x45a003=this[_0x286471(0x208)][_0x286471(0x1f4)](this[_0x286471(0x208)][_0x286471(0x1b9)])||{},this[_0x286471(0x208)][_0x286471(0x1bd)](this[_0x286471(0x208)]['CAPABILITY_KEY'],helper[_0x286471(0x1c1)](_0x45a003,_0x23fc79[_0x3df16e])));break;case _0x5974e6[_0x286471(0x1a8)]:case _0x5974e6[_0x286471(0x1fc)]:this[_0x286471(0x1b8)]&&(_0x45a003=this[_0x286471(0x1b8)][_0x286471(0x1f4)](this[_0x286471(0x1b8)][_0x286471(0x1b9)])||{},this[_0x286471(0x1b8)]['set'](this[_0x286471(0x1b8)]['CAPABILITY_KEY'],helper['mergeDeep'](_0x45a003,_0x23fc79[_0x3df16e])));break;case _0x5974e6[_0x286471(0x1cc)]:this[_0x286471(0x206)]&&(_0x45a003=this[_0x286471(0x206)]['get'](this[_0x286471(0x206)]['CAPABILITY_KEY'])||{},this['safariOptions_'][_0x286471(0x1bd)](this[_0x286471(0x206)][_0x286471(0x1b9)],helper[_0x286471(0x1c1)](_0x45a003,_0x23fc79[_0x3df16e])));break;case _0x5974e6[_0x286471(0x1c6)]:case _0x5974e6[_0x286471(0x1af)]:this[_0x286471(0x1e2)]&&(_0x45a003=this[_0x286471(0x1e2)][_0x286471(0x1f4)](this[_0x286471(0x1e2)][_0x286471(0x1b9)])||{},this[_0x286471(0x1e2)]['set'](this['ieOptions_'][_0x286471(0x1b9)],helper[_0x286471(0x1c1)](_0x45a003,_0x23fc79[_0x3df16e])));break;}}}[_0x375e91(0x1eb)](){const _0x486b1a=_0x375e91,_0x1aaaa6={'sDjve':function(_0x294baf,_0x3678ee){return _0x5974e6['wjyPu'](_0x294baf,_0x3678ee);},'ZNESV':_0x5974e6[_0x486b1a(0x1fe)]};return logger['debug'](_0x5974e6['kkMqZ']),this['__setBrowserOptions'](_0x2502f4[_0x486b1a(0x1ca)]),Object['keys'](_0x2502f4[_0x486b1a(0x1ca)])['forEach'](_0x1c7df0=>{const _0x3baed4=_0x486b1a,_0x2a18b7=this[_0x3baed4(0x1ad)][_0x3baed4(0x1f4)](_0x1c7df0);_0x1aaaa6[_0x3baed4(0x212)](typeof _0x2a18b7,_0x1aaaa6[_0x3baed4(0x19f)])?this[_0x3baed4(0x1ad)]['set'](_0x1c7df0,helper['mergeDeep'](_0x2a18b7,_0x2502f4[_0x3baed4(0x1ca)][_0x1c7df0])):this['capabilities_'][_0x3baed4(0x1bd)](_0x1c7df0,_0x2502f4['capability'][_0x1c7df0]);}),this;}[_0x375e91(0x1fd)](){const _0x20171=_0x375e91,_0x1954c9={'KrWpL':_0x5974e6['ejYqb'],'LZbDo':_0x5974e6['BqaBz'],'TDqnh':function(_0x34b5d1,_0x2f33f3,_0x5989eb){const _0x83cfb4=a29_0x10ad;return _0x5974e6[_0x83cfb4(0x1f5)](_0x34b5d1,_0x2f33f3,_0x5989eb);},'sQSeV':function(_0x20d059,_0x11fd25){const _0x31e863=a29_0x10ad;return _0x5974e6[_0x31e863(0x205)](_0x20d059,_0x11fd25);}};if(helper[_0x20171(0x1a5)]()){const _0x5b945d=_0x5974e6[_0x20171(0x1b6)][_0x20171(0x1c9)]('|');let _0x30a4c3=0x0;while(!![]){switch(_0x5b945d[_0x30a4c3++]){case'0':this[_0x20171(0x1f3)]();continue;case'1':globals[_0x20171(0x1d4)](_0x5974e6[_0x20171(0x20e)])&&(!_0x5974e6[_0x20171(0x1f5)](setExtension,this,_0x2502f4)&&globals[_0x20171(0x1c7)](_0x5974e6['nzdOf'],![]));continue;case'2':this[_0x20171(0x1eb)]();continue;case'3':if(helper[_0x20171(0x1d2)](_0x2502f4['proxySettings'][_0x20171(0x20c)]))this[_0x20171(0x1e6)]=helper[_0x20171(0x214)](_0x2502f4[_0x20171(0x1cb)]['proxyUrl']);else _0x2502f4[_0x20171(0x1cb)][_0x20171(0x20c)]&&(this[_0x20171(0x1c5)]=_0x2502f4[_0x20171(0x1cb)][_0x20171(0x20c)],logger['debug'](_0x20171(0x1b1)+this[_0x20171(0x1c5)]));continue;case'4':_0x5974e6[_0x20171(0x1b3)](isAccessibilityAutomationSession)&&_0x5974e6['eZBhP'](setAccessibilityCapabilities,_0x2502f4);continue;case'5':logger['debug'](_0x5974e6['rJAtW']);continue;}break;}}const _0x3bc9de=super[_0x20171(0x1fd)]();return _0x3bc9de[_0x20171(0x202)][_0x20171(0x1ce)](_0x373dcc=>{const _0x14cab2=_0x20171;try{const _0x46bfd9=_0x373dcc['caps_'][_0x14cab2(0x1f4)](_0x1954c9[_0x14cab2(0x20a)]);_0x46bfd9?(logger['debug']('SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20'+_0x46bfd9),hubAllocator[_0x14cab2(0x1b5)](_0x46bfd9),helper[_0x14cab2(0x1da)](_0x46bfd9)):logger[_0x14cab2(0x1d7)](_0x1954c9[_0x14cab2(0x1c4)]);}catch(_0x1c7db5){logger[_0x14cab2(0x1d7)]('ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20'+_0x1c7db5);}}),_0x3bc9de[_0x20171(0x1f1)]=0x0,_0x3bc9de[_0x20171(0x1ce)]&&_0x3bc9de[_0x20171(0x1ce)](_0x1ac507=>{const _0x776076=_0x20171,_0x1c024f={'gmlQe':function(_0x583155,_0xb12f26,_0x1ff4bb){const _0xf2d5c0=a29_0x10ad;return _0x1954c9[_0xf2d5c0(0x216)](_0x583155,_0xb12f26,_0x1ff4bb);}};_0x1954c9[_0x776076(0x216)](overrideQuit,_0x1ac507,_0x3bc9de),_0x1954c9[_0x776076(0x1a0)](overrideTakeScreenshot,_0x1ac507),helper[_0x776076(0x1b2)](_0x1ac507,_0x2502f4),helper[_0x776076(0x1c2)](_0x1ac507,_0x2502f4),_0x1ac507[_0x776076(0x1ec)]=async()=>{const _0x3969e5=_0x776076;return await _0x1954c9[_0x3969e5(0x216)](getAccessibilityResultsSummary,_0x1ac507,global);},_0x1ac507[_0x776076(0x1d6)]=async()=>{return await _0x1c024f['gmlQe'](getAccessibilityResults,_0x1ac507,global);};}),_0x3bc9de['getAccessibilityResultsSummary']=async()=>{const _0xcb6ddd=_0x20171;return await _0x5974e6[_0xcb6ddd(0x1db)](getAccessibilityResultsSummary,_0x3bc9de,global);},_0x3bc9de['getAccessibilityResults']=async()=>{const _0x46f7ef=_0x20171;return await _0x5974e6[_0x46f7ef(0x1df)](getAccessibilityResults,_0x3bc9de,global);},_0x5974e6[_0x20171(0x1f2)](overrideTakeScreenshot,_0x3bc9de),_0x5974e6[_0x20171(0x1d9)](overrideQuit,_0x3bc9de),helper['overrideGet'](_0x3bc9de,_0x2502f4),helper[_0x20171(0x1c2)](_0x3bc9de,_0x2502f4),helper['isUndefined'](global[_0x20171(0x1cd)])&&(global[_0x20171(0x1cd)]=[]),helper['isUndefined'](global[_0x20171(0x1ba)])&&(global[_0x20171(0x1ba)]=[]),global['__driversArray'][_0x20171(0x1c3)](_0x3bc9de),global['__driver']=_0x3bc9de,_0x5974e6[_0x20171(0x204)](global[_0x20171(0x1ba)],undefined)&&global[_0x20171(0x1ba)][_0x20171(0x1c3)](_0x3bc9de),_0x48842c&&helper[_0x20171(0x1a1)](_0x48842c[_0x20171(0x1e5)][_0x20171(0x1cd)])&&(_0x48842c[_0x20171(0x1e5)]['__driversArray']=[]),_0x48842c&&_0x5974e6['LMdaI'](_0x48842c[_0x20171(0x1e5)][_0x20171(0x1ba)],undefined)&&(_0x48842c[_0x20171(0x1e5)]['__drivers'][_0x20171(0x1c3)](_0x3bc9de),_0x48842c[_0x20171(0x1e5)]['__driversArray'][_0x20171(0x1c3)](_0x3bc9de)),_0x3bc9de;}}return _0x62120f[_0x375e91(0x1bc)]=_0x62120f[_0x375e91(0x1d8)],_0x62120f[_0x375e91(0x1d8)]=_0x2f4a61,_0x24b613[_0x375e91(0x1ed)]=_0x407ec5,_0x62120f;};module[a29_0x3515ee(0x200)][a29_0x3515ee(0x1b0)]=modify;function a29_0x415b(){const _0x305543=['split','capability','proxySettings','poKJR','__driversArray','then','PEnCj','Modifying\x20webdriver\x20builder','../../../helpers/accessibility-automation/helper','isPacProxy','setLogLevel','getGlobal','3XcytgK','getAccessibilityResults','debug','Builder','eZBhP','storeOptimalHubUrl','SAaMi','YKfZb','rqTvp','requireHttpClient','EMBjY','safari.options','object','ieOptions_','dInlk','/wd/hub','global','agent_','goBqj','getHubUrl','url_','1694997WauCtg','setCapabilities','getAccessibilityResultsSummary','HttpClient','7470428jTmqEb','firefoxOptions','winstonLogger','quitCount_','ePabn','setServer','get','MgJBq','edgeOptions','Hub\x20url\x20set\x20to\x20','isAccessibilityPlatform','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','FbMRi','2MZGdXX','DVXSa','build','SBmWQ','ctGSq','exports','../../../helpers/globals','session_','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','LMdaI','ncheM','safariOptions_','Setting\x20Browserstack\x20capabilities','edgeOptions_','logLevel','KrWpL','New\x20hub\x20url\x20set\x20to\x20','proxyUrl','se:ieOptions','nzdOf','send','info','moz:firefoxOptions','sDjve','uJcuf','getHttpAgent','6855510Gqdait','TDqnh','8MNbXcG','4841064tFxYtu','browserStackLogLevel','ZNESV','sQSeV','isUndefined','4|0|2|3|1|5','options_','chromeOptions','isBrowserstackInfra','chromeOptions_','BulgO','qeRrZ','22NQuhoa','goog:chromeOptions','ZZUCe','446528YDYkIq','capabilities_','bvlMd','gkoYS','browserstackAgentObservability','Proxy\x20set\x20to\x20','overrideGet','CQGvc','13291660LIYLTQ','updateHubUrl','BTtzW','__setBrowserOptions','firefoxOptions_','CAPABILITY_KEY','__drivers','../../../hubAllocationMethods','originalBuilder','set','error','newHubUrl','../accessibility-automation/helper','mergeDeep','overrideExecute','push','LZbDo','proxy_','vDuCz','setGlobal','2606348DQFMvI'];a29_0x415b=function(){return _0x305543;};return a29_0x415b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a30_0x28fe(_0x13083d,_0x4692f8){const _0x17f618=a30_0x17f6();return a30_0x28fe=function(_0x28fefc,_0xbc9394){_0x28fefc=_0x28fefc-0x139;let _0x7b9cba=_0x17f618[_0x28fefc];return _0x7b9cba;},a30_0x28fe(_0x13083d,_0x4692f8);}const a30_0x459af9=a30_0x28fe;function a30_0x17f6(){const _0x186841=['10EWpCUN','6724926jGrLIk','timeout','24oqrNgC','641259CmDPyz','1340185aXsvrt','119517AhtJpz','../../../helpers/test-observability/utils','7547204sYZQHi','8983552EDtClQ','../../../bin/utils/constants','mochaHooks','1176445lZLmGF'];a30_0x17f6=function(){return _0x186841;};return a30_0x17f6();}(function(_0x2f5480,_0x2465f3){const _0x34ff90=a30_0x28fe,_0x1a3cb1=_0x2f5480();while(!![]){try{const _0x487da9=parseInt(_0x34ff90(0x142))/0x1+parseInt(_0x34ff90(0x13d))/0x2*(-parseInt(_0x34ff90(0x143))/0x3)+-parseInt(_0x34ff90(0x140))/0x4*(parseInt(_0x34ff90(0x13c))/0x5)+-parseInt(_0x34ff90(0x13e))/0x6+parseInt(_0x34ff90(0x145))/0x7+parseInt(_0x34ff90(0x139))/0x8+-parseInt(_0x34ff90(0x141))/0x9;if(_0x487da9===_0x2465f3)break;else _0x1a3cb1['push'](_0x1a3cb1['shift']());}catch(_0xc6308a){_0x1a3cb1['push'](_0x1a3cb1['shift']());}}}(a30_0x17f6,0xb43fc));const requestSpy=require('../../../helpers/request-spy'),constants=require(a30_0x459af9(0x13a)),{addRequestSpy}=require(a30_0x459af9(0x144));exports[a30_0x459af9(0x13b)]={'beforeAll'(){const _0x460c91={'AvAuQ':function(_0x4ca872){return _0x4ca872();}},_0x43b099='browserstack internal helper hook';_0x460c91['AvAuQ'](addRequestSpy);},'afterAll'(){const _0x33dc9f=a30_0x459af9,_0x42174c='browserstack internal helper hook';this[_0x33dc9f(0x13f)](0xea60),requestSpy['restore']();}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a31_0xf0def=a31_0x5ccb;(function(_0x902dda,_0x455612){const _0x35e0a5=a31_0x5ccb,_0x5958ef=_0x902dda();while(!![]){try{const _0x39d208=-parseInt(_0x35e0a5(0x142))/0x1*(parseInt(_0x35e0a5(0x145))/0x2)+parseInt(_0x35e0a5(0x121))/0x3+parseInt(_0x35e0a5(0x135))/0x4*(parseInt(_0x35e0a5(0x160))/0x5)+-parseInt(_0x35e0a5(0x130))/0x6*(-parseInt(_0x35e0a5(0x133))/0x7)+-parseInt(_0x35e0a5(0x11f))/0x8*(parseInt(_0x35e0a5(0x115))/0x9)+parseInt(_0x35e0a5(0x111))/0xa+parseInt(_0x35e0a5(0x15e))/0xb*(-parseInt(_0x35e0a5(0x112))/0xc);if(_0x39d208===_0x455612)break;else _0x5958ef['push'](_0x5958ef['shift']());}catch(_0x47c2a3){_0x5958ef['push'](_0x5958ef['shift']());}}}(a31_0x34ea,0xe5044));function a31_0x5ccb(_0x2ae9f1,_0x1e6d7a){const _0x34ea04=a31_0x34ea();return a31_0x5ccb=function(_0x5ccbfc,_0x4f9d5e){_0x5ccbfc=_0x5ccbfc-0x10c;let _0x505423=_0x34ea04[_0x5ccbfc];return _0x505423;},a31_0x5ccb(_0x2ae9f1,_0x1e6d7a);}function a31_0x34ea(){const _0x1fa4f7=['getCapabilities','WOMFi','js-','NPEwV','../../utils/logPatcher','eYKLr','KKzDO','sendPlatformDetails','getBrowserVersion','concat','split','Ykgvt','push','toJSON','_afterEach','RMMdV','passed','88pJCBgV','getHookDetails','4561525YNDlXe','map_','tfihj','hook','_beforeEach','app','14938050nbCCpZ','4600656lfJcxH','emit','HnUFx','3586653lUYkDq','getBrowserName','PSzzL','../../../helpers/test-observability/utils','state','keys','xAVzW','BGkHw','filter','__cloud_provider___','24UVgJeE','markedStatus','4569120tlGXNh','parent','_beforeAll','vBCLL','yEpus','getPlatform','thqcy','VJxwk','substring','app-automate','../../../helpers/testhub/utils','TEST_PLATFORM','pending','mCUiC','hmwIU','18XnDqOo','uuid','mapTestHooks','4155746ryWPOb','toISOString','4VZKSRE','indexOf','getHookSkippedTests','OgpjN','getHooksForTest','automate','vrbnY','forEach','failed','string','LQkns','ZlQcZ','slice','509477kXjITi','getTestEnv','YnnSO','2TWanaK','mfOfR','bgraj','type','lfDLj','pYWkc','hookAnalyticsId','BbZlS'];a31_0x34ea=function(){return _0x1fa4f7;};return a31_0x34ea();}const {v4:uuidv4}=require(a31_0xf0def(0x131)),{name,version}=require('../../../../package.json'),logPatcher=require(a31_0xf0def(0x151)),BSTestOpsPatcher=new logPatcher({}),{debug,isInternalHook}=require(a31_0xf0def(0x118)),{consoleHolder}=require('../../../helpers/test-observability/constants'),{getPlatformVersion}=require('../../../helpers/helper'),{shouldProcessEventForTesthub}=require(a31_0xf0def(0x12b));console={},Object[a31_0xf0def(0x11a)](consoleHolder)['forEach'](_0x2c71c5=>{console[_0x2c71c5]=(..._0x3ee6c8)=>{BSTestOpsPatcher[_0x2c71c5](..._0x3ee6c8);};}),exports[a31_0xf0def(0x143)]=()=>{const _0x44e6f6=a31_0xf0def,_0x33ba18={'bgraj':'generic','LQkns':function(_0x30be6b){return _0x30be6b();}};return{'ci':_0x33ba18[_0x44e6f6(0x147)],'key':_0x33ba18[_0x44e6f6(0x13f)](uuidv4),'version':version,'collector':_0x44e6f6(0x14f)+name};},exports[a31_0xf0def(0x15f)]=_0x443ce2=>{const _0x411c7d=a31_0xf0def,_0x13bf3e={};_0x13bf3e[_0x411c7d(0x114)]=function(_0xa2d744,_0x1efaaa){return _0xa2d744!==_0x1efaaa;},_0x13bf3e[_0x411c7d(0x124)]=_0x411c7d(0x13e),_0x13bf3e[_0x411c7d(0x140)]='hook:',_0x13bf3e[_0x411c7d(0x150)]=_0x411c7d(0x10e);const _0x5bbcdf=_0x13bf3e;if(!_0x443ce2||_0x5bbcdf[_0x411c7d(0x114)](typeof _0x443ce2,_0x5bbcdf[_0x411c7d(0x124)]))return[null,null];if(_0x5bbcdf[_0x411c7d(0x114)](_0x443ce2[_0x411c7d(0x136)](_0x5bbcdf[_0x411c7d(0x140)]),-0x1)){const _0x2dcc40=_0x443ce2[_0x411c7d(0x157)](_0x5bbcdf['ZlQcZ']);return[_0x2dcc40[0x0][_0x411c7d(0x141)](0x0,-0x1)['split']('\x22')[0x1],_0x2dcc40[0x1][_0x411c7d(0x129)](0x1)];}else{if(_0x5bbcdf[_0x411c7d(0x114)](_0x443ce2[_0x411c7d(0x136)](_0x5bbcdf[_0x411c7d(0x150)]),-0x1)){const _0xaa4e21=_0x443ce2[_0x411c7d(0x157)](_0x5bbcdf[_0x411c7d(0x150)]);return[_0xaa4e21[0x0][_0x411c7d(0x141)](0x0,-0x1)['split']('\x22')[0x1],_0x443ce2];}}return[null,null];},exports[a31_0xf0def(0x139)]=_0x4083da=>{const _0x1d8183=a31_0xf0def,_0x3f18a6={'yEpus':function(_0x5da08d,_0x584ef5){return _0x5da08d(_0x584ef5);},'xAVzW':_0x1d8183(0x123),'kALrY':'_afterAll','vrbnY':_0x1d8183(0x10f),'VJxwk':'_afterEach'};if(!_0x4083da||!_0x4083da['parent'])return[];const _0xc74e48=[];return[_0x3f18a6[_0x1d8183(0x11b)],_0x3f18a6['kALrY'],_0x3f18a6[_0x1d8183(0x13b)],_0x3f18a6[_0x1d8183(0x128)]][_0x1d8183(0x13c)](_0x43713e=>{const _0x58f262=_0x1d8183,_0x24b11a=_0x4083da[_0x58f262(0x122)][_0x43713e]||[];_0x24b11a[_0x58f262(0x13c)](_0x1e9daa=>{const _0x29f366=_0x58f262;_0x1e9daa[_0x29f366(0x14b)]&&!_0x3f18a6[_0x29f366(0x125)](isInternalHook,_0x1e9daa['fn'])&&_0xc74e48[_0x29f366(0x159)](_0x1e9daa[_0x29f366(0x14b)]);});}),[..._0xc74e48,...exports[_0x1d8183(0x139)](_0x4083da[_0x1d8183(0x122)])];},exports[a31_0xf0def(0x132)]=_0x32b643=>{const _0x2a7605=a31_0xf0def,_0x47e7eb={'pYWkc':function(_0x45bd1d){return _0x45bd1d();},'mfOfR':function(_0x716ddd,_0x3c0ac7){return _0x716ddd===_0x3c0ac7;},'tfihj':_0x2a7605(0x15b),'RMMdV':_0x2a7605(0x123),'Ykgvt':'_afterAll','zQFlK':_0x2a7605(0x10f)};if(!_0x32b643||!_0x32b643[_0x2a7605(0x122)])return;[_0x47e7eb[_0x2a7605(0x15c)],_0x47e7eb[_0x2a7605(0x158)],_0x47e7eb['zQFlK'],_0x47e7eb['tfihj']][_0x2a7605(0x13c)](_0x49f4ef=>{const _0x18184b=_0x2a7605,_0x5513e9=_0x32b643[_0x18184b(0x122)][_0x49f4ef]||[];_0x5513e9['forEach'](_0x5178ee=>{const _0x567464=_0x18184b;if(!_0x5178ee[_0x567464(0x14b)])_0x5178ee['hookAnalyticsId']=_0x47e7eb[_0x567464(0x14a)](uuidv4);else _0x5178ee[_0x567464(0x120)]&&_0x47e7eb[_0x567464(0x146)](_0x49f4ef,_0x47e7eb[_0x567464(0x10d)])&&(_0x5178ee[_0x567464(0x14b)]=_0x47e7eb['pYWkc'](uuidv4),delete _0x5178ee[_0x567464(0x120)]);});}),exports[_0x2a7605(0x132)](_0x32b643[_0x2a7605(0x122)]);},exports[a31_0xf0def(0x154)]=async(_0x1be29f,_0x52ebf4)=>{const _0x4f7117=a31_0xf0def,_0x3640d0={'PSzzL':function(_0x4e5f97){return _0x4e5f97();},'OgpjN':function(_0xfada6a,_0x35b635){return _0xfada6a===_0x35b635;},'YnnSO':'browserstack','thqcy':'appium:app','lfDLj':_0x4f7117(0x110),'DSqmy':_0x4f7117(0x12a),'mCUiC':_0x4f7117(0x13a),'WOMFi':function(_0x3a2213,_0x2c1879){return _0x3a2213(_0x2c1879);},'PgDkw':'unknown_grid','hmwIU':_0x4f7117(0x12c)};try{if(!_0x3640d0[_0x4f7117(0x117)](shouldProcessEventForTesthub))return;const _0xa1ee22=await _0x1be29f[_0x4f7117(0x14d)](),_0x15647a=await _0x1be29f['getSession'](),_0x57746c={},_0x1b148d=Object['fromEntries'](_0x15647a['getCapabilities']()[_0x4f7117(0x10c)]),_0x20952c={'product':_0x3640d0[_0x4f7117(0x138)](global[_0x4f7117(0x11e)],_0x3640d0['YnnSO'])?_0x1b148d[_0x3640d0[_0x4f7117(0x127)]]||_0x1b148d[_0x3640d0[_0x4f7117(0x149)]]?_0x3640d0['DSqmy']:_0x3640d0[_0x4f7117(0x12e)]:null,'capabilities':_0x1b148d,'platform':_0xa1ee22[_0x4f7117(0x126)](),'platform_version':_0x3640d0[_0x4f7117(0x14e)](getPlatformVersion,_0x3640d0['OgpjN'](global[_0x4f7117(0x11e)],_0x3640d0[_0x4f7117(0x144)])),'browser':_0xa1ee22[_0x4f7117(0x116)](),'browser_version':_0xa1ee22[_0x4f7117(0x155)](),'session_id':_0x15647a[_0x4f7117(0x15a)]()};global[_0x4f7117(0x11e)]?_0x57746c[global['__cloud_provider___']]=_0x20952c:_0x57746c[_0x3640d0['PgDkw']]=_0x20952c,process[_0x4f7117(0x113)]('bs:addPlatformDetails:'+process['pid'],{'timestamp':new Date()[_0x4f7117(0x134)](),'level':null,'message':null,'kind':_0x3640d0[_0x4f7117(0x12f)],'http_response':_0x57746c,'uuid':_0x52ebf4});}catch(_0x32f4b2){_0x3640d0[_0x4f7117(0x14e)](debug,'Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20'+_0x32f4b2);}},exports[a31_0xf0def(0x137)]=_0x3379b3=>{const _0x4cf692=a31_0xf0def,_0x5e4972={};_0x5e4972[_0x4cf692(0x152)]=function(_0x36082e,_0x604495){return _0x36082e!==_0x604495;},_0x5e4972[_0x4cf692(0x153)]='hook',_0x5e4972[_0x4cf692(0x11c)]=_0x4cf692(0x15d),_0x5e4972[_0x4cf692(0x14c)]=_0x4cf692(0x13d);const _0x5e1b89=_0x5e4972,_0x223dbe=_0x3379b3['suites']['reduce']((_0x181aad,_0x1b24f1)=>{const _0x195a2c=_0x4cf692,_0x270200=exports[_0x195a2c(0x137)](_0x1b24f1);return _0x270200&&(_0x181aad=_0x181aad['concat'](_0x270200)),_0x181aad;},[]),_0x4ed2c3=_0x3379b3['tests'][_0x4cf692(0x11d)](_0x27a301=>{const _0xd18bfa=_0x4cf692,_0x4044f5=_0x5e1b89[_0xd18bfa(0x152)](_0x27a301[_0xd18bfa(0x148)],_0x5e1b89[_0xd18bfa(0x153)])&&!_0x27a301[_0xd18bfa(0x120)]&&_0x5e1b89[_0xd18bfa(0x152)](_0x27a301[_0xd18bfa(0x119)],_0x5e1b89[_0xd18bfa(0x11c)])&&_0x5e1b89['eYKLr'](_0x27a301[_0xd18bfa(0x119)],_0x5e1b89[_0xd18bfa(0x14c)])&&!_0x27a301[_0xd18bfa(0x12d)];return _0x4044f5;});return _0x4ed2c3[_0x4cf692(0x156)](_0x223dbe);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a32_0x59e4(_0x5c0ad6,_0x24f3b0){const _0x123780=a32_0x1237();return a32_0x59e4=function(_0x59e440,_0x1b11ea){_0x59e440=_0x59e440-0x1c0;let _0x1c015a=_0x123780[_0x59e440];return _0x1c015a;},a32_0x59e4(_0x5c0ad6,_0x24f3b0);}const a32_0x20d873=a32_0x59e4;(function(_0x437fd4,_0x32a73b){const _0x5e4b71=a32_0x59e4,_0x18e708=_0x437fd4();while(!![]){try{const _0x59daa1=parseInt(_0x5e4b71(0x227))/0x1*(-parseInt(_0x5e4b71(0x20b))/0x2)+-parseInt(_0x5e4b71(0x222))/0x3+parseInt(_0x5e4b71(0x200))/0x4*(parseInt(_0x5e4b71(0x1f0))/0x5)+-parseInt(_0x5e4b71(0x1d7))/0x6+-parseInt(_0x5e4b71(0x22d))/0x7+-parseInt(_0x5e4b71(0x1d6))/0x8+parseInt(_0x5e4b71(0x1c0))/0x9*(parseInt(_0x5e4b71(0x1ed))/0xa);if(_0x59daa1===_0x32a73b)break;else _0x18e708['push'](_0x18e708['shift']());}catch(_0x55daa1){_0x18e708['push'](_0x18e708['shift']());}}}(a32_0x1237,0xbe5a5));function a32_0x1237(){const _0x19e50f=['browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','__error_messages__','fFgfT','2488367TubMIN','err','isAccessibilityPlatform','setGlobal','percyCaptureMode','hdBND','ObservabilitySync:','titlePath','nCejY','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','cLMyj','711zRjWEz','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','Automate\x20test\x20case\x20execution\x20has\x20started.','then','Failed:\x20','browserstackSessionName','failed','cXbcp','thBuildUuid','QMHTa','\x20|\x20','dpSmx','SXuQl','pCNmn','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','passed','ENV_VAR','currentTest','debug','IvOKy','../../helpers/testhub/utils','shift','2114424wOmSeO','5293974jIXstN','oqThY','saveTestResults','env','getGlobal','accessibilityScanStarted','Failed\x20to\x20store\x20session\x20name:\x20','../../helpers/accessibility-automation/scripts','Srhud','testAnalyticsId','xgiXo','percy','performScan','\x20-\x20','TKxlK','../../helpers/testhub/constants','UmWAH','pJFEa','\x22}}','quitCount_','testcase','bstackA11yShouldScan','335870eWcWsH','RkaSt','Awimu','5xitsGI','capabilities','lJTCR','app','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','kYytw','yrSJm','length','initQuit','isArray','join','SyeqY','timeout','message','yqFOb','https:','3884612TxowRl','executeAsyncScript','shouldScanTestForAccessibility','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','vTofu','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','util','protocol','error','tmKhG','ufFFy','22oWSVSY','BBbjd','thJwtToken','thTestRunUuid','fqSEG','eUaFI','stringify','aNdXT','session_','Performing\x20scan\x20before\x20saving\x20results','info','__sessionFailed','xBeKb','ixsxm','__skipSessionName','winstonLogger','BROWSERSTACK_TESTHUB_JWT','BROWSERSTACK_TESTHUB_UUID','format','qHNXx','../../helpers/globals','__drivers','fgPDg','2459397eWOOSc',',\x22level\x22:\x20\x22','.\x20Error\x20:','kJvti','driverCleanup','47539gVglAw','startMonitoring','vqEnm'];a32_0x1237=function(){return _0x19e50f;};return a32_0x1237();}const util=require(a32_0x20d873(0x206)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require('../../helpers/accessibility-automation/helper'),{percyAutoCapture}=require('../../helpers/percy/utils'),{sendPlatformDetails}=require('./test-observability/mochaUtils'),{isBrowserstackInfra,markSessionStatus}=require('../../helpers/helper'),PerformanceTester=require('../../helpers/performance-tester'),scripts=require(a32_0x20d873(0x1de)),globals=require(a32_0x20d873(0x21f)),logger=require('../../helpers/logger')[a32_0x20d873(0x21a)],{shouldProcessEventForTesthub}=require(a32_0x20d873(0x1d4)),testHubConstants=require(a32_0x20d873(0x1e6));exports['mochaHooks']={'beforeAll'(){const _0x1f1588=a32_0x20d873,_0x51a0e5={'QMHTa':function(_0x4f5eb7,_0xaa5e4f,_0x4a4e0d,_0x54a830){return _0x4f5eb7(_0xaa5e4f,_0x4a4e0d,_0x54a830);},'TGMCQ':_0x1f1588(0x1c6),'pCNmn':_0x1f1588(0x1ca),'hdBND':function(_0x29965f,_0x5002f5,_0x3e233a){return _0x29965f(_0x5002f5,_0x3e233a);},'tmKhG':_0x1f1588(0x1cf),'EdZei':function(_0x1a3d20){return _0x1a3d20();},'IXyaY':function(_0x582625,_0x24d2dd,_0x29d844){return _0x582625(_0x24d2dd,_0x29d844);}};PerformanceTester[_0x1f1588(0x228)]();const _0x542acf='browserstack internal helper hook';global[_0x1f1588(0x22b)]=[],global['__sessionFailed']=![],global[_0x1f1588(0x226)]=async()=>{const _0x286f93=_0x1f1588;let _0x54073d=![];try{await global[_0x286f93(0x220)][0x0][_0x286f93(0x213)],_0x54073d=!![],global['__sessionFailed']?await _0x51a0e5[_0x286f93(0x1c9)](markSessionStatus,global[_0x286f93(0x220)][0x0],_0x51a0e5['TGMCQ'],global[_0x286f93(0x22b)][_0x286f93(0x1fa)](_0x51a0e5[_0x286f93(0x1cd)])):await _0x51a0e5[_0x286f93(0x232)](markSessionStatus,global['__drivers'][0x0],_0x51a0e5[_0x286f93(0x209)]);}catch(_0x26b915){}global[_0x286f93(0x22b)]=[],global[_0x286f93(0x216)]=![];if(_0x54073d)try{try{_0x51a0e5['EdZei'](shouldProcessEventForTesthub)&&(global[_0x286f93(0x220)][0x0]&&await _0x51a0e5['IXyaY'](sendPlatformDetails,global[_0x286f93(0x220)][0x0],this[_0x286f93(0x1d1)]?this[_0x286f93(0x1d1)][_0x286f93(0x1e0)]:null));}catch{}await global[_0x286f93(0x220)][0x0][_0x286f93(0x1f8)]();}catch(_0x147ff2){}};},'beforeEach'(_0x415d55){const _0x5bb145=a32_0x20d873,_0x5938e5={'ReDCE':function(_0x4ffa8e,_0x454d65){return _0x4ffa8e>_0x454d65;},'xHqYj':function(_0xb5a96a,_0x1b4fe4){return _0xb5a96a>_0x1b4fe4;},'BBbjd':_0x5bb145(0x1e4),'fgPDg':function(_0x5062c1,_0x1db8a1,_0x4345e2){return _0x5062c1(_0x1db8a1,_0x4345e2);},'yqFOb':_0x5bb145(0x1ec),'lJTCR':function(_0x1821ad){return _0x1821ad();},'ixsxm':function(_0x499b24,_0x101ba7){return _0x499b24>_0x101ba7;},'kYytw':_0x5bb145(0x22f),'vqEnm':function(_0x5a2410,_0x5bbb58){return _0x5a2410===_0x5bbb58;},'VXSkM':'http:','PwFVQ':_0x5bb145(0x1ff),'yrSJm':_0x5bb145(0x236),'cXbcp':_0x5bb145(0x1c2),'kJvti':function(_0x4a3fb9){return _0x4a3fb9();}};new Promise(async _0x5111be=>{const _0x39fff7=_0x5bb145,_0x2a486d='browserstack internal helper hook';let _0x32bcba=!![];try{_0x5938e5['ReDCE'](global[_0x39fff7(0x220)][_0x39fff7(0x1f7)],0x1)&&(await global['driverCleanup'](),global[_0x39fff7(0x220)][_0x39fff7(0x1d5)]()),_0x5938e5['xHqYj'](global[_0x39fff7(0x220)][0x0][_0x39fff7(0x1ea)],0x0)&&(_0x32bcba=![],await global['driverCleanup']());}catch{}try{Array['isArray'](global[_0x39fff7(0x220)])&&global[_0x39fff7(0x220)][0x0]&&(global['__drivers'][0x0][_0x39fff7(0x1c5)]=this[_0x39fff7(0x1d1)][_0x39fff7(0x234)]()[_0x39fff7(0x1fa)](_0x5938e5[_0x39fff7(0x20c)])),global[_0x39fff7(0x1c5)]=this['currentTest']['titlePath']()[_0x39fff7(0x1fa)](_0x5938e5[_0x39fff7(0x20c)]);}catch(_0x4d7857){logger[_0x39fff7(0x1d2)](_0x39fff7(0x1dd)+_0x4d7857);}this['currentTest'][_0x39fff7(0x202)]=_0x5938e5[_0x39fff7(0x221)](shouldScanTestForAccessibility,this[_0x39fff7(0x1d1)][_0x39fff7(0x234)](),!![]),globals[_0x39fff7(0x230)](_0x5938e5[_0x39fff7(0x1fe)],this[_0x39fff7(0x1d1)][_0x39fff7(0x202)]),this[_0x39fff7(0x1d1)]['accessibilityScanStarted']=!![];if(_0x5938e5[_0x39fff7(0x1f2)](isAccessibilityAutomationSession)&&_0x32bcba&&Array[_0x39fff7(0x1f9)](global[_0x39fff7(0x220)])&&_0x5938e5[_0x39fff7(0x218)](global[_0x39fff7(0x220)]['length'],0x0)&&globals[_0x39fff7(0x1db)](_0x5938e5[_0x39fff7(0x1f5)]))try{const _0x417bab=await global['__drivers'][0x0][_0x39fff7(0x213)];if(_0x417bab){let _0x131c2c=!![];const _0x430405=await global['__drivers'][0x0]['getCurrentUrl']();let _0x2cdbb5;try{_0x2cdbb5=new URL(_0x430405);}catch(_0x4b79e0){_0x131c2c=![];}_0x131c2c=_0x5938e5[_0x39fff7(0x229)](_0x2cdbb5[_0x39fff7(0x207)],_0x5938e5['VXSkM'])||_0x5938e5[_0x39fff7(0x229)](_0x2cdbb5[_0x39fff7(0x207)],_0x5938e5['PwFVQ']),_0x131c2c&&(this['currentTest']['shouldScanTestForAccessibility']&&logger['info'](_0x5938e5[_0x39fff7(0x1f6)])),this['currentTest'][_0x39fff7(0x1dc)]=this['currentTest'][_0x39fff7(0x202)],this[_0x39fff7(0x1d1)][_0x39fff7(0x202)]&&logger[_0x39fff7(0x215)](_0x5938e5[_0x39fff7(0x1c7)]);}}catch(_0x875ee8){logger[_0x39fff7(0x208)]('Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20'+util[_0x39fff7(0x21d)](_0x875ee8));}_0x5938e5[_0x39fff7(0x225)](_0x5111be);})[_0x5bb145(0x1c3)](_0x415d55);},'afterEach'(_0x141b7a){const _0x2ec762=a32_0x20d873,_0xf9fa3f={'cLMyj':function(_0x48f90c,_0x5080eb){return _0x48f90c>_0x5080eb;},'aNdXT':function(_0x4991d7,_0x309192){return _0x4991d7===_0x309192;},'pJFEa':_0x2ec762(0x1eb),'xgiXo':'appium:app','IvOKy':function(_0x1982c0,_0x121fb2,_0x436f8c,_0x44fde9){return _0x1982c0(_0x121fb2,_0x436f8c,_0x44fde9);},'Srhud':_0x2ec762(0x1e4),'eUaFI':function(_0x505ef5,_0x2fc2d0){return _0x505ef5!==_0x2fc2d0;},'DqafA':_0x2ec762(0x1cf),'RkaSt':function(_0x2393d8,_0x261371,_0x1f01f9){return _0x2393d8(_0x261371,_0x1f01f9);},'fFgfT':function(_0xb423fa,_0x386a1d){return _0xb423fa+_0x386a1d;},'Awimu':_0x2ec762(0x1c4),'vTofu':'error','dpSmx':function(_0x247b5b,_0xd867bc,_0x5ea7cd){return _0x247b5b(_0xd867bc,_0x5ea7cd);},'SyeqY':'Passed','ufFFy':'info','xBeKb':_0x2ec762(0x22f),'oqThY':'bstackA11yShouldScan','TKxlK':_0x2ec762(0x1ce),'nCejY':_0x2ec762(0x214),'rNUay':_0x2ec762(0x205),'qHNXx':function(_0x473a59){return _0x473a59();},'jHwRz':function(_0x2be0fc){return _0x2be0fc();},'fqSEG':function(_0x3de5e9,_0x40a3d7,_0x476705){return _0x3de5e9(_0x40a3d7,_0x476705);},'UmWAH':_0x2ec762(0x1d2)},_0x5b6a5c='browserstack internal helper hook';this[_0x2ec762(0x1fc)](0xfde8);const _0xd25f5=async(_0x5b9ab8,_0x22deae)=>{const _0x296f45=_0x2ec762;await global[_0x296f45(0x220)][0x0]['executeScript'](_0x296f45(0x22a)+_0x5b9ab8+_0x296f45(0x223)+_0x22deae+_0x296f45(0x1e9));};new Promise(async _0x547cfd=>{const _0x530520=_0x2ec762;try{_0xf9fa3f['cLMyj'](global[_0x530520(0x220)][_0x530520(0x1f7)],0x1)&&(await global['driverCleanup'](),global[_0x530520(0x220)]['shift'](),global[_0x530520(0x22b)]=[],global[_0x530520(0x216)]=![]);try{if(global[_0x530520(0x1e2)]&&_0xf9fa3f[_0x530520(0x212)](global[_0x530520(0x231)],_0xf9fa3f[_0x530520(0x1e8)])&&global[_0x530520(0x220)][0x0]){const _0x24a7ea=_0xf9fa3f[_0x530520(0x237)](global[_0x530520(0x1f1)][_0x530520(0x1f7)],0x0)?!!global[_0x530520(0x1f1)][0x0]['app']||!!global[_0x530520(0x1f1)][0x0][_0xf9fa3f[_0x530520(0x1e1)]]:![],_0x23367a={};_0x23367a[_0x530520(0x1f3)]=_0x24a7ea,await _0xf9fa3f[_0x530520(0x1d3)](percyAutoCapture,global['__drivers'][0x0],_0xf9fa3f[_0x530520(0x1e8)],_0x23367a);}}catch(_0x582bd1){}!global[_0x530520(0x219)]&&(await global[_0x530520(0x220)][0x0]['executeScript'](_0x530520(0x203)+JSON[_0x530520(0x211)](this['currentTest']['titlePath']()[_0x530520(0x1fa)](_0xf9fa3f[_0x530520(0x1df)]))+'}}'),global[_0x530520(0x220)][0x0]['sessionNameSet__']=!![]);const _0x567734=_0xf9fa3f[_0x530520(0x210)](this[_0x530520(0x1d1)]['state'],_0xf9fa3f['DqafA']);_0x567734?(global['__sessionFailed']=!![],global[_0x530520(0x22b)]['push'](this[_0x530520(0x1d1)][_0x530520(0x22e)]['message']),await _0xf9fa3f['RkaSt'](_0xd25f5,JSON[_0x530520(0x211)](_0xf9fa3f[_0x530520(0x22c)](_0xf9fa3f[_0x530520(0x1ef)],this[_0x530520(0x1d1)][_0x530520(0x22e)][_0x530520(0x1fd)])),_0xf9fa3f[_0x530520(0x204)])):await _0xf9fa3f[_0x530520(0x1cb)](_0xd25f5,JSON['stringify'](_0xf9fa3f[_0x530520(0x1fb)]),_0xf9fa3f[_0x530520(0x20a)]);}catch(_0x4d5f86){}try{if(this[_0x530520(0x1d1)][_0x530520(0x1dc)]&&globals[_0x530520(0x1db)](_0xf9fa3f[_0x530520(0x217)])&&globals[_0x530520(0x1db)](_0xf9fa3f[_0x530520(0x1d8)])){logger[_0x530520(0x215)](_0xf9fa3f[_0x530520(0x1e5)]);const _0x42c30b={};_0x42c30b[_0x530520(0x20e)]=this['currentTest']['testAnalyticsId'],_0x42c30b[_0x530520(0x1c8)]=process[_0x530520(0x1da)][testHubConstants[_0x530520(0x1d0)][_0x530520(0x21c)]],_0x42c30b[_0x530520(0x20d)]=process[_0x530520(0x1da)][testHubConstants[_0x530520(0x1d0)][_0x530520(0x21b)]];const _0xb87ef1=_0x42c30b;logger['debug'](_0x530520(0x1f4)+JSON[_0x530520(0x211)](_0xb87ef1)),logger['debug'](_0xf9fa3f[_0x530520(0x235)]),logger[_0x530520(0x1d2)](util[_0x530520(0x21d)](await global['__drivers'][0x0][_0x530520(0x201)](scripts[_0x530520(0x1e3)],{'method':global[_0x530520(0x1c5)]}))),await global[_0x530520(0x220)][0x0][_0x530520(0x201)](scripts[_0x530520(0x1d9)],_0xb87ef1),logger[_0x530520(0x215)](_0xf9fa3f['rNUay']);}}catch(_0x4d097e){logger[_0x530520(0x208)](_0x530520(0x1c1)+this[_0x530520(0x1d1)][_0x530520(0x234)]()+_0x530520(0x224),_0x4d097e);}try{try{if(_0xf9fa3f[_0x530520(0x21e)](shouldProcessEventForTesthub)){global[_0x530520(0x220)][0x0]&&await _0xf9fa3f[_0x530520(0x1ee)](sendPlatformDetails,global['__drivers'][0x0],this[_0x530520(0x1d1)]?this[_0x530520(0x1d1)][_0x530520(0x1e0)]:null);if(_0xf9fa3f['jHwRz'](isBrowserstackInfra)){const _0x4f1a6e=_0x530520(0x233)+Date['now']();await _0xf9fa3f[_0x530520(0x20f)](_0xd25f5,JSON[_0x530520(0x211)](_0x4f1a6e),_0xf9fa3f[_0x530520(0x1e7)]);}}}catch{}_0xf9fa3f['cLMyj'](global['__drivers'][0x0]['quitCount_'],0x0)&&await global[_0x530520(0x226)]();}catch(_0x13e114){}_0xf9fa3f['jHwRz'](_0x547cfd);})[_0x2ec762(0x1c3)](()=>_0x141b7a());},'afterAll'(_0x52df2d){const _0x5406cd=a32_0x20d873,_0x3bc10d={'SXuQl':function(_0x6d4a27){return _0x6d4a27();}},_0x2c39a2='browserstack internal helper hook';this['timeout'](0xfde8),new Promise(async _0x80451b=>{const _0x4a0581=a32_0x59e4;PerformanceTester['stopMonitoring'](),await global[_0x4a0581(0x226)](),_0x3bc10d[_0x4a0581(0x1cc)](_0x80451b);})[_0x5406cd(0x1c3)](()=>_0x52df2d());}};
|
|
1
|
+
const a32_0x293b19=a32_0x2f8a;(function(_0x13bb6f,_0x413585){const _0x28dd35=a32_0x2f8a,_0x111e0a=_0x13bb6f();while(!![]){try{const _0xa649f7=parseInt(_0x28dd35(0x10e))/0x1*(parseInt(_0x28dd35(0x109))/0x2)+-parseInt(_0x28dd35(0xfa))/0x3*(parseInt(_0x28dd35(0x112))/0x4)+parseInt(_0x28dd35(0x124))/0x5*(-parseInt(_0x28dd35(0x12f))/0x6)+parseInt(_0x28dd35(0x135))/0x7+parseInt(_0x28dd35(0xd5))/0x8*(parseInt(_0x28dd35(0xea))/0x9)+-parseInt(_0x28dd35(0xd3))/0xa*(parseInt(_0x28dd35(0xc9))/0xb)+parseInt(_0x28dd35(0xca))/0xc*(-parseInt(_0x28dd35(0xcd))/0xd);if(_0xa649f7===_0x413585)break;else _0x111e0a['push'](_0x111e0a['shift']());}catch(_0x25e710){_0x111e0a['push'](_0x111e0a['shift']());}}}(a32_0x3cbf,0xe4ca7));const util=require(a32_0x293b19(0x122)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a32_0x293b19(0x140)),{percyAutoCapture}=require(a32_0x293b19(0x102)),{sendPlatformDetails}=require(a32_0x293b19(0xec)),{isBrowserstackInfra,markSessionStatus}=require(a32_0x293b19(0x141)),PerformanceTester=require(a32_0x293b19(0x11d)),scripts=require(a32_0x293b19(0xd8)),globals=require(a32_0x293b19(0xef)),logger=require(a32_0x293b19(0xeb))['winstonLogger'],{shouldProcessEventForTesthub}=require(a32_0x293b19(0x116)),testHubConstants=require('../../helpers/testhub/constants');exports[a32_0x293b19(0x10c)]={'beforeAll'(){const _0x421ca1=a32_0x293b19,_0x570197={'DjTBm':function(_0x5ce2af,_0x42434e,_0xadb413,_0xd56836){return _0x5ce2af(_0x42434e,_0xadb413,_0xd56836);},'hQXlx':'failed','DshzS':_0x421ca1(0xe5),'jjKQZ':function(_0xe8da88,_0x576398,_0xc5bec2){return _0xe8da88(_0x576398,_0xc5bec2);},'qSWqr':_0x421ca1(0x11c),'eefQj':function(_0x526291){return _0x526291();}};PerformanceTester[_0x421ca1(0x111)]();const _0x473c17='browserstack internal helper hook';global[_0x421ca1(0xf2)]=[],global[_0x421ca1(0x12c)]=![],global['driverCleanup']=async()=>{const _0x42364f=_0x421ca1;let _0x300e00=![];try{await global[_0x42364f(0xf1)][0x0]['session_'],_0x300e00=!![],global[_0x42364f(0x12c)]?await _0x570197[_0x42364f(0xc7)](markSessionStatus,global['__drivers'][0x0],_0x570197[_0x42364f(0xff)],global['__error_messages__'][_0x42364f(0x10b)](_0x570197['DshzS'])):await _0x570197[_0x42364f(0xf9)](markSessionStatus,global[_0x42364f(0xf1)][0x0],_0x570197[_0x42364f(0xf7)]);}catch(_0x2a97e1){}global['__error_messages__']=[],global['__sessionFailed']=![];if(_0x300e00)try{try{_0x570197[_0x42364f(0xfd)](shouldProcessEventForTesthub)&&(global[_0x42364f(0xf1)][0x0]&&await _0x570197[_0x42364f(0xf9)](sendPlatformDetails,global[_0x42364f(0xf1)][0x0],this[_0x42364f(0xd1)]?this['currentTest'][_0x42364f(0xc5)]:null));}catch{}await global[_0x42364f(0xf1)][0x0][_0x42364f(0xd9)]();}catch(_0x1c21a0){}};},'beforeEach'(_0x30cdf5){const _0x93f279=a32_0x293b19,_0x91c444={'PXTMo':function(_0x78009a,_0x49d2d6){return _0x78009a>_0x49d2d6;},'HbrYW':function(_0x2f840c,_0x255f7d){return _0x2f840c>_0x255f7d;},'qtXUH':_0x93f279(0x13e),'lQEXW':function(_0x2be921,_0x3b7dcc,_0x218886){return _0x2be921(_0x3b7dcc,_0x218886);},'ZsoFn':_0x93f279(0x13a),'iPrCk':function(_0x11891e){return _0x11891e();},'eqZIo':_0x93f279(0x138),'cQxrO':function(_0x12d5bd,_0x8c63e6){return _0x12d5bd===_0x8c63e6;},'dhqgz':_0x93f279(0x13b),'touTF':function(_0xfc5297,_0x262c02){return _0xfc5297===_0x262c02;},'QeSKO':_0x93f279(0xe6),'PlyrT':_0x93f279(0x134),'HgvEQ':_0x93f279(0xd2)};new Promise(async _0x23e8ba=>{const _0x53ea88=_0x93f279,_0x2c5573='browserstack internal helper hook';let _0xf6ca0e=!![];try{_0x91c444[_0x53ea88(0x108)](global[_0x53ea88(0xf1)]['length'],0x1)&&(await global[_0x53ea88(0x129)](),global[_0x53ea88(0xf1)][_0x53ea88(0x137)]()),_0x91c444[_0x53ea88(0xed)](global[_0x53ea88(0xf1)][0x0][_0x53ea88(0x103)],0x0)&&(_0xf6ca0e=![],await global['driverCleanup']());}catch{}try{Array[_0x53ea88(0x12d)](global[_0x53ea88(0xf1)])&&global[_0x53ea88(0xf1)][0x0]&&(global[_0x53ea88(0xf1)][0x0]['browserstackSessionName']=this[_0x53ea88(0xd1)][_0x53ea88(0x11e)]()[_0x53ea88(0x10b)](_0x91c444[_0x53ea88(0x132)])),global[_0x53ea88(0xd0)]=this[_0x53ea88(0xd1)]['titlePath']()['join'](_0x91c444[_0x53ea88(0x132)]);}catch(_0x795a96){logger['debug'](_0x53ea88(0x11a)+_0x795a96);}this[_0x53ea88(0xd1)][_0x53ea88(0xfe)]=_0x91c444[_0x53ea88(0x12a)](shouldScanTestForAccessibility,this[_0x53ea88(0xd1)][_0x53ea88(0x11e)](),!![]),globals[_0x53ea88(0xe7)](_0x91c444[_0x53ea88(0xe9)],this[_0x53ea88(0xd1)][_0x53ea88(0xfe)]),this['currentTest']['accessibilityScanStarted']=!![];if(_0x91c444[_0x53ea88(0x11f)](isAccessibilityAutomationSession)&&_0xf6ca0e&&Array[_0x53ea88(0x12d)](global['__drivers'])&&_0x91c444[_0x53ea88(0x108)](global[_0x53ea88(0xf1)][_0x53ea88(0xfc)],0x0)&&globals[_0x53ea88(0x10d)](_0x91c444[_0x53ea88(0x120)]))try{const _0x3a2650=await global[_0x53ea88(0xf1)][0x0][_0x53ea88(0x107)];if(_0x3a2650){let _0x2eb6f0=!![];const _0x3a3106=await global[_0x53ea88(0xf1)][0x0][_0x53ea88(0xe1)]();let _0x1e8a26;try{_0x1e8a26=new URL(_0x3a3106);}catch(_0x219e7e){_0x2eb6f0=![];}_0x2eb6f0=_0x91c444[_0x53ea88(0xf5)](_0x1e8a26[_0x53ea88(0x133)],_0x91c444[_0x53ea88(0xcb)])||_0x91c444['touTF'](_0x1e8a26[_0x53ea88(0x133)],_0x91c444['QeSKO']),_0x2eb6f0&&(this['currentTest'][_0x53ea88(0xfe)]&&logger[_0x53ea88(0x127)](_0x91c444[_0x53ea88(0xcc)])),this[_0x53ea88(0xd1)][_0x53ea88(0x106)]=this['currentTest'][_0x53ea88(0xfe)],this[_0x53ea88(0xd1)][_0x53ea88(0xfe)]&&logger['info'](_0x91c444[_0x53ea88(0xcf)]);}}catch(_0x33f25b){logger[_0x53ea88(0x115)]('Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20'+util['format'](_0x33f25b));}_0x91c444[_0x53ea88(0x11f)](_0x23e8ba);})[_0x93f279(0xd7)](_0x30cdf5);},'afterEach'(_0x4b82ad){const _0x53f1ca=a32_0x293b19,_0x26556a={'cdtbW':function(_0x3da349,_0x251d02){return _0x3da349>_0x251d02;},'EGtvK':function(_0x3444ca,_0x2579a2){return _0x3444ca===_0x2579a2;},'DZtlq':_0x53f1ca(0xdb),'OsKPv':function(_0xd972b5,_0x58bc29){return _0xd972b5>_0x58bc29;},'lvngJ':_0x53f1ca(0xc6),'pgPNd':function(_0x39f16b,_0x274f35,_0x4ed4d2,_0x2d7158){return _0x39f16b(_0x274f35,_0x4ed4d2,_0x2d7158);},'blFXY':_0x53f1ca(0x13e),'SgqPg':function(_0x12d1cb,_0x4cd01f){return _0x12d1cb!==_0x4cd01f;},'vwRJe':'passed','kQgBs':function(_0x105838,_0xfa81cb,_0x26cead){return _0x105838(_0xfa81cb,_0x26cead);},'GGQcT':function(_0x38023f,_0x29947c){return _0x38023f+_0x29947c;},'RbtYJ':_0x53f1ca(0x131),'ekeGI':_0x53f1ca(0x115),'isOxb':function(_0x233bbe,_0x1a9a8f,_0x388251){return _0x233bbe(_0x1a9a8f,_0x388251);},'TaEAn':_0x53f1ca(0x119),'Nalee':_0x53f1ca(0x127),'Acnto':_0x53f1ca(0x138),'YlAJm':_0x53f1ca(0x13a),'SIReF':_0x53f1ca(0x13f),'AMreS':'Performing\x20scan\x20before\x20saving\x20results','rodXw':_0x53f1ca(0x11b),'tRjsl':function(_0x29f097){return _0x29f097();},'LtSjz':_0x53f1ca(0x121),'Vazdn':function(_0x11863d,_0x36e60e){return _0x11863d>_0x36e60e;},'DegEV':function(_0x278f2c){return _0x278f2c();}},_0x422f3c='browserstack internal helper hook';this[_0x53f1ca(0xce)](0xfde8);const _0x45f7c1=async(_0x10bbf5,_0xdf92c0)=>{const _0xcc6262=_0x53f1ca;await global[_0xcc6262(0xf1)][0x0][_0xcc6262(0x136)](_0xcc6262(0x123)+_0x10bbf5+_0xcc6262(0x12b)+_0xdf92c0+'\x22}}');};new Promise(async _0x1e2c2f=>{const _0x592141=_0x53f1ca;try{_0x26556a[_0x592141(0xde)](global[_0x592141(0xf1)][_0x592141(0xfc)],0x1)&&(await global['driverCleanup'](),global[_0x592141(0xf1)][_0x592141(0x137)](),global[_0x592141(0xf2)]=[],global['__sessionFailed']=![]);try{if(global[_0x592141(0x13c)]&&_0x26556a[_0x592141(0xe2)](global['percyCaptureMode'],_0x26556a[_0x592141(0xd6)])&&global['__drivers'][0x0]){const _0x28fb0e=_0x26556a['OsKPv'](global['capabilities'][_0x592141(0xfc)],0x0)?!!global[_0x592141(0xf6)][0x0][_0x592141(0x104)]||!!global[_0x592141(0xf6)][0x0][_0x26556a['lvngJ']]:![],_0x1ef1b8={};_0x1ef1b8[_0x592141(0x104)]=_0x28fb0e,await _0x26556a['pgPNd'](percyAutoCapture,global[_0x592141(0xf1)][0x0],_0x26556a[_0x592141(0xd6)],_0x1ef1b8);}}catch(_0x55932f){}!global[_0x592141(0x110)]&&(await global[_0x592141(0xf1)][0x0]['executeScript'](_0x592141(0xe0)+JSON['stringify'](this[_0x592141(0xd1)]['titlePath']()[_0x592141(0x10b)](_0x26556a[_0x592141(0x139)]))+'}}'),global[_0x592141(0xf1)][0x0][_0x592141(0x10f)]=!![]);const _0x2abae1=_0x26556a[_0x592141(0xf3)](this['currentTest'][_0x592141(0x126)],_0x26556a['vwRJe']);_0x2abae1?(global[_0x592141(0x12c)]=!![],global[_0x592141(0xf2)][_0x592141(0xf4)](this[_0x592141(0xd1)][_0x592141(0xfb)]['message']),await _0x26556a['kQgBs'](_0x45f7c1,JSON[_0x592141(0xe3)](_0x26556a['GGQcT'](_0x26556a[_0x592141(0x13d)],this['currentTest'][_0x592141(0xfb)][_0x592141(0xdc)])),_0x26556a['ekeGI'])):await _0x26556a[_0x592141(0xe4)](_0x45f7c1,JSON['stringify'](_0x26556a[_0x592141(0x114)]),_0x26556a['Nalee']);}catch(_0x3c1e03){}try{if(this['currentTest']['accessibilityScanStarted']&&globals['getGlobal'](_0x26556a[_0x592141(0x125)])&&globals[_0x592141(0x10d)](_0x26556a['YlAJm'])){logger[_0x592141(0x127)](_0x26556a[_0x592141(0x12e)]);const _0x12d457={};_0x12d457['thTestRunUuid']=this[_0x592141(0xd1)][_0x592141(0xc5)],_0x12d457[_0x592141(0xdd)]=process[_0x592141(0xda)][testHubConstants[_0x592141(0x105)][_0x592141(0x10a)]],_0x12d457[_0x592141(0xf8)]=process[_0x592141(0xda)][testHubConstants['ENV_VAR'][_0x592141(0xee)]];const _0x4c85a0=_0x12d457;logger[_0x592141(0x121)]('Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20'+JSON[_0x592141(0xe3)](_0x4c85a0)),logger[_0x592141(0x121)](_0x26556a[_0x592141(0xf0)]),logger[_0x592141(0x121)](util[_0x592141(0xc4)](await global['__drivers'][0x0][_0x592141(0x113)](scripts['performScan'],{'method':global[_0x592141(0xd0)]}))),await global[_0x592141(0xf1)][0x0][_0x592141(0x113)](scripts[_0x592141(0xe8)],_0x4c85a0),logger['info'](_0x26556a[_0x592141(0xd4)]);}}catch(_0x2fcec0){logger[_0x592141(0x115)](_0x592141(0x128)+this[_0x592141(0xd1)][_0x592141(0x11e)]()+_0x592141(0x117),_0x2fcec0);}try{try{if(_0x26556a['tRjsl'](shouldProcessEventForTesthub)){global[_0x592141(0xf1)][0x0]&&await _0x26556a[_0x592141(0xe4)](sendPlatformDetails,global['__drivers'][0x0],this[_0x592141(0xd1)]?this[_0x592141(0xd1)][_0x592141(0xc5)]:null);if(_0x26556a[_0x592141(0x100)](isBrowserstackInfra)){const _0x4ab88b='ObservabilitySync:'+Date[_0x592141(0x118)]();await _0x26556a[_0x592141(0xe4)](_0x45f7c1,JSON['stringify'](_0x4ab88b),_0x26556a[_0x592141(0x101)]);}}}catch{}_0x26556a[_0x592141(0x130)](global[_0x592141(0xf1)][0x0][_0x592141(0x103)],0x0)&&await global['driverCleanup']();}catch(_0x529030){}_0x26556a[_0x592141(0xc8)](_0x1e2c2f);})[_0x53f1ca(0xd7)](()=>_0x4b82ad());},'afterAll'(_0x3ffa4d){const _0x58c1c8=a32_0x293b19,_0x4f1405={'HkaXS':function(_0x45fa8b){return _0x45fa8b();}},_0x5f02b7='browserstack internal helper hook';this[_0x58c1c8(0xce)](0xfde8),new Promise(async _0x2e5e5c=>{const _0x4df09c=_0x58c1c8;PerformanceTester[_0x4df09c(0xdf)](),await global[_0x4df09c(0x129)](),_0x4f1405['HkaXS'](_0x2e5e5c);})[_0x58c1c8(0xd7)](()=>_0x3ffa4d());}};function a32_0x2f8a(_0x412a01,_0x13bed2){const _0x3cbfa2=a32_0x3cbf();return a32_0x2f8a=function(_0x2f8a80,_0x57f176){_0x2f8a80=_0x2f8a80-0xc4;let _0x2403b3=_0x3cbfa2[_0x2f8a80];return _0x2403b3;},a32_0x2f8a(_0x412a01,_0x13bed2);}function a32_0x3cbf(){const _0xb2aceb=['DZtlq','then','../../helpers/accessibility-automation/scripts','initQuit','env','testcase','message','thBuildUuid','cdtbW','stopMonitoring','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','getCurrentUrl','EGtvK','stringify','isOxb','\x20|\x20','https:','setGlobal','saveTestResults','ZsoFn','1165581SHChtq','../../helpers/logger','./test-observability/mochaUtils','HbrYW','BROWSERSTACK_TESTHUB_JWT','../../helpers/globals','AMreS','__drivers','__error_messages__','SgqPg','push','cQxrO','capabilities','qSWqr','thJwtToken','jjKQZ','3jTeHLv','err','length','eefQj','shouldScanTestForAccessibility','hQXlx','tRjsl','LtSjz','../../helpers/percy/utils','quitCount_','app','ENV_VAR','accessibilityScanStarted','session_','PXTMo','46GjqBiw','BROWSERSTACK_TESTHUB_UUID','join','mochaHooks','getGlobal','52791QCrorT','sessionNameSet__','__skipSessionName','startMonitoring','2381124EvwfMu','executeAsyncScript','TaEAn','error','../../helpers/testhub/utils','.\x20Error\x20:','now','Passed','Failed\x20to\x20store\x20session\x20name:\x20','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','passed','../../helpers/performance-tester','titlePath','iPrCk','eqZIo','debug','util','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','2075165LDkTxu','Acnto','state','info','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','driverCleanup','lQEXW',',\x22level\x22:\x20\x22','__sessionFailed','isArray','SIReF','12cKPfEP','Vazdn','Failed:\x20','qtXUH','protocol','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','4493426LYEXED','executeScript','shift','isAccessibilityPlatform','blFXY','bstackA11yShouldScan','http:','percy','RbtYJ','\x20-\x20','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','../../helpers/accessibility-automation/helper','../../helpers/helper','format','testAnalyticsId','appium:app','DjTBm','DegEV','22297GphsBg','7764JPYBSB','dhqgz','PlyrT','8892KyvveT','timeout','HgvEQ','browserstackSessionName','currentTest','Automate\x20test\x20case\x20execution\x20has\x20started.','430txrnIn','rodXw','64AmIdZW'];a32_0x3cbf=function(){return _0xb2aceb;};return a32_0x3cbf();}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';function a33_0x2f49(_0x5c2645,_0x191027){const _0x1abe92=a33_0x1abe();return a33_0x2f49=function(_0x2f4955,_0x592492){_0x2f4955=_0x2f4955-0x110;let _0x366fd0=_0x1abe92[_0x2f4955];return _0x366fd0;},a33_0x2f49(_0x5c2645,_0x191027);}const a33_0x42f30c=a33_0x2f49;(function(_0x3e28fe,_0x509c2f){const _0x3d46d2=a33_0x2f49,_0x4df288=_0x3e28fe();while(!![]){try{const _0x3a44ec=parseInt(_0x3d46d2(0x134))/0x1*(-parseInt(_0x3d46d2(0x11c))/0x2)+parseInt(_0x3d46d2(0x129))/0x3+-parseInt(_0x3d46d2(0x13e))/0x4*(parseInt(_0x3d46d2(0x116))/0x5)+parseInt(_0x3d46d2(0x12a))/0x6+parseInt(_0x3d46d2(0x153))/0x7*(-parseInt(_0x3d46d2(0x151))/0x8)+-parseInt(_0x3d46d2(0x111))/0x9*(parseInt(_0x3d46d2(0x123))/0xa)+parseInt(_0x3d46d2(0x12b))/0xb;if(_0x3a44ec===_0x509c2f)break;else _0x4df288['push'](_0x4df288['shift']());}catch(_0x3a9c80){_0x4df288['push'](_0x4df288['shift']());}}}(a33_0x1abe,0x52cec));function a33_0x1abe(){const _0x3a00ab=['mergeDeep','3650abzOzc','../../helpers/helper','oahun','webdriver','filter','useW3C','hLWHI','310wAnbMr','hub.browserstack.com','config','test','inherit','host','887427dGboCu','956334UIagFb','8995393kNIpaq','child_process','Deleting\x20','nightwatch','--env','aklmU','CUxDC','close','qaLZk','30yGzSVe','split','xNmsQ','selenium','rAmfS','nightwatch.conf.js','splice','winstonLogger','existsSync','nightwatch-browserstack.json','3092umhMPG','modifyBrowserStackW3CCaps','test_settings','../../helpers/logger','join','nightwatch.cmd','getPlatformName','nightwatch.json','MTEgd','modifyBrowserStackCaps','env','exports','../../helpers/BrowserStackSetup','length','start_process','../utils/constants','forEach','xttlp','desiredCapabilities','819240juZxpX','MyxMg','35vsHOFR','now','cbgPA','map','--config','platform','writeFileSync','port','KsrMv','path','child\x20process\x20exited\x20with\x20code\x20','findIndex','PGFdZ','19251QxTRXK','info','fSrfA','cwd','slice','1945iihnzV','push','trim','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','SCxoO'];a33_0x1abe=function(){return _0x3a00ab;};return a33_0x1abe();}const fs=require('fs'),path=require(a33_0x42f30c(0x15c)),{spawn}=require(a33_0x42f30c(0x12c)),logger=require(a33_0x42f30c(0x141))[a33_0x42f30c(0x13b)],{default:BrowserStackSetup}=require(a33_0x42f30c(0x14a)),helper=require(a33_0x42f30c(0x11d)),constants=require(a33_0x42f30c(0x14d)),getUserNightwatchConfigs=(_0x474d0f,_0x4edf0b)=>{const _0x698621=a33_0x42f30c,_0x3e1fa9={'oahun':_0x698621(0x139),'aklmU':_0x698621(0x145),'xttlp':function(_0x2c8a63,_0x3cb239){return _0x2c8a63(_0x3cb239);},'qaLZk':_0x698621(0x119)};let _0xc47dde=null,_0x1a2f38={};const _0x7b27b4=_0x4edf0b[_0x698621(0x15e)](_0xe61312=>_0xe61312===_0x698621(0x157));if(!helper['isUndefined'](_0x474d0f[_0x698621(0x125)])&&fs[_0x698621(0x13c)](path[_0x698621(0x142)](process[_0x698621(0x114)](),_0x474d0f[_0x698621(0x125)])))_0xc47dde=path[_0x698621(0x142)](process[_0x698621(0x114)](),_0x474d0f[_0x698621(0x125)]),_0x4edf0b[_0x698621(0x13a)](_0x7b27b4,0x2);else{if(fs['existsSync'](path[_0x698621(0x142)](process[_0x698621(0x114)](),_0x3e1fa9['oahun'])))_0xc47dde=path['join'](process[_0x698621(0x114)](),_0x3e1fa9[_0x698621(0x11e)]);else fs[_0x698621(0x13c)](path['join'](process[_0x698621(0x114)](),_0x3e1fa9[_0x698621(0x130)]))&&(_0xc47dde=path[_0x698621(0x142)](process[_0x698621(0x114)](),_0x3e1fa9['aklmU']));}return _0xc47dde?(logger['info']('Getting\x20your\x20nightwatch\x20configs\x20from\x20'+_0xc47dde),_0x1a2f38=_0x3e1fa9[_0x698621(0x14f)](require,_0xc47dde)):logger['info'](_0x3e1fa9[_0x698621(0x133)]),_0x1a2f38;},removeExistingEnvs=_0x5b5e21=>{const _0x461803=a33_0x42f30c,_0x1de625={};_0x1de625[_0x461803(0x110)]=function(_0xcada8a,_0x3d4c40){return _0xcada8a>_0x3d4c40;};const _0x212d08=_0x1de625;let _0x3d77b6=_0x5b5e21[_0x461803(0x15e)](_0x1e85c8=>_0x1e85c8===_0x461803(0x12f));_0x212d08[_0x461803(0x110)](_0x3d77b6,-0x1)&&_0x5b5e21[_0x461803(0x13a)](_0x3d77b6,0x2),_0x3d77b6=_0x5b5e21[_0x461803(0x15e)](_0x475b70=>_0x475b70==='-e'),_0x212d08['PGFdZ'](_0x3d77b6,-0x1)&&_0x5b5e21[_0x461803(0x13a)](_0x3d77b6,0x2);};function run(_0x3ce5d7,_0x162ea1){const _0x239abf=a33_0x42f30c,_0x34afd2={'CUxDC':_0x239abf(0x12e),'xNmsQ':function(_0x5b5fd8,_0x5e5006){return _0x5b5fd8+_0x5e5006;},'KsrMv':_0x239abf(0x140),'rAmfS':function(_0xf0974a,_0x33106b,_0x1a1165){return _0xf0974a(_0x33106b,_0x1a1165);},'fXTau':_0x239abf(0x124),'fSrfA':'Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','hHEgA':function(_0x532b65,_0x509adb){return _0x532b65===_0x509adb;},'LnWkf':_0x239abf(0x13d),'MyxMg':function(_0x1a8d2b,_0x410c56){return _0x1a8d2b(_0x410c56);},'REQRN':function(_0x295606,_0x88c166,_0x4bacf6,_0x184d90){return _0x295606(_0x88c166,_0x4bacf6,_0x184d90);},'gkbMI':_0x239abf(0x143),'HAWSq':_0x239abf(0x157),'SCxoO':_0x239abf(0x12f),'cbgPA':_0x239abf(0x127),'hLWHI':_0x239abf(0x132)},_0x2a7363=new BrowserStackSetup(_0x3ce5d7);if(!_0x2a7363[_0x239abf(0x125)])return;const _0x1cd7bd=_0x34afd2[_0x239abf(0x138)](getUserNightwatchConfigs,_0x3ce5d7,_0x162ea1),_0x456a34={};_0x456a34[_0x239abf(0x14c)]=![];const _0x1aa457={};_0x1aa457[_0x239abf(0x128)]=_0x34afd2['fXTau'],_0x1aa457[_0x239abf(0x15a)]=0x1bb;const _0x5b015e={};_0x5b015e[_0x239abf(0x11f)]=_0x456a34,_0x5b015e[_0x239abf(0x137)]=_0x1aa457;const _0x3f2ba0=_0x5b015e;logger[_0x239abf(0x112)](_0x34afd2[_0x239abf(0x113)]);const _0x5e426b={..._0x1cd7bd},_0x159a30=_0x5e426b,_0x33085c=helper[_0x239abf(0x121)](_0x2a7363['config']),_0x1b480a=[];_0x2a7363[_0x239abf(0x125)]['platforms'][_0x239abf(0x14e)]((_0x24d055,_0x20e103)=>{const _0x271b86=_0x239abf;_0x33085c?_0x1b480a[_0x271b86(0x117)](helper[_0x271b86(0x13f)](_0x2a7363[_0x271b86(0x125)],_0x34afd2[_0x271b86(0x131)],_0x20e103)):_0x1b480a[_0x271b86(0x117)](helper[_0x271b86(0x147)](_0x2a7363['config'],_0x34afd2[_0x271b86(0x131)],_0x20e103));});const _0x111ca4={},_0x3dc260=[];_0x3ce5d7[_0x239abf(0x148)]=_0x3ce5d7[_0x239abf(0x148)]||_0x3ce5d7['e'];const _0x51c330=_0x3ce5d7[_0x239abf(0x148)]?_0x3ce5d7[_0x239abf(0x148)]['trim']()[_0x239abf(0x135)](',')[_0x239abf(0x156)](_0x2cfa30=>_0x2cfa30[_0x239abf(0x118)]())[_0x239abf(0x120)](_0xa71759=>_0xa71759!==''):[''];_0x34afd2['hHEgA'](_0x51c330[_0x239abf(0x14b)],0x0)&&_0x51c330[_0x239abf(0x117)]('');_0x51c330[_0x239abf(0x14e)](_0x3e630=>{const _0x1401d7=_0x239abf,_0x3cd424={'SHGyS':function(_0x19d302,_0x5d2cde){const _0x557f20=a33_0x2f49;return _0x34afd2[_0x557f20(0x136)](_0x19d302,_0x5d2cde);},'MTEgd':_0x34afd2[_0x1401d7(0x15b)]};_0x1b480a['forEach'](_0x52cb8d=>{const _0x26b967=_0x1401d7;let _0x4aecf0=_0x3cd424['SHGyS'](helper[_0x26b967(0x144)](_0x52cb8d,'_'),'_'+Date[_0x26b967(0x154)]());_0x3e630&&(_0x4aecf0+='_'+_0x3e630);if(_0x3e630&&(!_0x1cd7bd[_0x3cd424[_0x26b967(0x146)]]||!_0x1cd7bd[_0x3cd424['MTEgd']][_0x3e630]))return;const _0x3dad5c={..._0x3f2ba0};_0x3dad5c[_0x26b967(0x150)]=_0x52cb8d;const _0xcffe6c=_0x3dad5c;_0x111ca4[_0x4aecf0]=_0x3e630?helper[_0x26b967(0x11b)](_0x1cd7bd[_0x3cd424[_0x26b967(0x146)]][_0x3e630],_0xcffe6c):_0xcffe6c,_0x3dc260[_0x26b967(0x117)](_0x4aecf0);});});!_0x159a30[_0x239abf(0x140)]&&(_0x159a30['test_settings']={});_0x159a30[_0x239abf(0x140)]={..._0x159a30[_0x239abf(0x140)],..._0x111ca4};const _0x27a2dd=path[_0x239abf(0x142)](__dirname,_0x34afd2['LnWkf']);fs[_0x239abf(0x159)](_0x27a2dd,JSON['stringify'](_0x159a30)),_0x34afd2[_0x239abf(0x152)](removeExistingEnvs,_0x162ea1);const _0x6c5bfd=_0x34afd2['REQRN'](spawn,/^win/[_0x239abf(0x126)](process[_0x239abf(0x158)])?_0x34afd2['gkbMI']:_0x34afd2[_0x239abf(0x131)],[_0x34afd2['HAWSq'],_0x27a2dd,..._0x162ea1[_0x239abf(0x115)](0x1),_0x34afd2[_0x239abf(0x11a)],_0x3dc260[_0x239abf(0x142)](',')],{'stdio':_0x34afd2[_0x239abf(0x155)]});_0x6c5bfd['on'](_0x34afd2[_0x239abf(0x122)],async _0x2f141d=>{const _0xf6c529=_0x239abf;logger['debug'](_0xf6c529(0x15d)+_0x2f141d),logger[_0xf6c529(0x112)](_0xf6c529(0x12d)+_0x27a2dd),fs['unlinkSync'](_0x27a2dd);});}module[a33_0x42f30c(0x149)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a34_0x5438cf=a34_0x18b3;function a34_0x18b3(_0x4e752f,_0x181c66){const _0x499ee3=a34_0x499e();return a34_0x18b3=function(_0x18b3d6,_0x4ef650){_0x18b3d6=_0x18b3d6-0x152;let _0x41f6f1=_0x499ee3[_0x18b3d6];return _0x41f6f1;},a34_0x18b3(_0x4e752f,_0x181c66);}function a34_0x499e(){const _0x4694f3=['project','browserName','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','1qNQWZf','vhZBF','QKGwl','1375038mZFbBZ','5427WXpapR','browserstack.accessibility','eSWTP','No\x20accessibility\x20results\x20were\x20found.','scannerVersion','No\x20summaryResults\x20found.','warn','bestPractice','WebDriver','browser_version','name','VLybW','JoEET','use','8063584TADDGy','platformValidation','UNjSu','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','RorAo','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','accessibilityOptions.authToken','parse','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','accessibilityOptions.includeIssueType.bestPractice','wcagVersion','soQNj','util','browser','60zPSDZM','1986932iyRQjK','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','bNrWK','GdQKt','YAzyl','debug','Playwright','getAccessibilityResultsSummary','performScan','workerInfo','cGFdn','browserStackEvaluate','playwright-chromium','HQfmC','aEatB','getAccessibilityResults','ozOts','accessibilityPlatform','stringify','winstonLogger','ziCEq','IcVFS','UoZmN','nbDpr','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','2532DeuEfv','bBsVj','lnlxA','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','eOFQY','VgsYZ','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','BS_A11Y_JWT','latest','browserStackExecuteDriver','lSdaB','needsReview','currentTest','12luSMWQ','FKOyn','xhJRL','yAwoP','executeAsyncScript','129019iqVPlj','constructor','XBPDX','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','evaluate','41688kOnSpp','replace','bstackSdkArgs','HfXTg','env','1053475zajqpu','EhKvr','LVvEA','accessibilityOptions.includeIssueType.needsReview','method','bWRsK','testInfo','deviceName','format','chrome','executeScript','xNadi','114DdAbIu','connectOptions','wsEndpoint','error','includeIssueType','accessibilityOptions'];a34_0x499e=function(){return _0x4694f3;};return a34_0x499e();}(function(_0x26c5a9,_0x1641b2){const _0x176768=a34_0x18b3,_0xaec1dd=_0x26c5a9();while(!![]){try{const _0x44a3b8=-parseInt(_0x176768(0x171))/0x1*(parseInt(_0x176768(0x192))/0x2)+parseInt(_0x176768(0x168))/0x3*(-parseInt(_0x176768(0x157))/0x4)+parseInt(_0x176768(0x15c))/0x5*(parseInt(_0x176768(0x1b8))/0x6)+parseInt(_0x176768(0x174))/0x7+-parseInt(_0x176768(0x183))/0x8+parseInt(_0x176768(0x175))/0x9*(-parseInt(_0x176768(0x191))/0xa)+-parseInt(_0x176768(0x152))/0xb*(-parseInt(_0x176768(0x1ab))/0xc);if(_0x44a3b8===_0x1641b2)break;else _0xaec1dd['push'](_0xaec1dd['shift']());}catch(_0x2b253c){_0xaec1dd['push'](_0xaec1dd['shift']());}}}(a34_0x499e,0xa8d77));const util=require(a34_0x5438cf(0x18f)),logger=require('../../helpers/logger')[a34_0x5438cf(0x1a5)],{isAccessibilityAutomationSession}=require('../../helpers/accessibility-automation/helper'),{isUndefined}=require('../../helpers/helper'),scripts=require('../../helpers/accessibility-automation/scripts');exports[a34_0x5438cf(0x19d)]=async(_0x1b8128,_0xec02cf,_0x4a0296={})=>{const _0x1f3274=a34_0x5438cf,_0x18f490={};_0x18f490[_0x1f3274(0x167)]='bstackSdkArgs';const _0xcbabe0=_0x18f490;return await _0x1b8128[_0x1f3274(0x156)]('(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'+_0xec02cf['replace'](/arguments/g,_0xcbabe0[_0x1f3274(0x167)])+_0x1f3274(0x1ae)+JSON['stringify'](_0x4a0296)+')');},exports[a34_0x5438cf(0x1b4)]=async(_0x25e2fc,_0x2c5885,_0x536d91={})=>{const _0xb035a6=a34_0x5438cf,_0x64fe8e={};_0x64fe8e['xhJRL']=function(_0x2f65bb,_0xdf20d9){return _0x2f65bb===_0xdf20d9;},_0x64fe8e['UNjSu']=_0xb035a6(0x17d),_0x64fe8e['JoEET']=function(_0x11cad8,_0x119572){return _0x11cad8===_0x119572;},_0x64fe8e['ULNwk']=_0xb035a6(0x198),_0x64fe8e['RorAo']=_0xb035a6(0x159);const _0x4dc29e=_0x64fe8e;if(_0x4dc29e[_0xb035a6(0x1ba)](_0x25e2fc[_0xb035a6(0x153)][_0xb035a6(0x17f)],_0x4dc29e[_0xb035a6(0x185)]))return await _0x25e2fc[_0xb035a6(0x1bc)](_0x2c5885,_0x536d91);else{if(_0x4dc29e[_0xb035a6(0x181)](_0x25e2fc[_0xb035a6(0x153)]['name'],_0x4dc29e['ULNwk']))return await _0x25e2fc[_0xb035a6(0x166)]('(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'+_0x2c5885[_0xb035a6(0x158)](/arguments/g,_0x4dc29e[_0xb035a6(0x187)])+_0xb035a6(0x188)+JSON['stringify'](_0x536d91)+')');}},exports['setAccessibilityCapabilities']=async _0x2e1f4c=>{const _0x4f2ab1=a34_0x5438cf,_0x4f8525={};_0x4f8525[_0x4f2ab1(0x19f)]='accessibilityOptions.wcagVersion',_0x4f8525['SEzNY']='accessibilityOptions.scannerProcessingTimeout',_0x4f8525[_0x4f2ab1(0x1af)]=_0x4f2ab1(0x18c),_0x4f8525[_0x4f2ab1(0x194)]=_0x4f2ab1(0x15f),_0x4f8525[_0x4f2ab1(0x19c)]=_0x4f2ab1(0x189),_0x4f8525['FKOyn']='accessibilityOptions.scannerVersion';const _0x1f8cef=_0x4f8525;_0x2e1f4c['accessibilityOptions']&&(_0x2e1f4c[_0x4f2ab1(0x16d)][_0x4f2ab1(0x18d)]&&(_0x2e1f4c[_0x1f8cef[_0x4f2ab1(0x19f)]]=_0x2e1f4c[_0x4f2ab1(0x16d)][_0x4f2ab1(0x18d)]),_0x2e1f4c[_0x4f2ab1(0x16d)]['scannerProcessingTimeout']&&(_0x2e1f4c[_0x1f8cef['SEzNY']]=_0x2e1f4c[_0x4f2ab1(0x16d)]['scannerProcessingTimeout']),_0x2e1f4c['accessibilityOptions']['includeIssueType']&&(_0x2e1f4c[_0x1f8cef[_0x4f2ab1(0x1af)]]=_0x2e1f4c[_0x4f2ab1(0x16d)][_0x4f2ab1(0x16c)][_0x4f2ab1(0x17c)],_0x2e1f4c[_0x1f8cef[_0x4f2ab1(0x194)]]=_0x2e1f4c[_0x4f2ab1(0x16d)][_0x4f2ab1(0x16c)][_0x4f2ab1(0x1b6)]));const _0x2d6c6b=JSON[_0x4f2ab1(0x18a)](process['env'][_0x4f2ab1(0x1aa)])[_0x4f2ab1(0x179)];_0x2e1f4c[_0x1f8cef[_0x4f2ab1(0x19c)]]=process[_0x4f2ab1(0x15b)][_0x4f2ab1(0x1b2)],_0x2e1f4c[_0x1f8cef[_0x4f2ab1(0x1b9)]]=_0x2d6c6b,delete _0x2e1f4c[_0x4f2ab1(0x16d)];},exports[a34_0x5438cf(0x1a1)]=async _0x531589=>{const _0x488c8f=a34_0x5438cf,_0x369b21={};_0x369b21[_0x488c8f(0x1a6)]=_0x488c8f(0x178),_0x369b21['VgsYZ']='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.';const _0xcd0c57=_0x369b21;if(global[_0x488c8f(0x1a3)])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x531589,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x531589,scripts.getResults);return res;}catch{return logger[_0x488c8f(0x16b)](_0xcd0c57['ziCEq']),[];}else return logger[_0x488c8f(0x17b)](_0xcd0c57[_0x488c8f(0x1b0)]),[];},exports['performScan']=async(_0x14996a,_0x1d7c4f='')=>{const _0x4e9978=a34_0x5438cf;if(global['accessibilityPlatform']){const _0x5b776d={};return _0x5b776d[_0x4e9978(0x160)]=_0x1d7c4f,await exports['browserStackEvaluate'](_0x14996a,scripts[_0x4e9978(0x19a)],_0x5b776d);}},exports[a34_0x5438cf(0x199)]=async _0x51c7fc=>{const _0x101da5=a34_0x5438cf,_0x50c905={};_0x50c905[_0x101da5(0x1b5)]=_0x101da5(0x17a),_0x50c905[_0x101da5(0x1a9)]=_0x101da5(0x18b);const _0x4a3cda=_0x50c905;if(global[_0x101da5(0x1a3)])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x51c7fc,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x51c7fc,scripts.getResultsSummary);return summaryResults;}catch{return logger[_0x101da5(0x197)](_0x4a3cda[_0x101da5(0x1b5)]),{};}else return logger[_0x101da5(0x17b)](_0x4a3cda['nbDpr']),{};},exports[a34_0x5438cf(0x184)]=async _0x8dee55=>{const _0x58660b=a34_0x5438cf,_0x208b8b={'UoZmN':function(_0x51a1e6,_0xbc7298){return _0x51a1e6!==_0xbc7298;},'LVvEA':_0x58660b(0x155),'GdQKt':function(_0x4a61f9,_0x5e9523){return _0x4a61f9===_0x5e9523;},'IcVFS':_0x58660b(0x165),'ozOts':function(_0x443918,_0x1709ea){return _0x443918===_0x1709ea;},'QKGwl':_0x58660b(0x19e),'eSWTP':_0x58660b(0x186),'yyign':function(_0x1934ed,_0x520f3a){return _0x1934ed(_0x520f3a);},'egIjO':function(_0x20c997,_0x366bbc){return _0x20c997===_0x366bbc;},'TGgZd':_0x58660b(0x1b3),'DbJJg':function(_0xa1a29c,_0x3a3935){return _0xa1a29c>_0x3a3935;},'yAwoP':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.'};try{if(!_0x208b8b[_0x58660b(0x1a8)](_0x8dee55[_0x58660b(0x163)],''))return logger[_0x58660b(0x17b)](_0x208b8b[_0x58660b(0x15e)]),![];const _0x26b964=_0x8dee55[_0x58660b(0x190)];if(!(_0x208b8b[_0x58660b(0x195)](_0x26b964,_0x208b8b[_0x58660b(0x1a7)])||_0x208b8b[_0x58660b(0x1a2)](_0x26b964,_0x208b8b[_0x58660b(0x173)])))return logger['warn'](_0x208b8b[_0x58660b(0x177)]),![];const _0x4277e3=_0x208b8b['yyign'](parseInt,_0x8dee55[_0x58660b(0x17e)]);if(!(_0x208b8b['egIjO'](_0x4277e3,_0x208b8b['TGgZd'])||_0x208b8b['DbJJg'](_0x4277e3,0x5e)))return logger[_0x58660b(0x17b)](_0x208b8b[_0x58660b(0x1bb)]),![];}catch(_0x85557e){logger[_0x58660b(0x197)](_0x58660b(0x170)+util['format'](_0x85557e));}return!![];},exports['processAccessibilityCaps']=(_0x20cf83,_0x1af8d0,_0x70cfab)=>{const _0x30f5cb=a34_0x5438cf,_0x203f35={'soQNj':function(_0x2e2863){return _0x2e2863();},'bWRsK':_0x30f5cb(0x176),'XBPDX':function(_0x3b6e08,_0x2c9526){return _0x3b6e08===_0x2c9526;},'EhKvr':_0x30f5cb(0x165),'YAzyl':function(_0x6a5fa,_0x346765){return _0x6a5fa===_0x346765;},'vhZBF':_0x30f5cb(0x19e),'URBgj':_0x30f5cb(0x186),'aEatB':'latest','HfXTg':function(_0x2d1988,_0x2f2232){return _0x2d1988>_0x2f2232;},'VLybW':_0x30f5cb(0x1b1),'srgMI':function(_0x5216f1,_0x587b5f){return _0x5216f1(_0x587b5f);},'bBsVj':_0x30f5cb(0x155),'lnlxA':function(_0x3faa8f,_0x29dff1){return _0x3faa8f+_0x29dff1;},'oYNIH':function(_0x2bc602,_0x385074){return _0x2bc602(_0x385074);}};try{if(_0x203f35[_0x30f5cb(0x18e)](isAccessibilityAutomationSession)){global[_0x30f5cb(0x1a3)]=!![];!_0x20cf83[_0x203f35[_0x30f5cb(0x161)]]&&(global[_0x30f5cb(0x1a3)]=![]);!(_0x203f35[_0x30f5cb(0x154)](_0x20cf83[_0x30f5cb(0x16f)],_0x203f35[_0x30f5cb(0x15d)])||_0x203f35[_0x30f5cb(0x196)](_0x20cf83[_0x30f5cb(0x16f)],_0x203f35[_0x30f5cb(0x172)]))&&(logger[_0x30f5cb(0x17b)](_0x203f35['URBgj']),global[_0x30f5cb(0x1a3)]=![]);!(_0x203f35[_0x30f5cb(0x154)](_0x20cf83[_0x30f5cb(0x17e)],_0x203f35[_0x30f5cb(0x1a0)])||_0x203f35[_0x30f5cb(0x15a)](_0x20cf83['browser_version'],0x5e))&&(logger[_0x30f5cb(0x17b)](_0x203f35[_0x30f5cb(0x180)]),global[_0x30f5cb(0x1a3)]=![]);!_0x203f35['srgMI'](isUndefined,_0x20cf83[_0x30f5cb(0x163)])&&(logger[_0x30f5cb(0x17b)](_0x203f35[_0x30f5cb(0x1ac)]),global[_0x30f5cb(0x1a3)]=![]);if(!global[_0x30f5cb(0x1a3)]){_0x20cf83[_0x203f35[_0x30f5cb(0x161)]]=![];const _0x2fcb5b=_0x203f35[_0x30f5cb(0x1ad)](_0x1af8d0,_0x203f35['oYNIH'](encodeURIComponent,JSON[_0x30f5cb(0x1a4)](_0x20cf83)));_0x70cfab&&(_0x70cfab[_0x30f5cb(0x1b7)][_0x30f5cb(0x162)][_0x30f5cb(0x16e)][_0x30f5cb(0x182)][_0x30f5cb(0x169)][_0x30f5cb(0x16a)]=_0x2fcb5b,_0x70cfab[_0x30f5cb(0x19b)][_0x30f5cb(0x16e)]['use'][_0x30f5cb(0x169)][_0x30f5cb(0x16a)]=_0x2fcb5b);}}}catch(_0x584b63){logger[_0x30f5cb(0x197)](_0x30f5cb(0x193)+util[_0x30f5cb(0x164)](_0x584b63));}};
|
|
1
|
+
const a34_0x1c1ae3=a34_0x57ac;(function(_0x4bdc97,_0x260090){const _0x2fa8db=a34_0x57ac,_0x1e085b=_0x4bdc97();while(!![]){try{const _0x587bc0=parseInt(_0x2fa8db(0x1b1))/0x1*(-parseInt(_0x2fa8db(0x185))/0x2)+-parseInt(_0x2fa8db(0x1cd))/0x3+-parseInt(_0x2fa8db(0x1a3))/0x4+-parseInt(_0x2fa8db(0x1be))/0x5*(parseInt(_0x2fa8db(0x1b4))/0x6)+parseInt(_0x2fa8db(0x1ce))/0x7*(parseInt(_0x2fa8db(0x1e4))/0x8)+-parseInt(_0x2fa8db(0x1e5))/0x9+parseInt(_0x2fa8db(0x1bc))/0xa;if(_0x587bc0===_0x260090)break;else _0x1e085b['push'](_0x1e085b['shift']());}catch(_0x3547e8){_0x1e085b['push'](_0x1e085b['shift']());}}}(a34_0x5309,0xa05a4));const util=require('util'),logger=require(a34_0x1c1ae3(0x1b6))[a34_0x1c1ae3(0x18d)],{isAccessibilityAutomationSession}=require(a34_0x1c1ae3(0x19c)),{isUndefined}=require('../../helpers/helper'),scripts=require(a34_0x1c1ae3(0x19e));function a34_0x5309(){const _0x3f1655=['Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','accessibilityOptions.includeIssueType.bestPractice','OBWtJ','Vhmpp','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','3587724ntaQig','3346PixGRh','browserStackExecuteDriver','deviceName','oiudu','accessibilityOptions.scannerVersion','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','EsLJE','playwright-chromium','browserStackEvaluate','accessibilityPlatform','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','browser','parse','error','accessibilityOptions.includeIssueType.needsReview','browserstack.accessibility','LDOcg','gYPKn','format','getAccessibilityResults','browserName','KPEnO','4696bcfjEI','4948200hdyZaL','jKKYs','2RvgxZV','GqOVA','wHvUS','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','aQOyT','executeAsyncScript','evaluate','accessibilityOptions','winstonLogger','executeScript','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','FdWOz','setAccessibilityCapabilities','EQZlI','irIxS','project','env','method','stringify','wcagVersion','ZDLFU','bvpKk','IomIy','../../helpers/accessibility-automation/helper','BS_A11Y_JWT','../../helpers/accessibility-automation/scripts','wsEndpoint','KaNBh','latest','sYdrN','2879524sWJTma','VpFLu','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','ecdKM','workerInfo','debug','TlZrA','mUgOX','No\x20summaryResults\x20found.','accessibilityOptions.wcagVersion','testInfo','chrome','connectOptions','warn','1288864GjpAkZ','use','name','76518deGTsu','browser_version','../../helpers/logger','DlgmE','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','includeIssueType','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','xJumR','42964600AaLiYo','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','65xUZqrp','(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','dDnhW','RSDof','pNfAW','replace','scannerProcessingTimeout','KHybn','accessibilityOptions.authToken','UWxKR'];a34_0x5309=function(){return _0x3f1655;};return a34_0x5309();}function a34_0x57ac(_0x4a9ba8,_0x57a651){const _0x5309d6=a34_0x5309();return a34_0x57ac=function(_0x57acce,_0x26ec5e){_0x57acce=_0x57acce-0x184;let _0x2e2af2=_0x5309d6[_0x57acce];return _0x2e2af2;},a34_0x57ac(_0x4a9ba8,_0x57a651);}exports[a34_0x1c1ae3(0x1d6)]=async(_0x241395,_0x275104,_0x2e5461={})=>{const _0x393760=a34_0x1c1ae3,_0x41655c={};_0x41655c[_0x393760(0x190)]='bstackSdkArgs';const _0x240d3d=_0x41655c;return await _0x241395[_0x393760(0x18b)]('(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'+_0x275104[_0x393760(0x1c3)](/arguments/g,_0x240d3d[_0x393760(0x190)])+_0x393760(0x18f)+JSON['stringify'](_0x2e5461)+')');},exports[a34_0x1c1ae3(0x1cf)]=async(_0x4dfdcb,_0x1f04c4,_0x5c7915={})=>{const _0x5851ea=a34_0x1c1ae3,_0x5a4e95={};_0x5a4e95[_0x5851ea(0x199)]=function(_0x20251c,_0x235e9c){return _0x20251c===_0x235e9c;},_0x5a4e95[_0x5851ea(0x193)]='WebDriver',_0x5a4e95[_0x5851ea(0x1a2)]=function(_0x320012,_0x14c4b1){return _0x320012===_0x14c4b1;},_0x5a4e95['raAfb']='Playwright',_0x5a4e95['IkxFt']='bstackSdkArgs';const _0x425653=_0x5a4e95;if(_0x425653[_0x5851ea(0x199)](_0x4dfdcb['constructor'][_0x5851ea(0x1b3)],_0x425653['irIxS']))return await _0x4dfdcb[_0x5851ea(0x18a)](_0x1f04c4,_0x5c7915);else{if(_0x425653[_0x5851ea(0x1a2)](_0x4dfdcb['constructor'][_0x5851ea(0x1b3)],_0x425653['raAfb']))return await _0x4dfdcb[_0x5851ea(0x18e)](_0x5851ea(0x1bf)+_0x1f04c4[_0x5851ea(0x1c3)](/arguments/g,_0x425653['IkxFt'])+_0x5851ea(0x1bd)+JSON[_0x5851ea(0x197)](_0x5c7915)+')');}},exports[a34_0x1c1ae3(0x191)]=async _0x32dcbd=>{const _0x4177f4=a34_0x1c1ae3,_0x4313eb={};_0x4313eb['KPEnO']=_0x4177f4(0x1ac),_0x4313eb[_0x4177f4(0x1b7)]='accessibilityOptions.scannerProcessingTimeout',_0x4313eb[_0x4177f4(0x1cb)]=_0x4177f4(0x1c9),_0x4313eb[_0x4177f4(0x1df)]=_0x4177f4(0x1dc),_0x4313eb[_0x4177f4(0x1c1)]=_0x4177f4(0x1c6),_0x4313eb[_0x4177f4(0x1d4)]=_0x4177f4(0x1d2);const _0x42caab=_0x4313eb;_0x32dcbd['accessibilityOptions']&&(_0x32dcbd[_0x4177f4(0x18c)][_0x4177f4(0x198)]&&(_0x32dcbd[_0x42caab[_0x4177f4(0x1e3)]]=_0x32dcbd[_0x4177f4(0x18c)][_0x4177f4(0x198)]),_0x32dcbd[_0x4177f4(0x18c)][_0x4177f4(0x1c4)]&&(_0x32dcbd[_0x42caab[_0x4177f4(0x1b7)]]=_0x32dcbd['accessibilityOptions'][_0x4177f4(0x1c4)]),_0x32dcbd[_0x4177f4(0x18c)][_0x4177f4(0x1b9)]&&(_0x32dcbd[_0x42caab[_0x4177f4(0x1cb)]]=_0x32dcbd['accessibilityOptions'][_0x4177f4(0x1b9)]['bestPractice'],_0x32dcbd[_0x42caab[_0x4177f4(0x1df)]]=_0x32dcbd[_0x4177f4(0x18c)][_0x4177f4(0x1b9)]['needsReview']));const _0x1ca439=JSON[_0x4177f4(0x1da)](process[_0x4177f4(0x195)][_0x4177f4(0x1d3)])['scannerVersion'];_0x32dcbd[_0x42caab[_0x4177f4(0x1c1)]]=process['env'][_0x4177f4(0x19d)],_0x32dcbd[_0x42caab[_0x4177f4(0x1d4)]]=_0x1ca439,delete _0x32dcbd[_0x4177f4(0x18c)];},exports[a34_0x1c1ae3(0x1e1)]=async _0x5d8875=>{const _0x3532d5=a34_0x1c1ae3,_0x3ec628={};_0x3ec628[_0x3532d5(0x184)]='No\x20accessibility\x20results\x20were\x20found.',_0x3ec628['oiudu']=_0x3532d5(0x1ba);const _0x1ff3b9=_0x3ec628;if(global[_0x3532d5(0x1d7)])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x5d8875,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x5d8875,scripts.getResults);return res;}catch{return logger[_0x3532d5(0x1db)](_0x1ff3b9[_0x3532d5(0x184)]),[];}else return logger[_0x3532d5(0x1b0)](_0x1ff3b9[_0x3532d5(0x1d1)]),[];},exports['performScan']=async(_0x537628,_0x37dc6e='')=>{const _0x4288a6=a34_0x1c1ae3;if(global['accessibilityPlatform']){const _0x1d5777={};return _0x1d5777[_0x4288a6(0x196)]=_0x37dc6e,await exports[_0x4288a6(0x1d6)](_0x537628,scripts['performScan'],_0x1d5777);}},exports['getAccessibilityResultsSummary']=async _0x2f0234=>{const _0x2b8877=a34_0x1c1ae3,_0x4aa220={};_0x4aa220[_0x2b8877(0x189)]=_0x2b8877(0x1ab),_0x4aa220[_0x2b8877(0x1de)]=_0x2b8877(0x1c8);const _0x431fee=_0x4aa220;if(global['accessibilityPlatform'])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x2f0234,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x2f0234,scripts.getResultsSummary);return summaryResults;}catch{return logger[_0x2b8877(0x1a8)](_0x431fee['aQOyT']),{};}else return logger[_0x2b8877(0x1b0)](_0x431fee['LDOcg']),{};},exports['platformValidation']=async _0x1a4d7d=>{const _0xc271c3=a34_0x1c1ae3,_0x292296={'lBzin':function(_0x529557,_0x33ae77){return _0x529557!==_0x33ae77;},'VpFLu':_0xc271c3(0x1b8),'KHybn':function(_0x54abdd,_0x36e6a4){return _0x54abdd===_0x36e6a4;},'cgJsU':_0xc271c3(0x1ae),'rcuow':_0xc271c3(0x1d5),'KaNBh':_0xc271c3(0x1cc),'MGJEK':function(_0x432edf,_0x47c9b4){return _0x432edf(_0x47c9b4);},'bvpKk':function(_0x36369e,_0x121d73){return _0x36369e===_0x121d73;},'rqBlv':'latest','oVOSm':function(_0x26f579,_0x312447){return _0x26f579>_0x312447;},'XJlIl':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.'};try{if(!_0x292296['lBzin'](_0x1a4d7d[_0xc271c3(0x1d0)],''))return logger[_0xc271c3(0x1b0)](_0x292296[_0xc271c3(0x1a4)]),![];const _0x54adf2=_0x1a4d7d[_0xc271c3(0x1d9)];if(!(_0x292296[_0xc271c3(0x1c5)](_0x54adf2,_0x292296['cgJsU'])||_0x292296['KHybn'](_0x54adf2,_0x292296['rcuow'])))return logger[_0xc271c3(0x1b0)](_0x292296[_0xc271c3(0x1a0)]),![];const _0x55eb5a=_0x292296['MGJEK'](parseInt,_0x1a4d7d[_0xc271c3(0x1b5)]);if(!(_0x292296[_0xc271c3(0x19a)](_0x55eb5a,_0x292296['rqBlv'])||_0x292296['oVOSm'](_0x55eb5a,0x5e)))return logger[_0xc271c3(0x1b0)](_0x292296['XJlIl']),![];}catch(_0x5a6946){logger[_0xc271c3(0x1a8)](_0xc271c3(0x1d8)+util[_0xc271c3(0x1e0)](_0x5a6946));}return!![];},exports['processAccessibilityCaps']=(_0x14174d,_0x1e15ae,_0x14629f)=>{const _0x23ec42=a34_0x1c1ae3,_0x39a71d={'pNfAW':function(_0x1ec70e){return _0x1ec70e();},'UWxKR':_0x23ec42(0x1dd),'EQZlI':function(_0x3f3baf,_0x3b9585){return _0x3f3baf===_0x3b9585;},'IomIy':_0x23ec42(0x1ae),'ecdKM':_0x23ec42(0x1d5),'OBWtJ':_0x23ec42(0x1cc),'TlZrA':_0x23ec42(0x1a1),'dDnhW':function(_0x11466f,_0x463ee4){return _0x11466f>_0x463ee4;},'GqOVA':_0x23ec42(0x188),'mUgOX':function(_0x5561e9,_0xb24abc){return _0x5561e9(_0xb24abc);},'fLUYv':_0x23ec42(0x1b8),'xJumR':function(_0x3c4c95,_0x25a200){return _0x3c4c95+_0x25a200;},'wHvUS':function(_0x1a84da,_0x16cabb){return _0x1a84da(_0x16cabb);}};try{if(_0x39a71d[_0x23ec42(0x1c2)](isAccessibilityAutomationSession)){global[_0x23ec42(0x1d7)]=!![];!_0x14174d[_0x39a71d[_0x23ec42(0x1c7)]]&&(global['accessibilityPlatform']=![]);!(_0x39a71d[_0x23ec42(0x192)](_0x14174d[_0x23ec42(0x1e2)],_0x39a71d[_0x23ec42(0x19b)])||_0x39a71d[_0x23ec42(0x192)](_0x14174d['browserName'],_0x39a71d[_0x23ec42(0x1a6)]))&&(logger['warn'](_0x39a71d[_0x23ec42(0x1ca)]),global[_0x23ec42(0x1d7)]=![]);!(_0x39a71d['EQZlI'](_0x14174d['browser_version'],_0x39a71d[_0x23ec42(0x1a9)])||_0x39a71d[_0x23ec42(0x1c0)](_0x14174d[_0x23ec42(0x1b5)],0x5e))&&(logger[_0x23ec42(0x1b0)](_0x39a71d[_0x23ec42(0x186)]),global[_0x23ec42(0x1d7)]=![]);!_0x39a71d[_0x23ec42(0x1aa)](isUndefined,_0x14174d[_0x23ec42(0x1d0)])&&(logger['warn'](_0x39a71d['fLUYv']),global[_0x23ec42(0x1d7)]=![]);if(!global[_0x23ec42(0x1d7)]){_0x14174d[_0x39a71d['UWxKR']]=![];const _0x1e4ce6=_0x39a71d[_0x23ec42(0x1bb)](_0x1e15ae,_0x39a71d[_0x23ec42(0x187)](encodeURIComponent,JSON['stringify'](_0x14174d)));_0x14629f&&(_0x14629f['currentTest'][_0x23ec42(0x1ad)]['project']['use'][_0x23ec42(0x1af)][_0x23ec42(0x19f)]=_0x1e4ce6,_0x14629f[_0x23ec42(0x1a7)][_0x23ec42(0x194)][_0x23ec42(0x1b2)]['connectOptions'][_0x23ec42(0x19f)]=_0x1e4ce6);}}}catch(_0x5435fe){logger['debug'](_0x23ec42(0x1a5)+util[_0x23ec42(0x1e0)](_0x5435fe));}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a35_0x5becb3=a35_0x3fd0;function a35_0x3fd0(_0x46ac5f,_0x294ee9){const _0x481174=a35_0x4811();return a35_0x3fd0=function(_0x3fd0be,_0x5c3177){_0x3fd0be=_0x3fd0be-0x183;let _0x484e84=_0x481174[_0x3fd0be];return _0x484e84;},a35_0x3fd0(_0x46ac5f,_0x294ee9);}(function(_0x43ee65,_0x4d0748){const _0x1f8b45=a35_0x3fd0,_0x1f494e=_0x43ee65();while(!![]){try{const _0x5d7bf2=parseInt(_0x1f8b45(0x1bf))/0x1+-parseInt(_0x1f8b45(0x1cd))/0x2*(-parseInt(_0x1f8b45(0x195))/0x3)+parseInt(_0x1f8b45(0x19d))/0x4*(parseInt(_0x1f8b45(0x1df))/0x5)+parseInt(_0x1f8b45(0x1a6))/0x6*(parseInt(_0x1f8b45(0x1a8))/0x7)+-parseInt(_0x1f8b45(0x19c))/0x8*(-parseInt(_0x1f8b45(0x211))/0x9)+parseInt(_0x1f8b45(0x1bb))/0xa+-parseInt(_0x1f8b45(0x1fb))/0xb*(parseInt(_0x1f8b45(0x21a))/0xc);if(_0x5d7bf2===_0x4d0748)break;else _0x1f494e['push'](_0x1f494e['shift']());}catch(_0x67327b){_0x1f494e['push'](_0x1f494e['shift']());}}}(a35_0x4811,0xb805c));const fs=require('fs'),path=require(a35_0x5becb3(0x20d)),{spawn}=require('child_process'),{format}=require(a35_0x5becb3(0x1a5)),logger=require(a35_0x5becb3(0x1bc))[a35_0x5becb3(0x18c)],{default:BrowserStackSetup}=require(a35_0x5becb3(0x21d)),helper=require(a35_0x5becb3(0x196)),utilities=require(a35_0x5becb3(0x207)),constants=require(a35_0x5becb3(0x1e2)),{FRAMEWORKS}=require(a35_0x5becb3(0x1b6)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require(a35_0x5becb3(0x21b)),{CrashReporter}=require(a35_0x5becb3(0x19a)),{getFrameworkVersion}=require(a35_0x5becb3(0x1aa)),{checkAccessibilityPlatformConfig}=require(a35_0x5becb3(0x1b9)),{setAccessibilityCapabilities}=require('./accessibility-helper'),TestHubHandler=require(a35_0x5becb3(0x218)),{shouldProcessEventForTesthub}=require(a35_0x5becb3(0x1f5)),getUserPlaywrightConfig=async(_0x15aa76,_0x65410f)=>{const _0x3726ba=a35_0x5becb3,_0x30853a={'fMCZa':function(_0x24c76e){return _0x24c76e();},'ytTrz':function(_0x1580b7,_0x423d5c){return _0x1580b7(_0x423d5c);},'vnHbe':function(_0x4c0c63,_0x58f234){return _0x4c0c63(_0x58f234);},'tovqu':_0x3726ba(0x210),'iuQrK':_0x3726ba(0x1f9)},_0x3630c8=!helper['isUndefined'](_0x15aa76[_0x3726ba(0x1ab)]),_0x41d830=_0x3630c8?path[_0x3726ba(0x18d)](process[_0x3726ba(0x1ec)](),_0x15aa76[_0x3726ba(0x1ab)]):process[_0x3726ba(0x1ec)](),{resolveConfigFile:_0x1dc070,resolveConfigLocation:_0x3ae501}=helper[_0x3726ba(0x1bd)][_0x3726ba(0x1cc)](null,_0x30853a['fMCZa'](getConfigLoaderPath)),_0x2515a2=_0x1dc070?_0x30853a[_0x3726ba(0x190)](_0x1dc070,_0x41d830):helper[_0x3726ba(0x1a9)](_0x30853a[_0x3726ba(0x1db)](_0x3ae501,_0x41d830),[_0x30853a['tovqu']]),_0x523fef={};if(_0x3630c8){const _0x10f220=_0x65410f['findIndex'](_0x4c93d6=>_0x4c93d6===_0x3726ba(0x1b2)||_0x4c93d6==='-c'||_0x4c93d6[_0x3726ba(0x213)](_0x3726ba(0x1f9)));_0x65410f[_0x3726ba(0x1c9)](_0x10f220,_0x65410f[_0x10f220]['startsWith'](_0x30853a[_0x3726ba(0x20a)])?0x1:0x2);}const _0x5d876b={};return _0x5d876b['path']=_0x2515a2,_0x5d876b[_0x3726ba(0x1ab)]=_0x523fef,_0x5d876b;},handleO11yRerun=_0x1ba932=>{const _0x2bcb33=a35_0x5becb3,_0xef51d3={};_0xef51d3['rSxog']=function(_0x13037a,_0x53b046){return _0x13037a!==_0x53b046;},_0xef51d3[_0x2bcb33(0x1c3)]=_0x2bcb33(0x1a3),_0xef51d3['JcRFd']=_0x2bcb33(0x185);const _0x21aafd=_0xef51d3,_0x1c1423=helper[_0x2bcb33(0x1d9)](process[_0x2bcb33(0x1d2)][_0x2bcb33(0x18a)]);if(_0x1c1423){const _0x3d9738=process[_0x2bcb33(0x1d2)][_0x2bcb33(0x1ac)],_0x15c253=[];if(_0x21aafd['rSxog'](_0x3d9738,_0x21aafd['VHTBY'])&&!helper['isUndefined'](_0x3d9738)){_0x3d9738[_0x2bcb33(0x221)](',')[_0x2bcb33(0x19b)](_0x367221=>{const _0x15926c=_0x2bcb33;_0x15c253['push']('('+_0x367221[_0x15926c(0x19e)]()+')');});const _0x8dbc3b='^'+_0x15c253['join']('|')+'$';_0x1ba932['push'](_0x21aafd[_0x2bcb33(0x21f)],_0x8dbc3b);}}},spawnOriginalProcess=_0x136d95=>{const _0x38ca59=a35_0x5becb3,_0x17e028={'VyQPL':function(_0x21caf0,_0x2ee14d,_0x4cc59d,_0x51877b){return _0x21caf0(_0x2ee14d,_0x4cc59d,_0x51877b);},'TfTYr':'npx','nMuLS':_0x38ca59(0x21c),'erVbm':function(_0x194fa1,_0x5abc65){return _0x194fa1===_0x5abc65;},'KqKie':_0x38ca59(0x1d1),'uHUnd':'inherit'};_0x17e028['VyQPL'](spawn,_0x17e028[_0x38ca59(0x208)],[_0x17e028[_0x38ca59(0x193)],..._0x136d95['slice'](0x1)],{'shell':_0x17e028[_0x38ca59(0x1b4)](process[_0x38ca59(0x1be)],_0x17e028[_0x38ca59(0x1ea)]),'stdio':_0x17e028['uHUnd'],'cwd':process[_0x38ca59(0x1ec)]()});},isTestCommand=(_0xb716d4,_0x43709b)=>{const _0x1c8183=a35_0x5becb3,_0x1edb09={};_0x1edb09[_0x1c8183(0x1fc)]=function(_0x2ef04f,_0x2bde02){return _0x2ef04f>_0x2bde02;},_0x1edb09[_0x1c8183(0x18f)]=function(_0x1e4396,_0x40936f){return _0x1e4396===_0x40936f;},_0x1edb09[_0x1c8183(0x1e1)]=_0x1c8183(0x1ae);const _0x98a152=_0x1edb09;if(_0x98a152[_0x1c8183(0x1fc)](_0x43709b['length'],0x1)&&_0x98a152[_0x1c8183(0x18f)](_0x43709b[0x1],_0x98a152[_0x1c8183(0x1e1)]))return!![];return![];};async function run(_0x46d0cc,_0x41bb22){const _0x4b11d1=a35_0x5becb3,_0x24a90f={'VMuJc':_0x4b11d1(0x1d5),'YlxNz':_0x4b11d1(0x189),'SVSzY':function(_0x189d53,_0xc21127){return _0x189d53+_0xc21127;},'LgqGO':'Error\x20in\x20getting\x20funnel\x20data\x20results','NgMSk':_0x4b11d1(0x1ee),'XFskQ':function(_0x58389c){return _0x58389c();},'khpsA':function(_0x2fd320,_0x74af9f){return _0x2fd320+_0x74af9f;},'QWhrg':_0x4b11d1(0x1c7),'jVOSM':_0x4b11d1(0x201),'JGaZt':_0x4b11d1(0x1c1),'XXVfT':_0x4b11d1(0x205),'ftYQi':function(_0x4567fb,_0x5374e3){return _0x4567fb>=_0x5374e3;},'zgIqc':function(_0x2e893e,_0x3c15e5){return _0x2e893e+_0x3c15e5;},'rKgHj':_0x4b11d1(0x1d8),'PnBdb':function(_0x4e69b9,_0x2f2ab9,_0x1d0b20){return _0x4e69b9(_0x2f2ab9,_0x1d0b20);},'YkJaw':function(_0x3cfb73,_0x1deabd){return _0x3cfb73(_0x1deabd);},'eiFrV':_0x4b11d1(0x1f3),'ZCxcR':'automation','mFuAi':function(_0x3e3476,_0x10cce0){return _0x3e3476!=_0x10cce0;},'SBquE':function(_0x522944,_0x1b32d2,_0x5c4b9b){return _0x522944(_0x1b32d2,_0x5c4b9b);},'hEODN':function(_0x26c896,_0x38a47e){return _0x26c896===_0x38a47e;},'INgid':'true','uuCVr':function(_0x321d45,_0x1d5902){return _0x321d45(_0x1d5902);},'DqnAX':_0x4b11d1(0x188),'VAkdo':function(_0x5cab48,_0x116103){return _0x5cab48===_0x116103;},'CVKFL':_0x4b11d1(0x1ad),'StXEx':_0x4b11d1(0x1af),'QTFSe':function(_0x5a977c,_0x65f138){return _0x5a977c-_0x65f138;},'hgGyu':function(_0x591c18,_0x1a5985){return _0x591c18+_0x1a5985;},'zejKT':_0x4b11d1(0x1a1),'Psogv':function(_0x518378,_0x3a81ce){return _0x518378>_0x3a81ce;},'nWOMs':function(_0x3dd40c,_0x50ac8a){return _0x3dd40c+_0x50ac8a;},'tTeuh':function(_0x200b93,_0x5ee783,_0x3ece62,_0x168ab0){return _0x200b93(_0x5ee783,_0x3ece62,_0x168ab0);},'DpREd':_0x4b11d1(0x20c),'ayHYK':'playwright','wtdgF':'test','uygZz':_0x4b11d1(0x1b2),'EflGX':function(_0xe015cd,_0x390756){return _0xe015cd===_0x390756;},'rykDl':_0x4b11d1(0x1d1),'HqoCV':_0x4b11d1(0x1b7),'KSRCN':'close'};!helper[_0x4b11d1(0x1e3)](process[_0x4b11d1(0x1d2)]['BROWSERSTACK_AUTOMATION'])&&(process[_0x4b11d1(0x1d2)][_0x4b11d1(0x1ed)]=!![]);process[_0x4b11d1(0x1b3)][_0x4b11d1(0x202)](_0x24a90f[_0x4b11d1(0x1eb)])&&(process[_0x4b11d1(0x1d2)][_0x4b11d1(0x1ed)]=_0x24a90f['JGaZt'],_0x41bb22=_0x41bb22[_0x4b11d1(0x1a4)](_0x1dc18f=>_0x1dc18f!==_0x4b11d1(0x201)));const _0x554293=_0x41bb22['indexOf'](_0x24a90f[_0x4b11d1(0x1c8)]);_0x24a90f[_0x4b11d1(0x209)](_0x554293,0x0)&&(process[_0x4b11d1(0x1d2)][_0x4b11d1(0x1f1)]=_0x24a90f[_0x4b11d1(0x1e0)],_0x41bb22=_0x41bb22[_0x4b11d1(0x1a4)](_0x411c3d=>_0x411c3d!=='--disable-test-observability'));try{const _0x47a4d7=path[_0x4b11d1(0x1ce)](helper[_0x4b11d1(0x186)](),_0x24a90f[_0x4b11d1(0x215)],_0x24a90f['YlxNz']);fs[_0x4b11d1(0x1e9)](_0x47a4d7)&&fs[_0x4b11d1(0x1de)](_0x47a4d7);}catch(_0x56f58b){logger[_0x4b11d1(0x200)](_0x24a90f[_0x4b11d1(0x1c2)](_0x24a90f[_0x4b11d1(0x1d3)],_0x56f58b));}if(!_0x24a90f['PnBdb'](isTestCommand,_0x46d0cc,_0x41bb22)){_0x24a90f['YkJaw'](spawnOriginalProcess,_0x41bb22);return;}const _0x3451ca=new BrowserStackSetup(_0x46d0cc,FRAMEWORKS['PLAYWRIGHT']);if(!_0x3451ca['config']){logger[_0x4b11d1(0x184)](_0x24a90f[_0x4b11d1(0x212)]);return;}await _0x3451ca[_0x4b11d1(0x204)]();!helper['isUndefined'](_0x3451ca['cliConfig'])&&_0x3451ca['cliConfig'][_0x4b11d1(0x1da)](_0x24a90f[_0x4b11d1(0x217)])&&(process[_0x4b11d1(0x1d2)]['BROWSERSTACK_AUTOMATION']=_0x3451ca[_0x4b11d1(0x1e5)]['get'](_0x24a90f[_0x4b11d1(0x217)])||!![]);_0x24a90f[_0x4b11d1(0x1d6)](_0x3451ca[_0x4b11d1(0x1ab)][_0x4b11d1(0x219)],null)&&!helper['isTrue'](process[_0x4b11d1(0x1d2)][_0x4b11d1(0x1f1)])&&(process[_0x4b11d1(0x1d2)][_0x4b11d1(0x1f1)]=process[_0x4b11d1(0x1d2)][_0x4b11d1(0x1f1)]||_0x3451ca[_0x4b11d1(0x1ab)]['testObservability']);const _0x546f4b=!helper[_0x4b11d1(0x1e3)](process['env'][_0x4b11d1(0x1f1)]);let _0x2db3f5=![];_0x3451ca['config']['accessibility']&&(_0x2db3f5=!![],process['env'][_0x4b11d1(0x19f)]=_0x3451ca['config'][_0x4b11d1(0x20b)]);_0x3451ca['config']['accessibilityOptions']&&(process[_0x4b11d1(0x1d2)][_0x4b11d1(0x1f6)]=JSON[_0x4b11d1(0x1b5)](_0x3451ca['config'][_0x4b11d1(0x1f2)]));const _0x37a97d=_0x41bb22['concat'](),_0x293936=await _0x24a90f['SBquE'](getUserPlaywrightConfig,_0x46d0cc,_0x41bb22);if(helper[_0x4b11d1(0x1fd)](_0x293936)){_0x24a90f['YkJaw'](spawnOriginalProcess,_0x37a97d);return;}const _0x2207f6=_0x293936[_0x4b11d1(0x20d)]?path[_0x4b11d1(0x187)](_0x293936[_0x4b11d1(0x20d)]):process['cwd']();process[_0x4b11d1(0x1d2)]['BROWSERSTACK_PW_CONFIG_DIR']=_0x2207f6,await TestHubHandler[_0x4b11d1(0x20e)](FRAMEWORKS[_0x4b11d1(0x194)],_0x3451ca);_0x546f4b&&_0x24a90f[_0x4b11d1(0x20f)](handleO11yRerun,_0x41bb22);let _0x1fe5ff=_0x24a90f['hEODN'](process['env'][_0x4b11d1(0x19f)],_0x24a90f[_0x4b11d1(0x1d7)]);_0x1fe5ff=_0x1fe5ff||_0x24a90f[_0x4b11d1(0x20f)](checkAccessibilityPlatformConfig,_0x3451ca[_0x4b11d1(0x1ab)]),process[_0x4b11d1(0x1d2)][_0x4b11d1(0x19f)]=_0x1fe5ff;_0x1fe5ff&&_0x24a90f[_0x4b11d1(0x1c5)](setAccessibilityCapabilities,_0x3451ca[_0x4b11d1(0x1ab)]);const _0x500f5a=path['join'](_0x293936[_0x4b11d1(0x20d)]?path[_0x4b11d1(0x187)](_0x293936['path']):process[_0x4b11d1(0x1ec)](),_0x24a90f['DqnAX']);fs[_0x4b11d1(0x203)](_0x500f5a,helper[_0x4b11d1(0x18b)](_0x3451ca['config'])),process['env'][_0x4b11d1(0x1f4)]=_0x500f5a,helper[_0x4b11d1(0x1e4)]();let _0x4cfa70='';_0x24a90f[_0x4b11d1(0x21e)](helper['getPackageType'](),constants[_0x4b11d1(0x1e7)][_0x4b11d1(0x1f0)])?_0x4cfa70=_0x24a90f[_0x4b11d1(0x1b8)]:_0x4cfa70=_0x24a90f[_0x4b11d1(0x197)];let _0x59d4eb='';if(helper[_0x4b11d1(0x220)](_0x293936[_0x4b11d1(0x20d)])){_0x59d4eb='\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a';const _0x37db17=_0x4cfa70[_0x4b11d1(0x221)]('.');_0x37db17[_0x24a90f[_0x4b11d1(0x1fe)](_0x37db17[_0x4b11d1(0x206)],0x1)]='ts',_0x4cfa70=_0x37db17[_0x4b11d1(0x1ce)]('.'),logger['debug'](_0x24a90f[_0x4b11d1(0x1a2)](_0x24a90f['zejKT'],_0x4cfa70));}else _0x59d4eb=_0x4b11d1(0x18e);const _0x173509=path[_0x4b11d1(0x1ce)](_0x293936[_0x4b11d1(0x20d)]?path[_0x4b11d1(0x187)](_0x293936[_0x4b11d1(0x20d)]):process[_0x4b11d1(0x1ec)](),_0x4cfa70);let _0x482095=_0x293936['path']?_0x293936['path']:'';_0x482095=_0x24a90f[_0x4b11d1(0x214)](_0x482095[_0x4b11d1(0x206)],0x0)?path[_0x4b11d1(0x18d)](_0x482095):'',process[_0x4b11d1(0x1d2)]['USER_CONFIG_DETAILS_PATH']=_0x482095;const _0x2869f3=helper[_0x4b11d1(0x199)](_0x3451ca[_0x4b11d1(0x1ab)]);_0x2869f3&&(_0x59d4eb=_0x24a90f['nWOMs']('process.env.GLOBAL_AGENT_HTTP_PROXY=\x22'+_0x2869f3+'\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();',_0x59d4eb));helper['filterBrowserstackConfig']({},_0x41bb22),fs[_0x4b11d1(0x203)](_0x173509,_0x59d4eb),helper[_0x4b11d1(0x1c6)]();const _0x3026df=_0x24a90f[_0x4b11d1(0x1c0)](spawn,_0x24a90f['DpREd'],[_0x24a90f[_0x4b11d1(0x1ca)],_0x24a90f[_0x4b11d1(0x1a0)],_0x24a90f[_0x4b11d1(0x1b0)],_0x173509,..._0x41bb22[_0x4b11d1(0x1d0)](0x2)],{'shell':_0x24a90f[_0x4b11d1(0x191)](process[_0x4b11d1(0x1be)],_0x24a90f['rykDl']),'stdio':_0x24a90f['HqoCV'],'cwd':process['cwd'](),'env':Object[_0x4b11d1(0x1b1)]({},process['env'],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x4b11d1(0x198)](_0x46d0cc),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x3451ca['config'][_0x4b11d1(0x1e8)][_0x4b11d1(0x1dd)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x3451ca[_0x4b11d1(0x1ab)]['testContextOptions'][_0x4b11d1(0x1ba)],'BROWSERSTACK_LOG_LEVEL':_0x3451ca[_0x4b11d1(0x1ab)][_0x4b11d1(0x1cf)]})}),_0x33b9e0=()=>{const _0x42e2d5=_0x4b11d1;try{const _0x3a54d6=path['join'](helper[_0x42e2d5(0x186)](),_0x24a90f['VMuJc'],_0x24a90f[_0x42e2d5(0x1e6)]);if(fs[_0x42e2d5(0x1e9)](_0x3a54d6)){let _0x1794fc=fs['readFileSync'](_0x3a54d6);_0x1794fc=JSON[_0x42e2d5(0x1f8)](_0x1794fc),_0x3451ca[_0x42e2d5(0x1ff)]=_0x1794fc,fs[_0x42e2d5(0x1de)](_0x3a54d6);}}catch(_0xcaa53a){logger[_0x42e2d5(0x200)](_0x24a90f[_0x42e2d5(0x1f7)](_0x24a90f['LgqGO'],_0xcaa53a));}};_0x3026df['on'](_0x24a90f[_0x4b11d1(0x192)],async _0x1d3d86=>{const _0x4b03a=_0x4b11d1;try{const _0x15b5d9=_0x24a90f[_0x4b03a(0x1c4)][_0x4b03a(0x221)]('|');let _0x3e0074=0x0;while(!![]){switch(_0x15b5d9[_0x3e0074++]){case'0':await TestHubHandler[_0x4b03a(0x1cb)]();continue;case'1':fs[_0x4b03a(0x1de)](_0x500f5a);continue;case'2':await utilities[_0x4b03a(0x1a7)](_0x3451ca);continue;case'3':logger[_0x4b03a(0x1ef)]('Deleting\x20'+_0x173509);continue;case'4':fs[_0x4b03a(0x1de)](_0x173509);continue;case'5':_0x24a90f['XFskQ'](_0x33b9e0);continue;case'6':logger['debug'](_0x4b03a(0x1dc)+_0x500f5a);continue;case'7':logger[_0x4b03a(0x200)](_0x4b03a(0x216)+_0x1d3d86);continue;case'8':process['exitCode']=_0x1d3d86;continue;}break;}}catch(_0x412ed8){logger[_0x4b03a(0x200)](_0x24a90f[_0x4b03a(0x1d4)](_0x24a90f[_0x4b03a(0x1fa)],_0x412ed8));}});}module[a35_0x5becb3(0x183)]=run;function a35_0x4811(){const _0x25dc19=['eiFrV','startsWith','Psogv','VMuJc','Playwright\x20process\x20exited\x20with\x20code\x20','ZCxcR','../../helpers/testhub/testhubHandler','testObservability','36yUBGYu','./reporter/pwUtils','playwright','../../helpers/BrowserStackSetup','VAkdo','JcRFd','isTypescriptProject','split','exports','error','--grep','homedir','dirname','browserstackSetupConfig.json','pw_result.json','BROWSERSTACK_RERUN','serializeToYamlString','winstonLogger','resolve','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','hkVRw','ytTrz','EflGX','KSRCN','nMuLS','PLAYWRIGHT','3KniQER','../../helpers/helper','StXEx','getConfigPath','getProxyUrl','../../helpers/test-observability/error-handler','map','16440kECBIl','196iPKmva','trim','BROWSERSTACK_TEST_ACCESSIBILITY_YML','wtdgF','Updated\x20config\x20file\x20name\x20to\x20-\x20','hgGyu','null','filter','util','17664HaAHkm','finalExecution','1169gphYWu','nestedKeyValue','../../helpers/test-observability/utils','config','BROWSERSTACK_RERUN_TESTS','playwright-browserstack-sdk.config.cjs','test','playwright-browserstack-sdk.config.js','uygZz','assign','--config','argv','erVbm','stringify','../../helpers/test-observability/constants','inherit','CVKFL','../../helpers/accessibility-automation/helper','skipSessionName','2077270CryVVR','../../helpers/logger','requirePWModule','platform','725510YKaBiy','tTeuh','false','zgIqc','VHTBY','NgMSk','uuCVr','markSDKSetupComplete','Error\x20in\x20closing\x20playwright','XXVfT','splice','ayHYK','stop','apply','1089442dEpjNa','join','logLevel','slice','win32','env','rKgHj','khpsA','.browserstack','mFuAi','INgid','Error\x20in\x20deleting\x20playwright\x20results','isTrue','has','vnHbe','Deleting\x20','skipSessionStatus','unlinkSync','107845MOyyVn','JGaZt','HSQOR','../utils/constants','isFalse','clearTempPWConfig','cliConfig','YlxNz','PACKAGE_TYPE','testContextOptions','existsSync','KqKie','jVOSM','cwd','BROWSERSTACK_AUTOMATION','5|0|2|8|7|3|4|6|1','info','MODULE','BROWSERSTACK_TEST_OBSERVABILITY','accessibilityOptions','BrowserStack\x20config\x20file\x20not\x20found.','BROWSERSTACK_SETUP_CONFIG_PATH','../../helpers/testhub/utils','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','SVSzY','parse','--config=','QWhrg','10646592pWJlzy','oGGzK','isUndefined','QTFSe','errorMessage','debug','--disable-browserstack-automation','includes','writeFileSync','initialize','--disable-test-observability','length','../../helpers/utilities','TfTYr','ftYQi','iuQrK','accessibility','npx','path','launchBuild','YkJaw','resolvedConfigFile','2763CFqtxE'];a35_0x4811=function(){return _0x25dc19;};return a35_0x4811();}
|
|
2
|
+
'use strict';const a35_0x1c4051=a35_0x5266;(function(_0x50d387,_0x25980e){const _0x331b81=a35_0x5266,_0x2123ae=_0x50d387();while(!![]){try{const _0x2c5c75=parseInt(_0x331b81(0x22d))/0x1*(-parseInt(_0x331b81(0x203))/0x2)+parseInt(_0x331b81(0x1e5))/0x3*(-parseInt(_0x331b81(0x258))/0x4)+-parseInt(_0x331b81(0x200))/0x5*(-parseInt(_0x331b81(0x205))/0x6)+parseInt(_0x331b81(0x218))/0x7*(-parseInt(_0x331b81(0x239))/0x8)+-parseInt(_0x331b81(0x237))/0x9*(-parseInt(_0x331b81(0x1f4))/0xa)+parseInt(_0x331b81(0x1fc))/0xb*(parseInt(_0x331b81(0x1f8))/0xc)+parseInt(_0x331b81(0x240))/0xd;if(_0x2c5c75===_0x25980e)break;else _0x2123ae['push'](_0x2123ae['shift']());}catch(_0x1cd8e4){_0x2123ae['push'](_0x2123ae['shift']());}}}(a35_0x1365,0xea728));function a35_0x5266(_0x24f3f1,_0x3436d7){const _0x136591=a35_0x1365();return a35_0x5266=function(_0x5266c8,_0x1365ac){_0x5266c8=_0x5266c8-0x1c6;let _0x375491=_0x136591[_0x5266c8];return _0x375491;},a35_0x5266(_0x24f3f1,_0x3436d7);}const fs=require('fs'),path=require(a35_0x1c4051(0x1cf)),{spawn}=require(a35_0x1c4051(0x21c)),{format}=require(a35_0x1c4051(0x244)),logger=require(a35_0x1c4051(0x1e0))[a35_0x1c4051(0x250)],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require('../../helpers/helper'),utilities=require(a35_0x1c4051(0x228)),constants=require(a35_0x1c4051(0x206)),{FRAMEWORKS}=require(a35_0x1c4051(0x1ce)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require(a35_0x1c4051(0x24c)),{CrashReporter}=require(a35_0x1c4051(0x249)),{getFrameworkVersion}=require(a35_0x1c4051(0x1d3)),{checkAccessibilityPlatformConfig}=require(a35_0x1c4051(0x23b)),{setAccessibilityCapabilities}=require(a35_0x1c4051(0x207)),TestHubHandler=require(a35_0x1c4051(0x201)),{shouldProcessEventForTesthub}=require(a35_0x1c4051(0x242)),getUserPlaywrightConfig=async(_0x230d11,_0x55cfb0)=>{const _0x568c89=a35_0x1c4051,_0xbe05e0={'rEPjV':function(_0x8279c1){return _0x8279c1();},'vCTBi':function(_0x4e3f64,_0x10860a){return _0x4e3f64(_0x10860a);},'oQdYg':_0x568c89(0x1e8),'hHLvT':_0x568c89(0x1d5)},_0x80de71=!helper[_0x568c89(0x234)](_0x230d11[_0x568c89(0x1e7)]),_0x1d64f1=_0x80de71?path[_0x568c89(0x1d0)](process[_0x568c89(0x233)](),_0x230d11['config']):process[_0x568c89(0x233)](),{resolveConfigFile:_0x2b362a,resolveConfigLocation:_0x23c5d2}=helper[_0x568c89(0x255)][_0x568c89(0x1f3)](null,_0xbe05e0[_0x568c89(0x1ca)](getConfigLoaderPath)),_0x445051=_0x2b362a?_0xbe05e0['vCTBi'](_0x2b362a,_0x1d64f1):helper[_0x568c89(0x1fe)](_0xbe05e0['vCTBi'](_0x23c5d2,_0x1d64f1),[_0xbe05e0[_0x568c89(0x1ec)]]),_0x5bb568={};if(_0x80de71){const _0x31d5f2=_0x55cfb0['findIndex'](_0x48945f=>_0x48945f===_0x568c89(0x262)||_0x48945f==='-c'||_0x48945f[_0x568c89(0x254)](_0x568c89(0x1d5)));_0x55cfb0[_0x568c89(0x21f)](_0x31d5f2,_0x55cfb0[_0x31d5f2]['startsWith'](_0xbe05e0['hHLvT'])?0x1:0x2);}const _0x1eea42={};return _0x1eea42['path']=_0x445051,_0x1eea42[_0x568c89(0x1e7)]=_0x5bb568,_0x1eea42;},handleO11yRerun=_0x42e067=>{const _0x2b9778=a35_0x1c4051,_0x13f7f2={};_0x13f7f2['mtBNS']=function(_0xbb2737,_0x3f362c){return _0xbb2737!==_0x3f362c;},_0x13f7f2[_0x2b9778(0x1cb)]=_0x2b9778(0x253),_0x13f7f2[_0x2b9778(0x1f0)]=_0x2b9778(0x20e);const _0x22bd0a=_0x13f7f2,_0x65eb3f=helper[_0x2b9778(0x1f5)](process[_0x2b9778(0x219)][_0x2b9778(0x1cd)]);if(_0x65eb3f){const _0x1704ad=process['env']['BROWSERSTACK_RERUN_TESTS'],_0x4dc1b2=[];if(_0x22bd0a[_0x2b9778(0x1f2)](_0x1704ad,_0x22bd0a['KVrbL'])&&!helper[_0x2b9778(0x234)](_0x1704ad)){_0x1704ad[_0x2b9778(0x217)](',')['map'](_0x1dd6a3=>{const _0x157b8f=_0x2b9778;_0x4dc1b2[_0x157b8f(0x1d4)]('('+_0x1dd6a3[_0x157b8f(0x231)]()+')');});const _0x3764b6='^'+_0x4dc1b2[_0x2b9778(0x232)]('|')+'$';_0x42e067[_0x2b9778(0x1d4)](_0x22bd0a[_0x2b9778(0x1f0)],_0x3764b6);}}},spawnOriginalProcess=_0x5a512e=>{const _0x1cd1b2=a35_0x1c4051,_0x1957fd={'gCmUs':function(_0x14198c,_0xb6835c,_0x443cec,_0x4d40ac){return _0x14198c(_0xb6835c,_0x443cec,_0x4d40ac);},'HwJsa':'npx','njPpM':'playwright','tvoBr':function(_0xb31f2,_0x29679d){return _0xb31f2===_0x29679d;},'jETSM':_0x1cd1b2(0x25f),'SRYgh':'inherit'};_0x1957fd[_0x1cd1b2(0x1c6)](spawn,_0x1957fd[_0x1cd1b2(0x21b)],[_0x1957fd[_0x1cd1b2(0x20b)],..._0x5a512e[_0x1cd1b2(0x220)](0x1)],{'shell':_0x1957fd[_0x1cd1b2(0x216)](process[_0x1cd1b2(0x227)],_0x1957fd['jETSM']),'stdio':_0x1957fd[_0x1cd1b2(0x1c8)],'cwd':process[_0x1cd1b2(0x233)]()});},isTestCommand=(_0x36944e,_0x40be8f)=>{const _0x142dbb=a35_0x1c4051,_0x126536={};_0x126536[_0x142dbb(0x230)]=function(_0x5943aa,_0x2bcf89){return _0x5943aa>_0x2bcf89;},_0x126536[_0x142dbb(0x257)]=function(_0x537d11,_0x45d61f){return _0x537d11===_0x45d61f;},_0x126536[_0x142dbb(0x259)]=_0x142dbb(0x223);const _0x4cc770=_0x126536;if(_0x4cc770[_0x142dbb(0x230)](_0x40be8f[_0x142dbb(0x246)],0x1)&&_0x4cc770[_0x142dbb(0x257)](_0x40be8f[0x1],_0x4cc770[_0x142dbb(0x259)]))return!![];return![];};function a35_0x1365(){const _0x5cfb88=['BROWSERSTACK_TEST_ACCESSIBILITY_YML','unlinkSync','--grep','writeFileSync','Error\x20in\x20deleting\x20playwright\x20results','concat','AMkGK','YiPSQ','wsVWQ','stringify','tvoBr','split','74669ZEVQKf','env','filterBrowserstackConfig','HwJsa','child_process','isTypescriptProject','Error\x20in\x20getting\x20funnel\x20data\x20results','splice','slice','playwright-browserstack-sdk.config.js','argv','test','getConfigPath','.browserstack','existsSync','platform','../../helpers/utilities','AHSRS','Updated\x20config\x20file\x20name\x20to\x20-\x20','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','markSDKSetupComplete','53VUQhmP','BROWSERSTACK_AUTOMATION','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','SXuWf','trim','join','cwd','isUndefined','browserstackSetupConfig.json','dirname','15678459rvAcaH','debug','696baRXEw','BROWSERSTACK_TEST_OBSERVABILITY','../../helpers/accessibility-automation/helper','filter','serializeToYamlString','pw_result.json','npx','17227496UVqfbv','OZGwK','../../helpers/testhub/utils','BELlR','util','true','length','has','ZuFft','../../helpers/test-observability/error-handler','lDkNy','inherit','./reporter/pwUtils','close','parse','accessibilityOptions','winstonLogger','indexOf','exports','null','startsWith','requirePWModule','spfAE','mDvoU','10964uaXuUX','NLdHP','finalExecution','Nvczf','gTIsr','mcNOQ','wEmfM','win32','jlOmg','skipSessionStatus','--config','gCmUs','iqVlZ','SRYgh','Playwright\x20process\x20exited\x20with\x20code\x20','rEPjV','KVrbL','getProxyUrl','BROWSERSTACK_RERUN','../../helpers/test-observability/constants','path','resolve','uqrbq','NBwnd','../../helpers/test-observability/utils','push','--config=','--disable-test-observability','bYGYP','false','errorMessage','launchBuild','--disable-browserstack-automation','Error\x20in\x20closing\x20playwright','homedir','ysiXN','clearTempPWConfig','../../helpers/logger','assign','KjboZ','dhNoQ','playwright','669SBBjZh','yecuS','config','resolvedConfigFile','testObservability','ECDYw','CzoRE','oQdYg','BROWSERSTACK_SETUP_CONFIG_PATH','PACKAGE_TYPE','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','frhmA','automation','mtBNS','apply','10JuPDEn','isTrue','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','testContextOptions','252pTXLwq','get','fCdwH','Deleting\x20','341231vwNZca','isFalse','nestedKeyValue','skipSessionName','635dcvnvX','../../helpers/testhub/testhubHandler','cliConfig','62246kOhSww','accessibility','20334xZpcxN','../utils/constants','./accessibility-helper','\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();','exitCode','yDGAS','njPpM'];a35_0x1365=function(){return _0x5cfb88;};return a35_0x1365();}async function run(_0x1f99be,_0x160c64){const _0x4f6913=a35_0x1c4051,_0x374ecc={'XaXXW':_0x4f6913(0x225),'NBwnd':_0x4f6913(0x23e),'bYGYP':function(_0x442b73,_0x23aca4){return _0x442b73+_0x23aca4;},'ECDYw':_0x4f6913(0x21e),'BELlR':'4|5|7|8|6|0|2|1|3','mcNOQ':function(_0x296942){return _0x296942();},'iqVlZ':_0x4f6913(0x1dc),'tjhpF':'--disable-browserstack-automation','yDGAS':_0x4f6913(0x1d8),'ATRZd':'--disable-test-observability','YiPSQ':function(_0x4bd17e,_0x5f80fe){return _0x4bd17e>=_0x5f80fe;},'dhNoQ':_0x4f6913(0x210),'AMkGK':function(_0x14568f,_0x2a8909,_0x5719b6){return _0x14568f(_0x2a8909,_0x5719b6);},'eiBkg':function(_0x25cf32,_0x4c94d9){return _0x25cf32(_0x4c94d9);},'spfAE':'BrowserStack\x20config\x20file\x20not\x20found.','fCdwH':_0x4f6913(0x1f1),'wEmfM':function(_0x5b5134,_0x57d2e4){return _0x5b5134!=_0x57d2e4;},'ZuFft':function(_0x5ad3bb,_0x511786,_0x309fe5){return _0x5ad3bb(_0x511786,_0x309fe5);},'gTIsr':function(_0x373e08,_0x5e3609){return _0x373e08(_0x5e3609);},'OLVrh':function(_0x11c9e0,_0x3e8e36){return _0x11c9e0(_0x3e8e36);},'Nvczf':function(_0xe420ca,_0x3846d7){return _0xe420ca===_0x3846d7;},'xtzzg':_0x4f6913(0x245),'RIPbq':function(_0x3aaebe,_0x3d3bf8){return _0x3aaebe(_0x3d3bf8);},'wsVWQ':_0x4f6913(0x235),'CzoRE':'playwright-browserstack-sdk.config.cjs','vNXvs':_0x4f6913(0x221),'hVxVx':function(_0x4d5ba6,_0x7cf287){return _0x4d5ba6-_0x7cf287;},'ysiXN':_0x4f6913(0x22a),'miBUr':function(_0x516747,_0x15a1c0){return _0x516747>_0x15a1c0;},'lDkNy':function(_0x10102b,_0x555e2e,_0x2eb782,_0x416f6c){return _0x10102b(_0x555e2e,_0x2eb782,_0x416f6c);},'uqrbq':_0x4f6913(0x23f),'yecuS':_0x4f6913(0x1e4),'jlOmg':_0x4f6913(0x223),'OZGwK':_0x4f6913(0x262),'AHSRS':_0x4f6913(0x25f),'TBUBz':_0x4f6913(0x24b),'KjboZ':_0x4f6913(0x24d)};!helper[_0x4f6913(0x1fd)](process[_0x4f6913(0x219)][_0x4f6913(0x22e)])&&(process[_0x4f6913(0x219)][_0x4f6913(0x22e)]=!![]);process[_0x4f6913(0x222)]['includes'](_0x374ecc['tjhpF'])&&(process[_0x4f6913(0x219)][_0x4f6913(0x22e)]=_0x374ecc['yDGAS'],_0x160c64=_0x160c64[_0x4f6913(0x23c)](_0x1b0245=>_0x1b0245!==_0x4f6913(0x1db)));const _0x312692=_0x160c64[_0x4f6913(0x251)](_0x374ecc['ATRZd']);_0x374ecc[_0x4f6913(0x213)](_0x312692,0x0)&&(process[_0x4f6913(0x219)][_0x4f6913(0x23a)]=_0x374ecc[_0x4f6913(0x20a)],_0x160c64=_0x160c64['filter'](_0x184f9e=>_0x184f9e!==_0x4f6913(0x1d6)));try{const _0x1bc53f=path[_0x4f6913(0x232)](helper[_0x4f6913(0x1dd)](),_0x374ecc['XaXXW'],_0x374ecc['NBwnd']);fs[_0x4f6913(0x226)](_0x1bc53f)&&fs[_0x4f6913(0x20d)](_0x1bc53f);}catch(_0x30d85f){logger[_0x4f6913(0x238)](_0x374ecc[_0x4f6913(0x1d7)](_0x374ecc[_0x4f6913(0x1e3)],_0x30d85f));}if(!_0x374ecc[_0x4f6913(0x212)](isTestCommand,_0x1f99be,_0x160c64)){_0x374ecc['eiBkg'](spawnOriginalProcess,_0x160c64);return;}const _0x4bec23=new BrowserStackSetup(_0x1f99be,FRAMEWORKS['PLAYWRIGHT']);if(!_0x4bec23[_0x4f6913(0x1e7)]){logger['error'](_0x374ecc[_0x4f6913(0x256)]);return;}await _0x4bec23['initialize']();!helper['isUndefined'](_0x4bec23[_0x4f6913(0x202)])&&_0x4bec23[_0x4f6913(0x202)][_0x4f6913(0x247)](_0x374ecc[_0x4f6913(0x1fa)])&&(process[_0x4f6913(0x219)][_0x4f6913(0x22e)]=_0x4bec23[_0x4f6913(0x202)][_0x4f6913(0x1f9)](_0x374ecc[_0x4f6913(0x1fa)])||!![]);_0x374ecc[_0x4f6913(0x25e)](_0x4bec23['config']['testObservability'],null)&&!helper[_0x4f6913(0x1f5)](process[_0x4f6913(0x219)][_0x4f6913(0x23a)])&&(process[_0x4f6913(0x219)][_0x4f6913(0x23a)]=process[_0x4f6913(0x219)][_0x4f6913(0x23a)]||_0x4bec23[_0x4f6913(0x1e7)][_0x4f6913(0x1e9)]);const _0x57f9cb=!helper[_0x4f6913(0x1fd)](process[_0x4f6913(0x219)]['BROWSERSTACK_TEST_OBSERVABILITY']);let _0x38d57c=![];_0x4bec23[_0x4f6913(0x1e7)]['accessibility']&&(_0x38d57c=!![],process[_0x4f6913(0x219)][_0x4f6913(0x20c)]=_0x4bec23['config'][_0x4f6913(0x204)]);_0x4bec23[_0x4f6913(0x1e7)][_0x4f6913(0x24f)]&&(process[_0x4f6913(0x219)][_0x4f6913(0x1ef)]=JSON[_0x4f6913(0x215)](_0x4bec23[_0x4f6913(0x1e7)][_0x4f6913(0x24f)]));const _0x4fe3b9=_0x160c64[_0x4f6913(0x211)](),_0x3dfaca=await _0x374ecc[_0x4f6913(0x248)](getUserPlaywrightConfig,_0x1f99be,_0x160c64);if(helper['isUndefined'](_0x3dfaca)){_0x374ecc['gTIsr'](spawnOriginalProcess,_0x4fe3b9);return;}const _0x28b83c=_0x3dfaca[_0x4f6913(0x1cf)]?path[_0x4f6913(0x236)](_0x3dfaca[_0x4f6913(0x1cf)]):process[_0x4f6913(0x233)]();process[_0x4f6913(0x219)]['BROWSERSTACK_PW_CONFIG_DIR']=_0x28b83c,await TestHubHandler[_0x4f6913(0x1da)](FRAMEWORKS['PLAYWRIGHT'],_0x4bec23);_0x57f9cb&&_0x374ecc['OLVrh'](handleO11yRerun,_0x160c64);let _0x1f42c5=_0x374ecc[_0x4f6913(0x25b)](process[_0x4f6913(0x219)][_0x4f6913(0x20c)],_0x374ecc['xtzzg']);_0x1f42c5=_0x1f42c5||_0x374ecc[_0x4f6913(0x25c)](checkAccessibilityPlatformConfig,_0x4bec23['config']),process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x1f42c5;_0x1f42c5&&_0x374ecc['RIPbq'](setAccessibilityCapabilities,_0x4bec23[_0x4f6913(0x1e7)]);const _0x35c6ba=path[_0x4f6913(0x232)](_0x3dfaca[_0x4f6913(0x1cf)]?path['dirname'](_0x3dfaca[_0x4f6913(0x1cf)]):process[_0x4f6913(0x233)](),_0x374ecc[_0x4f6913(0x214)]);fs[_0x4f6913(0x20f)](_0x35c6ba,helper[_0x4f6913(0x23d)](_0x4bec23[_0x4f6913(0x1e7)])),process[_0x4f6913(0x219)][_0x4f6913(0x1ed)]=_0x35c6ba,helper[_0x4f6913(0x1df)]();let _0x550473='';_0x374ecc[_0x4f6913(0x25b)](helper['getPackageType'](),constants[_0x4f6913(0x1ee)]['MODULE'])?_0x550473=_0x374ecc[_0x4f6913(0x1eb)]:_0x550473=_0x374ecc['vNXvs'];let _0x22a7db='';if(helper[_0x4f6913(0x21d)](_0x3dfaca[_0x4f6913(0x1cf)])){_0x22a7db=_0x4f6913(0x22b);const _0x325bb4=_0x550473[_0x4f6913(0x217)]('.');_0x325bb4[_0x374ecc['hVxVx'](_0x325bb4[_0x4f6913(0x246)],0x1)]='ts',_0x550473=_0x325bb4[_0x4f6913(0x232)]('.'),logger[_0x4f6913(0x238)](_0x374ecc['bYGYP'](_0x374ecc[_0x4f6913(0x1de)],_0x550473));}else _0x22a7db=_0x4f6913(0x22f);const _0x1d2ca8=path[_0x4f6913(0x232)](_0x3dfaca[_0x4f6913(0x1cf)]?path['dirname'](_0x3dfaca[_0x4f6913(0x1cf)]):process[_0x4f6913(0x233)](),_0x550473);let _0x59bd5b=_0x3dfaca['path']?_0x3dfaca[_0x4f6913(0x1cf)]:'';_0x59bd5b=_0x374ecc['miBUr'](_0x59bd5b[_0x4f6913(0x246)],0x0)?path[_0x4f6913(0x1d0)](_0x59bd5b):'',process[_0x4f6913(0x219)]['USER_CONFIG_DETAILS_PATH']=_0x59bd5b;const _0x167fca=helper[_0x4f6913(0x1cc)](_0x4bec23['config']);_0x167fca&&(_0x22a7db=_0x374ecc[_0x4f6913(0x1d7)](_0x4f6913(0x1f6)+_0x167fca+_0x4f6913(0x208),_0x22a7db));helper[_0x4f6913(0x21a)]({},_0x160c64),fs[_0x4f6913(0x20f)](_0x1d2ca8,_0x22a7db),helper[_0x4f6913(0x22c)]();const _0x154008=_0x374ecc[_0x4f6913(0x24a)](spawn,_0x374ecc[_0x4f6913(0x1d1)],[_0x374ecc[_0x4f6913(0x1e6)],_0x374ecc[_0x4f6913(0x260)],_0x374ecc[_0x4f6913(0x241)],_0x1d2ca8,..._0x160c64[_0x4f6913(0x220)](0x2)],{'shell':_0x374ecc[_0x4f6913(0x25b)](process['platform'],_0x374ecc[_0x4f6913(0x229)]),'stdio':_0x374ecc['TBUBz'],'cwd':process[_0x4f6913(0x233)](),'env':Object[_0x4f6913(0x1e1)]({},process[_0x4f6913(0x219)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x4f6913(0x224)](_0x1f99be),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x4bec23[_0x4f6913(0x1e7)][_0x4f6913(0x1f7)][_0x4f6913(0x261)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x4bec23[_0x4f6913(0x1e7)][_0x4f6913(0x1f7)][_0x4f6913(0x1ff)],'BROWSERSTACK_LOG_LEVEL':_0x4bec23[_0x4f6913(0x1e7)]['logLevel']})}),_0x12bcae=()=>{const _0x490cca=_0x4f6913;try{const _0x3e35f5=path[_0x490cca(0x232)](helper[_0x490cca(0x1dd)](),_0x374ecc['XaXXW'],_0x374ecc[_0x490cca(0x1d2)]);if(fs[_0x490cca(0x226)](_0x3e35f5)){let _0x36ac0d=fs['readFileSync'](_0x3e35f5);_0x36ac0d=JSON[_0x490cca(0x24e)](_0x36ac0d),_0x4bec23[_0x490cca(0x1d9)]=_0x36ac0d,fs[_0x490cca(0x20d)](_0x3e35f5);}}catch(_0x463ad7){logger[_0x490cca(0x238)](_0x374ecc[_0x490cca(0x1d7)](_0x374ecc[_0x490cca(0x1ea)],_0x463ad7));}};_0x154008['on'](_0x374ecc[_0x4f6913(0x1e2)],async _0x1ba60b=>{const _0x422572=_0x4f6913;try{const _0xd6616d=_0x374ecc[_0x422572(0x243)]['split']('|');let _0x27cf5f=0x0;while(!![]){switch(_0xd6616d[_0x27cf5f++]){case'0':logger['info'](_0x422572(0x1fb)+_0x1d2ca8);continue;case'1':logger[_0x422572(0x238)]('Deleting\x20'+_0x35c6ba);continue;case'2':fs[_0x422572(0x20d)](_0x1d2ca8);continue;case'3':fs[_0x422572(0x20d)](_0x35c6ba);continue;case'4':_0x374ecc[_0x422572(0x25d)](_0x12bcae);continue;case'5':await TestHubHandler['stop']();continue;case'6':logger[_0x422572(0x238)](_0x422572(0x1c9)+_0x1ba60b);continue;case'7':await utilities[_0x422572(0x25a)](_0x4bec23);continue;case'8':process[_0x422572(0x209)]=_0x1ba60b;continue;}break;}}catch(_0x1bedfa){logger[_0x422572(0x238)](_0x374ecc[_0x422572(0x1d7)](_0x374ecc[_0x422572(0x1c7)],_0x1bedfa));}});}module[a35_0x1c4051(0x252)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a36_0x2a17(){const _0x59db12=['util','qnoBp','1279890PlUaeQ','toString','requirePWModule','ZIDOa','./reporter/pwUtils','../../helpers/test-observability/constants','ilNlh','format','apply','env','504WIKUGm','DPQKX','../../helpers/test-observability/utils','TViiI','ZReIh','config','247010amhKBP','Unwkb','PLAYWRIGHT','IpvWA','40BKoRZv','debug','fork','resolve','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','1311180iBoxMn','42072kYQudG','9415881QFiNnO','yqQZV','1.33.0','665134vbHvjK','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','GALQN','lVxGV','368918YoCddg','isHandlePWErrorSet','exports','Running\x20existing\x20global\x20setup','Oakhb','ShJyL','Not\x20able\x20to\x20import\x20globalSetup'];a36_0x2a17=function(){return _0x59db12;};return a36_0x2a17();}function a36_0x1b5a(_0x4981da,_0xd70903){const _0x2a1799=a36_0x2a17();return a36_0x1b5a=function(_0x1b5ab1,_0x2d3382){_0x1b5ab1=_0x1b5ab1-0x199;let _0x5df789=_0x2a1799[_0x1b5ab1];return _0x5df789;},a36_0x1b5a(_0x4981da,_0xd70903);}const a36_0xc88988=a36_0x1b5a;(function(_0xb90ab2,_0x14a9cd){const _0x1f9638=a36_0x1b5a,_0x578532=_0xb90ab2();while(!![]){try{const _0x26580a=-parseInt(_0x1f9638(0x1b3))/0x1+parseInt(_0x1f9638(0x1b7))/0x2+parseInt(_0x1f9638(0x1ae))/0x3+-parseInt(_0x1f9638(0x1a9))/0x4*(parseInt(_0x1f9638(0x1a5))/0x5)+parseInt(_0x1f9638(0x1c0))/0x6+-parseInt(_0x1f9638(0x19f))/0x7*(parseInt(_0x1f9638(0x1af))/0x8)+parseInt(_0x1f9638(0x1b0))/0x9;if(_0x26580a===_0x14a9cd)break;else _0x578532['push'](_0x578532['shift']());}catch(_0x41c8a6){_0x578532['push'](_0x578532['shift']());}}}(a36_0x2a17,0x53cc9));const util=require(a36_0xc88988(0x1be)),child_process=require('child_process'),{FRAMEWORKS}=require(a36_0xc88988(0x19a)),{getFrameworkVersion,debug}=require(a36_0xc88988(0x1a1)),helper=require('../../helpers/helper'),{getLoadUtilsPath,getForkProcessPath}=require(a36_0xc88988(0x199)),{mockIsWorkerRedundant}=require('./patches'),logger=require('../../helpers/logger')['winstonLogger'];module[a36_0xc88988(0x1b9)]=async function(_0x3a1fa3){const _0xb068a3=a36_0xc88988,_0x3d83db={'lVxGV':function(_0x59b433,_0x3481b1){return _0x59b433(_0x3481b1);},'ShJyL':function(_0x5e8f7f){return _0x5e8f7f();},'TViiI':'./mock-process.js','IpvWA':function(_0x462696){return _0x462696();},'Oakhb':function(_0x57937a){return _0x57937a();},'ZIDOa':function(_0x10b70d,_0x562d76){return _0x10b70d(_0x562d76);},'yqQZV':_0xb068a3(0x1ba),'ilNlh':function(_0x13036c){return _0x13036c();},'DPQKX':function(_0x481ed2,_0x58c1a7){return _0x481ed2>=_0x58c1a7;},'ZReIh':_0xb068a3(0x1b2),'GALQN':function(_0x1fc1b8,_0x13eccd,_0x40c7eb){return _0x1fc1b8(_0x13eccd,_0x40c7eb);},'UeWWp':function(_0x3ee729,_0x594a09){return _0x3ee729!==_0x594a09;},'qnoBp':'function','Unwkb':_0xb068a3(0x1bd)},_0x550085=child_process[_0xb068a3(0x1ab)];if(helper[_0xb068a3(0x1b8)]())try{_0x3d83db[_0xb068a3(0x1bb)](mockIsWorkerRedundant);}catch(_0x312620){logger[_0xb068a3(0x1aa)]('Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20'+util[_0xb068a3(0x19c)](_0x312620));}child_process['fork']=function(){const _0x598ffd=_0xb068a3;return _0x3d83db[_0x598ffd(0x1b6)](debug,'Call\x20to\x20child\x20fork\x20with\x20args\x20'+arguments[0x0]),arguments[0x0]['includes'](_0x3d83db[_0x598ffd(0x1bc)](getForkProcessPath))?arguments[0x0]=require[_0x598ffd(0x1ac)](_0x3d83db[_0x598ffd(0x1a2)]):logger['error']('Path\x20'+_0x3d83db[_0x598ffd(0x1a8)](getForkProcessPath)+'\x20is\x20not\x20found'),_0x550085[_0x598ffd(0x19d)](null,arguments);};if(process[_0xb068a3(0x19e)][_0xb068a3(0x1b4)]){_0x3d83db[_0xb068a3(0x1c3)](debug,_0x3d83db[_0xb068a3(0x1b1)]);try{const {loadGlobalHook:_0x328285}=helper[_0xb068a3(0x1c2)][_0xb068a3(0x19d)](null,_0x3d83db[_0xb068a3(0x19b)](getLoadUtilsPath)),_0x2e2175=_0x3d83db[_0xb068a3(0x1b6)](getFrameworkVersion,FRAMEWORKS[_0xb068a3(0x1a7)]);let _0x128fb4=_0x3a1fa3;if(_0x3d83db[_0xb068a3(0x1a0)](helper['compareVersions'](_0x2e2175,_0x3d83db[_0xb068a3(0x1a3)]),0x0)){const _0x2613fd={};_0x2613fd[_0xb068a3(0x1a4)]=_0x3a1fa3,_0x128fb4=_0x2613fd;}const _0x5d4639=await _0x3d83db[_0xb068a3(0x1b5)](_0x328285,_0x128fb4,process[_0xb068a3(0x19e)]['BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP']);if(_0x3d83db['UeWWp'](typeof _0x5d4639,_0x3d83db[_0xb068a3(0x1bf)]))throw new Error(_0x3d83db[_0xb068a3(0x1a6)]);return _0x5d4639[_0xb068a3(0x19d)](null,arguments);}catch(_0x4d623f){_0x3d83db[_0xb068a3(0x1b6)](debug,_0xb068a3(0x1ad)+_0x4d623f[_0xb068a3(0x1c1)]());}}};
|