browserstack-node-sdk 1.33.0 → 1.33.2
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 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a27_0x30c9cb=a27_0x14ce;(function(_0x3ed3d5,_0xa88d86){const _0x9cd39c=a27_0x14ce,_0x249106=_0x3ed3d5();while(!![]){try{const _0x343832=parseInt(_0x9cd39c(0xa8))/0x1+-parseInt(_0x9cd39c(0xff))/0x2*(parseInt(_0x9cd39c(0xfa))/0x3)+parseInt(_0x9cd39c(0xc3))/0x4*(-parseInt(_0x9cd39c(0xdb))/0x5)+parseInt(_0x9cd39c(0xa5))/0x6+parseInt(_0x9cd39c(0xed))/0x7*(-parseInt(_0x9cd39c(0xcb))/0x8)+-parseInt(_0x9cd39c(0xe8))/0x9*(parseInt(_0x9cd39c(0xc8))/0xa)+parseInt(_0x9cd39c(0xd9))/0xb*(parseInt(_0x9cd39c(0x9a))/0xc);if(_0x343832===_0xa88d86)break;else _0x249106['push'](_0x249106['shift']());}catch(_0x10ceff){_0x249106['push'](_0x249106['shift']());}}}(a27_0x3238,0x3396e));const logger=require(a27_0x30c9cb(0xce))[a27_0x30c9cb(0xfb)],helper=require(a27_0x30c9cb(0xa9)),constants=require(a27_0x30c9cb(0xf4)),hubAllocator=require('../../../hubAllocationMethods'),{overrideQuit,overrideTakeScreenshot,overrideGet}=require('../../../helpers/patchHelpers'),{setAccessibilityCapabilities,setExtension}=require('../accessibility-automation/helper'),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a27_0x30c9cb(0xc7)),globals=require(a27_0x30c9cb(0xf2)),modify=(_0x4b9b33,_0x4f1481=null,_0x4edb02=![])=>{const _0x300763=a27_0x30c9cb,_0x21765d={'IQOCl':function(_0x38c12d,_0x55f949){return _0x38c12d!==_0x55f949;},'xCJMG':_0x300763(0xe3),'wvuag':function(_0x19aa53,_0x1e1f8e){return _0x19aa53!==_0x1e1f8e;},'PTrSz':function(_0x417ed4,_0x4b4a55){return _0x417ed4+_0x4b4a55;},'LhfMu':'https://','BkaPM':_0x300763(0xe7),'kqTxe':_0x300763(0xc6),'IidBr':_0x300763(0xad),'OUUMP':'ms:edgeOptions','Akvlq':_0x300763(0xa2),'IEWqi':_0x300763(0xa1),'rERIx':'firefoxOptions','tCuKq':_0x300763(0xab),'odXnF':'se:ieOptions','PzRST':_0x300763(0xee),'nzPrE':function(_0x24a58c,_0x3ccc7c){return _0x24a58c===_0x3ccc7c;},'ZrIMn':'object','pyRzM':_0x300763(0xb7),'rSHEs':function(_0x587b3a,_0x540435,_0xfa04f5){return _0x587b3a(_0x540435,_0xfa04f5);},'OTOYk':function(_0x308168,_0x422957,_0x38f520){return _0x308168(_0x422957,_0x38f520);},'PGtml':function(_0x17fe2e,_0x20e82f,_0x853d58){return _0x17fe2e(_0x20e82f,_0x853d58);},'oZQfS':function(_0x2fb1ff,_0x1b212d){return _0x2fb1ff(_0x1b212d);},'xlzjn':function(_0x2d24b0,_0x3a75b0,_0x337827){return _0x2d24b0(_0x3a75b0,_0x337827);},'XTrcA':_0x300763(0x10b),'RMfGd':_0x300763(0x10d),'lJMQv':function(_0x19ec8f,_0x22e5cc,_0x45ef1f){return _0x19ec8f(_0x22e5cc,_0x45ef1f);},'PxXlU':_0x300763(0xe2),'OYDSk':function(_0x3c6c0f){return _0x3c6c0f();},'Bgwif':_0x300763(0xd2),'ORWMF':function(_0x5d215a,_0x836bbf,_0x16e505){return _0x5d215a(_0x836bbf,_0x16e505);},'fskWQ':_0x300763(0xbc),'xprbE':function(_0x4995d1,_0x4ef9d8){return _0x4995d1(_0x4ef9d8);},'KjliR':function(_0x53542b,_0x3cf114){return _0x53542b!==_0x3cf114;},'XGfjR':_0x300763(0xf1),'MhEfP':'Modifying\x20webdriver\x20builder'},_0x13626c=helper[_0x300763(0xda)]();let _0x173b46;try{_0x173b46=helper[_0x300763(0xea)](),_0x173b46[_0x300763(0xd3)]&&(_0x173b46['Builder']=_0x173b46[_0x300763(0xd3)]);}catch(_0x192610){return;}if(helper[_0x300763(0xb0)]()){const _0x341701={};_0x341701[_0x300763(0x8d)]=_0x4b9b33[_0x300763(0x92)],helper[_0x300763(0xdf)](_0x341701,new Map(),new Map()),logger[_0x300763(0xeb)](_0x21765d[_0x300763(0x8c)]),logger[_0x300763(0xb6)](_0x21765d[_0x300763(0xec)]);}class _0x1d5887 extends _0x13626c['HttpClient']{['send'](_0x2229d0){const _0x2e3c36=_0x300763;if(_0x21765d[_0x2e3c36(0xa0)](_0x2229d0[_0x2e3c36(0xf8)],_0x21765d[_0x2e3c36(0xfe)])&&_0x21765d[_0x2e3c36(0xc0)](global[_0x2e3c36(0xb2)],''))try{global[_0x2e3c36(0xb2)]=_0x21765d[_0x2e3c36(0x103)](_0x21765d[_0x2e3c36(0x103)](_0x21765d[_0x2e3c36(0xac)],global[_0x2e3c36(0xb2)]),_0x21765d[_0x2e3c36(0x104)]),this['options_']=hubAllocator[_0x2e3c36(0x10a)](global[_0x2e3c36(0xb2)]),logger[_0x2e3c36(0xb6)](_0x2e3c36(0xfc)+global[_0x2e3c36(0xb2)]),global['newHubUrl']='';}catch(_0x37c09a){logger[_0x2e3c36(0x102)](_0x37c09a);}return super[_0x2e3c36(0xa4)](_0x2229d0);}}class _0x58617a extends _0x173b46[_0x300763(0xf0)]{['setServer'](){const _0x3fd7f7=_0x300763;return this[_0x3fd7f7(0x107)]=helper[_0x3fd7f7(0x90)](_0x4b9b33),logger[_0x3fd7f7(0xb6)](_0x3fd7f7(0xdd)+this[_0x3fd7f7(0x107)]),this;}[_0x300763(0x105)](_0x33c3e9){const _0xcf1863=_0x300763;let _0x490cd3={};for(const _0xaeef14 in _0x33c3e9){switch(_0xaeef14){case _0x21765d['kqTxe']:case _0x21765d[_0xcf1863(0xa7)]:this[_0xcf1863(0x94)]&&(_0x490cd3=this[_0xcf1863(0x94)][_0xcf1863(0xd8)](this['chromeOptions_'][_0xcf1863(0x10e)])||{},this[_0xcf1863(0x94)][_0xcf1863(0xbd)](this['chromeOptions_'][_0xcf1863(0x10e)],helper['mergeDeep'](_0x490cd3,_0x33c3e9[_0xaeef14])));break;case _0x21765d[_0xcf1863(0x9f)]:case _0x21765d['Akvlq']:this[_0xcf1863(0xb9)]&&(_0x490cd3=this['edgeOptions_']['get'](this[_0xcf1863(0xb9)]['CAPABILITY_KEY'])||{},this[_0xcf1863(0xb9)][_0xcf1863(0xbd)](this[_0xcf1863(0xb9)][_0xcf1863(0x10e)],helper[_0xcf1863(0x95)](_0x490cd3,_0x33c3e9[_0xaeef14])));break;case _0x21765d[_0xcf1863(0x109)]:case _0x21765d[_0xcf1863(0xcc)]:this[_0xcf1863(0xf3)]&&(_0x490cd3=this[_0xcf1863(0xf3)][_0xcf1863(0xd8)](this['firefoxOptions_'][_0xcf1863(0x10e)])||{},this[_0xcf1863(0xf3)][_0xcf1863(0xbd)](this[_0xcf1863(0xf3)]['CAPABILITY_KEY'],helper[_0xcf1863(0x95)](_0x490cd3,_0x33c3e9[_0xaeef14])));break;case _0x21765d[_0xcf1863(0xe6)]:this[_0xcf1863(0xaa)]&&(_0x490cd3=this[_0xcf1863(0xaa)][_0xcf1863(0xd8)](this[_0xcf1863(0xaa)]['CAPABILITY_KEY'])||{},this[_0xcf1863(0xaa)]['set'](this[_0xcf1863(0xaa)][_0xcf1863(0x10e)],helper[_0xcf1863(0x95)](_0x490cd3,_0x33c3e9[_0xaeef14])));break;case _0x21765d[_0xcf1863(0xd6)]:case _0x21765d[_0xcf1863(0xf6)]:this[_0xcf1863(0xb5)]&&(_0x490cd3=this['ieOptions_'][_0xcf1863(0xd8)](this[_0xcf1863(0xb5)][_0xcf1863(0x10e)])||{},this['ieOptions_'][_0xcf1863(0xbd)](this['ieOptions_']['CAPABILITY_KEY'],helper['mergeDeep'](_0x490cd3,_0x33c3e9[_0xaeef14])));break;}}}[_0x300763(0xd5)](){const _0x1a4abb=_0x300763,_0x3b143e={'kSfOy':function(_0x311ed6,_0xc16a44){const _0x1176c1=a27_0x14ce;return _0x21765d[_0x1176c1(0xef)](_0x311ed6,_0xc16a44);},'STzpx':_0x21765d[_0x1a4abb(0xc5)]};return logger[_0x1a4abb(0xb6)](_0x21765d[_0x1a4abb(0x9c)]),this['__setBrowserOptions'](_0x4b9b33[_0x1a4abb(0xde)]),Object[_0x1a4abb(0xf5)](_0x4b9b33[_0x1a4abb(0xde)])[_0x1a4abb(0x106)](_0x578bb7=>{const _0x36b5a2=_0x1a4abb,_0x649f02=this[_0x36b5a2(0xca)]['get'](_0x578bb7);_0x3b143e[_0x36b5a2(0xe0)](typeof _0x649f02,_0x3b143e[_0x36b5a2(0xbe)])?this[_0x36b5a2(0xca)][_0x36b5a2(0xbd)](_0x578bb7,helper[_0x36b5a2(0x95)](_0x649f02,_0x4b9b33[_0x36b5a2(0xde)][_0x578bb7])):this[_0x36b5a2(0xca)][_0x36b5a2(0xbd)](_0x578bb7,_0x4b9b33[_0x36b5a2(0xde)][_0x578bb7]);}),this;}['build'](){const _0x103bee=_0x300763,_0x305168={'JaSSW':_0x21765d[_0x103bee(0xe9)],'viOhS':_0x21765d[_0x103bee(0x108)],'VfDHN':function(_0x1ce7a4,_0x4767cf,_0x40e36a){const _0x2c9b10=_0x103bee;return _0x21765d[_0x2c9b10(0xbb)](_0x1ce7a4,_0x4767cf,_0x40e36a);}};if(helper[_0x103bee(0xb0)]()){const _0x85bdde=_0x21765d['PxXlU'][_0x103bee(0x96)]('|');let _0x365c96=0x0;while(!![]){switch(_0x85bdde[_0x365c96++]){case'0':this[_0x103bee(0x98)]();continue;case'1':_0x21765d['OYDSk'](isAccessibilityAutomationSession)&&_0x21765d[_0x103bee(0x93)](setAccessibilityCapabilities,_0x4b9b33);continue;case'2':if(helper[_0x103bee(0x91)](_0x4b9b33['proxySettings'][_0x103bee(0xb3)]))this[_0x103bee(0x9e)]=helper['getHttpAgent'](_0x4b9b33[_0x103bee(0xae)]['proxyUrl']);else _0x4b9b33[_0x103bee(0xae)][_0x103bee(0xb3)]&&(this[_0x103bee(0x8f)]=_0x4b9b33[_0x103bee(0xae)][_0x103bee(0xb3)],logger['debug'](_0x103bee(0x101)+this[_0x103bee(0x8f)]));continue;case'3':globals[_0x103bee(0xd4)](_0x21765d[_0x103bee(0xd7)])&&(!_0x21765d[_0x103bee(0xb1)](setExtension,this,_0x4b9b33)&&globals[_0x103bee(0xdc)](_0x21765d[_0x103bee(0xd7)],![]));continue;case'4':logger['debug'](_0x21765d[_0x103bee(0xc9)]);continue;case'5':this[_0x103bee(0xd5)]();continue;}break;}}const _0x24da07=super[_0x103bee(0xe4)]();return _0x24da07[_0x103bee(0xd1)][_0x103bee(0xc1)](_0x2e7e6e=>{const _0x7d1359=_0x103bee;try{const _0x19f8d4=_0x2e7e6e[_0x7d1359(0xfd)][_0x7d1359(0xd8)](_0x305168[_0x7d1359(0x10c)]);_0x19f8d4?(logger[_0x7d1359(0xb6)]('SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20'+_0x19f8d4),hubAllocator[_0x7d1359(0xaf)](_0x19f8d4),helper[_0x7d1359(0xb8)](_0x19f8d4)):logger[_0x7d1359(0xb6)](_0x305168['viOhS']);}catch(_0x3c573c){logger[_0x7d1359(0xb6)](_0x7d1359(0xcd)+_0x3c573c);}}),_0x24da07['quitCount_']=0x0,_0x24da07[_0x103bee(0xc1)]&&_0x24da07[_0x103bee(0xc1)](_0x16db10=>{const _0x2ba34a=_0x103bee,_0x5da965={'EqQML':function(_0x2df6a8,_0x1d992c,_0x4aed61){const _0x36a5b0=a27_0x14ce;return _0x21765d[_0x36a5b0(0xba)](_0x2df6a8,_0x1d992c,_0x4aed61);},'EoAEu':function(_0x2d080f,_0x14107f,_0x5f4456){const _0x16307e=a27_0x14ce;return _0x21765d[_0x16307e(0x8e)](_0x2d080f,_0x14107f,_0x5f4456);}};_0x21765d[_0x2ba34a(0xe5)](overrideQuit,_0x16db10,_0x24da07),_0x21765d[_0x2ba34a(0x93)](overrideTakeScreenshot,_0x16db10),helper[_0x2ba34a(0xf7)](_0x16db10,_0x4b9b33),helper['overrideExecute'](_0x16db10,_0x4b9b33),_0x16db10[_0x2ba34a(0x97)]=async()=>{const _0x4763e4=_0x2ba34a;return await _0x5da965[_0x4763e4(0xc4)](getAccessibilityResultsSummary,_0x16db10,global);},_0x16db10[_0x2ba34a(0xa3)]=async()=>{return await _0x5da965['EoAEu'](getAccessibilityResults,_0x16db10,global);};}),_0x24da07[_0x103bee(0x97)]=async()=>{const _0x2a7c24=_0x103bee;return await _0x305168[_0x2a7c24(0xc2)](getAccessibilityResultsSummary,_0x24da07,global);},_0x24da07[_0x103bee(0xa3)]=async()=>{return await _0x21765d['xlzjn'](getAccessibilityResults,_0x24da07,global);},_0x21765d['oZQfS'](overrideTakeScreenshot,_0x24da07),_0x21765d[_0x103bee(0xa6)](overrideQuit,_0x24da07),helper['overrideGet'](_0x24da07,_0x4b9b33),helper[_0x103bee(0x9d)](_0x24da07,_0x4b9b33),helper[_0x103bee(0xb4)](global[_0x103bee(0xf9)])&&(global[_0x103bee(0xf9)]=[]),helper[_0x103bee(0xb4)](global['__drivers'])&&(global[_0x103bee(0xe1)]=[]),global['__driversArray'][_0x103bee(0x9b)](_0x24da07),global[_0x103bee(0x100)]=_0x24da07,_0x21765d[_0x103bee(0x99)](global[_0x103bee(0xe1)],undefined)&&global['__drivers'][_0x103bee(0x9b)](_0x24da07),_0x4f1481&&helper[_0x103bee(0xb4)](_0x4f1481['global'][_0x103bee(0xf9)])&&(_0x4f1481[_0x103bee(0xd0)][_0x103bee(0xf9)]=[]),_0x4f1481&&_0x21765d['IQOCl'](_0x4f1481['global'][_0x103bee(0xe1)],undefined)&&(_0x4f1481[_0x103bee(0xd0)]['__drivers']['push'](_0x24da07),_0x4f1481[_0x103bee(0xd0)][_0x103bee(0xf9)]['push'](_0x24da07)),_0x24da07;}}return _0x173b46[_0x300763(0xd3)]=_0x173b46[_0x300763(0xf0)],_0x173b46[_0x300763(0xf0)]=_0x58617a,_0x13626c[_0x300763(0xbf)]=_0x1d5887,_0x173b46;};function a27_0x14ce(_0x2037c9,_0x5812e1){const _0x323871=a27_0x3238();return a27_0x14ce=function(_0x14cecb,_0x5067e7){_0x14cecb=_0x14cecb-0x8c;let _0x4110ec=_0x323871[_0x14cecb];return _0x4110ec;},a27_0x14ce(_0x2037c9,_0x5812e1);}function a27_0x3238(){const _0x1c121b=['rERIx','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','../../../helpers/logger','browserstackAgentObservability','global','session_','isAccessibilityPlatform','originalBuilder','getGlobal','setCapabilities','odXnF','Bgwif','get','11MVAYwR','requireHttpClient','326320ZaMdSg','setGlobal','Hub\x20url\x20set\x20to\x20','capability','setLogLevel','kSfOy','__drivers','1|0|5|2|3|4','/session','build','PGtml','tCuKq','/wd/hub','36WEbBYd','XTrcA','requireSeleniumWebdriver','info','MhEfP','7UQGRAL','ieOptions','nzPrE','Builder','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','../../../helpers/globals','firefoxOptions_','../../../bin/utils/constants','keys','PzRST','overrideGet','path','__driversArray','78765RuNoKq','winstonLogger','New\x20hub\x20url\x20set\x20to\x20','caps_','xCJMG','6agroxR','__driver','Proxy\x20set\x20to\x20','error','PTrSz','BkaPM','__setBrowserOptions','forEach','url_','RMfGd','IEWqi','getRequestOptions','optimalHubUrl','JaSSW','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','CAPABILITY_KEY','XGfjR','logLevel','OTOYk','proxy_','getHubUrl','isPacProxy','browserStackLogLevel','oZQfS','chromeOptions_','mergeDeep','split','getAccessibilityResultsSummary','setServer','KjliR','3273216JHAAdi','push','pyRzM','overrideExecute','agent_','OUUMP','IQOCl','moz:firefoxOptions','edgeOptions','getAccessibilityResults','send','2075598LfqOFy','xprbE','IidBr','226004lAkCcI','../../../helpers/helper','safariOptions_','safari.options','LhfMu','chromeOptions','proxySettings','updateHubUrl','isBrowserstackInfra','ORWMF','newHubUrl','proxyUrl','isUndefined','ieOptions_','debug','Setting\x20Browserstack\x20capabilities','storeOptimalHubUrl','edgeOptions_','rSHEs','lJMQv','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','set','STzpx','HttpClient','wvuag','then','VfDHN','4kajjcD','EqQML','ZrIMn','goog:chromeOptions','../../../helpers/accessibility-automation/helper','349540WGYmrK','fskWQ','capabilities_','2796400bZzCeS'];a27_0x3238=function(){return _0x1c121b;};return a27_0x3238();}module['exports'][a27_0x30c9cb(0xcf)]=modify;
|
|
1
|
+
function a27_0x2da0(){const _0x1c998c=['../../../helpers/accessibility-automation/helper','2508pGynAg','Builder','KywfU','quitCount_','FyUDq','11WhORuB','CrHyT','agent_','error','kojHC','6ENCONM','whRCH','setServer','setLogLevel','newHubUrl','../../../helpers/globals','get','caps_','getAccessibilityResultsSummary','vOzZU','iZYJk','pOIZl','object','winstonLogger','Setting\x20Browserstack\x20capabilities','ieOptions_','proxy_','isPacProxy','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','2622699oUaHrv','global','__setBrowserOptions','../../../helpers/helper','safari.options','session_','storeOptimalHubUrl','DWRRB','getAccessibilityResults','build','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','info','SJqmc','se:ieOptions','fuPgq','exports','isAccessibilityPlatform','pUVPN','set','kkTfL','YLAdB','originalBuilder','jveaA','../../../helpers/patchHelpers','2274456MGAEqO','forEach','prpUe','url_','4219875LrnImv','chromeOptions_','split','19620912FgpiqN','updateHubUrl','ySshl','zRewV','ohiLI','overrideGet','push','firefoxOptions_','proxyUrl','options_','132173xUMPgn','getRequestOptions','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','XsmrG','HttpClient','gyiWf','jOYdZ','1576PuYdIN','setCapabilities','safariOptions_','BucNQ','debug','../../../hubAllocationMethods','browserStackLogLevel','__driversArray','__driver','edgeOptions_','../accessibility-automation/helper','__drivers','FuyJE','20qWNxYG','capability','CAPABILITY_KEY','sfkaF','send','goog:chromeOptions','proxySettings','path','getHubUrl','capabilities_','ieOptions','/session','firefoxOptions','1904JBXVdQ','iIYEC','then','mergeDeep','isUndefined','Hub\x20url\x20set\x20to\x20','/wd/hub','isBrowserstackInfra','Vsmef','Proxy\x20set\x20to\x20','ms:edgeOptions','New\x20hub\x20url\x20set\x20to\x20','pOWQt','1131nmbxtA','overrideExecute'];a27_0x2da0=function(){return _0x1c998c;};return a27_0x2da0();}function a27_0x37af(_0x1099f0,_0x20c855){const _0x2da0b9=a27_0x2da0();return a27_0x37af=function(_0x37afdb,_0x17eeca){_0x37afdb=_0x37afdb-0x150;let _0x3e1f8e=_0x2da0b9[_0x37afdb];return _0x3e1f8e;},a27_0x37af(_0x1099f0,_0x20c855);}const a27_0x41d5f7=a27_0x37af;(function(_0x32bb0e,_0x4b5bea){const _0x4776f3=a27_0x37af,_0xfda69d=_0x32bb0e();while(!![]){try{const _0x56ca34=-parseInt(_0x4776f3(0x155))/0x1*(-parseInt(_0x4776f3(0x190))/0x2)+parseInt(_0x4776f3(0x183))/0x3*(-parseInt(_0x4776f3(0x15c))/0x4)+-parseInt(_0x4776f3(0x1bf))/0x5+parseInt(_0x4776f3(0x186))/0x6*(-parseInt(_0x4776f3(0x176))/0x7)+parseInt(_0x4776f3(0x1bb))/0x8+parseInt(_0x4776f3(0x1a3))/0x9*(-parseInt(_0x4776f3(0x169))/0xa)+parseInt(_0x4776f3(0x18b))/0xb*(parseInt(_0x4776f3(0x1c2))/0xc);if(_0x56ca34===_0x4b5bea)break;else _0xfda69d['push'](_0xfda69d['shift']());}catch(_0x5e8054){_0xfda69d['push'](_0xfda69d['shift']());}}}(a27_0x2da0,0x990b7));const logger=require('../../../helpers/logger')[a27_0x41d5f7(0x19d)],helper=require(a27_0x41d5f7(0x1a6)),constants=require('../../../bin/utils/constants'),hubAllocator=require(a27_0x41d5f7(0x161)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a27_0x41d5f7(0x1ba)),{setAccessibilityCapabilities,setExtension}=require(a27_0x41d5f7(0x166)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a27_0x41d5f7(0x185)),globals=require(a27_0x41d5f7(0x195)),modify=(_0xaa2e50,_0x20debc=null,_0x156896=![])=>{const _0xa91721=a27_0x41d5f7,_0x24dd2a={'FyUDq':function(_0x250d08,_0x264554){return _0x250d08!==_0x264554;},'pUVPN':_0xa91721(0x174),'ySshl':function(_0x1b45b0,_0x296f6f){return _0x1b45b0+_0x296f6f;},'jveaA':function(_0x33a91c,_0x4abc86){return _0x33a91c+_0x4abc86;},'CqFXI':'https://','aFjoW':_0xa91721(0x17c),'iIYEC':_0xa91721(0x16e),'XsmrG':'chromeOptions','FuyJE':_0xa91721(0x180),'jOYdZ':'edgeOptions','kojHC':'moz:firefoxOptions','pOWQt':_0xa91721(0x175),'YLAdB':_0xa91721(0x1a7),'gyiWf':_0xa91721(0x1b0),'SJqmc':_0xa91721(0x173),'zRewV':function(_0x49f827,_0x205a22){return _0x49f827===_0x205a22;},'fuPgq':_0xa91721(0x19c),'iZYJk':_0xa91721(0x19e),'pCRGN':'optimalHubUrl','XumrC':'OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','DWRRB':function(_0x1b201e,_0x48a56d,_0x15cb96){return _0x1b201e(_0x48a56d,_0x15cb96);},'XAtwW':function(_0x4b59b4,_0x1cf628,_0x1321f0){return _0x4b59b4(_0x1cf628,_0x1321f0);},'pOIZl':function(_0x9dc68a,_0x3c2287){return _0x9dc68a(_0x3c2287);},'sfkaF':function(_0x1b1923,_0x44203f,_0x12f6b){return _0x1b1923(_0x44203f,_0x12f6b);},'prpUe':'3|1|4|2|5|0','PvnSV':_0xa91721(0x1a2),'xpKHD':function(_0x611ae9){return _0x611ae9();},'CrHyT':_0xa91721(0x1b3),'whRCH':function(_0x53fb40,_0x261c8e,_0x5c28ae){return _0x53fb40(_0x261c8e,_0x5c28ae);},'BucNQ':function(_0x12b565,_0x47671f){return _0x12b565(_0x47671f);},'KywfU':function(_0x4b4836,_0x581e38){return _0x4b4836!==_0x581e38;},'Vsmef':'Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','DDbec':'Modifying\x20webdriver\x20builder'},_0x53ac61=helper['requireHttpClient']();let _0x4562f8;try{_0x4562f8=helper['requireSeleniumWebdriver'](),_0x4562f8[_0xa91721(0x1b8)]&&(_0x4562f8[_0xa91721(0x187)]=_0x4562f8[_0xa91721(0x1b8)]);}catch(_0x3090bc){return;}if(helper[_0xa91721(0x17d)]()){const _0x47999f={};_0x47999f['logLevel']=_0xaa2e50[_0xa91721(0x162)],helper[_0xa91721(0x193)](_0x47999f,new Map(),new Map()),logger[_0xa91721(0x1ae)](_0x24dd2a[_0xa91721(0x17e)]),logger[_0xa91721(0x160)](_0x24dd2a['DDbec']);}class _0x27fc58 extends _0x53ac61[_0xa91721(0x159)]{[_0xa91721(0x16d)](_0x2f0407){const _0x18c43c=_0xa91721;if(_0x24dd2a[_0x18c43c(0x18a)](_0x2f0407[_0x18c43c(0x170)],_0x24dd2a[_0x18c43c(0x1b4)])&&_0x24dd2a['FyUDq'](global[_0x18c43c(0x194)],''))try{global['newHubUrl']=_0x24dd2a[_0x18c43c(0x1c4)](_0x24dd2a[_0x18c43c(0x1b9)](_0x24dd2a['CqFXI'],global['newHubUrl']),_0x24dd2a['aFjoW']),this[_0x18c43c(0x154)]=hubAllocator[_0x18c43c(0x156)](global[_0x18c43c(0x194)]),logger[_0x18c43c(0x160)](_0x18c43c(0x181)+global[_0x18c43c(0x194)]),global[_0x18c43c(0x194)]='';}catch(_0x286b6e){logger[_0x18c43c(0x18e)](_0x286b6e);}return super[_0x18c43c(0x16d)](_0x2f0407);}}class _0x2e7be4 extends _0x4562f8[_0xa91721(0x187)]{[_0xa91721(0x192)](){const _0x369e65=_0xa91721;return this[_0x369e65(0x1be)]=helper[_0x369e65(0x171)](_0xaa2e50),logger[_0x369e65(0x160)](_0x369e65(0x17b)+this[_0x369e65(0x1be)]),this;}[_0xa91721(0x1a5)](_0x4b8505){const _0x25f78c=_0xa91721;let _0x48b313={};for(const _0x1e1ff4 in _0x4b8505){switch(_0x1e1ff4){case _0x24dd2a[_0x25f78c(0x177)]:case _0x24dd2a[_0x25f78c(0x158)]:this[_0x25f78c(0x1c0)]&&(_0x48b313=this[_0x25f78c(0x1c0)][_0x25f78c(0x196)](this[_0x25f78c(0x1c0)]['CAPABILITY_KEY'])||{},this['chromeOptions_'][_0x25f78c(0x1b5)](this['chromeOptions_'][_0x25f78c(0x16b)],helper[_0x25f78c(0x179)](_0x48b313,_0x4b8505[_0x1e1ff4])));break;case _0x24dd2a[_0x25f78c(0x168)]:case _0x24dd2a[_0x25f78c(0x15b)]:this[_0x25f78c(0x165)]&&(_0x48b313=this['edgeOptions_'][_0x25f78c(0x196)](this['edgeOptions_'][_0x25f78c(0x16b)])||{},this[_0x25f78c(0x165)]['set'](this[_0x25f78c(0x165)]['CAPABILITY_KEY'],helper[_0x25f78c(0x179)](_0x48b313,_0x4b8505[_0x1e1ff4])));break;case _0x24dd2a[_0x25f78c(0x18f)]:case _0x24dd2a[_0x25f78c(0x182)]:this[_0x25f78c(0x152)]&&(_0x48b313=this[_0x25f78c(0x152)][_0x25f78c(0x196)](this['firefoxOptions_'][_0x25f78c(0x16b)])||{},this['firefoxOptions_'][_0x25f78c(0x1b5)](this['firefoxOptions_'][_0x25f78c(0x16b)],helper['mergeDeep'](_0x48b313,_0x4b8505[_0x1e1ff4])));break;case _0x24dd2a[_0x25f78c(0x1b7)]:this[_0x25f78c(0x15e)]&&(_0x48b313=this['safariOptions_'][_0x25f78c(0x196)](this['safariOptions_'][_0x25f78c(0x16b)])||{},this[_0x25f78c(0x15e)][_0x25f78c(0x1b5)](this[_0x25f78c(0x15e)][_0x25f78c(0x16b)],helper[_0x25f78c(0x179)](_0x48b313,_0x4b8505[_0x1e1ff4])));break;case _0x24dd2a[_0x25f78c(0x15a)]:case _0x24dd2a[_0x25f78c(0x1af)]:this[_0x25f78c(0x19f)]&&(_0x48b313=this['ieOptions_']['get'](this[_0x25f78c(0x19f)][_0x25f78c(0x16b)])||{},this[_0x25f78c(0x19f)]['set'](this[_0x25f78c(0x19f)][_0x25f78c(0x16b)],helper[_0x25f78c(0x179)](_0x48b313,_0x4b8505[_0x1e1ff4])));break;}}}[_0xa91721(0x15d)](){const _0x151197=_0xa91721,_0x170d5a={'vOzZU':function(_0x2745e4,_0xc26289){const _0x2c2230=a27_0x37af;return _0x24dd2a[_0x2c2230(0x1c5)](_0x2745e4,_0xc26289);},'kkTfL':_0x24dd2a[_0x151197(0x1b1)]};return logger[_0x151197(0x160)](_0x24dd2a[_0x151197(0x19a)]),this['__setBrowserOptions'](_0xaa2e50['capability']),Object['keys'](_0xaa2e50[_0x151197(0x16a)])[_0x151197(0x1bc)](_0x3608d1=>{const _0x12797a=_0x151197,_0x419042=this[_0x12797a(0x172)][_0x12797a(0x196)](_0x3608d1);_0x170d5a[_0x12797a(0x199)](typeof _0x419042,_0x170d5a[_0x12797a(0x1b6)])?this[_0x12797a(0x172)]['set'](_0x3608d1,helper[_0x12797a(0x179)](_0x419042,_0xaa2e50['capability'][_0x3608d1])):this[_0x12797a(0x172)][_0x12797a(0x1b5)](_0x3608d1,_0xaa2e50['capability'][_0x3608d1]);}),this;}[_0xa91721(0x1ac)](){const _0x5155fd=_0xa91721;if(helper[_0x5155fd(0x17d)]()){const _0x5c1ae6=_0x24dd2a[_0x5155fd(0x1bd)][_0x5155fd(0x1c1)]('|');let _0x208ab4=0x0;while(!![]){switch(_0x5c1ae6[_0x208ab4++]){case'0':logger['debug'](_0x24dd2a['PvnSV']);continue;case'1':this[_0x5155fd(0x192)]();continue;case'2':if(helper[_0x5155fd(0x1a1)](_0xaa2e50['proxySettings']['proxyUrl']))this[_0x5155fd(0x18d)]=helper['getHttpAgent'](_0xaa2e50[_0x5155fd(0x16f)][_0x5155fd(0x153)]);else _0xaa2e50[_0x5155fd(0x16f)][_0x5155fd(0x153)]&&(this[_0x5155fd(0x1a0)]=_0xaa2e50[_0x5155fd(0x16f)][_0x5155fd(0x153)],logger['debug'](_0x5155fd(0x17f)+this[_0x5155fd(0x1a0)]));continue;case'3':_0x24dd2a['xpKHD'](isAccessibilityAutomationSession)&&_0x24dd2a['pOIZl'](setAccessibilityCapabilities,_0xaa2e50);continue;case'4':this[_0x5155fd(0x15d)]();continue;case'5':globals['getGlobal'](_0x24dd2a[_0x5155fd(0x18c)])&&(!_0x24dd2a[_0x5155fd(0x191)](setExtension,this,_0xaa2e50)&&globals['setGlobal'](_0x24dd2a[_0x5155fd(0x18c)],![]));continue;}break;}}const _0x33dd48=super[_0x5155fd(0x1ac)]();return _0x33dd48[_0x5155fd(0x1a8)][_0x5155fd(0x178)](_0xe303e=>{const _0x4073f5=_0x5155fd;try{const _0x3dc699=_0xe303e[_0x4073f5(0x197)][_0x4073f5(0x196)](_0x24dd2a['pCRGN']);_0x3dc699?(logger[_0x4073f5(0x160)](_0x4073f5(0x1ad)+_0x3dc699),hubAllocator[_0x4073f5(0x1c3)](_0x3dc699),helper[_0x4073f5(0x1a9)](_0x3dc699)):logger[_0x4073f5(0x160)](_0x24dd2a['XumrC']);}catch(_0xfabb00){logger[_0x4073f5(0x160)](_0x4073f5(0x157)+_0xfabb00);}}),_0x33dd48[_0x5155fd(0x189)]=0x0,_0x33dd48[_0x5155fd(0x178)]&&_0x33dd48['then'](_0x3c8de1=>{const _0x242e07=_0x5155fd,_0xab611c={'ohiLI':function(_0xe48185,_0x505f24,_0x125c3d){const _0x4c3369=a27_0x37af;return _0x24dd2a[_0x4c3369(0x1aa)](_0xe48185,_0x505f24,_0x125c3d);}};_0x24dd2a['XAtwW'](overrideQuit,_0x3c8de1,_0x33dd48),_0x24dd2a[_0x242e07(0x19b)](overrideTakeScreenshot,_0x3c8de1),helper[_0x242e07(0x150)](_0x3c8de1,_0xaa2e50),helper[_0x242e07(0x184)](_0x3c8de1,_0xaa2e50),_0x3c8de1[_0x242e07(0x198)]=async()=>{const _0x3a24e7=_0x242e07;return await _0xab611c[_0x3a24e7(0x1c6)](getAccessibilityResultsSummary,_0x3c8de1,global);},_0x3c8de1[_0x242e07(0x1ab)]=async()=>{const _0x3d6ca8=_0x242e07;return await _0xab611c[_0x3d6ca8(0x1c6)](getAccessibilityResults,_0x3c8de1,global);};}),_0x33dd48[_0x5155fd(0x198)]=async()=>{return await _0x24dd2a['XAtwW'](getAccessibilityResultsSummary,_0x33dd48,global);},_0x33dd48[_0x5155fd(0x1ab)]=async()=>{const _0x1e0a4c=_0x5155fd;return await _0x24dd2a[_0x1e0a4c(0x16c)](getAccessibilityResults,_0x33dd48,global);},_0x24dd2a[_0x5155fd(0x19b)](overrideTakeScreenshot,_0x33dd48),_0x24dd2a[_0x5155fd(0x15f)](overrideQuit,_0x33dd48),helper['overrideGet'](_0x33dd48,_0xaa2e50),helper['overrideExecute'](_0x33dd48,_0xaa2e50),helper[_0x5155fd(0x17a)](global[_0x5155fd(0x163)])&&(global[_0x5155fd(0x163)]=[]),helper[_0x5155fd(0x17a)](global[_0x5155fd(0x167)])&&(global[_0x5155fd(0x167)]=[]),global[_0x5155fd(0x163)][_0x5155fd(0x151)](_0x33dd48),global[_0x5155fd(0x164)]=_0x33dd48,_0x24dd2a[_0x5155fd(0x18a)](global['__drivers'],undefined)&&global[_0x5155fd(0x167)]['push'](_0x33dd48),_0x20debc&&helper[_0x5155fd(0x17a)](_0x20debc[_0x5155fd(0x1a4)][_0x5155fd(0x163)])&&(_0x20debc['global'][_0x5155fd(0x163)]=[]),_0x20debc&&_0x24dd2a[_0x5155fd(0x188)](_0x20debc[_0x5155fd(0x1a4)][_0x5155fd(0x167)],undefined)&&(_0x20debc['global'][_0x5155fd(0x167)][_0x5155fd(0x151)](_0x33dd48),_0x20debc['global']['__driversArray'][_0x5155fd(0x151)](_0x33dd48)),_0x33dd48;}}return _0x4562f8['originalBuilder']=_0x4562f8[_0xa91721(0x187)],_0x4562f8[_0xa91721(0x187)]=_0x2e7be4,_0x53ac61[_0xa91721(0x159)]=_0x27fc58,_0x4562f8;};module[a27_0x41d5f7(0x1b2)]['browserstackAgentObservability']=modify;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a28_0x6f63c0=a28_0x4e5c;function a28_0x3fbf(){const _0x24596c=['6DiTiDl','../../../helpers/test-observability/utils','mochaHooks','1144164koUzfr','restore','387360DjHeSI','1834765pPStwn','../../../helpers/request-spy','1401894Zwicka','70542EjAuWL','12038850fKJffd','191956UDJLjt','DbljU','timeout','18FBDJxF'];a28_0x3fbf=function(){return _0x24596c;};return a28_0x3fbf();}(function(_0x5d1a23,_0x29f50e){const _0x290e32=a28_0x4e5c,_0xc94219=_0x5d1a23();while(!![]){try{const _0x55051d=-parseInt(_0x290e32(0x85))/0x1+-parseInt(_0x290e32(0x93))/0x2+-parseInt(_0x290e32(0x8a))/0x3*(parseInt(_0x290e32(0x87))/0x4)+-parseInt(_0x290e32(0x91))/0x5*(-parseInt(_0x290e32(0x8b))/0x6)+-parseInt(_0x290e32(0x8e))/0x7+-parseInt(_0x290e32(0x90))/0x8+parseInt(_0x290e32(0x86))/0x9;if(_0x55051d===_0x29f50e)break;else _0xc94219['push'](_0xc94219['shift']());}catch(_0x4b27a1){_0xc94219['push'](_0xc94219['shift']());}}}(a28_0x3fbf,0x69c9c));const requestSpy=require(a28_0x6f63c0(0x92)),constants=require('../../../bin/utils/constants'),{addRequestSpy}=require(a28_0x6f63c0(0x8c));function a28_0x4e5c(_0xe6e765,_0x5624b7){const _0x3fbf36=a28_0x3fbf();return a28_0x4e5c=function(_0x4e5c73,_0x1d13ab){_0x4e5c73=_0x4e5c73-0x85;let _0x263125=_0x3fbf36[_0x4e5c73];return _0x263125;},a28_0x4e5c(_0xe6e765,_0x5624b7);}exports[a28_0x6f63c0(0x8d)]={'beforeAll'(){const _0x1ff37a=a28_0x6f63c0,_0x410016={'DbljU':function(_0x533ce5){return _0x533ce5();}},_0x98faea='browserstack internal helper hook';_0x410016[_0x1ff37a(0x88)](addRequestSpy);},'afterAll'(){const _0x4e5bd5=a28_0x6f63c0,_0x249536='browserstack internal helper hook';this[_0x4e5bd5(0x89)](0xea60),requestSpy[_0x4e5bd5(0x8f)]();}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a29_0x24b8(_0x1f00b5,_0x3ade4c){const _0x37fca0=a29_0x37fc();return a29_0x24b8=function(_0x24b87c,_0x29a1eb){_0x24b87c=_0x24b87c-0x97;let _0x1a6ce9=_0x37fca0[_0x24b87c];return _0x1a6ce9;},a29_0x24b8(_0x1f00b5,_0x3ade4c);}const a29_0xf3d315=a29_0x24b8;function a29_0x37fc(){const _0x299dfd=['getPlatform','TwfKS','fromEntries','failed','../../utils/logPatcher','getHookDetails','suites','qzLoD','uuid','18102690sSYdYK','AbydC','emit','hKymA','getSession','passed','tests','FOaxP','parent','4822930uMfmaL','DtBdb','generic','markedStatus','getBrowserName','browserstack','getHooksForTest','NFdbm','string','../../../helpers/testhub/utils','_beforeAll','appium:app','pid','forEach','kFQDZ','ObBMd','concat','4574142YjMQlY','jaZCi','UMmjd','filter','MMHPJ','TEST_PLATFORM','bs:addPlatformDetails:','oWSdT','LXiNx','js-','ufEJm','rrBjx','../../../helpers/test-observability/utils','17426VBvTfp','639935Faycid','__cloud_provider___','substring','../../../helpers/helper','mapTestHooks','177TCeiJx','getCapabilities','AWyaJ','eaAxX','toJSON','split','ZujlZ','lvuon','ZkfSK','sndjL','../../utils/logReportingAPI','zBmFc','5VPNkHR','GFSrz','app','4573662DyEpMi','hookAnalyticsId','8QJtqOW','_beforeEach','_afterAll','_afterEach','state','indexOf','BiHPh','hvWGc','pending','qOPfA','../../../helpers/test-observability/constants','2728252xcBCVb','EelLg','SXSen','hkOoc','hook:','hook','AxvQf'];a29_0x37fc=function(){return _0x299dfd;};return a29_0x37fc();}(function(_0x265b8d,_0x54a9e2){const _0x18e437=a29_0x24b8,_0xf0220b=_0x265b8d();while(!![]){try{const _0x12d12b=-parseInt(_0x18e437(0xe6))/0x1+-parseInt(_0x18e437(0xe5))/0x2*(parseInt(_0x18e437(0xeb))/0x3)+-parseInt(_0x18e437(0xae))/0x4+parseInt(_0x18e437(0x9e))/0x5*(-parseInt(_0x18e437(0xa1))/0x6)+parseInt(_0x18e437(0xc7))/0x7+-parseInt(_0x18e437(0xa3))/0x8*(-parseInt(_0x18e437(0xd8))/0x9)+parseInt(_0x18e437(0xbe))/0xa;if(_0x12d12b===_0x54a9e2)break;else _0xf0220b['push'](_0xf0220b['shift']());}catch(_0x4de6aa){_0xf0220b['push'](_0xf0220b['shift']());}}}(a29_0x37fc,0x63e43));const {v4:uuidv4}=require(a29_0xf3d315(0xbd)),{name,version}=require('../../../../package.json'),logPatcher=require(a29_0xf3d315(0xb9)),BSTestOpsPatcher=new logPatcher({}),logReportingAPI=require(a29_0xf3d315(0x9c)),BSTestOpsLogger=new logReportingAPI({}),{debug,isTestObservabilitySession,isInternalHook}=require(a29_0xf3d315(0xe4)),{consoleHolder}=require(a29_0xf3d315(0xad)),{getPlatformVersion}=require(a29_0xf3d315(0xe9)),{shouldProcessEventForTesthub}=require(a29_0xf3d315(0xd0));console={},Object['keys'](consoleHolder)[a29_0xf3d315(0xd4)](_0x1b0afd=>{console[_0x1b0afd]=(..._0x105068)=>{BSTestOpsPatcher[_0x1b0afd](..._0x105068);};}),exports['getTestEnv']=()=>{const _0x146a99=a29_0xf3d315,_0x4751f8={'kFQDZ':_0x146a99(0xc9),'hKymA':function(_0x23c6cb){return _0x23c6cb();}};return{'ci':_0x4751f8[_0x146a99(0xd5)],'key':_0x4751f8[_0x146a99(0xc1)](uuidv4),'version':version,'collector':_0x146a99(0xe1)+name};},exports[a29_0xf3d315(0xba)]=_0xce6a98=>{const _0xb6e854=a29_0xf3d315,_0x305bb0={};_0x305bb0[_0xb6e854(0xb1)]=function(_0x25433f,_0x146876){return _0x25433f!==_0x146876;},_0x305bb0[_0xb6e854(0xb0)]=_0xb6e854(0xcf),_0x305bb0[_0xb6e854(0x9f)]=_0xb6e854(0xb2),_0x305bb0['sndjL']='hook';const _0x381044=_0x305bb0;if(!_0xce6a98||_0x381044[_0xb6e854(0xb1)](typeof _0xce6a98,_0x381044['SXSen']))return[null,null];if(_0x381044[_0xb6e854(0xb1)](_0xce6a98[_0xb6e854(0xa8)](_0x381044[_0xb6e854(0x9f)]),-0x1)){const _0x43b3ae=_0xce6a98[_0xb6e854(0x97)](_0x381044['GFSrz']);return[_0x43b3ae[0x0]['slice'](0x0,-0x1)[_0xb6e854(0x97)]('\x22')[0x1],_0x43b3ae[0x1][_0xb6e854(0xe8)](0x1)];}else{if(_0x381044[_0xb6e854(0xb1)](_0xce6a98['indexOf'](_0x381044[_0xb6e854(0x9b)]),-0x1)){const _0x22e186=_0xce6a98[_0xb6e854(0x97)](_0x381044[_0xb6e854(0x9b)]);return[_0x22e186[0x0]['slice'](0x0,-0x1)[_0xb6e854(0x97)]('\x22')[0x1],_0xce6a98];}}return[null,null];},exports[a29_0xf3d315(0xcd)]=_0x94f5d7=>{const _0x218f31=a29_0xf3d315,_0x37b214={'ZkfSK':function(_0x5bd8af,_0x444638){return _0x5bd8af(_0x444638);},'ufEJm':_0x218f31(0xd1),'ObBMd':_0x218f31(0xa5),'DtBdb':_0x218f31(0xa4),'EelLg':_0x218f31(0xa6)};if(!_0x94f5d7||!_0x94f5d7[_0x218f31(0xc6)])return[];const _0x1706e2=[];return[_0x37b214[_0x218f31(0xe2)],_0x37b214[_0x218f31(0xd6)],_0x37b214[_0x218f31(0xc8)],_0x37b214[_0x218f31(0xaf)]][_0x218f31(0xd4)](_0x43448b=>{const _0x56d555=_0x218f31,_0x357464=_0x94f5d7[_0x56d555(0xc6)][_0x43448b]||[];_0x357464[_0x56d555(0xd4)](_0x5ed5c5=>{const _0x57c0bf=_0x56d555;_0x5ed5c5[_0x57c0bf(0xa2)]&&!_0x37b214[_0x57c0bf(0x9a)](isInternalHook,_0x5ed5c5['fn'])&&_0x1706e2['push'](_0x5ed5c5[_0x57c0bf(0xa2)]);});}),[..._0x1706e2,...exports[_0x218f31(0xcd)](_0x94f5d7[_0x218f31(0xc6)])];},exports['mapTestHooks']=_0x34e32a=>{const _0x531e9f=a29_0xf3d315,_0x3d2ac7={'CdpOw':function(_0x28b2aa){return _0x28b2aa();},'oWSdT':function(_0x580cf7,_0x5ef63b){return _0x580cf7===_0x5ef63b;},'hvWGc':_0x531e9f(0xa6),'AxvQf':function(_0x1c6d5f){return _0x1c6d5f();},'mYOho':'_beforeAll','FOaxP':_0x531e9f(0xa5),'jaZCi':'_beforeEach'};if(!_0x34e32a||!_0x34e32a['parent'])return;[_0x3d2ac7['mYOho'],_0x3d2ac7[_0x531e9f(0xc5)],_0x3d2ac7[_0x531e9f(0xd9)],_0x3d2ac7[_0x531e9f(0xaa)]]['forEach'](_0x5e6f00=>{const _0x1cee3e=_0x531e9f,_0x51ba71=_0x34e32a[_0x1cee3e(0xc6)][_0x5e6f00]||[];_0x51ba71['forEach'](_0x23ddcd=>{const _0x4114ef=_0x1cee3e;if(!_0x23ddcd['hookAnalyticsId'])_0x23ddcd['hookAnalyticsId']=_0x3d2ac7['CdpOw'](uuidv4);else _0x23ddcd[_0x4114ef(0xca)]&&_0x3d2ac7[_0x4114ef(0xdf)](_0x5e6f00,_0x3d2ac7['hvWGc'])&&(_0x23ddcd[_0x4114ef(0xa2)]=_0x3d2ac7[_0x4114ef(0xb4)](uuidv4),delete _0x23ddcd[_0x4114ef(0xca)]);});}),exports[_0x531e9f(0xea)](_0x34e32a['parent']);},exports['sendPlatformDetails']=async(_0x41e45f,_0x413aca)=>{const _0x2d0067=a29_0xf3d315,_0x1e9ad5={'aMxaJ':function(_0x54090d){return _0x54090d();},'wluNZ':function(_0x77bd62,_0x1132ca){return _0x77bd62===_0x1132ca;},'MMHPJ':_0x2d0067(0xcc),'UMmjd':_0x2d0067(0xd2),'qOPfA':_0x2d0067(0xa0),'TwfKS':'app-automate','sKFMG':'automate','BiHPh':function(_0x3617bb,_0x392713){return _0x3617bb(_0x392713);},'ZujlZ':function(_0x37593d,_0x254a0a){return _0x37593d===_0x254a0a;},'AWyaJ':'unknown_grid','LXiNx':_0x2d0067(0xdd),'qzLoD':function(_0x30bb92,_0x8e828){return _0x30bb92(_0x8e828);}};try{if(!_0x1e9ad5['aMxaJ'](shouldProcessEventForTesthub))return;const _0x4cc701=await _0x41e45f[_0x2d0067(0xec)](),_0x546b52=await _0x41e45f[_0x2d0067(0xc2)](),_0x2ead08={},_0x400dd5=Object[_0x2d0067(0xb7)](_0x546b52['getCapabilities']()['map_']),_0x3b4b2a={'product':_0x1e9ad5['wluNZ'](global['__cloud_provider___'],_0x1e9ad5[_0x2d0067(0xdc)])?_0x400dd5[_0x1e9ad5[_0x2d0067(0xda)]]||_0x400dd5[_0x1e9ad5[_0x2d0067(0xac)]]?_0x1e9ad5[_0x2d0067(0xb6)]:_0x1e9ad5['sKFMG']:null,'capabilities':_0x400dd5,'platform':_0x4cc701[_0x2d0067(0xb5)](),'platform_version':_0x1e9ad5[_0x2d0067(0xa9)](getPlatformVersion,_0x1e9ad5[_0x2d0067(0x98)](global[_0x2d0067(0xe7)],_0x1e9ad5[_0x2d0067(0xdc)])),'browser':_0x4cc701[_0x2d0067(0xcb)](),'browser_version':_0x4cc701['getBrowserVersion'](),'session_id':_0x546b52[_0x2d0067(0xef)]()};global[_0x2d0067(0xe7)]?_0x2ead08[global[_0x2d0067(0xe7)]]=_0x3b4b2a:_0x2ead08[_0x1e9ad5[_0x2d0067(0xed)]]=_0x3b4b2a,process[_0x2d0067(0xc0)](_0x2d0067(0xde)+process[_0x2d0067(0xd3)],{'timestamp':new Date()['toISOString'](),'level':null,'message':null,'kind':_0x1e9ad5[_0x2d0067(0xe0)],'http_response':_0x2ead08,'uuid':_0x413aca});}catch(_0x3d508d){_0x1e9ad5[_0x2d0067(0xbc)](debug,'Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20'+_0x3d508d);}},exports['getHookSkippedTests']=_0x127b4d=>{const _0x3887bc=a29_0xf3d315,_0x1d58b4={};_0x1d58b4[_0x3887bc(0xbf)]=function(_0xa305ed,_0x71b224){return _0xa305ed!==_0x71b224;},_0x1d58b4[_0x3887bc(0xe3)]=_0x3887bc(0xb3),_0x1d58b4[_0x3887bc(0xee)]=function(_0x439160,_0x3fa332){return _0x439160!==_0x3fa332;},_0x1d58b4[_0x3887bc(0x99)]=_0x3887bc(0xc3),_0x1d58b4[_0x3887bc(0x9d)]=function(_0x51bd00,_0x27c536){return _0x51bd00!==_0x27c536;},_0x1d58b4[_0x3887bc(0xce)]=_0x3887bc(0xb8);const _0x272789=_0x1d58b4,_0x5e2fb5=_0x127b4d[_0x3887bc(0xbb)]['reduce']((_0x4035a6,_0x41c6b7)=>{const _0x318d8e=exports['getHookSkippedTests'](_0x41c6b7);return _0x318d8e&&(_0x4035a6=_0x4035a6['concat'](_0x318d8e)),_0x4035a6;},[]),_0x11d3cc=_0x127b4d[_0x3887bc(0xc4)][_0x3887bc(0xdb)](_0xa63bb5=>{const _0x39fae9=_0x3887bc,_0x4aaaad=_0x272789[_0x39fae9(0xbf)](_0xa63bb5['type'],_0x272789[_0x39fae9(0xe3)])&&!_0xa63bb5['markedStatus']&&_0x272789['eaAxX'](_0xa63bb5[_0x39fae9(0xa7)],_0x272789[_0x39fae9(0x99)])&&_0x272789[_0x39fae9(0x9d)](_0xa63bb5[_0x39fae9(0xa7)],_0x272789[_0x39fae9(0xce)])&&!_0xa63bb5[_0x39fae9(0xab)];return _0x4aaaad;});return _0x11d3cc[_0x3887bc(0xd7)](_0x5e2fb5);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a30_0xbfd3d9=a30_0x29a9;function a30_0x5204(){const _0x475c72=['executeAsyncScript','format','session_','IFYOx','xPLje','thJwtToken','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','__drivers','state','kijAC','__error_messages__','xeIdg','shouldScanTestForAccessibility','QdOBb','HNpSq','fODor','hwRGS','stopMonitoring','Failed\x20to\x20store\x20session\x20name:\x20','../../helpers/globals','testAnalyticsId','titlePath','err','message','Failed:\x20','app','__sessionFailed','failed','BROWSERSTACK_TESTHUB_JWT','4655536kvlZXw','https:','performScan','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','error','../../helpers/accessibility-automation/helper','sFgFU','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','isArray','485267omevdC','length','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','GwDju','hCkpT','BROWSERSTACK_TESTHUB_UUID','thTestRunUuid','EATWz','7EzjdOR','\x22}}','2725188zYZPiM','info','sessionNameSet__','../../helpers/accessibility-automation/scripts',',\x22level\x22:\x20\x22','KtJkO','zIPeG','stringify','../../helpers/test-observability/utils','getCurrentUrl','1663095OzPsFp','2302551LuFsCx','__skipSessionName','debug','10462mfNaDe','capabilities','timeout','driverCleanup','141wbtqCJ','777932kzwFYy','saveTestResults','EcvnU','initQuit','aeIES','\x20|\x20','quitCount_','SnITk','getGlobal','currentTest','then','jXgry','XfEmL','vaPvq','appium:app','jVSIO','mvJdc','ObservabilitySync:','MiCIv','join','RCcyu','bstackA11yShouldScan','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','uknHc','shift','dqMlE','CaelJ','ENV_VAR','isAccessibilityPlatform','zJvUN','../../helpers/percy/utils','wGIoR','../../helpers/testhub/utils','GaXjS','thBuildUuid','SHAZd','testcase','Passed','\x20-\x20','percyCaptureMode','KLmvA','edxyq','KuZkY','env','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','accessibilityScanStarted','Performing\x20scan\x20before\x20saving\x20results','browserstackSessionName','http:','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','../../helpers/helper','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','wQtII','vnUrg','.\x20Error\x20:','protocol','executeScript','../../helpers/performance-tester'];a30_0x5204=function(){return _0x475c72;};return a30_0x5204();}function a30_0x29a9(_0xc86235,_0x150926){const _0x5204c9=a30_0x5204();return a30_0x29a9=function(_0x29a954,_0x151209){_0x29a954=_0x29a954-0x9a;let _0x296c6e=_0x5204c9[_0x29a954];return _0x296c6e;},a30_0x29a9(_0xc86235,_0x150926);}(function(_0x15ba49,_0x49e769){const _0x1e7230=a30_0x29a9,_0x58f4ad=_0x15ba49();while(!![]){try{const _0x36c4f7=parseInt(_0x1e7230(0xd9))/0x1+parseInt(_0x1e7230(0xf1))/0x2*(parseInt(_0x1e7230(0xf5))/0x3)+-parseInt(_0x1e7230(0xf6))/0x4+-parseInt(_0x1e7230(0xed))/0x5+parseInt(_0x1e7230(0xe3))/0x6+-parseInt(_0x1e7230(0xe1))/0x7*(parseInt(_0x1e7230(0xd0))/0x8)+parseInt(_0x1e7230(0xee))/0x9;if(_0x36c4f7===_0x49e769)break;else _0x58f4ad['push'](_0x58f4ad['shift']());}catch(_0xdbeccc){_0x58f4ad['push'](_0x58f4ad['shift']());}}}(a30_0x5204,0x51155));const util=require('util'),{isAccessibilityAutomationSession,fetchPlatformDetails,shouldScanTestForAccessibility}=require(a30_0xbfd3d9(0xd5)),{percyAutoCapture}=require(a30_0xbfd3d9(0x114)),{sendPlatformDetails}=require('./test-observability/mochaUtils'),{isBrowserstackInfra,markSessionStatus}=require(a30_0xbfd3d9(0xab)),{isTestObservabilitySession}=require(a30_0xbfd3d9(0xeb)),PerformanceTester=require(a30_0xbfd3d9(0xb2)),scripts=require(a30_0xbfd3d9(0xe6)),globals=require(a30_0xbfd3d9(0xc6)),logger=require('../../helpers/logger')['winstonLogger'],{shouldProcessEventForTesthub}=require(a30_0xbfd3d9(0x116)),testHubConstants=require('../../helpers/testhub/constants');exports['mochaHooks']={'beforeAll'(){const _0x3ac053=a30_0xbfd3d9,_0xb7fa90={'xPLje':function(_0x2b09bd,_0x9665df,_0x28f6af,_0x2bd6b1){return _0x2b09bd(_0x9665df,_0x28f6af,_0x2bd6b1);},'GaXjS':_0x3ac053(0xce),'sFgFU':_0x3ac053(0xfb),'kijAC':function(_0x32a3bf,_0x58fa02,_0x12c479){return _0x32a3bf(_0x58fa02,_0x12c479);},'KLmvA':'passed','CaelJ':function(_0x40f5e6){return _0x40f5e6();},'TXWtP':function(_0x375c5d,_0x10e689,_0x414806){return _0x375c5d(_0x10e689,_0x414806);}};PerformanceTester['startMonitoring']();const _0x502529='browserstack internal helper hook';global[_0x3ac053(0xbd)]=[],global[_0x3ac053(0xcd)]=![],global[_0x3ac053(0xf4)]=async()=>{const _0x2c696=_0x3ac053;let _0x3a8ee1=![];try{await global['__drivers'][0x0][_0x2c696(0xb5)],_0x3a8ee1=!![],global[_0x2c696(0xcd)]?await _0xb7fa90[_0x2c696(0xb7)](markSessionStatus,global[_0x2c696(0xba)][0x0],_0xb7fa90[_0x2c696(0x9a)],global['__error_messages__'][_0x2c696(0x109)](_0xb7fa90[_0x2c696(0xd6)])):await _0xb7fa90[_0x2c696(0xbc)](markSessionStatus,global[_0x2c696(0xba)][0x0],_0xb7fa90[_0x2c696(0xa1)]);}catch(_0x5357da){}global['__error_messages__']=[],global['__sessionFailed']=![];if(_0x3a8ee1)try{try{_0xb7fa90[_0x2c696(0x110)](shouldProcessEventForTesthub)&&(global[_0x2c696(0xba)][0x0]&&await _0xb7fa90['TXWtP'](sendPlatformDetails,global['__drivers'][0x0],this[_0x2c696(0xff)]?this[_0x2c696(0xff)]['testAnalyticsId']:null));}catch{}await global[_0x2c696(0xba)][0x0][_0x2c696(0xf9)]();}catch(_0xe106ee){}};},'beforeEach'(_0x214c6d){const _0x3e2d41=a30_0xbfd3d9,_0x1fb891={'XfEmL':function(_0x292e80,_0x153216){return _0x292e80>_0x153216;},'IFYOx':function(_0x18ef96,_0x4505e5){return _0x18ef96>_0x4505e5;},'SnITk':_0x3e2d41(0x9f),'KtJkO':function(_0x5e7292,_0x541a4c,_0x4c0d25){return _0x5e7292(_0x541a4c,_0x4c0d25);},'uknHc':_0x3e2d41(0x10b),'GwDju':function(_0x52c5bd){return _0x52c5bd();},'QdOBb':function(_0xcd5a91,_0x2bf5ac){return _0xcd5a91>_0x2bf5ac;},'zJvUN':_0x3e2d41(0x112),'wGIoR':function(_0x1bcff0,_0x13aacf){return _0x1bcff0===_0x13aacf;},'pueWC':_0x3e2d41(0xa9),'QgZnn':_0x3e2d41(0xd1),'MiCIv':_0x3e2d41(0x10c),'vaPvq':'Automate\x20test\x20case\x20execution\x20has\x20started.'};new Promise(async _0xf18db=>{const _0x5646ac=_0x3e2d41,_0x2b4cb7='browserstack internal helper hook';let _0x5d2638=!![];try{_0x1fb891[_0x5646ac(0x102)](global[_0x5646ac(0xba)][_0x5646ac(0xda)],0x1)&&(await global[_0x5646ac(0xf4)](),global[_0x5646ac(0xba)][_0x5646ac(0x10e)]()),_0x1fb891[_0x5646ac(0xb6)](global[_0x5646ac(0xba)][0x0][_0x5646ac(0xfc)],0x0)&&(_0x5d2638=![],await global[_0x5646ac(0xf4)]());}catch{}try{Array[_0x5646ac(0xd8)](global[_0x5646ac(0xba)])&&global['__drivers'][0x0]&&(global[_0x5646ac(0xba)][0x0]['browserstackSessionName']=this[_0x5646ac(0xff)][_0x5646ac(0xc8)]()[_0x5646ac(0x109)](_0x1fb891[_0x5646ac(0xfd)])),global[_0x5646ac(0xa8)]=this[_0x5646ac(0xff)][_0x5646ac(0xc8)]()[_0x5646ac(0x109)](_0x1fb891[_0x5646ac(0xfd)]);}catch(_0x4b253d){logger[_0x5646ac(0xf0)](_0x5646ac(0xc5)+_0x4b253d);}this['currentTest'][_0x5646ac(0xbf)]=_0x1fb891[_0x5646ac(0xe8)](shouldScanTestForAccessibility,this[_0x5646ac(0xff)][_0x5646ac(0xc8)](),!![]),globals['setGlobal'](_0x1fb891[_0x5646ac(0x10d)],this[_0x5646ac(0xff)]['shouldScanTestForAccessibility']),this[_0x5646ac(0xff)]['accessibilityScanStarted']=!![];if(_0x1fb891['GwDju'](isAccessibilityAutomationSession)&&_0x5d2638&&Array[_0x5646ac(0xd8)](global[_0x5646ac(0xba)])&&_0x1fb891[_0x5646ac(0xc0)](global[_0x5646ac(0xba)]['length'],0x0)&&globals[_0x5646ac(0xfe)](_0x1fb891[_0x5646ac(0x113)]))try{const _0x1ea6bd=await global[_0x5646ac(0xba)][0x0][_0x5646ac(0xb5)];if(_0x1ea6bd){let _0x2137be=!![];const _0x186f53=await global[_0x5646ac(0xba)][0x0][_0x5646ac(0xec)]();let _0x432295;try{_0x432295=new URL(_0x186f53);}catch(_0x4e94a6){_0x2137be=![];}_0x2137be=_0x1fb891[_0x5646ac(0x115)](_0x432295[_0x5646ac(0xb0)],_0x1fb891['pueWC'])||_0x1fb891[_0x5646ac(0x115)](_0x432295[_0x5646ac(0xb0)],_0x1fb891['QgZnn']),_0x2137be&&(this['currentTest'][_0x5646ac(0xbf)]&&logger[_0x5646ac(0xe4)](_0x1fb891[_0x5646ac(0x108)])),this[_0x5646ac(0xff)][_0x5646ac(0xa6)]=this[_0x5646ac(0xff)][_0x5646ac(0xbf)],this[_0x5646ac(0xff)][_0x5646ac(0xbf)]&&logger[_0x5646ac(0xe4)](_0x1fb891[_0x5646ac(0x103)]);}}catch(_0x1175f2){logger[_0x5646ac(0xd4)](_0x5646ac(0xaa)+util[_0x5646ac(0xb4)](_0x1175f2));}_0x1fb891[_0x5646ac(0xdc)](_0xf18db);})[_0x3e2d41(0x100)](_0x214c6d);},'afterEach'(_0xca57ea){const _0x316293=a30_0xbfd3d9,_0x42592b={'EATWz':function(_0x315b52,_0x51b0d5){return _0x315b52>_0x51b0d5;},'EcvnU':function(_0x21f63f,_0xc30647){return _0x21f63f===_0xc30647;},'ZlqhF':_0x316293(0x9d),'KuZkY':function(_0x5c6b9d,_0x12b0c3){return _0x5c6b9d>_0x12b0c3;},'edxyq':_0x316293(0x104),'jVSIO':function(_0x340641,_0x56179a,_0x80bf85,_0x45e4e9){return _0x340641(_0x56179a,_0x80bf85,_0x45e4e9);},'hwRGS':_0x316293(0x9f),'zIPeG':function(_0x6fc33a,_0x3ab237){return _0x6fc33a!==_0x3ab237;},'MLwqt':'passed','aeIES':function(_0x1c9390,_0x484547,_0x1c0256){return _0x1c9390(_0x484547,_0x1c0256);},'wQtII':function(_0x4a1afe,_0x52c072){return _0x4a1afe+_0x52c072;},'hCkpT':_0x316293(0xcb),'jXgry':_0x316293(0xd4),'zXBHh':_0x316293(0x9e),'zfBEC':_0x316293(0xe4),'YhPJI':_0x316293(0x112),'fODor':_0x316293(0x10b),'mvJdc':_0x316293(0xd7),'xeIdg':_0x316293(0xa7),'SHAZd':_0x316293(0xac),'RCcyu':function(_0x254929){return _0x254929();},'LHZZQ':function(_0x5a75db,_0x1c578c,_0x2bf860){return _0x5a75db(_0x1c578c,_0x2bf860);},'vnUrg':_0x316293(0xf0),'dqMlE':function(_0x27b960,_0x1131ca){return _0x27b960>_0x1131ca;}},_0x39a84e='browserstack internal helper hook';this[_0x316293(0xf3)](0xfde8);const _0x4a3e85=async(_0x295876,_0x35baf0)=>{const _0x3d4e2e=_0x316293;await global['__drivers'][0x0][_0x3d4e2e(0xb1)](_0x3d4e2e(0xa5)+_0x295876+_0x3d4e2e(0xe7)+_0x35baf0+_0x3d4e2e(0xe2));};new Promise(async _0x23c8d0=>{const _0x4a0290=_0x316293;try{_0x42592b[_0x4a0290(0xe0)](global['__drivers'][_0x4a0290(0xda)],0x1)&&(await global[_0x4a0290(0xf4)](),global[_0x4a0290(0xba)][_0x4a0290(0x10e)](),global[_0x4a0290(0xbd)]=[],global['__sessionFailed']=![]);try{if(global['percy']&&_0x42592b[_0x4a0290(0xf8)](global[_0x4a0290(0xa0)],_0x42592b['ZlqhF'])&&global[_0x4a0290(0xba)][0x0]){const _0x248011=_0x42592b[_0x4a0290(0xa3)](global['capabilities']['length'],0x0)?!!global[_0x4a0290(0xf2)][0x0][_0x4a0290(0xcc)]||!!global['capabilities'][0x0][_0x42592b[_0x4a0290(0xa2)]]:![],_0xdfda72={};_0xdfda72[_0x4a0290(0xcc)]=_0x248011,await _0x42592b[_0x4a0290(0x105)](percyAutoCapture,global[_0x4a0290(0xba)][0x0],_0x42592b['ZlqhF'],_0xdfda72);}}catch(_0x10ca64){}!global[_0x4a0290(0xef)]&&(await global[_0x4a0290(0xba)][0x0]['executeScript'](_0x4a0290(0xd3)+JSON[_0x4a0290(0xea)](this[_0x4a0290(0xff)][_0x4a0290(0xc8)]()[_0x4a0290(0x109)](_0x42592b[_0x4a0290(0xc3)]))+'}}'),global[_0x4a0290(0xba)][0x0][_0x4a0290(0xe5)]=!![]);const _0x46cdff=_0x42592b[_0x4a0290(0xe9)](this[_0x4a0290(0xff)][_0x4a0290(0xbb)],_0x42592b['MLwqt']);_0x46cdff?(global['__sessionFailed']=!![],global[_0x4a0290(0xbd)]['push'](this['currentTest'][_0x4a0290(0xc9)]['message']),await _0x42592b[_0x4a0290(0xfa)](_0x4a3e85,JSON[_0x4a0290(0xea)](_0x42592b[_0x4a0290(0xad)](_0x42592b[_0x4a0290(0xdd)],this[_0x4a0290(0xff)][_0x4a0290(0xc9)][_0x4a0290(0xca)])),_0x42592b[_0x4a0290(0x101)])):await _0x42592b[_0x4a0290(0xfa)](_0x4a3e85,JSON[_0x4a0290(0xea)](_0x42592b['zXBHh']),_0x42592b['zfBEC']);}catch(_0x43a9b8){}try{if(this[_0x4a0290(0xff)][_0x4a0290(0xa6)]&&globals[_0x4a0290(0xfe)](_0x42592b['YhPJI'])&&globals[_0x4a0290(0xfe)](_0x42592b[_0x4a0290(0xc2)])){logger[_0x4a0290(0xe4)](_0x42592b[_0x4a0290(0x106)]);const _0x4019d0={};_0x4019d0[_0x4a0290(0xdf)]=this[_0x4a0290(0xff)][_0x4a0290(0xc7)],_0x4019d0[_0x4a0290(0x9b)]=process[_0x4a0290(0xa4)][testHubConstants[_0x4a0290(0x111)][_0x4a0290(0xde)]],_0x4019d0[_0x4a0290(0xb8)]=process['env'][testHubConstants['ENV_VAR'][_0x4a0290(0xcf)]];const _0x16715d=_0x4019d0;logger['debug'](_0x4a0290(0xdb)+JSON['stringify'](_0x16715d)),logger[_0x4a0290(0xf0)](_0x42592b[_0x4a0290(0xbe)]),logger['debug'](util[_0x4a0290(0xb4)](await global[_0x4a0290(0xba)][0x0][_0x4a0290(0xb3)](scripts[_0x4a0290(0xd2)],{'method':global[_0x4a0290(0xa8)]}))),await global[_0x4a0290(0xba)][0x0][_0x4a0290(0xb3)](scripts[_0x4a0290(0xf7)],_0x16715d),logger[_0x4a0290(0xe4)](_0x42592b[_0x4a0290(0x9c)]);}}catch(_0x48169f){logger[_0x4a0290(0xd4)](_0x4a0290(0xb9)+this['currentTest']['titlePath']()+_0x4a0290(0xaf),_0x48169f);}try{try{if(_0x42592b['RCcyu'](shouldProcessEventForTesthub)){global[_0x4a0290(0xba)][0x0]&&await _0x42592b[_0x4a0290(0xfa)](sendPlatformDetails,global[_0x4a0290(0xba)][0x0],this[_0x4a0290(0xff)]?this[_0x4a0290(0xff)]['testAnalyticsId']:null);if(_0x42592b[_0x4a0290(0x10a)](isBrowserstackInfra)){const _0x19704e=_0x4a0290(0x107)+Date['now']();await _0x42592b['LHZZQ'](_0x4a3e85,JSON[_0x4a0290(0xea)](_0x19704e),_0x42592b[_0x4a0290(0xae)]);}}}catch{}_0x42592b[_0x4a0290(0x10f)](global['__drivers'][0x0]['quitCount_'],0x0)&&await global[_0x4a0290(0xf4)]();}catch(_0x2194fc){}_0x42592b[_0x4a0290(0x10a)](_0x23c8d0);})[_0x316293(0x100)](()=>_0xca57ea());},'afterAll'(_0x241090){const _0x484f34=a30_0xbfd3d9,_0x5d51c5={'HNpSq':function(_0x402846){return _0x402846();}},_0x3c833d='browserstack internal helper hook';this[_0x484f34(0xf3)](0xfde8),new Promise(async _0x49d112=>{const _0x25a913=_0x484f34;PerformanceTester[_0x25a913(0xc4)](),await global['driverCleanup'](),_0x5d51c5[_0x25a913(0xc1)](_0x49d112);})[_0x484f34(0x100)](()=>_0x241090());}};
|
|
1
|
+
function a30_0x3a0d(_0x57d32b,_0x2ab28d){const _0x35bbdb=a30_0x35bb();return a30_0x3a0d=function(_0x3a0d57,_0x442fc4){_0x3a0d57=_0x3a0d57-0x168;let _0x4fc045=_0x35bbdb[_0x3a0d57];return _0x4fc045;},a30_0x3a0d(_0x57d32b,_0x2ab28d);}const a30_0x4081b4=a30_0x3a0d;(function(_0x4b9345,_0x1e6feb){const _0x5b61b5=a30_0x3a0d,_0x508cfc=_0x4b9345();while(!![]){try{const _0x402f3a=-parseInt(_0x5b61b5(0x176))/0x1+parseInt(_0x5b61b5(0x17d))/0x2*(-parseInt(_0x5b61b5(0x1c2))/0x3)+parseInt(_0x5b61b5(0x199))/0x4*(-parseInt(_0x5b61b5(0x1b7))/0x5)+-parseInt(_0x5b61b5(0x17e))/0x6*(-parseInt(_0x5b61b5(0x1d0))/0x7)+-parseInt(_0x5b61b5(0x1b3))/0x8+parseInt(_0x5b61b5(0x195))/0x9*(parseInt(_0x5b61b5(0x178))/0xa)+parseInt(_0x5b61b5(0x1c8))/0xb;if(_0x402f3a===_0x1e6feb)break;else _0x508cfc['push'](_0x508cfc['shift']());}catch(_0x18881f){_0x508cfc['push'](_0x508cfc['shift']());}}}(a30_0x35bb,0xe2936));const util=require(a30_0x4081b4(0x193)),{isAccessibilityAutomationSession,fetchPlatformDetails,shouldScanTestForAccessibility}=require(a30_0x4081b4(0x1ab)),{percyAutoCapture}=require('../../helpers/percy/utils'),{sendPlatformDetails}=require(a30_0x4081b4(0x1d9)),{isBrowserstackInfra,markSessionStatus}=require(a30_0x4081b4(0x16c)),{isTestObservabilitySession}=require(a30_0x4081b4(0x173)),PerformanceTester=require(a30_0x4081b4(0x18a)),scripts=require(a30_0x4081b4(0x1d7)),globals=require('../../helpers/globals'),logger=require(a30_0x4081b4(0x1dd))['winstonLogger'],{shouldProcessEventForTesthub}=require(a30_0x4081b4(0x19f)),testHubConstants=require(a30_0x4081b4(0x17f));function a30_0x35bb(){const _0x49c02a=['qDhLh','GqwTz','662237FMmoHP','\x22}}','2453510QnNxmV','err','getCurrentUrl','HMbZR','yyYlX','2xbcxik','6BhdHqs','../../helpers/testhub/constants','stringify','capabilities','MiRHL','setGlobal','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','shift','then','currentTest','Swifm','CLotD','../../helpers/performance-tester','executeAsyncScript','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','percyCaptureMode','startMonitoring','__drivers','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','vsrDo','passed','util','protocol','45uAMnWL','ENV_VAR','thTestRunUuid','testAnalyticsId','8tPsSyJ','browserstackSessionName','DHNJF','FuzUu','thJwtToken','env','../../helpers/testhub/utils','shouldScanTestForAccessibility','JYubp','isAccessibilityPlatform','http:','YuLJm','failed','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','PFeiM','zMZzx','push','Failed\x20to\x20store\x20session\x20name:\x20','../../helpers/accessibility-automation/helper','appium:app','saveTestResults','yvUFI','WGonG','info','timeout','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','14302736vZFrLv','ObservabilitySync:','bmzbp','bstackA11yShouldScan','2463905VIxCyC','wgzqW','AXwEb','session_','ktTpL','percy',',\x22level\x22:\x20\x22','xQiMw','executeScript','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','jqLFf','892452GdPbtN','isArray','BROWSERSTACK_TESTHUB_UUID','Pvsds','eWWFo','getGlobal','37603885zvBPgT','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','accessibilityScanStarted','SZLKO','wSNvO','message','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','__sessionFailed','111223nvhjfu','stopMonitoring','format','app','titlePath','\x20-\x20','Performing\x20scan\x20before\x20saving\x20results','../../helpers/accessibility-automation/scripts','__error_messages__','./test-observability/mochaUtils','testcase','qNzLI','driverCleanup','../../helpers/logger','debug','join','buWTm','UiiOc','../../helpers/helper','length','GpCTm','\x20|\x20','Krxbp','Failed:\x20','mochaHooks','../../helpers/test-observability/utils'];a30_0x35bb=function(){return _0x49c02a;};return a30_0x35bb();}exports[a30_0x4081b4(0x172)]={'beforeAll'(){const _0x1fc3f2=a30_0x4081b4,_0x45a1ca={'Pvsds':function(_0x42af77,_0x643e17,_0x20311c,_0x107cb8){return _0x42af77(_0x643e17,_0x20311c,_0x107cb8);},'Tpipu':_0x1fc3f2(0x1a5),'UiiOc':_0x1fc3f2(0x16f),'LIoKX':function(_0x3746a9,_0x4361eb,_0xb56f3a){return _0x3746a9(_0x4361eb,_0xb56f3a);},'jqLFf':'passed','WGonG':function(_0x51e6a4){return _0x51e6a4();},'buWTm':function(_0x3b5448,_0x1ff0fe,_0x1530e5){return _0x3b5448(_0x1ff0fe,_0x1530e5);}};PerformanceTester[_0x1fc3f2(0x18e)]();const _0x3d8e86='browserstack internal helper hook';global[_0x1fc3f2(0x1d8)]=[],global[_0x1fc3f2(0x1cf)]=![],global[_0x1fc3f2(0x1dc)]=async()=>{const _0xc6ef93=_0x1fc3f2;let _0x3f5155=![];try{await global['__drivers'][0x0][_0xc6ef93(0x1ba)],_0x3f5155=!![],global[_0xc6ef93(0x1cf)]?await _0x45a1ca[_0xc6ef93(0x1c5)](markSessionStatus,global[_0xc6ef93(0x18f)][0x0],_0x45a1ca['Tpipu'],global[_0xc6ef93(0x1d8)][_0xc6ef93(0x169)](_0x45a1ca[_0xc6ef93(0x16b)])):await _0x45a1ca['LIoKX'](markSessionStatus,global[_0xc6ef93(0x18f)][0x0],_0x45a1ca[_0xc6ef93(0x1c1)]);}catch(_0xfbc1b0){}global[_0xc6ef93(0x1d8)]=[],global['__sessionFailed']=![];if(_0x3f5155)try{try{_0x45a1ca[_0xc6ef93(0x1af)](shouldProcessEventForTesthub)&&(global[_0xc6ef93(0x18f)][0x0]&&await _0x45a1ca[_0xc6ef93(0x16a)](sendPlatformDetails,global[_0xc6ef93(0x18f)][0x0],this['currentTest']?this[_0xc6ef93(0x187)][_0xc6ef93(0x198)]:null));}catch{}await global[_0xc6ef93(0x18f)][0x0]['initQuit']();}catch(_0x6fa5e7){}};},'beforeEach'(_0xbfd60a){const _0x5a61e3=a30_0x4081b4,_0x1a1d01={'xQiMw':function(_0x9ff839,_0x4ceaa3){return _0x9ff839>_0x4ceaa3;},'yyYlX':function(_0x4fc321,_0x333ec1){return _0x4fc321>_0x333ec1;},'Swifm':_0x5a61e3(0x1d5),'wgzqW':function(_0x3b6761,_0x26a37d,_0x518596){return _0x3b6761(_0x26a37d,_0x518596);},'wSNvO':_0x5a61e3(0x1b6),'szKIy':function(_0x5e921c){return _0x5e921c();},'zNUrk':_0x5a61e3(0x1a2),'SZLKO':function(_0x197a7e,_0x2151e9){return _0x197a7e===_0x2151e9;},'lZJSW':_0x5a61e3(0x1a3),'bmzbp':'https:','qDhLh':_0x5a61e3(0x1ce),'gerJt':'Automate\x20test\x20case\x20execution\x20has\x20started.','DHNJF':function(_0xb84fff){return _0xb84fff();}};new Promise(async _0x1c569e=>{const _0xbc4777=_0x5a61e3,_0x325bbb='browserstack internal helper hook';let _0x533ee4=!![];try{_0x1a1d01[_0xbc4777(0x1be)](global[_0xbc4777(0x18f)]['length'],0x1)&&(await global['driverCleanup'](),global[_0xbc4777(0x18f)][_0xbc4777(0x185)]()),_0x1a1d01[_0xbc4777(0x17c)](global['__drivers'][0x0]['quitCount_'],0x0)&&(_0x533ee4=![],await global[_0xbc4777(0x1dc)]());}catch{}try{Array[_0xbc4777(0x1c3)](global[_0xbc4777(0x18f)])&&global[_0xbc4777(0x18f)][0x0]&&(global[_0xbc4777(0x18f)][0x0][_0xbc4777(0x19a)]=this['currentTest'][_0xbc4777(0x1d4)]()[_0xbc4777(0x169)](_0x1a1d01[_0xbc4777(0x188)])),global['browserstackSessionName']=this['currentTest']['titlePath']()[_0xbc4777(0x169)](_0x1a1d01['Swifm']);}catch(_0x1c7e52){logger[_0xbc4777(0x168)](_0xbc4777(0x1aa)+_0x1c7e52);}this[_0xbc4777(0x187)][_0xbc4777(0x1a0)]=_0x1a1d01[_0xbc4777(0x1b8)](shouldScanTestForAccessibility,this[_0xbc4777(0x187)][_0xbc4777(0x1d4)](),!![]),globals[_0xbc4777(0x183)](_0x1a1d01[_0xbc4777(0x1cc)],this[_0xbc4777(0x187)]['shouldScanTestForAccessibility']),this[_0xbc4777(0x187)][_0xbc4777(0x1ca)]=!![];if(_0x1a1d01['szKIy'](isAccessibilityAutomationSession)&&_0x533ee4&&Array[_0xbc4777(0x1c3)](global[_0xbc4777(0x18f)])&&_0x1a1d01[_0xbc4777(0x17c)](global[_0xbc4777(0x18f)][_0xbc4777(0x16d)],0x0)&&globals['getGlobal'](_0x1a1d01['zNUrk']))try{const _0x11b362=await global[_0xbc4777(0x18f)][0x0][_0xbc4777(0x1ba)];if(_0x11b362){let _0x3c7b87=!![];const _0x18ade8=await global[_0xbc4777(0x18f)][0x0][_0xbc4777(0x17a)]();let _0x561f84;try{_0x561f84=new URL(_0x18ade8);}catch(_0x51256e){_0x3c7b87=![];}_0x3c7b87=_0x1a1d01[_0xbc4777(0x1cb)](_0x561f84[_0xbc4777(0x194)],_0x1a1d01['lZJSW'])||_0x1a1d01[_0xbc4777(0x1cb)](_0x561f84[_0xbc4777(0x194)],_0x1a1d01[_0xbc4777(0x1b5)]),_0x3c7b87&&(this[_0xbc4777(0x187)][_0xbc4777(0x1a0)]&&logger[_0xbc4777(0x1b0)](_0x1a1d01[_0xbc4777(0x174)])),this[_0xbc4777(0x187)][_0xbc4777(0x1ca)]=this[_0xbc4777(0x187)][_0xbc4777(0x1a0)],this[_0xbc4777(0x187)]['shouldScanTestForAccessibility']&&logger[_0xbc4777(0x1b0)](_0x1a1d01['gerJt']);}}catch(_0x4a0310){logger['error'](_0xbc4777(0x1c0)+util[_0xbc4777(0x1d2)](_0x4a0310));}_0x1a1d01[_0xbc4777(0x19b)](_0x1c569e);})['then'](_0xbfd60a);},'afterEach'(_0x47e24b){const _0x2105bf=a30_0x4081b4,_0xa753a3={'GpCTm':function(_0x2fcab2,_0x4de38f){return _0x2fcab2>_0x4de38f;},'cyvNq':function(_0x493800,_0xd432){return _0x493800===_0xd432;},'JYubp':_0x2105bf(0x1da),'VcVZC':function(_0x1e1314,_0x351744){return _0x1e1314>_0x351744;},'Krxbp':_0x2105bf(0x1ac),'VFccC':function(_0x16c8e1,_0x415062,_0x34a045,_0x586653){return _0x16c8e1(_0x415062,_0x34a045,_0x586653);},'FuzUu':_0x2105bf(0x1d5),'vsrDo':function(_0x38a320,_0x40b995){return _0x38a320!==_0x40b995;},'tdcoy':_0x2105bf(0x192),'CLotD':function(_0x51ba39,_0x363a8d,_0xb691a6){return _0x51ba39(_0x363a8d,_0xb691a6);},'qNzLI':function(_0x556f38,_0x5925f4){return _0x556f38+_0x5925f4;},'YuLJm':_0x2105bf(0x171),'AXwEb':'error','ktTpL':'Passed','MiRHL':_0x2105bf(0x1b0),'yvUFI':_0x2105bf(0x1a2),'eWWFo':_0x2105bf(0x1b6),'zMZzx':_0x2105bf(0x190),'FIoTD':_0x2105bf(0x1d6),'PFeiM':_0x2105bf(0x1c9),'HMbZR':function(_0x260574){return _0x260574();},'OltAy':_0x2105bf(0x168)},_0x2b697b='browserstack internal helper hook';this[_0x2105bf(0x1b1)](0xfde8);const _0x31a9fd=async(_0xf8692d,_0x3e559b)=>{const _0x2c9768=_0x2105bf;await global[_0x2c9768(0x18f)][0x0][_0x2c9768(0x1bf)](_0x2c9768(0x184)+_0xf8692d+_0x2c9768(0x1bd)+_0x3e559b+_0x2c9768(0x177));};new Promise(async _0x26cfea=>{const _0x6b6d14=_0x2105bf;try{_0xa753a3[_0x6b6d14(0x16e)](global['__drivers']['length'],0x1)&&(await global[_0x6b6d14(0x1dc)](),global[_0x6b6d14(0x18f)][_0x6b6d14(0x185)](),global[_0x6b6d14(0x1d8)]=[],global['__sessionFailed']=![]);try{if(global[_0x6b6d14(0x1bc)]&&_0xa753a3['cyvNq'](global[_0x6b6d14(0x18d)],_0xa753a3[_0x6b6d14(0x1a1)])&&global[_0x6b6d14(0x18f)][0x0]){const _0x1499dc=_0xa753a3['VcVZC'](global['capabilities'][_0x6b6d14(0x16d)],0x0)?!!global[_0x6b6d14(0x181)][0x0][_0x6b6d14(0x1d3)]||!!global['capabilities'][0x0][_0xa753a3[_0x6b6d14(0x170)]]:![],_0x3b6f22={};_0x3b6f22['app']=_0x1499dc,await _0xa753a3['VFccC'](percyAutoCapture,global[_0x6b6d14(0x18f)][0x0],_0xa753a3[_0x6b6d14(0x1a1)],_0x3b6f22);}}catch(_0x125cb8){}!global['__skipSessionName']&&(await global['__drivers'][0x0][_0x6b6d14(0x1bf)](_0x6b6d14(0x18c)+JSON[_0x6b6d14(0x180)](this[_0x6b6d14(0x187)][_0x6b6d14(0x1d4)]()[_0x6b6d14(0x169)](_0xa753a3[_0x6b6d14(0x19c)]))+'}}'),global[_0x6b6d14(0x18f)][0x0]['sessionNameSet__']=!![]);const _0x23cfb9=_0xa753a3[_0x6b6d14(0x191)](this[_0x6b6d14(0x187)]['state'],_0xa753a3['tdcoy']);_0x23cfb9?(global[_0x6b6d14(0x1cf)]=!![],global[_0x6b6d14(0x1d8)][_0x6b6d14(0x1a9)](this[_0x6b6d14(0x187)][_0x6b6d14(0x179)]['message']),await _0xa753a3['CLotD'](_0x31a9fd,JSON[_0x6b6d14(0x180)](_0xa753a3[_0x6b6d14(0x1db)](_0xa753a3[_0x6b6d14(0x1a4)],this[_0x6b6d14(0x187)][_0x6b6d14(0x179)][_0x6b6d14(0x1cd)])),_0xa753a3[_0x6b6d14(0x1b9)])):await _0xa753a3[_0x6b6d14(0x189)](_0x31a9fd,JSON['stringify'](_0xa753a3[_0x6b6d14(0x1bb)]),_0xa753a3[_0x6b6d14(0x182)]);}catch(_0x153d9c){}try{if(this[_0x6b6d14(0x187)][_0x6b6d14(0x1ca)]&&globals[_0x6b6d14(0x1c7)](_0xa753a3[_0x6b6d14(0x1ae)])&&globals['getGlobal'](_0xa753a3[_0x6b6d14(0x1c6)])){logger[_0x6b6d14(0x1b0)](_0xa753a3[_0x6b6d14(0x1a8)]);const _0x33cecc={};_0x33cecc[_0x6b6d14(0x197)]=this[_0x6b6d14(0x187)][_0x6b6d14(0x198)],_0x33cecc['thBuildUuid']=process[_0x6b6d14(0x19e)][testHubConstants[_0x6b6d14(0x196)][_0x6b6d14(0x1c4)]],_0x33cecc[_0x6b6d14(0x19d)]=process[_0x6b6d14(0x19e)][testHubConstants['ENV_VAR']['BROWSERSTACK_TESTHUB_JWT']];const _0x284c1c=_0x33cecc;logger[_0x6b6d14(0x168)](_0x6b6d14(0x1b2)+JSON[_0x6b6d14(0x180)](_0x284c1c)),logger[_0x6b6d14(0x168)](_0xa753a3['FIoTD']),logger[_0x6b6d14(0x168)](util[_0x6b6d14(0x1d2)](await global[_0x6b6d14(0x18f)][0x0][_0x6b6d14(0x18b)](scripts['performScan'],{'method':global['browserstackSessionName']}))),await global[_0x6b6d14(0x18f)][0x0][_0x6b6d14(0x18b)](scripts[_0x6b6d14(0x1ad)],_0x284c1c),logger[_0x6b6d14(0x1b0)](_0xa753a3[_0x6b6d14(0x1a7)]);}}catch(_0x143167){logger['error'](_0x6b6d14(0x1a6)+this[_0x6b6d14(0x187)]['titlePath']()+'.\x20Error\x20:',_0x143167);}try{try{if(_0xa753a3[_0x6b6d14(0x17b)](shouldProcessEventForTesthub)){global[_0x6b6d14(0x18f)][0x0]&&await _0xa753a3[_0x6b6d14(0x189)](sendPlatformDetails,global[_0x6b6d14(0x18f)][0x0],this['currentTest']?this[_0x6b6d14(0x187)]['testAnalyticsId']:null);if(_0xa753a3['HMbZR'](isBrowserstackInfra)){const _0x21c6dc=_0x6b6d14(0x1b4)+Date['now']();await _0xa753a3['CLotD'](_0x31a9fd,JSON['stringify'](_0x21c6dc),_0xa753a3['OltAy']);}}}catch{}_0xa753a3[_0x6b6d14(0x16e)](global[_0x6b6d14(0x18f)][0x0]['quitCount_'],0x0)&&await global['driverCleanup']();}catch(_0x16d910){}_0xa753a3['HMbZR'](_0x26cfea);})['then'](()=>_0x47e24b());},'afterAll'(_0x2b1ba3){const _0x8155b0=a30_0x4081b4,_0x43f483={'GqwTz':function(_0x56fc55){return _0x56fc55();}},_0x4de825='browserstack internal helper hook';this[_0x8155b0(0x1b1)](0xfde8),new Promise(async _0x1aa389=>{const _0x41ecdf=_0x8155b0;PerformanceTester[_0x41ecdf(0x1d1)](),await global[_0x41ecdf(0x1dc)](),_0x43f483[_0x41ecdf(0x175)](_0x1aa389);})[_0x8155b0(0x186)](()=>_0x2b1ba3());}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';const a31_0x1e5698=a31_0x2f63;(function(_0xf95f53,_0x263410){const _0x22a0df=a31_0x2f63,_0x4fb393=_0xf95f53();while(!![]){try{const _0x2ff139=parseInt(_0x22a0df(0x207))/0x1+parseInt(_0x22a0df(0x1f9))/0x2*(parseInt(_0x22a0df(0x1db))/0x3)+parseInt(_0x22a0df(0x1e7))/0x4*(-parseInt(_0x22a0df(0x1f5))/0x5)+parseInt(_0x22a0df(0x204))/0x6+-parseInt(_0x22a0df(0x213))/0x7+-parseInt(_0x22a0df(0x201))/0x8+parseInt(_0x22a0df(0x214))/0x9;if(_0x2ff139===_0x263410)break;else _0x4fb393['push'](_0x4fb393['shift']());}catch(_0x117e7c){_0x4fb393['push'](_0x4fb393['shift']());}}}(a31_0x5b14,0xdb8e6));function a31_0x2f63(_0xd3161,_0x100be7){const _0x5b1484=a31_0x5b14();return a31_0x2f63=function(_0x2f63d0,_0x1b32c4){_0x2f63d0=_0x2f63d0-0x1d4;let _0x364791=_0x5b1484[_0x2f63d0];return _0x364791;},a31_0x2f63(_0xd3161,_0x100be7);}function a31_0x5b14(){const _0x51bea6=['env','aLiRO','splice','771ISSZHE','useW3C','hub.browserstack.com','ezHXe','WxiHM','nightwatch-browserstack.json','start_process','mergeDeep','VSCiP','--env','MFciL','getPlatformName','68Soleqb','Hbxmy','length','platform','platforms','port','filter','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','host','selenium','nightwatch.conf.js','isUndefined','Deleting\x20','findIndex','324985IaZvBt','trim','JExGK','join','6354oReyAO','PSEFN','NtTAt','bSyrZ','forEach','existsSync','aWhPg','modifyBrowserStackW3CCaps','8373160fzBTZr','info','pVADU','7087236bogerH','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','oPemr','112309dqNuoG','debug','../utils/constants','split','modifyBrowserStackCaps','slice','test_settings','child\x20process\x20exited\x20with\x20code\x20','../../helpers/logger','desiredCapabilities','winstonLogger','ZnaRT','5437649xITpUv','15459291aKsDKh','config','dIJiX','now','Getting\x20your\x20nightwatch\x20configs\x20from\x20','child_process','close','push','cwd','tTeJa'];a31_0x5b14=function(){return _0x51bea6;};return a31_0x5b14();}const fs=require('fs'),path=require('path'),{spawn}=require(a31_0x1e5698(0x219)),logger=require(a31_0x1e5698(0x20f))[a31_0x1e5698(0x211)],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require('../../helpers/helper'),constants=require(a31_0x1e5698(0x209)),getUserNightwatchConfigs=(_0x150b19,_0x3aa0fd)=>{const _0x4c17ba=a31_0x1e5698,_0x2965a7={'aWhPg':_0x4c17ba(0x1f1),'OfUvg':'nightwatch.json','aLiRO':function(_0x2822d4,_0x125ce6){return _0x2822d4(_0x125ce6);},'hmpwd':_0x4c17ba(0x1ee)};let _0x498c98=null,_0xce3ed9={};const _0x18fc36=_0x3aa0fd['findIndex'](_0x33fd40=>_0x33fd40==='--config');if(!helper[_0x4c17ba(0x1f2)](_0x150b19['config'])&&fs[_0x4c17ba(0x1fe)](path['join'](process[_0x4c17ba(0x1d6)](),_0x150b19['config'])))_0x498c98=path[_0x4c17ba(0x1f8)](process[_0x4c17ba(0x1d6)](),_0x150b19[_0x4c17ba(0x215)]),_0x3aa0fd[_0x4c17ba(0x1da)](_0x18fc36,0x2);else{if(fs['existsSync'](path['join'](process[_0x4c17ba(0x1d6)](),_0x2965a7[_0x4c17ba(0x1ff)])))_0x498c98=path[_0x4c17ba(0x1f8)](process[_0x4c17ba(0x1d6)](),_0x2965a7[_0x4c17ba(0x1ff)]);else fs[_0x4c17ba(0x1fe)](path['join'](process['cwd'](),_0x2965a7['OfUvg']))&&(_0x498c98=path[_0x4c17ba(0x1f8)](process[_0x4c17ba(0x1d6)](),_0x2965a7['OfUvg']));}return _0x498c98?(logger[_0x4c17ba(0x202)](_0x4c17ba(0x218)+_0x498c98),_0xce3ed9=_0x2965a7[_0x4c17ba(0x1d9)](require,_0x498c98)):logger[_0x4c17ba(0x202)](_0x2965a7['hmpwd']),_0xce3ed9;},removeExistingEnvs=_0x13f675=>{const _0x2c7d43=a31_0x1e5698,_0xeef5fc={};_0xeef5fc['WxiHM']=function(_0x1c9106,_0x340f72){return _0x1c9106>_0x340f72;};const _0x30d3a4=_0xeef5fc;let _0x57618f=_0x13f675[_0x2c7d43(0x1f4)](_0x66d3c=>_0x66d3c===_0x2c7d43(0x1e4));_0x30d3a4['WxiHM'](_0x57618f,-0x1)&&_0x13f675['splice'](_0x57618f,0x2),_0x57618f=_0x13f675[_0x2c7d43(0x1f4)](_0x89b70=>_0x89b70==='-e'),_0x30d3a4[_0x2c7d43(0x1df)](_0x57618f,-0x1)&&_0x13f675[_0x2c7d43(0x1da)](_0x57618f,0x2);};function run(_0x2dcde6,_0x367c4b){const _0x138995=a31_0x1e5698,_0xb1e7ab={'pVADU':'nightwatch','VSCiP':function(_0x8419ee,_0x4e9415){return _0x8419ee+_0x4e9415;},'tTeJa':_0x138995(0x20d),'BKdDm':function(_0x374e35,_0x250679,_0x1a8e03){return _0x374e35(_0x250679,_0x1a8e03);},'PSEFN':_0x138995(0x1dd),'bSyrZ':_0x138995(0x205),'ObpdK':function(_0xdd6a1f,_0x1fccb5){return _0xdd6a1f===_0x1fccb5;},'Hbxmy':_0x138995(0x1e0),'NgCoD':function(_0x3585f4,_0x7d3c2a){return _0x3585f4(_0x7d3c2a);},'oPemr':function(_0x4cf35c,_0x2ef035,_0x5560ad,_0x3da37b){return _0x4cf35c(_0x2ef035,_0x5560ad,_0x3da37b);},'JExGK':'nightwatch.cmd','MFciL':'--config','BWkgy':_0x138995(0x1e4),'dIJiX':'inherit','ezHXe':_0x138995(0x1d4)},_0x150aac=new BrowserStackSetup(_0x2dcde6);if(!_0x150aac['config'])return;const _0x4d8b4c=_0xb1e7ab['BKdDm'](getUserNightwatchConfigs,_0x2dcde6,_0x367c4b),_0x272e67={};_0x272e67[_0x138995(0x1e1)]=![];const _0x107bb9={};_0x107bb9[_0x138995(0x1ef)]=_0xb1e7ab[_0x138995(0x1fa)],_0x107bb9[_0x138995(0x1ec)]=0x1bb;const _0x59bfc1={};_0x59bfc1['webdriver']=_0x272e67,_0x59bfc1[_0x138995(0x1f0)]=_0x107bb9;const _0x21bdde=_0x59bfc1;logger['info'](_0xb1e7ab[_0x138995(0x1fc)]);const _0x2b546d={..._0x4d8b4c},_0x1d74c8=_0x2b546d,_0x30baa1=helper[_0x138995(0x1dc)](_0x150aac[_0x138995(0x215)]),_0x10d9c2=[];_0x150aac[_0x138995(0x215)][_0x138995(0x1eb)][_0x138995(0x1fd)]((_0x647f09,_0x146057)=>{const _0x3b00b0=_0x138995;_0x30baa1?_0x10d9c2[_0x3b00b0(0x1d5)](helper[_0x3b00b0(0x200)](_0x150aac[_0x3b00b0(0x215)],_0xb1e7ab[_0x3b00b0(0x203)],_0x146057)):_0x10d9c2[_0x3b00b0(0x1d5)](helper[_0x3b00b0(0x20b)](_0x150aac[_0x3b00b0(0x215)],_0xb1e7ab[_0x3b00b0(0x203)],_0x146057));});const _0xce9045={},_0x38453d=[];_0x2dcde6['env']=_0x2dcde6['env']||_0x2dcde6['e'];const _0x107fca=_0x2dcde6[_0x138995(0x1d8)]?_0x2dcde6[_0x138995(0x1d8)][_0x138995(0x1f6)]()[_0x138995(0x20a)](',')['map'](_0x498d6d=>_0x498d6d['trim']())[_0x138995(0x1ed)](_0x48d335=>_0x48d335!==''):[''];_0xb1e7ab['ObpdK'](_0x107fca[_0x138995(0x1e9)],0x0)&&_0x107fca[_0x138995(0x1d5)]('');_0x107fca['forEach'](_0x1299f5=>{const _0x1f80d8=_0x138995,_0x4e45c2={'NtTAt':function(_0x31e9d1,_0x3cd1d7){const _0x1fa5e3=a31_0x2f63;return _0xb1e7ab[_0x1fa5e3(0x1e3)](_0x31e9d1,_0x3cd1d7);},'ZnaRT':_0xb1e7ab[_0x1f80d8(0x1d7)]};_0x10d9c2[_0x1f80d8(0x1fd)](_0x54549d=>{const _0x5b9e72=_0x1f80d8;let _0xc31552=_0x4e45c2[_0x5b9e72(0x1fb)](helper[_0x5b9e72(0x1e6)](_0x54549d,'_'),'_'+Date[_0x5b9e72(0x217)]());_0x1299f5&&(_0xc31552+='_'+_0x1299f5);if(_0x1299f5&&(!_0x4d8b4c[_0x4e45c2[_0x5b9e72(0x212)]]||!_0x4d8b4c[_0x4e45c2[_0x5b9e72(0x212)]][_0x1299f5]))return;const _0x407b1d={..._0x21bdde};_0x407b1d[_0x5b9e72(0x210)]=_0x54549d;const _0x2c9337=_0x407b1d;_0xce9045[_0xc31552]=_0x1299f5?helper[_0x5b9e72(0x1e2)](_0x4d8b4c[_0x4e45c2[_0x5b9e72(0x212)]][_0x1299f5],_0x2c9337):_0x2c9337,_0x38453d[_0x5b9e72(0x1d5)](_0xc31552);});});!_0x1d74c8[_0x138995(0x20d)]&&(_0x1d74c8['test_settings']={});_0x1d74c8[_0x138995(0x20d)]={..._0x1d74c8[_0x138995(0x20d)],..._0xce9045};const _0xd3eedb=path[_0x138995(0x1f8)](__dirname,_0xb1e7ab[_0x138995(0x1e8)]);fs['writeFileSync'](_0xd3eedb,JSON['stringify'](_0x1d74c8)),_0xb1e7ab['NgCoD'](removeExistingEnvs,_0x367c4b);const _0x11ad10=_0xb1e7ab[_0x138995(0x206)](spawn,/^win/['test'](process[_0x138995(0x1ea)])?_0xb1e7ab[_0x138995(0x1f7)]:_0xb1e7ab[_0x138995(0x203)],[_0xb1e7ab[_0x138995(0x1e5)],_0xd3eedb,..._0x367c4b[_0x138995(0x20c)](0x1),_0xb1e7ab['BWkgy'],_0x38453d[_0x138995(0x1f8)](',')],{'stdio':_0xb1e7ab[_0x138995(0x216)]});_0x11ad10['on'](_0xb1e7ab[_0x138995(0x1de)],async _0x5c3a3b=>{const _0x34d551=_0x138995;logger[_0x34d551(0x208)](_0x34d551(0x20e)+_0x5c3a3b),logger[_0x34d551(0x202)](_0x34d551(0x1f3)+_0xd3eedb),fs['unlinkSync'](_0xd3eedb);});}module['exports']=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a32_0x5441(_0xed82c7,_0x53f091){const _0x5c2f75=a32_0x5c2f();return a32_0x5441=function(_0x5441e6,_0x3fefba){_0x5441e6=_0x5441e6-0x150;let _0x438e73=_0x5c2f75[_0x5441e6];return _0x438e73;},a32_0x5441(_0xed82c7,_0x53f091);}const a32_0x37bba5=a32_0x5441;(function(_0x26bef6,_0xf96f42){const _0x2ea88c=a32_0x5441,_0x1ab887=_0x26bef6();while(!![]){try{const _0x168052=parseInt(_0x2ea88c(0x156))/0x1+-parseInt(_0x2ea88c(0x19f))/0x2*(parseInt(_0x2ea88c(0x18e))/0x3)+-parseInt(_0x2ea88c(0x168))/0x4+-parseInt(_0x2ea88c(0x150))/0x5*(parseInt(_0x2ea88c(0x15a))/0x6)+-parseInt(_0x2ea88c(0x188))/0x7*(parseInt(_0x2ea88c(0x1ae))/0x8)+parseInt(_0x2ea88c(0x1b6))/0x9+parseInt(_0x2ea88c(0x18b))/0xa;if(_0x168052===_0xf96f42)break;else _0x1ab887['push'](_0x1ab887['shift']());}catch(_0x1ac721){_0x1ab887['push'](_0x1ab887['shift']());}}}(a32_0x5c2f,0x9cb64));function a32_0x5c2f(){const _0xbeaab9=['KJJcq','stringify','UkFhi','method','getAccessibilityResultsSummary','kVZuo','WebDriver','3546012cxAZyX','env','browser','warn','needsReview','malUd','BpiIS','accessibilityOptions.scannerProcessingTimeout','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','UmDar','wuPoz','error','util','accessibilityOptions.includeIssueType.needsReview','ruZfe','accessibilityOptions','connectOptions','bYNPv','Obzgw','../../helpers/accessibility-automation/scripts','OwVMe','wTiKU','URzwW','No\x20summaryResults\x20found.','winstonLogger','YDdTE','replace','No\x20accessibility\x20results\x20were\x20found.','includeIssueType','nZGoU','deviceName','processAccessibilityCaps','7FAlLfJ','debug','(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','16641750gHhcFD','bstackSdkArgs','playwright-chromium','112848ZtMbqi','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','use','zwVsZ','BS_A11Y_JWT','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','VUPUN','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','accessibilityOptions.authToken','platformValidation','setAccessibilityCapabilities','accessibilityOptions.wcagVersion','zxOSS','mpHNk','currentTest','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','GCVli','34mmrlby','browserStackExecuteDriver','accessibilityPlatform','name','GFVvM','browserstack.accessibility','agqUt','SkJvt','../../helpers/helper','performScan','SaVEZ','constructor','latest','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','scannerVersion','1578072qjefkh','accessibilityOptions.includeIssueType.bestPractice','browserName','NjflI','scannerProcessingTimeout','bCScP','PmFnV','WLxEq','11540385cQXJbC','getAccessibilityResults','JMycV','browser_version','75NmTGcl','../../helpers/logger','QfBmZ','WNTwJ','ODDks','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','8171jshUaE','DrceS','DJFjP','parse','235794oKeSIs','browserStackEvaluate','wcagVersion','format','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','GpuRI','executeScript'];a32_0x5c2f=function(){return _0xbeaab9;};return a32_0x5c2f();}const util=require(a32_0x37bba5(0x174)),logger=require(a32_0x37bba5(0x151))[a32_0x37bba5(0x180)],{isAccessibilityAutomationSession}=require('../../helpers/accessibility-automation/helper'),{isUndefined}=require(a32_0x37bba5(0x1a7)),scripts=require(a32_0x37bba5(0x17b));exports[a32_0x37bba5(0x15b)]=async(_0x2e7f13,_0x1d1601,_0x888d6e={})=>{const _0x4de2bf=a32_0x37bba5,_0x30c031={};_0x30c031[_0x4de2bf(0x16d)]=_0x4de2bf(0x18c);const _0x19f1c3=_0x30c031;return await _0x2e7f13['evaluate']('(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20'+_0x1d1601[_0x4de2bf(0x182)](/arguments/g,_0x19f1c3[_0x4de2bf(0x16d)])+_0x4de2bf(0x18f)+JSON['stringify'](_0x888d6e)+')');},exports[a32_0x37bba5(0x1a0)]=async(_0x2451f8,_0x54b85a,_0x534d47={})=>{const _0x199c19=a32_0x37bba5,_0x134f25={};_0x134f25['GXrkq']=function(_0x3d4d22,_0x879f57){return _0x3d4d22===_0x879f57;},_0x134f25[_0x199c19(0x194)]=_0x199c19(0x167),_0x134f25[_0x199c19(0x19b)]=function(_0x42189a,_0x27fb7d){return _0x42189a===_0x27fb7d;},_0x134f25[_0x199c19(0x171)]='Playwright',_0x134f25['NjflI']=_0x199c19(0x18c);const _0x219acd=_0x134f25;if(_0x219acd['GXrkq'](_0x2451f8[_0x199c19(0x1aa)]['name'],_0x219acd[_0x199c19(0x194)]))return await _0x2451f8['executeAsyncScript'](_0x54b85a,_0x534d47);else{if(_0x219acd[_0x199c19(0x19b)](_0x2451f8[_0x199c19(0x1aa)][_0x199c19(0x1a2)],_0x219acd[_0x199c19(0x171)]))return await _0x2451f8[_0x199c19(0x160)](_0x199c19(0x18a)+_0x54b85a[_0x199c19(0x182)](/arguments/g,_0x219acd[_0x199c19(0x1b1)])+_0x199c19(0x193)+JSON[_0x199c19(0x162)](_0x534d47)+')');}},exports[a32_0x37bba5(0x198)]=async _0x178b58=>{const _0xcec967=a32_0x37bba5,_0x4b87be={};_0x4b87be[_0xcec967(0x1a9)]=_0xcec967(0x199),_0x4b87be[_0xcec967(0x157)]=_0xcec967(0x16f),_0x4b87be[_0xcec967(0x1a5)]=_0xcec967(0x1af),_0x4b87be['DJFjP']=_0xcec967(0x175),_0x4b87be[_0xcec967(0x16e)]=_0xcec967(0x196),_0x4b87be[_0xcec967(0x1a6)]='accessibilityOptions.scannerVersion';const _0x886375=_0x4b87be;_0x178b58[_0xcec967(0x177)]&&(_0x178b58[_0xcec967(0x177)][_0xcec967(0x15c)]&&(_0x178b58[_0x886375[_0xcec967(0x1a9)]]=_0x178b58[_0xcec967(0x177)][_0xcec967(0x15c)]),_0x178b58[_0xcec967(0x177)][_0xcec967(0x1b2)]&&(_0x178b58[_0x886375[_0xcec967(0x157)]]=_0x178b58[_0xcec967(0x177)][_0xcec967(0x1b2)]),_0x178b58[_0xcec967(0x177)]['includeIssueType']&&(_0x178b58[_0x886375['agqUt']]=_0x178b58[_0xcec967(0x177)][_0xcec967(0x184)]['bestPractice'],_0x178b58[_0x886375[_0xcec967(0x158)]]=_0x178b58[_0xcec967(0x177)]['includeIssueType'][_0xcec967(0x16c)]));const _0x227753=JSON[_0xcec967(0x159)](process[_0xcec967(0x169)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML'])[_0xcec967(0x1ad)];_0x178b58[_0x886375[_0xcec967(0x16e)]]=process['env'][_0xcec967(0x192)],_0x178b58[_0x886375[_0xcec967(0x1a6)]]=_0x227753,delete _0x178b58[_0xcec967(0x177)];},exports[a32_0x37bba5(0x1b7)]=async _0x540b3c=>{const _0x5166cf=a32_0x37bba5,_0x4184f6={};_0x4184f6[_0x5166cf(0x17a)]=_0x5166cf(0x183),_0x4184f6[_0x5166cf(0x154)]=_0x5166cf(0x19d);const _0x577457=_0x4184f6;if(global['accessibilityPlatform'])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x540b3c,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x540b3c,scripts.getResults);return res;}catch{return logger[_0x5166cf(0x173)](_0x577457['Obzgw']),[];}else return logger[_0x5166cf(0x16b)](_0x577457[_0x5166cf(0x154)]),[];},exports[a32_0x37bba5(0x1a8)]=async(_0x56ce24,_0x5f4a1='')=>{const _0x454eee=a32_0x37bba5;if(global['accessibilityPlatform']){const _0x52271a={};return _0x52271a[_0x454eee(0x164)]=_0x5f4a1,await exports[_0x454eee(0x15b)](_0x56ce24,scripts[_0x454eee(0x1a8)],_0x52271a);}},exports[a32_0x37bba5(0x165)]=async _0x57e5a8=>{const _0x11b01b=a32_0x37bba5,_0x923aa2={};_0x923aa2['PmFnV']=_0x11b01b(0x17f),_0x923aa2[_0x11b01b(0x191)]=_0x11b01b(0x15e);const _0x313177=_0x923aa2;if(global[_0x11b01b(0x1a1)])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x57e5a8,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x57e5a8,scripts.getResultsSummary);return summaryResults;}catch{return logger[_0x11b01b(0x189)](_0x313177[_0x11b01b(0x1b4)]),{};}else return logger['warn'](_0x313177[_0x11b01b(0x191)]),{};},exports[a32_0x37bba5(0x197)]=async _0x15646a=>{const _0x2fb0df=a32_0x37bba5,_0x401a77={'bNrdr':function(_0x32b3e3,_0x4b10f5){return _0x32b3e3!==_0x4b10f5;},'URzwW':_0x2fb0df(0x155),'ruZfe':function(_0xf2d832,_0xe6b3c3){return _0xf2d832===_0xe6b3c3;},'bYNPv':'chrome','GpuRI':function(_0x1a0530,_0x3f1af7){return _0x1a0530===_0x3f1af7;},'BgyrF':_0x2fb0df(0x18d),'Fajgg':_0x2fb0df(0x1ac),'nZGoU':function(_0x84d5c5,_0x3e8dc5){return _0x84d5c5(_0x3e8dc5);},'zxOSS':function(_0x15c55b,_0x27cea8){return _0x15c55b===_0x27cea8;},'IizQQ':_0x2fb0df(0x1ab),'bCScP':function(_0x5d5ed7,_0x1dba27){return _0x5d5ed7>_0x1dba27;},'UkFhi':_0x2fb0df(0x195)};try{if(!_0x401a77['bNrdr'](_0x15646a[_0x2fb0df(0x186)],''))return logger[_0x2fb0df(0x16b)](_0x401a77[_0x2fb0df(0x17e)]),![];const _0x845e6d=_0x15646a[_0x2fb0df(0x16a)];if(!(_0x401a77[_0x2fb0df(0x176)](_0x845e6d,_0x401a77[_0x2fb0df(0x179)])||_0x401a77[_0x2fb0df(0x15f)](_0x845e6d,_0x401a77['BgyrF'])))return logger[_0x2fb0df(0x16b)](_0x401a77['Fajgg']),![];const _0x35b2b7=_0x401a77[_0x2fb0df(0x185)](parseInt,_0x15646a[_0x2fb0df(0x1b9)]);if(!(_0x401a77[_0x2fb0df(0x19a)](_0x35b2b7,_0x401a77['IizQQ'])||_0x401a77[_0x2fb0df(0x1b3)](_0x35b2b7,0x5e)))return logger[_0x2fb0df(0x16b)](_0x401a77[_0x2fb0df(0x163)]),![];}catch(_0x10aabc){logger[_0x2fb0df(0x189)](_0x2fb0df(0x170)+util[_0x2fb0df(0x15d)](_0x10aabc));}return!![];},exports[a32_0x37bba5(0x187)]=(_0x4e0cfb,_0x36de16,_0x12c3d8)=>{const _0x53702a=a32_0x37bba5,_0x49c205={'kVZuo':function(_0xaf342c){return _0xaf342c();},'GCVli':_0x53702a(0x1a4),'JEeRu':function(_0x48f735,_0x92c0ad){return _0x48f735===_0x92c0ad;},'JMycV':'chrome','IoTYL':function(_0x10e0c0,_0x24f289){return _0x10e0c0===_0x24f289;},'WNTwJ':_0x53702a(0x18d),'YDdTE':_0x53702a(0x1ac),'QfBmZ':function(_0x417d15,_0x308e6e){return _0x417d15===_0x308e6e;},'wTiKU':_0x53702a(0x1ab),'WLxEq':function(_0x38cc8e,_0x3588d3){return _0x38cc8e>_0x3588d3;},'wuPoz':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','KJJcq':function(_0x388e06,_0x5e857e){return _0x388e06(_0x5e857e);},'GFVvM':_0x53702a(0x155),'OwVMe':function(_0x5bf1dc,_0x2da056){return _0x5bf1dc+_0x2da056;},'DQxur':function(_0x570ec9,_0x261cc0){return _0x570ec9(_0x261cc0);}};try{if(_0x49c205[_0x53702a(0x166)](isAccessibilityAutomationSession)){global['accessibilityPlatform']=!![];!_0x4e0cfb[_0x49c205[_0x53702a(0x19e)]]&&(global[_0x53702a(0x1a1)]=![]);!(_0x49c205['JEeRu'](_0x4e0cfb[_0x53702a(0x1b0)],_0x49c205[_0x53702a(0x1b8)])||_0x49c205['IoTYL'](_0x4e0cfb['browserName'],_0x49c205[_0x53702a(0x153)]))&&(logger[_0x53702a(0x16b)](_0x49c205[_0x53702a(0x181)]),global[_0x53702a(0x1a1)]=![]);!(_0x49c205[_0x53702a(0x152)](_0x4e0cfb[_0x53702a(0x1b9)],_0x49c205[_0x53702a(0x17d)])||_0x49c205[_0x53702a(0x1b5)](_0x4e0cfb[_0x53702a(0x1b9)],0x5e))&&(logger[_0x53702a(0x16b)](_0x49c205[_0x53702a(0x172)]),global[_0x53702a(0x1a1)]=![]);!_0x49c205[_0x53702a(0x161)](isUndefined,_0x4e0cfb['deviceName'])&&(logger['warn'](_0x49c205[_0x53702a(0x1a3)]),global[_0x53702a(0x1a1)]=![]);if(!global[_0x53702a(0x1a1)]){_0x4e0cfb[_0x49c205['GCVli']]=![];const _0x52f040=_0x49c205[_0x53702a(0x17c)](_0x36de16,_0x49c205['DQxur'](encodeURIComponent,JSON[_0x53702a(0x162)](_0x4e0cfb)));_0x12c3d8&&(_0x12c3d8[_0x53702a(0x19c)]['testInfo']['project'][_0x53702a(0x190)][_0x53702a(0x178)]['wsEndpoint']=_0x52f040);}}}catch(_0x2ed7fc){logger[_0x53702a(0x189)]('Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20'+util[_0x53702a(0x15d)](_0x2ed7fc));}};
|
|
1
|
+
const a32_0x4f5892=a32_0x4c2a;(function(_0xeedb0f,_0x1f1057){const _0x3ed66b=a32_0x4c2a,_0x16b9d1=_0xeedb0f();while(!![]){try{const _0x5799c0=parseInt(_0x3ed66b(0x123))/0x1+-parseInt(_0x3ed66b(0x146))/0x2+-parseInt(_0x3ed66b(0x14c))/0x3+-parseInt(_0x3ed66b(0x130))/0x4*(-parseInt(_0x3ed66b(0x10a))/0x5)+-parseInt(_0x3ed66b(0x104))/0x6+parseInt(_0x3ed66b(0x144))/0x7*(parseInt(_0x3ed66b(0xfc))/0x8)+parseInt(_0x3ed66b(0x12b))/0x9*(parseInt(_0x3ed66b(0xf3))/0xa);if(_0x5799c0===_0x1f1057)break;else _0x16b9d1['push'](_0x16b9d1['shift']());}catch(_0x4a8a5b){_0x16b9d1['push'](_0x16b9d1['shift']());}}}(a32_0x2a38,0x75fe8));const util=require(a32_0x4f5892(0x122)),logger=require('../../helpers/logger')[a32_0x4f5892(0xf2)],{isAccessibilityAutomationSession}=require(a32_0x4f5892(0x11b)),{isUndefined}=require(a32_0x4f5892(0xef)),scripts=require(a32_0x4f5892(0x143));function a32_0x4c2a(_0x233d18,_0x43bfb3){const _0x2a38f6=a32_0x2a38();return a32_0x4c2a=function(_0x4c2a8e,_0x4b445a){_0x4c2a8e=_0x4c2a8e-0xe7;let _0xb4b674=_0x2a38f6[_0x4c2a8e];return _0xb4b674;},a32_0x4c2a(_0x233d18,_0x43bfb3);}function a32_0x2a38(){const _0x3e5943=['method','hBbDJ','chrome','wcagVersion','824424mJmGnX','BFZHY','bestPractice','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','name','parse','bstackSdkArgs','jUVNK','135690IsBWuH','replace','aWyHD','processAccessibilityCaps','accessibilityOptions','LnrtX','5jPmwzm','accessibilityOptions.wcagVersion','accessibilityOptions.scannerProcessingTimeout','BS_A11Y_JWT','deviceName','fOzxg','bxhjy','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','performScan','browserStackExecuteDriver','OSbrv','connectOptions','PJwkW','cEUcL','EEpHa','dlSxc','../../helpers/accessibility-automation/helper','JBCWp','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','accessibilityOptions.scannerVersion','iTSMf','latest','tXKQa','util','354300wXuRlY','whJCi','browser_version','warn','evaluate','PsYYs','browserStackEvaluate','lrsYf','9sEFGMH','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','LvLiE','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','wsEndpoint','1660444eYQKcn','ngHIi','WfFkd','No\x20summaryResults\x20found.','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','browserstack.accessibility','setAccessibilityCapabilities','scannerVersion','project','format','pyUed','SzwWl','jTxia','WebDriver','getAccessibilityResultsSummary','GxJtl','ebwkL','currentTest','error','../../helpers/accessibility-automation/scripts','7XewPTO','constructor','562476vbCrRe','ZdsVK','playwright-chromium','use','env','ZLwOr','2564889fbeqMr','hKAPd','rfTMG','scannerProcessingTimeout','accessibilityOptions.includeIssueType.needsReview','browser','stringify','accessibilityPlatform','accessibilityOptions.authToken','executeScript','debug','../../helpers/helper','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','TTTwF','winstonLogger','7696560oRBXbp','JRuyl','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','includeIssueType','vchTv'];a32_0x2a38=function(){return _0x3e5943;};return a32_0x2a38();}exports[a32_0x4f5892(0x129)]=async(_0x441e4e,_0x417e0b,_0x13ac84={})=>{const _0x57aebb=a32_0x4f5892,_0x3600d9={};_0x3600d9[_0x57aebb(0x13f)]=_0x57aebb(0x102);const _0x425599=_0x3600d9;return await _0x441e4e[_0x57aebb(0x127)]('(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'+_0x417e0b[_0x57aebb(0x105)](/arguments/g,_0x425599[_0x57aebb(0x13f)])+_0x57aebb(0x11d)+JSON['stringify'](_0x13ac84)+')');},exports[a32_0x4f5892(0x114)]=async(_0x5e53f6,_0x29d800,_0xa7ca5c={})=>{const _0x16e946=a32_0x4f5892,_0x11b00e={};_0x11b00e['jdzgb']=function(_0x4d4a31,_0x64363d){return _0x4d4a31===_0x64363d;},_0x11b00e[_0x16e946(0x12a)]=_0x16e946(0x13d),_0x11b00e[_0x16e946(0x147)]=function(_0x31f1cd,_0x5d894f){return _0x31f1cd===_0x5d894f;},_0x11b00e[_0x16e946(0x117)]='Playwright',_0x11b00e[_0x16e946(0x13a)]='bstackSdkArgs';const _0xcf88d8=_0x11b00e;if(_0xcf88d8['jdzgb'](_0x5e53f6[_0x16e946(0x145)][_0x16e946(0x100)],_0xcf88d8[_0x16e946(0x12a)]))return await _0x5e53f6['executeAsyncScript'](_0x29d800,_0xa7ca5c);else{if(_0xcf88d8[_0x16e946(0x147)](_0x5e53f6[_0x16e946(0x145)][_0x16e946(0x100)],_0xcf88d8[_0x16e946(0x117)]))return await _0x5e53f6[_0x16e946(0xed)]('(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'+_0x29d800[_0x16e946(0x105)](/arguments/g,_0xcf88d8[_0x16e946(0x13a)])+_0x16e946(0x112)+JSON[_0x16e946(0xea)](_0xa7ca5c)+')');}},exports[a32_0x4f5892(0x136)]=async _0x1dfa98=>{const _0x550e4c=a32_0x4f5892,_0x9cddb7={};_0x9cddb7[_0x550e4c(0x11c)]=_0x550e4c(0x10b),_0x9cddb7[_0x550e4c(0x12d)]=_0x550e4c(0x10c),_0x9cddb7[_0x550e4c(0x14e)]='accessibilityOptions.includeIssueType.bestPractice',_0x9cddb7[_0x550e4c(0x14b)]=_0x550e4c(0xe8),_0x9cddb7[_0x550e4c(0x131)]=_0x550e4c(0xec),_0x9cddb7['jRRwD']=_0x550e4c(0x11e);const _0x2b7120=_0x9cddb7;_0x1dfa98[_0x550e4c(0x108)]&&(_0x1dfa98[_0x550e4c(0x108)]['wcagVersion']&&(_0x1dfa98[_0x2b7120['JBCWp']]=_0x1dfa98[_0x550e4c(0x108)][_0x550e4c(0xfb)]),_0x1dfa98['accessibilityOptions'][_0x550e4c(0xe7)]&&(_0x1dfa98[_0x2b7120['LvLiE']]=_0x1dfa98[_0x550e4c(0x108)][_0x550e4c(0xe7)]),_0x1dfa98[_0x550e4c(0x108)][_0x550e4c(0xf6)]&&(_0x1dfa98[_0x2b7120[_0x550e4c(0x14e)]]=_0x1dfa98[_0x550e4c(0x108)][_0x550e4c(0xf6)][_0x550e4c(0xfe)],_0x1dfa98[_0x2b7120[_0x550e4c(0x14b)]]=_0x1dfa98[_0x550e4c(0x108)][_0x550e4c(0xf6)]['needsReview']));const _0x4b4841=JSON[_0x550e4c(0x101)](process[_0x550e4c(0x14a)][_0x550e4c(0x12e)])[_0x550e4c(0x137)];_0x1dfa98[_0x2b7120['ngHIi']]=process[_0x550e4c(0x14a)][_0x550e4c(0x10d)],_0x1dfa98[_0x2b7120['jRRwD']]=_0x4b4841,delete _0x1dfa98['accessibilityOptions'];},exports['getAccessibilityResults']=async _0x4ac797=>{const _0x4cb904=a32_0x4f5892,_0x5f41e7={};_0x5f41e7[_0x4cb904(0x124)]='No\x20accessibility\x20results\x20were\x20found.',_0x5f41e7[_0x4cb904(0x11a)]='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.';const _0x535530=_0x5f41e7;if(global[_0x4cb904(0xeb)])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x4ac797,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x4ac797,scripts.getResults);return res;}catch{return logger[_0x4cb904(0x142)](_0x535530[_0x4cb904(0x124)]),[];}else return logger[_0x4cb904(0x126)](_0x535530[_0x4cb904(0x11a)]),[];},exports['performScan']=async(_0x31eaa3,_0x1259f1='')=>{const _0x2cbd9b=a32_0x4f5892;if(global['accessibilityPlatform']){const _0x4f231f={};return _0x4f231f[_0x2cbd9b(0xf8)]=_0x1259f1,await exports[_0x2cbd9b(0x129)](_0x31eaa3,scripts[_0x2cbd9b(0x113)],_0x4f231f);}},exports[a32_0x4f5892(0x13e)]=async _0x50750a=>{const _0x3bb8db=a32_0x4f5892,_0x1f0546={};_0x1f0546[_0x3bb8db(0x14d)]=_0x3bb8db(0x133),_0x1f0546['hBbDJ']=_0x3bb8db(0xf5);const _0x1443b2=_0x1f0546;if(global[_0x3bb8db(0xeb)])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x50750a,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x50750a,scripts.getResultsSummary);return summaryResults;}catch{return logger['debug'](_0x1443b2[_0x3bb8db(0x14d)]),{};}else return logger[_0x3bb8db(0x126)](_0x1443b2[_0x3bb8db(0xf9)]),{};},exports['platformValidation']=async _0x426ad5=>{const _0x4319af=a32_0x4f5892,_0x572894={'aWyHD':function(_0x28bd8b,_0x2bfb8b){return _0x28bd8b!==_0x2bfb8b;},'OSbrv':_0x4319af(0xf0),'PsYYs':function(_0x3f32b0,_0x3d2f63){return _0x3f32b0===_0x3d2f63;},'BFZHY':'chrome','ebwkL':_0x4319af(0x148),'iTSMf':_0x4319af(0xff),'tXKQa':function(_0x1807e7,_0x4255b3){return _0x1807e7(_0x4255b3);},'ZFrov':'latest','jTxia':function(_0x1b9ef7,_0x540278){return _0x1b9ef7>_0x540278;},'qEotB':_0x4319af(0x134)};try{if(!_0x572894[_0x4319af(0x106)](_0x426ad5[_0x4319af(0x10e)],''))return logger[_0x4319af(0x126)](_0x572894[_0x4319af(0x115)]),![];const _0x56c02d=_0x426ad5[_0x4319af(0xe9)];if(!(_0x572894['PsYYs'](_0x56c02d,_0x572894[_0x4319af(0xfd)])||_0x572894[_0x4319af(0x128)](_0x56c02d,_0x572894[_0x4319af(0x140)])))return logger[_0x4319af(0x126)](_0x572894[_0x4319af(0x11f)]),![];const _0x434ef5=_0x572894[_0x4319af(0x121)](parseInt,_0x426ad5[_0x4319af(0x125)]);if(!(_0x572894[_0x4319af(0x128)](_0x434ef5,_0x572894['ZFrov'])||_0x572894[_0x4319af(0x13c)](_0x434ef5,0x5e)))return logger[_0x4319af(0x126)](_0x572894['qEotB']),![];}catch(_0x3cd81b){logger[_0x4319af(0xee)](_0x4319af(0x111)+util[_0x4319af(0x139)](_0x3cd81b));}return!![];},exports[a32_0x4f5892(0x107)]=(_0x4d8f41,_0x476d24,_0x1e794f)=>{const _0x333a55=a32_0x4f5892,_0x2e5086={'SzwWl':function(_0x1bd2c0){return _0x1bd2c0();},'EEpHa':_0x333a55(0x135),'WfFkd':function(_0x35718b,_0xe5b09a){return _0x35718b===_0xe5b09a;},'bxhjy':_0x333a55(0xfa),'JRuyl':function(_0x296da4,_0x5e51ee){return _0x296da4===_0x5e51ee;},'SghgZ':'playwright-chromium','LnrtX':_0x333a55(0xff),'cEUcL':_0x333a55(0x120),'jUVNK':function(_0x49b02e,_0x3baf94){return _0x49b02e>_0x3baf94;},'fOzxg':_0x333a55(0x134),'TTTwF':function(_0x89bfd1,_0x43eb75){return _0x89bfd1(_0x43eb75);},'vchTv':_0x333a55(0xf0),'URlcd':function(_0x566e9f,_0x5daebc){return _0x566e9f+_0x5daebc;}};try{if(_0x2e5086[_0x333a55(0x13b)](isAccessibilityAutomationSession)){global[_0x333a55(0xeb)]=!![];!_0x4d8f41[_0x2e5086[_0x333a55(0x119)]]&&(global[_0x333a55(0xeb)]=![]);!(_0x2e5086[_0x333a55(0x132)](_0x4d8f41['browserName'],_0x2e5086[_0x333a55(0x110)])||_0x2e5086['JRuyl'](_0x4d8f41['browserName'],_0x2e5086['SghgZ']))&&(logger[_0x333a55(0x126)](_0x2e5086[_0x333a55(0x109)]),global[_0x333a55(0xeb)]=![]);!(_0x2e5086[_0x333a55(0xf4)](_0x4d8f41['browser_version'],_0x2e5086[_0x333a55(0x118)])||_0x2e5086[_0x333a55(0x103)](_0x4d8f41[_0x333a55(0x125)],0x5e))&&(logger[_0x333a55(0x126)](_0x2e5086[_0x333a55(0x10f)]),global[_0x333a55(0xeb)]=![]);!_0x2e5086['TTTwF'](isUndefined,_0x4d8f41['deviceName'])&&(logger[_0x333a55(0x126)](_0x2e5086[_0x333a55(0xf7)]),global[_0x333a55(0xeb)]=![]);if(!global[_0x333a55(0xeb)]){_0x4d8f41[_0x2e5086[_0x333a55(0x119)]]=![];const _0x14a517=_0x2e5086['URlcd'](_0x476d24,_0x2e5086[_0x333a55(0xf1)](encodeURIComponent,JSON[_0x333a55(0xea)](_0x4d8f41)));_0x1e794f&&(_0x1e794f[_0x333a55(0x141)]['testInfo'][_0x333a55(0x138)][_0x333a55(0x149)][_0x333a55(0x116)][_0x333a55(0x12f)]=_0x14a517);}}}catch(_0x25a60f){logger[_0x333a55(0xee)](_0x333a55(0x12c)+util[_0x333a55(0x139)](_0x25a60f));}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';function a33_0x8582(){const _0x157099=['includes','4556160RrQCrE','5|4|3|1|0|6|2|7','BROWSERSTACK_TEST_ACCESSIBILITY_YML','BROWSERSTACK_PW_CONFIG_DIR','NgGYw','paths','testDir','browserstackSetupConfig.json','JPqcx','EBIzU','../../helpers/test-observability/utils','isUndefined','env','LXkuC','info','markSDKSetupComplete','apply','hqhfI','fGdRW','launchBuild','pilPU','unlinkSync','../../helpers/testhub/constants','push','hCGFh','./globalSetup.js','respectGitIgnore','winstonLogger','DNEbx','AXGKq','has','CTRPP','startsWith','isFalse','../../helpers/test-observability/constants','GoWxS','stringify','OBSERVABILITY','DsByl','testObservability','length','Getting\x20your\x20playwright\x20config\x20from\x20','../../helpers/test-observability/error-handler','../../helpers/testhub/utils','getPackageType','ZtXVi','6710648CMtKTn','globalSetup','test','win32','skipSessionStatus','koCAV','66858255QHeBGR','UzUwa','skipSessionName','map','xDefa','bpnKO','BROWSERSTACK_AUTOMATION','logLevel','string','object','--disable-browserstack-automation','nHmBQ','testMatch','LNQzU','ujaXl','TczbW','indexOf','Error\x20in\x20generating\x20parallellised\x20config\x20for\x20playwright:\x20','ukmGT','kkpXw','Deleting\x20','EeEsN','BrowserStack\x20config\x20file\x20not\x20found.','ivTjT','OXZKo','inherit','writeFileSync','ZvCrQ','resolve','../../helpers/logger','YhIov','playwright-browserstack-sdk.config.cjs','config','testIgnore','get','./reporter/reporter.js','error','ihOIf','BqoLd','bbNOv','argv','Error\x20in\x20closing\x20playwright','Error\x20in\x20running\x20user\x20global\x20setup\x20for\x20playwright','tbOae','yvLfB','--config','project','981671OvHhkW','parse','cliConfig','--config=','concat','slice','../../helpers/test-observability/sessionHandler','xYDNn','sxJLB','findIndex','../../helpers/helper','vZOXJ','tuIyx','BROWSERSTACK_RERUN','IvYkb','QnfMk','qBqnU','xqoWZ','false','existsSync','BROWSERSTACK_TEST_OBSERVABILITY','accessibilityOptions','SMsRl','Error\x20in\x20importing\x20your\x20playwright\x20config:\x20','debug','8aCcrjl','szCqS','dirname','MODULE','Adding\x20browserstack\x20configs\x20to\x20setup\x20for\x20Observability','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','--grep','pjmDj','gIiKr','util','BROWSERSTACK_SETUP_CONFIG_PATH','jiRUq','\x0a\x0aconst\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0amodule.exports\x20=\x20modifyPWConfig();\x0a','LYeZP','serializeToYamlString','../../helpers/testhub/testhubHandler','ZPxOt','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','wYTby','--disable-test-observability','Error\x20in\x20getting\x20funnel\x20data\x20results','iRVbg','BVLwZ','USER_CONFIG_DETAILS_PATH','250662pYTwlk','child_process','../../helpers/BrowserStackSetup','zhbQU','gYeiG','filter','TXPGx','503306ihvvDr','Xjfuy','isTrue','platform','exports','playwright','zsYSS','join','\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();','iJPJG','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','RfHyc','xUwjx','RIEXB','cTcCv','filterBrowserstackConfig','PLAYWRIGHT','./reporter/pwUtils','playwright-browserstack-sdk.config.js','readFileSync','null','errorMessage','trim','split','SDiJr','default','finalExecution','rezYb','205YlJKum','NzYGR','nestedKeyValue','requirePWModule','Jmjcb','cwd','accessibility','_internal','initialize','5748281SVOszq','../utils/constants','homedir','assign','MVSQQ','hGjBd','path','collectFilesForProject','gOroi','Can\x27t\x20get\x20user\x20defined\x20global\x20setup\x20file'];a33_0x8582=function(){return _0x157099;};return a33_0x8582();}const a33_0xff277f=a33_0x418b;(function(_0x1a138b,_0x4d6ef3){const _0x42fd7f=a33_0x418b,_0x36a9dd=_0x1a138b();while(!![]){try{const _0x246f5d=-parseInt(_0x42fd7f(0x218))/0x1+parseInt(_0x42fd7f(0x250))/0x2+-parseInt(_0x42fd7f(0x280))/0x3+-parseInt(_0x42fd7f(0x2ae))/0x4+-parseInt(_0x42fd7f(0x26c))/0x5*(parseInt(_0x42fd7f(0x249))/0x6)+-parseInt(_0x42fd7f(0x275))/0x7+-parseInt(_0x42fd7f(0x231))/0x8*(-parseInt(_0x42fd7f(0x1e9))/0x9);if(_0x246f5d===_0x4d6ef3)break;else _0x36a9dd['push'](_0x36a9dd['shift']());}catch(_0x152b1a){_0x36a9dd['push'](_0x36a9dd['shift']());}}}(a33_0x8582,0xec63f));function a33_0x418b(_0x17ce30,_0x5eb907){const _0x8582e0=a33_0x8582();return a33_0x418b=function(_0x418b78,_0x39d4d5){_0x418b78=_0x418b78-0x1e6;let _0x25ce4f=_0x8582e0[_0x418b78];return _0x25ce4f;},a33_0x418b(_0x17ce30,_0x5eb907);}const fs=require('fs'),path=require(a33_0xff277f(0x27b)),os=require('os'),{spawn}=require(a33_0xff277f(0x24a)),{format}=require(a33_0xff277f(0x23a)),logger=require(a33_0xff277f(0x206))[a33_0xff277f(0x29b)],{default:BrowserStackSetup}=require(a33_0xff277f(0x24b)),helper=require(a33_0xff277f(0x222)),constants=require(a33_0xff277f(0x276)),{FRAMEWORKS}=require(a33_0xff277f(0x2a2)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require(a33_0xff277f(0x261)),{CrashReporter,o11yErrorHandler}=require(a33_0xff277f(0x2aa)),{getFrameworkVersion}=require(a33_0xff277f(0x28a)),{createAccessibilityTestRun,stopAccessibilityTestRun,checkAccessibilityPlatformConfig}=require('../../helpers/accessibility-automation/helper'),{setAccessibilityCapabilities}=require('./accessibility-helper'),SessionHandler=require(a33_0xff277f(0x21e)),TestHubHandler=require(a33_0xff277f(0x240)),testHubConstants=require(a33_0xff277f(0x296)),{shouldProcessEventForTesthub}=require(a33_0xff277f(0x2ab));async function requireOrImportDefaultObject(_0x32e6ba){const _0x4c61ab=a33_0xff277f,_0x8d8374={'BqoLd':function(_0x4977a5){return _0x4977a5();},'dMVQu':function(_0x59cbd1,_0x11397b){return _0x59cbd1(_0x11397b);},'vwkBG':function(_0x395b76,_0x13e306){return _0x395b76===_0x13e306;},'JPqcx':'object','tbOae':function(_0x1e5040,_0x1925a1){return _0x1e5040 in _0x1925a1;},'Xjfuy':_0x4c61ab(0x269)},{requireOrImport:_0x3d9e7d}=helper[_0x4c61ab(0x26f)]['apply'](null,_0x8d8374[_0x4c61ab(0x20f)](getTransformPath));let _0x2df7f3=await _0x8d8374['dMVQu'](_0x3d9e7d,_0x32e6ba);return _0x2df7f3&&_0x8d8374['vwkBG'](typeof _0x2df7f3,_0x8d8374[_0x4c61ab(0x288)])&&_0x8d8374[_0x4c61ab(0x214)](_0x8d8374[_0x4c61ab(0x251)],_0x2df7f3)&&(_0x2df7f3=_0x2df7f3[_0x8d8374[_0x4c61ab(0x251)]]),_0x2df7f3;}const getUserPlaywrightConfig=async(_0x2a12a5,_0x3c9f3f)=>{const _0x5bc4b2=a33_0xff277f,_0xe076fd={'ZPxOt':function(_0x4390ad){return _0x4390ad();},'BVLwZ':function(_0xe12d99,_0x23d1f5){return _0xe12d99(_0x23d1f5);},'qMHTj':function(_0x5a2c71,_0x3a3d04){return _0x5a2c71(_0x3a3d04);},'ujaXl':'resolvedConfigFile','MVSQQ':function(_0x1ecb8a,_0x3e2c91){return _0x1ecb8a(_0x3e2c91);},'LNQzU':function(_0x15321c,_0x1a29b3){return _0x15321c+_0x1a29b3;},'oeoUn':_0x5bc4b2(0x22f),'DNEbx':'Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','sxJLB':_0x5bc4b2(0x21b)},_0x14df9a=!helper[_0x5bc4b2(0x28b)](_0x2a12a5[_0x5bc4b2(0x209)]),_0x373942=_0x14df9a?path[_0x5bc4b2(0x205)](process['cwd'](),_0x2a12a5['config']):process['cwd'](),{resolveConfigFile:_0x30aee1,resolveConfigLocation:_0x12ed3c}=helper[_0x5bc4b2(0x26f)][_0x5bc4b2(0x290)](null,_0xe076fd[_0x5bc4b2(0x241)](getConfigLoaderPath)),_0x596c77=_0x30aee1?_0xe076fd[_0x5bc4b2(0x247)](_0x30aee1,_0x373942):helper[_0x5bc4b2(0x26e)](_0xe076fd['qMHTj'](_0x12ed3c,_0x373942),[_0xe076fd[_0x5bc4b2(0x1f7)]]);let _0xf0ee01={};if(_0x596c77){logger[_0x5bc4b2(0x28e)](_0x5bc4b2(0x2a9)+_0x596c77);try{_0xf0ee01=await _0xe076fd[_0x5bc4b2(0x279)](requireOrImportDefaultObject,_0x596c77);}catch(_0x556af6){return logger['error'](_0xe076fd[_0x5bc4b2(0x1f6)](_0xe076fd['oeoUn'],_0xe076fd['MVSQQ'](format,_0x556af6))),null;}}else logger[_0x5bc4b2(0x28e)](_0xe076fd[_0x5bc4b2(0x29c)]);if(_0x14df9a){const _0x2c090d=_0x3c9f3f[_0x5bc4b2(0x221)](_0x342d72=>_0x342d72==='--config'||_0x342d72==='-c'||_0x342d72[_0x5bc4b2(0x2a0)](_0x5bc4b2(0x21b)));_0x3c9f3f['splice'](_0x2c090d,_0x3c9f3f[_0x2c090d][_0x5bc4b2(0x2a0)](_0xe076fd[_0x5bc4b2(0x220)])?0x1:0x2);}const _0x2ba26a={};return _0x2ba26a['path']=_0x596c77,_0x2ba26a['config']=_0xf0ee01,_0x2ba26a;},setGlobalSetup=(_0x4ba346,_0x2533c0)=>{const _0x422ec0=a33_0xff277f,_0x2ca359={'gIiKr':_0x422ec0(0x2af),'EBIzU':_0x422ec0(0x27e),'hqhfI':function(_0x5460b0,_0x1196f5){return _0x5460b0+_0x1196f5;},'lTRgt':_0x422ec0(0x213),'JMvoJ':function(_0x2dd0ef,_0x59f4fd){return _0x2dd0ef(_0x59f4fd);},'iRVbg':_0x422ec0(0x299)};if(!_0x4ba346)return![];try{if(_0x4ba346[_0x422ec0(0x2af)]){let _0x5d0d85;const _0x1dc161=path[_0x422ec0(0x205)](_0x2533c0,_0x4ba346[_0x2ca359[_0x422ec0(0x239)]]);if(fs[_0x422ec0(0x22b)](_0x1dc161))_0x5d0d85=_0x1dc161;else{const _0x53e0e1={};_0x53e0e1[_0x422ec0(0x285)]=[_0x2533c0],_0x5d0d85=require[_0x422ec0(0x205)](_0x4ba346[_0x2ca359[_0x422ec0(0x239)]],_0x53e0e1);}if(!_0x5d0d85)throw new Error(_0x2ca359[_0x422ec0(0x289)]);process[_0x422ec0(0x28c)][_0x422ec0(0x25a)]=_0x5d0d85;}}catch(_0x13746c){logger[_0x422ec0(0x20d)](_0x2ca359[_0x422ec0(0x291)](_0x2ca359['lTRgt'],_0x2ca359['JMvoJ'](format,_0x13746c)));}return _0x4ba346[_0x422ec0(0x2af)]=require['resolve'](_0x2ca359[_0x422ec0(0x246)]),!![];},addReporter=_0x542477=>{const _0x5478fd=a33_0xff277f,_0x47f16b={};_0x47f16b['Jmjcb']=_0x5478fd(0x20c),_0x47f16b[_0x5478fd(0x27d)]='reporter',_0x47f16b[_0x5478fd(0x26d)]=function(_0x42c846,_0x3e4d62){return _0x42c846===_0x3e4d62;},_0x47f16b['TXPGx']=_0x5478fd(0x1f1),_0x47f16b[_0x5478fd(0x28d)]=_0x5478fd(0x1f2);const _0x2aeb8b=_0x47f16b,_0x252381=path[_0x5478fd(0x257)](__dirname,_0x2aeb8b[_0x5478fd(0x270)]),_0x4b5d89=[_0x252381];if(helper[_0x5478fd(0x28b)](_0x542477[_0x2aeb8b[_0x5478fd(0x27d)]]))_0x542477[_0x2aeb8b[_0x5478fd(0x27d)]]=[_0x4b5d89];else{if(_0x2aeb8b['NzYGR'](typeof _0x542477[_0x2aeb8b[_0x5478fd(0x27d)]],_0x2aeb8b[_0x5478fd(0x24f)]))_0x542477[_0x2aeb8b[_0x5478fd(0x27d)]]=[[_0x542477[_0x2aeb8b['gOroi']]],_0x4b5d89];else _0x2aeb8b[_0x5478fd(0x26d)](typeof _0x542477[_0x2aeb8b[_0x5478fd(0x27d)]],_0x2aeb8b[_0x5478fd(0x28d)])&&_0x542477[_0x2aeb8b['gOroi']][_0x5478fd(0x297)](_0x4b5d89);}},handleO11yRerun=_0x525781=>{const _0x5a486e=a33_0xff277f,_0xe7bf5d={};_0xe7bf5d[_0x5a486e(0x298)]=function(_0x785a32,_0xdab5fb){return _0x785a32!==_0xdab5fb;},_0xe7bf5d['ftpYI']=_0x5a486e(0x264),_0xe7bf5d[_0x5a486e(0x294)]=_0x5a486e(0x237);const _0x354e9a=_0xe7bf5d,_0x6c801a=helper[_0x5a486e(0x252)](process[_0x5a486e(0x28c)][_0x5a486e(0x225)]);if(_0x6c801a){const _0x29023b=process[_0x5a486e(0x28c)]['BROWSERSTACK_RERUN_TESTS'],_0x222fdd=[];if(_0x354e9a['hCGFh'](_0x29023b,_0x354e9a['ftpYI'])&&!helper['isUndefined'](_0x29023b)){_0x29023b[_0x5a486e(0x267)](',')[_0x5a486e(0x1ec)](_0x16b98c=>{const _0x405fd6=_0x5a486e;_0x222fdd[_0x405fd6(0x297)]('('+_0x16b98c[_0x405fd6(0x266)]()+')');});const _0x14a5a8='^'+_0x222fdd[_0x5a486e(0x257)]('|')+'$';_0x525781[_0x5a486e(0x297)](_0x354e9a[_0x5a486e(0x294)],_0x14a5a8);}}},spawnOriginalProcess=_0x422c21=>{const _0x1dfe1b=a33_0xff277f,_0x316180={'oKBGo':function(_0x5cc55a,_0x30f9eb,_0x1aacc0,_0x342ba6){return _0x5cc55a(_0x30f9eb,_0x1aacc0,_0x342ba6);},'ihOIf':'npx','vZOXJ':_0x1dfe1b(0x255),'AXGKq':function(_0x1c89fe,_0x327e36){return _0x1c89fe===_0x327e36;},'ekSwu':_0x1dfe1b(0x1e6),'jiRUq':_0x1dfe1b(0x202)};_0x316180['oKBGo'](spawn,_0x316180[_0x1dfe1b(0x20e)],[_0x316180[_0x1dfe1b(0x223)],..._0x422c21['slice'](0x1)],{'shell':_0x316180[_0x1dfe1b(0x29d)](process['platform'],_0x316180['ekSwu']),'stdio':_0x316180[_0x1dfe1b(0x23c)],'cwd':process[_0x1dfe1b(0x271)]()});},isTestCommand=(_0x560f26,_0x164057)=>{const _0x277d5f=a33_0xff277f,_0x23065c={};_0x23065c['CTRPP']=function(_0x520f80,_0x3cc992){return _0x520f80>_0x3cc992;},_0x23065c[_0x277d5f(0x200)]=function(_0x4698ac,_0x2f89f8){return _0x4698ac===_0x2f89f8;},_0x23065c[_0x277d5f(0x284)]=_0x277d5f(0x2b0);const _0x42819e=_0x23065c;if(_0x42819e[_0x277d5f(0x29f)](_0x164057[_0x277d5f(0x2a8)],0x1)&&_0x42819e['ivTjT'](_0x164057[0x1],_0x42819e[_0x277d5f(0x284)]))return!![];return![];},initO11yCrashReporter=(_0x40dac7,_0x3c9847)=>{const _0x4814bf=a33_0xff277f,_0x531c79={'TSRua':function(_0x566aa7,_0x3c318){return _0x566aa7(_0x3c318);}},_0x35bf98={'frameworkName':FRAMEWORKS[_0x4814bf(0x260)],'frameworkVersion':_0x531c79['TSRua'](getFrameworkVersion,FRAMEWORKS['PLAYWRIGHT'])};CrashReporter[_0x4814bf(0x274)](_0x35bf98,_0x40dac7,_0x3c9847);},launchO11ySession=o11yErrorHandler(async function launchO11ySession(_0x523390){const _0x40f963=a33_0xff277f,_0x502fb8={};_0x502fb8[_0x40f963(0x1f4)]=function(_0x3d2e4a,_0x57da64){return _0x3d2e4a>_0x57da64;},_0x502fb8[_0x40f963(0x256)]=function(_0x5eeb91,_0x3cf0e1){return _0x5eeb91===_0x3cf0e1;};const _0x253ccf=_0x502fb8;if(!_0x523390||_0x253ccf['nHmBQ'](_0x523390[_0x40f963(0x2a8)],0x1)&&_0x253ccf[_0x40f963(0x256)](_0x523390[0x0],null))return process[_0x40f963(0x28c)]['BROWSERSTACK_TEST_OBSERVABILITY']=![],![];return!![];});async function run(_0x249726,_0x5f3a17){const _0x5b0b02=a33_0xff277f,_0x5b5f14={'pjmDj':'.browserstack','RIEXB':'pw_result.json','IvYkb':function(_0xd88042,_0x4f0bf3){return _0xd88042+_0x4f0bf3;},'pNPzz':_0x5b0b02(0x245),'LYeZP':_0x5b0b02(0x281),'xDefa':function(_0x1fb2b7){return _0x1fb2b7();},'EeEsN':function(_0x155070,_0x62a55d){return _0x155070+_0x62a55d;},'zZfjF':_0x5b0b02(0x212),'RfHyc':_0x5b0b02(0x1f3),'TczbW':_0x5b0b02(0x22a),'rezYb':'--disable-test-observability','GoWxS':function(_0x3b93fa,_0x16dc62){return _0x3b93fa>=_0x16dc62;},'tuIyx':function(_0x1508de,_0x2d69f0){return _0x1508de+_0x2d69f0;},'MlXIv':'Error\x20in\x20deleting\x20playwright\x20results','UzUwa':function(_0xd71cc9,_0x42c995,_0x493a4d){return _0xd71cc9(_0x42c995,_0x493a4d);},'xqoWZ':function(_0x5a226b,_0x3a01db){return _0x5a226b(_0x3a01db);},'SMsRl':_0x5b0b02(0x1ff),'xYDNn':'automation','OXZKo':function(_0x404227,_0x3c508a){return _0x404227!=_0x3c508a;},'xUwjx':function(_0x5c2614,_0x79c1c1,_0x2b4d91){return _0x5c2614(_0x79c1c1,_0x2b4d91);},'kkpXw':_0x5b0b02(0x235),'OaPUi':function(_0x4e3873,_0x4aed4f,_0x3e4291){return _0x4e3873(_0x4aed4f,_0x3e4291);},'gYeiG':function(_0x32cb80,_0x3a3cc5){return _0x32cb80(_0x3a3cc5);},'NSoFQ':function(_0xf1bf76,_0x449b78){return _0xf1bf76(_0x449b78);},'bpnKO':function(_0x1fec1c,_0x448279){return _0x1fec1c(_0x448279);},'szCqS':function(_0x343e21,_0x4bb946){return _0x343e21===_0x4bb946;},'ukmGT':'true','CvmqE':function(_0x2f1305,_0x5d2496){return _0x2f1305(_0x5d2496);},'QnfMk':_0x5b0b02(0x287),'ZvCrQ':function(_0x1fec5c){return _0x1fec5c();},'zhbQU':'testDir','bbNOv':_0x5b0b02(0x1f5),'koCAV':'testIgnore','cTcCv':_0x5b0b02(0x1fa),'YhIov':_0x5b0b02(0x208),'yvLfB':_0x5b0b02(0x262),'qBqnU':function(_0x2d0950,_0x423de7){return _0x2d0950>_0x423de7;},'ZIWGK':function(_0x419967,_0x2256c6,_0xafd112,_0x588751){return _0x419967(_0x2256c6,_0xafd112,_0x588751);},'iJPJG':'npx','hGjBd':'playwright','SDiJr':'test','ZtXVi':_0x5b0b02(0x216),'DsByl':function(_0x49d7e6,_0x45a26e){return _0x49d7e6===_0x45a26e;},'abMLR':_0x5b0b02(0x1e6),'wYTby':_0x5b0b02(0x202),'fGdRW':'close'};!helper[_0x5b0b02(0x2a1)](process['env'][_0x5b0b02(0x1ef)])&&(process[_0x5b0b02(0x28c)][_0x5b0b02(0x1ef)]=!![]);process[_0x5b0b02(0x211)][_0x5b0b02(0x27f)](_0x5b5f14[_0x5b0b02(0x25b)])&&(process[_0x5b0b02(0x28c)][_0x5b0b02(0x1ef)]=_0x5b5f14['TczbW'],_0x5f3a17=_0x5f3a17[_0x5b0b02(0x24e)](_0x102134=>_0x102134!=='--disable-browserstack-automation'));const _0x37ca21=_0x5f3a17[_0x5b0b02(0x1f9)](_0x5b5f14[_0x5b0b02(0x26b)]);_0x5b5f14[_0x5b0b02(0x2a3)](_0x37ca21,0x0)&&(process[_0x5b0b02(0x28c)][_0x5b0b02(0x22c)]=_0x5b5f14[_0x5b0b02(0x1f8)],_0x5f3a17=_0x5f3a17[_0x5b0b02(0x24e)](_0x44f3b3=>_0x44f3b3!==_0x5b0b02(0x244)));try{const _0x362e31=path['join'](helper[_0x5b0b02(0x277)](),_0x5b5f14[_0x5b0b02(0x238)],_0x5b5f14[_0x5b0b02(0x25d)]);fs['existsSync'](_0x362e31)&&fs['unlinkSync'](_0x362e31);}catch(_0x8d7caf){logger[_0x5b0b02(0x230)](_0x5b5f14[_0x5b0b02(0x224)](_0x5b5f14['MlXIv'],_0x8d7caf));}if(!_0x5b5f14[_0x5b0b02(0x1ea)](isTestCommand,_0x249726,_0x5f3a17)){_0x5b5f14[_0x5b0b02(0x229)](spawnOriginalProcess,_0x5f3a17);return;}const _0x590f07=new BrowserStackSetup(_0x249726,FRAMEWORKS[_0x5b0b02(0x260)]);if(!_0x590f07[_0x5b0b02(0x209)]){logger[_0x5b0b02(0x20d)](_0x5b5f14[_0x5b0b02(0x22e)]);return;}await _0x590f07[_0x5b0b02(0x274)]();!helper[_0x5b0b02(0x28b)](_0x590f07[_0x5b0b02(0x21a)])&&_0x590f07[_0x5b0b02(0x21a)][_0x5b0b02(0x29e)](_0x5b5f14[_0x5b0b02(0x21f)])&&(process['env']['BROWSERSTACK_AUTOMATION']=_0x590f07[_0x5b0b02(0x21a)][_0x5b0b02(0x20b)](_0x5b5f14[_0x5b0b02(0x21f)])||!![]);_0x5b5f14[_0x5b0b02(0x201)](_0x590f07[_0x5b0b02(0x209)][_0x5b0b02(0x2a7)],null)&&!helper['isTrue'](process['env']['BROWSERSTACK_TEST_OBSERVABILITY'])&&(process[_0x5b0b02(0x28c)][_0x5b0b02(0x22c)]=process[_0x5b0b02(0x28c)][_0x5b0b02(0x22c)]||_0x590f07['config'][_0x5b0b02(0x2a7)]);const _0x574ed4=!helper[_0x5b0b02(0x2a1)](process[_0x5b0b02(0x28c)][_0x5b0b02(0x22c)]);let _0x192d47=![];_0x590f07[_0x5b0b02(0x209)][_0x5b0b02(0x272)]&&(_0x192d47=!![],process[_0x5b0b02(0x28c)][_0x5b0b02(0x282)]=_0x590f07[_0x5b0b02(0x209)][_0x5b0b02(0x272)]);_0x590f07['config'][_0x5b0b02(0x22d)]&&(process[_0x5b0b02(0x28c)][_0x5b0b02(0x242)]=JSON[_0x5b0b02(0x2a4)](_0x590f07[_0x5b0b02(0x209)][_0x5b0b02(0x22d)]));const _0x16a338=_0x5f3a17[_0x5b0b02(0x21c)](),_0x3b15cb=await _0x5b5f14[_0x5b0b02(0x1ea)](getUserPlaywrightConfig,_0x249726,_0x5f3a17);if(helper['isUndefined'](_0x3b15cb)){_0x5b5f14[_0x5b0b02(0x229)](spawnOriginalProcess,_0x16a338);return;}const _0x1a701e={..._0x3b15cb[_0x5b0b02(0x209)]},_0x983703=_0x1a701e,_0x4dddac=_0x3b15cb[_0x5b0b02(0x27b)]?path[_0x5b0b02(0x233)](_0x3b15cb[_0x5b0b02(0x27b)]):process[_0x5b0b02(0x271)]();process[_0x5b0b02(0x28c)][_0x5b0b02(0x283)]=_0x4dddac;if(!_0x5b5f14[_0x5b0b02(0x25c)](setGlobalSetup,_0x983703,_0x4dddac)){_0x5b5f14[_0x5b0b02(0x229)](spawnOriginalProcess,_0x16a338);return;}const _0x3dec8e=await TestHubHandler[_0x5b0b02(0x293)](FRAMEWORKS[_0x5b0b02(0x260)],_0x590f07);_0x574ed4&&(logger[_0x5b0b02(0x28e)](_0x5b5f14[_0x5b0b02(0x1fc)]),_0x5b5f14['OaPUi'](initO11yCrashReporter,_0x983703,_0x590f07[_0x5b0b02(0x209)]),_0x5b5f14['gYeiG'](handleO11yRerun,_0x5f3a17),await _0x5b5f14['NSoFQ'](launchO11ySession,_0x3dec8e[testHubConstants[_0x5b0b02(0x2a5)]]));_0x5b5f14[_0x5b0b02(0x1ed)](shouldProcessEventForTesthub)&&_0x5b5f14[_0x5b0b02(0x1ee)](addReporter,_0x983703);let _0x3a38ee=_0x5b5f14[_0x5b0b02(0x232)](process['env'][_0x5b0b02(0x282)],_0x5b5f14[_0x5b0b02(0x1fb)]);_0x3a38ee=_0x3a38ee||_0x5b5f14[_0x5b0b02(0x229)](checkAccessibilityPlatformConfig,_0x590f07[_0x5b0b02(0x209)]),process[_0x5b0b02(0x28c)][_0x5b0b02(0x282)]=_0x3a38ee;_0x3a38ee&&_0x5b5f14['CvmqE'](setAccessibilityCapabilities,_0x590f07['config']);const _0x587c74=path['join'](_0x3b15cb[_0x5b0b02(0x27b)]?path['dirname'](_0x3b15cb[_0x5b0b02(0x27b)]):process[_0x5b0b02(0x271)](),_0x5b5f14[_0x5b0b02(0x227)]);fs[_0x5b0b02(0x203)](_0x587c74,helper[_0x5b0b02(0x23f)](_0x590f07[_0x5b0b02(0x209)])),process[_0x5b0b02(0x28c)][_0x5b0b02(0x23b)]=_0x587c74,helper['clearTempPWConfig']();if(helper[_0x5b0b02(0x252)](process[_0x5b0b02(0x28c)]['BROWSERSTACK_AUTOMATION'])){let _0x2d39b6=[];try{const _0x104ffd=helper[_0x5b0b02(0x26f)][_0x5b0b02(0x290)](null,_0x5b5f14[_0x5b0b02(0x204)](getProjectUtilsPath)),_0x245dc8={};_0x245dc8[_0x5b0b02(0x29a)]=!![],_0x245dc8[_0x5b0b02(0x286)]='',_0x245dc8[_0x5b0b02(0x1f5)]='',_0x245dc8[_0x5b0b02(0x20a)]='';const _0x487b8c={};_0x487b8c['respectGitIgnore']=!![];const _0x47fb53={};_0x47fb53[_0x5b0b02(0x217)]=_0x245dc8,_0x47fb53[_0x5b0b02(0x273)]=_0x487b8c;let _0x6bff35=_0x47fb53;_0x983703[_0x5b5f14['zhbQU']]&&(_0x6bff35['project'][_0x5b5f14[_0x5b0b02(0x24c)]]=_0x983703[_0x5b5f14['zhbQU']]),_0x983703[_0x5b5f14[_0x5b0b02(0x210)]]&&(_0x6bff35[_0x5b0b02(0x217)][_0x5b5f14[_0x5b0b02(0x210)]]=_0x983703[_0x5b5f14['bbNOv']]),_0x983703[_0x5b5f14['koCAV']]&&(_0x6bff35[_0x5b0b02(0x217)][_0x5b5f14[_0x5b0b02(0x1e8)]]=_0x983703[_0x5b5f14[_0x5b0b02(0x1e8)]]),_0x6bff35=Object[_0x5b0b02(0x278)](_0x6bff35,_0x6bff35['project']),_0x2d39b6=await _0x104ffd[_0x5b0b02(0x27c)](_0x6bff35);}catch(_0x45fa87){logger[_0x5b0b02(0x230)](_0x5b5f14[_0x5b0b02(0x224)](_0x5b5f14[_0x5b0b02(0x25e)],_0x5b5f14[_0x5b0b02(0x24d)](format,_0x45fa87)));}}let _0x23e6e0='';_0x5b5f14[_0x5b0b02(0x232)](helper[_0x5b0b02(0x2ac)](),constants['PACKAGE_TYPE'][_0x5b0b02(0x234)])?_0x23e6e0=_0x5b5f14[_0x5b0b02(0x207)]:_0x23e6e0=_0x5b5f14[_0x5b0b02(0x215)];const _0x2c0e4f=path[_0x5b0b02(0x257)](_0x3b15cb[_0x5b0b02(0x27b)]?path[_0x5b0b02(0x233)](_0x3b15cb[_0x5b0b02(0x27b)]):process['cwd'](),_0x23e6e0);let _0x2e987a=_0x3b15cb[_0x5b0b02(0x27b)]?_0x3b15cb[_0x5b0b02(0x27b)]:'';_0x2e987a=_0x5b5f14[_0x5b0b02(0x228)](_0x2e987a[_0x5b0b02(0x2a8)],0x0)?path[_0x5b0b02(0x205)](_0x2e987a):'',process[_0x5b0b02(0x28c)][_0x5b0b02(0x248)]=_0x2e987a;let _0x46a272=_0x5b0b02(0x23d);const _0x57d3b6=helper['getProxyUrl'](_0x590f07[_0x5b0b02(0x209)]);_0x57d3b6&&(_0x46a272=_0x5b5f14[_0x5b0b02(0x1fe)](_0x5b0b02(0x236)+_0x57d3b6+_0x5b0b02(0x258),_0x46a272));helper[_0x5b0b02(0x25f)]({},_0x5f3a17),fs[_0x5b0b02(0x203)](_0x2c0e4f,_0x46a272),helper[_0x5b0b02(0x28f)]();const _0x5cea32=_0x5b5f14['ZIWGK'](spawn,_0x5b5f14[_0x5b0b02(0x259)],[_0x5b5f14[_0x5b0b02(0x27a)],_0x5b5f14[_0x5b0b02(0x268)],_0x5b5f14[_0x5b0b02(0x2ad)],_0x2c0e4f,..._0x5f3a17[_0x5b0b02(0x21d)](0x2)],{'shell':_0x5b5f14[_0x5b0b02(0x2a6)](process[_0x5b0b02(0x253)],_0x5b5f14['abMLR']),'stdio':_0x5b5f14[_0x5b0b02(0x243)],'cwd':process[_0x5b0b02(0x271)](),'env':Object[_0x5b0b02(0x278)]({},process['env'],{'BROWSERSTACK_CONFIG_FILE_PATH':helper['getConfigPath'](_0x249726),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x590f07[_0x5b0b02(0x209)]['testContextOptions'][_0x5b0b02(0x1e7)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x590f07['config']['testContextOptions'][_0x5b0b02(0x1eb)],'BROWSERSTACK_LOG_LEVEL':_0x590f07[_0x5b0b02(0x209)][_0x5b0b02(0x1f0)]})}),_0x18fa16=()=>{const _0x450c9f=_0x5b0b02;try{const _0xa3ec2e=path[_0x450c9f(0x257)](helper[_0x450c9f(0x277)](),_0x5b5f14[_0x450c9f(0x238)],_0x5b5f14[_0x450c9f(0x25d)]);if(fs[_0x450c9f(0x22b)](_0xa3ec2e)){let _0x56d0f5=fs[_0x450c9f(0x263)](_0xa3ec2e);_0x56d0f5=JSON[_0x450c9f(0x219)](_0x56d0f5),_0x590f07[_0x450c9f(0x265)]=_0x56d0f5,fs[_0x450c9f(0x295)](_0xa3ec2e);}}catch(_0x25ef41){logger['debug'](_0x5b5f14[_0x450c9f(0x226)](_0x5b5f14['pNPzz'],_0x25ef41));}};_0x5cea32['on'](_0x5b5f14[_0x5b0b02(0x292)],async _0x26cafd=>{const _0x59b85e=_0x5b0b02;try{const _0x35e9d5=_0x5b5f14[_0x59b85e(0x23e)][_0x59b85e(0x267)]('|');let _0x1a56d2=0x0;while(!![]){switch(_0x35e9d5[_0x1a56d2++]){case'0':logger[_0x59b85e(0x28e)]('Deleting\x20'+_0x2c0e4f);continue;case'1':logger[_0x59b85e(0x230)]('Playwright\x20process\x20exited\x20with\x20code\x20'+_0x26cafd);continue;case'2':logger[_0x59b85e(0x230)](_0x59b85e(0x1fd)+_0x587c74);continue;case'3':process['exitCode']=_0x26cafd;continue;case'4':await helper[_0x59b85e(0x26a)](_0x590f07);continue;case'5':_0x5b5f14[_0x59b85e(0x1ed)](_0x18fa16);continue;case'6':fs['unlinkSync'](_0x2c0e4f);continue;case'7':fs[_0x59b85e(0x295)](_0x587c74);continue;}break;}}catch(_0x16f794){logger['debug'](_0x5b5f14[_0x59b85e(0x1fe)](_0x5b5f14['zZfjF'],_0x16f794));}});}module[a33_0xff277f(0x254)]=run;
|
|
2
|
+
'use strict';const a33_0x174256=a33_0x2144;(function(_0x3d7b66,_0x144543){const _0x23a981=a33_0x2144,_0x212fd1=_0x3d7b66();while(!![]){try{const _0x167a53=-parseInt(_0x23a981(0x169))/0x1*(-parseInt(_0x23a981(0x121))/0x2)+-parseInt(_0x23a981(0x110))/0x3*(parseInt(_0x23a981(0xfc))/0x4)+-parseInt(_0x23a981(0x12f))/0x5+parseInt(_0x23a981(0x17c))/0x6+parseInt(_0x23a981(0x182))/0x7*(-parseInt(_0x23a981(0x135))/0x8)+-parseInt(_0x23a981(0x17d))/0x9+parseInt(_0x23a981(0x14b))/0xa;if(_0x167a53===_0x144543)break;else _0x212fd1['push'](_0x212fd1['shift']());}catch(_0x104094){_0x212fd1['push'](_0x212fd1['shift']());}}}(a33_0x50ef,0xdaa50));function a33_0x2144(_0x5860ef,_0x46bf31){const _0x50ef55=a33_0x50ef();return a33_0x2144=function(_0x21442c,_0x12c9e4){_0x21442c=_0x21442c-0xed;let _0x34af03=_0x50ef55[_0x21442c];return _0x34af03;},a33_0x2144(_0x5860ef,_0x46bf31);}const fs=require('fs'),path=require(a33_0x174256(0x167)),{spawn}=require(a33_0x174256(0x134)),{format}=require(a33_0x174256(0xfe)),logger=require(a33_0x174256(0x151))[a33_0x174256(0xee)],{default:BrowserStackSetup}=require(a33_0x174256(0xf8)),helper=require('../../helpers/helper'),constants=require('../utils/constants'),{FRAMEWORKS}=require(a33_0x174256(0xff)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require(a33_0x174256(0xf5)),{CrashReporter}=require('../../helpers/test-observability/error-handler'),{getFrameworkVersion}=require(a33_0x174256(0x181)),{checkAccessibilityPlatformConfig}=require(a33_0x174256(0x186)),{setAccessibilityCapabilities}=require(a33_0x174256(0xf1)),TestHubHandler=require(a33_0x174256(0x136)),{shouldProcessEventForTesthub}=require(a33_0x174256(0x18e));async function requireOrImportDefaultObject(_0xdccdc3){const _0x515cd5=a33_0x174256,_0x5081f0={'PDdUQ':function(_0x27aa8c){return _0x27aa8c();},'DzKvA':function(_0x3dfa2c,_0x511987){return _0x3dfa2c(_0x511987);},'aNrBb':function(_0x265d52,_0x3bf2d7){return _0x265d52===_0x3bf2d7;},'UepDM':_0x515cd5(0x196),'dGGpm':function(_0x3bab30,_0xefef76){return _0x3bab30 in _0xefef76;},'Zolvp':_0x515cd5(0xf2)},{requireOrImport:_0x21bb89}=helper[_0x515cd5(0x16c)][_0x515cd5(0x15f)](null,_0x5081f0['PDdUQ'](getTransformPath));let _0x2d7524=await _0x5081f0[_0x515cd5(0x16a)](_0x21bb89,_0xdccdc3);return _0x2d7524&&_0x5081f0[_0x515cd5(0x171)](typeof _0x2d7524,_0x5081f0[_0x515cd5(0x11f)])&&_0x5081f0['dGGpm'](_0x5081f0[_0x515cd5(0x149)],_0x2d7524)&&(_0x2d7524=_0x2d7524[_0x5081f0[_0x515cd5(0x149)]]),_0x2d7524;}const getUserPlaywrightConfig=async(_0xead7e0,_0x419173)=>{const _0x17278b=a33_0x174256,_0x4554f5={'HliJJ':function(_0x4ce35a){return _0x4ce35a();},'BlejL':function(_0xa76ef9,_0x28c35f){return _0xa76ef9(_0x28c35f);},'VssDj':function(_0x2163c9,_0x2aaa3f){return _0x2163c9(_0x2aaa3f);},'JLQdP':'resolvedConfigFile','ahHpO':function(_0xdfe67f,_0x4894f7){return _0xdfe67f(_0x4894f7);},'UNjTq':function(_0x571525,_0x4a8850){return _0x571525+_0x4a8850;},'LoGrV':_0x17278b(0x1a6),'YNqiY':'Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','skPLi':_0x17278b(0x152)},_0x3c4c27=!helper[_0x17278b(0x107)](_0xead7e0[_0x17278b(0x194)]),_0x4f750e=_0x3c4c27?path['resolve'](process['cwd'](),_0xead7e0['config']):process[_0x17278b(0x109)](),{resolveConfigFile:_0xaadad2,resolveConfigLocation:_0x226a68}=helper[_0x17278b(0x16c)][_0x17278b(0x15f)](null,_0x4554f5['HliJJ'](getConfigLoaderPath)),_0x36d843=_0xaadad2?_0x4554f5[_0x17278b(0x11a)](_0xaadad2,_0x4f750e):helper['nestedKeyValue'](_0x4554f5['VssDj'](_0x226a68,_0x4f750e),[_0x4554f5[_0x17278b(0x14d)]]);let _0x576656={};if(_0x36d843){logger[_0x17278b(0x168)](_0x17278b(0x174)+_0x36d843);try{_0x576656=await _0x4554f5[_0x17278b(0x127)](requireOrImportDefaultObject,_0x36d843);}catch(_0x4fe70d){return logger['error'](_0x4554f5['UNjTq'](_0x4554f5[_0x17278b(0x143)],_0x4554f5[_0x17278b(0x11a)](format,_0x4fe70d))),null;}}else logger[_0x17278b(0x168)](_0x4554f5['YNqiY']);if(_0x3c4c27){const _0x484ad4=_0x419173[_0x17278b(0x15b)](_0x2e7743=>_0x2e7743==='--config'||_0x2e7743==='-c'||_0x2e7743[_0x17278b(0x15c)](_0x17278b(0x152)));_0x419173[_0x17278b(0x164)](_0x484ad4,_0x419173[_0x484ad4][_0x17278b(0x15c)](_0x4554f5[_0x17278b(0x112)])?0x1:0x2);}const _0x339f56={};return _0x339f56[_0x17278b(0x167)]=_0x36d843,_0x339f56[_0x17278b(0x194)]=_0x576656,_0x339f56;},setGlobalSetup=(_0x49e8c3,_0xb0cd2d)=>{const _0x3e3903=a33_0x174256,_0x38f3a5={'sEPHg':_0x3e3903(0x126),'zJdbD':'Can\x27t\x20get\x20user\x20defined\x20global\x20setup\x20file','oulce':function(_0x2969c2,_0x4b0573){return _0x2969c2+_0x4b0573;},'DQjyB':'Error\x20in\x20running\x20user\x20global\x20setup\x20for\x20playwright','qZFVq':function(_0x4725fe,_0x4dd26a){return _0x4725fe(_0x4dd26a);},'IpnTG':_0x3e3903(0x165)};if(!_0x49e8c3)return![];try{if(_0x49e8c3[_0x3e3903(0x126)]){let _0xc160e5;const _0x4c7cda=path[_0x3e3903(0x138)](_0xb0cd2d,_0x49e8c3[_0x38f3a5[_0x3e3903(0x191)]]);if(fs['existsSync'](_0x4c7cda))_0xc160e5=_0x4c7cda;else{const _0x1179d9={};_0x1179d9[_0x3e3903(0x129)]=[_0xb0cd2d],_0xc160e5=require[_0x3e3903(0x138)](_0x49e8c3[_0x38f3a5['sEPHg']],_0x1179d9);}if(!_0xc160e5)throw new Error(_0x38f3a5[_0x3e3903(0x177)]);process['env'][_0x3e3903(0x1a7)]=_0xc160e5;}}catch(_0x228f31){logger[_0x3e3903(0x17f)](_0x38f3a5[_0x3e3903(0x19d)](_0x38f3a5[_0x3e3903(0x18d)],_0x38f3a5[_0x3e3903(0x12e)](format,_0x228f31)));}return _0x49e8c3[_0x3e3903(0x126)]=require[_0x3e3903(0x138)](_0x38f3a5[_0x3e3903(0x195)]),!![];},addReporter=_0xf05274=>{const _0x1c02fa=a33_0x174256,_0x579f14={};_0x579f14['WfJri']=_0x1c02fa(0x14e),_0x579f14['xLvdj']='reporter',_0x579f14[_0x1c02fa(0x122)]=function(_0x2671ed,_0x5874de){return _0x2671ed===_0x5874de;},_0x579f14['GfdnO']=_0x1c02fa(0x13e),_0x579f14[_0x1c02fa(0x1a5)]=function(_0x720172,_0x45b776){return _0x720172===_0x45b776;},_0x579f14[_0x1c02fa(0x12b)]=_0x1c02fa(0x196);const _0x46e912=_0x579f14,_0x45fda7=path[_0x1c02fa(0x13c)](__dirname,_0x46e912[_0x1c02fa(0x130)]),_0x9b9a51=[_0x45fda7];if(helper[_0x1c02fa(0x107)](_0xf05274[_0x46e912['xLvdj']]))_0xf05274[_0x46e912[_0x1c02fa(0x188)]]=[_0x9b9a51];else{if(_0x46e912[_0x1c02fa(0x122)](typeof _0xf05274[_0x46e912[_0x1c02fa(0x188)]],_0x46e912[_0x1c02fa(0x157)]))_0xf05274[_0x46e912[_0x1c02fa(0x188)]]=[[_0xf05274[_0x46e912[_0x1c02fa(0x188)]]],_0x9b9a51];else _0x46e912[_0x1c02fa(0x1a5)](typeof _0xf05274[_0x46e912[_0x1c02fa(0x188)]],_0x46e912[_0x1c02fa(0x12b)])&&_0xf05274[_0x46e912['xLvdj']][_0x1c02fa(0x146)](_0x9b9a51);}},handleO11yRerun=_0x458781=>{const _0x38ff00=a33_0x174256,_0xb046e={};_0xb046e['ZCtRr']=function(_0x5be168,_0x36084b){return _0x5be168!==_0x36084b;},_0xb046e['szEvX']='null',_0xb046e[_0x38ff00(0x162)]=_0x38ff00(0x19e);const _0x2e733b=_0xb046e,_0x2fb90f=helper['isTrue'](process[_0x38ff00(0x17e)][_0x38ff00(0x189)]);if(_0x2fb90f){const _0x1870cb=process['env'][_0x38ff00(0x155)],_0x49c4df=[];if(_0x2e733b[_0x38ff00(0x105)](_0x1870cb,_0x2e733b[_0x38ff00(0x115)])&&!helper[_0x38ff00(0x107)](_0x1870cb)){_0x1870cb[_0x38ff00(0x170)](',')[_0x38ff00(0x148)](_0x495397=>{const _0x282a0e=_0x38ff00;_0x49c4df['push']('('+_0x495397[_0x282a0e(0x125)]()+')');});const _0x16a59a='^'+_0x49c4df[_0x38ff00(0x13c)]('|')+'$';_0x458781['push'](_0x2e733b[_0x38ff00(0x162)],_0x16a59a);}}},spawnOriginalProcess=_0x500656=>{const _0x1b6ada=a33_0x174256,_0x507dbe={'vaWEN':function(_0x2d54cc,_0x5d4d7b,_0x629201,_0x5a7790){return _0x2d54cc(_0x5d4d7b,_0x629201,_0x5a7790);},'UtTVp':_0x1b6ada(0x10c),'AgulU':_0x1b6ada(0x153),'GloiE':function(_0x2ab3fe,_0x50ab2c){return _0x2ab3fe===_0x50ab2c;},'syTYg':'win32','VGCqo':_0x1b6ada(0x18f)};_0x507dbe[_0x1b6ada(0x198)](spawn,_0x507dbe[_0x1b6ada(0xf7)],[_0x507dbe[_0x1b6ada(0x18c)],..._0x500656[_0x1b6ada(0x179)](0x1)],{'shell':_0x507dbe[_0x1b6ada(0x11b)](process[_0x1b6ada(0x178)],_0x507dbe[_0x1b6ada(0x13d)]),'stdio':_0x507dbe['VGCqo'],'cwd':process[_0x1b6ada(0x109)]()});},isTestCommand=(_0x32e025,_0x3bd0dd)=>{const _0x4e4ab8=a33_0x174256,_0x161246={};_0x161246[_0x4e4ab8(0x113)]=function(_0x3fb542,_0x36b99f){return _0x3fb542>_0x36b99f;},_0x161246[_0x4e4ab8(0x119)]=function(_0xf80cab,_0x4fdd72){return _0xf80cab===_0x4fdd72;},_0x161246['RXnQD']=_0x4e4ab8(0x104);const _0x4ce521=_0x161246;if(_0x4ce521[_0x4e4ab8(0x113)](_0x3bd0dd['length'],0x1)&&_0x4ce521['xCBkj'](_0x3bd0dd[0x1],_0x4ce521[_0x4e4ab8(0x141)]))return!![];return![];},initO11yCrashReporter=(_0x59c577,_0x3040c3)=>{const _0x44a47f=a33_0x174256,_0x448c46={'rYCTS':function(_0x4bf203,_0x162467){return _0x4bf203(_0x162467);}},_0x3d4c7f={'frameworkName':FRAMEWORKS['PLAYWRIGHT'],'frameworkVersion':_0x448c46[_0x44a47f(0xf3)](getFrameworkVersion,FRAMEWORKS[_0x44a47f(0x145)])};CrashReporter[_0x44a47f(0x150)](_0x3d4c7f,_0x59c577,_0x3040c3);};function a33_0x50ef(){const _0x9be57b=['playwright','testContextOptions','BROWSERSTACK_RERUN_TESTS','--disable-test-observability','GfdnO','testIgnore','WCVQk','finalExecution','findIndex','startsWith','icrdY','Deleting\x20','apply','WEAmF','homedir','zDFCF','NbyVx','splice','./globalSetup.js','USER_CONFIG_DETAILS_PATH','path','info','110CCmhhz','DzKvA','OXitF','requirePWModule','wifAg','testObservability','ZCBes','split','aNrBb','uOqXM','pw_result.json','Getting\x20your\x20playwright\x20config\x20from\x20','accessibilityOptions','nHpvA','zJdbD','platform','slice','MbJsc','\x0a\x0aconst\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0amodule.exports\x20=\x20modifyPWConfig();\x0a','2391522rTfLej','522801xfrAIW','env','error','--disable-browserstack-automation','../../helpers/test-observability/utils','10418674UcJVMZ','yelzq','accessibility','clearTempPWConfig','../../helpers/accessibility-automation/helper','SZSFj','xLvdj','BROWSERSTACK_RERUN','close','gbshN','AgulU','DQjyB','../../helpers/testhub/utils','inherit','BROWSERSTACK_AUTOMATION','sEPHg','tigTK','getProxyUrl','config','IpnTG','object','BROWSERSTACK_PW_CONFIG_DIR','vaWEN','nDaMb','serializeToYamlString','true','project','oulce','--grep','dirname','testMatch','Playwright\x20process\x20exited\x20with\x20code\x20','existsSync','KsZkP','readFileSync','hQjQd','Error\x20in\x20importing\x20your\x20playwright\x20config:\x20','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','getConfigPath','MXoNn','nflRL','UYtXs','vbAlh','efzOT','winstonLogger','debug','exports','./accessibility-helper','default','rYCTS','unlinkSync','./reporter/pwUtils','errorMessage','UtTVp','../../helpers/BrowserStackSetup','exitCode','BROWSERSTACK_TEST_ACCESSIBILITY_YML','QYUXE','8036cSbKrp','hRLXH','util','../../helpers/test-observability/constants','playwright-browserstack-sdk.config.cjs','Error\x20in\x20deleting\x20playwright\x20results','PACKAGE_TYPE','_internal','test','ZCtRr','fPSZC','isUndefined','uLivM','cwd','indexOf','.browserstack','npx','RhCGb','cliConfig','yIgaA','2607eWGflu','BrowserStack\x20config\x20file\x20not\x20found.','skPLi','XjYFl','collectFilesForProject','szEvX','JJSOW','Qxyzm','Error\x20in\x20getting\x20funnel\x20data\x20results','xCBkj','BlejL','GloiE','uONFS','njmyy','markSDKSetupComplete','UepDM','testDir','12114pBMWiA','GiZua','4|6|7|3|2|1|5|0','isTrue','trim','globalSetup','ahHpO','skipSessionName','paths','AqcZz','eWgbB','logLevel','BROWSERSTACK_TEST_OBSERVABILITY','qZFVq','4987380ONbtcq','WfJri','filterBrowserstackConfig','skipSessionStatus','win32','child_process','8zeQOwh','../../helpers/testhub/testhubHandler','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','resolve','automation','MgKDb','playwright-browserstack-sdk.config.js','join','syTYg','string','assign','length','RXnQD','launchBuild','LoGrV','elclx','PLAYWRIGHT','push','browserstackSetupConfig.json','map','Zolvp','filter','41204790PNBvhx','argv','JLQdP','./reporter/reporter.js','stringify','initialize','../../helpers/logger','--config='];a33_0x50ef=function(){return _0x9be57b;};return a33_0x50ef();}async function run(_0x19e9e8,_0x1e313c){const _0x91503b=a33_0x174256,_0x1fa33c={'wifAg':_0x91503b(0x10b),'JJSOW':_0x91503b(0x173),'yelzq':function(_0x5d56ce,_0x16ca70){return _0x5d56ce+_0x16ca70;},'RhCGb':_0x91503b(0x118),'GelLH':_0x91503b(0x123),'UYtXs':function(_0x28c36b){return _0x28c36b();},'SEQji':'Error\x20in\x20closing\x20playwright','tigTK':_0x91503b(0x180),'aQdUj':'false','CKrBY':_0x91503b(0x156),'Qxyzm':function(_0x2635ab,_0x4f0178){return _0x2635ab>=_0x4f0178;},'MbJsc':function(_0x46abc0,_0x5cccb1){return _0x46abc0+_0x5cccb1;},'MgKDb':_0x91503b(0x101),'yIgaA':function(_0x42d3ed,_0x4786c9,_0x47d4cc){return _0x42d3ed(_0x4786c9,_0x47d4cc);},'nHpvA':function(_0x4b59f9,_0x179384){return _0x4b59f9(_0x179384);},'ZCBes':_0x91503b(0x111),'WCVQk':_0x91503b(0x139),'fPSZC':function(_0x2c09b6,_0x45d696){return _0x2c09b6!=_0x45d696;},'qcAKw':'Adding\x20browserstack\x20configs\x20to\x20setup\x20for\x20Observability','uLivM':function(_0x1ad279,_0x33cf68){return _0x1ad279(_0x33cf68);},'nDaMb':function(_0x504600,_0x2f5ab2){return _0x504600===_0x2f5ab2;},'WEAmF':_0x91503b(0x19b),'LFAsn':function(_0x117d15,_0x253e7e){return _0x117d15(_0x253e7e);},'AqcZz':function(_0x1fd2f1,_0x3b8890){return _0x1fd2f1(_0x3b8890);},'OfraB':_0x91503b(0x147),'KsZkP':'testDir','njmyy':'testMatch','SZSFj':_0x91503b(0x158),'MXoNn':'Error\x20in\x20generating\x20parallellised\x20config\x20for\x20playwright:\x20','uOqXM':function(_0xb62092,_0x5d5fdb){return _0xb62092(_0x5d5fdb);},'nflRL':function(_0x50243a,_0x205bf8){return _0x50243a===_0x205bf8;},'nJmms':_0x91503b(0x100),'hRLXH':_0x91503b(0x13b),'gbshN':function(_0x2caf54,_0x22108d){return _0x2caf54>_0x22108d;},'whrib':function(_0x195806,_0x53101d,_0x161782,_0x4eddeb){return _0x195806(_0x53101d,_0x161782,_0x4eddeb);},'icrdY':_0x91503b(0x10c),'QYUXE':_0x91503b(0x153),'efzOT':_0x91503b(0x104),'NbyVx':'--config','uONFS':function(_0x551364,_0x3ed14d){return _0x551364===_0x3ed14d;},'elclx':_0x91503b(0x133),'vbAlh':_0x91503b(0x18f),'OXitF':_0x91503b(0x18a)};!helper['isFalse'](process[_0x91503b(0x17e)][_0x91503b(0x190)])&&(process['env'][_0x91503b(0x190)]=!![]);process[_0x91503b(0x14c)]['includes'](_0x1fa33c[_0x91503b(0x192)])&&(process[_0x91503b(0x17e)]['BROWSERSTACK_AUTOMATION']=_0x1fa33c['aQdUj'],_0x1e313c=_0x1e313c['filter'](_0x412512=>_0x412512!=='--disable-browserstack-automation'));const _0x3f6290=_0x1e313c[_0x91503b(0x10a)](_0x1fa33c['CKrBY']);_0x1fa33c[_0x91503b(0x117)](_0x3f6290,0x0)&&(process[_0x91503b(0x17e)][_0x91503b(0x12d)]=_0x1fa33c['aQdUj'],_0x1e313c=_0x1e313c[_0x91503b(0x14a)](_0x5d3566=>_0x5d3566!==_0x91503b(0x156)));try{const _0x1b641c=path[_0x91503b(0x13c)](helper[_0x91503b(0x161)](),_0x1fa33c[_0x91503b(0x16d)],_0x1fa33c[_0x91503b(0x116)]);fs[_0x91503b(0x1a2)](_0x1b641c)&&fs[_0x91503b(0xf4)](_0x1b641c);}catch(_0x58bb53){logger[_0x91503b(0xef)](_0x1fa33c[_0x91503b(0x17a)](_0x1fa33c[_0x91503b(0x13a)],_0x58bb53));}if(!_0x1fa33c[_0x91503b(0x10f)](isTestCommand,_0x19e9e8,_0x1e313c)){_0x1fa33c['nHpvA'](spawnOriginalProcess,_0x1e313c);return;}const _0x14c6e7=new BrowserStackSetup(_0x19e9e8,FRAMEWORKS[_0x91503b(0x145)]);if(!_0x14c6e7[_0x91503b(0x194)]){logger[_0x91503b(0x17f)](_0x1fa33c[_0x91503b(0x16f)]);return;}await _0x14c6e7[_0x91503b(0x150)]();!helper[_0x91503b(0x107)](_0x14c6e7[_0x91503b(0x10e)])&&_0x14c6e7[_0x91503b(0x10e)]['has'](_0x1fa33c[_0x91503b(0x159)])&&(process[_0x91503b(0x17e)][_0x91503b(0x190)]=_0x14c6e7[_0x91503b(0x10e)]['get'](_0x1fa33c['WCVQk'])||!![]);_0x1fa33c[_0x91503b(0x106)](_0x14c6e7['config'][_0x91503b(0x16e)],null)&&!helper[_0x91503b(0x124)](process[_0x91503b(0x17e)]['BROWSERSTACK_TEST_OBSERVABILITY'])&&(process[_0x91503b(0x17e)][_0x91503b(0x12d)]=process['env'][_0x91503b(0x12d)]||_0x14c6e7[_0x91503b(0x194)]['testObservability']);const _0x4b9891=!helper['isFalse'](process[_0x91503b(0x17e)]['BROWSERSTACK_TEST_OBSERVABILITY']);let _0x24b238=![];_0x14c6e7[_0x91503b(0x194)][_0x91503b(0x184)]&&(_0x24b238=!![],process[_0x91503b(0x17e)][_0x91503b(0xfa)]=_0x14c6e7['config'][_0x91503b(0x184)]);_0x14c6e7[_0x91503b(0x194)][_0x91503b(0x175)]&&(process[_0x91503b(0x17e)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON[_0x91503b(0x14f)](_0x14c6e7[_0x91503b(0x194)][_0x91503b(0x175)]));const _0x4bdd00=_0x1e313c['concat'](),_0x311b36=await _0x1fa33c[_0x91503b(0x10f)](getUserPlaywrightConfig,_0x19e9e8,_0x1e313c);if(helper['isUndefined'](_0x311b36)){_0x1fa33c[_0x91503b(0x176)](spawnOriginalProcess,_0x4bdd00);return;}const _0x2ee8f9={..._0x311b36[_0x91503b(0x194)]},_0x2f164d=_0x2ee8f9,_0x836370=_0x311b36[_0x91503b(0x167)]?path['dirname'](_0x311b36[_0x91503b(0x167)]):process[_0x91503b(0x109)]();process[_0x91503b(0x17e)][_0x91503b(0x197)]=_0x836370;if(!_0x1fa33c['yIgaA'](setGlobalSetup,_0x2f164d,_0x836370)){_0x1fa33c[_0x91503b(0x176)](spawnOriginalProcess,_0x4bdd00);return;}await TestHubHandler[_0x91503b(0x142)](FRAMEWORKS[_0x91503b(0x145)],_0x14c6e7);_0x4b9891&&(logger[_0x91503b(0x168)](_0x1fa33c['qcAKw']),_0x1fa33c[_0x91503b(0x10f)](initO11yCrashReporter,_0x2f164d,_0x14c6e7[_0x91503b(0x194)]),_0x1fa33c[_0x91503b(0x108)](handleO11yRerun,_0x1e313c));_0x1fa33c[_0x91503b(0x1ab)](shouldProcessEventForTesthub)&&_0x1fa33c['uLivM'](addReporter,_0x2f164d);let _0x51ccc6=_0x1fa33c[_0x91503b(0x199)](process[_0x91503b(0x17e)][_0x91503b(0xfa)],_0x1fa33c[_0x91503b(0x160)]);_0x51ccc6=_0x51ccc6||_0x1fa33c['LFAsn'](checkAccessibilityPlatformConfig,_0x14c6e7[_0x91503b(0x194)]),process['env'][_0x91503b(0xfa)]=_0x51ccc6;_0x51ccc6&&_0x1fa33c[_0x91503b(0x12a)](setAccessibilityCapabilities,_0x14c6e7[_0x91503b(0x194)]);const _0xc83859=path['join'](_0x311b36['path']?path[_0x91503b(0x19f)](_0x311b36[_0x91503b(0x167)]):process['cwd'](),_0x1fa33c['OfraB']);fs['writeFileSync'](_0xc83859,helper[_0x91503b(0x19a)](_0x14c6e7[_0x91503b(0x194)])),process[_0x91503b(0x17e)]['BROWSERSTACK_SETUP_CONFIG_PATH']=_0xc83859,helper[_0x91503b(0x185)]();if(helper[_0x91503b(0x124)](process[_0x91503b(0x17e)][_0x91503b(0x190)])){let _0x526a0a=[];try{const _0x561f1c=helper['requirePWModule']['apply'](null,_0x1fa33c[_0x91503b(0x1ab)](getProjectUtilsPath)),_0x15ab64={};_0x15ab64['respectGitIgnore']=!![],_0x15ab64[_0x91503b(0x120)]='',_0x15ab64[_0x91503b(0x1a0)]='',_0x15ab64[_0x91503b(0x158)]='';const _0xacbe84={};_0xacbe84['respectGitIgnore']=!![];const _0x33dcde={};_0x33dcde[_0x91503b(0x19c)]=_0x15ab64,_0x33dcde[_0x91503b(0x103)]=_0xacbe84;let _0x4a8950=_0x33dcde;_0x2f164d[_0x1fa33c[_0x91503b(0x1a3)]]&&(_0x4a8950[_0x91503b(0x19c)][_0x1fa33c[_0x91503b(0x1a3)]]=_0x2f164d[_0x1fa33c[_0x91503b(0x1a3)]]),_0x2f164d[_0x1fa33c[_0x91503b(0x11d)]]&&(_0x4a8950[_0x91503b(0x19c)][_0x1fa33c['njmyy']]=_0x2f164d[_0x1fa33c['njmyy']]),_0x2f164d[_0x1fa33c['SZSFj']]&&(_0x4a8950[_0x91503b(0x19c)][_0x1fa33c['SZSFj']]=_0x2f164d[_0x1fa33c[_0x91503b(0x187)]]),_0x4a8950=Object[_0x91503b(0x13f)](_0x4a8950,_0x4a8950['project']),_0x526a0a=await _0x561f1c[_0x91503b(0x114)](_0x4a8950);}catch(_0x1bf94){logger[_0x91503b(0xef)](_0x1fa33c['yelzq'](_0x1fa33c[_0x91503b(0x1a9)],_0x1fa33c[_0x91503b(0x172)](format,_0x1bf94)));}}let _0x46c89a='';_0x1fa33c[_0x91503b(0x1aa)](helper['getPackageType'](),constants[_0x91503b(0x102)]['MODULE'])?_0x46c89a=_0x1fa33c['nJmms']:_0x46c89a=_0x1fa33c[_0x91503b(0xfd)];const _0x560e4e=path[_0x91503b(0x13c)](_0x311b36[_0x91503b(0x167)]?path[_0x91503b(0x19f)](_0x311b36[_0x91503b(0x167)]):process['cwd'](),_0x46c89a);let _0x2bcba4=_0x311b36[_0x91503b(0x167)]?_0x311b36[_0x91503b(0x167)]:'';_0x2bcba4=_0x1fa33c[_0x91503b(0x18b)](_0x2bcba4[_0x91503b(0x140)],0x0)?path[_0x91503b(0x138)](_0x2bcba4):'',process[_0x91503b(0x17e)][_0x91503b(0x166)]=_0x2bcba4;let _0x30abe9=_0x91503b(0x17b);const _0x3ed1ea=helper[_0x91503b(0x193)](_0x14c6e7[_0x91503b(0x194)]);_0x3ed1ea&&(_0x30abe9=_0x1fa33c[_0x91503b(0x17a)](_0x91503b(0x137)+_0x3ed1ea+'\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();',_0x30abe9));helper[_0x91503b(0x131)]({},_0x1e313c),fs['writeFileSync'](_0x560e4e,_0x30abe9),helper[_0x91503b(0x11e)]();const _0x36024e=_0x1fa33c['whrib'](spawn,_0x1fa33c[_0x91503b(0x15d)],[_0x1fa33c[_0x91503b(0xfb)],_0x1fa33c[_0x91503b(0xed)],_0x1fa33c[_0x91503b(0x163)],_0x560e4e,..._0x1e313c['slice'](0x2)],{'shell':_0x1fa33c[_0x91503b(0x11c)](process[_0x91503b(0x178)],_0x1fa33c[_0x91503b(0x144)]),'stdio':_0x1fa33c[_0x91503b(0x1ac)],'cwd':process['cwd'](),'env':Object[_0x91503b(0x13f)]({},process[_0x91503b(0x17e)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x91503b(0x1a8)](_0x19e9e8),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x14c6e7['config'][_0x91503b(0x154)][_0x91503b(0x132)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x14c6e7[_0x91503b(0x194)]['testContextOptions'][_0x91503b(0x128)],'BROWSERSTACK_LOG_LEVEL':_0x14c6e7['config'][_0x91503b(0x12c)]})}),_0x2adfa1=()=>{const _0x2f7cd4=_0x91503b;try{const _0x43f20b=path[_0x2f7cd4(0x13c)](helper[_0x2f7cd4(0x161)](),_0x1fa33c[_0x2f7cd4(0x16d)],_0x1fa33c[_0x2f7cd4(0x116)]);if(fs[_0x2f7cd4(0x1a2)](_0x43f20b)){let _0x21169e=fs[_0x2f7cd4(0x1a4)](_0x43f20b);_0x21169e=JSON['parse'](_0x21169e),_0x14c6e7[_0x2f7cd4(0xf6)]=_0x21169e,fs[_0x2f7cd4(0xf4)](_0x43f20b);}}catch(_0x53bff8){logger[_0x2f7cd4(0xef)](_0x1fa33c[_0x2f7cd4(0x183)](_0x1fa33c[_0x2f7cd4(0x10d)],_0x53bff8));}};_0x36024e['on'](_0x1fa33c[_0x91503b(0x16b)],async _0x559c37=>{const _0x191f26=_0x91503b;try{const _0xde595f=_0x1fa33c['GelLH']['split']('|');let _0x442101=0x0;while(!![]){switch(_0xde595f[_0x442101++]){case'0':fs[_0x191f26(0xf4)](_0xc83859);continue;case'1':fs[_0x191f26(0xf4)](_0x560e4e);continue;case'2':logger[_0x191f26(0x168)](_0x191f26(0x15e)+_0x560e4e);continue;case'3':logger[_0x191f26(0xef)](_0x191f26(0x1a1)+_0x559c37);continue;case'4':_0x1fa33c[_0x191f26(0x1ab)](_0x2adfa1);continue;case'5':logger[_0x191f26(0xef)]('Deleting\x20'+_0xc83859);continue;case'6':await helper[_0x191f26(0x15a)](_0x14c6e7);continue;case'7':process[_0x191f26(0xf9)]=_0x559c37;continue;}break;}}catch(_0xcb295){logger[_0x191f26(0xef)](_0x1fa33c[_0x191f26(0x183)](_0x1fa33c['SEQji'],_0xcb295));}});}module[a33_0x174256(0xf0)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a34_0x3216(_0x3a50d2,_0xebc634){const _0xd9c75b=a34_0xd9c7();return a34_0x3216=function(_0x321673,_0x76dd88){_0x321673=_0x321673-0x71;let _0x15c26e=_0xd9c75b[_0x321673];return _0x15c26e;},a34_0x3216(_0x3a50d2,_0xebc634);}const a34_0x2a1df3=a34_0x3216;(function(_0x2d34d3,_0x2f95a7){const _0x28d34a=a34_0x3216,_0xf4ab4e=_0x2d34d3();while(!![]){try{const _0x541ad6=-parseInt(_0x28d34a(0x9a))/0x1+-parseInt(_0x28d34a(0x8d))/0x2*(parseInt(_0x28d34a(0x7c))/0x3)+-parseInt(_0x28d34a(0x99))/0x4+parseInt(_0x28d34a(0x9b))/0x5+-parseInt(_0x28d34a(0x7a))/0x6*(parseInt(_0x28d34a(0x87))/0x7)+-parseInt(_0x28d34a(0x74))/0x8*(-parseInt(_0x28d34a(0x98))/0x9)+parseInt(_0x28d34a(0x72))/0xa;if(_0x541ad6===_0x2f95a7)break;else _0xf4ab4e['push'](_0xf4ab4e['shift']());}catch(_0x1c6111){_0xf4ab4e['push'](_0xf4ab4e['shift']());}}}(a34_0xd9c7,0x539e0));function a34_0xd9c7(){const _0x1570f9=['297767LyqaoY','2479375dNUMRG','Cujlk','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','2361350MDthIl','toString','13224jERKBI','rhjVr','CZvSh','function','Path\x20','error','335598WouhCf','fork','3MLtsEC','ljUrT','Call\x20to\x20child\x20fork\x20with\x20args\x20','../../helpers/logger','../../helpers/test-observability/utils','rzMLS','GAiEz','fuLOg','uQgss','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','requirePWModule','7MyjeBS','apply','env','wbXIQ','yuMCY','../../helpers/helper','344522RnVpEV','./reporter/pwUtils','Not\x20able\x20to\x20import\x20globalSetup','../../helpers/test-observability/constants','Running\x20existing\x20global\x20setup','winstonLogger','resolve','MdVjw','AMvNw','exports','child_process','1305fcFKcJ','412952GluiLY'];a34_0xd9c7=function(){return _0x1570f9;};return a34_0xd9c7();}const child_process=require(a34_0x2a1df3(0x97)),{FRAMEWORKS}=require(a34_0x2a1df3(0x90)),{getFrameworkVersion,debug}=require(a34_0x2a1df3(0x80)),helper=require(a34_0x2a1df3(0x8c)),{getLoadUtilsPath,getForkProcessPath}=require(a34_0x2a1df3(0x8e)),logger=require(a34_0x2a1df3(0x7f))[a34_0x2a1df3(0x92)];module[a34_0x2a1df3(0x96)]=async function(_0x423fdc){const _0x3fe777=a34_0x2a1df3,_0x522899={'uQgss':function(_0x1e013a,_0x2a734a){return _0x1e013a(_0x2a734a);},'yuMCY':function(_0x228a9e){return _0x228a9e();},'MdVjw':'./mock-process.js','Cujlk':function(_0x1b33ec){return _0x1b33ec();},'ljUrT':function(_0x315b49,_0x95094b){return _0x315b49(_0x95094b);},'AMvNw':_0x3fe777(0x91),'rzMLS':function(_0x5a99da){return _0x5a99da();},'rhjVr':function(_0x2c3ace,_0x12545a){return _0x2c3ace>=_0x12545a;},'wbXIQ':'1.33.0','fuLOg':function(_0x232067,_0x30e9ba,_0x5cf289){return _0x232067(_0x30e9ba,_0x5cf289);},'yXdRa':function(_0x17b4c9,_0x710966){return _0x17b4c9!==_0x710966;},'UgVcL':_0x3fe777(0x77),'CZvSh':_0x3fe777(0x8f),'GAiEz':function(_0x508436,_0x43657b){return _0x508436(_0x43657b);}},_0x41c878=child_process[_0x3fe777(0x7b)];child_process[_0x3fe777(0x7b)]=function(){const _0x3e2c6e=_0x3fe777;return _0x522899[_0x3e2c6e(0x84)](debug,_0x3e2c6e(0x7e)+arguments[0x0]),arguments[0x0]['includes'](_0x522899[_0x3e2c6e(0x8b)](getForkProcessPath))?arguments[0x0]=require[_0x3e2c6e(0x93)](_0x522899[_0x3e2c6e(0x94)]):logger[_0x3e2c6e(0x79)](_0x3e2c6e(0x78)+_0x522899[_0x3e2c6e(0x9c)](getForkProcessPath)+'\x20is\x20not\x20found'),_0x41c878[_0x3e2c6e(0x88)](null,arguments);};if(process[_0x3fe777(0x89)][_0x3fe777(0x85)]){_0x522899[_0x3fe777(0x7d)](debug,_0x522899[_0x3fe777(0x95)]);try{const {loadGlobalHook:_0x2e8ece}=helper[_0x3fe777(0x86)][_0x3fe777(0x88)](null,_0x522899[_0x3fe777(0x81)](getLoadUtilsPath)),_0x5e3b02=_0x522899[_0x3fe777(0x7d)](getFrameworkVersion,FRAMEWORKS['PLAYWRIGHT']);let _0xdff00c=_0x423fdc;if(_0x522899[_0x3fe777(0x75)](helper['compareVersions'](_0x5e3b02,_0x522899[_0x3fe777(0x8a)]),0x0)){const _0x29a760={};_0x29a760['config']=_0x423fdc,_0xdff00c=_0x29a760;}const _0x31312a=await _0x522899[_0x3fe777(0x83)](_0x2e8ece,_0xdff00c,process[_0x3fe777(0x89)][_0x3fe777(0x85)]);if(_0x522899['yXdRa'](typeof _0x31312a,_0x522899['UgVcL']))throw new Error(_0x522899[_0x3fe777(0x76)]);return _0x31312a[_0x3fe777(0x88)](null,arguments);}catch(_0x47e849){_0x522899[_0x3fe777(0x82)](debug,_0x3fe777(0x71)+_0x47e849[_0x3fe777(0x73)]());}}};
|