browserstack-node-sdk 1.32.8 → 1.32.10
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/templates/autoscaler/deployment.yaml +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 +5 -3
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +2 -0
- package/src/bin/integrations/constants.js +1 -0
- 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/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance-tester.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/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 a10_0x25d798=a10_0x3f1c;(function(_0x39fcd3,_0x29bfdf){const _0x5f3626=a10_0x3f1c,_0x3a2219=_0x39fcd3();while(!![]){try{const _0x4255fe=-parseInt(_0x5f3626(0xf2))/0x1*(parseInt(_0x5f3626(0xc7))/0x2)+-parseInt(_0x5f3626(0x12e))/0x3+parseInt(_0x5f3626(0xce))/0x4+parseInt(_0x5f3626(0xe8))/0x5+parseInt(_0x5f3626(0xb5))/0x6+-parseInt(_0x5f3626(0x108))/0x7*(-parseInt(_0x5f3626(0x105))/0x8)+-parseInt(_0x5f3626(0xf3))/0x9;if(_0x4255fe===_0x29bfdf)break;else _0x3a2219['push'](_0x3a2219['shift']());}catch(_0x4148c9){_0x3a2219['push'](_0x3a2219['shift']());}}}(a10_0x5710,0xbcf1c));function a10_0x5710(){const _0x18a75d=['DGiNC','MbppP','testContextOptions','resolve','handleApp','slZvR','isTestObservabilitySession','BrowserStack\x20Accessibility\x20Automation\x20Test\x20Run\x20ID:\x20','jQFxu','length','hjnvF','jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js','getHubUrl','XqYkE','reporters','debug','platforms','--config','testObservability','timeout__','./test-observability/test-details','703695iEaYMc','initialize','Getting\x20your\x20jest\x20configs\x20from\x20package.json','njFuW','launch','jest.cmd','findIndex','root_dir_path','BROWSERSTACK_TEST_ACCESSIBILITY_YML','forEach','jest','winstonLogger','runInBand','testEnvironment','Creating\x20','parallelsPerPlatform','skipping\x20test_before\x20setup\x20since\x20selenium\x20not\x20found','printBuildLink','MODULE','../../helpers/logger','TZYgb','setup','skipSessionStatus','lDdEH','/jest.setup.js','errorMessage','\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','Error\x20while\x20parsing\x20','1788696UKThNV','Modifying\x20jest\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','browserStackPercyOptions','Exception\x20in\x20stop\x20build\x20request\x20to\x20Observability\x20:\x20','true','LZxyq','GGOpo','XLLbl','info','testEnvironmentOptions','jtudf','json','turboScaleUrl','MSRcF','\x20:\x20','proxySettings','../utils/constants','jest_browserstack.config.cjs','6886lBdOka','jest.config.','join','config','child_process','accessibilityOptions','inherit','4554624RfXUwo','cjs','dhMgN','splice','shutdown','existsSync','isUndefined','SbjiF','../../helpers/accessibility-automation/helper','close','maxWorkers','setupFiles','const\x20config=','test','ZDxFP','stringify','JqJwU','setupFilesAfterEnv','/customImplements/customTestRunnerTemplate.js','push','readFileSync','runner','BROWSERSTACK_TEST_OBSERVABILITY_YML','jest_browserstack_results.json','platformCaps','env','6683285Jqsyns','unlinkSync','isAccessibilityAutomationSession','kMcLt','platform','qBjlY','idOCF','checkAccessibilityPlatformConfig','default','logLevel','58gBbsOG','23821119AZCwAt','mjs','xqWci','path','/customImplements/customTestRunner.js','../../helpers/BrowserStackSetup','Getting\x20your\x20jest\x20configs\x20from\x20',';\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','useW3C','cNyWn','testTimeout','../../helpers/helper','capabilities','../../helpers/test-observability/utils','jest_browserstack.config.js','markSDKSetupComplete','/customImplements/customEnvironment.js','QdCqB','8652296ujEatL','Unable\x20to\x20find\x20jest-circus,\x20','exports','7IRJsOT','log','exitCode','Showing\x20jest\x20logs\x20and\x20reporter\x20logs.','serial__','BSTACK_JEST_TEST_ENV','BS_A11Y_JWT','RUYtG','getErrorMessageFromResults','skipSessionName','child\x20process\x20exited\x20with\x20code\x20','/test_before.setup.js','assign','\x0amodule.exports\x20=\x20config;','afhRq','uACld','accessibility'];a10_0x5710=function(){return _0x18a75d;};return a10_0x5710();}const fs=require('fs'),path=require(a10_0x25d798(0xf6)),{spawn}=require(a10_0x25d798(0xcb)),logger=require(a10_0x25d798(0xac))[a10_0x25d798(0xa4)],{default:BrowserStackSetup}=require(a10_0x25d798(0xf8)),helper=require(a10_0x25d798(0xfe)),constants=require(a10_0x25d798(0xc5)),accessibilityHelper=require(a10_0x25d798(0xd6)),{updateTestRerunConfig}=require('./test-observability/helper'),testOpsHelper=require('../../helpers/test-observability/utils'),SessionHandler=require('../../helpers/test-observability/sessionHandler'),{getFrameworkVersion,debug}=require(a10_0x25d798(0x100)),TestDetails=require(a10_0x25d798(0x12d)),{getPercyOptions}=require('../../helpers/percy/utils'),getUserJestConfigs=(_0x40567b,_0x36d825)=>{const _0x42bda0=a10_0x25d798,_0x251bb1={'lDdEH':function(_0x4a6dc2,_0x5011a4){return _0x4a6dc2(_0x5011a4);},'xsTgm':function(_0x553c89,_0x2b38ed){return _0x553c89||_0x2b38ed;},'idOCF':'package.json','JdlKu':_0x42bda0(0x130),'afhRq':_0x42bda0(0xf4),'njFuW':_0x42bda0(0xcf),'SNulh':_0x42bda0(0xc0),'DGiNC':function(_0x3fe214,_0x34a0b4){return _0x3fe214(_0x34a0b4);}},_0x593c97=_0x36d825[_0x42bda0(0x134)](_0x24f68f=>_0x24f68f==='--config');if(!helper['isUndefined'](_0x40567b[_0x42bda0(0xca)])){logger['info'](_0x42bda0(0xf9)+_0x40567b[_0x42bda0(0xca)]);const _0x296a9b=_0x251bb1[_0x42bda0(0xb0)](require,path[_0x42bda0(0x11c)](_0x40567b['config']));return _0x36d825[_0x42bda0(0xd1)](_0x593c97,0x2),_0x251bb1['xsTgm'](_0x296a9b,{});}const _0x58dc25=_0x251bb1[_0x42bda0(0xb0)](require,path[_0x42bda0(0xc9)](process['cwd'](),_0x251bb1[_0x42bda0(0xee)]));if(_0x58dc25[_0x42bda0(0x138)])return logger['info'](_0x251bb1['JdlKu']),_0x58dc25['jest'];const _0x2ef894=['js',_0x251bb1[_0x42bda0(0x116)],_0x251bb1[_0x42bda0(0x131)],_0x251bb1['SNulh'],'ts'];for(const _0x38fa57 of _0x2ef894){const _0x3e65df=path[_0x42bda0(0xc9)](process['cwd'](),_0x42bda0(0xc8)+_0x38fa57);if(fs[_0x42bda0(0xd3)](_0x3e65df))return _0x251bb1[_0x42bda0(0x119)](require,_0x3e65df);}return{};},getSerial=(_0x1ce283,_0x5ad91e)=>{const _0x132611=a10_0x25d798,_0x29f9fe={};_0x29f9fe[_0x132611(0xbf)]=_0x132611(0xb9),_0x29f9fe[_0x132611(0xc2)]=function(_0x29c343,_0x2e384d){return _0x29c343>_0x2e384d;},_0x29f9fe['XqYkE']='false';const _0x3f8ce=_0x29f9fe;let _0xb5cf87=_0x3f8ce[_0x132611(0xbf)];return _0x3f8ce[_0x132611(0xc2)](_0x1ce283[_0x132611(0x122)],0x1)&&(!_0x5ad91e[_0x132611(0xa5)]&&(helper['isUndefined'](_0x5ad91e[_0x132611(0xd8)])||_0x3f8ce['MSRcF'](_0x5ad91e['maxWorkers'],0x1)))&&(_0xb5cf87=_0x3f8ce[_0x132611(0x126)]),_0xb5cf87;},getMaxWorkers=(_0x426e29,_0xb3a59f)=>{const _0x5d45d0=a10_0x25d798,_0x4ae7e5={'xqWci':function(_0x2df25a,_0x46fe61){return _0x2df25a(_0x46fe61);}};let _0x25a829=0x1;if(!helper['isUndefined'](_0xb3a59f[_0x5d45d0(0xa8)]))_0x25a829=_0x4ae7e5[_0x5d45d0(0xf5)](parseInt,_0xb3a59f['parallelsPerPlatform']);else!helper['isUndefined'](_0x426e29[_0x5d45d0(0xd8)])&&(_0x25a829=_0x426e29[_0x5d45d0(0xd8)]);return _0x25a829;};function a10_0x3f1c(_0xfe5086,_0x1aab84){const _0x5710a1=a10_0x5710();return a10_0x3f1c=function(_0x3f1ca0,_0x4d8917){_0x3f1ca0=_0x3f1ca0-0xa4;let _0x5e3faa=_0x5710a1[_0x3f1ca0];return _0x5e3faa;},a10_0x3f1c(_0xfe5086,_0x1aab84);}async function run(_0x4b4e4c,_0x39f630){const _0x5d7ba8=a10_0x25d798,_0x5cde5a={'slZvR':_0x5d7ba8(0x138),'MbppP':function(_0x553b3b,_0x4df116){return _0x553b3b(_0x4df116);},'TOSLp':function(_0x121fb0,_0x35855c){return _0x121fb0!=_0x35855c;},'JqJwU':_0x5d7ba8(0xb9),'MUBDU':function(_0x20e3d9,_0x8b7a7a,_0x3bdfb7){return _0x20e3d9(_0x8b7a7a,_0x3bdfb7);},'GGOpo':_0x5d7ba8(0xb6),'qBjlY':function(_0x5e6fc4,_0x32ace7){return _0x5e6fc4>_0x32ace7;},'RUYtG':function(_0x3692a5,_0x39e679,_0x23ccdd){return _0x3692a5(_0x39e679,_0x23ccdd);},'CGsBl':function(_0x3665af,_0x1dedb6){return _0x3665af*_0x1dedb6;},'eDKtc':function(_0x55767d,_0x2a1996){return _0x55767d===_0x2a1996;},'HwWQq':_0x5d7ba8(0xc6),'jQFxu':_0x5d7ba8(0x101),'dhMgN':'customImplements','TZYgb':_0x5d7ba8(0xe5),'XLLbl':_0x5d7ba8(0x124),'SbjiF':function(_0x36c354,_0x7bd5d2){return _0x36c354(_0x7bd5d2);},'hjnvF':_0x5d7ba8(0xa9),'xlOUS':_0x5d7ba8(0xf0),'uACld':_0x5d7ba8(0x10b),'ZDxFP':function(_0x2d4f44,_0x54b90b){return _0x2d4f44(_0x54b90b);},'QdCqB':function(_0xf9a5,_0x3d0223,_0x5743f3,_0xe492ed){return _0xf9a5(_0x3d0223,_0x5743f3,_0xe492ed);},'cNyWn':_0x5d7ba8(0x133),'kMcLt':_0x5d7ba8(0x12a),'LZxyq':_0x5d7ba8(0xcd),'ExxIk':_0x5d7ba8(0xd7)},_0x2c401f=new BrowserStackSetup(_0x4b4e4c,_0x5cde5a[_0x5d7ba8(0x11e)]);helper['isBrowserstackInfra']()&&(await _0x2c401f[_0x5d7ba8(0x12f)](),await helper[_0x5d7ba8(0x11d)](_0x2c401f['config']));if(!_0x2c401f[_0x5d7ba8(0xca)])return;_0x5cde5a['TOSLp'](_0x2c401f['config'][_0x5d7ba8(0x12b)],null)?process[_0x5d7ba8(0xe7)][_0x5d7ba8(0xe4)]=_0x2c401f[_0x5d7ba8(0xca)][_0x5d7ba8(0x12b)]:process[_0x5d7ba8(0xe7)][_0x5d7ba8(0xe4)]=_0x5cde5a[_0x5d7ba8(0xde)];const _0x1a0810=_0x5cde5a['MUBDU'](getUserJestConfigs,_0x4b4e4c,_0x39f630);logger[_0x5d7ba8(0xbd)](_0x5cde5a[_0x5d7ba8(0xbb)]);const _0x1f074f=Object[_0x5d7ba8(0x114)]({},_0x1a0810);_0x1f074f[_0x5d7ba8(0xbe)]=Object['assign']({},_0x1f074f[_0x5d7ba8(0xbe)],{'server':helper[_0x5d7ba8(0x125)](_0x2c401f[_0x5d7ba8(0xca)]),'environment':_0x1a0810[_0x5d7ba8(0xa6)]}),_0x1f074f['testEnvironmentOptions'][_0x5d7ba8(0xb7)]=_0x5cde5a[_0x5d7ba8(0x11a)](getPercyOptions,_0x2c401f[_0x5d7ba8(0xca)]);const _0x4a0f1b=helper[_0x5d7ba8(0xfb)](_0x2c401f[_0x5d7ba8(0xca)]),_0x269154=[];_0x5cde5a[_0x5d7ba8(0xed)](_0x2c401f['config'][_0x5d7ba8(0x129)][_0x5d7ba8(0x122)],0x0)?_0x2c401f['config'][_0x5d7ba8(0x129)][_0x5d7ba8(0x137)]((_0x2e5ec6,_0x41f993)=>{const _0x33ff4f=_0x5d7ba8;_0x4a0f1b?_0x269154[_0x33ff4f(0xe1)](helper['modifyBrowserStackW3CCaps'](_0x2c401f[_0x33ff4f(0xca)],_0x5cde5a[_0x33ff4f(0x11e)],_0x41f993)):_0x269154['push'](helper['modifyBrowserStackCaps'](_0x2c401f[_0x33ff4f(0xca)],_0x5cde5a[_0x33ff4f(0x11e)],_0x41f993));}):_0x269154[_0x5d7ba8(0xe1)]({});!helper[_0x5d7ba8(0xd4)](_0x2c401f[_0x5d7ba8(0xca)][_0x5d7ba8(0xcc)])&&(process[_0x5d7ba8(0xe7)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON[_0x5d7ba8(0xdd)](_0x2c401f[_0x5d7ba8(0xca)][_0x5d7ba8(0xcc)]));let _0x2961c1=_0x2c401f[_0x5d7ba8(0xca)][_0x5d7ba8(0x118)];_0x2961c1=_0x2961c1||accessibilityHelper[_0x5d7ba8(0xef)](_0x2c401f[_0x5d7ba8(0xca)]),process[_0x5d7ba8(0xe7)][_0x5d7ba8(0x136)]=_0x2961c1;if(_0x2961c1){const [_0x467d53,_0x511e32]=await accessibilityHelper['createAccessibilityTestRun'](_0x2c401f[_0x5d7ba8(0xca)],_0x5cde5a[_0x5d7ba8(0x11e)]);logger['info'](_0x5d7ba8(0x120)+_0x511e32),process['env'][_0x5d7ba8(0x10e)]=_0x467d53,process[_0x5d7ba8(0xe7)]['BS_A11Y_TEST_RUN_ID']=_0x511e32;}_0x1f074f[_0x5d7ba8(0xbe)][_0x5d7ba8(0xff)]=_0x269154,_0x1f074f[_0x5d7ba8(0xbe)][_0x5d7ba8(0x10c)]=_0x5cde5a[_0x5d7ba8(0x10f)](getSerial,_0x269154,_0x4b4e4c),_0x1f074f[_0x5d7ba8(0xbe)]['parallels__']=_0x5cde5a[_0x5d7ba8(0x10f)](getMaxWorkers,_0x4b4e4c,_0x2c401f[_0x5d7ba8(0xca)]),_0x1f074f['testEnvironmentOptions'][_0x5d7ba8(0xc4)]=_0x2c401f['config'][_0x5d7ba8(0xc4)],_0x1f074f[_0x5d7ba8(0xbe)][_0x5d7ba8(0x12c)]=_0x5cde5a['CGsBl'](_0x4b4e4c[_0x5d7ba8(0xfd)],0x1)||0x1388,_0x1f074f[_0x5d7ba8(0xbe)][_0x5d7ba8(0x111)]=_0x2c401f[_0x5d7ba8(0xca)]['testContextOptions'][_0x5d7ba8(0x111)],_0x1f074f[_0x5d7ba8(0xbe)][_0x5d7ba8(0xaf)]=_0x2c401f[_0x5d7ba8(0xca)][_0x5d7ba8(0x11b)][_0x5d7ba8(0xaf)],_0x1f074f[_0x5d7ba8(0xbe)]['browserStackLogLevel']=_0x2c401f[_0x5d7ba8(0xca)][_0x5d7ba8(0xf1)],_0x1f074f[_0x5d7ba8(0xbe)][_0x5d7ba8(0xc1)]=_0x2c401f['config'][_0x5d7ba8(0xc1)],_0x1f074f[_0x5d7ba8(0xbe)][_0x5d7ba8(0xe6)]=_0x2c401f[_0x5d7ba8(0xca)][_0x5d7ba8(0x129)];let _0x15d417='';_0x5cde5a['eDKtc'](helper['getPackageType'](),constants['PACKAGE_TYPE'][_0x5d7ba8(0xab)])?_0x15d417=_0x5cde5a['HwWQq']:_0x15d417=_0x5cde5a[_0x5d7ba8(0x121)];const _0x191959=_0x15d417,_0x436bfe=path['join'](__dirname,_0x5cde5a[_0x5d7ba8(0xd0)],_0x5cde5a[_0x5d7ba8(0xad)]),_0x12668d=__dirname+_0x5d7ba8(0xf7),_0x31e7bc=__dirname+_0x5d7ba8(0xe0);_0x1f074f[_0x5d7ba8(0xa6)]&&(process[_0x5d7ba8(0xe7)][_0x5d7ba8(0x10d)]=_0x1f074f[_0x5d7ba8(0xa6)]);_0x1f074f[_0x5d7ba8(0xa6)]=__dirname+_0x5d7ba8(0x103),_0x1f074f['runner']=_0x12668d,_0x1f074f[_0x5d7ba8(0xdf)]=_0x1f074f[_0x5d7ba8(0xdf)]||[],_0x1f074f['setupFilesAfterEnv'][_0x5d7ba8(0xe1)](__dirname+_0x5d7ba8(0xb1));if(testOpsHelper[_0x5d7ba8(0x11f)]()){let _0x59d370=null;try{_0x59d370=helper['requireModule'](_0x5cde5a[_0x5d7ba8(0xbc)]);}catch(_0x2ad19b){_0x5cde5a[_0x5d7ba8(0xd5)](debug,_0x5d7ba8(0x106)+_0x2ad19b);}_0x59d370&&(_0x1f074f['setupFilesAfterEnv']['push'](__dirname+'/test-observability/data-hooks.js'),_0x1f074f['testRunner']=__dirname+'/customImplements/customCircus.js');}_0x1f074f[_0x5d7ba8(0xd9)]=_0x1f074f[_0x5d7ba8(0xd9)]||[];try{helper['requireSeleniumWebdriver'](),_0x1f074f[_0x5d7ba8(0xd9)][_0x5d7ba8(0xe1)](__dirname+_0x5d7ba8(0x113));}catch{logger[_0x5d7ba8(0x128)](_0x5cde5a[_0x5d7ba8(0x123)]);}_0x1f074f['reporters']=_0x1f074f[_0x5d7ba8(0x127)]||[_0x5cde5a['xlOUS']],_0x5cde5a['MUBDU'](updateTestRerunConfig,_0x1f074f,_0x2c401f);const _0x3b906d=fs[_0x5d7ba8(0xe2)](_0x31e7bc);fs['writeFileSync'](_0x1f074f[_0x5d7ba8(0xe3)],'\x0a\x20\x20\x20\x20'+_0x3b906d+_0x5d7ba8(0xb3)+_0x2c401f['config'][_0x5d7ba8(0x129)]['length']+_0x5d7ba8(0xfa)),logger[_0x5d7ba8(0xbd)](_0x5d7ba8(0xa7)+_0x191959+'\x20with\x20browserstack\x20jest\x20configs'),fs['writeFileSync'](_0x191959,_0x5d7ba8(0xda)+JSON[_0x5d7ba8(0xdd)](_0x1f074f)+_0x5d7ba8(0x115)),logger[_0x5d7ba8(0xbd)](_0x5cde5a[_0x5d7ba8(0x117)]);const _0x35944f={};_0x35944f[_0x5d7ba8(0x135)]='',await SessionHandler[_0x5d7ba8(0x132)](Object['assign']({},_0x2c401f[_0x5d7ba8(0xca)],_0x35944f),{'frameworkName':_0x5cde5a[_0x5d7ba8(0x11e)],'frameworkVersion':_0x5cde5a[_0x5d7ba8(0xdc)](getFrameworkVersion,_0x5cde5a[_0x5d7ba8(0x11e)])});testOpsHelper[_0x5d7ba8(0x11f)]()&&TestDetails[_0x5d7ba8(0xae)]();helper['filterBrowserstackConfig']({},_0x39f630),helper[_0x5d7ba8(0x102)]();const _0x2c51b3=_0x5cde5a[_0x5d7ba8(0x104)](spawn,/^win/[_0x5d7ba8(0xdb)](process[_0x5d7ba8(0xec)])?_0x5cde5a[_0x5d7ba8(0xfc)]:_0x5cde5a['slZvR'],[_0x5cde5a[_0x5d7ba8(0xeb)],_0x191959,..._0x39f630['slice'](0x1)],{'stdio':_0x5cde5a[_0x5d7ba8(0xba)],'env':Object[_0x5d7ba8(0x114)]({},process[_0x5d7ba8(0xe7)])});_0x2c51b3['on'](_0x5cde5a['ExxIk'],async _0x2299a7=>{const _0x151961=_0x5d7ba8;process[_0x151961(0x10a)]=_0x2299a7,logger[_0x151961(0x128)](_0x151961(0x112)+_0x2299a7),logger[_0x151961(0xbd)]('Deleting\x20'+_0x191959);let _0x91fff3=null;if(fs['existsSync'](_0x436bfe)){_0x91fff3=fs[_0x151961(0xe2)](_0x436bfe);try{_0x91fff3=JSON['parse'](_0x91fff3);}catch(_0x247b93){logger[_0x151961(0x128)](_0x151961(0xb4)+_0x436bfe+',\x20'+_0x91fff3+_0x151961(0xc3)+_0x247b93);}fs[_0x151961(0xe9)](_0x436bfe);}accessibilityHelper[_0x151961(0xea)]()&&accessibilityHelper['stopAccessibilityTestRun'](_0x2c401f['config']);fs[_0x151961(0xe9)](_0x191959),fs['unlinkSync'](_0x12668d),_0x91fff3&&(_0x2c401f[_0x151961(0xb2)]=helper[_0x151961(0x110)](_0x91fff3,_0x5cde5a[_0x151961(0x11e)],_0x2c401f));if(testOpsHelper[_0x151961(0x11f)]())try{await SessionHandler['stop']();}catch(_0x14976f){console[_0x151961(0x109)](_0x14976f),_0x5cde5a[_0x151961(0x11a)](debug,_0x151961(0xb8)+_0x14976f);}testOpsHelper[_0x151961(0xaa)](),TestDetails[_0x151961(0xd2)](),await helper['finalExecution'](_0x2c401f);});}module[a10_0x25d798(0x107)]=run;
|
|
2
|
+
'use strict';function a12_0x2a27(_0x147d1e,_0x4320f5){const _0x34827c=a12_0x3482();return a12_0x2a27=function(_0x2a270d,_0x41183d){_0x2a270d=_0x2a270d-0xd4;let _0x16e474=_0x34827c[_0x2a270d];return _0x16e474;},a12_0x2a27(_0x147d1e,_0x4320f5);}const a12_0x1a6831=a12_0x2a27;(function(_0x2d34e1,_0x17905b){const _0x13318e=a12_0x2a27,_0x3bbe1d=_0x2d34e1();while(!![]){try{const _0x5620c8=-parseInt(_0x13318e(0x154))/0x1+-parseInt(_0x13318e(0x155))/0x2+parseInt(_0x13318e(0xf5))/0x3*(parseInt(_0x13318e(0xff))/0x4)+parseInt(_0x13318e(0x11c))/0x5+parseInt(_0x13318e(0x13a))/0x6*(parseInt(_0x13318e(0x127))/0x7)+-parseInt(_0x13318e(0x123))/0x8+parseInt(_0x13318e(0xd5))/0x9;if(_0x5620c8===_0x17905b)break;else _0x3bbe1d['push'](_0x3bbe1d['shift']());}catch(_0x586590){_0x3bbe1d['push'](_0x3bbe1d['shift']());}}}(a12_0x3482,0xb86ec));const fs=require('fs'),path=require('path'),{spawn}=require(a12_0x1a6831(0xec)),logger=require(a12_0x1a6831(0x104))[a12_0x1a6831(0x115)],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require('../../helpers/helper'),constants=require(a12_0x1a6831(0xdb)),accessibilityHelper=require('../../helpers/accessibility-automation/helper'),{updateTestRerunConfig}=require('./test-observability/helper'),testOpsHelper=require(a12_0x1a6831(0x138)),SessionHandler=require(a12_0x1a6831(0x109)),{getFrameworkVersion,debug}=require(a12_0x1a6831(0x138)),TestDetails=require('./test-observability/test-details'),{getPercyOptions}=require(a12_0x1a6831(0x145)),getUserJestConfigs=(_0xe84d50,_0x56652f)=>{const _0x178c47=a12_0x1a6831,_0xe29b06={'zvxKh':function(_0x47a7e3,_0x148ccf){return _0x47a7e3(_0x148ccf);},'LtVQM':function(_0x4fdc2c,_0x19cfe4){return _0x4fdc2c||_0x19cfe4;},'SwUsr':_0x178c47(0x124),'jiObZ':'Getting\x20your\x20jest\x20configs\x20from\x20package.json','AJoQA':'mjs','MeCKY':_0x178c47(0x169),'LMHJy':_0x178c47(0xd4)},_0x1d73a9=_0x56652f[_0x178c47(0x102)](_0x56d75a=>_0x56d75a===_0x178c47(0xd9));if(!helper[_0x178c47(0x114)](_0xe84d50[_0x178c47(0x107)])){logger[_0x178c47(0xeb)](_0x178c47(0x15c)+_0xe84d50[_0x178c47(0x107)]);const _0x182900=_0xe29b06[_0x178c47(0xfb)](require,path[_0x178c47(0x157)](_0xe84d50[_0x178c47(0x107)]));return _0x56652f[_0x178c47(0x131)](_0x1d73a9,0x2),_0xe29b06[_0x178c47(0x16e)](_0x182900,{});}const _0xca2da1=_0xe29b06[_0x178c47(0xfb)](require,path[_0x178c47(0x133)](process[_0x178c47(0x151)](),_0xe29b06[_0x178c47(0x11e)]));if(_0xca2da1[_0x178c47(0x12e)])return logger[_0x178c47(0xeb)](_0xe29b06[_0x178c47(0x140)]),_0xca2da1['jest'];const _0x59da37=['js',_0xe29b06['AJoQA'],_0xe29b06[_0x178c47(0x129)],_0xe29b06[_0x178c47(0x10c)],'ts'];for(const _0x23705e of _0x59da37){const _0x5241bf=path[_0x178c47(0x133)](process[_0x178c47(0x151)](),_0x178c47(0xe9)+_0x23705e);if(fs[_0x178c47(0x171)](_0x5241bf))return _0xe29b06['zvxKh'](require,_0x5241bf);}return{};},getSerial=(_0x2e1f6c,_0x35c069)=>{const _0x5998b6=a12_0x1a6831,_0x16455c={};_0x16455c[_0x5998b6(0xde)]=_0x5998b6(0xe8),_0x16455c['NtaBt']=function(_0x297d70,_0x3c62c4){return _0x297d70>_0x3c62c4;},_0x16455c[_0x5998b6(0x12c)]=_0x5998b6(0xe4);const _0x13601a=_0x16455c;let _0x167093=_0x13601a[_0x5998b6(0xde)];return _0x13601a[_0x5998b6(0x11a)](_0x2e1f6c[_0x5998b6(0xdd)],0x1)&&(!_0x35c069[_0x5998b6(0xe7)]&&(helper[_0x5998b6(0x114)](_0x35c069[_0x5998b6(0x113)])||_0x13601a[_0x5998b6(0x11a)](_0x35c069[_0x5998b6(0x113)],0x1)))&&(_0x167093=_0x13601a[_0x5998b6(0x12c)]),_0x167093;},getMaxWorkers=(_0x365b16,_0x35bfa6)=>{const _0x2f434f=a12_0x1a6831,_0xdf5d5d={'iVHsj':function(_0x1e2f02,_0x396969){return _0x1e2f02(_0x396969);}};let _0x47ae5e=0x1;if(!helper['isUndefined'](_0x35bfa6[_0x2f434f(0x121)]))_0x47ae5e=_0xdf5d5d[_0x2f434f(0xe2)](parseInt,_0x35bfa6[_0x2f434f(0x121)]);else!helper[_0x2f434f(0x114)](_0x365b16[_0x2f434f(0x113)])&&(_0x47ae5e=_0x365b16['maxWorkers']);return _0x47ae5e;};async function run(_0x5f0a98,_0x355100){const _0xafaf70=a12_0x1a6831,_0x2b3e39={'gerpJ':_0xafaf70(0x12e),'KszlD':function(_0x45b12f,_0x5d5ba6){return _0x45b12f(_0x5d5ba6);},'kLQLw':function(_0x2efc89,_0xfae52b){return _0x2efc89!=_0xfae52b;},'edABY':'true','NOUMK':function(_0x59e64d,_0xdfaeb0,_0x173edf){return _0x59e64d(_0xdfaeb0,_0x173edf);},'RpRXf':_0xafaf70(0x161),'qUPCm':function(_0x5386a5,_0x11c782){return _0x5386a5>_0x11c782;},'qbYcY':function(_0x3fda61,_0x3539c7,_0x241898){return _0x3fda61(_0x3539c7,_0x241898);},'UeBou':function(_0x150b0c,_0x5267db){return _0x150b0c*_0x5267db;},'zhoiq':function(_0x4a88af,_0xe1edc){return _0x4a88af===_0xe1edc;},'aKsUd':_0xafaf70(0x100),'cjZTg':_0xafaf70(0x137),'aalbi':'customImplements','AjNEY':'jest_browserstack_results.json','BYaTZ':_0xafaf70(0xf4),'fsaEQ':_0xafaf70(0x13b),'bDrmZ':'default','UUiIY':function(_0x1ec66f,_0x23a3c1,_0x105f68){return _0x1ec66f(_0x23a3c1,_0x105f68);},'klUpq':'Showing\x20jest\x20logs\x20and\x20reporter\x20logs.','SBEdp':function(_0x36fc12,_0x28d163){return _0x36fc12(_0x28d163);},'cpggY':function(_0x251a52,_0x11c53d,_0x3e345b,_0x49bb00){return _0x251a52(_0x11c53d,_0x3e345b,_0x49bb00);},'resKJ':_0xafaf70(0x168),'BREhl':_0xafaf70(0xd9),'KiWXe':_0xafaf70(0xe6),'azBZn':_0xafaf70(0x12f)},_0x20fc52=new BrowserStackSetup(_0x5f0a98,_0x2b3e39[_0xafaf70(0x14f)]);helper['isBrowserstackInfra']()&&(await _0x20fc52[_0xafaf70(0x16a)](),await helper['handleApp'](_0x20fc52[_0xafaf70(0x107)]));if(!_0x20fc52[_0xafaf70(0x107)])return;_0x2b3e39['kLQLw'](_0x20fc52[_0xafaf70(0x107)]['testObservability'],null)?process['env']['BROWSERSTACK_TEST_OBSERVABILITY_YML']=_0x20fc52[_0xafaf70(0x107)][_0xafaf70(0x16c)]:process['env'][_0xafaf70(0x159)]=_0x2b3e39[_0xafaf70(0x103)];const _0x431c23=_0x2b3e39[_0xafaf70(0x13f)](getUserJestConfigs,_0x5f0a98,_0x355100);logger[_0xafaf70(0xeb)](_0x2b3e39[_0xafaf70(0x13e)]);const _0x2be2f4=Object[_0xafaf70(0x12a)]({},_0x431c23);_0x2be2f4[_0xafaf70(0x156)]=Object[_0xafaf70(0x12a)]({},_0x2be2f4[_0xafaf70(0x156)],{'server':helper[_0xafaf70(0x14b)](_0x20fc52['config']),'environment':_0x431c23[_0xafaf70(0x110)]}),_0x2be2f4[_0xafaf70(0x156)][_0xafaf70(0x149)]=_0x2b3e39['KszlD'](getPercyOptions,_0x20fc52[_0xafaf70(0x107)]);const _0x289913=helper[_0xafaf70(0xef)](_0x20fc52[_0xafaf70(0x107)]),_0x1c6ea0=[];_0x2b3e39[_0xafaf70(0x15f)](_0x20fc52[_0xafaf70(0x107)][_0xafaf70(0x143)]['length'],0x0)?_0x20fc52[_0xafaf70(0x107)]['platforms'][_0xafaf70(0x112)]((_0x274477,_0x4ed593)=>{const _0x4bfd50=_0xafaf70;_0x289913?_0x1c6ea0[_0x4bfd50(0x142)](helper['modifyBrowserStackW3CCaps'](_0x20fc52[_0x4bfd50(0x107)],_0x2b3e39[_0x4bfd50(0x14f)],_0x4ed593)):_0x1c6ea0[_0x4bfd50(0x142)](helper[_0x4bfd50(0xf7)](_0x20fc52[_0x4bfd50(0x107)],_0x2b3e39[_0x4bfd50(0x14f)],_0x4ed593));}):_0x1c6ea0[_0xafaf70(0x142)]({});!helper[_0xafaf70(0x114)](_0x20fc52[_0xafaf70(0x107)][_0xafaf70(0x15a)])&&(process[_0xafaf70(0xe3)][_0xafaf70(0xfc)]=JSON[_0xafaf70(0x136)](_0x20fc52[_0xafaf70(0x107)]['accessibilityOptions']));let _0x427b45=_0x20fc52[_0xafaf70(0x107)][_0xafaf70(0x11d)];_0x427b45=_0x427b45||accessibilityHelper[_0xafaf70(0x15e)](_0x20fc52['config']),process[_0xafaf70(0xe3)][_0xafaf70(0x118)]=_0x427b45;if(_0x427b45){const [_0x15af53,_0x4700e0]=await accessibilityHelper[_0xafaf70(0x164)](_0x20fc52[_0xafaf70(0x107)],_0x2b3e39[_0xafaf70(0x14f)]);logger[_0xafaf70(0xeb)](_0xafaf70(0x165)+_0x4700e0),process[_0xafaf70(0xe3)][_0xafaf70(0x111)]=_0x15af53,process[_0xafaf70(0xe3)][_0xafaf70(0x13d)]=_0x4700e0;}_0x2be2f4[_0xafaf70(0x156)][_0xafaf70(0x128)]=_0x1c6ea0,_0x2be2f4['testEnvironmentOptions'][_0xafaf70(0x167)]=_0x2b3e39[_0xafaf70(0x13f)](getSerial,_0x1c6ea0,_0x5f0a98),_0x2be2f4['testEnvironmentOptions'][_0xafaf70(0xfe)]=_0x2b3e39[_0xafaf70(0x12d)](getMaxWorkers,_0x5f0a98,_0x20fc52[_0xafaf70(0x107)]),_0x2be2f4[_0xafaf70(0x156)][_0xafaf70(0x14d)]=_0x20fc52[_0xafaf70(0x107)][_0xafaf70(0x14d)],_0x2be2f4['testEnvironmentOptions'][_0xafaf70(0x147)]=_0x2b3e39[_0xafaf70(0x12b)](_0x5f0a98[_0xafaf70(0x153)],0x1)||0x1388,_0x2be2f4['testEnvironmentOptions'][_0xafaf70(0x170)]=_0x20fc52[_0xafaf70(0x107)]['testContextOptions'][_0xafaf70(0x170)],_0x2be2f4['testEnvironmentOptions'][_0xafaf70(0x148)]=_0x20fc52[_0xafaf70(0x107)][_0xafaf70(0xee)][_0xafaf70(0x148)],_0x2be2f4['testEnvironmentOptions'][_0xafaf70(0x130)]=_0x20fc52['config']['logLevel'],_0x2be2f4['testEnvironmentOptions'][_0xafaf70(0xf0)]=_0x20fc52[_0xafaf70(0x107)]['turboScaleUrl'],_0x2be2f4[_0xafaf70(0x156)]['platformCaps']=_0x20fc52[_0xafaf70(0x107)][_0xafaf70(0x143)];let _0x5a3a3a='';_0x2b3e39[_0xafaf70(0x163)](helper[_0xafaf70(0x105)](),constants[_0xafaf70(0xf2)][_0xafaf70(0xd7)])?_0x5a3a3a=_0x2b3e39[_0xafaf70(0xf1)]:_0x5a3a3a=_0x2b3e39[_0xafaf70(0x122)];const _0x4ccc1c=_0x5a3a3a,_0x39589e=path[_0xafaf70(0x133)](__dirname,_0x2b3e39[_0xafaf70(0xdf)],_0x2b3e39[_0xafaf70(0x15d)]),_0x1478d8=__dirname+_0xafaf70(0x144),_0x2449d7=__dirname+_0xafaf70(0x106);_0x2be2f4['testEnvironment']&&(process['env'][_0xafaf70(0xda)]=_0x2be2f4['testEnvironment']);_0x2be2f4[_0xafaf70(0x110)]=__dirname+_0xafaf70(0x13c),_0x2be2f4[_0xafaf70(0x117)]=_0x1478d8,_0x2be2f4[_0xafaf70(0x11b)]=_0x2be2f4['setupFilesAfterEnv']||[],_0x2be2f4[_0xafaf70(0x11b)][_0xafaf70(0x142)](__dirname+'/jest.setup.js');if(testOpsHelper[_0xafaf70(0xfd)]()){let _0x52695f=null;try{_0x52695f=helper[_0xafaf70(0x108)](_0x2b3e39[_0xafaf70(0x120)]);}catch(_0x490fd7){_0x2b3e39[_0xafaf70(0x146)](debug,'Unable\x20to\x20find\x20jest-circus,\x20'+_0x490fd7);}_0x52695f&&(_0x2be2f4[_0xafaf70(0x11b)][_0xafaf70(0x142)](__dirname+_0xafaf70(0x166)),_0x2be2f4[_0xafaf70(0x14c)]=__dirname+_0xafaf70(0x141));}_0x2be2f4[_0xafaf70(0x126)]=_0x2be2f4[_0xafaf70(0x126)]||[];try{helper['requireSeleniumWebdriver'](),_0x2be2f4[_0xafaf70(0x126)][_0xafaf70(0x142)](__dirname+_0xafaf70(0x116));}catch{logger[_0xafaf70(0x10a)](_0x2b3e39[_0xafaf70(0x11f)]);}_0x2be2f4[_0xafaf70(0xd6)]=_0x2be2f4['reporters']||[_0x2b3e39[_0xafaf70(0x16d)]],_0x2b3e39[_0xafaf70(0xed)](updateTestRerunConfig,_0x2be2f4,_0x20fc52);const _0xecea4f=fs['readFileSync'](_0x2449d7);fs[_0xafaf70(0xf6)](_0x2be2f4[_0xafaf70(0x117)],_0xafaf70(0x135)+_0xecea4f+_0xafaf70(0x14e)+_0x20fc52[_0xafaf70(0x107)][_0xafaf70(0x143)][_0xafaf70(0xdd)]+_0xafaf70(0x15b)),logger['info'](_0xafaf70(0xd8)+_0x4ccc1c+_0xafaf70(0xe0)),fs[_0xafaf70(0xf6)](_0x4ccc1c,'const\x20config='+JSON['stringify'](_0x2be2f4)+_0xafaf70(0x158)),logger['info'](_0x2b3e39[_0xafaf70(0x10e)]);const _0x1d8279={};_0x1d8279[_0xafaf70(0xea)]='',await SessionHandler[_0xafaf70(0x101)](Object[_0xafaf70(0x12a)]({},_0x20fc52[_0xafaf70(0x107)],_0x1d8279),{'frameworkName':_0x2b3e39['gerpJ'],'frameworkVersion':_0x2b3e39['SBEdp'](getFrameworkVersion,_0x2b3e39[_0xafaf70(0x14f)])});testOpsHelper[_0xafaf70(0xfd)]()&&TestDetails[_0xafaf70(0x132)]();helper[_0xafaf70(0x152)]({},_0x355100),helper[_0xafaf70(0xfa)]();const _0x1d7993=_0x2b3e39[_0xafaf70(0x10b)](spawn,/^win/['test'](process['platform'])?_0x2b3e39[_0xafaf70(0x139)]:_0x2b3e39[_0xafaf70(0x14f)],[_0x2b3e39[_0xafaf70(0x160)],_0x4ccc1c,..._0x355100[_0xafaf70(0x162)](0x1)],{'stdio':_0x2b3e39[_0xafaf70(0x16b)],'env':Object[_0xafaf70(0x12a)]({},process[_0xafaf70(0xe3)])});_0x1d7993['on'](_0x2b3e39[_0xafaf70(0x10f)],async _0x33937d=>{const _0x3b2155=_0xafaf70;process[_0x3b2155(0x134)]=_0x33937d,logger['debug']('child\x20process\x20exited\x20with\x20code\x20'+_0x33937d),logger[_0x3b2155(0xeb)]('Deleting\x20'+_0x4ccc1c);let _0xccedc=null;if(fs[_0x3b2155(0x171)](_0x39589e)){_0xccedc=fs[_0x3b2155(0x10d)](_0x39589e);try{_0xccedc=JSON[_0x3b2155(0x119)](_0xccedc);}catch(_0x241234){logger[_0x3b2155(0x10a)](_0x3b2155(0x16f)+_0x39589e+',\x20'+_0xccedc+_0x3b2155(0xe5)+_0x241234);}fs[_0x3b2155(0x14a)](_0x39589e);}accessibilityHelper[_0x3b2155(0xf9)]()&&accessibilityHelper['stopAccessibilityTestRun'](_0x20fc52[_0x3b2155(0x107)]);fs['unlinkSync'](_0x4ccc1c),fs[_0x3b2155(0x14a)](_0x1478d8),_0xccedc&&(_0x20fc52[_0x3b2155(0x125)]=helper[_0x3b2155(0x150)](_0xccedc,_0x2b3e39[_0x3b2155(0x14f)],_0x20fc52));if(testOpsHelper[_0x3b2155(0xfd)]())try{await SessionHandler[_0x3b2155(0xf3)]();}catch(_0x18c8dc){console[_0x3b2155(0xdc)](_0x18c8dc),_0x2b3e39[_0x3b2155(0x146)](debug,'Exception\x20in\x20stop\x20build\x20request\x20to\x20Observability\x20:\x20'+_0x18c8dc);}testOpsHelper['printBuildLink'](),TestDetails[_0x3b2155(0xf8)](),await helper['finalExecution'](_0x20fc52);});}module[a12_0x1a6831(0xe1)]=run;function a12_0x3482(){const _0x17dc73=['env','false','\x20:\x20','inherit','runInBand','true','jest.config.','root_dir_path','info','child_process','UUiIY','testContextOptions','useW3C','turboScaleUrl','aKsUd','PACKAGE_TYPE','stop','jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js','856257MtvgJi','writeFileSync','modifyBrowserStackCaps','shutdown','isAccessibilityAutomationSession','markSDKSetupComplete','zvxKh','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','isTestObservabilitySession','parallels__','12woMWiw','jest_browserstack.config.cjs','launch','findIndex','edABY','../../helpers/logger','getPackageType','/customImplements/customTestRunnerTemplate.js','config','requireModule','../../helpers/test-observability/sessionHandler','debug','cpggY','LMHJy','readFileSync','klUpq','azBZn','testEnvironment','BS_A11Y_JWT','forEach','maxWorkers','isUndefined','winstonLogger','/test_before.setup.js','runner','BROWSERSTACK_TEST_ACCESSIBILITY_YML','parse','NtaBt','setupFilesAfterEnv','2632540OgexiL','accessibility','SwUsr','fsaEQ','BYaTZ','parallelsPerPlatform','cjZTg','8927624VUEFnv','package.json','errorMessage','setupFiles','183967PUDRIN','capabilities','MeCKY','assign','UeBou','nLEkf','qbYcY','jest','close','browserStackLogLevel','splice','setup','join','exitCode','\x0a\x20\x20\x20\x20','stringify','jest_browserstack.config.js','../../helpers/test-observability/utils','resKJ','66xoNRqu','skipping\x20test_before\x20setup\x20since\x20selenium\x20not\x20found','/customImplements/customEnvironment.js','BS_A11Y_TEST_RUN_ID','RpRXf','NOUMK','jiObZ','/customImplements/customCircus.js','push','platforms','/customImplements/customTestRunner.js','../../helpers/percy/utils','KszlD','timeout__','skipSessionStatus','browserStackPercyOptions','unlinkSync','getHubUrl','testRunner','proxySettings','\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','gerpJ','getErrorMessageFromResults','cwd','filterBrowserstackConfig','testTimeout','1477208VeuUpo','439436zidrfu','testEnvironmentOptions','resolve','\x0amodule.exports\x20=\x20config;','BROWSERSTACK_TEST_OBSERVABILITY_YML','accessibilityOptions',';\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','Getting\x20your\x20jest\x20configs\x20from\x20','AjNEY','checkAccessibilityPlatformConfig','qUPCm','BREhl','Modifying\x20jest\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','slice','zhoiq','createAccessibilityTestRun','BrowserStack\x20Accessibility\x20Automation\x20Test\x20Run\x20ID:\x20','/test-observability/data-hooks.js','serial__','jest.cmd','cjs','initialize','KiWXe','testObservability','bDrmZ','LtVQM','Error\x20while\x20parsing\x20','skipSessionName','existsSync','json','17068131QeSxcs','reporters','MODULE','Creating\x20','--config','BSTACK_JEST_TEST_ENV','../utils/constants','log','length','HrUas','aalbi','\x20with\x20browserstack\x20jest\x20configs','exports','iVHsj'];a12_0x3482=function(){return _0x17dc73;};return a12_0x3482();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a13_0x34c9ea=a13_0x5d20;(function(_0x42be64,_0x42c1da){const _0x572860=a13_0x5d20,_0x4c7945=_0x42be64();while(!![]){try{const _0x433cf2=-parseInt(_0x572860(0x1a3))/0x1+-parseInt(_0x572860(0x1a4))/0x2*(parseInt(_0x572860(0x1aa))/0x3)+parseInt(_0x572860(0x1ab))/0x4+-parseInt(_0x572860(0x1a5))/0x5+-parseInt(_0x572860(0x1b0))/0x6*(parseInt(_0x572860(0x1a2))/0x7)+-parseInt(_0x572860(0x1a6))/0x8*(parseInt(_0x572860(0x1b6))/0x9)+-parseInt(_0x572860(0x1ad))/0xa*(-parseInt(_0x572860(0x1a8))/0xb);if(_0x433cf2===_0x42c1da)break;else _0x4c7945['push'](_0x4c7945['shift']());}catch(_0xd35a4c){_0x4c7945['push'](_0x4c7945['shift']());}}}(a13_0xc154,0x74a1c));const path=require(a13_0x34c9ea(0x1b4)),{requireModule}=require('../../../helpers/helper');function a13_0xc154(){const _0x469d57=['join','initRequireModule','2181018XBYXKS','function','jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js','requireInternalModule','path','/jestAdapterInit','7455222qtlSIu','14tDDDGP','458492sRVuSO','521368edEvLb','3377390sVPlSy','8xCognV','AsoUw','17053267eExorS','includes','6faSeWd','2351328dOCEfu','NbHMn','20zgCJYT'];a13_0xc154=function(){return _0x469d57;};return a13_0xc154();}let initJestAdapter=requireModule(a13_0x34c9ea(0x1b2));initJestAdapter=typeof initJestAdapter===a13_0x34c9ea(0x1b1)?initJestAdapter:initJestAdapter['default'];function a13_0x5d20(_0x3471e1,_0x2e18db){const _0xc1541d=a13_0xc154();return a13_0x5d20=function(_0x5d2029,_0x5667c4){_0x5d2029=_0x5d2029-0x1a2;let _0x178a62=_0xc1541d[_0x5d2029];return _0x178a62;},a13_0x5d20(_0x3471e1,_0x2e18db);}const FRAMEWORK_INITIALIZER=path[a13_0x34c9ea(0x1ae)](__dirname,'./customJestAdapterInit.js');module['exports']=(..._0x51e712)=>{const _0x1b9e4c=a13_0x34c9ea,_0x12b809={'NbHMn':_0x1b9e4c(0x1b5),'AsoUw':function(_0x5a158d,_0x27a1aa){return _0x5a158d===_0x27a1aa;},'ROFFP':function(_0x4738df,..._0x3287a2){return _0x4738df(..._0x3287a2);}};return _0x51e712[0x3]['initRequireModule']=_0x51e712[0x3][_0x1b9e4c(0x1b3)],_0x51e712[0x3][_0x1b9e4c(0x1b3)]=(..._0x2e1412)=>{const _0x5ebd65=_0x1b9e4c;if(_0x2e1412[0x0]&&_0x2e1412[0x0][_0x5ebd65(0x1a9)](_0x12b809[_0x5ebd65(0x1ac)])&&_0x12b809[_0x5ebd65(0x1a7)](_0x2e1412[0x1],undefined))return _0x51e712[0x3][_0x5ebd65(0x1af)](FRAMEWORK_INITIALIZER);return _0x51e712[0x3][_0x5ebd65(0x1af)](..._0x2e1412);},_0x12b809['ROFFP'](initJestAdapter,..._0x51e712);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a14_0x1d9f9a=a14_0x22fd;function a14_0x2004(){const _0x38d980=['BSTACK_DELTA','iFfyk','vzxQN','../test-observability/obsReporter','8XYNYVU','PDxkb','env','getTestEnvironment','lnWfB','quit','configuration','2163842ChFKFj','1XJjXph','resolveTestEnvironment','CsWUO','node','38395TpTXpv','skipSessionName','shutdown','../../utils/constants','bHGUr','browserStackPercyOptions','gcppe','IUMch','percy','Builder','getInstance','test_start','sessionNameProvided','testEnvironmentOptions','1|2|3|8|5|9|4|7|0|6','CdYxv','teardown','ASFeN','__platformCaps','BSTACK_JEST_TEST_ENV','skipSessionStatus','1879032snxPhm','ATtFu','timeout__','LCEgJ','builder','../../../helpers/test-observability/requestQueueHandler','platformCaps','percyCaptureMode','9599910YbrinA','global','cleanupDrivers','projectConfig','__esModule','__drivers','cleanup','PJZOu','capability','MEDja','hOgQu','iXfwC','exports','kizGP','registerListeners','ytUPk','3333798PpboUI','test','3540698UsXAwU','gQloE','browserStackGlobals','modifyCommand','split','default','efdTp','__skipSessionStatus','__timeout','4|0|3|2|1','browserstackPlatformIndex','browserstackPercyBestPlatform','jest-config','isBrowserstackInfra','__driversArray','../../../index','__webdriver','nestedKeyValue','258isGfcC','requireModule','12654333btsUtj','setup','browserstackAgentV2','cwd'];a14_0x2004=function(){return _0x38d980;};return a14_0x2004();}(function(_0x512970,_0x50bc04){const _0x1a714f=a14_0x22fd,_0x533885=_0x512970();while(!![]){try{const _0x9987fc=-parseInt(_0x1a714f(0x11b))/0x1*(parseInt(_0x1a714f(0x11a))/0x2)+parseInt(_0x1a714f(0xf5))/0x3+-parseInt(_0x1a714f(0xdd))/0x4+parseInt(_0x1a714f(0x11f))/0x5*(parseInt(_0x1a714f(0x109))/0x6)+parseInt(_0x1a714f(0xf7))/0x7*(parseInt(_0x1a714f(0x113))/0x8)+parseInt(_0x1a714f(0x10b))/0x9+-parseInt(_0x1a714f(0xe5))/0xa;if(_0x9987fc===_0x50bc04)break;else _0x533885['push'](_0x533885['shift']());}catch(_0x3d7180){_0x533885['push'](_0x533885['shift']());}}}(a14_0x2004,0xcd7ac));const helper=require('../../../helpers/helper'),constants=require(a14_0x1d9f9a(0xcb)),{isTestObservabilitySession}=require('../../../helpers/test-observability/utils'),RequestQueueHandler=require(a14_0x1d9f9a(0xe2)),ObservabilityReporter=require(a14_0x1d9f9a(0x112)),getTestEnvironment=((()=>{const _0x551797=a14_0x1d9f9a,_0x33d310={};_0x33d310[_0x551797(0x110)]='jest-resolve',_0x33d310[_0x551797(0x11d)]=_0x551797(0x103);const _0x42d0d7=_0x33d310;try{const _0x9f0016=helper[_0x551797(0x10a)](_0x42d0d7['iFfyk']);if(_0x9f0016['resolveTestEnvironment'])return _0x9f0016[_0x551797(0x11c)];const _0x161254=helper[_0x551797(0x10a)](_0x42d0d7['CsWUO']);if(_0x161254[_0x551797(0x116)])return _0x161254['getTestEnvironment'];}catch{return()=>null;}return()=>null;})()),_jestUserEnvironment=((()=>{const _0x2b746f=a14_0x1d9f9a,_0x1e0383={'efdTp':function(_0x245abb,_0x5d2076){return _0x245abb(_0x5d2076);},'vzxQN':_0x2b746f(0x11e),'gQloE':'jest-environment-node','bHGUr':function(_0x1deeae,_0xea1de4){return _0x1deeae(_0xea1de4);}},_0x1d6f37=_0x1e0383[_0x2b746f(0xfd)](getTestEnvironment,{'rootDir':process[_0x2b746f(0x10e)](),'testEnvironment':process[_0x2b746f(0x115)][_0x2b746f(0xdb)]||_0x1e0383[_0x2b746f(0x111)]});if(!_0x1d6f37)return _0x1e0383[_0x2b746f(0xfd)](_interopRequireDefault,helper[_0x2b746f(0x10a)](_0x1e0383[_0x2b746f(0xf8)]));return _0x1e0383[_0x2b746f(0xcc)](_interopRequireDefault,helper[_0x2b746f(0x10a)](_0x1d6f37));})()),_seleniumWebdriver2=((()=>{const _0x41681b=a14_0x1d9f9a,_0xf19750={'CdYxv':function(_0x43e068,_0x11c125){return _0x43e068(_0x11c125);}};try{const _0x1b7dc1=helper['requireSeleniumWebdriver']();return helper[_0x41681b(0xfa)](),_0xf19750[_0x41681b(0xd7)](_interopRequireDefault,_0x1b7dc1);}catch{return null;}})());function _interopRequireDefault(_0x29aadd){const _0x9a898e=a14_0x1d9f9a;return _0x29aadd&&_0x29aadd[_0x9a898e(0xe9)]?_0x29aadd:{'default':_0x29aadd};}function a14_0x22fd(_0x4ab84e,_0x24576e){const _0x2004a9=a14_0x2004();return a14_0x22fd=function(_0x22fd9b,_0x24f440){_0x22fd9b=_0x22fd9b-0xc9;let _0x1de63e=_0x2004a9[_0x22fd9b];return _0x1de63e;},a14_0x22fd(_0x4ab84e,_0x24576e);}const originalBuilder=_seleniumWebdriver2?_seleniumWebdriver2[a14_0x1d9f9a(0xfc)][a14_0x1d9f9a(0xd1)]:null;class CustomEnvironment extends _jestUserEnvironment[a14_0x1d9f9a(0xfc)]{constructor(_0x209214){const _0xe8851c=a14_0x1d9f9a,_0x1b2457={'ytUPk':'quit','fvHuc':_0xe8851c(0x100),'ATtFu':function(_0x45a03a,_0x1e614e){return _0x45a03a+_0x1e614e;},'IUMch':function(_0x2d90d6){return _0x2d90d6();},'iXfwC':_0xe8851c(0xd6),'PDxkb':function(_0x2e6772,_0xc04802){return _0x2e6772(_0xc04802);},'lnWfB':_0xe8851c(0x106),'LCEgJ':_0xe8851c(0xe3),'kizGP':_0xe8851c(0xd5),'gcppe':_0xe8851c(0xcd),'ASFeN':'percy','oTfkX':_0xe8851c(0x102),'MEDja':_0xe8851c(0xe4)};super(_0x209214),this[_0xe8851c(0xe6)][_0xe8851c(0xff)]=0x0,this[_0xe8851c(0x119)]={};!_0x209214['testEnvironmentOptions']&&(_0x209214[_0xe8851c(0xd5)]={});if(helper[_0xe8851c(0x104)]()){const _0x273757=_0x1b2457['fvHuc'][_0xe8851c(0xfb)]('|');let _0x136715=0x0;while(!![]){switch(_0x273757[_0x136715++]){case'0':this[_0xe8851c(0xe1)]=new _seleniumWebdriver2['default'][(_0xe8851c(0xd1))]();continue;case'1':this['global']['__timeout']=_0x1b2457[_0xe8851c(0xde)](this[_0xe8851c(0x119)][_0xe8851c(0xdf)],constants[_0xe8851c(0x10f)]);continue;case'2':this[_0xe8851c(0xed)]=_0x209214['projectConfig']?_0x209214['projectConfig'][_0xe8851c(0xed)]:_0x209214[_0xe8851c(0xed)];continue;case'3':this['configuration']=_0x209214[_0xe8851c(0xd5)];continue;case'4':_0x209214[_0xe8851c(0xd5)]=_0x209214[_0xe8851c(0xe8)]?_0x209214['projectConfig'][_0xe8851c(0xd5)]:_0x209214[_0xe8851c(0xd5)];continue;}break;}}if(_0x1b2457[_0xe8851c(0xcf)](isTestObservabilitySession)){const _0x57d61c=new ObservabilityReporter();_0x57d61c[_0xe8851c(0xf3)]();}this[_0xe8851c(0xe6)][_0xe8851c(0xf9)]={};if(_seleniumWebdriver2){const _0x2d2dda=_0x1b2457[_0xe8851c(0xf0)][_0xe8851c(0xfb)]('|');let _0x49b700=0x0;while(!![]){switch(_0x2d2dda[_0x49b700++]){case'0':this['global'][_0xe8851c(0xfe)]=helper['isTrue'](this[_0xe8851c(0x119)][_0xe8851c(0xdc)]);continue;case'1':this[_0xe8851c(0xe6)][_0xe8851c(0xea)]=[];continue;case'2':this[_0xe8851c(0xe6)][_0xe8851c(0x107)]=_0x1b2457[_0xe8851c(0x114)](require,_0x1b2457[_0xe8851c(0x117)])[_0xe8851c(0x10d)]({...this[_0xe8851c(0x119)],'capability':this['capability']||{}},this,_0x1b2457['IUMch'](isTestObservabilitySession));continue;case'3':this[_0xe8851c(0xe6)][_0xe8851c(0x101)]=(_0x209214['projectConfig']?_0x209214[_0xe8851c(0xe8)][_0xe8851c(0x101)]:_0x209214[_0xe8851c(0x101)])||0x0;continue;case'4':this['global'][_0xe8851c(0xda)]=helper[_0xe8851c(0x108)](this[_0xe8851c(0x119)],[_0x1b2457[_0xe8851c(0xe0)],this[_0xe8851c(0xe6)][_0xe8851c(0x101)]])||{};continue;case'5':this[_0xe8851c(0xe6)][_0xe8851c(0xd0)]=helper['nestedKeyValue'](_0x209214,[_0x1b2457[_0xe8851c(0xf2)],_0x1b2457[_0xe8851c(0xce)],_0x1b2457[_0xe8851c(0xd9)]]);continue;case'6':this[_0xe8851c(0xe6)][_0xe8851c(0xeb)]=async()=>{const _0x19565c=_0xe8851c;await this[_0x19565c(0xe6)]['driver'][_0x19565c(0x118)](_0x1b2457[_0x19565c(0xf4)]);};continue;case'7':helper['isTrue'](this[_0xe8851c(0x119)][_0xe8851c(0xc9)])?this[_0xe8851c(0xe6)][_0xe8851c(0xd4)]=!![]:this[_0xe8851c(0xe6)][_0xe8851c(0xd4)]=![];continue;case'8':this[_0xe8851c(0xe6)][_0xe8851c(0x102)]=helper[_0xe8851c(0x108)](_0x209214,[_0x1b2457[_0xe8851c(0xf2)],_0x1b2457[_0xe8851c(0xce)],_0x1b2457['oTfkX']]);continue;case'9':this[_0xe8851c(0xe6)][_0xe8851c(0xe4)]=helper[_0xe8851c(0x108)](_0x209214,[_0x1b2457[_0xe8851c(0xf2)],_0x1b2457[_0xe8851c(0xce)],_0x1b2457[_0xe8851c(0xee)]]);continue;}break;}}}async[a14_0x1d9f9a(0xd8)](){const _0x1e4c54=a14_0x1d9f9a;_seleniumWebdriver2&&(await helper[_0x1e4c54(0xe7)](this['global'][_0x1e4c54(0x105)]),this[_0x1e4c54(0xe6)][_0x1e4c54(0x107)][_0x1e4c54(0xd1)]=originalBuilder),await RequestQueueHandler[_0x1e4c54(0xd2)]()[_0x1e4c54(0xca)]();}async[a14_0x1d9f9a(0x10c)](){}async['handleTestEvent'](_0x7a540c,_0x3dcd7e){const _0x2fc716=a14_0x1d9f9a,_0x3218e2={};_0x3218e2['hOgQu']=function(_0x3d4b35,_0x480e38){return _0x3d4b35===_0x480e38;},_0x3218e2[_0x2fc716(0xec)]=_0x2fc716(0xd3);const _0x21e719=_0x3218e2,{name:_0x5603b8}=_0x7a540c;_0x21e719[_0x2fc716(0xef)](_0x5603b8,_0x21e719['PJZOu'])&&(this[_0x2fc716(0xe6)]['testContext']=_0x7a540c[_0x2fc716(0xf6)]);}}module[a14_0x1d9f9a(0xf1)]=CustomEnvironment;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a15_0x4079(){const _0x2f4785=['132970iTDFww','../../../helpers/helper','rYXAw','tvqio','Error\x20while\x20adding\x20o11y\x20event\x20handler,\x20','Cjnkv','../test-observability/obsReporter','960guEUjn','RVggF','hookAnalyticsId',':hookAnalyticsId','DzGUu','HookRunFinished','oqBfU','makeSingleTestResult','afterEach','testStarted','26425AgGRIt','removeTestUUID','../test-observability/test-details','teardown','../../../helpers/test-observability/error-handler','zyyDH','beforeEach','yvSKS','test_start','unhandledErrors','VSWaV','setTestUUID','testObservability','type','407GxgIFo','HFOib','test_done','10689BePNIH','hook_failure','../../../helpers/test-observability/requestQueueHandler','markedStatus','test','xidsS','182814iFCfMv','sendTestRunEvent','JBqDQ','qKiBI','sbrkp','WBaCb','hook','Ruhpe','pid','addEventHandler','toISOString','run_describe_finish','initialize','shutdown','585224TNtfKF','length','includes','13032CopJRd','VRGXp','test_skip','removeAllListeners','keys','forEach','beforeAll','28uAxRSu','479144yhdsCb','3jDhwIk','aplRD','NqaCb'];a15_0x4079=function(){return _0x2f4785;};return a15_0x4079();}const a15_0x1fcf86=a15_0x4a53;function a15_0x4a53(_0xeca0f6,_0x299832){const _0x407908=a15_0x4079();return a15_0x4a53=function(_0x4a5321,_0x118c86){_0x4a5321=_0x4a5321-0xa3;let _0x499f34=_0x407908[_0x4a5321];return _0x499f34;},a15_0x4a53(_0xeca0f6,_0x299832);}(function(_0x27f44a,_0x3db9ed){const _0x4e2b87=a15_0x4a53,_0x4feb0a=_0x27f44a();while(!![]){try{const _0x33d5ee=parseInt(_0x4e2b87(0xa3))/0x1+parseInt(_0x4e2b87(0xbc))/0x2*(parseInt(_0x4e2b87(0xbd))/0x3)+-parseInt(_0x4e2b87(0xbb))/0x4*(-parseInt(_0x4e2b87(0xd1))/0x5)+parseInt(_0x4e2b87(0xc7))/0x6*(parseInt(_0x4e2b87(0xe2))/0x7)+-parseInt(_0x4e2b87(0xb1))/0x8+parseInt(_0x4e2b87(0xb4))/0x9+parseInt(_0x4e2b87(0xc0))/0xa*(-parseInt(_0x4e2b87(0xdf))/0xb);if(_0x33d5ee===_0x3db9ed)break;else _0x4feb0a['push'](_0x4feb0a['shift']());}catch(_0x10439b){_0x4feb0a['push'](_0x4feb0a['shift']());}}}(a15_0x4079,0x222e7));const {requireModule}=require(a15_0x1fcf86(0xc1)),ObservabilityReporter=require(a15_0x1fcf86(0xc6)),RequestQueueHandler=require(a15_0x1fcf86(0xe4)),TestDetails=require(a15_0x1fcf86(0xd3)),{patchConsoleLogger,debug}=require('../../../helpers/test-observability/utils'),{o11yErrorHandler}=require(a15_0x1fcf86(0xd5)),exportsI=requireModule('jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js'),initInitialize=exportsI[a15_0x1fcf86(0xaf)];exportsI[a15_0x1fcf86(0xaf)]=(..._0x4d83ce)=>{const _0x57b5fb=a15_0x1fcf86,_0x3f40f5={'Cjnkv':function(_0xb880b4,_0x185b43){return _0xb880b4(_0x185b43);},'iuUwB':'jest-circus/build/utils.js','yMpjf':'hook_start','yvSKS':'HookRunStarted','WBaCb':'hook_success','Ruhpe':_0x57b5fb(0xcc),'rYXAw':_0x57b5fb(0xe3),'HdSEe':_0x57b5fb(0xba),'DzGUu':_0x57b5fb(0xd7),'HFOib':_0x57b5fb(0xcf),'qKiBI':function(_0x54b8f6,_0x516937){return _0x54b8f6>_0x516937;},'zyyDH':_0x57b5fb(0xd9),'iffSN':_0x57b5fb(0xe1),'sbrkp':function(_0x2d1fe4,_0x2eb728){return _0x2d1fe4(_0x2eb728);},'xidsS':_0x57b5fb(0xb6),'aplRD':function(_0x3fec9e,_0x2e948e){return _0x3fec9e(_0x2e948e);},'tvqio':'TestRunSkipped','oqBfU':_0x57b5fb(0xae),'VSWaV':_0x57b5fb(0xd4),'JBqDQ':function(_0x1840ee){return _0x1840ee();},'RVggF':function(_0xcc9f43,_0x2e9039){return _0xcc9f43(_0x2e9039);},'NqaCb':'jest-circus/build/state.js','VRGXp':function(_0x1caf48,..._0x41f553){return _0x1caf48(..._0x41f553);}};try{const _0x30df12=new ObservabilityReporter();_0x30df12[_0x57b5fb(0xdd)]&&(_0x3f40f5[_0x57b5fb(0xa5)](patchConsoleLogger),_0x30df12['registerListeners']()),_0x30df12[_0x57b5fb(0xdd)]&&_0x3f40f5[_0x57b5fb(0xc8)](requireModule,_0x3f40f5[_0x57b5fb(0xbf)])[_0x57b5fb(0xac)](_0x3f40f5[_0x57b5fb(0xc5)](o11yErrorHandler,async(_0x4f325f,_0x35ae21)=>{const _0x3dd8c0=_0x57b5fb,_0x3c705d=_0x3f40f5[_0x3dd8c0(0xc5)](requireModule,_0x3f40f5['iuUwB'])[_0x3dd8c0(0xce)];switch(_0x4f325f['name']){case _0x3f40f5['yMpjf']:if(_0x30df12[_0x3dd8c0(0xdd)]){if(!_0x4f325f[_0x3dd8c0(0xa9)][_0x3dd8c0(0xc9)]){const _0x32aaeb=TestDetails[_0x3dd8c0(0xdc)](process['pid']+_0x3dd8c0(0xca));_0x4f325f[_0x3dd8c0(0xa9)]['hookAnalyticsId']=_0x32aaeb;}else _0x4f325f[_0x3dd8c0(0xa9)][_0x3dd8c0(0xe5)]&&(_0x4f325f[_0x3dd8c0(0xa9)]['hookAnalyticsId']=TestDetails[_0x3dd8c0(0xdc)](process[_0x3dd8c0(0xab)]+_0x3dd8c0(0xca)),delete _0x4f325f['hook'][_0x3dd8c0(0xe5)]);_0x4f325f['hook']['started_at']=new Date()[_0x3dd8c0(0xad)](),await _0x30df12['sendTestRunEvent'](_0x4f325f['hook'],undefined,![],_0x3f40f5[_0x3dd8c0(0xd8)]);}break;case _0x3f40f5[_0x3dd8c0(0xa8)]:_0x30df12['testObservability']&&(await _0x30df12[_0x3dd8c0(0xa4)](_0x4f325f[_0x3dd8c0(0xa9)],undefined,![],_0x3f40f5[_0x3dd8c0(0xaa)]),TestDetails['removeTestUUID'](process[_0x3dd8c0(0xab)]+_0x3dd8c0(0xca)));break;case _0x3f40f5[_0x3dd8c0(0xc2)]:[_0x3f40f5['HdSEe'],_0x3f40f5[_0x3dd8c0(0xcb)],_0x3f40f5[_0x3dd8c0(0xe0)]][_0x3dd8c0(0xb3)](_0x4f325f[_0x3dd8c0(0xa9)]['type'])&&(_0x30df12[_0x3dd8c0(0xe3)]=_0x4f325f[_0x3dd8c0(0xa9)][_0x3dd8c0(0xde)]),_0x35ae21['unhandledErrors']&&_0x3f40f5[_0x3dd8c0(0xa6)](_0x35ae21[_0x3dd8c0(0xda)][_0x3dd8c0(0xb2)],0x0)&&(_0x4f325f[_0x3dd8c0(0xa9)]['errorsDetailed']=[_0x35ae21[_0x3dd8c0(0xda)][0x0][0x0]]);_0x30df12['testObservability']&&(await _0x30df12[_0x3dd8c0(0xa4)](_0x4f325f['hook'],undefined,![],_0x3f40f5[_0x3dd8c0(0xaa)]),TestDetails[_0x3dd8c0(0xd2)](process[_0x3dd8c0(0xab)]+_0x3dd8c0(0xca)));break;case _0x3f40f5[_0x3dd8c0(0xd6)]:_0x30df12[_0x3dd8c0(0xdd)]&&await _0x30df12[_0x3dd8c0(0xd0)](_0x4f325f[_0x3dd8c0(0xe6)]);break;case _0x3f40f5['iffSN']:_0x4f325f[_0x3dd8c0(0xe6)]={..._0x3f40f5[_0x3dd8c0(0xa7)](_0x3c705d,_0x4f325f[_0x3dd8c0(0xe6)]),..._0x4f325f[_0x3dd8c0(0xe6)]};_0x30df12[_0x3dd8c0(0xdd)]&&(_0x30df12[_0x3dd8c0(0xdd)]&&(!_0x4f325f['test'][_0x3dd8c0(0xe5)]&&(_0x4f325f['test'][_0x3dd8c0(0xe5)]=!![],await _0x30df12[_0x3dd8c0(0xa4)](_0x4f325f['test']))));break;case _0x3f40f5[_0x3dd8c0(0xe7)]:_0x4f325f[_0x3dd8c0(0xe6)]={..._0x3f40f5[_0x3dd8c0(0xbe)](_0x3c705d,_0x4f325f[_0x3dd8c0(0xe6)]),..._0x4f325f[_0x3dd8c0(0xe6)]};_0x30df12[_0x3dd8c0(0xdd)]&&(_0x30df12[_0x3dd8c0(0xdd)]&&(!_0x4f325f[_0x3dd8c0(0xe6)][_0x3dd8c0(0xe5)]&&(_0x4f325f[_0x3dd8c0(0xe6)][_0x3dd8c0(0xe5)]=!![],await _0x30df12[_0x3dd8c0(0xa4)](_0x4f325f[_0x3dd8c0(0xe6)],undefined,![],_0x3f40f5[_0x3dd8c0(0xc3)]))));break;case _0x3f40f5[_0x3dd8c0(0xcd)]:_0x30df12[_0x3dd8c0(0xe3)]=null;break;case _0x3f40f5[_0x3dd8c0(0xdb)]:await RequestQueueHandler['getInstance']()[_0x3dd8c0(0xb0)](),process[_0x3dd8c0(0xb7)]();break;default:}}));}catch(_0x4f0114){_0x3f40f5[_0x57b5fb(0xc5)](debug,_0x57b5fb(0xc4)+_0x4f0114);}return _0x3f40f5[_0x57b5fb(0xb5)](initInitialize,..._0x4d83ce);};try{Object[a15_0x1fcf86(0xb8)](exportsI)[a15_0x1fcf86(0xb9)](_0x4bdbb3=>{try{exports&&(exports[_0x4bdbb3]=exportsI[_0x4bdbb3]);}catch{}});}catch{}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a16_0x4a53e2=a16_0x55f4;(function(_0x423325,_0x5e8da7){const _0x4031c2=a16_0x55f4,_0x3a567a=_0x423325();while(!![]){try{const _0x577f85=-parseInt(_0x4031c2(0x9d))/0x1+-parseInt(_0x4031c2(0x83))/0x2*(-parseInt(_0x4031c2(0x90))/0x3)+-parseInt(_0x4031c2(0x9e))/0x4+parseInt(_0x4031c2(0x9f))/0x5*(-parseInt(_0x4031c2(0x91))/0x6)+-parseInt(_0x4031c2(0x98))/0x7+-parseInt(_0x4031c2(0x96))/0x8+-parseInt(_0x4031c2(0x86))/0x9*(-parseInt(_0x4031c2(0x9c))/0xa);if(_0x577f85===_0x5e8da7)break;else _0x3a567a['push'](_0x3a567a['shift']());}catch(_0x37f3f3){_0x3a567a['push'](_0x3a567a['shift']());}}}(a16_0x5a7b,0xc2919));const {requireModule,isBrowserstackInfra}=require(a16_0x4a53e2(0x92)),a16_0x5df056={};a16_0x5df056[a16_0x4a53e2(0x9a)]=!![],Object[a16_0x4a53e2(0x89)](exports,a16_0x4a53e2(0x81),a16_0x5df056),exports[a16_0x4a53e2(0x7f)]=void 0x0;function a16_0x5a7b(){const _0x379d38=['parallels__','RMlCD','defineProperty','jest-runner','testEnvironmentOptions','serial','tszWd','forEach','config','618cueaDe','18zDTStN','../../../helpers/helper','_globalConfig','context','freeze','9188224xPlUzE','pgOOr','2915311jFsEym','runTests','value','ZosoV','12290NBcTVQ','861941nJImxx','3992228ixaEjc','1542355CbWVeL','gHhZc','capabilities','length','default','false','__esModule','push','6506jwObJo','glWLE','serial__','32787zMVFeP'];a16_0x5a7b=function(){return _0x379d38;};return a16_0x5a7b();}function _interopRequireDefault(_0x39099f){const _0x70d201=a16_0x4a53e2;return _0x39099f&&_0x39099f[_0x70d201(0x81)]?_0x39099f:{'default':_0x39099f};}function a16_0x55f4(_0xbc35ea,_0x7ebd2f){const _0x5a7b36=a16_0x5a7b();return a16_0x55f4=function(_0x55f469,_0x1fda77){_0x55f469=_0x55f469-0x7c;let _0xde414b=_0x5a7b36[_0x55f469];return _0xde414b;},a16_0x55f4(_0xbc35ea,_0x7ebd2f);}const JestRunner=_interopRequireDefault(requireModule(a16_0x4a53e2(0x8a)))[a16_0x4a53e2(0x7f)];class TestRunner extends JestRunner{constructor(..._0x28233e){super(..._0x28233e);}[a16_0x4a53e2(0x99)](..._0x4e71af){const _0x500897=a16_0x4a53e2,_0x23a800={'gHhZc':function(_0x4b3423){return _0x4b3423();},'pgOOr':function(_0x3252e8,_0x43308d){return _0x3252e8-_0x43308d;},'glWLE':function(_0x42d3dd,_0x85a8c6){return _0x42d3dd*_0x85a8c6;},'RMlCD':function(_0x1931d1,_0x31fb3a){return _0x1931d1===_0x31fb3a;},'ZosoV':_0x500897(0x80),'tszWd':function(_0x13ca16,_0xe6ddfc){return _0x13ca16<_0xe6ddfc;}};if(!_0x23a800[_0x500897(0x7c)](isBrowserstackInfra))return super['runTests'](..._0x4e71af);const _0x21eccc=_0x4e71af[0x0],_0x4a5d16=_0x4e71af[_0x23a800[_0x500897(0x97)](_0x4e71af[_0x500897(0x7e)],0x1)],_0x2b2ed6=_0x21eccc[0x0]['context']['config'][_0x500897(0x8b)][_0x500897(0x7d)],_0x440802=_0x21eccc[0x0]['context'][_0x500897(0x8f)]['testEnvironmentOptions'][_0x500897(0x87)];_0x440802&&(this[_0x500897(0x93)]=Object[_0x500897(0x95)]({...this['_globalConfig'],'maxWorkers':_0x23a800[_0x500897(0x84)](_0x440802,_0x2b2ed6[_0x500897(0x7e)])}));_0x23a800[_0x500897(0x88)](_0x21eccc[0x0]['context']['config'][_0x500897(0x8b)][_0x500897(0x85)],_0x23a800[_0x500897(0x9b)])&&(_0x4a5d16&&(_0x4a5d16[_0x500897(0x8c)]=![]));const _0x5028ed=[];for(let _0x2c8292=0x0;_0x23a800[_0x500897(0x8d)](_0x2c8292,_0x21eccc['length']);_0x2c8292++){const _0x1fb47c=[];_0x2b2ed6[_0x500897(0x8e)]((_0x163eff,_0x5b274e)=>{const _0x41319b=_0x500897,_0x396ad4={..._0x21eccc[_0x2c8292]},_0x4857a1=_0x396ad4;_0x4857a1['context']=Object[_0x41319b(0x95)]({..._0x4857a1['context'],'config':{..._0x4857a1[_0x41319b(0x94)][_0x41319b(0x8f)],'capability':_0x163eff,'browserstackPlatformIndex':_0x5b274e}}),_0x1fb47c[_0x41319b(0x82)](_0x4857a1);}),_0x5028ed[_0x500897(0x82)](..._0x1fb47c);}return super[_0x500897(0x99)](_0x5028ed,..._0x4e71af['slice'](0x1));}}module['exports']=TestRunner;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a15_0x481dd3=a15_0x4d4f;(function(_0x26cfff,_0x360762){const _0x48161c=a15_0x4d4f,_0x21f605=_0x26cfff();while(!![]){try{const _0x559915=parseInt(_0x48161c(0x11e))/0x1+parseInt(_0x48161c(0x136))/0x2*(parseInt(_0x48161c(0x120))/0x3)+parseInt(_0x48161c(0x12f))/0x4+parseInt(_0x48161c(0xdf))/0x5*(-parseInt(_0x48161c(0x14b))/0x6)+parseInt(_0x48161c(0x124))/0x7*(parseInt(_0x48161c(0x116))/0x8)+parseInt(_0x48161c(0xda))/0x9*(-parseInt(_0x48161c(0x13c))/0xa)+parseInt(_0x48161c(0xd8))/0xb;if(_0x559915===_0x360762)break;else _0x21f605['push'](_0x21f605['shift']());}catch(_0x193289){_0x21f605['push'](_0x21f605['shift']());}}}(a15_0x5835,0x4e240));const util=require(a15_0x481dd3(0xe4)),{isTestObservabilitySession,sendPlatformDetails}=require('../../helpers/test-observability/utils'),{isBrowserstackInfra,markSessionStatus}=require(a15_0x481dd3(0x114));let __error_messages__=[];const RequestQueueHandler=require(a15_0x481dd3(0x141));jest[a15_0x481dd3(0xe8)](__timeout);const {isAccessibilityAutomationSession,fetchPlatformDetails,shouldScanTestForAccessibility}=require(a15_0x481dd3(0x147)),{percyAutoCapture}=require(a15_0x481dd3(0x126)),logger=require(a15_0x481dd3(0x122))[a15_0x481dd3(0xf8)],TestDetails=require(a15_0x481dd3(0xf1)),PerformanceTester=require(a15_0x481dd3(0x113)),scripts=require(a15_0x481dd3(0x137)),globals=require(a15_0x481dd3(0xd5));globals[a15_0x481dd3(0xfd)]=browserStackGlobals;function a15_0x4d4f(_0x26c98b,_0x4ff4c6){const _0x58352a=a15_0x5835();return a15_0x4d4f=function(_0x4d4f90,_0x1dd69d){_0x4d4f90=_0x4d4f90-0xcb;let _0x544e7b=_0x58352a[_0x4d4f90];return _0x544e7b;},a15_0x4d4f(_0x26c98b,_0x4ff4c6);}function stripUnicode(_0x341200){return _0x341200['replace'](/\\u001b\[.*?m/g,'')['slice'](0x1,-0x1);}async function setContext(){const _0x4d4352=a15_0x481dd3,_0x33f88b={'rZhKy':function(_0x2537fa){return _0x2537fa();},'iPKLP':function(_0x5b2793,_0x3b197c){return _0x5b2793!==_0x3b197c;},'AxLaC':_0x4d4352(0x109),'FUnjL':function(_0x1fc769,_0x24fb85){return _0x1fc769>_0x24fb85;},'hWgNO':function(_0x5b9312,_0x2f655a){return _0x5b9312(_0x2f655a);},'YNgli':function(_0x1cd61e,_0x458112){return _0x1cd61e(_0x458112);},'cjtDU':function(_0x2e20e7,_0x35a403){return _0x2e20e7>_0x35a403;},'vuwGw':function(_0x1e6102,_0x30376d){return _0x1e6102(_0x30376d);},'yPmhV':function(_0x196b86,_0x425891){return _0x196b86(_0x425891);}};if(!_0x33f88b[_0x4d4352(0xe2)](isBrowserstackInfra))return;if(!sessionNameProvided){const _0x3cb688=expect[_0x4d4352(0xd4)]()['currentTestName'];await __drivers[0x0][_0x4d4352(0xf3)](_0x4d4352(0xfe)+_0x3cb688+_0x4d4352(0x11b));}let _0x3b68a5=null,_0x37f649=![];_0x33f88b[_0x4d4352(0x13b)](typeof jasmine,_0x33f88b[_0x4d4352(0x134)])?jasmine['currentTest']['failedExpectations']&&_0x33f88b[_0x4d4352(0x119)](jasmine[_0x4d4352(0xe6)][_0x4d4352(0x14c)]['length'],0x0)?(_0x37f649=!![],_0x3b68a5=_0x33f88b[_0x4d4352(0x12a)](stripUnicode,JSON['stringify'](jasmine['currentTest']['failedExpectations'][0x0][_0x4d4352(0x10f)]))):_0x3b68a5=_0x33f88b['YNgli'](stripUnicode,JSON[_0x4d4352(0x13a)](jasmine[_0x4d4352(0xe6)][_0x4d4352(0x121)])):testContext[_0x4d4352(0xe9)]&&_0x33f88b['cjtDU'](testContext['errors'][_0x4d4352(0x12b)],0x0)?(_0x37f649=!![],_0x3b68a5=_0x33f88b['vuwGw'](stripUnicode,JSON['stringify'](testContext[_0x4d4352(0xe9)][0x0][0x0]['message']||testContext['errors'][0x0][0x0]))):_0x3b68a5=_0x33f88b['yPmhV'](stripUnicode,JSON[_0x4d4352(0x13a)](testContext[_0x4d4352(0xfc)])),_0x37f649?(__error_messages__['push'](_0x3b68a5),await __drivers[0x0]['executeScript']('browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:\x22Failed\x20-\x20'+_0x3b68a5+_0x4d4352(0x14e))):await __drivers[0x0][_0x4d4352(0xf3)](_0x4d4352(0x117)+_0x3b68a5+_0x4d4352(0xea));}const executeAnnotate=async(_0x154851,_0x4ddbe1)=>{const _0x5bf6b6=a15_0x481dd3;await global[_0x5bf6b6(0x111)][0x0][_0x5bf6b6(0xf3)](_0x5bf6b6(0x110)+_0x154851+_0x5bf6b6(0x130)+_0x4ddbe1+_0x5bf6b6(0x11b));};async function driverCleanup(){const _0x5b9d94=a15_0x481dd3,_0x2bcf38={'dUfQS':function(_0x3336d4){return _0x3336d4();},'OniKO':function(_0x4d0712,_0x445422){return _0x4d0712>_0x445422;},'JUVoH':function(_0x157d08,_0x7fa6c3,_0x4af4e4,_0x20358c){return _0x157d08(_0x7fa6c3,_0x4af4e4,_0x20358c);},'PIEPQ':_0x5b9d94(0xce),'bnKWD':_0x5b9d94(0xd6),'LpLdw':function(_0x4d2741,_0x110c57,_0x3cbcbf){return _0x4d2741(_0x110c57,_0x3cbcbf);},'dnNmI':_0x5b9d94(0x11a)};if(!_0x2bcf38['dUfQS'](isBrowserstackInfra))return;let _0x472ac0=![];try{await __drivers[0x0][_0x5b9d94(0xf2)],_0x472ac0=!![],_0x2bcf38['OniKO'](__error_messages__[_0x5b9d94(0x12b)],0x0)?await _0x2bcf38[_0x5b9d94(0x118)](markSessionStatus,__drivers[0x0],_0x2bcf38[_0x5b9d94(0x10b)],__error_messages__[_0x5b9d94(0xf5)](_0x2bcf38['bnKWD'])):await _0x2bcf38[_0x5b9d94(0xf4)](markSessionStatus,__drivers[0x0],_0x2bcf38[_0x5b9d94(0x149)]);}catch(_0x1f4c5d){console['log'](_0x1f4c5d);}__error_messages__=[];if(_0x472ac0)try{await __drivers[0x0]['initQuit']();}catch(_0x392265){console[_0x5b9d94(0x148)](_0x392265);}}beforeAll(async()=>{const _0x93608b=a15_0x481dd3,_0x145436={'ezyyv':function(_0x50d4bd,_0x21e50a){return _0x50d4bd!==_0x21e50a;},'seiXZ':_0x93608b(0x109),'nGGYm':function(_0x55accf){return _0x55accf();},'wLxky':function(_0x19f5e2,_0x449a9e,_0x310bff){return _0x19f5e2(_0x449a9e,_0x310bff);}};PerformanceTester[_0x93608b(0x123)]();const _0x226140='browserstack internal helper hook';_0x145436[_0x93608b(0x10c)](typeof jasmine,_0x145436[_0x93608b(0x128)])&&jasmine[_0x93608b(0xfb)]()[_0x93608b(0x11f)]({'specStarted':_0x1552d5=>{jasmine['currentTest']=_0x1552d5;}});let _0x2f3d90=![];try{await __drivers[0x0][_0x93608b(0xf2)],_0x2f3d90=!![];}catch(_0x2876e2){}if(_0x2f3d90)try{try{_0x145436[_0x93608b(0xcf)](isTestObservabilitySession)&&(global['__drivers'][0x0]&&await _0x145436[_0x93608b(0xe7)](sendPlatformDetails,global[_0x93608b(0x111)][0x0],TestDetails[_0x93608b(0x107)](process[_0x93608b(0x14a)]+_0x93608b(0x10a))));}catch{}}catch(_0x49d65d){}}),beforeEach(async()=>{const _0x160855=a15_0x481dd3,_0x4d0e60={'LBibg':function(_0x4c7bd3,_0x22afb6){return _0x4c7bd3>_0x22afb6;},'mmHXD':function(_0x21fc8f){return _0x21fc8f();},'KnUzv':function(_0x28aaa8,_0x4c5de5){return _0x28aaa8>_0x4c5de5;},'uozGH':function(_0x2f54e5,_0x4f5378,_0x436061){return _0x2f54e5(_0x4f5378,_0x436061);},'tyqXj':_0x160855(0x139),'UtdIw':_0x160855(0xd1),'TWXMb':function(_0x5e47c5,_0x463e79){return _0x5e47c5===_0x463e79;},'bCSjg':_0x160855(0x112),'eBuzP':function(_0x3d2399,_0x53be56){return _0x3d2399===_0x53be56;},'vVOMF':_0x160855(0xe5),'ppWia':_0x160855(0x143),'hUBhW':function(_0x43866d,_0x563e07){return _0x43866d>_0x563e07;}},_0x36f7f2='browserstack internal helper hook';try{_0x4d0e60['LBibg'](__drivers[_0x160855(0x12b)],0x1)&&(await _0x4d0e60[_0x160855(0x146)](driverCleanup),__drivers['shift']());const _0x5d8ebf=expect[_0x160855(0xd4)]()[_0x160855(0x100)];try{Array[_0x160855(0xe0)](__drivers)&&__drivers[0x0]&&(__drivers[0x0]['browserstackSessionName']=_0x5d8ebf),global[_0x160855(0xee)]=_0x5d8ebf;}catch(_0x45e12a){logger[_0x160855(0xef)](_0x160855(0xf0)+_0x45e12a);}__drivers[0x0][_0x160855(0xee)]=_0x5d8ebf;_0x4d0e60[_0x160855(0xd0)](__drivers[0x0][_0x160855(0xcc)],0x0)&&await _0x4d0e60[_0x160855(0x146)](driverCleanup);const _0x25b868=_0x4d0e60['uozGH'](shouldScanTestForAccessibility,_0x5d8ebf,![]);__drivers[0x0][_0x160855(0x139)]=_0x25b868,globals[_0x160855(0x127)](_0x4d0e60[_0x160855(0x132)],_0x25b868);if(_0x4d0e60[_0x160855(0x146)](isAccessibilityAutomationSession)&&globals[_0x160855(0xd3)](_0x4d0e60[_0x160855(0xf7)]))try{const _0x5ac406=await __drivers[0x0][_0x160855(0xf2)];if(_0x5ac406){let _0x44fb9d=!![];const _0x5d992b=await __drivers[0x0][_0x160855(0x133)]();let _0x9e8884;try{_0x9e8884=new URL(_0x5d992b);}catch(_0x4e758d){_0x44fb9d=![];}_0x44fb9d=_0x4d0e60[_0x160855(0x102)](_0x9e8884[_0x160855(0xcb)],_0x4d0e60[_0x160855(0x14f)])||_0x4d0e60[_0x160855(0x145)](_0x9e8884['protocol'],_0x4d0e60[_0x160855(0xd9)]),_0x44fb9d&&(_0x25b868&&logger[_0x160855(0x12d)](_0x4d0e60['ppWia']));}}catch(_0x133131){logger[_0x160855(0x144)](_0x160855(0x13e)+_0x133131);}_0x4d0e60[_0x160855(0x106)](__drivers[0x0]['quitCount_'],0x0)&&await _0x4d0e60[_0x160855(0x146)](driverCleanup);}catch{}}),afterEach(async()=>{const _0x372788=a15_0x481dd3,_0x1f7e7d={'TGOhw':function(_0x47213e,_0xb3a857){return _0x47213e>_0xb3a857;},'EaQUF':function(_0x72567){return _0x72567();},'raLek':function(_0x236ce6,_0x54fae0){return _0x236ce6===_0x54fae0;},'HEhJz':_0x372788(0xcd),'ghkTe':_0x372788(0x14d),'mXaHP':function(_0x55436c,_0x31c776,_0x41b7b0,_0x321731){return _0x55436c(_0x31c776,_0x41b7b0,_0x321731);},'HIEGa':function(_0x3d1304,_0x248fde,_0x468ad3){return _0x3d1304(_0x248fde,_0x468ad3);},'ksQwK':_0x372788(0xd1),'Tnisu':'bstackA11yShouldScan','zXAaD':_0x372788(0xfa),'CoHYe':function(_0x50b136,_0x43bb01){return _0x50b136(_0x43bb01);},'FSSZJ':'Performing\x20scan\x20before\x20saving\x20results','yAZqC':_0x372788(0xd2),'PJSDv':function(_0x1d64f8,_0x3fd415,_0xf3d9fc){return _0x1d64f8(_0x3fd415,_0xf3d9fc);},'wNyiT':function(_0xde508c){return _0xde508c();},'tnHmh':function(_0x1656af,_0x396f28,_0x5ca259){return _0x1656af(_0x396f28,_0x5ca259);},'tFczs':_0x372788(0xef),'Nztrq':function(_0x4443f1,_0xc11f8c){return _0x4443f1>_0xc11f8c;}},_0x103ffb='browserstack internal helper hook';try{_0x1f7e7d['TGOhw'](__drivers[_0x372788(0x12b)],0x1)&&(await _0x1f7e7d[_0x372788(0x13d)](driverCleanup),__drivers[_0x372788(0xde)]());try{if(global[_0x372788(0x12e)]&&_0x1f7e7d[_0x372788(0x101)](global['percyCaptureMode'],_0x1f7e7d[_0x372788(0x142)])&&__drivers[0x0]){const _0x23d18f=_0x1f7e7d[_0x372788(0x115)](global[_0x372788(0x138)][_0x372788(0x12b)],0x0)?!!global['capabilities'][0x0][_0x372788(0xe3)]||!!global[_0x372788(0x138)][0x0][_0x1f7e7d['ghkTe']]:![],_0x4621c4={};_0x4621c4['app']=_0x23d18f,await _0x1f7e7d['mXaHP'](percyAutoCapture,__drivers[0x0],_0x1f7e7d[_0x372788(0x142)],_0x4621c4);}}catch(_0x38f516){}const _0x356fc7=_0x1f7e7d[_0x372788(0x103)](shouldScanTestForAccessibility,expect['getState']()['currentTestName'],![]);try{if(_0x1f7e7d['EaQUF'](isAccessibilityAutomationSession)&&globals['getGlobal'](_0x1f7e7d[_0x372788(0x12c)])&&globals[_0x372788(0xd3)](_0x1f7e7d[_0x372788(0x105)])){logger[_0x372788(0x12d)](_0x1f7e7d[_0x372788(0xdb)]);const _0x5d875a={'saveResults':_0x356fc7,'testDetails':{'name':expect[_0x372788(0xd4)]()[_0x372788(0x100)],'testRunId':process[_0x372788(0x10d)][_0x372788(0xf6)],'filePath':expect[_0x372788(0xd4)]()[_0x372788(0xec)],'scopeList':[expect[_0x372788(0xd4)]()[_0x372788(0x100)]]},'platform':await _0x1f7e7d[_0x372788(0xdd)](fetchPlatformDetails,__drivers[0x0])};logger[_0x372788(0xef)](_0x1f7e7d[_0x372788(0xdc)]),logger[_0x372788(0xef)](util[_0x372788(0x104)](await __drivers[0x0][_0x372788(0xd7)](scripts[_0x372788(0x11d)],{'method':expect[_0x372788(0xd4)]()[_0x372788(0x100)]}))),await __drivers[0x0][_0x372788(0xd7)](scripts[_0x372788(0x108)],_0x5d875a),logger['info'](_0x1f7e7d[_0x372788(0xeb)]);}}catch(_0x773f7c){logger[_0x372788(0x144)](_0x372788(0x125)+expect[_0x372788(0xd4)]()['currentTestName']+_0x372788(0x13f),_0x773f7c);}await _0x1f7e7d[_0x372788(0x13d)](setContext);try{if(_0x1f7e7d['EaQUF'](isTestObservabilitySession)){global[_0x372788(0x111)][0x0]&&await _0x1f7e7d['PJSDv'](sendPlatformDetails,global[_0x372788(0x111)][0x0],TestDetails[_0x372788(0x107)](process[_0x372788(0x14a)]+':testAnalyticsId'));if(_0x1f7e7d[_0x372788(0x129)](isBrowserstackInfra)){const _0x12df0e='ObservabilitySync:'+Date[_0x372788(0x11c)]();await _0x1f7e7d['tnHmh'](executeAnnotate,JSON[_0x372788(0x13a)](_0x12df0e),_0x1f7e7d[_0x372788(0xff)]);}}}catch(_0x397e4e){}_0x1f7e7d[_0x372788(0xe1)](__drivers[0x0][_0x372788(0xcc)],0x0)&&await _0x1f7e7d[_0x372788(0x129)](driverCleanup);}catch{}},0x186a0),afterAll(async()=>{const _0xa24dc1=a15_0x481dd3,_0x109a86={'bzTWd':function(_0x42db90,_0x186842){return _0x42db90<=_0x186842;},'GhArc':function(_0x3648b2,_0x241bc7){return _0x3648b2(_0x241bc7);},'JdFEf':function(_0x1bcdf2){return _0x1bcdf2();},'PhnLw':function(_0x81e1f3,_0x2324e3,_0x989197){return _0x81e1f3(_0x2324e3,_0x989197);}};jest[_0xa24dc1(0xe8)](0x186a0),PerformanceTester['pushPerfMeasures']();const _0x813229='browserstack internal helper hook';await new Promise(_0x112633=>{const _0x4558cf=_0xa24dc1,_0x2ad4bc=_0x109a86[_0x4558cf(0x140)](setInterval,async()=>{const _0x4a628f=_0x4558cf;_0x109a86[_0x4a628f(0x135)](RequestQueueHandler[_0x4a628f(0xed)]()['pendingUploads'],0x0)&&(_0x109a86[_0x4a628f(0x131)](clearInterval,_0x2ad4bc),_0x109a86[_0x4a628f(0x10e)](_0x112633));},0x3e8);});try{await _0x109a86[_0xa24dc1(0x10e)](driverCleanup);}catch(_0x397334){}process[_0xa24dc1(0xf9)]();},0x2710);function a15_0x5835(){const _0x24c2bf=['FSSZJ','CoHYe','shift','65mttarU','isArray','Nztrq','rZhKy','app','util','https:','currentTest','wLxky','setTimeout','errors','\x22,\x22level\x22:\x20\x22info\x22}}','yAZqC','testPath','getInstance','browserstackSessionName','debug','Failed\x20to\x20store\x20session\x20name:\x20','./test-observability/test-details','session_','executeScript','LpLdw','join','BS_A11Y_TEST_RUN_ID','UtdIw','winstonLogger','removeAllListeners','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','getEnv','name','browserStackGlobals','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20\x22','tFczs','currentTestName','raLek','TWXMb','HIEGa','format','Tnisu','hUBhW','getTestUUID','saveTestResults','undefined',':testAnalyticsId','PIEPQ','ezyyv','env','JdFEf','message','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','__drivers','http:','../../helpers/performance-tester','../../helpers/helper','TGOhw','64PRUBrO','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:\x22Passed\x20-\x20','JUVoH','FUnjL','passed','\x22}}','now','performScan','75243cEHwHO','addReporter','462WcXbFw','description','../../helpers/logger','startMonitoring','82096FEfHsN','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','../../helpers/percy/utils','setGlobal','seiXZ','wNyiT','hWgNO','length','ksQwK','info','percy','1609428CWNTVi',',\x22level\x22:\x20\x22','GhArc','tyqXj','getCurrentUrl','AxLaC','bzTWd','1184cZoDSa','../../helpers/accessibility-automation/scripts','capabilities','bstackA11yShouldScan','stringify','iPKLP','82330WNfcxl','EaQUF','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','.\x20Error\x20:','PhnLw','../../helpers/test-observability/requestQueueHandler','HEhJz','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','error','eBuzP','mmHXD','../../helpers/accessibility-automation/helper','log','dnNmI','pid','8382qSoYCC','failedExpectations','appium:app','\x22,\x22level\x22:\x20\x22error\x22}}','bCSjg','protocol','quitCount_','testcase','failed','nGGYm','KnUzv','isAccessibilityPlatform','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','getGlobal','getState','../../helpers/globals','\x20|\x20','executeAsyncScript','145046UkaLbK','vVOMF','369RFaXKJ','zXAaD'];a15_0x5835=function(){return _0x24c2bf;};return a15_0x5835();}
|
|
1
|
+
const a17_0x138935=a17_0x5e3d;(function(_0xda74be,_0x2b4079){const _0x3c74e0=a17_0x5e3d,_0x389658=_0xda74be();while(!![]){try{const _0xd16b5c=-parseInt(_0x3c74e0(0xa8))/0x1+-parseInt(_0x3c74e0(0xa7))/0x2*(-parseInt(_0x3c74e0(0xd9))/0x3)+parseInt(_0x3c74e0(0x95))/0x4+parseInt(_0x3c74e0(0xb5))/0x5*(parseInt(_0x3c74e0(0x6f))/0x6)+parseInt(_0x3c74e0(0xc9))/0x7*(parseInt(_0x3c74e0(0x75))/0x8)+-parseInt(_0x3c74e0(0x91))/0x9+parseInt(_0x3c74e0(0x9b))/0xa;if(_0xd16b5c===_0x2b4079)break;else _0x389658['push'](_0x389658['shift']());}catch(_0x59f9d7){_0x389658['push'](_0x389658['shift']());}}}(a17_0x2d8d,0xc1455));const util=require('util'),{isTestObservabilitySession,sendPlatformDetails}=require(a17_0x138935(0xe5)),{isBrowserstackInfra,markSessionStatus}=require(a17_0x138935(0xba));let __error_messages__=[];const RequestQueueHandler=require(a17_0x138935(0x81));jest['setTimeout'](__timeout);const {isAccessibilityAutomationSession,fetchPlatformDetails,shouldScanTestForAccessibility}=require(a17_0x138935(0x76)),{percyAutoCapture}=require('../../helpers/percy/utils'),logger=require(a17_0x138935(0xca))[a17_0x138935(0xce)],TestDetails=require(a17_0x138935(0x7f)),PerformanceTester=require('../../helpers/performance-tester'),scripts=require('../../helpers/accessibility-automation/scripts'),globals=require(a17_0x138935(0x7a));globals['browserStackGlobals']=browserStackGlobals;function stripUnicode(_0x55d86b){const _0x16f0e6=a17_0x138935;return _0x55d86b[_0x16f0e6(0x89)](/\\u001b\[.*?m/g,'')[_0x16f0e6(0xd5)](0x1,-0x1);}function a17_0x5e3d(_0x21f567,_0xa23bda){const _0x2d8d56=a17_0x2d8d();return a17_0x5e3d=function(_0x5e3d7e,_0x5ce682){_0x5e3d7e=_0x5e3d7e-0x6e;let _0x367756=_0x2d8d56[_0x5e3d7e];return _0x367756;},a17_0x5e3d(_0x21f567,_0xa23bda);}async function setContext(){const _0x2b2fe2=a17_0x138935,_0xd03b0f={'HMqvc':function(_0x1dafe2){return _0x1dafe2();},'BDhBO':function(_0x446a1f,_0x87551e){return _0x446a1f!==_0x87551e;},'qGnqp':'undefined','XzsUC':function(_0xcfda8b,_0x2c53d7){return _0xcfda8b>_0x2c53d7;},'RBlff':function(_0x5e83a9,_0x391e47){return _0x5e83a9(_0x391e47);},'wtKYk':function(_0x1c26dd,_0x3d53ff){return _0x1c26dd(_0x3d53ff);},'CuZLl':function(_0x3207a4,_0x297ff2){return _0x3207a4(_0x297ff2);}};if(!_0xd03b0f[_0x2b2fe2(0xc1)](isBrowserstackInfra))return;if(!sessionNameProvided){const _0x52a8cc=expect['getState']()[_0x2b2fe2(0xa9)];await __drivers[0x0][_0x2b2fe2(0xe4)]('browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20\x22'+_0x52a8cc+_0x2b2fe2(0xa2));}let _0x2b7fc6=null,_0x125feb=![];_0xd03b0f['BDhBO'](typeof jasmine,_0xd03b0f[_0x2b2fe2(0x79)])?jasmine[_0x2b2fe2(0xc6)][_0x2b2fe2(0x7c)]&&_0xd03b0f[_0x2b2fe2(0x86)](jasmine['currentTest']['failedExpectations']['length'],0x0)?(_0x125feb=!![],_0x2b7fc6=_0xd03b0f[_0x2b2fe2(0xb2)](stripUnicode,JSON[_0x2b2fe2(0xcf)](jasmine[_0x2b2fe2(0xc6)][_0x2b2fe2(0x7c)][0x0]['message']))):_0x2b7fc6=_0xd03b0f[_0x2b2fe2(0xd7)](stripUnicode,JSON[_0x2b2fe2(0xcf)](jasmine[_0x2b2fe2(0xc6)][_0x2b2fe2(0xb6)])):testContext[_0x2b2fe2(0xcb)]&&_0xd03b0f['XzsUC'](testContext['errors'][_0x2b2fe2(0xe3)],0x0)?(_0x125feb=!![],_0x2b7fc6=_0xd03b0f[_0x2b2fe2(0xdc)](stripUnicode,JSON[_0x2b2fe2(0xcf)](testContext[_0x2b2fe2(0xcb)][0x0][0x0][_0x2b2fe2(0xd8)]||testContext[_0x2b2fe2(0xcb)][0x0][0x0]))):_0x2b7fc6=_0xd03b0f[_0x2b2fe2(0xd7)](stripUnicode,JSON[_0x2b2fe2(0xcf)](testContext[_0x2b2fe2(0xdd)])),_0x125feb?(__error_messages__['push'](_0x2b7fc6),await __drivers[0x0]['executeScript'](_0x2b2fe2(0xcc)+_0x2b7fc6+_0x2b2fe2(0xc7))):await __drivers[0x0][_0x2b2fe2(0xe4)](_0x2b2fe2(0xbc)+_0x2b7fc6+'\x22,\x22level\x22:\x20\x22info\x22}}');}const executeAnnotate=async(_0x5ab03c,_0x695b1d)=>{const _0x3b9d68=a17_0x138935;await global[_0x3b9d68(0xda)][0x0][_0x3b9d68(0xe4)](_0x3b9d68(0x85)+_0x5ab03c+_0x3b9d68(0xb7)+_0x695b1d+'\x22}}');};async function driverCleanup(){const _0x4b0ae7=a17_0x138935,_0x50bee3={'Ilady':function(_0x248f0c){return _0x248f0c();},'BYLBs':function(_0x31fcb0,_0x16d548){return _0x31fcb0>_0x16d548;},'bwiNO':function(_0x558f02,_0x5e4909,_0x32e68f,_0x1b95c0){return _0x558f02(_0x5e4909,_0x32e68f,_0x1b95c0);},'iaJKD':'failed','eeMqC':_0x4b0ae7(0x9e),'NmdXw':function(_0x3717ff,_0xaf11c8,_0x544efa){return _0x3717ff(_0xaf11c8,_0x544efa);},'BgfEV':_0x4b0ae7(0xd3)};if(!_0x50bee3[_0x4b0ae7(0xaf)](isBrowserstackInfra))return;let _0x30559c=![];try{await __drivers[0x0][_0x4b0ae7(0x9f)],_0x30559c=!![],_0x50bee3[_0x4b0ae7(0x94)](__error_messages__[_0x4b0ae7(0xe3)],0x0)?await _0x50bee3['bwiNO'](markSessionStatus,__drivers[0x0],_0x50bee3['iaJKD'],__error_messages__['join'](_0x50bee3[_0x4b0ae7(0x88)])):await _0x50bee3[_0x4b0ae7(0xc3)](markSessionStatus,__drivers[0x0],_0x50bee3[_0x4b0ae7(0xdf)]);}catch(_0x3a4d9a){console['log'](_0x3a4d9a);}__error_messages__=[];if(_0x30559c)try{await __drivers[0x0][_0x4b0ae7(0xe9)]();}catch(_0x48ccb4){console['log'](_0x48ccb4);}}beforeAll(async()=>{const _0x4217e3=a17_0x138935,_0xf77ca3={'DvThy':function(_0x29075a,_0x361482){return _0x29075a!==_0x361482;},'AeqKX':_0x4217e3(0x7b),'MRoqm':function(_0x285086){return _0x285086();},'EFRaz':function(_0x775ab4,_0x501b12,_0x4242da){return _0x775ab4(_0x501b12,_0x4242da);}};PerformanceTester['startMonitoring']();const _0x40a3a8='browserstack internal helper hook';_0xf77ca3[_0x4217e3(0xd6)](typeof jasmine,_0xf77ca3[_0x4217e3(0xa0)])&&jasmine['getEnv']()['addReporter']({'specStarted':_0x2dad2a=>{jasmine['currentTest']=_0x2dad2a;}});let _0x21ac6e=![];try{await __drivers[0x0][_0x4217e3(0x9f)],_0x21ac6e=!![];}catch(_0x2f09b1){}if(_0x21ac6e)try{try{_0xf77ca3[_0x4217e3(0x84)](isTestObservabilitySession)&&(global[_0x4217e3(0xda)][0x0]&&await _0xf77ca3[_0x4217e3(0xb8)](sendPlatformDetails,global[_0x4217e3(0xda)][0x0],TestDetails[_0x4217e3(0x8d)](process[_0x4217e3(0xb4)]+_0x4217e3(0xe2))));}catch{}}catch(_0x335eb4){}}),beforeEach(async()=>{const _0x350809=a17_0x138935,_0x3e5397={'wIiOh':function(_0x1029e6,_0x2aef08){return _0x1029e6>_0x2aef08;},'ZQOdM':function(_0x456a16){return _0x456a16();},'pLtZC':function(_0x347dbc){return _0x347dbc();},'MEbsO':function(_0x49224a,_0x17f033,_0x3ad6e2){return _0x49224a(_0x17f033,_0x3ad6e2);},'NMeBg':_0x350809(0x7e),'DaUtC':function(_0x585ea2){return _0x585ea2();},'hRSJD':_0x350809(0xab),'emZES':function(_0x25e96c,_0x371385){return _0x25e96c===_0x371385;},'eOVmu':_0x350809(0xc8),'yEjcY':_0x350809(0xa5),'IhtHg':'Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','pDafz':function(_0x3e517e){return _0x3e517e();}},_0x27b5ab='browserstack internal helper hook';try{_0x3e5397[_0x350809(0xbb)](__drivers[_0x350809(0xe3)],0x1)&&(await _0x3e5397[_0x350809(0x7d)](driverCleanup),__drivers['shift']());const _0x37a22b=expect[_0x350809(0xeb)]()[_0x350809(0xa9)];try{Array['isArray'](__drivers)&&__drivers[0x0]&&(__drivers[0x0][_0x350809(0xb3)]=_0x37a22b),global[_0x350809(0xb3)]=_0x37a22b;}catch(_0x19f7a7){logger[_0x350809(0xd4)]('Failed\x20to\x20store\x20session\x20name:\x20'+_0x19f7a7);}__drivers[0x0][_0x350809(0xb3)]=_0x37a22b;_0x3e5397['wIiOh'](__drivers[0x0][_0x350809(0x83)],0x0)&&await _0x3e5397[_0x350809(0xec)](driverCleanup);const _0x725099=_0x3e5397[_0x350809(0x8c)](shouldScanTestForAccessibility,_0x37a22b,![]);__drivers[0x0][_0x350809(0x7e)]=_0x725099,globals[_0x350809(0xbd)](_0x3e5397['NMeBg'],_0x725099);if(_0x3e5397[_0x350809(0xae)](isAccessibilityAutomationSession)&&globals[_0x350809(0xd1)](_0x3e5397[_0x350809(0xb0)]))try{const _0x45b7df=await __drivers[0x0]['session_'];if(_0x45b7df){let _0x53e7f3=!![];const _0x40bbb2=await __drivers[0x0][_0x350809(0x90)]();let _0x12bcaa;try{_0x12bcaa=new URL(_0x40bbb2);}catch(_0x2da260){_0x53e7f3=![];}_0x53e7f3=_0x3e5397[_0x350809(0x6e)](_0x12bcaa[_0x350809(0xc0)],_0x3e5397[_0x350809(0xb1)])||_0x3e5397['emZES'](_0x12bcaa[_0x350809(0xc0)],_0x3e5397[_0x350809(0xa1)]),_0x53e7f3&&(_0x725099&&logger[_0x350809(0x78)](_0x3e5397[_0x350809(0xdb)]));}}catch(_0x39a1a5){logger[_0x350809(0x92)](_0x350809(0x70)+_0x39a1a5);}_0x3e5397[_0x350809(0xbb)](__drivers[0x0]['quitCount_'],0x0)&&await _0x3e5397[_0x350809(0xe0)](driverCleanup);}catch{}}),afterEach(async()=>{const _0x25b542=a17_0x138935,_0x1fa4c8={'LERwQ':function(_0x426e4,_0x1db765){return _0x426e4>_0x1db765;},'VMnNI':function(_0x1ba0f0){return _0x1ba0f0();},'GVvxp':function(_0x3a4ed2,_0x20101a){return _0x3a4ed2===_0x20101a;},'qzGRd':_0x25b542(0xc4),'sbcLu':'appium:app','aICCE':function(_0x59978e,_0x41623c,_0x2c5593,_0x4bd972){return _0x59978e(_0x41623c,_0x2c5593,_0x4bd972);},'DcPOG':function(_0x47ddcf,_0x831fa2,_0x20054d){return _0x47ddcf(_0x831fa2,_0x20054d);},'dZyhh':_0x25b542(0xab),'AzysU':_0x25b542(0x7e),'UXHkc':_0x25b542(0xa6),'eWJNu':function(_0x5b8855,_0x2f7cba){return _0x5b8855(_0x2f7cba);},'IbHhY':_0x25b542(0xbe),'hgwPR':'Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','IccLX':function(_0x51b05b,_0x199375,_0x2ebf5a){return _0x51b05b(_0x199375,_0x2ebf5a);},'fFAdI':function(_0x227b43){return _0x227b43();},'ZyOza':function(_0x275a68,_0x179a4f,_0x2812fb){return _0x275a68(_0x179a4f,_0x2812fb);},'CmBeP':_0x25b542(0xd4)},_0x14aa67='browserstack internal helper hook';try{_0x1fa4c8[_0x25b542(0x8e)](__drivers[_0x25b542(0xe3)],0x1)&&(await _0x1fa4c8['VMnNI'](driverCleanup),__drivers[_0x25b542(0xd2)]());try{if(global[_0x25b542(0x80)]&&_0x1fa4c8[_0x25b542(0xea)](global[_0x25b542(0xbf)],_0x1fa4c8[_0x25b542(0x71)])&&__drivers[0x0]){const _0x36ff3f=_0x1fa4c8[_0x25b542(0x8e)](global[_0x25b542(0x74)]['length'],0x0)?!!global['capabilities'][0x0]['app']||!!global[_0x25b542(0x74)][0x0][_0x1fa4c8[_0x25b542(0x9c)]]:![],_0x2dc326={};_0x2dc326[_0x25b542(0xad)]=_0x36ff3f,await _0x1fa4c8[_0x25b542(0xc2)](percyAutoCapture,__drivers[0x0],_0x1fa4c8[_0x25b542(0x71)],_0x2dc326);}}catch(_0x13c8e9){}const _0x4ef3c9=_0x1fa4c8[_0x25b542(0x97)](shouldScanTestForAccessibility,expect[_0x25b542(0xeb)]()[_0x25b542(0xa9)],![]);try{if(_0x1fa4c8[_0x25b542(0x82)](isAccessibilityAutomationSession)&&globals[_0x25b542(0xd1)](_0x1fa4c8[_0x25b542(0xa4)])&&globals[_0x25b542(0xd1)](_0x1fa4c8[_0x25b542(0x98)])){logger[_0x25b542(0x78)](_0x1fa4c8[_0x25b542(0xe6)]);const _0x24de9b={'saveResults':_0x4ef3c9,'testDetails':{'name':expect[_0x25b542(0xeb)]()[_0x25b542(0xa9)],'testRunId':process['env'][_0x25b542(0xac)],'filePath':expect['getState']()[_0x25b542(0x99)],'scopeList':[expect[_0x25b542(0xeb)]()[_0x25b542(0xa9)]]},'platform':await _0x1fa4c8[_0x25b542(0xa3)](fetchPlatformDetails,__drivers[0x0])};logger[_0x25b542(0xd4)](_0x1fa4c8[_0x25b542(0xb9)]),logger['debug'](util['format'](await __drivers[0x0][_0x25b542(0x87)](scripts[_0x25b542(0x8b)],{'method':expect[_0x25b542(0xeb)]()['currentTestName']}))),await __drivers[0x0]['executeAsyncScript'](scripts['saveTestResults'],_0x24de9b),logger[_0x25b542(0x78)](_0x1fa4c8[_0x25b542(0x8f)]);}}catch(_0x5bc160){logger['error'](_0x25b542(0x93)+expect[_0x25b542(0xeb)]()[_0x25b542(0xa9)]+_0x25b542(0x9a),_0x5bc160);}await _0x1fa4c8[_0x25b542(0x82)](setContext);try{if(_0x1fa4c8['VMnNI'](isTestObservabilitySession)){global[_0x25b542(0xda)][0x0]&&await _0x1fa4c8[_0x25b542(0xcd)](sendPlatformDetails,global['__drivers'][0x0],TestDetails[_0x25b542(0x8d)](process[_0x25b542(0xb4)]+_0x25b542(0xe2)));if(_0x1fa4c8[_0x25b542(0xd0)](isBrowserstackInfra)){const _0x32b976=_0x25b542(0xaa)+Date[_0x25b542(0xe8)]();await _0x1fa4c8[_0x25b542(0x77)](executeAnnotate,JSON[_0x25b542(0xcf)](_0x32b976),_0x1fa4c8[_0x25b542(0x72)]);}}}catch(_0x374826){}_0x1fa4c8[_0x25b542(0x8e)](__drivers[0x0]['quitCount_'],0x0)&&await _0x1fa4c8[_0x25b542(0x82)](driverCleanup);}catch{}},0x186a0),afterAll(async()=>{const _0x4b00af=a17_0x138935,_0x18cec6={'FPCKy':function(_0x2147fe,_0xbc33b2){return _0x2147fe<=_0xbc33b2;},'zSCkN':function(_0x39d3cc,_0x4885d9){return _0x39d3cc(_0x4885d9);},'OmoOo':function(_0x5e00f0){return _0x5e00f0();},'idzTq':function(_0x46c30d,_0x5285d2,_0x563511){return _0x46c30d(_0x5285d2,_0x563511);},'RVpEG':function(_0x6eff44){return _0x6eff44();}};jest[_0x4b00af(0xe1)](0x186a0),PerformanceTester[_0x4b00af(0xe7)]();const _0x1644de='browserstack internal helper hook';await new Promise(_0x4f8cd1=>{const _0x51fc21=_0x4b00af,_0x2885d3=_0x18cec6[_0x51fc21(0x96)](setInterval,async()=>{const _0x525cff=_0x51fc21;_0x18cec6['FPCKy'](RequestQueueHandler[_0x525cff(0x9d)]()['pendingUploads'],0x0)&&(_0x18cec6[_0x525cff(0x73)](clearInterval,_0x2885d3),_0x18cec6[_0x525cff(0xc5)](_0x4f8cd1));},0x3e8);});try{await _0x18cec6[_0x4b00af(0x8a)](driverCleanup);}catch(_0x142f04){}process[_0x4b00af(0xde)]();},0x2710);function a17_0x2d8d(){const _0xba2f6d=[':testAnalyticsId','length','executeScript','../../helpers/test-observability/utils','UXHkc','pushPerfMeasures','now','initQuit','GVvxp','getState','pLtZC','emZES','12FVLzQc','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','qzGRd','CmBeP','zSCkN','capabilities','40zThGcY','../../helpers/accessibility-automation/helper','ZyOza','info','qGnqp','../../helpers/globals','undefined','failedExpectations','ZQOdM','bstackA11yShouldScan','./test-observability/test-details','percy','../../helpers/test-observability/requestQueueHandler','VMnNI','quitCount_','MRoqm','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','XzsUC','executeAsyncScript','eeMqC','replace','RVpEG','performScan','MEbsO','getTestUUID','LERwQ','hgwPR','getCurrentUrl','2999808xfyUNZ','error','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','BYLBs','4371180BoNVsJ','idzTq','DcPOG','AzysU','testPath','.\x20Error\x20:','350200HxLBTc','sbcLu','getInstance','\x20|\x20','session_','AeqKX','yEjcY','\x22}}','eWJNu','dZyhh','https:','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','329828fvrIIH','901681Dliyle','currentTestName','ObservabilitySync:','isAccessibilityPlatform','BS_A11Y_TEST_RUN_ID','app','DaUtC','Ilady','hRSJD','eOVmu','RBlff','browserstackSessionName','pid','356020DjopwN','description',',\x22level\x22:\x20\x22','EFRaz','IbHhY','../../helpers/helper','wIiOh','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:\x22Passed\x20-\x20','setGlobal','Performing\x20scan\x20before\x20saving\x20results','percyCaptureMode','protocol','HMqvc','aICCE','NmdXw','testcase','OmoOo','currentTest','\x22,\x22level\x22:\x20\x22error\x22}}','http:','366331gaeeVU','../../helpers/logger','errors','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:\x22Failed\x20-\x20','IccLX','winstonLogger','stringify','fFAdI','getGlobal','shift','passed','debug','slice','DvThy','wtKYk','message','9YUbImW','__drivers','IhtHg','CuZLl','name','removeAllListeners','BgfEV','pDafz','setTimeout'];a17_0x2d8d=function(){return _0xba2f6d;};return a17_0x2d8d();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a18_0x1e8b(_0x260706,_0x27e6ff){const _0xc6e1=a18_0xc6e1();return a18_0x1e8b=function(_0x1e8b18,_0x452407){_0x1e8b18=_0x1e8b18-0x1ea;let _0x306543=_0xc6e1[_0x1e8b18];return _0x306543;},a18_0x1e8b(_0x260706,_0x27e6ff);}function a18_0xc6e1(){const _0x3c4386=['56YYwDqM','1190791KtfgKJ','2334093KcKUTv','1468932YsLqiq','95wbeuNp','WORyC','26PIKXkP','12535209Clxlfl','restore','396534GKjODK','setTimeout','31437800qOPnIc','76954DkxcBd'];a18_0xc6e1=function(){return _0x3c4386;};return a18_0xc6e1();}(function(_0x141e72,_0x45e3b9){const _0x2c3995=a18_0x1e8b,_0x2178af=_0x141e72();while(!![]){try{const _0x682d2e=parseInt(_0x2c3995(0x1f2))/0x1*(-parseInt(_0x2c3995(0x1ec))/0x2)+parseInt(_0x2c3995(0x1f5))/0x3+parseInt(_0x2c3995(0x1f6))/0x4+-parseInt(_0x2c3995(0x1ea))/0x5*(-parseInt(_0x2c3995(0x1ef))/0x6)+parseInt(_0x2c3995(0x1f4))/0x7*(parseInt(_0x2c3995(0x1f3))/0x8)+parseInt(_0x2c3995(0x1ed))/0x9+-parseInt(_0x2c3995(0x1f1))/0xa;if(_0x682d2e===_0x45e3b9)break;else _0x2178af['push'](_0x2178af['shift']());}catch(_0x78d887){_0x2178af['push'](_0x2178af['shift']());}}}(a18_0xc6e1,0xcd2ad));const requestSpy=require('../../../helpers/request-spy'),{addRequestSpy}=require('../../../helpers/test-observability/utils');beforeAll(()=>{const _0x2c195a=a18_0x1e8b,_0x10e2b8={'WORyC':function(_0x25c4e3){return _0x25c4e3();}},_0x599fd1='browserstack internal helper hook';_0x10e2b8[_0x2c195a(0x1eb)](addRequestSpy);}),afterAll(async()=>{const _0x38569d=a18_0x1e8b,_0x2f5311='browserstack internal helper hook';jest[_0x38569d(0x1f0)](0xea60),requestSpy[_0x38569d(0x1ee)]();});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a19_0x3717(_0x84dbae,_0x2feefb){const _0x55ebb1=a19_0x55eb();return a19_0x3717=function(_0x371757,_0x5216c1){_0x371757=_0x371757-0x148;let _0x6d96e1=_0x55ebb1[_0x371757];return _0x6d96e1;},a19_0x3717(_0x84dbae,_0x2feefb);}const a19_0x36ee73=a19_0x3717;(function(_0x3c2ca6,_0x21ebf3){const _0x41538f=a19_0x3717,_0x7f7f3e=_0x3c2ca6();while(!![]){try{const _0x3cbe70=parseInt(_0x41538f(0x164))/0x1+-parseInt(_0x41538f(0x157))/0x2*(-parseInt(_0x41538f(0x149))/0x3)+parseInt(_0x41538f(0x14b))/0x4+-parseInt(_0x41538f(0x15d))/0x5+parseInt(_0x41538f(0x150))/0x6*(parseInt(_0x41538f(0x14d))/0x7)+parseInt(_0x41538f(0x163))/0x8*(parseInt(_0x41538f(0x160))/0x9)+parseInt(_0x41538f(0x15e))/0xa*(-parseInt(_0x41538f(0x153))/0xb);if(_0x3cbe70===_0x21ebf3)break;else _0x7f7f3e['push'](_0x7f7f3e['shift']());}catch(_0x44d697){_0x7f7f3e['push'](_0x7f7f3e['shift']());}}}(a19_0x55eb,0x8184d));function a19_0x55eb(){const _0x3ffdb2=['../../../helpers/helper','4066152vhrfYW','length','6397426AWZJqL','rerunTests','testMatch','6vziJst','ftXwi','tjhML','55WBEYYP','map','PuSZZ','trim','5754sVyoIw','shouldReRunObservabilityTests','cliConfig','null','KNqGy','isTestObservabilitySession','1337350anKcfA','5812730PzdMCV','env','41517QWTRck','BROWSERSTACK_RERUN_TESTS','updateTestRerunConfig','1536iSDQSW','741465TZdbpB','../../../helpers/test-observability/utils','153sIMSyV'];a19_0x55eb=function(){return _0x3ffdb2;};return a19_0x55eb();}const testOpsHelper=require(a19_0x36ee73(0x148)),helper=require(a19_0x36ee73(0x14a));exports[a19_0x36ee73(0x162)]=(_0x2c92c7,_0x32e70c)=>{const _0x3de465=a19_0x36ee73,_0x5c348e={};_0x5c348e[_0x3de465(0x155)]=_0x3de465(0x14e),_0x5c348e[_0x3de465(0x151)]=function(_0x53d672,_0x5a3593){return _0x53d672!==_0x5a3593;},_0x5c348e['oJHji']=_0x3de465(0x15a),_0x5c348e[_0x3de465(0x15b)]=function(_0x1fa684,_0x4a3d42){return _0x1fa684!==_0x4a3d42;},_0x5c348e['tjhML']=function(_0x3cf369,_0x8f9e6f){return _0x3cf369>_0x8f9e6f;};const _0xa2cd8f=_0x5c348e;if(testOpsHelper[_0x3de465(0x15c)]()&&testOpsHelper[_0x3de465(0x158)]()){let _0x2addf0=process[_0x3de465(0x15f)][_0x3de465(0x161)];!helper['isUndefined'](_0x32e70c[_0x3de465(0x159)])&&_0x32e70c[_0x3de465(0x159)]['has'](_0xa2cd8f[_0x3de465(0x155)])&&(_0x2addf0=_0x32e70c[_0x3de465(0x159)]['get'](_0xa2cd8f['PuSZZ']));const _0x2fb1a4=[];_0xa2cd8f[_0x3de465(0x151)](_0x2addf0,_0xa2cd8f['oJHji'])&&_0xa2cd8f['KNqGy'](_0x2addf0,null)&&_0x2addf0['split'](',')[_0x3de465(0x154)](_0x527dc6=>{const _0x4401f1=_0x3de465;_0x2fb1a4['push'](''+_0x527dc6[_0x4401f1(0x156)]());}),_0xa2cd8f[_0x3de465(0x152)](_0x2fb1a4[_0x3de465(0x14c)],0x0)&&(_0x2c92c7['testRegex']=_0x2fb1a4,delete _0x2c92c7[_0x3de465(0x14f)]);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a18_0x298f(_0x47229c,_0x79e1f8){const _0x48e8d1=a18_0x48e8();return a18_0x298f=function(_0x298f50,_0x35b09c){_0x298f50=_0x298f50-0xa2;let _0x4a9c74=_0x48e8d1[_0x298f50];return _0x4a9c74;},a18_0x298f(_0x47229c,_0x79e1f8);}const a18_0x3ee920=a18_0x298f;(function(_0x901dc6,_0x57f185){const _0x317987=a18_0x298f,_0x48af28=_0x901dc6();while(!![]){try{const _0x595035=parseInt(_0x317987(0x160))/0x1+-parseInt(_0x317987(0xbd))/0x2+parseInt(_0x317987(0x142))/0x3*(-parseInt(_0x317987(0xd7))/0x4)+-parseInt(_0x317987(0xbb))/0x5+-parseInt(_0x317987(0xd1))/0x6*(-parseInt(_0x317987(0x102))/0x7)+parseInt(_0x317987(0xc3))/0x8*(-parseInt(_0x317987(0x141))/0x9)+-parseInt(_0x317987(0x159))/0xa*(-parseInt(_0x317987(0x108))/0xb);if(_0x595035===_0x57f185)break;else _0x48af28['push'](_0x48af28['shift']());}catch(_0x52ea23){_0x48af28['push'](_0x48af28['shift']());}}}(a18_0x48e8,0xd70c9));function a18_0x48e8(){const _0x1f2211=['afterAll','42216WBdRWp','beforeEach','../../../helpers/test-observability/sessionHandler','RMpJE','TQSOe','resetTestHooks','24jrzShi','testAnalyticsId','DYrpa','\x22\x20hook\x20for\x20\x22','failed\x20to\x20get\x20root\x20parent\x20file\x20','length','0|1|5|3|4|2|6','_gitConfigPath','includes','test_run_uuid','current_test','RjaZd','bAIDm','appendTestPlatform','removeAllListeners','hook_failure','test_run','hKqrv','hPLqR','hook_type','err','bcdSL','NGBOm','failure_reason_expanded','getTestUUID','failure_backtrace','GBZpB','sendTestRunEvent','testObservability','FDLzH','AFTER_ALL','now','Xlotp','\x20with\x20error\x20:\x20','mvhdC','findGitConfig','hook_data','BDkQD','../../../helpers/helper','CgUmv','jXjiK','result','passed','1673DUhChD','AFTER_EACH','stack-trace','generic','jqhHo','STATE_PENDING','27511BFzuXL','vqOBz','parse','hookAnalyticsId','JOGHZ','util','uuid','GMYhA','.git','type','getName','lXfZU','started_at','location_prefix','split','FSlgn','dwUeE','pid','mapTestHooks','../../../helpers/test-observability/utils','BFcUp','Exception\x20in\x20uploading\x20platform\x20details\x20to\x20Observability\x20with\x20error\x20:\x20','state','DDMFt','current_hook','../../utils/constants','getRootParentFile','./test-details','lyQuP','hook_run','drNed','File\x20path\x20could\x20not\x20be\x20found','configureGit','oFacL','parent','2|1|3|4|0','relative','WoOZp','Exception\x20in\x20populating\x20test\x20data\x20for\x20event\x20','BEFORE_ALL','Wlydm','ROOT_DESCRIBE_BLOCK','exports',':hookAnalyticsId','iKlEn','_testEnv','RaSxV','../../../../package.json','CBTSessionCreated','getHierarchy','kRmaa','_testResults','dUYpZ','cwd','registerListeners','failure','Rnygj','13557303uXccYP','445254wKSKdW','IQEek','JEST','Qlluh','ngrSM','rRiqY','path','zboFJ','config','toISOString',':testAnalyticsId','vMIvU','ptrkO','call','testStarted','_currentRetry','bs:addLog:','FNGDw','qsTUy','javascript','toString','markedStatus','QLlfo','12590ePwYam','hooks','getTestEnv','uploadEventData','match','likSh','file','678763tMJUqt','yrLkC','analyticsResult','LogCreated','_gitConfigured','getHooksForTest','bs:addPlatformDetails:','zZyHE','skipped','name','appendTestItemLog','beforeAll','duration','dPieM','getTime','test','lsUFK','getFileName','BEFORE_EACH','pending','bind','root','failure_type','bPuCZ','forEach','dirname','dQFVM','pFsPm','finished_at','errorsDetailed','title','4270915nQvhag','VvYGc','2754454keURqG','inspect','vAMCz','_paths','Exception\x20in\x20getting\x20file\x20for\x20hook\x20','failure_reason','8jqnChg','TEoBY','push','jest-circus','UJKrE','VCfAe','failed','CKNdQ','afterEach','aAIcy','setTestUUID','PrrBe','retryOf'];a18_0x48e8=function(){return _0x1f2211;};return a18_0x48e8();}const {isTestObservabilitySession,PathHelper,debug,failureData,getFailureType,isInternalHook}=require(a18_0x3ee920(0x11b)),SessionHandler=require(a18_0x3ee920(0xd3)),{v4:uuidv4}=require(a18_0x3ee920(0x10e)),{name,version}=require(a18_0x3ee920(0x137)),stackTrace=require(a18_0x3ee920(0x104)),path=require(a18_0x3ee920(0x148)),fs=require('fs'),TestDetails=require(a18_0x3ee920(0x123)),{FRAMEWORKS}=require(a18_0x3ee920(0x121)),{o11yClassErrorHandler}=require('../../../helpers/test-observability/error-handler'),{getGitMetaData}=require(a18_0x3ee920(0xfd)),a18_0x1402c9={};a18_0x1402c9['STATE_PASSED']=a18_0x3ee920(0x101),a18_0x1402c9['STATE_FAILED']=a18_0x3ee920(0xc9),a18_0x1402c9[a18_0x3ee920(0x107)]=a18_0x3ee920(0xaf);const {STATE_PASSED,STATE_PENDING,STATE_FAILED}=a18_0x1402c9,a18_0x1bef54={};a18_0x1bef54[a18_0x3ee920(0xa7)]=a18_0x3ee920(0x12f),a18_0x1bef54[a18_0x3ee920(0xd0)]=a18_0x3ee920(0xf5),a18_0x1bef54[a18_0x3ee920(0xd2)]=a18_0x3ee920(0xae),a18_0x1bef54[a18_0x3ee920(0xcb)]=a18_0x3ee920(0x103);const HOOK_TYPES_MAP=a18_0x1bef54;module[a18_0x3ee920(0x132)]=o11yClassErrorHandler(class ObservabilityReporter{constructor(){const _0x29a40f=a18_0x3ee920,_0x14069d={'eERYl':_0x29a40f(0xdd),'RMpJE':function(_0xc80559){return _0xc80559();}},_0x33eb84=_0x14069d['eERYl'][_0x29a40f(0x116)]('|');let _0x50fbec=0x0;while(!![]){switch(_0x33eb84[_0x50fbec++]){case'0':this[_0x29a40f(0xf3)]=_0x14069d[_0x29a40f(0xd4)](isTestObservabilitySession);continue;case'1':this[_0x29a40f(0x13b)]=[];continue;case'2':this[_0x29a40f(0x164)]=![];continue;case'3':this['_paths']=new PathHelper({'cwd':process[_0x29a40f(0x13d)]()},this[_0x29a40f(0x135)][_0x29a40f(0x115)]);continue;case'4':this[_0x29a40f(0xfb)]=[];continue;case'5':this[_0x29a40f(0x135)]=this[_0x29a40f(0x15b)]();continue;case'6':this[_0x29a40f(0xde)]=null;continue;}break;}}['getTestEnv']=()=>{const _0x466110=a18_0x3ee920,_0x42310d={'FSlgn':_0x466110(0x105),'bPuCZ':function(_0x4bb53a){return _0x4bb53a();}};return{'ci':_0x42310d[_0x466110(0x117)],'key':_0x42310d[_0x466110(0xb3)](uuidv4),'version':version,'collector':'js-'+name};};[a18_0x3ee920(0x13e)](){const _0x968adb=a18_0x3ee920;process['removeAllListeners']('bs:addLog:'+process['pid']),process['on'](_0x968adb(0x152)+process[_0x968adb(0x119)],this['appendTestItemLog'][_0x968adb(0xb0)](this)),process[_0x968adb(0xe5)](_0x968adb(0xa2)+process['pid']),process['on'](_0x968adb(0xa2)+process[_0x968adb(0x119)],this['appendTestPlatform'][_0x968adb(0xb0)](this));}[a18_0x3ee920(0x150)]=async _0x2488b5=>{const _0x48ec2b=a18_0x3ee920,_0x457a5c={'rRiqY':function(_0x22260e,_0x97fbab){return _0x22260e>_0x97fbab;},'lXfZU':function(_0x43e263,_0x514614){return _0x43e263===_0x514614;},'kRmaa':'TestRunStarted','RaSxV':function(_0x45dbab,_0x3b87d3){return _0x45dbab(_0x3b87d3);}};try{const _0x49b85a=this[_0x48ec2b(0xe1)];this[_0x48ec2b(0xe1)]=_0x2488b5,_0x2488b5[_0x48ec2b(0xcf)]=null,_0x2488b5['testAnalyticsId']=TestDetails[_0x48ec2b(0xcd)](process[_0x48ec2b(0x119)]+_0x48ec2b(0x14c)),_0x2488b5['started_at']=new Date()[_0x48ec2b(0x14b)](),_0x457a5c[_0x48ec2b(0x147)](_0x2488b5[_0x48ec2b(0x151)],0x0)&&_0x49b85a&&_0x457a5c[_0x48ec2b(0x113)](_0x49b85a['title'],_0x2488b5[_0x48ec2b(0xba)])?(_0x2488b5[_0x48ec2b(0xcf)]=_0x49b85a[_0x48ec2b(0xd8)],await this[_0x48ec2b(0xf2)](_0x2488b5,undefined,![],_0x457a5c[_0x48ec2b(0x13a)]),_0x49b85a[_0x48ec2b(0x11e)]=STATE_FAILED,await this[_0x48ec2b(0xf2)](_0x49b85a,undefined,!![])):await this['sendTestRunEvent'](_0x2488b5,undefined,![],_0x457a5c['kRmaa']);}catch(_0x370cb3){_0x457a5c[_0x48ec2b(0x136)](debug,'Exception\x20in\x20populating\x20test\x20data\x20for\x20test\x20start\x20with\x20error\x20:\x20'+_0x370cb3);}};[a18_0x3ee920(0x112)](_0x4377ec){const _0x346517=a18_0x3ee920,_0x2e0f29={};_0x2e0f29[_0x346517(0xbf)]=function(_0x4bec7d,_0x59ee26){return _0x4bec7d!==_0x59ee26;},_0x2e0f29[_0x346517(0xb6)]=_0x346517(0xab);const _0x582a39=_0x2e0f29;if(_0x582a39[_0x346517(0xbf)](_0x4377ec[_0x346517(0x111)],_0x582a39[_0x346517(0xb6)]))return'\x22'+_0x4377ec[_0x346517(0x111)]+_0x346517(0xda)+(_0x4377ec[_0x346517(0x12a)]&&_0x4377ec['parent'][_0x346517(0xa5)])+'\x22';return _0x4377ec[_0x346517(0xa5)];}[a18_0x3ee920(0xf2)]=async(_0x41799b,_0x11f666=undefined,_0x38197c=![],_0x4960d2='TestRunFinished')=>{const _0x48256b=a18_0x3ee920,_0x4b88af={'hPLqR':_0x48256b(0x12b),'aAIcy':_0x48256b(0x125),'dwUeE':_0x48256b(0xb2),'pFsPm':_0x48256b(0xe7),'yrLkC':_0x48256b(0x13f),'zZyHE':'result','dPieM':_0x48256b(0xc2),'vqOBz':function(_0x4e465f,_0x3dc5d2){return _0x4e465f(_0x3dc5d2);},'ngrSM':'jest-circus','FNGDw':function(_0x4911db,_0x5e92c2){return _0x4911db(_0x5e92c2);},'jqhHo':_0x48256b(0x10d),'iTyYY':function(_0x3e614,_0x173675){return _0x3e614!==_0x173675;},'IYkls':_0x48256b(0xab),'CKNdQ':function(_0x2edd7f,_0x57d7c2){return _0x2edd7f!==_0x57d7c2;},'pTmGR':_0x48256b(0xeb),'HLUSk':function(_0x4a93c5,_0x3e9839){return _0x4a93c5!==_0x3e9839;},'PrrBe':function(_0x4bcc14,_0x250dea){return _0x4bcc14!==_0x250dea;},'CdboQ':_0x48256b(0x127),'DYrpa':_0x48256b(0x155),'Rnygj':function(_0x21d628,_0x583629){return _0x21d628===_0x583629;},'FDLzH':'TestRunSkipped','BDkQD':_0x48256b(0xa4),'TQSOe':function(_0x6cdad2,_0x2e9fdd){return _0x6cdad2>_0x2e9fdd;},'ptrkO':_0x48256b(0xc9),'QLlfo':_0x48256b(0x101),'IQEek':function(_0x3d230c,_0x3305b1){return _0x3d230c-_0x3305b1;},'zboFJ':function(_0xec0518,_0x1e1ee4){return _0xec0518(_0x1e1ee4);},'VCfAe':function(_0xf778eb,_0x16355a){return _0xf778eb===_0x16355a;},'VvYGc':'started_at','GMYhA':_0x48256b(0xb8),'GWGmj':function(_0x250d92,_0x2c9202){return _0x250d92===_0x2c9202;},'mvhdC':'HookRunFinished','iKlEn':function(_0x184530,_0x2e20a0){return _0x184530!==_0x2e20a0;},'Xlotp':_0x48256b(0xf0),'WoOZp':'backtrace','GBZpB':_0x48256b(0xee),'BFcUp':'expanded','UJKrE':'TestRunFinished','cpnRQ':function(_0x34816c,_0x4bb9a8){return _0x34816c===_0x4bb9a8;},'JOGHZ':_0x48256b(0xea),'dUYpZ':'beforeAll','Wlydm':function(_0x321ad2,_0xa1792f){return _0x321ad2(_0xa1792f);}};try{if(_0x41799b['fn']&&_0x41799b['fn'][_0x48256b(0x156)]()[_0x48256b(0x15d)](/browserstack internal helper hook/))return;await this[_0x48256b(0x128)]();let _0x5efd9f;try{_0x5efd9f=this[_0x48256b(0x122)](_0x41799b);}catch(_0x4a2697){_0x4b88af[_0x48256b(0x109)](debug,_0x48256b(0xdb)+_0x4a2697),_0x5efd9f=null;}if(_0x5efd9f[_0x48256b(0xdf)](_0x4b88af[_0x48256b(0x146)]))return;const _0x2c4e5b=_0x4b88af[_0x48256b(0x153)](require,_0x4b88af[_0x48256b(0x106)]);let _0x2c065e=[];if(_0x4b88af['iTyYY'](_0x41799b['errorsDetailed'],undefined))_0x2c065e=[_0x41799b[_0x48256b(0xb9)],_0x4b88af['IYkls']];else _0x4b88af[_0x48256b(0xca)](_0x11f666,undefined)?_0x2c065e=[_0x11f666,_0x4b88af['pTmGR']]:_0x2c065e=[];const _0xdfc962=_0x4b88af['HLUSk'](_0x41799b[_0x48256b(0xb9)],undefined)?_0x2c4e5b[_0x48256b(0xbe)](_0x41799b['errorsDetailed'][0x0]):_0x4b88af[_0x48256b(0xce)](_0x11f666,undefined)?_0x11f666['toString']():undefined,_0x4598f0=_0x5efd9f?this[_0x48256b(0xc0)]['prefixTestPath'](this[_0x48256b(0x122)](_0x41799b)):_0x4b88af['CdboQ'],_0xcd9f9d={'framework':FRAMEWORKS[_0x48256b(0x144)],'uuid':_0x41799b['testAnalyticsId']||_0x41799b['hookAnalyticsId'],'name':this[_0x48256b(0x112)](_0x41799b),'body':{'lang':_0x4b88af[_0x48256b(0xd9)],'code':_0x41799b['fn'][_0x48256b(0x156)]()},'scopes':this[_0x48256b(0x139)](_0x41799b),'file_name':_0x4598f0,'vc_filepath':this['_gitConfigPath']&&_0x5efd9f?path[_0x48256b(0x12c)](this[_0x48256b(0xde)],_0x5efd9f):null,'location':_0x4598f0,'result':_0x4b88af[_0x48256b(0x140)](_0x4960d2,_0x4b88af['FDLzH'])?_0x4b88af[_0x48256b(0xfc)]:this['analyticsResult'](_0x41799b[_0x48256b(0xb9)]&&_0x4b88af[_0x48256b(0xd5)](_0x41799b['errorsDetailed'][_0x48256b(0xdc)],0x0)?_0x4b88af[_0x48256b(0x14e)]:_0x4b88af[_0x48256b(0x158)]),'failure_reason':_0xdfc962,'duration_in_ms':_0x41799b[_0x48256b(0xa8)]||(_0x4960d2[_0x48256b(0x15d)](/Finished/)||_0x4960d2[_0x48256b(0x15d)](/Skipped/)?_0x4b88af[_0x48256b(0x143)](Date[_0x48256b(0xf6)](),new Date(_0x41799b[_0x48256b(0x114)])[_0x48256b(0xaa)]()):null),'started_at':_0x41799b[_0x48256b(0x114)],'finished_at':_0x4960d2[_0x48256b(0x15d)](/Finished/)||_0x4960d2[_0x48256b(0x15d)](/Skipped/)?new Date()[_0x48256b(0x14b)]():null,'failure':failureData['apply'](null,_0x2c065e),'failure_type':!_0xdfc962?null:_0x4b88af[_0x48256b(0x149)](getFailureType,_0xdfc962),'retry_of':_0x41799b['retryOf']};_0x4b88af['VCfAe'](_0x4960d2,_0x4b88af[_0x48256b(0xf4)])&&!_0xcd9f9d[_0x4b88af[_0x48256b(0xbc)]]&&(_0xcd9f9d[_0x4b88af[_0x48256b(0xbc)]]=_0xcd9f9d[_0x4b88af[_0x48256b(0x10f)]]);if(_0x4960d2['match'](/HookRun/))[_0xcd9f9d[_0x48256b(0xea)],_0xcd9f9d[_0x48256b(0xa5)]]=[_0x41799b[_0x48256b(0x111)],this[_0x48256b(0x112)](_0x41799b)],_0x4b88af['GWGmj'](_0x4960d2,_0x4b88af[_0x48256b(0xf9)])&&(_0x4b88af[_0x48256b(0x134)](_0xcd9f9d[_0x48256b(0x100)],_0x4b88af[_0x48256b(0x14e)])&&(_0xcd9f9d['result']=_0x4b88af['QLlfo']));else _0x4960d2[_0x48256b(0x15d)](/TestRun/)&&this[_0x48256b(0x11a)](_0x41799b);const _0x293b0d=_0xcd9f9d[_0x4b88af[_0x48256b(0x161)]][0x0];_0x293b0d&&(_0xcd9f9d[_0x4b88af[_0x48256b(0xf7)]]=_0x293b0d[_0x4b88af[_0x48256b(0x12d)]],_0xcd9f9d[_0x4b88af[_0x48256b(0xf1)]]=_0x293b0d[_0x4b88af[_0x48256b(0x11c)]]);[_0x4b88af[_0x48256b(0xc7)],_0x4b88af[_0x48256b(0xf4)]][_0x48256b(0xdf)](_0x4960d2)&&(this[_0x48256b(0x13b)]['push'](_0xcd9f9d),_0xcd9f9d[_0x48256b(0x15a)]=this[_0x48256b(0x165)](_0x41799b),this['resetTestHooks'](_0x41799b));const _0x8d5066={'event_type':_0x4b88af['cpnRQ'](_0x4960d2,_0x4b88af[_0x48256b(0xf4)])?_0x4b88af[_0x48256b(0xc7)]:_0x4960d2};_0x4960d2['match'](/HookRun/)?(_0xcd9f9d[_0x4b88af[_0x48256b(0x10c)]]=HOOK_TYPES_MAP[_0xcd9f9d[_0x4b88af['JOGHZ']]],_0x8d5066[_0x4b88af[_0x48256b(0xcc)]]=_0xcd9f9d):_0x8d5066[_0x4b88af[_0x48256b(0xb7)]]=_0xcd9f9d;_0x4b88af[_0x48256b(0xd5)](this[_0x48256b(0xfb)][_0x48256b(0xdc)],0x0)&&[_0x4b88af[_0x48256b(0xc7)],_0x4b88af[_0x48256b(0xf4)]][_0x48256b(0xdf)](_0x4960d2)&&(this['hook_data'][_0x48256b(0xb4)](async _0x2e41f8=>{const _0xc07331=_0x48256b,_0x449bff=_0x4b88af[_0xc07331(0xe9)][_0xc07331(0x116)]('|');let _0x33904c=0x0;while(!![]){switch(_0x449bff[_0x33904c++]){case'0':await SessionHandler['uploadEventData'](_0x2e41f8);continue;case'1':_0x2e41f8[_0x4b88af['aAIcy']][_0x4b88af['dwUeE']]=_0x8d5066[_0x4b88af[_0xc07331(0xb7)]][_0x4b88af[_0xc07331(0x118)]];continue;case'2':_0x2e41f8[_0x4b88af[_0xc07331(0xcc)]][_0x4b88af[_0xc07331(0x161)]]=_0x8d5066[_0x4b88af[_0xc07331(0xb7)]][_0x4b88af[_0xc07331(0x161)]];continue;case'3':_0x2e41f8[_0x4b88af[_0xc07331(0xcc)]][_0x4b88af[_0xc07331(0xa3)]]=_0x8d5066[_0x4b88af[_0xc07331(0xb7)]][_0x4b88af[_0xc07331(0xa3)]];continue;case'4':_0x2e41f8[_0x4b88af[_0xc07331(0xcc)]][_0x4b88af[_0xc07331(0xa9)]]=_0x8d5066[_0x4b88af[_0xc07331(0xb7)]][_0x4b88af[_0xc07331(0xa9)]];continue;}break;}}),this[_0x48256b(0xfb)]=[]);if(_0x4b88af['Rnygj'](this[_0x48256b(0xe6)],_0x41799b['type'])){this[_0x48256b(0xfb)]['push'](_0x8d5066);return;}_0x4b88af[_0x48256b(0xc8)](this[_0x48256b(0xe6)],_0x4b88af[_0x48256b(0x13c)])&&_0x8d5066[_0x4b88af[_0x48256b(0xb7)]]&&(_0x8d5066[_0x4b88af[_0x48256b(0xb7)]][_0x4b88af['zZyHE']]=_0x4b88af['BDkQD'],_0x8d5066[_0x4b88af[_0x48256b(0xb7)]][_0x4b88af['yrLkC']]=null,_0x8d5066[_0x4b88af[_0x48256b(0xb7)]][_0x4b88af[_0x48256b(0x118)]]=null),await SessionHandler[_0x48256b(0x15c)](_0x8d5066);}catch(_0x5cbabf){_0x4b88af[_0x48256b(0x130)](debug,_0x48256b(0x12e)+_0x4960d2+_0x48256b(0xf8)+_0x5cbabf);}};['findGitConfig'](_0x4b164a){const _0xf0d6fc=a18_0x3ee920,_0x4bd493={};_0x4bd493[_0xf0d6fc(0xe8)]=function(_0x4ce1c2,_0x1e6f59){return _0x4ce1c2==_0x1e6f59;},_0x4bd493[_0xf0d6fc(0x15e)]=function(_0x384c87,_0x5a1e5e){return _0x384c87===_0x5a1e5e;},_0x4bd493[_0xf0d6fc(0x11f)]=function(_0x3c4500,_0x107323){return _0x3c4500===_0x107323;},_0x4bd493[_0xf0d6fc(0x145)]=_0xf0d6fc(0x110),_0x4bd493[_0xf0d6fc(0xc4)]=_0xf0d6fc(0x14a);const _0x3f160f=_0x4bd493,_0x38d9d4=path['sep'];if(_0x3f160f[_0xf0d6fc(0xe8)](_0x4b164a,null)||_0x3f160f[_0xf0d6fc(0x15e)](_0x4b164a,'')||_0x3f160f['DDMFt'](_0x4b164a,_0x38d9d4))return null;try{return fs['statSync'](path['join'](_0x4b164a,_0x3f160f[_0xf0d6fc(0x145)],_0x3f160f[_0xf0d6fc(0xc4)])),_0x4b164a;}catch(_0x4e58d3){const _0x483671=path[_0xf0d6fc(0xb5)](_0x4b164a);return this[_0xf0d6fc(0xfa)](_0x483671);}}[a18_0x3ee920(0xa6)]=async _0x57d665=>{const _0x8a6751=a18_0x3ee920,_0x3ba093={'lyQuP':_0x8a6751(0x163),'sTaNX':function(_0x3b5738,_0x1d3b54){return _0x3b5738(_0x1d3b54);}},_0x50f811=TestDetails[_0x8a6751(0xef)](process[_0x8a6751(0x119)]+_0x8a6751(0x133)),_0x3bb1ea=TestDetails[_0x8a6751(0xef)](process['pid']+_0x8a6751(0x14c));try{(_0x50f811||this['current_hook']&&!this[_0x8a6751(0x120)][_0x8a6751(0x157)])&&(_0x57d665['hook_run_uuid']=_0x50f811);!_0x57d665['hook_run_uuid']&&_0x3bb1ea&&(_0x57d665[_0x8a6751(0xe0)]=_0x3bb1ea);if(_0x57d665['hook_run_uuid']||_0x57d665[_0x8a6751(0xe0)]){const _0x1be6cf={};_0x1be6cf['event_type']=_0x3ba093[_0x8a6751(0x124)],_0x1be6cf['logs']=[_0x57d665],await SessionHandler[_0x8a6751(0x15c)](_0x1be6cf);}}catch(_0x4a8628){_0x3ba093['sTaNX'](debug,'Exception\x20in\x20uploading\x20log\x20data\x20to\x20Observability\x20with\x20error\x20:\x20'+_0x4a8628);}};['appendTestPlatform']=async _0x568fdd=>{const _0x2336a1=a18_0x3ee920,_0xec8f27={'qsTUy':'http_response','bcdSL':_0x2336a1(0x138),'jXjiK':function(_0x57aa11,_0x41cd68){return _0x57aa11(_0x41cd68);}};try{const _0x240ff8={'uuid':_0x568fdd[_0x2336a1(0x10e)]||TestDetails['getTestUUID'](process['pid']+_0x2336a1(0x14c)),'integrations':_0x568fdd[_0xec8f27[_0x2336a1(0x154)]]},_0x1a3f91={};_0x1a3f91['event_type']=_0xec8f27[_0x2336a1(0xec)],_0x1a3f91[_0x2336a1(0xe7)]=_0x240ff8,await SessionHandler[_0x2336a1(0x15c)](_0x1a3f91);}catch(_0x296b0d){_0xec8f27[_0x2336a1(0xff)](debug,_0x2336a1(0x11d)+_0x296b0d);}};async[a18_0x3ee920(0x128)](){const _0x39743e=a18_0x3ee920,_0x169a75={'LLSPC':function(_0xc6ccc3){return _0xc6ccc3();}};if(this[_0x39743e(0x164)])return this[_0x39743e(0xde)];const _0x370e4d=await _0x169a75['LLSPC'](getGitMetaData);_0x370e4d&&(this[_0x39743e(0xde)]=_0x370e4d[_0x39743e(0xb1)]),this[_0x39743e(0x164)]=!![];}[a18_0x3ee920(0x162)](_0x58328e){const _0x245abd=a18_0x3ee920,_0xb64f2c={};_0xb64f2c['UrhpG']=_0x245abd(0x101),_0xb64f2c[_0x245abd(0x129)]=_0x245abd(0xaf),_0xb64f2c[_0x245abd(0xe2)]=_0x245abd(0xc9);const _0x4e1500=_0xb64f2c,_0x23e29a={};return _0x23e29a[STATE_PASSED]=_0x4e1500['UrhpG'],_0x23e29a[STATE_PENDING]=_0x4e1500[_0x245abd(0x129)],_0x23e29a[STATE_FAILED]=_0x4e1500['RjaZd'],_0x23e29a[_0x58328e];}[a18_0x3ee920(0x139)](_0x654f80){const _0x2ebdf7=a18_0x3ee920,_0x5b74c1={};_0x5b74c1[_0x2ebdf7(0xfe)]=function(_0x4a3e2a,_0x450a48){return _0x4a3e2a!==_0x450a48;},_0x5b74c1[_0x2ebdf7(0x126)]=function(_0x4df308,_0x4ecab1){return _0x4df308!==_0x4ecab1;},_0x5b74c1[_0x2ebdf7(0xe3)]=_0x2ebdf7(0x131);const _0x325285=_0x5b74c1,_0x732bd9=[];if(_0x654f80&&_0x654f80[_0x2ebdf7(0x12a)]){let _0x4a8903=_0x654f80[_0x2ebdf7(0x12a)];while(_0x4a8903&&_0x325285['CgUmv'](_0x4a8903['name'],'')&&_0x325285[_0x2ebdf7(0x126)](_0x4a8903[_0x2ebdf7(0xa5)],_0x325285[_0x2ebdf7(0xe3)])){_0x732bd9[_0x2ebdf7(0xc5)](_0x4a8903[_0x2ebdf7(0xa5)]),_0x4a8903=_0x4a8903[_0x2ebdf7(0x12a)];}}return _0x732bd9['reverse'](),_0x732bd9;}[a18_0x3ee920(0x122)]=_0x639400=>{const _0x4236c7=a18_0x3ee920;if(_0x639400['asyncError']){const _0x4fc908=stackTrace[_0x4236c7(0x10a)][_0x4236c7(0x14f)](stackTrace,_0x639400['asyncError']);return _0x4fc908[0x0][_0x4236c7(0xad)]();}if(_0x639400[_0x4236c7(0x15f)])return _0x639400[_0x4236c7(0x15f)];return null;};[a18_0x3ee920(0x11a)]=_0x51bc04=>{const _0x487099=a18_0x3ee920;if(!_0x51bc04||!_0x51bc04[_0x487099(0x12a)])return;_0x51bc04[_0x487099(0x12a)][_0x487099(0x15a)]['forEach'](_0x55d3f7=>{const _0x756502=_0x487099;!_0x55d3f7[_0x756502(0x10b)]&&(_0x55d3f7[_0x756502(0x10b)]=TestDetails[_0x756502(0xcd)](process[_0x756502(0x119)]+_0x756502(0x133)));}),this['mapTestHooks'](_0x51bc04[_0x487099(0x12a)]);};['resetTestHooks']=_0x2ae94b=>{const _0x20385f=a18_0x3ee920,_0x28ec4f={};_0x28ec4f[_0x20385f(0xac)]=_0x20385f(0xd2),_0x28ec4f['vMIvU']=_0x20385f(0xcb);const _0x451b5c=_0x28ec4f;if(!_0x2ae94b||!_0x2ae94b[_0x20385f(0x12a)])return;_0x2ae94b[_0x20385f(0x12a)][_0x20385f(0x15a)]['forEach'](_0x13378c=>{const _0x480c53=_0x20385f;[_0x451b5c[_0x480c53(0xac)],_0x451b5c[_0x480c53(0x14d)]][_0x480c53(0xdf)](_0x13378c[_0x480c53(0x111)])&&_0x13378c[_0x480c53(0x10b)]&&(_0x13378c['hookAnalyticsId']=null);}),this[_0x20385f(0x11a)](_0x2ae94b[_0x20385f(0x12a)]);};['isJestInternalHook'](_0x1f6dbc){const _0x1395d6=a18_0x3ee920,_0x6df9da={'MLjMO':_0x1395d6(0xc6),'CfOZX':function(_0x5c1966,_0x53694b){return _0x5c1966(_0x53694b);},'vbSGU':function(_0x2dd2c2,_0x10c945){return _0x2dd2c2+_0x10c945;},'TABzx':_0x1395d6(0xc1)};try{const _0x2a54f3=this[_0x1395d6(0x122)](_0x1f6dbc);return _0x2a54f3['includes'](_0x6df9da['MLjMO']);}catch(_0x2e7a03){_0x6df9da['CfOZX'](debug,_0x6df9da['vbSGU'](_0x6df9da['TABzx'],_0x2e7a03));}return![];}[a18_0x3ee920(0x165)]=_0x56e342=>{const _0x30c6a6=a18_0x3ee920,_0x1c6967={'NGBOm':function(_0x47f132,_0xb818b2){return _0x47f132(_0xb818b2);}};if(!_0x56e342||!_0x56e342[_0x30c6a6(0x12a)])return[];const _0x161ef8=[];return _0x56e342[_0x30c6a6(0x12a)][_0x30c6a6(0x15a)][_0x30c6a6(0xb4)](_0x52ffd6=>{const _0x30e895=_0x30c6a6;_0x52ffd6[_0x30e895(0x10b)]&&!_0x1c6967[_0x30e895(0xed)](isInternalHook,_0x52ffd6['fn'])&&!this['isJestInternalHook'](_0x52ffd6)&&_0x161ef8[_0x30e895(0xc5)](_0x52ffd6[_0x30e895(0x10b)]);}),[..._0x161ef8,...this[_0x30c6a6(0x165)](_0x56e342['parent'])];};},[a18_0x3ee920(0x15b),a18_0x3ee920(0x13e),a18_0x3ee920(0x150),a18_0x3ee920(0x112),a18_0x3ee920(0xf2),a18_0x3ee920(0xfa),a18_0x3ee920(0xa6),a18_0x3ee920(0xe4),a18_0x3ee920(0x162),'getHierarchy','getRootParentFile',a18_0x3ee920(0x11a),a18_0x3ee920(0xd6),'getHooksForTest',a18_0x3ee920(0x128)]);
|
|
1
|
+
const a20_0x28e74d=a20_0x5eee;(function(_0x4ee2ed,_0x109ec6){const _0x22ac37=a20_0x5eee,_0x644c=_0x4ee2ed();while(!![]){try{const _0x16236a=-parseInt(_0x22ac37(0x185))/0x1+parseInt(_0x22ac37(0x11c))/0x2+parseInt(_0x22ac37(0xe7))/0x3*(-parseInt(_0x22ac37(0x110))/0x4)+parseInt(_0x22ac37(0xfa))/0x5*(parseInt(_0x22ac37(0x189))/0x6)+parseInt(_0x22ac37(0x1a5))/0x7*(-parseInt(_0x22ac37(0x14b))/0x8)+-parseInt(_0x22ac37(0x13d))/0x9+parseInt(_0x22ac37(0x139))/0xa;if(_0x16236a===_0x109ec6)break;else _0x644c['push'](_0x644c['shift']());}catch(_0xe3b7b){_0x644c['push'](_0x644c['shift']());}}}(a20_0x5a93,0x73b19));const {isTestObservabilitySession,PathHelper,debug,failureData,getFailureType,isInternalHook}=require(a20_0x28e74d(0x125)),SessionHandler=require(a20_0x28e74d(0x1a1)),{v4:uuidv4}=require('uuid'),{name,version}=require(a20_0x28e74d(0x142)),stackTrace=require(a20_0x28e74d(0xe5)),path=require(a20_0x28e74d(0x13a)),fs=require('fs'),TestDetails=require(a20_0x28e74d(0x121)),{FRAMEWORKS}=require(a20_0x28e74d(0x10e)),{o11yClassErrorHandler}=require(a20_0x28e74d(0x129)),{getGitMetaData}=require(a20_0x28e74d(0x16d)),a20_0x10ec98={};a20_0x10ec98[a20_0x28e74d(0xe4)]='passed',a20_0x10ec98[a20_0x28e74d(0x12c)]=a20_0x28e74d(0x10b),a20_0x10ec98['STATE_PENDING']=a20_0x28e74d(0x188);function a20_0x5eee(_0x229f0,_0x40af25){const _0x5a934e=a20_0x5a93();return a20_0x5eee=function(_0x5eeeba,_0x3bcf9e){_0x5eeeba=_0x5eeeba-0xe1;let _0x24aa76=_0x5a934e[_0x5eeeba];return _0x24aa76;},a20_0x5eee(_0x229f0,_0x40af25);}const {STATE_PASSED,STATE_PENDING,STATE_FAILED}=a20_0x10ec98,a20_0x41783c={};a20_0x41783c[a20_0x28e74d(0x134)]=a20_0x28e74d(0x106),a20_0x41783c['afterAll']=a20_0x28e74d(0x192),a20_0x41783c[a20_0x28e74d(0x181)]=a20_0x28e74d(0x168),a20_0x41783c[a20_0x28e74d(0x151)]=a20_0x28e74d(0x18a);const HOOK_TYPES_MAP=a20_0x41783c;module[a20_0x28e74d(0x199)]=o11yClassErrorHandler(class ObservabilityReporter{constructor(){const _0x15f32f=a20_0x28e74d,_0x399d1e={'YOCOH':_0x15f32f(0x13c),'XCoSq':function(_0x3a6f40){return _0x3a6f40();}},_0x8577e6=_0x399d1e['YOCOH'][_0x15f32f(0x170)]('|');let _0x33a7ef=0x0;while(!![]){switch(_0x8577e6[_0x33a7ef++]){case'0':this[_0x15f32f(0x114)]=_0x399d1e[_0x15f32f(0x175)](isTestObservabilitySession);continue;case'1':this[_0x15f32f(0x111)]=null;continue;case'2':this[_0x15f32f(0x132)]=this[_0x15f32f(0x182)]();continue;case'3':this[_0x15f32f(0x19e)]=[];continue;case'4':this[_0x15f32f(0x19f)]=![];continue;case'5':this['hook_data']=[];continue;case'6':this[_0x15f32f(0x15d)]=new PathHelper({'cwd':process[_0x15f32f(0x102)]()},this[_0x15f32f(0x132)][_0x15f32f(0x18b)]);continue;}break;}}['getTestEnv']=()=>{const _0x11b30e=a20_0x28e74d,_0x197625={'euKcR':_0x11b30e(0x1a4),'CpvyD':function(_0x4088b0){return _0x4088b0();}};return{'ci':_0x197625[_0x11b30e(0x166)],'key':_0x197625[_0x11b30e(0x17a)](uuidv4),'version':version,'collector':_0x11b30e(0x190)+name};};[a20_0x28e74d(0x15b)](){const _0x581d82=a20_0x28e74d;process['removeAllListeners']('bs:addLog:'+process['pid']),process['on'](_0x581d82(0xee)+process[_0x581d82(0xff)],this[_0x581d82(0xf0)][_0x581d82(0xf2)](this)),process[_0x581d82(0x15a)](_0x581d82(0x152)+process[_0x581d82(0xff)]),process['on'](_0x581d82(0x152)+process[_0x581d82(0xff)],this[_0x581d82(0xfd)][_0x581d82(0xf2)](this));}[a20_0x28e74d(0x177)]=async _0x118f3d=>{const _0x36650f=a20_0x28e74d,_0x31403f={'fgDbq':function(_0x31425e,_0x470c25){return _0x31425e>_0x470c25;},'Rreuc':function(_0x2d60f7,_0x1518d6){return _0x2d60f7===_0x1518d6;},'RqZWP':'TestRunStarted','UbXIx':function(_0x9c2376,_0xcacb8d){return _0x9c2376(_0xcacb8d);}};try{const _0x1b11b4=this[_0x36650f(0xe1)];this['current_test']=_0x118f3d,_0x118f3d['retryOf']=null,_0x118f3d[_0x36650f(0xf4)]=TestDetails[_0x36650f(0x178)](process[_0x36650f(0xff)]+':testAnalyticsId'),_0x118f3d[_0x36650f(0xf7)]=new Date()['toISOString'](),_0x31403f[_0x36650f(0x10a)](_0x118f3d['_currentRetry'],0x0)&&_0x1b11b4&&_0x31403f[_0x36650f(0x11d)](_0x1b11b4[_0x36650f(0x146)],_0x118f3d['title'])?(_0x118f3d[_0x36650f(0x195)]=_0x1b11b4['testAnalyticsId'],await this['sendTestRunEvent'](_0x118f3d,undefined,![],_0x31403f['RqZWP']),_0x1b11b4['state']=STATE_FAILED,await this[_0x36650f(0xf6)](_0x1b11b4,undefined,!![])):await this[_0x36650f(0xf6)](_0x118f3d,undefined,![],_0x31403f[_0x36650f(0xf3)]);}catch(_0x4c086c){_0x31403f[_0x36650f(0x183)](debug,_0x36650f(0x164)+_0x4c086c);}};['getName'](_0x5e81fe){const _0x5c4869=a20_0x28e74d,_0x26217c={};_0x26217c[_0x5c4869(0x158)]=function(_0x531de9,_0xd2dd5d){return _0x531de9!==_0xd2dd5d;},_0x26217c[_0x5c4869(0xe3)]=_0x5c4869(0x18e);const _0x4d4b06=_0x26217c;if(_0x4d4b06[_0x5c4869(0x158)](_0x5e81fe[_0x5c4869(0x16f)],_0x4d4b06['rUqMq']))return'\x22'+_0x5e81fe[_0x5c4869(0x16f)]+_0x5c4869(0x160)+(_0x5e81fe['parent']&&_0x5e81fe[_0x5c4869(0x13f)]['name'])+'\x22';return _0x5e81fe[_0x5c4869(0x130)];}[a20_0x28e74d(0xf6)]=async(_0xc0bf64,_0x3705b9=undefined,_0x1932f7=![],_0x18a330=a20_0x28e74d(0x19d))=>{const _0x1d27e1=a20_0x28e74d,_0x4d6e12={'knoUH':_0x1d27e1(0x15e),'dYVUe':_0x1d27e1(0x16b),'igdpS':_0x1d27e1(0xe8),'NCeaF':_0x1d27e1(0xec),'qgxSn':'failure_type','WjAJR':_0x1d27e1(0x143),'jCgXD':'failure','upxDh':function(_0x4612d2,_0x3ad679){return _0x4612d2(_0x3ad679);},'suqHK':_0x1d27e1(0x19b),'BpnYe':_0x1d27e1(0x11b),'gYTQJ':function(_0x142c68,_0x2a3fe1){return _0x142c68!==_0x2a3fe1;},'CKwmF':_0x1d27e1(0x18e),'cKGEZ':function(_0x2abb29,_0x47dbb6){return _0x2abb29!==_0x47dbb6;},'ZgcJr':_0x1d27e1(0x123),'OWRjx':function(_0x564890,_0x3f00a5){return _0x564890!==_0x3f00a5;},'TPXeW':_0x1d27e1(0x116),'UCVre':_0x1d27e1(0x128),'bhQqb':function(_0x128bd2,_0x4d0982){return _0x128bd2===_0x4d0982;},'zrjnR':_0x1d27e1(0x10d),'Zzcal':_0x1d27e1(0x169),'TLgws':function(_0x1b2c1d,_0xe1239a){return _0x1b2c1d>_0xe1239a;},'nzDeL':_0x1d27e1(0x10b),'jczzt':_0x1d27e1(0x17e),'ZNyFF':function(_0x11982f,_0x4996b6){return _0x11982f-_0x4996b6;},'IiQah':function(_0x46eea8,_0x23a44b){return _0x46eea8===_0x23a44b;},'KGpqv':_0x1d27e1(0xf7),'NeRsO':_0x1d27e1(0x135),'GNKFM':'HookRunFinished','bIVAV':function(_0xbf23fe,_0x23b239){return _0xbf23fe!==_0x23b239;},'RYkyc':_0x1d27e1(0x10c),'tErdx':_0x1d27e1(0x165),'cAkxm':'failure_reason_expanded','qUysL':'expanded','xnXVX':_0x1d27e1(0x19d),'ZWXiI':_0x1d27e1(0xfb),'mvImG':function(_0x29d85b,_0x311e29){return _0x29d85b===_0x311e29;},'Nurew':function(_0x12abcc,_0x14aa87){return _0x12abcc===_0x14aa87;},'SUUzE':_0x1d27e1(0x134),'BJIzC':function(_0x1ae6df,_0x5078a2){return _0x1ae6df(_0x5078a2);}};try{if(_0xc0bf64['fn']&&_0xc0bf64['fn'][_0x1d27e1(0x137)]()['match'](/browserstack internal helper hook/))return;await this[_0x1d27e1(0x14a)]();let _0x190c53;try{_0x190c53=this[_0x1d27e1(0x159)](_0xc0bf64);}catch(_0xfa1541){_0x4d6e12['upxDh'](debug,_0x1d27e1(0x109)+_0xfa1541),_0x190c53=null;}if(_0x190c53[_0x1d27e1(0x163)](_0x4d6e12[_0x1d27e1(0x119)]))return;const _0x2f252c=_0x4d6e12[_0x1d27e1(0x15c)](require,_0x4d6e12[_0x1d27e1(0x162)]);let _0x35fb00=[];if(_0x4d6e12[_0x1d27e1(0x14d)](_0xc0bf64[_0x1d27e1(0x17f)],undefined))_0x35fb00=[_0xc0bf64['errorsDetailed'],_0x4d6e12[_0x1d27e1(0x17b)]];else _0x4d6e12[_0x1d27e1(0x138)](_0x3705b9,undefined)?_0x35fb00=[_0x3705b9,_0x4d6e12['ZgcJr']]:_0x35fb00=[];const _0x24a806=_0x4d6e12['OWRjx'](_0xc0bf64[_0x1d27e1(0x17f)],undefined)?_0x2f252c[_0x1d27e1(0x19c)](_0xc0bf64['errorsDetailed'][0x0]):_0x4d6e12[_0x1d27e1(0x173)](_0x3705b9,undefined)?_0x3705b9['toString']():undefined,_0x2fddbf=_0x190c53?this[_0x1d27e1(0x15d)]['prefixTestPath'](this[_0x1d27e1(0x159)](_0xc0bf64)):_0x4d6e12[_0x1d27e1(0x19a)],_0xeeb4a3={'framework':FRAMEWORKS[_0x1d27e1(0x113)],'uuid':_0xc0bf64[_0x1d27e1(0xf4)]||_0xc0bf64['hookAnalyticsId'],'name':this['getName'](_0xc0bf64),'body':{'lang':_0x4d6e12[_0x1d27e1(0x194)],'code':_0xc0bf64['fn'][_0x1d27e1(0x137)]()},'scopes':this[_0x1d27e1(0xe9)](_0xc0bf64),'file_name':_0x2fddbf,'vc_filepath':this['_gitConfigPath']&&_0x190c53?path['relative'](this[_0x1d27e1(0x111)],_0x190c53):null,'location':_0x2fddbf,'result':_0x4d6e12[_0x1d27e1(0xea)](_0x18a330,_0x4d6e12[_0x1d27e1(0xef)])?_0x4d6e12['Zzcal']:this['analyticsResult'](_0xc0bf64['errorsDetailed']&&_0x4d6e12['TLgws'](_0xc0bf64[_0x1d27e1(0x17f)][_0x1d27e1(0x186)],0x0)?_0x4d6e12[_0x1d27e1(0xf1)]:_0x4d6e12[_0x1d27e1(0x187)]),'failure_reason':_0x24a806,'duration_in_ms':_0xc0bf64[_0x1d27e1(0x18f)]||(_0x18a330['match'](/Finished/)||_0x18a330[_0x1d27e1(0x18c)](/Skipped/)?_0x4d6e12[_0x1d27e1(0x112)](Date[_0x1d27e1(0x100)](),new Date(_0xc0bf64[_0x1d27e1(0xf7)])['getTime']()):null),'started_at':_0xc0bf64[_0x1d27e1(0xf7)],'finished_at':_0x18a330[_0x1d27e1(0x18c)](/Finished/)||_0x18a330[_0x1d27e1(0x18c)](/Skipped/)?new Date()[_0x1d27e1(0x17c)]():null,'failure':failureData['apply'](null,_0x35fb00),'failure_type':!_0x24a806?null:_0x4d6e12[_0x1d27e1(0x15c)](getFailureType,_0x24a806),'retry_of':_0xc0bf64[_0x1d27e1(0x195)]};_0x4d6e12[_0x1d27e1(0x172)](_0x18a330,_0x4d6e12[_0x1d27e1(0xef)])&&!_0xeeb4a3[_0x4d6e12['KGpqv']]&&(_0xeeb4a3[_0x4d6e12[_0x1d27e1(0x12d)]]=_0xeeb4a3[_0x4d6e12['NeRsO']]);if(_0x18a330[_0x1d27e1(0x18c)](/HookRun/))[_0xeeb4a3[_0x1d27e1(0xfb)],_0xeeb4a3[_0x1d27e1(0x130)]]=[_0xc0bf64[_0x1d27e1(0x16f)],this['getName'](_0xc0bf64)],_0x4d6e12[_0x1d27e1(0xea)](_0x18a330,_0x4d6e12[_0x1d27e1(0x176)])&&(_0x4d6e12[_0x1d27e1(0x127)](_0xeeb4a3[_0x1d27e1(0x143)],_0x4d6e12[_0x1d27e1(0xf1)])&&(_0xeeb4a3[_0x1d27e1(0x143)]=_0x4d6e12[_0x1d27e1(0x187)]));else _0x18a330['match'](/TestRun/)&&this[_0x1d27e1(0x104)](_0xc0bf64);const _0x477dd5=_0xeeb4a3[_0x4d6e12[_0x1d27e1(0x124)]][0x0];_0x477dd5&&(_0xeeb4a3[_0x4d6e12['RYkyc']]=_0x477dd5[_0x4d6e12[_0x1d27e1(0x136)]],_0xeeb4a3[_0x4d6e12[_0x1d27e1(0x147)]]=_0x477dd5[_0x4d6e12['qUysL']]);[_0x4d6e12[_0x1d27e1(0x1a2)],_0x4d6e12[_0x1d27e1(0xef)]][_0x1d27e1(0x163)](_0x18a330)&&(this[_0x1d27e1(0x19e)][_0x1d27e1(0xed)](_0xeeb4a3),_0xeeb4a3[_0x1d27e1(0x150)]=this[_0x1d27e1(0x1a3)](_0xc0bf64),this['resetTestHooks'](_0xc0bf64));const _0x301a07={'event_type':_0x4d6e12['IiQah'](_0x18a330,_0x4d6e12[_0x1d27e1(0xef)])?_0x4d6e12[_0x1d27e1(0x1a2)]:_0x18a330};_0x18a330[_0x1d27e1(0x18c)](/HookRun/)?(_0xeeb4a3[_0x4d6e12[_0x1d27e1(0x103)]]=HOOK_TYPES_MAP[_0xeeb4a3[_0x4d6e12[_0x1d27e1(0x103)]]],_0x301a07[_0x4d6e12['dYVUe']]=_0xeeb4a3):_0x301a07[_0x4d6e12['NCeaF']]=_0xeeb4a3;_0x4d6e12[_0x1d27e1(0x196)](this['hook_data'][_0x1d27e1(0x186)],0x0)&&[_0x4d6e12['xnXVX'],_0x4d6e12[_0x1d27e1(0xef)]]['includes'](_0x18a330)&&(this[_0x1d27e1(0x184)][_0x1d27e1(0x11e)](async _0x252c99=>{const _0x403eed=_0x1d27e1,_0x815594=_0x4d6e12[_0x403eed(0xfc)][_0x403eed(0x170)]('|');let _0x1ea45f=0x0;while(!![]){switch(_0x815594[_0x1ea45f++]){case'0':await SessionHandler[_0x403eed(0x108)](_0x252c99);continue;case'1':_0x252c99[_0x4d6e12[_0x403eed(0x11f)]][_0x4d6e12[_0x403eed(0x148)]]=_0x301a07[_0x4d6e12['NCeaF']][_0x4d6e12[_0x403eed(0x148)]];continue;case'2':_0x252c99[_0x4d6e12[_0x403eed(0x11f)]][_0x4d6e12[_0x403eed(0x117)]]=_0x301a07[_0x4d6e12[_0x403eed(0x12a)]][_0x4d6e12[_0x403eed(0x117)]];continue;case'3':_0x252c99[_0x4d6e12[_0x403eed(0x11f)]][_0x4d6e12[_0x403eed(0x11a)]]=_0x301a07[_0x4d6e12[_0x403eed(0x12a)]][_0x4d6e12['WjAJR']];continue;case'4':_0x252c99[_0x4d6e12[_0x403eed(0x11f)]][_0x4d6e12[_0x403eed(0x124)]]=_0x301a07[_0x4d6e12[_0x403eed(0x12a)]][_0x4d6e12[_0x403eed(0x124)]];continue;}break;}}),this[_0x1d27e1(0x184)]=[]);if(_0x4d6e12[_0x1d27e1(0x105)](this[_0x1d27e1(0x17d)],_0xc0bf64['type'])){this[_0x1d27e1(0x184)]['push'](_0x301a07);return;}_0x4d6e12['Nurew'](this[_0x1d27e1(0x17d)],_0x4d6e12[_0x1d27e1(0x197)])&&_0x301a07[_0x4d6e12[_0x1d27e1(0x12a)]]&&(_0x301a07[_0x4d6e12[_0x1d27e1(0x12a)]][_0x4d6e12[_0x1d27e1(0x11a)]]=_0x4d6e12['Zzcal'],_0x301a07[_0x4d6e12[_0x1d27e1(0x12a)]][_0x4d6e12[_0x1d27e1(0x124)]]=null,_0x301a07[_0x4d6e12['NCeaF']][_0x4d6e12[_0x1d27e1(0x117)]]=null),await SessionHandler[_0x1d27e1(0x108)](_0x301a07);}catch(_0x54b216){_0x4d6e12['BJIzC'](debug,_0x1d27e1(0xf8)+_0x18a330+'\x20with\x20error\x20:\x20'+_0x54b216);}};['findGitConfig'](_0x225a29){const _0x56fbf4=a20_0x28e74d,_0xc172cc={};_0xc172cc['xGoEK']=function(_0x5438dd,_0x5c3086){return _0x5438dd==_0x5c3086;},_0xc172cc[_0x56fbf4(0x155)]=function(_0x1b4d40,_0x25c01e){return _0x1b4d40===_0x25c01e;},_0xc172cc['gvYfZ']=function(_0x5e4a41,_0x45d84e){return _0x5e4a41===_0x45d84e;},_0xc172cc['bURXz']='.git',_0xc172cc[_0x56fbf4(0x1a0)]='config';const _0x14ab5a=_0xc172cc,_0x45754f=path[_0x56fbf4(0x14e)];if(_0x14ab5a['xGoEK'](_0x225a29,null)||_0x14ab5a[_0x56fbf4(0x155)](_0x225a29,'')||_0x14ab5a[_0x56fbf4(0x13b)](_0x225a29,_0x45754f))return null;try{return fs[_0x56fbf4(0x15f)](path[_0x56fbf4(0x153)](_0x225a29,_0x14ab5a[_0x56fbf4(0x179)],_0x14ab5a[_0x56fbf4(0x1a0)])),_0x225a29;}catch(_0x11dea7){const _0xe046ee=path[_0x56fbf4(0x12b)](_0x225a29);return this[_0x56fbf4(0x198)](_0xe046ee);}}[a20_0x28e74d(0xf0)]=async _0x3064ab=>{const _0x13abcd=a20_0x28e74d,_0x1b80b2={'HLfsp':_0x13abcd(0x157),'QzsNb':function(_0x3af50e,_0x1b3041){return _0x3af50e(_0x1b3041);}},_0x5d788c=TestDetails[_0x13abcd(0x13e)](process[_0x13abcd(0xff)]+':hookAnalyticsId'),_0x59c7e9=TestDetails[_0x13abcd(0x13e)](process[_0x13abcd(0xff)]+':testAnalyticsId');try{(_0x5d788c||this[_0x13abcd(0x144)]&&!this['current_hook']['markedStatus'])&&(_0x3064ab[_0x13abcd(0x14c)]=_0x5d788c);!_0x3064ab[_0x13abcd(0x14c)]&&_0x59c7e9&&(_0x3064ab[_0x13abcd(0x10f)]=_0x59c7e9);if(_0x3064ab[_0x13abcd(0x14c)]||_0x3064ab[_0x13abcd(0x10f)]){const _0x2e2767={};_0x2e2767['event_type']=_0x1b80b2[_0x13abcd(0x122)],_0x2e2767[_0x13abcd(0x161)]=[_0x3064ab],await SessionHandler[_0x13abcd(0x108)](_0x2e2767);}}catch(_0x588ade){_0x1b80b2[_0x13abcd(0x120)](debug,_0x13abcd(0x1a6)+_0x588ade);}};[a20_0x28e74d(0xfd)]=async _0x2cad0a=>{const _0x8794b=a20_0x28e74d,_0x2ca89d={'uRvfd':'http_response','XYNZs':_0x8794b(0x171),'UZPsa':function(_0x1918ae,_0x553d9d){return _0x1918ae(_0x553d9d);}};try{const _0x589b50={'uuid':_0x2cad0a[_0x8794b(0x107)]||TestDetails[_0x8794b(0x13e)](process[_0x8794b(0xff)]+_0x8794b(0x115)),'integrations':_0x2cad0a[_0x2ca89d['uRvfd']]},_0x3d796d={};_0x3d796d[_0x8794b(0x118)]=_0x2ca89d[_0x8794b(0x14f)],_0x3d796d[_0x8794b(0xec)]=_0x589b50,await SessionHandler[_0x8794b(0x108)](_0x3d796d);}catch(_0x1ed850){_0x2ca89d[_0x8794b(0x101)](debug,_0x8794b(0x16a)+_0x1ed850);}};async[a20_0x28e74d(0x14a)](){const _0x4f4c59=a20_0x28e74d,_0x25354b={'QwkzD':function(_0x20a828){return _0x20a828();}};if(this[_0x4f4c59(0x19f)])return this[_0x4f4c59(0x111)];const _0x385c08=await _0x25354b[_0x4f4c59(0x12f)](getGitMetaData);_0x385c08&&(this[_0x4f4c59(0x111)]=_0x385c08[_0x4f4c59(0xeb)]),this[_0x4f4c59(0x19f)]=!![];}[a20_0x28e74d(0x193)](_0x1c3930){const _0x317367=a20_0x28e74d,_0x5df3ba={};_0x5df3ba[_0x317367(0x180)]=_0x317367(0x17e),_0x5df3ba[_0x317367(0x167)]='pending',_0x5df3ba[_0x317367(0x12e)]=_0x317367(0x10b);const _0x21e524=_0x5df3ba,_0x345e16={};return _0x345e16[STATE_PASSED]=_0x21e524[_0x317367(0x180)],_0x345e16[STATE_PENDING]=_0x21e524['TDSyI'],_0x345e16[STATE_FAILED]=_0x21e524['IwThR'],_0x345e16[_0x1c3930];}[a20_0x28e74d(0xe9)](_0x39d348){const _0x100a7a=a20_0x28e74d,_0x1e07c3={};_0x1e07c3[_0x100a7a(0x174)]=function(_0x572571,_0x33a365){return _0x572571!==_0x33a365;},_0x1e07c3[_0x100a7a(0x145)]='ROOT_DESCRIBE_BLOCK';const _0x2db11c=_0x1e07c3,_0x1dbbb0=[];if(_0x39d348&&_0x39d348[_0x100a7a(0x13f)]){let _0x4ce429=_0x39d348[_0x100a7a(0x13f)];while(_0x4ce429&&_0x2db11c[_0x100a7a(0x174)](_0x4ce429[_0x100a7a(0x130)],'')&&_0x2db11c['vUnQZ'](_0x4ce429['name'],_0x2db11c[_0x100a7a(0x145)])){_0x1dbbb0['push'](_0x4ce429['name']),_0x4ce429=_0x4ce429[_0x100a7a(0x13f)];}}return _0x1dbbb0[_0x100a7a(0x126)](),_0x1dbbb0;}['getRootParentFile']=_0x17abed=>{const _0x5d0ba1=a20_0x28e74d;if(_0x17abed['asyncError']){const _0x4ad8f2=stackTrace[_0x5d0ba1(0xe2)]['call'](stackTrace,_0x17abed['asyncError']);return _0x4ad8f2[0x0][_0x5d0ba1(0x149)]();}if(_0x17abed[_0x5d0ba1(0x16c)])return _0x17abed[_0x5d0ba1(0x16c)];return null;};[a20_0x28e74d(0x104)]=_0x176573=>{const _0x302278=a20_0x28e74d;if(!_0x176573||!_0x176573[_0x302278(0x13f)])return;_0x176573['parent'][_0x302278(0x150)][_0x302278(0x11e)](_0x4480c6=>{const _0x13ffcb=_0x302278;!_0x4480c6['hookAnalyticsId']&&(_0x4480c6['hookAnalyticsId']=TestDetails[_0x13ffcb(0x178)](process[_0x13ffcb(0xff)]+_0x13ffcb(0xf5)));}),this[_0x302278(0x104)](_0x176573[_0x302278(0x13f)]);};[a20_0x28e74d(0xf9)]=_0x49081=>{const _0x3e8093=a20_0x28e74d,_0x39448c={};_0x39448c[_0x3e8093(0xfe)]=_0x3e8093(0x181),_0x39448c['WAhYi']=_0x3e8093(0x151);const _0x49d05d=_0x39448c;if(!_0x49081||!_0x49081[_0x3e8093(0x13f)])return;_0x49081['parent']['hooks'][_0x3e8093(0x11e)](_0x2603a3=>{const _0x2e956d=_0x3e8093;[_0x49d05d[_0x2e956d(0xfe)],_0x49d05d[_0x2e956d(0x18d)]][_0x2e956d(0x163)](_0x2603a3[_0x2e956d(0x16f)])&&_0x2603a3['hookAnalyticsId']&&(_0x2603a3[_0x2e956d(0x131)]=null);}),this[_0x3e8093(0x104)](_0x49081[_0x3e8093(0x13f)]);};[a20_0x28e74d(0x156)](_0x490614){const _0x4f4ad4=a20_0x28e74d,_0x5e3898={'vWVtu':_0x4f4ad4(0x19b),'tBPeJ':function(_0x42e195,_0x3b292d){return _0x42e195(_0x3b292d);},'lfddH':function(_0x280e41,_0x2c5ee5){return _0x280e41+_0x2c5ee5;},'MTFNP':_0x4f4ad4(0x191)};try{const _0x5999a6=this['getRootParentFile'](_0x490614);return _0x5999a6[_0x4f4ad4(0x163)](_0x5e3898[_0x4f4ad4(0x141)]);}catch(_0x49bbc3){_0x5e3898[_0x4f4ad4(0xe6)](debug,_0x5e3898[_0x4f4ad4(0x133)](_0x5e3898[_0x4f4ad4(0x140)],_0x49bbc3));}return![];}['getHooksForTest']=_0x5e176b=>{const _0x48d534=a20_0x28e74d,_0x246de9={'PREPg':function(_0x224461,_0x2a4634){return _0x224461(_0x2a4634);}};if(!_0x5e176b||!_0x5e176b[_0x48d534(0x13f)])return[];const _0x2d9b16=[];return _0x5e176b[_0x48d534(0x13f)][_0x48d534(0x150)]['forEach'](_0x2f351d=>{const _0x5e2e13=_0x48d534;_0x2f351d[_0x5e2e13(0x131)]&&!_0x246de9[_0x5e2e13(0x154)](isInternalHook,_0x2f351d['fn'])&&!this[_0x5e2e13(0x156)](_0x2f351d)&&_0x2d9b16[_0x5e2e13(0xed)](_0x2f351d[_0x5e2e13(0x131)]);}),[..._0x2d9b16,...this[_0x48d534(0x1a3)](_0x5e176b[_0x48d534(0x13f)])];};},['getTestEnv',a20_0x28e74d(0x15b),a20_0x28e74d(0x177),a20_0x28e74d(0x16e),a20_0x28e74d(0xf6),'findGitConfig',a20_0x28e74d(0xf0),a20_0x28e74d(0xfd),a20_0x28e74d(0x193),a20_0x28e74d(0xe9),a20_0x28e74d(0x159),a20_0x28e74d(0x104),a20_0x28e74d(0xf9),'getHooksForTest',a20_0x28e74d(0x14a)]);function a20_0x5a93(){const _0x3194c2=['hookAnalyticsId','_testEnv','lfddH','beforeAll','finished_at','tErdx','toString','cKGEZ','15842790pYDJQK','path','gvYfZ','0|3|2|6|5|4|1','3475404VYUNUv','getTestUUID','parent','MTFNP','vWVtu','../../../../package.json','result','current_hook','xYlDQ','title','cAkxm','igdpS','getFileName','configureGit','2885056FbCApZ','hook_run_uuid','gYTQJ','sep','XYNZs','hooks','afterEach','bs:addPlatformDetails:','join','PREPg','bDCrd','isJestInternalHook','LogCreated','MDPin','getRootParentFile','removeAllListeners','registerListeners','upxDh','_paths','4|2|3|1|0','statSync','\x22\x20hook\x20for\x20\x22','logs','BpnYe','includes','Exception\x20in\x20populating\x20test\x20data\x20for\x20test\x20start\x20with\x20error\x20:\x20','backtrace','euKcR','TDSyI','BEFORE_EACH','skipped','Exception\x20in\x20uploading\x20platform\x20details\x20to\x20Observability\x20with\x20error\x20:\x20','hook_run','file','../../../helpers/helper','getName','type','split','CBTSessionCreated','IiQah','OWRjx','vUnQZ','XCoSq','GNKFM','testStarted','setTestUUID','bURXz','CpvyD','CKwmF','toISOString','hook_failure','passed','errorsDetailed','bfaOl','beforeEach','getTestEnv','UbXIx','hook_data','435107hGCXXd','length','jczzt','pending','70908qXEOWm','AFTER_EACH','location_prefix','match','WAhYi','test','duration','js-','Exception\x20in\x20getting\x20file\x20for\x20hook\x20','AFTER_ALL','analyticsResult','UCVre','retryOf','TLgws','SUUzE','findGitConfig','exports','TPXeW','jest-circus','inspect','TestRunFinished','_testResults','_gitConfigured','VsKka','../../../helpers/test-observability/sessionHandler','xnXVX','getHooksForTest','generic','14IPosqk','Exception\x20in\x20uploading\x20log\x20data\x20to\x20Observability\x20with\x20error\x20:\x20','current_test','parse','rUqMq','STATE_PASSED','stack-trace','tBPeJ','1518756WEYtNR','failure_reason','getHierarchy','bhQqb','root','test_run','push','bs:addLog:','zrjnR','appendTestItemLog','nzDeL','bind','RqZWP','testAnalyticsId',':hookAnalyticsId','sendTestRunEvent','started_at','Exception\x20in\x20populating\x20test\x20data\x20for\x20event\x20','resetTestHooks','350IDmoPx','hook_type','knoUH','appendTestPlatform','ySxku','pid','now','UZPsa','cwd','ZWXiI','mapTestHooks','mvImG','BEFORE_ALL','uuid','uploadEventData','failed\x20to\x20get\x20root\x20parent\x20file\x20','fgDbq','failed','failure_backtrace','TestRunSkipped','../../utils/constants','test_run_uuid','4mVCWnS','_gitConfigPath','ZNyFF','JEST','testObservability',':testAnalyticsId','File\x20path\x20could\x20not\x20be\x20found','qgxSn','event_type','suqHK','WjAJR','util','222242NrSIKb','Rreuc','forEach','dYVUe','QzsNb','./test-details','HLfsp','err','jCgXD','../../../helpers/test-observability/utils','reverse','bIVAV','javascript','../../../helpers/test-observability/error-handler','NCeaF','dirname','STATE_FAILED','KGpqv','IwThR','QwkzD','name'];a20_0x5a93=function(){return _0x3194c2;};return a20_0x5a93();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a21_0x502eae=a21_0xea72;function a21_0x1511(){const _0x49d98b=['rmSync','ydzVp','.json','unlinkSync','24VfmhsN','env','writeFileSync','CsJFN','BnZIz','1509416IULFLj','1716239LZEivY','_test','dirPath','path','getTestUUID','shutdown','DOmwj','getTestRunIdFromTestInfo','getFilePath','2544060jfqPKb','force','BS_TESTOPS_BUILD_HASHED_ID','kdcGJ','setup','stringify','2954766FOMLbM','jest-o11y-','removeTestUUID','.browserstack','recursive','mkdirSync','../../../helpers/helper','existsSync','readFileSync','exports','toString','2698260nuZwPy','yxVOQ','xoncy','tests','13299RAeJex','join','uuid','10698SqOYQe','_projectId','pDbsa'];a21_0x1511=function(){return _0x49d98b;};return a21_0x1511();}(function(_0xba780d,_0x278ae7){const _0x278dc6=a21_0xea72,_0x7b7e8a=_0xba780d();while(!![]){try{const _0x853fd=-parseInt(_0x278dc6(0x185))/0x1+parseInt(_0x278dc6(0x181))/0x2+-parseInt(_0x278dc6(0x188))/0x3+-parseInt(_0x278dc6(0x166))/0x4+-parseInt(_0x278dc6(0x170))/0x5+-parseInt(_0x278dc6(0x176))/0x6+parseInt(_0x278dc6(0x167))/0x7*(parseInt(_0x278dc6(0x161))/0x8);if(_0x853fd===_0x278ae7)break;else _0x7b7e8a['push'](_0x7b7e8a['shift']());}catch(_0x27396f){_0x7b7e8a['push'](_0x7b7e8a['shift']());}}}(a21_0x1511,0xa8411));function a21_0xea72(_0x32bd71,_0x2e62c0){const _0x15116f=a21_0x1511();return a21_0xea72=function(_0xea723e,_0x24069d){_0xea723e=_0xea723e-0x15e;let _0x93df7b=_0x15116f[_0xea723e];return _0x93df7b;},a21_0xea72(_0x32bd71,_0x2e62c0);}const fs=require('fs'),path=require(a21_0x502eae(0x16a)),{v4:uuidv4}=require(a21_0x502eae(0x187)),helper=require(a21_0x502eae(0x17c));class TestDetails{static [a21_0x502eae(0x184)]={};static [a21_0x502eae(0x169)]=path[a21_0x502eae(0x186)](helper['homedir'](),a21_0x502eae(0x179),'jest-o11y-'+process[a21_0x502eae(0x162)][a21_0x502eae(0x172)]);static[a21_0x502eae(0x174)](){const _0x1a921d=a21_0x502eae,_0x4406ca={};_0x4406ca[_0x1a921d(0x182)]=_0x1a921d(0x179);const _0x2493dc=_0x4406ca;this[_0x1a921d(0x169)]=path[_0x1a921d(0x186)](helper['homedir'](),_0x2493dc['yxVOQ'],_0x1a921d(0x177)+process[_0x1a921d(0x162)]['BS_TESTOPS_BUILD_HASHED_ID']),this[_0x1a921d(0x16c)]();const _0x3d3de8={};_0x3d3de8['recursive']=!![],fs[_0x1a921d(0x17b)](this[_0x1a921d(0x169)],_0x3d3de8);}static['getFilePath'](_0x24f06a){const _0x51ba3c=a21_0x502eae,_0x342102={};_0x342102[_0x51ba3c(0x18a)]=function(_0x5d965f,_0x3cd362){return _0x5d965f+_0x3cd362;},_0x342102[_0x51ba3c(0x164)]=_0x51ba3c(0x15f);const _0x12872f=_0x342102;return path['join'](this[_0x51ba3c(0x169)],_0x12872f[_0x51ba3c(0x18a)](_0x24f06a,_0x12872f[_0x51ba3c(0x164)]));}static[a21_0x502eae(0x16e)](_0x2fcb26){const _0x5eeb42=a21_0x502eae,_0xdd6ac5={};_0xdd6ac5['DOmwj']=function(_0x5d41ac,_0x1c6f2c){return _0x5d41ac+_0x1c6f2c;},_0xdd6ac5[_0x5eeb42(0x15e)]=function(_0xde7789,_0x2a3bbc){return _0xde7789+_0x2a3bbc;},_0xdd6ac5[_0x5eeb42(0x165)]=function(_0x259fa4,_0x59f78a){return _0x259fa4+_0x59f78a;},_0xdd6ac5[_0x5eeb42(0x173)]=function(_0x5ef1f6,_0x246b23){return _0x5ef1f6+_0x246b23;};const _0xc1feea=_0xdd6ac5;return _0xc1feea[_0x5eeb42(0x16d)](_0xc1feea[_0x5eeb42(0x15e)](_0xc1feea[_0x5eeb42(0x165)](_0xc1feea[_0x5eeb42(0x173)](_0x2fcb26[_0x5eeb42(0x168)][_0x5eeb42(0x189)],'-'),_0x2fcb26[_0x5eeb42(0x168)]['id']),'-'),_0x2fcb26['retry']);}static[a21_0x502eae(0x16b)](_0x4ad665){const _0x58ff5c=a21_0x502eae,_0x312340=this[_0x58ff5c(0x16f)](_0x4ad665);if(fs[_0x58ff5c(0x17d)](_0x312340)){const _0x228601=JSON['parse'](fs[_0x58ff5c(0x17e)](_0x312340)[_0x58ff5c(0x180)]());return this[_0x58ff5c(0x184)][_0x4ad665]=_0x228601,this['tests'][_0x4ad665][_0x58ff5c(0x187)];}}static['setTestUUID'](_0x355fda){const _0x109aad=a21_0x502eae,_0x477bef={'xoncy':function(_0x3fd01b){return _0x3fd01b();}},_0x5d2830=this['getFilePath'](_0x355fda);return this[_0x109aad(0x184)][_0x355fda]={'uuid':_0x477bef[_0x109aad(0x183)](uuidv4)},fs[_0x109aad(0x163)](_0x5d2830,JSON[_0x109aad(0x175)](this[_0x109aad(0x184)][_0x355fda])),this[_0x109aad(0x184)][_0x355fda][_0x109aad(0x187)];}static[a21_0x502eae(0x178)](_0x18b197){const _0x5b457a=a21_0x502eae,_0x37948c=this[_0x5b457a(0x16f)](_0x18b197);fs[_0x5b457a(0x17d)](_0x37948c)&&fs[_0x5b457a(0x160)](_0x37948c);}static['shutdown'](){const _0x308701=a21_0x502eae,_0x162e1b={};_0x162e1b[_0x308701(0x17a)]=!![],_0x162e1b[_0x308701(0x171)]=!![],fs[_0x308701(0x18b)](this[_0x308701(0x169)],_0x162e1b);}}module[a21_0x502eae(0x17f)]=TestDetails;
|