browserstack-node-sdk 1.40.0 → 1.40.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test_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/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/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/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.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/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.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/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/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/processHelper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a35_0x183446=a35_0x1eeb;(function(_0x321c,_0x39c40c){const _0x43a107=a35_0x1eeb,_0x4d5c5d=_0x321c();while(!![]){try{const _0x3f01f2=-parseInt(_0x43a107(0xe8))/0x1+-parseInt(_0x43a107(0xe7))/0x2*(parseInt(_0x43a107(0xe4))/0x3)+-parseInt(_0x43a107(0xf2))/0x4*(-parseInt(_0x43a107(0x137))/0x5)+parseInt(_0x43a107(0x112))/0x6*(-parseInt(_0x43a107(0x158))/0x7)+-parseInt(_0x43a107(0xcc))/0x8+-parseInt(_0x43a107(0x160))/0x9+parseInt(_0x43a107(0x131))/0xa*(parseInt(_0x43a107(0xff))/0xb);if(_0x3f01f2===_0x39c40c)break;else _0x4d5c5d['push'](_0x4d5c5d['shift']());}catch(_0x55543b){_0x4d5c5d['push'](_0x4d5c5d['shift']());}}}(a35_0x4bba,0xa3486));function a35_0x4bba(){const _0x17fe86=['shouldScanTestForAccessibility','zVxvC',',\x22level\x22:\x20\x22','SYNC','afterTest','initQuit','ObservabilitySync:','KtAPY','quitCount_','SAVE_RESULTS','SESSION_STATUS','RdtfS','WXSJC','KNzGM','bOXiZ','NIjMF','Automate\x20test\x20case\x20execution\x20has\x20started.','VPjmD','accessibilityScanStarted','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','appium:app','message','length','executeScript','end','MucjK','../../helpers/performance/constants','session_','8160840NPfWzl','pCRHK','browserstackTestName','../../helpers/accessibility-automation/scripts','beforeEach','Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20','getGlobal','beforeAll','saveTestResults','LNYgO','OtmBn','protocol','qZUVT','command','app','OVFIa','env','BROWSERSTACK_TESTHUB_UUID','zcUdt','../../helpers/testhub/constants','YLjyi','uPJIs','WMRrL','timeout','3FCLsPF','passed','http:','1670744ouGVCv','398232VwEwaO','zdiZH','vzxEg','gnYFt','OjXzH','Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20','setGlobal','XKssz','FUzCj','Yxpnf','202252YBCVrb','xPLvt','getCurrentUrl','../../helpers/testhub/utils','Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20','format','debug','executeAsyncScript','SESSION_NAME','vfCiC','../../helpers/helper','QGSPE','thBuildUuid','128601bkYqUd','__platformCaps','LMIFm','PERFORM_SCAN','Failed:\x20','isArray','FKuQf','kOqlE','ANSsF','push','ypdGY','state','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','mochaHooks','xthgm','druID','.\x20Error\x20:','dPOFK','ewPRu','18STvYLc','sessionName','titlePath','\x20-\x20','util','EOflt','stringify','percyCaptureMode','VJwGx','olKER','winstonLogger','Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20','kongz','tpOrN','__error_messages__','mjOCL','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','thTestRunUuid','browserstackSessionName','join','driverCleanup','GtkiB','afterAll','jcLUx','Passed','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','__sessionFailed','index','ChaKe','__drivers','error','3760swrubJ','RvnDX','err','start','ENV_VAR','bstackA11yShouldScan','5mqjLNx','wQxFb','IGREd','gPpoT','testAnalyticsId','LaXUo','ujiaK','aKxlg','capabilities','now','isAccessibilityPlatform','currentTest','ysVeM','JqJFU','FJPZa','info','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','sessionNameSet__','XdPcp','BHMdq','cEQbu','qXGGI','./test-observability/mochaUtils','kzQRy','percy','SDK_HOOK','then','performScan','Ajcnz','EtnEx','Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','testcase','2740234txttxE','__skipSessionName','../../helpers/percy/utils','WpRMJ','RbEMn','measureWrapper','AuFiu','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','3145302SxuQyX','shift','sXNBF','wLqNq'];a35_0x4bba=function(){return _0x17fe86;};return a35_0x4bba();}function a35_0x1eeb(_0x3fad80,_0x1b7c06){const _0x4bbabb=a35_0x4bba();return a35_0x1eeb=function(_0x1eeb45,_0x1d5529){_0x1eeb45=_0x1eeb45-0xbf;let _0x31b656=_0x4bbabb[_0x1eeb45];return _0x31b656;},a35_0x1eeb(_0x3fad80,_0x1b7c06);}const util=require(a35_0x183446(0x116)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require('../../helpers/accessibility-automation/helper'),{percyAutoCapture}=require(a35_0x183446(0x15a)),{sendPlatformDetails}=require(a35_0x183446(0x14d)),{isBrowserstackInfra,markSessionStatus,nestedKeyValue}=require(a35_0x183446(0xfc)),PerformanceTester=require('../../helpers/performance/performance-tester'),{AUTOMATE_EVENTS:PerformanceAutEvents,O11y_EVENTS:PerformanceO11yEvents,A11Y_EVENTS:PerformanceA11yEvents,EVENTS:PerformanceSdkEvents}=require(a35_0x183446(0xca)),scripts=require(a35_0x183446(0xcf)),globals=require('../../helpers/globals'),logger=require('../../helpers/logger')[a35_0x183446(0x11c)],{shouldProcessEventForTesthub}=require(a35_0x183446(0xf5)),testHubConstants=require(a35_0x183446(0xdf));exports[a35_0x183446(0x10c)]={'beforeAll'(){const _0x3da372=a35_0x183446,_0x3fd375={'Tmtwi':function(_0x35149d,_0x26eea9,_0x1dd982,_0x211d7e){return _0x35149d(_0x26eea9,_0x1dd982,_0x211d7e);},'dPOFK':'failed','NIjMF':'\x20|\x20','Ajcnz':function(_0x5a5d56,_0x17d76d,_0x32834f){return _0x5a5d56(_0x17d76d,_0x32834f);},'RdtfS':_0x3da372(0xe5),'WmTrH':function(_0x3399a2){return _0x3399a2();},'ANSsF':function(_0x2e51a9,_0x3b1e48,_0xf7c661){return _0x2e51a9(_0x3b1e48,_0xf7c661);},'YLjyi':function(_0x3dd8db,_0x45afb8,_0x584a2d){return _0x3dd8db(_0x45afb8,_0x584a2d);},'ujiaK':_0x3da372(0x12d),'zMCOz':_0x3da372(0xd3)};PerformanceTester['startMonitoring']();const _0x2c31ad='browserstack internal helper hook';PerformanceTester[_0x3da372(0x15d)](PerformanceSdkEvents[_0x3da372(0x150)],()=>{const _0x56eede=_0x3da372;global[_0x56eede(0x120)]=[],global[_0x56eede(0x12c)]=![],global[_0x56eede(0x126)]=async()=>{const _0xbf5c89=_0x56eede;let _0xe58338=![];try{await global['__drivers'][0x0][_0xbf5c89(0xcb)],_0xe58338=!![],global['__sessionFailed']?await _0x3fd375['Tmtwi'](markSessionStatus,global[_0xbf5c89(0x12f)][0x0],_0x3fd375[_0xbf5c89(0x110)],global[_0xbf5c89(0x120)][_0xbf5c89(0x125)](_0x3fd375[_0xbf5c89(0xbf)])):await _0x3fd375[_0xbf5c89(0x153)](markSessionStatus,global[_0xbf5c89(0x12f)][0x0],_0x3fd375[_0xbf5c89(0x16f)]);}catch(_0x7ab384){logger[_0xbf5c89(0xf8)](_0xbf5c89(0x11d)+_0x7ab384);}global[_0xbf5c89(0x120)]=[],global[_0xbf5c89(0x12c)]=![];if(_0xe58338)try{try{_0x3fd375['WmTrH'](shouldProcessEventForTesthub)&&(global[_0xbf5c89(0x12f)][0x0]&&await _0x3fd375[_0xbf5c89(0x107)](sendPlatformDetails,global[_0xbf5c89(0x12f)][0x0],this[_0xbf5c89(0x142)]?this[_0xbf5c89(0x142)]['testAnalyticsId']:null));}catch(_0x12be85){logger[_0xbf5c89(0xf8)](_0xbf5c89(0xf6)+_0x12be85);}await global[_0xbf5c89(0x12f)][0x0][_0xbf5c89(0x169)]();}catch(_0x4b74ec){logger[_0xbf5c89(0xf8)](_0xbf5c89(0x156)+_0x4b74ec);}};},{'platform':_0x3fd375[_0x3da372(0xe0)](nestedKeyValue,global[_0x3da372(0x100)],[_0x3fd375[_0x3da372(0x13d)]]),'hookType':_0x3fd375['zMCOz']})();},'beforeEach'(_0x1f2795){const _0xba8b09=a35_0x183446,_0x471829={'FUzCj':function(_0x4c3174,_0x1157d0){return _0x4c3174>_0x1157d0;},'ynLuL':_0xba8b09(0x115),'FJPZa':function(_0x9735ab,_0x74c0e6,_0x5752d3){return _0x9735ab(_0x74c0e6,_0x5752d3);},'BHMdq':_0xba8b09(0x136),'wQxFb':function(_0x5a3c43){return _0x5a3c43();},'cEQbu':_0xba8b09(0x141),'JqJFU':function(_0x3be5ae,_0x58212a){return _0x3be5ae===_0x58212a;},'kOqlE':_0xba8b09(0xe6),'gnYFt':'https:','VUnmd':_0xba8b09(0xc3),'ChaKe':_0xba8b09(0xc0),'RbEMn':_0xba8b09(0xce),'LMIFm':function(_0x597325,_0x79b110,_0x441a76){return _0x597325(_0x79b110,_0x441a76);},'kongz':_0xba8b09(0x12d),'RKmsw':_0xba8b09(0xd0)};globals[_0xba8b09(0xee)](_0x471829[_0xba8b09(0x15c)],this[_0xba8b09(0x142)][_0xba8b09(0x114)]()[_0xba8b09(0x125)](_0x471829['ynLuL'])),PerformanceTester[_0xba8b09(0x15d)](PerformanceSdkEvents['SDK_HOOK'],()=>{const _0x40b33d=_0xba8b09,_0x458b93={'HXCwM':function(_0x5ebbcf,_0x19481e){const _0x2a3585=a35_0x1eeb;return _0x471829[_0x2a3585(0xf0)](_0x5ebbcf,_0x19481e);},'WXSJC':_0x471829['ynLuL'],'EtnEx':function(_0x2b99f4,_0x5e1966,_0x2717a3){const _0x12ad68=a35_0x1eeb;return _0x471829[_0x12ad68(0x145)](_0x2b99f4,_0x5e1966,_0x2717a3);},'hcxdO':_0x471829[_0x40b33d(0x14a)],'RvnDX':function(_0x343eb7){const _0x34628d=_0x40b33d;return _0x471829[_0x34628d(0x138)](_0x343eb7);},'KNzGM':function(_0x407afa,_0x22e964){const _0x789940=_0x40b33d;return _0x471829[_0x789940(0xf0)](_0x407afa,_0x22e964);},'IGREd':_0x471829[_0x40b33d(0x14b)],'WMRrL':function(_0x2707b5,_0x11d06c){const _0x549ff2=_0x40b33d;return _0x471829[_0x549ff2(0x144)](_0x2707b5,_0x11d06c);},'WpRMJ':_0x471829[_0x40b33d(0x106)],'vzxEg':_0x471829[_0x40b33d(0xeb)],'MucjK':_0x471829['VUnmd'],'QGSPE':_0x471829[_0x40b33d(0x12e)]},_0x1c80c6='browserstack internal helper hook';new Promise(async _0x113160=>{const _0x3cff5a=_0x40b33d;let _0x33b2f0=!![];try{_0x458b93['HXCwM'](global[_0x3cff5a(0x12f)][_0x3cff5a(0xc6)],0x1)&&(await global[_0x3cff5a(0x126)](),global[_0x3cff5a(0x12f)][_0x3cff5a(0x161)]()),_0x458b93['HXCwM'](global[_0x3cff5a(0x12f)][0x0][_0x3cff5a(0x16c)],0x0)&&(_0x33b2f0=![],await global[_0x3cff5a(0x126)]());}catch(_0x36750b){logger[_0x3cff5a(0xf8)](_0x3cff5a(0x156)+_0x36750b);}try{Array[_0x3cff5a(0x104)](global[_0x3cff5a(0x12f)])&&global[_0x3cff5a(0x12f)][0x0]&&(global['__drivers'][0x0][_0x3cff5a(0x124)]=this[_0x3cff5a(0x142)]['titlePath']()['join'](_0x458b93[_0x3cff5a(0x170)])),global['browserstackSessionName']=this[_0x3cff5a(0x142)][_0x3cff5a(0x114)]()['join'](_0x458b93[_0x3cff5a(0x170)]);}catch(_0x2227db){logger[_0x3cff5a(0xf8)]('Failed\x20to\x20store\x20session\x20name:\x20'+_0x2227db);}this[_0x3cff5a(0x142)][_0x3cff5a(0x164)]=_0x458b93[_0x3cff5a(0x154)](shouldScanTestForAccessibility,this[_0x3cff5a(0x142)][_0x3cff5a(0x114)](),!![]),globals[_0x3cff5a(0xee)](_0x458b93['hcxdO'],this[_0x3cff5a(0x142)][_0x3cff5a(0x164)]),this[_0x3cff5a(0x142)][_0x3cff5a(0xc2)]=!![];if(_0x458b93[_0x3cff5a(0x132)](isAccessibilityAutomationSession)&&_0x33b2f0&&Array[_0x3cff5a(0x104)](global['__drivers'])&&_0x458b93[_0x3cff5a(0x171)](global[_0x3cff5a(0x12f)][_0x3cff5a(0xc6)],0x0)&&globals[_0x3cff5a(0xd2)](_0x458b93[_0x3cff5a(0x139)]))try{const _0x5906e4=await global[_0x3cff5a(0x12f)][0x0][_0x3cff5a(0xcb)];if(_0x5906e4){let _0x590814=!![];const _0x2d916d=await global['__drivers'][0x0][_0x3cff5a(0xf4)]();let _0xd54cb7;try{_0xd54cb7=new URL(_0x2d916d);}catch(_0x507b59){_0x590814=![];}_0x590814=_0x458b93[_0x3cff5a(0xe2)](_0xd54cb7['protocol'],_0x458b93[_0x3cff5a(0x15b)])||_0x458b93['WMRrL'](_0xd54cb7[_0x3cff5a(0xd7)],_0x458b93[_0x3cff5a(0xea)]),_0x590814&&(this[_0x3cff5a(0x142)][_0x3cff5a(0x164)]&&logger['info'](_0x458b93[_0x3cff5a(0xc9)])),this['currentTest'][_0x3cff5a(0xc2)]=this[_0x3cff5a(0x142)][_0x3cff5a(0x164)],this[_0x3cff5a(0x142)][_0x3cff5a(0x164)]&&logger[_0x3cff5a(0x146)](_0x458b93[_0x3cff5a(0xfd)]);}}catch(_0x5b8a90){logger[_0x3cff5a(0x130)](_0x3cff5a(0x147)+util[_0x3cff5a(0xf7)](_0x5b8a90));}_0x458b93[_0x3cff5a(0x132)](_0x113160);})['then'](()=>{const _0x3be2d0=_0x40b33d;_0x458b93[_0x3be2d0(0x132)](_0x1f2795);});},{'platform':_0x471829[_0xba8b09(0x101)](nestedKeyValue,global[_0xba8b09(0x100)],[_0x471829[_0xba8b09(0x11e)]]),'hookType':_0x471829['RKmsw']})();},'afterEach'(_0x59ab61){const _0x2ed8ee=a35_0x183446,_0x36b9e7={'OjXzH':_0x2ed8ee(0x115),'zcUdt':function(_0x89911e,_0x8514bf){return _0x89911e!==_0x8514bf;},'VPjmD':'passed','pCRHK':function(_0x71f911,_0x2df104,_0x23499e){return _0x71f911(_0x2df104,_0x23499e);},'qZUVT':function(_0x1bbe87,_0x35acae){return _0x1bbe87+_0x35acae;},'GtkiB':_0x2ed8ee(0x103),'XKssz':_0x2ed8ee(0x130),'FKuQf':_0x2ed8ee(0x12a),'wLqNq':_0x2ed8ee(0x146),'sXNBF':function(_0x6261aa,_0x5d80c0){return _0x6261aa>_0x5d80c0;},'mjOCL':function(_0x28a643,_0x54194d){return _0x28a643===_0x54194d;},'zdiZH':_0x2ed8ee(0x157),'uPJIs':_0x2ed8ee(0xc4),'ewPRu':function(_0x1f290a,_0x128cbf,_0x286846,_0x2a87f5){return _0x1f290a(_0x128cbf,_0x286846,_0x2a87f5);},'xthgm':_0x2ed8ee(0x141),'OVFIa':'bstackA11yShouldScan','qXGGI':_0x2ed8ee(0x12b),'VJwGx':'Performing\x20scan\x20before\x20saving\x20results','OtmBn':_0x2ed8ee(0x168),'bOXiZ':_0x2ed8ee(0x122),'druID':function(_0x51ef69){return _0x51ef69();},'xPLvt':function(_0x596de8){return _0x596de8();},'EOflt':function(_0x5ec7d9,_0x4413ff,_0x5ebf33){return _0x5ec7d9(_0x4413ff,_0x5ebf33);},'jcLUx':'debug','LNYgO':function(_0x4641db){return _0x4641db();},'Yxpnf':function(_0x208c05){return _0x208c05();},'KtAPY':function(_0x473779,_0x3ccac1,_0x387f61){return _0x473779(_0x3ccac1,_0x387f61);},'SBKaL':'index','tNdAz':'afterEach'},_0x11ff2a='browserstack internal helper hook';this[_0x2ed8ee(0xe3)](0xfde8),global[_0x2ed8ee(0x113)]=this[_0x2ed8ee(0x142)][_0x2ed8ee(0x114)]()[_0x2ed8ee(0x125)](_0x36b9e7[_0x2ed8ee(0xec)]),PerformanceTester[_0x2ed8ee(0x15d)](PerformanceSdkEvents[_0x2ed8ee(0x150)],()=>{const _0x5b4e98=_0x2ed8ee,_0x2ec41e={'zVxvC':function(_0x1827d4){const _0x16dd73=a35_0x1eeb;return _0x36b9e7[_0x16dd73(0xf1)](_0x1827d4);}},_0x1638fd=async(_0xa2d71c,_0x35202c)=>{const _0x353a3f=a35_0x1eeb;await global[_0x353a3f(0x12f)][0x0][_0x353a3f(0xc7)]('browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:'+_0xa2d71c+_0x353a3f(0x166)+_0x35202c+'\x22}}');};new Promise(async _0x2d5f69=>{const _0x388999=a35_0x1eeb,_0x485f8d={'gPpoT':_0x36b9e7['OjXzH'],'AuFiu':function(_0x1307f3,_0x1c8749){const _0x245ae8=a35_0x1eeb;return _0x36b9e7[_0x245ae8(0xde)](_0x1307f3,_0x1c8749);},'ypdGY':_0x36b9e7[_0x388999(0xc1)],'MHnKX':function(_0x2cb073,_0x378671,_0x192d5c){const _0x1f1611=_0x388999;return _0x36b9e7[_0x1f1611(0xcd)](_0x2cb073,_0x378671,_0x192d5c);},'LaXUo':function(_0x385ba5,_0x4d0088){const _0x4db216=_0x388999;return _0x36b9e7[_0x4db216(0xd8)](_0x385ba5,_0x4d0088);},'olKER':_0x36b9e7[_0x388999(0x127)],'tpOrN':_0x36b9e7[_0x388999(0xef)],'XdPcp':_0x36b9e7[_0x388999(0x105)],'aKxlg':_0x36b9e7[_0x388999(0x163)]};try{_0x36b9e7['sXNBF'](global[_0x388999(0x12f)]['length'],0x1)&&(await global[_0x388999(0x126)](),global[_0x388999(0x12f)][_0x388999(0x161)](),global['__error_messages__']=[],global[_0x388999(0x12c)]=![]);try{if(global[_0x388999(0x14f)]&&_0x36b9e7[_0x388999(0x121)](global[_0x388999(0x119)],_0x36b9e7['zdiZH'])&&global[_0x388999(0x12f)][0x0]){const _0x3b3944=_0x36b9e7['sXNBF'](global[_0x388999(0x13f)][_0x388999(0xc6)],0x0)?!!global['capabilities'][0x0][_0x388999(0xda)]||!!global[_0x388999(0x13f)][0x0][_0x36b9e7[_0x388999(0xe1)]]:![],_0x51a89e={};_0x51a89e[_0x388999(0xda)]=_0x3b3944,await _0x36b9e7[_0x388999(0x111)](percyAutoCapture,global['__drivers'][0x0],_0x36b9e7[_0x388999(0xe9)],_0x51a89e);}}catch(_0x3c7a46){logger[_0x388999(0xf8)](_0x388999(0xed)+_0x3c7a46);}!global[_0x388999(0x159)]&&(await PerformanceTester['measureWrapper'](PerformanceAutEvents[_0x388999(0xfa)],async()=>{const _0x21dfcd=_0x388999;await global[_0x21dfcd(0x12f)][0x0][_0x21dfcd(0xc7)](_0x21dfcd(0x15f)+JSON[_0x21dfcd(0x118)](this['currentTest']['titlePath']()[_0x21dfcd(0x125)](_0x485f8d[_0x21dfcd(0x13a)]))+'}}');})(),global['__drivers'][0x0][_0x388999(0x148)]=!![]),await PerformanceTester[_0x388999(0x15d)](PerformanceAutEvents[_0x388999(0x16e)],async()=>{const _0x44d009=_0x388999,_0x51eac3=_0x485f8d[_0x44d009(0x15e)](this[_0x44d009(0x142)][_0x44d009(0x10a)],_0x485f8d[_0x44d009(0x109)]);_0x51eac3?(global[_0x44d009(0x12c)]=!![],global[_0x44d009(0x120)][_0x44d009(0x108)](this[_0x44d009(0x142)][_0x44d009(0x133)][_0x44d009(0xc5)]),await _0x485f8d['MHnKX'](_0x1638fd,JSON[_0x44d009(0x118)](_0x485f8d[_0x44d009(0x13c)](_0x485f8d[_0x44d009(0x11b)],this[_0x44d009(0x142)][_0x44d009(0x133)][_0x44d009(0xc5)])),_0x485f8d[_0x44d009(0x11f)])):await _0x485f8d['MHnKX'](_0x1638fd,JSON[_0x44d009(0x118)](_0x485f8d[_0x44d009(0x149)]),_0x485f8d[_0x44d009(0x13e)]);})();}catch(_0x1ea0d2){logger[_0x388999(0xf8)](_0x388999(0x155)+_0x1ea0d2);}try{if(this['currentTest'][_0x388999(0xc2)]&&globals[_0x388999(0xd2)](_0x36b9e7[_0x388999(0x10d)])&&globals[_0x388999(0xd2)](_0x36b9e7[_0x388999(0xdb)])){logger[_0x388999(0x146)](_0x36b9e7[_0x388999(0x14c)]);const _0x108cb9={};_0x108cb9[_0x388999(0x123)]=this['currentTest'][_0x388999(0x13b)],_0x108cb9[_0x388999(0xfe)]=process[_0x388999(0xdc)][testHubConstants['ENV_VAR'][_0x388999(0xdd)]],_0x108cb9['thJwtToken']=process[_0x388999(0xdc)][testHubConstants[_0x388999(0x135)]['BROWSERSTACK_TESTHUB_JWT']];const _0x5d16d3=_0x108cb9;logger[_0x388999(0xf8)](_0x388999(0x10b)+JSON['stringify'](_0x5d16d3)),logger[_0x388999(0xf8)](_0x36b9e7[_0x388999(0x11a)]);const _0x1c3410={};_0x1c3410[_0x388999(0xd9)]=_0x36b9e7[_0x388999(0xd6)],await PerformanceTester[_0x388999(0x15d)](PerformanceA11yEvents[_0x388999(0x102)],async()=>{const _0x4156dd=_0x388999;logger[_0x4156dd(0xf8)](util[_0x4156dd(0xf7)](await global[_0x4156dd(0x12f)][0x0][_0x4156dd(0xf9)](scripts[_0x4156dd(0x152)],{'method':global[_0x4156dd(0x124)]})));},_0x1c3410)(),await PerformanceTester[_0x388999(0x15d)](PerformanceA11yEvents[_0x388999(0x16d)],async()=>{const _0x48cb18=_0x388999;await global[_0x48cb18(0x12f)][0x0][_0x48cb18(0xf9)](scripts[_0x48cb18(0xd4)],_0x5d16d3);})(),logger['info'](_0x36b9e7[_0x388999(0x172)]);}}catch(_0x5295be){logger[_0x388999(0x130)]('Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20'+this[_0x388999(0x142)]['titlePath']()+_0x388999(0x10f),_0x5295be);}try{try{if(_0x36b9e7[_0x388999(0x10e)](shouldProcessEventForTesthub)){global[_0x388999(0x12f)][0x0]&&await _0x36b9e7[_0x388999(0xcd)](sendPlatformDetails,global[_0x388999(0x12f)][0x0],this[_0x388999(0x142)]?this[_0x388999(0x142)][_0x388999(0x13b)]:null);if(_0x36b9e7[_0x388999(0xf3)](isBrowserstackInfra)){PerformanceTester[_0x388999(0x134)](PerformanceO11yEvents[_0x388999(0x167)]);const _0x2af8f3=_0x388999(0x16a)+Date[_0x388999(0x140)]();await _0x36b9e7[_0x388999(0x117)](_0x1638fd,JSON[_0x388999(0x118)](_0x2af8f3),_0x36b9e7[_0x388999(0x129)]),PerformanceTester[_0x388999(0xc8)](PerformanceO11yEvents[_0x388999(0x167)]);}}}catch(_0x49322e){logger[_0x388999(0xf8)](_0x388999(0xd1)+_0x49322e),PerformanceTester[_0x388999(0xc8)](PerformanceO11yEvents[_0x388999(0x167)],![],_0x49322e);}_0x36b9e7[_0x388999(0x162)](global[_0x388999(0x12f)][0x0][_0x388999(0x16c)],0x0)&&await global['driverCleanup']();}catch(_0x46e565){logger[_0x388999(0xf8)]('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0x46e565);}_0x36b9e7[_0x388999(0xd5)](_0x2d5f69);})[_0x5b4e98(0x151)](()=>{const _0x32a547=_0x5b4e98;_0x2ec41e[_0x32a547(0x165)](_0x59ab61);});},{'platform':_0x36b9e7[_0x2ed8ee(0x16b)](nestedKeyValue,global['__platformCaps'],[_0x36b9e7['SBKaL']]),'hookType':_0x36b9e7['tNdAz']})();},'afterAll'(_0x533f3a){const _0x24e613=a35_0x183446,_0x5d84b9={'kzQRy':function(_0x5f4d46){return _0x5f4d46();},'ysVeM':function(_0x24d1ed,_0x273693,_0x55d821){return _0x24d1ed(_0x273693,_0x55d821);},'zQkVK':_0x24e613(0x12d),'vfCiC':_0x24e613(0x128)},_0x5e8f13='browserstack internal helper hook';this[_0x24e613(0xe3)](0xfde8),PerformanceTester[_0x24e613(0x15d)](PerformanceSdkEvents['SDK_HOOK'],()=>{const _0x3154dd=_0x24e613;new Promise(async _0x5ef462=>{const _0x1395a5=a35_0x1eeb;await global[_0x1395a5(0x126)](),_0x5d84b9['kzQRy'](_0x5ef462);})[_0x3154dd(0x151)]()['finally'](()=>{const _0x33984f=_0x3154dd;_0x5d84b9[_0x33984f(0x14e)](_0x533f3a);});},{'platform':_0x5d84b9[_0x24e613(0x143)](nestedKeyValue,global[_0x24e613(0x100)],[_0x5d84b9['zQkVK']]),'hookType':_0x5d84b9[_0x24e613(0xfb)]})();}};
|
|
1
|
+
const a35_0x18c7a6=a35_0x3b60;(function(_0x3d7def,_0x44ee99){const _0x5bfd2e=a35_0x3b60,_0x3e3e67=_0x3d7def();while(!![]){try{const _0x5d406c=-parseInt(_0x5bfd2e(0x1c2))/0x1+-parseInt(_0x5bfd2e(0x1d5))/0x2*(parseInt(_0x5bfd2e(0x155))/0x3)+parseInt(_0x5bfd2e(0x1b4))/0x4*(parseInt(_0x5bfd2e(0x1ed))/0x5)+parseInt(_0x5bfd2e(0x153))/0x6*(-parseInt(_0x5bfd2e(0x1ac))/0x7)+parseInt(_0x5bfd2e(0x168))/0x8+parseInt(_0x5bfd2e(0x152))/0x9+-parseInt(_0x5bfd2e(0x1b6))/0xa;if(_0x5d406c===_0x44ee99)break;else _0x3e3e67['push'](_0x3e3e67['shift']());}catch(_0x59c510){_0x3e3e67['push'](_0x3e3e67['shift']());}}}(a35_0x51e1,0x52d3a));const util=require(a35_0x18c7a6(0x1c5)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a35_0x18c7a6(0x145)),{TEST_FRAMEWORK_HOOK_TIMEOUT}=require(a35_0x18c7a6(0x1ba)),{percyAutoCapture}=require(a35_0x18c7a6(0x1b1)),{sendPlatformDetails}=require(a35_0x18c7a6(0x1bb)),{isBrowserstackInfra,markSessionStatus,nestedKeyValue}=require(a35_0x18c7a6(0x1e0)),PerformanceTester=require(a35_0x18c7a6(0x19e)),{AUTOMATE_EVENTS:PerformanceAutEvents,O11y_EVENTS:PerformanceO11yEvents,A11Y_EVENTS:PerformanceA11yEvents,EVENTS:PerformanceSdkEvents}=require(a35_0x18c7a6(0x18e)),scripts=require('../../helpers/accessibility-automation/scripts'),globals=require(a35_0x18c7a6(0x1d8)),logger=require('../../helpers/logger')[a35_0x18c7a6(0x1c4)],{shouldProcessEventForTesthub}=require(a35_0x18c7a6(0x186)),testHubConstants=require(a35_0x18c7a6(0x1b8));function a35_0x3b60(_0x411c00,_0x2132dd){const _0x51e19b=a35_0x51e1();return a35_0x3b60=function(_0x3b604c,_0x412a6a){_0x3b604c=_0x3b604c-0x144;let _0x188298=_0x51e19b[_0x3b604c];return _0x188298;},a35_0x3b60(_0x411c00,_0x2132dd);}function a35_0x51e1(){const _0x4f783d=['PEyjT','../../helpers/testhub/constants','error','../utils/constants','./test-observability/mochaUtils','OdXSk','Automate\x20test\x20case\x20execution\x20has\x20started.','failed','Vqwtn','HmnGz','length','369732sRMVub','state','winstonLogger','util','Mocha','beforeAll','kGmdy','app','.\x20Error\x20:','UreSZ','http:','capabilities','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','startMonitoring','uvBEc','RtyWr','mUQpw','Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20','AEkJo','542OTFptk','WchEY','quitCount_','../../helpers/globals','dCHJd','sessionNameSet__','HUpAL','tDLwD','ZaAZO','command','RSxfR','../../helpers/helper','setGlobal','Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20','SESSION_STATUS','nLBpl','debug','qaKzg','env','currentTest','shouldScanTestForAccessibility','titlePath','timeout','getGlobal','1011135cgQGdm','ENV_VAR','FQqNL','join','eQUFW','YfCBj','accessibilityScanStarted','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','DOKaa','vkYNO','../../helpers/accessibility-automation/helper','now','jzTdY','Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20','qiQZA','lpqSI','WfPNk','Piemy','format','session_','browserstackSessionName','passed','YsWrX','4910301nICDdE','2456478fmuEaM','testAnalyticsId','4371FMxbFS','xFLua','NrFDC','DpoAc','RsKhD','jJztX','finally','thJwtToken','hRDsW','ywpOn','thBuildUuid','NaQxx','hJlvA','shift','Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20','dSCXo','NiKfH','end','znYUG','5334600otxqWL','afterAll','protocol','ezRad','BROWSERSTACK_TESTHUB_UUID','Izvie','isArray','message','jnMsV','Failed:\x20','yXkkB','appium:app','cVEjM','QlrXH','start','then','__sessionFailed','AvvgI','Performing\x20scan\x20before\x20saving\x20results','LqeXB','initQuit','testcase','executeAsyncScript','wjXQX','__platformCaps','__skipSessionName','cggTw','BROWSERSTACK_TESTHUB_JWT','beforeEach','mQqix','../../helpers/testhub/utils','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','\x20-\x20','__drivers','KhUxQ','info','Umbyn','sXaWx','../../helpers/performance/constants','isAccessibilityPlatform','\x22}}','afterTest','bstackA11yShouldScan','xmbdy','uGDoj','SDK_HOOK','push','percyCaptureMode','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','saveTestResults','iaHVP','browserstackTestName','SYNC','../../helpers/performance/performance-tester','asJuW','SAVE_RESULTS','zxINW','uXXcG','iSNwH','driverCleanup','PERFORM_SCAN','HCDkd','__error_messages__','err','Failed\x20to\x20store\x20session\x20name:\x20','fWqMc','https:','7hahuSL','mdEwL','measureWrapper','XgKlO','stringify','../../helpers/percy/utils','xSBCn','zZlsL','8YUIElS','rdDIy','1036180AJZxPs'];a35_0x51e1=function(){return _0x4f783d;};return a35_0x51e1();}exports['mochaHooks']={'beforeAll'(){const _0x4a0d33=a35_0x18c7a6,_0x21cbb5={'UhBhC':function(_0x114877,_0x727029,_0x5ea868,_0x1dfdba){return _0x114877(_0x727029,_0x5ea868,_0x1dfdba);},'FQqNL':_0x4a0d33(0x1be),'wjXQX':'\x20|\x20','uXXcG':function(_0x103b9c,_0x359d75,_0x255d91){return _0x103b9c(_0x359d75,_0x255d91);},'KhUxQ':_0x4a0d33(0x150),'eQUFW':function(_0x257aa4){return _0x257aa4();},'xmbdy':function(_0x21b4be,_0x310be7,_0x26c282){return _0x21b4be(_0x310be7,_0x26c282);},'hRDsW':'index','Vqwtn':_0x4a0d33(0x1c7)};PerformanceTester[_0x4a0d33(0x1cf)]();const _0x1d8971='browserstack internal helper hook';PerformanceTester[_0x4a0d33(0x1ae)](PerformanceSdkEvents[_0x4a0d33(0x195)],()=>{const _0x3fa374=_0x4a0d33,_0x1e1b26={'KkaDV':function(_0x16ad4b,_0x1b3a3b,_0x29e7e1,_0xc2bdc4){return _0x21cbb5['UhBhC'](_0x16ad4b,_0x1b3a3b,_0x29e7e1,_0xc2bdc4);},'DtawS':_0x21cbb5[_0x3fa374(0x1ef)],'asJuW':_0x21cbb5[_0x3fa374(0x17f)],'WchEY':function(_0x2d7472,_0x2d9478,_0x1b329a){const _0x56ffa8=_0x3fa374;return _0x21cbb5[_0x56ffa8(0x1a2)](_0x2d7472,_0x2d9478,_0x1b329a);},'cVEjM':_0x21cbb5[_0x3fa374(0x18a)],'lpqSI':function(_0x8cd249){const _0x1904f0=_0x3fa374;return _0x21cbb5[_0x1904f0(0x1f1)](_0x8cd249);}};global[_0x3fa374(0x1a7)]=[],global[_0x3fa374(0x178)]=![],global[_0x3fa374(0x1a4)]=async()=>{const _0x3b8b8e=_0x3fa374;let _0x3e7087=![];try{await global['__drivers'][0x0][_0x3b8b8e(0x14e)],_0x3e7087=!![],global['__sessionFailed']?await _0x1e1b26['KkaDV'](markSessionStatus,global[_0x3b8b8e(0x189)][0x0],_0x1e1b26['DtawS'],global[_0x3b8b8e(0x1a7)]['join'](_0x1e1b26[_0x3b8b8e(0x19f)])):await _0x1e1b26['WchEY'](markSessionStatus,global[_0x3b8b8e(0x189)][0x0],_0x1e1b26[_0x3b8b8e(0x174)]);}catch(_0x3b0428){logger[_0x3b8b8e(0x1e5)]('Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20'+_0x3b0428);}global['__error_messages__']=[],global[_0x3b8b8e(0x178)]=![];if(_0x3e7087)try{try{_0x1e1b26[_0x3b8b8e(0x14a)](shouldProcessEventForTesthub)&&(global[_0x3b8b8e(0x189)][0x0]&&await _0x1e1b26[_0x3b8b8e(0x1d6)](sendPlatformDetails,global[_0x3b8b8e(0x189)][0x0],this[_0x3b8b8e(0x1e8)]?this[_0x3b8b8e(0x1e8)][_0x3b8b8e(0x154)]:null));}catch(_0x460696){logger['debug'](_0x3b8b8e(0x163)+_0x460696);}await global[_0x3b8b8e(0x189)][0x0][_0x3b8b8e(0x17c)]();}catch(_0x3a6375){logger[_0x3b8b8e(0x1e5)](_0x3b8b8e(0x1ce)+_0x3a6375);}};},{'platform':_0x21cbb5[_0x4a0d33(0x193)](nestedKeyValue,global[_0x4a0d33(0x180)],[_0x21cbb5[_0x4a0d33(0x15d)]]),'hookType':_0x21cbb5[_0x4a0d33(0x1bf)]})();},'beforeEach'(_0x20febb){const _0x5d55db=a35_0x18c7a6,_0x42bb2c={'zZlsL':function(_0xe1e923,_0xc2cabf){return _0xe1e923>_0xc2cabf;},'eWUon':function(_0x5830d3,_0x5ea9f5){return _0x5830d3>_0x5ea9f5;},'tDLwD':_0x5d55db(0x188),'iaHVP':function(_0x488a9b,_0x31616a,_0x2c87c3){return _0x488a9b(_0x31616a,_0x2c87c3);},'ezRad':_0x5d55db(0x192),'YfCBj':function(_0x5d8a48){return _0x5d8a48();},'spDzl':function(_0x4e34bf,_0x3bd005){return _0x4e34bf>_0x3bd005;},'pGmED':_0x5d55db(0x18f),'UreSZ':function(_0x4b1bd7,_0x4636b0){return _0x4b1bd7===_0x4636b0;},'GhJon':_0x5d55db(0x1cc),'uGDoj':function(_0x5e75d9,_0x22a35c){return _0x5e75d9===_0x22a35c;},'jzTdY':_0x5d55db(0x1ab),'TBoiD':'Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','dSCXo':_0x5d55db(0x1bd),'hqgcS':_0x5d55db(0x19c),'ZaAZO':'index','kwMTY':_0x5d55db(0x184)};globals[_0x5d55db(0x1e1)](_0x42bb2c['hqgcS'],this[_0x5d55db(0x1e8)][_0x5d55db(0x1ea)]()[_0x5d55db(0x1f0)](_0x42bb2c['tDLwD'])),PerformanceTester['measureWrapper'](PerformanceSdkEvents[_0x5d55db(0x195)],()=>{const _0xffa239=_0x5d55db,_0x37a646={'OooWc':function(_0x4628e7,_0x1c5f58){const _0x3640c9=a35_0x3b60;return _0x42bb2c[_0x3640c9(0x1b3)](_0x4628e7,_0x1c5f58);},'VnBjQ':function(_0xbd5184,_0x2e6538){return _0x42bb2c['eWUon'](_0xbd5184,_0x2e6538);},'uvBEc':_0x42bb2c[_0xffa239(0x1dc)],'qaKzg':function(_0x4c766a,_0x41d1f8,_0x3701ab){return _0x42bb2c['iaHVP'](_0x4c766a,_0x41d1f8,_0x3701ab);},'jnMsV':_0x42bb2c[_0xffa239(0x16b)],'sXaWx':function(_0x4655f0){const _0x693d60=_0xffa239;return _0x42bb2c[_0x693d60(0x1f2)](_0x4655f0);},'AvvgI':function(_0x24b943,_0x33fbfd){return _0x42bb2c['spDzl'](_0x24b943,_0x33fbfd);},'LqeXB':_0x42bb2c['pGmED'],'NrFDC':function(_0x514897,_0x1c10e3){const _0x3c411d=_0xffa239;return _0x42bb2c[_0x3c411d(0x1cb)](_0x514897,_0x1c10e3);},'PzqzF':_0x42bb2c['GhJon'],'kGmdy':function(_0x458465,_0xfc29e1){const _0x1140fa=_0xffa239;return _0x42bb2c[_0x1140fa(0x194)](_0x458465,_0xfc29e1);},'NiKfH':_0x42bb2c[_0xffa239(0x147)],'fWqMc':_0x42bb2c['TBoiD'],'YsWrX':_0x42bb2c[_0xffa239(0x164)],'WfPNk':function(_0x5016be){const _0x4f7f39=_0xffa239;return _0x42bb2c[_0x4f7f39(0x1f2)](_0x5016be);},'dCHJd':function(_0x3833e1){return _0x42bb2c['YfCBj'](_0x3833e1);}},_0xbaa86c='browserstack internal helper hook';new Promise(async _0xe38ffa=>{const _0x509d69=_0xffa239;let _0x2e745f=!![];try{_0x37a646['OooWc'](global[_0x509d69(0x189)]['length'],0x1)&&(await global['driverCleanup'](),global[_0x509d69(0x189)]['shift']()),_0x37a646['VnBjQ'](global['__drivers'][0x0]['quitCount_'],0x0)&&(_0x2e745f=![],await global[_0x509d69(0x1a4)]());}catch(_0x3d84e2){logger[_0x509d69(0x1e5)](_0x509d69(0x1ce)+_0x3d84e2);}try{Array[_0x509d69(0x16e)](global[_0x509d69(0x189)])&&global[_0x509d69(0x189)][0x0]&&(global[_0x509d69(0x189)][0x0]['browserstackSessionName']=this[_0x509d69(0x1e8)]['titlePath']()['join'](_0x37a646[_0x509d69(0x1d0)])),global[_0x509d69(0x14f)]=this[_0x509d69(0x1e8)]['titlePath']()['join'](_0x37a646['uvBEc']);}catch(_0x1bd1ea){logger[_0x509d69(0x1e5)](_0x509d69(0x1a9)+_0x1bd1ea);}this[_0x509d69(0x1e8)][_0x509d69(0x1e9)]=_0x37a646[_0x509d69(0x1e6)](shouldScanTestForAccessibility,this[_0x509d69(0x1e8)]['titlePath'](),!![]),globals[_0x509d69(0x1e1)](_0x37a646[_0x509d69(0x170)],this[_0x509d69(0x1e8)][_0x509d69(0x1e9)]),this[_0x509d69(0x1e8)][_0x509d69(0x1f3)]=!![];if(_0x37a646[_0x509d69(0x18d)](isAccessibilityAutomationSession)&&_0x2e745f&&Array[_0x509d69(0x16e)](global[_0x509d69(0x189)])&&_0x37a646[_0x509d69(0x179)](global['__drivers'][_0x509d69(0x1c1)],0x0)&&globals[_0x509d69(0x1ec)](_0x37a646[_0x509d69(0x17b)]))try{const _0x5120e5=await global[_0x509d69(0x189)][0x0]['session_'];if(_0x5120e5){let _0x5183dd=!![];const _0x1496c7=await global['__drivers'][0x0]['getCurrentUrl']();let _0x253666;try{_0x253666=new URL(_0x1496c7);}catch(_0x4af059){_0x5183dd=![];}_0x5183dd=_0x37a646[_0x509d69(0x157)](_0x253666[_0x509d69(0x16a)],_0x37a646['PzqzF'])||_0x37a646[_0x509d69(0x1c8)](_0x253666[_0x509d69(0x16a)],_0x37a646[_0x509d69(0x165)]),_0x5183dd&&(this['currentTest'][_0x509d69(0x1e9)]&&logger['info'](_0x37a646[_0x509d69(0x1aa)])),this[_0x509d69(0x1e8)]['accessibilityScanStarted']=this['currentTest'][_0x509d69(0x1e9)],this['currentTest'][_0x509d69(0x1e9)]&&logger[_0x509d69(0x18b)](_0x37a646[_0x509d69(0x151)]);}}catch(_0x2791b6){logger[_0x509d69(0x1b9)](_0x509d69(0x199)+util[_0x509d69(0x14d)](_0x2791b6));}_0x37a646[_0x509d69(0x14b)](_0xe38ffa);})['then'](()=>{const _0x371f6e=_0xffa239;_0x37a646[_0x371f6e(0x1d9)](_0x20febb);});},{'platform':_0x42bb2c[_0x5d55db(0x19b)](nestedKeyValue,global['__platformCaps'],[_0x42bb2c[_0x5d55db(0x1dd)]]),'hookType':_0x42bb2c['kwMTY']})();},'afterEach'(_0xdea63b){const _0x40ae25=a35_0x18c7a6,_0x525989={'XgKlO':function(_0x5e6136,_0x54f426){return _0x5e6136>_0x54f426;},'mUQpw':function(_0x109e0f,_0x39ff48){return _0x109e0f===_0x39ff48;},'qiQZA':_0x40ae25(0x17d),'xSBCn':function(_0x10f782,_0x4a5760){return _0x10f782>_0x4a5760;},'Izvie':_0x40ae25(0x173),'AEkJo':function(_0x3dd9ea,_0x59be6b,_0x408dc3,_0x30a633){return _0x3dd9ea(_0x59be6b,_0x408dc3,_0x30a633);},'rdDIy':_0x40ae25(0x18f),'ywpOn':_0x40ae25(0x192),'VQVKq':_0x40ae25(0x198),'hFmjr':_0x40ae25(0x17a),'jJztX':_0x40ae25(0x191),'nwXTG':_0x40ae25(0x187),'vkYNO':function(_0x13e545){return _0x13e545();},'nLBpl':function(_0x2b3bcc,_0x5a4f80,_0x4d8075){return _0x2b3bcc(_0x5a4f80,_0x4d8075);},'HUpAL':function(_0x230359){return _0x230359();},'Umbyn':'debug','DpoAc':function(_0x3c8d7f,_0x3eb726){return _0x3c8d7f>_0x3eb726;},'iSNwH':_0x40ae25(0x188),'HCDkd':function(_0x2eff2b,_0x119b4b){return _0x2eff2b!==_0x119b4b;},'PEyjT':_0x40ae25(0x150),'hJlvA':function(_0x4f6a84,_0x541749,_0x161a12){return _0x4f6a84(_0x541749,_0x161a12);},'mQqix':function(_0x1a1c1c,_0x32eecc){return _0x1a1c1c+_0x32eecc;},'RtyWr':_0x40ae25(0x171),'NsWEr':_0x40ae25(0x1b9),'znYUG':function(_0x575185,_0x3d6e1c,_0x5b08cf){return _0x575185(_0x3d6e1c,_0x5b08cf);},'RsKhD':'Passed','CMaLu':'info','Ekhcn':_0x40ae25(0x1c6),'wuGMT':'index','cggTw':'afterEach'},_0x4c0fcc='browserstack internal helper hook';this[_0x40ae25(0x1eb)](TEST_FRAMEWORK_HOOK_TIMEOUT[_0x525989['Ekhcn']]),global['sessionName']=this[_0x40ae25(0x1e8)]['titlePath']()[_0x40ae25(0x1f0)](_0x525989[_0x40ae25(0x1a3)]),PerformanceTester['measureWrapper'](PerformanceSdkEvents[_0x40ae25(0x195)],()=>{const _0x2fef5c=_0x40ae25,_0x22d945={'tijdj':_0x525989[_0x2fef5c(0x1a3)],'NaQxx':function(_0x213b8a,_0x4e4839){const _0x59c7bb=_0x2fef5c;return _0x525989[_0x59c7bb(0x1a6)](_0x213b8a,_0x4e4839);},'RSxfR':_0x525989[_0x2fef5c(0x1b7)],'OdXSk':function(_0x44cdeb,_0x4a8c91,_0x407d04){const _0x263fe1=_0x2fef5c;return _0x525989[_0x263fe1(0x161)](_0x44cdeb,_0x4a8c91,_0x407d04);},'mdEwL':function(_0xdbf675,_0x2aaf18){const _0x971674=_0x2fef5c;return _0x525989[_0x971674(0x185)](_0xdbf675,_0x2aaf18);},'Bzagm':_0x525989[_0x2fef5c(0x1d1)],'Piemy':_0x525989['NsWEr'],'xFLua':function(_0x1ac6af,_0x3b9187,_0x49bf98){const _0x5d201e=_0x2fef5c;return _0x525989[_0x5d201e(0x167)](_0x1ac6af,_0x3b9187,_0x49bf98);},'eoknJ':_0x525989[_0x2fef5c(0x159)],'MvSJO':_0x525989['CMaLu']},_0x2ddd26=async(_0x101a0b,_0x1301e1)=>{const _0x4f1916=_0x2fef5c;await global[_0x4f1916(0x189)][0x0]['executeScript']('browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:'+_0x101a0b+',\x22level\x22:\x20\x22'+_0x1301e1+_0x4f1916(0x190));};new Promise(async _0x370c28=>{const _0x46c447=_0x2fef5c;try{_0x525989[_0x46c447(0x1af)](global[_0x46c447(0x189)][_0x46c447(0x1c1)],0x1)&&(await global[_0x46c447(0x1a4)](),global[_0x46c447(0x189)][_0x46c447(0x162)](),global[_0x46c447(0x1a7)]=[],global[_0x46c447(0x178)]=![]);try{if(global['percy']&&_0x525989[_0x46c447(0x1d2)](global[_0x46c447(0x197)],_0x525989[_0x46c447(0x149)])&&global['__drivers'][0x0]){const _0x5d70da=_0x525989[_0x46c447(0x1b2)](global[_0x46c447(0x1cd)]['length'],0x0)?!!global['capabilities'][0x0][_0x46c447(0x1c9)]||!!global['capabilities'][0x0][_0x525989[_0x46c447(0x16d)]]:![],_0x79c59a={};_0x79c59a[_0x46c447(0x1c9)]=_0x5d70da,await _0x525989[_0x46c447(0x1d4)](percyAutoCapture,global[_0x46c447(0x189)][0x0],_0x525989[_0x46c447(0x149)],_0x79c59a);}}catch(_0x2cb2dd){logger['debug'](_0x46c447(0x1d3)+_0x2cb2dd);}!global[_0x46c447(0x181)]&&(await PerformanceTester[_0x46c447(0x1ae)](PerformanceAutEvents['SESSION_NAME'],async()=>{const _0x4cd0d2=_0x46c447;await global[_0x4cd0d2(0x189)][0x0]['executeScript']('browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20'+JSON[_0x4cd0d2(0x1b0)](this[_0x4cd0d2(0x1e8)][_0x4cd0d2(0x1ea)]()[_0x4cd0d2(0x1f0)](_0x22d945['tijdj']))+'}}');})(),global[_0x46c447(0x189)][0x0][_0x46c447(0x1da)]=!![]),await PerformanceTester['measureWrapper'](PerformanceAutEvents[_0x46c447(0x1e3)],async()=>{const _0x4edac9=_0x46c447,_0x28de32=_0x22d945[_0x4edac9(0x160)](this[_0x4edac9(0x1e8)][_0x4edac9(0x1c3)],_0x22d945[_0x4edac9(0x1df)]);_0x28de32?(global[_0x4edac9(0x178)]=!![],global[_0x4edac9(0x1a7)][_0x4edac9(0x196)](this[_0x4edac9(0x1e8)][_0x4edac9(0x1a8)][_0x4edac9(0x16f)]),await _0x22d945[_0x4edac9(0x1bc)](_0x2ddd26,JSON[_0x4edac9(0x1b0)](_0x22d945[_0x4edac9(0x1ad)](_0x22d945['Bzagm'],this[_0x4edac9(0x1e8)][_0x4edac9(0x1a8)][_0x4edac9(0x16f)])),_0x22d945[_0x4edac9(0x14c)])):await _0x22d945[_0x4edac9(0x156)](_0x2ddd26,JSON['stringify'](_0x22d945['eoknJ']),_0x22d945['MvSJO']);})();}catch(_0x3e8e74){logger[_0x46c447(0x1e5)](_0x46c447(0x148)+_0x3e8e74);}try{if(this['currentTest']['accessibilityScanStarted']&&globals[_0x46c447(0x1ec)](_0x525989[_0x46c447(0x1b5)])&&globals[_0x46c447(0x1ec)](_0x525989[_0x46c447(0x15e)])){logger[_0x46c447(0x18b)](_0x525989['VQVKq']);const _0x4681d0={};_0x4681d0['thTestRunUuid']=this[_0x46c447(0x1e8)]['testAnalyticsId'],_0x4681d0[_0x46c447(0x15f)]=process[_0x46c447(0x1e7)][testHubConstants[_0x46c447(0x1ee)][_0x46c447(0x16c)]],_0x4681d0[_0x46c447(0x15c)]=process['env'][testHubConstants[_0x46c447(0x1ee)][_0x46c447(0x183)]];const _0x2a443c=_0x4681d0;logger[_0x46c447(0x1e5)](_0x46c447(0x1f4)+JSON[_0x46c447(0x1b0)](_0x2a443c)),logger[_0x46c447(0x1e5)](_0x525989['hFmjr']);const _0x281f95={};_0x281f95[_0x46c447(0x1de)]=_0x525989[_0x46c447(0x15a)],await PerformanceTester[_0x46c447(0x1ae)](PerformanceA11yEvents[_0x46c447(0x1a5)],async()=>{const _0x359411=_0x46c447;logger['debug'](util[_0x359411(0x14d)](await global[_0x359411(0x189)][0x0][_0x359411(0x17e)](scripts['performScan'],{'method':global[_0x359411(0x14f)]})));},_0x281f95)(),await PerformanceTester['measureWrapper'](PerformanceA11yEvents[_0x46c447(0x1a0)],async()=>{const _0x1ee5ee=_0x46c447;await global[_0x1ee5ee(0x189)][0x0]['executeAsyncScript'](scripts[_0x1ee5ee(0x19a)],_0x2a443c);})(),logger[_0x46c447(0x18b)](_0x525989['nwXTG']);}}catch(_0x3d16e1){logger[_0x46c447(0x1b9)]('Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20'+this[_0x46c447(0x1e8)][_0x46c447(0x1ea)]()+_0x46c447(0x1ca),_0x3d16e1);}try{try{if(_0x525989[_0x46c447(0x144)](shouldProcessEventForTesthub)){global[_0x46c447(0x189)][0x0]&&await _0x525989[_0x46c447(0x1e4)](sendPlatformDetails,global[_0x46c447(0x189)][0x0],this['currentTest']?this[_0x46c447(0x1e8)][_0x46c447(0x154)]:null);if(_0x525989['HUpAL'](isBrowserstackInfra)){PerformanceTester[_0x46c447(0x176)](PerformanceO11yEvents[_0x46c447(0x19d)]);const _0x3d29f6='ObservabilitySync:'+Date[_0x46c447(0x146)]();await _0x525989[_0x46c447(0x1e4)](_0x2ddd26,JSON['stringify'](_0x3d29f6),_0x525989[_0x46c447(0x18c)]),PerformanceTester[_0x46c447(0x166)](PerformanceO11yEvents[_0x46c447(0x19d)]);}}}catch(_0x48d3eb){logger[_0x46c447(0x1e5)](_0x46c447(0x1e2)+_0x48d3eb),PerformanceTester[_0x46c447(0x166)](PerformanceO11yEvents[_0x46c447(0x19d)],![],_0x48d3eb);}_0x525989[_0x46c447(0x158)](global[_0x46c447(0x189)][0x0][_0x46c447(0x1d7)],0x0)&&await global[_0x46c447(0x1a4)]();}catch(_0xcc100f){logger[_0x46c447(0x1e5)](_0x46c447(0x1ce)+_0xcc100f);}_0x525989[_0x46c447(0x144)](_0x370c28);})[_0x2fef5c(0x177)](()=>{const _0x374142=_0x2fef5c;_0x525989[_0x374142(0x1db)](_0xdea63b);});},{'platform':_0x525989['znYUG'](nestedKeyValue,global['__platformCaps'],[_0x525989['wuGMT']]),'hookType':_0x525989[_0x40ae25(0x182)]})();},'afterAll'(_0x270764){const _0x1a7524=a35_0x18c7a6,_0x2fcef2={'zxINW':function(_0x4e269c){return _0x4e269c();},'QlrXH':_0x1a7524(0x1c6),'sddSC':function(_0x2e95dd,_0x4f8cef,_0x19da18){return _0x2e95dd(_0x4f8cef,_0x19da18);},'HmnGz':'index','yXkkB':_0x1a7524(0x169)},_0x24f37e='browserstack internal helper hook';this[_0x1a7524(0x1eb)](TEST_FRAMEWORK_HOOK_TIMEOUT[_0x2fcef2[_0x1a7524(0x175)]]),PerformanceTester[_0x1a7524(0x1ae)](PerformanceSdkEvents[_0x1a7524(0x195)],()=>{const _0x58fd96=_0x1a7524,_0x59df13={'DOKaa':function(_0x274f05){const _0x2f2deb=a35_0x3b60;return _0x2fcef2[_0x2f2deb(0x1a1)](_0x274f05);}};new Promise(async _0x499535=>{const _0xa918e9=a35_0x3b60;await global[_0xa918e9(0x1a4)](),_0x59df13[_0xa918e9(0x1f5)](_0x499535);})['then']()[_0x58fd96(0x15b)](()=>{const _0x3d2b3e=_0x58fd96;_0x59df13[_0x3d2b3e(0x1f5)](_0x270764);});},{'platform':_0x2fcef2['sddSC'](nestedKeyValue,global[_0x1a7524(0x180)],[_0x2fcef2[_0x1a7524(0x1c0)]]),'hookType':_0x2fcef2[_0x1a7524(0x172)]})();}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';
|
|
2
|
+
'use strict';const a36_0x159265=a36_0x625c;(function(_0x274485,_0x485303){const _0x3226b1=a36_0x625c,_0x1d427c=_0x274485();while(!![]){try{const _0x3d0768=parseInt(_0x3226b1(0x1dd))/0x1+-parseInt(_0x3226b1(0x1ed))/0x2+-parseInt(_0x3226b1(0x1d7))/0x3*(-parseInt(_0x3226b1(0x1af))/0x4)+parseInt(_0x3226b1(0x1d8))/0x5+-parseInt(_0x3226b1(0x1cc))/0x6*(parseInt(_0x3226b1(0x1db))/0x7)+-parseInt(_0x3226b1(0x1c4))/0x8*(-parseInt(_0x3226b1(0x1a8))/0x9)+-parseInt(_0x3226b1(0x1de))/0xa*(parseInt(_0x3226b1(0x1b3))/0xb);if(_0x3d0768===_0x485303)break;else _0x1d427c['push'](_0x1d427c['shift']());}catch(_0x3ae930){_0x1d427c['push'](_0x1d427c['shift']());}}}(a36_0x4ed6,0xf3a17));const fs=require('fs'),path=require(a36_0x159265(0x1c8)),{spawn}=require(a36_0x159265(0x1d9)),logger=require('../../helpers/logger')[a36_0x159265(0x1c6)],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require(a36_0x159265(0x1b9)),constants=require('../utils/constants'),getUserNightwatchConfigs=(_0x5b6acb,_0x29f7f5)=>{const _0xfff6e7=a36_0x159265,_0x191a1d={'WoRjc':_0xfff6e7(0x1b4),'DWfiT':_0xfff6e7(0x1ca),'HLxTW':function(_0x31d1cc,_0x120466){return _0x31d1cc(_0x120466);},'khyaN':_0xfff6e7(0x1bd)};let _0x1798d4=null,_0x5d7426={};const _0x3fdc7b=_0x29f7f5[_0xfff6e7(0x1be)](_0x3bb266=>_0x3bb266===_0xfff6e7(0x1aa));if(!helper['isUndefined'](_0x5b6acb[_0xfff6e7(0x1a4)])&&fs['existsSync'](path['join'](process[_0xfff6e7(0x1e2)](),_0x5b6acb[_0xfff6e7(0x1a4)])))_0x1798d4=path[_0xfff6e7(0x1b0)](process[_0xfff6e7(0x1e2)](),_0x5b6acb[_0xfff6e7(0x1a4)]),_0x29f7f5[_0xfff6e7(0x1d2)](_0x3fdc7b,0x2);else{if(fs[_0xfff6e7(0x1bc)](path['join'](process[_0xfff6e7(0x1e2)](),_0x191a1d[_0xfff6e7(0x1ec)])))_0x1798d4=path[_0xfff6e7(0x1b0)](process[_0xfff6e7(0x1e2)](),_0x191a1d[_0xfff6e7(0x1ec)]);else fs['existsSync'](path['join'](process['cwd'](),_0x191a1d[_0xfff6e7(0x1c5)]))&&(_0x1798d4=path[_0xfff6e7(0x1b0)](process[_0xfff6e7(0x1e2)](),_0x191a1d['DWfiT']));}return _0x1798d4?(logger[_0xfff6e7(0x1ce)](_0xfff6e7(0x1ab)+_0x1798d4),_0x5d7426=_0x191a1d[_0xfff6e7(0x1ac)](require,_0x1798d4)):logger[_0xfff6e7(0x1ce)](_0x191a1d['khyaN']),_0x5d7426;},removeExistingEnvs=_0x51f1da=>{const _0x57e318=a36_0x159265,_0x28453a={};_0x28453a[_0x57e318(0x1c2)]=function(_0x281b8e,_0x1b1b04){return _0x281b8e>_0x1b1b04;};const _0x1fd4a6=_0x28453a;let _0x36a0a6=_0x51f1da[_0x57e318(0x1be)](_0x60c510=>_0x60c510===_0x57e318(0x1c9));_0x1fd4a6[_0x57e318(0x1c2)](_0x36a0a6,-0x1)&&_0x51f1da['splice'](_0x36a0a6,0x2),_0x36a0a6=_0x51f1da[_0x57e318(0x1be)](_0x58ae8c=>_0x58ae8c==='-e'),_0x1fd4a6['bUINx'](_0x36a0a6,-0x1)&&_0x51f1da[_0x57e318(0x1d2)](_0x36a0a6,0x2);};function a36_0x4ed6(){const _0x2c45ec=['kSzLc','splice','bLzuF','Ujwba','Deleting\x20','nightwatch','1338ZsNOwK','4037645AsmwuL','child_process','split','64939EFLwuq','close','1611993rNIqQp','910XfKMEx','platforms','CUwHp','trim','cwd','YbhbI','ieQms','host','now','push','webdriver','test_settings','dugvd','VKDfu','WoRjc','3868780JlyGsV','config','PREQz','forEach','platform','117BSanfZ','getPlatformName','--config','Getting\x20your\x20nightwatch\x20configs\x20from\x20','HLxTW','child\x20process\x20exited\x20with\x20code\x20','port','668ePohjY','join','nightwatch-browserstack.json','test','17039VsvOXr','nightwatch.conf.js','haagI','stringify','exports','vIAbH','../../helpers/helper','length','writeFileSync','existsSync','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','findIndex','aSJhH','ktrIL','URPqq','bUINx','unlinkSync','1041536sekSDL','DWfiT','winstonLogger','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','path','--env','nightwatch.json','hub.browserstack.com','720WgdRod','start_process','info','env','tYpjZ'];a36_0x4ed6=function(){return _0x2c45ec;};return a36_0x4ed6();}function a36_0x625c(_0xe7e737,_0xc6404){const _0x4ed664=a36_0x4ed6();return a36_0x625c=function(_0x625c5d,_0x975252){_0x625c5d=_0x625c5d-0x1a4;let _0x2f48c0=_0x4ed664[_0x625c5d];return _0x2f48c0;},a36_0x625c(_0xe7e737,_0xc6404);}function run(_0x1e2645,_0x148588,_0x3f5f6f){const _0x5e9fd9=a36_0x159265,_0x183d98={'bLzuF':_0x5e9fd9(0x1d6),'PREQz':function(_0x3bd0f5,_0x22b9a2){return _0x3bd0f5+_0x22b9a2;},'ieQms':_0x5e9fd9(0x1e9),'Ujwba':function(_0xd173ee,_0x5c5827,_0x57f4fe){return _0xd173ee(_0x5c5827,_0x57f4fe);},'ktrIL':_0x5e9fd9(0x1cb),'VKDfu':_0x5e9fd9(0x1c7),'aSJhH':function(_0x174ba8,_0x231ab7){return _0x174ba8===_0x231ab7;},'tYpjZ':_0x5e9fd9(0x1b1),'CUwHp':function(_0x5b6d38,_0x4a1fdf){return _0x5b6d38(_0x4a1fdf);},'vIAbH':function(_0xcdd10c,_0x808b80,_0x310d31,_0xf532e9){return _0xcdd10c(_0x808b80,_0x310d31,_0xf532e9);},'dugvd':'nightwatch.cmd','kSzLc':_0x5e9fd9(0x1aa),'URPqq':_0x5e9fd9(0x1c9),'YbhbI':'inherit','haagI':_0x5e9fd9(0x1dc)};if(!_0x3f5f6f[_0x5e9fd9(0x1a4)])return;const _0x17b381=_0x183d98[_0x5e9fd9(0x1d4)](getUserNightwatchConfigs,_0x1e2645,_0x148588),_0x1a7dc4={};_0x1a7dc4[_0x5e9fd9(0x1cd)]=![];const _0x2c5385={};_0x2c5385[_0x5e9fd9(0x1e5)]=_0x183d98[_0x5e9fd9(0x1c0)],_0x2c5385[_0x5e9fd9(0x1ae)]=0x1bb;const _0x1197e6={};_0x1197e6[_0x5e9fd9(0x1e8)]=_0x1a7dc4,_0x1197e6['selenium']=_0x2c5385;const _0x253bb2=_0x1197e6;logger['info'](_0x183d98[_0x5e9fd9(0x1eb)]);const _0xe4ca5f={..._0x17b381},_0x16e77e=_0xe4ca5f,_0x53d176=helper['useW3C'](_0x3f5f6f[_0x5e9fd9(0x1a4)]),_0x2f38c5=[];_0x3f5f6f['config'][_0x5e9fd9(0x1df)]['forEach']((_0x49a684,_0x8621bc)=>{const _0x20f905=_0x5e9fd9;_0x53d176?_0x2f38c5[_0x20f905(0x1e7)](helper['modifyBrowserStackW3CCaps'](_0x3f5f6f[_0x20f905(0x1a4)],_0x183d98[_0x20f905(0x1d3)],_0x8621bc)):_0x2f38c5['push'](helper['modifyBrowserStackCaps'](_0x3f5f6f[_0x20f905(0x1a4)],_0x183d98[_0x20f905(0x1d3)],_0x8621bc));});const _0x381087={},_0x423366=[];_0x1e2645[_0x5e9fd9(0x1cf)]=_0x1e2645[_0x5e9fd9(0x1cf)]||_0x1e2645['e'];const _0x48fc05=_0x1e2645['env']?_0x1e2645[_0x5e9fd9(0x1cf)][_0x5e9fd9(0x1e1)]()[_0x5e9fd9(0x1da)](',')['map'](_0x32fca8=>_0x32fca8[_0x5e9fd9(0x1e1)]())['filter'](_0x16a3ce=>_0x16a3ce!==''):[''];_0x183d98[_0x5e9fd9(0x1bf)](_0x48fc05[_0x5e9fd9(0x1ba)],0x0)&&_0x48fc05[_0x5e9fd9(0x1e7)]('');_0x48fc05['forEach'](_0x1065c3=>{const _0x57f0cc=_0x5e9fd9;_0x2f38c5[_0x57f0cc(0x1a6)](_0x28c208=>{const _0x11d61d=_0x57f0cc;let _0x28de5a=_0x183d98[_0x11d61d(0x1a5)](helper[_0x11d61d(0x1a9)](_0x28c208,'_'),'_'+Date[_0x11d61d(0x1e6)]());_0x1065c3&&(_0x28de5a+='_'+_0x1065c3);if(_0x1065c3&&(!_0x17b381[_0x183d98[_0x11d61d(0x1e4)]]||!_0x17b381[_0x183d98[_0x11d61d(0x1e4)]][_0x1065c3]))return;const _0x435ae2={..._0x253bb2};_0x435ae2['desiredCapabilities']=_0x28c208;const _0x1bba8e=_0x435ae2;_0x381087[_0x28de5a]=_0x1065c3?helper['mergeDeep'](_0x17b381[_0x183d98[_0x11d61d(0x1e4)]][_0x1065c3],_0x1bba8e):_0x1bba8e,_0x423366[_0x11d61d(0x1e7)](_0x28de5a);});});!_0x16e77e[_0x5e9fd9(0x1e9)]&&(_0x16e77e[_0x5e9fd9(0x1e9)]={});_0x16e77e[_0x5e9fd9(0x1e9)]={..._0x16e77e[_0x5e9fd9(0x1e9)],..._0x381087};const _0x15875c=path[_0x5e9fd9(0x1b0)](__dirname,_0x183d98[_0x5e9fd9(0x1d0)]);fs[_0x5e9fd9(0x1bb)](_0x15875c,JSON[_0x5e9fd9(0x1b6)](_0x16e77e)),_0x183d98[_0x5e9fd9(0x1e0)](removeExistingEnvs,_0x148588);const _0x57c0b3=_0x183d98[_0x5e9fd9(0x1b8)](spawn,/^win/[_0x5e9fd9(0x1b2)](process[_0x5e9fd9(0x1a7)])?_0x183d98[_0x5e9fd9(0x1ea)]:_0x183d98[_0x5e9fd9(0x1d3)],[_0x183d98[_0x5e9fd9(0x1d1)],_0x15875c,..._0x148588['slice'](0x1),_0x183d98[_0x5e9fd9(0x1c1)],_0x423366[_0x5e9fd9(0x1b0)](',')],{'stdio':_0x183d98[_0x5e9fd9(0x1e3)]});_0x57c0b3['on'](_0x183d98[_0x5e9fd9(0x1b5)],async _0x36a4a1=>{const _0x4d780f=_0x5e9fd9;logger['debug'](_0x4d780f(0x1ad)+_0x36a4a1),logger[_0x4d780f(0x1ce)](_0x4d780f(0x1d5)+_0x15875c),fs[_0x4d780f(0x1c3)](_0x15875c);});}module[a36_0x159265(0x1b7)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a37_0x101dc6=a37_0x3230;(function(_0x5b3960,_0x5d2717){const _0x227887=a37_0x3230,_0x4fa6ff=_0x5b3960();while(!![]){try{const _0x30fb0c=-parseInt(_0x227887(0x1ac))/0x1*(parseInt(_0x227887(0x1a9))/0x2)+parseInt(_0x227887(0x144))/0x3+parseInt(_0x227887(0x1a8))/0x4*(-parseInt(_0x227887(0x187))/0x5)+parseInt(_0x227887(0x16f))/0x6*(-parseInt(_0x227887(0x164))/0x7)+-parseInt(_0x227887(0x1a3))/0x8*(-parseInt(_0x227887(0x149))/0x9)+parseInt(_0x227887(0x163))/0xa*(-parseInt(_0x227887(0x1a5))/0xb)+parseInt(_0x227887(0x1af))/0xc;if(_0x30fb0c===_0x5d2717)break;else _0x4fa6ff['push'](_0x4fa6ff['shift']());}catch(_0x44cc2a){_0x4fa6ff['push'](_0x4fa6ff['shift']());}}}(a37_0x4126,0xe0697));function a37_0x3230(_0x58f80d,_0x5c01b0){const _0x41265a=a37_0x4126();return a37_0x3230=function(_0x323035,_0x6aa647){_0x323035=_0x323035-0x13b;let _0x55683f=_0x41265a[_0x323035];return _0x55683f;},a37_0x3230(_0x58f80d,_0x5c01b0);}const util=require(a37_0x101dc6(0x17d)),logger=require(a37_0x101dc6(0x160))[a37_0x101dc6(0x15f)],{isAccessibilityAutomationSession}=require(a37_0x101dc6(0x158)),{isUndefined,isBrowserstackInfra}=require(a37_0x101dc6(0x17b)),scripts=require(a37_0x101dc6(0x184)),PerformanceTester=require('../../helpers/performance/performance-tester'),{A11Y_EVENTS:PerformanceA11yEvents}=require(a37_0x101dc6(0x166));function a37_0x4126(){const _0x32f61d=['../../helpers/performance/constants','UkCDE','browser','KkNQU','scannerProcessingTimeout','uNjPG','includes','QKexF','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','5344110LVYmBW','platformValidation','accessibilityOptions','NcyLP','bstackSdkArgs','executeScript','OcPWU','env','accessibilityOptions.wcagVersion','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','bestPractice','getAccessibilityResults','../../helpers/helper','currentTest','util','HTAdx','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','ZKgCR','playwright-chromium','KPUia','workerInfo','../../helpers/accessibility-automation/scripts','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','debug','5vzVMSW','latest','replace','executeAsyncScript','KsqHe','use','(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','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','measureWrapper','command','wsoJS','vFBHJ','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','kXskQ','jWBta','browser_version','wcagVersion','browserName','fNIvG','VaEyL','McbQC','KmQBs','(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','MImAQ','Playwright','accessibilityOptions.includeIssueType.needsReview','WGQOz','pDZuR','1575752WpcIxi','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','11BXOdzG','stringify','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','3780692eewxUD','196978rFQbYo','ZBpho','nJELo','12UvGsej','wsEndpoint','No\x20accessibility\x20results\x20were\x20found.','65629560LumKIY','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x20100.','WebDriver','PERFORM_SCAN','fdylg','mzTGS','includeIssueType','No\x20summaryResults\x20found.','warn','browserStackExecuteDriver','MyAey','BS_A11Y_JWT','1193316mDZhLx','RtIQD','format','qGTXs','gkykr','9mfVEXz','error','TzyUd','\x20page:\x20','accessibilityOptions.includeIssueType.bestPractice','browserStackEvaluate','project','deviceName','getAccessibilityResultsSummary','HMncv','BmjjU','accessibilityPlatform','EkrGc','constructor','rkHeJ','../../helpers/accessibility-automation/helper','connectOptions','xZrdP','XPDuW','accessibilityOptions.scannerVersion','setAccessibilityCapabilities','KLmgG','winstonLogger','../../helpers/logger','needsReview','NPLcc','12362690aWxbME','14kzKMAZ','RAoSr'];a37_0x4126=function(){return _0x32f61d;};return a37_0x4126();}exports[a37_0x101dc6(0x14e)]=async(_0x39ed32,_0xb55258,_0x4dae1a={})=>{const _0x3a4da0=a37_0x101dc6,_0x16c12d={};_0x16c12d[_0x3a4da0(0x157)]=_0x3a4da0(0x173);const _0x65fff6=_0x16c12d;return await _0x39ed32['evaluate'](_0x3a4da0(0x18d)+_0xb55258['replace'](/arguments/g,_0x65fff6[_0x3a4da0(0x157)])+_0x3a4da0(0x1a4)+JSON[_0x3a4da0(0x1a6)](_0x4dae1a)+')');},exports[a37_0x101dc6(0x141)]=async(_0x5aa7d5,_0x41b5cb,_0x4d332f={})=>{const _0x2cf9d4=a37_0x101dc6,_0x33919e={};_0x33919e['HMncv']=function(_0x4050b9,_0x5c97ce){return _0x4050b9===_0x5c97ce;},_0x33919e[_0x2cf9d4(0x16b)]=_0x2cf9d4(0x1b1),_0x33919e[_0x2cf9d4(0x191)]=_0x2cf9d4(0x19f),_0x33919e[_0x2cf9d4(0x17e)]=_0x2cf9d4(0x173);const _0x4e25c0=_0x33919e;if(_0x4e25c0['HMncv'](_0x5aa7d5[_0x2cf9d4(0x156)]['name'],_0x4e25c0[_0x2cf9d4(0x16b)]))return await _0x5aa7d5[_0x2cf9d4(0x18a)](_0x41b5cb,_0x4d332f);else{if(_0x4e25c0[_0x2cf9d4(0x152)](_0x5aa7d5[_0x2cf9d4(0x156)]['name'],_0x4e25c0[_0x2cf9d4(0x191)]))return await _0x5aa7d5[_0x2cf9d4(0x174)](_0x2cf9d4(0x19d)+_0x41b5cb[_0x2cf9d4(0x189)](/arguments/g,_0x4e25c0[_0x2cf9d4(0x17e)])+_0x2cf9d4(0x193)+JSON[_0x2cf9d4(0x1a6)](_0x4d332f)+')');}},exports[a37_0x101dc6(0x15d)]=async _0x5a613d=>{const _0xcc6bcd=a37_0x101dc6,_0x251b9={};_0x251b9[_0xcc6bcd(0x19b)]=_0xcc6bcd(0x177),_0x251b9[_0xcc6bcd(0x165)]='accessibilityOptions.scannerProcessingTimeout',_0x251b9['jWBta']=_0xcc6bcd(0x14d),_0x251b9[_0xcc6bcd(0x147)]=_0xcc6bcd(0x1a0),_0x251b9[_0xcc6bcd(0x155)]='accessibilityOptions.authToken',_0x251b9['KJAgg']=_0xcc6bcd(0x15c);const _0x36a2b1=_0x251b9;_0x5a613d[_0xcc6bcd(0x171)]&&(_0x5a613d['accessibilityOptions'][_0xcc6bcd(0x197)]&&(_0x5a613d[_0x36a2b1[_0xcc6bcd(0x19b)]]=_0x5a613d[_0xcc6bcd(0x171)][_0xcc6bcd(0x197)]),_0x5a613d[_0xcc6bcd(0x171)][_0xcc6bcd(0x16a)]&&(_0x5a613d[_0x36a2b1['RAoSr']]=_0x5a613d[_0xcc6bcd(0x171)][_0xcc6bcd(0x16a)]),_0x5a613d[_0xcc6bcd(0x171)][_0xcc6bcd(0x13e)]&&(_0x5a613d[_0x36a2b1[_0xcc6bcd(0x195)]]=_0x5a613d[_0xcc6bcd(0x171)]['includeIssueType'][_0xcc6bcd(0x179)],_0x5a613d[_0x36a2b1[_0xcc6bcd(0x147)]]=_0x5a613d[_0xcc6bcd(0x171)][_0xcc6bcd(0x13e)][_0xcc6bcd(0x161)]));const _0x3f01b8=JSON['parse'](process[_0xcc6bcd(0x176)][_0xcc6bcd(0x18e)])['scannerVersion'];_0x5a613d[_0x36a2b1['EkrGc']]=process[_0xcc6bcd(0x176)][_0xcc6bcd(0x143)],_0x5a613d[_0x36a2b1['KJAgg']]=_0x3f01b8,delete _0x5a613d['accessibilityOptions'];},exports[a37_0x101dc6(0x17a)]=async _0x731de5=>{const _0x39fe8b=a37_0x101dc6,_0x24fe14={};_0x24fe14['ACUQe']=_0x39fe8b(0x1ae),_0x24fe14[_0x39fe8b(0x15b)]=_0x39fe8b(0x1a7);const _0x1bf200=_0x24fe14;if(global[_0x39fe8b(0x154)])try{logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x731de5,scripts.performScan)));},{command:'getAccessibilityResults'})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x731de5,scripts.getResults);})();return res;}catch{return logger[_0x39fe8b(0x14a)](_0x1bf200['ACUQe']),[];}else return logger['warn'](_0x1bf200[_0x39fe8b(0x15b)]),[];},exports['performScan']=async(_0x40839d,_0x57f77e='')=>{const _0x519630=a37_0x101dc6;logger[_0x519630(0x186)]('Performing\x20scan\x20with\x20method:\x20'+_0x57f77e+_0x519630(0x14c)+_0x40839d);if(global[_0x519630(0x154)])return await PerformanceTester[_0x519630(0x18f)](PerformanceA11yEvents[_0x519630(0x13b)],async()=>{const _0x443e23=_0x519630,_0x1001f0={};_0x1001f0[_0x443e23(0x190)]=_0x57f77e,await exports[_0x443e23(0x14e)](_0x40839d,scripts['performScan'],_0x1001f0);},{'command':_0x57f77e})();},exports[a37_0x101dc6(0x151)]=async _0x3f5f1f=>{const _0x39bafe=a37_0x101dc6,_0x396303={};_0x396303[_0x39bafe(0x15a)]=_0x39bafe(0x13f),_0x396303[_0x39bafe(0x19c)]='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.';const _0x1fcd8e=_0x396303;if(global[_0x39bafe(0x154)])try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x3f5f1f,scripts.performScan)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x3f5f1f,scripts.getResultsSummary);})();return summaryResults;}catch{return logger[_0x39bafe(0x186)](_0x1fcd8e[_0x39bafe(0x15a)]),{};}else return logger[_0x39bafe(0x140)](_0x1fcd8e[_0x39bafe(0x19c)]),{};},exports[a37_0x101dc6(0x170)]=async _0x2a3613=>{const _0x538f77=a37_0x101dc6,_0x43fb43={'VaEyL':function(_0x31f4f5,_0x489049){return _0x31f4f5!==_0x489049;},'KkNQU':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','ZBpho':'chrome','WGQOz':_0x538f77(0x181),'GEnKy':'chromium','gkykr':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','KsqHe':function(_0x444a60,_0x42c582){return _0x444a60(_0x42c582);},'pDZuR':function(_0x11a811){return _0x11a811();},'OcPWU':function(_0x150ed3,_0x5d1f08){return _0x150ed3<_0x5d1f08;},'NcyLP':_0x538f77(0x1b0),'mzTGS':function(_0x2b44a4,_0x2c54e1){return _0x2b44a4===_0x2c54e1;},'kXskQ':_0x538f77(0x188),'UkCDE':function(_0x25d951,_0x466466){return _0x25d951>_0x466466;},'JEyxD':_0x538f77(0x16e)};try{if(!_0x43fb43[_0x538f77(0x19a)](_0x2a3613[_0x538f77(0x150)],''))return logger['warn'](_0x43fb43[_0x538f77(0x169)]),![];const _0x117b40=_0x2a3613[_0x538f77(0x168)];if(![_0x43fb43[_0x538f77(0x1aa)],_0x43fb43[_0x538f77(0x1a1)],_0x43fb43['GEnKy']][_0x538f77(0x16c)](_0x117b40))return logger[_0x538f77(0x140)](_0x43fb43[_0x538f77(0x148)]),![];const _0x237ba2=_0x43fb43[_0x538f77(0x18b)](parseInt,_0x2a3613[_0x538f77(0x196)]);!_0x43fb43[_0x538f77(0x1a2)](isBrowserstackInfra)&&(!_0x43fb43[_0x538f77(0x175)](_0x237ba2,0x64)&&logger[_0x538f77(0x140)](_0x43fb43[_0x538f77(0x172)]));if(!(_0x43fb43[_0x538f77(0x13d)](_0x237ba2,_0x43fb43[_0x538f77(0x194)])||_0x43fb43[_0x538f77(0x167)](_0x237ba2,0x5e)))return logger[_0x538f77(0x140)](_0x43fb43['JEyxD']),![];}catch(_0x5cdd87){logger[_0x538f77(0x186)](_0x538f77(0x178)+util[_0x538f77(0x146)](_0x5cdd87));}return!![];},exports['processAccessibilityCaps']=(_0x4da3e6,_0x27452b,_0x55a081)=>{const _0x250a52=a37_0x101dc6,_0x1d4d1c={'IfiCm':function(_0x1f20da){return _0x1f20da();},'BmjjU':'browserstack.accessibility','fdylg':function(_0x529e7c,_0x44f81e){return _0x529e7c===_0x44f81e;},'nJELo':'chrome','MyAey':_0x250a52(0x181),'QKexF':function(_0x240050,_0x9fe8b9){return _0x240050===_0x9fe8b9;},'vFBHJ':_0x250a52(0x185),'HvEJx':function(_0x28ee17){return _0x28ee17();},'TzyUd':function(_0x33307d,_0x14864d){return _0x33307d>_0x14864d;},'KPUia':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x20100.','NPLcc':_0x250a52(0x188),'RtIQD':function(_0x12da06,_0xc7d9c2){return _0x12da06>_0xc7d9c2;},'KLmgG':_0x250a52(0x16e),'MImAQ':function(_0x362901,_0x21c7e0){return _0x362901(_0x21c7e0);},'ZKgCR':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','fNIvG':function(_0x4849f0,_0x4ce481){return _0x4849f0+_0x4ce481;}};try{if(_0x1d4d1c['IfiCm'](isAccessibilityAutomationSession)){global[_0x250a52(0x154)]=!![];!_0x4da3e6[_0x1d4d1c[_0x250a52(0x153)]]&&(global[_0x250a52(0x154)]=![]);!(_0x1d4d1c[_0x250a52(0x13c)](_0x4da3e6[_0x250a52(0x198)],_0x1d4d1c[_0x250a52(0x1ab)])||_0x1d4d1c[_0x250a52(0x13c)](_0x4da3e6[_0x250a52(0x198)],_0x1d4d1c[_0x250a52(0x142)])||_0x1d4d1c[_0x250a52(0x13c)](_0x4da3e6[_0x250a52(0x168)],_0x1d4d1c[_0x250a52(0x1ab)])||_0x1d4d1c[_0x250a52(0x16d)](_0x4da3e6[_0x250a52(0x168)],_0x1d4d1c[_0x250a52(0x142)]))&&(logger[_0x250a52(0x140)](_0x1d4d1c[_0x250a52(0x192)]),global['accessibilityPlatform']=![]);!_0x1d4d1c['HvEJx'](isBrowserstackInfra)&&(!_0x1d4d1c[_0x250a52(0x14b)](_0x4da3e6[_0x250a52(0x196)],0x64)&&logger[_0x250a52(0x140)](_0x1d4d1c[_0x250a52(0x182)]));!(_0x1d4d1c[_0x250a52(0x13c)](_0x4da3e6[_0x250a52(0x196)],_0x1d4d1c[_0x250a52(0x162)])||_0x1d4d1c[_0x250a52(0x145)](_0x4da3e6[_0x250a52(0x196)],0x5e))&&(logger[_0x250a52(0x140)](_0x1d4d1c[_0x250a52(0x15e)]),global['accessibilityPlatform']=![]);!_0x1d4d1c[_0x250a52(0x19e)](isUndefined,_0x4da3e6[_0x250a52(0x150)])&&(logger[_0x250a52(0x140)](_0x1d4d1c[_0x250a52(0x180)]),global[_0x250a52(0x154)]=![]);if(!global[_0x250a52(0x154)]){_0x4da3e6[_0x1d4d1c[_0x250a52(0x153)]]=![];const _0x1bc62e=_0x1d4d1c[_0x250a52(0x199)](_0x27452b,_0x1d4d1c[_0x250a52(0x19e)](encodeURIComponent,JSON[_0x250a52(0x1a6)](_0x4da3e6)));_0x55a081&&(_0x55a081[_0x250a52(0x17c)]['testInfo'][_0x250a52(0x14f)][_0x250a52(0x18c)][_0x250a52(0x159)][_0x250a52(0x1ad)]=_0x1bc62e,_0x55a081[_0x250a52(0x183)]['project'][_0x250a52(0x18c)][_0x250a52(0x159)][_0x250a52(0x1ad)]=_0x1bc62e);}}else global[_0x250a52(0x154)]=![];}catch(_0xd2a228){logger[_0x250a52(0x186)](_0x250a52(0x17f)+util[_0x250a52(0x146)](_0xd2a228));}};
|
|
1
|
+
function a37_0x11f4(){const _0x17ff3c=['865666ThspGE','winstonLogger','PSvOb','accessibilityOptions.scannerProcessingTimeout','diFrs','env','bstackSdkArgs','platformValidation','qmDLi','285165jUroio','BS_A11Y_JWT','parse','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','No\x20summaryResults\x20found.','nEiqF','(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','280YtpAWT','deviceName','measureWrapper','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','rUavU','WebDriver','currentTest','../../helpers/performance/performance-tester','PwGBU','eOxgI','workerInfo','JoIix','dUALQ','scannerProcessingTimeout','232LKbpTC','oHpzC','debug','playwright-chromium','../../helpers/accessibility-automation/helper','browser','warn','IHeBM','accessibilityOptions.includeIssueType.needsReview','OCpCz','chromium','269180XiTWxt','tLpDk','cvHSQ','browser_version','includeIssueType','../../helpers/accessibility-automation/scripts','performScan','IiQjg','wcagVersion','use','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','error','accessibilityOptions','../../helpers/logger','browserName','FpfRK','name','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','vhCpT','ckfnO','replace','stringify','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x20100.','wsEndpoint','\x20page:\x20','project','ERZaz','47614oHUXvG','PpzSz','1419558bYdKPU','nNFQd','nuKLB','accessibilityOptions.wcagVersion','5632608pDzWQj','FdSIH','browserStackExecuteDriver','connectOptions','VjcJs','No\x20accessibility\x20results\x20were\x20found.','UBSwW','YSFxl','oGHQT','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','getAccessibilityResults','MrWtF','hAXAO','browserstack.accessibility','PERFORM_SCAN','bestPractice','138ZZWHow','getAccessibilityResultsSummary','IKjBw','KXvwL','../../helpers/helper','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','executeScript','accessibilityPlatform','TgEoD','(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','command','KtZmg','needsReview','testInfo','Performing\x20scan\x20with\x20method:\x20','executeAsyncScript','VIOpL','util','includes','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','latest','format','18695DxYdLj','cXWRX','fZfFN','QvwRg','constructor','pNLDU','ArnWB','cIabE','jzSbb'];a37_0x11f4=function(){return _0x17ff3c;};return a37_0x11f4();}const a37_0x48a530=a37_0x19ea;(function(_0x3b7bdf,_0x364784){const _0x536403=a37_0x19ea,_0x366ccf=_0x3b7bdf();while(!![]){try{const _0x2750dc=-parseInt(_0x536403(0x22d))/0x1+parseInt(_0x536403(0x1dd))/0x2+-parseInt(_0x536403(0x1fa))/0x3+-parseInt(_0x536403(0x24b))/0x4*(-parseInt(_0x536403(0x224))/0x5)+-parseInt(_0x536403(0x20e))/0x6*(parseInt(_0x536403(0x1f8))/0x7)+parseInt(_0x536403(0x1fe))/0x8+-parseInt(_0x536403(0x236))/0x9*(-parseInt(_0x536403(0x23d))/0xa);if(_0x2750dc===_0x364784)break;else _0x366ccf['push'](_0x366ccf['shift']());}catch(_0x24b030){_0x366ccf['push'](_0x366ccf['shift']());}}}(a37_0x11f4,0x6d3b2));function a37_0x19ea(_0x4265d9,_0x59e29f){const _0x11f42f=a37_0x11f4();return a37_0x19ea=function(_0x19eab7,_0x2baf19){_0x19eab7=_0x19eab7-0x1d4;let _0x59c72b=_0x11f42f[_0x19eab7];return _0x59c72b;},a37_0x19ea(_0x4265d9,_0x59e29f);}const util=require(a37_0x48a530(0x21f)),logger=require(a37_0x48a530(0x1ea))[a37_0x48a530(0x22e)],{isAccessibilityAutomationSession}=require(a37_0x48a530(0x1d6)),{isUndefined,isBrowserstackInfra}=require(a37_0x48a530(0x212)),scripts=require(a37_0x48a530(0x1e2)),PerformanceTester=require(a37_0x48a530(0x244)),{A11Y_EVENTS:PerformanceA11yEvents}=require('../../helpers/performance/constants');exports['browserStackEvaluate']=async(_0x35f9f5,_0x1cfb9a,_0x10d645={})=>{const _0x3e91ee=a37_0x48a530,_0x1bab90={};_0x1bab90[_0x3e91ee(0x1db)]=_0x3e91ee(0x233);const _0x2299f8=_0x1bab90;return await _0x35f9f5['evaluate'](_0x3e91ee(0x23c)+_0x1cfb9a[_0x3e91ee(0x1f1)](/arguments/g,_0x2299f8[_0x3e91ee(0x1db)])+'\x0a\x20\x20\x20\x20})\x0a\x20\x20})('+JSON[_0x3e91ee(0x1f2)](_0x10d645)+')');},exports[a37_0x48a530(0x200)]=async(_0x45efc9,_0xf6333a,_0x1c61ee={})=>{const _0x1ce531=a37_0x48a530,_0x19fbc9={};_0x19fbc9['TgEoD']=function(_0x2e45ae,_0x5d9416){return _0x2e45ae===_0x5d9416;},_0x19fbc9[_0x1ce531(0x246)]=_0x1ce531(0x242),_0x19fbc9[_0x1ce531(0x22c)]='Playwright',_0x19fbc9[_0x1ce531(0x241)]=_0x1ce531(0x233);const _0x2da509=_0x19fbc9;if(_0x2da509[_0x1ce531(0x216)](_0x45efc9[_0x1ce531(0x228)][_0x1ce531(0x1ed)],_0x2da509[_0x1ce531(0x246)]))return await _0x45efc9[_0x1ce531(0x21d)](_0xf6333a,_0x1c61ee);else{if(_0x2da509[_0x1ce531(0x216)](_0x45efc9[_0x1ce531(0x228)][_0x1ce531(0x1ed)],_0x2da509['jzSbb']))return await _0x45efc9[_0x1ce531(0x214)](_0x1ce531(0x217)+_0xf6333a[_0x1ce531(0x1f1)](/arguments/g,_0x2da509[_0x1ce531(0x241)])+_0x1ce531(0x239)+JSON['stringify'](_0x1c61ee)+')');}},exports['setAccessibilityCapabilities']=async _0x2c459f=>{const _0x39e9f0=a37_0x48a530,_0x5b1ce0={};_0x5b1ce0[_0x39e9f0(0x1d9)]=_0x39e9f0(0x1fd),_0x5b1ce0[_0x39e9f0(0x227)]=_0x39e9f0(0x230),_0x5b1ce0[_0x39e9f0(0x1f7)]='accessibilityOptions.includeIssueType.bestPractice',_0x5b1ce0[_0x39e9f0(0x1f0)]=_0x39e9f0(0x1da),_0x5b1ce0[_0x39e9f0(0x235)]='accessibilityOptions.authToken',_0x5b1ce0['PSvOb']='accessibilityOptions.scannerVersion';const _0x25fdd1=_0x5b1ce0;_0x2c459f['accessibilityOptions']&&(_0x2c459f['accessibilityOptions'][_0x39e9f0(0x1e5)]&&(_0x2c459f[_0x25fdd1[_0x39e9f0(0x1d9)]]=_0x2c459f[_0x39e9f0(0x1e9)]['wcagVersion']),_0x2c459f['accessibilityOptions']['scannerProcessingTimeout']&&(_0x2c459f[_0x25fdd1[_0x39e9f0(0x227)]]=_0x2c459f[_0x39e9f0(0x1e9)][_0x39e9f0(0x24a)]),_0x2c459f[_0x39e9f0(0x1e9)]['includeIssueType']&&(_0x2c459f[_0x25fdd1['ERZaz']]=_0x2c459f[_0x39e9f0(0x1e9)][_0x39e9f0(0x1e1)][_0x39e9f0(0x20d)],_0x2c459f[_0x25fdd1[_0x39e9f0(0x1f0)]]=_0x2c459f['accessibilityOptions'][_0x39e9f0(0x1e1)][_0x39e9f0(0x21a)]));const _0x192a0c=JSON[_0x39e9f0(0x238)](process[_0x39e9f0(0x232)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML'])['scannerVersion'];_0x2c459f[_0x25fdd1['qmDLi']]=process[_0x39e9f0(0x232)][_0x39e9f0(0x237)],_0x2c459f[_0x25fdd1[_0x39e9f0(0x22f)]]=_0x192a0c,delete _0x2c459f['accessibilityOptions'];},exports[a37_0x48a530(0x208)]=async _0x1cd02e=>{const _0x33c032=a37_0x48a530,_0x190614={};_0x190614['dUALQ']=_0x33c032(0x203),_0x190614['nEiqF']=_0x33c032(0x213);const _0x5eda5a=_0x190614;if(global['accessibilityPlatform'])try{logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x1cd02e,scripts.performScan)));},{command:'getAccessibilityResults'})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x1cd02e,scripts.getResults);})();return res;}catch{return logger[_0x33c032(0x1e8)](_0x5eda5a[_0x33c032(0x249)]),[];}else return logger['warn'](_0x5eda5a[_0x33c032(0x23b)]),[];},exports[a37_0x48a530(0x1e3)]=async(_0x4562f8,_0x21a808='')=>{const _0x450e95=a37_0x48a530;logger[_0x450e95(0x1d4)](_0x450e95(0x21c)+_0x21a808+_0x450e95(0x1f5)+_0x4562f8);if(global['accessibilityPlatform'])return await PerformanceTester[_0x450e95(0x23f)](PerformanceA11yEvents[_0x450e95(0x20c)],async()=>{const _0x4cdf79=_0x450e95,_0x4e3ec0={};_0x4e3ec0[_0x4cdf79(0x218)]=_0x21a808,await exports['browserStackEvaluate'](_0x4562f8,scripts['performScan'],_0x4e3ec0);},{'command':_0x21a808})();},exports[a37_0x48a530(0x20f)]=async _0x4731a2=>{const _0x2dff01=a37_0x48a530,_0xdb68bc={};_0xdb68bc['UBSwW']=_0x2dff01(0x23a),_0xdb68bc[_0x2dff01(0x211)]='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.';const _0x4e27b0=_0xdb68bc;if(global[_0x2dff01(0x215)])try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x4731a2,scripts.performScan)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x4731a2,scripts.getResultsSummary);})();return summaryResults;}catch{return logger[_0x2dff01(0x1d4)](_0x4e27b0[_0x2dff01(0x204)]),{};}else return logger[_0x2dff01(0x1d8)](_0x4e27b0['KXvwL']),{};},exports[a37_0x48a530(0x234)]=async _0x62e763=>{const _0x5a6c25=a37_0x48a530,_0x20c000={'VjcJs':function(_0x25f8bd,_0x3c2f3c){return _0x25f8bd!==_0x3c2f3c;},'KtZmg':_0x5a6c25(0x240),'TTCzH':'chrome','PpzSz':'playwright-chromium','FdSIH':_0x5a6c25(0x1dc),'diFrs':_0x5a6c25(0x1e7),'rfVPi':function(_0x1fca38,_0x35b463){return _0x1fca38(_0x35b463);},'fZfFN':function(_0x11a478){return _0x11a478();},'hsuOA':function(_0x236d38,_0x332821){return _0x236d38<_0x332821;},'nuKLB':_0x5a6c25(0x1f3),'dlQVh':function(_0x531092,_0x304fde){return _0x531092===_0x304fde;},'ZySNS':_0x5a6c25(0x222),'VIOpL':function(_0x1798f4,_0x37d511){return _0x1798f4>_0x37d511;},'hAXAO':_0x5a6c25(0x221)};try{if(!_0x20c000[_0x5a6c25(0x202)](_0x62e763['deviceName'],''))return logger[_0x5a6c25(0x1d8)](_0x20c000[_0x5a6c25(0x219)]),![];const _0x16926a=_0x62e763[_0x5a6c25(0x1d7)];if(![_0x20c000['TTCzH'],_0x20c000[_0x5a6c25(0x1f9)],_0x20c000[_0x5a6c25(0x1ff)]][_0x5a6c25(0x220)](_0x16926a))return logger[_0x5a6c25(0x1d8)](_0x20c000[_0x5a6c25(0x231)]),![];const _0x11351b=_0x20c000['rfVPi'](parseInt,_0x62e763[_0x5a6c25(0x1e0)]);!_0x20c000[_0x5a6c25(0x226)](isBrowserstackInfra)&&(!_0x20c000['hsuOA'](_0x11351b,0x64)&&logger[_0x5a6c25(0x1d8)](_0x20c000[_0x5a6c25(0x1fc)]));if(!(_0x20c000['dlQVh'](_0x11351b,_0x20c000['ZySNS'])||_0x20c000[_0x5a6c25(0x21e)](_0x11351b,0x5e)))return logger['warn'](_0x20c000[_0x5a6c25(0x20a)]),![];}catch(_0x42d86f){logger[_0x5a6c25(0x1d4)](_0x5a6c25(0x1ee)+util['format'](_0x42d86f));}return!![];},exports['processAccessibilityCaps']=(_0x2c4dc0,_0x28b2b1,_0x59ad78)=>{const _0x384e7a=a37_0x48a530,_0x100e9c={'IKjBw':function(_0x44a524){return _0x44a524();},'oGHQT':_0x384e7a(0x20b),'JoIix':function(_0x145f10,_0x3b10ff){return _0x145f10===_0x3b10ff;},'ArnWB':'chrome','IiQjg':_0x384e7a(0x1d5),'oHpzC':function(_0x5bbc1e,_0x4c2ad5){return _0x5bbc1e===_0x4c2ad5;},'FpfRK':_0x384e7a(0x1e7),'vhCpT':function(_0x559b39){return _0x559b39();},'cXWRX':function(_0x581263,_0x36e149){return _0x581263>_0x36e149;},'YSFxl':_0x384e7a(0x1f3),'cvHSQ':function(_0x19bc00,_0x57d8e9){return _0x19bc00===_0x57d8e9;},'pNLDU':_0x384e7a(0x222),'tLpDk':function(_0x6cda6f,_0x5c5b0b){return _0x6cda6f>_0x5c5b0b;},'PwGBU':_0x384e7a(0x221),'cIabE':function(_0x47ea55,_0x20578b){return _0x47ea55(_0x20578b);},'JWhNi':_0x384e7a(0x240),'MrWtF':function(_0x1aae89,_0x3df109){return _0x1aae89+_0x3df109;},'nNFQd':function(_0x4945df,_0x206ab9){return _0x4945df(_0x206ab9);}};try{if(_0x100e9c[_0x384e7a(0x210)](isAccessibilityAutomationSession)){global[_0x384e7a(0x215)]=!![];!_0x2c4dc0[_0x100e9c['oGHQT']]&&(global[_0x384e7a(0x215)]=![]);!(_0x100e9c[_0x384e7a(0x248)](_0x2c4dc0[_0x384e7a(0x1eb)],_0x100e9c[_0x384e7a(0x22a)])||_0x100e9c[_0x384e7a(0x248)](_0x2c4dc0[_0x384e7a(0x1eb)],_0x100e9c[_0x384e7a(0x1e4)])||_0x100e9c[_0x384e7a(0x24c)](_0x2c4dc0[_0x384e7a(0x1d7)],_0x100e9c[_0x384e7a(0x22a)])||_0x100e9c['JoIix'](_0x2c4dc0[_0x384e7a(0x1d7)],_0x100e9c[_0x384e7a(0x1e4)]))&&(logger[_0x384e7a(0x1d8)](_0x100e9c[_0x384e7a(0x1ec)]),global[_0x384e7a(0x215)]=![]);!_0x100e9c[_0x384e7a(0x1ef)](isBrowserstackInfra)&&(!_0x100e9c[_0x384e7a(0x225)](_0x2c4dc0[_0x384e7a(0x1e0)],0x64)&&logger[_0x384e7a(0x1d8)](_0x100e9c[_0x384e7a(0x205)]));!(_0x100e9c[_0x384e7a(0x1df)](_0x2c4dc0[_0x384e7a(0x1e0)],_0x100e9c[_0x384e7a(0x229)])||_0x100e9c[_0x384e7a(0x1de)](_0x2c4dc0[_0x384e7a(0x1e0)],0x5e))&&(logger[_0x384e7a(0x1d8)](_0x100e9c[_0x384e7a(0x245)]),global[_0x384e7a(0x215)]=![]);!_0x100e9c[_0x384e7a(0x22b)](isUndefined,_0x2c4dc0[_0x384e7a(0x23e)])&&(logger['warn'](_0x100e9c['JWhNi']),global[_0x384e7a(0x215)]=![]);if(!global[_0x384e7a(0x215)]){_0x2c4dc0[_0x100e9c[_0x384e7a(0x206)]]=![];const _0x3d2de2=_0x100e9c[_0x384e7a(0x209)](_0x28b2b1,_0x100e9c[_0x384e7a(0x1fb)](encodeURIComponent,JSON[_0x384e7a(0x1f2)](_0x2c4dc0)));_0x59ad78&&(_0x59ad78[_0x384e7a(0x243)][_0x384e7a(0x21b)]['project'][_0x384e7a(0x1e6)][_0x384e7a(0x201)][_0x384e7a(0x1f4)]=_0x3d2de2,_0x59ad78[_0x384e7a(0x247)][_0x384e7a(0x1f6)][_0x384e7a(0x1e6)][_0x384e7a(0x201)][_0x384e7a(0x1f4)]=_0x3d2de2);}}else global[_0x384e7a(0x215)]=![];}catch(_0x462306){logger[_0x384e7a(0x1d4)](_0x384e7a(0x207)+util[_0x384e7a(0x223)](_0x462306));}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a38_0x2d1cd2=a38_0x3021;(function(_0x54c93b,_0x224d64){const _0x5f4c19=a38_0x3021,_0x5a7ae8=_0x54c93b();while(!![]){try{const _0x5c0f3f=-parseInt(_0x5f4c19(0x1ef))/0x1+parseInt(_0x5f4c19(0x256))/0x2+-parseInt(_0x5f4c19(0x1ed))/0x3+parseInt(_0x5f4c19(0x25a))/0x4*(parseInt(_0x5f4c19(0x1e8))/0x5)+parseInt(_0x5f4c19(0x237))/0x6*(parseInt(_0x5f4c19(0x272))/0x7)+parseInt(_0x5f4c19(0x251))/0x8*(parseInt(_0x5f4c19(0x1fd))/0x9)+-parseInt(_0x5f4c19(0x200))/0xa;if(_0x5c0f3f===_0x224d64)break;else _0x5a7ae8['push'](_0x5a7ae8['shift']());}catch(_0x12c779){_0x5a7ae8['push'](_0x5a7ae8['shift']());}}}(a38_0x5984,0x80453));const fs=require('fs'),path=require('path'),{spawn}=require('child_process'),{format}=require('util'),logger=require(a38_0x2d1cd2(0x1f1))[a38_0x2d1cd2(0x1e9)],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require(a38_0x2d1cd2(0x23f)),utilities=require(a38_0x2d1cd2(0x24c)),constants=require(a38_0x2d1cd2(0x1f6)),{FRAMEWORKS}=require(a38_0x2d1cd2(0x24f)),{getConfigLoaderPath}=require('./reporter/pwUtils'),{checkAccessibilityPlatformConfig}=require(a38_0x2d1cd2(0x1f9)),{setAccessibilityCapabilities}=require(a38_0x2d1cd2(0x261)),{printBuildLink}=require(a38_0x2d1cd2(0x229)),TestDetails=require(a38_0x2d1cd2(0x270)),TestHubHandler=require(a38_0x2d1cd2(0x262)),PerformanceTester=require('../../helpers/performance/performance-tester'),BrowserstackCLI=require(a38_0x2d1cd2(0x260)),PerformanceEvents=require('../../helpers/performance/constants')['EVENTS'],CLIUtils=require('../v2/cliUtils'),TestInfo=require('../v2/TestInfo'),getUserPlaywrightConfig=async(_0x24e3a7,_0x3830aa)=>{const _0x31948c=a38_0x2d1cd2,_0x4787b7={'AeqGv':function(_0x1e9015){return _0x1e9015();},'ZjAJq':function(_0x270332,_0x29f2d7){return _0x270332(_0x29f2d7);},'dEqIw':function(_0x11c888,_0x5b3a41){return _0x11c888(_0x5b3a41);},'VXjMv':_0x31948c(0x1f5),'GnjRr':'--config='},_0x145ada=!helper[_0x31948c(0x1ec)](_0x24e3a7[_0x31948c(0x24d)]),_0x104182=_0x145ada?path[_0x31948c(0x1d7)](process[_0x31948c(0x249)](),_0x24e3a7['config']):process[_0x31948c(0x249)](),{resolveConfigFile:_0xeba4c8,resolveConfigLocation:_0x185c68}=helper[_0x31948c(0x223)][_0x31948c(0x20d)](null,_0x4787b7[_0x31948c(0x24e)](getConfigLoaderPath)),_0x45a967=_0xeba4c8?_0x4787b7[_0x31948c(0x1f2)](_0xeba4c8,_0x104182):helper[_0x31948c(0x1d3)](_0x4787b7[_0x31948c(0x253)](_0x185c68,_0x104182),[_0x4787b7['VXjMv']]),_0x3d6a14={};if(_0x145ada){const _0x290502=_0x3830aa[_0x31948c(0x26e)](_0x4f4679=>_0x4f4679===_0x31948c(0x244)||_0x4f4679==='-c'||_0x4f4679['startsWith'](_0x31948c(0x228)));_0x3830aa[_0x31948c(0x243)](_0x290502,_0x3830aa[_0x290502]['startsWith'](_0x4787b7[_0x31948c(0x258)])?0x1:0x2);}const _0x5acc76={};return _0x5acc76['path']=_0x45a967,_0x5acc76[_0x31948c(0x24d)]=_0x3d6a14,_0x5acc76;},handleO11yRerun=_0xf755ce=>{const _0x4f9f4b=a38_0x2d1cd2,_0x547a19={};_0x547a19[_0x4f9f4b(0x231)]='--grep';const _0x31216e=_0x547a19,_0x3132a1=helper['isTrue'](process[_0x4f9f4b(0x221)]['BROWSERSTACK_RERUN']);if(_0x3132a1){const _0x284fc0=process[_0x4f9f4b(0x221)][_0x4f9f4b(0x1e2)],_0x828277=[];if(helper[_0x4f9f4b(0x254)](_0x284fc0)&&!helper[_0x4f9f4b(0x1ec)](_0x284fc0)){_0x284fc0['split'](',')[_0x4f9f4b(0x26c)](_0x6cc5e1=>{const _0x14cb96=_0x4f9f4b;_0x828277[_0x14cb96(0x227)]('('+_0x6cc5e1[_0x14cb96(0x25b)]()+')');});const _0x14e016='^'+_0x828277[_0x4f9f4b(0x1da)]('|')+'$';_0xf755ce['push'](_0x31216e[_0x4f9f4b(0x231)],_0x14e016);}}},spawnOriginalProcess=_0x406268=>{const _0x31389b=a38_0x2d1cd2,_0x5aab95={'xUqoP':function(_0x222c76,_0x239dd9,_0x2a5e9f,_0x2e0706){return _0x222c76(_0x239dd9,_0x2a5e9f,_0x2e0706);},'VQStQ':_0x31389b(0x1d5),'prxWE':_0x31389b(0x204),'gLFhO':function(_0x28cf5d,_0x25588a){return _0x28cf5d===_0x25588a;},'Iqhck':'win32','yMtVz':_0x31389b(0x220)};_0x5aab95['xUqoP'](spawn,_0x5aab95[_0x31389b(0x20f)],[_0x5aab95['prxWE'],..._0x406268[_0x31389b(0x269)](0x1)],{'shell':_0x5aab95[_0x31389b(0x1ee)](process[_0x31389b(0x1d6)],_0x5aab95['Iqhck']),'stdio':_0x5aab95[_0x31389b(0x245)],'cwd':process['cwd']()});},isTestCommand=(_0x30e03e,_0x556435)=>{const _0x39a156=a38_0x2d1cd2,_0x1a42a8={};_0x1a42a8[_0x39a156(0x24b)]=function(_0x2f9359,_0x36de5c){return _0x2f9359>_0x36de5c;},_0x1a42a8[_0x39a156(0x26f)]=function(_0x1323da,_0x4b82c5){return _0x1323da===_0x4b82c5;},_0x1a42a8[_0x39a156(0x20e)]=_0x39a156(0x22d);const _0x2df8c2=_0x1a42a8;if(_0x2df8c2['YtncV'](_0x556435[_0x39a156(0x215)],0x1)&&_0x2df8c2[_0x39a156(0x26f)](_0x556435[0x1],_0x2df8c2[_0x39a156(0x20e)]))return!![];return![];};async function run(_0x5f2a9f,_0x1f751b,_0x2781c3){const _0x59167c=a38_0x2d1cd2,_0x26599f={'YiNDk':_0x59167c(0x252),'LSjbi':_0x59167c(0x21e),'lFTUH':function(_0xa3821,_0x453c41){return _0xa3821+_0x453c41;},'QSwbu':_0x59167c(0x1fc),'groLk':function(_0x5bd66f){return _0x5bd66f();},'sgdds':function(_0x782b05){return _0x782b05();},'AnNVG':'Error\x20in\x20closing\x20playwright','KQcaF':function(_0x49c124,_0x27a94f){return _0x49c124(_0x27a94f);},'CoXfO':'BrowserStack\x20config\x20file\x20not\x20found.','rERQL':function(_0x28f156,_0x5320fd){return _0x28f156===_0x5320fd;},'BMdPx':'false','jObvU':'--disable-test-observability','wZPXi':function(_0x40a884,_0x54e8fc){return _0x40a884>=_0x54e8fc;},'yQwqC':_0x59167c(0x1e7),'XRkmY':function(_0x19f922,_0x49e687){return _0x19f922!=_0x49e687;},'JOdSA':function(_0x1f2fbc,_0x11a128,_0x5e5118){return _0x1f2fbc(_0x11a128,_0x5e5118);},'bdqdB':function(_0x501d12,_0x79f514){return _0x501d12(_0x79f514);},'WXPZZ':'true','srabz':function(_0x40085b,_0x3582a3){return _0x40085b(_0x3582a3);},'HvBkV':_0x59167c(0x1ea),'PZkVd':_0x59167c(0x1f0),'dPiDi':_0x59167c(0x265),'MEmhI':function(_0x527bf5,_0x60cbdd){return _0x527bf5-_0x60cbdd;},'ISwRR':function(_0x20dd41,_0x3f3669){return _0x20dd41+_0x3f3669;},'KmMqs':_0x59167c(0x1dd),'UeEis':function(_0x1666d4,_0x392412){return _0x1666d4>_0x392412;},'fDwFv':function(_0x254049,_0x5bf360,_0x22b626,_0x4a97f2){return _0x254049(_0x5bf360,_0x22b626,_0x4a97f2);},'jFhnC':_0x59167c(0x1d5),'zhYqK':'playwright','UbGGr':'test','XyOfU':_0x59167c(0x244),'nDbBy':function(_0x5ccb96,_0x59a516){return _0x5ccb96===_0x59a516;},'htquW':_0x59167c(0x25e),'DmXGK':_0x59167c(0x220),'ZsVeq':_0x59167c(0x26b),'NFzeO':function(_0x30110f,_0x43dfa8){return _0x30110f+_0x43dfa8;},'sSgwo':'Error\x20in\x20deleting\x20playwright\x20results'};try{const _0x44c19d=path[_0x59167c(0x1da)](helper[_0x59167c(0x247)](),_0x26599f[_0x59167c(0x1db)],_0x26599f[_0x59167c(0x241)]);fs[_0x59167c(0x1de)](_0x44c19d)&&fs['unlinkSync'](_0x44c19d);}catch(_0x4a2f16){logger[_0x59167c(0x21b)](_0x26599f[_0x59167c(0x239)](_0x26599f[_0x59167c(0x24a)],_0x4a2f16));}if(!_0x26599f[_0x59167c(0x235)](isTestCommand,_0x5f2a9f,_0x1f751b)){_0x26599f['srabz'](spawnOriginalProcess,_0x1f751b);return;}await PerformanceTester['measureWrapper'](PerformanceEvents[_0x59167c(0x238)],async()=>{const _0x5d3fb0=_0x59167c,_0x10a586={'aAYin':function(_0x1f9cea,_0x46786e){const _0x587ea9=a38_0x3021;return _0x26599f[_0x587ea9(0x21a)](_0x1f9cea,_0x46786e);}};if(!_0x2781c3[_0x5d3fb0(0x24d)]){logger['error'](_0x26599f[_0x5d3fb0(0x1d8)]);return;}await _0x2781c3[_0x5d3fb0(0x250)](_0x5f2a9f),CLIUtils[_0x5d3fb0(0x23a)](FRAMEWORKS[_0x5d3fb0(0x1e0)],FRAMEWORKS['PLAYWRIGHT']),BrowserstackCLI['getInstance']()[_0x5d3fb0(0x234)](_0x2781c3['config'],_0x2781c3[_0x5d3fb0(0x264)]),await BrowserstackCLI[_0x5d3fb0(0x21c)]()[_0x5d3fb0(0x230)]();const _0x135f45=BrowserstackCLI['getInstance']()[_0x5d3fb0(0x213)]();!helper[_0x5d3fb0(0x1f4)](_0x135f45[_0x5d3fb0(0x216)])&&(process[_0x5d3fb0(0x221)][_0x5d3fb0(0x246)]=!![]);_0x26599f[_0x5d3fb0(0x25c)](_0x135f45[_0x5d3fb0(0x216)],![])&&(process[_0x5d3fb0(0x221)][_0x5d3fb0(0x246)]=_0x26599f[_0x5d3fb0(0x25d)],_0x1f751b=_0x1f751b[_0x5d3fb0(0x23b)](_0x5cd4b5=>_0x5cd4b5!==_0x5d3fb0(0x217)));const _0xfd5dca=_0x1f751b[_0x5d3fb0(0x1fa)](_0x26599f[_0x5d3fb0(0x219)]);(_0x26599f[_0x5d3fb0(0x1e3)](_0xfd5dca,0x0)||_0x26599f[_0x5d3fb0(0x25c)](_0x135f45[_0x5d3fb0(0x225)],![]))&&(process[_0x5d3fb0(0x221)][_0x5d3fb0(0x23e)]=_0x26599f[_0x5d3fb0(0x25d)],_0x1f751b=_0x1f751b['filter'](_0x2e92d1=>_0x2e92d1!==_0x5d3fb0(0x267)));!helper['isUndefined'](_0x2781c3[_0x5d3fb0(0x264)])&&_0x2781c3[_0x5d3fb0(0x264)]['has'](_0x26599f[_0x5d3fb0(0x240)])&&(process[_0x5d3fb0(0x221)][_0x5d3fb0(0x246)]=_0x2781c3['cliConfig'][_0x5d3fb0(0x236)](_0x26599f[_0x5d3fb0(0x240)])||!![]);_0x26599f['XRkmY'](_0x2781c3['config'][_0x5d3fb0(0x225)],null)&&!helper[_0x5d3fb0(0x208)](process[_0x5d3fb0(0x221)]['BROWSERSTACK_TEST_OBSERVABILITY'])&&(process['env'][_0x5d3fb0(0x23e)]=process[_0x5d3fb0(0x221)][_0x5d3fb0(0x23e)]||_0x2781c3[_0x5d3fb0(0x24d)][_0x5d3fb0(0x225)]);const _0x21892c=!helper['isFalse'](process['env'][_0x5d3fb0(0x23e)]);_0x2781c3['config']['accessibilityOptions']&&(process[_0x5d3fb0(0x221)][_0x5d3fb0(0x1f3)]=JSON['stringify'](_0x2781c3[_0x5d3fb0(0x24d)]['accessibilityOptions']));let _0x572c95=![];_0x2781c3[_0x5d3fb0(0x24d)][_0x5d3fb0(0x1d9)]&&(_0x572c95=!![],process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x2781c3[_0x5d3fb0(0x24d)]['accessibility']);const _0x39c164=_0x1f751b[_0x5d3fb0(0x20a)](),_0x40f789=await _0x26599f[_0x5d3fb0(0x235)](getUserPlaywrightConfig,_0x5f2a9f,_0x1f751b);if(helper[_0x5d3fb0(0x1ec)](_0x40f789)){_0x26599f[_0x5d3fb0(0x1ff)](spawnOriginalProcess,_0x39c164);return;}const _0x2d0848=_0x40f789[_0x5d3fb0(0x263)]?path[_0x5d3fb0(0x224)](_0x40f789[_0x5d3fb0(0x263)]):process[_0x5d3fb0(0x249)]();process[_0x5d3fb0(0x221)]['BROWSERSTACK_PW_CONFIG_DIR']=_0x2d0848,await PerformanceTester[_0x5d3fb0(0x1f7)](PerformanceEvents['SDK_POST_INITIALIZE'],async()=>{const _0x3d44b4=_0x5d3fb0;!BrowserstackCLI[_0x3d44b4(0x21c)]()[_0x3d44b4(0x22c)]()&&await TestHubHandler[_0x3d44b4(0x206)](FRAMEWORKS[_0x3d44b4(0x1e0)],_0x2781c3),_0x21892c&&_0x10a586[_0x3d44b4(0x1df)](handleO11yRerun,_0x1f751b);})();if(!BrowserstackCLI[_0x5d3fb0(0x21c)]()[_0x5d3fb0(0x22c)]()){let _0x78b020=_0x26599f[_0x5d3fb0(0x25c)](process[_0x5d3fb0(0x221)][_0x5d3fb0(0x248)],_0x26599f['WXPZZ']);_0x78b020=_0x78b020||_0x26599f[_0x5d3fb0(0x1dc)](checkAccessibilityPlatformConfig,_0x2781c3[_0x5d3fb0(0x24d)]),process[_0x5d3fb0(0x221)][_0x5d3fb0(0x248)]=_0x78b020,_0x78b020&&_0x26599f[_0x5d3fb0(0x1ff)](setAccessibilityCapabilities,_0x2781c3[_0x5d3fb0(0x24d)]);}const _0x24589d=path[_0x5d3fb0(0x1da)](_0x40f789[_0x5d3fb0(0x263)]?path[_0x5d3fb0(0x224)](_0x40f789[_0x5d3fb0(0x263)]):process[_0x5d3fb0(0x249)](),_0x26599f[_0x5d3fb0(0x25f)]);fs[_0x5d3fb0(0x218)](_0x24589d,helper[_0x5d3fb0(0x202)](_0x2781c3[_0x5d3fb0(0x24d)])),process[_0x5d3fb0(0x221)][_0x5d3fb0(0x210)]=_0x24589d,helper[_0x5d3fb0(0x26a)]();let _0x3cd50e='';_0x26599f['rERQL'](helper[_0x5d3fb0(0x1d2)](),constants[_0x5d3fb0(0x211)][_0x5d3fb0(0x1e5)])?_0x3cd50e=_0x26599f[_0x5d3fb0(0x1f8)]:_0x3cd50e=_0x26599f[_0x5d3fb0(0x21f)];let _0x36b7c2='';if(helper['isTypescriptProject'](_0x40f789[_0x5d3fb0(0x263)])){_0x36b7c2='\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a';const _0x121a63=_0x3cd50e['split']('.');_0x121a63[_0x26599f['MEmhI'](_0x121a63['length'],0x1)]='ts',_0x3cd50e=_0x121a63[_0x5d3fb0(0x1da)]('.'),logger['debug'](_0x26599f[_0x5d3fb0(0x209)](_0x26599f[_0x5d3fb0(0x1e1)],_0x3cd50e));}else _0x36b7c2='\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 _0x2099b0=path[_0x5d3fb0(0x1da)](_0x40f789['path']?path[_0x5d3fb0(0x224)](_0x40f789['path']):process[_0x5d3fb0(0x249)](),_0x3cd50e);let _0x573f2a=_0x40f789[_0x5d3fb0(0x263)]?_0x40f789[_0x5d3fb0(0x263)]:'';_0x573f2a=_0x26599f[_0x5d3fb0(0x1fb)](_0x573f2a['length'],0x0)?path[_0x5d3fb0(0x1d7)](_0x573f2a):'',process[_0x5d3fb0(0x221)]['USER_CONFIG_DETAILS_PATH']=_0x573f2a;const _0x78d7=helper[_0x5d3fb0(0x22a)](_0x2781c3[_0x5d3fb0(0x24d)]);_0x78d7&&(_0x36b7c2=_0x26599f[_0x5d3fb0(0x233)](_0x5d3fb0(0x23d)+_0x78d7+_0x5d3fb0(0x20c),_0x36b7c2));helper['filterBrowserstackArgs']({},_0x1f751b),fs[_0x5d3fb0(0x218)](_0x2099b0,_0x36b7c2),PerformanceTester['end'](PerformanceEvents[_0x5d3fb0(0x1e4)]);const _0xbd1ab2=_0x26599f[_0x5d3fb0(0x1e6)](spawn,_0x26599f[_0x5d3fb0(0x20b)],[_0x26599f[_0x5d3fb0(0x203)],_0x26599f[_0x5d3fb0(0x259)],_0x26599f['XyOfU'],_0x2099b0,..._0x1f751b['slice'](0x2)],{'shell':_0x26599f['nDbBy'](process[_0x5d3fb0(0x1d6)],_0x26599f[_0x5d3fb0(0x201)]),'stdio':_0x26599f['DmXGK'],'cwd':process['cwd'](),'env':Object['assign']({},process[_0x5d3fb0(0x221)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x5d3fb0(0x1fe)](_0x5f2a9f),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x2781c3['config'][_0x5d3fb0(0x21d)][_0x5d3fb0(0x22f)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x2781c3[_0x5d3fb0(0x24d)]['testContextOptions']['skipSessionName'],'BROWSERSTACK_LOG_LEVEL':_0x2781c3['config'][_0x5d3fb0(0x255)]})}),_0x5614bb=()=>{const _0x5cb943=_0x5d3fb0;try{const _0x38eb7a=path[_0x5cb943(0x1da)](helper[_0x5cb943(0x247)](),_0x26599f[_0x5cb943(0x1db)],_0x26599f[_0x5cb943(0x241)]);if(fs['existsSync'](_0x38eb7a)){let _0xe38172=fs[_0x5cb943(0x222)](_0x38eb7a);_0xe38172=JSON['parse'](_0xe38172),_0x2781c3['errorMessage']=_0xe38172,fs[_0x5cb943(0x242)](_0x38eb7a);}}catch(_0xe44620){logger[_0x5cb943(0x21b)](_0x26599f[_0x5cb943(0x233)](_0x26599f[_0x5cb943(0x1d4)],_0xe44620));}};_0xbd1ab2['on'](_0x26599f[_0x5d3fb0(0x266)],async _0xc6ba13=>{const _0x5163f9=_0x5d3fb0,_0x36db3b={};_0x36db3b['TxRJm']=_0x26599f[_0x5163f9(0x1db)];const _0x3986df=_0x36db3b;try{PerformanceTester[_0x5163f9(0x271)](PerformanceEvents[_0x5163f9(0x23c)]),_0x26599f[_0x5163f9(0x22e)](_0x5614bb);!BrowserstackCLI[_0x5163f9(0x21c)]()[_0x5163f9(0x22c)]()&&await TestHubHandler[_0x5163f9(0x205)]();await BrowserstackCLI['getInstance']()[_0x5163f9(0x205)](),TestDetails[_0x5163f9(0x232)](),_0x26599f[_0x5163f9(0x226)](printBuildLink),await utilities[_0x5163f9(0x1eb)](_0x2781c3),process[_0x5163f9(0x207)]=_0xc6ba13,logger[_0x5163f9(0x21b)](_0x5163f9(0x22b)+_0xc6ba13),logger['info']('Deleting\x20'+_0x2099b0),fs[_0x5163f9(0x242)](_0x2099b0);fs[_0x5163f9(0x1de)](_0x24589d)&&(logger[_0x5163f9(0x21b)]('Deleting\x20'+_0x24589d),fs[_0x5163f9(0x242)](_0x24589d));const _0x14e818=fs[_0x5163f9(0x212)](path[_0x5163f9(0x1da)](helper[_0x5163f9(0x247)](),_0x26599f[_0x5163f9(0x1db)]))['filter'](_0x4b39ba=>_0x4b39ba['startsWith']('trace_'));_0x14e818[_0x5163f9(0x257)](_0x301ea3=>{const _0x4c7e05=_0x5163f9;fs['unlinkSync'](path[_0x4c7e05(0x1da)](helper[_0x4c7e05(0x247)](),_0x3986df[_0x4c7e05(0x268)],_0x301ea3));});}catch(_0x208f33){logger[_0x5163f9(0x21b)](_0x26599f['lFTUH'](_0x26599f[_0x5163f9(0x26d)],_0x208f33));}});})();}function a38_0x5984(){const _0x590d39=['wZPXi','SDK_SETUP','MODULE','fDwFv','automation','155WmWFVq','winstonLogger','browserstackSetupConfig.json','finalExecution','isUndefined','1853949sVtLNL','gLFhO','515539RUhUWY','playwright-browserstack-sdk.config.cjs','../../helpers/logger','ZjAJq','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','isFalse','resolvedConfigFile','../utils/constants','measureWrapper','PZkVd','../../helpers/accessibility-automation/helper','indexOf','UeEis','Error\x20in\x20getting\x20funnel\x20data\x20results','301626xTNJrU','getConfigPath','bdqdB','4626550KYtsln','htquW','serializeToYamlString','zhYqK','playwright','stop','launchBuild','exitCode','isTrue','ISwRR','concat','jFhnC','\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();','apply','hKacz','VQStQ','BROWSERSTACK_SETUP_CONFIG_PATH','PACKAGE_TYPE','readdirSync','getConfig','exports','length','browserstackAutomation','--disable-browserstack-automation','writeFileSync','jObvU','KQcaF','debug','getInstance','testContextOptions','pw_result.json','dPiDi','inherit','env','readFileSync','requirePWModule','dirname','testObservability','sgdds','push','--config=','../../helpers/test-observability/utils','getProxyUrl','Playwright\x20process\x20exited\x20with\x20code\x20','isRunning','test','groLk','skipSessionStatus','bootstrap','yEOVi','shutdown','lFTUH','setBrowserstackConfig','JOdSA','get','258oDvmmq','SDK_PRE_INITIALIZE','NFzeO','setFrameworkDetail','filter','SDK_CLEANUP','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','BROWSERSTACK_TEST_OBSERVABILITY','../../helpers/helper','yQwqC','LSjbi','unlinkSync','splice','--config','yMtVz','BROWSERSTACK_AUTOMATION','homedir','BROWSERSTACK_TEST_ACCESSIBILITY_YML','cwd','sSgwo','YtncV','../../helpers/utilities','config','AeqGv','../../helpers/test-observability/constants','initialize','192PnWMsd','.browserstack','dEqIw','validateRerunTestList','logLevel','1738308ApaASa','forEach','GnjRr','UbGGr','43996WqgtGq','trim','rERQL','BMdPx','win32','HvBkV','../v2/browserstackCLI','./accessibility-helper','../../helpers/testhub/testhubHandler','path','cliConfig','playwright-browserstack-sdk.config.js','ZsVeq','--disable-test-observability','TxRJm','slice','clearTempPWConfig','close','map','AnNVG','findIndex','NZLsY','./reporter/test-details','start','17437jGWXhz','getPackageType','nestedKeyValue','QSwbu','npx','platform','resolve','CoXfO','accessibility','join','YiNDk','srabz','Updated\x20config\x20file\x20name\x20to\x20-\x20','existsSync','aAYin','PLAYWRIGHT','KmMqs','BROWSERSTACK_RERUN_TESTS'];a38_0x5984=function(){return _0x590d39;};return a38_0x5984();}function a38_0x3021(_0x218af1,_0x53a9aa){const _0x5984d0=a38_0x5984();return a38_0x3021=function(_0x302117,_0x5aec4e){_0x302117=_0x302117-0x1d2;let _0x3429ad=_0x5984d0[_0x302117];return _0x3429ad;},a38_0x3021(_0x218af1,_0x53a9aa);}module[a38_0x2d1cd2(0x214)]=run;
|
|
2
|
+
'use strict';const a38_0x1727e8=a38_0xdcfa;(function(_0xfc7ba6,_0x24da6c){const _0xd2bf64=a38_0xdcfa,_0x11fa4a=_0xfc7ba6();while(!![]){try{const _0xa924f1=-parseInt(_0xd2bf64(0x1ce))/0x1*(parseInt(_0xd2bf64(0x1f8))/0x2)+-parseInt(_0xd2bf64(0x20a))/0x3+parseInt(_0xd2bf64(0x17f))/0x4+parseInt(_0xd2bf64(0x1b7))/0x5*(-parseInt(_0xd2bf64(0x20e))/0x6)+-parseInt(_0xd2bf64(0x1f7))/0x7+-parseInt(_0xd2bf64(0x1c9))/0x8+parseInt(_0xd2bf64(0x1d8))/0x9*(parseInt(_0xd2bf64(0x1b2))/0xa);if(_0xa924f1===_0x24da6c)break;else _0x11fa4a['push'](_0x11fa4a['shift']());}catch(_0x3c3fd6){_0x11fa4a['push'](_0x11fa4a['shift']());}}}(a38_0x4de8,0x8dfba));function a38_0xdcfa(_0x1507c1,_0x45028e){const _0x4de88b=a38_0x4de8();return a38_0xdcfa=function(_0xdcfa18,_0x47e216){_0xdcfa18=_0xdcfa18-0x167;let _0x38dbd6=_0x4de88b[_0xdcfa18];return _0x38dbd6;},a38_0xdcfa(_0x1507c1,_0x45028e);}const fs=require('fs'),path=require(a38_0x1727e8(0x178)),{spawn}=require('child_process'),{format}=require(a38_0x1727e8(0x209)),logger=require('../../helpers/logger')[a38_0x1727e8(0x1dc)],{default:BrowserStackSetup}=require(a38_0x1727e8(0x185)),helper=require(a38_0x1727e8(0x1ec)),utilities=require(a38_0x1727e8(0x215)),constants=require(a38_0x1727e8(0x19e)),{FRAMEWORKS}=require(a38_0x1727e8(0x179)),{getConfigLoaderPath}=require(a38_0x1727e8(0x199)),{checkAccessibilityPlatformConfig}=require(a38_0x1727e8(0x18f)),{setAccessibilityCapabilities}=require(a38_0x1727e8(0x20b)),{printBuildLink}=require(a38_0x1727e8(0x1d6)),TestDetails=require(a38_0x1727e8(0x1b9)),TestHubHandler=require(a38_0x1727e8(0x174)),PerformanceTester=require(a38_0x1727e8(0x16a)),BrowserstackCLI=require(a38_0x1727e8(0x196)),PerformanceEvents=require(a38_0x1727e8(0x1bc))[a38_0x1727e8(0x1e5)],CLIUtils=require(a38_0x1727e8(0x1ab)),TestInfo=require(a38_0x1727e8(0x1bd)),getUserPlaywrightConfig=async(_0x49846b,_0x1ba84a)=>{const _0xce1d42=a38_0x1727e8,_0x409c41={'GtozW':function(_0x195e28){return _0x195e28();},'uFXAs':function(_0x478b57,_0x481ec9){return _0x478b57(_0x481ec9);},'iFJjr':_0xce1d42(0x1ae),'gPZVU':'--config='},_0x3f175b=!helper[_0xce1d42(0x16c)](_0x49846b[_0xce1d42(0x18d)]),_0xa9b415=_0x3f175b?path[_0xce1d42(0x211)](process[_0xce1d42(0x175)](),_0x49846b['config']):process[_0xce1d42(0x175)](),{resolveConfigFile:_0x3ba521,resolveConfigLocation:_0x17feff}=helper[_0xce1d42(0x213)][_0xce1d42(0x1f1)](null,_0x409c41[_0xce1d42(0x16d)](getConfigLoaderPath)),_0x2ec175=_0x3ba521?_0x409c41[_0xce1d42(0x1cf)](_0x3ba521,_0xa9b415):helper[_0xce1d42(0x20d)](_0x409c41[_0xce1d42(0x1cf)](_0x17feff,_0xa9b415),[_0x409c41['iFJjr']]),_0x52df91={};if(_0x3f175b){const _0x3c2341=_0x1ba84a[_0xce1d42(0x1bb)](_0x5848bf=>_0x5848bf===_0xce1d42(0x172)||_0x5848bf==='-c'||_0x5848bf[_0xce1d42(0x1d0)](_0xce1d42(0x17a)));_0x1ba84a['splice'](_0x3c2341,_0x1ba84a[_0x3c2341]['startsWith'](_0x409c41[_0xce1d42(0x1d1)])?0x1:0x2);}const _0x47b8d8={};return _0x47b8d8['path']=_0x2ec175,_0x47b8d8[_0xce1d42(0x18d)]=_0x52df91,_0x47b8d8;},handleO11yRerun=_0x42cce2=>{const _0x3b31c4=a38_0x1727e8,_0x124777={};_0x124777[_0x3b31c4(0x189)]=_0x3b31c4(0x1a7);const _0x337ec7=_0x124777,_0x358680=helper[_0x3b31c4(0x1b5)](process['env'][_0x3b31c4(0x1dd)]);if(_0x358680){const _0x1b4c6a=process['env'][_0x3b31c4(0x210)],_0x47eed6=[];if(helper[_0x3b31c4(0x181)](_0x1b4c6a)&&!helper['isUndefined'](_0x1b4c6a)){_0x1b4c6a['split'](',')[_0x3b31c4(0x21a)](_0x140adb=>{const _0x2feec1=_0x3b31c4;_0x47eed6['push']('('+_0x140adb[_0x2feec1(0x17c)]()+')');});const _0x5e15d1='^'+_0x47eed6[_0x3b31c4(0x203)]('|')+'$';_0x42cce2[_0x3b31c4(0x1a0)](_0x337ec7[_0x3b31c4(0x189)],_0x5e15d1);}}},spawnOriginalProcess=_0x1ddace=>{const _0x19df5b=a38_0x1727e8,_0x14a237={'VFIWz':function(_0x403010,_0x453516,_0x5b184a,_0x297573){return _0x403010(_0x453516,_0x5b184a,_0x297573);},'NLHap':_0x19df5b(0x1b6),'zWAnZ':_0x19df5b(0x1eb),'aCeeb':function(_0x1d6c5c,_0x1f050c){return _0x1d6c5c===_0x1f050c;},'NbBHw':_0x19df5b(0x167),'nGKkp':_0x19df5b(0x1aa)};_0x14a237[_0x19df5b(0x1c7)](spawn,_0x14a237[_0x19df5b(0x1de)],[_0x14a237[_0x19df5b(0x19d)],..._0x1ddace['slice'](0x1)],{'shell':_0x14a237[_0x19df5b(0x1be)](process[_0x19df5b(0x218)],_0x14a237[_0x19df5b(0x1a1)]),'stdio':_0x14a237[_0x19df5b(0x1f2)],'cwd':process[_0x19df5b(0x175)]()});},isTestCommand=(_0x2e528f,_0x51a5ea)=>{const _0x4a3617=a38_0x1727e8,_0x31edb6={};_0x31edb6[_0x4a3617(0x18a)]=function(_0x137a28,_0xdeea15){return _0x137a28>_0xdeea15;},_0x31edb6[_0x4a3617(0x1b3)]=function(_0x3f10c6,_0xd849b9){return _0x3f10c6===_0xd849b9;},_0x31edb6[_0x4a3617(0x205)]='test';const _0x388b49=_0x31edb6;if(_0x388b49[_0x4a3617(0x18a)](_0x51a5ea[_0x4a3617(0x194)],0x1)&&_0x388b49[_0x4a3617(0x1b3)](_0x51a5ea[0x1],_0x388b49[_0x4a3617(0x205)]))return!![];return![];};async function run(_0x35a085,_0xf3b196,_0x5054f6){const _0x471c77=a38_0x1727e8,_0x53e30a={'STYQP':function(_0x1b342a,_0x2a3182){return _0x1b342a(_0x2a3182);},'BrMLZ':_0x471c77(0x1e3),'RLlwN':_0x471c77(0x1e4),'QFKPb':function(_0xbbddec,_0x4be802){return _0xbbddec+_0x4be802;},'OCUDR':_0x471c77(0x1cb),'edgSD':function(_0x327cdf){return _0x327cdf();},'WDvSL':function(_0x84aae9,_0x1a6cda){return _0x84aae9+_0x1a6cda;},'rZZat':_0x471c77(0x18e),'SkmiN':_0x471c77(0x168),'Cofkp':function(_0x432b50,_0x330f8d){return _0x432b50===_0x330f8d;},'kALbR':_0x471c77(0x16b),'oPrqL':_0x471c77(0x1f6),'HdfCE':function(_0x1302b0,_0x219a6a){return _0x1302b0>=_0x219a6a;},'tbaIS':_0x471c77(0x1ea),'IMGJd':function(_0x516b3a,_0x5e2d72){return _0x516b3a!=_0x5e2d72;},'rXfCc':function(_0x136d3e,_0xbad442,_0x384291){return _0x136d3e(_0xbad442,_0x384291);},'RhLGu':function(_0x46066d,_0x31b905){return _0x46066d(_0x31b905);},'hZoEd':_0x471c77(0x16e),'MpkEg':function(_0x2d98b8,_0x4084d1){return _0x2d98b8(_0x4084d1);},'nCzuJ':function(_0x14c855,_0x4ebb68){return _0x14c855(_0x4ebb68);},'bxRxn':_0x471c77(0x1c6),'UgZTV':function(_0x3e0d92,_0x17bb13){return _0x3e0d92===_0x17bb13;},'iZAyK':_0x471c77(0x1df),'bDOPT':_0x471c77(0x219),'fRXFL':function(_0x50d88f,_0x1d91bf){return _0x50d88f-_0x1d91bf;},'xspYw':function(_0x46a019,_0x580885){return _0x46a019+_0x580885;},'EIpNj':_0x471c77(0x1f4),'OtxQw':function(_0x50a3ed,_0x34d92f){return _0x50a3ed>_0x34d92f;},'eYpGu':function(_0x1b273c,_0x832b7c){return _0x1b273c+_0x832b7c;},'NWNXY':function(_0x57b795,_0x3c5c98,_0x4ed44c,_0x87bba8){return _0x57b795(_0x3c5c98,_0x4ed44c,_0x87bba8);},'fWxMd':_0x471c77(0x1b6),'PBOrw':'playwright','SVbrE':_0x471c77(0x184),'vYWVv':_0x471c77(0x172),'IDIKE':function(_0x3f3100,_0x2f3e30){return _0x3f3100===_0x2f3e30;},'ELscC':_0x471c77(0x167),'aesoQ':_0x471c77(0x1aa),'TMLCo':_0x471c77(0x1bf),'hfRah':_0x471c77(0x186),'hmVWZ':function(_0x368a53,_0x249c99,_0xd129ec){return _0x368a53(_0x249c99,_0xd129ec);}};try{const _0x4f0a5e=path[_0x471c77(0x203)](helper['homedir'](),_0x53e30a['BrMLZ'],_0x53e30a['RLlwN']);fs['existsSync'](_0x4f0a5e)&&fs[_0x471c77(0x195)](_0x4f0a5e);}catch(_0x36e6aa){logger[_0x471c77(0x18b)](_0x53e30a[_0x471c77(0x1fd)](_0x53e30a[_0x471c77(0x1a6)],_0x36e6aa));}if(!_0x53e30a['hmVWZ'](isTestCommand,_0x35a085,_0xf3b196)){_0x53e30a[_0x471c77(0x21b)](spawnOriginalProcess,_0xf3b196);return;}await PerformanceTester['measureWrapper'](PerformanceEvents[_0x471c77(0x1d3)],async()=>{const _0x2643cc=_0x471c77,_0x37482b={'gizmC':_0x53e30a[_0x2643cc(0x1ad)],'lydFp':_0x53e30a[_0x2643cc(0x1c8)],'NriNo':function(_0x54f7be,_0x417415){const _0x1e14b8=_0x2643cc;return _0x53e30a[_0x1e14b8(0x1fd)](_0x54f7be,_0x417415);},'CZMhB':_0x53e30a[_0x2643cc(0x193)],'LHBRP':function(_0x4514b0){const _0x3f5902=_0x2643cc;return _0x53e30a[_0x3f5902(0x1fe)](_0x4514b0);},'exdiN':function(_0x2cb47e,_0x26a04c){const _0x16e8dc=_0x2643cc;return _0x53e30a[_0x16e8dc(0x1c4)](_0x2cb47e,_0x26a04c);},'DnyND':_0x53e30a[_0x2643cc(0x18c)]};if(!_0x5054f6[_0x2643cc(0x18d)]){logger[_0x2643cc(0x21e)](_0x53e30a[_0x2643cc(0x173)]);return;}await _0x5054f6['initialize'](_0x35a085),CLIUtils[_0x2643cc(0x17d)](FRAMEWORKS[_0x2643cc(0x1e6)],FRAMEWORKS['PLAYWRIGHT']),BrowserstackCLI[_0x2643cc(0x1ee)]()[_0x2643cc(0x1f5)](_0x5054f6[_0x2643cc(0x18d)],_0x5054f6[_0x2643cc(0x1c1)]),await BrowserstackCLI[_0x2643cc(0x1ee)]()[_0x2643cc(0x1a9)]();const _0x4bfe21=BrowserstackCLI[_0x2643cc(0x1ee)]()['getConfig']();!helper[_0x2643cc(0x201)](_0x4bfe21[_0x2643cc(0x1e0)])&&(process[_0x2643cc(0x1af)][_0x2643cc(0x1cc)]=!![]);_0x53e30a[_0x2643cc(0x1f0)](_0x4bfe21['browserstackAutomation'],![])&&(process[_0x2643cc(0x1af)][_0x2643cc(0x1cc)]=_0x53e30a['kALbR'],_0xf3b196=_0xf3b196['filter'](_0x5c0fc9=>_0x5c0fc9!==_0x2643cc(0x1b0)));const _0x16161b=_0xf3b196['indexOf'](_0x53e30a[_0x2643cc(0x1ed)]);(_0x53e30a[_0x2643cc(0x19f)](_0x16161b,0x0)||_0x53e30a[_0x2643cc(0x1f0)](_0x4bfe21['testObservability'],![]))&&(process['env'][_0x2643cc(0x1fa)]=_0x53e30a[_0x2643cc(0x20c)],_0xf3b196=_0xf3b196[_0x2643cc(0x198)](_0x41c48d=>_0x41c48d!==_0x2643cc(0x1f6)));!helper['isUndefined'](_0x5054f6[_0x2643cc(0x1c1)])&&_0x5054f6[_0x2643cc(0x1c1)][_0x2643cc(0x1a2)](_0x53e30a[_0x2643cc(0x1fb)])&&(process['env'][_0x2643cc(0x1cc)]=_0x5054f6[_0x2643cc(0x1c1)][_0x2643cc(0x19a)](_0x53e30a[_0x2643cc(0x1fb)])||!![]);_0x53e30a['IMGJd'](_0x5054f6[_0x2643cc(0x18d)]['testObservability'],null)&&!helper[_0x2643cc(0x1b5)](process[_0x2643cc(0x1af)][_0x2643cc(0x1fa)])&&(process[_0x2643cc(0x1af)][_0x2643cc(0x1fa)]=process[_0x2643cc(0x1af)][_0x2643cc(0x1fa)]||_0x5054f6[_0x2643cc(0x18d)]['testObservability']);const _0x3eb87c=!helper[_0x2643cc(0x201)](process[_0x2643cc(0x1af)][_0x2643cc(0x1fa)]);_0x5054f6[_0x2643cc(0x18d)]['accessibilityOptions']&&(process[_0x2643cc(0x1af)][_0x2643cc(0x1b1)]=JSON[_0x2643cc(0x190)](_0x5054f6[_0x2643cc(0x18d)][_0x2643cc(0x21d)]));let _0x4098bf=![];_0x5054f6['config'][_0x2643cc(0x1e1)]&&(_0x4098bf=!![],process['env'][_0x2643cc(0x1da)]=_0x5054f6['config']['accessibility']);const _0x590800=_0xf3b196[_0x2643cc(0x16f)](),_0x457ba9=await _0x53e30a[_0x2643cc(0x1b4)](getUserPlaywrightConfig,_0x35a085,_0xf3b196);if(helper['isUndefined'](_0x457ba9)){_0x53e30a[_0x2643cc(0x21b)](spawnOriginalProcess,_0x590800);return;}const _0x44793c=_0x457ba9[_0x2643cc(0x178)]?path['dirname'](_0x457ba9[_0x2643cc(0x178)]):process[_0x2643cc(0x175)]();process['env'][_0x2643cc(0x1d2)]=_0x44793c,await PerformanceTester[_0x2643cc(0x1ba)](PerformanceEvents[_0x2643cc(0x1f3)],async()=>{const _0x1dd490=_0x2643cc;!BrowserstackCLI[_0x1dd490(0x1ee)]()['isRunning']()&&await TestHubHandler[_0x1dd490(0x1db)](FRAMEWORKS['PLAYWRIGHT'],_0x5054f6),_0x3eb87c&&_0x53e30a[_0x1dd490(0x17b)](handleO11yRerun,_0xf3b196);})();if(!BrowserstackCLI['getInstance']()[_0x2643cc(0x1a5)]()){let _0x3852ee=_0x53e30a[_0x2643cc(0x1f0)](process[_0x2643cc(0x1af)][_0x2643cc(0x1da)],_0x53e30a[_0x2643cc(0x182)]);_0x3852ee=_0x3852ee||_0x53e30a[_0x2643cc(0x170)](checkAccessibilityPlatformConfig,_0x5054f6[_0x2643cc(0x18d)]),process[_0x2643cc(0x1af)][_0x2643cc(0x1da)]=_0x3852ee,_0x3852ee&&_0x53e30a[_0x2643cc(0x217)](setAccessibilityCapabilities,_0x5054f6['config']);}const _0x25b802=path[_0x2643cc(0x203)](_0x457ba9[_0x2643cc(0x178)]?path[_0x2643cc(0x1d9)](_0x457ba9[_0x2643cc(0x178)]):process['cwd'](),_0x53e30a[_0x2643cc(0x206)]);fs['writeFileSync'](_0x25b802,helper[_0x2643cc(0x1ef)](_0x5054f6[_0x2643cc(0x18d)])),process[_0x2643cc(0x1af)][_0x2643cc(0x1d5)]=_0x25b802,helper['clearTempPWConfig']();let _0x59d110='';_0x53e30a[_0x2643cc(0x1e8)](helper[_0x2643cc(0x183)](),constants[_0x2643cc(0x1c0)]['MODULE'])?_0x59d110=_0x53e30a[_0x2643cc(0x177)]:_0x59d110=_0x53e30a[_0x2643cc(0x191)];let _0x222cec='';if(helper['isTypescriptProject'](_0x457ba9[_0x2643cc(0x178)])){_0x222cec=_0x2643cc(0x1fc);const _0x3998a9=_0x59d110['split']('.');_0x3998a9[_0x53e30a['fRXFL'](_0x3998a9[_0x2643cc(0x194)],0x1)]='ts',_0x59d110=_0x3998a9[_0x2643cc(0x203)]('.'),logger['debug'](_0x53e30a['xspYw'](_0x53e30a[_0x2643cc(0x21c)],_0x59d110));}else _0x222cec=_0x2643cc(0x1c5);const _0x1cf4d9=path[_0x2643cc(0x203)](_0x457ba9[_0x2643cc(0x178)]?path[_0x2643cc(0x1d9)](_0x457ba9[_0x2643cc(0x178)]):process[_0x2643cc(0x175)](),_0x59d110);let _0x2cc686=_0x457ba9[_0x2643cc(0x178)]?_0x457ba9[_0x2643cc(0x178)]:'';_0x2cc686=_0x53e30a[_0x2643cc(0x1a3)](_0x2cc686['length'],0x0)?path[_0x2643cc(0x211)](_0x2cc686):'',process[_0x2643cc(0x1af)][_0x2643cc(0x208)]=_0x2cc686;const _0x352ce5=helper['getProxyUrl'](_0x5054f6[_0x2643cc(0x18d)]);_0x352ce5&&(_0x222cec=_0x53e30a['eYpGu'](_0x2643cc(0x1e9)+_0x352ce5+_0x2643cc(0x202),_0x222cec));helper[_0x2643cc(0x1ca)]({},_0xf3b196),fs[_0x2643cc(0x187)](_0x1cf4d9,_0x222cec),PerformanceTester['end'](PerformanceEvents[_0x2643cc(0x1e2)]);const _0x206219=_0x53e30a[_0x2643cc(0x1d7)](spawn,_0x53e30a['fWxMd'],[_0x53e30a[_0x2643cc(0x1f9)],_0x53e30a[_0x2643cc(0x1e7)],_0x53e30a[_0x2643cc(0x214)],_0x1cf4d9,..._0xf3b196[_0x2643cc(0x19c)](0x2)],{'shell':_0x53e30a[_0x2643cc(0x1b8)](process[_0x2643cc(0x218)],_0x53e30a['ELscC']),'stdio':_0x53e30a[_0x2643cc(0x180)],'cwd':process[_0x2643cc(0x175)](),'env':Object['assign']({},process[_0x2643cc(0x1af)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x2643cc(0x1a8)](_0x35a085),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x5054f6['config']['testContextOptions']['skipSessionStatus'],'BROWSERSTACK_SKIP_SESSION_NAME':_0x5054f6[_0x2643cc(0x18d)][_0x2643cc(0x17e)][_0x2643cc(0x171)],'BROWSERSTACK_LOG_LEVEL':_0x5054f6[_0x2643cc(0x18d)][_0x2643cc(0x188)]})}),_0x6f4c92=()=>{const _0x18642a=_0x2643cc;try{const _0x3f0f27=path[_0x18642a(0x203)](helper['homedir'](),_0x37482b[_0x18642a(0x216)],_0x37482b[_0x18642a(0x1c2)]);if(fs[_0x18642a(0x1d4)](_0x3f0f27)){let _0x462ec2=fs[_0x18642a(0x212)](_0x3f0f27);_0x462ec2=JSON[_0x18642a(0x1a4)](_0x462ec2),_0x5054f6['errorMessage']=_0x462ec2,fs[_0x18642a(0x195)](_0x3f0f27);}}catch(_0x3779a7){logger['debug'](_0x37482b[_0x18642a(0x192)](_0x37482b[_0x18642a(0x1c3)],_0x3779a7));}};_0x206219['on'](_0x53e30a[_0x2643cc(0x204)],async _0x495c5f=>{const _0x3ac90f=_0x2643cc;try{PerformanceTester[_0x3ac90f(0x1ff)](PerformanceEvents[_0x3ac90f(0x176)]),_0x37482b[_0x3ac90f(0x207)](_0x6f4c92);!BrowserstackCLI[_0x3ac90f(0x1ee)]()[_0x3ac90f(0x1a5)]()&&await TestHubHandler['stop']();await BrowserstackCLI[_0x3ac90f(0x1ee)]()[_0x3ac90f(0x169)](),TestDetails['shutdown'](),_0x37482b[_0x3ac90f(0x207)](printBuildLink),await utilities[_0x3ac90f(0x200)](_0x5054f6),process['exitCode']=_0x495c5f,logger['debug'](_0x3ac90f(0x20f)+_0x495c5f),logger[_0x3ac90f(0x197)](_0x3ac90f(0x1ac)+_0x1cf4d9),fs[_0x3ac90f(0x195)](_0x1cf4d9);fs[_0x3ac90f(0x1d4)](_0x25b802)&&(logger[_0x3ac90f(0x18b)](_0x3ac90f(0x1ac)+_0x25b802),fs[_0x3ac90f(0x195)](_0x25b802));const _0x4cccf4=fs['readdirSync'](path[_0x3ac90f(0x203)](helper[_0x3ac90f(0x19b)](),_0x37482b[_0x3ac90f(0x216)]))['filter'](_0x318570=>_0x318570['startsWith'](_0x3ac90f(0x21f)));_0x4cccf4['forEach'](_0x12926b=>{const _0x1bb730=_0x3ac90f;fs[_0x1bb730(0x195)](path[_0x1bb730(0x203)](helper[_0x1bb730(0x19b)](),_0x37482b[_0x1bb730(0x216)],_0x12926b));});}catch(_0x283a0f){logger[_0x3ac90f(0x18b)](_0x37482b['exdiN'](_0x37482b['DnyND'],_0x283a0f));}});})();}function a38_0x4de8(){const _0x44b367=['debug','rZZat','config','Error\x20in\x20closing\x20playwright','../../helpers/accessibility-automation/helper','stringify','bDOPT','NriNo','OCUDR','length','unlinkSync','../v2/browserstackCLI','info','filter','./reporter/pwUtils','get','homedir','slice','zWAnZ','../utils/constants','HdfCE','push','NbBHw','has','OtxQw','parse','isRunning','hfRah','--grep','getConfigPath','bootstrap','inherit','../v2/cliUtils','Deleting\x20','BrMLZ','resolvedConfigFile','env','--disable-browserstack-automation','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','5149670DvWcuJ','WFNFS','rXfCc','isTrue','npx','15SUqhML','IDIKE','./reporter/test-details','measureWrapper','findIndex','../../helpers/performance/constants','../v2/TestInfo','aCeeb','close','PACKAGE_TYPE','cliConfig','lydFp','CZMhB','WDvSL','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','browserstackSetupConfig.json','VFIWz','RLlwN','6956384fZWhPc','filterBrowserstackArgs','Error\x20in\x20getting\x20funnel\x20data\x20results','BROWSERSTACK_AUTOMATION','exports','9hxRnZn','uFXAs','startsWith','gPZVU','BROWSERSTACK_PW_CONFIG_DIR','SDK_PRE_INITIALIZE','existsSync','BROWSERSTACK_SETUP_CONFIG_PATH','../../helpers/test-observability/utils','NWNXY','63zWhiEi','dirname','BROWSERSTACK_TEST_ACCESSIBILITY_YML','launchBuild','winstonLogger','BROWSERSTACK_RERUN','NLHap','playwright-browserstack-sdk.config.cjs','browserstackAutomation','accessibility','SDK_SETUP','.browserstack','pw_result.json','EVENTS','PLAYWRIGHT','SVbrE','UgZTV','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','automation','playwright','../../helpers/helper','oPrqL','getInstance','serializeToYamlString','Cofkp','apply','nGKkp','SDK_POST_INITIALIZE','Updated\x20config\x20file\x20name\x20to\x20-\x20','setBrowserstackConfig','--disable-test-observability','3053498ftJNOk','191494UWzqzE','PBOrw','BROWSERSTACK_TEST_OBSERVABILITY','tbaIS','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','QFKPb','edgSD','start','finalExecution','isFalse','\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();','join','TMLCo','LwfWm','bxRxn','LHBRP','USER_CONFIG_DETAILS_PATH','util','2763747ZiHNgS','./accessibility-helper','kALbR','nestedKeyValue','1318956uKGVWf','Playwright\x20process\x20exited\x20with\x20code\x20','BROWSERSTACK_RERUN_TESTS','resolve','readFileSync','requirePWModule','vYWVv','../../helpers/utilities','gizmC','nCzuJ','platform','playwright-browserstack-sdk.config.js','map','RhLGu','EIpNj','accessibilityOptions','error','trace_','win32','BrowserStack\x20config\x20file\x20not\x20found.','stop','../../helpers/performance/performance-tester','false','isUndefined','GtozW','true','concat','MpkEg','skipSessionName','--config','SkmiN','../../helpers/testhub/testhubHandler','cwd','SDK_CLEANUP','iZAyK','path','../../helpers/test-observability/constants','--config=','STYQP','trim','setFrameworkDetail','testContextOptions','2900020PcrUIX','aesoQ','validateRerunTestList','hZoEd','getPackageType','test','../../helpers/BrowserStackSetup','Error\x20in\x20deleting\x20playwright\x20results','writeFileSync','logLevel','NGxCu','pyOlK'];a38_0x4de8=function(){return _0x44b367;};return a38_0x4de8();}module[a38_0x1727e8(0x1cd)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a39_0x2086(){const _0xdd26e1=['resolve','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20','7130586aaakeU','qTgRk','2wigffF','../../helpers/test-observability/utils','GfCmb','UIuTm','error','../../helpers/test-observability/constants','kNycs','child_process','1100181reibrf','601241DBKoqu','exports','util','Running\x20existing\x20global\x20setup','16719640BsEklI','132615TAOqyy','isHandlePWErrorSet','1.33.0','apply','rqGTk','./mock-process.js','5IjEmdc','debug','./reporter/pwUtils','GwGzs','Not\x20able\x20to\x20import\x20globalSetup','vlwZx','env','../../helpers/logger','ELZJy','3168156VowjlX','format','424uQOKuD','includes','winstonLogger','fork','7964334HWPEbP'];a39_0x2086=function(){return _0xdd26e1;};return a39_0x2086();}const a39_0x26bb34=a39_0x39e4;(function(_0x159966,_0x2ec1fb){const _0x3ddb82=a39_0x39e4,_0x21ab3e=_0x159966();while(!![]){try{const _0x3dcc0d=parseInt(_0x3ddb82(0x101))/0x1*(parseInt(_0x3ddb82(0xf8))/0x2)+-parseInt(_0x3ddb82(0x100))/0x3+-parseInt(_0x3ddb82(0xec))/0x4*(parseInt(_0x3ddb82(0xe3))/0x5)+parseInt(_0x3ddb82(0xf6))/0x6+-parseInt(_0x3ddb82(0xdd))/0x7*(-parseInt(_0x3ddb82(0xee))/0x8)+parseInt(_0x3ddb82(0xf2))/0x9+-parseInt(_0x3ddb82(0x105))/0xa;if(_0x3dcc0d===_0x2ec1fb)break;else _0x21ab3e['push'](_0x21ab3e['shift']());}catch(_0x148e99){_0x21ab3e['push'](_0x21ab3e['shift']());}}}(a39_0x2086,0xcf051));function a39_0x39e4(_0x2fcfa9,_0x15d40e){const _0x208664=a39_0x2086();return a39_0x39e4=function(_0x39e4d1,_0x21c855){_0x39e4d1=_0x39e4d1-0xdd;let _0x58e9bb=_0x208664[_0x39e4d1];return _0x58e9bb;},a39_0x39e4(_0x2fcfa9,_0x15d40e);}const util=require(a39_0x26bb34(0x103)),child_process=require(a39_0x26bb34(0xff)),{FRAMEWORKS}=require(a39_0x26bb34(0xfd)),{getFrameworkVersion,debug}=require(a39_0x26bb34(0xf9)),helper=require('../../helpers/helper'),{getLoadUtilsPath,getForkProcessPath}=require(a39_0x26bb34(0xe5)),{mockIsWorkerRedundant}=require('./patches'),logger=require(a39_0x26bb34(0xea))[a39_0x26bb34(0xf0)];module[a39_0x26bb34(0x102)]=async function(_0x856c24){const _0x168c6a=a39_0x26bb34,_0x469f75={'UIuTm':function(_0x49992f,_0x387261){return _0x49992f(_0x387261);},'ELZJy':function(_0x1191ce){return _0x1191ce();},'kHKWL':_0x168c6a(0xe2),'GfCmb':function(_0x43c838){return _0x43c838();},'NfEZD':_0x168c6a(0x104),'rqGTk':function(_0x562a2a,_0x5cbc49){return _0x562a2a(_0x5cbc49);},'GwGzs':function(_0x308532,_0x8a83ea){return _0x308532>=_0x8a83ea;},'FSSCT':_0x168c6a(0xdf),'vlwZx':function(_0x4d9bd3,_0x4a348c,_0x2e92fa){return _0x4d9bd3(_0x4a348c,_0x2e92fa);},'BNMvF':function(_0x1e0260,_0x1be692){return _0x1e0260!==_0x1be692;},'LBCPf':'function','qTgRk':_0x168c6a(0xe7),'kNycs':function(_0x432d19,_0x5eadf2){return _0x432d19(_0x5eadf2);}},_0x757e1b=child_process['fork'];if(helper[_0x168c6a(0xde)]())try{_0x469f75['GfCmb'](mockIsWorkerRedundant);}catch(_0x1b954d){logger[_0x168c6a(0xe4)](_0x168c6a(0xf5)+util[_0x168c6a(0xed)](_0x1b954d));}child_process[_0x168c6a(0xf1)]=function(){const _0x4b3fe6=_0x168c6a;return _0x469f75[_0x4b3fe6(0xfb)](debug,'Call\x20to\x20child\x20fork\x20with\x20args\x20'+arguments[0x0]),arguments[0x0][_0x4b3fe6(0xef)](_0x469f75['ELZJy'](getForkProcessPath))?arguments[0x0]=require[_0x4b3fe6(0xf3)](_0x469f75['kHKWL']):logger[_0x4b3fe6(0xfc)]('Path\x20'+_0x469f75[_0x4b3fe6(0xeb)](getForkProcessPath)+'\x20is\x20not\x20found'),_0x757e1b[_0x4b3fe6(0xe0)](null,arguments);};if(process[_0x168c6a(0xe9)][_0x168c6a(0xf4)]){_0x469f75[_0x168c6a(0xfb)](debug,_0x469f75['NfEZD']);try{const {loadGlobalHook:_0x379e4a}=helper['requirePWModule']['apply'](null,_0x469f75[_0x168c6a(0xfa)](getLoadUtilsPath)),_0x281721=_0x469f75[_0x168c6a(0xe1)](getFrameworkVersion,FRAMEWORKS['PLAYWRIGHT']);let _0x5a90b6=_0x856c24;if(_0x469f75[_0x168c6a(0xe6)](helper['compareVersions'](_0x281721,_0x469f75['FSSCT']),0x0)){const _0x5c5bb9={};_0x5c5bb9['config']=_0x856c24,_0x5a90b6=_0x5c5bb9;}const _0x5a50eb=await _0x469f75[_0x168c6a(0xe8)](_0x379e4a,_0x5a90b6,process['env'][_0x168c6a(0xf4)]);if(_0x469f75['BNMvF'](typeof _0x5a50eb,_0x469f75['LBCPf']))throw new Error(_0x469f75[_0x168c6a(0xf7)]);return _0x5a50eb[_0x168c6a(0xe0)](null,arguments);}catch(_0x110978){_0x469f75[_0x168c6a(0xfe)](debug,'Error\x20in\x20calling\x20existing\x20global\x20setup:\x20'+_0x110978['toString']());}}};
|