browserstack-node-sdk 1.32.15 → 1.32.16
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/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.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/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 -0
- package/src/helpers/testhub/testhubHandler.js +1 -0
- package/src/helpers/testhub/utils.js +1 -0
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a27_0x33e4ea=a27_0x50b3;function a27_0x50b3(_0x40ecf6,_0x411f7e){const _0x19cbb5=a27_0x19cb();return a27_0x50b3=function(_0x50b3b7,_0x4f67f2){_0x50b3b7=_0x50b3b7-0x11d;let _0x567a7c=_0x19cbb5[_0x50b3b7];return _0x567a7c;},a27_0x50b3(_0x40ecf6,_0x411f7e);}(function(_0x3a6f3d,_0x10e0c8){const _0x3d3f28=a27_0x50b3,_0x1d19eb=_0x3a6f3d();while(!![]){try{const _0x213eda=parseInt(_0x3d3f28(0x129))/0x1+-parseInt(_0x3d3f28(0x177))/0x2*(parseInt(_0x3d3f28(0x15c))/0x3)+-parseInt(_0x3d3f28(0x11e))/0x4+-parseInt(_0x3d3f28(0x155))/0x5+parseInt(_0x3d3f28(0x16a))/0x6*(-parseInt(_0x3d3f28(0x164))/0x7)+parseInt(_0x3d3f28(0x153))/0x8*(-parseInt(_0x3d3f28(0x17f))/0x9)+parseInt(_0x3d3f28(0x154))/0xa*(parseInt(_0x3d3f28(0x11d))/0xb);if(_0x213eda===_0x10e0c8)break;else _0x1d19eb['push'](_0x1d19eb['shift']());}catch(_0x44950e){_0x1d19eb['push'](_0x1d19eb['shift']());}}}(a27_0x19cb,0xdf651));const logger=require(a27_0x33e4ea(0x148))[a27_0x33e4ea(0x156)],helper=require(a27_0x33e4ea(0x18a)),constants=require(a27_0x33e4ea(0x12f)),hubAllocator=require('../../../hubAllocationMethods'),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a27_0x33e4ea(0x176)),{setAccessibilityCapabilities,setExtension}=require(a27_0x33e4ea(0x17d)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a27_0x33e4ea(0x188)),globals=require('../../../helpers/globals'),modify=(_0x3778ab,_0x181818=null,_0x4de093=![])=>{const _0x3d4062=a27_0x33e4ea,_0x40ebce={'qYumw':function(_0x5bb4a7,_0x1dee0a){return _0x5bb4a7!==_0x1dee0a;},'eBoBF':_0x3d4062(0x15b),'JOnWe':function(_0x281894,_0x2c3e3c){return _0x281894!==_0x2c3e3c;},'QJlxY':function(_0x27ae27,_0x29b3fb){return _0x27ae27+_0x29b3fb;},'BHJDp':_0x3d4062(0x152),'JzpWo':'/wd/hub','FocVh':_0x3d4062(0x141),'XKTpk':_0x3d4062(0x132),'ijfgA':_0x3d4062(0x17a),'GwZOB':_0x3d4062(0x187),'vmbsJ':_0x3d4062(0x150),'pbNTz':'firefoxOptions','LEkDU':_0x3d4062(0x158),'PXQeF':_0x3d4062(0x151),'XHFPx':_0x3d4062(0x169),'vLyEF':function(_0x4dadc1,_0x500e35){return _0x4dadc1===_0x500e35;},'dgkhu':_0x3d4062(0x181),'ggADD':'Setting\x20Browserstack\x20capabilities','CcIGE':function(_0x53d3fd,_0x2f0289,_0x5b5078){return _0x53d3fd(_0x2f0289,_0x5b5078);},'Oqbkd':function(_0x579aa5,_0x3bf2f1){return _0x579aa5(_0x3bf2f1);},'VLoPn':_0x3d4062(0x16d),'qboHi':'OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','KUbwH':function(_0x2ebad5,_0x28a6fa,_0x17edd4){return _0x2ebad5(_0x28a6fa,_0x17edd4);},'FozlF':function(_0x15258a,_0x482383,_0x55f0ec){return _0x15258a(_0x482383,_0x55f0ec);},'rdOqX':_0x3d4062(0x13c),'CzkHP':function(_0x3abe07){return _0x3abe07();},'JWIMh':_0x3d4062(0x13a),'Ccolo':_0x3d4062(0x14f),'lBhPf':function(_0x10a349,_0x38739e){return _0x10a349(_0x38739e);},'GuYmg':function(_0x3277f0,_0x474704){return _0x3277f0(_0x474704);},'pypoE':function(_0x4105db,_0x141317){return _0x4105db!==_0x141317;},'JgHcq':function(_0x41a673,_0x3832ac){return _0x41a673!==_0x3832ac;},'oSWfJ':'Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','EQOsu':_0x3d4062(0x18c)},_0x20e6d1=helper[_0x3d4062(0x14b)]();let _0x46c8cc;try{_0x46c8cc=helper[_0x3d4062(0x121)](),_0x46c8cc['originalBuilder']&&(_0x46c8cc[_0x3d4062(0x128)]=_0x46c8cc[_0x3d4062(0x168)]);}catch(_0x53da6d){return;}if(helper[_0x3d4062(0x186)]()){const _0x3aabed={};_0x3aabed[_0x3d4062(0x175)]=_0x3778ab[_0x3d4062(0x127)],helper[_0x3d4062(0x163)](_0x3aabed,new Map(),new Map()),logger[_0x3d4062(0x144)](_0x40ebce[_0x3d4062(0x174)]),logger[_0x3d4062(0x136)](_0x40ebce['EQOsu']);}class _0x4ebbc0 extends _0x20e6d1[_0x3d4062(0x12a)]{['send'](_0x7e66a2){const _0x1aa317=_0x3d4062;if(_0x40ebce['qYumw'](_0x7e66a2[_0x1aa317(0x135)],_0x40ebce[_0x1aa317(0x14c)])&&_0x40ebce[_0x1aa317(0x120)](global['newHubUrl'],''))try{global['newHubUrl']=_0x40ebce[_0x1aa317(0x126)](_0x40ebce[_0x1aa317(0x126)](_0x40ebce['BHJDp'],global[_0x1aa317(0x137)]),_0x40ebce[_0x1aa317(0x173)]),this['options_']=hubAllocator[_0x1aa317(0x138)](global[_0x1aa317(0x137)]),logger[_0x1aa317(0x136)](_0x1aa317(0x16b)+global[_0x1aa317(0x137)]),global[_0x1aa317(0x137)]='';}catch(_0x249b89){logger['error'](_0x249b89);}return super['send'](_0x7e66a2);}}class _0x34e529 extends _0x46c8cc[_0x3d4062(0x128)]{[_0x3d4062(0x125)](){const _0x429825=_0x3d4062;return this[_0x429825(0x17b)]=helper[_0x429825(0x18d)](_0x3778ab),logger[_0x429825(0x136)]('Hub\x20url\x20set\x20to\x20'+this[_0x429825(0x17b)]),this;}[_0x3d4062(0x143)](_0xcf18ec){const _0x385f8d=_0x3d4062;let _0x571738={};for(const _0x3952bc in _0xcf18ec){switch(_0x3952bc){case _0x40ebce['FocVh']:case _0x40ebce['XKTpk']:this[_0x385f8d(0x16c)]&&(_0x571738=this['chromeOptions_'][_0x385f8d(0x12b)](this[_0x385f8d(0x16c)][_0x385f8d(0x183)])||{},this[_0x385f8d(0x16c)][_0x385f8d(0x149)](this[_0x385f8d(0x16c)]['CAPABILITY_KEY'],helper[_0x385f8d(0x165)](_0x571738,_0xcf18ec[_0x3952bc])));break;case _0x40ebce[_0x385f8d(0x14e)]:case _0x40ebce[_0x385f8d(0x184)]:this[_0x385f8d(0x14a)]&&(_0x571738=this['edgeOptions_'][_0x385f8d(0x12b)](this['edgeOptions_']['CAPABILITY_KEY'])||{},this[_0x385f8d(0x14a)][_0x385f8d(0x149)](this['edgeOptions_'][_0x385f8d(0x183)],helper[_0x385f8d(0x165)](_0x571738,_0xcf18ec[_0x3952bc])));break;case _0x40ebce[_0x385f8d(0x182)]:case _0x40ebce[_0x385f8d(0x159)]:this[_0x385f8d(0x14d)]&&(_0x571738=this[_0x385f8d(0x14d)][_0x385f8d(0x12b)](this[_0x385f8d(0x14d)][_0x385f8d(0x183)])||{},this[_0x385f8d(0x14d)][_0x385f8d(0x149)](this[_0x385f8d(0x14d)][_0x385f8d(0x183)],helper[_0x385f8d(0x165)](_0x571738,_0xcf18ec[_0x3952bc])));break;case _0x40ebce['LEkDU']:this[_0x385f8d(0x161)]&&(_0x571738=this[_0x385f8d(0x161)][_0x385f8d(0x12b)](this[_0x385f8d(0x161)][_0x385f8d(0x183)])||{},this[_0x385f8d(0x161)]['set'](this[_0x385f8d(0x161)][_0x385f8d(0x183)],helper[_0x385f8d(0x165)](_0x571738,_0xcf18ec[_0x3952bc])));break;case _0x40ebce['PXQeF']:case _0x40ebce[_0x385f8d(0x147)]:this[_0x385f8d(0x122)]&&(_0x571738=this['ieOptions_'][_0x385f8d(0x12b)](this['ieOptions_'][_0x385f8d(0x183)])||{},this[_0x385f8d(0x122)][_0x385f8d(0x149)](this[_0x385f8d(0x122)][_0x385f8d(0x183)],helper[_0x385f8d(0x165)](_0x571738,_0xcf18ec[_0x3952bc])));break;}}}[_0x3d4062(0x145)](){const _0x343984=_0x3d4062;return logger[_0x343984(0x136)](_0x40ebce['ggADD']),this[_0x343984(0x143)](_0x3778ab[_0x343984(0x179)]),Object[_0x343984(0x124)](_0x3778ab[_0x343984(0x179)])[_0x343984(0x15f)](_0x28b4fe=>{const _0x418bf8=_0x343984,_0x1818fd=this[_0x418bf8(0x142)][_0x418bf8(0x12b)](_0x28b4fe);_0x40ebce[_0x418bf8(0x185)](typeof _0x1818fd,_0x40ebce[_0x418bf8(0x12d)])?this['capabilities_'][_0x418bf8(0x149)](_0x28b4fe,helper['mergeDeep'](_0x1818fd,_0x3778ab['capability'][_0x28b4fe])):this['capabilities_'][_0x418bf8(0x149)](_0x28b4fe,_0x3778ab[_0x418bf8(0x179)][_0x28b4fe]);}),this;}[_0x3d4062(0x139)](){const _0x2e0d3f=_0x3d4062,_0x49fcf0={'ocKqa':_0x40ebce[_0x2e0d3f(0x15d)],'ljTSu':_0x40ebce['qboHi'],'dslOL':function(_0x678452,_0x1d0e53,_0x3e243a){return _0x40ebce['KUbwH'](_0x678452,_0x1d0e53,_0x3e243a);},'IEbkp':function(_0x5e112d,_0x33b574,_0x3e62f5){const _0x2d3442=_0x2e0d3f;return _0x40ebce[_0x2d3442(0x12e)](_0x5e112d,_0x33b574,_0x3e62f5);}};if(helper['isBrowserstackInfra']()){const _0x4c5b3f=_0x40ebce['rdOqX'][_0x2e0d3f(0x140)]('|');let _0x43c27d=0x0;while(!![]){switch(_0x4c5b3f[_0x43c27d++]){case'0':_0x40ebce[_0x2e0d3f(0x18e)](isAccessibilityAutomationSession)&&_0x40ebce[_0x2e0d3f(0x157)](setAccessibilityCapabilities,_0x3778ab);continue;case'1':this[_0x2e0d3f(0x145)]();continue;case'2':this[_0x2e0d3f(0x125)]();continue;case'3':if(helper['isPacProxy'](_0x3778ab['proxySettings'][_0x2e0d3f(0x189)]))this[_0x2e0d3f(0x12c)]=helper['getHttpAgent'](_0x3778ab[_0x2e0d3f(0x134)][_0x2e0d3f(0x189)]);else _0x3778ab[_0x2e0d3f(0x134)][_0x2e0d3f(0x189)]&&(this['proxy_']=_0x3778ab[_0x2e0d3f(0x134)]['proxyUrl'],logger[_0x2e0d3f(0x136)]('Proxy\x20set\x20to\x20'+this['proxy_']));continue;case'4':globals[_0x2e0d3f(0x18f)](_0x40ebce[_0x2e0d3f(0x11f)])&&(!_0x40ebce['FozlF'](setExtension,this,_0x3778ab)&&globals[_0x2e0d3f(0x18b)](_0x40ebce[_0x2e0d3f(0x11f)],![]));continue;case'5':logger[_0x2e0d3f(0x136)](_0x40ebce['Ccolo']);continue;}break;}}const _0x3af62b=super[_0x2e0d3f(0x139)]();return _0x3af62b[_0x2e0d3f(0x17c)][_0x2e0d3f(0x15e)](_0x253dff=>{const _0x19c6b7=_0x2e0d3f;try{const _0x240729=_0x253dff[_0x19c6b7(0x146)]['get'](_0x49fcf0[_0x19c6b7(0x171)]);_0x240729?(logger[_0x19c6b7(0x136)](_0x19c6b7(0x131)+_0x240729),hubAllocator[_0x19c6b7(0x16f)](_0x240729),helper[_0x19c6b7(0x15a)](_0x240729)):logger[_0x19c6b7(0x136)](_0x49fcf0['ljTSu']);}catch(_0x4fec2e){logger[_0x19c6b7(0x136)]('ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20'+_0x4fec2e);}}),_0x3af62b['quitCount_']=0x0,_0x3af62b[_0x2e0d3f(0x15e)]&&_0x3af62b[_0x2e0d3f(0x15e)](_0x4e5b5b=>{const _0x1e9455=_0x2e0d3f,_0x3b9c18={'HNYjm':function(_0x1b2adc,_0x4d63bd,_0xc25fa){const _0x3dcc0b=a27_0x50b3;return _0x40ebce[_0x3dcc0b(0x13b)](_0x1b2adc,_0x4d63bd,_0xc25fa);}};_0x40ebce[_0x1e9455(0x13b)](overrideQuit,_0x4e5b5b,_0x3af62b),_0x40ebce[_0x1e9455(0x157)](overrideTakeScreenshot,_0x4e5b5b),helper[_0x1e9455(0x13d)](_0x4e5b5b,_0x3778ab),helper['overrideExecute'](_0x4e5b5b,_0x3778ab),_0x4e5b5b['getAccessibilityResultsSummary']=async()=>{const _0x1898e7=_0x1e9455;return await _0x3b9c18[_0x1898e7(0x160)](getAccessibilityResultsSummary,_0x4e5b5b,global);},_0x4e5b5b[_0x1e9455(0x16e)]=async()=>{const _0x4f0870=_0x1e9455;return await _0x49fcf0[_0x4f0870(0x162)](getAccessibilityResults,_0x4e5b5b,global);};}),_0x3af62b['getAccessibilityResultsSummary']=async()=>{const _0x4b2a45=_0x2e0d3f;return await _0x40ebce[_0x4b2a45(0x13b)](getAccessibilityResultsSummary,_0x3af62b,global);},_0x3af62b['getAccessibilityResults']=async()=>{const _0x1c1f37=_0x2e0d3f;return await _0x49fcf0[_0x1c1f37(0x166)](getAccessibilityResults,_0x3af62b,global);},_0x40ebce['lBhPf'](overrideTakeScreenshot,_0x3af62b),_0x40ebce[_0x2e0d3f(0x170)](overrideQuit,_0x3af62b),helper[_0x2e0d3f(0x13d)](_0x3af62b,_0x3778ab),helper['overrideExecute'](_0x3af62b,_0x3778ab),helper[_0x2e0d3f(0x13f)](global['__driversArray'])&&(global[_0x2e0d3f(0x167)]=[]),helper[_0x2e0d3f(0x13f)](global['__drivers'])&&(global[_0x2e0d3f(0x17e)]=[]),global[_0x2e0d3f(0x167)][_0x2e0d3f(0x178)](_0x3af62b),global[_0x2e0d3f(0x180)]=_0x3af62b,_0x40ebce[_0x2e0d3f(0x133)](global['__drivers'],undefined)&&global[_0x2e0d3f(0x17e)][_0x2e0d3f(0x178)](_0x3af62b),_0x181818&&helper[_0x2e0d3f(0x13f)](_0x181818[_0x2e0d3f(0x13e)][_0x2e0d3f(0x167)])&&(_0x181818['global'][_0x2e0d3f(0x167)]=[]),_0x181818&&_0x40ebce[_0x2e0d3f(0x172)](_0x181818[_0x2e0d3f(0x13e)][_0x2e0d3f(0x17e)],undefined)&&(_0x181818[_0x2e0d3f(0x13e)][_0x2e0d3f(0x17e)][_0x2e0d3f(0x178)](_0x3af62b),_0x181818[_0x2e0d3f(0x13e)][_0x2e0d3f(0x167)][_0x2e0d3f(0x178)](_0x3af62b)),_0x3af62b;}}return _0x46c8cc[_0x3d4062(0x168)]=_0x46c8cc[_0x3d4062(0x128)],_0x46c8cc[_0x3d4062(0x128)]=_0x34e529,_0x20e6d1['HttpClient']=_0x4ebbc0,_0x46c8cc;};module[a27_0x33e4ea(0x130)][a27_0x33e4ea(0x123)]=modify;function a27_0x19cb(){const _0x4bd2f9=['edgeOptions','../../../helpers/accessibility-automation/helper','proxyUrl','../../../helpers/helper','setGlobal','Modifying\x20webdriver\x20builder','getHubUrl','CzkHP','getGlobal','37666717GDEhjU','6479812JOLxDq','JWIMh','JOnWe','requireSeleniumWebdriver','ieOptions_','browserstackAgentObservability','keys','setServer','QJlxY','browserStackLogLevel','Builder','200606LNGocl','HttpClient','get','agent_','dgkhu','FozlF','../../../bin/utils/constants','exports','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','chromeOptions','pypoE','proxySettings','path','debug','newHubUrl','getRequestOptions','build','isAccessibilityPlatform','CcIGE','0|2|1|3|4|5','overrideGet','global','isUndefined','split','goog:chromeOptions','capabilities_','__setBrowserOptions','info','setCapabilities','caps_','XHFPx','../../../helpers/logger','set','edgeOptions_','requireHttpClient','eBoBF','firefoxOptions_','ijfgA','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','moz:firefoxOptions','se:ieOptions','https://','11781920CLMKwK','20XttxEi','3176490HdurQO','winstonLogger','Oqbkd','safari.options','pbNTz','storeOptimalHubUrl','/session','4744662TphyKb','VLoPn','then','forEach','HNYjm','safariOptions_','dslOL','setLogLevel','98asTJle','mergeDeep','IEbkp','__driversArray','originalBuilder','ieOptions','353370NbFOYR','New\x20hub\x20url\x20set\x20to\x20','chromeOptions_','optimalHubUrl','getAccessibilityResults','updateHubUrl','GuYmg','ocKqa','JgHcq','JzpWo','oSWfJ','logLevel','../../../helpers/patchHelpers','2yihuZB','push','capability','ms:edgeOptions','url_','session_','../accessibility-automation/helper','__drivers','9MLEdyG','__driver','object','vmbsJ','CAPABILITY_KEY','GwZOB','vLyEF','isBrowserstackInfra'];a27_0x19cb=function(){return _0x4bd2f9;};return a27_0x19cb();}
|
|
1
|
+
function a27_0x9a59(_0x565e63,_0x22b27c){const _0x2ae838=a27_0x2ae8();return a27_0x9a59=function(_0x9a59c5,_0x5025f6){_0x9a59c5=_0x9a59c5-0xa8;let _0x4b41a2=_0x2ae838[_0x9a59c5];return _0x4b41a2;},a27_0x9a59(_0x565e63,_0x22b27c);}const a27_0x10c959=a27_0x9a59;(function(_0x434415,_0x527bcb){const _0x43f10a=a27_0x9a59,_0x4ec4c3=_0x434415();while(!![]){try{const _0x18d1b9=parseInt(_0x43f10a(0xe2))/0x1+parseInt(_0x43f10a(0xea))/0x2+-parseInt(_0x43f10a(0x117))/0x3*(parseInt(_0x43f10a(0xfd))/0x4)+parseInt(_0x43f10a(0xcc))/0x5+-parseInt(_0x43f10a(0x106))/0x6+parseInt(_0x43f10a(0x10d))/0x7+-parseInt(_0x43f10a(0x102))/0x8;if(_0x18d1b9===_0x527bcb)break;else _0x4ec4c3['push'](_0x4ec4c3['shift']());}catch(_0x39ce53){_0x4ec4c3['push'](_0x4ec4c3['shift']());}}}(a27_0x2ae8,0xc5834));const logger=require(a27_0x10c959(0x114))[a27_0x10c959(0xc6)],helper=require(a27_0x10c959(0xe4)),constants=require(a27_0x10c959(0x10b)),hubAllocator=require(a27_0x10c959(0xc9)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a27_0x10c959(0x123)),{setAccessibilityCapabilities,setExtension}=require(a27_0x10c959(0xfb)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a27_0x10c959(0xef)),globals=require(a27_0x10c959(0xd9)),modify=(_0x5e7a18,_0x235958=null,_0x132173=![])=>{const _0x263218=a27_0x10c959,_0x27bdb9={'VtDXV':function(_0x1b9ea7,_0x549406){return _0x1b9ea7!==_0x549406;},'nqHXp':_0x263218(0xc4),'CYLcz':function(_0x18e193,_0x6b1c12){return _0x18e193+_0x6b1c12;},'bsbiO':function(_0x546223,_0x5e6957){return _0x546223+_0x5e6957;},'SMobE':_0x263218(0xbd),'KGgbV':_0x263218(0x116),'XlOLL':_0x263218(0xa9),'EkZpo':_0x263218(0x113),'pmDFi':_0x263218(0x115),'wlkDx':_0x263218(0xcf),'rpVZP':_0x263218(0xce),'wSGRK':_0x263218(0xf8),'zdtLF':_0x263218(0xd3),'mURbt':_0x263218(0xf3),'xDPyz':_0x263218(0xb6),'yblRV':function(_0x37b81b,_0x446cf6){return _0x37b81b===_0x446cf6;},'wcpcj':_0x263218(0xbe),'GLWoV':_0x263218(0x124),'JHHWa':_0x263218(0xc7),'pPCXV':function(_0x59b0b7,_0xd0d380,_0x125970){return _0x59b0b7(_0xd0d380,_0x125970);},'LFNDU':function(_0x239c4f,_0xba6bef){return _0x239c4f(_0xba6bef);},'pCAsC':function(_0x24bbe8,_0x230b09,_0x1ae502){return _0x24bbe8(_0x230b09,_0x1ae502);},'cBKXg':_0x263218(0x10c),'FPEeZ':'OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','EUtAY':_0x263218(0xd4),'OXoVr':'isAccessibilityPlatform','ZFoIJ':function(_0x3a6cd0){return _0x3a6cd0();},'GWoxY':function(_0x1ade27,_0x2c4044){return _0x1ade27(_0x2c4044);},'tGqPv':'Running\x20your\x20test\x20suite\x20on\x20BrowserStack','YMpcd':function(_0x3268bd,_0x299852){return _0x3268bd!==_0x299852;},'sAwfT':_0x263218(0xde),'ftFVJ':'Modifying\x20webdriver\x20builder'},_0x469ebc=helper[_0x263218(0x121)]();let _0x2453b5;try{_0x2453b5=helper[_0x263218(0xfa)](),_0x2453b5[_0x263218(0xb2)]&&(_0x2453b5[_0x263218(0xe6)]=_0x2453b5[_0x263218(0xb2)]);}catch(_0x91cf8c){return;}if(helper['isBrowserstackInfra']()){const _0x25bc41={};_0x25bc41[_0x263218(0x110)]=_0x5e7a18[_0x263218(0x10e)],helper[_0x263218(0xf1)](_0x25bc41,new Map(),new Map()),logger[_0x263218(0xe7)](_0x27bdb9[_0x263218(0xad)]),logger[_0x263218(0xb9)](_0x27bdb9[_0x263218(0xe0)]);}class _0x57e18b extends _0x469ebc[_0x263218(0xf7)]{['send'](_0x3e0ceb){const _0x42fd9c=_0x263218;if(_0x27bdb9[_0x42fd9c(0x107)](_0x3e0ceb[_0x42fd9c(0xbf)],_0x27bdb9[_0x42fd9c(0x100)])&&_0x27bdb9[_0x42fd9c(0x107)](global[_0x42fd9c(0xd5)],''))try{global[_0x42fd9c(0xd5)]=_0x27bdb9[_0x42fd9c(0xbc)](_0x27bdb9['bsbiO'](_0x27bdb9[_0x42fd9c(0x125)],global['newHubUrl']),_0x27bdb9[_0x42fd9c(0xc3)]),this['options_']=hubAllocator[_0x42fd9c(0x11d)](global['newHubUrl']),logger[_0x42fd9c(0xb9)](_0x42fd9c(0xba)+global[_0x42fd9c(0xd5)]),global['newHubUrl']='';}catch(_0x4e9244){logger['error'](_0x4e9244);}return super['send'](_0x3e0ceb);}}class _0x4b4737 extends _0x2453b5[_0x263218(0xe6)]{[_0x263218(0xfe)](){const _0x2eb0e2=_0x263218;return this['url_']=helper[_0x2eb0e2(0x11a)](_0x5e7a18),logger[_0x2eb0e2(0xb9)](_0x2eb0e2(0xaa)+this[_0x2eb0e2(0xdd)]),this;}[_0x263218(0xd1)](_0x5d3b27){const _0x3711c3=_0x263218;let _0x2d2a10={};for(const _0x19139f in _0x5d3b27){switch(_0x19139f){case _0x27bdb9[_0x3711c3(0xae)]:case _0x27bdb9[_0x3711c3(0xac)]:this[_0x3711c3(0xf5)]&&(_0x2d2a10=this['chromeOptions_'][_0x3711c3(0xc0)](this[_0x3711c3(0xf5)][_0x3711c3(0xb1)])||{},this['chromeOptions_'][_0x3711c3(0x126)](this['chromeOptions_']['CAPABILITY_KEY'],helper[_0x3711c3(0xb3)](_0x2d2a10,_0x5d3b27[_0x19139f])));break;case _0x27bdb9[_0x3711c3(0xc5)]:case _0x27bdb9[_0x3711c3(0xbb)]:this['edgeOptions_']&&(_0x2d2a10=this[_0x3711c3(0xb4)][_0x3711c3(0xc0)](this[_0x3711c3(0xb4)][_0x3711c3(0xb1)])||{},this[_0x3711c3(0xb4)][_0x3711c3(0x126)](this[_0x3711c3(0xb4)][_0x3711c3(0xb1)],helper[_0x3711c3(0xb3)](_0x2d2a10,_0x5d3b27[_0x19139f])));break;case _0x27bdb9['rpVZP']:case _0x27bdb9['wSGRK']:this['firefoxOptions_']&&(_0x2d2a10=this[_0x3711c3(0x119)][_0x3711c3(0xc0)](this['firefoxOptions_']['CAPABILITY_KEY'])||{},this['firefoxOptions_'][_0x3711c3(0x126)](this[_0x3711c3(0x119)]['CAPABILITY_KEY'],helper[_0x3711c3(0xb3)](_0x2d2a10,_0x5d3b27[_0x19139f])));break;case _0x27bdb9['zdtLF']:this[_0x3711c3(0x108)]&&(_0x2d2a10=this[_0x3711c3(0x108)][_0x3711c3(0xc0)](this[_0x3711c3(0x108)][_0x3711c3(0xb1)])||{},this['safariOptions_']['set'](this[_0x3711c3(0x108)][_0x3711c3(0xb1)],helper['mergeDeep'](_0x2d2a10,_0x5d3b27[_0x19139f])));break;case _0x27bdb9[_0x3711c3(0xdc)]:case _0x27bdb9[_0x3711c3(0xdf)]:this['ieOptions_']&&(_0x2d2a10=this['ieOptions_'][_0x3711c3(0xc0)](this['ieOptions_'][_0x3711c3(0xb1)])||{},this[_0x3711c3(0xd2)][_0x3711c3(0x126)](this['ieOptions_'][_0x3711c3(0xb1)],helper[_0x3711c3(0xb3)](_0x2d2a10,_0x5d3b27[_0x19139f])));break;}}}['setCapabilities'](){const _0x2f3035=_0x263218;return logger['debug'](_0x27bdb9[_0x2f3035(0x111)]),this[_0x2f3035(0xd1)](_0x5e7a18[_0x2f3035(0xb8)]),Object[_0x2f3035(0x11e)](_0x5e7a18['capability'])[_0x2f3035(0xeb)](_0x117755=>{const _0x45e03b=_0x2f3035,_0x5e5f55=this['capabilities_'][_0x45e03b(0xc0)](_0x117755);_0x27bdb9[_0x45e03b(0xff)](typeof _0x5e5f55,_0x27bdb9[_0x45e03b(0xe5)])?this[_0x45e03b(0xcd)]['set'](_0x117755,helper[_0x45e03b(0xb3)](_0x5e5f55,_0x5e7a18['capability'][_0x117755])):this[_0x45e03b(0xcd)]['set'](_0x117755,_0x5e7a18['capability'][_0x117755]);}),this;}[_0x263218(0xb0)](){const _0x2f2f34=_0x263218,_0x5c3a8e={'dvQWJ':_0x27bdb9[_0x2f2f34(0xd6)],'luiJS':_0x27bdb9[_0x2f2f34(0xf4)],'NbTRG':function(_0x3d9d64,_0x137c48,_0x1cbb7b){const _0x255fb1=_0x2f2f34;return _0x27bdb9[_0x255fb1(0xcb)](_0x3d9d64,_0x137c48,_0x1cbb7b);},'PXKfL':function(_0x3cc049,_0x2e4b0a,_0x195bc4){const _0x3a2f2f=_0x2f2f34;return _0x27bdb9[_0x3a2f2f(0xcb)](_0x3cc049,_0x2e4b0a,_0x195bc4);}};if(helper[_0x2f2f34(0xf6)]()){const _0x2703ff=_0x27bdb9[_0x2f2f34(0xc1)]['split']('|');let _0x457548=0x0;while(!![]){switch(_0x2703ff[_0x457548++]){case'0':globals['getGlobal'](_0x27bdb9['OXoVr'])&&(!_0x27bdb9['pCAsC'](setExtension,this,_0x5e7a18)&&globals['setGlobal'](_0x27bdb9[_0x2f2f34(0x101)],![]));continue;case'1':this[_0x2f2f34(0xec)]();continue;case'2':_0x27bdb9[_0x2f2f34(0x104)](isAccessibilityAutomationSession)&&_0x27bdb9[_0x2f2f34(0xab)](setAccessibilityCapabilities,_0x5e7a18);continue;case'3':this[_0x2f2f34(0xfe)]();continue;case'4':logger[_0x2f2f34(0xb9)](_0x27bdb9[_0x2f2f34(0x109)]);continue;case'5':if(helper[_0x2f2f34(0x120)](_0x5e7a18['proxySettings'][_0x2f2f34(0xca)]))this[_0x2f2f34(0xda)]=helper[_0x2f2f34(0xed)](_0x5e7a18[_0x2f2f34(0xb7)][_0x2f2f34(0xca)]);else _0x5e7a18['proxySettings'][_0x2f2f34(0xca)]&&(this[_0x2f2f34(0xe9)]=_0x5e7a18[_0x2f2f34(0xb7)][_0x2f2f34(0xca)],logger[_0x2f2f34(0xb9)](_0x2f2f34(0x112)+this[_0x2f2f34(0xe9)]));continue;}break;}}const _0x2f51bd=super['build']();return _0x2f51bd[_0x2f2f34(0x118)]['then'](_0x413d5c=>{const _0x40b0bf=_0x2f2f34;try{const _0x11b477=_0x413d5c[_0x40b0bf(0xc2)][_0x40b0bf(0xc0)](_0x5c3a8e[_0x40b0bf(0xfc)]);_0x11b477?(logger[_0x40b0bf(0xb9)](_0x40b0bf(0xb5)+_0x11b477),hubAllocator[_0x40b0bf(0x10a)](_0x11b477),helper[_0x40b0bf(0xf9)](_0x11b477)):logger[_0x40b0bf(0xb9)](_0x5c3a8e[_0x40b0bf(0xd0)]);}catch(_0xe09cdf){logger[_0x40b0bf(0xb9)]('ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20'+_0xe09cdf);}}),_0x2f51bd[_0x2f2f34(0xa8)]=0x0,_0x2f51bd['then']&&_0x2f51bd[_0x2f2f34(0xaf)](_0xe42eae=>{const _0x5c2115=_0x2f2f34,_0x3c399e=_0x27bdb9[_0x5c2115(0xe1)][_0x5c2115(0x122)]('|');let _0x5845c8=0x0;while(!![]){switch(_0x3c399e[_0x5845c8++]){case'0':helper[_0x5c2115(0x103)](_0xe42eae,_0x5e7a18);continue;case'1':_0x27bdb9[_0x5c2115(0xcb)](overrideQuit,_0xe42eae,_0x2f51bd);continue;case'2':_0xe42eae[_0x5c2115(0xe8)]=async()=>{const _0x4275d6=_0x5c2115;return await _0x5c3a8e[_0x4275d6(0xd8)](getAccessibilityResultsSummary,_0xe42eae,global);};continue;case'3':_0x27bdb9[_0x5c2115(0x105)](overrideTakeScreenshot,_0xe42eae);continue;case'4':helper[_0x5c2115(0xf0)](_0xe42eae,_0x5e7a18);continue;case'5':_0xe42eae[_0x5c2115(0xf2)]=async()=>{const _0x1c5b5f=_0x5c2115;return await _0x5c3a8e[_0x1c5b5f(0x11f)](getAccessibilityResults,_0xe42eae,global);};continue;}break;}}),_0x2f51bd[_0x2f2f34(0xe8)]=async()=>{const _0x4193dd=_0x2f2f34;return await _0x5c3a8e[_0x4193dd(0x11f)](getAccessibilityResultsSummary,_0x2f51bd,global);},_0x2f51bd['getAccessibilityResults']=async()=>{return await _0x27bdb9['pCAsC'](getAccessibilityResults,_0x2f51bd,global);},_0x27bdb9['LFNDU'](overrideTakeScreenshot,_0x2f51bd),_0x27bdb9[_0x2f2f34(0x105)](overrideQuit,_0x2f51bd),helper[_0x2f2f34(0x103)](_0x2f51bd,_0x5e7a18),helper[_0x2f2f34(0xf0)](_0x2f51bd,_0x5e7a18),helper[_0x2f2f34(0x11c)](global['__driversArray'])&&(global[_0x2f2f34(0xee)]=[]),helper['isUndefined'](global[_0x2f2f34(0x11b)])&&(global[_0x2f2f34(0x11b)]=[]),global[_0x2f2f34(0xee)][_0x2f2f34(0xe3)](_0x2f51bd),global[_0x2f2f34(0xd7)]=_0x2f51bd,_0x27bdb9[_0x2f2f34(0x10f)](global[_0x2f2f34(0x11b)],undefined)&&global[_0x2f2f34(0x11b)][_0x2f2f34(0xe3)](_0x2f51bd),_0x235958&&helper['isUndefined'](_0x235958[_0x2f2f34(0xdb)][_0x2f2f34(0xee)])&&(_0x235958[_0x2f2f34(0xdb)][_0x2f2f34(0xee)]=[]),_0x235958&&_0x27bdb9[_0x2f2f34(0x107)](_0x235958[_0x2f2f34(0xdb)]['__drivers'],undefined)&&(_0x235958[_0x2f2f34(0xdb)][_0x2f2f34(0x11b)][_0x2f2f34(0xe3)](_0x2f51bd),_0x235958[_0x2f2f34(0xdb)]['__driversArray'][_0x2f2f34(0xe3)](_0x2f51bd)),_0x2f51bd;}}return _0x2453b5['originalBuilder']=_0x2453b5[_0x263218(0xe6)],_0x2453b5[_0x263218(0xe6)]=_0x4b4737,_0x469ebc[_0x263218(0xf7)]=_0x57e18b,_0x2453b5;};function a27_0x2ae8(){const _0xce5d0e=['ms:edgeOptions','/wd/hub','1618917oXbPRZ','session_','firefoxOptions_','getHubUrl','__drivers','isUndefined','getRequestOptions','keys','PXKfL','isPacProxy','requireHttpClient','split','../../../helpers/patchHelpers','Setting\x20Browserstack\x20capabilities','SMobE','set','quitCount_','goog:chromeOptions','Hub\x20url\x20set\x20to\x20','GWoxY','EkZpo','sAwfT','XlOLL','then','build','CAPABILITY_KEY','originalBuilder','mergeDeep','edgeOptions_','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','ieOptions','proxySettings','capability','debug','New\x20hub\x20url\x20set\x20to\x20','wlkDx','CYLcz','https://','object','path','get','EUtAY','caps_','KGgbV','/session','pmDFi','winstonLogger','1|3|0|4|2|5','browserstackAgentObservability','../../../hubAllocationMethods','proxyUrl','pPCXV','8074015nLpcnN','capabilities_','moz:firefoxOptions','edgeOptions','luiJS','__setBrowserOptions','ieOptions_','safari.options','2|3|1|5|0|4','newHubUrl','cBKXg','__driver','NbTRG','../../../helpers/globals','agent_','global','mURbt','url_','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','xDPyz','ftFVJ','JHHWa','625160pYZVFc','push','../../../helpers/helper','wcpcj','Builder','info','getAccessibilityResultsSummary','proxy_','3187282cKvGtZ','forEach','setCapabilities','getHttpAgent','__driversArray','../../../helpers/accessibility-automation/helper','overrideExecute','setLogLevel','getAccessibilityResults','se:ieOptions','FPEeZ','chromeOptions_','isBrowserstackInfra','HttpClient','firefoxOptions','storeOptimalHubUrl','requireSeleniumWebdriver','../accessibility-automation/helper','dvQWJ','8fSPkoG','setServer','yblRV','nqHXp','OXoVr','19647624tSQzXB','overrideGet','ZFoIJ','LFNDU','2857380fikoZj','VtDXV','safariOptions_','tGqPv','updateHubUrl','../../../bin/utils/constants','optimalHubUrl','6908083rzWMCi','browserStackLogLevel','YMpcd','logLevel','GLWoV','Proxy\x20set\x20to\x20','chromeOptions','../../../helpers/logger'];a27_0x2ae8=function(){return _0xce5d0e;};return a27_0x2ae8();}module['exports'][a27_0x10c959(0xc8)]=modify;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a28_0xded9ca=a28_0x543f;function a28_0x2bd6(){const _0x2d2d3a=['4810932WzEYaK','214281VaQhrr','5TKDaUq','2754444djTior','14430584HSsBBc','restore','mochaHooks','../../../helpers/request-spy','../../../helpers/test-observability/utils','645210nwtqNQ','../../../bin/utils/constants','timeout','144753nJIDrT','DusVD','8079294luNoJF'];a28_0x2bd6=function(){return _0x2d2d3a;};return a28_0x2bd6();}(function(_0x252a9f,_0x141539){const _0x1c0b02=a28_0x543f,_0x372236=_0x252a9f();while(!![]){try{const _0x3310f1=-parseInt(_0x1c0b02(0x135))/0x1+-parseInt(_0x1c0b02(0x132))/0x2+parseInt(_0x1c0b02(0x139))/0x3+parseInt(_0x1c0b02(0x138))/0x4+parseInt(_0x1c0b02(0x13a))/0x5*(parseInt(_0x1c0b02(0x137))/0x6)+parseInt(_0x1c0b02(0x13b))/0x7+-parseInt(_0x1c0b02(0x12d))/0x8;if(_0x3310f1===_0x141539)break;else _0x372236['push'](_0x372236['shift']());}catch(_0x41dd38){_0x372236['push'](_0x372236['shift']());}}}(a28_0x2bd6,0xb566c));const requestSpy=require(a28_0xded9ca(0x130)),constants=require(a28_0xded9ca(0x133)),{addRequestSpy}=require(a28_0xded9ca(0x131));function a28_0x543f(_0x2af95b,_0x122026){const _0x2bd6d3=a28_0x2bd6();return a28_0x543f=function(_0x543fc3,_0x345f83){_0x543fc3=_0x543fc3-0x12d;let _0x3fc9f9=_0x2bd6d3[_0x543fc3];return _0x3fc9f9;},a28_0x543f(_0x2af95b,_0x122026);}exports[a28_0xded9ca(0x12f)]={'beforeAll'(){const _0x409cac=a28_0xded9ca,_0x53911a={'DusVD':function(_0x53a960){return _0x53a960();}},_0x40a5b6='browserstack internal helper hook';_0x53911a[_0x409cac(0x136)](addRequestSpy);},'afterAll'(){const _0xada0eb=a28_0xded9ca,_0x2f429f='browserstack internal helper hook';this[_0xada0eb(0x134)](0xea60),requestSpy[_0xada0eb(0x12e)]();}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a29_0x5768ab=a29_0x5e7d;function a29_0x30a2(){const _0x543a88=['fMUyY','3DjQbBo','EUKAF','syRzY','YUyOx','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','AUlOk','hookAnalyticsId','fromEntries','parent','fNOeR','hook','app-automate','yPZoe','concat','BdToJ','state','tests','keys','1153041XhawsV','_afterEach','../../utils/logReportingAPI','generic','qtdSe','yZnzA','emit','reduce','FyUTR','jcwiY','getHookSkippedTests','filter','pid','_afterAll','substring','jtWeQ','OLvwe','10084184bSeVYo','XLeys','OvdUm','mapTestHooks','passed','getHooksForTest','LcwvL','uuid','424955YlhEXI','_beforeAll','9kSYeph','WDrPt','TEST_PLATFORM','fvGDL','78XCyKyQ','map_','OyZVO','../../../helpers/helper','uRbIr','type','getCapabilities','split','suites','wjqNC','623338pmYwLv','getBrowserVersion','appium:app','lMPXY','ZfbVp','toISOString','push','uxRZw','markedStatus','toJSON','unknown_grid','_beforeEach','25890210TmqWWJ','indexOf','__cloud_provider___','getTestEnv','HxHkY','automate','1033376JcZgzY','LhUvs','GlWpQ','js-','hHccE','../../../../package.json','hook:','GdPBN','7706587wVKKfk','getSession','forEach','string','bPCNA','failed','getBrowserName','scLOc'];a29_0x30a2=function(){return _0x543a88;};return a29_0x30a2();}(function(_0x576061,_0x35e02c){const _0x326858=a29_0x5e7d,_0x105c1b=_0x576061();while(!![]){try{const _0x475aae=-parseInt(_0x326858(0x229))/0x1+parseInt(_0x326858(0x1f4))/0x2+parseInt(_0x326858(0x217))/0x3*(parseInt(_0x326858(0x206))/0x4)+parseInt(_0x326858(0x242))/0x5*(parseInt(_0x326858(0x248))/0x6)+-parseInt(_0x326858(0x20e))/0x7+-parseInt(_0x326858(0x23a))/0x8+-parseInt(_0x326858(0x244))/0x9*(-parseInt(_0x326858(0x200))/0xa);if(_0x475aae===_0x35e02c)break;else _0x105c1b['push'](_0x105c1b['shift']());}catch(_0x128de9){_0x105c1b['push'](_0x105c1b['shift']());}}}(a29_0x30a2,0xb6f64));function a29_0x5e7d(_0x39b886,_0x2ef7a0){const _0x30a21b=a29_0x30a2();return a29_0x5e7d=function(_0x5e7d5a,_0x262ba7){_0x5e7d5a=_0x5e7d5a-0x1eb;let _0x2985d7=_0x30a21b[_0x5e7d5a];return _0x2985d7;},a29_0x5e7d(_0x39b886,_0x2ef7a0);}const {v4:uuidv4}=require(a29_0x5768ab(0x241)),{name,version}=require(a29_0x5768ab(0x20b)),logPatcher=require('../../utils/logPatcher'),BSTestOpsPatcher=new logPatcher({}),logReportingAPI=require(a29_0x5768ab(0x22b)),BSTestOpsLogger=new logReportingAPI({}),{debug,isTestObservabilitySession,isInternalHook}=require('../../../helpers/test-observability/utils'),{consoleHolder}=require('../../../helpers/test-observability/constants'),{getPlatformVersion}=require(a29_0x5768ab(0x1ed)),{shouldProcessEventForTesthub}=require('../../../helpers/testhub/utils');console={},Object[a29_0x5768ab(0x228)](consoleHolder)[a29_0x5768ab(0x210)](_0x28c73a=>{console[_0x28c73a]=(..._0x553b0b)=>{BSTestOpsPatcher[_0x28c73a](..._0x553b0b);};}),exports[a29_0x5768ab(0x203)]=()=>{const _0x311dea=a29_0x5768ab,_0x5a2ef4={'HxHkY':_0x311dea(0x22c),'wjqNC':function(_0x4da10c){return _0x4da10c();}};return{'ci':_0x5a2ef4[_0x311dea(0x204)],'key':_0x5a2ef4[_0x311dea(0x1f3)](uuidv4),'version':version,'collector':_0x311dea(0x209)+name};},exports['getHookDetails']=_0x27d1b4=>{const _0x63dae=a29_0x5768ab,_0x4be183={};_0x4be183['GdPBN']=function(_0x4bcdaa,_0x318ad9){return _0x4bcdaa!==_0x318ad9;},_0x4be183[_0x63dae(0x218)]=_0x63dae(0x211),_0x4be183[_0x63dae(0x21a)]=_0x63dae(0x20c),_0x4be183[_0x63dae(0x240)]=_0x63dae(0x221);const _0x197777=_0x4be183;if(!_0x27d1b4||_0x197777[_0x63dae(0x20d)](typeof _0x27d1b4,_0x197777[_0x63dae(0x218)]))return[null,null];if(_0x197777[_0x63dae(0x20d)](_0x27d1b4[_0x63dae(0x201)](_0x197777['YUyOx']),-0x1)){const _0x655a01=_0x27d1b4['split'](_0x197777[_0x63dae(0x21a)]);return[_0x655a01[0x0]['slice'](0x0,-0x1)['split']('\x22')[0x1],_0x655a01[0x1][_0x63dae(0x237)](0x1)];}else{if(_0x197777[_0x63dae(0x20d)](_0x27d1b4[_0x63dae(0x201)](_0x197777[_0x63dae(0x240)]),-0x1)){const _0x137c9f=_0x27d1b4['split'](_0x197777[_0x63dae(0x240)]);return[_0x137c9f[0x0]['slice'](0x0,-0x1)[_0x63dae(0x1f1)]('\x22')[0x1],_0x27d1b4];}}return[null,null];},exports['getHooksForTest']=_0x5d2b4c=>{const _0x2949be=a29_0x5768ab,_0x5df0a6={'fNOeR':function(_0x154219,_0x147e02){return _0x154219(_0x147e02);},'GlWpQ':_0x2949be(0x243),'fvGDL':_0x2949be(0x236),'syRzY':_0x2949be(0x1ff),'lMPXY':_0x2949be(0x22a)};if(!_0x5d2b4c||!_0x5d2b4c[_0x2949be(0x21f)])return[];const _0x236159=[];return[_0x5df0a6[_0x2949be(0x208)],_0x5df0a6[_0x2949be(0x247)],_0x5df0a6[_0x2949be(0x219)],_0x5df0a6[_0x2949be(0x1f7)]]['forEach'](_0x1244cf=>{const _0x2dd00a=_0x2949be,_0x293c1d=_0x5d2b4c[_0x2dd00a(0x21f)][_0x1244cf]||[];_0x293c1d[_0x2dd00a(0x210)](_0x4e9f5b=>{const _0x4d0a06=_0x2dd00a;_0x4e9f5b['hookAnalyticsId']&&!_0x5df0a6[_0x4d0a06(0x220)](isInternalHook,_0x4e9f5b['fn'])&&_0x236159[_0x4d0a06(0x1fa)](_0x4e9f5b[_0x4d0a06(0x21d)]);});}),[..._0x236159,...exports[_0x2949be(0x23f)](_0x5d2b4c['parent'])];},exports['mapTestHooks']=_0x29fc9c=>{const _0x2ec959=a29_0x5768ab,_0x195d9a={'OLvwe':function(_0xfeefee){return _0xfeefee();},'ZfbVp':function(_0x5ad885,_0x44c0a9){return _0x5ad885===_0x44c0a9;},'jcwiY':_0x2ec959(0x22a),'bPCNA':'_beforeAll','WDrPt':_0x2ec959(0x236),'BdToJ':_0x2ec959(0x1ff)};if(!_0x29fc9c||!_0x29fc9c[_0x2ec959(0x21f)])return;[_0x195d9a[_0x2ec959(0x212)],_0x195d9a[_0x2ec959(0x245)],_0x195d9a[_0x2ec959(0x225)],_0x195d9a[_0x2ec959(0x232)]][_0x2ec959(0x210)](_0x18c5ed=>{const _0x27aea6=_0x2ec959,_0x599428={'fMUyY':function(_0x3ed2c4){const _0x4fb227=a29_0x5e7d;return _0x195d9a[_0x4fb227(0x239)](_0x3ed2c4);},'OyZVO':function(_0x279fb3,_0x2bb648){const _0x4157ac=a29_0x5e7d;return _0x195d9a[_0x4157ac(0x1f8)](_0x279fb3,_0x2bb648);},'hHccE':_0x195d9a[_0x27aea6(0x232)]},_0x21815b=_0x29fc9c[_0x27aea6(0x21f)][_0x18c5ed]||[];_0x21815b[_0x27aea6(0x210)](_0x263885=>{const _0x451a19=_0x27aea6;if(!_0x263885[_0x451a19(0x21d)])_0x263885['hookAnalyticsId']=_0x599428[_0x451a19(0x216)](uuidv4);else _0x263885[_0x451a19(0x1fc)]&&_0x599428[_0x451a19(0x1ec)](_0x18c5ed,_0x599428[_0x451a19(0x20a)])&&(_0x263885[_0x451a19(0x21d)]=_0x599428[_0x451a19(0x216)](uuidv4),delete _0x263885[_0x451a19(0x1fc)]);});}),exports[_0x2ec959(0x23d)](_0x29fc9c[_0x2ec959(0x21f)]);},exports['sendPlatformDetails']=async(_0x25e5e0,_0x5897f0)=>{const _0xe88e4d=a29_0x5768ab,_0x3e6920={'AUlOk':function(_0x35aa8d){return _0x35aa8d();},'ZUSuX':function(_0x5cec14,_0x10805c){return _0x5cec14===_0x10805c;},'uxRZw':'browserstack','BqMTE':_0xe88e4d(0x1f6),'MFdPk':'app','OvdUm':_0xe88e4d(0x222),'yPZoe':_0xe88e4d(0x205),'yZnzA':function(_0x561c9f,_0x15087d){return _0x561c9f(_0x15087d);},'uRbIr':function(_0x5d5341,_0x37db1b){return _0x5d5341===_0x37db1b;},'FyUTR':_0xe88e4d(0x1fe),'LhUvs':_0xe88e4d(0x246),'jtWeQ':function(_0x3af804,_0x22b649){return _0x3af804(_0x22b649);}};try{if(!_0x3e6920[_0xe88e4d(0x21c)](shouldProcessEventForTesthub))return;const _0x1207c2=await _0x25e5e0['getCapabilities'](),_0x5c68b5=await _0x25e5e0[_0xe88e4d(0x20f)](),_0x58c973={},_0x4eadaa=Object[_0xe88e4d(0x21e)](_0x5c68b5[_0xe88e4d(0x1f0)]()[_0xe88e4d(0x1eb)]),_0x34b2da={'product':_0x3e6920['ZUSuX'](global[_0xe88e4d(0x202)],_0x3e6920[_0xe88e4d(0x1fb)])?_0x4eadaa[_0x3e6920['BqMTE']]||_0x4eadaa[_0x3e6920['MFdPk']]?_0x3e6920[_0xe88e4d(0x23c)]:_0x3e6920[_0xe88e4d(0x223)]:null,'capabilities':_0x4eadaa,'platform':_0x1207c2['getPlatform'](),'platform_version':_0x3e6920[_0xe88e4d(0x22e)](getPlatformVersion,_0x3e6920[_0xe88e4d(0x1ee)](global[_0xe88e4d(0x202)],_0x3e6920[_0xe88e4d(0x1fb)])),'browser':_0x1207c2[_0xe88e4d(0x214)](),'browser_version':_0x1207c2[_0xe88e4d(0x1f5)](),'session_id':_0x5c68b5[_0xe88e4d(0x1fd)]()};global[_0xe88e4d(0x202)]?_0x58c973[global[_0xe88e4d(0x202)]]=_0x34b2da:_0x58c973[_0x3e6920[_0xe88e4d(0x231)]]=_0x34b2da,process[_0xe88e4d(0x22f)]('bs:addPlatformDetails:'+process[_0xe88e4d(0x235)],{'timestamp':new Date()[_0xe88e4d(0x1f9)](),'level':null,'message':null,'kind':_0x3e6920[_0xe88e4d(0x207)],'http_response':_0x58c973,'uuid':_0x5897f0});}catch(_0x21a445){_0x3e6920[_0xe88e4d(0x238)](debug,_0xe88e4d(0x21b)+_0x21a445);}},exports['getHookSkippedTests']=_0xbf9ceb=>{const _0x5a091a=a29_0x5768ab,_0x425843={};_0x425843[_0x5a091a(0x215)]=function(_0x188096,_0x467754){return _0x188096!==_0x467754;},_0x425843['sBHyk']='hook',_0x425843['QIafK']=function(_0x27ff86,_0x2de615){return _0x27ff86!==_0x2de615;},_0x425843[_0x5a091a(0x22d)]=_0x5a091a(0x23e),_0x425843['aEPVf']=function(_0x49f064,_0x235921){return _0x49f064!==_0x235921;},_0x425843[_0x5a091a(0x23b)]=_0x5a091a(0x213);const _0x25f330=_0x425843,_0x3198eb=_0xbf9ceb[_0x5a091a(0x1f2)][_0x5a091a(0x230)]((_0x4fc42b,_0x163450)=>{const _0x4f308e=_0x5a091a,_0x130fcb=exports[_0x4f308e(0x233)](_0x163450);return _0x130fcb&&(_0x4fc42b=_0x4fc42b[_0x4f308e(0x224)](_0x130fcb)),_0x4fc42b;},[]),_0x462b16=_0xbf9ceb[_0x5a091a(0x227)][_0x5a091a(0x234)](_0x2b19aa=>{const _0x34527d=_0x5a091a,_0x40d09d=_0x25f330['scLOc'](_0x2b19aa[_0x34527d(0x1ef)],_0x25f330['sBHyk'])&&!_0x2b19aa[_0x34527d(0x1fc)]&&_0x25f330['QIafK'](_0x2b19aa[_0x34527d(0x226)],_0x25f330['qtdSe'])&&_0x25f330['aEPVf'](_0x2b19aa['state'],_0x25f330['XLeys'])&&!_0x2b19aa['pending'];return _0x40d09d;});return _0x462b16[_0x5a091a(0x224)](_0x3198eb);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a30_0x208e(){const _0x535705=['Axaqd','length','1108eSOXdW','cyTNa','yxXIl','then','tklwL','stringify','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','__error_messages__','http:','JsfQa','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','https:','title','tMjMc','__sessionFailed','startMonitoring','getGlobal','4OAVhkN','RVltp','JDmvW','shouldScanTestForAccessibility','./test-observability/mochaUtils','quitCount_','err','VRngO','kaIMo','synkN','jfieZ','message','.\x20Error\x20:','../../helpers/globals','GHXCZ','JXMHa','9616739XMTVJq','\x22}}','Performing\x20scan\x20before\x20saving\x20results','isAccessibilityPlatform','testcase','WcJAy','../../helpers/percy/utils','RpSzG','bstackA11yShouldScan','winstonLogger','currentTest','testAnalyticsId','info','BcTlj','fltdO','browserstackSessionName','kPiqP','519095ZpjroF','9BNBpyX','session_','36LTixtD','driverCleanup','executeScript','accessibilityScanStarted','mLeof','\x20-\x20','../../helpers/test-observability/utils','failed','../../helpers/helper','4455786nMzAUI','OUQNR','passed','shift','FqhZA','titlePath','executeAsyncScript','ybkAg','join','isArray','util','mWqLh','eHwfV','debug','error','setGlobal','OcYQK','mochaHooks','175504XoPQLh','\x20|\x20','__drivers',',\x22level\x22:\x20\x22','app','LnSog','808ZWOdYu','szllE','now','sessionNameSet__','aZiBt','env','stopMonitoring','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','iYZeD','capabilities','ACSYm','ureud','Failed:\x20','percyCaptureMode','getCurrentUrl','Passed','13886760oAhhXc','format','../../helpers/accessibility-automation/scripts','SdHXN','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','../../helpers/performance-tester','FRgwU','JXllN','234BgmMRK','EtUOF','ZwuEN','MGCBV','__skipSessionName','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','protocol','3851744XlbeWT','timeout','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','state','file','wBAZy'];a30_0x208e=function(){return _0x535705;};return a30_0x208e();}const a30_0x10df68=a30_0x4916;(function(_0x24d8a2,_0x107611){const _0x195c45=a30_0x4916,_0x3004ad=_0x24d8a2();while(!![]){try{const _0x452433=parseInt(_0x195c45(0x124))/0x1*(-parseInt(_0x195c45(0xce))/0x2)+-parseInt(_0x195c45(0x10c))/0x3+-parseInt(_0x195c45(0xdf))/0x4*(-parseInt(_0x195c45(0x100))/0x5)+parseInt(_0x195c45(0xbf))/0x6*(parseInt(_0x195c45(0x11e))/0x7)+parseInt(_0x195c45(0xc6))/0x8*(parseInt(_0x195c45(0x101))/0x9)+-parseInt(_0x195c45(0xb7))/0xa+parseInt(_0x195c45(0xef))/0xb*(parseInt(_0x195c45(0x103))/0xc);if(_0x452433===_0x107611)break;else _0x3004ad['push'](_0x3004ad['shift']());}catch(_0x3d49f2){_0x3004ad['push'](_0x3004ad['shift']());}}}(a30_0x208e,0xd3010));const util=require(a30_0x10df68(0x116)),{isAccessibilityAutomationSession,fetchPlatformDetails,shouldScanTestForAccessibility}=require('../../helpers/accessibility-automation/helper'),{percyAutoCapture}=require(a30_0x10df68(0xf5)),{sendPlatformDetails}=require(a30_0x10df68(0xe3)),{isBrowserstackInfra,markSessionStatus}=require(a30_0x10df68(0x10b)),{isTestObservabilitySession}=require(a30_0x10df68(0x109)),PerformanceTester=require(a30_0x10df68(0xbc)),scripts=require(a30_0x10df68(0xb9)),globals=require(a30_0x10df68(0xec)),logger=require('../../helpers/logger')[a30_0x10df68(0xf8)];function a30_0x4916(_0x2d6e3e,_0x5d0220){const _0x208e5e=a30_0x208e();return a30_0x4916=function(_0x491662,_0x5f5279){_0x491662=_0x491662-0xb4;let _0x5a0b5e=_0x208e5e[_0x491662];return _0x5a0b5e;},a30_0x4916(_0x2d6e3e,_0x5d0220);}exports[a30_0x10df68(0x11d)]={'beforeAll'(){const _0x1ba4c9=a30_0x10df68,_0x145a34={'ybkAg':function(_0x5cc2e9,_0x18748b,_0x244d31,_0xa4b6e0){return _0x5cc2e9(_0x18748b,_0x244d31,_0xa4b6e0);},'LnSog':_0x1ba4c9(0x10a),'aZiBt':_0x1ba4c9(0x11f),'yxXIl':function(_0x13cc98,_0x13e1ab,_0x103722){return _0x13cc98(_0x13e1ab,_0x103722);},'MGCBV':_0x1ba4c9(0x10e),'ACSYm':function(_0x40e1e2){return _0x40e1e2();},'oWZnQ':function(_0x193499,_0x2bc8a4,_0x27fdfa){return _0x193499(_0x2bc8a4,_0x27fdfa);}};PerformanceTester[_0x1ba4c9(0xdd)]();const _0x44bb22='browserstack internal helper hook';global[_0x1ba4c9(0xd5)]=[],global[_0x1ba4c9(0xdc)]=![],global['driverCleanup']=async()=>{const _0x518f44=_0x1ba4c9;let _0x8c1f02=![];try{await global['__drivers'][0x0][_0x518f44(0x102)],_0x8c1f02=!![],global[_0x518f44(0xdc)]?await _0x145a34[_0x518f44(0x113)](markSessionStatus,global[_0x518f44(0x120)][0x0],_0x145a34[_0x518f44(0x123)],global[_0x518f44(0xd5)][_0x518f44(0x114)](_0x145a34[_0x518f44(0x128)])):await _0x145a34[_0x518f44(0xd0)](markSessionStatus,global[_0x518f44(0x120)][0x0],_0x145a34[_0x518f44(0xc2)]);}catch(_0x3a5985){}global[_0x518f44(0xd5)]=[],global[_0x518f44(0xdc)]=![];if(_0x8c1f02)try{try{_0x145a34[_0x518f44(0x12e)](isTestObservabilitySession)&&(global[_0x518f44(0x120)][0x0]&&await _0x145a34['oWZnQ'](sendPlatformDetails,global[_0x518f44(0x120)][0x0],this['currentTest']?this[_0x518f44(0xf9)][_0x518f44(0xfa)]:null));}catch{}await global['__drivers'][0x0]['initQuit']();}catch(_0x2bfb01){}};},'beforeEach'(_0x2a5fce){const _0x12d9e7=a30_0x10df68,_0x888c1={'FqhZA':function(_0x2a17c0,_0xbb9ea5){return _0x2a17c0>_0xbb9ea5;},'cyTNa':'\x20-\x20','FRgwU':function(_0x1d87a3,_0x514763,_0x1197d2){return _0x1d87a3(_0x514763,_0x1197d2);},'SdHXN':'bstackA11yShouldScan','mLeof':function(_0x5360a2){return _0x5360a2();},'RpSzG':_0x12d9e7(0xf2),'RVltp':function(_0x2142da,_0x40a12e){return _0x2142da===_0x40a12e;},'OUQNR':_0x12d9e7(0xd6),'wBAZy':function(_0x19f180,_0x13c56a){return _0x19f180===_0x13c56a;},'HClZD':_0x12d9e7(0xd9),'tMjMc':_0x12d9e7(0xd8),'kaIMo':'Automate\x20test\x20case\x20execution\x20has\x20started.','gMOXU':function(_0x60cbe8){return _0x60cbe8();}};new Promise(async _0x1dbe56=>{const _0x57f5c6=_0x12d9e7,_0x347d53='browserstack internal helper hook';let _0x418eb2=!![];try{_0x888c1['FqhZA'](global[_0x57f5c6(0x120)][_0x57f5c6(0xcd)],0x1)&&(await global[_0x57f5c6(0x104)](),global[_0x57f5c6(0x120)]['shift']()),_0x888c1[_0x57f5c6(0x110)](global['__drivers'][0x0][_0x57f5c6(0xe4)],0x0)&&(_0x418eb2=![],await global[_0x57f5c6(0x104)]());}catch{}try{Array['isArray'](global[_0x57f5c6(0x120)])&&global[_0x57f5c6(0x120)][0x0]&&(global[_0x57f5c6(0x120)][0x0][_0x57f5c6(0xfe)]=this[_0x57f5c6(0xf9)][_0x57f5c6(0x111)]()[_0x57f5c6(0x114)](_0x888c1[_0x57f5c6(0xcf)])),global[_0x57f5c6(0xfe)]=this['currentTest'][_0x57f5c6(0x111)]()['join'](_0x888c1[_0x57f5c6(0xcf)]);}catch(_0x3f3740){logger[_0x57f5c6(0x119)]('Failed\x20to\x20store\x20session\x20name:\x20'+_0x3f3740);}this[_0x57f5c6(0xf9)][_0x57f5c6(0xe2)]=_0x888c1[_0x57f5c6(0xbd)](shouldScanTestForAccessibility,this[_0x57f5c6(0xf9)][_0x57f5c6(0x111)](),!![]),globals[_0x57f5c6(0x11b)](_0x888c1[_0x57f5c6(0xba)],this[_0x57f5c6(0xf9)][_0x57f5c6(0xe2)]),this[_0x57f5c6(0xf9)][_0x57f5c6(0x106)]=!![];if(_0x888c1[_0x57f5c6(0x107)](isAccessibilityAutomationSession)&&_0x418eb2&&Array[_0x57f5c6(0x115)](global[_0x57f5c6(0x120)])&&_0x888c1[_0x57f5c6(0x110)](global[_0x57f5c6(0x120)][_0x57f5c6(0xcd)],0x0)&&globals['getGlobal'](_0x888c1[_0x57f5c6(0xf6)]))try{const _0x137dc1=await global[_0x57f5c6(0x120)][0x0][_0x57f5c6(0x102)];if(_0x137dc1){let _0x3b0249=!![];const _0x159a76=await global['__drivers'][0x0][_0x57f5c6(0xb5)]();let _0x5e7d04;try{_0x5e7d04=new URL(_0x159a76);}catch(_0x486582){_0x3b0249=![];}_0x3b0249=_0x888c1[_0x57f5c6(0xe0)](_0x5e7d04[_0x57f5c6(0xc5)],_0x888c1[_0x57f5c6(0x10d)])||_0x888c1[_0x57f5c6(0xcb)](_0x5e7d04['protocol'],_0x888c1['HClZD']),_0x3b0249&&(this[_0x57f5c6(0xf9)]['shouldScanTestForAccessibility']&&logger[_0x57f5c6(0xfb)](_0x888c1[_0x57f5c6(0xdb)])),this['currentTest'][_0x57f5c6(0x106)]=this[_0x57f5c6(0xf9)][_0x57f5c6(0xe2)],this['currentTest'][_0x57f5c6(0xe2)]&&logger[_0x57f5c6(0xfb)](_0x888c1[_0x57f5c6(0xe7)]);}}catch(_0x3d5112){logger[_0x57f5c6(0x11a)]('Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20'+util[_0x57f5c6(0xb8)](_0x3d5112));}_0x888c1['gMOXU'](_0x1dbe56);})[_0x12d9e7(0xd1)](_0x2a5fce);},'afterEach'(_0x4f62b3){const _0x14112b=a30_0x10df68,_0x23a45c={'kPiqP':function(_0x2a4ac9,_0x18ff55){return _0x2a4ac9>_0x18ff55;},'xRgju':function(_0x5a6974,_0x3ec775){return _0x5a6974===_0x3ec775;},'Axaqd':_0x14112b(0xf3),'synkN':function(_0x52b5c6,_0x388f6e){return _0x52b5c6>_0x388f6e;},'mWqLh':'appium:app','aToeS':function(_0x3e7fad,_0x5efb93,_0x573b08,_0x3299e8){return _0x3e7fad(_0x5efb93,_0x573b08,_0x3299e8);},'tklwL':_0x14112b(0x108),'GHXCZ':function(_0x508b54,_0x82007e){return _0x508b54!==_0x82007e;},'eHwfV':_0x14112b(0x10e),'szllE':function(_0x34eb27,_0x4be77a,_0x476e14){return _0x34eb27(_0x4be77a,_0x476e14);},'BcTlj':function(_0x138bc7,_0xc2b533){return _0x138bc7+_0xc2b533;},'ureud':_0x14112b(0x130),'bCeJi':'error','jfieZ':function(_0x232aaf,_0x11ac22,_0x1939b6){return _0x232aaf(_0x11ac22,_0x1939b6);},'JsfQa':_0x14112b(0xb6),'OcYQK':_0x14112b(0xfb),'yquCd':_0x14112b(0xf2),'JXMHa':_0x14112b(0xf7),'Dkgpq':_0x14112b(0xc8),'lgSxM':function(_0x2f00a2,_0x489f13){return _0x2f00a2(_0x489f13);},'VRngO':_0x14112b(0xf1),'JDmvW':_0x14112b(0xbb),'fltdO':function(_0x1233d5){return _0x1233d5();},'WcJAy':function(_0x12cb38,_0x5d719c,_0x30da4e){return _0x12cb38(_0x5d719c,_0x30da4e);},'JXllN':function(_0x1a5b85){return _0x1a5b85();},'eqayY':function(_0x106f60,_0x353b1f,_0x38ed8f){return _0x106f60(_0x353b1f,_0x38ed8f);},'ZwuEN':_0x14112b(0x119),'EtUOF':function(_0x357241){return _0x357241();}},_0xf62e3d='browserstack internal helper hook';this[_0x14112b(0xc7)](0xfde8);const _0x46d030=async(_0x295def,_0x44fcc9)=>{const _0x4e6aea=_0x14112b;await global[_0x4e6aea(0x120)][0x0][_0x4e6aea(0x105)](_0x4e6aea(0x12b)+_0x295def+_0x4e6aea(0x121)+_0x44fcc9+_0x4e6aea(0xf0));};new Promise(async _0x31e6c6=>{const _0x2c4a96=_0x14112b;try{_0x23a45c[_0x2c4a96(0xff)](global[_0x2c4a96(0x120)]['length'],0x1)&&(await global['driverCleanup'](),global['__drivers'][_0x2c4a96(0x10f)](),global[_0x2c4a96(0xd5)]=[],global[_0x2c4a96(0xdc)]=![]);try{if(global['percy']&&_0x23a45c['xRgju'](global[_0x2c4a96(0xb4)],_0x23a45c[_0x2c4a96(0xcc)])&&global[_0x2c4a96(0x120)][0x0]){const _0x535f11=_0x23a45c[_0x2c4a96(0xe8)](global[_0x2c4a96(0x12d)][_0x2c4a96(0xcd)],0x0)?!!global[_0x2c4a96(0x12d)][0x0][_0x2c4a96(0x122)]||!!global[_0x2c4a96(0x12d)][0x0][_0x23a45c[_0x2c4a96(0x117)]]:![],_0x4c5c68={};_0x4c5c68['app']=_0x535f11,await _0x23a45c['aToeS'](percyAutoCapture,global[_0x2c4a96(0x120)][0x0],_0x23a45c[_0x2c4a96(0xcc)],_0x4c5c68);}}catch(_0x27bc00){}!global[_0x2c4a96(0xc3)]&&(await global[_0x2c4a96(0x120)][0x0]['executeScript'](_0x2c4a96(0xd4)+JSON[_0x2c4a96(0xd3)](this['currentTest'][_0x2c4a96(0x111)]()[_0x2c4a96(0x114)](_0x23a45c[_0x2c4a96(0xd2)]))+'}}'),global[_0x2c4a96(0x120)][0x0][_0x2c4a96(0x127)]=!![]);const _0x216216=_0x23a45c[_0x2c4a96(0xed)](this['currentTest'][_0x2c4a96(0xc9)],_0x23a45c[_0x2c4a96(0x118)]);_0x216216?(global[_0x2c4a96(0xdc)]=!![],global['__error_messages__']['push'](this[_0x2c4a96(0xf9)][_0x2c4a96(0xe5)]['message']),await _0x23a45c[_0x2c4a96(0x125)](_0x46d030,JSON[_0x2c4a96(0xd3)](_0x23a45c[_0x2c4a96(0xfc)](_0x23a45c[_0x2c4a96(0x12f)],this['currentTest']['err'][_0x2c4a96(0xea)])),_0x23a45c['bCeJi'])):await _0x23a45c[_0x2c4a96(0xe9)](_0x46d030,JSON['stringify'](_0x23a45c[_0x2c4a96(0xd7)]),_0x23a45c[_0x2c4a96(0x11c)]);}catch(_0x4c02f9){}try{if(this[_0x2c4a96(0xf9)]['accessibilityScanStarted']&&globals['getGlobal'](_0x23a45c['yquCd'])&&globals[_0x2c4a96(0xde)](_0x23a45c[_0x2c4a96(0xee)])){logger[_0x2c4a96(0xfb)](_0x23a45c['Dkgpq']);const _0x11273a={'saveResults':this[_0x2c4a96(0xf9)][_0x2c4a96(0xe2)],'testDetails':{'name':this['currentTest'][_0x2c4a96(0xda)],'testRunId':process[_0x2c4a96(0x129)]['BS_A11Y_TEST_RUN_ID'],'filePath':this['currentTest'][_0x2c4a96(0xca)],'scopeList':this[_0x2c4a96(0xf9)][_0x2c4a96(0x111)]()},'platform':await _0x23a45c['lgSxM'](fetchPlatformDetails,global[_0x2c4a96(0x120)][0x0])};logger[_0x2c4a96(0x119)](_0x23a45c[_0x2c4a96(0xe6)]),logger[_0x2c4a96(0x119)](util[_0x2c4a96(0xb8)](await global['__drivers'][0x0][_0x2c4a96(0x112)](scripts['performScan'],{'method':global[_0x2c4a96(0xfe)]}))),await global[_0x2c4a96(0x120)][0x0][_0x2c4a96(0x112)](scripts['saveTestResults'],_0x11273a),logger['info'](_0x23a45c[_0x2c4a96(0xe1)]);}}catch(_0x303a09){logger[_0x2c4a96(0x11a)](_0x2c4a96(0xc4)+this[_0x2c4a96(0xf9)][_0x2c4a96(0x111)]()+_0x2c4a96(0xeb),_0x303a09);}try{try{if(_0x23a45c[_0x2c4a96(0xfd)](isTestObservabilitySession)){global[_0x2c4a96(0x120)][0x0]&&await _0x23a45c[_0x2c4a96(0xf4)](sendPlatformDetails,global['__drivers'][0x0],this['currentTest']?this[_0x2c4a96(0xf9)][_0x2c4a96(0xfa)]:null);if(_0x23a45c[_0x2c4a96(0xbe)](isBrowserstackInfra)){const _0x23c640='ObservabilitySync:'+Date[_0x2c4a96(0x126)]();await _0x23a45c['eqayY'](_0x46d030,JSON['stringify'](_0x23c640),_0x23a45c[_0x2c4a96(0xc1)]);}}}catch{}_0x23a45c[_0x2c4a96(0xff)](global[_0x2c4a96(0x120)][0x0]['quitCount_'],0x0)&&await global[_0x2c4a96(0x104)]();}catch(_0x1cbb4c){}_0x23a45c[_0x2c4a96(0xc0)](_0x31e6c6);})[_0x14112b(0xd1)](()=>_0x4f62b3());},'afterAll'(_0x5b1fd0){const _0x2db78f=a30_0x10df68,_0x4a06dc={'iYZeD':function(_0x57c847){return _0x57c847();}},_0x33a5ee='browserstack internal helper hook';this[_0x2db78f(0xc7)](0xfde8),new Promise(async _0x19ed39=>{const _0x50b932=_0x2db78f;PerformanceTester[_0x50b932(0x12a)](),await global[_0x50b932(0x104)](),_0x4a06dc[_0x50b932(0x12c)](_0x19ed39);})[_0x2db78f(0xd1)](()=>_0x5b1fd0());}};
|
|
1
|
+
function a30_0x554b(_0x5726d8,_0x545b53){const _0x521aff=a30_0x521a();return a30_0x554b=function(_0x554bd0,_0x482964){_0x554bd0=_0x554bd0-0x1a2;let _0x49fa4f=_0x521aff[_0x554bd0];return _0x49fa4f;},a30_0x554b(_0x5726d8,_0x545b53);}const a30_0x3e88ce=a30_0x554b;function a30_0x521a(){const _0x4070f8=['30149624eyYMMo','HClsw','GAxuy','../../helpers/performance-tester','then','testcase','debug','appium:app','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','4895175qonzLl','initQuit','uXKGw','XkJce','mmRVj','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','__skipSessionName','WgeST','BROWSERSTACK_TESTHUB_JWT','uCTtT','passed','Passed','BROWSERSTACK_TESTHUB_UUID','15294HITTEa','util','Automate\x20test\x20case\x20execution\x20has\x20started.','lnUkO','SgquL','thBuildUuid','\x20|\x20','accessibilityScanStarted','info','message','app','shift','join','__drivers','stopMonitoring','../../helpers/test-observability/utils','shouldScanTestForAccessibility','bstackA11yShouldScan','cFEJZ','lxioz','KILoG','WTVFT','../../helpers/percy/utils','2033584iGMtjk','testAnalyticsId','XQAdo','thTestRunUuid','kwxhD','DqpGS','CxpFm','titlePath','session_','hpmwB','error','GMHHS','winstonLogger','KCzWS','ENV_VAR','mochaHooks','\x20-\x20','../../helpers/testhub/constants','ytwVZ','browserstackSessionName','wAzxX','failed','saveTestResults','5893854FfnWjD','timeout','executeScript','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','__sessionFailed','QyhPC','performScan','currentTest','IspGo','getGlobal','\x22}}','quitCount_','JzdHb','Failed\x20to\x20store\x20session\x20name:\x20','VPsDf','../../helpers/accessibility-automation/helper','length','ewZDf','ZVhba','evoTd','TpddE','__error_messages__','161gnvlew','1490007WJoIUS','push','stringify','isAccessibilityPlatform','now','.\x20Error\x20:','percy','thJwtToken','setGlobal','KgUDq','HltJt','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','format','capabilities','percyCaptureMode','haPbO','ObservabilitySync:','Failed:\x20','ngJkZ','UvDKy','TENYt','gVaWL','isArray','startMonitoring','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','err','executeAsyncScript','./test-observability/mochaUtils','protocol','2267172FtfMXw','GGPOi','FuiIi','../../helpers/accessibility-automation/scripts','driverCleanup','vPIGv','env'];a30_0x521a=function(){return _0x4070f8;};return a30_0x521a();}(function(_0x12a3ff,_0x5daf1d){const _0xd165a2=a30_0x554b,_0x1b3dea=_0x12a3ff();while(!![]){try{const _0x3e2f1a=-parseInt(_0xd165a2(0x1df))/0x1*(-parseInt(_0xd165a2(0x21a))/0x2)+parseInt(_0xd165a2(0x1e0))/0x3+parseInt(_0xd165a2(0x1fd))/0x4+parseInt(_0xd165a2(0x20d))/0x5+parseInt(_0xd165a2(0x1c9))/0x6+parseInt(_0xd165a2(0x1b2))/0x7+-parseInt(_0xd165a2(0x204))/0x8;if(_0x3e2f1a===_0x5daf1d)break;else _0x1b3dea['push'](_0x1b3dea['shift']());}catch(_0x2c0879){_0x1b3dea['push'](_0x1b3dea['shift']());}}}(a30_0x521a,0xbde36));const util=require(a30_0x3e88ce(0x21b)),{isAccessibilityAutomationSession,fetchPlatformDetails,shouldScanTestForAccessibility}=require(a30_0x3e88ce(0x1d8)),{percyAutoCapture}=require(a30_0x3e88ce(0x1b1)),{sendPlatformDetails}=require(a30_0x3e88ce(0x1fb)),{isBrowserstackInfra,markSessionStatus}=require('../../helpers/helper'),{isTestObservabilitySession}=require(a30_0x3e88ce(0x1aa)),PerformanceTester=require(a30_0x3e88ce(0x207)),scripts=require(a30_0x3e88ce(0x200)),globals=require('../../helpers/globals'),logger=require('../../helpers/logger')[a30_0x3e88ce(0x1be)],{shouldProcessEventForTesthub}=require('../../helpers/testhub/utils'),testHubConstants=require(a30_0x3e88ce(0x1c3));exports[a30_0x3e88ce(0x1c1)]={'beforeAll'(){const _0x4a2920=a30_0x3e88ce,_0x17d63f={'ZVhba':function(_0xcf1d2b,_0x21722e,_0xb9049e,_0x5130ac){return _0xcf1d2b(_0x21722e,_0xb9049e,_0x5130ac);},'KgUDq':_0x4a2920(0x1c7),'ODlZv':_0x4a2920(0x220),'hpmwB':function(_0x2b274b,_0x422186,_0x24b61b){return _0x2b274b(_0x422186,_0x24b61b);},'GAxuy':_0x4a2920(0x217),'WgeST':function(_0x1e334a){return _0x1e334a();},'kwxhD':function(_0x5ae788,_0xf7da77,_0x1349f7){return _0x5ae788(_0xf7da77,_0x1349f7);}};PerformanceTester[_0x4a2920(0x1f7)]();const _0x3511a0='browserstack internal helper hook';global[_0x4a2920(0x1de)]=[],global[_0x4a2920(0x1cd)]=![],global[_0x4a2920(0x201)]=async()=>{const _0x34375f=_0x4a2920;let _0x10b236=![];try{await global[_0x34375f(0x1a8)][0x0][_0x34375f(0x1ba)],_0x10b236=!![],global[_0x34375f(0x1cd)]?await _0x17d63f[_0x34375f(0x1db)](markSessionStatus,global[_0x34375f(0x1a8)][0x0],_0x17d63f[_0x34375f(0x1e9)],global[_0x34375f(0x1de)][_0x34375f(0x1a7)](_0x17d63f['ODlZv'])):await _0x17d63f[_0x34375f(0x1bb)](markSessionStatus,global[_0x34375f(0x1a8)][0x0],_0x17d63f[_0x34375f(0x206)]);}catch(_0x3ec4f4){}global[_0x34375f(0x1de)]=[],global[_0x34375f(0x1cd)]=![];if(_0x10b236)try{try{_0x17d63f[_0x34375f(0x214)](shouldProcessEventForTesthub)&&(global[_0x34375f(0x1a8)][0x0]&&await _0x17d63f[_0x34375f(0x1b6)](sendPlatformDetails,global[_0x34375f(0x1a8)][0x0],this[_0x34375f(0x1d0)]?this[_0x34375f(0x1d0)]['testAnalyticsId']:null));}catch{}await global['__drivers'][0x0][_0x34375f(0x20e)]();}catch(_0x4dc407){}};},'beforeEach'(_0x5a6d37){const _0x506dd0=a30_0x3e88ce,_0x384922={'uCTtT':function(_0x10927e,_0xc183ac){return _0x10927e>_0xc183ac;},'ewZDf':function(_0x1c6972,_0x327e96){return _0x1c6972>_0x327e96;},'VPsDf':'\x20-\x20','CxpFm':function(_0x3fb135,_0x323783,_0xb654c6){return _0x3fb135(_0x323783,_0xb654c6);},'cFEJZ':_0x506dd0(0x1ac),'FuiIi':function(_0x2023a0){return _0x2023a0();},'mmRVj':function(_0x31e405,_0x53139d){return _0x31e405>_0x53139d;},'ytwVZ':_0x506dd0(0x1e3),'lnUkO':function(_0x64e428,_0x716c05){return _0x64e428===_0x716c05;},'TENYt':'http:','jqnlW':function(_0x5a2f72,_0x4f8f6d){return _0x5a2f72===_0x4f8f6d;},'QyhPC':'https:','vPIGv':_0x506dd0(0x1f8),'XkJce':_0x506dd0(0x21c)};new Promise(async _0x228fa8=>{const _0x4c5c98=_0x506dd0,_0x57e9e3='browserstack internal helper hook';let _0x2b0655=!![];try{_0x384922[_0x4c5c98(0x216)](global['__drivers'][_0x4c5c98(0x1d9)],0x1)&&(await global[_0x4c5c98(0x201)](),global[_0x4c5c98(0x1a8)][_0x4c5c98(0x1a6)]()),_0x384922[_0x4c5c98(0x1da)](global[_0x4c5c98(0x1a8)][0x0]['quitCount_'],0x0)&&(_0x2b0655=![],await global[_0x4c5c98(0x201)]());}catch{}try{Array[_0x4c5c98(0x1f6)](global[_0x4c5c98(0x1a8)])&&global['__drivers'][0x0]&&(global['__drivers'][0x0][_0x4c5c98(0x1c5)]=this[_0x4c5c98(0x1d0)][_0x4c5c98(0x1b9)]()[_0x4c5c98(0x1a7)](_0x384922[_0x4c5c98(0x1d7)])),global['browserstackSessionName']=this['currentTest'][_0x4c5c98(0x1b9)]()[_0x4c5c98(0x1a7)](_0x384922[_0x4c5c98(0x1d7)]);}catch(_0x5173b3){logger[_0x4c5c98(0x20a)](_0x4c5c98(0x1d6)+_0x5173b3);}this[_0x4c5c98(0x1d0)][_0x4c5c98(0x1ab)]=_0x384922[_0x4c5c98(0x1b8)](shouldScanTestForAccessibility,this[_0x4c5c98(0x1d0)]['titlePath'](),!![]),globals[_0x4c5c98(0x1e8)](_0x384922[_0x4c5c98(0x1ad)],this[_0x4c5c98(0x1d0)]['shouldScanTestForAccessibility']),this['currentTest'][_0x4c5c98(0x1a2)]=!![];if(_0x384922['FuiIi'](isAccessibilityAutomationSession)&&_0x2b0655&&Array[_0x4c5c98(0x1f6)](global[_0x4c5c98(0x1a8)])&&_0x384922[_0x4c5c98(0x211)](global['__drivers'][_0x4c5c98(0x1d9)],0x0)&&globals['getGlobal'](_0x384922[_0x4c5c98(0x1c4)]))try{const _0xb9905a=await global[_0x4c5c98(0x1a8)][0x0][_0x4c5c98(0x1ba)];if(_0xb9905a){let _0x48d20f=!![];const _0x3d0c21=await global['__drivers'][0x0]['getCurrentUrl']();let _0x229571;try{_0x229571=new URL(_0x3d0c21);}catch(_0x3aa9ef){_0x48d20f=![];}_0x48d20f=_0x384922[_0x4c5c98(0x21d)](_0x229571[_0x4c5c98(0x1fc)],_0x384922[_0x4c5c98(0x1f4)])||_0x384922['jqnlW'](_0x229571['protocol'],_0x384922[_0x4c5c98(0x1ce)]),_0x48d20f&&(this[_0x4c5c98(0x1d0)][_0x4c5c98(0x1ab)]&&logger[_0x4c5c98(0x1a3)](_0x384922[_0x4c5c98(0x202)])),this[_0x4c5c98(0x1d0)][_0x4c5c98(0x1a2)]=this[_0x4c5c98(0x1d0)][_0x4c5c98(0x1ab)],this[_0x4c5c98(0x1d0)]['shouldScanTestForAccessibility']&&logger[_0x4c5c98(0x1a3)](_0x384922[_0x4c5c98(0x210)]);}}catch(_0x3647fc){logger[_0x4c5c98(0x1bc)](_0x4c5c98(0x212)+util[_0x4c5c98(0x1ec)](_0x3647fc));}_0x384922[_0x4c5c98(0x1ff)](_0x228fa8);})['then'](_0x5a6d37);},'afterEach'(_0x3fea3b){const _0x2c715a=a30_0x3e88ce,_0x50399f={'evoTd':function(_0x4fa404,_0x3b6777){return _0x4fa404>_0x3b6777;},'GMHHS':function(_0x43a636,_0x280dcb){return _0x43a636===_0x280dcb;},'HltJt':_0x2c715a(0x209),'JzdHb':_0x2c715a(0x20b),'AVfgj':function(_0xc52e5a,_0x275f92,_0x5b10a9,_0x5a4edb){return _0xc52e5a(_0x275f92,_0x5b10a9,_0x5a4edb);},'WTVFT':_0x2c715a(0x1c2),'wAzxX':function(_0x5ca542,_0x12ef45){return _0x5ca542!==_0x12ef45;},'KILoG':'passed','KCzWS':function(_0x2bda59,_0x6d48c6,_0x179169){return _0x2bda59(_0x6d48c6,_0x179169);},'SgquL':function(_0x47c10d,_0x50ac7){return _0x47c10d+_0x50ac7;},'HClsw':_0x2c715a(0x1f1),'TpddE':_0x2c715a(0x1bc),'XQAdo':function(_0x32e901,_0x3c774e,_0x102964){return _0x32e901(_0x3c774e,_0x102964);},'GGPOi':_0x2c715a(0x218),'uDzKA':'info','UvDKy':_0x2c715a(0x1e3),'GSGOj':_0x2c715a(0x1ac),'IspGo':'Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','iwaUN':'Performing\x20scan\x20before\x20saving\x20results','lxioz':_0x2c715a(0x1eb),'haPbO':function(_0x306c08){return _0x306c08();},'DqpGS':function(_0xda3ffa){return _0xda3ffa();},'gVaWL':_0x2c715a(0x20a),'uXKGw':function(_0x431344,_0x20093d){return _0x431344>_0x20093d;}},_0x5048aa='browserstack internal helper hook';this['timeout'](0xfde8);const _0x264600=async(_0x4848bf,_0x1336ca)=>{const _0x5e8b7f=_0x2c715a;await global[_0x5e8b7f(0x1a8)][0x0][_0x5e8b7f(0x1cb)](_0x5e8b7f(0x20c)+_0x4848bf+',\x22level\x22:\x20\x22'+_0x1336ca+_0x5e8b7f(0x1d3));};new Promise(async _0x1d8882=>{const _0x656d61=_0x2c715a;try{_0x50399f[_0x656d61(0x1dc)](global[_0x656d61(0x1a8)][_0x656d61(0x1d9)],0x1)&&(await global['driverCleanup'](),global[_0x656d61(0x1a8)][_0x656d61(0x1a6)](),global[_0x656d61(0x1de)]=[],global[_0x656d61(0x1cd)]=![]);try{if(global[_0x656d61(0x1e6)]&&_0x50399f[_0x656d61(0x1bd)](global[_0x656d61(0x1ee)],_0x50399f[_0x656d61(0x1ea)])&&global[_0x656d61(0x1a8)][0x0]){const _0x9e01b=_0x50399f['evoTd'](global['capabilities'][_0x656d61(0x1d9)],0x0)?!!global[_0x656d61(0x1ed)][0x0][_0x656d61(0x1a5)]||!!global['capabilities'][0x0][_0x50399f[_0x656d61(0x1d5)]]:![],_0x4f7fb7={};_0x4f7fb7[_0x656d61(0x1a5)]=_0x9e01b,await _0x50399f['AVfgj'](percyAutoCapture,global[_0x656d61(0x1a8)][0x0],_0x50399f['HltJt'],_0x4f7fb7);}}catch(_0x5ccd0b){}!global[_0x656d61(0x213)]&&(await global['__drivers'][0x0]['executeScript'](_0x656d61(0x1cc)+JSON['stringify'](this['currentTest'][_0x656d61(0x1b9)]()[_0x656d61(0x1a7)](_0x50399f[_0x656d61(0x1b0)]))+'}}'),global[_0x656d61(0x1a8)][0x0]['sessionNameSet__']=!![]);const _0x13d375=_0x50399f[_0x656d61(0x1c6)](this[_0x656d61(0x1d0)]['state'],_0x50399f[_0x656d61(0x1af)]);_0x13d375?(global['__sessionFailed']=!![],global['__error_messages__'][_0x656d61(0x1e1)](this[_0x656d61(0x1d0)][_0x656d61(0x1f9)][_0x656d61(0x1a4)]),await _0x50399f['KCzWS'](_0x264600,JSON['stringify'](_0x50399f[_0x656d61(0x21e)](_0x50399f[_0x656d61(0x205)],this[_0x656d61(0x1d0)][_0x656d61(0x1f9)][_0x656d61(0x1a4)])),_0x50399f[_0x656d61(0x1dd)])):await _0x50399f[_0x656d61(0x1b4)](_0x264600,JSON[_0x656d61(0x1e2)](_0x50399f[_0x656d61(0x1fe)]),_0x50399f['uDzKA']);}catch(_0x1eb83b){}try{if(this[_0x656d61(0x1d0)]['accessibilityScanStarted']&&globals[_0x656d61(0x1d2)](_0x50399f[_0x656d61(0x1f3)])&&globals[_0x656d61(0x1d2)](_0x50399f['GSGOj'])){logger[_0x656d61(0x1a3)](_0x50399f[_0x656d61(0x1d1)]);const _0x44ecea={};_0x44ecea[_0x656d61(0x1b5)]=this[_0x656d61(0x1d0)][_0x656d61(0x1b3)],_0x44ecea[_0x656d61(0x21f)]=process[_0x656d61(0x203)][testHubConstants[_0x656d61(0x1c0)][_0x656d61(0x219)]],_0x44ecea[_0x656d61(0x1e7)]=process[_0x656d61(0x203)][testHubConstants[_0x656d61(0x1c0)][_0x656d61(0x215)]];const _0x4f533f=_0x44ecea;logger['debug']('Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20'+JSON['stringify'](_0x4f533f)),logger[_0x656d61(0x20a)](_0x50399f['iwaUN']),logger[_0x656d61(0x20a)](util[_0x656d61(0x1ec)](await global[_0x656d61(0x1a8)][0x0][_0x656d61(0x1fa)](scripts[_0x656d61(0x1cf)],{'method':global['browserstackSessionName']}))),await global[_0x656d61(0x1a8)][0x0][_0x656d61(0x1fa)](scripts[_0x656d61(0x1c8)],_0x4f533f),logger[_0x656d61(0x1a3)](_0x50399f[_0x656d61(0x1ae)]);}}catch(_0x202a6b){logger[_0x656d61(0x1bc)]('Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20'+this[_0x656d61(0x1d0)][_0x656d61(0x1b9)]()+_0x656d61(0x1e5),_0x202a6b);}try{try{if(_0x50399f['haPbO'](shouldProcessEventForTesthub)){global[_0x656d61(0x1a8)][0x0]&&await _0x50399f[_0x656d61(0x1bf)](sendPlatformDetails,global['__drivers'][0x0],this[_0x656d61(0x1d0)]?this[_0x656d61(0x1d0)][_0x656d61(0x1b3)]:null);if(_0x50399f[_0x656d61(0x1b7)](isBrowserstackInfra)){const _0x4ef579=_0x656d61(0x1f0)+Date[_0x656d61(0x1e4)]();await _0x50399f[_0x656d61(0x1bf)](_0x264600,JSON[_0x656d61(0x1e2)](_0x4ef579),_0x50399f[_0x656d61(0x1f5)]);}}}catch{}_0x50399f[_0x656d61(0x20f)](global['__drivers'][0x0][_0x656d61(0x1d4)],0x0)&&await global[_0x656d61(0x201)]();}catch(_0x4641c1){}_0x50399f[_0x656d61(0x1ef)](_0x1d8882);})[_0x2c715a(0x208)](()=>_0x3fea3b());},'afterAll'(_0x1bb604){const _0x39059d=a30_0x3e88ce,_0x37a911={'ngJkZ':function(_0x36453b){return _0x36453b();}},_0x175089='browserstack internal helper hook';this[_0x39059d(0x1ca)](0xfde8),new Promise(async _0x28fee9=>{const _0x1946d4=_0x39059d;PerformanceTester[_0x1946d4(0x1a9)](),await global[_0x1946d4(0x201)](),_0x37a911[_0x1946d4(0x1f2)](_0x28fee9);})[_0x39059d(0x208)](()=>_0x1bb604());}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';const a31_0x46f389=a31_0x1ca9;function a31_0x1ca9(_0x15b756,_0x57a98c){const _0x485654=a31_0x4856();return a31_0x1ca9=function(_0x1ca9a6,_0x1a80d0){_0x1ca9a6=_0x1ca9a6-0x13c;let _0x4ce0ac=_0x485654[_0x1ca9a6];return _0x4ce0ac;},a31_0x1ca9(_0x15b756,_0x57a98c);}(function(_0x15b668,_0x41b0bb){const _0x1709ba=a31_0x1ca9,_0xaee26a=_0x15b668();while(!![]){try{const _0x4a505c=-parseInt(_0x1709ba(0x163))/0x1*(parseInt(_0x1709ba(0x147))/0x2)+parseInt(_0x1709ba(0x17a))/0x3+-parseInt(_0x1709ba(0x161))/0x4+-parseInt(_0x1709ba(0x17f))/0x5*(parseInt(_0x1709ba(0x145))/0x6)+-parseInt(_0x1709ba(0x17b))/0x7*(parseInt(_0x1709ba(0x178))/0x8)+parseInt(_0x1709ba(0x183))/0x9*(parseInt(_0x1709ba(0x143))/0xa)+-parseInt(_0x1709ba(0x174))/0xb*(-parseInt(_0x1709ba(0x14b))/0xc);if(_0x4a505c===_0x41b0bb)break;else _0xaee26a['push'](_0xaee26a['shift']());}catch(_0x4467f4){_0xaee26a['push'](_0xaee26a['shift']());}}}(a31_0x4856,0x9a8ec));const fs=require('fs'),path=require('path'),{spawn}=require('child_process'),logger=require(a31_0x46f389(0x187))[a31_0x46f389(0x153)],{default:BrowserStackSetup}=require(a31_0x46f389(0x171)),helper=require(a31_0x46f389(0x144)),constants=require(a31_0x46f389(0x15f)),getUserNightwatchConfigs=(_0x150725,_0x3381e4)=>{const _0x214ccc=a31_0x46f389,_0x3c7eb5={'cDzvp':'nightwatch.conf.js','ZZCzO':_0x214ccc(0x14d),'rylic':function(_0x3763a5,_0x16d786){return _0x3763a5(_0x16d786);},'tNNNZ':'Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file'};let _0x3e1b95=null,_0x2aa854={};const _0x5bd29b=_0x3381e4[_0x214ccc(0x148)](_0x54ede6=>_0x54ede6===_0x214ccc(0x16c));if(!helper[_0x214ccc(0x180)](_0x150725[_0x214ccc(0x185)])&&fs[_0x214ccc(0x13f)](path[_0x214ccc(0x184)](process['cwd'](),_0x150725[_0x214ccc(0x185)])))_0x3e1b95=path['join'](process[_0x214ccc(0x146)](),_0x150725[_0x214ccc(0x185)]),_0x3381e4['splice'](_0x5bd29b,0x2);else{if(fs[_0x214ccc(0x13f)](path['join'](process[_0x214ccc(0x146)](),_0x3c7eb5[_0x214ccc(0x16f)])))_0x3e1b95=path[_0x214ccc(0x184)](process[_0x214ccc(0x146)](),_0x3c7eb5[_0x214ccc(0x16f)]);else fs[_0x214ccc(0x13f)](path[_0x214ccc(0x184)](process[_0x214ccc(0x146)](),_0x3c7eb5[_0x214ccc(0x170)]))&&(_0x3e1b95=path['join'](process[_0x214ccc(0x146)](),_0x3c7eb5[_0x214ccc(0x170)]));}return _0x3e1b95?(logger[_0x214ccc(0x16d)]('Getting\x20your\x20nightwatch\x20configs\x20from\x20'+_0x3e1b95),_0x2aa854=_0x3c7eb5[_0x214ccc(0x13c)](require,_0x3e1b95)):logger[_0x214ccc(0x16d)](_0x3c7eb5[_0x214ccc(0x16b)]),_0x2aa854;},removeExistingEnvs=_0xd3223c=>{const _0x2027e1=a31_0x46f389,_0x29b235={};_0x29b235[_0x2027e1(0x142)]=function(_0x1b4c28,_0x583891){return _0x1b4c28>_0x583891;};const _0x316347=_0x29b235;let _0x524fc9=_0xd3223c['findIndex'](_0x3341a5=>_0x3341a5==='--env');_0x316347[_0x2027e1(0x142)](_0x524fc9,-0x1)&&_0xd3223c[_0x2027e1(0x15d)](_0x524fc9,0x2),_0x524fc9=_0xd3223c['findIndex'](_0x1a7806=>_0x1a7806==='-e'),_0x316347[_0x2027e1(0x142)](_0x524fc9,-0x1)&&_0xd3223c[_0x2027e1(0x15d)](_0x524fc9,0x2);};function run(_0x56363a,_0x284416){const _0xd9ec85=a31_0x46f389,_0x9f187d={'ngSVm':_0xd9ec85(0x173),'kKJSc':function(_0x10ad25,_0x1f4d6d){return _0x10ad25+_0x1f4d6d;},'MRIVZ':_0xd9ec85(0x156),'TyqIA':function(_0x19efbc,_0x516329,_0x4ee82c){return _0x19efbc(_0x516329,_0x4ee82c);},'wvURv':_0xd9ec85(0x15e),'gfeKC':_0xd9ec85(0x141),'Mrsrv':function(_0x3a29dd,_0x9905c8){return _0x3a29dd===_0x9905c8;},'QzFFG':_0xd9ec85(0x159),'HXDrd':function(_0x23aa7e,_0x34310c){return _0x23aa7e(_0x34310c);},'FnSOr':function(_0x9946e8,_0x3f93be,_0x169012,_0x1c02e0){return _0x9946e8(_0x3f93be,_0x169012,_0x1c02e0);},'bOsmt':_0xd9ec85(0x172),'aPkZI':'--config','zNESd':_0xd9ec85(0x18b),'rLzIz':_0xd9ec85(0x14a),'jSWRu':'close'},_0x282c0f=new BrowserStackSetup(_0x56363a);if(!_0x282c0f[_0xd9ec85(0x185)])return;const _0x3538ec=_0x9f187d['TyqIA'](getUserNightwatchConfigs,_0x56363a,_0x284416),_0x346d79={};_0x346d79[_0xd9ec85(0x17d)]=![];const _0x28ae50={};_0x28ae50[_0xd9ec85(0x17c)]=_0x9f187d[_0xd9ec85(0x176)],_0x28ae50[_0xd9ec85(0x150)]=0x1bb;const _0x284bb3={};_0x284bb3[_0xd9ec85(0x164)]=_0x346d79,_0x284bb3[_0xd9ec85(0x152)]=_0x28ae50;const _0x14513d=_0x284bb3;logger['info'](_0x9f187d[_0xd9ec85(0x149)]);const _0x186178={..._0x3538ec},_0x281ccf=_0x186178,_0x3cc2b3=helper[_0xd9ec85(0x179)](_0x282c0f[_0xd9ec85(0x185)]),_0x3d4d55=[];_0x282c0f[_0xd9ec85(0x185)][_0xd9ec85(0x16a)]['forEach']((_0x8949f2,_0x186ef9)=>{const _0xa929b6=_0xd9ec85;_0x3cc2b3?_0x3d4d55[_0xa929b6(0x169)](helper[_0xa929b6(0x182)](_0x282c0f[_0xa929b6(0x185)],_0x9f187d[_0xa929b6(0x181)],_0x186ef9)):_0x3d4d55[_0xa929b6(0x169)](helper[_0xa929b6(0x15c)](_0x282c0f[_0xa929b6(0x185)],_0x9f187d[_0xa929b6(0x181)],_0x186ef9));});const _0x4c2b3c={},_0x313ef5=[];_0x56363a[_0xd9ec85(0x157)]=_0x56363a['env']||_0x56363a['e'];const _0x304a66=_0x56363a['env']?_0x56363a[_0xd9ec85(0x157)][_0xd9ec85(0x15b)]()[_0xd9ec85(0x14c)](',')[_0xd9ec85(0x155)](_0x91a647=>_0x91a647['trim']())[_0xd9ec85(0x151)](_0x21b4c1=>_0x21b4c1!==''):[''];_0x9f187d[_0xd9ec85(0x154)](_0x304a66['length'],0x0)&&_0x304a66[_0xd9ec85(0x169)]('');_0x304a66[_0xd9ec85(0x167)](_0x1f1a61=>{const _0x18f4f7=_0xd9ec85;_0x3d4d55[_0x18f4f7(0x167)](_0x4cf878=>{const _0x404a2a=_0x18f4f7;let _0x2fb1a9=_0x9f187d[_0x404a2a(0x158)](helper[_0x404a2a(0x175)](_0x4cf878,'_'),'_'+Date[_0x404a2a(0x18a)]());_0x1f1a61&&(_0x2fb1a9+='_'+_0x1f1a61);if(_0x1f1a61&&(!_0x3538ec[_0x9f187d[_0x404a2a(0x13e)]]||!_0x3538ec[_0x9f187d[_0x404a2a(0x13e)]][_0x1f1a61]))return;const _0x38523a={..._0x14513d};_0x38523a[_0x404a2a(0x177)]=_0x4cf878;const _0x10086b=_0x38523a;_0x4c2b3c[_0x2fb1a9]=_0x1f1a61?helper[_0x404a2a(0x14e)](_0x3538ec[_0x9f187d[_0x404a2a(0x13e)]][_0x1f1a61],_0x10086b):_0x10086b,_0x313ef5['push'](_0x2fb1a9);});});!_0x281ccf[_0xd9ec85(0x156)]&&(_0x281ccf[_0xd9ec85(0x156)]={});_0x281ccf['test_settings']={..._0x281ccf[_0xd9ec85(0x156)],..._0x4c2b3c};const _0x2aab86=path[_0xd9ec85(0x184)](__dirname,_0x9f187d[_0xd9ec85(0x15a)]);fs[_0xd9ec85(0x13d)](_0x2aab86,JSON[_0xd9ec85(0x17e)](_0x281ccf)),_0x9f187d[_0xd9ec85(0x168)](removeExistingEnvs,_0x284416);const _0x2b7153=_0x9f187d[_0xd9ec85(0x165)](spawn,/^win/[_0xd9ec85(0x162)](process['platform'])?_0x9f187d['bOsmt']:_0x9f187d[_0xd9ec85(0x181)],[_0x9f187d[_0xd9ec85(0x189)],_0x2aab86,..._0x284416[_0xd9ec85(0x14f)](0x1),_0x9f187d[_0xd9ec85(0x188)],_0x313ef5[_0xd9ec85(0x184)](',')],{'stdio':_0x9f187d['rLzIz']});_0x2b7153['on'](_0x9f187d[_0xd9ec85(0x160)],async _0x1771ad=>{const _0x3d5df2=_0xd9ec85;logger[_0x3d5df2(0x140)](_0x3d5df2(0x16e)+_0x1771ad),logger[_0x3d5df2(0x16d)](_0x3d5df2(0x186)+_0x2aab86),fs['unlinkSync'](_0x2aab86);});}function a31_0x4856(){const _0x2f7509=['findIndex','gfeKC','inherit','12wxhjaJ','split','nightwatch.json','mergeDeep','slice','port','filter','selenium','winstonLogger','Mrsrv','map','test_settings','env','kKJSc','nightwatch-browserstack.json','QzFFG','trim','modifyBrowserStackCaps','splice','hub.browserstack.com','../utils/constants','jSWRu','3919248CxNiid','test','51gOFTSL','webdriver','FnSOr','exports','forEach','HXDrd','push','platforms','tNNNZ','--config','info','child\x20process\x20exited\x20with\x20code\x20','cDzvp','ZZCzO','../../helpers/BrowserStackSetup','nightwatch.cmd','nightwatch','33969991UTESAL','getPlatformName','wvURv','desiredCapabilities','31048LrrIaQ','useW3C','886068INvOby','1526HuFNIc','host','start_process','stringify','440bomDPv','isUndefined','ngSVm','modifyBrowserStackW3CCaps','18GCgYkT','join','config','Deleting\x20','../../helpers/logger','zNESd','aPkZI','now','--env','rylic','writeFileSync','MRIVZ','existsSync','debug','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','SWmMg','3286510uTcqJc','../../helpers/helper','69054pxoEZf','cwd','22318sDHoKn'];a31_0x4856=function(){return _0x2f7509;};return a31_0x4856();}module[a31_0x46f389(0x166)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a32_0x32219e=a32_0x23b6;function a32_0x23b6(_0x88c86e,_0x3e8de1){const _0x5c4539=a32_0x5c45();return a32_0x23b6=function(_0x23b64e,_0x35ab1a){_0x23b64e=_0x23b64e-0x1d2;let _0x56b95c=_0x5c4539[_0x23b64e];return _0x56b95c;},a32_0x23b6(_0x88c86e,_0x3e8de1);}(function(_0x2127ae,_0x25af71){const _0x16cd0a=a32_0x23b6,_0x2d7604=_0x2127ae();while(!![]){try{const _0x5a7cd2=-parseInt(_0x16cd0a(0x1df))/0x1*(-parseInt(_0x16cd0a(0x201))/0x2)+-parseInt(_0x16cd0a(0x1fa))/0x3+parseInt(_0x16cd0a(0x207))/0x4*(parseInt(_0x16cd0a(0x1d2))/0x5)+-parseInt(_0x16cd0a(0x202))/0x6+parseInt(_0x16cd0a(0x20d))/0x7*(-parseInt(_0x16cd0a(0x1f3))/0x8)+parseInt(_0x16cd0a(0x1d3))/0x9+-parseInt(_0x16cd0a(0x1fe))/0xa*(parseInt(_0x16cd0a(0x1e2))/0xb);if(_0x5a7cd2===_0x25af71)break;else _0x2d7604['push'](_0x2d7604['shift']());}catch(_0x223749){_0x2d7604['push'](_0x2d7604['shift']());}}}(a32_0x5c45,0xeb1bc));function a32_0x5c45(){const _0x581e75=['tzJnJ','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','browser','No\x20accessibility\x20results\x20were\x20found.','3952VsDEHT','xaKeO','bstackSdkArgs','xpTzP','stringify','includeIssueType','scannerProcessingTimeout','3521553ObFPKa','VbAiq','tURnm','replace','90BtoyHG','ujsxh','accessibilityOptions.scannerVersion','74oDwFjT','410274wHuriV','wsEndpoint','browserStackEvaluate','CjOZM','accessibilityOptions.includeIssueType.bestPractice','88QUkjSO','needsReview','executeAsyncScript','accessibilityPlatform','latest','accessibilityOptions.includeIssueType.needsReview','4473BJQPLD','XOvdv','testInfo','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','ItUVb','browser_version','setAccessibilityCapabilities','playwright-chromium','iSkZs','ifRFZ','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','../../helpers/helper','bkbbB','Playwright','MiKIO','performScan','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','env','accessibilityOptions','MDOQs','UUJjk','use','accessibilityOptions.wcagVersion','mBbru','AkAuU','tVVuq','method','deviceName','name','currentTest','SZrDC','format','util','bestPractice','../../helpers/logger','scannerVersion','executeScript','sEvHi','hiqtT','parse','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','warn','otTru','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','395105mjWzgV','4751298htygyi','error','No\x20summaryResults\x20found.','debug','MOzEN','evaluate','winstonLogger','phkjv','WebDriver','browserstack.accessibility','../../helpers/accessibility-automation/helper','qIyXj','15179XsRaRf','RWJnT','rbDzm','375353lhLMFo','lldCs','project','(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','accessibilityOptions.scannerProcessingTimeout','browserName','fCTuA','../../helpers/accessibility-automation/scripts','bLCbv','RTEKb','constructor','sFqWl','wcagVersion'];a32_0x5c45=function(){return _0x581e75;};return a32_0x5c45();}const util=require(a32_0x32219e(0x22e)),logger=require(a32_0x32219e(0x230))[a32_0x32219e(0x1d9)],{isAccessibilityAutomationSession}=require(a32_0x32219e(0x1dd)),{isUndefined}=require(a32_0x32219e(0x219)),scripts=require(a32_0x32219e(0x1e9));exports[a32_0x32219e(0x204)]=async(_0x1f2b74,_0x4cbe8b,_0xa63223={})=>{const _0x4a3aa0=a32_0x32219e,_0x39f618={};_0x39f618[_0x4a3aa0(0x1d7)]=_0x4a3aa0(0x1f5);const _0x354147=_0x39f618;return await _0x1f2b74[_0x4a3aa0(0x1d8)]('(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'+_0x4cbe8b[_0x4a3aa0(0x1fd)](/arguments/g,_0x354147[_0x4a3aa0(0x1d7)])+'\x0a\x20\x20\x20\x20})\x0a\x20\x20})('+JSON[_0x4a3aa0(0x1f7)](_0xa63223)+')');},exports['browserStackExecuteDriver']=async(_0x45def1,_0x31cfcf,_0xf95647={})=>{const _0x49ab51=a32_0x32219e,_0x2c19c8={};_0x2c19c8[_0x49ab51(0x238)]=function(_0x487fe6,_0x7c6b4a){return _0x487fe6===_0x7c6b4a;},_0x2c19c8[_0x49ab51(0x227)]=_0x49ab51(0x1db),_0x2c19c8[_0x49ab51(0x21a)]=_0x49ab51(0x21b),_0x2c19c8['hiqtT']=_0x49ab51(0x1f5);const _0xb2693c=_0x2c19c8;if(_0xb2693c[_0x49ab51(0x238)](_0x45def1['constructor'][_0x49ab51(0x22a)],_0xb2693c[_0x49ab51(0x227)]))return await _0x45def1[_0x49ab51(0x209)](_0x31cfcf,_0xf95647);else{if(_0xb2693c[_0x49ab51(0x238)](_0x45def1[_0x49ab51(0x1ec)][_0x49ab51(0x22a)],_0xb2693c[_0x49ab51(0x21a)]))return await _0x45def1[_0x49ab51(0x232)](_0x49ab51(0x1e5)+_0x31cfcf['replace'](/arguments/g,_0xb2693c[_0x49ab51(0x234)])+_0x49ab51(0x217)+JSON[_0x49ab51(0x1f7)](_0xf95647)+')');}},exports[a32_0x32219e(0x213)]=async _0x259d09=>{const _0x1f8c05=a32_0x32219e,_0xe6c1a={};_0xe6c1a['sEvHi']=_0x1f8c05(0x224),_0xe6c1a[_0x1f8c05(0x20e)]=_0x1f8c05(0x1e6),_0xe6c1a[_0x1f8c05(0x225)]=_0x1f8c05(0x206),_0xe6c1a[_0x1f8c05(0x1f6)]=_0x1f8c05(0x20c),_0xe6c1a[_0x1f8c05(0x22c)]='accessibilityOptions.authToken',_0xe6c1a['sFqWl']=_0x1f8c05(0x200);const _0x37904e=_0xe6c1a;_0x259d09[_0x1f8c05(0x220)]&&(_0x259d09[_0x1f8c05(0x220)][_0x1f8c05(0x1ee)]&&(_0x259d09[_0x37904e[_0x1f8c05(0x233)]]=_0x259d09[_0x1f8c05(0x220)]['wcagVersion']),_0x259d09[_0x1f8c05(0x220)][_0x1f8c05(0x1f9)]&&(_0x259d09[_0x37904e['XOvdv']]=_0x259d09[_0x1f8c05(0x220)][_0x1f8c05(0x1f9)]),_0x259d09[_0x1f8c05(0x220)][_0x1f8c05(0x1f8)]&&(_0x259d09[_0x37904e['mBbru']]=_0x259d09['accessibilityOptions'][_0x1f8c05(0x1f8)][_0x1f8c05(0x22f)],_0x259d09[_0x37904e['xpTzP']]=_0x259d09['accessibilityOptions']['includeIssueType'][_0x1f8c05(0x208)]));const _0x55e7d6=JSON[_0x1f8c05(0x235)](process[_0x1f8c05(0x21f)][_0x1f8c05(0x21e)])[_0x1f8c05(0x231)];_0x259d09[_0x37904e['SZrDC']]=process[_0x1f8c05(0x21f)]['BS_A11Y_JWT'],_0x259d09[_0x37904e[_0x1f8c05(0x1ed)]]=_0x55e7d6,delete _0x259d09[_0x1f8c05(0x220)];},exports['getAccessibilityResults']=async _0x3cded8=>{const _0x17f1f1=a32_0x32219e,_0x24a9fc={};_0x24a9fc[_0x17f1f1(0x1fc)]=_0x17f1f1(0x1f2),_0x24a9fc['qIyXj']=_0x17f1f1(0x239);const _0x2bf8a5=_0x24a9fc;if(global[_0x17f1f1(0x20a)])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x3cded8,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x3cded8,scripts.getResults);return res;}catch{return logger[_0x17f1f1(0x1d4)](_0x2bf8a5[_0x17f1f1(0x1fc)]),[];}else return logger[_0x17f1f1(0x237)](_0x2bf8a5[_0x17f1f1(0x1de)]),[];},exports[a32_0x32219e(0x21d)]=async(_0x1aa705,_0xebefb4='')=>{const _0x5b50a8=a32_0x32219e;if(global['accessibilityPlatform']){const _0x43a0e0={};return _0x43a0e0[_0x5b50a8(0x228)]=_0xebefb4,await exports[_0x5b50a8(0x204)](_0x1aa705,scripts[_0x5b50a8(0x21d)],_0x43a0e0);}},exports['getAccessibilityResultsSummary']=async _0x33b85c=>{const _0x4d4c80=a32_0x32219e,_0x5f2379={};_0x5f2379[_0x4d4c80(0x1ef)]=_0x4d4c80(0x1d5),_0x5f2379[_0x4d4c80(0x221)]=_0x4d4c80(0x1f0);const _0x4d3c3b=_0x5f2379;if(global['accessibilityPlatform'])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x33b85c,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x33b85c,scripts.getResultsSummary);return summaryResults;}catch{return logger[_0x4d4c80(0x1d6)](_0x4d3c3b['tzJnJ']),{};}else return logger['warn'](_0x4d3c3b[_0x4d4c80(0x221)]),{};},exports['platformValidation']=async _0x412fa2=>{const _0x29e17e=a32_0x32219e,_0x33b153={'zisXd':function(_0x3b4625,_0x383eac){return _0x3b4625!==_0x383eac;},'phkjv':_0x29e17e(0x210),'CjOZM':function(_0x38f8f7,_0x1d461a){return _0x38f8f7===_0x1d461a;},'ifRFZ':'chrome','fCTuA':_0x29e17e(0x214),'ItUVb':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','UUJjk':function(_0x3db93b,_0x13cd50){return _0x3db93b(_0x13cd50);},'RTEKb':_0x29e17e(0x20b),'QSftH':function(_0x3c1cee,_0x434e23){return _0x3c1cee>_0x434e23;},'OtkFD':_0x29e17e(0x236)};try{if(!_0x33b153['zisXd'](_0x412fa2[_0x29e17e(0x229)],''))return logger[_0x29e17e(0x237)](_0x33b153[_0x29e17e(0x1da)]),![];const _0x5ea47a=_0x412fa2[_0x29e17e(0x1f1)];if(!(_0x33b153[_0x29e17e(0x205)](_0x5ea47a,_0x33b153[_0x29e17e(0x216)])||_0x33b153[_0x29e17e(0x205)](_0x5ea47a,_0x33b153[_0x29e17e(0x1e8)])))return logger[_0x29e17e(0x237)](_0x33b153[_0x29e17e(0x211)]),![];const _0x15c853=_0x33b153[_0x29e17e(0x222)](parseInt,_0x412fa2[_0x29e17e(0x212)]);if(!(_0x33b153[_0x29e17e(0x205)](_0x15c853,_0x33b153[_0x29e17e(0x1eb)])||_0x33b153['QSftH'](_0x15c853,0x5e)))return logger[_0x29e17e(0x237)](_0x33b153['OtkFD']),![];}catch(_0x557936){logger['debug']('Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20'+util['format'](_0x557936));}return!![];},exports['processAccessibilityCaps']=(_0x5d1d05,_0x4211c9,_0x3346af)=>{const _0x44f53a=a32_0x32219e,_0x97fa6c={'iSkZs':function(_0x31e2c1){return _0x31e2c1();},'xaKeO':_0x44f53a(0x1dc),'rbDzm':function(_0x276a98,_0x5ae290){return _0x276a98===_0x5ae290;},'RWJnT':'chrome','bLCbv':function(_0x1a28b9,_0x2997f9){return _0x1a28b9===_0x2997f9;},'sLrno':'playwright-chromium','MiKIO':_0x44f53a(0x218),'PoZYc':'latest','VbAiq':function(_0x5300c7,_0x50a09c){return _0x5300c7>_0x50a09c;},'lIBVj':_0x44f53a(0x236),'lldCs':function(_0x582579,_0x4dbc26){return _0x582579(_0x4dbc26);},'ujsxh':_0x44f53a(0x210),'AkAuU':function(_0x3842c5,_0x1b7a0e){return _0x3842c5+_0x1b7a0e;}};try{if(_0x97fa6c[_0x44f53a(0x215)](isAccessibilityAutomationSession)){global[_0x44f53a(0x20a)]=!![];!_0x5d1d05[_0x97fa6c[_0x44f53a(0x1f4)]]&&(global[_0x44f53a(0x20a)]=![]);!(_0x97fa6c[_0x44f53a(0x1e1)](_0x5d1d05['browserName'],_0x97fa6c[_0x44f53a(0x1e0)])||_0x97fa6c[_0x44f53a(0x1ea)](_0x5d1d05[_0x44f53a(0x1e7)],_0x97fa6c['sLrno']))&&(logger[_0x44f53a(0x237)](_0x97fa6c[_0x44f53a(0x21c)]),global[_0x44f53a(0x20a)]=![]);!(_0x97fa6c[_0x44f53a(0x1e1)](_0x5d1d05[_0x44f53a(0x212)],_0x97fa6c['PoZYc'])||_0x97fa6c[_0x44f53a(0x1fb)](_0x5d1d05['browser_version'],0x5e))&&(logger[_0x44f53a(0x237)](_0x97fa6c['lIBVj']),global[_0x44f53a(0x20a)]=![]);!_0x97fa6c[_0x44f53a(0x1e3)](isUndefined,_0x5d1d05['deviceName'])&&(logger['warn'](_0x97fa6c[_0x44f53a(0x1ff)]),global[_0x44f53a(0x20a)]=![]);if(!global[_0x44f53a(0x20a)]){_0x5d1d05[_0x97fa6c[_0x44f53a(0x1f4)]]=![];const _0xeb9f6b=_0x97fa6c[_0x44f53a(0x226)](_0x4211c9,_0x97fa6c['lldCs'](encodeURIComponent,JSON[_0x44f53a(0x1f7)](_0x5d1d05)));_0x3346af&&(_0x3346af[_0x44f53a(0x22b)][_0x44f53a(0x20f)][_0x44f53a(0x1e4)][_0x44f53a(0x223)]['connectOptions'][_0x44f53a(0x203)]=_0xeb9f6b);}}}catch(_0xd490fc){logger[_0x44f53a(0x1d6)]('Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20'+util[_0x44f53a(0x22d)](_0xd490fc));}};
|
|
1
|
+
const a32_0x54eeb9=a32_0x4453;(function(_0xcfa5c6,_0xeb3813){const _0x3fabdd=a32_0x4453,_0x434e92=_0xcfa5c6();while(!![]){try{const _0x434035=parseInt(_0x3fabdd(0xe6))/0x1+-parseInt(_0x3fabdd(0x137))/0x2+parseInt(_0x3fabdd(0x123))/0x3+parseInt(_0x3fabdd(0xfe))/0x4+-parseInt(_0x3fabdd(0xef))/0x5+parseInt(_0x3fabdd(0x115))/0x6+parseInt(_0x3fabdd(0xf0))/0x7;if(_0x434035===_0xeb3813)break;else _0x434e92['push'](_0x434e92['shift']());}catch(_0x318bf7){_0x434e92['push'](_0x434e92['shift']());}}}(a32_0x38d1,0x35f16));function a32_0x4453(_0x38df3,_0x36a4bc){const _0x38d180=a32_0x38d1();return a32_0x4453=function(_0x445392,_0x34f8b3){_0x445392=_0x445392-0xda;let _0x41a342=_0x38d180[_0x445392];return _0x41a342;},a32_0x4453(_0x38df3,_0x36a4bc);}const util=require('util'),logger=require(a32_0x54eeb9(0x141))[a32_0x54eeb9(0xf9)],{isAccessibilityAutomationSession}=require(a32_0x54eeb9(0xe5)),{isUndefined}=require(a32_0x54eeb9(0x13e)),scripts=require(a32_0x54eeb9(0x108));function a32_0x38d1(){const _0x3d692f=['30324mrcQRF','includeIssueType','kFEjI','PofKz','chrome','performScan','executeScript','executeAsyncScript','IzyoN','playwright-chromium','naXwz','browserstack.accessibility','platformValidation','wcagVersion','wkUVv','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','name','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','TFyII','207942bKmJeU','stringify','BZvDB','IuNHF','getAccessibilityResultsSummary','accessibilityOptions','wsEndpoint','../../helpers/helper','veHUr','BS_A11Y_JWT','../../helpers/logger','accessibilityPlatform','YnUGh','eSoyo','(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','HAUeX','ijKcy','(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','browser','jJdFw','accessibilityOptions.scannerVersion','bsatC','uyhHv','../../helpers/accessibility-automation/helper','8879fWXcXL','KVqLp','JBukr','browserName','zwCDp','evaluate','env','TptGD','Playwright','1825375aXNCSf','1480703iVIaUe','bestPractice','warn','accessibilityOptions.includeIssueType.needsReview','accessibilityOptions.wcagVersion','replace','debug','bstackSdkArgs','No\x20summaryResults\x20found.','winstonLogger','method','scannerVersion','fSypx','ibHZl','1680392boBHaR','tWgeO','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','error','WebDriver','use','needsReview','format','BYFgC','cDjsN','../../helpers/accessibility-automation/scripts','IIoGs','browserStackEvaluate','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','HkYhf','setAccessibilityCapabilities','latest','testInfo','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','dAcLW','LyBQb','HMsFK','236292rIjaWf','constructor','No\x20accessibility\x20results\x20were\x20found.','deviceName','sSyUz','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','wKaoh','GWBcL','FOiYE','browserStackExecuteDriver','kOpib','CAiPp','accessibilityOptions.authToken'];a32_0x38d1=function(){return _0x3d692f;};return a32_0x38d1();}exports['browserStackEvaluate']=async(_0x574474,_0x156c49,_0x3168e5={})=>{const _0x534c3f=a32_0x54eeb9,_0x4aeccb={};_0x4aeccb[_0x534c3f(0xe7)]=_0x534c3f(0xf7);const _0x15c078=_0x4aeccb;return await _0x574474[_0x534c3f(0xeb)](_0x534c3f(0xdc)+_0x156c49[_0x534c3f(0xf5)](/arguments/g,_0x15c078['KVqLp'])+_0x534c3f(0x134)+JSON[_0x534c3f(0x138)](_0x3168e5)+')');},exports[a32_0x54eeb9(0x11f)]=async(_0x54b795,_0x46a437,_0x547b52={})=>{const _0xbf3570=a32_0x54eeb9,_0x6b47d3={};_0x6b47d3[_0xbf3570(0x12d)]=function(_0x4ff88d,_0x15b4ac){return _0x4ff88d===_0x15b4ac;},_0x6b47d3[_0xbf3570(0x13f)]=_0xbf3570(0x102),_0x6b47d3[_0xbf3570(0xed)]=_0xbf3570(0xee),_0x6b47d3[_0xbf3570(0xff)]=_0xbf3570(0xf7);const _0x36a72a=_0x6b47d3;if(_0x36a72a['naXwz'](_0x54b795[_0xbf3570(0x116)][_0xbf3570(0x133)],_0x36a72a['veHUr']))return await _0x54b795[_0xbf3570(0x12a)](_0x46a437,_0x547b52);else{if(_0x36a72a[_0xbf3570(0x12d)](_0x54b795[_0xbf3570(0x116)][_0xbf3570(0x133)],_0x36a72a[_0xbf3570(0xed)]))return await _0x54b795[_0xbf3570(0x129)](_0xbf3570(0xdf)+_0x46a437[_0xbf3570(0xf5)](/arguments/g,_0x36a72a[_0xbf3570(0xff)])+_0xbf3570(0x11a)+JSON[_0xbf3570(0x138)](_0x547b52)+')');}},exports[a32_0x54eeb9(0x10e)]=async _0x2be581=>{const _0x24dd7c=a32_0x54eeb9,_0x5127eb={};_0x5127eb[_0x24dd7c(0x11c)]=_0x24dd7c(0xf4),_0x5127eb[_0x24dd7c(0x11d)]='accessibilityOptions.scannerProcessingTimeout',_0x5127eb['TFyII']='accessibilityOptions.includeIssueType.bestPractice',_0x5127eb[_0x24dd7c(0xda)]=_0x24dd7c(0xf3),_0x5127eb['wkUVv']=_0x24dd7c(0x122),_0x5127eb[_0x24dd7c(0x114)]=_0x24dd7c(0xe2);const _0x248348=_0x5127eb;_0x2be581[_0x24dd7c(0x13c)]&&(_0x2be581[_0x24dd7c(0x13c)][_0x24dd7c(0x130)]&&(_0x2be581[_0x248348[_0x24dd7c(0x11c)]]=_0x2be581[_0x24dd7c(0x13c)][_0x24dd7c(0x130)]),_0x2be581[_0x24dd7c(0x13c)]['scannerProcessingTimeout']&&(_0x2be581[_0x248348[_0x24dd7c(0x11d)]]=_0x2be581[_0x24dd7c(0x13c)]['scannerProcessingTimeout']),_0x2be581[_0x24dd7c(0x13c)]['includeIssueType']&&(_0x2be581[_0x248348[_0x24dd7c(0x136)]]=_0x2be581['accessibilityOptions'][_0x24dd7c(0x124)][_0x24dd7c(0xf1)],_0x2be581[_0x248348['YnUGh']]=_0x2be581['accessibilityOptions'][_0x24dd7c(0x124)][_0x24dd7c(0x104)]));const _0x178013=JSON['parse'](process[_0x24dd7c(0xec)][_0x24dd7c(0x111)])[_0x24dd7c(0xfb)];_0x2be581[_0x248348[_0x24dd7c(0x131)]]=process[_0x24dd7c(0xec)][_0x24dd7c(0x140)],_0x2be581[_0x248348['HMsFK']]=_0x178013,delete _0x2be581[_0x24dd7c(0x13c)];},exports['getAccessibilityResults']=async _0x325535=>{const _0x48783b=a32_0x54eeb9,_0x2224c3={};_0x2224c3[_0x48783b(0x107)]=_0x48783b(0x117),_0x2224c3[_0x48783b(0x10d)]=_0x48783b(0x11b);const _0x586c96=_0x2224c3;if(global[_0x48783b(0x142)])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x325535,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x325535,scripts.getResults);return res;}catch{return logger[_0x48783b(0x101)](_0x586c96[_0x48783b(0x107)]),[];}else return logger[_0x48783b(0xf2)](_0x586c96[_0x48783b(0x10d)]),[];},exports[a32_0x54eeb9(0x128)]=async(_0x32bf40,_0x4b2de2='')=>{const _0x2a60e2=a32_0x54eeb9;if(global[_0x2a60e2(0x142)]){const _0x1a9b47={};return _0x1a9b47[_0x2a60e2(0xfa)]=_0x4b2de2,await exports[_0x2a60e2(0x10a)](_0x32bf40,scripts[_0x2a60e2(0x128)],_0x1a9b47);}},exports[a32_0x54eeb9(0x13b)]=async _0x7cf0e1=>{const _0x3c7fb8=a32_0x54eeb9,_0x4fead7={};_0x4fead7[_0x3c7fb8(0x12b)]=_0x3c7fb8(0xf8),_0x4fead7['uyhHv']=_0x3c7fb8(0x132);const _0x3ee89d=_0x4fead7;if(global[_0x3c7fb8(0x142)])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x7cf0e1,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x7cf0e1,scripts.getResultsSummary);return summaryResults;}catch{return logger['debug'](_0x3ee89d[_0x3c7fb8(0x12b)]),{};}else return logger[_0x3c7fb8(0xf2)](_0x3ee89d[_0x3c7fb8(0xe4)]),{};},exports[a32_0x54eeb9(0x12f)]=async _0x230727=>{const _0x21232c=a32_0x54eeb9,_0x552d76={'sSyUz':function(_0x156780,_0x5407f2){return _0x156780!==_0x5407f2;},'jJdFw':_0x21232c(0x100),'FOiYE':function(_0x8b4b63,_0xd75162){return _0x8b4b63===_0xd75162;},'BZvDB':'chrome','IuNHF':_0x21232c(0x12c),'eSoyo':_0x21232c(0x10c),'CAiPp':function(_0x502af3,_0x2a55bd){return _0x502af3(_0x2a55bd);},'HAUeX':_0x21232c(0x10f),'kFEjI':function(_0x2d06fc,_0x217a18){return _0x2d06fc>_0x217a18;},'QNMRw':_0x21232c(0x10b)};try{if(!_0x552d76[_0x21232c(0x119)](_0x230727[_0x21232c(0x118)],''))return logger['warn'](_0x552d76[_0x21232c(0xe1)]),![];const _0x2f79e9=_0x230727[_0x21232c(0xe0)];if(!(_0x552d76['FOiYE'](_0x2f79e9,_0x552d76[_0x21232c(0x139)])||_0x552d76[_0x21232c(0x11e)](_0x2f79e9,_0x552d76[_0x21232c(0x13a)])))return logger['warn'](_0x552d76[_0x21232c(0xdb)]),![];const _0x23a574=_0x552d76[_0x21232c(0x121)](parseInt,_0x230727['browser_version']);if(!(_0x552d76[_0x21232c(0x11e)](_0x23a574,_0x552d76[_0x21232c(0xdd)])||_0x552d76[_0x21232c(0x125)](_0x23a574,0x5e)))return logger[_0x21232c(0xf2)](_0x552d76['QNMRw']),![];}catch(_0x33791d){logger[_0x21232c(0xf6)](_0x21232c(0x135)+util['format'](_0x33791d));}return!![];},exports['processAccessibilityCaps']=(_0x289d42,_0x1b22a3,_0x19c71b)=>{const _0x585369=a32_0x54eeb9,_0x50d5af={'IIoGs':function(_0x4238d7){return _0x4238d7();},'kOpib':_0x585369(0x12e),'LyBQb':function(_0x273fde,_0x3b43b5){return _0x273fde===_0x3b43b5;},'JBukr':_0x585369(0x127),'BYFgC':_0x585369(0x12c),'bsatC':_0x585369(0x10c),'eayfW':function(_0x19403b,_0x1ac16f){return _0x19403b===_0x1ac16f;},'fSypx':_0x585369(0x10f),'PofKz':function(_0x55ffa0,_0xd19e59){return _0x55ffa0>_0xd19e59;},'ijKcy':_0x585369(0x10b),'dAcLW':function(_0x323d11,_0x1dcfe0){return _0x323d11(_0x1dcfe0);},'ibHZl':_0x585369(0x100),'zwCDp':function(_0x1e206,_0x1de5c3){return _0x1e206+_0x1de5c3;}};try{if(_0x50d5af[_0x585369(0x109)](isAccessibilityAutomationSession)){global[_0x585369(0x142)]=!![];!_0x289d42[_0x50d5af['kOpib']]&&(global['accessibilityPlatform']=![]);!(_0x50d5af[_0x585369(0x113)](_0x289d42[_0x585369(0xe9)],_0x50d5af[_0x585369(0xe8)])||_0x50d5af[_0x585369(0x113)](_0x289d42[_0x585369(0xe9)],_0x50d5af[_0x585369(0x106)]))&&(logger['warn'](_0x50d5af[_0x585369(0xe3)]),global[_0x585369(0x142)]=![]);!(_0x50d5af['eayfW'](_0x289d42['browser_version'],_0x50d5af[_0x585369(0xfc)])||_0x50d5af[_0x585369(0x126)](_0x289d42['browser_version'],0x5e))&&(logger[_0x585369(0xf2)](_0x50d5af[_0x585369(0xde)]),global[_0x585369(0x142)]=![]);!_0x50d5af[_0x585369(0x112)](isUndefined,_0x289d42['deviceName'])&&(logger['warn'](_0x50d5af[_0x585369(0xfd)]),global[_0x585369(0x142)]=![]);if(!global['accessibilityPlatform']){_0x289d42[_0x50d5af[_0x585369(0x120)]]=![];const _0x5145ff=_0x50d5af[_0x585369(0xea)](_0x1b22a3,_0x50d5af[_0x585369(0x112)](encodeURIComponent,JSON[_0x585369(0x138)](_0x289d42)));_0x19c71b&&(_0x19c71b['currentTest'][_0x585369(0x110)]['project'][_0x585369(0x103)]['connectOptions'][_0x585369(0x13d)]=_0x5145ff);}}}catch(_0x2440d){logger['debug']('Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20'+util[_0x585369(0x105)](_0x2440d));}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a33_0x17dc7a=a33_0x59f3;(function(_0x2ecfcc,_0x4ceaa5){const _0x4fa298=a33_0x59f3,_0x4f33be=_0x2ecfcc();while(!![]){try{const _0x4081c9=parseInt(_0x4fa298(0x16e))/0x1*(-parseInt(_0x4fa298(0x1cf))/0x2)+-parseInt(_0x4fa298(0x183))/0x3+parseInt(_0x4fa298(0x173))/0x4+parseInt(_0x4fa298(0x1bf))/0x5*(-parseInt(_0x4fa298(0x1eb))/0x6)+-parseInt(_0x4fa298(0x17e))/0x7+parseInt(_0x4fa298(0x1cb))/0x8*(parseInt(_0x4fa298(0x165))/0x9)+parseInt(_0x4fa298(0x184))/0xa;if(_0x4081c9===_0x4ceaa5)break;else _0x4f33be['push'](_0x4f33be['shift']());}catch(_0x5c7a74){_0x4f33be['push'](_0x4f33be['shift']());}}}(a33_0x1be1,0x615ad));function a33_0x1be1(){const _0x5294a7=['Cjlea','lsTng','info','WlLoF','6465798NkAZZE','../../helpers/helper','getPackageType','string','VrOEL','WXLEb','vqkMx','UBgwV','testMatch','2qIWmYT','aLtEw','markSDKSetupComplete','globalSetup','--grep','326212WBWewV','exports','test','sagam','QjFIr','startsWith','HsNQl','inherit','platforms','BrowserStack\x20config\x20file\x20not\x20found.','BrowserStack\x20Accessibility\x20Automation\x20Test\x20Run\x20ID:\x20','4643142HOJwQF','Mykcb','serializeToYamlString','hmYUS','path','993543wIGhIY','9172370JrimAn','iPYYR','jWEoB','../../helpers/test-observability/sessionHandler','oQvgI','logLevel','tIRbV','resolve','kolnQ','object','pJaMM','eWfNJ','cliConfig','get','platform','MODULE','trim','--config','child_process','teMVd','BROWSERSTACK_RERUN_TESTS','4|3|2|0|1','config','Deleting\x20','true','lYLBU','browserstackSetupConfig.json','TBUiA','length','PACKAGE_TYPE','Can\x27t\x20get\x20user\x20defined\x20global\x20setup\x20file','split','homedir','existsSync','../../helpers/test-observability/constants','env','isFalse','LInHB','stringify','ALEgu','CXNyM','getProxyUrl','cwd','RRdFR','reporter','BROWSERSTACK_RERUN','JniPC','respectGitIgnore','collectFilesForProject','fGvcj','AsWmJ','testObservability','PuZUT','XyuEM','slice','BROWSERSTACK_TEST_ACCESSIBILITY_YML','automation','Ifpec','finalExecution','10jNyyCI','jndgu','isTrue','BROWSERSTACK_TEST_OBSERVABILITY','debug','PLAYWRIGHT','RLbEt','--disable-test-observability','tIkdn','playwright-browserstack-sdk.config.cjs','skipSessionName','BROWSERSTACK_SETUP_CONFIG_PATH','8Hejtlv','accessibilityOptions','push','--config=','188098pqFIhR','RjoBv','Zgwnu','splice','isUndefined','gNLoP','playwright','XuOqJ','win32','dUJsj','LcYve','filter','@playwright/test','apply','FcohS','iSkqq','resolvedConfigFile','bgozl','ywFjZ','hJolb','ItWwg','readFileSync','./accessibility-helper','initialize','dirname','launch','../../helpers/test-observability/utils','PyRkJ','407586amMeEh','xFisf','has','hcHuK','SOULX','FBxoQ','OEsoB','join','./reporter/reporter.js','./reporter/pwUtils','getConfigPath','FllLK','parse','ZgPVr','BS_A11Y_TEST_RUN_ID','_internal','TLYPe','concat','winstonLogger','assign','skipSessionStatus','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','FUGVW','error','playwright-browserstack-sdk.config.js','map','requirePWModule','npx','.browserstack','rmTxT','nUfIu','false','exitCode','null','NAwvi','../utils/constants','filterBrowserstackConfig','bQSYf','XLSXI','BS_A11Y_JWT','YcWtB','unlinkSync','Error\x20in\x20getting\x20funnel\x20data\x20results','--disable-browserstack-automation','YtNAM','argv','USER_CONFIG_DETAILS_PATH','VGgDC','util','../../helpers/logger','JyJfV','testContextOptions','ueqIW','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','CsGHO','LdHOS','testDir','oAsFG','nestedKeyValue','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','fxEQv','pw_result.json','Error\x20in\x20deleting\x20playwright\x20results','accessibility','writeFileSync','JPRYI','BtLiA','WbRYE','rfCJf','Error\x20in\x20running\x20user\x20global\x20setup\x20for\x20playwright','testIgnore','BROWSERSTACK_AUTOMATION','project','Playwright\x20process\x20exited\x20with\x20code\x20'];a33_0x1be1=function(){return _0x5294a7;};return a33_0x1be1();}const fs=require('fs'),path=require(a33_0x17dc7a(0x182)),os=require('os'),{spawn}=require(a33_0x17dc7a(0x196)),{format}=require(a33_0x17dc7a(0x147)),logger=require(a33_0x17dc7a(0x148))[a33_0x17dc7a(0x129)],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require(a33_0x17dc7a(0x166)),constants=require(a33_0x17dc7a(0x13a)),{FRAMEWORKS}=require(a33_0x17dc7a(0x1a6)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require(a33_0x17dc7a(0x120)),{CrashReporter,o11yErrorHandler}=require('../../helpers/test-observability/error-handler'),{getFrameworkVersion}=require(a33_0x17dc7a(0x1e9)),{createAccessibilityTestRun,stopAccessibilityTestRun,checkAccessibilityPlatformConfig}=require('../../helpers/accessibility-automation/helper'),{setAccessibilityCapabilities}=require(a33_0x17dc7a(0x1e5)),SessionHandler=require(a33_0x17dc7a(0x187));async function requireOrImportDefaultObject(_0x271582){const _0x227796=a33_0x17dc7a,_0x11c177={'Zgwnu':function(_0x92367f){return _0x92367f();},'Mykcb':function(_0x47adc2,_0x482056){return _0x47adc2(_0x482056);},'fxEQv':function(_0x484155,_0x2b911c){return _0x484155===_0x2b911c;},'ItWwg':_0x227796(0x18d),'Ifpec':function(_0x23e6de,_0x3d5397){return _0x23e6de in _0x3d5397;},'PyRkJ':'default'},{requireOrImport:_0x97bcb1}=helper[_0x227796(0x131)][_0x227796(0x1dc)](null,_0x11c177[_0x227796(0x1d1)](getTransformPath));let _0x5d9ce5=await _0x11c177[_0x227796(0x17f)](_0x97bcb1,_0x271582);return _0x5d9ce5&&_0x11c177[_0x227796(0x153)](typeof _0x5d9ce5,_0x11c177[_0x227796(0x1e3)])&&_0x11c177[_0x227796(0x1bd)](_0x11c177[_0x227796(0x1ea)],_0x5d9ce5)&&(_0x5d9ce5=_0x5d9ce5[_0x11c177['PyRkJ']]),_0x5d9ce5;}const getUserPlaywrightConfig=async(_0x50497d,_0x1e9269)=>{const _0x2b4215=a33_0x17dc7a,_0x536a1b={'CsGHO':function(_0x4f3a65){return _0x4f3a65();},'dUJsj':function(_0x103e3b,_0x439eee){return _0x103e3b(_0x439eee);},'CXNyM':_0x2b4215(0x1df),'XyuEM':'Error\x20in\x20importing\x20your\x20playwright\x20config:\x20','FcohS':'Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','pJaMM':_0x2b4215(0x1ce)},_0x1540ad=!helper[_0x2b4215(0x1d3)](_0x50497d[_0x2b4215(0x19a)]),_0x44ad88=_0x1540ad?path[_0x2b4215(0x18b)](process[_0x2b4215(0x1ae)](),_0x50497d[_0x2b4215(0x19a)]):process[_0x2b4215(0x1ae)](),{resolveConfigFile:_0x4eaad0,resolveConfigLocation:_0x1021d2}=helper[_0x2b4215(0x131)][_0x2b4215(0x1dc)](null,_0x536a1b[_0x2b4215(0x14d)](getConfigLoaderPath)),_0x5e78d4=_0x4eaad0?_0x536a1b[_0x2b4215(0x1d8)](_0x4eaad0,_0x44ad88):helper[_0x2b4215(0x151)](_0x536a1b[_0x2b4215(0x1d8)](_0x1021d2,_0x44ad88),[_0x536a1b[_0x2b4215(0x1ac)]]);let _0x3042ac={};if(_0x5e78d4){logger['info']('Getting\x20your\x20playwright\x20config\x20from\x20'+_0x5e78d4);try{_0x3042ac=await _0x536a1b[_0x2b4215(0x1d8)](requireOrImportDefaultObject,_0x5e78d4);}catch(_0x168eb2){return logger['error'](_0x536a1b[_0x2b4215(0x1b9)],_0x536a1b[_0x2b4215(0x1d8)](format,_0x168eb2)),null;}}else logger[_0x2b4215(0x163)](_0x536a1b[_0x2b4215(0x1dd)]);if(_0x1540ad){const _0x342a2d=_0x1e9269['findIndex'](_0x294ee9=>_0x294ee9===_0x2b4215(0x195)||_0x294ee9==='-c'||_0x294ee9[_0x2b4215(0x178)]('--config='));_0x1e9269[_0x2b4215(0x1d2)](_0x342a2d,_0x1e9269[_0x342a2d]['startsWith'](_0x536a1b[_0x2b4215(0x18e)])?0x1:0x2);}const _0x2111fb={};return _0x2111fb['path']=_0x5e78d4,_0x2111fb['config']=_0x3042ac,_0x2111fb;},setGlobalSetup=(_0xdd33c3,_0x4700bf)=>{const _0x201963=a33_0x17dc7a,_0x56fb80={'WlLoF':'globalSetup','ujqMl':_0x201963(0x1a2),'fGvcj':function(_0x5d8612,_0x22cd23){return _0x5d8612+_0x22cd23;},'WXLEb':_0x201963(0x15c),'MjUez':function(_0x4ee4ac,_0x3d3196){return _0x4ee4ac(_0x3d3196);},'tIkdn':'./globalSetup.js'};if(!_0xdd33c3)return![];try{if(_0xdd33c3[_0x201963(0x171)]){let _0x4a09c9;const _0x47cb27=path['resolve'](_0x4700bf,_0xdd33c3[_0x56fb80[_0x201963(0x164)]]);if(fs[_0x201963(0x1a5)](_0x47cb27))_0x4a09c9=_0x47cb27;else{const _0x56b231={};_0x56b231['paths']=[_0x4700bf],_0x4a09c9=require[_0x201963(0x18b)](_0xdd33c3[_0x56fb80['WlLoF']],_0x56b231);}if(!_0x4a09c9)throw new Error(_0x56fb80['ujqMl']);process[_0x201963(0x1a7)][_0x201963(0x14c)]=_0x4a09c9;}}catch(_0x5e03a9){logger[_0x201963(0x12e)](_0x56fb80[_0x201963(0x1b5)](_0x56fb80[_0x201963(0x16a)],_0x56fb80['MjUez'](format,_0x5e03a9)));}return _0xdd33c3['globalSetup']=require['resolve'](_0x56fb80[_0x201963(0x1c7)]),!![];},addReporter=_0x396c92=>{const _0x4ca253=a33_0x17dc7a,_0x4dc703={};_0x4dc703[_0x4ca253(0x188)]=_0x4ca253(0x11f),_0x4dc703[_0x4ca253(0x13c)]=_0x4ca253(0x1b0),_0x4dc703[_0x4ca253(0x135)]=function(_0x5252d3,_0x31e228){return _0x5252d3===_0x31e228;},_0x4dc703[_0x4ca253(0x15a)]=_0x4ca253(0x168),_0x4dc703[_0x4ca253(0x1e1)]=_0x4ca253(0x18d);const _0x512380=_0x4dc703,_0x56f789=path[_0x4ca253(0x11e)](__dirname,_0x512380[_0x4ca253(0x188)]),_0x563eb5=[_0x56f789];if(helper[_0x4ca253(0x1d3)](_0x396c92[_0x512380['bQSYf']]))_0x396c92[_0x512380['bQSYf']]=[_0x563eb5];else{if(_0x512380['nUfIu'](typeof _0x396c92[_0x512380['bQSYf']],_0x512380[_0x4ca253(0x15a)]))_0x396c92[_0x512380[_0x4ca253(0x13c)]]=[[_0x396c92[_0x512380[_0x4ca253(0x13c)]]],_0x563eb5];else _0x512380['nUfIu'](typeof _0x396c92[_0x512380[_0x4ca253(0x13c)]],_0x512380[_0x4ca253(0x1e1)])&&_0x396c92[_0x512380['bQSYf']]['push'](_0x563eb5);}},handleO11yRerun=_0x1af970=>{const _0x2c9bc6=a33_0x17dc7a,_0x27a9c4={};_0x27a9c4[_0x2c9bc6(0x134)]=function(_0x352c1e,_0xe607a9){return _0x352c1e!==_0xe607a9;},_0x27a9c4[_0x2c9bc6(0x16f)]=_0x2c9bc6(0x138),_0x27a9c4[_0x2c9bc6(0x1d6)]=_0x2c9bc6(0x172);const _0x427c65=_0x27a9c4,_0x4c1851=helper[_0x2c9bc6(0x1c1)](process[_0x2c9bc6(0x1a7)][_0x2c9bc6(0x1b1)]);if(_0x4c1851){const _0x13a4a5=process['env'][_0x2c9bc6(0x198)],_0x3ef28c=[];if(_0x427c65[_0x2c9bc6(0x134)](_0x13a4a5,_0x427c65[_0x2c9bc6(0x16f)])&&!helper[_0x2c9bc6(0x1d3)](_0x13a4a5)){_0x13a4a5['split'](',')[_0x2c9bc6(0x130)](_0x5302aa=>{const _0x455760=_0x2c9bc6;_0x3ef28c[_0x455760(0x1cd)]('('+_0x5302aa[_0x455760(0x194)]()+')');});const _0x23de7a='^'+_0x3ef28c[_0x2c9bc6(0x11e)]('|')+'$';_0x1af970[_0x2c9bc6(0x1cd)](_0x427c65[_0x2c9bc6(0x1d6)],_0x23de7a);}}},spawnOriginalProcess=_0x288388=>{const _0x3af8c8=a33_0x17dc7a,_0x423ca4={'kolnQ':function(_0x6db5e8,_0x43dcd8,_0x45ee3f,_0x1f4435){return _0x6db5e8(_0x43dcd8,_0x45ee3f,_0x1f4435);},'FllLK':_0x3af8c8(0x132),'FUGVW':_0x3af8c8(0x1d5),'VrOEL':function(_0xcf80de,_0x2762d9){return _0xcf80de===_0x2762d9;},'JyJfV':_0x3af8c8(0x1d7),'RjoBv':_0x3af8c8(0x17a)};_0x423ca4[_0x3af8c8(0x18c)](spawn,_0x423ca4[_0x3af8c8(0x122)],[_0x423ca4[_0x3af8c8(0x12d)],..._0x288388[_0x3af8c8(0x1ba)](0x1)],{'shell':_0x423ca4[_0x3af8c8(0x169)](process['platform'],_0x423ca4[_0x3af8c8(0x149)]),'stdio':_0x423ca4[_0x3af8c8(0x1d0)],'cwd':process[_0x3af8c8(0x1ae)]()});},isTestCommand=(_0x3dd2de,_0x5cbc94)=>{const _0x1f9b97=a33_0x17dc7a,_0xdcaeeb={};_0xdcaeeb[_0x1f9b97(0x1d4)]=function(_0x54a6a8,_0x1cc0ea){return _0x54a6a8>_0x1cc0ea;},_0xdcaeeb[_0x1f9b97(0x161)]=function(_0x4d1398,_0x1475fa){return _0x4d1398===_0x1475fa;},_0xdcaeeb[_0x1f9b97(0x18f)]=_0x1f9b97(0x175);const _0x35da04=_0xdcaeeb;if(_0x35da04[_0x1f9b97(0x1d4)](_0x5cbc94[_0x1f9b97(0x1a0)],0x1)&&_0x35da04[_0x1f9b97(0x161)](_0x5cbc94[0x1],_0x35da04[_0x1f9b97(0x18f)]))return!![];return![];},initO11yCrashReporter=(_0x259f57,_0x4ba839)=>{const _0x1fe64d=a33_0x17dc7a,_0x4791f2={'oAsFG':function(_0xd7a6f0,_0x24cf53){return _0xd7a6f0(_0x24cf53);}},_0x1482d5={'frameworkName':FRAMEWORKS[_0x1fe64d(0x1c4)],'frameworkVersion':_0x4791f2[_0x1fe64d(0x150)](getFrameworkVersion,FRAMEWORKS[_0x1fe64d(0x1c4)])};CrashReporter[_0x1fe64d(0x1e6)](_0x1482d5,_0x259f57,_0x4ba839);},launchO11ySession=o11yErrorHandler(async function launchO11ySession(_0x51a382){const _0x5c7e79=a33_0x17dc7a,_0x5af7ae={};_0x5af7ae[_0x5c7e79(0x14b)]=function(_0x14c0ed,_0xca5270){return _0x14c0ed>_0xca5270;},_0x5af7ae[_0x5c7e79(0x16c)]=function(_0x2fed5d,_0x5e8967){return _0x2fed5d===_0x5e8967;};const _0xfd3194=_0x5af7ae;if(!_0x51a382||_0xfd3194[_0x5c7e79(0x14b)](_0x51a382[_0x5c7e79(0x1a0)],0x1)&&_0xfd3194[_0x5c7e79(0x16c)](_0x51a382[0x0],null))return process[_0x5c7e79(0x1a7)][_0x5c7e79(0x1c2)]=![],![];return!![];});function a33_0x59f3(_0x2c40af,_0x5067cc){const _0x1be192=a33_0x1be1();return a33_0x59f3=function(_0x59f3a8,_0xe51fd5){_0x59f3a8=_0x59f3a8-0x11c;let _0x4332d2=_0x1be192[_0x59f3a8];return _0x4332d2;},a33_0x59f3(_0x2c40af,_0x5067cc);}async function run(_0x431dc1,_0x514e9e){const _0x899e5a=a33_0x17dc7a,_0x2d801d={'sagam':_0x899e5a(0x133),'TBUiA':_0x899e5a(0x154),'NAwvi':function(_0x10de3b,_0x2bd226){return _0x10de3b+_0x2bd226;},'NwIJS':_0x899e5a(0x141),'ZjNUU':'6|7|0|2|5|1|3|8|4','YtNAM':function(_0x2f74c3,_0x38b04f){return _0x2f74c3(_0x38b04f);},'JPRYI':function(_0x3d8b50){return _0x3d8b50();},'iPYYR':'Error\x20in\x20closing\x20playwright','FBSND':_0x899e5a(0x142),'LcYve':_0x899e5a(0x136),'hcHuK':_0x899e5a(0x1c6),'bgozl':function(_0x36823b,_0x875538){return _0x36823b>=_0x875538;},'RRdFR':_0x899e5a(0x155),'FBxoQ':function(_0x5bcbfc,_0x530ab9,_0x3868f3){return _0x5bcbfc(_0x530ab9,_0x3868f3);},'jndgu':_0x899e5a(0x17c),'ALEgu':_0x899e5a(0x1bc),'PuZUT':function(_0x5758be,_0x26f154){return _0x5758be!=_0x26f154;},'tIRbV':function(_0x241ee7,_0x4f3cbb,_0x10826f){return _0x241ee7(_0x4f3cbb,_0x10826f);},'SOULX':function(_0x1accec,_0x409e90,_0x2483cd){return _0x1accec(_0x409e90,_0x2483cd);},'iSkqq':function(_0x2fb1dd,_0x41056f){return _0x2fb1dd(_0x41056f);},'RLbEt':_0x899e5a(0x199),'jhZVc':function(_0x2a3150,_0x392108){return _0x2a3150(_0x392108);},'lsTng':'Adding\x20browserstack\x20configs\x20to\x20setup\x20for\x20Observability','rvcht':function(_0x33b879,_0x113ff1){return _0x33b879===_0x113ff1;},'AsWmJ':_0x899e5a(0x19c),'QjFIr':function(_0x3f03d3,_0x178fd2){return _0x3f03d3(_0x178fd2);},'vqkMx':_0x899e5a(0x1db),'hJolb':function(_0x402f09,_0x3a6945){return _0x402f09(_0x3a6945);},'XLSXI':function(_0x1b10ca,_0x134b98){return _0x1b10ca===_0x134b98;},'VGgDC':_0x899e5a(0x19e),'rfCJf':'testDir','BtLiA':_0x899e5a(0x16d),'HsNQl':'testIgnore','YcWtB':function(_0x7cf77a,_0x3256b1){return _0x7cf77a+_0x3256b1;},'JniPC':'Error\x20in\x20generating\x20parallellised\x20config\x20for\x20playwright:\x20','YZPrd':function(_0x5bc2c8,_0x34656f){return _0x5bc2c8(_0x34656f);},'IbgsA':function(_0x55b4df,_0x5ea846){return _0x55b4df===_0x5ea846;},'hmYUS':_0x899e5a(0x1c8),'TLYPe':_0x899e5a(0x12f),'LInHB':function(_0x204b27,_0x229591){return _0x204b27>_0x229591;},'LdHOS':function(_0x1cc712,_0x3643b5,_0x599ce8,_0x3ef438){return _0x1cc712(_0x3643b5,_0x599ce8,_0x3ef438);},'AEVRt':_0x899e5a(0x132),'IeFCP':_0x899e5a(0x1d5),'jWEoB':_0x899e5a(0x175),'xFisf':_0x899e5a(0x195),'OEsoB':function(_0x1982ba,_0x27e250){return _0x1982ba===_0x27e250;},'teMVd':_0x899e5a(0x1d7),'ZgPVr':_0x899e5a(0x17a),'lYLBU':'close'};!helper[_0x899e5a(0x1a8)](process[_0x899e5a(0x1a7)][_0x899e5a(0x15e)])&&(process[_0x899e5a(0x1a7)]['BROWSERSTACK_AUTOMATION']=!![]);process[_0x899e5a(0x144)]['includes'](_0x2d801d['FBSND'])&&(process[_0x899e5a(0x1a7)][_0x899e5a(0x15e)]=_0x2d801d[_0x899e5a(0x1d9)],_0x514e9e=_0x514e9e[_0x899e5a(0x1da)](_0x2034b9=>_0x2034b9!==_0x899e5a(0x142)));const _0x29d942=_0x514e9e['indexOf'](_0x2d801d[_0x899e5a(0x1ee)]);_0x2d801d[_0x899e5a(0x1e0)](_0x29d942,0x0)&&(process[_0x899e5a(0x1a7)][_0x899e5a(0x1c2)]=_0x2d801d['LcYve'],_0x514e9e=_0x514e9e[_0x899e5a(0x1da)](_0x40d375=>_0x40d375!==_0x899e5a(0x1c6)));try{const _0x580825=path['join'](helper[_0x899e5a(0x1a4)](),_0x2d801d['sagam'],_0x2d801d[_0x899e5a(0x19f)]);fs[_0x899e5a(0x1a5)](_0x580825)&&fs[_0x899e5a(0x140)](_0x580825);}catch(_0x192f90){logger[_0x899e5a(0x1c3)](_0x2d801d[_0x899e5a(0x139)](_0x2d801d[_0x899e5a(0x1af)],_0x192f90));}if(!_0x2d801d[_0x899e5a(0x11c)](isTestCommand,_0x431dc1,_0x514e9e)){_0x2d801d[_0x899e5a(0x143)](spawnOriginalProcess,_0x514e9e);return;}const _0x4b74c6=new BrowserStackSetup(_0x431dc1,FRAMEWORKS[_0x899e5a(0x1c4)]);if(!_0x4b74c6['config']){logger[_0x899e5a(0x12e)](_0x2d801d[_0x899e5a(0x1c0)]);return;}await _0x4b74c6[_0x899e5a(0x1e6)]();!helper[_0x899e5a(0x1d3)](_0x4b74c6[_0x899e5a(0x190)])&&_0x4b74c6[_0x899e5a(0x190)][_0x899e5a(0x1ed)](_0x2d801d['ALEgu'])&&(process[_0x899e5a(0x1a7)][_0x899e5a(0x15e)]=_0x4b74c6[_0x899e5a(0x190)][_0x899e5a(0x191)](_0x2d801d[_0x899e5a(0x1ab)])||!![]);_0x2d801d[_0x899e5a(0x1b8)](_0x4b74c6[_0x899e5a(0x19a)][_0x899e5a(0x1b7)],null)&&!helper[_0x899e5a(0x1c1)](process[_0x899e5a(0x1a7)][_0x899e5a(0x1c2)])&&(process['env'][_0x899e5a(0x1c2)]=process[_0x899e5a(0x1a7)][_0x899e5a(0x1c2)]||_0x4b74c6[_0x899e5a(0x19a)][_0x899e5a(0x1b7)]);const _0x572942=!helper[_0x899e5a(0x1a8)](process[_0x899e5a(0x1a7)][_0x899e5a(0x1c2)]);let _0x292d8b=![];_0x4b74c6['config'][_0x899e5a(0x156)]&&(_0x292d8b=!![],process[_0x899e5a(0x1a7)][_0x899e5a(0x1bb)]=_0x4b74c6['config'][_0x899e5a(0x156)]);_0x4b74c6[_0x899e5a(0x19a)]['accessibilityOptions']&&(process[_0x899e5a(0x1a7)][_0x899e5a(0x152)]=JSON[_0x899e5a(0x1aa)](_0x4b74c6[_0x899e5a(0x19a)][_0x899e5a(0x1cc)]));const _0x5def96=_0x514e9e[_0x899e5a(0x128)](),_0x595a31=await _0x2d801d[_0x899e5a(0x18a)](getUserPlaywrightConfig,_0x431dc1,_0x514e9e);if(helper['isUndefined'](_0x595a31)){_0x2d801d[_0x899e5a(0x143)](spawnOriginalProcess,_0x5def96);return;}const _0xd1532d={..._0x595a31[_0x899e5a(0x19a)]},_0x25e920=_0xd1532d,_0x5af379=_0x595a31[_0x899e5a(0x182)]?path[_0x899e5a(0x1e7)](_0x595a31[_0x899e5a(0x182)]):process[_0x899e5a(0x1ae)]();process[_0x899e5a(0x1a7)]['BROWSERSTACK_PW_CONFIG_DIR']=_0x5af379;if(!_0x2d801d[_0x899e5a(0x1ef)](setGlobalSetup,_0x25e920,_0x5af379)){_0x2d801d[_0x899e5a(0x143)](spawnOriginalProcess,_0x5def96);return;}const _0xdf3a75=await SessionHandler[_0x899e5a(0x1e8)](_0x4b74c6[_0x899e5a(0x19a)],{'frameworkName':FRAMEWORKS[_0x899e5a(0x1c4)],'frameworkVersion':_0x2d801d[_0x899e5a(0x1de)](getFrameworkVersion,FRAMEWORKS[_0x899e5a(0x1c4)])});if(_0x572942){const _0x1eb65d=_0x2d801d[_0x899e5a(0x1c5)]['split']('|');let _0x56b887=0x0;while(!![]){switch(_0x1eb65d[_0x56b887++]){case'0':_0x2d801d['iSkqq'](handleO11yRerun,_0x514e9e);continue;case'1':await _0x2d801d[_0x899e5a(0x1de)](launchO11ySession,_0xdf3a75);continue;case'2':_0x2d801d['jhZVc'](addReporter,_0x25e920);continue;case'3':_0x2d801d[_0x899e5a(0x11c)](initO11yCrashReporter,_0x25e920,_0x4b74c6[_0x899e5a(0x19a)]);continue;case'4':logger[_0x899e5a(0x163)](_0x2d801d[_0x899e5a(0x162)]);continue;}break;}}let _0x218138=_0x2d801d['rvcht'](process[_0x899e5a(0x1a7)][_0x899e5a(0x1bb)],_0x2d801d[_0x899e5a(0x1b6)]);_0x218138=_0x218138||_0x2d801d[_0x899e5a(0x177)](checkAccessibilityPlatformConfig,_0x4b74c6[_0x899e5a(0x19a)]),process[_0x899e5a(0x1a7)][_0x899e5a(0x1bb)]=_0x218138;if(_0x218138){const [_0x353dd1,_0x420e31]=await _0x2d801d[_0x899e5a(0x18a)](createAccessibilityTestRun,_0x4b74c6['config'],_0x2d801d[_0x899e5a(0x16b)]);logger[_0x899e5a(0x1c3)](_0x899e5a(0x17d)+_0x420e31),process['env'][_0x899e5a(0x13e)]=_0x353dd1,process['env'][_0x899e5a(0x125)]=_0x420e31,_0x2d801d[_0x899e5a(0x1e2)](setAccessibilityCapabilities,_0x4b74c6['config']);}(helper[_0x899e5a(0x1d3)](_0x4b74c6['config'][_0x899e5a(0x17b)])||_0x2d801d[_0x899e5a(0x13d)](_0x4b74c6[_0x899e5a(0x19a)][_0x899e5a(0x17b)][_0x899e5a(0x1a0)],0x0))&&(process[_0x899e5a(0x1a7)]['BROWSERSTACK_AUTOMATION']=![]);const _0x5f4546=path['join'](_0x595a31[_0x899e5a(0x182)]?path[_0x899e5a(0x1e7)](_0x595a31[_0x899e5a(0x182)]):process[_0x899e5a(0x1ae)](),_0x2d801d[_0x899e5a(0x146)]);fs[_0x899e5a(0x157)](_0x5f4546,helper[_0x899e5a(0x180)](_0x4b74c6['config'])),process['env'][_0x899e5a(0x1ca)]=_0x5f4546,helper['clearTempPWConfig']();if(helper[_0x899e5a(0x1c1)](process['env'][_0x899e5a(0x15e)])){let _0x57b6ef=[];try{const _0x544eca=helper['requirePWModule'][_0x899e5a(0x1dc)](null,_0x2d801d['JPRYI'](getProjectUtilsPath)),_0x4a1d36={};_0x4a1d36[_0x899e5a(0x1b3)]=!![],_0x4a1d36[_0x899e5a(0x14f)]='',_0x4a1d36[_0x899e5a(0x16d)]='',_0x4a1d36[_0x899e5a(0x15d)]='';const _0x1f4ff9={};_0x1f4ff9[_0x899e5a(0x1b3)]=!![];const _0x11c13a={};_0x11c13a[_0x899e5a(0x15f)]=_0x4a1d36,_0x11c13a[_0x899e5a(0x126)]=_0x1f4ff9;let _0x80d001=_0x11c13a;_0x25e920[_0x2d801d[_0x899e5a(0x15b)]]&&(_0x80d001[_0x899e5a(0x15f)][_0x2d801d['rfCJf']]=_0x25e920[_0x2d801d[_0x899e5a(0x15b)]]),_0x25e920[_0x2d801d[_0x899e5a(0x159)]]&&(_0x80d001[_0x899e5a(0x15f)][_0x2d801d['BtLiA']]=_0x25e920[_0x2d801d['BtLiA']]),_0x25e920[_0x2d801d[_0x899e5a(0x179)]]&&(_0x80d001[_0x899e5a(0x15f)][_0x2d801d['HsNQl']]=_0x25e920[_0x2d801d[_0x899e5a(0x179)]]),_0x80d001=Object['assign'](_0x80d001,_0x80d001[_0x899e5a(0x15f)]),_0x57b6ef=await _0x544eca[_0x899e5a(0x1b4)](_0x80d001);}catch(_0x415bab){logger['debug'](_0x2d801d[_0x899e5a(0x13f)](_0x2d801d[_0x899e5a(0x1b2)],_0x2d801d['YZPrd'](format,_0x415bab)));}}let _0x2010e7='';_0x2d801d['IbgsA'](helper[_0x899e5a(0x167)](),constants[_0x899e5a(0x1a1)][_0x899e5a(0x193)])?_0x2010e7=_0x2d801d[_0x899e5a(0x181)]:_0x2010e7=_0x2d801d[_0x899e5a(0x127)];const _0x4cd627=path['join'](_0x595a31[_0x899e5a(0x182)]?path[_0x899e5a(0x1e7)](_0x595a31['path']):process[_0x899e5a(0x1ae)](),_0x2010e7);let _0x33124a=_0x595a31[_0x899e5a(0x182)]?_0x595a31[_0x899e5a(0x182)]:'';_0x33124a=_0x2d801d[_0x899e5a(0x1a9)](_0x33124a[_0x899e5a(0x1a0)],0x0)?path[_0x899e5a(0x18b)](_0x33124a):'',process[_0x899e5a(0x1a7)][_0x899e5a(0x145)]=_0x33124a;let _0x3ab951='\x0a\x0aconst\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0amodule.exports\x20=\x20modifyPWConfig();\x0a';const _0x3c5f2f=helper[_0x899e5a(0x1ad)](_0x4b74c6[_0x899e5a(0x19a)]);_0x3c5f2f&&(_0x3ab951=_0x2d801d['YcWtB'](_0x899e5a(0x12c)+_0x3c5f2f+'\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();',_0x3ab951));helper[_0x899e5a(0x13b)]({},_0x514e9e),fs[_0x899e5a(0x157)](_0x4cd627,_0x3ab951),helper[_0x899e5a(0x170)]();const _0x506f40=_0x2d801d[_0x899e5a(0x14e)](spawn,_0x2d801d['AEVRt'],[_0x2d801d['IeFCP'],_0x2d801d[_0x899e5a(0x186)],_0x2d801d[_0x899e5a(0x1ec)],_0x4cd627,..._0x514e9e[_0x899e5a(0x1ba)](0x2)],{'shell':_0x2d801d[_0x899e5a(0x11d)](process[_0x899e5a(0x192)],_0x2d801d[_0x899e5a(0x197)]),'stdio':_0x2d801d[_0x899e5a(0x124)],'cwd':process[_0x899e5a(0x1ae)](),'env':Object[_0x899e5a(0x12a)]({},process['env'],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x899e5a(0x121)](_0x431dc1),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x4b74c6[_0x899e5a(0x19a)][_0x899e5a(0x14a)][_0x899e5a(0x12b)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x4b74c6['config'][_0x899e5a(0x14a)][_0x899e5a(0x1c9)],'BROWSERSTACK_LOG_LEVEL':_0x4b74c6[_0x899e5a(0x19a)][_0x899e5a(0x189)]})}),_0x24f0c5=()=>{const _0x5db81e=_0x899e5a;try{const _0x52ef0c=path[_0x5db81e(0x11e)](helper[_0x5db81e(0x1a4)](),_0x2d801d[_0x5db81e(0x176)],_0x2d801d[_0x5db81e(0x19f)]);if(fs['existsSync'](_0x52ef0c)){let _0xf61d5e=fs[_0x5db81e(0x1e4)](_0x52ef0c);_0xf61d5e=JSON[_0x5db81e(0x123)](_0xf61d5e),_0x4b74c6['errorMessage']=_0xf61d5e,fs[_0x5db81e(0x140)](_0x52ef0c);}}catch(_0x11c39d){logger['debug'](_0x2d801d['NAwvi'](_0x2d801d['NwIJS'],_0x11c39d));}};_0x506f40['on'](_0x2d801d[_0x899e5a(0x19d)],async _0x1d384a=>{const _0x580b33=_0x899e5a;try{const _0x188953=_0x2d801d['ZjNUU'][_0x580b33(0x1a3)]('|');let _0x58c98b=0x0;while(!![]){switch(_0x188953[_0x58c98b++]){case'0':await _0x2d801d[_0x580b33(0x143)](stopAccessibilityTestRun,_0x4b74c6['config']);continue;case'1':logger[_0x580b33(0x163)](_0x580b33(0x19b)+_0x4cd627);continue;case'2':process[_0x580b33(0x137)]=_0x1d384a;continue;case'3':fs[_0x580b33(0x140)](_0x4cd627);continue;case'4':fs[_0x580b33(0x140)](_0x5f4546);continue;case'5':logger[_0x580b33(0x1c3)](_0x580b33(0x160)+_0x1d384a);continue;case'6':_0x2d801d[_0x580b33(0x158)](_0x24f0c5);continue;case'7':await helper[_0x580b33(0x1be)](_0x4b74c6);continue;case'8':logger[_0x580b33(0x1c3)](_0x580b33(0x19b)+_0x5f4546);continue;}break;}}catch(_0x4c0ad1){logger[_0x580b33(0x1c3)](_0x2d801d[_0x580b33(0x139)](_0x2d801d[_0x580b33(0x185)],_0x4c0ad1));}});}module[a33_0x17dc7a(0x174)]=run;
|
|
2
|
+
'use strict';const a33_0x4fe9d7=a33_0x3161;(function(_0x38d02f,_0x45f40c){const _0xb6d611=a33_0x3161,_0x564299=_0x38d02f();while(!![]){try{const _0x4cf48c=parseInt(_0xb6d611(0x267))/0x1*(parseInt(_0xb6d611(0x272))/0x2)+parseInt(_0xb6d611(0x258))/0x3+parseInt(_0xb6d611(0x1f1))/0x4+parseInt(_0xb6d611(0x226))/0x5*(parseInt(_0xb6d611(0x248))/0x6)+-parseInt(_0xb6d611(0x254))/0x7*(parseInt(_0xb6d611(0x209))/0x8)+-parseInt(_0xb6d611(0x243))/0x9*(parseInt(_0xb6d611(0x1bb))/0xa)+parseInt(_0xb6d611(0x1f9))/0xb*(-parseInt(_0xb6d611(0x233))/0xc);if(_0x4cf48c===_0x45f40c)break;else _0x564299['push'](_0x564299['shift']());}catch(_0x1ac18f){_0x564299['push'](_0x564299['shift']());}}}(a33_0x3e49,0x46432));const fs=require('fs'),path=require(a33_0x4fe9d7(0x217)),os=require('os'),{spawn}=require(a33_0x4fe9d7(0x224)),{format}=require('util'),logger=require('../../helpers/logger')['winstonLogger'],{default:BrowserStackSetup}=require(a33_0x4fe9d7(0x27d)),helper=require(a33_0x4fe9d7(0x22c)),constants=require('../utils/constants'),{FRAMEWORKS}=require(a33_0x4fe9d7(0x25e)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require(a33_0x4fe9d7(0x1c5)),{CrashReporter,o11yErrorHandler}=require(a33_0x4fe9d7(0x1c7)),{getFrameworkVersion}=require('../../helpers/test-observability/utils'),{createAccessibilityTestRun,stopAccessibilityTestRun,checkAccessibilityPlatformConfig}=require(a33_0x4fe9d7(0x26d)),{setAccessibilityCapabilities}=require(a33_0x4fe9d7(0x200)),SessionHandler=require(a33_0x4fe9d7(0x1d7)),TestHubHandler=require('../../helpers/testhub/testhubHandler'),testHubConstants=require(a33_0x4fe9d7(0x1c9)),{shouldProcessEventForTesthub}=require(a33_0x4fe9d7(0x1b6));function a33_0x3161(_0x6dc80b,_0xdc6a56){const _0x3e49d1=a33_0x3e49();return a33_0x3161=function(_0x31614f,_0x2b9196){_0x31614f=_0x31614f-0x1b4;let _0x38d50d=_0x3e49d1[_0x31614f];return _0x38d50d;},a33_0x3161(_0x6dc80b,_0xdc6a56);}async function requireOrImportDefaultObject(_0x3e15f7){const _0x284a5a=a33_0x4fe9d7,_0xb53f62={'oMwHi':function(_0x325311){return _0x325311();},'ROZGR':function(_0x2bcd5c,_0x4e6f0f){return _0x2bcd5c(_0x4e6f0f);},'LRblU':function(_0x5e12a0,_0x48da8c){return _0x5e12a0===_0x48da8c;},'wOtRL':_0x284a5a(0x1e2),'vqqRl':function(_0x1b9e92,_0x44a5de){return _0x1b9e92 in _0x44a5de;},'pDMKm':_0x284a5a(0x23f)},{requireOrImport:_0x12df12}=helper['requirePWModule'][_0x284a5a(0x1f0)](null,_0xb53f62[_0x284a5a(0x22d)](getTransformPath));let _0x46bd23=await _0xb53f62[_0x284a5a(0x220)](_0x12df12,_0x3e15f7);return _0x46bd23&&_0xb53f62['LRblU'](typeof _0x46bd23,_0xb53f62[_0x284a5a(0x274)])&&_0xb53f62[_0x284a5a(0x1c2)](_0xb53f62[_0x284a5a(0x237)],_0x46bd23)&&(_0x46bd23=_0x46bd23[_0xb53f62[_0x284a5a(0x237)]]),_0x46bd23;}const getUserPlaywrightConfig=async(_0x4f279d,_0xdcf465)=>{const _0x1f8ddb=a33_0x4fe9d7,_0xe6d62e={'EXFZd':function(_0x39ec5){return _0x39ec5();},'fuhPe':function(_0x583a23,_0x231c7f){return _0x583a23(_0x231c7f);},'ModFx':function(_0x451298,_0x4af594){return _0x451298(_0x4af594);},'ThvJA':'resolvedConfigFile','izsFS':function(_0x3445a6,_0x44f966){return _0x3445a6(_0x44f966);},'ARZRv':function(_0x1a0729,_0x4d6ae6){return _0x1a0729+_0x4d6ae6;},'JnkYF':_0x1f8ddb(0x27b),'LOJbn':'Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','WiYbX':'--config='},_0x16dd02=!helper['isUndefined'](_0x4f279d['config']),_0x17f344=_0x16dd02?path[_0x1f8ddb(0x24c)](process[_0x1f8ddb(0x216)](),_0x4f279d['config']):process[_0x1f8ddb(0x216)](),{resolveConfigFile:_0x152690,resolveConfigLocation:_0x3fec64}=helper[_0x1f8ddb(0x22a)]['apply'](null,_0xe6d62e['EXFZd'](getConfigLoaderPath)),_0x319b84=_0x152690?_0xe6d62e[_0x1f8ddb(0x227)](_0x152690,_0x17f344):helper[_0x1f8ddb(0x26e)](_0xe6d62e[_0x1f8ddb(0x222)](_0x3fec64,_0x17f344),[_0xe6d62e[_0x1f8ddb(0x25b)]]);let _0x926402={};if(_0x319b84){logger['info'](_0x1f8ddb(0x228)+_0x319b84);try{_0x926402=await _0xe6d62e[_0x1f8ddb(0x1e0)](requireOrImportDefaultObject,_0x319b84);}catch(_0x556898){return logger[_0x1f8ddb(0x1fe)](_0xe6d62e[_0x1f8ddb(0x265)](_0xe6d62e['JnkYF'],_0xe6d62e[_0x1f8ddb(0x227)](format,_0x556898))),null;}}else logger[_0x1f8ddb(0x259)](_0xe6d62e[_0x1f8ddb(0x1c0)]);if(_0x16dd02){const _0x29c865=_0xdcf465[_0x1f8ddb(0x20b)](_0x536759=>_0x536759===_0x1f8ddb(0x245)||_0x536759==='-c'||_0x536759[_0x1f8ddb(0x253)](_0x1f8ddb(0x25f)));_0xdcf465['splice'](_0x29c865,_0xdcf465[_0x29c865][_0x1f8ddb(0x253)](_0xe6d62e[_0x1f8ddb(0x26b)])?0x1:0x2);}const _0x5265ab={};return _0x5265ab['path']=_0x319b84,_0x5265ab[_0x1f8ddb(0x1e3)]=_0x926402,_0x5265ab;},setGlobalSetup=(_0x2d6cff,_0x3dca56)=>{const _0x559fcf=a33_0x4fe9d7,_0x4bf8af={'vYGuU':_0x559fcf(0x23b),'BLUeo':_0x559fcf(0x230),'qVeqN':function(_0x192cce,_0x31ef78){return _0x192cce+_0x31ef78;},'uSkEC':'Error\x20in\x20running\x20user\x20global\x20setup\x20for\x20playwright','NAkES':function(_0x469a26,_0x5ae50f){return _0x469a26(_0x5ae50f);},'jXKcx':_0x559fcf(0x1bf)};if(!_0x2d6cff)return![];try{if(_0x2d6cff[_0x559fcf(0x23b)]){let _0x52c02d;const _0x25abc7=path[_0x559fcf(0x24c)](_0x3dca56,_0x2d6cff[_0x4bf8af[_0x559fcf(0x1fb)]]);if(fs['existsSync'](_0x25abc7))_0x52c02d=_0x25abc7;else{const _0x4a1a3b={};_0x4a1a3b[_0x559fcf(0x1d8)]=[_0x3dca56],_0x52c02d=require[_0x559fcf(0x24c)](_0x2d6cff[_0x4bf8af[_0x559fcf(0x1fb)]],_0x4a1a3b);}if(!_0x52c02d)throw new Error(_0x4bf8af[_0x559fcf(0x25c)]);process['env'][_0x559fcf(0x25a)]=_0x52c02d;}}catch(_0x1acdbd){logger[_0x559fcf(0x1fe)](_0x4bf8af[_0x559fcf(0x231)](_0x4bf8af[_0x559fcf(0x1da)],_0x4bf8af[_0x559fcf(0x1d2)](format,_0x1acdbd)));}return _0x2d6cff[_0x559fcf(0x23b)]=require[_0x559fcf(0x24c)](_0x4bf8af[_0x559fcf(0x1c3)]),!![];},addReporter=_0x4e5c03=>{const _0x2cb31e=a33_0x4fe9d7,_0x4a88cb={};_0x4a88cb[_0x2cb31e(0x24a)]='./reporter/reporter.js',_0x4a88cb[_0x2cb31e(0x1bd)]=_0x2cb31e(0x215),_0x4a88cb[_0x2cb31e(0x1b4)]=function(_0x5563a2,_0x54f6bb){return _0x5563a2===_0x54f6bb;},_0x4a88cb[_0x2cb31e(0x244)]=_0x2cb31e(0x1db),_0x4a88cb[_0x2cb31e(0x1b9)]='object';const _0x30bacf=_0x4a88cb,_0x4590fb=path[_0x2cb31e(0x1f4)](__dirname,_0x30bacf[_0x2cb31e(0x24a)]),_0x267ca2=[_0x4590fb];if(helper['isUndefined'](_0x4e5c03[_0x30bacf[_0x2cb31e(0x1bd)]]))_0x4e5c03[_0x30bacf[_0x2cb31e(0x1bd)]]=[_0x267ca2];else{if(_0x30bacf['jHZrP'](typeof _0x4e5c03[_0x30bacf[_0x2cb31e(0x1bd)]],_0x30bacf[_0x2cb31e(0x244)]))_0x4e5c03[_0x30bacf[_0x2cb31e(0x1bd)]]=[[_0x4e5c03[_0x30bacf[_0x2cb31e(0x1bd)]]],_0x267ca2];else _0x30bacf[_0x2cb31e(0x1b4)](typeof _0x4e5c03[_0x30bacf[_0x2cb31e(0x1bd)]],_0x30bacf[_0x2cb31e(0x1b9)])&&_0x4e5c03[_0x30bacf[_0x2cb31e(0x1bd)]][_0x2cb31e(0x1ef)](_0x267ca2);}},handleO11yRerun=_0x266389=>{const _0x12f37e=a33_0x4fe9d7,_0x346c38={};_0x346c38[_0x12f37e(0x1e6)]=function(_0x4aa7dd,_0x472b91){return _0x4aa7dd!==_0x472b91;},_0x346c38[_0x12f37e(0x275)]='null',_0x346c38[_0x12f37e(0x203)]=_0x12f37e(0x1d3);const _0x12c6d2=_0x346c38,_0x152d24=helper[_0x12f37e(0x264)](process['env'][_0x12f37e(0x1dc)]);if(_0x152d24){const _0x46c83a=process[_0x12f37e(0x249)]['BROWSERSTACK_RERUN_TESTS'],_0x2782d3=[];if(_0x12c6d2[_0x12f37e(0x1e6)](_0x46c83a,_0x12c6d2[_0x12f37e(0x275)])&&!helper[_0x12f37e(0x26c)](_0x46c83a)){_0x46c83a[_0x12f37e(0x240)](',')[_0x12f37e(0x24e)](_0x577ba0=>{const _0x3a1171=_0x12f37e;_0x2782d3[_0x3a1171(0x1ef)]('('+_0x577ba0[_0x3a1171(0x1de)]()+')');});const _0x27195c='^'+_0x2782d3[_0x12f37e(0x1f4)]('|')+'$';_0x266389[_0x12f37e(0x1ef)](_0x12c6d2[_0x12f37e(0x203)],_0x27195c);}}},spawnOriginalProcess=_0x5b222d=>{const _0xc49775=a33_0x4fe9d7,_0x1501c9={'YdFRc':function(_0x50c979,_0xbd8df4,_0xca0c16,_0x3f5be4){return _0x50c979(_0xbd8df4,_0xca0c16,_0x3f5be4);},'YDYaE':_0xc49775(0x242),'heTpg':_0xc49775(0x1fc),'OaGoG':function(_0x33a887,_0x3ebd90){return _0x33a887===_0x3ebd90;},'UIEfu':_0xc49775(0x27f),'MDifT':'inherit'};_0x1501c9[_0xc49775(0x236)](spawn,_0x1501c9[_0xc49775(0x20c)],[_0x1501c9[_0xc49775(0x1cb)],..._0x5b222d[_0xc49775(0x257)](0x1)],{'shell':_0x1501c9[_0xc49775(0x20a)](process[_0xc49775(0x1e8)],_0x1501c9['UIEfu']),'stdio':_0x1501c9['MDifT'],'cwd':process[_0xc49775(0x216)]()});},isTestCommand=(_0x26fbcb,_0x55fe8d)=>{const _0x3d144b=a33_0x4fe9d7,_0x2fb7d6={};_0x2fb7d6[_0x3d144b(0x261)]=function(_0x1d84b9,_0x413d43){return _0x1d84b9>_0x413d43;},_0x2fb7d6[_0x3d144b(0x219)]=function(_0xd11227,_0x56e3d7){return _0xd11227===_0x56e3d7;},_0x2fb7d6[_0x3d144b(0x218)]='test';const _0x466a73=_0x2fb7d6;if(_0x466a73[_0x3d144b(0x261)](_0x55fe8d[_0x3d144b(0x1ca)],0x1)&&_0x466a73['cONQw'](_0x55fe8d[0x1],_0x466a73['ayDVK']))return!![];return![];},initO11yCrashReporter=(_0x5e242b,_0x439200)=>{const _0x3764b6=a33_0x4fe9d7,_0x260a5d={'oAOzk':function(_0x4e984e,_0x5ef4d5){return _0x4e984e(_0x5ef4d5);}},_0x356d08={'frameworkName':FRAMEWORKS[_0x3764b6(0x205)],'frameworkVersion':_0x260a5d['oAOzk'](getFrameworkVersion,FRAMEWORKS[_0x3764b6(0x205)])};CrashReporter[_0x3764b6(0x260)](_0x356d08,_0x5e242b,_0x439200);},launchO11ySession=o11yErrorHandler(async function launchO11ySession(_0x1d4cb5){const _0x434097=a33_0x4fe9d7,_0x25dcd6={};_0x25dcd6[_0x434097(0x256)]=function(_0x3e24cb,_0x4a6eba){return _0x3e24cb>_0x4a6eba;},_0x25dcd6[_0x434097(0x23c)]=function(_0x3cae0c,_0xb75865){return _0x3cae0c===_0xb75865;};const _0x4d7cf0=_0x25dcd6;if(!_0x1d4cb5||_0x4d7cf0['neMym'](_0x1d4cb5[_0x434097(0x1ca)],0x1)&&_0x4d7cf0[_0x434097(0x23c)](_0x1d4cb5[0x0],null))return process[_0x434097(0x249)][_0x434097(0x241)]=![],![];return!![];});function a33_0x3e49(){const _0x930cbe=['trim','test','izsFS','LpWVp','object','config','BROWSERSTACK_SETUP_CONFIG_PATH','logLevel','Huite','lFJhU','platform','BrowserStack\x20config\x20file\x20not\x20found.','qheCF','LsNcy','zKGuc','skipSessionStatus','writeFileSync','push','apply','1462060Qmvvgm','eEVKI','clearTempPWConfig','join','existsSync','errorMessage','isFalse','foVgI','7007BEYHZr','xEjlh','vYGuU','playwright','includes','error','LgANj','./accessibility-helper','rdody','testMatch','wvjly','testIgnore','PLAYWRIGHT','Adding\x20browserstack\x20configs\x20to\x20setup\x20for\x20Observability','homedir','AjFqg','480648MGJIla','OaGoG','findIndex','YDYaE','PACKAGE_TYPE','automation','stringify','mvtKT','caxVm','OBSERVABILITY','close','filterBrowserstackConfig','reporter','cwd','path','ayDVK','cONQw','playwright-browserstack-sdk.config.js','HcRlC','_internal','assign','ucYrH','AjVTk','ROZGR','IgRcq','ModFx','false','child_process','Error\x20in\x20generating\x20parallellised\x20config\x20for\x20playwright:\x20','795735DEMZFp','fuhPe','Getting\x20your\x20playwright\x20config\x20from\x20','LzPuU','requirePWModule','exports','../../helpers/helper','oMwHi','uyrVa','\x0a\x0aconst\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0amodule.exports\x20=\x20modifyPWConfig();\x0a','Can\x27t\x20get\x20user\x20defined\x20global\x20setup\x20file','qVeqN','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','2964XejcPY','oebvZ','finalExecution','YdFRc','pDMKm','\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();','Error\x20in\x20closing\x20playwright','GvjiO','globalSetup','gxWtE','concat','--disable-test-observability','default','split','BROWSERSTACK_TEST_OBSERVABILITY','npx','1017RQJSXm','kuYSV','--config','LIpEV','accessibility','18csQkyr','env','REnJC','RZDQK','resolve','true','map','ZDOKy','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','hIcpX','project','startsWith','42VKtxKw','launchBuild','neMym','slice','923673AhBjot','info','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','ThvJA','BLUeo','.browserstack','../../helpers/test-observability/constants','--config=','initialize','EjyfU','qXWOq','pw_result.json','isTrue','ARZRv','HFQpj','53633OnDARz','kIgzl','JCIcG','HNsGc','WiYbX','isUndefined','../../helpers/accessibility-automation/helper','nestedKeyValue','BROWSERSTACK_AUTOMATION','platforms','testContextOptions','6gIRcdD','debug','wOtRL','nQQrX','testObservability','unlinkSync','JJEjf','cliConfig','browserstackSetupConfig.json','Error\x20in\x20importing\x20your\x20playwright\x20config:\x20','serializeToYamlString','../../helpers/BrowserStackSetup','readFileSync','win32','jHZrP','UtNWo','../../helpers/testhub/utils','indexOf','markSDKSetupComplete','aCHed','testDir','44790QIabsd','inherit','RWNJZ','get','./globalSetup.js','LOJbn','VFxIo','vqqRl','jXKcx','zuARs','./reporter/pwUtils','Deleting\x20','../../helpers/test-observability/error-handler','respectGitIgnore','../../helpers/testhub/constants','length','heTpg','BROWSERSTACK_TEST_ACCESSIBILITY_YML','accessibilityOptions','parse','dirname','has','playwright-browserstack-sdk.config.cjs','NAkES','--grep','--disable-browserstack-automation','EVAxv','Error\x20in\x20getting\x20funnel\x20data\x20results','../../helpers/test-observability/sessionHandler','paths','XusCK','uSkEC','string','BROWSERSTACK_RERUN','ADThw'];a33_0x3e49=function(){return _0x930cbe;};return a33_0x3e49();}async function run(_0x966a9d,_0x546e35){const _0x2658a9=a33_0x4fe9d7,_0x322374={'VFxIo':_0x2658a9(0x25d),'ZDOKy':_0x2658a9(0x263),'HNsGc':function(_0x2fdf31,_0x1f6284){return _0x2fdf31+_0x1f6284;},'JJEjf':_0x2658a9(0x1d6),'hIuvA':'7|3|1|2|6|0|5|4','caxVm':function(_0x2cbb18){return _0x2cbb18();},'RZDQK':_0x2658a9(0x239),'HFQpj':_0x2658a9(0x1d4),'rdody':_0x2658a9(0x223),'kfamh':_0x2658a9(0x23e),'EVAxv':function(_0x2b9097,_0x7175b6){return _0x2b9097>=_0x7175b6;},'WAzMe':'Error\x20in\x20deleting\x20playwright\x20results','LgANj':function(_0x470f30,_0x268270,_0x1e3bff){return _0x470f30(_0x268270,_0x1e3bff);},'qidwt':function(_0x54706d,_0x245b44){return _0x54706d(_0x245b44);},'DDxTL':_0x2658a9(0x1e9),'JCIcG':_0x2658a9(0x20e),'zKGuc':function(_0x476cf9,_0x232d2d){return _0x476cf9!=_0x232d2d;},'ADThw':function(_0x321298,_0x2ee0a2){return _0x321298(_0x2ee0a2);},'uyrVa':function(_0x5303b0,_0x4cb214,_0x9ed118){return _0x5303b0(_0x4cb214,_0x9ed118);},'AjVTk':_0x2658a9(0x206),'LzPuU':function(_0x19b824,_0x2a4990,_0x1ed0de){return _0x19b824(_0x2a4990,_0x1ed0de);},'kIgzl':function(_0x8167a3,_0x2565aa){return _0x8167a3(_0x2565aa);},'HcRlC':function(_0x344c27,_0x24aaf4){return _0x344c27===_0x24aaf4;},'lFJhU':_0x2658a9(0x24d),'ucYrH':function(_0x22d3aa,_0x127148){return _0x22d3aa(_0x127148);},'IgRcq':function(_0x531560,_0x37312d){return _0x531560(_0x37312d);},'UtNWo':function(_0x5d6a91,_0x57ea3c){return _0x5d6a91===_0x57ea3c;},'eEVKI':_0x2658a9(0x27a),'czuMZ':function(_0x3131a9){return _0x3131a9();},'GvjiO':_0x2658a9(0x1ba),'zuARs':_0x2658a9(0x202),'xEjlh':_0x2658a9(0x204),'LpWVp':function(_0x120e2a,_0x25a30a){return _0x120e2a+_0x25a30a;},'UnVFC':_0x2658a9(0x225),'mvtKT':_0x2658a9(0x1d1),'LIpEV':_0x2658a9(0x21a),'AjFqg':function(_0x448b59,_0x5c0d57){return _0x448b59>_0x5c0d57;},'FTOpA':function(_0x3825e3,_0x4cdec1){return _0x3825e3+_0x4cdec1;},'oebvZ':function(_0x5e46da,_0x34cc32,_0x5bf546,_0x56d14c){return _0x5e46da(_0x34cc32,_0x5bf546,_0x56d14c);},'XusCK':_0x2658a9(0x242),'qXWOq':_0x2658a9(0x1fc),'qheCF':_0x2658a9(0x1df),'rFXvl':_0x2658a9(0x245),'QVqaJ':function(_0x325302,_0x3dfbd7){return _0x325302===_0x3dfbd7;},'hIcpX':_0x2658a9(0x27f),'LsNcy':_0x2658a9(0x1bc),'foVgI':_0x2658a9(0x213)};!helper[_0x2658a9(0x1f7)](process['env'][_0x2658a9(0x26f)])&&(process['env'][_0x2658a9(0x26f)]=!![]);process['argv'][_0x2658a9(0x1fd)](_0x322374[_0x2658a9(0x266)])&&(process[_0x2658a9(0x249)]['BROWSERSTACK_AUTOMATION']=_0x322374[_0x2658a9(0x201)],_0x546e35=_0x546e35['filter'](_0x2c783a=>_0x2c783a!=='--disable-browserstack-automation'));const _0x307ca3=_0x546e35[_0x2658a9(0x1b7)](_0x322374['kfamh']);_0x322374[_0x2658a9(0x1d5)](_0x307ca3,0x0)&&(process[_0x2658a9(0x249)][_0x2658a9(0x241)]=_0x322374[_0x2658a9(0x201)],_0x546e35=_0x546e35['filter'](_0x9a22d=>_0x9a22d!==_0x2658a9(0x23e)));try{const _0x52700e=path[_0x2658a9(0x1f4)](helper['homedir'](),_0x322374[_0x2658a9(0x1c1)],_0x322374[_0x2658a9(0x24f)]);fs[_0x2658a9(0x1f5)](_0x52700e)&&fs[_0x2658a9(0x277)](_0x52700e);}catch(_0x352e13){logger[_0x2658a9(0x273)](_0x322374['HNsGc'](_0x322374['WAzMe'],_0x352e13));}if(!_0x322374[_0x2658a9(0x1ff)](isTestCommand,_0x966a9d,_0x546e35)){_0x322374['qidwt'](spawnOriginalProcess,_0x546e35);return;}const _0x47eda1=new BrowserStackSetup(_0x966a9d,FRAMEWORKS['PLAYWRIGHT']);if(!_0x47eda1[_0x2658a9(0x1e3)]){logger['error'](_0x322374['DDxTL']);return;}await _0x47eda1[_0x2658a9(0x260)]();!helper['isUndefined'](_0x47eda1[_0x2658a9(0x279)])&&_0x47eda1[_0x2658a9(0x279)][_0x2658a9(0x1d0)](_0x322374[_0x2658a9(0x269)])&&(process[_0x2658a9(0x249)]['BROWSERSTACK_AUTOMATION']=_0x47eda1['cliConfig'][_0x2658a9(0x1be)](_0x322374[_0x2658a9(0x269)])||!![]);_0x322374[_0x2658a9(0x1ec)](_0x47eda1[_0x2658a9(0x1e3)][_0x2658a9(0x276)],null)&&!helper[_0x2658a9(0x264)](process[_0x2658a9(0x249)][_0x2658a9(0x241)])&&(process[_0x2658a9(0x249)]['BROWSERSTACK_TEST_OBSERVABILITY']=process[_0x2658a9(0x249)][_0x2658a9(0x241)]||_0x47eda1[_0x2658a9(0x1e3)]['testObservability']);const _0x29afec=!helper[_0x2658a9(0x1f7)](process['env']['BROWSERSTACK_TEST_OBSERVABILITY']);let _0xd2879c=![];_0x47eda1[_0x2658a9(0x1e3)][_0x2658a9(0x247)]&&(_0xd2879c=!![],process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x47eda1[_0x2658a9(0x1e3)][_0x2658a9(0x247)]);_0x47eda1[_0x2658a9(0x1e3)][_0x2658a9(0x1cd)]&&(process['env'][_0x2658a9(0x232)]=JSON[_0x2658a9(0x20f)](_0x47eda1[_0x2658a9(0x1e3)][_0x2658a9(0x1cd)]));const _0x3bd4a8=_0x546e35[_0x2658a9(0x23d)](),_0x1908df=await _0x322374[_0x2658a9(0x1ff)](getUserPlaywrightConfig,_0x966a9d,_0x546e35);if(helper[_0x2658a9(0x26c)](_0x1908df)){_0x322374['ADThw'](spawnOriginalProcess,_0x3bd4a8);return;}const _0x3c90c2={..._0x1908df[_0x2658a9(0x1e3)]},_0xf89adf=_0x3c90c2,_0x278c2e=_0x1908df['path']?path[_0x2658a9(0x1cf)](_0x1908df[_0x2658a9(0x217)]):process[_0x2658a9(0x216)]();process[_0x2658a9(0x249)]['BROWSERSTACK_PW_CONFIG_DIR']=_0x278c2e;if(!_0x322374[_0x2658a9(0x22e)](setGlobalSetup,_0xf89adf,_0x278c2e)){_0x322374['qidwt'](spawnOriginalProcess,_0x3bd4a8);return;}const _0x5529a1=await TestHubHandler[_0x2658a9(0x255)](FRAMEWORKS[_0x2658a9(0x205)],_0x47eda1);_0x29afec&&(logger['info'](_0x322374[_0x2658a9(0x21f)]),_0x322374[_0x2658a9(0x229)](initO11yCrashReporter,_0xf89adf,_0x47eda1[_0x2658a9(0x1e3)]),_0x322374[_0x2658a9(0x268)](handleO11yRerun,_0x546e35),await _0x322374[_0x2658a9(0x1dd)](launchO11ySession,_0x5529a1[testHubConstants[_0x2658a9(0x212)]]));_0x322374[_0x2658a9(0x211)](shouldProcessEventForTesthub)&&_0x322374[_0x2658a9(0x1dd)](addReporter,_0xf89adf);let _0x5212f6=_0x322374[_0x2658a9(0x21b)](process[_0x2658a9(0x249)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML'],_0x322374[_0x2658a9(0x1e7)]);_0x5212f6=_0x5212f6||_0x322374[_0x2658a9(0x21e)](checkAccessibilityPlatformConfig,_0x47eda1[_0x2658a9(0x1e3)]),process[_0x2658a9(0x249)][_0x2658a9(0x1cc)]=_0x5212f6;_0x5212f6&&_0x322374[_0x2658a9(0x221)](setAccessibilityCapabilities,_0x47eda1[_0x2658a9(0x1e3)]);(helper[_0x2658a9(0x26c)](_0x47eda1[_0x2658a9(0x1e3)]['platforms'])||_0x322374[_0x2658a9(0x1b5)](_0x47eda1[_0x2658a9(0x1e3)][_0x2658a9(0x270)][_0x2658a9(0x1ca)],0x0))&&(process[_0x2658a9(0x249)][_0x2658a9(0x26f)]=![]);const _0x2a409e=path['join'](_0x1908df[_0x2658a9(0x217)]?path[_0x2658a9(0x1cf)](_0x1908df[_0x2658a9(0x217)]):process[_0x2658a9(0x216)](),_0x322374[_0x2658a9(0x1f2)]);fs[_0x2658a9(0x1ee)](_0x2a409e,helper[_0x2658a9(0x27c)](_0x47eda1[_0x2658a9(0x1e3)])),process[_0x2658a9(0x249)][_0x2658a9(0x1e4)]=_0x2a409e,helper[_0x2658a9(0x1f3)]();if(helper[_0x2658a9(0x264)](process[_0x2658a9(0x249)]['BROWSERSTACK_AUTOMATION'])){let _0x359b49=[];try{const _0x138a15=helper[_0x2658a9(0x22a)]['apply'](null,_0x322374['czuMZ'](getProjectUtilsPath)),_0x3fd029={};_0x3fd029[_0x2658a9(0x1c8)]=!![],_0x3fd029[_0x2658a9(0x1ba)]='',_0x3fd029['testMatch']='',_0x3fd029[_0x2658a9(0x204)]='';const _0x8393a5={};_0x8393a5[_0x2658a9(0x1c8)]=!![];const _0x18c4b5={};_0x18c4b5[_0x2658a9(0x252)]=_0x3fd029,_0x18c4b5[_0x2658a9(0x21c)]=_0x8393a5;let _0x5ea2d6=_0x18c4b5;_0xf89adf[_0x322374[_0x2658a9(0x23a)]]&&(_0x5ea2d6['project'][_0x322374[_0x2658a9(0x23a)]]=_0xf89adf[_0x322374['GvjiO']]),_0xf89adf[_0x322374[_0x2658a9(0x1c4)]]&&(_0x5ea2d6['project'][_0x322374[_0x2658a9(0x1c4)]]=_0xf89adf[_0x322374[_0x2658a9(0x1c4)]]),_0xf89adf[_0x322374[_0x2658a9(0x1fa)]]&&(_0x5ea2d6[_0x2658a9(0x252)][_0x322374[_0x2658a9(0x1fa)]]=_0xf89adf[_0x322374[_0x2658a9(0x1fa)]]),_0x5ea2d6=Object[_0x2658a9(0x21d)](_0x5ea2d6,_0x5ea2d6[_0x2658a9(0x252)]),_0x359b49=await _0x138a15['collectFilesForProject'](_0x5ea2d6);}catch(_0x2c2905){logger['debug'](_0x322374[_0x2658a9(0x1e1)](_0x322374['UnVFC'],_0x322374[_0x2658a9(0x221)](format,_0x2c2905)));}}let _0x544efd='';_0x322374[_0x2658a9(0x21b)](helper['getPackageType'](),constants[_0x2658a9(0x20d)]['MODULE'])?_0x544efd=_0x322374[_0x2658a9(0x210)]:_0x544efd=_0x322374[_0x2658a9(0x246)];const _0x521b16=path[_0x2658a9(0x1f4)](_0x1908df[_0x2658a9(0x217)]?path[_0x2658a9(0x1cf)](_0x1908df[_0x2658a9(0x217)]):process[_0x2658a9(0x216)](),_0x544efd);let _0x3d4281=_0x1908df['path']?_0x1908df[_0x2658a9(0x217)]:'';_0x3d4281=_0x322374[_0x2658a9(0x208)](_0x3d4281['length'],0x0)?path[_0x2658a9(0x24c)](_0x3d4281):'',process[_0x2658a9(0x249)]['USER_CONFIG_DETAILS_PATH']=_0x3d4281;let _0x2a91f8=_0x2658a9(0x22f);const _0xc43136=helper['getProxyUrl'](_0x47eda1[_0x2658a9(0x1e3)]);_0xc43136&&(_0x2a91f8=_0x322374['FTOpA'](_0x2658a9(0x250)+_0xc43136+_0x2658a9(0x238),_0x2a91f8));helper[_0x2658a9(0x214)]({},_0x546e35),fs[_0x2658a9(0x1ee)](_0x521b16,_0x2a91f8),helper[_0x2658a9(0x1b8)]();const _0x8ab8c6=_0x322374[_0x2658a9(0x234)](spawn,_0x322374[_0x2658a9(0x1d9)],[_0x322374[_0x2658a9(0x262)],_0x322374[_0x2658a9(0x1ea)],_0x322374['rFXvl'],_0x521b16,..._0x546e35[_0x2658a9(0x257)](0x2)],{'shell':_0x322374['QVqaJ'](process[_0x2658a9(0x1e8)],_0x322374[_0x2658a9(0x251)]),'stdio':_0x322374[_0x2658a9(0x1eb)],'cwd':process[_0x2658a9(0x216)](),'env':Object['assign']({},process[_0x2658a9(0x249)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper['getConfigPath'](_0x966a9d),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x47eda1['config'][_0x2658a9(0x271)][_0x2658a9(0x1ed)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x47eda1[_0x2658a9(0x1e3)]['testContextOptions']['skipSessionName'],'BROWSERSTACK_LOG_LEVEL':_0x47eda1['config'][_0x2658a9(0x1e5)]})}),_0x2073fc=()=>{const _0x36e949=_0x2658a9;try{const _0x507fca=path[_0x36e949(0x1f4)](helper[_0x36e949(0x207)](),_0x322374[_0x36e949(0x1c1)],_0x322374[_0x36e949(0x24f)]);if(fs[_0x36e949(0x1f5)](_0x507fca)){let _0x30f90d=fs[_0x36e949(0x27e)](_0x507fca);_0x30f90d=JSON[_0x36e949(0x1ce)](_0x30f90d),_0x47eda1[_0x36e949(0x1f6)]=_0x30f90d,fs['unlinkSync'](_0x507fca);}}catch(_0x33c5c9){logger[_0x36e949(0x273)](_0x322374[_0x36e949(0x26a)](_0x322374[_0x36e949(0x278)],_0x33c5c9));}};_0x8ab8c6['on'](_0x322374[_0x2658a9(0x1f8)],async _0x2da1fa=>{const _0x72f0e2=_0x2658a9;try{const _0x3ade83=_0x322374['hIuvA']['split']('|');let _0x4318bf=0x0;while(!![]){switch(_0x3ade83[_0x4318bf++]){case'0':fs['unlinkSync'](_0x521b16);continue;case'1':process['exitCode']=_0x2da1fa;continue;case'2':logger[_0x72f0e2(0x273)]('Playwright\x20process\x20exited\x20with\x20code\x20'+_0x2da1fa);continue;case'3':await helper[_0x72f0e2(0x235)](_0x47eda1);continue;case'4':fs[_0x72f0e2(0x277)](_0x2a409e);continue;case'5':logger[_0x72f0e2(0x273)](_0x72f0e2(0x1c6)+_0x2a409e);continue;case'6':logger[_0x72f0e2(0x259)]('Deleting\x20'+_0x521b16);continue;case'7':_0x322374[_0x72f0e2(0x211)](_0x2073fc);continue;}break;}}catch(_0x4937cf){logger[_0x72f0e2(0x273)](_0x322374['HNsGc'](_0x322374[_0x72f0e2(0x24b)],_0x4937cf));}});}module[a33_0x4fe9d7(0x22b)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a34_0x4ac126=a34_0x2142;function a34_0x2142(_0xb50f8a,_0x18a866){const _0x522c8d=a34_0x522c();return a34_0x2142=function(_0x2142f2,_0x97e548){_0x2142f2=_0x2142f2-0x80;let _0x45c798=_0x522c8d[_0x2142f2];return _0x45c798;},a34_0x2142(_0xb50f8a,_0x18a866);}(function(_0x13a74a,_0x26d76c){const _0x213224=a34_0x2142,_0x4244c4=_0x13a74a();while(!![]){try{const _0x4ae716=-parseInt(_0x213224(0x97))/0x1*(-parseInt(_0x213224(0xa1))/0x2)+-parseInt(_0x213224(0xa8))/0x3+parseInt(_0x213224(0x8d))/0x4+parseInt(_0x213224(0x8f))/0x5+parseInt(_0x213224(0x88))/0x6*(-parseInt(_0x213224(0xa5))/0x7)+parseInt(_0x213224(0xa7))/0x8+-parseInt(_0x213224(0x8c))/0x9*(parseInt(_0x213224(0x93))/0xa);if(_0x4ae716===_0x26d76c)break;else _0x4244c4['push'](_0x4244c4['shift']());}catch(_0x9015ba){_0x4244c4['push'](_0x4244c4['shift']());}}}(a34_0x522c,0x85c06));function a34_0x522c(){const _0x2293cc=['Call\x20to\x20child\x20fork\x20with\x20args\x20','config','tDOYN','140220UThmrD','2621032FHlyzi','AHDPE','5338695xIdacN','winstonLogger','PLAYWRIGHT','requirePWModule','650MhMyVI','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','includes','fork','6VdlVUz','XBTcK','PhVlz','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','function','gkQMh','\x20is\x20not\x20found','DRylp','1.33.0','../../helpers/helper','236374oJcPWN','exports','./mock-process.js','error','56bwmMCP','SLRaR','3343360aEcvMN','2253783DzFWNn','hBnZn','env','kpzLH','oFAHv','Path\x20','oFxVj','vweZr','./reporter/pwUtils','403674HWCYUw'];a34_0x522c=function(){return _0x2293cc;};return a34_0x522c();}const child_process=require('child_process'),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{getFrameworkVersion,debug}=require('../../helpers/test-observability/utils'),helper=require(a34_0x4ac126(0xa0)),{getLoadUtilsPath,getForkProcessPath}=require(a34_0x4ac126(0x87)),logger=require('../../helpers/logger')[a34_0x4ac126(0x90)];module[a34_0x4ac126(0xa2)]=async function(_0x485f89){const _0x772358=a34_0x4ac126,_0x1724f4={'oFAHv':function(_0x4177fe,_0x2b47f1){return _0x4177fe(_0x2b47f1);},'DRylp':function(_0x37f6d9){return _0x37f6d9();},'gkQMh':_0x772358(0xa3),'tDOYN':'Running\x20existing\x20global\x20setup','oFxVj':function(_0x27769c){return _0x27769c();},'PhVlz':function(_0x2585fe,_0x1f822c){return _0x2585fe(_0x1f822c);},'kpzLH':function(_0x122b3f,_0x1ee1a5){return _0x122b3f>=_0x1ee1a5;},'XBTcK':_0x772358(0x9f),'vweZr':function(_0x16dc82,_0x19e116,_0x584354){return _0x16dc82(_0x19e116,_0x584354);},'SLRaR':function(_0x44761b,_0x3bec02){return _0x44761b!==_0x3bec02;},'hBnZn':_0x772358(0x9b),'gilCz':'Not\x20able\x20to\x20import\x20globalSetup','AHDPE':function(_0x3ca9d2,_0x389c83){return _0x3ca9d2(_0x389c83);}},_0x515846=child_process[_0x772358(0x96)];child_process[_0x772358(0x96)]=function(){const _0x5bc3df=_0x772358;return _0x1724f4[_0x5bc3df(0x83)](debug,_0x5bc3df(0x89)+arguments[0x0]),arguments[0x0][_0x5bc3df(0x95)](_0x1724f4[_0x5bc3df(0x9e)](getForkProcessPath))?arguments[0x0]=require['resolve'](_0x1724f4[_0x5bc3df(0x9c)]):logger[_0x5bc3df(0xa4)](_0x5bc3df(0x84)+_0x1724f4['DRylp'](getForkProcessPath)+_0x5bc3df(0x9d)),_0x515846['apply'](null,arguments);};if(process[_0x772358(0x81)][_0x772358(0x9a)]){_0x1724f4['oFAHv'](debug,_0x1724f4[_0x772358(0x8b)]);try{const {loadGlobalHook:_0x50ec93}=helper[_0x772358(0x92)]['apply'](null,_0x1724f4[_0x772358(0x85)](getLoadUtilsPath)),_0x367d00=_0x1724f4[_0x772358(0x99)](getFrameworkVersion,FRAMEWORKS[_0x772358(0x91)]);let _0x597f3c=_0x485f89;if(_0x1724f4[_0x772358(0x82)](helper['compareVersions'](_0x367d00,_0x1724f4[_0x772358(0x98)]),0x0)){const _0x348f24={};_0x348f24[_0x772358(0x8a)]=_0x485f89,_0x597f3c=_0x348f24;}const _0x551f6d=await _0x1724f4[_0x772358(0x86)](_0x50ec93,_0x597f3c,process['env'][_0x772358(0x9a)]);if(_0x1724f4[_0x772358(0xa6)](typeof _0x551f6d,_0x1724f4[_0x772358(0x80)]))throw new Error(_0x1724f4['gilCz']);return _0x551f6d['apply'](null,arguments);}catch(_0x5ef823){_0x1724f4[_0x772358(0x8e)](debug,_0x772358(0x94)+_0x5ef823['toString']());}}};
|