browserstack-node-sdk 1.34.9 → 1.34.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance-tester.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
package/src/bin/jest/command.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a14_0x30b2e7=a14_0x291b;function a14_0x291b(_0x5365af,_0x134b48){const _0x545bb3=a14_0x545b();return a14_0x291b=function(_0x291b39,_0x524cfb){_0x291b39=_0x291b39-0xe1;let _0x13ce0b=_0x545bb3[_0x291b39];return _0x13ce0b;},a14_0x291b(_0x5365af,_0x134b48);}(function(_0x17bcd1,_0x559e2c){const _0x5a49c4=a14_0x291b,_0x1bff69=_0x17bcd1();while(!![]){try{const _0x7608d1=-parseInt(_0x5a49c4(0x13b))/0x1+-parseInt(_0x5a49c4(0x138))/0x2*(-parseInt(_0x5a49c4(0x140))/0x3)+parseInt(_0x5a49c4(0x122))/0x4*(-parseInt(_0x5a49c4(0xfc))/0x5)+-parseInt(_0x5a49c4(0x176))/0x6*(-parseInt(_0x5a49c4(0x148))/0x7)+-parseInt(_0x5a49c4(0x14c))/0x8+-parseInt(_0x5a49c4(0x15c))/0x9+parseInt(_0x5a49c4(0x13f))/0xa*(parseInt(_0x5a49c4(0x162))/0xb);if(_0x7608d1===_0x559e2c)break;else _0x1bff69['push'](_0x1bff69['shift']());}catch(_0x41ff36){_0x1bff69['push'](_0x1bff69['shift']());}}}(a14_0x545b,0x4b83f));function a14_0x545b(){const _0x4ed5d4=['platform','dhzxq','Getting\x20your\x20jest\x20configs\x20from\x20','winstonLogger','true','readFileSync','push','Cplne','markSDKSetupComplete','close','join','testEnvironmentOptions','stringify','testObservability','/test_before.setup.js','existsSync','eEGQw','ORVqF','accessibility','470zGsWPI','../../helpers/percy/utils','printBuildLink','capabilities','LLZKO','cwd','/customImplements/customEnvironment.js','parallelsPerPlatform','uiLrL','trIGG','assign','inherit','unlinkSync','opQZL','debug','browserStackLogLevel','testContextOptions','serial__','reporters','platformCaps','FRAMEWORKS','jest.config.','cjs','maxWorkers','Showing\x20jest\x20logs\x20and\x20reporter\x20logs.','\x0a\x0a\x20\x20\x20\x20const\x20ReporterDispatcher\x20=\x20_interopRequireDefault(requireModule(\x27@jest/core/build/ReporterDispatcher.js\x27)).default;\x20//node_modules/@jest/core/build/ReporterDispatcher.js\x0a\x20\x20\x20\x20const\x20fs\x20=\x20require(\x27fs\x27);\x0a\x20\x20\x20\x20const\x20path\x20=\x20require(\x27path\x27);\x0a\x20\x20\x20\x20const\x20helper\x20=\x20require(\x27../../../helpers/helper\x27);\x0a\x20\x20\x20\x20var\x20_someFunc\x20=\x20ReporterDispatcher.prototype.onRunComplete;\x0a\x20\x20\x20\x20ReporterDispatcher.prototype.onRunComplete\x20=\x20async\x20function\x20(testContexts,\x20results)\x20{\x0a\x20\x20\x20\x20\x20\x20results.numTotalTestSuites\x20=\x20results.numTotalTestSuites\x20*\x20','initialize','writeFileSync','mLveC','requireModule','requireSeleniumWebdriver','/jest.setup.js','BROWSERSTACK_TEST_ACCESSIBILITY_YML','xpqdD','../../helpers/test-observability/utils','shutdown','Pbgfj','ZbJmV','22216KMnofD','RBhTt','setupFilesAfterEnv','package.json','config','false','Getting\x20your\x20jest\x20configs\x20from\x20package.json','JWcjx','bFuLl','length','zBrUY','RNexv','getHubUrl','exitCode','DXLXP','skipSessionName','SotHd','BROWSERSTACK_TEST_OBSERVABILITY_YML','qosFC','Unable\x20to\x20find\x20jest-circus,\x20','errorMessage','json','18klaVFm','child_process','skipSessionStatus','213005OaPXgW','jest_browserstack.config.cjs','../../helpers/test-observability/constants','filterBrowserstackArgs','997150FFbmqg','53559ABCAzS','useW3C','info','mjs','env','default','customImplements','runInBand','71652DmITin','sYBfB','\x20:\x20','getPackageType','2902240aHAXFj','proxySettings','parse','rNaMJ','resolve','skipping\x20test_before\x20setup\x20since\x20selenium\x20not\x20found','jest','splice','test','MODULE','--config','runner','testTimeout','setupFiles','/customImplements/customTestRunner.js','jest_browserstack.config.js','1898379FUIxze','findIndex','Modifying\x20jest\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','ddbhy','noMKu','accessibilityOptions','154Gxsalc','IiRyI','UElFS','path','jest.cmd','../../helpers/utilities','JEST','launchBuild','../../helpers/logger','testRunner','./test-observability/test-details','getErrorMessageFromResults','util','OTpiE','timeout__','testEnvironment','setupTCGAuth','slice','isUndefined','../../helpers/accessibility-automation/helper','36aESsUc','parallels__','Error\x20while\x20parsing\x20','ympgI','prepareCapabilities','XqYBq','Exception\x20in\x20stop\x20build\x20request\x20to\x20TestHub\x20:\x20','checkAccessibilityPlatformConfig','turboScaleUrl','handleApp','MiAmN','\x0amodule.exports\x20=\x20config;','miHzW','/customImplements/customTestRunnerTemplate.js'];a14_0x545b=function(){return _0x4ed5d4;};return a14_0x545b();}const fs=require('fs'),path=require(a14_0x30b2e7(0x165)),util=require(a14_0x30b2e7(0x16e)),{spawn}=require(a14_0x30b2e7(0x139)),logger=require(a14_0x30b2e7(0x16a))[a14_0x30b2e7(0xec)],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require('../../helpers/helper'),utilities=require(a14_0x30b2e7(0x167)),constants=require('../utils/constants'),accessibilityHelper=require(a14_0x30b2e7(0x175)),{updateTestRerunConfig}=require('./test-observability/helper'),testOpsHelper=require(a14_0x30b2e7(0x11e)),{debug}=require(a14_0x30b2e7(0x11e)),TestDetails=require(a14_0x30b2e7(0x16c)),{getPercyOptions}=require(a14_0x30b2e7(0xfd)),TestHubHandler=require('../../helpers/testhub/testhubHandler'),testhubUtils=require('../../helpers/testhub/utils'),{FRAMEWORKS}=require(a14_0x30b2e7(0x13d)),getUserJestConfigs=(_0x388487,_0x471912)=>{const _0x1a55e9=a14_0x30b2e7,_0xa49517={'noMKu':function(_0x4329e4,_0x4413f9){return _0x4329e4(_0x4413f9);},'DXLXP':function(_0x526ad2,_0x112a72){return _0x526ad2||_0x112a72;},'uiLrL':_0x1a55e9(0x125),'ORVqF':_0x1a55e9(0x128),'Cplne':_0x1a55e9(0x143),'SmSrT':_0x1a55e9(0x112),'eEGQw':_0x1a55e9(0x137)},_0x35433d=_0x471912[_0x1a55e9(0x15d)](_0x2dff92=>_0x2dff92===_0x1a55e9(0x156));if(!helper[_0x1a55e9(0x174)](_0x388487[_0x1a55e9(0x126)])){logger[_0x1a55e9(0x142)](_0x1a55e9(0xeb)+_0x388487[_0x1a55e9(0x126)]);const _0x12b1b2=_0xa49517[_0x1a55e9(0x160)](require,path[_0x1a55e9(0x150)](_0x388487['config']));return _0x471912[_0x1a55e9(0x153)](_0x35433d,0x2),_0xa49517[_0x1a55e9(0x130)](_0x12b1b2,{});}const _0x2262f1=_0xa49517[_0x1a55e9(0x160)](require,path[_0x1a55e9(0xf3)](process['cwd'](),_0xa49517[_0x1a55e9(0x104)]));if(_0x2262f1[_0x1a55e9(0x152)])return logger[_0x1a55e9(0x142)](_0xa49517[_0x1a55e9(0xfa)]),_0x2262f1[_0x1a55e9(0x152)];const _0x341453=['js',_0xa49517[_0x1a55e9(0xf0)],_0xa49517['SmSrT'],_0xa49517[_0x1a55e9(0xf9)],'ts'];for(const _0xcc1be6 of _0x341453){const _0x2b5b98=path[_0x1a55e9(0xf3)](process[_0x1a55e9(0x101)](),_0x1a55e9(0x111)+_0xcc1be6);if(fs[_0x1a55e9(0xf8)](_0x2b5b98))return _0xa49517['noMKu'](require,_0x2b5b98);}return{};},getSerial=(_0x38e494,_0x533eae)=>{const _0x22c5bc=a14_0x30b2e7,_0x4af7d0={};_0x4af7d0['MiAmN']='true',_0x4af7d0['OsnNT']=function(_0xd2510c,_0x41e5d5){return _0xd2510c>_0x41e5d5;},_0x4af7d0[_0x22c5bc(0x164)]=function(_0x263fe1,_0x56f912){return _0x263fe1>_0x56f912;},_0x4af7d0[_0x22c5bc(0x100)]=_0x22c5bc(0x127);const _0x25a2c=_0x4af7d0;let _0xdec4c=_0x25a2c[_0x22c5bc(0xe5)];return _0x25a2c['OsnNT'](_0x38e494[_0x22c5bc(0x12b)],0x1)&&(!_0x533eae[_0x22c5bc(0x147)]&&(helper[_0x22c5bc(0x174)](_0x533eae['maxWorkers'])||_0x25a2c[_0x22c5bc(0x164)](_0x533eae['maxWorkers'],0x1)))&&(_0xdec4c=_0x25a2c[_0x22c5bc(0x100)]),_0xdec4c;},getMaxWorkers=(_0x25fa00,_0x29195f,_0x2a1972)=>{const _0xba57ec=a14_0x30b2e7,_0x44b6c6={'cXaAe':function(_0x3c4a17,_0x389561){return _0x3c4a17(_0x389561);}};let _0x4a6079=0x1;if(!helper[_0xba57ec(0x174)](_0x29195f[_0xba57ec(0x103)]))_0x4a6079=_0x44b6c6['cXaAe'](parseInt,_0x29195f[_0xba57ec(0x103)]);else{if(!helper['isUndefined'](_0x25fa00[_0xba57ec(0x113)]))_0x4a6079=_0x25fa00[_0xba57ec(0x113)];else!helper[_0xba57ec(0x174)](_0x2a1972['maxWorkers'])&&(_0x4a6079=_0x2a1972['maxWorkers']);}return _0x4a6079;};async function run(_0x5557ac,_0x1015b0){const _0x1d6ab4=a14_0x30b2e7,_0x2b2f06={'miHzW':'error\x20removing\x20tcg\x20config\x20file','RNexv':'jest','SotHd':function(_0x5673a3,_0xd5cc05){return _0x5673a3(_0xd5cc05);},'opQZL':function(_0x117023,_0x267900){return _0x117023!=_0x267900;},'tskMC':_0x1d6ab4(0xed),'RBhTt':function(_0xb06065,_0x330419,_0xd11146){return _0xb06065(_0x330419,_0xd11146);},'dhzxq':_0x1d6ab4(0x15e),'mLveC':function(_0x9b8f42,_0x2ee231){return _0x9b8f42(_0x2ee231);},'ddbhy':function(_0x26794e,_0x1105b2,_0x50a5d6,_0x353cb7){return _0x26794e(_0x1105b2,_0x50a5d6,_0x353cb7);},'rNaMJ':function(_0x2ae4ea,_0x4fd813){return _0x2ae4ea*_0x4fd813;},'sYBfB':function(_0x31730a,_0x118063){return _0x31730a===_0x118063;},'ZbJmV':_0x1d6ab4(0x13c),'Pbgfj':_0x1d6ab4(0x15b),'XqYBq':_0x1d6ab4(0x146),'zBrUY':'jest_browserstack_results.json','IiRyI':'jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js','xpqdD':function(_0x3ef84e,_0x1b417b){return _0x3ef84e(_0x1b417b);},'qosFC':_0x1d6ab4(0x151),'bFuLl':_0x1d6ab4(0x145),'OTpiE':function(_0x172924,_0x1a0883,_0x5f07ff){return _0x172924(_0x1a0883,_0x5f07ff);},'ympgI':_0x1d6ab4(0x114),'trIGG':_0x1d6ab4(0x166),'dhwER':'--config','JWcjx':_0x1d6ab4(0x107),'QbOFf':_0x1d6ab4(0xf2)},_0x51a7f0=new BrowserStackSetup(_0x5557ac,_0x2b2f06[_0x1d6ab4(0x12d)]);helper['isBrowserstackInfra']()?(await _0x51a7f0[_0x1d6ab4(0x116)](),await helper[_0x1d6ab4(0xe4)](_0x51a7f0[_0x1d6ab4(0x126)])):await _0x51a7f0[_0x1d6ab4(0x172)]();if(!_0x51a7f0[_0x1d6ab4(0x126)])return;_0x2b2f06[_0x1d6ab4(0x109)](_0x51a7f0[_0x1d6ab4(0x126)][_0x1d6ab4(0xf6)],null)?process[_0x1d6ab4(0x144)][_0x1d6ab4(0x133)]=_0x51a7f0[_0x1d6ab4(0x126)]['testObservability']:process[_0x1d6ab4(0x144)][_0x1d6ab4(0x133)]=_0x2b2f06['tskMC'];const _0x54e4d0=_0x2b2f06['RBhTt'](getUserJestConfigs,_0x5557ac,_0x1015b0);logger[_0x1d6ab4(0x142)](_0x2b2f06[_0x1d6ab4(0xea)]);const _0x4f4233=Object[_0x1d6ab4(0x106)]({},_0x54e4d0);_0x4f4233[_0x1d6ab4(0xf4)]=Object['assign']({},_0x4f4233['testEnvironmentOptions'],{'server':helper[_0x1d6ab4(0x12e)](_0x51a7f0['config']),'environment':_0x54e4d0[_0x1d6ab4(0x171)]}),_0x4f4233[_0x1d6ab4(0xf4)]['browserStackPercyOptions']=_0x2b2f06[_0x1d6ab4(0x118)](getPercyOptions,_0x51a7f0['config']);const _0x5e3d69=helper[_0x1d6ab4(0x141)](_0x51a7f0[_0x1d6ab4(0x126)]),_0x227f1f=helper[_0x1d6ab4(0x17a)](_0x51a7f0['config'],_0x5e3d69,constants[_0x1d6ab4(0x110)][_0x1d6ab4(0x168)]);!helper['isUndefined'](_0x51a7f0[_0x1d6ab4(0x126)][_0x1d6ab4(0x161)])&&(process[_0x1d6ab4(0x144)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON[_0x1d6ab4(0xf5)](_0x51a7f0['config'][_0x1d6ab4(0x161)]));let _0xa83fbd=_0x51a7f0['config'][_0x1d6ab4(0xfb)];_0xa83fbd=_0xa83fbd||accessibilityHelper[_0x1d6ab4(0xe2)](_0x51a7f0[_0x1d6ab4(0x126)]),process['env'][_0x1d6ab4(0x11c)]=_0xa83fbd,_0x4f4233[_0x1d6ab4(0xf4)][_0x1d6ab4(0xff)]=_0x227f1f,_0x4f4233['testEnvironmentOptions'][_0x1d6ab4(0x10d)]=_0x2b2f06[_0x1d6ab4(0x123)](getSerial,_0x227f1f,_0x5557ac),_0x4f4233[_0x1d6ab4(0xf4)][_0x1d6ab4(0x177)]=_0x2b2f06[_0x1d6ab4(0x15f)](getMaxWorkers,_0x5557ac,_0x51a7f0[_0x1d6ab4(0x126)],_0x54e4d0),_0x4f4233[_0x1d6ab4(0xf4)]['proxySettings']=_0x51a7f0[_0x1d6ab4(0x126)][_0x1d6ab4(0x14d)],_0x4f4233[_0x1d6ab4(0xf4)][_0x1d6ab4(0x170)]=_0x2b2f06[_0x1d6ab4(0x14f)](_0x5557ac[_0x1d6ab4(0x158)],0x1)||0x1388,_0x4f4233[_0x1d6ab4(0xf4)][_0x1d6ab4(0x131)]=_0x51a7f0[_0x1d6ab4(0x126)][_0x1d6ab4(0x10c)][_0x1d6ab4(0x131)],_0x4f4233[_0x1d6ab4(0xf4)][_0x1d6ab4(0x13a)]=_0x51a7f0[_0x1d6ab4(0x126)][_0x1d6ab4(0x10c)]['skipSessionStatus'],_0x4f4233[_0x1d6ab4(0xf4)][_0x1d6ab4(0x10b)]=_0x51a7f0['config']['logLevel'],_0x4f4233['testEnvironmentOptions'][_0x1d6ab4(0xe3)]=_0x51a7f0['config'][_0x1d6ab4(0xe3)],_0x4f4233[_0x1d6ab4(0xf4)][_0x1d6ab4(0x10f)]=_0x51a7f0['config']['platforms'];let _0x487a87='';_0x2b2f06[_0x1d6ab4(0x149)](helper[_0x1d6ab4(0x14b)](),constants['PACKAGE_TYPE'][_0x1d6ab4(0x155)])?_0x487a87=_0x2b2f06[_0x1d6ab4(0x121)]:_0x487a87=_0x2b2f06[_0x1d6ab4(0x120)];const _0x286aec=_0x487a87,_0x276e57=path[_0x1d6ab4(0xf3)](__dirname,_0x2b2f06[_0x1d6ab4(0x17b)],_0x2b2f06[_0x1d6ab4(0x12c)]),_0x4fb795=__dirname+_0x1d6ab4(0x15a),_0x5cf589=__dirname+_0x1d6ab4(0xe8);_0x4f4233[_0x1d6ab4(0x171)]&&(process[_0x1d6ab4(0x144)]['BSTACK_JEST_TEST_ENV']=_0x4f4233[_0x1d6ab4(0x171)]);_0x4f4233[_0x1d6ab4(0x171)]=__dirname+_0x1d6ab4(0x102),_0x4f4233[_0x1d6ab4(0x157)]=_0x4fb795,_0x4f4233[_0x1d6ab4(0x124)]=_0x4f4233[_0x1d6ab4(0x124)]||[],_0x4f4233[_0x1d6ab4(0x124)][_0x1d6ab4(0xef)](__dirname+_0x1d6ab4(0x11b));if(testhubUtils['shouldProcessEventForTesthub']()){let _0x177ddd=null;try{_0x177ddd=helper[_0x1d6ab4(0x119)](_0x2b2f06[_0x1d6ab4(0x163)]);}catch(_0x554d76){_0x2b2f06[_0x1d6ab4(0x11d)](debug,_0x1d6ab4(0x135)+_0x554d76);}_0x177ddd&&(_0x4f4233[_0x1d6ab4(0x124)][_0x1d6ab4(0xef)](__dirname+'/test-observability/data-hooks.js'),_0x4f4233[_0x1d6ab4(0x16b)]=__dirname+'/customImplements/customCircus.js');}_0x4f4233['setupFiles']=_0x4f4233['setupFiles']||[];try{helper[_0x1d6ab4(0x11a)](),_0x4f4233[_0x1d6ab4(0x159)][_0x1d6ab4(0xef)](__dirname+_0x1d6ab4(0xf7));}catch{logger[_0x1d6ab4(0x10a)](_0x2b2f06[_0x1d6ab4(0x134)]);}_0x4f4233[_0x1d6ab4(0x10e)]=_0x4f4233[_0x1d6ab4(0x10e)]||[_0x2b2f06[_0x1d6ab4(0x12a)]],_0x2b2f06[_0x1d6ab4(0x16f)](updateTestRerunConfig,_0x4f4233,_0x51a7f0);const _0x2fbbba=fs[_0x1d6ab4(0xee)](_0x5cf589);fs[_0x1d6ab4(0x117)](_0x4f4233[_0x1d6ab4(0x157)],'\x0a\x20\x20\x20\x20'+_0x2fbbba+_0x1d6ab4(0x115)+_0x51a7f0['config']['platforms'][_0x1d6ab4(0x12b)]+';\x0a\x20\x20\x20\x20\x20\x20fs.writeFileSync(path.join(__dirname,\x20\x27jest_browserstack_results.json\x27),\x20JSON.stringify(results));\x0a\x20\x20\x20\x20\x20\x20return\x20_someFunc.call(this,\x20testContexts,\x20results);\x0a\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20var\x20_onTestFileResultOrig\x20=\x20ReporterDispatcher.prototype.onTestFileResult;\x0a\x20\x20\x20\x20ReporterDispatcher.prototype.onTestFileResult\x20=\x20async\x20function\x20(test,\x20testResult,\x20result)\x20{\x0a\x20\x20\x20\x20\x20\x20testResult.platform\x20=\x20helper.getPlatformName(test.context.config.capability);\x0a\x20\x20\x20\x20\x20\x20return\x20_onTestFileResultOrig.call(this,\x20test,\x20testResult,\x20result);\x0a\x20\x20\x20\x20}\x0a\x20\x20'),logger[_0x1d6ab4(0x142)]('Creating\x20'+_0x286aec+'\x20with\x20browserstack\x20jest\x20configs'),fs[_0x1d6ab4(0x117)](_0x286aec,'const\x20config='+JSON['stringify'](_0x4f4233)+_0x1d6ab4(0xe6)),logger[_0x1d6ab4(0x142)](_0x2b2f06[_0x1d6ab4(0x179)]);const _0x414248=await TestHubHandler[_0x1d6ab4(0x169)](FRAMEWORKS[_0x1d6ab4(0x168)],_0x51a7f0);testhubUtils['shouldProcessEventForTesthub']()&&TestDetails['setup']();helper[_0x1d6ab4(0x13e)]({},_0x1015b0),helper[_0x1d6ab4(0xf1)]();const _0x3e9cdd=_0x2b2f06[_0x1d6ab4(0x15f)](spawn,/^win/[_0x1d6ab4(0x154)](process[_0x1d6ab4(0xe9)])?_0x2b2f06[_0x1d6ab4(0x105)]:_0x2b2f06['RNexv'],[_0x2b2f06['dhwER'],_0x286aec,..._0x1015b0[_0x1d6ab4(0x173)](0x1)],{'stdio':_0x2b2f06[_0x1d6ab4(0x129)],'env':Object[_0x1d6ab4(0x106)]({},process[_0x1d6ab4(0x144)])});_0x3e9cdd['on'](_0x2b2f06['QbOFf'],async _0x2f2791=>{const _0x51e10a=_0x1d6ab4;try{const {browserstackFolderPath:_0xf41433,tcgConfigPath:_0xe3619a}=helper['getTCGConfigFilePaths']();fs[_0x51e10a(0x108)](_0xe3619a),fs['rmdirSync'](_0xf41433);}catch(_0x517493){logger[_0x51e10a(0x10a)](_0x2b2f06[_0x51e10a(0xe7)],_0x517493);}process[_0x51e10a(0x12f)]=_0x2f2791,logger[_0x51e10a(0x10a)]('child\x20process\x20exited\x20with\x20code\x20'+_0x2f2791),logger['info']('Deleting\x20'+_0x286aec);let _0x38f5f0=null;if(fs[_0x51e10a(0xf8)](_0x276e57)){_0x38f5f0=fs['readFileSync'](_0x276e57);try{_0x38f5f0=JSON[_0x51e10a(0x14e)](_0x38f5f0);}catch(_0xf67ba8){logger[_0x51e10a(0x10a)](_0x51e10a(0x178)+_0x276e57+',\x20'+_0x38f5f0+_0x51e10a(0x14a)+_0xf67ba8);}fs['unlinkSync'](_0x276e57);}fs[_0x51e10a(0x108)](_0x286aec),fs[_0x51e10a(0x108)](_0x4fb795),_0x38f5f0&&(_0x51a7f0[_0x51e10a(0x136)]=helper[_0x51e10a(0x16d)](_0x38f5f0,_0x2b2f06[_0x51e10a(0x12d)],_0x51a7f0));try{await TestHubHandler['stop']();}catch(_0x1f8a89){console['log'](_0x1f8a89),_0x2b2f06[_0x51e10a(0x132)](debug,_0x51e10a(0xe1)+util['format'](_0x1f8a89));}testOpsHelper[_0x51e10a(0xfe)](),TestDetails[_0x51e10a(0x11f)](),await utilities['finalExecution'](_0x51a7f0);});}module['exports']=run;
|
|
2
|
+
'use strict';const a14_0x54b694=a14_0x2495;(function(_0x12def3,_0x21230e){const _0x391c35=a14_0x2495,_0x5d3950=_0x12def3();while(!![]){try{const _0x100197=-parseInt(_0x391c35(0x14a))/0x1+parseInt(_0x391c35(0xe4))/0x2*(-parseInt(_0x391c35(0x109))/0x3)+parseInt(_0x391c35(0xf5))/0x4*(-parseInt(_0x391c35(0x144))/0x5)+parseInt(_0x391c35(0xe7))/0x6*(parseInt(_0x391c35(0x114))/0x7)+parseInt(_0x391c35(0xf1))/0x8*(parseInt(_0x391c35(0x108))/0x9)+parseInt(_0x391c35(0xe9))/0xa*(-parseInt(_0x391c35(0xb6))/0xb)+parseInt(_0x391c35(0x11b))/0xc*(parseInt(_0x391c35(0x116))/0xd);if(_0x100197===_0x21230e)break;else _0x5d3950['push'](_0x5d3950['shift']());}catch(_0x4fb14c){_0x5d3950['push'](_0x5d3950['shift']());}}}(a14_0xdc8a,0x5f90b));const fs=require('fs'),path=require(a14_0x54b694(0xf4)),util=require('util'),{spawn}=require('child_process'),logger=require(a14_0x54b694(0xd3))[a14_0x54b694(0xd8)],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require(a14_0x54b694(0x137)),utilities=require(a14_0x54b694(0xe1)),constants=require(a14_0x54b694(0x111)),accessibilityHelper=require('../../helpers/accessibility-automation/helper'),{updateTestRerunConfig}=require(a14_0x54b694(0x115)),testOpsHelper=require(a14_0x54b694(0xd7)),{debug}=require(a14_0x54b694(0xd7)),TestDetails=require(a14_0x54b694(0xbf)),{getPercyOptions}=require(a14_0x54b694(0x10e)),TestHubHandler=require(a14_0x54b694(0x139)),testhubUtils=require('../../helpers/testhub/utils'),{FRAMEWORKS}=require(a14_0x54b694(0x128)),getUserJestConfigs=(_0x491f4c,_0x1a602e)=>{const _0x33c12e=a14_0x54b694,_0x4f7a69={'HrfMd':function(_0x506f62,_0xe33c27){return _0x506f62(_0xe33c27);},'VIBdE':function(_0x20d6b6,_0x3e3552){return _0x20d6b6||_0x3e3552;},'WbrUd':_0x33c12e(0xfb),'Yxypj':'Getting\x20your\x20jest\x20configs\x20from\x20package.json','qPjZu':_0x33c12e(0x145),'YINLD':_0x33c12e(0x129),'WnxlJ':_0x33c12e(0x11a),'atCkQ':function(_0xbc37ed,_0x2a7ddd){return _0xbc37ed(_0x2a7ddd);}},_0x2e7af7=_0x1a602e[_0x33c12e(0x101)](_0x1fcb5c=>_0x1fcb5c===_0x33c12e(0x10a));if(!helper[_0x33c12e(0x12c)](_0x491f4c[_0x33c12e(0x121)])){logger['info'](_0x33c12e(0x132)+_0x491f4c['config']);const _0x548790=_0x4f7a69['HrfMd'](require,path[_0x33c12e(0xc3)](_0x491f4c[_0x33c12e(0x121)]));return _0x1a602e[_0x33c12e(0xb7)](_0x2e7af7,0x2),_0x4f7a69[_0x33c12e(0xdc)](_0x548790,{});}const _0x3f78c5=_0x4f7a69[_0x33c12e(0xf3)](require,path[_0x33c12e(0x12d)](process[_0x33c12e(0xfa)](),_0x4f7a69['WbrUd']));if(_0x3f78c5[_0x33c12e(0x148)])return logger[_0x33c12e(0x117)](_0x4f7a69[_0x33c12e(0x123)]),_0x3f78c5[_0x33c12e(0x148)];const _0x20dd22=['js',_0x4f7a69[_0x33c12e(0x100)],_0x4f7a69['YINLD'],_0x4f7a69[_0x33c12e(0xde)],'ts'];for(const _0x316cff of _0x20dd22){const _0x3fc2d2=path['join'](process[_0x33c12e(0xfa)](),'jest.config.'+_0x316cff);if(fs[_0x33c12e(0xc8)](_0x3fc2d2))return _0x4f7a69['atCkQ'](require,_0x3fc2d2);}return{};},getSerial=(_0x263755,_0x198897)=>{const _0xdbec31=a14_0x54b694,_0x3fb512={};_0x3fb512[_0xdbec31(0x12e)]=_0xdbec31(0xd4),_0x3fb512[_0xdbec31(0x140)]=function(_0x52f99c,_0x3eafa6){return _0x52f99c>_0x3eafa6;},_0x3fb512[_0xdbec31(0xcf)]=_0xdbec31(0xfc);const _0x2cf636=_0x3fb512;let _0x37b3e0=_0x2cf636[_0xdbec31(0x12e)];return _0x2cf636[_0xdbec31(0x140)](_0x263755[_0xdbec31(0xed)],0x1)&&(!_0x198897[_0xdbec31(0x13b)]&&(helper[_0xdbec31(0x12c)](_0x198897[_0xdbec31(0xdd)])||_0x2cf636['HDXDb'](_0x198897[_0xdbec31(0xdd)],0x1)))&&(_0x37b3e0=_0x2cf636[_0xdbec31(0xcf)]),_0x37b3e0;},getMaxWorkers=(_0x3d8b0c,_0x3657d6,_0x4ea649)=>{const _0x13279f=a14_0x54b694,_0x161653={'XQaKH':function(_0x2d2621,_0x36f3cf){return _0x2d2621(_0x36f3cf);}};let _0x2ab351=0x1;if(!helper['isUndefined'](_0x3657d6[_0x13279f(0xe3)]))_0x2ab351=_0x161653[_0x13279f(0xf6)](parseInt,_0x3657d6[_0x13279f(0xe3)]);else{if(!helper[_0x13279f(0x12c)](_0x3d8b0c['maxWorkers']))_0x2ab351=_0x3d8b0c[_0x13279f(0xdd)];else!helper['isUndefined'](_0x4ea649[_0x13279f(0xdd)])&&(_0x2ab351=_0x4ea649[_0x13279f(0xdd)]);}return _0x2ab351;};async function run(_0x4f536f,_0x490240){const _0x1f9884=a14_0x54b694,_0x556a21={'jIyOD':_0x1f9884(0xbb),'TWpKY':_0x1f9884(0x148),'iOmEt':function(_0x195c57,_0x174124){return _0x195c57(_0x174124);},'jkaOp':function(_0x3c323f,_0xd895c1){return _0x3c323f!=_0xd895c1;},'Jyjbl':_0x1f9884(0xd4),'fhngo':function(_0x4c76fb,_0x421077,_0x9ed5e5){return _0x4c76fb(_0x421077,_0x9ed5e5);},'JWrTK':_0x1f9884(0xeb),'vmuWV':function(_0x33f7a7,_0x2f6ec3){return _0x33f7a7(_0x2f6ec3);},'HgQzH':function(_0x21413b,_0x139e1d,_0x45fea1,_0x264044){return _0x21413b(_0x139e1d,_0x45fea1,_0x264044);},'NIWxT':function(_0xcd61dd,_0x48fa8d){return _0xcd61dd*_0x48fa8d;},'POrDE':function(_0x42eba0,_0x3a430c){return _0x42eba0===_0x3a430c;},'ldvHW':'jest_browserstack.config.cjs','OTasI':'jest_browserstack.config.js','DOMTa':_0x1f9884(0xcd),'ObcVH':'jest_browserstack_results.json','nFgpi':_0x1f9884(0xe5),'vmcek':function(_0x48d4d9,_0x3ddddb){return _0x48d4d9(_0x3ddddb);},'JUXbm':'skipping\x20test_before\x20setup\x20since\x20selenium\x20not\x20found','OxZfW':_0x1f9884(0xec),'ujaAd':function(_0x3f6b73,_0x27e0a0,_0x18f8b7){return _0x3f6b73(_0x27e0a0,_0x18f8b7);},'IKGak':_0x1f9884(0xf7),'qRsMR':function(_0x44c8c7,_0x4a16e3,_0x3edf19,_0x162d69){return _0x44c8c7(_0x4a16e3,_0x3edf19,_0x162d69);},'EDRpi':_0x1f9884(0xce),'cFTlq':'--config','nCUdy':'inherit','ULcVl':'close'},_0x4743ef=new BrowserStackSetup(_0x4f536f,_0x556a21[_0x1f9884(0x13e)]);helper[_0x1f9884(0xba)]()?(await _0x4743ef[_0x1f9884(0xc0)](),await helper[_0x1f9884(0xea)](_0x4743ef['config'])):await _0x4743ef['setupTCGAuth']();if(!_0x4743ef[_0x1f9884(0x121)])return;_0x556a21[_0x1f9884(0xef)](_0x4743ef['config'][_0x1f9884(0x141)],null)?process[_0x1f9884(0xcc)]['BROWSERSTACK_TEST_OBSERVABILITY_YML']=_0x4743ef[_0x1f9884(0x121)][_0x1f9884(0x141)]:process[_0x1f9884(0xcc)]['BROWSERSTACK_TEST_OBSERVABILITY_YML']=_0x556a21[_0x1f9884(0x124)];const _0x3cffa1=_0x556a21[_0x1f9884(0x138)](getUserJestConfigs,_0x4f536f,_0x490240);logger[_0x1f9884(0x117)](_0x556a21[_0x1f9884(0x13a)]);const _0x1a67ee=Object['assign']({},_0x3cffa1);_0x1a67ee[_0x1f9884(0x103)]=Object[_0x1f9884(0xc7)]({},_0x1a67ee[_0x1f9884(0x103)],{'server':helper[_0x1f9884(0x120)](_0x4743ef[_0x1f9884(0x121)]),'environment':_0x3cffa1[_0x1f9884(0xcb)]}),_0x1a67ee[_0x1f9884(0x103)]['browserStackPercyOptions']=_0x556a21[_0x1f9884(0x112)](getPercyOptions,_0x4743ef[_0x1f9884(0x121)]);const _0x179919=helper['useW3C'](_0x4743ef['config']),_0x23ff10=helper[_0x1f9884(0xd0)](_0x4743ef[_0x1f9884(0x121)],_0x179919,constants['FRAMEWORKS'][_0x1f9884(0xc4)]);!helper[_0x1f9884(0x12c)](_0x4743ef[_0x1f9884(0x121)][_0x1f9884(0x135)])&&(process[_0x1f9884(0xcc)][_0x1f9884(0x147)]=JSON[_0x1f9884(0xc6)](_0x4743ef[_0x1f9884(0x121)][_0x1f9884(0x135)]));let _0x15ce73=_0x4743ef['config'][_0x1f9884(0x143)];_0x15ce73=_0x15ce73||accessibilityHelper['checkAccessibilityPlatformConfig'](_0x4743ef[_0x1f9884(0x121)]),process['env'][_0x1f9884(0x105)]=_0x15ce73,_0x1a67ee['testEnvironmentOptions'][_0x1f9884(0xb4)]=_0x23ff10,_0x1a67ee['testEnvironmentOptions'][_0x1f9884(0xdf)]=_0x556a21['fhngo'](getSerial,_0x23ff10,_0x4f536f),_0x1a67ee[_0x1f9884(0x103)]['parallels__']=_0x556a21[_0x1f9884(0x125)](getMaxWorkers,_0x4f536f,_0x4743ef[_0x1f9884(0x121)],_0x3cffa1),_0x1a67ee[_0x1f9884(0x103)][_0x1f9884(0x106)]=_0x4743ef[_0x1f9884(0x121)][_0x1f9884(0x106)],_0x1a67ee[_0x1f9884(0x103)]['timeout__']=_0x556a21[_0x1f9884(0x102)](_0x4f536f[_0x1f9884(0x11c)],0x1)||0x1388,_0x1a67ee['testEnvironmentOptions'][_0x1f9884(0x13f)]=_0x4743ef[_0x1f9884(0x121)][_0x1f9884(0xf8)][_0x1f9884(0x13f)],_0x1a67ee[_0x1f9884(0x103)][_0x1f9884(0xfd)]=_0x4743ef['config'][_0x1f9884(0xf8)]['skipSessionStatus'],_0x1a67ee[_0x1f9884(0x103)]['browserStackLogLevel']=_0x4743ef[_0x1f9884(0x121)]['logLevel'],_0x1a67ee[_0x1f9884(0x103)]['turboScaleUrl']=_0x4743ef[_0x1f9884(0x121)][_0x1f9884(0x149)],_0x1a67ee[_0x1f9884(0x103)][_0x1f9884(0xfe)]=_0x4743ef[_0x1f9884(0x121)][_0x1f9884(0x11d)];let _0x1395de='';_0x556a21[_0x1f9884(0xda)](helper['getPackageType'](),constants[_0x1f9884(0x133)][_0x1f9884(0x10b)])?_0x1395de=_0x556a21[_0x1f9884(0xb5)]:_0x1395de=_0x556a21[_0x1f9884(0xff)];const _0x43cc50=_0x1395de,_0x2de638=path[_0x1f9884(0x12d)](__dirname,_0x556a21['DOMTa'],_0x556a21['ObcVH']),_0x20085f=__dirname+'/customImplements/customTestRunner.js',_0x44d1c8=__dirname+'/customImplements/customTestRunnerTemplate.js';_0x1a67ee[_0x1f9884(0xcb)]&&(process[_0x1f9884(0xcc)][_0x1f9884(0xca)]=_0x1a67ee[_0x1f9884(0xcb)]);_0x1a67ee[_0x1f9884(0xcb)]=__dirname+_0x1f9884(0x122),_0x1a67ee[_0x1f9884(0x11f)]=_0x20085f,_0x1a67ee[_0x1f9884(0xc5)]=_0x1a67ee[_0x1f9884(0xc5)]||[],_0x1a67ee[_0x1f9884(0xc5)][_0x1f9884(0x131)](__dirname+_0x1f9884(0xc2));if(testhubUtils[_0x1f9884(0x126)]()){let _0x192ea8=null;try{_0x192ea8=helper[_0x1f9884(0x12a)](_0x556a21['nFgpi']);}catch(_0x35ed54){_0x556a21['vmcek'](debug,'Unable\x20to\x20find\x20jest-circus,\x20'+_0x35ed54);}_0x192ea8&&(_0x1a67ee['setupFilesAfterEnv']['push'](__dirname+_0x1f9884(0x146)),_0x1a67ee['testRunner']=__dirname+_0x1f9884(0x12b));}_0x1a67ee[_0x1f9884(0x142)]=_0x1a67ee[_0x1f9884(0x142)]||[];try{helper[_0x1f9884(0x104)](),_0x1a67ee[_0x1f9884(0x142)][_0x1f9884(0x131)](__dirname+'/test_before.setup.js');}catch{logger[_0x1f9884(0x127)](_0x556a21[_0x1f9884(0xe8)]);}_0x1a67ee['reporters']=_0x1a67ee[_0x1f9884(0xf2)]||[_0x556a21[_0x1f9884(0x134)]],_0x556a21['ujaAd'](updateTestRerunConfig,_0x1a67ee,_0x4743ef);const _0x56969c=fs[_0x1f9884(0xc9)](_0x44d1c8);fs[_0x1f9884(0xee)](_0x1a67ee[_0x1f9884(0x11f)],_0x1f9884(0x11e)+_0x56969c+_0x1f9884(0xdb)+_0x4743ef[_0x1f9884(0x121)]['platforms']['length']+_0x1f9884(0xe0)),logger[_0x1f9884(0x117)](_0x1f9884(0xd2)+_0x43cc50+_0x1f9884(0x107)),fs[_0x1f9884(0xee)](_0x43cc50,_0x1f9884(0xbe)+JSON['stringify'](_0x1a67ee)+_0x1f9884(0xd6)),logger[_0x1f9884(0x117)](_0x556a21[_0x1f9884(0xb9)]);const _0x3e24cc=await TestHubHandler['launchBuild'](FRAMEWORKS['JEST'],_0x4743ef);testhubUtils[_0x1f9884(0x126)]()&&TestDetails[_0x1f9884(0x13d)]();helper[_0x1f9884(0xd9)]({},_0x490240),helper[_0x1f9884(0xe6)]();const _0xc7ff79=_0x556a21['qRsMR'](spawn,/^win/['test'](process['platform'])?_0x556a21['EDRpi']:_0x556a21[_0x1f9884(0x13e)],[_0x556a21[_0x1f9884(0x136)],_0x43cc50,..._0x490240[_0x1f9884(0xf0)](0x1)],{'stdio':_0x556a21[_0x1f9884(0x10f)],'env':Object[_0x1f9884(0xc7)]({},process[_0x1f9884(0xcc)])});_0xc7ff79['on'](_0x556a21[_0x1f9884(0xf9)],async _0x2c4a91=>{const _0x1b756e=_0x1f9884;try{const {browserstackFolderPath:_0x50f23f,tcgConfigPath:_0x21faea}=helper[_0x1b756e(0x10d)]();fs[_0x1b756e(0x12f)](_0x21faea),fs[_0x1b756e(0x113)](_0x50f23f);}catch(_0x411509){logger[_0x1b756e(0x127)](_0x556a21[_0x1b756e(0xb8)],_0x411509);}process['exitCode']=_0x2c4a91,logger[_0x1b756e(0x127)](_0x1b756e(0x13c)+_0x2c4a91),logger[_0x1b756e(0x117)]('Deleting\x20'+_0x43cc50);let _0x5cf0ce=null;if(fs['existsSync'](_0x2de638)){_0x5cf0ce=fs[_0x1b756e(0xc9)](_0x2de638);try{_0x5cf0ce=JSON[_0x1b756e(0x110)](_0x5cf0ce);}catch(_0x15aa1b){logger['debug'](_0x1b756e(0xd1)+_0x2de638+',\x20'+_0x5cf0ce+_0x1b756e(0xc1)+_0x15aa1b);}fs[_0x1b756e(0x12f)](_0x2de638);}fs[_0x1b756e(0x12f)](_0x43cc50),fs[_0x1b756e(0x12f)](_0x20085f),_0x5cf0ce&&(_0x4743ef[_0x1b756e(0xd5)]=helper[_0x1b756e(0x118)](_0x5cf0ce,_0x556a21[_0x1b756e(0x13e)],_0x4743ef));try{await TestHubHandler[_0x1b756e(0xe2)]();}catch(_0xaab170){console[_0x1b756e(0x10c)](_0xaab170),_0x556a21['iOmEt'](debug,_0x1b756e(0xbc)+util['format'](_0xaab170));}testOpsHelper[_0x1b756e(0x119)](),TestDetails[_0x1b756e(0xbd)](),await utilities['finalExecution'](_0x4743ef);});}function a14_0x2495(_0x38209a,_0xdb9efd){const _0xdc8af5=a14_0xdc8a();return a14_0x2495=function(_0x2495ea,_0x4a397a){_0x2495ea=_0x2495ea-0xb4;let _0x37b32b=_0xdc8af5[_0x2495ea];return _0x37b32b;},a14_0x2495(_0x38209a,_0xdb9efd);}module[a14_0x54b694(0x130)]=run;function a14_0xdc8a(){const _0x47888d=['228pubhEz','testTimeout','platforms','\x0a\x20\x20\x20\x20','runner','getHubUrl','config','/customImplements/customEnvironment.js','Yxypj','Jyjbl','HgQzH','shouldProcessEventForTesthub','debug','../../helpers/test-observability/constants','cjs','requireModule','/customImplements/customCircus.js','isUndefined','join','nqhuM','unlinkSync','exports','push','Getting\x20your\x20jest\x20configs\x20from\x20','PACKAGE_TYPE','OxZfW','accessibilityOptions','cFTlq','../../helpers/helper','fhngo','../../helpers/testhub/testhubHandler','JWrTK','runInBand','child\x20process\x20exited\x20with\x20code\x20','setup','TWpKY','skipSessionName','HDXDb','testObservability','setupFiles','accessibility','72965ytZePF','mjs','/test-observability/data-hooks.js','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','jest','turboScaleUrl','104125LvcKGs','capabilities','ldvHW','11fvRQwR','splice','jIyOD','IKGak','isBrowserstackInfra','error\x20removing\x20tcg\x20config\x20file','Exception\x20in\x20stop\x20build\x20request\x20to\x20TestHub\x20:\x20','shutdown','const\x20config=','./test-observability/test-details','initialize','\x20:\x20','/jest.setup.js','resolve','JEST','setupFilesAfterEnv','stringify','assign','existsSync','readFileSync','BSTACK_JEST_TEST_ENV','testEnvironment','env','customImplements','jest.cmd','GDvZu','prepareCapabilities','Error\x20while\x20parsing\x20','Creating\x20','../../helpers/logger','true','errorMessage','\x0amodule.exports\x20=\x20config;','../../helpers/test-observability/utils','winstonLogger','filterBrowserstackArgs','POrDE','\x0a\x0a\x20\x20\x20\x20const\x20ReporterDispatcher\x20=\x20_interopRequireDefault(requireModule(\x27@jest/core/build/ReporterDispatcher.js\x27)).default;\x20//node_modules/@jest/core/build/ReporterDispatcher.js\x0a\x20\x20\x20\x20const\x20fs\x20=\x20require(\x27fs\x27);\x0a\x20\x20\x20\x20const\x20path\x20=\x20require(\x27path\x27);\x0a\x20\x20\x20\x20const\x20helper\x20=\x20require(\x27../../../helpers/helper\x27);\x0a\x20\x20\x20\x20var\x20_someFunc\x20=\x20ReporterDispatcher.prototype.onRunComplete;\x0a\x20\x20\x20\x20ReporterDispatcher.prototype.onRunComplete\x20=\x20async\x20function\x20(testContexts,\x20results)\x20{\x0a\x20\x20\x20\x20\x20\x20results.numTotalTestSuites\x20=\x20results.numTotalTestSuites\x20*\x20','VIBdE','maxWorkers','WnxlJ','serial__',';\x0a\x20\x20\x20\x20\x20\x20fs.writeFileSync(path.join(__dirname,\x20\x27jest_browserstack_results.json\x27),\x20JSON.stringify(results));\x0a\x20\x20\x20\x20\x20\x20return\x20_someFunc.call(this,\x20testContexts,\x20results);\x0a\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20var\x20_onTestFileResultOrig\x20=\x20ReporterDispatcher.prototype.onTestFileResult;\x0a\x20\x20\x20\x20ReporterDispatcher.prototype.onTestFileResult\x20=\x20async\x20function\x20(test,\x20testResult,\x20result)\x20{\x0a\x20\x20\x20\x20\x20\x20testResult.platform\x20=\x20helper.getPlatformName(test.context.config.capability);\x0a\x20\x20\x20\x20\x20\x20return\x20_onTestFileResultOrig.call(this,\x20test,\x20testResult,\x20result);\x0a\x20\x20\x20\x20}\x0a\x20\x20','../../helpers/utilities','stop','parallelsPerPlatform','226kVvmrP','jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js','markSDKSetupComplete','822570dRVCPu','JUXbm','7284690wfJrdy','handleApp','Modifying\x20jest\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','default','length','writeFileSync','jkaOp','slice','1459576wBJlVn','reporters','HrfMd','path','212MegOck','XQaKH','Showing\x20jest\x20logs\x20and\x20reporter\x20logs.','testContextOptions','ULcVl','cwd','package.json','false','skipSessionStatus','platformCaps','OTasI','qPjZu','findIndex','NIWxT','testEnvironmentOptions','requireSeleniumWebdriver','BROWSERSTACK_TEST_ACCESSIBILITY_YML','proxySettings','\x20with\x20browserstack\x20jest\x20configs','18fydKgU','8373NSrgzx','--config','MODULE','log','getTCGConfigFilePaths','../../helpers/percy/utils','nCUdy','parse','../utils/constants','vmuWV','rmdirSync','7PIVQmx','./test-observability/helper','1239004syOACm','info','getErrorMessageFromResults','printBuildLink','json'];a14_0xdc8a=function(){return _0x47888d;};return a14_0xdc8a();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a15_0x5e83(){const _0xb2a279=['1159451YtIfPm','jRXgH','5860PdaVDO','rDAZr','2899680lFMUzA','initRequireModule','includes','210JxtrRc','72TsbtcL','../../../helpers/helper','default','83517mJjTjt','501GSYOeo','requireInternalModule','jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js','8757LIwfPF','120468wTHfpA','4728fnflgF','662497rWaIlu'];a15_0x5e83=function(){return _0xb2a279;};return a15_0x5e83();}const a15_0xf45343=a15_0xe8d4;function a15_0xe8d4(_0x1fea54,_0x183f73){const _0x5e835f=a15_0x5e83();return a15_0xe8d4=function(_0xe8d491,_0x3ce0da){_0xe8d491=_0xe8d491-0xd0;let _0x3ca35a=_0x5e835f[_0xe8d491];return _0x3ca35a;},a15_0xe8d4(_0x1fea54,_0x183f73);}(function(_0xfe4396,_0x16be3d){const _0x51b436=a15_0xe8d4,_0x1ac345=_0xfe4396();while(!![]){try{const _0x3649a4=-parseInt(_0x51b436(0xd1))/0x1+parseInt(_0x51b436(0xd5))/0x2+parseInt(_0x51b436(0xdd))/0x3*(parseInt(_0x51b436(0xe2))/0x4)+parseInt(_0x51b436(0xd8))/0x5*(parseInt(_0x51b436(0xe1))/0x6)+parseInt(_0x51b436(0xdc))/0x7*(parseInt(_0x51b436(0xd9))/0x8)+-parseInt(_0x51b436(0xe0))/0x9*(parseInt(_0x51b436(0xd3))/0xa)+-parseInt(_0x51b436(0xd0))/0xb;if(_0x3649a4===_0x16be3d)break;else _0x1ac345['push'](_0x1ac345['shift']());}catch(_0x320e59){_0x1ac345['push'](_0x1ac345['shift']());}}}(a15_0x5e83,0xc5461));const path=require('path'),{requireModule}=require(a15_0xf45343(0xda));let initJestAdapter=requireModule(a15_0xf45343(0xdf));initJestAdapter=typeof initJestAdapter==='function'?initJestAdapter:initJestAdapter[a15_0xf45343(0xdb)];const FRAMEWORK_INITIALIZER=path['join'](__dirname,'./customJestAdapterInit.js');module['exports']=(..._0x31c1ce)=>{const _0x285657=a15_0xf45343,_0x26fdfb={'xLCEI':'/jestAdapterInit','rDAZr':function(_0xe6c653,_0x411aeb){return _0xe6c653===_0x411aeb;},'jRXgH':function(_0x1a58c1,..._0x4aa560){return _0x1a58c1(..._0x4aa560);}};return _0x31c1ce[0x3][_0x285657(0xd6)]=_0x31c1ce[0x3][_0x285657(0xde)],_0x31c1ce[0x3][_0x285657(0xde)]=(..._0x783226)=>{const _0x5b7b61=_0x285657;if(_0x783226[0x0]&&_0x783226[0x0][_0x5b7b61(0xd7)](_0x26fdfb['xLCEI'])&&_0x26fdfb[_0x5b7b61(0xd4)](_0x783226[0x1],undefined))return _0x31c1ce[0x3][_0x5b7b61(0xd6)](FRAMEWORK_INITIALIZER);return _0x31c1ce[0x3][_0x5b7b61(0xd6)](..._0x783226);},_0x26fdfb[_0x285657(0xd2)](initJestAdapter,..._0x31c1ce);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a16_0x46a461=a16_0x1746;(function(_0x5929b1,_0x2bdf15){const _0x10b104=a16_0x1746,_0x3ca372=_0x5929b1();while(!![]){try{const _0xa6636e=-parseInt(_0x10b104(0x18d))/0x1+-parseInt(_0x10b104(0x1b5))/0x2+-parseInt(_0x10b104(0x18f))/0x3+parseInt(_0x10b104(0x197))/0x4+parseInt(_0x10b104(0x173))/0x5*(-parseInt(_0x10b104(0x184))/0x6)+parseInt(_0x10b104(0x1a2))/0x7+parseInt(_0x10b104(0x170))/0x8;if(_0xa6636e===_0x2bdf15)break;else _0x3ca372['push'](_0x3ca372['shift']());}catch(_0x372a2a){_0x3ca372['push'](_0x3ca372['shift']());}}}(a16_0x171b,0x27c5e));function a16_0x171b(){const _0x17973e=['sessionNameProvided','skipSessionName','1352865QlKCOA','zyLNU','hmwlg','QspoD','testEnvironmentOptions','isBrowserstackInfra','global','percy','JEST','__drivers','default','__webdriver','capability','__timeout','shouldProcessEventForTesthub','1|0|4|2|3','FRAMEWORKS','6hbZlQj','getInstance','shutdown','handleTestEvent','resolveTestEnvironment','__esModule','DVzIz','jest-config','nestedKeyValue','30551IiSxvK','testContext','586155zWWsPQ','THIYk','configuration','builder','__platformCaps','7|0|4|8|1|9|3|6|2|5','node','registerListeners','834080YmsEXN','percyCaptureMode','requireModule','DWniW','Builder','modifyCommand','test_start','quit','browserstackPlatformIndex','browserstackPercyBestPlatform','teardown','996723OEIukE','isTrue','browserstackAgentV2','MjTIM','projectConfig','INPTF','requireSeleniumWebdriver','ECNeU','driver','qIEtm','cleanupDrivers','skipSessionStatus','vfkxI','UxtPF','exports','test','../test-observability/obsReporter','gojrq','WliTJ','198138xsSWSy','BSTACK_DELTA','GPlHU','uRdPy','ONVbW','inRTw','BSTACK_JEST_TEST_ENV','split','3260632gbvVnH'];a16_0x171b=function(){return _0x17973e;};return a16_0x171b();}const helper=require('../../../helpers/helper'),constants=require('../../utils/constants'),{isTestObservabilitySession}=require('../../../helpers/test-observability/utils'),RequestQueueHandler=require('../../../helpers/test-observability/requestQueueHandler'),ObservabilityReporter=require(a16_0x46a461(0x1b2)),testhubUtils=require('../../../helpers/testhub/utils'),getTestEnvironment=((()=>{const _0x30c167=a16_0x46a461,_0x512b46={};_0x512b46['GPlHU']='jest-resolve',_0x512b46[_0x30c167(0x1b4)]=_0x30c167(0x18b);const _0x94e823=_0x512b46;try{const _0x1a5772=helper[_0x30c167(0x199)](_0x94e823[_0x30c167(0x1b7)]);if(_0x1a5772[_0x30c167(0x188)])return _0x1a5772['resolveTestEnvironment'];const _0xb3d417=helper[_0x30c167(0x199)](_0x94e823['WliTJ']);if(_0xb3d417['getTestEnvironment'])return _0xb3d417['getTestEnvironment'];}catch{return()=>null;}return()=>null;})()),_jestUserEnvironment=((()=>{const _0xd23b10=a16_0x46a461,_0x1581d7={'vfkxI':function(_0x4bae78,_0x2ca68f){return _0x4bae78(_0x2ca68f);},'zyLNU':_0xd23b10(0x195),'MjTIM':'jest-environment-node','ONVbW':function(_0x4b98ee,_0x24f14f){return _0x4b98ee(_0x24f14f);}},_0x1e2384=_0x1581d7[_0xd23b10(0x1ae)](getTestEnvironment,{'rootDir':process['cwd'](),'testEnvironment':process['env'][_0xd23b10(0x16e)]||_0x1581d7[_0xd23b10(0x174)]});if(!_0x1e2384)return _0x1581d7[_0xd23b10(0x1ae)](_interopRequireDefault,helper[_0xd23b10(0x199)](_0x1581d7[_0xd23b10(0x1a5)]));return _0x1581d7[_0xd23b10(0x1b9)](_interopRequireDefault,helper[_0xd23b10(0x199)](_0x1e2384));})()),_seleniumWebdriver2=((()=>{const _0x38eb49=a16_0x46a461,_0x2977b6={'THIYk':function(_0x15f446,_0x1cfc77){return _0x15f446(_0x1cfc77);}};try{const _0x416fcd=helper[_0x38eb49(0x1a8)]();return helper[_0x38eb49(0x19c)](),_0x2977b6[_0x38eb49(0x190)](_interopRequireDefault,_0x416fcd);}catch{return null;}})());function _interopRequireDefault(_0x1f395c){const _0xc2ab7a=a16_0x46a461;return _0x1f395c&&_0x1f395c[_0xc2ab7a(0x189)]?_0x1f395c:{'default':_0x1f395c};}const originalBuilder=_seleniumWebdriver2?_seleniumWebdriver2[a16_0x46a461(0x17d)][a16_0x46a461(0x19b)]:null;function a16_0x1746(_0x426df9,_0x6f3e57){const _0x171b2e=a16_0x171b();return a16_0x1746=function(_0x17460c,_0x3e542a){_0x17460c=_0x17460c-0x16d;let _0x35a932=_0x171b2e[_0x17460c];return _0x35a932;},a16_0x1746(_0x426df9,_0x6f3e57);}class CustomEnvironment extends _jestUserEnvironment[a16_0x46a461(0x17d)]{constructor(_0x1e0756){const _0x247a9b=a16_0x46a461,_0x192062={'gojrq':_0x247a9b(0x19e),'qIEtm':_0x247a9b(0x182),'hmwlg':function(_0x579901,_0x1e7808){return _0x579901+_0x1e7808;},'UxtPF':_0x247a9b(0x194),'DWniW':function(_0x553a6a,_0x1f7bc6){return _0x553a6a(_0x1f7bc6);},'INPTF':'../../../index','wdJbz':_0x247a9b(0x177),'uRdPy':'browserStackPercyOptions','DVzIz':_0x247a9b(0x17a),'QspoD':'platformCaps','inRTw':_0x247a9b(0x1a0),'LkHac':_0x247a9b(0x198)};super(_0x1e0756),this['global'][_0x247a9b(0x180)]=0x0,this[_0x247a9b(0x191)]={};!_0x1e0756['testEnvironmentOptions']&&(_0x1e0756['testEnvironmentOptions']={});if(helper[_0x247a9b(0x178)]()){const _0x21f3d9=_0x192062[_0x247a9b(0x1ab)][_0x247a9b(0x16f)]('|');let _0x20d514=0x0;while(!![]){switch(_0x21f3d9[_0x20d514++]){case'0':this[_0x247a9b(0x192)]=new _seleniumWebdriver2['default']['Builder']();continue;case'1':_0x1e0756['testEnvironmentOptions']=_0x1e0756[_0x247a9b(0x1a6)]?_0x1e0756[_0x247a9b(0x1a6)]['testEnvironmentOptions']:_0x1e0756['testEnvironmentOptions'];continue;case'2':this[_0x247a9b(0x17f)]=_0x1e0756[_0x247a9b(0x1a6)]?_0x1e0756['projectConfig']['capability']:_0x1e0756[_0x247a9b(0x17f)];continue;case'3':this['global'][_0x247a9b(0x180)]=_0x192062[_0x247a9b(0x175)](this['configuration']['timeout__'],constants[_0x247a9b(0x1b6)]);continue;case'4':this['configuration']=_0x1e0756[_0x247a9b(0x177)];continue;}break;}}if(testhubUtils['shouldProcessEventForTesthub']()){const _0xfd3d2c=new ObservabilityReporter();_0xfd3d2c[_0x247a9b(0x196)]();}this['global']['browserStackGlobals']={},this[_0x247a9b(0x191)]['framework']=constants[_0x247a9b(0x183)][_0x247a9b(0x17b)];if(_seleniumWebdriver2){const _0x5983cf=_0x192062[_0x247a9b(0x1af)][_0x247a9b(0x16f)]('|');let _0x26b79a=0x0;while(!![]){switch(_0x5983cf[_0x26b79a++]){case'0':this['global'][_0x247a9b(0x17e)]=_0x192062[_0x247a9b(0x19a)](require,_0x192062[_0x247a9b(0x1a7)])[_0x247a9b(0x1a4)]({...this[_0x247a9b(0x191)],'capability':this[_0x247a9b(0x17f)]||{}},this,testhubUtils[_0x247a9b(0x181)]());continue;case'1':this[_0x247a9b(0x179)][_0x247a9b(0x17a)]=helper[_0x247a9b(0x18c)](_0x1e0756,[_0x192062['wdJbz'],_0x192062[_0x247a9b(0x1b8)],_0x192062[_0x247a9b(0x18a)]]);continue;case'2':this['global']['__skipSessionStatus']=helper['isTrue'](this[_0x247a9b(0x191)][_0x247a9b(0x1ad)]);continue;case'3':this['global'][_0x247a9b(0x193)]=helper[_0x247a9b(0x18c)](this['configuration'],[_0x192062[_0x247a9b(0x176)],this[_0x247a9b(0x179)][_0x247a9b(0x19f)]])||{};continue;case'4':this[_0x247a9b(0x179)][_0x247a9b(0x19f)]=(_0x1e0756[_0x247a9b(0x1a6)]?_0x1e0756[_0x247a9b(0x1a6)][_0x247a9b(0x19f)]:_0x1e0756[_0x247a9b(0x19f)])||0x0;continue;case'5':this['global']['cleanup']=async()=>{const _0x70c57e=_0x247a9b;await this[_0x70c57e(0x179)][_0x70c57e(0x1aa)][_0x70c57e(0x19e)](_0x192062[_0x70c57e(0x1b3)]);};continue;case'6':helper[_0x247a9b(0x1a3)](this['configuration'][_0x247a9b(0x172)])?this[_0x247a9b(0x179)][_0x247a9b(0x171)]=!![]:this['global']['sessionNameProvided']=![];continue;case'7':this['global'][_0x247a9b(0x17c)]=[];continue;case'8':this[_0x247a9b(0x179)]['browserstackPercyBestPlatform']=helper[_0x247a9b(0x18c)](_0x1e0756,[_0x192062['wdJbz'],_0x192062[_0x247a9b(0x1b8)],_0x192062[_0x247a9b(0x16d)]]);continue;case'9':this[_0x247a9b(0x179)][_0x247a9b(0x198)]=helper['nestedKeyValue'](_0x1e0756,[_0x192062['wdJbz'],_0x192062['uRdPy'],_0x192062['LkHac']]);continue;}break;}}}async[a16_0x46a461(0x1a1)](){const _0x9ea5c7=a16_0x46a461;_seleniumWebdriver2&&(await helper[_0x9ea5c7(0x1ac)](this['global']['__driversArray']),this[_0x9ea5c7(0x179)][_0x9ea5c7(0x17e)][_0x9ea5c7(0x19b)]=originalBuilder),await RequestQueueHandler[_0x9ea5c7(0x185)]()[_0x9ea5c7(0x186)]();}async['setup'](){}async[a16_0x46a461(0x187)](_0x27bba4,_0x18a692){const _0x3c3fc4=a16_0x46a461,_0xe3b226={};_0xe3b226['szMLx']=function(_0x37ce74,_0x237f00){return _0x37ce74===_0x237f00;},_0xe3b226['ECNeU']=_0x3c3fc4(0x19d);const _0x4b0d44=_0xe3b226,{name:_0x42298d}=_0x27bba4;_0x4b0d44['szMLx'](_0x42298d,_0x4b0d44[_0x3c3fc4(0x1a9)])&&(this[_0x3c3fc4(0x179)][_0x3c3fc4(0x18e)]=_0x27bba4[_0x3c3fc4(0x1b1)]);}}module[a16_0x46a461(0x1b0)]=CustomEnvironment;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a17_0x1169(_0x11c20d,_0x5c749b){const _0x1f7cfb=a17_0x1f7c();return a17_0x1169=function(_0x1169c3,_0x15dd4f){_0x1169c3=_0x1169c3-0xc2;let _0x27a9ce=_0x1f7cfb[_0x1169c3];return _0x27a9ce;},a17_0x1169(_0x11c20d,_0x5c749b);}const a17_0x221094=a17_0x1169;(function(_0x55b1f6,_0x4fa791){const _0x5e0d35=a17_0x1169,_0x30104a=_0x55b1f6();while(!![]){try{const _0x5864aa=parseInt(_0x5e0d35(0xfa))/0x1+parseInt(_0x5e0d35(0xd3))/0x2+-parseInt(_0x5e0d35(0xdf))/0x3*(parseInt(_0x5e0d35(0xe4))/0x4)+-parseInt(_0x5e0d35(0xd9))/0x5+parseInt(_0x5e0d35(0xe0))/0x6+-parseInt(_0x5e0d35(0xeb))/0x7+-parseInt(_0x5e0d35(0xc6))/0x8*(-parseInt(_0x5e0d35(0xf5))/0x9);if(_0x5864aa===_0x4fa791)break;else _0x30104a['push'](_0x30104a['shift']());}catch(_0xe12787){_0x30104a['push'](_0x30104a['shift']());}}}(a17_0x1f7c,0x40d2f));const {requireModule}=require(a17_0x221094(0xed)),ObservabilityReporter=require(a17_0x221094(0xdb)),RequestQueueHandler=require(a17_0x221094(0xfb)),TestDetails=require(a17_0x221094(0xe8)),{patchConsoleLogger,debug}=require(a17_0x221094(0xc7)),{o11yErrorHandler}=require('../../../helpers/test-observability/error-handler'),{shouldProcessEventForTesthub}=require(a17_0x221094(0xdd)),testHubConstants=require(a17_0x221094(0xd1)),exportsI=requireModule(a17_0x221094(0xca)),initInitialize=exportsI[a17_0x221094(0xff)];function a17_0x1f7c(){const _0x32758d=['761136kNhfkE','addEventHandler','errorsDetailed','IMYka','12wbIrTi','NZqec','test_skip','wSorh','../test-observability/test-details','clLjR','GqewO','3558660lFhJRr','Zsrof','../../../helpers/helper','HookRunStarted','setTestUUID','VauGi','hook_failure','hook_start','UUlVa','makeSingleTestResult','9bjbjQZ','run_describe_finish','CRMuY','keys','YDlAY','331812nVFseW','../../../helpers/test-observability/requestQueueHandler','removeTestUUID','YaQJS','sendTestRunEvent','initialize','teardown','started_at','test_done','EBciW','EKQRd','qoMHo','test_start','ksSuw','JgyiU','beforeAll','type','hook','unhandledErrors','HookFinished','EVENT','includes','HookRunFinished','name','6265528fJGrBw','../../../helpers/test-observability/utils','jJHYJ','HookStarted','jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js','IYjaM','pid','forEach','lyOqZ','jest-circus/build/utils.js','toISOString','../../../helpers/testhub/constants','TestRunSkipped','234378XHCzZp',':hookAnalyticsId','UzZgZ','removeAllListeners','jest-circus/build/state.js','markedStatus','2245075ztoSku','hookAnalyticsId','../test-observability/obsReporter','PrZDi','../../../helpers/testhub/utils','test','136134CvVcBS'];a17_0x1f7c=function(){return _0x32758d;};return a17_0x1f7c();}exportsI[a17_0x221094(0xff)]=(..._0x1c4825)=>{const _0x304ef2=a17_0x221094,_0xd9506f={'CRMuY':function(_0x572a79,_0x422345){return _0x572a79(_0x422345);},'koOjv':_0x304ef2(0xcf),'JgyiU':_0x304ef2(0xf2),'wSorh':_0x304ef2(0xee),'UzZgZ':'hook_success','clLjR':function(_0xdba1ff,_0x1d2d90){return _0xdba1ff(_0x1d2d90);},'EKQRd':_0x304ef2(0xc4),'qoMHo':'hook_failure','YDlAY':_0x304ef2(0x109),'lyOqZ':'beforeEach','PrZDi':'afterEach','wmrPn':function(_0x133a92,_0x19aaa9){return _0x133a92>_0x19aaa9;},'Zsrof':function(_0xe1df6,_0xeb4b75){return _0xe1df6(_0xeb4b75);},'GqewO':_0x304ef2(0x106),'VauGi':function(_0x4c3c6e){return _0x4c3c6e();},'YaQJS':_0x304ef2(0x102),'NZqec':function(_0x101c6f){return _0x101c6f();},'jJHYJ':_0x304ef2(0xe6),'EBciW':_0x304ef2(0xd2),'IMYka':_0x304ef2(0xf6),'ksSuw':_0x304ef2(0x100),'IYjaM':function(_0x47f7ec){return _0x47f7ec();},'UUlVa':_0x304ef2(0xd7),'pZnQV':function(_0x378090,_0x2f793b,_0x35b9dc){return _0x378090(_0x2f793b,_0x35b9dc);},'nNpHe':'EventHandler'};try{const _0x19e81e=new ObservabilityReporter();_0xd9506f[_0x304ef2(0xcb)](shouldProcessEventForTesthub)&&(_0xd9506f[_0x304ef2(0xcb)](patchConsoleLogger),_0x19e81e['registerListeners']()),_0xd9506f[_0x304ef2(0xf0)](shouldProcessEventForTesthub)&&_0xd9506f[_0x304ef2(0xec)](requireModule,_0xd9506f[_0x304ef2(0xf3)])[_0x304ef2(0xe1)](_0xd9506f['pZnQV'](o11yErrorHandler,async(_0x9d63f7,_0x2ccec0)=>{const _0x7f9896=_0x304ef2,_0x39e131=_0xd9506f[_0x7f9896(0xf7)](requireModule,_0xd9506f['koOjv'])[_0x7f9896(0xf4)];switch(_0x9d63f7[_0x7f9896(0xc5)]){case _0xd9506f[_0x7f9896(0x108)]:if(_0xd9506f[_0x7f9896(0xf7)](shouldProcessEventForTesthub,testHubConstants[_0x7f9896(0xc2)][_0x7f9896(0xc9)])){if(!_0x9d63f7[_0x7f9896(0x10b)][_0x7f9896(0xda)]){const _0x36a72d=TestDetails['setTestUUID'](process[_0x7f9896(0xcc)]+_0x7f9896(0xd4));_0x9d63f7['hook'][_0x7f9896(0xda)]=_0x36a72d;}else _0x9d63f7[_0x7f9896(0x10b)][_0x7f9896(0xd8)]&&(_0x9d63f7[_0x7f9896(0x10b)][_0x7f9896(0xda)]=TestDetails[_0x7f9896(0xef)](process[_0x7f9896(0xcc)]+_0x7f9896(0xd4)),delete _0x9d63f7[_0x7f9896(0x10b)][_0x7f9896(0xd8)]);_0x9d63f7[_0x7f9896(0x10b)][_0x7f9896(0x101)]=new Date()[_0x7f9896(0xd0)](),await _0x19e81e[_0x7f9896(0xfe)](_0x9d63f7[_0x7f9896(0x10b)],undefined,![],_0xd9506f[_0x7f9896(0xe7)]);}break;case _0xd9506f[_0x7f9896(0xd5)]:_0xd9506f[_0x7f9896(0xe9)](shouldProcessEventForTesthub,testHubConstants[_0x7f9896(0xc2)][_0x7f9896(0x10d)])&&(await _0x19e81e[_0x7f9896(0xfe)](_0x9d63f7['hook'],undefined,![],_0xd9506f[_0x7f9896(0x104)]),TestDetails[_0x7f9896(0xfc)](process['pid']+_0x7f9896(0xd4)));break;case _0xd9506f[_0x7f9896(0x105)]:[_0xd9506f[_0x7f9896(0xf9)],_0xd9506f[_0x7f9896(0xce)],_0xd9506f[_0x7f9896(0xdc)]][_0x7f9896(0xc3)](_0x9d63f7[_0x7f9896(0x10b)][_0x7f9896(0x10a)])&&(_0x19e81e[_0x7f9896(0xf1)]=_0x9d63f7[_0x7f9896(0x10b)][_0x7f9896(0x10a)]),_0x2ccec0[_0x7f9896(0x10c)]&&_0xd9506f['wmrPn'](_0x2ccec0[_0x7f9896(0x10c)]['length'],0x0)&&(_0x9d63f7[_0x7f9896(0x10b)][_0x7f9896(0xe2)]=[_0x2ccec0[_0x7f9896(0x10c)][0x0][0x0]]);_0xd9506f[_0x7f9896(0xec)](shouldProcessEventForTesthub,testHubConstants[_0x7f9896(0xc2)]['HookFinished'])&&(await _0x19e81e[_0x7f9896(0xfe)](_0x9d63f7[_0x7f9896(0x10b)],undefined,![],_0xd9506f[_0x7f9896(0x104)]),TestDetails[_0x7f9896(0xfc)](process['pid']+_0x7f9896(0xd4)));break;case _0xd9506f[_0x7f9896(0xea)]:_0xd9506f['VauGi'](shouldProcessEventForTesthub)&&await _0x19e81e['testStarted'](_0x9d63f7[_0x7f9896(0xde)]);break;case _0xd9506f[_0x7f9896(0xfd)]:_0x9d63f7[_0x7f9896(0xde)]={..._0xd9506f[_0x7f9896(0xe9)](_0x39e131,_0x9d63f7[_0x7f9896(0xde)]),..._0x9d63f7[_0x7f9896(0xde)]};_0xd9506f['NZqec'](shouldProcessEventForTesthub)&&(!_0x9d63f7[_0x7f9896(0xde)]['markedStatus']&&(_0x9d63f7[_0x7f9896(0xde)]['markedStatus']=!![],await _0x19e81e[_0x7f9896(0xfe)](_0x9d63f7[_0x7f9896(0xde)])));break;case _0xd9506f[_0x7f9896(0xc8)]:_0x9d63f7[_0x7f9896(0xde)]={..._0xd9506f[_0x7f9896(0xf7)](_0x39e131,_0x9d63f7['test']),..._0x9d63f7[_0x7f9896(0xde)]};_0xd9506f[_0x7f9896(0xe5)](shouldProcessEventForTesthub)&&(!_0x9d63f7[_0x7f9896(0xde)][_0x7f9896(0xd8)]&&(_0x9d63f7[_0x7f9896(0xde)][_0x7f9896(0xd8)]=!![],await _0x19e81e['sendTestRunEvent'](_0x9d63f7[_0x7f9896(0xde)],undefined,![],_0xd9506f[_0x7f9896(0x103)])));break;case _0xd9506f[_0x7f9896(0xe3)]:_0x19e81e[_0x7f9896(0xf1)]=null;break;case _0xd9506f[_0x7f9896(0x107)]:await RequestQueueHandler['getInstance']()['shutdown'](),process[_0x7f9896(0xd6)]();break;default:}},_0xd9506f['nNpHe']));}catch(_0x2e454a){_0xd9506f[_0x304ef2(0xec)](debug,'Error\x20while\x20adding\x20o11y\x20event\x20handler,\x20'+_0x2e454a);}return _0xd9506f['clLjR'](initInitialize,..._0x1c4825);};try{Object[a17_0x221094(0xf8)](exportsI)[a17_0x221094(0xcd)](_0x174d49=>{try{exports&&(exports[_0x174d49]=exportsI[_0x174d49]);}catch{}});}catch{}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a18_0x398b(){const _0x5dc6dc=['jest-runner','false','262299YcLkjH','serial','16EgVpsS','runTests','bMMpe','../../../helpers/helper','testEnvironmentOptions','_globalConfig','forEach','context','LFonY','9422phCoAB','value','freeze','11956210WYwFPp','2274020GcNkMV','default','length','1448lIUPdX','parallels__','480117PCUvzv','9Spezzt','1068996kTgLam','xBptB','__esModule','exports','config','2370720rDJFhR','defineProperty','serial__','push'];a18_0x398b=function(){return _0x5dc6dc;};return a18_0x398b();}function a18_0x57bc(_0x18c953,_0x2c18f5){const _0x398b21=a18_0x398b();return a18_0x57bc=function(_0x57bc8d,_0x4fdaf9){_0x57bc8d=_0x57bc8d-0x1bc;let _0x289115=_0x398b21[_0x57bc8d];return _0x289115;},a18_0x57bc(_0x18c953,_0x2c18f5);}const a18_0x531bc4=a18_0x57bc;(function(_0x4fb628,_0xf708cb){const _0x4ce87e=a18_0x57bc,_0x2b9361=_0x4fb628();while(!![]){try{const _0x22a063=parseInt(_0x4ce87e(0x1bc))/0x1+parseInt(_0x4ce87e(0x1cb))/0x2*(-parseInt(_0x4ce87e(0x1c9))/0x3)+-parseInt(_0x4ce87e(0x1be))/0x4+-parseInt(_0x4ce87e(0x1d8))/0x5+parseInt(_0x4ce87e(0x1c3))/0x6+parseInt(_0x4ce87e(0x1d4))/0x7*(-parseInt(_0x4ce87e(0x1db))/0x8)+-parseInt(_0x4ce87e(0x1bd))/0x9*(-parseInt(_0x4ce87e(0x1d7))/0xa);if(_0x22a063===_0xf708cb)break;else _0x2b9361['push'](_0x2b9361['shift']());}catch(_0x1e7073){_0x2b9361['push'](_0x2b9361['shift']());}}}(a18_0x398b,0x630d3));const {requireModule,isBrowserstackInfra}=require(a18_0x531bc4(0x1ce)),a18_0x36398d={};a18_0x36398d[a18_0x531bc4(0x1d5)]=!![],Object[a18_0x531bc4(0x1c4)](exports,a18_0x531bc4(0x1c0),a18_0x36398d),exports['default']=void 0x0;function _interopRequireDefault(_0x40f45b){const _0x1d8543=a18_0x531bc4;return _0x40f45b&&_0x40f45b[_0x1d8543(0x1c0)]?_0x40f45b:{'default':_0x40f45b};}const JestRunner=_interopRequireDefault(requireModule(a18_0x531bc4(0x1c7)))[a18_0x531bc4(0x1d9)];class TestRunner extends JestRunner{constructor(..._0x21c010){super(..._0x21c010);}[a18_0x531bc4(0x1cc)](..._0x5d64fd){const _0x38b423=a18_0x531bc4,_0x3b98e6={'bMMpe':function(_0x1afa30){return _0x1afa30();},'xBptB':function(_0x12236f,_0x4ac23f){return _0x12236f-_0x4ac23f;},'FQCxP':function(_0x509298,_0x192326){return _0x509298*_0x192326;},'YgVKc':function(_0x160ddf,_0x500c26){return _0x160ddf===_0x500c26;},'ddQFF':_0x38b423(0x1c8),'LFonY':function(_0x455b91,_0x2fbe6c){return _0x455b91<_0x2fbe6c;}};if(!_0x3b98e6[_0x38b423(0x1cd)](isBrowserstackInfra))return super[_0x38b423(0x1cc)](..._0x5d64fd);const _0x35bb59=_0x5d64fd[0x0],_0xc68228=_0x5d64fd[_0x3b98e6[_0x38b423(0x1bf)](_0x5d64fd[_0x38b423(0x1da)],0x1)],_0x18cbc1=_0x35bb59[0x0]['context'][_0x38b423(0x1c2)]['testEnvironmentOptions']['capabilities'],_0x3a1522=_0x35bb59[0x0][_0x38b423(0x1d2)][_0x38b423(0x1c2)][_0x38b423(0x1cf)][_0x38b423(0x1dc)];_0x3a1522&&(this[_0x38b423(0x1d0)]=Object[_0x38b423(0x1d6)]({...this[_0x38b423(0x1d0)],'maxWorkers':_0x3b98e6['FQCxP'](_0x3a1522,_0x18cbc1[_0x38b423(0x1da)])}));_0x3b98e6['YgVKc'](_0x35bb59[0x0]['context']['config']['testEnvironmentOptions'][_0x38b423(0x1c5)],_0x3b98e6['ddQFF'])&&(_0xc68228&&(_0xc68228[_0x38b423(0x1ca)]=![]));const _0x86e781=[];for(let _0x3c32dd=0x0;_0x3b98e6[_0x38b423(0x1d3)](_0x3c32dd,_0x35bb59[_0x38b423(0x1da)]);_0x3c32dd++){const _0x29daa5=[];_0x18cbc1[_0x38b423(0x1d1)]((_0x4e540b,_0x2b100b)=>{const _0x51323d=_0x38b423,_0x38f27f={..._0x35bb59[_0x3c32dd]},_0x5b8379=_0x38f27f;_0x5b8379[_0x51323d(0x1d2)]=Object[_0x51323d(0x1d6)]({..._0x5b8379[_0x51323d(0x1d2)],'config':{..._0x5b8379[_0x51323d(0x1d2)][_0x51323d(0x1c2)],'capability':_0x4e540b,'browserstackPlatformIndex':_0x2b100b}}),_0x29daa5[_0x51323d(0x1c6)](_0x5b8379);}),_0x86e781[_0x38b423(0x1c6)](..._0x29daa5);}return super[_0x38b423(0x1cc)](_0x86e781,..._0x5d64fd['slice'](0x1));}}module[a18_0x531bc4(0x1c1)]=TestRunner;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a19_0x2d5411=a19_0xb2fe;function a19_0x5891(){const _0x1fddd8=['now','http:','paKSq','session_','../../helpers/performance-tester','xMlUf','env','error','656IeAfAE','debug','SfbID','9734380DgNUqi','aFRdM','HMqNN','name','\x20|\x20','pendingUploads','3ckSeZA','5324754rzElHn','errors','browserStackGlobals','YbJID','ryrcV','replace','kQWNG','app','percyCaptureMode','browserstackSessionName','523658JZsGJN','6269049SIslnI','glpEc','currentTest','JwMMP','235522GWrVsE','jVQxt','dRSor','KhLpQ','__drivers','hPJLA','log','prANj','util','BROWSERSTACK_TESTHUB_UUID','bxUZL','iLzpw','../../helpers/accessibility-automation/scripts','WQbZi','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','IAcuO','PyJds','KBTDn','uGfkA','failed','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','getInstance','getTestUUID','executeAsyncScript','qfPTh','executeScript','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','\x22,\x22level\x22:\x20\x22error\x22}}','getGlobal','\x22,\x22level\x22:\x20\x22info\x22}}','../../helpers/testhub/utils','quitCount_','2701905ImXSfz','fWkMg','isAccessibilityPlatform','getState','Performing\x20scan\x20before\x20saving\x20results','bMljz','foque','failedExpectations','200IMMbSK','addReporter','length','AZWms','cZcUQ','BnIkY','undefined','Failed\x20to\x20store\x20session\x20name:\x20','capabilities','./test-observability/test-details','percy','pid','.\x20Error\x20:','removeAllListeners','stringify','PqEZO','owWeP','getCurrentUrl','vxQwb',':testAnalyticsId','message','initQuit','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20',',\x22level\x22:\x20\x22','kxMSn','ObTLi','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:\x22Failed\x20-\x20','jUXtj','PGXgf','hhuQR','qeyFR','ENV_VAR','BROWSERSTACK_TESTHUB_JWT','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20\x22','description','YvMXI','../../helpers/testhub/constants','15610BjksqZ','performScan','info','setTimeout','https:','appium:app','grbPV','ObservabilitySync:','PdJqi','bstackA11yShouldScan','jyEOh','setGlobal','protocol','winstonLogger','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:\x22Passed\x20-\x20','saveTestResults','rFrDH','YyTCe','../../helpers/percy/utils','../../helpers/test-observability/requestQueueHandler','currentTestName','\x22}}'];a19_0x5891=function(){return _0x1fddd8;};return a19_0x5891();}(function(_0x3a2405,_0x3b7d31){const _0x45b81a=a19_0xb2fe,_0x5e0575=_0x3a2405();while(!![]){try{const _0x24c9b3=parseInt(_0x45b81a(0xd8))/0x1*(parseInt(_0x45b81a(0xe3))/0x2)+parseInt(_0x45b81a(0x84))/0x3+parseInt(_0x45b81a(0xcf))/0x4*(parseInt(_0x45b81a(0xb1))/0x5)+-parseInt(_0x45b81a(0xd9))/0x6+parseInt(_0x45b81a(0xe8))/0x7*(parseInt(_0x45b81a(0x8c))/0x8)+-parseInt(_0x45b81a(0xe4))/0x9+-parseInt(_0x45b81a(0xd2))/0xa;if(_0x24c9b3===_0x3b7d31)break;else _0x5e0575['push'](_0x5e0575['shift']());}catch(_0x621950){_0x5e0575['push'](_0x5e0575['shift']());}}}(a19_0x5891,0x75a1e));const util=require(a19_0x2d5411(0xf0)),{sendPlatformDetails}=require('../../helpers/test-observability/utils'),{isBrowserstackInfra,markSessionStatus}=require('../../helpers/helper');function a19_0xb2fe(_0x380ab7,_0xdfa10c){const _0x589171=a19_0x5891();return a19_0xb2fe=function(_0xb2fec0,_0x42f942){_0xb2fec0=_0xb2fec0-0x73;let _0x3a3226=_0x589171[_0xb2fec0];return _0x3a3226;},a19_0xb2fe(_0x380ab7,_0xdfa10c);}let __error_messages__=[];const RequestQueueHandler=require(a19_0x2d5411(0xc4));jest[a19_0x2d5411(0xb4)](__timeout);const {isAccessibilityAutomationSession,fetchPlatformDetails,shouldScanTestForAccessibility}=require('../../helpers/accessibility-automation/helper'),{percyAutoCapture}=require(a19_0x2d5411(0xc3)),logger=require('../../helpers/logger')[a19_0x2d5411(0xbe)],TestDetails=require(a19_0x2d5411(0x95)),PerformanceTester=require(a19_0x2d5411(0xcb)),scripts=require(a19_0x2d5411(0xf4)),globals=require('../../helpers/globals'),{shouldProcessEventForTesthub}=require(a19_0x2d5411(0x82)),testHubConstants=require(a19_0x2d5411(0xb0));globals[a19_0x2d5411(0xdb)]=browserStackGlobals;function stripUnicode(_0x481bbe){const _0x521cf7=a19_0x2d5411;return _0x481bbe[_0x521cf7(0xde)](/\\u001b\[.*?m/g,'')['slice'](0x1,-0x1);}async function setContext(){const _0x22caa6=a19_0x2d5411,_0xfce9e9={'qeyFR':function(_0x43d703){return _0x43d703();},'owWeP':function(_0x453f3c,_0x4dcc01){return _0x453f3c!==_0x4dcc01;},'cZcUQ':_0x22caa6(0x92),'JwMMP':function(_0x45048e,_0x2e6575){return _0x45048e>_0x2e6575;},'prANj':function(_0x560534,_0x568738){return _0x560534(_0x568738);},'kxMSn':function(_0x3d7d3a,_0x2e2b22){return _0x3d7d3a(_0x2e2b22);}};if(!_0xfce9e9[_0x22caa6(0xaa)](isBrowserstackInfra))return;if(!sessionNameProvided){const _0x293a54=expect[_0x22caa6(0x87)]()[_0x22caa6(0xc5)];await __drivers[0x0][_0x22caa6(0x7d)](_0x22caa6(0xad)+_0x293a54+_0x22caa6(0xc6));}let _0x492ce2=null,_0x1c6f1d=![];_0xfce9e9[_0x22caa6(0x9c)](typeof jasmine,_0xfce9e9[_0x22caa6(0x90)])?jasmine[_0x22caa6(0xe6)][_0x22caa6(0x8b)]&&_0xfce9e9[_0x22caa6(0xe7)](jasmine[_0x22caa6(0xe6)][_0x22caa6(0x8b)]['length'],0x0)?(_0x1c6f1d=!![],_0x492ce2=_0xfce9e9[_0x22caa6(0xef)](stripUnicode,JSON[_0x22caa6(0x9a)](jasmine[_0x22caa6(0xe6)][_0x22caa6(0x8b)][0x0][_0x22caa6(0xa0)]))):_0x492ce2=_0xfce9e9[_0x22caa6(0xa4)](stripUnicode,JSON[_0x22caa6(0x9a)](jasmine['currentTest'][_0x22caa6(0xae)])):testContext['errors']&&_0xfce9e9[_0x22caa6(0xe7)](testContext['errors']['length'],0x0)?(_0x1c6f1d=!![],_0x492ce2=_0xfce9e9[_0x22caa6(0xef)](stripUnicode,JSON[_0x22caa6(0x9a)](testContext[_0x22caa6(0xda)][0x0][0x0][_0x22caa6(0xa0)]||testContext['errors'][0x0][0x0]))):_0x492ce2=_0xfce9e9[_0x22caa6(0xa4)](stripUnicode,JSON[_0x22caa6(0x9a)](testContext[_0x22caa6(0xd5)])),_0x1c6f1d?(__error_messages__['push'](_0x492ce2),await __drivers[0x0][_0x22caa6(0x7d)](_0x22caa6(0xa6)+_0x492ce2+_0x22caa6(0x7f))):await __drivers[0x0][_0x22caa6(0x7d)](_0x22caa6(0xbf)+_0x492ce2+_0x22caa6(0x81));}const executeAnnotate=async(_0x40da70,_0x4fb320)=>{const _0x2a1437=a19_0x2d5411;await global['__drivers'][0x0][_0x2a1437(0x7d)]('browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:'+_0x40da70+_0x2a1437(0xa3)+_0x4fb320+_0x2a1437(0xc6));};async function driverCleanup(){const _0x5722e4=a19_0x2d5411,_0x8e1881={'bxUZL':function(_0x394d59){return _0x394d59();},'jyEOh':function(_0x543385,_0x5d0c44){return _0x543385>_0x5d0c44;},'PGXgf':function(_0x38bf83,_0x45d9c2,_0x52efed,_0x2bf903){return _0x38bf83(_0x45d9c2,_0x52efed,_0x2bf903);},'MHdnD':_0x5722e4(0x77),'ryrcV':_0x5722e4(0xd6),'aFRdM':function(_0x555db6,_0x22a093,_0x157cb5){return _0x555db6(_0x22a093,_0x157cb5);},'sNLtp':'passed'};if(!_0x8e1881[_0x5722e4(0xf2)](isBrowserstackInfra))return;let _0x300c5e=![];try{await __drivers[0x0][_0x5722e4(0xca)],_0x300c5e=!![],_0x8e1881[_0x5722e4(0xbb)](__error_messages__[_0x5722e4(0x8e)],0x0)?await _0x8e1881[_0x5722e4(0xa8)](markSessionStatus,__drivers[0x0],_0x8e1881['MHdnD'],__error_messages__['join'](_0x8e1881[_0x5722e4(0xdd)])):await _0x8e1881[_0x5722e4(0xd3)](markSessionStatus,__drivers[0x0],_0x8e1881['sNLtp']);}catch(_0xd9da1){console[_0x5722e4(0xee)](_0xd9da1);}__error_messages__=[];if(_0x300c5e)try{await __drivers[0x0][_0x5722e4(0xa1)]();}catch(_0x33c1cc){console['log'](_0x33c1cc);}}beforeAll(async()=>{const _0x3ee480=a19_0x2d5411,_0x3ece38={'nZAzk':function(_0x27de1b,_0x1fded2){return _0x27de1b!==_0x1fded2;},'fWkMg':_0x3ee480(0x92),'vxQwb':function(_0xfb4d31){return _0xfb4d31();},'hPJLA':function(_0x333eb4,_0x670fb1,_0xfa86c8){return _0x333eb4(_0x670fb1,_0xfa86c8);}};PerformanceTester['startMonitoring']();const _0x52452f='browserstack internal helper hook';_0x3ece38['nZAzk'](typeof jasmine,_0x3ece38[_0x3ee480(0x85)])&&jasmine['getEnv']()[_0x3ee480(0x8d)]({'specStarted':_0x18f306=>{const _0xe1bc84=_0x3ee480;jasmine[_0xe1bc84(0xe6)]=_0x18f306;}});let _0x43c915=![];try{await __drivers[0x0][_0x3ee480(0xca)],_0x43c915=!![];}catch(_0x2a0a3e){}if(_0x43c915)try{try{_0x3ece38[_0x3ee480(0x9e)](shouldProcessEventForTesthub)&&(global[_0x3ee480(0xec)][0x0]&&await _0x3ece38[_0x3ee480(0xed)](sendPlatformDetails,global[_0x3ee480(0xec)][0x0],TestDetails['getTestUUID'](process[_0x3ee480(0x97)]+_0x3ee480(0x9f))));}catch{}}catch(_0x196c51){}}),beforeEach(async()=>{const _0x5cd77f=a19_0x2d5411,_0x4fc7c9={'HMqNN':function(_0x17eac5,_0x43b0c8){return _0x17eac5>_0x43b0c8;},'PyJds':function(_0x30247c){return _0x30247c();},'PqEZO':function(_0x15ef95,_0x45452c){return _0x15ef95>_0x45452c;},'rFrDH':function(_0x157b7e,_0x445cf8,_0x9d2034){return _0x157b7e(_0x445cf8,_0x9d2034);},'glpEc':_0x5cd77f(0xba),'kQWNG':function(_0x4108d5){return _0x4108d5();},'jVQxt':'isAccessibilityPlatform','hhuQR':function(_0x3448f5,_0x17065e){return _0x3448f5===_0x17065e;},'KBTDn':_0x5cd77f(0xc8),'Dqdsn':_0x5cd77f(0xb5),'SfbID':_0x5cd77f(0xf7),'uGfkA':function(_0x3a31f6,_0x58a742){return _0x3a31f6>_0x58a742;}},_0xcd33ce='browserstack internal helper hook';try{_0x4fc7c9[_0x5cd77f(0xd4)](__drivers['length'],0x1)&&(await _0x4fc7c9[_0x5cd77f(0x74)](driverCleanup),__drivers['shift']());const _0x1cc811=expect['getState']()[_0x5cd77f(0xc5)];try{Array['isArray'](__drivers)&&__drivers[0x0]&&(__drivers[0x0][_0x5cd77f(0xe2)]=_0x1cc811),global[_0x5cd77f(0xe2)]=_0x1cc811;}catch(_0x11a036){logger[_0x5cd77f(0xd0)](_0x5cd77f(0x93)+_0x11a036);}__drivers[0x0][_0x5cd77f(0xe2)]=_0x1cc811;_0x4fc7c9[_0x5cd77f(0x9b)](__drivers[0x0][_0x5cd77f(0x83)],0x0)&&await _0x4fc7c9[_0x5cd77f(0x74)](driverCleanup);const _0x38d273=_0x4fc7c9[_0x5cd77f(0xc1)](shouldScanTestForAccessibility,_0x1cc811,![]);__drivers[0x0][_0x5cd77f(0xba)]=_0x38d273,globals[_0x5cd77f(0xbc)](_0x4fc7c9[_0x5cd77f(0xe5)],_0x38d273);if(_0x4fc7c9[_0x5cd77f(0xdf)](isAccessibilityAutomationSession)&&globals[_0x5cd77f(0x80)](_0x4fc7c9[_0x5cd77f(0xe9)]))try{const _0x53d7ae=await __drivers[0x0][_0x5cd77f(0xca)];if(_0x53d7ae){let _0x3a0463=!![];const _0xc5ea7a=await __drivers[0x0][_0x5cd77f(0x9d)]();let _0x207a9b;try{_0x207a9b=new URL(_0xc5ea7a);}catch(_0x522c8e){_0x3a0463=![];}_0x3a0463=_0x4fc7c9[_0x5cd77f(0xa9)](_0x207a9b[_0x5cd77f(0xbd)],_0x4fc7c9[_0x5cd77f(0x75)])||_0x4fc7c9[_0x5cd77f(0xa9)](_0x207a9b[_0x5cd77f(0xbd)],_0x4fc7c9['Dqdsn']),_0x3a0463&&(_0x38d273&&logger[_0x5cd77f(0xb3)](_0x4fc7c9[_0x5cd77f(0xd1)]));}}catch(_0x3b44dc){logger[_0x5cd77f(0xce)](_0x5cd77f(0x78)+_0x3b44dc);}_0x4fc7c9[_0x5cd77f(0x76)](__drivers[0x0]['quitCount_'],0x0)&&await _0x4fc7c9[_0x5cd77f(0xdf)](driverCleanup);}catch{}}),afterEach(async()=>{const _0x59b3d0=a19_0x2d5411,_0x497110={'YyTCe':function(_0x65cd39,_0x2d0c0f){return _0x65cd39>_0x2d0c0f;},'bMljz':function(_0x24b1a8){return _0x24b1a8();},'iLzpw':function(_0x1fc63a,_0x319e17){return _0x1fc63a===_0x319e17;},'jUXtj':'testcase','YbJID':_0x59b3d0(0xb6),'ObTLi':function(_0x521a20,_0x211536,_0xf81e99,_0x421575){return _0x521a20(_0x211536,_0xf81e99,_0x421575);},'PdJqi':function(_0x58258c,_0x5ecf45,_0xc29705){return _0x58258c(_0x5ecf45,_0xc29705);},'dRSor':function(_0x34d644){return _0x34d644();},'AZWms':_0x59b3d0(0x86),'grbPV':_0x59b3d0(0xba),'KhLpQ':_0x59b3d0(0xf6),'BnIkY':_0x59b3d0(0x88),'aAnDM':_0x59b3d0(0x7e),'YvMXI':function(_0x23829d){return _0x23829d();},'gTpjl':function(_0x55d81a){return _0x55d81a();},'IAcuO':function(_0x479cae){return _0x479cae();},'xMlUf':function(_0x1e1176,_0x58c584,_0x3f6930){return _0x1e1176(_0x58c584,_0x3f6930);},'qfPTh':'debug'},_0x109dcb='browserstack internal helper hook';try{_0x497110['YyTCe'](__drivers[_0x59b3d0(0x8e)],0x1)&&(await _0x497110[_0x59b3d0(0x89)](driverCleanup),__drivers['shift']());try{if(global[_0x59b3d0(0x96)]&&_0x497110[_0x59b3d0(0xf3)](global[_0x59b3d0(0xe1)],_0x497110['jUXtj'])&&__drivers[0x0]){const _0x1c5924=_0x497110[_0x59b3d0(0xc2)](global[_0x59b3d0(0x94)][_0x59b3d0(0x8e)],0x0)?!!global[_0x59b3d0(0x94)][0x0][_0x59b3d0(0xe0)]||!!global[_0x59b3d0(0x94)][0x0][_0x497110[_0x59b3d0(0xdc)]]:![],_0x430af7={};_0x430af7[_0x59b3d0(0xe0)]=_0x1c5924,await _0x497110[_0x59b3d0(0xa5)](percyAutoCapture,__drivers[0x0],_0x497110[_0x59b3d0(0xa7)],_0x430af7);}}catch(_0x5bf59f){}const _0x5ca305=_0x497110[_0x59b3d0(0xb9)](shouldScanTestForAccessibility,expect[_0x59b3d0(0x87)]()[_0x59b3d0(0xc5)],![]);try{if(_0x497110[_0x59b3d0(0xea)](isAccessibilityAutomationSession)&&globals[_0x59b3d0(0x80)](_0x497110[_0x59b3d0(0x8f)])&&globals[_0x59b3d0(0x80)](_0x497110[_0x59b3d0(0xb7)])){logger[_0x59b3d0(0xb3)](_0x497110[_0x59b3d0(0xeb)]);const _0x844f60={'thTestRunUuid':TestDetails[_0x59b3d0(0x7a)](process[_0x59b3d0(0x97)]+':testAnalyticsId'),'thBuildUuid':process[_0x59b3d0(0xcd)][testHubConstants[_0x59b3d0(0xab)][_0x59b3d0(0xf1)]],'thJwtToken':process[_0x59b3d0(0xcd)][testHubConstants[_0x59b3d0(0xab)][_0x59b3d0(0xac)]]};logger[_0x59b3d0(0xd0)](_0x59b3d0(0xa2)+JSON['stringify'](_0x844f60)),logger[_0x59b3d0(0xd0)](_0x497110[_0x59b3d0(0x91)]),logger[_0x59b3d0(0xd0)](util['format'](await __drivers[0x0][_0x59b3d0(0x7b)](scripts[_0x59b3d0(0xb2)],{'method':expect[_0x59b3d0(0x87)]()[_0x59b3d0(0xc5)]}))),await __drivers[0x0][_0x59b3d0(0x7b)](scripts[_0x59b3d0(0xc0)],_0x844f60),logger[_0x59b3d0(0xb3)](_0x497110['aAnDM']);}}catch(_0x279ce5){logger[_0x59b3d0(0xce)]('Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20'+expect['getState']()['currentTestName']+_0x59b3d0(0x98),_0x279ce5);}await _0x497110[_0x59b3d0(0xaf)](setContext);try{if(_0x497110['gTpjl'](shouldProcessEventForTesthub)){global[_0x59b3d0(0xec)][0x0]&&await _0x497110[_0x59b3d0(0xb9)](sendPlatformDetails,global[_0x59b3d0(0xec)][0x0],TestDetails['getTestUUID'](process[_0x59b3d0(0x97)]+_0x59b3d0(0x9f)));if(_0x497110[_0x59b3d0(0x73)](isBrowserstackInfra)){const _0x4b7d01=_0x59b3d0(0xb8)+Date[_0x59b3d0(0xc7)]();await _0x497110[_0x59b3d0(0xcc)](executeAnnotate,JSON['stringify'](_0x4b7d01),_0x497110[_0x59b3d0(0x7c)]);}}}catch(_0x54d517){}_0x497110[_0x59b3d0(0xc2)](__drivers[0x0][_0x59b3d0(0x83)],0x0)&&await _0x497110[_0x59b3d0(0x73)](driverCleanup);}catch{}},0x186a0),afterAll(async()=>{const _0x5e0044=a19_0x2d5411,_0x3a2fad={'ZNpFI':function(_0x74648f,_0x18bec3){return _0x74648f<=_0x18bec3;},'foque':function(_0x395d3d,_0x407597){return _0x395d3d(_0x407597);},'paKSq':function(_0x291672){return _0x291672();},'WQbZi':function(_0x3df544,_0x274118,_0x13a938){return _0x3df544(_0x274118,_0x13a938);}};jest[_0x5e0044(0xb4)](0x186a0),PerformanceTester['pushPerfMeasures']();const _0x3d1eb5='browserstack internal helper hook';await new Promise(_0x3444bf=>{const _0x1d6b57=_0x5e0044,_0x6d54c2=_0x3a2fad[_0x1d6b57(0xf5)](setInterval,async()=>{const _0x15db45=_0x1d6b57;_0x3a2fad['ZNpFI'](RequestQueueHandler[_0x15db45(0x79)]()[_0x15db45(0xd7)],0x0)&&(_0x3a2fad[_0x15db45(0x8a)](clearInterval,_0x6d54c2),_0x3a2fad[_0x15db45(0xc9)](_0x3444bf));},0x3e8);});try{await _0x3a2fad[_0x5e0044(0xc9)](driverCleanup);}catch(_0x17e25f){}process[_0x5e0044(0x99)]();},0x2710);
|
|
1
|
+
function a19_0x545e(_0x5f15b6,_0xb59919){const _0x53535a=a19_0x5353();return a19_0x545e=function(_0x545e4d,_0x46912f){_0x545e4d=_0x545e4d-0xdb;let _0x5c2cd=_0x53535a[_0x545e4d];return _0x5c2cd;},a19_0x545e(_0x5f15b6,_0xb59919);}const a19_0x1321b2=a19_0x545e;(function(_0x125f3e,_0x5a5731){const _0x5cacdd=a19_0x545e,_0x135e5c=_0x125f3e();while(!![]){try{const _0x1776d0=-parseInt(_0x5cacdd(0x10f))/0x1+-parseInt(_0x5cacdd(0x130))/0x2+parseInt(_0x5cacdd(0x11a))/0x3+-parseInt(_0x5cacdd(0x14b))/0x4+parseInt(_0x5cacdd(0xef))/0x5*(-parseInt(_0x5cacdd(0x143))/0x6)+parseInt(_0x5cacdd(0x13f))/0x7+parseInt(_0x5cacdd(0x135))/0x8;if(_0x1776d0===_0x5a5731)break;else _0x135e5c['push'](_0x135e5c['shift']());}catch(_0x2ac29a){_0x135e5c['push'](_0x135e5c['shift']());}}}(a19_0x5353,0x6ea5a));const util=require(a19_0x1321b2(0xed)),{sendPlatformDetails}=require('../../helpers/test-observability/utils'),{isBrowserstackInfra,markSessionStatus}=require(a19_0x1321b2(0x10c));let __error_messages__=[];const RequestQueueHandler=require(a19_0x1321b2(0x144));jest[a19_0x1321b2(0x156)](__timeout);const {isAccessibilityAutomationSession,fetchPlatformDetails,shouldScanTestForAccessibility}=require(a19_0x1321b2(0xe7)),{percyAutoCapture}=require(a19_0x1321b2(0xfd)),logger=require(a19_0x1321b2(0x124))['winstonLogger'],TestDetails=require('./test-observability/test-details'),PerformanceTester=require(a19_0x1321b2(0xf3)),scripts=require(a19_0x1321b2(0x15a)),globals=require(a19_0x1321b2(0x126)),{shouldProcessEventForTesthub}=require(a19_0x1321b2(0x150)),testHubConstants=require(a19_0x1321b2(0xde));globals['browserStackGlobals']=browserStackGlobals;function stripUnicode(_0x5ddf71){const _0x239d3e=a19_0x1321b2;return _0x5ddf71['replace'](/\\u001b\[.*?m/g,'')[_0x239d3e(0x123)](0x1,-0x1);}async function setContext(){const _0x5df332=a19_0x1321b2,_0x554441={'Dtmal':function(_0x2f10ea){return _0x2f10ea();},'mGxfz':function(_0x2825a,_0x484c69){return _0x2825a!==_0x484c69;},'rusgj':'undefined','SOkMq':function(_0x5ab1db,_0x55071f){return _0x5ab1db>_0x55071f;},'dzdCI':function(_0x195517,_0x2f6dac){return _0x195517(_0x2f6dac);},'vdVPa':function(_0x21df2e,_0x52656a){return _0x21df2e>_0x52656a;},'SxxAY':function(_0x5a8514,_0x3feb5b){return _0x5a8514(_0x3feb5b);},'XMsTB':function(_0x47c061,_0x48a581){return _0x47c061(_0x48a581);}};if(!_0x554441[_0x5df332(0x106)](isBrowserstackInfra))return;if(!sessionNameProvided){const _0x8927c1=expect[_0x5df332(0x117)]()['currentTestName'];await __drivers[0x0][_0x5df332(0x139)](_0x5df332(0x114)+_0x8927c1+_0x5df332(0x149));}let _0x5dd61a=null,_0x22cf0f=![];_0x554441[_0x5df332(0x13b)](typeof jasmine,_0x554441['rusgj'])?jasmine[_0x5df332(0x103)][_0x5df332(0x100)]&&_0x554441[_0x5df332(0xf2)](jasmine['currentTest'][_0x5df332(0x100)][_0x5df332(0xdb)],0x0)?(_0x22cf0f=!![],_0x5dd61a=_0x554441[_0x5df332(0x119)](stripUnicode,JSON[_0x5df332(0x10e)](jasmine[_0x5df332(0x103)][_0x5df332(0x100)][0x0][_0x5df332(0xdc)]))):_0x5dd61a=_0x554441['dzdCI'](stripUnicode,JSON['stringify'](jasmine[_0x5df332(0x103)][_0x5df332(0xe5)])):testContext['errors']&&_0x554441[_0x5df332(0x107)](testContext[_0x5df332(0x155)][_0x5df332(0xdb)],0x0)?(_0x22cf0f=!![],_0x5dd61a=_0x554441[_0x5df332(0x120)](stripUnicode,JSON['stringify'](testContext[_0x5df332(0x155)][0x0][0x0]['message']||testContext['errors'][0x0][0x0]))):_0x5dd61a=_0x554441[_0x5df332(0x14e)](stripUnicode,JSON[_0x5df332(0x10e)](testContext[_0x5df332(0x147)])),_0x22cf0f?(__error_messages__[_0x5df332(0x133)](_0x5dd61a),await __drivers[0x0][_0x5df332(0x139)]('browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:\x22Failed\x20-\x20'+_0x5dd61a+_0x5df332(0x159))):await __drivers[0x0][_0x5df332(0x139)](_0x5df332(0x112)+_0x5dd61a+_0x5df332(0x109));}const executeAnnotate=async(_0x16b25e,_0x4c8826)=>{const _0x4064c3=a19_0x1321b2;await global[_0x4064c3(0xf7)][0x0][_0x4064c3(0x139)](_0x4064c3(0xf1)+_0x16b25e+_0x4064c3(0x10a)+_0x4c8826+_0x4064c3(0x149));};async function driverCleanup(){const _0x362fe3=a19_0x1321b2,_0x2ad685={'dYomj':function(_0xd3357){return _0xd3357();},'dcauA':function(_0x543ffe,_0x1c2aa0){return _0x543ffe>_0x1c2aa0;},'BAwll':function(_0x25b226,_0x552e31,_0x5b13bd,_0x4fb054){return _0x25b226(_0x552e31,_0x5b13bd,_0x4fb054);},'MLotB':_0x362fe3(0xff),'JaOjX':'\x20|\x20','xEOIG':function(_0xb4f9c1,_0x539f8e,_0x1df4fb){return _0xb4f9c1(_0x539f8e,_0x1df4fb);},'UGzDa':_0x362fe3(0x110)};if(!_0x2ad685['dYomj'](isBrowserstackInfra))return;let _0x324dae=![];try{await __drivers[0x0]['session_'],_0x324dae=!![],_0x2ad685[_0x362fe3(0xfa)](__error_messages__[_0x362fe3(0xdb)],0x0)?await _0x2ad685[_0x362fe3(0xe2)](markSessionStatus,__drivers[0x0],_0x2ad685[_0x362fe3(0x12c)],__error_messages__[_0x362fe3(0x14a)](_0x2ad685[_0x362fe3(0x102)])):await _0x2ad685[_0x362fe3(0x101)](markSessionStatus,__drivers[0x0],_0x2ad685[_0x362fe3(0xea)]);}catch(_0x5263a9){console[_0x362fe3(0x10b)](_0x5263a9);}__error_messages__=[];if(_0x324dae)try{await __drivers[0x0][_0x362fe3(0x148)]();}catch(_0x1e4437){console[_0x362fe3(0x10b)](_0x1e4437);}}beforeAll(async()=>{const _0x210191=a19_0x1321b2,_0x7e8b5a={'SPRFx':function(_0x17841d,_0x37c9ad){return _0x17841d!==_0x37c9ad;},'zjMcs':_0x210191(0x13c),'xiamF':function(_0x21a828){return _0x21a828();},'rFjaw':function(_0x3f60b6,_0x4d3ffd,_0x156546){return _0x3f60b6(_0x4d3ffd,_0x156546);}};PerformanceTester[_0x210191(0xe4)]();const _0x277b42='browserstack internal helper hook';_0x7e8b5a['SPRFx'](typeof jasmine,_0x7e8b5a[_0x210191(0xe1)])&&jasmine[_0x210191(0x11b)]()['addReporter']({'specStarted':_0x430030=>{const _0x12d730=_0x210191;jasmine[_0x12d730(0x103)]=_0x430030;}});let _0x49a9a8=![];try{await __drivers[0x0][_0x210191(0x111)],_0x49a9a8=!![];}catch(_0x1f6bcd){}if(_0x49a9a8)try{try{_0x7e8b5a['xiamF'](shouldProcessEventForTesthub)&&(global['__drivers'][0x0]&&await _0x7e8b5a[_0x210191(0x116)](sendPlatformDetails,global['__drivers'][0x0],TestDetails[_0x210191(0x122)](process[_0x210191(0x105)]+_0x210191(0x15c))));}catch{}}catch(_0x3aba2b){}}),beforeEach(async()=>{const _0x4609c1=a19_0x1321b2,_0x37776d={'IJYIX':function(_0x2498db,_0x371c95){return _0x2498db>_0x371c95;},'nlziz':function(_0x2dbd5a){return _0x2dbd5a();},'FVpTO':function(_0x2e144d,_0x5676be){return _0x2e144d>_0x5676be;},'JoPjK':function(_0x25b8e4){return _0x25b8e4();},'uLUAj':function(_0x16802c,_0x3617dd,_0x3bdeb1){return _0x16802c(_0x3617dd,_0x3bdeb1);},'jTJCz':_0x4609c1(0x127),'xlzIJ':function(_0x3123e7){return _0x3123e7();},'AeRwn':'isAccessibilityPlatform','cDLlb':function(_0x5323df,_0x164b8e){return _0x5323df===_0x164b8e;},'eEwPA':_0x4609c1(0x11d),'skynG':function(_0xde0c4a,_0x26e163){return _0xde0c4a===_0x26e163;},'hMSlW':_0x4609c1(0x12a),'tAKoD':_0x4609c1(0x153),'HIZbr':function(_0x28e7d0,_0x199e36){return _0x28e7d0>_0x199e36;},'LUDaZ':function(_0x2f47a6){return _0x2f47a6();}},_0x22a43f='browserstack internal helper hook';try{_0x37776d[_0x4609c1(0x113)](__drivers[_0x4609c1(0xdb)],0x1)&&(await _0x37776d['nlziz'](driverCleanup),__drivers['shift']());const _0x15573f=expect[_0x4609c1(0x117)]()[_0x4609c1(0xe6)];try{Array['isArray'](__drivers)&&__drivers[0x0]&&(__drivers[0x0][_0x4609c1(0xf4)]=_0x15573f),global['browserstackSessionName']=_0x15573f;}catch(_0x4ad4b4){logger[_0x4609c1(0xe9)]('Failed\x20to\x20store\x20session\x20name:\x20'+_0x4ad4b4);}__drivers[0x0][_0x4609c1(0xf4)]=_0x15573f;_0x37776d[_0x4609c1(0xe3)](__drivers[0x0][_0x4609c1(0x11c)],0x0)&&await _0x37776d['JoPjK'](driverCleanup);const _0x39173c=_0x37776d[_0x4609c1(0x14d)](shouldScanTestForAccessibility,_0x15573f,![]);__drivers[0x0]['bstackA11yShouldScan']=_0x39173c,globals['setGlobal'](_0x37776d['jTJCz'],_0x39173c);if(_0x37776d[_0x4609c1(0x140)](isAccessibilityAutomationSession)&&globals[_0x4609c1(0xfc)](_0x37776d[_0x4609c1(0x128)]))try{const _0x6e9ac7=await __drivers[0x0][_0x4609c1(0x111)];if(_0x6e9ac7){let _0x46d7e8=!![];const _0x41c5c0=await __drivers[0x0][_0x4609c1(0x115)]();let _0x53c577;try{_0x53c577=new URL(_0x41c5c0);}catch(_0x46e5c0){_0x46d7e8=![];}_0x46d7e8=_0x37776d[_0x4609c1(0xf6)](_0x53c577[_0x4609c1(0x108)],_0x37776d[_0x4609c1(0xdd)])||_0x37776d[_0x4609c1(0x12d)](_0x53c577[_0x4609c1(0x108)],_0x37776d[_0x4609c1(0xf8)]),_0x46d7e8&&(_0x39173c&&logger['info'](_0x37776d[_0x4609c1(0xe0)]));}}catch(_0x5ca625){logger[_0x4609c1(0x15d)](_0x4609c1(0x158)+_0x5ca625);}_0x37776d[_0x4609c1(0x15b)](__drivers[0x0][_0x4609c1(0x11c)],0x0)&&await _0x37776d['LUDaZ'](driverCleanup);}catch{}}),afterEach(async()=>{const _0x4f1e0b=a19_0x1321b2,_0x44f08d={'itmUX':function(_0x25ca75,_0x357cf9){return _0x25ca75>_0x357cf9;},'qNRhk':function(_0x3bb817){return _0x3bb817();},'PvJXj':function(_0x3ac2cc,_0x536baf){return _0x3ac2cc===_0x536baf;},'hPHAO':_0x4f1e0b(0xf5),'WIRbL':function(_0x325645,_0x2c80d1){return _0x325645>_0x2c80d1;},'kYvTN':_0x4f1e0b(0x14c),'SrREl':function(_0x5629b1,_0x31d6f1,_0x91de11,_0x53849b){return _0x5629b1(_0x31d6f1,_0x91de11,_0x53849b);},'CwPAi':function(_0x37b322,_0xab0085,_0x3fcbc0){return _0x37b322(_0xab0085,_0x3fcbc0);},'TVEDT':_0x4f1e0b(0x10d),'SWdPS':_0x4f1e0b(0x127),'rkyJi':_0x4f1e0b(0x138),'EFhpS':'Performing\x20scan\x20before\x20saving\x20results','gAONS':_0x4f1e0b(0xec),'ESAgK':function(_0x50e7cc){return _0x50e7cc();},'uixnr':function(_0x4af8af,_0x253114,_0x411e91){return _0x4af8af(_0x253114,_0x411e91);},'EnNSu':function(_0x36dce2){return _0x36dce2();},'teGPB':_0x4f1e0b(0xe9)},_0x534532='browserstack internal helper hook';try{_0x44f08d[_0x4f1e0b(0xfe)](__drivers['length'],0x1)&&(await _0x44f08d[_0x4f1e0b(0xf9)](driverCleanup),__drivers[_0x4f1e0b(0x14f)]());try{if(global[_0x4f1e0b(0x131)]&&_0x44f08d[_0x4f1e0b(0xe8)](global[_0x4f1e0b(0xee)],_0x44f08d[_0x4f1e0b(0x13d)])&&__drivers[0x0]){const _0x531880=_0x44f08d[_0x4f1e0b(0x125)](global[_0x4f1e0b(0x142)][_0x4f1e0b(0xdb)],0x0)?!!global[_0x4f1e0b(0x142)][0x0][_0x4f1e0b(0x11f)]||!!global['capabilities'][0x0][_0x44f08d['kYvTN']]:![],_0x3b61dc={};_0x3b61dc[_0x4f1e0b(0x11f)]=_0x531880,await _0x44f08d[_0x4f1e0b(0x121)](percyAutoCapture,__drivers[0x0],_0x44f08d[_0x4f1e0b(0x13d)],_0x3b61dc);}}catch(_0x5efd1a){}const _0x3def58=_0x44f08d[_0x4f1e0b(0x12e)](shouldScanTestForAccessibility,expect[_0x4f1e0b(0x117)]()[_0x4f1e0b(0xe6)],![]);try{if(_0x44f08d['qNRhk'](isAccessibilityAutomationSession)&&globals[_0x4f1e0b(0xfc)](_0x44f08d['TVEDT'])&&globals[_0x4f1e0b(0xfc)](_0x44f08d[_0x4f1e0b(0x151)])){logger[_0x4f1e0b(0x136)](_0x44f08d[_0x4f1e0b(0x12f)]);const _0x1da6de={'thTestRunUuid':TestDetails[_0x4f1e0b(0x122)](process['pid']+':testAnalyticsId'),'thBuildUuid':process[_0x4f1e0b(0x15e)][testHubConstants[_0x4f1e0b(0xf0)][_0x4f1e0b(0x152)]],'thJwtToken':process[_0x4f1e0b(0x15e)][testHubConstants[_0x4f1e0b(0xf0)][_0x4f1e0b(0x137)]]};logger['debug'](_0x4f1e0b(0x104)+JSON[_0x4f1e0b(0x10e)](_0x1da6de)),logger[_0x4f1e0b(0xe9)](_0x44f08d[_0x4f1e0b(0x13e)]),logger[_0x4f1e0b(0xe9)](util[_0x4f1e0b(0x145)](await __drivers[0x0][_0x4f1e0b(0x154)](scripts[_0x4f1e0b(0x141)],{'method':expect[_0x4f1e0b(0x117)]()[_0x4f1e0b(0xe6)]}))),await __drivers[0x0][_0x4f1e0b(0x154)](scripts[_0x4f1e0b(0x134)],_0x1da6de),logger[_0x4f1e0b(0x136)](_0x44f08d[_0x4f1e0b(0x118)]);}}catch(_0x331f76){logger['error'](_0x4f1e0b(0x12b)+expect[_0x4f1e0b(0x117)]()[_0x4f1e0b(0xe6)]+_0x4f1e0b(0x157),_0x331f76);}await _0x44f08d['qNRhk'](setContext);try{if(_0x44f08d[_0x4f1e0b(0xeb)](shouldProcessEventForTesthub)){global['__drivers'][0x0]&&await _0x44f08d['uixnr'](sendPlatformDetails,global['__drivers'][0x0],TestDetails[_0x4f1e0b(0x122)](process[_0x4f1e0b(0x105)]+_0x4f1e0b(0x15c)));if(_0x44f08d['EnNSu'](isBrowserstackInfra)){const _0x451b80='ObservabilitySync:'+Date['now']();await _0x44f08d['uixnr'](executeAnnotate,JSON[_0x4f1e0b(0x10e)](_0x451b80),_0x44f08d[_0x4f1e0b(0xfb)]);}}}catch(_0xe1c77c){}_0x44f08d[_0x4f1e0b(0x125)](__drivers[0x0]['quitCount_'],0x0)&&await _0x44f08d[_0x4f1e0b(0xeb)](driverCleanup);}catch{}},0x186a0),afterAll(async()=>{const _0x482dea=a19_0x1321b2,_0x2baa1d={'kTQYJ':function(_0x48efd5,_0x4be5b1){return _0x48efd5<=_0x4be5b1;},'mMiGX':function(_0x135084,_0x248a83){return _0x135084(_0x248a83);},'pRNZL':function(_0x46410d){return _0x46410d();},'RTXRT':function(_0x392e06,_0x9683e0,_0x7ee8d){return _0x392e06(_0x9683e0,_0x7ee8d);},'zroOk':function(_0x34d23e){return _0x34d23e();}};jest[_0x482dea(0x156)](0x186a0),PerformanceTester[_0x482dea(0x11e)]();const _0x25b313='browserstack internal helper hook';await new Promise(_0xd5694=>{const _0x52d655=_0x2baa1d['RTXRT'](setInterval,async()=>{const _0x488b2d=a19_0x545e;_0x2baa1d[_0x488b2d(0x132)](RequestQueueHandler['getInstance']()['pendingUploads'],0x0)&&(_0x2baa1d[_0x488b2d(0x13a)](clearInterval,_0x52d655),_0x2baa1d[_0x488b2d(0xdf)](_0xd5694));},0x3e8);});try{await _0x2baa1d[_0x482dea(0x129)](driverCleanup);}catch(_0x53b280){}process[_0x482dea(0x146)]();},0x2710);function a19_0x5353(){const _0xd3d1d2=['SxxAY','SrREl','getTestUUID','slice','../../helpers/logger','WIRbL','../../helpers/globals','bstackA11yShouldScan','AeRwn','zroOk','https:','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','MLotB','skynG','CwPAi','rkyJi','1807348RKFETL','percy','kTQYJ','push','saveTestResults','7364656NCUakB','info','BROWSERSTACK_TESTHUB_JWT','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','executeScript','mMiGX','mGxfz','undefined','hPHAO','EFhpS','5607553bvDiDk','xlzIJ','performScan','capabilities','662334UCxYgI','../../helpers/test-observability/requestQueueHandler','format','removeAllListeners','name','initQuit','\x22}}','join','406760IAOpMl','appium:app','uLUAj','XMsTB','shift','../../helpers/testhub/utils','SWdPS','BROWSERSTACK_TESTHUB_UUID','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','executeAsyncScript','errors','setTimeout','.\x20Error\x20:','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','\x22,\x22level\x22:\x20\x22error\x22}}','../../helpers/accessibility-automation/scripts','HIZbr',':testAnalyticsId','error','env','length','message','eEwPA','../../helpers/testhub/constants','pRNZL','tAKoD','zjMcs','BAwll','FVpTO','startMonitoring','description','currentTestName','../../helpers/accessibility-automation/helper','PvJXj','debug','UGzDa','ESAgK','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','util','percyCaptureMode','30LdxxQk','ENV_VAR','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','SOkMq','../../helpers/performance-tester','browserstackSessionName','testcase','cDLlb','__drivers','hMSlW','qNRhk','dcauA','teGPB','getGlobal','../../helpers/percy/utils','itmUX','failed','failedExpectations','xEOIG','JaOjX','currentTest','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','pid','Dtmal','vdVPa','protocol','\x22,\x22level\x22:\x20\x22info\x22}}',',\x22level\x22:\x20\x22','log','../../helpers/helper','isAccessibilityPlatform','stringify','231408mErDvZ','passed','session_','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:\x22Passed\x20-\x20','IJYIX','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20\x22','getCurrentUrl','rFjaw','getState','gAONS','dzdCI','1891965yojEtc','getEnv','quitCount_','http:','pushPerfMeasures','app'];a19_0x5353=function(){return _0xd3d1d2;};return a19_0x5353();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5cf4db,_0x34dcc8){const _0x2ef127=a20_0x1992,_0x57dac9=_0x5cf4db();while(!![]){try{const _0x223973=parseInt(_0x2ef127(0x169))/0x1+-parseInt(_0x2ef127(0x168))/0x2*(-parseInt(_0x2ef127(0x16b))/0x3)+-parseInt(_0x2ef127(0x16c))/0x4*(-parseInt(_0x2ef127(0x161))/0x5)+parseInt(_0x2ef127(0x15f))/0x6+parseInt(_0x2ef127(0x163))/0x7*(-parseInt(_0x2ef127(0x164))/0x8)+-parseInt(_0x2ef127(0x167))/0x9*(-parseInt(_0x2ef127(0x166))/0xa)+-parseInt(_0x2ef127(0x16a))/0xb;if(_0x223973===_0x34dcc8)break;else _0x57dac9['push'](_0x57dac9['shift']());}catch(_0x5caf7b){_0x57dac9['push'](_0x57dac9['shift']());}}}(a20_0x4040,0x90b1a));function a20_0x1992(_0x36d71e,_0xb1267e){const _0x404009=a20_0x4040();return a20_0x1992=function(_0x1992d9,_0x22c1f5){_0x1992d9=_0x1992d9-0x15f;let _0x9c819c=_0x404009[_0x1992d9];return _0x9c819c;},a20_0x1992(_0x36d71e,_0xb1267e);}const requestSpy=require('../../../helpers/request-spy'),{addRequestSpy}=require('../../../helpers/test-observability/utils');beforeAll(()=>{const _0x2236ee=a20_0x1992,_0x2b1a64={'CDEmN':function(_0x1394f8){return _0x1394f8();}},_0x3a93bc='browserstack internal helper hook';_0x2b1a64[_0x2236ee(0x165)](addRequestSpy);}),afterAll(async()=>{const _0x22d8c0=a20_0x1992,_0x3af397='browserstack internal helper hook';jest[_0x22d8c0(0x162)](0xea60),requestSpy[_0x22d8c0(0x160)]();});function a20_0x4040(){const _0x56500c=['21265750grJEfi','4971IASsRK','128tGDFnf','7012254xiuqqb','restore','90010WGVDCv','setTimeout','1484IoywXI','6416gXEVnI','CDEmN','60kVCpwx','388611jYvcJm','820wdASbP','12723RyqrMc'];a20_0x4040=function(){return _0x56500c;};return a20_0x4040();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a21_0x1e85(){const _0x2fa393=['map','split','push','length','../../../helpers/test-observability/utils','vglUZ','BROWSERSTACK_RERUN_TESTS','wxuFW','48HZTtiM','null','118362fFtnNS','rerunTests','isUndefined','updateTestRerunConfig','5063470OJskNA','nWqaL','9MnBLMl','cliConfig','983228zZDyue','7374768WpFYJd','NMryN','2535573lQcXcA','testRegex','5GpXJFd','has','1770pmYoUn','35VcUxXv','shouldReRunObservabilityTests','645zMtoRK','trim','4991228ztHIhX'];a21_0x1e85=function(){return _0x2fa393;};return a21_0x1e85();}function a21_0x3054(_0x5bdb09,_0x136969){const _0x1e85d8=a21_0x1e85();return a21_0x3054=function(_0x3054e8,_0x49cd7b){_0x3054e8=_0x3054e8-0x89;let _0x594adb=_0x1e85d8[_0x3054e8];return _0x594adb;},a21_0x3054(_0x5bdb09,_0x136969);}const a21_0x16dbc4=a21_0x3054;(function(_0x551c7b,_0x55b287){const _0x2bf5b5=a21_0x3054,_0x1d7b18=_0x551c7b();while(!![]){try{const _0x28603d=-parseInt(_0x2bf5b5(0x9d))/0x1*(parseInt(_0x2bf5b5(0x9a))/0x2)+parseInt(_0x2bf5b5(0x96))/0x3+-parseInt(_0x2bf5b5(0x93))/0x4*(parseInt(_0x2bf5b5(0x98))/0x5)+-parseInt(_0x2bf5b5(0x8b))/0x6*(-parseInt(_0x2bf5b5(0x9b))/0x7)+-parseInt(_0x2bf5b5(0x94))/0x8+-parseInt(_0x2bf5b5(0x91))/0x9*(parseInt(_0x2bf5b5(0x8f))/0xa)+parseInt(_0x2bf5b5(0x9f))/0xb*(parseInt(_0x2bf5b5(0x89))/0xc);if(_0x28603d===_0x55b287)break;else _0x1d7b18['push'](_0x1d7b18['shift']());}catch(_0xea9700){_0x1d7b18['push'](_0x1d7b18['shift']());}}}(a21_0x1e85,0x7d7c9));const testOpsHelper=require(a21_0x16dbc4(0xa4)),helper=require('../../../helpers/helper');exports[a21_0x16dbc4(0x8e)]=(_0x6bb9cc,_0x455216)=>{const _0x5a3b9b=a21_0x16dbc4,_0x3b7464={};_0x3b7464['NMryN']=_0x5a3b9b(0x8c),_0x3b7464['vglUZ']=function(_0x4b582c,_0x19fd2f){return _0x4b582c!==_0x19fd2f;},_0x3b7464['ZCGtm']=_0x5a3b9b(0x8a),_0x3b7464[_0x5a3b9b(0x90)]=function(_0x4b3f32,_0x42f272){return _0x4b3f32!==_0x42f272;},_0x3b7464[_0x5a3b9b(0xa7)]=function(_0x4eb747,_0x48a7fa){return _0x4eb747>_0x48a7fa;};const _0x5228be=_0x3b7464;if(testOpsHelper['isTestObservabilitySession']()&&testOpsHelper[_0x5a3b9b(0x9c)]()){let _0x263bcd=process['env'][_0x5a3b9b(0xa6)];!helper[_0x5a3b9b(0x8d)](_0x455216[_0x5a3b9b(0x92)])&&_0x455216['cliConfig'][_0x5a3b9b(0x99)](_0x5228be[_0x5a3b9b(0x95)])&&(_0x263bcd=_0x455216[_0x5a3b9b(0x92)]['get'](_0x5228be[_0x5a3b9b(0x95)]));const _0x352bc7=[];_0x5228be[_0x5a3b9b(0xa5)](_0x263bcd,_0x5228be['ZCGtm'])&&_0x5228be[_0x5a3b9b(0x90)](_0x263bcd,null)&&_0x263bcd[_0x5a3b9b(0xa1)](',')[_0x5a3b9b(0xa0)](_0x9939ee=>{const _0x5c61b6=_0x5a3b9b;_0x352bc7[_0x5c61b6(0xa2)](''+_0x9939ee[_0x5c61b6(0x9e)]());}),_0x5228be[_0x5a3b9b(0xa7)](_0x352bc7[_0x5a3b9b(0xa3)],0x0)&&(_0x6bb9cc[_0x5a3b9b(0x97)]=_0x352bc7,delete _0x6bb9cc['testMatch']);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a22_0x3f2595=a22_0x1189;(function(_0x3fc0ea,_0x595369){const _0x569505=a22_0x1189,_0x24ad0e=_0x3fc0ea();while(!![]){try{const _0x4b76b9=parseInt(_0x569505(0x12f))/0x1+parseInt(_0x569505(0x146))/0x2*(parseInt(_0x569505(0x11e))/0x3)+-parseInt(_0x569505(0xd2))/0x4+parseInt(_0x569505(0x15b))/0x5+-parseInt(_0x569505(0x181))/0x6+parseInt(_0x569505(0x12b))/0x7+parseInt(_0x569505(0x12a))/0x8*(parseInt(_0x569505(0x122))/0x9);if(_0x4b76b9===_0x595369)break;else _0x24ad0e['push'](_0x24ad0e['shift']());}catch(_0x357660){_0x24ad0e['push'](_0x24ad0e['shift']());}}}(a22_0x1b53,0x8f69b));function a22_0x1189(_0x20c0d0,_0x2aa285){const _0x1b53ef=a22_0x1b53();return a22_0x1189=function(_0x1189f0,_0x207eb2){_0x1189f0=_0x1189f0-0xcd;let _0x4a47e7=_0x1b53ef[_0x1189f0];return _0x4a47e7;},a22_0x1189(_0x20c0d0,_0x2aa285);}const {isTestObservabilitySession,PathHelper,debug,failureData,getFailureType,isInternalHook}=require('../../../helpers/test-observability/utils'),SessionHandler=require(a22_0x3f2595(0x104)),{v4:uuidv4}=require('uuid'),{name,version}=require('../../../../package.json'),stackTrace=require(a22_0x3f2595(0x143)),path=require(a22_0x3f2595(0x10d)),fs=require('fs'),TestDetails=require('./test-details'),{FRAMEWORKS}=require(a22_0x3f2595(0x18f)),{o11yClassErrorHandler}=require(a22_0x3f2595(0x13b)),{getGitMetaData}=require(a22_0x3f2595(0x107)),{appendTesthubParams,setCurrentTestData}=require(a22_0x3f2595(0x130)),a22_0x15d059={};a22_0x15d059[a22_0x3f2595(0x144)]=a22_0x3f2595(0x164),a22_0x15d059[a22_0x3f2595(0x14c)]=a22_0x3f2595(0x128),a22_0x15d059[a22_0x3f2595(0xde)]=a22_0x3f2595(0x137);const {STATE_PASSED,STATE_PENDING,STATE_FAILED}=a22_0x15d059,a22_0x5ee5f2={};function a22_0x1b53(){const _0x2cd8db=['asyncError','OJRGr','javascript','249576uPFelT','../../../helpers/testhub/utils','hook_run_uuid','toISOString','bs:addPlatformDetails:','ObservabilityReporter','jZbgq','result','pending','JoVlq','match','DXDlI','../../../helpers/test-observability/error-handler','test_run','Exception\x20in\x20populating\x20test\x20data\x20for\x20event\x20','fUxxH','getTestEnv','Exception\x20in\x20getting\x20file\x20for\x20hook\x20','_testResults','Tzrst','stack-trace','STATE_PASSED','GSejt','263678DYJogv','JOjhS','Lnybb','Pasaq','tvBTz','PxfbE','STATE_FAILED','iynIk','hook_failure','RQsQJ','analyticsResult','uuid','kPdMx','DBTJI','file','_gitConfigured','errorsDetailed','beforeAll','QDjUf','UQNen','getFileName','1224910pQeCaR','TestRunSkipped','failure_reason_expanded','EcfSv','nrppz','0|2|5|1|3|6|4','GAcLB','err','MSwGv','passed','Xhdtd','VDdRu','current_test','HookRunFinished','sendTestRunEvent','relative','util','ZmjPO','prefixTestPath','config','ROOT_DESCRIBE_BLOCK','hook_run','AFTER_ALL','getHierarchy','hooks',':hookAnalyticsId','getTestUUID','hook_data','jest-circus','qzXLh','location_prefix','sep','sYCGB','parent','LFGib','QzXvu','eXdUz','EDtuD','3855510pmlHNL','failure','kXBCD','started_at','getTime','JZLXn','nXOxf','XkhKz','inspect','vGCjs','lCvLV','call','backtrace','http_response','../../utils/constants','title','failure_type','state','includes','toString','4|2|0|3|1','uGLMC','generic','_currentRetry','EZAqR','pid','findGitConfig','kMqXs','yIkCk','Exception\x20in\x20populating\x20test\x20data\x20for\x20test\x20start\x20with\x20error\x20:\x20','3479688PMeccL','OXRTd','dCRrP','nfxAU','NYYUE','skipped','wvqCV','now','_paths','AFTER_EACH','CBTSessionCreated','current_hook','STATE_PENDING','statSync','JEpDU','removeAllListeners','dirname','test','Exception\x20in\x20uploading\x20platform\x20details\x20to\x20Observability\x20with\x20error\x20:\x20','BEFORE_ALL','appendTestItemLog','event_type','reverse','_gitConfigPath','LogCreated','afterAll','jGHxR','forEach','SLsZV','\x20with\x20error\x20:\x20','urkKb','failure_reason','cwd','TestRunFinished','type','DsQfV','afterEach','retryOf','length','markedStatus','appendTestPlatform','configureGit','\x22\x20hook\x20for\x20\x22','hookAnalyticsId','beforeEach','testObservability','qWquZ','finished_at','KrPZs','root','../../../helpers/test-observability/sessionHandler','getHooksForTest','push','../../../helpers/helper','DnvGf','AHfBr','duration','name','DSmrD','path','TosuW','Exception\x20in\x20uploading\x20log\x20data\x20to\x20Observability\x20with\x20error\x20:\x20','_testEnv','vwPmE','JYHrc','File\x20path\x20could\x20not\x20be\x20found','testAnalyticsId','GXbir','js-','getName','mapTestHooks','resetTestHooks','hook_type','testStarted','getRootParentFile','test_run_uuid','21HNfoBO',':testAnalyticsId','bind','apply','9ozSpQc','uploadEventData','setTestUUID','WVpGb','aWSJv','bs:addLog:','failed','gCwLe','680344buPRYj','4182164KRNVDE'];a22_0x1b53=function(){return _0x2cd8db;};return a22_0x1b53();}a22_0x5ee5f2[a22_0x3f2595(0x157)]=a22_0x3f2595(0xe5),a22_0x5ee5f2[a22_0x3f2595(0xeb)]=a22_0x3f2595(0x171),a22_0x5ee5f2['beforeEach']='BEFORE_EACH',a22_0x5ee5f2[a22_0x3f2595(0xf6)]=a22_0x3f2595(0xdb);const HOOK_TYPES_MAP=a22_0x5ee5f2;module['exports']=o11yClassErrorHandler(class ObservabilityReporter{constructor(){const _0x487687=a22_0x3f2595,_0x542fa8={'kMqXs':_0x487687(0x160),'uGLMC':function(_0xfcbcbc){return _0xfcbcbc();}},_0x1af931=_0x542fa8[_0x487687(0xcf)]['split']('|');let _0x2323d5=0x0;while(!![]){switch(_0x1af931[_0x2323d5++]){case'0':this[_0x487687(0xff)]=_0x542fa8[_0x487687(0x196)](isTestObservabilitySession);continue;case'1':this[_0x487687(0xda)]=new PathHelper({'cwd':process[_0x487687(0xf2)]()},this[_0x487687(0x110)][_0x487687(0x179)]);continue;case'2':this[_0x487687(0x141)]=[];continue;case'3':this[_0x487687(0x176)]=[];continue;case'4':this[_0x487687(0xe9)]=null;continue;case'5':this[_0x487687(0x110)]=this[_0x487687(0x13f)]();continue;case'6':this[_0x487687(0x155)]=![];continue;}break;}}['getTestEnv']=()=>{const _0x517190=a22_0x3f2595,_0x429ddb={'Tzrst':_0x517190(0x197),'RLUPj':function(_0x510f3d){return _0x510f3d();}};return{'ci':_0x429ddb[_0x517190(0x142)],'key':_0x429ddb['RLUPj'](uuidv4),'version':version,'collector':_0x517190(0x116)+name};};['registerListeners'](){const _0x32b0ed=a22_0x3f2595;process[_0x32b0ed(0xe1)](_0x32b0ed(0x127)+process[_0x32b0ed(0xcd)]),process['on']('bs:addLog:'+process['pid'],this['appendTestItemLog']['bind'](this)),process['removeAllListeners'](_0x32b0ed(0x133)+process[_0x32b0ed(0xcd)]),process['on'](_0x32b0ed(0x133)+process[_0x32b0ed(0xcd)],this[_0x32b0ed(0xfa)][_0x32b0ed(0x120)](this));}[a22_0x3f2595(0x11b)]=async _0x4efcf3=>{const _0x3576a5=a22_0x3f2595,_0x106ff5={'DnvGf':function(_0x986096,_0x190ec2){return _0x986096>_0x190ec2;},'urkKb':function(_0x2f210e,_0x4c7bcb){return _0x2f210e===_0x4c7bcb;},'ZmjPO':'TestRunStarted','MFoDI':function(_0x411494,_0x2b8b5a){return _0x411494(_0x2b8b5a);}};try{const _0x58d12f=this['current_test'];this[_0x3576a5(0x167)]=_0x4efcf3,_0x4efcf3[_0x3576a5(0xf7)]=null,_0x4efcf3[_0x3576a5(0x114)]=TestDetails['setTestUUID'](process[_0x3576a5(0xcd)]+_0x3576a5(0x11f)),_0x4efcf3[_0x3576a5(0x184)]=new Date()[_0x3576a5(0x132)](),_0x106ff5[_0x3576a5(0x108)](_0x4efcf3[_0x3576a5(0x198)],0x0)&&_0x58d12f&&_0x106ff5[_0x3576a5(0xf0)](_0x58d12f['title'],_0x4efcf3[_0x3576a5(0x190)])?(_0x4efcf3[_0x3576a5(0xf7)]=_0x58d12f['testAnalyticsId'],await this[_0x3576a5(0x169)](_0x4efcf3,undefined,![],_0x106ff5[_0x3576a5(0x16c)]),_0x58d12f[_0x3576a5(0x192)]=STATE_FAILED,await this['sendTestRunEvent'](_0x58d12f,undefined,!![])):await this[_0x3576a5(0x169)](_0x4efcf3,undefined,![],_0x106ff5[_0x3576a5(0x16c)]);}catch(_0x205821){_0x106ff5['MFoDI'](debug,_0x3576a5(0xd1)+_0x205821);}};[a22_0x3f2595(0x117)](_0xe6f1d2){const _0x29411a=a22_0x3f2595,_0x203aab={};_0x203aab[_0x29411a(0x186)]=function(_0x5b4606,_0x5ee68f){return _0x5b4606!==_0x5ee68f;},_0x203aab[_0x29411a(0x18b)]=_0x29411a(0xe3);const _0x171ab3=_0x203aab;if(_0x171ab3[_0x29411a(0x186)](_0xe6f1d2[_0x29411a(0xf4)],_0x171ab3['lCvLV']))return'\x22'+_0xe6f1d2[_0x29411a(0xf4)]+_0x29411a(0xfc)+(_0xe6f1d2[_0x29411a(0x17c)]&&_0xe6f1d2[_0x29411a(0x17c)][_0x29411a(0x10b)])+'\x22';return _0xe6f1d2[_0x29411a(0x10b)];}[a22_0x3f2595(0x169)]=async(_0x256a95,_0x450d52=undefined,_0x5c6c0c=![],_0x13d80e=a22_0x3f2595(0xf3))=>{const _0xd2aabe=a22_0x3f2595,_0x3a26a4={'RQsQJ':_0xd2aabe(0x195),'GAcLB':_0xd2aabe(0x170),'DsQfV':_0xd2aabe(0x136),'KrPZs':_0xd2aabe(0x13c),'QDjUf':_0xd2aabe(0x191),'sYCGB':_0xd2aabe(0xf1),'EZAqR':_0xd2aabe(0x182),'DSmrD':function(_0x4b5baf,_0x3aae7c){return _0x4b5baf(_0x3aae7c);},'JEpDU':_0xd2aabe(0x177),'tvBTz':_0xd2aabe(0x16b),'UQNen':function(_0x2c67c2,_0x2b87e9){return _0x2c67c2!==_0x2b87e9;},'aWSJv':_0xd2aabe(0xe3),'qWquZ':function(_0x1110db,_0xc4c583){return _0x1110db!==_0xc4c583;},'NYYUE':_0xd2aabe(0x162),'GSejt':function(_0x398e4a,_0x491429){return _0x398e4a!==_0x491429;},'jGHxR':_0xd2aabe(0x113),'nruZt':_0xd2aabe(0x12e),'WVpGb':function(_0x49283e,_0xb4b167){return _0x49283e===_0xb4b167;},'nXOxf':_0xd2aabe(0x15c),'AHfBr':_0xd2aabe(0xd7),'JOjhS':function(_0x1ef6ae,_0x4c4ea6){return _0x1ef6ae>_0x4c4ea6;},'DXDlI':_0xd2aabe(0x128),'OXRTd':_0xd2aabe(0x164),'SssES':function(_0x1aba94,_0x31aee4){return _0x1aba94-_0x31aee4;},'jZbgq':function(_0x466d06,_0x1ee01c){return _0x466d06(_0x1ee01c);},'yIkCk':function(_0x3ac30e,_0x3a5c65,_0x42f56d,_0x4076da,_0x507ffb){return _0x3ac30e(_0x3a5c65,_0x42f56d,_0x4076da,_0x507ffb);},'GXbir':function(_0x5570e4,_0x2fd185){return _0x5570e4===_0x2fd185;},'QzXvu':_0xd2aabe(0x184),'OJRGr':_0xd2aabe(0x101),'QQDLl':function(_0x346268,_0x353864){return _0x346268===_0x353864;},'Lnybb':_0xd2aabe(0x168),'KOmHk':'failure_backtrace','IYwhI':_0xd2aabe(0x18d),'VDdRu':_0xd2aabe(0x15d),'oZcFQ':'expanded','iynIk':_0xd2aabe(0xf3),'Pasaq':function(_0x527d9a,_0x1d89d4){return _0x527d9a===_0x1d89d4;},'MSwGv':'hook_type','GgFnL':function(_0x384616,_0x3865c0){return _0x384616===_0x3865c0;},'dCRrP':function(_0x516eaa,_0x254653){return _0x516eaa===_0x254653;},'qzXLh':_0xd2aabe(0x157),'vGCjs':function(_0x392b7a,_0x59b554,_0x295e80){return _0x392b7a(_0x59b554,_0x295e80);},'kPdMx':function(_0x43603a,_0x187edd){return _0x43603a(_0x187edd);}};try{if(_0x256a95['fn']&&_0x256a95['fn'][_0xd2aabe(0x194)]()[_0xd2aabe(0x139)](/browserstack internal helper hook/))return;await this['configureGit']();let _0x5bcb45;try{_0x5bcb45=this[_0xd2aabe(0x11c)](_0x256a95);}catch(_0x34b7f0){_0x3a26a4[_0xd2aabe(0x10c)](debug,'failed\x20to\x20get\x20root\x20parent\x20file\x20'+_0x34b7f0),_0x5bcb45=null;}if(_0x5bcb45[_0xd2aabe(0x193)](_0x3a26a4[_0xd2aabe(0xe0)]))return;const _0x1d953e=_0x3a26a4[_0xd2aabe(0x10c)](require,_0x3a26a4[_0xd2aabe(0x14a)]);let _0x513808=[];if(_0x3a26a4[_0xd2aabe(0x159)](_0x256a95[_0xd2aabe(0x156)],undefined))_0x513808=[_0x256a95[_0xd2aabe(0x156)],_0x3a26a4[_0xd2aabe(0x126)]];else _0x3a26a4[_0xd2aabe(0x100)](_0x450d52,undefined)?_0x513808=[_0x450d52,_0x3a26a4[_0xd2aabe(0xd6)]]:_0x513808=[];const _0x4e398f=_0x3a26a4[_0xd2aabe(0x145)](_0x256a95[_0xd2aabe(0x156)],undefined)?_0x1d953e[_0xd2aabe(0x189)](_0x256a95[_0xd2aabe(0x156)][0x0]):_0x3a26a4[_0xd2aabe(0x100)](_0x450d52,undefined)?_0x450d52['toString']():undefined,_0x36a46c=_0x5bcb45?this[_0xd2aabe(0xda)][_0xd2aabe(0x16d)](this[_0xd2aabe(0x11c)](_0x256a95)):_0x3a26a4[_0xd2aabe(0xec)],_0x36725f={'framework':FRAMEWORKS['JEST'],'uuid':_0x256a95[_0xd2aabe(0x114)]||_0x256a95[_0xd2aabe(0xfd)],'name':this[_0xd2aabe(0x117)](_0x256a95),'body':{'lang':_0x3a26a4['nruZt'],'code':_0x256a95['fn'][_0xd2aabe(0x194)]()},'scopes':this['getHierarchy'](_0x256a95),'file_name':_0x36a46c,'vc_filepath':this[_0xd2aabe(0xe9)]&&_0x5bcb45?path[_0xd2aabe(0x16a)](this[_0xd2aabe(0xe9)],_0x5bcb45):null,'location':_0x36a46c,'result':_0x3a26a4[_0xd2aabe(0x125)](_0x13d80e,_0x3a26a4['nXOxf'])?_0x3a26a4[_0xd2aabe(0x109)]:this[_0xd2aabe(0x150)](_0x256a95['errorsDetailed']&&_0x3a26a4['JOjhS'](_0x256a95[_0xd2aabe(0x156)][_0xd2aabe(0xf8)],0x0)?_0x3a26a4[_0xd2aabe(0x13a)]:_0x3a26a4['OXRTd']),'failure_reason':_0x4e398f,'duration_in_ms':_0x256a95[_0xd2aabe(0x10a)]||(_0x13d80e['match'](/Finished/)||_0x13d80e[_0xd2aabe(0x139)](/Skipped/)?_0x3a26a4['SssES'](Date[_0xd2aabe(0xd9)](),new Date(_0x256a95[_0xd2aabe(0x184)])[_0xd2aabe(0x185)]()):null),'started_at':_0x256a95[_0xd2aabe(0x184)],'finished_at':_0x13d80e['match'](/Finished/)||_0x13d80e['match'](/Skipped/)?new Date()[_0xd2aabe(0x132)]():null,'failure':failureData[_0xd2aabe(0x121)](null,_0x513808),'failure_type':!_0x4e398f?null:_0x3a26a4[_0xd2aabe(0x135)](getFailureType,_0x4e398f),'retry_of':_0x256a95['retryOf']};_0x3a26a4[_0xd2aabe(0xd0)](appendTesthubParams,_0x36725f,_0x13d80e,_0x256a95,FRAMEWORKS['JEST']);_0x3a26a4[_0xd2aabe(0x115)](_0x13d80e,_0x3a26a4['nXOxf'])&&!_0x36725f[_0x3a26a4[_0xd2aabe(0x17e)]]&&(_0x36725f[_0x3a26a4[_0xd2aabe(0x17e)]]=_0x36725f[_0x3a26a4[_0xd2aabe(0x12d)]]);if(_0x13d80e[_0xd2aabe(0x139)](/HookRun/))[_0x36725f[_0xd2aabe(0x11a)],_0x36725f[_0xd2aabe(0x10b)]]=[_0x256a95[_0xd2aabe(0xf4)],this['getName'](_0x256a95)],_0x3a26a4['QQDLl'](_0x13d80e,_0x3a26a4[_0xd2aabe(0x148)])&&(_0x3a26a4[_0xd2aabe(0x159)](_0x36725f[_0xd2aabe(0x136)],_0x3a26a4['DXDlI'])&&(_0x36725f[_0xd2aabe(0x136)]=_0x3a26a4[_0xd2aabe(0xd3)]));else _0x13d80e[_0xd2aabe(0x139)](/TestRun/)&&this[_0xd2aabe(0x118)](_0x256a95);const _0x449375=_0x36725f[_0x3a26a4['EZAqR']][0x0];_0x449375&&(_0x36725f[_0x3a26a4['KOmHk']]=_0x449375[_0x3a26a4['IYwhI']],_0x36725f[_0x3a26a4[_0xd2aabe(0x166)]]=_0x449375[_0x3a26a4['oZcFQ']]);[_0x3a26a4[_0xd2aabe(0x14d)],_0x3a26a4['nXOxf']]['includes'](_0x13d80e)&&(this[_0xd2aabe(0x141)][_0xd2aabe(0x106)](_0x36725f),_0x36725f[_0xd2aabe(0x173)]=this[_0xd2aabe(0x105)](_0x256a95),this[_0xd2aabe(0x119)](_0x256a95));const _0x192f8d={'event_type':_0x3a26a4[_0xd2aabe(0x149)](_0x13d80e,_0x3a26a4[_0xd2aabe(0x187)])?_0x3a26a4[_0xd2aabe(0x14d)]:_0x13d80e};_0x13d80e[_0xd2aabe(0x139)](/HookRun/)?(_0x36725f[_0x3a26a4[_0xd2aabe(0x163)]]=HOOK_TYPES_MAP[_0x36725f[_0x3a26a4['MSwGv']]],_0x192f8d[_0x3a26a4['GAcLB']]=_0x36725f):_0x192f8d[_0x3a26a4[_0xd2aabe(0x102)]]=_0x36725f;_0x3a26a4[_0xd2aabe(0x147)](this[_0xd2aabe(0x176)][_0xd2aabe(0xf8)],0x0)&&[_0x3a26a4[_0xd2aabe(0x14d)],_0x3a26a4[_0xd2aabe(0x187)]][_0xd2aabe(0x193)](_0x13d80e)&&(this[_0xd2aabe(0x176)]['forEach'](async _0x41744f=>{const _0x4b9992=_0xd2aabe,_0x53c7d8=_0x3a26a4[_0x4b9992(0x14f)]['split']('|');let _0x564779=0x0;while(!![]){switch(_0x53c7d8[_0x564779++]){case'0':_0x41744f[_0x3a26a4[_0x4b9992(0x161)]][_0x3a26a4[_0x4b9992(0xf5)]]=_0x192f8d[_0x3a26a4['KrPZs']][_0x3a26a4[_0x4b9992(0xf5)]];continue;case'1':await SessionHandler[_0x4b9992(0x123)](_0x41744f);continue;case'2':_0x41744f[_0x3a26a4[_0x4b9992(0x161)]][_0x3a26a4[_0x4b9992(0x158)]]=_0x192f8d[_0x3a26a4[_0x4b9992(0x102)]][_0x3a26a4[_0x4b9992(0x158)]];continue;case'3':_0x41744f[_0x3a26a4[_0x4b9992(0x161)]][_0x3a26a4[_0x4b9992(0x17b)]]=_0x192f8d[_0x3a26a4[_0x4b9992(0x102)]][_0x3a26a4[_0x4b9992(0x17b)]];continue;case'4':_0x41744f[_0x3a26a4['GAcLB']][_0x3a26a4[_0x4b9992(0x199)]]=_0x192f8d[_0x3a26a4[_0x4b9992(0x102)]][_0x3a26a4[_0x4b9992(0x199)]];continue;}break;}}),this[_0xd2aabe(0x176)]=[]);if(_0x3a26a4['GgFnL'](this[_0xd2aabe(0x14e)],_0x256a95[_0xd2aabe(0xf4)])){this[_0xd2aabe(0x176)]['push'](_0x192f8d);return;}_0x3a26a4[_0xd2aabe(0xd4)](this[_0xd2aabe(0x14e)],_0x3a26a4[_0xd2aabe(0x178)])&&_0x192f8d[_0x3a26a4['KrPZs']]&&(_0x192f8d[_0x3a26a4[_0xd2aabe(0x102)]][_0x3a26a4['DsQfV']]=_0x3a26a4[_0xd2aabe(0x109)],_0x192f8d[_0x3a26a4['KrPZs']][_0x3a26a4[_0xd2aabe(0x199)]]=null,_0x192f8d[_0x3a26a4[_0xd2aabe(0x102)]][_0x3a26a4[_0xd2aabe(0x158)]]=null),_0x3a26a4[_0xd2aabe(0x18a)](setCurrentTestData,FRAMEWORKS['JEST'],_0x192f8d),await SessionHandler[_0xd2aabe(0x123)](_0x192f8d);}catch(_0x367fc1){_0x3a26a4[_0xd2aabe(0x152)](debug,_0xd2aabe(0x13d)+_0x13d80e+_0xd2aabe(0xef)+_0x367fc1);}};['findGitConfig'](_0x4b22e9){const _0x144b55=a22_0x3f2595,_0xff110f={};_0xff110f['nrppz']=function(_0x1af5bc,_0x2e6087){return _0x1af5bc==_0x2e6087;},_0xff110f['PxfbE']=function(_0x3ba5f6,_0x182dd4){return _0x3ba5f6===_0x182dd4;},_0xff110f[_0x144b55(0x17f)]='.git',_0xff110f['JYHrc']=_0x144b55(0x16e);const _0x2ec590=_0xff110f,_0x43144a=path[_0x144b55(0x17a)];if(_0x2ec590[_0x144b55(0x15f)](_0x4b22e9,null)||_0x2ec590[_0x144b55(0x14b)](_0x4b22e9,'')||_0x2ec590[_0x144b55(0x14b)](_0x4b22e9,_0x43144a))return null;try{return fs[_0x144b55(0xdf)](path['join'](_0x4b22e9,_0x2ec590[_0x144b55(0x17f)],_0x2ec590[_0x144b55(0x112)])),_0x4b22e9;}catch(_0x2b1680){const _0x9e749c=path[_0x144b55(0xe2)](_0x4b22e9);return this['findGitConfig'](_0x9e749c);}}[a22_0x3f2595(0xe6)]=async _0x2125ea=>{const _0x3109bc=a22_0x3f2595,_0x55457e={'OTpUw':_0x3109bc(0xea),'kXBCD':function(_0x1361d1,_0x4c29b1){return _0x1361d1(_0x4c29b1);}},_0x4dc141=TestDetails[_0x3109bc(0x175)](process['pid']+_0x3109bc(0x174)),_0x225181=TestDetails[_0x3109bc(0x175)](process[_0x3109bc(0xcd)]+_0x3109bc(0x11f));try{(_0x4dc141||this[_0x3109bc(0xdd)]&&!this['current_hook'][_0x3109bc(0xf9)])&&(_0x2125ea[_0x3109bc(0x131)]=_0x4dc141);!_0x2125ea[_0x3109bc(0x131)]&&_0x225181&&(_0x2125ea['test_run_uuid']=_0x225181);if(_0x2125ea['hook_run_uuid']||_0x2125ea[_0x3109bc(0x11d)]){const _0x1f9ee5={};_0x1f9ee5['event_type']=_0x55457e['OTpUw'],_0x1f9ee5['logs']=[_0x2125ea],await SessionHandler[_0x3109bc(0x123)](_0x1f9ee5);}}catch(_0x36cc99){_0x55457e[_0x3109bc(0x183)](debug,_0x3109bc(0x10f)+_0x36cc99);}};[a22_0x3f2595(0xfa)]=async _0x520235=>{const _0x55d72f=a22_0x3f2595,_0x3ac49c={'bjoIG':_0x55d72f(0x18e),'XkhKz':_0x55d72f(0xdc),'EDtuD':function(_0x3ee826,_0x359a60){return _0x3ee826(_0x359a60);}};try{const _0x5a937b={'uuid':_0x520235[_0x55d72f(0x151)]||TestDetails[_0x55d72f(0x175)](process[_0x55d72f(0xcd)]+':testAnalyticsId'),'integrations':_0x520235[_0x3ac49c['bjoIG']]},_0x5dd78d={};_0x5dd78d[_0x55d72f(0xe7)]=_0x3ac49c[_0x55d72f(0x188)],_0x5dd78d[_0x55d72f(0x13c)]=_0x5a937b,await SessionHandler['uploadEventData'](_0x5dd78d);}catch(_0x1fb881){_0x3ac49c[_0x55d72f(0x180)](debug,_0x55d72f(0xe4)+_0x1fb881);}};async[a22_0x3f2595(0xfb)](){const _0x24ec3a=a22_0x3f2595,_0x44672a={'GkloD':function(_0x1139a2){return _0x1139a2();}};if(this[_0x24ec3a(0x155)])return this['_gitConfigPath'];const _0x282424=await _0x44672a['GkloD'](getGitMetaData);_0x282424&&(this[_0x24ec3a(0xe9)]=_0x282424[_0x24ec3a(0x103)]),this[_0x24ec3a(0x155)]=!![];}[a22_0x3f2595(0x150)](_0x356362){const _0x2ffc36=a22_0x3f2595,_0x22099b={};_0x22099b[_0x2ffc36(0x165)]=_0x2ffc36(0x164),_0x22099b['vwPmE']=_0x2ffc36(0x137),_0x22099b[_0x2ffc36(0x138)]=_0x2ffc36(0x128);const _0x16797d=_0x22099b,_0x11c4c2={};return _0x11c4c2[STATE_PASSED]=_0x16797d[_0x2ffc36(0x165)],_0x11c4c2[STATE_PENDING]=_0x16797d[_0x2ffc36(0x111)],_0x11c4c2[STATE_FAILED]=_0x16797d[_0x2ffc36(0x138)],_0x11c4c2[_0x356362];}[a22_0x3f2595(0x172)](_0x6bdbaa){const _0x424ab5=a22_0x3f2595,_0x7c3844={};_0x7c3844['SLsZV']=function(_0x3897bc,_0x1421e3){return _0x3897bc!==_0x1421e3;},_0x7c3844[_0x424ab5(0xd8)]=_0x424ab5(0x16f);const _0x5acfbb=_0x7c3844,_0x265be5=[];if(_0x6bdbaa&&_0x6bdbaa['parent']){let _0x4b729b=_0x6bdbaa[_0x424ab5(0x17c)];while(_0x4b729b&&_0x5acfbb[_0x424ab5(0xee)](_0x4b729b['name'],'')&&_0x5acfbb[_0x424ab5(0xee)](_0x4b729b[_0x424ab5(0x10b)],_0x5acfbb[_0x424ab5(0xd8)])){_0x265be5[_0x424ab5(0x106)](_0x4b729b[_0x424ab5(0x10b)]),_0x4b729b=_0x4b729b[_0x424ab5(0x17c)];}}return _0x265be5[_0x424ab5(0xe8)](),_0x265be5;}[a22_0x3f2595(0x11c)]=_0x2c5068=>{const _0x4527f4=a22_0x3f2595;if(_0x2c5068[_0x4527f4(0x12c)]){const _0x134459=stackTrace['parse'][_0x4527f4(0x18c)](stackTrace,_0x2c5068[_0x4527f4(0x12c)]);return _0x134459[0x0][_0x4527f4(0x15a)]();}if(_0x2c5068[_0x4527f4(0x154)])return _0x2c5068[_0x4527f4(0x154)];return null;};[a22_0x3f2595(0x118)]=_0x154bce=>{const _0x591f8e=a22_0x3f2595;if(!_0x154bce||!_0x154bce[_0x591f8e(0x17c)])return;_0x154bce[_0x591f8e(0x17c)]['hooks'][_0x591f8e(0xed)](_0x420102=>{const _0x5bba17=_0x591f8e;!_0x420102[_0x5bba17(0xfd)]&&(_0x420102[_0x5bba17(0xfd)]=TestDetails[_0x5bba17(0x124)](process[_0x5bba17(0xcd)]+_0x5bba17(0x174)));}),this[_0x591f8e(0x118)](_0x154bce[_0x591f8e(0x17c)]);};[a22_0x3f2595(0x119)]=_0x547378=>{const _0x36e5d7=a22_0x3f2595,_0x16632d={};_0x16632d['nfxAU']=_0x36e5d7(0xfe),_0x16632d[_0x36e5d7(0x10e)]=_0x36e5d7(0xf6);const _0xb3ab83=_0x16632d;if(!_0x547378||!_0x547378['parent'])return;_0x547378[_0x36e5d7(0x17c)][_0x36e5d7(0x173)]['forEach'](_0x3d90da=>{const _0xe41262=_0x36e5d7;[_0xb3ab83[_0xe41262(0xd5)],_0xb3ab83[_0xe41262(0x10e)]][_0xe41262(0x193)](_0x3d90da[_0xe41262(0xf4)])&&_0x3d90da[_0xe41262(0xfd)]&&(_0x3d90da[_0xe41262(0xfd)]=null);}),this['mapTestHooks'](_0x547378[_0x36e5d7(0x17c)]);};['isJestInternalHook'](_0x4ca5a9){const _0xe05cc8=a22_0x3f2595,_0x261889={'fUxxH':_0xe05cc8(0x177),'LFGib':function(_0x1eeca4,_0x104839){return _0x1eeca4(_0x104839);},'gCwLe':function(_0x2d02df,_0x5e294a){return _0x2d02df+_0x5e294a;},'EcfSv':_0xe05cc8(0x140)};try{const _0x5ee7db=this['getRootParentFile'](_0x4ca5a9);return _0x5ee7db[_0xe05cc8(0x193)](_0x261889[_0xe05cc8(0x13e)]);}catch(_0x18b674){_0x261889[_0xe05cc8(0x17d)](debug,_0x261889[_0xe05cc8(0x129)](_0x261889[_0xe05cc8(0x15e)],_0x18b674));}return![];}[a22_0x3f2595(0x105)]=_0x1fad7d=>{const _0x5771ec=a22_0x3f2595,_0x23eb95={'DBTJI':function(_0x23f20f,_0x36b706){return _0x23f20f(_0x36b706);}};if(!_0x1fad7d||!_0x1fad7d[_0x5771ec(0x17c)])return[];const _0x984b8a=[];return _0x1fad7d['parent']['hooks'][_0x5771ec(0xed)](_0x4af086=>{const _0x1f9634=_0x5771ec;_0x4af086[_0x1f9634(0xfd)]&&!_0x23eb95[_0x1f9634(0x153)](isInternalHook,_0x4af086['fn'])&&!this['isJestInternalHook'](_0x4af086)&&_0x984b8a[_0x1f9634(0x106)](_0x4af086[_0x1f9634(0xfd)]);}),[..._0x984b8a,...this['getHooksForTest'](_0x1fad7d[_0x5771ec(0x17c)])];};},[a22_0x3f2595(0x13f),'registerListeners',a22_0x3f2595(0x11b),a22_0x3f2595(0x117),a22_0x3f2595(0x169),a22_0x3f2595(0xce),a22_0x3f2595(0xe6),a22_0x3f2595(0xfa),a22_0x3f2595(0x150),a22_0x3f2595(0x172),a22_0x3f2595(0x11c),a22_0x3f2595(0x118),a22_0x3f2595(0x119),a22_0x3f2595(0x105),a22_0x3f2595(0xfb)],a22_0x3f2595(0x134));
|
|
1
|
+
function a22_0x3d0a(_0x4f76f4,_0x5860ee){const _0x4737ce=a22_0x4737();return a22_0x3d0a=function(_0x3d0a4a,_0x2b3e3a){_0x3d0a4a=_0x3d0a4a-0x165;let _0x3ddd75=_0x4737ce[_0x3d0a4a];return _0x3ddd75;},a22_0x3d0a(_0x4f76f4,_0x5860ee);}const a22_0x38835d=a22_0x3d0a;(function(_0x750bd8,_0x19c1d3){const _0x28f91e=a22_0x3d0a,_0x13d0ea=_0x750bd8();while(!![]){try{const _0x309136=-parseInt(_0x28f91e(0x222))/0x1*(parseInt(_0x28f91e(0x1b6))/0x2)+-parseInt(_0x28f91e(0x19b))/0x3+parseInt(_0x28f91e(0x170))/0x4*(-parseInt(_0x28f91e(0x1f8))/0x5)+-parseInt(_0x28f91e(0x1e3))/0x6+parseInt(_0x28f91e(0x202))/0x7*(-parseInt(_0x28f91e(0x174))/0x8)+parseInt(_0x28f91e(0x1a2))/0x9+-parseInt(_0x28f91e(0x20e))/0xa*(-parseInt(_0x28f91e(0x169))/0xb);if(_0x309136===_0x19c1d3)break;else _0x13d0ea['push'](_0x13d0ea['shift']());}catch(_0x512159){_0x13d0ea['push'](_0x13d0ea['shift']());}}}(a22_0x4737,0xb8cbb));const {isTestObservabilitySession,PathHelper,debug,failureData,getFailureType,isInternalHook}=require(a22_0x38835d(0x1cf)),SessionHandler=require('../../../helpers/test-observability/sessionHandler'),{v4:uuidv4}=require('uuid'),{name,version}=require(a22_0x38835d(0x17e)),stackTrace=require(a22_0x38835d(0x198)),path=require(a22_0x38835d(0x201)),fs=require('fs'),TestDetails=require(a22_0x38835d(0x1b4)),{FRAMEWORKS}=require('../../utils/constants'),{o11yClassErrorHandler}=require(a22_0x38835d(0x197)),{getGitMetaData}=require('../../../helpers/helper'),{appendTesthubParams,setCurrentTestData}=require('../../../helpers/testhub/utils'),a22_0x47deb6={};a22_0x47deb6[a22_0x38835d(0x186)]=a22_0x38835d(0x16f),a22_0x47deb6['STATE_FAILED']=a22_0x38835d(0x1c6),a22_0x47deb6[a22_0x38835d(0x1ce)]='pending';const {STATE_PASSED,STATE_PENDING,STATE_FAILED}=a22_0x47deb6,a22_0x27dfbc={};a22_0x27dfbc[a22_0x38835d(0x224)]=a22_0x38835d(0x1f1),a22_0x27dfbc['afterAll']=a22_0x38835d(0x21c),a22_0x27dfbc['beforeEach']=a22_0x38835d(0x16d),a22_0x27dfbc['afterEach']=a22_0x38835d(0x218);function a22_0x4737(){const _0x586ed1=['nVAXb','1910fpWwAH','cwd','logs','root','result','sendTestRunEvent','getRootParentFile','dkFdM','LoVSB','taebQ','AFTER_EACH','now','TestRunFinished','oVZFm','AFTER_ALL','bs:addPlatformDetails:','wIjzz','qWdqH','getName','js-','326583tumATC','config','beforeAll','biTNt','LPdGV','bind','failure_reason_expanded','kaddZ','OgoAT','prefixTestPath','_paths','testStarted','hooks','dirname','232573gReIih','current_test','Ssxzd','nYatr','BEFORE_EACH','ZOOmY','passed','1880xUORLt','statSync','0|2|6|1|4|3|5','skipped','299024FeatUd','FYDTh','TestRunSkipped','esBru','PLpHb','DtcEH','findGitConfig','asyncError','test','hook_type','../../../../package.json','jest-circus','hook_run_uuid','test_run','igLZW','rUOoN','iEFjN','QydrY','STATE_PASSED','INOzq','hook_data','ZzXqM','push','removeAllListeners','nYBGV','pid','Wdkbo','reverse','getTestUUID','apply','Exception\x20in\x20populating\x20test\x20data\x20for\x20event\x20','expanded','TestRunStarted','uuid','Exception\x20in\x20populating\x20test\x20data\x20for\x20test\x20start\x20with\x20error\x20:\x20','../../../helpers/test-observability/error-handler','stack-trace','UPSul','failure','1871583ZzfBFN','mapTestHooks','getFileName','match','sep','JEST','File\x20path\x20could\x20not\x20be\x20found','11798280bYLVEV','HookRunFinished','getHierarchy','mDbJV','current_hook','err','uDUbh','EAmHe','isJestInternalHook','hookAnalyticsId','toISOString','setTestUUID','includes','hDjmf','errorsDetailed','parent','_currentRetry','JCTkP','./test-details','failure_backtrace','2PcPhnW','pxCcT','name','resetTestHooks','failure_reason','forEach','http_response','ZaukL',':testAnalyticsId','rAbkv','parse','orwcb','\x20with\x20error\x20:\x20','appendTestItemLog','configureGit','Exception\x20in\x20uploading\x20platform\x20details\x20to\x20Observability\x20with\x20error\x20:\x20','failed','xNWkJ','inspect','OAynE','pending','rgixN','toString','testObservability','STATE_PENDING','../../../helpers/test-observability/utils','SCUxr','_gitConfigured','LogCreated','wWAwr','Exception\x20in\x20uploading\x20log\x20data\x20to\x20Observability\x20with\x20error\x20:\x20','finished_at','length','title','ROOT_DESCRIBE_BLOCK','beforeEach','fUlkC','ckViY','retryOf',':hookAnalyticsId','Exception\x20in\x20getting\x20file\x20for\x20hook\x20','split','started_at','appendTestPlatform','OlUSj','8969364kYaXON','DKuBU','qnPgJ','WOkbT','generic','hook_failure','bs:addLog:','javascript','analyticsResult','event_type','test_run_uuid','registerListeners','TOrli','TKdFV','BEFORE_ALL','iAyCx','getHooksForTest','_gitConfigPath','join','call','CBTSessionCreated','15285cnuHDH','markedStatus','file','relative','kNpUz','WbYTn','_testResults','nmfAM','type','path','133ugmQks','uploadEventData','testAnalyticsId','HMeAM','ObservabilityReporter','getTestEnv','failure_type','hook_run','hyJgF','location_prefix','KDzrm'];a22_0x4737=function(){return _0x586ed1;};return a22_0x4737();}const HOOK_TYPES_MAP=a22_0x27dfbc;module['exports']=o11yClassErrorHandler(class ObservabilityReporter{constructor(){const _0xde3b8c=a22_0x38835d,_0x450bc6={'nYatr':_0xde3b8c(0x172),'khZcb':function(_0xa3968){return _0xa3968();}},_0x28998c=_0x450bc6[_0xde3b8c(0x16c)]['split']('|');let _0x70d9d6=0x0;while(!![]){switch(_0x28998c[_0x70d9d6++]){case'0':this[_0xde3b8c(0x1cd)]=_0x450bc6['khZcb'](isTestObservabilitySession);continue;case'1':this[_0xde3b8c(0x165)]=new PathHelper({'cwd':process[_0xde3b8c(0x20f)]()},this['_testEnv'][_0xde3b8c(0x20b)]);continue;case'2':this[_0xde3b8c(0x1fe)]=[];continue;case'3':this[_0xde3b8c(0x1d1)]=![];continue;case'4':this['hook_data']=[];continue;case'5':this[_0xde3b8c(0x1f4)]=null;continue;case'6':this['_testEnv']=this['getTestEnv']();continue;}break;}}[a22_0x38835d(0x207)]=()=>{const _0x572373=a22_0x38835d,_0xf50329={'SCUxr':_0x572373(0x1e7),'esBru':function(_0x18892d){return _0x18892d();}};return{'ci':_0xf50329[_0x572373(0x1d0)],'key':_0xf50329[_0x572373(0x177)](uuidv4),'version':version,'collector':_0x572373(0x221)+name};};[a22_0x38835d(0x1ee)](){const _0x2e79aa=a22_0x38835d;process['removeAllListeners'](_0x2e79aa(0x1e9)+process[_0x2e79aa(0x18d)]),process['on'](_0x2e79aa(0x1e9)+process[_0x2e79aa(0x18d)],this[_0x2e79aa(0x1c3)][_0x2e79aa(0x227)](this)),process[_0x2e79aa(0x18b)](_0x2e79aa(0x21d)+process[_0x2e79aa(0x18d)]),process['on'](_0x2e79aa(0x21d)+process[_0x2e79aa(0x18d)],this[_0x2e79aa(0x1e1)][_0x2e79aa(0x227)](this));}[a22_0x38835d(0x166)]=async _0x359131=>{const _0xcf54b8=a22_0x38835d,_0x5f1e8e={'taebQ':function(_0x3488f0,_0x38c47a){return _0x3488f0>_0x38c47a;},'PPPmy':function(_0x1be45a,_0x442ab5){return _0x1be45a===_0x442ab5;},'JCTkP':_0xcf54b8(0x194),'TPYRk':function(_0x4e56d7,_0x535d36){return _0x4e56d7(_0x535d36);}};try{const _0x5dcd23=this[_0xcf54b8(0x16a)];this['current_test']=_0x359131,_0x359131['retryOf']=null,_0x359131[_0xcf54b8(0x204)]=TestDetails['setTestUUID'](process['pid']+_0xcf54b8(0x1be)),_0x359131['started_at']=new Date()[_0xcf54b8(0x1ac)](),_0x5f1e8e[_0xcf54b8(0x217)](_0x359131[_0xcf54b8(0x1b2)],0x0)&&_0x5dcd23&&_0x5f1e8e['PPPmy'](_0x5dcd23[_0xcf54b8(0x1d7)],_0x359131[_0xcf54b8(0x1d7)])?(_0x359131[_0xcf54b8(0x1dc)]=_0x5dcd23[_0xcf54b8(0x204)],await this[_0xcf54b8(0x213)](_0x359131,undefined,![],_0x5f1e8e['JCTkP']),_0x5dcd23['state']=STATE_FAILED,await this[_0xcf54b8(0x213)](_0x5dcd23,undefined,!![])):await this[_0xcf54b8(0x213)](_0x359131,undefined,![],_0x5f1e8e[_0xcf54b8(0x1b3)]);}catch(_0x1892bc){_0x5f1e8e['TPYRk'](debug,_0xcf54b8(0x196)+_0x1892bc);}};[a22_0x38835d(0x220)](_0xd77ff9){const _0xcc6929=a22_0x38835d,_0x4e1ba9={};_0x4e1ba9[_0xcc6929(0x1ff)]=function(_0x1ac799,_0xc8c341){return _0x1ac799!==_0xc8c341;},_0x4e1ba9['QydrY']=_0xcc6929(0x17c);const _0x3954f2=_0x4e1ba9;if(_0x3954f2[_0xcc6929(0x1ff)](_0xd77ff9[_0xcc6929(0x200)],_0x3954f2[_0xcc6929(0x185)]))return'\x22'+_0xd77ff9[_0xcc6929(0x200)]+'\x22\x20hook\x20for\x20\x22'+(_0xd77ff9['parent']&&_0xd77ff9[_0xcc6929(0x1b1)][_0xcc6929(0x1b8)])+'\x22';return _0xd77ff9['name'];}['sendTestRunEvent']=async(_0x38ab0f,_0x16e2f5=undefined,_0x4be03d=![],_0x543356=a22_0x38835d(0x21a))=>{const _0x492447=a22_0x38835d,_0x41feab={'rUOoN':'3|2|0|1|4','TOrli':_0x492447(0x209),'FYDTh':_0x492447(0x212),'LPdGV':_0x492447(0x181),'hDjmf':_0x492447(0x1ba),'iEFjN':_0x492447(0x208),'pxCcT':_0x492447(0x19a),'DtcEH':function(_0xbcf8ed,_0x35940f){return _0xbcf8ed(_0x35940f);},'dkFdM':_0x492447(0x17f),'UPSul':function(_0x5f0e98,_0x189d16){return _0x5f0e98(_0x189d16);},'wIjzz':'util','xNWkJ':function(_0x1e9b3b,_0x5b7133){return _0x1e9b3b!==_0x5b7133;},'nVAXb':_0x492447(0x17c),'vPkdt':_0x492447(0x1a7),'TKdFV':_0x492447(0x1a1),'sEknw':_0x492447(0x1ea),'WbYTn':function(_0x3cf2fa,_0x1e286c){return _0x3cf2fa===_0x1e286c;},'mDbJV':_0x492447(0x176),'DKuBU':_0x492447(0x173),'PLpHb':function(_0x54cc20,_0x41667d){return _0x54cc20>_0x41667d;},'jRRxo':'failed','fUlkC':_0x492447(0x16f),'LPKBs':function(_0x3b57ef,_0x64cb57){return _0x3b57ef-_0x64cb57;},'rAbkv':function(_0x327a04,_0x17843d,_0x5c7004,_0x149b76,_0x44cfd3){return _0x327a04(_0x17843d,_0x5c7004,_0x149b76,_0x44cfd3);},'PrZIj':function(_0xd3272e,_0x46032d){return _0xd3272e===_0x46032d;},'dDqGu':'started_at','uDUbh':_0x492447(0x1d5),'UTXnb':_0x492447(0x1a3),'WOkbT':function(_0x38e74a,_0x2e6d95){return _0x38e74a!==_0x2e6d95;},'goNtJ':_0x492447(0x1b5),'rgixN':'backtrace','LoVSB':_0x492447(0x228),'qnPgJ':_0x492447(0x193),'igLZW':_0x492447(0x21a),'ZaukL':_0x492447(0x17d),'nYBGV':function(_0x3245a1,_0xf4166c){return _0x3245a1>_0xf4166c;},'OgoAT':function(_0xcc533d,_0x5c2f49){return _0xcc533d===_0x5c2f49;},'HMeAM':function(_0x50d03e,_0xa63bc8){return _0x50d03e===_0xa63bc8;},'ZzXqM':_0x492447(0x224),'OAynE':function(_0x16b4cc,_0x3904b0,_0xb26a8){return _0x16b4cc(_0x3904b0,_0xb26a8);},'DolMx':function(_0x3cb452,_0x50a206){return _0x3cb452(_0x50a206);}};try{if(_0x38ab0f['fn']&&_0x38ab0f['fn']['toString']()[_0x492447(0x19e)](/browserstack internal helper hook/))return;await this['configureGit']();let _0x341923;try{_0x341923=this['getRootParentFile'](_0x38ab0f);}catch(_0xc168d7){_0x41feab[_0x492447(0x179)](debug,'failed\x20to\x20get\x20root\x20parent\x20file\x20'+_0xc168d7),_0x341923=null;}if(_0x341923[_0x492447(0x1ae)](_0x41feab[_0x492447(0x215)]))return;const _0x1e1dec=_0x41feab[_0x492447(0x199)](require,_0x41feab[_0x492447(0x21e)]);let _0x210be0=[];if(_0x41feab['xNWkJ'](_0x38ab0f['errorsDetailed'],undefined))_0x210be0=[_0x38ab0f['errorsDetailed'],_0x41feab[_0x492447(0x20d)]];else _0x41feab[_0x492447(0x1c7)](_0x16e2f5,undefined)?_0x210be0=[_0x16e2f5,_0x41feab['vPkdt']]:_0x210be0=[];const _0x5b7fa6=_0x41feab['xNWkJ'](_0x38ab0f[_0x492447(0x1b0)],undefined)?_0x1e1dec[_0x492447(0x1c8)](_0x38ab0f[_0x492447(0x1b0)][0x0]):_0x41feab[_0x492447(0x1c7)](_0x16e2f5,undefined)?_0x16e2f5[_0x492447(0x1cc)]():undefined,_0x17dfb8=_0x341923?this[_0x492447(0x165)][_0x492447(0x22b)](this[_0x492447(0x214)](_0x38ab0f)):_0x41feab[_0x492447(0x1f0)],_0x411809={'framework':FRAMEWORKS[_0x492447(0x1a0)],'uuid':_0x38ab0f['testAnalyticsId']||_0x38ab0f['hookAnalyticsId'],'name':this[_0x492447(0x220)](_0x38ab0f),'body':{'lang':_0x41feab['sEknw'],'code':_0x38ab0f['fn'][_0x492447(0x1cc)]()},'scopes':this[_0x492447(0x1a4)](_0x38ab0f),'file_name':_0x17dfb8,'vc_filepath':this['_gitConfigPath']&&_0x341923?path[_0x492447(0x1fb)](this[_0x492447(0x1f4)],_0x341923):null,'location':_0x17dfb8,'result':_0x41feab[_0x492447(0x1fd)](_0x543356,_0x41feab[_0x492447(0x1a5)])?_0x41feab[_0x492447(0x1e4)]:this[_0x492447(0x1eb)](_0x38ab0f[_0x492447(0x1b0)]&&_0x41feab[_0x492447(0x178)](_0x38ab0f['errorsDetailed'][_0x492447(0x1d6)],0x0)?_0x41feab['jRRxo']:_0x41feab['fUlkC']),'failure_reason':_0x5b7fa6,'duration_in_ms':_0x38ab0f['duration']||(_0x543356['match'](/Finished/)||_0x543356[_0x492447(0x19e)](/Skipped/)?_0x41feab['LPKBs'](Date[_0x492447(0x219)](),new Date(_0x38ab0f[_0x492447(0x1e0)])['getTime']()):null),'started_at':_0x38ab0f[_0x492447(0x1e0)],'finished_at':_0x543356[_0x492447(0x19e)](/Finished/)||_0x543356[_0x492447(0x19e)](/Skipped/)?new Date()['toISOString']():null,'failure':failureData[_0x492447(0x191)](null,_0x210be0),'failure_type':!_0x5b7fa6?null:_0x41feab['DtcEH'](getFailureType,_0x5b7fa6),'retry_of':_0x38ab0f[_0x492447(0x1dc)]};_0x41feab[_0x492447(0x1bf)](appendTesthubParams,_0x411809,_0x543356,_0x38ab0f,FRAMEWORKS[_0x492447(0x1a0)]);_0x41feab['PrZIj'](_0x543356,_0x41feab[_0x492447(0x1a5)])&&!_0x411809[_0x41feab['dDqGu']]&&(_0x411809[_0x41feab['dDqGu']]=_0x411809[_0x41feab[_0x492447(0x1a8)]]);if(_0x543356[_0x492447(0x19e)](/HookRun/))[_0x411809['hook_type'],_0x411809['name']]=[_0x38ab0f[_0x492447(0x200)],this[_0x492447(0x220)](_0x38ab0f)],_0x41feab[_0x492447(0x1fd)](_0x543356,_0x41feab['UTXnb'])&&(_0x41feab[_0x492447(0x1e6)](_0x411809[_0x492447(0x212)],_0x41feab['jRRxo'])&&(_0x411809[_0x492447(0x212)]=_0x41feab[_0x492447(0x1da)]));else _0x543356['match'](/TestRun/)&&this[_0x492447(0x19c)](_0x38ab0f);const _0x41c68f=_0x411809[_0x41feab[_0x492447(0x1b7)]][0x0];_0x41c68f&&(_0x411809[_0x41feab['goNtJ']]=_0x41c68f[_0x41feab[_0x492447(0x1cb)]],_0x411809[_0x41feab[_0x492447(0x216)]]=_0x41c68f[_0x41feab[_0x492447(0x1e5)]]);[_0x41feab['igLZW'],_0x41feab[_0x492447(0x1a5)]]['includes'](_0x543356)&&(this['_testResults'][_0x492447(0x18a)](_0x411809),_0x411809[_0x492447(0x167)]=this['getHooksForTest'](_0x38ab0f),this[_0x492447(0x1b9)](_0x38ab0f));const _0x316530={'event_type':_0x41feab[_0x492447(0x1fd)](_0x543356,_0x41feab[_0x492447(0x1a5)])?_0x41feab[_0x492447(0x182)]:_0x543356};_0x543356[_0x492447(0x19e)](/HookRun/)?(_0x411809[_0x41feab['ZaukL']]=HOOK_TYPES_MAP[_0x411809[_0x41feab[_0x492447(0x1bd)]]],_0x316530[_0x41feab[_0x492447(0x1ef)]]=_0x411809):_0x316530[_0x41feab['LPdGV']]=_0x411809;_0x41feab[_0x492447(0x18c)](this[_0x492447(0x188)][_0x492447(0x1d6)],0x0)&&[_0x41feab[_0x492447(0x182)],_0x41feab[_0x492447(0x1a5)]][_0x492447(0x1ae)](_0x543356)&&(this[_0x492447(0x188)]['forEach'](async _0xfcdb2e=>{const _0x3d29d3=_0x492447,_0x58d657=_0x41feab[_0x3d29d3(0x183)][_0x3d29d3(0x1df)]('|');let _0x14c910=0x0;while(!![]){switch(_0x58d657[_0x14c910++]){case'0':_0xfcdb2e[_0x41feab[_0x3d29d3(0x1ef)]][_0x41feab['FYDTh']]=_0x316530[_0x41feab[_0x3d29d3(0x226)]][_0x41feab['FYDTh']];continue;case'1':_0xfcdb2e[_0x41feab[_0x3d29d3(0x1ef)]][_0x41feab[_0x3d29d3(0x1af)]]=_0x316530[_0x41feab[_0x3d29d3(0x226)]][_0x41feab['hDjmf']];continue;case'2':_0xfcdb2e[_0x41feab[_0x3d29d3(0x1ef)]][_0x41feab[_0x3d29d3(0x184)]]=_0x316530[_0x41feab[_0x3d29d3(0x226)]][_0x41feab[_0x3d29d3(0x184)]];continue;case'3':_0xfcdb2e[_0x41feab[_0x3d29d3(0x1ef)]][_0x41feab[_0x3d29d3(0x1b7)]]=_0x316530[_0x41feab[_0x3d29d3(0x226)]][_0x41feab[_0x3d29d3(0x1b7)]];continue;case'4':await SessionHandler['uploadEventData'](_0xfcdb2e);continue;}break;}}),this[_0x492447(0x188)]=[]);if(_0x41feab[_0x492447(0x22a)](this[_0x492447(0x1e8)],_0x38ab0f[_0x492447(0x200)])){this[_0x492447(0x188)]['push'](_0x316530);return;}_0x41feab[_0x492447(0x205)](this[_0x492447(0x1e8)],_0x41feab[_0x492447(0x189)])&&_0x316530[_0x41feab[_0x492447(0x226)]]&&(_0x316530[_0x41feab[_0x492447(0x226)]][_0x41feab[_0x492447(0x175)]]=_0x41feab['DKuBU'],_0x316530[_0x41feab[_0x492447(0x226)]][_0x41feab['pxCcT']]=null,_0x316530[_0x41feab[_0x492447(0x226)]][_0x41feab[_0x492447(0x184)]]=null),_0x41feab[_0x492447(0x1c9)](setCurrentTestData,FRAMEWORKS['JEST'],_0x316530),await SessionHandler[_0x492447(0x203)](_0x316530);}catch(_0x3b3b0d){_0x41feab['DolMx'](debug,_0x492447(0x192)+_0x543356+_0x492447(0x1c2)+_0x3b3b0d);}};[a22_0x38835d(0x17a)](_0xe927de){const _0x44d4f3=a22_0x38835d,_0x4a5096={};_0x4a5096[_0x44d4f3(0x225)]=function(_0x9001b0,_0x15e4d5){return _0x9001b0==_0x15e4d5;},_0x4a5096[_0x44d4f3(0x1c1)]=function(_0x17516b,_0x1858e0){return _0x17516b===_0x1858e0;},_0x4a5096[_0x44d4f3(0x16b)]=function(_0x181b7b,_0x5227d0){return _0x181b7b===_0x5227d0;},_0x4a5096[_0x44d4f3(0x1d3)]='.git',_0x4a5096[_0x44d4f3(0x1f2)]=_0x44d4f3(0x223);const _0x26bae8=_0x4a5096,_0x131ef2=path[_0x44d4f3(0x19f)];if(_0x26bae8[_0x44d4f3(0x225)](_0xe927de,null)||_0x26bae8[_0x44d4f3(0x1c1)](_0xe927de,'')||_0x26bae8[_0x44d4f3(0x16b)](_0xe927de,_0x131ef2))return null;try{return fs[_0x44d4f3(0x171)](path[_0x44d4f3(0x1f5)](_0xe927de,_0x26bae8[_0x44d4f3(0x1d3)],_0x26bae8[_0x44d4f3(0x1f2)])),_0xe927de;}catch(_0x55c931){const _0x5bdcb9=path[_0x44d4f3(0x168)](_0xe927de);return this['findGitConfig'](_0x5bdcb9);}}[a22_0x38835d(0x1c3)]=async _0x5c618f=>{const _0x4cace3=a22_0x38835d,_0x48a604={'OlUSj':_0x4cace3(0x1d2),'JOyhC':function(_0x2d64e2,_0x1167bf){return _0x2d64e2(_0x1167bf);}},_0x4eb75c=TestDetails['getTestUUID'](process[_0x4cace3(0x18d)]+_0x4cace3(0x1dd)),_0x28282e=TestDetails[_0x4cace3(0x190)](process[_0x4cace3(0x18d)]+_0x4cace3(0x1be));try{(_0x4eb75c||this[_0x4cace3(0x1a6)]&&!this[_0x4cace3(0x1a6)][_0x4cace3(0x1f9)])&&(_0x5c618f['hook_run_uuid']=_0x4eb75c);!_0x5c618f['hook_run_uuid']&&_0x28282e&&(_0x5c618f['test_run_uuid']=_0x28282e);if(_0x5c618f[_0x4cace3(0x180)]||_0x5c618f[_0x4cace3(0x1ed)]){const _0x514388={};_0x514388[_0x4cace3(0x1ec)]=_0x48a604[_0x4cace3(0x1e2)],_0x514388[_0x4cace3(0x210)]=[_0x5c618f],await SessionHandler['uploadEventData'](_0x514388);}}catch(_0x2afbb2){_0x48a604['JOyhC'](debug,_0x4cace3(0x1d4)+_0x2afbb2);}};[a22_0x38835d(0x1e1)]=async _0x1223aa=>{const _0x8df757=a22_0x38835d,_0x253ad7={'EHJvT':_0x8df757(0x1bc),'qWdqH':_0x8df757(0x1f7),'BZaEF':function(_0x285175,_0x4b95d2){return _0x285175(_0x4b95d2);}};try{const _0x15854c={'uuid':_0x1223aa[_0x8df757(0x195)]||TestDetails['getTestUUID'](process[_0x8df757(0x18d)]+_0x8df757(0x1be)),'integrations':_0x1223aa[_0x253ad7['EHJvT']]},_0x2c1325={};_0x2c1325[_0x8df757(0x1ec)]=_0x253ad7[_0x8df757(0x21f)],_0x2c1325[_0x8df757(0x181)]=_0x15854c,await SessionHandler[_0x8df757(0x203)](_0x2c1325);}catch(_0x27ffa3){_0x253ad7['BZaEF'](debug,_0x8df757(0x1c5)+_0x27ffa3);}};async['configureGit'](){const _0xc6705e=a22_0x38835d,_0x196489={'mbxOY':function(_0x1cfb03){return _0x1cfb03();}};if(this[_0xc6705e(0x1d1)])return this[_0xc6705e(0x1f4)];const _0x5d764e=await _0x196489['mbxOY'](getGitMetaData);_0x5d764e&&(this[_0xc6705e(0x1f4)]=_0x5d764e[_0xc6705e(0x211)]),this[_0xc6705e(0x1d1)]=!![];}[a22_0x38835d(0x1eb)](_0x570fe5){const _0x3c9221=a22_0x38835d,_0x4a5ddc={};_0x4a5ddc[_0x3c9221(0x16e)]=_0x3c9221(0x16f),_0x4a5ddc['KDzrm']=_0x3c9221(0x1ca),_0x4a5ddc[_0x3c9221(0x229)]=_0x3c9221(0x1c6);const _0x4003e3=_0x4a5ddc,_0x195873={};return _0x195873[STATE_PASSED]=_0x4003e3[_0x3c9221(0x16e)],_0x195873[STATE_PENDING]=_0x4003e3[_0x3c9221(0x20c)],_0x195873[STATE_FAILED]=_0x4003e3[_0x3c9221(0x229)],_0x195873[_0x570fe5];}['getHierarchy'](_0x2288b5){const _0x49413a=a22_0x38835d,_0x291200={};_0x291200['INOzq']=function(_0x357460,_0x3f6dfb){return _0x357460!==_0x3f6dfb;},_0x291200['ckViY']=_0x49413a(0x1d8);const _0x310f06=_0x291200,_0x4d3d4a=[];if(_0x2288b5&&_0x2288b5[_0x49413a(0x1b1)]){let _0x1401c4=_0x2288b5[_0x49413a(0x1b1)];while(_0x1401c4&&_0x310f06[_0x49413a(0x187)](_0x1401c4[_0x49413a(0x1b8)],'')&&_0x310f06[_0x49413a(0x187)](_0x1401c4[_0x49413a(0x1b8)],_0x310f06[_0x49413a(0x1db)])){_0x4d3d4a[_0x49413a(0x18a)](_0x1401c4[_0x49413a(0x1b8)]),_0x1401c4=_0x1401c4['parent'];}}return _0x4d3d4a[_0x49413a(0x18f)](),_0x4d3d4a;}[a22_0x38835d(0x214)]=_0x341cc3=>{const _0x16ae9f=a22_0x38835d;if(_0x341cc3[_0x16ae9f(0x17b)]){const _0x350b16=stackTrace[_0x16ae9f(0x1c0)][_0x16ae9f(0x1f6)](stackTrace,_0x341cc3['asyncError']);return _0x350b16[0x0][_0x16ae9f(0x19d)]();}if(_0x341cc3[_0x16ae9f(0x1fa)])return _0x341cc3['file'];return null;};['mapTestHooks']=_0x1760b3=>{const _0x199c62=a22_0x38835d;if(!_0x1760b3||!_0x1760b3['parent'])return;_0x1760b3['parent'][_0x199c62(0x167)]['forEach'](_0x3a49c7=>{const _0x39a914=_0x199c62;!_0x3a49c7['hookAnalyticsId']&&(_0x3a49c7[_0x39a914(0x1ab)]=TestDetails[_0x39a914(0x1ad)](process['pid']+_0x39a914(0x1dd)));}),this[_0x199c62(0x19c)](_0x1760b3[_0x199c62(0x1b1)]);};['resetTestHooks']=_0x5ce73e=>{const _0x1e7505=a22_0x38835d,_0x2461af={};_0x2461af[_0x1e7505(0x20a)]=_0x1e7505(0x1d9),_0x2461af[_0x1e7505(0x1fc)]='afterEach';const _0x1c1f2f=_0x2461af;if(!_0x5ce73e||!_0x5ce73e['parent'])return;_0x5ce73e[_0x1e7505(0x1b1)][_0x1e7505(0x167)][_0x1e7505(0x1bb)](_0x4e2632=>{const _0x22a223=_0x1e7505;[_0x1c1f2f['hyJgF'],_0x1c1f2f[_0x22a223(0x1fc)]][_0x22a223(0x1ae)](_0x4e2632[_0x22a223(0x200)])&&_0x4e2632[_0x22a223(0x1ab)]&&(_0x4e2632[_0x22a223(0x1ab)]=null);}),this['mapTestHooks'](_0x5ce73e[_0x1e7505(0x1b1)]);};[a22_0x38835d(0x1aa)](_0xb37bd9){const _0x18d88a=a22_0x38835d,_0xd4a9bb={'oVZFm':_0x18d88a(0x17f),'Wdkbo':function(_0x1d646d,_0x1d4a04){return _0x1d646d(_0x1d4a04);},'RqEGr':function(_0x39fdc1,_0x48832b){return _0x39fdc1+_0x48832b;},'zzZJU':_0x18d88a(0x1de)};try{const _0x2042d6=this['getRootParentFile'](_0xb37bd9);return _0x2042d6['includes'](_0xd4a9bb[_0x18d88a(0x21b)]);}catch(_0x430740){_0xd4a9bb[_0x18d88a(0x18e)](debug,_0xd4a9bb['RqEGr'](_0xd4a9bb['zzZJU'],_0x430740));}return![];}[a22_0x38835d(0x1f3)]=_0x553acd=>{const _0x2a059a=a22_0x38835d,_0x2bdfa0={'EAmHe':function(_0x4de52d,_0x41e276){return _0x4de52d(_0x41e276);}};if(!_0x553acd||!_0x553acd[_0x2a059a(0x1b1)])return[];const _0x307aaa=[];return _0x553acd[_0x2a059a(0x1b1)][_0x2a059a(0x167)][_0x2a059a(0x1bb)](_0x2062b6=>{const _0x45d2fc=_0x2a059a;_0x2062b6['hookAnalyticsId']&&!_0x2bdfa0[_0x45d2fc(0x1a9)](isInternalHook,_0x2062b6['fn'])&&!this[_0x45d2fc(0x1aa)](_0x2062b6)&&_0x307aaa['push'](_0x2062b6[_0x45d2fc(0x1ab)]);}),[..._0x307aaa,...this['getHooksForTest'](_0x553acd[_0x2a059a(0x1b1)])];};},[a22_0x38835d(0x207),a22_0x38835d(0x1ee),a22_0x38835d(0x166),a22_0x38835d(0x220),'sendTestRunEvent',a22_0x38835d(0x17a),a22_0x38835d(0x1c3),a22_0x38835d(0x1e1),a22_0x38835d(0x1eb),a22_0x38835d(0x1a4),a22_0x38835d(0x214),a22_0x38835d(0x19c),a22_0x38835d(0x1b9),'getHooksForTest',a22_0x38835d(0x1c4)],a22_0x38835d(0x206));
|