browserstack-node-sdk 1.57.0 → 1.57.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/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 -3
- 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/caCertHelper.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/driverInitErrorReporter.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 -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
|
-
const a42_0x411d2a=a42_0x2704;function a42_0x2704(_0x25502c,_0x5ddc48){const _0x2699a5=a42_0x2699();return a42_0x2704=function(_0x2704df,_0x534713){_0x2704df=_0x2704df-0x108;let _0x5817f1=_0x2699a5[_0x2704df];return _0x5817f1;},a42_0x2704(_0x25502c,_0x5ddc48);}(function(_0x26d980,_0x103d9b){const _0x313b9b=a42_0x2704,_0x5e8b47=_0x26d980();while(!![]){try{const _0x1f77e2=parseInt(_0x313b9b(0x127))/0x1+parseInt(_0x313b9b(0x133))/0x2*(parseInt(_0x313b9b(0x151))/0x3)+parseInt(_0x313b9b(0x162))/0x4*(-parseInt(_0x313b9b(0x192))/0x5)+parseInt(_0x313b9b(0x117))/0x6*(parseInt(_0x313b9b(0x18c))/0x7)+-parseInt(_0x313b9b(0x14f))/0x8*(-parseInt(_0x313b9b(0x13c))/0x9)+-parseInt(_0x313b9b(0x194))/0xa+parseInt(_0x313b9b(0x150))/0xb*(-parseInt(_0x313b9b(0x168))/0xc);if(_0x1f77e2===_0x103d9b)break;else _0x5e8b47['push'](_0x5e8b47['shift']());}catch(_0x2dfffa){_0x5e8b47['push'](_0x5e8b47['shift']());}}}(a42_0x2699,0x5d0ef));const util=require(a42_0x411d2a(0x16d)),logger=require(a42_0x411d2a(0x10e))[a42_0x411d2a(0x18a)],{automationLogger}=require('../../helpers/logger'),{isAccessibilityAutomationSession}=require(a42_0x411d2a(0x12d)),{isUndefined,isBrowserstackInfra}=require(a42_0x411d2a(0x179)),scripts=require(a42_0x411d2a(0x16e)),PerformanceTester=require(a42_0x411d2a(0x165)),{A11Y_EVENTS:PerformanceA11yEvents}=require('../../helpers/performance/constants'),accessibilityHelper=require(a42_0x411d2a(0x12d)),{AUTOMATION_LOG_COMMANDS}=require(a42_0x411d2a(0x188));function a42_0x2699(){const _0x25eb43=['includes','XSqja','keys','ZBSVj','url','(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','body','accessibilityOptions.includeIssueType.needsReview','accessibilityPlatform','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','parameters','eeNKx','use','find','Playwright','browser_version','stringify','8aoXZHm','11FeGCPX','309501fsBsnY','LJPIc','workerInfo','message','executeAsyncScript','latest','SsZUm','startsWith','[A11Y]\x20Error\x20logging\x20SDK-AUTOMATION\x20for\x20browserStackEvaluate:\x20','\x20or\x20higher\x20','deviceName','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','Performing\x20scan\x20with\x20method:\x20','No\x20accessibility\x20results\x20were\x20found.','browserName','GcpPk','473596AHgMsj','aheNz','WdlWr','../../helpers/performance/performance-tester','accessibilityOptions','isBrowserSupportedForAccessibility','315972SStlNH','accessibilityOptions.includeIssueType.bestPractice','toISOString','command','browser','util','../../helpers/accessibility-automation/scripts','accessibilityOptions.authToken','BS_A11Y_JWT','debug','error','format','name','MdBJT','WebDriver','currentTest','evaluate','../../helpers/helper','scannerProcessingTimeout','azNAC','isMobileScanningEnabledForGroup','MOBILE_SCANNING_DISABLED_WARNING','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','connectOptions','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers\x20or\x20Android\x20Chrome.','setAccessibilityCapabilities','nnNvM','request','isVersionSupported','forEach','processAccessibilityCaps','bstackSdkArgs','../utils/constants','string','winstonLogger','env','7bYhxIi','testInfo','LCayS','fSEdo','on\x20non-BrowserStack\x20infrastructure\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','25NXNpje','assign','6456330uaofCl','wsEndpoint','PERFORM_SCAN','response','ePTfm','Bujsg','FyYDH','../../helpers/logger','No\x20summaryResults\x20found.','getMinVersionForBrowser','\x20browser\x20version\x20','measureWrapper','accessibilityOptions.scannerProcessingTimeout','needsReview','isMobilePlatform','bestPractice','3432666dkRuKl','jkDXm','includeIssueType','accessibilityOptions.scannerVersion','replace','warn','getBrowserDisplayName','LkbTa','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','gijKm','includePartOfPageScope','][\x20SDK-AUTOMATION\x20]\x20','Gqetu','scannerVersion','\x20page:\x20','getAccessibilityResults','653596dXoDRp','zyqcg','oFPbu','TOmeJ','platformValidation:\x20Mobile\x20platform\x20already\x20validated.','toLowerCase','../../helpers/accessibility-automation/helper','chrome','project','oQKQc','WpaXK','browserStackEvaluate','6xZZNeq','dvqTJ','vKBfI','platformValidation','getAccessibilityResultsSummary','browserstack.accessibilityOptions','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','constructor','GUToT','989262Cksbpw','FzFag'];a42_0x2699=function(){return _0x25eb43;};return a42_0x2699();}exports[a42_0x411d2a(0x132)]=async(_0x2edc70,_0x1baba4,_0x543eb1={})=>{const _0x449df1=a42_0x411d2a,_0x460bb7={};_0x460bb7[_0x449df1(0x13d)]=_0x449df1(0x187),_0x460bb7[_0x449df1(0x161)]=function(_0xb94dc4,_0x3ba45e){return _0xb94dc4===_0x3ba45e;},_0x460bb7[_0x449df1(0x135)]=_0x449df1(0x189);const _0x14719d=_0x460bb7,_0x2021a1=await _0x2edc70[_0x449df1(0x178)](_0x449df1(0x191)+_0x1baba4[_0x449df1(0x11b)](/arguments/g,_0x14719d[_0x449df1(0x13d)])+'\x0a\x20\x20\x20\x20})\x0a\x20\x20})('+JSON[_0x449df1(0x14e)](_0x543eb1)+')');try{if(_0x1baba4&&_0x14719d[_0x449df1(0x161)](typeof _0x1baba4,_0x14719d['vKBfI'])){const _0x1f68f4=AUTOMATION_LOG_COMMANDS[_0x449df1(0x14b)](_0x26b31b=>_0x1baba4[_0x449df1(0x13e)](_0x26b31b));if(_0x1f68f4){const _0x42afae={};_0x42afae['command']=_0x1f68f4,_0x42afae[_0x449df1(0x148)]=[_0x543eb1];const _0x3a8c9f={};_0x3a8c9f[_0x449df1(0x144)]=_0x2021a1;const _0x420ce5={};_0x420ce5[_0x449df1(0x183)]=_0x42afae,_0x420ce5[_0x449df1(0x10a)]=_0x3a8c9f,automationLogger['silly']('['+new Date()[_0x449df1(0x16a)]()+_0x449df1(0x122)+JSON[_0x449df1(0x14e)](_0x420ce5));}}}catch(_0x390f69){logger[_0x449df1(0x171)](_0x449df1(0x159)+_0x390f69[_0x449df1(0x154)]);}return _0x2021a1;},exports['browserStackExecuteDriver']=async(_0x30a1b2,_0x50518c,_0x171fea={})=>{const _0x24df48=a42_0x411d2a,_0x4571e4={};_0x4571e4['zmDTi']=function(_0x54d63d,_0x286b48){return _0x54d63d===_0x286b48;},_0x4571e4[_0x24df48(0x128)]=_0x24df48(0x176),_0x4571e4[_0x24df48(0x12a)]=_0x24df48(0x14c),_0x4571e4['gijKm']='bstackSdkArgs';const _0x53ef3e=_0x4571e4;if(_0x53ef3e['zmDTi'](_0x30a1b2[_0x24df48(0x13a)][_0x24df48(0x174)],_0x53ef3e[_0x24df48(0x128)]))return await _0x30a1b2[_0x24df48(0x155)](_0x50518c,_0x171fea);else{if(_0x53ef3e['zmDTi'](_0x30a1b2['constructor'][_0x24df48(0x174)],_0x53ef3e[_0x24df48(0x12a)]))return await _0x30a1b2['executeScript'](_0x24df48(0x143)+_0x50518c['replace'](/arguments/g,_0x53ef3e[_0x24df48(0x120)])+_0x24df48(0x147)+JSON[_0x24df48(0x14e)](_0x171fea)+')');}},exports[a42_0x411d2a(0x181)]=async _0x45520f=>{const _0x2d663a=a42_0x411d2a,_0xc436fe={};_0xc436fe['ePTfm']='accessibilityOptions.wcagVersion',_0xc436fe[_0x2d663a(0x134)]=_0x2d663a(0x113),_0xc436fe[_0x2d663a(0x163)]=_0x2d663a(0x169),_0xc436fe[_0x2d663a(0x164)]=_0x2d663a(0x145),_0xc436fe['Jciob']=_0x2d663a(0x16f),_0xc436fe['SsZUm']=_0x2d663a(0x11a);const _0x45749f=_0xc436fe;_0x45520f[_0x2d663a(0x166)]&&(_0x45520f[_0x2d663a(0x166)]['wcagVersion']&&(_0x45520f[_0x45749f[_0x2d663a(0x10b)]]=_0x45520f[_0x2d663a(0x166)]['wcagVersion']),_0x45520f['accessibilityOptions'][_0x2d663a(0x17a)]&&(_0x45520f[_0x45749f[_0x2d663a(0x134)]]=_0x45520f[_0x2d663a(0x166)]['scannerProcessingTimeout']),_0x45520f['accessibilityOptions']['includeIssueType']&&(_0x45520f[_0x45749f[_0x2d663a(0x163)]]=_0x45520f['accessibilityOptions'][_0x2d663a(0x119)][_0x2d663a(0x116)],_0x45520f[_0x45749f['WdlWr']]=_0x45520f['accessibilityOptions'][_0x2d663a(0x119)][_0x2d663a(0x114)]));const _0x134c83=JSON['parse'](process[_0x2d663a(0x18b)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML'])[_0x2d663a(0x124)];_0x45520f[_0x45749f['Jciob']]=process[_0x2d663a(0x18b)][_0x2d663a(0x170)],_0x45520f[_0x45749f[_0x2d663a(0x157)]]=_0x134c83,delete _0x45520f[_0x2d663a(0x166)];},exports[a42_0x411d2a(0x126)]=async _0x3df056=>{const _0x53e01b=a42_0x411d2a,_0x188686={};_0x188686[_0x53e01b(0x175)]=_0x53e01b(0x15f),_0x188686[_0x53e01b(0x129)]=_0x53e01b(0x15d);const _0x6d5199=_0x188686;if(global[_0x53e01b(0x146)])try{const details={'url':await _0x3df056.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(_0x3df056,scripts.performScan,mobileArgs)));},{command:'getAccessibilityResults',...details})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x3df056,scripts.getResults,mobileArgs);},{...details})();return res;}catch{return logger[_0x53e01b(0x172)](_0x6d5199[_0x53e01b(0x175)]),[];}else return logger[_0x53e01b(0x11c)](_0x6d5199[_0x53e01b(0x129)]),[];},exports['performScan']=async(_0x2ebc47,_0x5bff65='',_0x2ec3ec={},_0x515c6c={})=>{const _0x37eb1b=a42_0x411d2a;logger[_0x37eb1b(0x171)](_0x37eb1b(0x15e)+_0x5bff65+_0x37eb1b(0x125)+_0x2ebc47);const _0x52bb60={'url':await _0x2ebc47[_0x37eb1b(0x142)](),'testhub_btcer_uuid':global['__workerDetails']?.[_0x37eb1b(0x177)]?.['id']};if(global[_0x37eb1b(0x146)])return await PerformanceTester[_0x37eb1b(0x112)](PerformanceA11yEvents[_0x37eb1b(0x109)],async()=>{const _0x485d5e=_0x37eb1b,_0x16cbdc={};_0x16cbdc[_0x485d5e(0x16b)]=_0x5bff65;const _0x55e0f0=_0x16cbdc;_0x2ec3ec&&_0x2ec3ec[_0x485d5e(0x121)]&&(_0x55e0f0[_0x485d5e(0x121)]=_0x2ec3ec[_0x485d5e(0x121)]);Object[_0x485d5e(0x193)](_0x55e0f0,_0x515c6c);const _0x52dac7=await exports['browserStackEvaluate'](_0x2ebc47,scripts['performScan'],_0x55e0f0);return _0x52dac7;},{'command':_0x5bff65,..._0x52bb60})();},exports[a42_0x411d2a(0x137)]=async _0x385111=>{const _0x7066c0=a42_0x411d2a,_0x1b5b3d={};_0x1b5b3d[_0x7066c0(0x141)]=_0x7066c0(0x10f),_0x1b5b3d['XSqja']='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.';const _0x495892=_0x1b5b3d;if(global[_0x7066c0(0x146)])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(_0x385111,scripts.performScan,mobileArgs)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x385111,scripts.getResultsSummary,mobileArgs);})();return summaryResults;}catch{return logger[_0x7066c0(0x171)](_0x495892['ZBSVj']),{};}else return logger[_0x7066c0(0x11c)](_0x495892[_0x7066c0(0x13f)]),{};},exports[a42_0x411d2a(0x136)]=_0x259a90=>{const _0x45f0fd=a42_0x411d2a,_0x2640f1={'fSEdo':_0x45f0fd(0x12b),'wjaXx':_0x45f0fd(0x11f),'FyYDH':function(_0x378abc,_0x594f1f){return _0x378abc!==_0x594f1f;},'WpaXK':_0x45f0fd(0x156),'CkIhQ':function(_0x1b70a1){return _0x1b70a1();},'WhlKv':_0x45f0fd(0x190)};try{if(global[_0x45f0fd(0x115)])return logger[_0x45f0fd(0x171)](_0x2640f1[_0x45f0fd(0x18f)]),!![];const _0x26a55a=_0x259a90[_0x45f0fd(0x16c)],_0x54667a=_0x259a90[_0x45f0fd(0x14d)];if(!accessibilityHelper[_0x45f0fd(0x167)](_0x26a55a))return logger[_0x45f0fd(0x11c)](_0x2640f1['wjaXx']),![];if(_0x2640f1[_0x45f0fd(0x10d)](_0x54667a,_0x2640f1[_0x45f0fd(0x131)])){const _0x2bbfaf=_0x2640f1['CkIhQ'](isBrowserstackInfra),_0x1b47c6=accessibilityHelper[_0x45f0fd(0x110)](_0x26a55a,_0x2bbfaf),_0x43f622=accessibilityHelper[_0x45f0fd(0x11d)](_0x26a55a);if(!accessibilityHelper[_0x45f0fd(0x184)](_0x54667a,_0x1b47c6)){const _0x290858=_0x2bbfaf?'':_0x2640f1['WhlKv'];return logger[_0x45f0fd(0x11c)](_0x45f0fd(0x15c)+_0x43f622+'\x20browser\x20version\x20'+_0x1b47c6+'\x20or\x20higher\x20'+_0x290858+'.'),![];}}}catch(_0x9c32f2){logger[_0x45f0fd(0x171)](_0x45f0fd(0x17e)+util[_0x45f0fd(0x173)](_0x9c32f2));}return!![];},exports[a42_0x411d2a(0x186)]=(_0x29bdb0,_0x2438c3,_0x5f1cca)=>{const _0x38e482=a42_0x411d2a,_0x432839={'Gqetu':_0x38e482(0x138),'uiPrv':function(_0x3e6491){return _0x3e6491();},'eeNKx':'browserstack.accessibility','caoZU':_0x38e482(0x11f),'kOHwX':function(_0x4ef193,_0x4cff67){return _0x4ef193!==_0x4cff67;},'nnNvM':_0x38e482(0x156),'Bujsg':function(_0x12666f){return _0x12666f();},'azNAC':'on\x20non-BrowserStack\x20infrastructure\x20','LJPIc':function(_0x57c9ce,_0x2f04a9){return _0x57c9ce(_0x2f04a9);},'LCayS':function(_0x3463bf,_0x3355c9){return _0x3463bf===_0x3355c9;},'LkbTa':'android','GUToT':_0x38e482(0x12e),'jkDXm':'playwright-chromium','oQKQc':'chromium','IIIIJ':_0x38e482(0x180),'rwoKX':function(_0xfac821,_0x52774a){return _0xfac821+_0x52774a;}};try{if(_0x432839['uiPrv'](isAccessibilityAutomationSession)){global[_0x38e482(0x146)]=!![];!_0x29bdb0[_0x432839[_0x38e482(0x149)]]&&(global[_0x38e482(0x146)]=![]);const _0x30f43d=_0x29bdb0[_0x38e482(0x160)]||_0x29bdb0[_0x38e482(0x16c)],_0x100450=_0x29bdb0[_0x38e482(0x14d)];!accessibilityHelper[_0x38e482(0x167)](_0x30f43d)&&(logger[_0x38e482(0x11c)](_0x432839['caoZU']),global['accessibilityPlatform']=![]);if(_0x432839['kOHwX'](_0x100450,_0x432839[_0x38e482(0x182)])){const _0x5aacb8=_0x432839[_0x38e482(0x10c)](isBrowserstackInfra),_0x5160a9=accessibilityHelper[_0x38e482(0x110)](_0x30f43d,_0x5aacb8),_0x520505=accessibilityHelper['getBrowserDisplayName'](_0x30f43d);if(!accessibilityHelper[_0x38e482(0x184)](_0x100450,_0x5160a9)){const _0x1436ad=_0x5aacb8?'':_0x432839[_0x38e482(0x17b)];logger[_0x38e482(0x11c)](_0x38e482(0x15c)+_0x520505+_0x38e482(0x111)+_0x5160a9+_0x38e482(0x15a)+_0x1436ad+'.'),global[_0x38e482(0x146)]=![];}}if(!_0x432839[_0x38e482(0x152)](isUndefined,_0x29bdb0[_0x38e482(0x15b)])){const _0x398e6d=(_0x29bdb0['os']||'')[_0x38e482(0x12c)](),_0x41bf00=(_0x29bdb0[_0x38e482(0x160)]||_0x29bdb0[_0x38e482(0x16c)]||'')['toLowerCase'](),_0x4feafa=_0x432839[_0x38e482(0x18e)](_0x398e6d,_0x432839[_0x38e482(0x11e)])&&[_0x432839[_0x38e482(0x13b)],_0x432839[_0x38e482(0x118)],_0x432839[_0x38e482(0x130)]][_0x38e482(0x13e)](_0x41bf00);if(!_0x4feafa)logger[_0x38e482(0x11c)](_0x432839['IIIIJ']),global[_0x38e482(0x146)]=![];else!accessibilityHelper[_0x38e482(0x17c)]()&&(logger[_0x38e482(0x11c)](accessibilityHelper[_0x38e482(0x17d)]),global[_0x38e482(0x146)]=![]);}if(!global[_0x38e482(0x146)]){_0x29bdb0[_0x432839[_0x38e482(0x149)]]=![],Object[_0x38e482(0x140)](_0x29bdb0)[_0x38e482(0x185)](_0x32a140=>{const _0x30c143=_0x38e482;_0x32a140[_0x30c143(0x158)](_0x432839[_0x30c143(0x123)])&&delete _0x29bdb0[_0x32a140];});const _0x2f4503=_0x432839['rwoKX'](_0x2438c3,_0x432839[_0x38e482(0x152)](encodeURIComponent,JSON[_0x38e482(0x14e)](_0x29bdb0)));_0x5f1cca&&(_0x5f1cca[_0x38e482(0x177)][_0x38e482(0x18d)][_0x38e482(0x12f)][_0x38e482(0x14a)][_0x38e482(0x17f)]['wsEndpoint']=_0x2f4503,_0x5f1cca[_0x38e482(0x153)][_0x38e482(0x12f)][_0x38e482(0x14a)][_0x38e482(0x17f)][_0x38e482(0x108)]=_0x2f4503);}}else global['accessibilityPlatform']=![];}catch(_0x1ad900){logger['debug'](_0x38e482(0x139)+util[_0x38e482(0x173)](_0x1ad900));}};
|
|
1
|
+
function a42_0x3640(_0x21d0a2,_0xa726b5){const _0x4aa0c3=a42_0x4aa0();return a42_0x3640=function(_0x3640a2,_0x14ef4c){_0x3640a2=_0x3640a2-0xaa;let _0x490cdf=_0x4aa0c3[_0x3640a2];return _0x490cdf;},a42_0x3640(_0x21d0a2,_0xa726b5);}const a42_0x635596=a42_0x3640;(function(_0x3f2c1c,_0x16ee46){const _0x10ecf2=a42_0x3640,_0x172758=_0x3f2c1c();while(!![]){try{const _0x49bfa3=-parseInt(_0x10ecf2(0x132))/0x1+parseInt(_0x10ecf2(0xf7))/0x2*(-parseInt(_0x10ecf2(0xec))/0x3)+-parseInt(_0x10ecf2(0x113))/0x4*(parseInt(_0x10ecf2(0xeb))/0x5)+-parseInt(_0x10ecf2(0xb6))/0x6+-parseInt(_0x10ecf2(0x111))/0x7+parseInt(_0x10ecf2(0xca))/0x8+parseInt(_0x10ecf2(0xd1))/0x9;if(_0x49bfa3===_0x16ee46)break;else _0x172758['push'](_0x172758['shift']());}catch(_0x59ad17){_0x172758['push'](_0x172758['shift']());}}}(a42_0x4aa0,0xf337b));function a42_0x4aa0(){const _0x1872eb=['toISOString','IByJB','browserStackExecuteDriver','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','browserName','(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','RXoNp','evaluate','AcPsa','keys','body','winstonLogger','accessibilityOptions','GyXIP','forEach','performScan','../../helpers/logger','RRDic','replace','uZxEN','KFjfO','jfJzm','string','debug','silly','4498745nriBaj','87YKrQMV','platformValidation','STacy','\x20or\x20higher\x20','accessibilityOptions.includeIssueType.needsReview','ZLyhK','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','use','[A11Y]\x20Error\x20logging\x20SDK-AUTOMATION\x20for\x20browserStackEvaluate:\x20','browserStackEvaluate','warn','54154CbeFql','No\x20accessibility\x20results\x20were\x20found.','../../helpers/performance/performance-tester','WebDriver','includes','LAdcV','android','HlMSo','wcagVersion','accessibilityPlatform','name','tmZsZ','find','accessibilityOptions.scannerVersion','sygbt','chrome','testInfo','TwySp','aOiIv','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers\x20or\x20Android\x20Chrome.','bestPractice','zdgjM','Playwright','accessibilityOptions.authToken','../../helpers/helper','6725033mcFeRh','aLcZk','4bzitMf','format','browser_version','(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','../../helpers/accessibility-automation/scripts','isMobilePlatform','isBrowserSupportedForAccessibility','url','getAccessibilityResultsSummary','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','env','NiHTm','browser','BS_A11Y_JWT','IVUlz','stringify','request','npmql','toLowerCase','MOBILE_SCANNING_DISABLED_WARNING','oCdCK','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','scannerProcessingTimeout','JnCPn','zeHZu','isMobileScanningEnabledForGroup','assign','Performing\x20scan\x20with\x20method:\x20','qXKDZ','\x20browser\x20version\x20','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','566282VvPiqG','getBrowserDisplayName','bLByu','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20','command','includeIssueType','wpoTe','chromium','../utils/constants','Mtebq','UPgpS','../../helpers/performance/constants','PERFORM_SCAN','__workerDetails','latest','getMinVersionForBrowser','11585262nYZDjS','ZrtDe','includePartOfPageScope','connectOptions','VWVpx','startsWith','\x20page:\x20','on\x20non-BrowserStack\x20infrastructure\x20','zyVnC','fIeUD','getAccessibilityResults','wsEndpoint','OQvow','scannerVersion','platformValidation:\x20Mobile\x20platform\x20already\x20validated.','EqaDI','project','browserstack.accessibility','measureWrapper','needsReview','13206352dPNGYP','util','currentTest','accessibilityOptions.wcagVersion','isVersionSupported','No\x20summaryResults\x20found.','workerInfo','40394565AjZKOP'];a42_0x4aa0=function(){return _0x1872eb;};return a42_0x4aa0();}const util=require(a42_0x635596(0xcb)),logger=require(a42_0x635596(0xe2))[a42_0x635596(0xdd)],{automationLogger}=require(a42_0x635596(0xe2)),{isAccessibilityAutomationSession}=require('../../helpers/accessibility-automation/helper'),{isUndefined,isBrowserstackInfra}=require(a42_0x635596(0x110)),scripts=require(a42_0x635596(0x117)),PerformanceTester=require(a42_0x635596(0xf9)),{A11Y_EVENTS:PerformanceA11yEvents}=require(a42_0x635596(0xb1)),accessibilityHelper=require('../../helpers/accessibility-automation/helper'),{AUTOMATION_LOG_COMMANDS}=require(a42_0x635596(0xae));exports[a42_0x635596(0xf5)]=async(_0xd4a2bc,_0x346854,_0x3a9db8={})=>{const _0x2bef8a=a42_0x635596,_0x4b9323={};_0x4b9323['EqaDI']='bstackSdkArgs',_0x4b9323[_0x2bef8a(0x12a)]=function(_0x170bee,_0x4c12ad){return _0x170bee===_0x4c12ad;},_0x4b9323['IByJB']=_0x2bef8a(0xe8);const _0x238c38=_0x4b9323,_0x4a0f84=await _0xd4a2bc[_0x2bef8a(0xd9)](_0x2bef8a(0xd7)+_0x346854[_0x2bef8a(0xe4)](/arguments/g,_0x238c38[_0x2bef8a(0xc5)])+_0x2bef8a(0xd5)+JSON['stringify'](_0x3a9db8)+')');try{if(_0x346854&&_0x238c38['JnCPn'](typeof _0x346854,_0x238c38[_0x2bef8a(0xd3)])){const _0x22a0cc=AUTOMATION_LOG_COMMANDS[_0x2bef8a(0x103)](_0x37348f=>_0x346854[_0x2bef8a(0xfb)](_0x37348f));if(_0x22a0cc){const _0x2567c1={};_0x2567c1[_0x2bef8a(0xaa)]=_0x22a0cc,_0x2567c1['parameters']=[_0x3a9db8];const _0xced381={};_0xced381[_0x2bef8a(0xdc)]=_0x4a0f84;const _0x497bbe={};_0x497bbe[_0x2bef8a(0x123)]=_0x2567c1,_0x497bbe['response']=_0xced381,automationLogger[_0x2bef8a(0xea)]('['+new Date()[_0x2bef8a(0xd2)]()+'][\x20SDK-AUTOMATION\x20]\x20'+JSON[_0x2bef8a(0x122)](_0x497bbe));}}}catch(_0x20ce12){logger[_0x2bef8a(0xe9)](_0x2bef8a(0xf4)+_0x20ce12['message']);}return _0x4a0f84;},exports[a42_0x635596(0xd4)]=async(_0x3057e2,_0x3b6894,_0x5c2009={})=>{const _0x22ec6b=a42_0x635596,_0x64ce7d={};_0x64ce7d[_0x22ec6b(0x112)]=function(_0x5aa934,_0x1f72bc){return _0x5aa934===_0x1f72bc;},_0x64ce7d[_0x22ec6b(0xe5)]=_0x22ec6b(0xfa),_0x64ce7d[_0x22ec6b(0xbf)]=function(_0x1e7842,_0x525249){return _0x1e7842===_0x525249;},_0x64ce7d['RXoNp']=_0x22ec6b(0x10e),_0x64ce7d[_0x22ec6b(0xac)]='bstackSdkArgs';const _0x30351a=_0x64ce7d;if(_0x30351a[_0x22ec6b(0x112)](_0x3057e2['constructor'][_0x22ec6b(0x101)],_0x30351a[_0x22ec6b(0xe5)]))return await _0x3057e2['executeAsyncScript'](_0x3b6894,_0x5c2009);else{if(_0x30351a[_0x22ec6b(0xbf)](_0x3057e2['constructor'][_0x22ec6b(0x101)],_0x30351a[_0x22ec6b(0xd8)]))return await _0x3057e2['executeScript'](_0x22ec6b(0x116)+_0x3b6894[_0x22ec6b(0xe4)](/arguments/g,_0x30351a[_0x22ec6b(0xac)])+_0x22ec6b(0x131)+JSON[_0x22ec6b(0x122)](_0x5c2009)+')');}},exports['setAccessibilityCapabilities']=async _0x3f45b0=>{const _0x39db1f=a42_0x635596,_0x28672d={};_0x28672d['npmql']=_0x39db1f(0xcd),_0x28672d[_0x39db1f(0x127)]='accessibilityOptions.scannerProcessingTimeout',_0x28672d[_0x39db1f(0xfe)]='accessibilityOptions.includeIssueType.bestPractice',_0x28672d['VfmhR']=_0x39db1f(0xf0),_0x28672d[_0x39db1f(0xda)]=_0x39db1f(0x10f),_0x28672d[_0x39db1f(0xdf)]=_0x39db1f(0x104);const _0x1a8975=_0x28672d;_0x3f45b0['accessibilityOptions']&&(_0x3f45b0['accessibilityOptions'][_0x39db1f(0xff)]&&(_0x3f45b0[_0x1a8975[_0x39db1f(0x124)]]=_0x3f45b0[_0x39db1f(0xde)][_0x39db1f(0xff)]),_0x3f45b0[_0x39db1f(0xde)][_0x39db1f(0x129)]&&(_0x3f45b0[_0x1a8975[_0x39db1f(0x127)]]=_0x3f45b0[_0x39db1f(0xde)][_0x39db1f(0x129)]),_0x3f45b0[_0x39db1f(0xde)]['includeIssueType']&&(_0x3f45b0[_0x1a8975['HlMSo']]=_0x3f45b0['accessibilityOptions'][_0x39db1f(0xab)][_0x39db1f(0x10c)],_0x3f45b0[_0x1a8975['VfmhR']]=_0x3f45b0[_0x39db1f(0xde)][_0x39db1f(0xab)][_0x39db1f(0xc9)]));const _0x521477=JSON['parse'](process[_0x39db1f(0x11d)][_0x39db1f(0x128)])[_0x39db1f(0xc3)];_0x3f45b0[_0x1a8975[_0x39db1f(0xda)]]=process['env'][_0x39db1f(0x120)],_0x3f45b0[_0x1a8975[_0x39db1f(0xdf)]]=_0x521477,delete _0x3f45b0[_0x39db1f(0xde)];},exports[a42_0x635596(0xc0)]=async _0x8cb3e0=>{const _0x54a316=a42_0x635596,_0x226b23={};_0x226b23[_0x54a316(0x102)]=_0x54a316(0xf8),_0x226b23[_0x54a316(0xfc)]='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.';const _0x471ad5=_0x226b23;if(global['accessibilityPlatform'])try{const details={'url':await _0x8cb3e0.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(_0x8cb3e0,scripts.performScan,mobileArgs)));},{command:'getAccessibilityResults',...details})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x8cb3e0,scripts.getResults,mobileArgs);},{...details})();return res;}catch{return logger['error'](_0x471ad5[_0x54a316(0x102)]),[];}else return logger[_0x54a316(0xf6)](_0x471ad5[_0x54a316(0xfc)]),[];},exports[a42_0x635596(0xe1)]=async(_0x251dd2,_0x41a971='',_0x20a91b={},_0x30f51e={})=>{const _0xdda023=a42_0x635596;logger['debug'](_0xdda023(0x12e)+_0x41a971+_0xdda023(0xbc)+_0x251dd2);const _0x54f184={'url':await _0x251dd2[_0xdda023(0x11a)](),'testhub_btcer_uuid':global[_0xdda023(0xb3)]?.[_0xdda023(0xcc)]?.['id']};if(global[_0xdda023(0x100)])return await PerformanceTester[_0xdda023(0xc8)](PerformanceA11yEvents[_0xdda023(0xb2)],async()=>{const _0xd99093=_0xdda023,_0x5e1dd5={};_0x5e1dd5[_0xd99093(0xaa)]=_0x41a971;const _0x5d79f5=_0x5e1dd5;_0x20a91b&&_0x20a91b[_0xd99093(0xb8)]&&(_0x5d79f5[_0xd99093(0xb8)]=_0x20a91b[_0xd99093(0xb8)]);Object[_0xd99093(0x12d)](_0x5d79f5,_0x30f51e);const _0x41db4c=await exports['browserStackEvaluate'](_0x251dd2,scripts[_0xd99093(0xe1)],_0x5d79f5);return _0x41db4c;},{'command':_0x41a971,..._0x54f184})();},exports[a42_0x635596(0x11b)]=async _0x6de8c0=>{const _0x1e5070=a42_0x635596,_0x1f3623={};_0x1f3623[_0x1e5070(0xaf)]=_0x1e5070(0xcf),_0x1f3623[_0x1e5070(0x134)]='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.';const _0x1de927=_0x1f3623;if(global[_0x1e5070(0x100)])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(_0x6de8c0,scripts.performScan,mobileArgs)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x6de8c0,scripts.getResultsSummary,mobileArgs);})();return summaryResults;}catch{return logger[_0x1e5070(0xe9)](_0x1de927[_0x1e5070(0xaf)]),{};}else return logger['warn'](_0x1de927[_0x1e5070(0x134)]),{};},exports[a42_0x635596(0xed)]=_0xe6daf3=>{const _0x3e5cbb=a42_0x635596,_0x12edd3={'atGwZ':_0x3e5cbb(0xc4),'qXKDZ':_0x3e5cbb(0x11c),'wxtlI':function(_0x5f3e58,_0x20d901){return _0x5f3e58!==_0x20d901;},'jfJzm':_0x3e5cbb(0xb4),'STacy':function(_0x4bae8d){return _0x4bae8d();},'zdgjM':_0x3e5cbb(0xbd)};try{if(global[_0x3e5cbb(0x118)])return logger[_0x3e5cbb(0xe9)](_0x12edd3['atGwZ']),!![];const _0x490d93=_0xe6daf3[_0x3e5cbb(0x11f)],_0x4b9159=_0xe6daf3['browser_version'];if(!accessibilityHelper[_0x3e5cbb(0x119)](_0x490d93))return logger[_0x3e5cbb(0xf6)](_0x12edd3[_0x3e5cbb(0x12f)]),![];if(_0x12edd3['wxtlI'](_0x4b9159,_0x12edd3[_0x3e5cbb(0xe7)])){const _0x1b5a2d=_0x12edd3[_0x3e5cbb(0xee)](isBrowserstackInfra),_0x285c63=accessibilityHelper['getMinVersionForBrowser'](_0x490d93,_0x1b5a2d),_0x1ac353=accessibilityHelper[_0x3e5cbb(0x133)](_0x490d93);if(!accessibilityHelper[_0x3e5cbb(0xce)](_0x4b9159,_0x285c63)){const _0x5e44c6=_0x1b5a2d?'':_0x12edd3[_0x3e5cbb(0x10d)];return logger['warn'](_0x3e5cbb(0x135)+_0x1ac353+_0x3e5cbb(0x130)+_0x285c63+'\x20or\x20higher\x20'+_0x5e44c6+'.'),![];}}}catch(_0x978726){logger[_0x3e5cbb(0xe9)](_0x3e5cbb(0xf2)+util[_0x3e5cbb(0x114)](_0x978726));}return!![];},exports['processAccessibilityCaps']=(_0x27e87a,_0x24318d,_0x5a763a)=>{const _0x5e69a5=a42_0x635596,_0x18f8a6={'RRDic':'browserstack.accessibilityOptions','zyVnC':function(_0x3e3c86){return _0x3e3c86();},'aOiIv':_0x5e69a5(0xc7),'NiHTm':_0x5e69a5(0x11c),'sygbt':function(_0x5fadc1,_0x2b199c){return _0x5fadc1!==_0x2b199c;},'TwySp':'latest','UPgpS':function(_0x33af5b){return _0x33af5b();},'LCJYz':_0x5e69a5(0xbd),'ZrtDe':function(_0x29faef,_0x403cf8){return _0x29faef(_0x403cf8);},'VWVpx':function(_0x20911c,_0x591510){return _0x20911c===_0x591510;},'IVUlz':_0x5e69a5(0xfd),'zeHZu':_0x5e69a5(0x106),'iNEXs':'playwright-chromium','ZLyhK':_0x5e69a5(0xad),'RxPRG':_0x5e69a5(0x10b),'KFjfO':function(_0x3e132a,_0x4a4510){return _0x3e132a+_0x4a4510;},'OQvow':function(_0xd524dd,_0x36a355){return _0xd524dd(_0x36a355);}};try{if(_0x18f8a6[_0x5e69a5(0xbe)](isAccessibilityAutomationSession)){global[_0x5e69a5(0x100)]=!![];!_0x27e87a[_0x18f8a6['aOiIv']]&&(global[_0x5e69a5(0x100)]=![]);const _0xc075c8=_0x27e87a[_0x5e69a5(0xd6)]||_0x27e87a['browser'],_0x25ea46=_0x27e87a[_0x5e69a5(0x115)];!accessibilityHelper['isBrowserSupportedForAccessibility'](_0xc075c8)&&(logger[_0x5e69a5(0xf6)](_0x18f8a6[_0x5e69a5(0x11e)]),global[_0x5e69a5(0x100)]=![]);if(_0x18f8a6[_0x5e69a5(0x105)](_0x25ea46,_0x18f8a6[_0x5e69a5(0x108)])){const _0x323571=_0x18f8a6[_0x5e69a5(0xb0)](isBrowserstackInfra),_0x3f43b2=accessibilityHelper[_0x5e69a5(0xb5)](_0xc075c8,_0x323571),_0x1e7914=accessibilityHelper[_0x5e69a5(0x133)](_0xc075c8);if(!accessibilityHelper['isVersionSupported'](_0x25ea46,_0x3f43b2)){const _0x4aa871=_0x323571?'':_0x18f8a6['LCJYz'];logger[_0x5e69a5(0xf6)](_0x5e69a5(0x135)+_0x1e7914+'\x20browser\x20version\x20'+_0x3f43b2+_0x5e69a5(0xef)+_0x4aa871+'.'),global[_0x5e69a5(0x100)]=![];}}if(!_0x18f8a6[_0x5e69a5(0xb7)](isUndefined,_0x27e87a['deviceName'])){const _0x543e0b=(_0x27e87a['os']||'')[_0x5e69a5(0x125)](),_0x908703=(_0x27e87a[_0x5e69a5(0xd6)]||_0x27e87a[_0x5e69a5(0x11f)]||'')[_0x5e69a5(0x125)](),_0xabeceb=_0x18f8a6[_0x5e69a5(0xba)](_0x543e0b,_0x18f8a6[_0x5e69a5(0x121)])&&[_0x18f8a6[_0x5e69a5(0x12b)],_0x18f8a6['iNEXs'],_0x18f8a6[_0x5e69a5(0xf1)]][_0x5e69a5(0xfb)](_0x908703);if(!_0xabeceb)logger[_0x5e69a5(0xf6)](_0x18f8a6['RxPRG']),global['accessibilityPlatform']=![];else!accessibilityHelper[_0x5e69a5(0x12c)]()&&(logger[_0x5e69a5(0xf6)](accessibilityHelper[_0x5e69a5(0x126)]),global[_0x5e69a5(0x100)]=![]);}if(!global[_0x5e69a5(0x100)]){_0x27e87a[_0x18f8a6[_0x5e69a5(0x109)]]=![],Object[_0x5e69a5(0xdb)](_0x27e87a)[_0x5e69a5(0xe0)](_0x8a0b90=>{const _0x3b006c=_0x5e69a5;_0x8a0b90[_0x3b006c(0xbb)](_0x18f8a6[_0x3b006c(0xe3)])&&delete _0x27e87a[_0x8a0b90];});const _0x2a8ace=_0x18f8a6[_0x5e69a5(0xe6)](_0x24318d,_0x18f8a6[_0x5e69a5(0xc2)](encodeURIComponent,JSON['stringify'](_0x27e87a)));_0x5a763a&&(_0x5a763a[_0x5e69a5(0xcc)][_0x5e69a5(0x107)][_0x5e69a5(0xc6)][_0x5e69a5(0xf3)][_0x5e69a5(0xb9)][_0x5e69a5(0xc1)]=_0x2a8ace,_0x5a763a[_0x5e69a5(0xd0)]['project'][_0x5e69a5(0xf3)][_0x5e69a5(0xb9)]['wsEndpoint']=_0x2a8ace);}}else global[_0x5e69a5(0x100)]=![];}catch(_0x35959a){logger[_0x5e69a5(0xe9)](_0x5e69a5(0x10a)+util[_0x5e69a5(0x114)](_0x35959a));}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a43_0x1eca22=a43_0x218a;function a43_0x218a(_0x4a9fcd,_0x2d6dc0){const _0x34ac66=a43_0x34ac();return a43_0x218a=function(_0x218ab2,_0x405f7c){_0x218ab2=_0x218ab2-0x1cd;let _0x4220dd=_0x34ac66[_0x218ab2];return _0x4220dd;},a43_0x218a(_0x4a9fcd,_0x2d6dc0);}(function(_0x454201,_0x41bb2d){const _0x16fc4a=a43_0x218a,_0x48ac88=_0x454201();while(!![]){try{const _0x59f3b3=-parseInt(_0x16fc4a(0x221))/0x1*(parseInt(_0x16fc4a(0x27a))/0x2)+-parseInt(_0x16fc4a(0x1ed))/0x3*(parseInt(_0x16fc4a(0x25c))/0x4)+parseInt(_0x16fc4a(0x1cf))/0x5*(parseInt(_0x16fc4a(0x257))/0x6)+-parseInt(_0x16fc4a(0x28e))/0x7+-parseInt(_0x16fc4a(0x1d3))/0x8+-parseInt(_0x16fc4a(0x285))/0x9*(-parseInt(_0x16fc4a(0x271))/0xa)+parseInt(_0x16fc4a(0x243))/0xb*(parseInt(_0x16fc4a(0x1d2))/0xc);if(_0x59f3b3===_0x41bb2d)break;else _0x48ac88['push'](_0x48ac88['shift']());}catch(_0x3fff07){_0x48ac88['push'](_0x48ac88['shift']());}}}(a43_0x34ac,0x6d464));function a43_0x34ac(){const _0x5bb133=['FZTzk','path','skipSessionStatus','DgKmV','false','BROWSERSTACK_PW_CONFIG_DIR','R_OK','debug','trim','configPath','PGWXn','--config=','TfXin','getConfigPath','BROWSERSTACK_SETUP_CONFIG_PATH','cwd','iRrYO','homedir','1662782oIfLAW','trace_','DTUyA','--disable-browserstack-automation','apply','isFalse','../../helpers/test-observability/constants','zEvyT','Gxxow','reorderTestFiles','test','W_OK','testContextOptions','browserstackAutomation','\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','isTypescriptProject','--grep','GpTSP','IqzSz','isYarnPnP','6KGfHbC','isRunning','../utils/constants','browserstackSetupConfig.json','playwright-browserstack-sdk.config.cjs','68YaRjKv','../../helpers/helper','Error\x20in\x20deleting\x20playwright\x20results','./accessibility-helper','getPackageType','env','has','../../helpers/testhub/testhubHandler','PLAYWRIGHT','reportDotBrowserStackFolderNotAccessibleIssue','BrowserStack\x20config\x20file\x20not\x20found.','readFileSync','winstonLogger','jBbxx','join','JZCEW','VoJwc','kYTRZ','isTestOrchestrationEnabled','getNoProxy','BROWSERSTACK_AUTOMATION','680ztzGip','./reporter/pwUtils','yarn','accessibilityOptions','wpQAT','CPwYj','No\x20Proxy\x20:\x20','BROWSERSTACK_TEST_OBSERVABILITY','vVhOu','8AjCMsw','IiSKR','playwright-browserstack-sdk.config.js','relative','length','concat','TwxZS','ixNKJ','--disable-test-observability','qCbVb','../../helpers/performance/constants','6876bIqWPy','INTERNALLY_USED_ENV_VARS','parse','util','XKCql','writeFileSync','HNqQa','slice','platform','4753224XFOdAC','pw_result.json','nestedKeyValue','BTrfQ','Playwright\x20process\x20exited\x20with\x20code\x20','filter','shutdown','wBzHu','LRyVX','validateRerunTestList','win32','2532685lXqyqg','HRhSo','true','180owlBhp','3438392antHNw','../../helpers/BrowserStackSetup','inherit','info','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','hRqAa','HkxjL','Updated\x20config\x20file\x20name\x20to\x20-\x20','stop','playwright','BROWSERSTACK_TEST_ACCESSIBILITY_YML','setBrowserstackConfig','Test\x20orchestration\x20is\x20enabled,\x20initializing\x20orchestration\x20handler','ZcBPa','VhSDE','yWKQH','../utils/clientTroubleshootingService','constants','config','unlinkSync','Found:\x20','npx','map','startsWith','ZtLAa','ijKQs','115812MwHjGQ','obBSh','measureWrapper','THDZa','BROWSERSTACK_FRAMEWORK','indexOf','tKAqf','dirname','Error\x20in\x20accessing\x20.browserstack\x20directory:\x20','\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();','logLevel','existsSync','gpTJx','requireConfigLoaderYarnPnP','\x20test\x20files\x20to\x20run.','getConfig','errorMessage','../v2/cliUtils','resolvedConfigFile','stringify','EsnxF','../../helpers/performance/performance-tester','split','vLKKC','sYYCW','reportFinalDetectionState','../v2/TestInfo','exports','Error\x20in\x20getting\x20funnel\x20data\x20results','sep','setupBrowserstackLocal','readdirSync','PACKAGE_TYPE','cliConfig','aShGo','assign','uzOoD','CyTPI','Proxy\x20url\x20:\x20','tRPvA','VqtcT','Error\x20in\x20closing\x20playwright','push','./reporter/test-details','isTrue','finalExecution','.browserstack','eSszB','findPlaywrightTestFiles','../../helpers/utilities','Deleting\x20','--config','153308nCqPnr','../../helpers/logger','xkqVu','hDFeO','getInstance','SDK_POST_INITIALIZE','BROWSERSTACK_RERUN','testObservability','close','forEach','../../helpers/test-observability/utils','BROWSERSTACK_RERUN_TESTS','MODULE','resolve','skipSessionName','isUndefined'];a43_0x34ac=function(){return _0x5bb133;};return a43_0x34ac();}const fs=require('fs'),path=require(a43_0x1eca22(0x232)),{spawn}=require('child_process'),{format}=require(a43_0x1eca22(0x288)),logger=require(a43_0x1eca22(0x222))[a43_0x1eca22(0x268)],{default:BrowserStackSetup}=require(a43_0x1eca22(0x1d4)),helper=require(a43_0x1eca22(0x25d)),utilities=require(a43_0x1eca22(0x21e)),constants=require(a43_0x1eca22(0x259)),{FRAMEWORKS}=require(a43_0x1eca22(0x249)),{getConfigLoaderPath}=require(a43_0x1eca22(0x272)),{checkAccessibilityPlatformConfig}=require('../../helpers/accessibility-automation/helper'),{setAccessibilityCapabilities}=require(a43_0x1eca22(0x25f)),{printBuildLink}=require(a43_0x1eca22(0x22b)),TestDetails=require(a43_0x1eca22(0x218)),TestHubHandler=require(a43_0x1eca22(0x263)),PerformanceTester=require(a43_0x1eca22(0x202)),TestOrchestrationHandler=require('../../helpers/test-orchestration/testOrchestrationHandler'),BrowserstackCLI=require('../v2/browserstackCLI'),PerformanceEvents=require(a43_0x1eca22(0x284))['EVENTS'],CLIUtils=require(a43_0x1eca22(0x1fe)),TestInfo=require(a43_0x1eca22(0x207)),ClientTroubleShootingService=require(a43_0x1eca22(0x1e3)),getUserPlaywrightConfig=async(_0x4735c1,_0xe7d517)=>{const _0x26862b=a43_0x1eca22,_0x202437={'gpTJx':function(_0x10e207){return _0x10e207();},'Gxxow':function(_0xeb28b6,_0x5834ed){return _0xeb28b6(_0x5834ed);},'MLfTn':function(_0x4d1939,_0x505b86){return _0x4d1939(_0x505b86);},'lSkbB':_0x26862b(0x1ff),'obBSh':'--config='},_0x5e3f4b=!helper[_0x26862b(0x230)](_0x4735c1['config']),_0x54dc31=_0x5e3f4b?path[_0x26862b(0x22e)](process[_0x26862b(0x240)](),_0x4735c1[_0x26862b(0x1e5)]):process[_0x26862b(0x240)](),{resolveConfigFile:_0x45932b,resolveConfigLocation:_0x963ced}=helper[_0x26862b(0x256)]()?helper[_0x26862b(0x1fa)](..._0x202437[_0x26862b(0x1f9)](getConfigLoaderPath)):helper['requirePWModule'][_0x26862b(0x247)](null,_0x202437[_0x26862b(0x1f9)](getConfigLoaderPath)),_0x47ef32=_0x45932b?_0x202437[_0x26862b(0x24b)](_0x45932b,_0x54dc31):helper[_0x26862b(0x290)](_0x202437['MLfTn'](_0x963ced,_0x54dc31),[_0x202437['lSkbB']]),_0x4a85f9={};if(_0x5e3f4b){const _0x128d6c=_0xe7d517['findIndex'](_0x226dc8=>_0x226dc8===_0x26862b(0x220)||_0x226dc8==='-c'||_0x226dc8[_0x26862b(0x1ea)](_0x26862b(0x23c)));_0xe7d517['splice'](_0x128d6c,_0xe7d517[_0x128d6c][_0x26862b(0x1ea)](_0x202437[_0x26862b(0x1ee)])?0x1:0x2);}const _0x39b489={};return _0x39b489[_0x26862b(0x232)]=_0x47ef32,_0x39b489[_0x26862b(0x1e5)]=_0x4a85f9,_0x39b489;},handleO11yRerun=_0x3cfe26=>{const _0x36db73=a43_0x1eca22,_0x27c2c9={};_0x27c2c9[_0x36db73(0x223)]=_0x36db73(0x253);const _0x310f26=_0x27c2c9,_0x5583cb=helper[_0x36db73(0x219)](process[_0x36db73(0x261)][_0x36db73(0x227)]);if(_0x5583cb){const _0x2055fe=process[_0x36db73(0x261)][_0x36db73(0x22c)],_0x1354a4=[];if(helper[_0x36db73(0x1cd)](_0x2055fe)&&!helper['isUndefined'](_0x2055fe)){_0x2055fe[_0x36db73(0x203)](',')['map'](_0x4e8ba4=>{const _0x28aa74=_0x36db73;_0x1354a4[_0x28aa74(0x217)]('('+_0x4e8ba4[_0x28aa74(0x239)]()+')');});const _0x12cf3c='^'+_0x1354a4[_0x36db73(0x26a)]('|')+'$';_0x3cfe26[_0x36db73(0x217)](_0x310f26[_0x36db73(0x223)],_0x12cf3c);}}},spawnOriginalProcess=_0x5cf982=>{const _0x447af1=a43_0x1eca22,_0x2598a6={'wBzHu':function(_0x483d94,_0x51fe97,_0x4089d5,_0x11b544){return _0x483d94(_0x51fe97,_0x4089d5,_0x11b544);},'tRPvA':_0x447af1(0x273),'TwxZS':_0x447af1(0x1e8),'hDFeO':'playwright','mANiJ':function(_0x51919b,_0x3a0187){return _0x51919b===_0x3a0187;},'SMNIY':_0x447af1(0x1ce),'BXafb':_0x447af1(0x1d5)};_0x2598a6[_0x447af1(0x295)](spawn,helper[_0x447af1(0x256)]()?_0x2598a6[_0x447af1(0x214)]:_0x2598a6[_0x447af1(0x280)],[_0x2598a6[_0x447af1(0x224)],..._0x5cf982[_0x447af1(0x28c)](0x1)],{'shell':_0x2598a6['mANiJ'](process[_0x447af1(0x28d)],_0x2598a6['SMNIY']),'stdio':_0x2598a6['BXafb'],'cwd':process[_0x447af1(0x240)]()});},isTestCommand=(_0x567ed6,_0x4fbe02)=>{const _0x2e7c8e=a43_0x1eca22,_0x1aafd0={};_0x1aafd0[_0x2e7c8e(0x20f)]=function(_0x3e1205,_0x1e6c26){return _0x3e1205>_0x1e6c26;},_0x1aafd0['hRqAa']=function(_0x4b6f62,_0x3e9ae7){return _0x4b6f62===_0x3e9ae7;},_0x1aafd0[_0x2e7c8e(0x234)]=_0x2e7c8e(0x24d);const _0x3f925f=_0x1aafd0;if(_0x3f925f['aShGo'](_0x4fbe02[_0x2e7c8e(0x27e)],0x1)&&_0x3f925f[_0x2e7c8e(0x1d8)](_0x4fbe02[0x1],_0x3f925f['DgKmV']))return!![];return![];};async function run(_0x22afd9,_0x574b93,_0x1a240c){const _0x1244a7=a43_0x1eca22,_0x1c143a={'vVhOu':_0x1244a7(0x21b),'THDZa':function(_0x22d77d){return _0x22d77d();},'sYYCW':function(_0x30d52b,_0xb918b6){return _0x30d52b+_0xb918b6;},'wpQAT':_0x1244a7(0x216),'TfXin':function(_0x308271,_0x27ebaa){return _0x308271(_0x27ebaa);},'kYTRZ':_0x1244a7(0x28f),'IqzSz':function(_0x468cad,_0x4c5120){return _0x468cad+_0x4c5120;},'zEvyT':_0x1244a7(0x209),'uzOoD':_0x1244a7(0x266),'DTUyA':function(_0xd4bf73,_0x585a9c){return _0xd4bf73<_0x585a9c;},'iRrYO':function(_0x6cf75d,_0x10ddf2){return _0x6cf75d===_0x10ddf2;},'eSszB':_0x1244a7(0x235),'EsnxF':_0x1244a7(0x282),'ixNKJ':function(_0x1aa10e,_0x48a6e8){return _0x1aa10e>=_0x48a6e8;},'ZtLAa':'automation','VqtcT':function(_0x6fcd9e,_0x116ea1){return _0x6fcd9e!=_0x116ea1;},'JZCEW':function(_0x3dd998,_0x2f769b,_0xb437a9){return _0x3dd998(_0x2f769b,_0xb437a9);},'CyTPI':function(_0x72f15,_0x5078f6){return _0x72f15===_0x5078f6;},'dWhkk':_0x1244a7(0x1d1),'HzQCJ':function(_0x499166,_0x36423e){return _0x499166(_0x36423e);},'kHMAh':function(_0x104f7c,_0x42be20){return _0x104f7c(_0x42be20);},'BTrfQ':_0x1244a7(0x25a),'bvGIf':_0x1244a7(0x25b),'ZcBPa':_0x1244a7(0x27c),'LRyVX':function(_0x4f8ae1,_0x4a57a1){return _0x4f8ae1-_0x4a57a1;},'zKNBC':function(_0x4a12e2,_0xebb3e5){return _0x4a12e2+_0xebb3e5;},'VhSDE':_0x1244a7(0x1da),'XKCql':function(_0x26ae0b,_0x420e30){return _0x26ae0b>_0x420e30;},'VoJwc':function(_0x38a30d,_0x50c2a3){return _0x38a30d+_0x50c2a3;},'jBbxx':_0x1244a7(0x1df),'uRdqU':_0x1244a7(0x1dc),'HNqQa':function(_0x72b05,_0x57f308,_0x1bdde8,_0x251147){return _0x72b05(_0x57f308,_0x1bdde8,_0x251147);},'qCbVb':_0x1244a7(0x273),'vLKKC':_0x1244a7(0x1e8),'GpTSP':_0x1244a7(0x24d),'tKAqf':'--config','CPwYj':_0x1244a7(0x1ce),'IiSKR':_0x1244a7(0x1d5),'FZTzk':_0x1244a7(0x229),'yWKQH':function(_0x58aed9,_0x26fcdb){return _0x58aed9|_0x26fcdb;},'stLSw':_0x1244a7(0x1f5),'ZLMuV':_0x1244a7(0x25e),'HkxjL':function(_0x1761f9,_0x323b64,_0x1f4d1b){return _0x1761f9(_0x323b64,_0x1f4d1b);}};try{const _0x5ab5ec=path[_0x1244a7(0x26a)](helper[_0x1244a7(0x242)](),_0x1c143a['vVhOu']);try{fs['accessSync'](_0x5ab5ec,_0x1c143a[_0x1244a7(0x1e2)](fs[_0x1244a7(0x1e4)][_0x1244a7(0x237)],fs['constants'][_0x1244a7(0x24e)]));}catch(_0x987183){ClientTroubleShootingService[_0x1244a7(0x265)]();}}catch(_0x5c693e){logger[_0x1244a7(0x238)](_0x1c143a['VoJwc'](_0x1c143a['stLSw'],_0x5c693e));}try{const _0xccab8f=path['join'](helper[_0x1244a7(0x242)](),_0x1c143a['vVhOu'],_0x1c143a[_0x1244a7(0x26d)]);fs['existsSync'](_0xccab8f)&&fs[_0x1244a7(0x1e6)](_0xccab8f);}catch(_0x197e93){logger['debug'](_0x1c143a[_0x1244a7(0x205)](_0x1c143a['ZLMuV'],_0x197e93));}if(!_0x1c143a[_0x1244a7(0x1d9)](isTestCommand,_0x22afd9,_0x574b93)){_0x1c143a['TfXin'](spawnOriginalProcess,_0x574b93);return;}await PerformanceTester[_0x1244a7(0x1ef)](PerformanceEvents['SDK_PRE_INITIALIZE'],async()=>{const _0x3d370e=_0x1244a7,_0x483cb9={'JQmHs':function(_0x18f9f6,_0x2ad7f1){return _0x1c143a['TfXin'](_0x18f9f6,_0x2ad7f1);},'jhFlz':_0x1c143a['vVhOu'],'ijKQs':_0x1c143a['kYTRZ'],'HRhSo':function(_0x5cbdb5,_0x13042a){const _0x1f9827=a43_0x218a;return _0x1c143a[_0x1f9827(0x255)](_0x5cbdb5,_0x13042a);},'PGWXn':_0x1c143a[_0x3d370e(0x24a)]};if(!_0x1a240c[_0x3d370e(0x1e5)]){logger['error'](_0x1c143a[_0x3d370e(0x211)]);return;}await _0x1a240c['initialize'](_0x22afd9),CLIUtils['setFrameworkDetail'](FRAMEWORKS['PLAYWRIGHT'],FRAMEWORKS['PLAYWRIGHT']),BrowserstackCLI[_0x3d370e(0x225)]()[_0x3d370e(0x1de)](_0x1a240c[_0x3d370e(0x1e5)],_0x1a240c[_0x3d370e(0x23a)],_0x1a240c['cliConfig']),await BrowserstackCLI[_0x3d370e(0x225)]()['bootstrap']();!BrowserstackCLI[_0x3d370e(0x225)]()['isRunning']()&&await _0x1a240c[_0x3d370e(0x20b)]();for(var _0xf23878=0x0;_0x1c143a['DTUyA'](_0xf23878,constants[_0x3d370e(0x286)][_0x3d370e(0x27e)]);_0xf23878++){var _0x41526b=constants['INTERNALLY_USED_ENV_VARS'][_0xf23878];process[_0x3d370e(0x261)][_0x41526b]&&await ClientTroubleShootingService['reportConflictingEnvVarIssue'](_0x41526b);}const _0x1248c5=BrowserstackCLI[_0x3d370e(0x225)]()[_0x3d370e(0x1fc)]();!helper['isFalse'](_0x1248c5[_0x3d370e(0x250)])&&(process[_0x3d370e(0x261)][_0x3d370e(0x270)]=!![]);_0x1c143a[_0x3d370e(0x241)](_0x1248c5[_0x3d370e(0x250)],![])&&(process[_0x3d370e(0x261)]['BROWSERSTACK_AUTOMATION']=_0x1c143a[_0x3d370e(0x21c)],_0x574b93=_0x574b93[_0x3d370e(0x293)](_0xdb4373=>_0xdb4373!==_0x3d370e(0x246)));const _0x2efaa2=_0x574b93[_0x3d370e(0x1f2)](_0x1c143a[_0x3d370e(0x201)]);(_0x1c143a[_0x3d370e(0x281)](_0x2efaa2,0x0)||_0x1c143a['iRrYO'](_0x1248c5[_0x3d370e(0x228)],![]))&&(process[_0x3d370e(0x261)][_0x3d370e(0x278)]=_0x1c143a[_0x3d370e(0x21c)],_0x574b93=_0x574b93[_0x3d370e(0x293)](_0x1e4691=>_0x1e4691!==_0x3d370e(0x282)));!helper[_0x3d370e(0x230)](_0x1a240c[_0x3d370e(0x20e)])&&_0x1a240c[_0x3d370e(0x20e)][_0x3d370e(0x262)](_0x1c143a[_0x3d370e(0x1eb)])&&(process[_0x3d370e(0x261)][_0x3d370e(0x270)]=_0x1a240c['cliConfig']['get'](_0x1c143a[_0x3d370e(0x1eb)])||!![]);_0x1c143a[_0x3d370e(0x215)](_0x1a240c[_0x3d370e(0x1e5)][_0x3d370e(0x228)],null)&&!helper[_0x3d370e(0x219)](process[_0x3d370e(0x261)][_0x3d370e(0x278)])&&(process['env'][_0x3d370e(0x278)]=process[_0x3d370e(0x261)][_0x3d370e(0x278)]||_0x1a240c[_0x3d370e(0x1e5)][_0x3d370e(0x228)]);const _0x377771=!helper[_0x3d370e(0x248)](process[_0x3d370e(0x261)][_0x3d370e(0x278)]);_0x1a240c[_0x3d370e(0x1e5)]['accessibilityOptions']&&(process[_0x3d370e(0x261)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON[_0x3d370e(0x200)](_0x1a240c[_0x3d370e(0x1e5)][_0x3d370e(0x274)]));let _0x17a180=![];_0x1a240c[_0x3d370e(0x1e5)]['accessibility']&&(_0x17a180=!![],process[_0x3d370e(0x261)][_0x3d370e(0x1dd)]=_0x1a240c['config']['accessibility']);const _0x1c8664=_0x574b93[_0x3d370e(0x27f)](),_0x335e1b=await _0x1c143a[_0x3d370e(0x26b)](getUserPlaywrightConfig,_0x22afd9,_0x574b93);if(helper['isUndefined'](_0x335e1b)){_0x1c143a[_0x3d370e(0x23d)](spawnOriginalProcess,_0x1c8664);return;}const _0x547a40=_0x335e1b[_0x3d370e(0x232)]?path[_0x3d370e(0x1f4)](_0x335e1b[_0x3d370e(0x232)]):process[_0x3d370e(0x240)]();process[_0x3d370e(0x261)][_0x3d370e(0x236)]=_0x547a40,await PerformanceTester['measureWrapper'](PerformanceEvents[_0x3d370e(0x226)],async()=>{const _0x3fb9e3=_0x3d370e;!BrowserstackCLI[_0x3fb9e3(0x225)]()[_0x3fb9e3(0x258)]()&&await TestHubHandler['launchBuild'](FRAMEWORKS[_0x3fb9e3(0x264)],_0x1a240c),_0x377771&&_0x483cb9['JQmHs'](handleO11yRerun,_0x574b93);})();if(!BrowserstackCLI['getInstance']()[_0x3d370e(0x258)]()){let _0x3e73c0=_0x1c143a[_0x3d370e(0x212)](process[_0x3d370e(0x261)][_0x3d370e(0x1dd)],_0x1c143a['dWhkk']);_0x3e73c0=_0x3e73c0||_0x1c143a['HzQCJ'](checkAccessibilityPlatformConfig,_0x1a240c['config']),process[_0x3d370e(0x261)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x3e73c0,_0x3e73c0&&_0x1c143a['kHMAh'](setAccessibilityCapabilities,_0x1a240c[_0x3d370e(0x1e5)]);}const _0x165d2e=path[_0x3d370e(0x26a)](_0x335e1b['path']?path[_0x3d370e(0x1f4)](_0x335e1b[_0x3d370e(0x232)]):process[_0x3d370e(0x240)](),_0x1c143a[_0x3d370e(0x291)]);fs[_0x3d370e(0x28a)](_0x165d2e,helper['serializeToYamlString'](_0x1a240c['config'])),process['env'][_0x3d370e(0x23f)]=_0x165d2e,helper['clearTempPWConfig']();let _0x3eb45e='';_0x1c143a['iRrYO'](helper[_0x3d370e(0x260)](),constants[_0x3d370e(0x20d)][_0x3d370e(0x22d)])?_0x3eb45e=_0x1c143a['bvGIf']:_0x3eb45e=_0x1c143a[_0x3d370e(0x1e0)];let _0x405439='';if(helper[_0x3d370e(0x252)](_0x335e1b[_0x3d370e(0x232)])){_0x405439=_0x3d370e(0x1d7);const _0x488ab3=_0x3eb45e['split']('.');_0x488ab3[_0x1c143a[_0x3d370e(0x296)](_0x488ab3[_0x3d370e(0x27e)],0x1)]='ts',_0x3eb45e=_0x488ab3[_0x3d370e(0x26a)]('.'),logger[_0x3d370e(0x238)](_0x1c143a['zKNBC'](_0x1c143a[_0x3d370e(0x1e1)],_0x3eb45e));}else _0x405439='\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a';const _0x1c68e2=path['join'](_0x335e1b[_0x3d370e(0x232)]?path[_0x3d370e(0x1f4)](_0x335e1b[_0x3d370e(0x232)]):process[_0x3d370e(0x240)](),_0x3eb45e);let _0x3b4d66=_0x335e1b['path']?_0x335e1b[_0x3d370e(0x232)]:'';_0x3b4d66=_0x1c143a[_0x3d370e(0x289)](_0x3b4d66[_0x3d370e(0x27e)],0x0)?path[_0x3d370e(0x22e)](_0x3b4d66):'',process[_0x3d370e(0x261)]['USER_CONFIG_DETAILS_PATH']=_0x3b4d66;const _0x1627dd=helper['getProxyUrl'](_0x1a240c[_0x3d370e(0x1e5)]),_0x4398d6=helper[_0x3d370e(0x26f)](_0x1a240c[_0x3d370e(0x1e5)]);logger[_0x3d370e(0x238)](_0x3d370e(0x213)+_0x1627dd),logger[_0x3d370e(0x238)](_0x3d370e(0x277)+_0x4398d6);_0x1627dd&&(_0x405439=_0x1c143a[_0x3d370e(0x26c)]('process.env.GLOBAL_AGENT_HTTP_PROXY=\x22'+_0x1627dd+_0x3d370e(0x251)+_0x4398d6+_0x3d370e(0x1f6),_0x405439));helper['filterBrowserstackArgs']({},_0x574b93),fs[_0x3d370e(0x28a)](_0x1c68e2,_0x405439);let _0x224c8c=[];const _0x285bef=new TestOrchestrationHandler(_0x1a240c[_0x3d370e(0x1e5)]);if(_0x285bef[_0x3d370e(0x26e)]()){logger[_0x3d370e(0x238)](_0x1c143a[_0x3d370e(0x269)]);const _0x1d32bb=await _0x285bef[_0x3d370e(0x21d)](_0x3b4d66,_0x574b93[_0x3d370e(0x28c)](0x2));logger[_0x3d370e(0x238)](_0x3d370e(0x1e7)+JSON[_0x3d370e(0x200)](_0x1d32bb)+_0x3d370e(0x1fb));const _0x30e5be=await _0x285bef[_0x3d370e(0x24c)](_0x1d32bb);logger[_0x3d370e(0x238)]('Reordered\x20Test\x20Files:\x20'+JSON[_0x3d370e(0x200)](_0x30e5be)),_0x30e5be&&_0x1c143a[_0x3d370e(0x289)](_0x30e5be[_0x3d370e(0x27e)],0x0)&&(process[_0x3d370e(0x261)]['BROWSERSTACK_PW_TEST_ORDER']=_0x30e5be[_0x3d370e(0x26a)](','),_0x1c143a[_0x3d370e(0x245)](_0x30e5be[_0x3d370e(0x27e)],_0x1d32bb[_0x3d370e(0x27e)])&&(_0x224c8c=_0x30e5be[_0x3d370e(0x1e9)](_0x7710da=>path[_0x3d370e(0x27d)](process[_0x3d370e(0x240)](),_0x7710da)[_0x3d370e(0x203)](path[_0x3d370e(0x20a)])[_0x3d370e(0x26a)]('/'))));}PerformanceTester['end'](PerformanceEvents['SDK_SETUP']),process['env'][_0x3d370e(0x1f1)]=process[_0x3d370e(0x261)][_0x3d370e(0x1f1)]||_0x1c143a['uRdqU'];const _0x3cb3eb=_0x1c143a[_0x3d370e(0x28b)](spawn,helper[_0x3d370e(0x256)]()?_0x1c143a[_0x3d370e(0x283)]:_0x1c143a[_0x3d370e(0x204)],[_0x1c143a['uRdqU'],_0x1c143a[_0x3d370e(0x254)],_0x1c143a[_0x3d370e(0x1f3)],_0x1c143a[_0x3d370e(0x212)](process[_0x3d370e(0x28d)],_0x1c143a[_0x3d370e(0x276)])?'\x22'+_0x1c68e2+'\x22':_0x1c68e2,..._0x574b93['slice'](0x2),..._0x224c8c],{'shell':_0x1c143a[_0x3d370e(0x241)](process[_0x3d370e(0x28d)],_0x1c143a[_0x3d370e(0x276)]),'stdio':_0x1c143a[_0x3d370e(0x27b)],'cwd':process[_0x3d370e(0x240)](),'env':Object[_0x3d370e(0x210)]({},process[_0x3d370e(0x261)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x3d370e(0x23e)](_0x22afd9),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x1a240c[_0x3d370e(0x1e5)][_0x3d370e(0x24f)][_0x3d370e(0x233)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x1a240c['config']['testContextOptions'][_0x3d370e(0x22f)],'BROWSERSTACK_LOG_LEVEL':_0x1a240c[_0x3d370e(0x1e5)][_0x3d370e(0x1f7)]})}),_0x5cc932=()=>{const _0x1d2e71=_0x3d370e;try{const _0x24f221=path[_0x1d2e71(0x26a)](helper[_0x1d2e71(0x242)](),_0x483cb9['jhFlz'],_0x483cb9[_0x1d2e71(0x1ec)]);if(fs[_0x1d2e71(0x1f8)](_0x24f221)){let _0x34bd8e=fs[_0x1d2e71(0x267)](_0x24f221);_0x34bd8e=JSON[_0x1d2e71(0x287)](_0x34bd8e),_0x1a240c[_0x1d2e71(0x1fd)]=_0x34bd8e,fs[_0x1d2e71(0x1e6)](_0x24f221);}}catch(_0x31cef3){logger['debug'](_0x483cb9[_0x1d2e71(0x1d0)](_0x483cb9[_0x1d2e71(0x23b)],_0x31cef3));}};_0x3cb3eb['on'](_0x1c143a[_0x3d370e(0x231)],async _0x3557f4=>{const _0x5c7417=_0x3d370e,_0x3b3e47={};_0x3b3e47['wOuSq']=_0x1c143a[_0x5c7417(0x279)];const _0x37a9a5=_0x3b3e47;try{PerformanceTester['start'](PerformanceEvents['SDK_CLEANUP']),_0x1c143a[_0x5c7417(0x1f0)](_0x5cc932),await TestHubHandler[_0x5c7417(0x1db)](),await ClientTroubleShootingService[_0x5c7417(0x206)]();const _0x1e6a2c=BrowserstackCLI['isCLIEnabled']();await BrowserstackCLI[_0x5c7417(0x225)]()[_0x5c7417(0x1db)](),TestDetails[_0x5c7417(0x294)](),_0x1c143a[_0x5c7417(0x1f0)](printBuildLink),await utilities[_0x5c7417(0x21a)](_0x1a240c,_0x1e6a2c),process['exitCode']=_0x3557f4,logger[_0x5c7417(0x238)](_0x5c7417(0x292)+_0x3557f4),logger[_0x5c7417(0x1d6)](_0x5c7417(0x21f)+_0x1c68e2),fs[_0x5c7417(0x1e6)](_0x1c68e2);fs['existsSync'](_0x165d2e)&&(logger['debug'](_0x5c7417(0x21f)+_0x165d2e),fs[_0x5c7417(0x1e6)](_0x165d2e));const _0xe45cb9=fs[_0x5c7417(0x20c)](path[_0x5c7417(0x26a)](helper[_0x5c7417(0x242)](),_0x1c143a['vVhOu']))[_0x5c7417(0x293)](_0x1ec6ad=>_0x1ec6ad['startsWith'](_0x5c7417(0x244)));_0xe45cb9[_0x5c7417(0x22a)](_0x541a97=>{const _0xf77ac3=_0x5c7417;fs['unlinkSync'](path[_0xf77ac3(0x26a)](helper['homedir'](),_0x37a9a5['wOuSq'],_0x541a97));});}catch(_0x4397f6){logger[_0x5c7417(0x238)](_0x1c143a['sYYCW'](_0x1c143a[_0x5c7417(0x275)],_0x4397f6));}});})();}module[a43_0x1eca22(0x208)]=run;
|
|
2
|
+
'use strict';const a43_0x1f564d=a43_0x4613;(function(_0xb477a3,_0x39fde5){const _0x5c2c7a=a43_0x4613,_0x3af4dc=_0xb477a3();while(!![]){try{const _0x46d34c=-parseInt(_0x5c2c7a(0x144))/0x1+parseInt(_0x5c2c7a(0x17b))/0x2+parseInt(_0x5c2c7a(0x18b))/0x3+-parseInt(_0x5c2c7a(0x101))/0x4*(parseInt(_0x5c2c7a(0x15f))/0x5)+-parseInt(_0x5c2c7a(0xf9))/0x6*(parseInt(_0x5c2c7a(0x160))/0x7)+-parseInt(_0x5c2c7a(0x17f))/0x8+-parseInt(_0x5c2c7a(0x177))/0x9*(-parseInt(_0x5c2c7a(0x188))/0xa);if(_0x46d34c===_0x39fde5)break;else _0x3af4dc['push'](_0x3af4dc['shift']());}catch(_0x967e06){_0x3af4dc['push'](_0x3af4dc['shift']());}}}(a43_0xc435,0x5a5bf));const fs=require('fs'),path=require(a43_0x1f564d(0x14a)),{spawn}=require(a43_0x1f564d(0xd6)),{format}=require(a43_0x1f564d(0x190)),logger=require('../../helpers/logger')[a43_0x1f564d(0x151)],{default:BrowserStackSetup}=require(a43_0x1f564d(0x113)),helper=require(a43_0x1f564d(0xd9)),utilities=require('../../helpers/utilities'),constants=require(a43_0x1f564d(0x10a)),{FRAMEWORKS}=require(a43_0x1f564d(0xd1)),{getConfigLoaderPath}=require(a43_0x1f564d(0x165)),{checkAccessibilityPlatformConfig}=require(a43_0x1f564d(0x16e)),{setAccessibilityCapabilities}=require(a43_0x1f564d(0x10b)),{printBuildLink}=require('../../helpers/test-observability/utils'),TestDetails=require(a43_0x1f564d(0x109)),TestHubHandler=require(a43_0x1f564d(0xea)),PerformanceTester=require(a43_0x1f564d(0x123)),TestOrchestrationHandler=require(a43_0x1f564d(0x189)),BrowserstackCLI=require(a43_0x1f564d(0xe5)),PerformanceEvents=require(a43_0x1f564d(0x132))[a43_0x1f564d(0x146)],CLIUtils=require(a43_0x1f564d(0x168)),TestInfo=require(a43_0x1f564d(0x15e)),ClientTroubleShootingService=require('../utils/clientTroubleshootingService'),getUserPlaywrightConfig=async(_0x12be43,_0x1a52a8)=>{const _0x5bd856=a43_0x1f564d,_0x3588a0={'oKJZZ':function(_0x5e68c8){return _0x5e68c8();},'BjDor':function(_0xbc3ad9){return _0xbc3ad9();},'VLlQB':function(_0x47dcbb,_0x66f86d){return _0x47dcbb(_0x66f86d);},'zyxpa':_0x5bd856(0x11a),'uASqe':_0x5bd856(0x148)},_0x58e008=!helper[_0x5bd856(0xef)](_0x12be43[_0x5bd856(0x102)]),_0x289294=_0x58e008?path[_0x5bd856(0x194)](process['cwd'](),_0x12be43[_0x5bd856(0x102)]):process[_0x5bd856(0x17e)](),{resolveConfigFile:_0x13e0f8,resolveConfigLocation:_0x14d565}=helper[_0x5bd856(0x10e)]()?helper[_0x5bd856(0xdb)](..._0x3588a0[_0x5bd856(0x114)](getConfigLoaderPath)):helper['requirePWModule'][_0x5bd856(0xfa)](null,_0x3588a0['BjDor'](getConfigLoaderPath)),_0x83badd=_0x13e0f8?_0x3588a0[_0x5bd856(0x18e)](_0x13e0f8,_0x289294):helper[_0x5bd856(0x191)](_0x3588a0[_0x5bd856(0x18e)](_0x14d565,_0x289294),[_0x3588a0[_0x5bd856(0x14b)]]),_0x9fbd0b={};if(_0x58e008){const _0x5ee3e2=_0x1a52a8[_0x5bd856(0x15a)](_0x2497ad=>_0x2497ad===_0x5bd856(0x153)||_0x2497ad==='-c'||_0x2497ad[_0x5bd856(0x15b)](_0x5bd856(0x148)));_0x1a52a8['splice'](_0x5ee3e2,_0x1a52a8[_0x5ee3e2][_0x5bd856(0x15b)](_0x3588a0[_0x5bd856(0xe4)])?0x1:0x2);}const _0x1076a5={};return _0x1076a5[_0x5bd856(0x14a)]=_0x83badd,_0x1076a5['config']=_0x9fbd0b,_0x1076a5;},handleO11yRerun=_0x6d6dc=>{const _0x324ce2=a43_0x1f564d,_0x57c7df={};_0x57c7df[_0x324ce2(0x171)]=_0x324ce2(0x155);const _0x11e0a4=_0x57c7df,_0x3c7a19=helper['isTrue'](process[_0x324ce2(0xcc)]['BROWSERSTACK_RERUN']);if(_0x3c7a19){const _0x4382c1=process[_0x324ce2(0xcc)][_0x324ce2(0xdd)],_0x5fc0d=[];if(helper[_0x324ce2(0x119)](_0x4382c1)&&!helper[_0x324ce2(0xef)](_0x4382c1)){_0x4382c1[_0x324ce2(0xd3)](',')[_0x324ce2(0x16c)](_0x215c16=>{const _0x18553b=_0x324ce2;_0x5fc0d[_0x18553b(0xfe)]('('+_0x215c16[_0x18553b(0x16b)]()+')');});const _0x422e15='^'+_0x5fc0d[_0x324ce2(0x11e)]('|')+'$';_0x6d6dc[_0x324ce2(0xfe)](_0x11e0a4[_0x324ce2(0x171)],_0x422e15);}}},spawnOriginalProcess=_0x5a67f9=>{const _0x4a5ccc=a43_0x1f564d,_0x552766={'XFBIn':function(_0x24769a,_0x592fd9,_0x14d8b3,_0x1ac66e){return _0x24769a(_0x592fd9,_0x14d8b3,_0x1ac66e);},'iPnpH':_0x4a5ccc(0x10d),'cSKrW':_0x4a5ccc(0x193),'jNHzM':_0x4a5ccc(0x192),'EGBJv':function(_0x13ce9c,_0x1244f6){return _0x13ce9c===_0x1244f6;},'tWFbP':_0x4a5ccc(0x187),'pprNA':_0x4a5ccc(0x107)};_0x552766[_0x4a5ccc(0x141)](spawn,helper[_0x4a5ccc(0x10e)]()?_0x552766[_0x4a5ccc(0x166)]:_0x552766[_0x4a5ccc(0xe3)],[_0x552766[_0x4a5ccc(0x135)],..._0x5a67f9[_0x4a5ccc(0x173)](0x1)],{'shell':_0x552766[_0x4a5ccc(0xcd)](process[_0x4a5ccc(0x134)],_0x552766[_0x4a5ccc(0xd4)]),'stdio':_0x552766[_0x4a5ccc(0x183)],'cwd':process[_0x4a5ccc(0x17e)]()});},isTestCommand=(_0x1490d5,_0x206d34)=>{const _0x43c2ca=a43_0x1f564d,_0x13ccee={};_0x13ccee[_0x43c2ca(0x120)]=function(_0x374457,_0x917a94){return _0x374457>_0x917a94;},_0x13ccee[_0x43c2ca(0x164)]=function(_0x548a67,_0x369382){return _0x548a67===_0x369382;},_0x13ccee[_0x43c2ca(0x115)]=_0x43c2ca(0x17d);const _0xeaade7=_0x13ccee;if(_0xeaade7[_0x43c2ca(0x120)](_0x206d34[_0x43c2ca(0x186)],0x1)&&_0xeaade7['daOgc'](_0x206d34[0x1],_0xeaade7[_0x43c2ca(0x115)]))return!![];return![];};function a43_0x4613(_0x9d3a10,_0x5ec9d1){const _0xc43599=a43_0xc435();return a43_0x4613=function(_0x4613f9,_0x226c3c){_0x4613f9=_0x4613f9-0xc7;let _0x4b17be=_0xc43599[_0x4613f9];return _0x4b17be;},a43_0x4613(_0x9d3a10,_0x5ec9d1);}function a43_0xc435(){const _0x447a08=['--disable-test-observability','slice','accessibility','end','Reordered\x20Test\x20Files:\x20','4482IHUjTc','writeFileSync','--disable-browserstack-automation','reportFinalDetectionState','1269088HsufpT','reportDotBrowserStackFolderNotAccessibleIssue','test','cwd','2988160MPavBB','filterBrowserstackArgs','laLXp','qnlfS','pprNA','getProxyUrl','SDK_PRE_INITIALIZE','length','win32','27800LoxjQP','../../helpers/test-orchestration/testOrchestrationHandler','BROWSERSTACK_PW_TEST_ORDER','868317ttWcMC','bgxOZ','kJhkz','VLlQB','eKtcr','util','nestedKeyValue','playwright','npx','resolve','existsSync','NVWOA','UMKWu','true','isCLIEnabled','env','EGBJv','isTrue','unlinkSync','getConfig','../../helpers/test-observability/constants','rOBqW','split','tWFbP','playwright-browserstack-sdk.config.cjs','child_process','SDK_SETUP','skipSessionStatus','../../helpers/helper','start','requireConfigLoaderYarnPnP','PACKAGE_TYPE','BROWSERSTACK_RERUN_TESTS','findPlaywrightTestFiles','IYpIz','Deleting\x20','initialize','testContextOptions','cSKrW','uASqe','../v2/browserstackCLI','trace_','.browserstack','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','dirname','../../helpers/testhub/testhubHandler','reportConflictingEnvVarIssue','false','uKrEM','exports','isUndefined','NZhLB','getInstance','exitCode','olIhx','OqrsB','INTERNALLY_USED_ENV_VARS','BROWSERSTACK_FRAMEWORK','fQZlo','NUZyj','6UvbvZU','apply','setBrowserstackConfig','getPackageType','TGhOd','push','W_OK','debug','147092VBctxl','config','stringify','finalExecution','assign','NkcIa','inherit','filter','./reporter/test-details','../utils/constants','./accessibility-helper','BROWSERSTACK_TEST_ACCESSIBILITY_YML','yarn','isYarnPnP','BROWSERSTACK_SETUP_CONFIG_PATH','nESzA','logLevel','playwright-browserstack-sdk.config.js','../../helpers/BrowserStackSetup','oKJZZ','VJTGO','launchBuild','\x20test\x20files\x20to\x20run.','htedL','validateRerunTestList','resolvedConfigFile','CPdfx','get','readFileSync','join','JJDHr','ICqcW','isTestOrchestrationEnabled','BrowserStack\x20config\x20file\x20not\x20found.','../../helpers/performance/performance-tester','accessibilityOptions','BROWSERSTACK_TEST_OBSERVABILITY','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','gLjOR','accessSync','HmIAu','Error\x20in\x20accessing\x20.browserstack\x20directory:\x20','SDK_POST_INITIALIZE','configPath','KZJji','R_OK','ZnsST','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','cliConfig','../../helpers/performance/constants','SDK_CLEANUP','platform','jNHzM','MODULE','serializeToYamlString','uJRIw','Test\x20orchestration\x20is\x20enabled,\x20initializing\x20orchestration\x20handler','has','Mfpuu','parse','isRunning','WkBmn','close','concat','XFBIn','Error\x20in\x20getting\x20funnel\x20data\x20results','homedir','559675NHIwxb','PLAYWRIGHT','EVENTS','ZBfdS','--config=','BIbJX','path','zyxpa','FbmeW','indexOf','BROWSERSTACK_AUTOMATION','testObservability','Error\x20in\x20closing\x20playwright','winstonLogger','BROWSERSTACK_PW_CONFIG_DIR','--config','measureWrapper','--grep','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','Found:\x20','skipSessionName','EcKTN','findIndex','startsWith','browserstackAutomation','Jljeh','../v2/TestInfo','95MIHQzG','2145010bNStfx','shutdown','sep','errorMessage','daOgc','./reporter/pwUtils','iPnpH','bkaab','../v2/cliUtils','dBUaN','getConfigPath','trim','map','TytAh','../../helpers/accessibility-automation/helper','\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();','KstzV','tifHU'];a43_0xc435=function(){return _0x447a08;};return a43_0xc435();}async function run(_0x5de88e,_0x13fc4e,_0x18962c){const _0x1e4286=a43_0x1f564d,_0x373910={'BIbJX':function(_0x57a961,_0x2130d3){return _0x57a961(_0x2130d3);},'KstzV':_0x1e4286(0xe7),'KZJji':'pw_result.json','qnlfS':function(_0x3f5c8c,_0x339a91){return _0x3f5c8c+_0x339a91;},'EcKTN':_0x1e4286(0x142),'OqrsB':function(_0x1c13e1){return _0x1c13e1();},'laLXp':_0x1e4286(0x150),'IYpIz':_0x1e4286(0x122),'NZhLB':function(_0x5724ee,_0x21cd22){return _0x5724ee<_0x21cd22;},'dBUaN':function(_0x16b88b,_0x54ec9e){return _0x16b88b===_0x54ec9e;},'NkcIa':_0x1e4286(0xec),'fQZlo':_0x1e4286(0x172),'gLjOR':function(_0x5e25d0,_0x42c681){return _0x5e25d0>=_0x42c681;},'FbmeW':'automation','bkaab':function(_0x375f97,_0x403b54){return _0x375f97!=_0x403b54;},'ixBQe':function(_0x1ffbb3,_0xde6590,_0x59e6fa){return _0x1ffbb3(_0xde6590,_0x59e6fa);},'NUZyj':function(_0x52e0c7,_0x2f5e93){return _0x52e0c7===_0x2f5e93;},'KgbOx':_0x1e4286(0xca),'HmIAu':function(_0xe2cfd4,_0x57a3cd){return _0xe2cfd4(_0x57a3cd);},'ZnsST':'browserstackSetupConfig.json','CPdfx':_0x1e4286(0xd5),'TytAh':_0x1e4286(0x112),'wwoQF':function(_0x5789d6,_0x35f65c){return _0x5789d6-_0x35f65c;},'ZBfdS':function(_0x3b39a2,_0xcd3fc3){return _0x3b39a2+_0xcd3fc3;},'EvRYP':'Updated\x20config\x20file\x20name\x20to\x20-\x20','UMKWu':function(_0x41fc1d,_0x447128){return _0x41fc1d>_0x447128;},'qKLxi':function(_0x5bb53c,_0x3f70dd){return _0x5bb53c+_0x3f70dd;},'TGhOd':_0x1e4286(0x139),'ZofJU':_0x1e4286(0x192),'Mfpuu':function(_0x31f4a2,_0x196f60,_0x44cbc0,_0x1226e2){return _0x31f4a2(_0x196f60,_0x44cbc0,_0x1226e2);},'nESzA':_0x1e4286(0x10d),'rOBqW':_0x1e4286(0x193),'olIhx':'test','bgxOZ':_0x1e4286(0x153),'WkBmn':function(_0x4e4363,_0x49759e){return _0x4e4363===_0x49759e;},'uJRIw':'win32','htedL':function(_0x240bf5,_0x50995a){return _0x240bf5===_0x50995a;},'NVWOA':_0x1e4286(0x107),'kJhkz':_0x1e4286(0x13f),'Jljeh':function(_0x33448a,_0x57683d){return _0x33448a|_0x57683d;},'JJDHr':_0x1e4286(0x12a),'obSiB':function(_0x2f3ff8,_0x396a3e){return _0x2f3ff8+_0x396a3e;},'eKtcr':'Error\x20in\x20deleting\x20playwright\x20results','PPsRB':function(_0x2e52d4,_0x5f2b63,_0xc1ea7a){return _0x2e52d4(_0x5f2b63,_0xc1ea7a);}};try{const _0x37b104=path[_0x1e4286(0x11e)](helper[_0x1e4286(0x143)](),_0x373910[_0x1e4286(0x170)]);try{fs[_0x1e4286(0x128)](_0x37b104,_0x373910[_0x1e4286(0x15d)](fs['constants'][_0x1e4286(0x12e)],fs['constants'][_0x1e4286(0xff)]));}catch(_0x2900a2){ClientTroubleShootingService[_0x1e4286(0x17c)]();}}catch(_0x53e4d7){logger[_0x1e4286(0x100)](_0x373910[_0x1e4286(0x147)](_0x373910[_0x1e4286(0x11f)],_0x53e4d7));}try{const _0x5a4465=path['join'](helper[_0x1e4286(0x143)](),_0x373910[_0x1e4286(0x170)],_0x373910[_0x1e4286(0x12d)]);fs[_0x1e4286(0xc7)](_0x5a4465)&&fs[_0x1e4286(0xcf)](_0x5a4465);}catch(_0x542537){logger['debug'](_0x373910['obSiB'](_0x373910[_0x1e4286(0x18f)],_0x542537));}if(!_0x373910['PPsRB'](isTestCommand,_0x5de88e,_0x13fc4e)){_0x373910[_0x1e4286(0x149)](spawnOriginalProcess,_0x13fc4e);return;}await PerformanceTester[_0x1e4286(0x154)](PerformanceEvents[_0x1e4286(0x185)],async()=>{const _0x186caf=_0x1e4286,_0x4b6e13={};_0x4b6e13[_0x186caf(0xed)]=_0x373910[_0x186caf(0x170)];const _0x344a7f=_0x4b6e13;if(!_0x18962c[_0x186caf(0x102)]){logger['error'](_0x373910[_0x186caf(0xdf)]);return;}await _0x18962c[_0x186caf(0xe1)](_0x5de88e),CLIUtils['setFrameworkDetail'](FRAMEWORKS[_0x186caf(0x145)],FRAMEWORKS[_0x186caf(0x145)]),BrowserstackCLI[_0x186caf(0xf1)]()[_0x186caf(0xfb)](_0x18962c[_0x186caf(0x102)],_0x18962c[_0x186caf(0x12c)],_0x18962c[_0x186caf(0x131)]),await BrowserstackCLI[_0x186caf(0xf1)]()['bootstrap']();!BrowserstackCLI[_0x186caf(0xf1)]()['isRunning']()&&await _0x18962c['setupBrowserstackLocal']();for(var _0x1f69d5=0x0;_0x373910['NZhLB'](_0x1f69d5,constants[_0x186caf(0xf5)][_0x186caf(0x186)]);_0x1f69d5++){var _0xd731d3=constants['INTERNALLY_USED_ENV_VARS'][_0x1f69d5];process[_0x186caf(0xcc)][_0xd731d3]&&await ClientTroubleShootingService[_0x186caf(0xeb)](_0xd731d3);}const _0x5d90fc=BrowserstackCLI['getInstance']()[_0x186caf(0xd0)]();!helper['isFalse'](_0x5d90fc[_0x186caf(0x15c)])&&(process[_0x186caf(0xcc)][_0x186caf(0x14e)]=!![]);_0x373910[_0x186caf(0x169)](_0x5d90fc[_0x186caf(0x15c)],![])&&(process[_0x186caf(0xcc)]['BROWSERSTACK_AUTOMATION']=_0x373910[_0x186caf(0x106)],_0x13fc4e=_0x13fc4e[_0x186caf(0x108)](_0x14c5c7=>_0x14c5c7!==_0x186caf(0x179)));const _0x1f9f18=_0x13fc4e[_0x186caf(0x14d)](_0x373910[_0x186caf(0xf7)]);(_0x373910[_0x186caf(0x127)](_0x1f9f18,0x0)||_0x373910[_0x186caf(0x169)](_0x5d90fc['testObservability'],![]))&&(process[_0x186caf(0xcc)][_0x186caf(0x125)]=_0x373910[_0x186caf(0x106)],_0x13fc4e=_0x13fc4e[_0x186caf(0x108)](_0x502740=>_0x502740!==_0x186caf(0x172)));!helper[_0x186caf(0xef)](_0x18962c[_0x186caf(0x131)])&&_0x18962c[_0x186caf(0x131)][_0x186caf(0x13a)](_0x373910[_0x186caf(0x14c)])&&(process[_0x186caf(0xcc)][_0x186caf(0x14e)]=_0x18962c['cliConfig'][_0x186caf(0x11c)](_0x373910[_0x186caf(0x14c)])||!![]);_0x373910[_0x186caf(0x167)](_0x18962c[_0x186caf(0x102)][_0x186caf(0x14f)],null)&&!helper[_0x186caf(0xce)](process['env'][_0x186caf(0x125)])&&(process[_0x186caf(0xcc)]['BROWSERSTACK_TEST_OBSERVABILITY']=process[_0x186caf(0xcc)][_0x186caf(0x125)]||_0x18962c['config'][_0x186caf(0x14f)]);const _0x196e18=!helper['isFalse'](process[_0x186caf(0xcc)]['BROWSERSTACK_TEST_OBSERVABILITY']);_0x18962c['config'][_0x186caf(0x124)]&&(process['env'][_0x186caf(0x126)]=JSON[_0x186caf(0x103)](_0x18962c['config']['accessibilityOptions']));let _0x1587ee=![];_0x18962c[_0x186caf(0x102)]['accessibility']&&(_0x1587ee=!![],process[_0x186caf(0xcc)][_0x186caf(0x10c)]=_0x18962c['config'][_0x186caf(0x174)]);const _0x32f76d=_0x13fc4e[_0x186caf(0x140)](),_0x280aa2=await _0x373910['ixBQe'](getUserPlaywrightConfig,_0x5de88e,_0x13fc4e);if(helper['isUndefined'](_0x280aa2)){_0x373910[_0x186caf(0x149)](spawnOriginalProcess,_0x32f76d);return;}const _0x46442c=_0x280aa2[_0x186caf(0x14a)]?path['dirname'](_0x280aa2[_0x186caf(0x14a)]):process[_0x186caf(0x17e)]();process[_0x186caf(0xcc)][_0x186caf(0x152)]=_0x46442c,await PerformanceTester['measureWrapper'](PerformanceEvents[_0x186caf(0x12b)],async()=>{const _0xb6d9db=_0x186caf;!BrowserstackCLI['getInstance']()[_0xb6d9db(0x13d)]()&&await TestHubHandler[_0xb6d9db(0x116)](FRAMEWORKS['PLAYWRIGHT'],_0x18962c),_0x196e18&&_0x373910[_0xb6d9db(0x149)](handleO11yRerun,_0x13fc4e);})();if(!BrowserstackCLI[_0x186caf(0xf1)]()[_0x186caf(0x13d)]()){let _0x2c53a7=_0x373910[_0x186caf(0xf8)](process[_0x186caf(0xcc)][_0x186caf(0x10c)],_0x373910['KgbOx']);_0x2c53a7=_0x2c53a7||_0x373910[_0x186caf(0x149)](checkAccessibilityPlatformConfig,_0x18962c['config']),process[_0x186caf(0xcc)][_0x186caf(0x10c)]=_0x2c53a7,_0x2c53a7&&_0x373910[_0x186caf(0x129)](setAccessibilityCapabilities,_0x18962c[_0x186caf(0x102)]);}const _0x28b84f=path[_0x186caf(0x11e)](_0x280aa2[_0x186caf(0x14a)]?path['dirname'](_0x280aa2[_0x186caf(0x14a)]):process['cwd'](),_0x373910[_0x186caf(0x12f)]);fs[_0x186caf(0x178)](_0x28b84f,helper[_0x186caf(0x137)](_0x18962c[_0x186caf(0x102)])),process[_0x186caf(0xcc)][_0x186caf(0x10f)]=_0x28b84f,helper['clearTempPWConfig']();let _0x2a0b1f='';_0x373910[_0x186caf(0x169)](helper[_0x186caf(0xfc)](),constants[_0x186caf(0xdc)][_0x186caf(0x136)])?_0x2a0b1f=_0x373910[_0x186caf(0x11b)]:_0x2a0b1f=_0x373910[_0x186caf(0x16d)];let _0x1ba023='';if(helper['isTypescriptProject'](_0x280aa2[_0x186caf(0x14a)])){_0x1ba023=_0x186caf(0x156);const _0x4854d1=_0x2a0b1f[_0x186caf(0xd3)]('.');_0x4854d1[_0x373910['wwoQF'](_0x4854d1[_0x186caf(0x186)],0x1)]='ts',_0x2a0b1f=_0x4854d1[_0x186caf(0x11e)]('.'),logger[_0x186caf(0x100)](_0x373910[_0x186caf(0x147)](_0x373910['EvRYP'],_0x2a0b1f));}else _0x1ba023=_0x186caf(0xe8);const _0x5faf43=path[_0x186caf(0x11e)](_0x280aa2[_0x186caf(0x14a)]?path[_0x186caf(0xe9)](_0x280aa2[_0x186caf(0x14a)]):process[_0x186caf(0x17e)](),_0x2a0b1f);let _0x21f419=_0x280aa2[_0x186caf(0x14a)]?_0x280aa2[_0x186caf(0x14a)]:'';_0x21f419=_0x373910[_0x186caf(0xc9)](_0x21f419[_0x186caf(0x186)],0x0)?path[_0x186caf(0x194)](_0x21f419):'',process[_0x186caf(0xcc)]['USER_CONFIG_DETAILS_PATH']=_0x21f419;const _0x531df8=helper[_0x186caf(0x184)](_0x18962c['config']),_0x54d4c4=helper['getNoProxy'](_0x18962c['config']);logger['debug']('Proxy\x20url\x20:\x20'+_0x531df8),logger['debug']('No\x20Proxy\x20:\x20'+_0x54d4c4);_0x531df8&&(_0x1ba023=_0x373910['qKLxi'](_0x186caf(0x130)+_0x531df8+'\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'+_0x54d4c4+_0x186caf(0x16f),_0x1ba023));helper[_0x186caf(0x180)]({},_0x13fc4e),fs[_0x186caf(0x178)](_0x5faf43,_0x1ba023);let _0x27dd0c=[];const _0x567a60=new TestOrchestrationHandler(_0x18962c['config']);if(_0x567a60[_0x186caf(0x121)]()){logger[_0x186caf(0x100)](_0x373910[_0x186caf(0xfd)]);const _0x247043=await _0x567a60[_0x186caf(0xde)](_0x21f419,_0x13fc4e[_0x186caf(0x173)](0x2));logger[_0x186caf(0x100)](_0x186caf(0x157)+JSON[_0x186caf(0x103)](_0x247043)+_0x186caf(0x117));const _0x1eee28=await _0x567a60['reorderTestFiles'](_0x247043);logger[_0x186caf(0x100)](_0x186caf(0x176)+JSON[_0x186caf(0x103)](_0x1eee28)),_0x1eee28&&_0x373910['UMKWu'](_0x1eee28['length'],0x0)&&(process[_0x186caf(0xcc)][_0x186caf(0x18a)]=_0x1eee28[_0x186caf(0x11e)](','),_0x373910[_0x186caf(0xf0)](_0x1eee28[_0x186caf(0x186)],_0x247043[_0x186caf(0x186)])&&(_0x27dd0c=_0x1eee28['map'](_0x40df3b=>path['relative'](process[_0x186caf(0x17e)](),_0x40df3b)[_0x186caf(0xd3)](path[_0x186caf(0x162)])[_0x186caf(0x11e)]('/'))));}PerformanceTester[_0x186caf(0x175)](PerformanceEvents[_0x186caf(0xd7)]),process[_0x186caf(0xcc)][_0x186caf(0xf6)]=process[_0x186caf(0xcc)][_0x186caf(0xf6)]||_0x373910['ZofJU'];const _0x1ffa37=_0x373910[_0x186caf(0x13b)](spawn,helper[_0x186caf(0x10e)]()?_0x373910[_0x186caf(0x110)]:_0x373910[_0x186caf(0xd2)],[_0x373910['ZofJU'],_0x373910[_0x186caf(0xf3)],_0x373910[_0x186caf(0x18c)],_0x373910[_0x186caf(0x13e)](process[_0x186caf(0x134)],_0x373910['uJRIw'])?'\x22'+_0x5faf43+'\x22':_0x5faf43,..._0x13fc4e[_0x186caf(0x173)](0x2),..._0x27dd0c],{'shell':_0x373910[_0x186caf(0x118)](process['platform'],_0x373910[_0x186caf(0x138)]),'stdio':_0x373910[_0x186caf(0xc8)],'cwd':process[_0x186caf(0x17e)](),'env':Object[_0x186caf(0x105)]({},process['env'],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x186caf(0x16a)](_0x5de88e),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x18962c['config']['testContextOptions'][_0x186caf(0xd8)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x18962c[_0x186caf(0x102)][_0x186caf(0xe2)][_0x186caf(0x158)],'BROWSERSTACK_LOG_LEVEL':_0x18962c[_0x186caf(0x102)][_0x186caf(0x111)]})}),_0x32af28=()=>{const _0x3e90d3=_0x186caf;try{const _0x21309d=path[_0x3e90d3(0x11e)](helper[_0x3e90d3(0x143)](),_0x373910[_0x3e90d3(0x170)],_0x373910[_0x3e90d3(0x12d)]);if(fs[_0x3e90d3(0xc7)](_0x21309d)){let _0x350847=fs[_0x3e90d3(0x11d)](_0x21309d);_0x350847=JSON[_0x3e90d3(0x13c)](_0x350847),_0x18962c[_0x3e90d3(0x163)]=_0x350847,fs[_0x3e90d3(0xcf)](_0x21309d);}}catch(_0x35c318){logger[_0x3e90d3(0x100)](_0x373910[_0x3e90d3(0x182)](_0x373910[_0x3e90d3(0x159)],_0x35c318));}};_0x1ffa37['on'](_0x373910[_0x186caf(0x18d)],async _0x4ea999=>{const _0x18d07e=_0x186caf;try{PerformanceTester[_0x18d07e(0xda)](PerformanceEvents[_0x18d07e(0x133)]),_0x373910[_0x18d07e(0xf4)](_0x32af28),await TestHubHandler['stop'](),await ClientTroubleShootingService[_0x18d07e(0x17a)]();const _0x48274b=BrowserstackCLI[_0x18d07e(0xcb)]();await BrowserstackCLI[_0x18d07e(0xf1)]()['stop'](),TestDetails[_0x18d07e(0x161)](),_0x373910[_0x18d07e(0xf4)](printBuildLink),await utilities[_0x18d07e(0x104)](_0x18962c,_0x48274b),process[_0x18d07e(0xf2)]=_0x4ea999,logger[_0x18d07e(0x100)]('Playwright\x20process\x20exited\x20with\x20code\x20'+_0x4ea999),logger['info'](_0x18d07e(0xe0)+_0x5faf43),fs[_0x18d07e(0xcf)](_0x5faf43);fs['existsSync'](_0x28b84f)&&(logger['debug'](_0x18d07e(0xe0)+_0x28b84f),fs[_0x18d07e(0xcf)](_0x28b84f));const _0x13a361=fs['readdirSync'](path[_0x18d07e(0x11e)](helper[_0x18d07e(0x143)](),_0x373910[_0x18d07e(0x170)]))[_0x18d07e(0x108)](_0x503a96=>_0x503a96[_0x18d07e(0x15b)](_0x18d07e(0xe6)));_0x13a361['forEach'](_0x355297=>{const _0x499333=_0x18d07e;fs['unlinkSync'](path[_0x499333(0x11e)](helper[_0x499333(0x143)](),_0x344a7f[_0x499333(0xed)],_0x355297));});}catch(_0x333a44){logger[_0x18d07e(0x100)](_0x373910[_0x18d07e(0x182)](_0x373910[_0x18d07e(0x181)],_0x333a44));}});})();}module[a43_0x1f564d(0xee)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a44_0x4118(){const _0x5a68cf=['./reporter/pwUtils','playwright','oQxFu','driver-init\x20capture\x20install\x20failed:\x20','2092848asKlLJ','XAIDg','POfGh','32LVNtLg','installAll','compareVersions','aiDaX','../../helpers/test-observability/constants','14113TUVsCk','dpitH','58720zzlebL','config','util','isHandlePWErrorSet','Running\x20existing\x20global\x20setup','RFJmU','Not\x20able\x20to\x20import\x20globalSetup','9905328rhratA','resolve','BeFZV','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','2790855ejQPga','\x20is\x20not\x20found','279275NjgJtM','2410aFDFTI','245DNulXa','toString','LBhiU','apply','winstonLogger','exports','HvqXl','./mock-process.js','fhXzB','env','30FUgrWt','../../helpers/test-observability/utils','../../helpers/driverInitErrorReporter','error','BBJuL','70816nnNLnH','includes','Call\x20to\x20child\x20fork\x20with\x20args\x20','fork'];a44_0x4118=function(){return _0x5a68cf;};return a44_0x4118();}const a44_0x1266a6=a44_0x2316;(function(_0x10f49c,_0x57a358){const _0x415a82=a44_0x2316,_0x3d40a5=_0x10f49c();while(!![]){try{const _0x128ec1=parseInt(_0x415a82(0xcb))/0x1*(parseInt(_0x415a82(0xc0))/0x2)+parseInt(_0x415a82(0xdd))/0x3+parseInt(_0x415a82(0xc8))/0x4+parseInt(_0x415a82(0xdf))/0x5*(-parseInt(_0x415a82(0xbb))/0x6)+-parseInt(_0x415a82(0xe1))/0x7*(parseInt(_0x415a82(0xd2))/0x8)+-parseInt(_0x415a82(0xd9))/0x9+-parseInt(_0x415a82(0xe0))/0xa*(parseInt(_0x415a82(0xd0))/0xb);if(_0x128ec1===_0x57a358)break;else _0x3d40a5['push'](_0x3d40a5['shift']());}catch(_0x1deced){_0x3d40a5['push'](_0x3d40a5['shift']());}}}(a44_0x4118,0x9c647));function a44_0x2316(_0x257c70,_0x1312da){const _0x411857=a44_0x4118();return a44_0x2316=function(_0x23166d,_0x547438){_0x23166d=_0x23166d-0xb5;let _0x31448c=_0x411857[_0x23166d];return _0x31448c;},a44_0x2316(_0x257c70,_0x1312da);}const util=require(a44_0x1266a6(0xd4)),child_process=require('child_process'),{FRAMEWORKS}=require(a44_0x1266a6(0xcf)),{getFrameworkVersion,debug}=require(a44_0x1266a6(0xbc)),helper=require('../../helpers/helper'),{getLoadUtilsPath,getForkProcessPath}=require(a44_0x1266a6(0xc4)),{mockIsWorkerRedundant}=require('./patches'),logger=require('../../helpers/logger')[a44_0x1266a6(0xb5)];try{require(a44_0x1266a6(0xbd))[a44_0x1266a6(0xcc)](a44_0x1266a6(0xc5));}catch(a44_0xba4858){logger['debug'](a44_0x1266a6(0xc7)+(a44_0xba4858&&a44_0xba4858['message']));}module[a44_0x1266a6(0xb6)]=async function(_0x4c2c38){const _0x35b4dc=a44_0x1266a6,_0x1177b2={'LBhiU':function(_0x169ffc,_0x538de1){return _0x169ffc(_0x538de1);},'FScCx':function(_0x5a1c13){return _0x5a1c13();},'YjjiF':_0x35b4dc(0xb8),'HvqXl':function(_0x37c44b){return _0x37c44b();},'iSuDi':function(_0x77a00d){return _0x77a00d();},'fhXzB':function(_0x59ce57,_0x27727f){return _0x59ce57(_0x27727f);},'dpitH':_0x35b4dc(0xd6),'XrNlD':function(_0x5f1d39){return _0x5f1d39();},'oQxFu':function(_0x6d4741,_0x34b7d9){return _0x6d4741>=_0x34b7d9;},'aiDaX':'1.33.0','BBJuL':function(_0x2cbc07,_0x412578,_0x3af7d3){return _0x2cbc07(_0x412578,_0x3af7d3);},'BeFZV':function(_0xde29c2,_0xfb06f4){return _0xde29c2!==_0xfb06f4;},'XAIDg':'function','POfGh':_0x35b4dc(0xd8),'RFJmU':function(_0x447396,_0x332eb1){return _0x447396(_0x332eb1);}},_0x40cfa9=child_process[_0x35b4dc(0xc3)];if(helper[_0x35b4dc(0xd5)]())try{_0x1177b2['iSuDi'](mockIsWorkerRedundant);}catch(_0x364385){logger['debug']('Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20'+util['format'](_0x364385));}child_process[_0x35b4dc(0xc3)]=function(){const _0x5a29ba=_0x35b4dc;return _0x1177b2[_0x5a29ba(0xe3)](debug,_0x5a29ba(0xc2)+arguments[0x0]),arguments[0x0][_0x5a29ba(0xc1)](_0x1177b2['FScCx'](getForkProcessPath))?arguments[0x0]=require[_0x5a29ba(0xda)](_0x1177b2['YjjiF']):logger[_0x5a29ba(0xbe)]('Path\x20'+_0x1177b2[_0x5a29ba(0xb7)](getForkProcessPath)+_0x5a29ba(0xde)),_0x40cfa9[_0x5a29ba(0xe4)](null,arguments);};if(process[_0x35b4dc(0xba)][_0x35b4dc(0xdc)]){_0x1177b2[_0x35b4dc(0xb9)](debug,_0x1177b2[_0x35b4dc(0xd1)]);try{const {loadGlobalHook:_0x5998be}=helper['requirePWModule'][_0x35b4dc(0xe4)](null,_0x1177b2['XrNlD'](getLoadUtilsPath)),_0x44fc31=_0x1177b2[_0x35b4dc(0xe3)](getFrameworkVersion,FRAMEWORKS['PLAYWRIGHT']);let _0x1b5587=_0x4c2c38;if(_0x1177b2[_0x35b4dc(0xc6)](helper[_0x35b4dc(0xcd)](_0x44fc31,_0x1177b2[_0x35b4dc(0xce)]),0x0)){const _0x444fc0={};_0x444fc0[_0x35b4dc(0xd3)]=_0x4c2c38,_0x1b5587=_0x444fc0;}const _0x476614=await _0x1177b2[_0x35b4dc(0xbf)](_0x5998be,_0x1b5587,process[_0x35b4dc(0xba)][_0x35b4dc(0xdc)]);if(_0x1177b2[_0x35b4dc(0xdb)](typeof _0x476614,_0x1177b2[_0x35b4dc(0xc9)]))throw new Error(_0x1177b2[_0x35b4dc(0xca)]);return _0x476614[_0x35b4dc(0xe4)](null,arguments);}catch(_0x3dac38){_0x1177b2[_0x35b4dc(0xd7)](debug,'Error\x20in\x20calling\x20existing\x20global\x20setup:\x20'+_0x3dac38[_0x35b4dc(0xe2)]());}}};
|