browserstack-node-sdk 1.55.4 → 1.55.5
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 +3 -2
- 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/stackFrameUtils.js +1 -0
- 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_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
|
+
function a42_0x1970(_0x420d5c,_0x3b3c9c){const _0x467792=a42_0x4677();return a42_0x1970=function(_0x1970a4,_0xa0e8ba){_0x1970a4=_0x1970a4-0x1cf;let _0x4a7407=_0x467792[_0x1970a4];return _0x4a7407;},a42_0x1970(_0x420d5c,_0x3b3c9c);}function a42_0x4677(){const _0x4c44e2=['accessibilityOptions.scannerProcessingTimeout','constructor','accessibilityOptions.includeIssueType.bestPractice','JbImf','3315389VURNZo','../../helpers/accessibility-automation/helper','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','startsWith','parse','playwright-chromium','assign','../../helpers/helper','stringify','accessibilityOptions.includeIssueType.needsReview','replace','getMinVersionForBrowser','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers\x20or\x20Android\x20Chrome.','GwcYV','browser','use','performScan','lnXRx','../../helpers/logger','GckHS','error','needsReview','696952svynXd','scannerProcessingTimeout','currentTest','testInfo','url','on\x20non-BrowserStack\x20infrastructure\x20','MOBILE_SCANNING_DISABLED_WARNING','connectOptions','includePartOfPageScope','android','browserStackEvaluate','pSmWq','../utils/constants','GwWtn','BS_A11Y_JWT','wsEndpoint','27OriZdp','keys','latest','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','browserstack.accessibilityOptions','hlToG','measureWrapper','PtNVm','LorRd','platformValidation','chrome','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','wcagVersion','qUJVe','UmUUs','ljeIO','GYYVb','chromium','PERFORM_SCAN','Playwright','name','includeIssueType','accessibilityOptions','command','cRBqw','forEach','executeScript','bestPractice','\x20or\x20higher\x20','FPTdB','isBrowserSupportedForAccessibility','processAccessibilityCaps','getAccessibilityResults','wbVLq','toLowerCase','bstackSdkArgs','env','silly','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','(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','GqLSp','9138900qBWICJ','winstonLogger','deviceName','tOusi','Utbgm','body','678CpYmOo','getBrowserDisplayName','No\x20accessibility\x20results\x20were\x20found.','No\x20summaryResults\x20found.','browser_version','format','__workerDetails','zsYWJ','eCJXJ','\x20browser\x20version\x20','project','includes','browserName','32DUfVFz','accessibilityOptions.scannerVersion','isVersionSupported','fNlSg','setAccessibilityCapabilities','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20','warn','../../helpers/performance/performance-tester','parameters','yIqcs','message','1461900ISIdHd','accessibilityOptions.authToken','OlxsA','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','debug','lQXLk','ghqGM','platformValidation:\x20Mobile\x20platform\x20already\x20validated.','CLPtO','(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','hkPGU','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','dAuZo','1154hRiZhY','NVdVL','workerInfo','918570SgMLkE','[A11Y]\x20Error\x20logging\x20SDK-AUTOMATION\x20for\x20browserStackEvaluate:\x20','PLwpQ','accessibilityPlatform','OTino','util','47883ltqRiC','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML'];a42_0x4677=function(){return _0x4c44e2;};return a42_0x4677();}const a42_0x19820e=a42_0x1970;(function(_0x2935f2,_0x452661){const _0x2174f8=a42_0x1970,_0x5d0459=_0x2935f2();while(!![]){try{const _0x25fbd8=parseInt(_0x2174f8(0x254))/0x1*(-parseInt(_0x2174f8(0x1ef))/0x2)+-parseInt(_0x2174f8(0x1f8))/0x3*(parseInt(_0x2174f8(0x1d7))/0x4)+-parseInt(_0x2174f8(0x1f2))/0x5+parseInt(_0x2174f8(0x1e2))/0x6+-parseInt(_0x2174f8(0x1fe))/0x7+-parseInt(_0x2174f8(0x215))/0x8*(-parseInt(_0x2174f8(0x225))/0x9)+parseInt(_0x2174f8(0x24e))/0xa;if(_0x25fbd8===_0x452661)break;else _0x5d0459['push'](_0x5d0459['shift']());}catch(_0xc1cd98){_0x5d0459['push'](_0x5d0459['shift']());}}}(a42_0x4677,0x3b3e6));const util=require(a42_0x19820e(0x1f7)),logger=require(a42_0x19820e(0x211))[a42_0x19820e(0x24f)],{automationLogger}=require(a42_0x19820e(0x211)),{isAccessibilityAutomationSession}=require(a42_0x19820e(0x1ff)),{isUndefined,isBrowserstackInfra}=require(a42_0x19820e(0x206)),scripts=require('../../helpers/accessibility-automation/scripts'),PerformanceTester=require(a42_0x19820e(0x1de)),{A11Y_EVENTS:PerformanceA11yEvents}=require('../../helpers/performance/constants'),accessibilityHelper=require('../../helpers/accessibility-automation/helper'),{AUTOMATION_LOG_COMMANDS}=require(a42_0x19820e(0x221));exports[a42_0x19820e(0x21f)]=async(_0x21dfc2,_0x5b82f5,_0x3a48f1={})=>{const _0x6a4dab=a42_0x19820e,_0x4a5436={};_0x4a5436[_0x6a4dab(0x232)]=_0x6a4dab(0x248),_0x4a5436[_0x6a4dab(0x23d)]=function(_0x16684c,_0xc5557c){return _0x16684c===_0xc5557c;},_0x4a5436[_0x6a4dab(0x1d2)]='string';const _0xf31e8e=_0x4a5436,_0x5d0065=await _0x21dfc2['evaluate'](_0x6a4dab(0x1eb)+_0x5b82f5[_0x6a4dab(0x209)](/arguments/g,_0xf31e8e[_0x6a4dab(0x232)])+_0x6a4dab(0x228)+JSON[_0x6a4dab(0x207)](_0x3a48f1)+')');try{if(_0x5b82f5&&_0xf31e8e[_0x6a4dab(0x23d)](typeof _0x5b82f5,_0xf31e8e[_0x6a4dab(0x1d2)])){const _0x5533e3=AUTOMATION_LOG_COMMANDS['find'](_0x5468ee=>_0x5b82f5[_0x6a4dab(0x1d5)](_0x5468ee));if(_0x5533e3){const _0x48694d={};_0x48694d[_0x6a4dab(0x23c)]=_0x5533e3,_0x48694d[_0x6a4dab(0x1df)]=[_0x3a48f1];const _0x61b1a7={};_0x61b1a7[_0x6a4dab(0x253)]=_0x5d0065;const _0x222ff5={};_0x222ff5['request']=_0x48694d,_0x222ff5['response']=_0x61b1a7,automationLogger[_0x6a4dab(0x24a)]('['+new Date()['toISOString']()+'][\x20SDK-AUTOMATION\x20]\x20'+JSON[_0x6a4dab(0x207)](_0x222ff5));}}}catch(_0x1d7973){logger[_0x6a4dab(0x1e6)](_0x6a4dab(0x1f3)+_0x1d7973[_0x6a4dab(0x1e1)]);}return _0x5d0065;},exports['browserStackExecuteDriver']=async(_0x4d25b4,_0x2671bf,_0x5781c={})=>{const _0x528fda=a42_0x19820e,_0x528f27={};_0x528f27['GYYVb']=function(_0x35ade4,_0x46937d){return _0x35ade4===_0x46937d;},_0x528f27[_0x528fda(0x210)]='WebDriver',_0x528f27[_0x528fda(0x24d)]=function(_0x33f1cd,_0x617f2c){return _0x33f1cd===_0x617f2c;},_0x528f27[_0x528fda(0x234)]=_0x528fda(0x238),_0x528f27['PtNVm']=_0x528fda(0x248);const _0x5ecc8d=_0x528f27;if(_0x5ecc8d[_0x528fda(0x235)](_0x4d25b4[_0x528fda(0x1fb)]['name'],_0x5ecc8d[_0x528fda(0x210)]))return await _0x4d25b4['executeAsyncScript'](_0x2671bf,_0x5781c);else{if(_0x5ecc8d[_0x528fda(0x24d)](_0x4d25b4[_0x528fda(0x1fb)][_0x528fda(0x239)],_0x5ecc8d[_0x528fda(0x234)]))return await _0x4d25b4[_0x528fda(0x23f)](_0x528fda(0x24c)+_0x2671bf[_0x528fda(0x209)](/arguments/g,_0x5ecc8d[_0x528fda(0x22c)])+_0x528fda(0x1e5)+JSON[_0x528fda(0x207)](_0x5781c)+')');}},exports[a42_0x19820e(0x1db)]=async _0x136f80=>{const _0x11bae1=a42_0x19820e,_0x3d0168={};_0x3d0168[_0x11bae1(0x251)]='accessibilityOptions.wcagVersion',_0x3d0168[_0x11bae1(0x252)]=_0x11bae1(0x1fa),_0x3d0168[_0x11bae1(0x1ec)]=_0x11bae1(0x1fc),_0x3d0168[_0x11bae1(0x1fd)]=_0x11bae1(0x208),_0x3d0168['lQXLk']=_0x11bae1(0x1e3),_0x3d0168[_0x11bae1(0x1d1)]=_0x11bae1(0x1d8);const _0x217e7a=_0x3d0168;_0x136f80['accessibilityOptions']&&(_0x136f80[_0x11bae1(0x23b)][_0x11bae1(0x231)]&&(_0x136f80[_0x217e7a[_0x11bae1(0x251)]]=_0x136f80[_0x11bae1(0x23b)][_0x11bae1(0x231)]),_0x136f80[_0x11bae1(0x23b)][_0x11bae1(0x216)]&&(_0x136f80[_0x217e7a[_0x11bae1(0x252)]]=_0x136f80[_0x11bae1(0x23b)]['scannerProcessingTimeout']),_0x136f80['accessibilityOptions'][_0x11bae1(0x23a)]&&(_0x136f80[_0x217e7a[_0x11bae1(0x1ec)]]=_0x136f80[_0x11bae1(0x23b)][_0x11bae1(0x23a)][_0x11bae1(0x240)],_0x136f80[_0x217e7a[_0x11bae1(0x1fd)]]=_0x136f80[_0x11bae1(0x23b)][_0x11bae1(0x23a)][_0x11bae1(0x214)]));const _0x2ef6a1=JSON[_0x11bae1(0x203)](process[_0x11bae1(0x249)][_0x11bae1(0x1f9)])['scannerVersion'];_0x136f80[_0x217e7a[_0x11bae1(0x1e7)]]=process['env'][_0x11bae1(0x223)],_0x136f80[_0x217e7a[_0x11bae1(0x1d1)]]=_0x2ef6a1,delete _0x136f80[_0x11bae1(0x23b)];},exports[a42_0x19820e(0x245)]=async _0x1dffe4=>{const _0x295bc4=a42_0x19820e,_0x3b8e03={};_0x3b8e03[_0x295bc4(0x1f6)]=_0x295bc4(0x256),_0x3b8e03['LorRd']=_0x295bc4(0x230);const _0x50c535=_0x3b8e03;if(global[_0x295bc4(0x1f5)])try{const details={'url':await _0x1dffe4.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(_0x1dffe4,scripts.performScan,mobileArgs)));},{command:'getAccessibilityResults',...details})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x1dffe4,scripts.getResults,mobileArgs);},{...details})();return res;}catch{return logger[_0x295bc4(0x213)](_0x50c535['OTino']),[];}else return logger['warn'](_0x50c535[_0x295bc4(0x22d)]),[];},exports[a42_0x19820e(0x20f)]=async(_0x3782a6,_0xcc202f='',_0x4be076={},_0x17a893={})=>{const _0x302bf1=a42_0x19820e;logger[_0x302bf1(0x1e6)]('Performing\x20scan\x20with\x20method:\x20'+_0xcc202f+'\x20page:\x20'+_0x3782a6);const _0x229208={'url':await _0x3782a6[_0x302bf1(0x219)](),'testhub_btcer_uuid':global[_0x302bf1(0x1d0)]?.[_0x302bf1(0x217)]?.['id']};if(global[_0x302bf1(0x1f5)])return await PerformanceTester[_0x302bf1(0x22b)](PerformanceA11yEvents[_0x302bf1(0x237)],async()=>{const _0x2a2cca=_0x302bf1,_0x50a9ed={};_0x50a9ed[_0x2a2cca(0x23c)]=_0xcc202f;const _0x4c5125=_0x50a9ed;_0x4be076&&_0x4be076['includePartOfPageScope']&&(_0x4c5125[_0x2a2cca(0x21d)]=_0x4be076['includePartOfPageScope']);Object[_0x2a2cca(0x205)](_0x4c5125,_0x17a893);const _0x331a09=await exports[_0x2a2cca(0x21f)](_0x3782a6,scripts[_0x2a2cca(0x20f)],_0x4c5125);return _0x331a09;},{'command':_0xcc202f,..._0x229208})();},exports['getAccessibilityResultsSummary']=async _0x4e8a05=>{const _0x3f409e=a42_0x19820e,_0x3640af={};_0x3640af['SCrVW']=_0x3f409e(0x257),_0x3640af['GwcYV']=_0x3f409e(0x201);const _0x120985=_0x3640af;if(global[_0x3f409e(0x1f5)])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(_0x4e8a05,scripts.performScan,mobileArgs)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x4e8a05,scripts.getResultsSummary,mobileArgs);})();return summaryResults;}catch{return logger['debug'](_0x120985['SCrVW']),{};}else return logger[_0x3f409e(0x1dd)](_0x120985[_0x3f409e(0x20c)]),{};},exports[a42_0x19820e(0x22e)]=_0x14a621=>{const _0x12eed2=a42_0x19820e,_0x5e90ba={'pSmWq':_0x12eed2(0x1e9),'saCqi':_0x12eed2(0x1ed),'yIqcs':function(_0x317f91,_0x2ebb1a){return _0x317f91!==_0x2ebb1a;},'sojhu':_0x12eed2(0x227),'hlToG':function(_0x47f020){return _0x47f020();},'FPTdB':_0x12eed2(0x21a)};try{if(global['isMobilePlatform'])return logger[_0x12eed2(0x1e6)](_0x5e90ba[_0x12eed2(0x220)]),!![];const _0x207f9a=_0x14a621[_0x12eed2(0x20d)],_0x30edba=_0x14a621['browser_version'];if(!accessibilityHelper[_0x12eed2(0x243)](_0x207f9a))return logger['warn'](_0x5e90ba['saCqi']),![];if(_0x5e90ba[_0x12eed2(0x1e0)](_0x30edba,_0x5e90ba['sojhu'])){const _0x49c20b=_0x5e90ba[_0x12eed2(0x22a)](isBrowserstackInfra),_0x5d3f7b=accessibilityHelper[_0x12eed2(0x20a)](_0x207f9a,_0x49c20b),_0xe27d50=accessibilityHelper[_0x12eed2(0x255)](_0x207f9a);if(!accessibilityHelper[_0x12eed2(0x1d9)](_0x30edba,_0x5d3f7b)){const _0x31f11c=_0x49c20b?'':_0x5e90ba[_0x12eed2(0x242)];return logger[_0x12eed2(0x1dd)](_0x12eed2(0x1dc)+_0xe27d50+_0x12eed2(0x1d3)+_0x5d3f7b+_0x12eed2(0x241)+_0x31f11c+'.'),![];}}}catch(_0x435314){logger[_0x12eed2(0x1e6)](_0x12eed2(0x24b)+util[_0x12eed2(0x1cf)](_0x435314));}return!![];},exports[a42_0x19820e(0x244)]=(_0x81efd7,_0x3718a0,_0x29e2aa)=>{const _0x5bb74a=a42_0x19820e,_0x4b8ca3={'DgkJW':_0x5bb74a(0x229),'GckHS':function(_0x308411){return _0x308411();},'wbVLq':'browserstack.accessibility','GwWtn':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','CLPtO':function(_0x26f747,_0x45c0e9){return _0x26f747!==_0x45c0e9;},'MnpXA':'latest','UmUUs':'on\x20non-BrowserStack\x20infrastructure\x20','ghqGM':function(_0x51e037,_0x5728d2){return _0x51e037(_0x5728d2);},'NVdVL':function(_0x302298,_0x309a5c){return _0x302298===_0x309a5c;},'dAuZo':_0x5bb74a(0x21e),'TctUm':_0x5bb74a(0x22f),'DGvoD':_0x5bb74a(0x204),'PLwpQ':_0x5bb74a(0x236),'fNlSg':_0x5bb74a(0x20b),'GNtgt':function(_0x237387,_0xf4a7d7){return _0x237387+_0xf4a7d7;},'OlxsA':function(_0x1f286f,_0x2adb86){return _0x1f286f(_0x2adb86);}};try{if(_0x4b8ca3[_0x5bb74a(0x212)](isAccessibilityAutomationSession)){global['accessibilityPlatform']=!![];!_0x81efd7[_0x4b8ca3[_0x5bb74a(0x246)]]&&(global[_0x5bb74a(0x1f5)]=![]);const _0x6d5b38=_0x81efd7['browserName']||_0x81efd7[_0x5bb74a(0x20d)],_0xc3c5da=_0x81efd7[_0x5bb74a(0x258)];!accessibilityHelper[_0x5bb74a(0x243)](_0x6d5b38)&&(logger[_0x5bb74a(0x1dd)](_0x4b8ca3[_0x5bb74a(0x222)]),global[_0x5bb74a(0x1f5)]=![]);if(_0x4b8ca3[_0x5bb74a(0x1ea)](_0xc3c5da,_0x4b8ca3['MnpXA'])){const _0x59504e=_0x4b8ca3['GckHS'](isBrowserstackInfra),_0x6444da=accessibilityHelper['getMinVersionForBrowser'](_0x6d5b38,_0x59504e),_0xde6cb1=accessibilityHelper[_0x5bb74a(0x255)](_0x6d5b38);if(!accessibilityHelper[_0x5bb74a(0x1d9)](_0xc3c5da,_0x6444da)){const _0x1d456c=_0x59504e?'':_0x4b8ca3[_0x5bb74a(0x233)];logger[_0x5bb74a(0x1dd)](_0x5bb74a(0x1dc)+_0xde6cb1+'\x20browser\x20version\x20'+_0x6444da+_0x5bb74a(0x241)+_0x1d456c+'.'),global[_0x5bb74a(0x1f5)]=![];}}if(!_0x4b8ca3[_0x5bb74a(0x1e8)](isUndefined,_0x81efd7[_0x5bb74a(0x250)])){const _0x202061=(_0x81efd7['os']||'')[_0x5bb74a(0x247)](),_0x249bb9=(_0x81efd7[_0x5bb74a(0x1d6)]||_0x81efd7[_0x5bb74a(0x20d)]||'')[_0x5bb74a(0x247)](),_0x29fc8a=_0x4b8ca3[_0x5bb74a(0x1f0)](_0x202061,_0x4b8ca3[_0x5bb74a(0x1ee)])&&[_0x4b8ca3['TctUm'],_0x4b8ca3['DGvoD'],_0x4b8ca3[_0x5bb74a(0x1f4)]]['includes'](_0x249bb9);if(!_0x29fc8a)logger[_0x5bb74a(0x1dd)](_0x4b8ca3[_0x5bb74a(0x1da)]),global['accessibilityPlatform']=![];else!accessibilityHelper['isMobileScanningEnabledForGroup']()&&(logger[_0x5bb74a(0x1dd)](accessibilityHelper[_0x5bb74a(0x21b)]),global['accessibilityPlatform']=![]);}if(!global[_0x5bb74a(0x1f5)]){_0x81efd7[_0x4b8ca3[_0x5bb74a(0x246)]]=![],Object[_0x5bb74a(0x226)](_0x81efd7)[_0x5bb74a(0x23e)](_0x2fab36=>{const _0x28dbf5=_0x5bb74a;_0x2fab36[_0x28dbf5(0x202)](_0x4b8ca3['DgkJW'])&&delete _0x81efd7[_0x2fab36];});const _0x57d76f=_0x4b8ca3['GNtgt'](_0x3718a0,_0x4b8ca3[_0x5bb74a(0x1e4)](encodeURIComponent,JSON[_0x5bb74a(0x207)](_0x81efd7)));_0x29e2aa&&(_0x29e2aa[_0x5bb74a(0x217)][_0x5bb74a(0x218)]['project'][_0x5bb74a(0x20e)][_0x5bb74a(0x21c)][_0x5bb74a(0x224)]=_0x57d76f,_0x29e2aa[_0x5bb74a(0x1f1)][_0x5bb74a(0x1d4)][_0x5bb74a(0x20e)][_0x5bb74a(0x21c)][_0x5bb74a(0x224)]=_0x57d76f);}}else global[_0x5bb74a(0x1f5)]=![];}catch(_0x33b40e){logger['debug'](_0x5bb74a(0x200)+util[_0x5bb74a(0x1cf)](_0x33b40e));}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
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;
|
|
2
|
+
'use strict';const a43_0x460efe=a43_0x712c;function a43_0x712c(_0x562d15,_0x301ed5){const _0x52d5e5=a43_0x52d5();return a43_0x712c=function(_0x712c,_0x11997d){_0x712c=_0x712c-0xc4;let _0x384e50=_0x52d5e5[_0x712c];return _0x384e50;},a43_0x712c(_0x562d15,_0x301ed5);}(function(_0x58f711,_0x50f63b){const _0x4a74f3=a43_0x712c,_0x1d5b94=_0x58f711();while(!![]){try{const _0x223a87=parseInt(_0x4a74f3(0x170))/0x1*(-parseInt(_0x4a74f3(0xf4))/0x2)+-parseInt(_0x4a74f3(0x124))/0x3*(parseInt(_0x4a74f3(0xfb))/0x4)+parseInt(_0x4a74f3(0x131))/0x5*(-parseInt(_0x4a74f3(0xfd))/0x6)+parseInt(_0x4a74f3(0x185))/0x7+parseInt(_0x4a74f3(0x153))/0x8+-parseInt(_0x4a74f3(0x17f))/0x9+-parseInt(_0x4a74f3(0x107))/0xa*(-parseInt(_0x4a74f3(0x16f))/0xb);if(_0x223a87===_0x50f63b)break;else _0x1d5b94['push'](_0x1d5b94['shift']());}catch(_0x18c627){_0x1d5b94['push'](_0x1d5b94['shift']());}}}(a43_0x52d5,0x5220b));const fs=require('fs'),path=require(a43_0x460efe(0xf1)),{spawn}=require(a43_0x460efe(0xd3)),{format}=require(a43_0x460efe(0x16a)),logger=require(a43_0x460efe(0xff))[a43_0x460efe(0x135)],{default:BrowserStackSetup}=require(a43_0x460efe(0x123)),helper=require(a43_0x460efe(0x17b)),utilities=require('../../helpers/utilities'),constants=require(a43_0x460efe(0x136)),{FRAMEWORKS}=require(a43_0x460efe(0x128)),{getConfigLoaderPath}=require('./reporter/pwUtils'),{checkAccessibilityPlatformConfig}=require(a43_0x460efe(0x184)),{setAccessibilityCapabilities}=require(a43_0x460efe(0x110)),{printBuildLink}=require('../../helpers/test-observability/utils'),TestDetails=require(a43_0x460efe(0xed)),TestHubHandler=require(a43_0x460efe(0xda)),PerformanceTester=require(a43_0x460efe(0xd2)),BrowserstackCLI=require(a43_0x460efe(0x106)),PerformanceEvents=require(a43_0x460efe(0x11a))[a43_0x460efe(0xd0)],CLIUtils=require(a43_0x460efe(0x13b)),TestInfo=require(a43_0x460efe(0x15f)),ClientTroubleShootingService=require(a43_0x460efe(0x155)),getUserPlaywrightConfig=async(_0x18bacb,_0x5d6fbb)=>{const _0x14eac3=a43_0x460efe,_0x4a791e={'OeDSl':function(_0x311db4){return _0x311db4();},'RJElM':function(_0x57aac9,_0x51cc55){return _0x57aac9(_0x51cc55);},'fOoKT':_0x14eac3(0xea),'FmBoI':'--config='},_0x1d21ec=!helper['isUndefined'](_0x18bacb[_0x14eac3(0xdc)]),_0x4ed349=_0x1d21ec?path[_0x14eac3(0x188)](process[_0x14eac3(0x14b)](),_0x18bacb[_0x14eac3(0xdc)]):process[_0x14eac3(0x14b)](),{resolveConfigFile:_0xb9728e,resolveConfigLocation:_0xd258d3}=helper[_0x14eac3(0xe5)]()?helper[_0x14eac3(0x149)](..._0x4a791e[_0x14eac3(0xc8)](getConfigLoaderPath)):helper[_0x14eac3(0xee)][_0x14eac3(0x121)](null,_0x4a791e[_0x14eac3(0xc8)](getConfigLoaderPath)),_0x1a7508=_0xb9728e?_0x4a791e['RJElM'](_0xb9728e,_0x4ed349):helper[_0x14eac3(0x178)](_0x4a791e['RJElM'](_0xd258d3,_0x4ed349),[_0x4a791e[_0x14eac3(0x158)]]),_0x35a664={};if(_0x1d21ec){const _0x5bb12c=_0x5d6fbb[_0x14eac3(0x138)](_0x2f50e3=>_0x2f50e3===_0x14eac3(0xd8)||_0x2f50e3==='-c'||_0x2f50e3[_0x14eac3(0x180)]('--config='));_0x5d6fbb[_0x14eac3(0x11e)](_0x5bb12c,_0x5d6fbb[_0x5bb12c][_0x14eac3(0x180)](_0x4a791e[_0x14eac3(0x103)])?0x1:0x2);}const _0x1e9e6e={};return _0x1e9e6e[_0x14eac3(0xf1)]=_0x1a7508,_0x1e9e6e['config']=_0x35a664,_0x1e9e6e;},handleO11yRerun=_0x549484=>{const _0x3bbfec=a43_0x460efe,_0x24917f={};_0x24917f['uniFa']='--grep';const _0x53e3ad=_0x24917f,_0x466fc1=helper[_0x3bbfec(0x10f)](process[_0x3bbfec(0x113)][_0x3bbfec(0x119)]);if(_0x466fc1){const _0x48fc3c=process[_0x3bbfec(0x113)][_0x3bbfec(0x148)],_0x26df22=[];if(helper['validateRerunTestList'](_0x48fc3c)&&!helper[_0x3bbfec(0x10b)](_0x48fc3c)){_0x48fc3c[_0x3bbfec(0x16c)](',')[_0x3bbfec(0xe9)](_0x4d5a56=>{const _0x3daec2=_0x3bbfec;_0x26df22[_0x3daec2(0x114)]('('+_0x4d5a56['trim']()+')');});const _0x1db4ca='^'+_0x26df22[_0x3bbfec(0x16d)]('|')+'$';_0x549484['push'](_0x53e3ad[_0x3bbfec(0x163)],_0x1db4ca);}}},spawnOriginalProcess=_0x2c23de=>{const _0x2e46b0=a43_0x460efe,_0x17159a={'PkNuC':function(_0x343067,_0x145f6c,_0xaa29bf,_0x9cbe56){return _0x343067(_0x145f6c,_0xaa29bf,_0x9cbe56);},'TQUXt':_0x2e46b0(0x159),'hRemx':_0x2e46b0(0x15a),'znTkg':'playwright','HQIVD':function(_0x548bdd,_0x487985){return _0x548bdd===_0x487985;},'XTVkP':_0x2e46b0(0x139),'bUEcx':'inherit'};_0x17159a[_0x2e46b0(0xcb)](spawn,helper['isYarnPnP']()?_0x17159a[_0x2e46b0(0x176)]:_0x17159a[_0x2e46b0(0x151)],[_0x17159a[_0x2e46b0(0x166)],..._0x2c23de[_0x2e46b0(0xe2)](0x1)],{'shell':_0x17159a[_0x2e46b0(0x14f)](process[_0x2e46b0(0xc7)],_0x17159a[_0x2e46b0(0xf2)]),'stdio':_0x17159a[_0x2e46b0(0x100)],'cwd':process['cwd']()});},isTestCommand=(_0x51674d,_0x346449)=>{const _0x4fd3c1=a43_0x460efe,_0x294b19={};_0x294b19[_0x4fd3c1(0x13c)]=function(_0x1aa1fc,_0x29313d){return _0x1aa1fc>_0x29313d;},_0x294b19[_0x4fd3c1(0xcd)]=function(_0x7403af,_0xa9195){return _0x7403af===_0xa9195;},_0x294b19['Gdzux']=_0x4fd3c1(0x10e);const _0x4db41f=_0x294b19;if(_0x4db41f[_0x4fd3c1(0x13c)](_0x346449[_0x4fd3c1(0xd1)],0x1)&&_0x4db41f[_0x4fd3c1(0xcd)](_0x346449[0x1],_0x4db41f[_0x4fd3c1(0xe6)]))return!![];return![];};function a43_0x52d5(){const _0x233e74=['MkoHX','resolve','Playwright\x20process\x20exited\x20with\x20code\x20','testContextOptions','getInstance','SDK_SETUP','platform','OeDSl','--disable-browserstack-automation','forEach','PkNuC','Error\x20in\x20accessing\x20.browserstack\x20directory:\x20','HpNKZ','.browserstack','accessibility','EVENTS','length','../../helpers/performance/performance-tester','child_process','REIyl','SDK_CLEANUP','VTnPe','constants','--config','isTypescriptProject','../../helpers/testhub/testhubHandler','Updated\x20config\x20file\x20name\x20to\x20-\x20','config','readFileSync','MBCXe','getProxyUrl','bootstrap','clearTempPWConfig','slice','SDK_PRE_INITIALIZE','dirname','isYarnPnP','Gdzux','NFnbS','end','map','resolvedConfigFile','stop','IxGpa','./reporter/test-details','requirePWModule','playwright-browserstack-sdk.config.js','iNmNr','path','XTVkP','\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();','465132iWdIES','DpoJs','BROWSERSTACK_AUTOMATION','filter','rwITi','trqpf','UgfEC','10292ynNiKj','gIgfZ','6naNeTr','qtWFX','../../helpers/logger','bUEcx','logLevel','isFalse','FmBoI','Error\x20in\x20closing\x20playwright','automation','../v2/browserstackCLI','99070mwmCqo','hLqYa','Proxy\x20url\x20:\x20','BROWSERSTACK_TEST_ACCESSIBILITY_YML','isUndefined','BzASM','exports','test','isTrue','./accessibility-helper','filterBrowserstackArgs','info','env','push','error','true','xNyrp','trace_','BROWSERSTACK_RERUN','../../helpers/performance/constants','No\x20Proxy\x20:\x20','reportDotBrowserStackFolderNotAccessibleIssue','gOjhd','splice','existsSync','debug','apply','skipSessionStatus','../../helpers/BrowserStackSetup','519BtWOGY','serializeToYamlString','readdirSync','CelZY','../../helpers/test-observability/constants','slHjK','writeFileSync','jeQCr','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','EOUlk','mGQDe','getConfigPath','errorMessage','2495795zvkrKU','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','yVaxW','hbvWc','winstonLogger','../utils/constants','--disable-test-observability','findIndex','win32','accessSync','../v2/cliUtils','lsUsU','concat','reportConflictingEnvVarIssue','parse','odqYN','BROWSERSTACK_TEST_OBSERVABILITY','BROWSERSTACK_PW_CONFIG_DIR','rtXEw','abKBS','kAyfh','jDmRz','get','BROWSERSTACK_RERUN_TESTS','requireConfigLoaderYarnPnP','MODULE','cwd','unlinkSync','testObservability','Deleting\x20','HQIVD','homedir','hRemx','aIVLO','463672zLCEUl','vJegj','../utils/clientTroubleshootingService','configPath','pw_result.json','fOoKT','yarn','npx','PLAYWRIGHT','iqcRA','indexOf','aJkCh','../v2/TestInfo','XWhKz','false','close','uniFa','Error\x20in\x20getting\x20funnel\x20data\x20results','HREbK','znTkg','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','getConfig','playwright','util','accessibilityOptions','split','join','setFrameworkDetail','1903AABYvi','2raOfxK','vrcEN','exitCode','ghoyW','SDK_POST_INITIALIZE','isRunning','TQUXt','cliConfig','nestedKeyValue','Error\x20in\x20deleting\x20playwright\x20results','getPackageType','../../helpers/helper','playwright-browserstack-sdk.config.cjs','skipSessionName','isCLIEnabled','1402281LgBicc','startsWith','zNzSq','browserstackSetupConfig.json','browserstackAutomation','../../helpers/accessibility-automation/helper','908278shdVUg','eLpdv'];a43_0x52d5=function(){return _0x233e74;};return a43_0x52d5();}async function run(_0x4919d7,_0x3343cf,_0x581c46){const _0x5f2a32=a43_0x460efe,_0x5ced1c={'abKBS':_0x5f2a32(0xce),'vrcEN':_0x5f2a32(0x157),'mGQDe':function(_0x1c8e56,_0x27f735){return _0x1c8e56+_0x27f735;},'gOjhd':_0x5f2a32(0x164),'odqYN':function(_0x58ae1e){return _0x58ae1e();},'MBCXe':function(_0xebf3e9){return _0xebf3e9();},'xNyrp':function(_0x417cfb,_0x5a5d67){return _0x417cfb+_0x5a5d67;},'eLpdv':_0x5f2a32(0x104),'yVaxW':function(_0x710a27,_0xf60f53){return _0x710a27(_0xf60f53);},'jeQCr':'BrowserStack\x20config\x20file\x20not\x20found.','iqcRA':function(_0x116ea6,_0x595b7b){return _0x116ea6<_0x595b7b;},'iNmNr':function(_0x5a7ece,_0x590301){return _0x5a7ece===_0x590301;},'rwITi':_0x5f2a32(0x161),'NFnbS':_0x5f2a32(0x137),'aIVLO':function(_0x19c5a2,_0x560e26){return _0x19c5a2>=_0x560e26;},'slHjK':_0x5f2a32(0x105),'UgfEC':function(_0x5ca217,_0x134b57){return _0x5ca217!=_0x134b57;},'trqpf':function(_0x319d14,_0x50d498,_0x5746de){return _0x319d14(_0x50d498,_0x5746de);},'fVtMN':function(_0x4aad0c,_0x5ed76b){return _0x4aad0c(_0x5ed76b);},'VBoaX':_0x5f2a32(0x116),'VTnPe':function(_0x46c7bf,_0x1d1537){return _0x46c7bf(_0x1d1537);},'ghoyW':_0x5f2a32(0x182),'jDmRz':_0x5f2a32(0x17c),'qtWFX':_0x5f2a32(0xef),'BzASM':function(_0x5d9d63,_0x4d7160){return _0x5d9d63-_0x4d7160;},'zNzSq':_0x5f2a32(0xdb),'IxGpa':function(_0x37ebda,_0x5a2aac){return _0x37ebda>_0x5a2aac;},'hLqYa':function(_0x3f09cc,_0x1813c0,_0x13fcaf,_0x5b0e3e){return _0x3f09cc(_0x1813c0,_0x13fcaf,_0x5b0e3e);},'fcldc':_0x5f2a32(0x159),'gwfrU':_0x5f2a32(0x15a),'rtXEw':_0x5f2a32(0x169),'CelZY':_0x5f2a32(0x10e),'IqFhE':_0x5f2a32(0xd8),'hbvWc':function(_0x3947a9,_0x58e720){return _0x3947a9===_0x58e720;},'MkoHX':_0x5f2a32(0x139),'XWhKz':'inherit','REIyl':_0x5f2a32(0x162),'DpoJs':function(_0x13395a,_0xe31af7){return _0x13395a|_0xe31af7;},'HREbK':function(_0x18d417,_0x278274){return _0x18d417+_0x278274;},'aJkCh':_0x5f2a32(0xcc),'vJegj':function(_0x56711d,_0x213296){return _0x56711d+_0x213296;},'EOUlk':_0x5f2a32(0x179),'gIgfZ':function(_0x3ab94b,_0x358a42,_0x72bb57){return _0x3ab94b(_0x358a42,_0x72bb57);}};try{const _0x39f36c=path['join'](helper[_0x5f2a32(0x150)](),_0x5ced1c['abKBS']);try{fs[_0x5f2a32(0x13a)](_0x39f36c,_0x5ced1c[_0x5f2a32(0xf5)](fs[_0x5f2a32(0xd7)]['R_OK'],fs[_0x5f2a32(0xd7)]['W_OK']));}catch(_0x3c7e09){ClientTroubleShootingService[_0x5f2a32(0x11c)]();}}catch(_0x2aae13){logger[_0x5f2a32(0x120)](_0x5ced1c[_0x5f2a32(0x165)](_0x5ced1c[_0x5f2a32(0x15e)],_0x2aae13));}try{const _0x143072=path[_0x5f2a32(0x16d)](helper[_0x5f2a32(0x150)](),_0x5ced1c[_0x5f2a32(0x144)],_0x5ced1c[_0x5f2a32(0x171)]);fs[_0x5f2a32(0x11f)](_0x143072)&&fs['unlinkSync'](_0x143072);}catch(_0x5186bd){logger[_0x5f2a32(0x120)](_0x5ced1c[_0x5f2a32(0x154)](_0x5ced1c[_0x5f2a32(0x12d)],_0x5186bd));}if(!_0x5ced1c[_0x5f2a32(0xfc)](isTestCommand,_0x4919d7,_0x3343cf)){_0x5ced1c[_0x5f2a32(0x133)](spawnOriginalProcess,_0x3343cf);return;}await PerformanceTester['measureWrapper'](PerformanceEvents[_0x5f2a32(0xe3)],async()=>{const _0xf6525c=_0x5f2a32,_0x14fd7a={'ZrqSn':function(_0x48adb3,_0x48193f){const _0xd22919=a43_0x712c;return _0x5ced1c[_0xd22919(0x133)](_0x48adb3,_0x48193f);},'kAyfh':_0x5ced1c['abKBS']};if(!_0x581c46['config']){logger[_0xf6525c(0x115)](_0x5ced1c[_0xf6525c(0x12b)]);return;}await _0x581c46['initialize'](_0x4919d7),CLIUtils[_0xf6525c(0x16e)](FRAMEWORKS[_0xf6525c(0x15b)],FRAMEWORKS[_0xf6525c(0x15b)]),BrowserstackCLI['getInstance']()['setBrowserstackConfig'](_0x581c46[_0xf6525c(0xdc)],_0x581c46[_0xf6525c(0x156)],_0x581c46[_0xf6525c(0x177)]),await BrowserstackCLI['getInstance']()[_0xf6525c(0xe0)]();for(var _0x27532b=0x0;_0x5ced1c[_0xf6525c(0x15c)](_0x27532b,constants['INTERNALLY_USED_ENV_VARS'][_0xf6525c(0xd1)]);_0x27532b++){var _0x1431cc=constants['INTERNALLY_USED_ENV_VARS'][_0x27532b];process[_0xf6525c(0x113)][_0x1431cc]&&await ClientTroubleShootingService[_0xf6525c(0x13e)](_0x1431cc);}const _0x596aad=BrowserstackCLI['getInstance']()[_0xf6525c(0x168)]();!helper[_0xf6525c(0x102)](_0x596aad[_0xf6525c(0x183)])&&(process[_0xf6525c(0x113)]['BROWSERSTACK_AUTOMATION']=!![]);_0x5ced1c['iNmNr'](_0x596aad[_0xf6525c(0x183)],![])&&(process[_0xf6525c(0x113)]['BROWSERSTACK_AUTOMATION']=_0x5ced1c['rwITi'],_0x3343cf=_0x3343cf[_0xf6525c(0xf7)](_0x23dda0=>_0x23dda0!==_0xf6525c(0xc9)));const _0x24c953=_0x3343cf[_0xf6525c(0x15d)](_0x5ced1c[_0xf6525c(0xe7)]);(_0x5ced1c[_0xf6525c(0x152)](_0x24c953,0x0)||_0x5ced1c[_0xf6525c(0xf0)](_0x596aad[_0xf6525c(0x14d)],![]))&&(process[_0xf6525c(0x113)][_0xf6525c(0x141)]=_0x5ced1c[_0xf6525c(0xf8)],_0x3343cf=_0x3343cf[_0xf6525c(0xf7)](_0x110cd3=>_0x110cd3!==_0xf6525c(0x137)));!helper[_0xf6525c(0x10b)](_0x581c46[_0xf6525c(0x177)])&&_0x581c46[_0xf6525c(0x177)]['has'](_0x5ced1c[_0xf6525c(0x129)])&&(process[_0xf6525c(0x113)][_0xf6525c(0xf6)]=_0x581c46['cliConfig'][_0xf6525c(0x147)](_0x5ced1c[_0xf6525c(0x129)])||!![]);_0x5ced1c[_0xf6525c(0xfa)](_0x581c46[_0xf6525c(0xdc)][_0xf6525c(0x14d)],null)&&!helper[_0xf6525c(0x10f)](process[_0xf6525c(0x113)]['BROWSERSTACK_TEST_OBSERVABILITY'])&&(process['env'][_0xf6525c(0x141)]=process[_0xf6525c(0x113)][_0xf6525c(0x141)]||_0x581c46[_0xf6525c(0xdc)][_0xf6525c(0x14d)]);const _0x404706=!helper[_0xf6525c(0x102)](process[_0xf6525c(0x113)][_0xf6525c(0x141)]);_0x581c46[_0xf6525c(0xdc)]['accessibilityOptions']&&(process[_0xf6525c(0x113)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON['stringify'](_0x581c46[_0xf6525c(0xdc)][_0xf6525c(0x16b)]));let _0xeb2864=![];_0x581c46[_0xf6525c(0xdc)][_0xf6525c(0xcf)]&&(_0xeb2864=!![],process[_0xf6525c(0x113)][_0xf6525c(0x10a)]=_0x581c46['config'][_0xf6525c(0xcf)]);const _0x1c87f4=_0x3343cf[_0xf6525c(0x13d)](),_0x5a3250=await _0x5ced1c[_0xf6525c(0xf9)](getUserPlaywrightConfig,_0x4919d7,_0x3343cf);if(helper[_0xf6525c(0x10b)](_0x5a3250)){_0x5ced1c['fVtMN'](spawnOriginalProcess,_0x1c87f4);return;}const _0x3026af=_0x5a3250[_0xf6525c(0xf1)]?path[_0xf6525c(0xe4)](_0x5a3250[_0xf6525c(0xf1)]):process['cwd']();process['env'][_0xf6525c(0x142)]=_0x3026af,await PerformanceTester['measureWrapper'](PerformanceEvents[_0xf6525c(0x174)],async()=>{const _0x1a5fb0=_0xf6525c;!BrowserstackCLI[_0x1a5fb0(0xc5)]()[_0x1a5fb0(0x175)]()&&await TestHubHandler['launchBuild'](FRAMEWORKS['PLAYWRIGHT'],_0x581c46),_0x404706&&_0x14fd7a['ZrqSn'](handleO11yRerun,_0x3343cf);})();if(!BrowserstackCLI[_0xf6525c(0xc5)]()[_0xf6525c(0x175)]()){let _0xc3fdc5=_0x5ced1c[_0xf6525c(0xf0)](process[_0xf6525c(0x113)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML'],_0x5ced1c['VBoaX']);_0xc3fdc5=_0xc3fdc5||_0x5ced1c['yVaxW'](checkAccessibilityPlatformConfig,_0x581c46[_0xf6525c(0xdc)]),process['env'][_0xf6525c(0x10a)]=_0xc3fdc5,_0xc3fdc5&&_0x5ced1c[_0xf6525c(0xd6)](setAccessibilityCapabilities,_0x581c46['config']);}const _0x3d68a3=path[_0xf6525c(0x16d)](_0x5a3250[_0xf6525c(0xf1)]?path['dirname'](_0x5a3250[_0xf6525c(0xf1)]):process[_0xf6525c(0x14b)](),_0x5ced1c[_0xf6525c(0x173)]);fs[_0xf6525c(0x12a)](_0x3d68a3,helper[_0xf6525c(0x125)](_0x581c46[_0xf6525c(0xdc)])),process[_0xf6525c(0x113)]['BROWSERSTACK_SETUP_CONFIG_PATH']=_0x3d68a3,helper[_0xf6525c(0xe1)]();let _0x5683ca='';_0x5ced1c['iNmNr'](helper[_0xf6525c(0x17a)](),constants['PACKAGE_TYPE'][_0xf6525c(0x14a)])?_0x5683ca=_0x5ced1c[_0xf6525c(0x146)]:_0x5683ca=_0x5ced1c[_0xf6525c(0xfe)];let _0x752b48='';if(helper[_0xf6525c(0xd9)](_0x5a3250['path'])){_0x752b48=_0xf6525c(0x132);const _0x29a254=_0x5683ca['split']('.');_0x29a254[_0x5ced1c[_0xf6525c(0x10c)](_0x29a254[_0xf6525c(0xd1)],0x1)]='ts',_0x5683ca=_0x29a254[_0xf6525c(0x16d)]('.'),logger[_0xf6525c(0x120)](_0x5ced1c[_0xf6525c(0x117)](_0x5ced1c[_0xf6525c(0x181)],_0x5683ca));}else _0x752b48=_0xf6525c(0x12c);const _0xc0e8f3=path[_0xf6525c(0x16d)](_0x5a3250[_0xf6525c(0xf1)]?path['dirname'](_0x5a3250[_0xf6525c(0xf1)]):process[_0xf6525c(0x14b)](),_0x5683ca);let _0x399452=_0x5a3250['path']?_0x5a3250[_0xf6525c(0xf1)]:'';_0x399452=_0x5ced1c[_0xf6525c(0xec)](_0x399452['length'],0x0)?path[_0xf6525c(0x188)](_0x399452):'',process[_0xf6525c(0x113)]['USER_CONFIG_DETAILS_PATH']=_0x399452;const _0x37718e=helper[_0xf6525c(0xdf)](_0x581c46['config']),_0xc28f36=helper['getNoProxy'](_0x581c46['config']);logger[_0xf6525c(0x120)](_0xf6525c(0x109)+_0x37718e),logger[_0xf6525c(0x120)](_0xf6525c(0x11b)+_0xc28f36);_0x37718e&&(_0x752b48=_0x5ced1c[_0xf6525c(0x12e)](_0xf6525c(0x167)+_0x37718e+'\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'+_0xc28f36+_0xf6525c(0xf3),_0x752b48));helper[_0xf6525c(0x111)]({},_0x3343cf),fs[_0xf6525c(0x12a)](_0xc0e8f3,_0x752b48),PerformanceTester[_0xf6525c(0xe8)](PerformanceEvents[_0xf6525c(0xc6)]);const _0x4d934a=_0x5ced1c[_0xf6525c(0x108)](spawn,helper[_0xf6525c(0xe5)]()?_0x5ced1c['fcldc']:_0x5ced1c['gwfrU'],[_0x5ced1c[_0xf6525c(0x143)],_0x5ced1c[_0xf6525c(0x127)],_0x5ced1c['IqFhE'],_0x5ced1c[_0xf6525c(0x134)](process[_0xf6525c(0xc7)],_0x5ced1c[_0xf6525c(0x187)])?'\x22'+_0xc0e8f3+'\x22':_0xc0e8f3,..._0x3343cf['slice'](0x2)],{'shell':_0x5ced1c[_0xf6525c(0xf0)](process[_0xf6525c(0xc7)],_0x5ced1c[_0xf6525c(0x187)]),'stdio':_0x5ced1c[_0xf6525c(0x160)],'cwd':process[_0xf6525c(0x14b)](),'env':Object['assign']({},process['env'],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0xf6525c(0x12f)](_0x4919d7),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x581c46[_0xf6525c(0xdc)][_0xf6525c(0xc4)][_0xf6525c(0x122)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x581c46[_0xf6525c(0xdc)][_0xf6525c(0xc4)][_0xf6525c(0x17d)],'BROWSERSTACK_LOG_LEVEL':_0x581c46['config'][_0xf6525c(0x101)]})}),_0x3b85a3=()=>{const _0x2186ef=_0xf6525c;try{const _0x2c2dd4=path[_0x2186ef(0x16d)](helper[_0x2186ef(0x150)](),_0x5ced1c[_0x2186ef(0x144)],_0x5ced1c['vrcEN']);if(fs['existsSync'](_0x2c2dd4)){let _0x3d3079=fs[_0x2186ef(0xdd)](_0x2c2dd4);_0x3d3079=JSON[_0x2186ef(0x13f)](_0x3d3079),_0x581c46[_0x2186ef(0x130)]=_0x3d3079,fs[_0x2186ef(0x14c)](_0x2c2dd4);}}catch(_0x59b159){logger[_0x2186ef(0x120)](_0x5ced1c[_0x2186ef(0x12e)](_0x5ced1c[_0x2186ef(0x11d)],_0x59b159));}};_0x4d934a['on'](_0x5ced1c[_0xf6525c(0xd4)],async _0x448c0d=>{const _0x777a38=_0xf6525c;try{PerformanceTester['start'](PerformanceEvents[_0x777a38(0xd5)]),_0x5ced1c[_0x777a38(0x140)](_0x3b85a3),await TestHubHandler[_0x777a38(0xeb)](),await ClientTroubleShootingService['reportFinalDetectionState']();const _0x5c0d63=BrowserstackCLI[_0x777a38(0x17e)]();await BrowserstackCLI[_0x777a38(0xc5)]()[_0x777a38(0xeb)](),TestDetails['shutdown'](),_0x5ced1c[_0x777a38(0xde)](printBuildLink),await utilities['finalExecution'](_0x581c46,_0x5c0d63),process[_0x777a38(0x172)]=_0x448c0d,logger['debug'](_0x777a38(0x189)+_0x448c0d),logger[_0x777a38(0x112)](_0x777a38(0x14e)+_0xc0e8f3),fs[_0x777a38(0x14c)](_0xc0e8f3);fs[_0x777a38(0x11f)](_0x3d68a3)&&(logger[_0x777a38(0x120)]('Deleting\x20'+_0x3d68a3),fs['unlinkSync'](_0x3d68a3));const _0x44015b=fs[_0x777a38(0x126)](path['join'](helper['homedir'](),_0x5ced1c[_0x777a38(0x144)]))[_0x777a38(0xf7)](_0xfb35f8=>_0xfb35f8[_0x777a38(0x180)](_0x777a38(0x118)));_0x44015b[_0x777a38(0xca)](_0x4aed7b=>{const _0xf178a1=_0x777a38;fs[_0xf178a1(0x14c)](path[_0xf178a1(0x16d)](helper['homedir'](),_0x14fd7a[_0xf178a1(0x145)],_0x4aed7b));});}catch(_0x35359f){logger[_0x777a38(0x120)](_0x5ced1c[_0x777a38(0x117)](_0x5ced1c[_0x777a38(0x186)],_0x35359f));}});})();}module[a43_0x460efe(0x10d)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a44_0x58a0d2=a44_0x46d3;(function(_0x24b2ec,_0x10b5ef){const _0x30265c=a44_0x46d3,_0x55dc5d=_0x24b2ec();while(!![]){try{const _0xe990db=parseInt(_0x30265c(0x20d))/0x1+parseInt(_0x30265c(0x1fc))/0x2*(parseInt(_0x30265c(0x203))/0x3)+-parseInt(_0x30265c(0x209))/0x4*(-parseInt(_0x30265c(0x20c))/0x5)+parseInt(_0x30265c(0x20e))/0x6*(parseInt(_0x30265c(0x1ee))/0x7)+-parseInt(_0x30265c(0x1fe))/0x8*(parseInt(_0x30265c(0x20f))/0x9)+parseInt(_0x30265c(0x217))/0xa+parseInt(_0x30265c(0x212))/0xb*(-parseInt(_0x30265c(0x1f6))/0xc);if(_0xe990db===_0x10b5ef)break;else _0x55dc5d['push'](_0x55dc5d['shift']());}catch(_0x4fb58a){_0x55dc5d['push'](_0x55dc5d['shift']());}}}(a44_0x26bd,0x927e1));const util=require(a44_0x58a0d2(0x207)),child_process=require(a44_0x58a0d2(0x216)),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{getFrameworkVersion,debug}=require('../../helpers/test-observability/utils'),helper=require('../../helpers/helper'),{getLoadUtilsPath,getForkProcessPath}=require('./reporter/pwUtils'),{mockIsWorkerRedundant}=require('./patches'),logger=require(a44_0x58a0d2(0x201))[a44_0x58a0d2(0x202)];function a44_0x46d3(_0x229bd9,_0x22e3ac){const _0x26bd9c=a44_0x26bd();return a44_0x46d3=function(_0x46d37f,_0x3e0da5){_0x46d37f=_0x46d37f-0x1ed;let _0x74463=_0x26bd9c[_0x46d37f];return _0x74463;},a44_0x46d3(_0x229bd9,_0x22e3ac);}module[a44_0x58a0d2(0x1f3)]=async function(_0x37546d){const _0x24ba51=a44_0x58a0d2,_0x323336={'bliEn':function(_0x3a838c,_0x54abff){return _0x3a838c(_0x54abff);},'WFePZ':function(_0x3cd0cc){return _0x3cd0cc();},'iuQfw':_0x24ba51(0x215),'Rtkpm':function(_0x3a73b8){return _0x3a73b8();},'QXQNY':function(_0x49a4c4){return _0x49a4c4();},'UErCS':function(_0x16928b,_0x592e94){return _0x16928b(_0x592e94);},'vyIYy':_0x24ba51(0x1ed),'nYkgg':function(_0x498bd7){return _0x498bd7();},'TzUwT':function(_0xc9fb2c,_0x6e3060){return _0xc9fb2c(_0x6e3060);},'FLlCU':function(_0x59bc48,_0xdd144d){return _0x59bc48>=_0xdd144d;},'LcCtz':_0x24ba51(0x1fd),'fzdmx':function(_0x11cb4a,_0x2f2650,_0x504c3d){return _0x11cb4a(_0x2f2650,_0x504c3d);},'QWVHo':function(_0x2bb45f,_0x27a869){return _0x2bb45f!==_0x27a869;},'SbDca':_0x24ba51(0x21c),'LmsXO':_0x24ba51(0x1f9),'qSwwQ':function(_0x11e44b,_0x5c7592){return _0x11e44b(_0x5c7592);}},_0x402d1e=child_process[_0x24ba51(0x206)];if(helper['isHandlePWErrorSet']())try{_0x323336['QXQNY'](mockIsWorkerRedundant);}catch(_0x3aef96){logger[_0x24ba51(0x219)](_0x24ba51(0x200)+util[_0x24ba51(0x1f1)](_0x3aef96));}child_process['fork']=function(){const _0x3a5f4a=_0x24ba51;return _0x323336[_0x3a5f4a(0x1f7)](debug,_0x3a5f4a(0x1f0)+arguments[0x0]),arguments[0x0][_0x3a5f4a(0x20b)](_0x323336['WFePZ'](getForkProcessPath))?arguments[0x0]=require[_0x3a5f4a(0x1f5)](_0x323336[_0x3a5f4a(0x211)]):logger[_0x3a5f4a(0x1fa)](_0x3a5f4a(0x214)+_0x323336[_0x3a5f4a(0x1fb)](getForkProcessPath)+'\x20is\x20not\x20found'),_0x402d1e[_0x3a5f4a(0x20a)](null,arguments);};if(process[_0x24ba51(0x210)]['BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP']){_0x323336[_0x24ba51(0x208)](debug,_0x323336[_0x24ba51(0x1f8)]);try{const {loadGlobalHook:_0x49c7ab}=helper[_0x24ba51(0x218)][_0x24ba51(0x20a)](null,_0x323336[_0x24ba51(0x204)](getLoadUtilsPath)),_0x41aaf2=_0x323336[_0x24ba51(0x21b)](getFrameworkVersion,FRAMEWORKS[_0x24ba51(0x213)]);let _0x5c23a8=_0x37546d;if(_0x323336['FLlCU'](helper[_0x24ba51(0x21a)](_0x41aaf2,_0x323336['LcCtz']),0x0)){const _0x41cbee={};_0x41cbee['config']=_0x37546d,_0x5c23a8=_0x41cbee;}const _0x4e6574=await _0x323336[_0x24ba51(0x1ff)](_0x49c7ab,_0x5c23a8,process[_0x24ba51(0x210)][_0x24ba51(0x1f4)]);if(_0x323336[_0x24ba51(0x1ef)](typeof _0x4e6574,_0x323336[_0x24ba51(0x205)]))throw new Error(_0x323336['LmsXO']);return _0x4e6574[_0x24ba51(0x20a)](null,arguments);}catch(_0xc8246e){_0x323336['qSwwQ'](debug,_0x24ba51(0x21d)+_0xc8246e[_0x24ba51(0x1f2)]());}}};function a44_0x26bd(){const _0x20bfc9=['60uoTVmB','bliEn','vyIYy','Not\x20able\x20to\x20import\x20globalSetup','error','Rtkpm','436888psLJiW','1.33.0','1048312aopwkq','fzdmx','Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20','../../helpers/logger','winstonLogger','3wwnWlp','nYkgg','SbDca','fork','util','UErCS','3364828lcJyRn','apply','includes','5YzODoU','252088KFWSca','24jngYHo','63TOFhHD','env','iuQfw','804463OFlcOh','PLAYWRIGHT','Path\x20','./mock-process.js','child_process','1826320IqCDZX','requirePWModule','debug','compareVersions','TzUwT','function','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','Running\x20existing\x20global\x20setup','680050hSFpVi','QWVHo','Call\x20to\x20child\x20fork\x20with\x20args\x20','format','toString','exports','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','resolve'];a44_0x26bd=function(){return _0x20bfc9;};return a44_0x26bd();}
|