browserstack-node-sdk 1.55.2 → 1.55.4
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/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.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.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.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/newman/command.js +1 -1
- package/src/bin/newman/helper.js +1 -1
- package/src/bin/newman/reporter/index.js +1 -1
- package/src/bin/newman/scriptRunner.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/puppeteer/patches.js +1 -1
- package/src/bin/puppeteer/sessionDetails.js +1 -1
- package/src/bin/puppeteer/test.setup.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/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.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/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/puppeteer-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/newmanTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.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/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.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/metadata.js +1 -1
- package/src/helpers/patchHelper.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/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/puppeteer-helper.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/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function a42_0x4397(_0x3e97c3,_0x3199a2){const _0x58e21e=a42_0x58e2();return a42_0x4397=function(_0x439747,_0x37aa87){_0x439747=_0x439747-0x1f3;let _0x236937=_0x58e21e[_0x439747];return _0x236937;},a42_0x4397(_0x3e97c3,_0x3199a2);}const a42_0x2a31a1=a42_0x4397;(function(_0x19a50c,_0x273226){const _0x226555=a42_0x4397,_0x50b515=_0x19a50c();while(!![]){try{const _0x4680bf=-parseInt(_0x226555(0x245))/0x1+parseInt(_0x226555(0x242))/0x2*(-parseInt(_0x226555(0x204))/0x3)+-parseInt(_0x226555(0x211))/0x4+-parseInt(_0x226555(0x23d))/0x5+-parseInt(_0x226555(0x251))/0x6*(-parseInt(_0x226555(0x233))/0x7)+-parseInt(_0x226555(0x240))/0x8+parseInt(_0x226555(0x1fa))/0x9;if(_0x4680bf===_0x273226)break;else _0x50b515['push'](_0x50b515['shift']());}catch(_0x1936fb){_0x50b515['push'](_0x50b515['shift']());}}}(a42_0x58e2,0xeca0c));function a42_0x58e2(){const _0x3f4462=['AFvlb','DiURe','WXVZt','constructor','accessibilityOptions.wcagVersion','browserStackExecuteDriver','accessibilityOptions.authToken','PERFORM_SCAN','currentTest','PbQDb','hfRRJ','use','replace','needsReview','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','../../helpers/accessibility-automation/helper','izqTp','playwright-chromium','[A11Y]\x20Error\x20logging\x20SDK-AUTOMATION\x20for\x20browserStackEvaluate:\x20','wcagVersion','scannerProcessingTimeout','No\x20accessibility\x20results\x20were\x20found.','accessibilityOptions.includeIssueType.needsReview','env','includeIssueType','accessibilityOptions.scannerVersion','uuqrd','response','45737676FAVqSf','isMobileScanningEnabledForGroup','UHSry','toLowerCase','wTXEV','platformValidation:\x20Mobile\x20platform\x20already\x20validated.','request','util','getMinVersionForBrowser','browser','2744838aTBCJo','executeAsyncScript','TBfYT','MJdUa','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','find','EzfGY','isVersionSupported','kTwod','NAdoN','chromium','../../helpers/helper','name','6443196sKGdAe','includes','IOmlb','browser_version','No\x20summaryResults\x20found.','performScan','][\x20SDK-AUTOMATION\x20]\x20','INfwm','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20','toISOString','assign','accessibilityOptions','executeScript','qMhkz','isBrowserSupportedForAccessibility','../../helpers/performance/constants','xgiBC','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','warn','debug','\x20page:\x20','AgDev','stringify','wsEndpoint','body','error','../../helpers/logger','accessibilityOptions.includeIssueType.bestPractice','Performing\x20scan\x20with\x20method:\x20','accessibilityPlatform','aUMoN','message','getBrowserDisplayName','latest','125657EnILfy','format','startsWith','NkDBy','BiOEa','bhHnP','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers\x20or\x20Android\x20Chrome.','bstackSdkArgs','processAccessibilityCaps','evaluate','329360BTGdDA','Playwright','deviceName','2701352ExPAhS','keys','2vUTSwk','browserStackEvaluate','bestPractice','1506568jljySA','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','mWwPJ','platformValidation','uQNwG','KSqIC','scannerVersion','setAccessibilityCapabilities','includePartOfPageScope','on\x20non-BrowserStack\x20infrastructure\x20','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','SCSxe','108BDmsVZ','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','getAccessibilityResultsSummary','YpQFw','../../helpers/performance/performance-tester','getAccessibilityResults','MjFfz','testInfo','kCLmT','FJCDh','parameters','__workerDetails','WgiBu','MkYxi','\x20browser\x20version\x20','command','url','connectOptions'];a42_0x58e2=function(){return _0x3f4462;};return a42_0x58e2();}const util=require(a42_0x2a31a1(0x201)),logger=require(a42_0x2a31a1(0x22b))['winstonLogger'],{automationLogger}=require(a42_0x2a31a1(0x22b)),{isAccessibilityAutomationSession}=require('../../helpers/accessibility-automation/helper'),{isUndefined,isBrowserstackInfra}=require(a42_0x2a31a1(0x20f)),scripts=require('../../helpers/accessibility-automation/scripts'),PerformanceTester=require(a42_0x2a31a1(0x255)),{A11Y_EVENTS:PerformanceA11yEvents}=require(a42_0x2a31a1(0x220)),accessibilityHelper=require(a42_0x2a31a1(0x272)),{AUTOMATION_LOG_COMMANDS}=require('../utils/constants');exports[a42_0x2a31a1(0x243)]=async(_0x3eb27e,_0x303ad1,_0x371fc9={})=>{const _0x2dedf0=a42_0x2a31a1,_0xecd9b4={};_0xecd9b4['dOFqp']=_0x2dedf0(0x23a),_0xecd9b4[_0x2dedf0(0x236)]=function(_0x519e77,_0x9dd7d6){return _0x519e77===_0x9dd7d6;},_0xecd9b4['MJdUa']='string';const _0x33684d=_0xecd9b4,_0x495a39=await _0x3eb27e[_0x2dedf0(0x23c)]('(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20'+_0x303ad1[_0x2dedf0(0x26f)](/arguments/g,_0x33684d['dOFqp'])+'\x0a\x20\x20\x20\x20})\x0a\x20\x20})('+JSON['stringify'](_0x371fc9)+')');try{if(_0x303ad1&&_0x33684d[_0x2dedf0(0x236)](typeof _0x303ad1,_0x33684d[_0x2dedf0(0x207)])){const _0x408218=AUTOMATION_LOG_COMMANDS[_0x2dedf0(0x209)](_0x339d23=>_0x303ad1['includes'](_0x339d23));if(_0x408218){const _0x43dba8={};_0x43dba8[_0x2dedf0(0x260)]=_0x408218,_0x43dba8[_0x2dedf0(0x25b)]=[_0x371fc9];const _0x4d206f={};_0x4d206f[_0x2dedf0(0x229)]=_0x495a39;const _0x5dee78={};_0x5dee78[_0x2dedf0(0x200)]=_0x43dba8,_0x5dee78[_0x2dedf0(0x1f9)]=_0x4d206f,automationLogger['silly']('['+new Date()[_0x2dedf0(0x21a)]()+_0x2dedf0(0x217)+JSON['stringify'](_0x5dee78));}}}catch(_0x5f4d57){logger[_0x2dedf0(0x224)](_0x2dedf0(0x275)+_0x5f4d57[_0x2dedf0(0x230)]);}return _0x495a39;},exports[a42_0x2a31a1(0x268)]=async(_0x52252f,_0x497427,_0x29166e={})=>{const _0x1f29f9=a42_0x2a31a1,_0x2760b1={};_0x2760b1[_0x1f29f9(0x1fe)]=function(_0x3ac15f,_0x5dcec4){return _0x3ac15f===_0x5dcec4;},_0x2760b1[_0x1f29f9(0x20c)]='WebDriver',_0x2760b1[_0x1f29f9(0x218)]=_0x1f29f9(0x23e),_0x2760b1['izqTp']='bstackSdkArgs';const _0x25a313=_0x2760b1;if(_0x25a313[_0x1f29f9(0x1fe)](_0x52252f[_0x1f29f9(0x266)][_0x1f29f9(0x210)],_0x25a313['kTwod']))return await _0x52252f[_0x1f29f9(0x205)](_0x497427,_0x29166e);else{if(_0x25a313['wTXEV'](_0x52252f['constructor'][_0x1f29f9(0x210)],_0x25a313[_0x1f29f9(0x218)]))return await _0x52252f[_0x1f29f9(0x21d)]('(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20\x20\x20'+_0x497427[_0x1f29f9(0x26f)](/arguments/g,_0x25a313[_0x1f29f9(0x273)])+_0x1f29f9(0x208)+JSON[_0x1f29f9(0x227)](_0x29166e)+')');}},exports[a42_0x2a31a1(0x24c)]=async _0x215f95=>{const _0xb478e7=a42_0x2a31a1,_0x1c60a0={};_0x1c60a0['MkYxi']=_0xb478e7(0x267),_0x1c60a0[_0xb478e7(0x226)]='accessibilityOptions.scannerProcessingTimeout',_0x1c60a0[_0xb478e7(0x254)]=_0xb478e7(0x22c),_0x1c60a0[_0xb478e7(0x259)]=_0xb478e7(0x1f4),_0x1c60a0[_0xb478e7(0x265)]=_0xb478e7(0x269),_0x1c60a0[_0xb478e7(0x25d)]=_0xb478e7(0x1f7);const _0x2559dd=_0x1c60a0;_0x215f95[_0xb478e7(0x21c)]&&(_0x215f95['accessibilityOptions'][_0xb478e7(0x276)]&&(_0x215f95[_0x2559dd[_0xb478e7(0x25e)]]=_0x215f95[_0xb478e7(0x21c)][_0xb478e7(0x276)]),_0x215f95[_0xb478e7(0x21c)][_0xb478e7(0x277)]&&(_0x215f95[_0x2559dd['AgDev']]=_0x215f95[_0xb478e7(0x21c)]['scannerProcessingTimeout']),_0x215f95[_0xb478e7(0x21c)][_0xb478e7(0x1f6)]&&(_0x215f95[_0x2559dd[_0xb478e7(0x254)]]=_0x215f95[_0xb478e7(0x21c)]['includeIssueType'][_0xb478e7(0x244)],_0x215f95[_0x2559dd[_0xb478e7(0x259)]]=_0x215f95[_0xb478e7(0x21c)][_0xb478e7(0x1f6)][_0xb478e7(0x270)]));const _0x5f49b3=JSON['parse'](process[_0xb478e7(0x1f5)][_0xb478e7(0x246)])[_0xb478e7(0x24b)];_0x215f95[_0x2559dd[_0xb478e7(0x265)]]=process['env']['BS_A11Y_JWT'],_0x215f95[_0x2559dd['WgiBu']]=_0x5f49b3,delete _0x215f95[_0xb478e7(0x21c)];},exports[a42_0x2a31a1(0x256)]=async _0x206d96=>{const _0x28b102=a42_0x2a31a1,_0x144b20={};_0x144b20[_0x28b102(0x264)]=_0x28b102(0x1f3),_0x144b20[_0x28b102(0x206)]=_0x28b102(0x222);const _0x439a0e=_0x144b20;if(global[_0x28b102(0x22e)])try{const details={'url':await _0x206d96.url(),'testhub_btcer_uuid':global.__workerDetails?.currentTest?.id};const mobileArgs=global.isMobilePlatform?{is_mobile_session:true,thTestRunUuid:global.__workerDetails?.currentTest?.thTestRunUuid}:{};logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x206d96,scripts.performScan,mobileArgs)));},{command:'getAccessibilityResults',...details})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x206d96,scripts.getResults,mobileArgs);},{...details})();return res;}catch{return logger[_0x28b102(0x22a)](_0x439a0e[_0x28b102(0x264)]),[];}else return logger[_0x28b102(0x223)](_0x439a0e[_0x28b102(0x206)]),[];},exports['performScan']=async(_0x38b58d,_0x43d0a3='',_0x3fe7db={},_0x23c454={})=>{const _0x1e3e66=a42_0x2a31a1;logger['debug'](_0x1e3e66(0x22d)+_0x43d0a3+_0x1e3e66(0x225)+_0x38b58d);const _0x2623ca={'url':await _0x38b58d[_0x1e3e66(0x261)](),'testhub_btcer_uuid':global[_0x1e3e66(0x25c)]?.[_0x1e3e66(0x26b)]?.['id']};if(global[_0x1e3e66(0x22e)])return await PerformanceTester['measureWrapper'](PerformanceA11yEvents[_0x1e3e66(0x26a)],async()=>{const _0x58d7fb=_0x1e3e66,_0x1be696={};_0x1be696['command']=_0x43d0a3;const _0x3088f9=_0x1be696;_0x3fe7db&&_0x3fe7db['includePartOfPageScope']&&(_0x3088f9['includePartOfPageScope']=_0x3fe7db[_0x58d7fb(0x24d)]);Object[_0x58d7fb(0x21b)](_0x3088f9,_0x23c454);const _0x3d2405=await exports['browserStackEvaluate'](_0x38b58d,scripts[_0x58d7fb(0x216)],_0x3088f9);return _0x3d2405;},{'command':_0x43d0a3,..._0x2623ca})();},exports[a42_0x2a31a1(0x253)]=async _0x520d70=>{const _0x54806c=a42_0x2a31a1,_0x4e7f60={};_0x4e7f60['PbQDb']=_0x54806c(0x215),_0x4e7f60['IOmlb']=_0x54806c(0x252);const _0x19fd7f=_0x4e7f60;if(global[_0x54806c(0x22e)])try{const mobileArgs=global.isMobilePlatform?{is_mobile_session:true,thTestRunUuid:global.__workerDetails?.currentTest?.thTestRunUuid}:{};await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x520d70,scripts.performScan,mobileArgs)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x520d70,scripts.getResultsSummary,mobileArgs);})();return summaryResults;}catch{return logger['debug'](_0x19fd7f[_0x54806c(0x26c)]),{};}else return logger[_0x54806c(0x223)](_0x19fd7f[_0x54806c(0x213)]),{};},exports[a42_0x2a31a1(0x248)]=_0x139bc5=>{const _0x4b8137=a42_0x2a31a1,_0x2b0da4={'heheQ':_0x4b8137(0x1ff),'MjFfz':_0x4b8137(0x271),'mlOHa':function(_0x4cf69c,_0x1809b2){return _0x4cf69c!==_0x1809b2;},'SCSxe':_0x4b8137(0x232),'FJCDh':function(_0x41c129){return _0x41c129();},'uuqrd':_0x4b8137(0x24e)};try{if(global['isMobilePlatform'])return logger[_0x4b8137(0x224)](_0x2b0da4['heheQ']),!![];const _0x415372=_0x139bc5[_0x4b8137(0x203)],_0xc6ce47=_0x139bc5[_0x4b8137(0x214)];if(!accessibilityHelper[_0x4b8137(0x21f)](_0x415372))return logger[_0x4b8137(0x223)](_0x2b0da4[_0x4b8137(0x257)]),![];if(_0x2b0da4['mlOHa'](_0xc6ce47,_0x2b0da4[_0x4b8137(0x250)])){const _0x5a3e1a=_0x2b0da4[_0x4b8137(0x25a)](isBrowserstackInfra),_0x19b6f0=accessibilityHelper['getMinVersionForBrowser'](_0x415372,_0x5a3e1a),_0x2a5c9b=accessibilityHelper[_0x4b8137(0x231)](_0x415372);if(!accessibilityHelper[_0x4b8137(0x20b)](_0xc6ce47,_0x19b6f0)){const _0x409c75=_0x5a3e1a?'':_0x2b0da4[_0x4b8137(0x1f8)];return logger[_0x4b8137(0x223)](_0x4b8137(0x219)+_0x2a5c9b+'\x20browser\x20version\x20'+_0x19b6f0+'\x20or\x20higher\x20'+_0x409c75+'.'),![];}}}catch(_0x4d037c){logger[_0x4b8137(0x224)]('Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20'+util[_0x4b8137(0x234)](_0x4d037c));}return!![];},exports[a42_0x2a31a1(0x23b)]=(_0x4e70e9,_0x3e51a7,_0x3f353d)=>{const _0x15543f=a42_0x2a31a1,_0xc31fba={'BiOEa':'browserstack.accessibilityOptions','qMhkz':function(_0x37c1e5){return _0x37c1e5();},'EzfGY':'browserstack.accessibility','MhIoJ':_0x15543f(0x271),'hfRRJ':function(_0x5acddf,_0x3c1671){return _0x5acddf!==_0x3c1671;},'mWwPJ':'latest','xgiBC':function(_0x2f464f){return _0x2f464f();},'pEzBi':_0x15543f(0x24e),'AFvlb':function(_0x431f8f,_0xa8bc19){return _0x431f8f(_0xa8bc19);},'uQNwG':function(_0x4be6ad,_0x1aa8dc){return _0x4be6ad===_0x1aa8dc;},'xlNku':'android','UHSry':'chrome','YQuNm':_0x15543f(0x274),'aUMoN':_0x15543f(0x20e),'bhHnP':_0x15543f(0x239),'NAdoN':function(_0x34b33d,_0x8c93b7){return _0x34b33d+_0x8c93b7;},'KSqIC':function(_0x7476d3,_0x1cbcf4){return _0x7476d3(_0x1cbcf4);}};try{if(_0xc31fba[_0x15543f(0x21e)](isAccessibilityAutomationSession)){global[_0x15543f(0x22e)]=!![];!_0x4e70e9[_0xc31fba[_0x15543f(0x20a)]]&&(global[_0x15543f(0x22e)]=![]);const _0x40696b=_0x4e70e9['browserName']||_0x4e70e9['browser'],_0x5058aa=_0x4e70e9[_0x15543f(0x214)];!accessibilityHelper[_0x15543f(0x21f)](_0x40696b)&&(logger[_0x15543f(0x223)](_0xc31fba['MhIoJ']),global[_0x15543f(0x22e)]=![]);if(_0xc31fba[_0x15543f(0x26d)](_0x5058aa,_0xc31fba[_0x15543f(0x247)])){const _0x6c90d6=_0xc31fba[_0x15543f(0x221)](isBrowserstackInfra),_0x3a119b=accessibilityHelper[_0x15543f(0x202)](_0x40696b,_0x6c90d6),_0x566e4c=accessibilityHelper[_0x15543f(0x231)](_0x40696b);if(!accessibilityHelper[_0x15543f(0x20b)](_0x5058aa,_0x3a119b)){const _0x2b62d2=_0x6c90d6?'':_0xc31fba['pEzBi'];logger[_0x15543f(0x223)](_0x15543f(0x219)+_0x566e4c+_0x15543f(0x25f)+_0x3a119b+'\x20or\x20higher\x20'+_0x2b62d2+'.'),global[_0x15543f(0x22e)]=![];}}if(!_0xc31fba[_0x15543f(0x263)](isUndefined,_0x4e70e9[_0x15543f(0x23f)])){const _0x4dbec6=(_0x4e70e9['os']||'')[_0x15543f(0x1fd)](),_0x396650=(_0x4e70e9['browserName']||_0x4e70e9['browser']||'')['toLowerCase'](),_0x4e97a5=_0xc31fba[_0x15543f(0x249)](_0x4dbec6,_0xc31fba['xlNku'])&&[_0xc31fba[_0x15543f(0x1fc)],_0xc31fba['YQuNm'],_0xc31fba[_0x15543f(0x22f)]][_0x15543f(0x212)](_0x396650);if(!_0x4e97a5)logger[_0x15543f(0x223)](_0xc31fba[_0x15543f(0x238)]),global[_0x15543f(0x22e)]=![];else!accessibilityHelper[_0x15543f(0x1fb)]()&&(logger[_0x15543f(0x223)](accessibilityHelper['MOBILE_SCANNING_DISABLED_WARNING']),global[_0x15543f(0x22e)]=![]);}if(!global[_0x15543f(0x22e)]){_0x4e70e9[_0xc31fba[_0x15543f(0x20a)]]=![],Object[_0x15543f(0x241)](_0x4e70e9)['forEach'](_0x1f37ef=>{const _0x4555db=_0x15543f;_0x1f37ef[_0x4555db(0x235)](_0xc31fba[_0x4555db(0x237)])&&delete _0x4e70e9[_0x1f37ef];});const _0x352c09=_0xc31fba[_0x15543f(0x20d)](_0x3e51a7,_0xc31fba[_0x15543f(0x24a)](encodeURIComponent,JSON[_0x15543f(0x227)](_0x4e70e9)));_0x3f353d&&(_0x3f353d[_0x15543f(0x26b)][_0x15543f(0x258)]['project'][_0x15543f(0x26e)][_0x15543f(0x262)]['wsEndpoint']=_0x352c09,_0x3f353d['workerInfo']['project'][_0x15543f(0x26e)][_0x15543f(0x262)][_0x15543f(0x228)]=_0x352c09);}}else global[_0x15543f(0x22e)]=![];}catch(_0x471acb){logger[_0x15543f(0x224)](_0x15543f(0x24f)+util[_0x15543f(0x234)](_0x471acb));}};
|
|
1
|
+
function a42_0x1316(_0x1889c7,_0xdad59){const _0x33acd3=a42_0x33ac();return a42_0x1316=function(_0x13166b,_0x15fac5){_0x13166b=_0x13166b-0x1e7;let _0x361dd2=_0x33acd3[_0x13166b];return _0x361dd2;},a42_0x1316(_0x1889c7,_0xdad59);}const a42_0x457837=a42_0x1316;(function(_0x274e6b,_0x33e286){const _0x34b38b=a42_0x1316,_0x36ac22=_0x274e6b();while(!![]){try{const _0x59ae43=parseInt(_0x34b38b(0x255))/0x1*(parseInt(_0x34b38b(0x203))/0x2)+parseInt(_0x34b38b(0x26b))/0x3+parseInt(_0x34b38b(0x22b))/0x4*(-parseInt(_0x34b38b(0x22e))/0x5)+parseInt(_0x34b38b(0x25f))/0x6*(-parseInt(_0x34b38b(0x1e7))/0x7)+-parseInt(_0x34b38b(0x25c))/0x8+parseInt(_0x34b38b(0x1f2))/0x9+-parseInt(_0x34b38b(0x217))/0xa;if(_0x59ae43===_0x33e286)break;else _0x36ac22['push'](_0x36ac22['shift']());}catch(_0x4efa58){_0x36ac22['push'](_0x36ac22['shift']());}}}(a42_0x33ac,0x3a10f));const util=require(a42_0x457837(0x235)),logger=require(a42_0x457837(0x240))[a42_0x457837(0x24d)],{automationLogger}=require(a42_0x457837(0x240)),{isAccessibilityAutomationSession}=require('../../helpers/accessibility-automation/helper'),{isUndefined,isBrowserstackInfra}=require(a42_0x457837(0x276)),scripts=require(a42_0x457837(0x249)),PerformanceTester=require(a42_0x457837(0x20e)),{A11Y_EVENTS:PerformanceA11yEvents}=require(a42_0x457837(0x25b)),accessibilityHelper=require(a42_0x457837(0x267)),{AUTOMATION_LOG_COMMANDS}=require(a42_0x457837(0x219));function a42_0x33ac(){const _0x5e5bf3=['browser_version','KzDKc','hbjUY','No\x20summaryResults\x20found.','HeupY','XyRLy','needsReview','chrome','../../helpers/helper','105MAFhJS','warn','MHvYL','mkhTZ','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','[A11Y]\x20Error\x20logging\x20SDK-AUTOMATION\x20for\x20browserStackEvaluate:\x20','Performing\x20scan\x20with\x20method:\x20','connectOptions','name','project','measureWrapper','4130766vEMESs','browserstack.accessibility','BS_A11Y_JWT','xVWgI','yrSXI','WebDriver','QQbBJ','zHsZi','OuUDX','isVersionSupported','iEAQj','accessibilityPlatform','fEvDq','PERFORM_SCAN','body','browserstack.accessibilityOptions','tnAad','32234YHnwsZ','constructor','includePartOfPageScope','browser','bghIJ','ZNJUx','getAccessibilityResults','YiyTA','srNeK','accessibilityOptions.scannerVersion','UqoHg','../../helpers/performance/performance-tester','platformValidation:\x20Mobile\x20platform\x20already\x20validated.','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20','CqyTH','mveJX','hcLUb','toISOString','uzhLS','includes','238830qcGMha','NUwOe','../utils/constants','bwixU','browserStackEvaluate','currentTest','platformValidation','request','silly','android','wjMxV','startsWith','naRXl','bstackSdkArgs','parameters','__workerDetails','format','browserStackExecuteDriver','HCVmG','accessibilityOptions.includeIssueType.bestPractice','4ytVGvi','url','parse','1628815gXDzyo','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','message','isBrowserSupportedForAccessibility','string','replace','response','util','bestPractice','accessibilityOptions','MOBILE_SCANNING_DISABLED_WARNING','chromium','Playwright','npCpg','use','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','performScan','toLowerCase','../../helpers/logger','XhDgj','debug','EDSFy','stringify','includeIssueType','scannerProcessingTimeout','find','browserName','../../helpers/accessibility-automation/scripts','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','yQMPp','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers\x20or\x20Android\x20Chrome.','winstonLogger','latest','\x20browser\x20version\x20','WZoRq','isMobilePlatform','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','getMinVersionForBrowser','getBrowserDisplayName','16kXrfeZ','error','setAccessibilityCapabilities','forEach','TJEpY','wcagVersion','../../helpers/performance/constants','1364904zenBGu','command','\x20or\x20higher\x20','162324yDYnrr','wsEndpoint','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','LJxtn','(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20\x20\x20','][\x20SDK-AUTOMATION\x20]\x20','(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20','isMobileScanningEnabledForGroup','../../helpers/accessibility-automation/helper','executeScript','CWuLm','yvskZ','1341186JKpPkl','on\x20non-BrowserStack\x20infrastructure\x20','\x20page:\x20'];a42_0x33ac=function(){return _0x5e5bf3;};return a42_0x33ac();}exports[a42_0x457837(0x21b)]=async(_0x14b056,_0x5204a7,_0x4dcc7f={})=>{const _0x2525ec=a42_0x457837,_0x12f94b={};_0x12f94b['CqyTH']=_0x2525ec(0x224),_0x12f94b[_0x2525ec(0x26a)]=function(_0x3af179,_0x2636df){return _0x3af179===_0x2636df;},_0x12f94b['HeupY']=_0x2525ec(0x232);const _0x4be5a2=_0x12f94b,_0x4843e2=await _0x14b056['evaluate'](_0x2525ec(0x265)+_0x5204a7[_0x2525ec(0x233)](/arguments/g,_0x4be5a2[_0x2525ec(0x211)])+_0x2525ec(0x24a)+JSON[_0x2525ec(0x244)](_0x4dcc7f)+')');try{if(_0x5204a7&&_0x4be5a2[_0x2525ec(0x26a)](typeof _0x5204a7,_0x4be5a2[_0x2525ec(0x272)])){const _0x44e389=AUTOMATION_LOG_COMMANDS[_0x2525ec(0x247)](_0x46a5e6=>_0x5204a7[_0x2525ec(0x216)](_0x46a5e6));if(_0x44e389){const _0xabf03e={};_0xabf03e[_0x2525ec(0x25d)]=_0x44e389,_0xabf03e[_0x2525ec(0x225)]=[_0x4dcc7f];const _0x234a11={};_0x234a11[_0x2525ec(0x200)]=_0x4843e2;const _0x5c3da3={};_0x5c3da3[_0x2525ec(0x21e)]=_0xabf03e,_0x5c3da3[_0x2525ec(0x234)]=_0x234a11,automationLogger[_0x2525ec(0x21f)]('['+new Date()[_0x2525ec(0x214)]()+_0x2525ec(0x264)+JSON[_0x2525ec(0x244)](_0x5c3da3));}}}catch(_0x3a3e47){logger[_0x2525ec(0x242)](_0x2525ec(0x1ec)+_0x3a3e47[_0x2525ec(0x230)]);}return _0x4843e2;},exports[a42_0x457837(0x228)]=async(_0x2d5e29,_0x3e7dda,_0x43f509={})=>{const _0x4f6d32=a42_0x457837,_0x4a3638={};_0x4a3638[_0x4f6d32(0x250)]=function(_0x2ec62c,_0x2133fb){return _0x2ec62c===_0x2133fb;},_0x4a3638[_0x4f6d32(0x1fa)]=_0x4f6d32(0x1f7),_0x4a3638['yrSXI']=_0x4f6d32(0x23a),_0x4a3638[_0x4f6d32(0x1f8)]='bstackSdkArgs';const _0x109cb2=_0x4a3638;if(_0x109cb2[_0x4f6d32(0x250)](_0x2d5e29[_0x4f6d32(0x204)]['name'],_0x109cb2[_0x4f6d32(0x1fa)]))return await _0x2d5e29['executeAsyncScript'](_0x3e7dda,_0x43f509);else{if(_0x109cb2[_0x4f6d32(0x250)](_0x2d5e29[_0x4f6d32(0x204)][_0x4f6d32(0x1ef)],_0x109cb2[_0x4f6d32(0x1f6)]))return await _0x2d5e29[_0x4f6d32(0x268)](_0x4f6d32(0x263)+_0x3e7dda[_0x4f6d32(0x233)](/arguments/g,_0x109cb2['QQbBJ'])+_0x4f6d32(0x22f)+JSON[_0x4f6d32(0x244)](_0x43f509)+')');}},exports[a42_0x457837(0x257)]=async _0x1f4399=>{const _0xacadf9=a42_0x457837,_0x33512d={};_0x33512d[_0xacadf9(0x202)]='accessibilityOptions.wcagVersion',_0x33512d[_0xacadf9(0x241)]='accessibilityOptions.scannerProcessingTimeout',_0x33512d['xVWgI']=_0xacadf9(0x22a),_0x33512d[_0xacadf9(0x20a)]='accessibilityOptions.includeIssueType.needsReview',_0x33512d['EDSFy']='accessibilityOptions.authToken',_0x33512d[_0xacadf9(0x20b)]=_0xacadf9(0x20c);const _0x5e0ccc=_0x33512d;_0x1f4399['accessibilityOptions']&&(_0x1f4399['accessibilityOptions'][_0xacadf9(0x25a)]&&(_0x1f4399[_0x5e0ccc[_0xacadf9(0x202)]]=_0x1f4399['accessibilityOptions'][_0xacadf9(0x25a)]),_0x1f4399[_0xacadf9(0x237)]['scannerProcessingTimeout']&&(_0x1f4399[_0x5e0ccc[_0xacadf9(0x241)]]=_0x1f4399[_0xacadf9(0x237)][_0xacadf9(0x246)]),_0x1f4399[_0xacadf9(0x237)][_0xacadf9(0x245)]&&(_0x1f4399[_0x5e0ccc[_0xacadf9(0x1f5)]]=_0x1f4399[_0xacadf9(0x237)][_0xacadf9(0x245)][_0xacadf9(0x236)],_0x1f4399[_0x5e0ccc['YiyTA']]=_0x1f4399[_0xacadf9(0x237)][_0xacadf9(0x245)][_0xacadf9(0x274)]));const _0xc7b526=JSON[_0xacadf9(0x22d)](process['env'][_0xacadf9(0x261)])['scannerVersion'];_0x1f4399[_0x5e0ccc[_0xacadf9(0x243)]]=process['env'][_0xacadf9(0x1f4)],_0x1f4399[_0x5e0ccc[_0xacadf9(0x20b)]]=_0xc7b526,delete _0x1f4399[_0xacadf9(0x237)];},exports[a42_0x457837(0x209)]=async _0x1dcf16=>{const _0x27f601=a42_0x457837,_0x5e2078={};_0x5e2078[_0x27f601(0x218)]='No\x20accessibility\x20results\x20were\x20found.',_0x5e2078[_0x27f601(0x1e9)]=_0x27f601(0x23d);const _0x960cab=_0x5e2078;if(global[_0x27f601(0x1fd)])try{const details={'url':await _0x1dcf16.url(),'testhub_btcer_uuid':global.__workerDetails?.currentTest?.id};const mobileArgs=global.isMobilePlatform?{is_mobile_session:true,thTestRunUuid:global.__workerDetails?.currentTest?.thTestRunUuid}:{};logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x1dcf16,scripts.performScan,mobileArgs)));},{command:'getAccessibilityResults',...details})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x1dcf16,scripts.getResults,mobileArgs);},{...details})();return res;}catch{return logger[_0x27f601(0x256)](_0x960cab[_0x27f601(0x218)]),[];}else return logger[_0x27f601(0x1e8)](_0x960cab['MHvYL']),[];},exports[a42_0x457837(0x23e)]=async(_0x58a1c6,_0x42e36d='',_0x349c26={},_0xbe8c43={})=>{const _0xab322a=a42_0x457837;logger[_0xab322a(0x242)](_0xab322a(0x1ed)+_0x42e36d+_0xab322a(0x26d)+_0x58a1c6);const _0x21a621={'url':await _0x58a1c6[_0xab322a(0x22c)](),'testhub_btcer_uuid':global[_0xab322a(0x226)]?.['currentTest']?.['id']};if(global['accessibilityPlatform'])return await PerformanceTester[_0xab322a(0x1f1)](PerformanceA11yEvents[_0xab322a(0x1ff)],async()=>{const _0x29ecf0=_0xab322a,_0x24cc6d={};_0x24cc6d['command']=_0x42e36d;const _0x5ad67b=_0x24cc6d;_0x349c26&&_0x349c26['includePartOfPageScope']&&(_0x5ad67b[_0x29ecf0(0x205)]=_0x349c26[_0x29ecf0(0x205)]);Object['assign'](_0x5ad67b,_0xbe8c43);const _0x9ed26e=await exports[_0x29ecf0(0x21b)](_0x58a1c6,scripts[_0x29ecf0(0x23e)],_0x5ad67b);return _0x9ed26e;},{'command':_0x42e36d,..._0x21a621})();},exports['getAccessibilityResultsSummary']=async _0x3ed403=>{const _0x27b583=a42_0x457837,_0xdd472d={};_0xdd472d[_0x27b583(0x269)]=_0x27b583(0x271),_0xdd472d[_0x27b583(0x1ea)]=_0x27b583(0x1eb);const _0x5d3ee6=_0xdd472d;if(global[_0x27b583(0x1fd)])try{const mobileArgs=global.isMobilePlatform?{is_mobile_session:true,thTestRunUuid:global.__workerDetails?.currentTest?.thTestRunUuid}:{};await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x3ed403,scripts.performScan,mobileArgs)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x3ed403,scripts.getResultsSummary,mobileArgs);})();return summaryResults;}catch{return logger[_0x27b583(0x242)](_0x5d3ee6[_0x27b583(0x269)]),{};}else return logger[_0x27b583(0x1e8)](_0x5d3ee6['mkhTZ']),{};},exports[a42_0x457837(0x21d)]=_0x4dab11=>{const _0x16f137=a42_0x457837,_0x1df268={'iEAQj':_0x16f137(0x20f),'uzhLS':_0x16f137(0x252),'fEvDq':function(_0x36fae9,_0x4db010){return _0x36fae9!==_0x4db010;},'mveJX':_0x16f137(0x24e),'UqoHg':function(_0x3ea9b5){return _0x3ea9b5();},'ZUunw':_0x16f137(0x26c)};try{if(global[_0x16f137(0x251)])return logger['debug'](_0x1df268[_0x16f137(0x1fc)]),!![];const _0x442d30=_0x4dab11[_0x16f137(0x206)],_0x1f46c5=_0x4dab11[_0x16f137(0x26e)];if(!accessibilityHelper['isBrowserSupportedForAccessibility'](_0x442d30))return logger[_0x16f137(0x1e8)](_0x1df268[_0x16f137(0x215)]),![];if(_0x1df268[_0x16f137(0x1fe)](_0x1f46c5,_0x1df268[_0x16f137(0x212)])){const _0x1749ed=_0x1df268[_0x16f137(0x20d)](isBrowserstackInfra),_0x58a484=accessibilityHelper[_0x16f137(0x253)](_0x442d30,_0x1749ed),_0x5f03d0=accessibilityHelper[_0x16f137(0x254)](_0x442d30);if(!accessibilityHelper[_0x16f137(0x1fb)](_0x1f46c5,_0x58a484)){const _0x4b61d6=_0x1749ed?'':_0x1df268['ZUunw'];return logger['warn']('Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20'+_0x5f03d0+_0x16f137(0x24f)+_0x58a484+_0x16f137(0x25e)+_0x4b61d6+'.'),![];}}}catch(_0x144221){logger[_0x16f137(0x242)]('Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20'+util[_0x16f137(0x227)](_0x144221));}return!![];},exports['processAccessibilityCaps']=(_0x5b69ce,_0x38effe,_0x23dafe)=>{const _0x5b49f8=a42_0x457837,_0x47a051={'KzDKc':_0x5b49f8(0x201),'npCpg':function(_0x66ef92){return _0x66ef92();},'bghIJ':_0x5b49f8(0x1f3),'naRXl':_0x5b49f8(0x252),'yQMPp':function(_0x2c37b5,_0x3165c9){return _0x2c37b5!==_0x3165c9;},'hbjUY':'latest','gaKuN':_0x5b49f8(0x26c),'LJxtn':function(_0x48138b,_0x155fe5){return _0x48138b(_0x155fe5);},'ZNJUx':function(_0x935fce,_0x3ddba5){return _0x935fce===_0x3ddba5;},'bwixU':_0x5b49f8(0x220),'XyRLy':_0x5b49f8(0x275),'hcLUb':'playwright-chromium','HCVmG':_0x5b49f8(0x239),'zHsZi':_0x5b49f8(0x24c),'TJEpY':function(_0x118624,_0x2ed410){return _0x118624+_0x2ed410;},'wjMxV':function(_0x9a13db,_0x122e18){return _0x9a13db(_0x122e18);}};try{if(_0x47a051[_0x5b49f8(0x23b)](isAccessibilityAutomationSession)){global[_0x5b49f8(0x1fd)]=!![];!_0x5b69ce[_0x47a051['bghIJ']]&&(global[_0x5b49f8(0x1fd)]=![]);const _0x44d5a3=_0x5b69ce[_0x5b49f8(0x248)]||_0x5b69ce[_0x5b49f8(0x206)],_0x9c631c=_0x5b69ce[_0x5b49f8(0x26e)];!accessibilityHelper[_0x5b49f8(0x231)](_0x44d5a3)&&(logger[_0x5b49f8(0x1e8)](_0x47a051[_0x5b49f8(0x223)]),global['accessibilityPlatform']=![]);if(_0x47a051[_0x5b49f8(0x24b)](_0x9c631c,_0x47a051[_0x5b49f8(0x270)])){const _0x3643ff=_0x47a051['npCpg'](isBrowserstackInfra),_0x41319e=accessibilityHelper[_0x5b49f8(0x253)](_0x44d5a3,_0x3643ff),_0x59c733=accessibilityHelper['getBrowserDisplayName'](_0x44d5a3);if(!accessibilityHelper[_0x5b49f8(0x1fb)](_0x9c631c,_0x41319e)){const _0x5710d8=_0x3643ff?'':_0x47a051['gaKuN'];logger[_0x5b49f8(0x1e8)](_0x5b49f8(0x210)+_0x59c733+_0x5b49f8(0x24f)+_0x41319e+'\x20or\x20higher\x20'+_0x5710d8+'.'),global['accessibilityPlatform']=![];}}if(!_0x47a051[_0x5b49f8(0x262)](isUndefined,_0x5b69ce['deviceName'])){const _0x562761=(_0x5b69ce['os']||'')[_0x5b49f8(0x23f)](),_0x55affe=(_0x5b69ce[_0x5b49f8(0x248)]||_0x5b69ce[_0x5b49f8(0x206)]||'')[_0x5b49f8(0x23f)](),_0x45f32a=_0x47a051[_0x5b49f8(0x208)](_0x562761,_0x47a051[_0x5b49f8(0x21a)])&&[_0x47a051[_0x5b49f8(0x273)],_0x47a051[_0x5b49f8(0x213)],_0x47a051[_0x5b49f8(0x229)]][_0x5b49f8(0x216)](_0x55affe);if(!_0x45f32a)logger[_0x5b49f8(0x1e8)](_0x47a051[_0x5b49f8(0x1f9)]),global['accessibilityPlatform']=![];else!accessibilityHelper[_0x5b49f8(0x266)]()&&(logger[_0x5b49f8(0x1e8)](accessibilityHelper[_0x5b49f8(0x238)]),global[_0x5b49f8(0x1fd)]=![]);}if(!global[_0x5b49f8(0x1fd)]){_0x5b69ce[_0x47a051[_0x5b49f8(0x207)]]=![],Object['keys'](_0x5b69ce)[_0x5b49f8(0x258)](_0x5126f=>{const _0x2ee8fe=_0x5b49f8;_0x5126f[_0x2ee8fe(0x222)](_0x47a051[_0x2ee8fe(0x26f)])&&delete _0x5b69ce[_0x5126f];});const _0x1980f4=_0x47a051[_0x5b49f8(0x259)](_0x38effe,_0x47a051[_0x5b49f8(0x221)](encodeURIComponent,JSON[_0x5b49f8(0x244)](_0x5b69ce)));_0x23dafe&&(_0x23dafe[_0x5b49f8(0x21c)]['testInfo'][_0x5b49f8(0x1f0)]['use']['connectOptions'][_0x5b49f8(0x260)]=_0x1980f4,_0x23dafe['workerInfo'][_0x5b49f8(0x1f0)][_0x5b49f8(0x23c)][_0x5b49f8(0x1ee)][_0x5b49f8(0x260)]=_0x1980f4);}}else global['accessibilityPlatform']=![];}catch(_0x1db31e){logger[_0x5b49f8(0x242)]('Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20'+util['format'](_0x1db31e));}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a43_0xe653a7=a43_0x395e;(function(_0xcf1dd6,_0x435c1b){const _0x48935a=a43_0x395e,_0xb78e77=_0xcf1dd6();while(!![]){try{const _0x28c097=parseInt(_0x48935a(0xa3))/0x1+parseInt(_0x48935a(0xf3))/0x2*(-parseInt(_0x48935a(0xec))/0x3)+parseInt(_0x48935a(0x11a))/0x4+-parseInt(_0x48935a(0x125))/0x5+parseInt(_0x48935a(0x11b))/0x6+parseInt(_0x48935a(0x138))/0x7+parseInt(_0x48935a(0xb7))/0x8*(parseInt(_0x48935a(0x10a))/0x9);if(_0x28c097===_0x435c1b)break;else _0xb78e77['push'](_0xb78e77['shift']());}catch(_0x29532b){_0xb78e77['push'](_0xb78e77['shift']());}}}(a43_0x1d1e,0x795bf));function a43_0x395e(_0x47e612,_0x30c9e4){const _0x1d1ec8=a43_0x1d1e();return a43_0x395e=function(_0x395e72,_0x345cfd){_0x395e72=_0x395e72-0x7c;let _0x3a79f6=_0x1d1ec8[_0x395e72];return _0x3a79f6;},a43_0x395e(_0x47e612,_0x30c9e4);}const fs=require('fs'),path=require('path'),{spawn}=require(a43_0xe653a7(0xd5)),{format}=require(a43_0xe653a7(0xa8)),logger=require('../../helpers/logger')[a43_0xe653a7(0x91)],{default:BrowserStackSetup}=require(a43_0xe653a7(0xf9)),helper=require(a43_0xe653a7(0x9f)),utilities=require('../../helpers/utilities'),constants=require(a43_0xe653a7(0xf1)),{FRAMEWORKS}=require(a43_0xe653a7(0x95)),{getConfigLoaderPath}=require(a43_0xe653a7(0xd0)),{checkAccessibilityPlatformConfig}=require(a43_0xe653a7(0x8c)),{setAccessibilityCapabilities}=require('./accessibility-helper'),{printBuildLink}=require('../../helpers/test-observability/utils'),TestDetails=require(a43_0xe653a7(0x123)),TestHubHandler=require(a43_0xe653a7(0xea)),PerformanceTester=require(a43_0xe653a7(0xf0)),BrowserstackCLI=require(a43_0xe653a7(0x12c)),PerformanceEvents=require(a43_0xe653a7(0x86))[a43_0xe653a7(0x110)],CLIUtils=require(a43_0xe653a7(0xfa)),TestInfo=require('../v2/TestInfo'),ClientTroubleShootingService=require(a43_0xe653a7(0xb8)),getUserPlaywrightConfig=async(_0x2b91fb,_0xdb7f2c)=>{const _0xaf03cc=a43_0xe653a7,_0x5cc6ab={'yAbiS':function(_0x2e0350){return _0x2e0350();},'XoavT':function(_0xcd5f90){return _0xcd5f90();},'BlrIL':function(_0x56067b,_0x22f295){return _0x56067b(_0x22f295);},'amYZi':function(_0x44a8c2,_0x5abdd2){return _0x44a8c2(_0x5abdd2);},'NITic':'resolvedConfigFile','hLXYF':_0xaf03cc(0xf7)},_0x1024be=!helper[_0xaf03cc(0x85)](_0x2b91fb[_0xaf03cc(0xbf)]),_0x480b95=_0x1024be?path[_0xaf03cc(0x124)](process[_0xaf03cc(0x8e)](),_0x2b91fb[_0xaf03cc(0xbf)]):process[_0xaf03cc(0x8e)](),{resolveConfigFile:_0x2ac3ed,resolveConfigLocation:_0x2271c5}=helper[_0xaf03cc(0x11c)]()?helper[_0xaf03cc(0x12e)](..._0x5cc6ab[_0xaf03cc(0x108)](getConfigLoaderPath)):helper['requirePWModule'][_0xaf03cc(0x7c)](null,_0x5cc6ab[_0xaf03cc(0xe1)](getConfigLoaderPath)),_0x77944e=_0x2ac3ed?_0x5cc6ab[_0xaf03cc(0xc6)](_0x2ac3ed,_0x480b95):helper['nestedKeyValue'](_0x5cc6ab['amYZi'](_0x2271c5,_0x480b95),[_0x5cc6ab[_0xaf03cc(0xf8)]]),_0x17ac5a={};if(_0x1024be){const _0x2659f3=_0xdb7f2c[_0xaf03cc(0x12a)](_0x27cdd7=>_0x27cdd7===_0xaf03cc(0x81)||_0x27cdd7==='-c'||_0x27cdd7['startsWith'](_0xaf03cc(0xf7)));_0xdb7f2c['splice'](_0x2659f3,_0xdb7f2c[_0x2659f3]['startsWith'](_0x5cc6ab[_0xaf03cc(0x80)])?0x1:0x2);}const _0x182630={};return _0x182630[_0xaf03cc(0xd8)]=_0x77944e,_0x182630[_0xaf03cc(0xbf)]=_0x17ac5a,_0x182630;},handleO11yRerun=_0x1fc747=>{const _0x378de3=a43_0xe653a7,_0x4d660c={};_0x4d660c['kQHcF']=_0x378de3(0xae);const _0x30a1b9=_0x4d660c,_0x14ef3f=helper['isTrue'](process[_0x378de3(0x10c)][_0x378de3(0xd9)]);if(_0x14ef3f){const _0x47a93e=process[_0x378de3(0x10c)][_0x378de3(0xd4)],_0x4d8c95=[];if(helper[_0x378de3(0xb1)](_0x47a93e)&&!helper[_0x378de3(0x85)](_0x47a93e)){_0x47a93e['split'](',')[_0x378de3(0xfb)](_0x38e20b=>{const _0x506f7b=_0x378de3;_0x4d8c95['push']('('+_0x38e20b[_0x506f7b(0x90)]()+')');});const _0x4b60af='^'+_0x4d8c95['join']('|')+'$';_0x1fc747[_0x378de3(0x10e)](_0x30a1b9['kQHcF'],_0x4b60af);}}},spawnOriginalProcess=_0x692aca=>{const _0x24fdb1=a43_0xe653a7,_0x300212={'fqCDX':function(_0x1417b3,_0x518294,_0x3a5557,_0x5be38d){return _0x1417b3(_0x518294,_0x3a5557,_0x5be38d);},'QxLVR':_0x24fdb1(0xde),'zWZqU':_0x24fdb1(0x9b),'aObfx':_0x24fdb1(0x128),'wcETI':function(_0x586769,_0x3bad44){return _0x586769===_0x3bad44;},'VadpO':'win32','GlrCU':_0x24fdb1(0x134)};_0x300212['fqCDX'](spawn,helper['isYarnPnP']()?_0x300212['QxLVR']:_0x300212[_0x24fdb1(0x114)],[_0x300212[_0x24fdb1(0x99)],..._0x692aca[_0x24fdb1(0x97)](0x1)],{'shell':_0x300212[_0x24fdb1(0x104)](process[_0x24fdb1(0xbd)],_0x300212[_0x24fdb1(0xb5)]),'stdio':_0x300212['GlrCU'],'cwd':process[_0x24fdb1(0x8e)]()});},isTestCommand=(_0x1e4715,_0x457884)=>{const _0x54688d=a43_0xe653a7,_0x139d21={};_0x139d21['IdGvJ']=function(_0x140225,_0x344370){return _0x140225>_0x344370;},_0x139d21['OEYmG']=function(_0x1375c5,_0x343eef){return _0x1375c5===_0x343eef;},_0x139d21[_0x54688d(0xad)]=_0x54688d(0xc5);const _0x2c0e76=_0x139d21;if(_0x2c0e76[_0x54688d(0x102)](_0x457884[_0x54688d(0x11e)],0x1)&&_0x2c0e76[_0x54688d(0xe0)](_0x457884[0x1],_0x2c0e76[_0x54688d(0xad)]))return!![];return![];};function a43_0x1d1e(){const _0x5de64b=['../../helpers/test-observability/constants','Playwright\x20process\x20exited\x20with\x20code\x20','slice','mgnoe','aObfx','PSrwa','npx','forEach','accessibilityOptions','constants','../../helpers/helper','filter','jUTAF','launchBuild','690463lWcGfn','SDK_CLEANUP','KvLox','shutdown','BROWSERSTACK_TEST_OBSERVABILITY','util','TOyxz','skipSessionName','IKCPm','wavKT','sKUGn','--grep','EPGrt','cCBDt','validateRerunTestList','eYJuT','serializeToYamlString','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','VadpO','readFileSync','40NLsnYV','../utils/clientTroubleshootingService','Proxy\x20url\x20:\x20','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','VdFUG','writeFileSync','platform','SDK_POST_INITIALIZE','config','indexOf','PLAYWRIGHT','isRunning','unlinkSync','getConfig','test','BlrIL','has','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','R_OK','nALLS','.browserstack','browserstackSetupConfig.json','info','Ciouq','RPgoO','./reporter/pwUtils','get','exitCode','getConfigPath','BROWSERSTACK_RERUN_TESTS','child_process','RUmOs','MODULE','path','BROWSERSTACK_RERUN','cliConfig','getInstance','BROWSERSTACK_AUTOMATION','gJzza','yarn','existsSync','OEYmG','XoavT','initialize','PpulR','Error\x20in\x20closing\x20playwright','playwright-browserstack-sdk.config.js','ptOyn','assign','imRaR','PACKAGE_TYPE','../../helpers/testhub/testhubHandler','iwVpg','6159BCIKDP','BrowserStack\x20config\x20file\x20not\x20found.','RfhWF','isCLIEnabled','../../helpers/performance/performance-tester','../utils/constants','isTypescriptProject','922bKIXyf','measureWrapper','aGPpm','bLyTP','--config=','NITic','../../helpers/BrowserStackSetup','../v2/cliUtils','map','exports','Error\x20in\x20accessing\x20.browserstack\x20directory:\x20','getPackageType','accessSync','No\x20Proxy\x20:\x20','startsWith','IdGvJ','FiVPx','wcETI','HONfj','join','USER_CONFIG_DETAILS_PATH','yAbiS','Deleting\x20','229599YLNItI','dirname','env','isTrue','push','homedir','EVENTS','\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20process.env.GLOBAL_AGENT_NO_PROXY=\x22','ZSXfK','--disable-test-observability','zWZqU','Error\x20in\x20getting\x20funnel\x20data\x20results','debug','BROWSERSTACK_TEST_ACCESSIBILITY_YML','false','QcDqG','1356964oVaIYD','5203038RaNwsN','isYarnPnP','automation','length','clearTempPWConfig','SDK_SETUP','DLeKg','LDWCF','./reporter/test-details','resolve','4140265KdQiHT','getNoProxy','win32','playwright','start','findIndex','nySHg','../v2/browserstackCLI','stop','requireConfigLoaderYarnPnP','BROWSERSTACK_SETUP_CONFIG_PATH','testObservability','testContextOptions','accessibility','configPath','inherit','tQoHC','true','--disable-browserstack-automation','1729987gIRmDH','YWXGa','apply','JpRla','isFalse','hJXod','hLXYF','--config','skipSessionStatus','Updated\x20config\x20file\x20name\x20to\x20-\x20','Error\x20in\x20deleting\x20playwright\x20results','isUndefined','../../helpers/performance/constants','close','fDwOy','setFrameworkDetail','W_OK','reportFinalDetectionState','../../helpers/accessibility-automation/helper','AgNhS','cwd','mRXrE','trim','winstonLogger','parse','vWsmY','SDK_PRE_INITIALIZE'];a43_0x1d1e=function(){return _0x5de64b;};return a43_0x1d1e();}async function run(_0x36c1c4,_0x4b1e78,_0x3df7ba){const _0x4c5d5b=a43_0xe653a7,_0x42b3fa={'YWXGa':_0x4c5d5b(0xcb),'nySHg':function(_0x358689){return _0x358689();},'Ciouq':function(_0x5b64c8){return _0x5b64c8();},'LDWCF':function(_0x1a2c92,_0x8e26e8){return _0x1a2c92+_0x8e26e8;},'imRaR':_0x4c5d5b(0xe4),'TOyxz':function(_0x3abbbb,_0x1998a5){return _0x3abbbb(_0x1998a5);},'PpulR':'pw_result.json','VdFUG':function(_0x2e1018,_0x22924c){return _0x2e1018+_0x22924c;},'HONfj':_0x4c5d5b(0x115),'vWsmY':_0x4c5d5b(0xed),'jUTAF':function(_0xe34446,_0x209571){return _0xe34446<_0x209571;},'QcDqG':function(_0x61ee00,_0x56d603){return _0x61ee00===_0x56d603;},'aGPpm':_0x4c5d5b(0x118),'DkpcP':_0x4c5d5b(0x113),'eYJuT':function(_0x5f4811,_0x13eb40){return _0x5f4811>=_0x13eb40;},'wavKT':function(_0x309f9f,_0x5bea62){return _0x309f9f===_0x5bea62;},'PSrwa':_0x4c5d5b(0x11d),'mRXrE':function(_0x32ca8b,_0x11adcc){return _0x32ca8b!=_0x11adcc;},'NslhV':function(_0x5cfdc4,_0x510d85,_0x5964cc){return _0x5cfdc4(_0x510d85,_0x5964cc);},'GdTru':function(_0x49c723,_0x583d1e){return _0x49c723(_0x583d1e);},'JpRla':function(_0x2790a9,_0x1ed0f8){return _0x2790a9===_0x1ed0f8;},'hJXod':_0x4c5d5b(0x136),'cCBDt':function(_0x4c5c2e,_0x2c345f){return _0x4c5c2e(_0x2c345f);},'UwWgd':_0x4c5d5b(0xcc),'xEwSs':'playwright-browserstack-sdk.config.cjs','EPGrt':_0x4c5d5b(0xe5),'DLeKg':function(_0xb4be5c,_0x51c312){return _0xb4be5c-_0x51c312;},'bOWjL':_0x4c5d5b(0x83),'YkzZs':function(_0x31bf46,_0x310627){return _0x31bf46>_0x310627;},'RfhWF':function(_0x5057e1,_0x44bd37){return _0x5057e1+_0x44bd37;},'tQoHC':function(_0x40d6fd,_0x8d0ac9,_0x165c7e,_0x1634ec){return _0x40d6fd(_0x8d0ac9,_0x165c7e,_0x1634ec);},'zZTTM':_0x4c5d5b(0xde),'gJzza':_0x4c5d5b(0x9b),'fFful':_0x4c5d5b(0x128),'KvLox':_0x4c5d5b(0xc5),'AgNhS':'--config','fDwOy':_0x4c5d5b(0x127),'nALLS':'inherit','ecfKB':_0x4c5d5b(0x87),'bLyTP':function(_0x3f3f87,_0x25586d){return _0x3f3f87|_0x25586d;},'vnWNS':_0x4c5d5b(0xfd),'IKCPm':_0x4c5d5b(0x84),'ptOyn':function(_0x29ec74,_0x244047,_0x1dfaf4){return _0x29ec74(_0x244047,_0x1dfaf4);}};try{const _0x1f46c3=path[_0x4c5d5b(0x106)](helper[_0x4c5d5b(0x10f)](),_0x42b3fa[_0x4c5d5b(0x139)]);try{fs[_0x4c5d5b(0xff)](_0x1f46c3,_0x42b3fa[_0x4c5d5b(0xf6)](fs[_0x4c5d5b(0x9e)][_0x4c5d5b(0xc9)],fs[_0x4c5d5b(0x9e)][_0x4c5d5b(0x8a)]));}catch(_0x257ea5){ClientTroubleShootingService['reportDotBrowserStackFolderNotAccessibleIssue']();}}catch(_0x1803cb){logger[_0x4c5d5b(0x116)](_0x42b3fa['RfhWF'](_0x42b3fa['vnWNS'],_0x1803cb));}try{const _0x425cc2=path[_0x4c5d5b(0x106)](helper[_0x4c5d5b(0x10f)](),_0x42b3fa[_0x4c5d5b(0x139)],_0x42b3fa[_0x4c5d5b(0xe3)]);fs[_0x4c5d5b(0xdf)](_0x425cc2)&&fs['unlinkSync'](_0x425cc2);}catch(_0x13e4e8){logger[_0x4c5d5b(0x116)](_0x42b3fa[_0x4c5d5b(0xbb)](_0x42b3fa[_0x4c5d5b(0xab)],_0x13e4e8));}if(!_0x42b3fa[_0x4c5d5b(0xe6)](isTestCommand,_0x36c1c4,_0x4b1e78)){_0x42b3fa['cCBDt'](spawnOriginalProcess,_0x4b1e78);return;}await PerformanceTester[_0x4c5d5b(0xf4)](PerformanceEvents[_0x4c5d5b(0x94)],async()=>{const _0x4581b5=_0x4c5d5b,_0x1f3ff0={'FiVPx':function(_0x18d48b,_0x57f0f6){const _0x22910a=a43_0x395e;return _0x42b3fa[_0x22910a(0xa9)](_0x18d48b,_0x57f0f6);},'iwVpg':_0x42b3fa[_0x4581b5(0x139)],'RUmOs':_0x42b3fa[_0x4581b5(0xe3)],'ZSXfK':function(_0x57c8d2,_0x62a923){const _0x521929=_0x4581b5;return _0x42b3fa[_0x521929(0xbb)](_0x57c8d2,_0x62a923);},'RPgoO':_0x42b3fa[_0x4581b5(0x105)]};if(!_0x3df7ba[_0x4581b5(0xbf)]){logger['error'](_0x42b3fa[_0x4581b5(0x93)]);return;}await _0x3df7ba[_0x4581b5(0xe2)](_0x36c1c4),CLIUtils[_0x4581b5(0x89)](FRAMEWORKS['PLAYWRIGHT'],FRAMEWORKS[_0x4581b5(0xc1)]),BrowserstackCLI[_0x4581b5(0xdb)]()['setBrowserstackConfig'](_0x3df7ba[_0x4581b5(0xbf)],_0x3df7ba[_0x4581b5(0x133)],_0x3df7ba[_0x4581b5(0xda)]),await BrowserstackCLI['getInstance']()['bootstrap']();for(var _0x331d69=0x0;_0x42b3fa[_0x4581b5(0xa1)](_0x331d69,constants['INTERNALLY_USED_ENV_VARS'][_0x4581b5(0x11e)]);_0x331d69++){var _0x8c8a7e=constants['INTERNALLY_USED_ENV_VARS'][_0x331d69];process[_0x4581b5(0x10c)][_0x8c8a7e]&&await ClientTroubleShootingService['reportConflictingEnvVarIssue'](_0x8c8a7e);}const _0x51f1b3=BrowserstackCLI['getInstance']()[_0x4581b5(0xc4)]();!helper[_0x4581b5(0x7e)](_0x51f1b3['browserstackAutomation'])&&(process['env'][_0x4581b5(0xdc)]=!![]);_0x42b3fa[_0x4581b5(0x119)](_0x51f1b3['browserstackAutomation'],![])&&(process[_0x4581b5(0x10c)][_0x4581b5(0xdc)]=_0x42b3fa[_0x4581b5(0xf5)],_0x4b1e78=_0x4b1e78['filter'](_0x1ab3ba=>_0x1ab3ba!==_0x4581b5(0x137)));const _0x51a3cc=_0x4b1e78[_0x4581b5(0xc0)](_0x42b3fa['DkpcP']);(_0x42b3fa[_0x4581b5(0xb2)](_0x51a3cc,0x0)||_0x42b3fa[_0x4581b5(0xac)](_0x51f1b3[_0x4581b5(0x130)],![]))&&(process['env'][_0x4581b5(0xa7)]=_0x42b3fa[_0x4581b5(0xf5)],_0x4b1e78=_0x4b1e78[_0x4581b5(0xa0)](_0x49c022=>_0x49c022!==_0x4581b5(0x113)));!helper[_0x4581b5(0x85)](_0x3df7ba[_0x4581b5(0xda)])&&_0x3df7ba[_0x4581b5(0xda)][_0x4581b5(0xc7)](_0x42b3fa[_0x4581b5(0x9a)])&&(process[_0x4581b5(0x10c)][_0x4581b5(0xdc)]=_0x3df7ba['cliConfig'][_0x4581b5(0xd1)](_0x42b3fa[_0x4581b5(0x9a)])||!![]);_0x42b3fa[_0x4581b5(0x8f)](_0x3df7ba[_0x4581b5(0xbf)][_0x4581b5(0x130)],null)&&!helper[_0x4581b5(0x10d)](process['env'][_0x4581b5(0xa7)])&&(process['env'][_0x4581b5(0xa7)]=process['env']['BROWSERSTACK_TEST_OBSERVABILITY']||_0x3df7ba[_0x4581b5(0xbf)][_0x4581b5(0x130)]);const _0x4663f9=!helper['isFalse'](process[_0x4581b5(0x10c)][_0x4581b5(0xa7)]);_0x3df7ba['config'][_0x4581b5(0x9d)]&&(process[_0x4581b5(0x10c)][_0x4581b5(0xb4)]=JSON['stringify'](_0x3df7ba['config'][_0x4581b5(0x9d)]));let _0x51c051=![];_0x3df7ba['config']['accessibility']&&(_0x51c051=!![],process[_0x4581b5(0x10c)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x3df7ba[_0x4581b5(0xbf)][_0x4581b5(0x132)]);const _0xe63c6=_0x4b1e78['concat'](),_0x57e8e7=await _0x42b3fa['NslhV'](getUserPlaywrightConfig,_0x36c1c4,_0x4b1e78);if(helper['isUndefined'](_0x57e8e7)){_0x42b3fa['GdTru'](spawnOriginalProcess,_0xe63c6);return;}const _0x1cbdd4=_0x57e8e7[_0x4581b5(0xd8)]?path['dirname'](_0x57e8e7[_0x4581b5(0xd8)]):process[_0x4581b5(0x8e)]();process[_0x4581b5(0x10c)]['BROWSERSTACK_PW_CONFIG_DIR']=_0x1cbdd4,await PerformanceTester[_0x4581b5(0xf4)](PerformanceEvents[_0x4581b5(0xbe)],async()=>{const _0x1badee=_0x4581b5;!BrowserstackCLI[_0x1badee(0xdb)]()[_0x1badee(0xc2)]()&&await TestHubHandler[_0x1badee(0xa2)](FRAMEWORKS[_0x1badee(0xc1)],_0x3df7ba),_0x4663f9&&_0x1f3ff0[_0x1badee(0x103)](handleO11yRerun,_0x4b1e78);})();if(!BrowserstackCLI[_0x4581b5(0xdb)]()[_0x4581b5(0xc2)]()){let _0x1dcfdf=_0x42b3fa['JpRla'](process[_0x4581b5(0x10c)][_0x4581b5(0x117)],_0x42b3fa[_0x4581b5(0x7f)]);_0x1dcfdf=_0x1dcfdf||_0x42b3fa['TOyxz'](checkAccessibilityPlatformConfig,_0x3df7ba[_0x4581b5(0xbf)]),process[_0x4581b5(0x10c)][_0x4581b5(0x117)]=_0x1dcfdf,_0x1dcfdf&&_0x42b3fa[_0x4581b5(0xb0)](setAccessibilityCapabilities,_0x3df7ba[_0x4581b5(0xbf)]);}const _0x59f2f9=path['join'](_0x57e8e7['path']?path[_0x4581b5(0x10b)](_0x57e8e7[_0x4581b5(0xd8)]):process[_0x4581b5(0x8e)](),_0x42b3fa['UwWgd']);fs[_0x4581b5(0xbc)](_0x59f2f9,helper[_0x4581b5(0xb3)](_0x3df7ba['config'])),process[_0x4581b5(0x10c)][_0x4581b5(0x12f)]=_0x59f2f9,helper[_0x4581b5(0x11f)]();let _0x537621='';_0x42b3fa[_0x4581b5(0x7d)](helper[_0x4581b5(0xfe)](),constants[_0x4581b5(0xe9)][_0x4581b5(0xd7)])?_0x537621=_0x42b3fa['xEwSs']:_0x537621=_0x42b3fa[_0x4581b5(0xaf)];let _0x25c779='';if(helper[_0x4581b5(0xf2)](_0x57e8e7[_0x4581b5(0xd8)])){_0x25c779=_0x4581b5(0xba);const _0x52ee0b=_0x537621['split']('.');_0x52ee0b[_0x42b3fa[_0x4581b5(0x121)](_0x52ee0b[_0x4581b5(0x11e)],0x1)]='ts',_0x537621=_0x52ee0b[_0x4581b5(0x106)]('.'),logger[_0x4581b5(0x116)](_0x42b3fa[_0x4581b5(0xbb)](_0x42b3fa['bOWjL'],_0x537621));}else _0x25c779=_0x4581b5(0xc8);const _0x2e6946=path['join'](_0x57e8e7[_0x4581b5(0xd8)]?path[_0x4581b5(0x10b)](_0x57e8e7[_0x4581b5(0xd8)]):process['cwd'](),_0x537621);let _0x5b9c6d=_0x57e8e7['path']?_0x57e8e7[_0x4581b5(0xd8)]:'';_0x5b9c6d=_0x42b3fa['YkzZs'](_0x5b9c6d[_0x4581b5(0x11e)],0x0)?path[_0x4581b5(0x124)](_0x5b9c6d):'',process[_0x4581b5(0x10c)][_0x4581b5(0x107)]=_0x5b9c6d;const _0x3f693c=helper['getProxyUrl'](_0x3df7ba[_0x4581b5(0xbf)]),_0x2941b0=helper[_0x4581b5(0x126)](_0x3df7ba[_0x4581b5(0xbf)]);logger['debug'](_0x4581b5(0xb9)+_0x3f693c),logger[_0x4581b5(0x116)](_0x4581b5(0x100)+_0x2941b0);_0x3f693c&&(_0x25c779=_0x42b3fa[_0x4581b5(0xee)]('process.env.GLOBAL_AGENT_HTTP_PROXY=\x22'+_0x3f693c+_0x4581b5(0x111)+_0x2941b0+'\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}catch{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20This\x20is\x20a\x20failsafe\x20if\x20global-agent\x20present\x20inside\x20sdk\x20node_modules\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22./node_modules/browserstack-node-sdk/node_modules/global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20};\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap();',_0x25c779));helper['filterBrowserstackArgs']({},_0x4b1e78),fs[_0x4581b5(0xbc)](_0x2e6946,_0x25c779),PerformanceTester['end'](PerformanceEvents[_0x4581b5(0x120)]);const _0x4cdd1c=_0x42b3fa[_0x4581b5(0x135)](spawn,helper['isYarnPnP']()?_0x42b3fa['zZTTM']:_0x42b3fa[_0x4581b5(0xdd)],[_0x42b3fa['fFful'],_0x42b3fa[_0x4581b5(0xa5)],_0x42b3fa[_0x4581b5(0x8d)],_0x42b3fa[_0x4581b5(0x7d)](process[_0x4581b5(0xbd)],_0x42b3fa[_0x4581b5(0x88)])?'\x22'+_0x2e6946+'\x22':_0x2e6946,..._0x4b1e78[_0x4581b5(0x97)](0x2)],{'shell':_0x42b3fa[_0x4581b5(0xac)](process['platform'],_0x42b3fa[_0x4581b5(0x88)]),'stdio':_0x42b3fa[_0x4581b5(0xca)],'cwd':process[_0x4581b5(0x8e)](),'env':Object[_0x4581b5(0xe7)]({},process[_0x4581b5(0x10c)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x4581b5(0xd3)](_0x36c1c4),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x3df7ba[_0x4581b5(0xbf)][_0x4581b5(0x131)][_0x4581b5(0x82)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x3df7ba[_0x4581b5(0xbf)][_0x4581b5(0x131)][_0x4581b5(0xaa)],'BROWSERSTACK_LOG_LEVEL':_0x3df7ba[_0x4581b5(0xbf)]['logLevel']})}),_0x48d400=()=>{const _0x1eb2fa=_0x4581b5;try{const _0x16bd3a=path[_0x1eb2fa(0x106)](helper[_0x1eb2fa(0x10f)](),_0x1f3ff0[_0x1eb2fa(0xeb)],_0x1f3ff0[_0x1eb2fa(0xd6)]);if(fs['existsSync'](_0x16bd3a)){let _0x302b3a=fs[_0x1eb2fa(0xb6)](_0x16bd3a);_0x302b3a=JSON[_0x1eb2fa(0x92)](_0x302b3a),_0x3df7ba['errorMessage']=_0x302b3a,fs['unlinkSync'](_0x16bd3a);}}catch(_0x47c1ac){logger['debug'](_0x1f3ff0[_0x1eb2fa(0x112)](_0x1f3ff0[_0x1eb2fa(0xcf)],_0x47c1ac));}};_0x4cdd1c['on'](_0x42b3fa['ecfKB'],async _0x2be812=>{const _0x27513f=_0x4581b5,_0x1f8cef={};_0x1f8cef[_0x27513f(0x98)]=_0x42b3fa['YWXGa'];const _0x4731f1=_0x1f8cef;try{PerformanceTester[_0x27513f(0x129)](PerformanceEvents[_0x27513f(0xa4)]),_0x42b3fa[_0x27513f(0x12b)](_0x48d400),await TestHubHandler[_0x27513f(0x12d)](),await ClientTroubleShootingService[_0x27513f(0x8b)]();const _0xd83d5f=BrowserstackCLI[_0x27513f(0xef)]();await BrowserstackCLI[_0x27513f(0xdb)]()[_0x27513f(0x12d)](),TestDetails[_0x27513f(0xa6)](),_0x42b3fa[_0x27513f(0xce)](printBuildLink),await utilities['finalExecution'](_0x3df7ba,_0xd83d5f),process[_0x27513f(0xd2)]=_0x2be812,logger['debug'](_0x27513f(0x96)+_0x2be812),logger[_0x27513f(0xcd)]('Deleting\x20'+_0x2e6946),fs['unlinkSync'](_0x2e6946);fs[_0x27513f(0xdf)](_0x59f2f9)&&(logger[_0x27513f(0x116)](_0x27513f(0x109)+_0x59f2f9),fs[_0x27513f(0xc3)](_0x59f2f9));const _0x1cf1cc=fs['readdirSync'](path[_0x27513f(0x106)](helper[_0x27513f(0x10f)](),_0x42b3fa[_0x27513f(0x139)]))[_0x27513f(0xa0)](_0x3b2c6e=>_0x3b2c6e[_0x27513f(0x101)]('trace_'));_0x1cf1cc[_0x27513f(0x9c)](_0x27010f=>{const _0x177c4e=_0x27513f;fs[_0x177c4e(0xc3)](path['join'](helper[_0x177c4e(0x10f)](),_0x4731f1[_0x177c4e(0x98)],_0x27010f));});}catch(_0x21c441){logger[_0x27513f(0x116)](_0x42b3fa[_0x27513f(0x122)](_0x42b3fa[_0x27513f(0xe8)],_0x21c441));}});})();}module[a43_0xe653a7(0xfc)]=run;
|
|
2
|
+
'use strict';const a43_0x4a84e0=a43_0x45d7;function a43_0x1509(){const _0x23b3e6=['dirname','fmcHx','IkFgC','vNCWm','4nearmf','1762943XNkkUO','BJEjl','initialize','errorMessage','../utils/constants','skipSessionStatus','requirePWModule','QCyWv','resolvedConfigFile','isRunning','7389AvwVYL','mriyC','forEach','Yhapt','PLAYWRIGHT','bootstrap','Error\x20in\x20closing\x20playwright','tymuf','true','boxVI','npx','fqxJd','pkioJ','AGLXk','getConfig','getProxyUrl','ZmGkY','filter','existsSync','../v2/browserstackCLI','../../helpers/utilities','qmeaA','get','trim','XRKZk','Error\x20in\x20getting\x20funnel\x20data\x20results','rDRuq','Error\x20in\x20deleting\x20playwright\x20results','6340150KPNHAc','isTypescriptProject','playwright-browserstack-sdk.config.cjs','pPBUG','util','eYjqt','./reporter/pwUtils','DCKco','qEhpH','Deleting\x20','shutdown','concat','HTSIS','OfPtD','ECJbT','BROWSERSTACK_PW_CONFIG_DIR','MRJaD','isTrue','NzJXm','783495XQRJJt','cliConfig','isCLIEnabled','test','requireConfigLoaderYarnPnP','split','BROWSERSTACK_RERUN','OjFjy','testContextOptions','--config=','sIzYL','jIhwi','IECoe','Proxy\x20url\x20:\x20','isYarnPnP','Playwright\x20process\x20exited\x20with\x20code\x20','BqAoy','false','WDTyh','SDK_CLEANUP','EWVjI','RnNmU','../../helpers/testhub/testhubHandler','parse','readdirSync','win32','EQPwH','getPackageType','inherit','cWXsM','debug','7839UXULvQ','R_OK','ZZLcp','../v2/cliUtils','BROWSERSTACK_RERUN_TESTS','../../helpers/BrowserStackSetup','homedir','measureWrapper','YJESA','./accessibility-helper','isFalse','DxXyG','SDK_SETUP','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','wyoBE','KFJec','YVSUD','BROWSERSTACK_TEST_OBSERVABILITY','W_OK','clearTempPWConfig','automation','accessibilityOptions','serializeToYamlString','setFrameworkDetail','./reporter/test-details','--disable-browserstack-automation','startsWith','Updated\x20config\x20file\x20name\x20to\x20-\x20','cwd','playwright','35537227uvPOlH','lBjYk','HNtUf','length','../../helpers/helper','fzEHP','close','has','playwright-browserstack-sdk.config.js','getNoProxy','nestedKeyValue','ntSPh','DTvya','stop','accessibility','SDK_POST_INITIALIZE','slice','\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}catch{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20This\x20is\x20a\x20failsafe\x20if\x20global-agent\x20present\x20inside\x20sdk\x20node_modules\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22./node_modules/browserstack-node-sdk/node_modules/global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20};\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap();','bltxA','oImhi','192fgssEr','LLVyJ','reportFinalDetectionState','MODULE','SbBOi','getInstance','INTERNALLY_USED_ENV_VARS','QIBbi','pw_result.json','MBaEB','../../helpers/performance/performance-tester','constants','exports','browserstackAutomation','env','3170877zwodOh','platform','BROWSERSTACK_TEST_ACCESSIBILITY_YML','BROWSERSTACK_AUTOMATION','error','trace_','BROWSERSTACK_SETUP_CONFIG_PATH','OnPRD','push','yarn','eySPF','6896QtsgbK','config','start','testObservability','winstonLogger','--grep','logLevel','18rNAhnh','tEDLb','\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20process.env.GLOBAL_AGENT_NO_PROXY=\x22','12XsrutE','isUndefined','validateRerunTestList','reportDotBrowserStackFolderNotAccessibleIssue','pTCbF','No\x20Proxy\x20:\x20','path','USER_CONFIG_DETAILS_PATH','writeFileSync','../../helpers/accessibility-automation/helper','unlinkSync','indexOf','finalExecution','Gjupi','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','skipSessionName','setBrowserstackConfig','--disable-test-observability','browserstackSetupConfig.json','join'];a43_0x1509=function(){return _0x23b3e6;};return a43_0x1509();}(function(_0x2a30ee,_0x40acd7){const _0x1c8299=a43_0x45d7,_0x11923a=_0x2a30ee();while(!![]){try{const _0x4de91f=-parseInt(_0x1c8299(0x258))/0x1*(parseInt(_0x1c8299(0x28a))/0x2)+-parseInt(_0x1c8299(0x299))/0x3*(parseInt(_0x1c8299(0x1ff))/0x4)+-parseInt(_0x1c8299(0x239))/0x5*(parseInt(_0x1c8299(0x2ab))/0x6)+-parseInt(_0x1c8299(0x200))/0x7+-parseInt(_0x1c8299(0x2a4))/0x8*(parseInt(_0x1c8299(0x20a))/0x9)+parseInt(_0x1c8299(0x226))/0xa+parseInt(_0x1c8299(0x276))/0xb*(parseInt(_0x1c8299(0x2ae))/0xc);if(_0x4de91f===_0x40acd7)break;else _0x11923a['push'](_0x11923a['shift']());}catch(_0x2167c8){_0x11923a['push'](_0x11923a['shift']());}}}(a43_0x1509,0x98b71));const fs=require('fs'),path=require(a43_0x4a84e0(0x1ed)),{spawn}=require('child_process'),{format}=require(a43_0x4a84e0(0x22a)),logger=require('../../helpers/logger')[a43_0x4a84e0(0x2a8)],{default:BrowserStackSetup}=require(a43_0x4a84e0(0x25d)),helper=require(a43_0x4a84e0(0x27a)),utilities=require(a43_0x4a84e0(0x21e)),constants=require(a43_0x4a84e0(0x204)),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{getConfigLoaderPath}=require(a43_0x4a84e0(0x22c)),{checkAccessibilityPlatformConfig}=require(a43_0x4a84e0(0x1f0)),{setAccessibilityCapabilities}=require(a43_0x4a84e0(0x261)),{printBuildLink}=require('../../helpers/test-observability/utils'),TestDetails=require(a43_0x4a84e0(0x270)),TestHubHandler=require(a43_0x4a84e0(0x24f)),PerformanceTester=require(a43_0x4a84e0(0x294)),BrowserstackCLI=require(a43_0x4a84e0(0x21d)),PerformanceEvents=require('../../helpers/performance/constants')['EVENTS'],CLIUtils=require(a43_0x4a84e0(0x25b)),TestInfo=require('../v2/TestInfo'),ClientTroubleShootingService=require('../utils/clientTroubleshootingService'),getUserPlaywrightConfig=async(_0x2ee84c,_0x435a4a)=>{const _0x3028e3=a43_0x4a84e0,_0x1b4a76={'OnPRD':function(_0x4b5082){return _0x4b5082();},'wyoBE':function(_0x3c1bf0){return _0x3c1bf0();},'bltxA':function(_0x25305b,_0x2c4bef){return _0x25305b(_0x2c4bef);},'tEDLb':function(_0x4b80d4,_0x222092){return _0x4b80d4(_0x222092);},'SbBOi':_0x3028e3(0x208),'BqAoy':_0x3028e3(0x242)},_0x350722=!helper[_0x3028e3(0x2af)](_0x2ee84c[_0x3028e3(0x2a5)]),_0x28efbf=_0x350722?path['resolve'](process[_0x3028e3(0x274)](),_0x2ee84c[_0x3028e3(0x2a5)]):process[_0x3028e3(0x274)](),{resolveConfigFile:_0x332847,resolveConfigLocation:_0x4b4dc3}=helper[_0x3028e3(0x247)]()?helper[_0x3028e3(0x23d)](..._0x1b4a76[_0x3028e3(0x2a0)](getConfigLoaderPath)):helper[_0x3028e3(0x206)]['apply'](null,_0x1b4a76[_0x3028e3(0x266)](getConfigLoaderPath)),_0x1135fc=_0x332847?_0x1b4a76[_0x3028e3(0x288)](_0x332847,_0x28efbf):helper[_0x3028e3(0x280)](_0x1b4a76[_0x3028e3(0x2ac)](_0x4b4dc3,_0x28efbf),[_0x1b4a76[_0x3028e3(0x28e)]]),_0x28f948={};if(_0x350722){const _0x478fe7=_0x435a4a['findIndex'](_0x10f68e=>_0x10f68e==='--config'||_0x10f68e==='-c'||_0x10f68e[_0x3028e3(0x272)]('--config='));_0x435a4a['splice'](_0x478fe7,_0x435a4a[_0x478fe7][_0x3028e3(0x272)](_0x1b4a76[_0x3028e3(0x249)])?0x1:0x2);}const _0x860d64={};return _0x860d64[_0x3028e3(0x1ed)]=_0x1135fc,_0x860d64[_0x3028e3(0x2a5)]=_0x28f948,_0x860d64;},handleO11yRerun=_0x5b75e4=>{const _0x550db6=a43_0x4a84e0,_0x16f8a8={};_0x16f8a8[_0x550db6(0x232)]=_0x550db6(0x2a9);const _0x3dd3a1=_0x16f8a8,_0x44ddff=helper['isTrue'](process[_0x550db6(0x298)][_0x550db6(0x23f)]);if(_0x44ddff){const _0x479318=process[_0x550db6(0x298)][_0x550db6(0x25c)],_0x50e02f=[];if(helper[_0x550db6(0x1e9)](_0x479318)&&!helper[_0x550db6(0x2af)](_0x479318)){_0x479318[_0x550db6(0x23e)](',')['map'](_0x27392c=>{const _0x176207=_0x550db6;_0x50e02f['push']('('+_0x27392c[_0x176207(0x221)]()+')');});const _0x44017e='^'+_0x50e02f[_0x550db6(0x1fa)]('|')+'$';_0x5b75e4[_0x550db6(0x2a1)](_0x3dd3a1[_0x550db6(0x232)],_0x44017e);}}},spawnOriginalProcess=_0x806095=>{const _0x44b4cb=a43_0x4a84e0,_0x3f413b={'Gjupi':function(_0x1eb9e6,_0x36594e,_0x879075,_0x2afcd3){return _0x1eb9e6(_0x36594e,_0x879075,_0x2afcd3);},'eQqel':_0x44b4cb(0x2a2),'QCyWv':_0x44b4cb(0x214),'rDRuq':_0x44b4cb(0x275),'IECoe':function(_0x2c622a,_0x86586a){return _0x2c622a===_0x86586a;},'Npdyr':_0x44b4cb(0x252),'WDTyh':_0x44b4cb(0x255)};_0x3f413b[_0x44b4cb(0x1f4)](spawn,helper['isYarnPnP']()?_0x3f413b['eQqel']:_0x3f413b[_0x44b4cb(0x207)],[_0x3f413b[_0x44b4cb(0x224)],..._0x806095['slice'](0x1)],{'shell':_0x3f413b[_0x44b4cb(0x245)](process['platform'],_0x3f413b['Npdyr']),'stdio':_0x3f413b[_0x44b4cb(0x24b)],'cwd':process['cwd']()});},isTestCommand=(_0x3ba9c3,_0x284530)=>{const _0x86c52b=a43_0x4a84e0,_0x48e521={};_0x48e521[_0x86c52b(0x233)]=function(_0x4cbf66,_0x5abd8b){return _0x4cbf66>_0x5abd8b;},_0x48e521[_0x86c52b(0x236)]=function(_0x10d490,_0x3f1ad6){return _0x10d490===_0x3f1ad6;},_0x48e521[_0x86c52b(0x25a)]='test';const _0xea55da=_0x48e521;if(_0xea55da['OfPtD'](_0x284530[_0x86c52b(0x279)],0x1)&&_0xea55da['MRJaD'](_0x284530[0x1],_0xea55da[_0x86c52b(0x25a)]))return!![];return![];};async function run(_0x2ba7ae,_0x146aee,_0x121b1a){const _0x5e449a=a43_0x4a84e0,_0x3d60c1={'MBaEB':function(_0x3a1de5,_0x2a09ad){return _0x3a1de5(_0x2a09ad);},'OjFjy':'.browserstack','eYjqt':_0x5e449a(0x292),'Yhapt':function(_0x270be8,_0x4d33c1){return _0x270be8+_0x4d33c1;},'LNplZ':_0x5e449a(0x223),'oImhi':function(_0x2d4e27){return _0x2d4e27();},'fzEHP':_0x5e449a(0x210),'DxXyG':'BrowserStack\x20config\x20file\x20not\x20found.','mriyC':function(_0x1c698c,_0x5a4d42){return _0x1c698c<_0x5a4d42;},'NzJXm':function(_0x28daa9,_0x3348ac){return _0x28daa9===_0x3348ac;},'KFJec':_0x5e449a(0x24a),'YVSUD':_0x5e449a(0x1f8),'YJESA':function(_0x505ff1,_0x266300){return _0x505ff1>=_0x266300;},'qmeaA':function(_0x47f07a,_0x4fe240){return _0x47f07a===_0x4fe240;},'HNtUf':_0x5e449a(0x26c),'cEWTn':function(_0x4668bd,_0x28bc69){return _0x4668bd!=_0x28bc69;},'jIhwi':function(_0x5e6e4f,_0x16e9d7,_0x284e51){return _0x5e6e4f(_0x16e9d7,_0x284e51);},'XRKZk':function(_0x2bd2ee,_0x225575){return _0x2bd2ee(_0x225575);},'GWNDv':_0x5e449a(0x212),'RnNmU':_0x5e449a(0x1f9),'IkFgC':function(_0x51d9e3,_0x3dee8d){return _0x51d9e3===_0x3dee8d;},'DCKco':_0x5e449a(0x228),'boxVI':_0x5e449a(0x27e),'EWVjI':function(_0x3cb326,_0x30addd){return _0x3cb326-_0x30addd;},'HXuPx':_0x5e449a(0x273),'pkioJ':function(_0x10e889,_0x37e841){return _0x10e889>_0x37e841;},'AGLXk':function(_0x42df7e,_0x17e9ab,_0x2fb80e,_0x4f4f1a){return _0x42df7e(_0x17e9ab,_0x2fb80e,_0x4f4f1a);},'vNCWm':_0x5e449a(0x2a2),'ECJbT':_0x5e449a(0x214),'eySPF':_0x5e449a(0x275),'pPBUG':_0x5e449a(0x23c),'fqxJd':'--config','qEhpH':function(_0x56dc4a,_0x52e443){return _0x56dc4a===_0x52e443;},'LLVyJ':_0x5e449a(0x252),'oWmYw':function(_0x3864d6,_0x11fd30){return _0x3864d6===_0x11fd30;},'pTCbF':_0x5e449a(0x255),'ubfVS':_0x5e449a(0x27c),'QIBbi':function(_0x1e10ce,_0x584068){return _0x1e10ce|_0x584068;},'lBjYk':function(_0x34d9c8,_0x17851c){return _0x34d9c8+_0x17851c;},'ntSPh':'Error\x20in\x20accessing\x20.browserstack\x20directory:\x20','DTvya':_0x5e449a(0x225)};try{const _0x2ee0d6=path[_0x5e449a(0x1fa)](helper[_0x5e449a(0x25e)](),_0x3d60c1[_0x5e449a(0x240)]);try{fs['accessSync'](_0x2ee0d6,_0x3d60c1[_0x5e449a(0x291)](fs[_0x5e449a(0x295)][_0x5e449a(0x259)],fs[_0x5e449a(0x295)][_0x5e449a(0x26a)]));}catch(_0x3954b8){ClientTroubleShootingService[_0x5e449a(0x1ea)]();}}catch(_0x499a9f){logger[_0x5e449a(0x257)](_0x3d60c1['lBjYk'](_0x3d60c1[_0x5e449a(0x281)],_0x499a9f));}try{const _0x390320=path[_0x5e449a(0x1fa)](helper[_0x5e449a(0x25e)](),_0x3d60c1[_0x5e449a(0x240)],_0x3d60c1['eYjqt']);fs[_0x5e449a(0x21c)](_0x390320)&&fs[_0x5e449a(0x1f1)](_0x390320);}catch(_0x54ef68){logger['debug'](_0x3d60c1[_0x5e449a(0x277)](_0x3d60c1[_0x5e449a(0x282)],_0x54ef68));}if(!_0x3d60c1[_0x5e449a(0x244)](isTestCommand,_0x2ba7ae,_0x146aee)){_0x3d60c1['MBaEB'](spawnOriginalProcess,_0x146aee);return;}await PerformanceTester[_0x5e449a(0x25f)](PerformanceEvents['SDK_PRE_INITIALIZE'],async()=>{const _0x53f744=_0x5e449a,_0x301b49={'sIzYL':_0x3d60c1[_0x53f744(0x240)],'BJEjl':_0x3d60c1[_0x53f744(0x22b)],'HhWMD':function(_0x133e07,_0x3d3634){const _0x2d2e0a=_0x53f744;return _0x3d60c1[_0x2d2e0a(0x20d)](_0x133e07,_0x3d3634);},'fmcHx':_0x3d60c1['LNplZ'],'cWXsM':function(_0x27c287){const _0x103c84=_0x53f744;return _0x3d60c1[_0x103c84(0x289)](_0x27c287);},'EQPwH':function(_0xb79b9c,_0x18a222){const _0x57b05c=_0x53f744;return _0x3d60c1[_0x57b05c(0x20d)](_0xb79b9c,_0x18a222);},'ZmGkY':_0x3d60c1[_0x53f744(0x27b)]};if(!_0x121b1a[_0x53f744(0x2a5)]){logger[_0x53f744(0x29d)](_0x3d60c1[_0x53f744(0x263)]);return;}await _0x121b1a[_0x53f744(0x202)](_0x2ba7ae),CLIUtils[_0x53f744(0x26f)](FRAMEWORKS[_0x53f744(0x20e)],FRAMEWORKS['PLAYWRIGHT']),BrowserstackCLI[_0x53f744(0x28f)]()[_0x53f744(0x1f7)](_0x121b1a[_0x53f744(0x2a5)],_0x121b1a['configPath'],_0x121b1a[_0x53f744(0x23a)]),await BrowserstackCLI[_0x53f744(0x28f)]()[_0x53f744(0x20f)]();for(var _0x5578e9=0x0;_0x3d60c1[_0x53f744(0x20b)](_0x5578e9,constants[_0x53f744(0x290)][_0x53f744(0x279)]);_0x5578e9++){var _0x5b2942=constants[_0x53f744(0x290)][_0x5578e9];process[_0x53f744(0x298)][_0x5b2942]&&await ClientTroubleShootingService['reportConflictingEnvVarIssue'](_0x5b2942);}const _0x54892a=BrowserstackCLI[_0x53f744(0x28f)]()[_0x53f744(0x218)]();!helper[_0x53f744(0x262)](_0x54892a['browserstackAutomation'])&&(process[_0x53f744(0x298)][_0x53f744(0x29c)]=!![]);_0x3d60c1[_0x53f744(0x238)](_0x54892a[_0x53f744(0x297)],![])&&(process[_0x53f744(0x298)][_0x53f744(0x29c)]=_0x3d60c1[_0x53f744(0x267)],_0x146aee=_0x146aee[_0x53f744(0x21b)](_0x55a99f=>_0x55a99f!==_0x53f744(0x271)));const _0x112a11=_0x146aee[_0x53f744(0x1f2)](_0x3d60c1[_0x53f744(0x268)]);(_0x3d60c1[_0x53f744(0x260)](_0x112a11,0x0)||_0x3d60c1[_0x53f744(0x21f)](_0x54892a['testObservability'],![]))&&(process[_0x53f744(0x298)][_0x53f744(0x269)]=_0x3d60c1[_0x53f744(0x267)],_0x146aee=_0x146aee[_0x53f744(0x21b)](_0x4ebe0a=>_0x4ebe0a!=='--disable-test-observability'));!helper[_0x53f744(0x2af)](_0x121b1a[_0x53f744(0x23a)])&&_0x121b1a[_0x53f744(0x23a)][_0x53f744(0x27d)](_0x3d60c1[_0x53f744(0x278)])&&(process[_0x53f744(0x298)]['BROWSERSTACK_AUTOMATION']=_0x121b1a['cliConfig'][_0x53f744(0x220)](_0x3d60c1[_0x53f744(0x278)])||!![]);_0x3d60c1['cEWTn'](_0x121b1a[_0x53f744(0x2a5)][_0x53f744(0x2a7)],null)&&!helper[_0x53f744(0x237)](process[_0x53f744(0x298)]['BROWSERSTACK_TEST_OBSERVABILITY'])&&(process[_0x53f744(0x298)][_0x53f744(0x269)]=process[_0x53f744(0x298)]['BROWSERSTACK_TEST_OBSERVABILITY']||_0x121b1a[_0x53f744(0x2a5)]['testObservability']);const _0x93ce08=!helper[_0x53f744(0x262)](process[_0x53f744(0x298)]['BROWSERSTACK_TEST_OBSERVABILITY']);_0x121b1a['config'][_0x53f744(0x26d)]&&(process[_0x53f744(0x298)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON['stringify'](_0x121b1a['config'][_0x53f744(0x26d)]));let _0xc1f0e7=![];_0x121b1a[_0x53f744(0x2a5)][_0x53f744(0x284)]&&(_0xc1f0e7=!![],process[_0x53f744(0x298)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x121b1a[_0x53f744(0x2a5)][_0x53f744(0x284)]);const _0x3a2581=_0x146aee[_0x53f744(0x231)](),_0x55eb50=await _0x3d60c1[_0x53f744(0x244)](getUserPlaywrightConfig,_0x2ba7ae,_0x146aee);if(helper[_0x53f744(0x2af)](_0x55eb50)){_0x3d60c1[_0x53f744(0x222)](spawnOriginalProcess,_0x3a2581);return;}const _0x40f97f=_0x55eb50[_0x53f744(0x1ed)]?path[_0x53f744(0x1fb)](_0x55eb50[_0x53f744(0x1ed)]):process[_0x53f744(0x274)]();process[_0x53f744(0x298)][_0x53f744(0x235)]=_0x40f97f,await PerformanceTester[_0x53f744(0x25f)](PerformanceEvents[_0x53f744(0x285)],async()=>{const _0x4cbaaa=_0x53f744;!BrowserstackCLI['getInstance']()[_0x4cbaaa(0x209)]()&&await TestHubHandler['launchBuild'](FRAMEWORKS['PLAYWRIGHT'],_0x121b1a),_0x93ce08&&_0x3d60c1[_0x4cbaaa(0x293)](handleO11yRerun,_0x146aee);})();if(!BrowserstackCLI[_0x53f744(0x28f)]()['isRunning']()){let _0x205f20=_0x3d60c1[_0x53f744(0x21f)](process[_0x53f744(0x298)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML'],_0x3d60c1['GWNDv']);_0x205f20=_0x205f20||_0x3d60c1[_0x53f744(0x222)](checkAccessibilityPlatformConfig,_0x121b1a['config']),process['env'][_0x53f744(0x29b)]=_0x205f20,_0x205f20&&_0x3d60c1[_0x53f744(0x222)](setAccessibilityCapabilities,_0x121b1a['config']);}const _0x29637e=path['join'](_0x55eb50['path']?path[_0x53f744(0x1fb)](_0x55eb50[_0x53f744(0x1ed)]):process[_0x53f744(0x274)](),_0x3d60c1[_0x53f744(0x24e)]);fs[_0x53f744(0x1ef)](_0x29637e,helper[_0x53f744(0x26e)](_0x121b1a[_0x53f744(0x2a5)])),process[_0x53f744(0x298)][_0x53f744(0x29f)]=_0x29637e,helper[_0x53f744(0x26b)]();let _0x74dfce='';_0x3d60c1[_0x53f744(0x1fd)](helper[_0x53f744(0x254)](),constants['PACKAGE_TYPE'][_0x53f744(0x28d)])?_0x74dfce=_0x3d60c1[_0x53f744(0x22d)]:_0x74dfce=_0x3d60c1[_0x53f744(0x213)];let _0x2add85='';if(helper[_0x53f744(0x227)](_0x55eb50['path'])){_0x2add85=_0x53f744(0x1f5);const _0x30d0f2=_0x74dfce[_0x53f744(0x23e)]('.');_0x30d0f2[_0x3d60c1[_0x53f744(0x24d)](_0x30d0f2[_0x53f744(0x279)],0x1)]='ts',_0x74dfce=_0x30d0f2[_0x53f744(0x1fa)]('.'),logger[_0x53f744(0x257)](_0x3d60c1[_0x53f744(0x20d)](_0x3d60c1['HXuPx'],_0x74dfce));}else _0x2add85=_0x53f744(0x265);const _0x38d08d=path[_0x53f744(0x1fa)](_0x55eb50[_0x53f744(0x1ed)]?path['dirname'](_0x55eb50[_0x53f744(0x1ed)]):process['cwd'](),_0x74dfce);let _0x205b8b=_0x55eb50[_0x53f744(0x1ed)]?_0x55eb50[_0x53f744(0x1ed)]:'';_0x205b8b=_0x3d60c1[_0x53f744(0x216)](_0x205b8b['length'],0x0)?path['resolve'](_0x205b8b):'',process[_0x53f744(0x298)][_0x53f744(0x1ee)]=_0x205b8b;const _0x47538e=helper[_0x53f744(0x219)](_0x121b1a[_0x53f744(0x2a5)]),_0x422ecd=helper[_0x53f744(0x27f)](_0x121b1a[_0x53f744(0x2a5)]);logger[_0x53f744(0x257)](_0x53f744(0x246)+_0x47538e),logger['debug'](_0x53f744(0x1ec)+_0x422ecd);_0x47538e&&(_0x2add85=_0x3d60c1['Yhapt']('process.env.GLOBAL_AGENT_HTTP_PROXY=\x22'+_0x47538e+_0x53f744(0x2ad)+_0x422ecd+_0x53f744(0x287),_0x2add85));helper['filterBrowserstackArgs']({},_0x146aee),fs['writeFileSync'](_0x38d08d,_0x2add85),PerformanceTester['end'](PerformanceEvents[_0x53f744(0x264)]);const _0x8f5169=_0x3d60c1[_0x53f744(0x217)](spawn,helper[_0x53f744(0x247)]()?_0x3d60c1[_0x53f744(0x1fe)]:_0x3d60c1[_0x53f744(0x234)],[_0x3d60c1[_0x53f744(0x2a3)],_0x3d60c1[_0x53f744(0x229)],_0x3d60c1[_0x53f744(0x215)],_0x3d60c1[_0x53f744(0x22e)](process['platform'],_0x3d60c1[_0x53f744(0x28b)])?'\x22'+_0x38d08d+'\x22':_0x38d08d,..._0x146aee[_0x53f744(0x286)](0x2)],{'shell':_0x3d60c1['oWmYw'](process[_0x53f744(0x29a)],_0x3d60c1[_0x53f744(0x28b)]),'stdio':_0x3d60c1[_0x53f744(0x1eb)],'cwd':process[_0x53f744(0x274)](),'env':Object['assign']({},process[_0x53f744(0x298)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper['getConfigPath'](_0x2ba7ae),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x121b1a[_0x53f744(0x2a5)][_0x53f744(0x241)][_0x53f744(0x205)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x121b1a[_0x53f744(0x2a5)]['testContextOptions'][_0x53f744(0x1f6)],'BROWSERSTACK_LOG_LEVEL':_0x121b1a[_0x53f744(0x2a5)][_0x53f744(0x2aa)]})}),_0x27cef6=()=>{const _0x414c6a=_0x53f744;try{const _0x16f3f3=path[_0x414c6a(0x1fa)](helper['homedir'](),_0x301b49[_0x414c6a(0x243)],_0x301b49[_0x414c6a(0x201)]);if(fs[_0x414c6a(0x21c)](_0x16f3f3)){let _0x57f259=fs['readFileSync'](_0x16f3f3);_0x57f259=JSON[_0x414c6a(0x250)](_0x57f259),_0x121b1a[_0x414c6a(0x203)]=_0x57f259,fs['unlinkSync'](_0x16f3f3);}}catch(_0x5f3a10){logger['debug'](_0x301b49['HhWMD'](_0x301b49[_0x414c6a(0x1fc)],_0x5f3a10));}};_0x8f5169['on'](_0x3d60c1['ubfVS'],async _0x500cbe=>{const _0x35ab53=_0x53f744,_0x58f729={};_0x58f729['tymuf']=_0x301b49[_0x35ab53(0x243)];const _0x32be76=_0x58f729;try{PerformanceTester[_0x35ab53(0x2a6)](PerformanceEvents[_0x35ab53(0x24c)]),_0x301b49[_0x35ab53(0x256)](_0x27cef6),await TestHubHandler['stop'](),await ClientTroubleShootingService[_0x35ab53(0x28c)]();const _0x90e589=BrowserstackCLI[_0x35ab53(0x23b)]();await BrowserstackCLI['getInstance']()[_0x35ab53(0x283)](),TestDetails[_0x35ab53(0x230)](),_0x301b49['cWXsM'](printBuildLink),await utilities[_0x35ab53(0x1f3)](_0x121b1a,_0x90e589),process['exitCode']=_0x500cbe,logger['debug'](_0x35ab53(0x248)+_0x500cbe),logger['info'](_0x35ab53(0x22f)+_0x38d08d),fs[_0x35ab53(0x1f1)](_0x38d08d);fs[_0x35ab53(0x21c)](_0x29637e)&&(logger[_0x35ab53(0x257)](_0x35ab53(0x22f)+_0x29637e),fs[_0x35ab53(0x1f1)](_0x29637e));const _0x5e4bf1=fs[_0x35ab53(0x251)](path['join'](helper[_0x35ab53(0x25e)](),_0x301b49['sIzYL']))[_0x35ab53(0x21b)](_0x270523=>_0x270523[_0x35ab53(0x272)](_0x35ab53(0x29e)));_0x5e4bf1[_0x35ab53(0x20c)](_0x27a220=>{const _0x40b390=_0x35ab53;fs['unlinkSync'](path[_0x40b390(0x1fa)](helper[_0x40b390(0x25e)](),_0x32be76[_0x40b390(0x211)],_0x27a220));});}catch(_0xe57d92){logger[_0x35ab53(0x257)](_0x301b49[_0x35ab53(0x253)](_0x301b49[_0x35ab53(0x21a)],_0xe57d92));}});})();}function a43_0x45d7(_0x3da0c5,_0x162134){const _0x150918=a43_0x1509();return a43_0x45d7=function(_0x45d71e,_0x58aaee){_0x45d71e=_0x45d71e-0x1e9;let _0x5a6406=_0x150918[_0x45d71e];return _0x5a6406;},a43_0x45d7(_0x3da0c5,_0x162134);}module[a43_0x4a84e0(0x296)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a44_0x2617d5=a44_0x5e68;function a44_0x45fc(){const _0x10af77=['984SwiTvf','2858504LvZOzP','exports','Not\x20able\x20to\x20import\x20globalSetup','CZQsu','apply','resolve','isHandlePWErrorSet','rhnaB','error','dbEyL','VmQxG','fork','util','1.33.0','Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20','133rmqwKj','205AmYOPx','includes','config','16GJYoWT','55557XlVCkT','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','child_process','env','BPdCm','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','908091oFpgYn','10446cbKZUE','TxYed','Bczuq','PLAYWRIGHT','Path\x20','format','requirePWModule','dAsUS','compareVersions','785840POsNan','function','../../helpers/test-observability/constants','330580dEamUA'];a44_0x45fc=function(){return _0x10af77;};return a44_0x45fc();}function a44_0x5e68(_0x1ea8ab,_0x165d3d){const _0x45fcaf=a44_0x45fc();return a44_0x5e68=function(_0x5e6869,_0x1868b8){_0x5e6869=_0x5e6869-0x106;let _0xe82ec2=_0x45fcaf[_0x5e6869];return _0xe82ec2;},a44_0x5e68(_0x1ea8ab,_0x165d3d);}(function(_0xc74377,_0x446140){const _0x22dafa=a44_0x5e68,_0x492405=_0xc74377();while(!![]){try{const _0xaedb44=parseInt(_0x22dafa(0x11a))/0x1+-parseInt(_0x22dafa(0x106))/0x2*(-parseInt(_0x22dafa(0x107))/0x3)+-parseInt(_0x22dafa(0x11b))/0x4*(-parseInt(_0x22dafa(0x12c))/0x5)+parseInt(_0x22dafa(0x10e))/0x6*(parseInt(_0x22dafa(0x12b))/0x7)+-parseInt(_0x22dafa(0x11c))/0x8+parseInt(_0x22dafa(0x10d))/0x9+-parseInt(_0x22dafa(0x117))/0xa;if(_0xaedb44===_0x446140)break;else _0x492405['push'](_0x492405['shift']());}catch(_0x1bb392){_0x492405['push'](_0x492405['shift']());}}}(a44_0x45fc,0x2da13));const util=require(a44_0x2617d5(0x128)),child_process=require(a44_0x2617d5(0x109)),{FRAMEWORKS}=require(a44_0x2617d5(0x119)),{getFrameworkVersion,debug}=require('../../helpers/test-observability/utils'),helper=require('../../helpers/helper'),{getLoadUtilsPath,getForkProcessPath}=require('./reporter/pwUtils'),{mockIsWorkerRedundant}=require('./patches'),logger=require('../../helpers/logger')['winstonLogger'];module[a44_0x2617d5(0x11d)]=async function(_0x56c307){const _0x4a97db=a44_0x2617d5,_0x126a89={'rhnaB':function(_0x50cb4b,_0x437f1d){return _0x50cb4b(_0x437f1d);},'VmQxG':function(_0x292429){return _0x292429();},'tEbbL':'./mock-process.js','CZQsu':function(_0x2fbabb){return _0x2fbabb();},'BPdCm':function(_0x3cc5c0,_0x48831f){return _0x3cc5c0(_0x48831f);},'dAsUS':'Running\x20existing\x20global\x20setup','dbEyL':function(_0x82a278){return _0x82a278();},'kekkQ':function(_0x2ae87d,_0x23a12f){return _0x2ae87d>=_0x23a12f;},'TxYed':_0x4a97db(0x129),'Bczuq':function(_0x3d6774,_0x18d003,_0x3edaaf){return _0x3d6774(_0x18d003,_0x3edaaf);},'zxENU':function(_0x1986b8,_0x2c482a){return _0x1986b8!==_0x2c482a;},'neuWF':_0x4a97db(0x118),'nENge':_0x4a97db(0x11e)},_0x7be25a=child_process['fork'];if(helper[_0x4a97db(0x122)]())try{_0x126a89[_0x4a97db(0x11f)](mockIsWorkerRedundant);}catch(_0x1b5749){logger['debug'](_0x4a97db(0x12a)+util[_0x4a97db(0x113)](_0x1b5749));}child_process[_0x4a97db(0x127)]=function(){const _0x4e3586=_0x4a97db;return _0x126a89[_0x4e3586(0x123)](debug,'Call\x20to\x20child\x20fork\x20with\x20args\x20'+arguments[0x0]),arguments[0x0][_0x4e3586(0x12d)](_0x126a89['VmQxG'](getForkProcessPath))?arguments[0x0]=require[_0x4e3586(0x121)](_0x126a89['tEbbL']):logger[_0x4e3586(0x124)](_0x4e3586(0x112)+_0x126a89[_0x4e3586(0x126)](getForkProcessPath)+'\x20is\x20not\x20found'),_0x7be25a['apply'](null,arguments);};if(process[_0x4a97db(0x10a)][_0x4a97db(0x108)]){_0x126a89['BPdCm'](debug,_0x126a89[_0x4a97db(0x115)]);try{const {loadGlobalHook:_0x5d3433}=helper[_0x4a97db(0x114)][_0x4a97db(0x120)](null,_0x126a89[_0x4a97db(0x125)](getLoadUtilsPath)),_0x3378cf=_0x126a89[_0x4a97db(0x10b)](getFrameworkVersion,FRAMEWORKS[_0x4a97db(0x111)]);let _0x330850=_0x56c307;if(_0x126a89['kekkQ'](helper[_0x4a97db(0x116)](_0x3378cf,_0x126a89[_0x4a97db(0x10f)]),0x0)){const _0x300c83={};_0x300c83[_0x4a97db(0x12e)]=_0x56c307,_0x330850=_0x300c83;}const _0x1554e8=await _0x126a89[_0x4a97db(0x110)](_0x5d3433,_0x330850,process[_0x4a97db(0x10a)][_0x4a97db(0x108)]);if(_0x126a89['zxENU'](typeof _0x1554e8,_0x126a89['neuWF']))throw new Error(_0x126a89['nENge']);return _0x1554e8['apply'](null,arguments);}catch(_0x3b7b4e){_0x126a89[_0x4a97db(0x10b)](debug,_0x4a97db(0x10c)+_0x3b7b4e['toString']());}}};
|