browserstack-node-sdk 1.40.4 → 1.40.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +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
|
-
function a35_0x4c14(_0x1ac01e,_0x39f5a0){const _0x52bc0a=a35_0x52bc();return a35_0x4c14=function(_0x4c14bf,_0x3a1b36){_0x4c14bf=_0x4c14bf-0x1b5;let _0x10421b=_0x52bc0a[_0x4c14bf];return _0x10421b;},a35_0x4c14(_0x1ac01e,_0x39f5a0);}const a35_0x4e3b5b=a35_0x4c14;function a35_0x52bc(){const _0x4b4e47=['http:','Qpkty','RIywL','AisfO','CmRqr','3080208alaAUB','SDK_HOOK','EiqYL','duigL','qXuKh','avIDu','push','lOPKq','Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20','appium:app','\x20-\x20','VmbVm','kfdyq','DWSWy','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','capabilities','\x20|\x20','dPmBd','qVcFV','ENV_VAR','745nLhJiw','SESSION_NAME','performScan','../../helpers/globals','CIzTe','measureWrapper','Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20','../../helpers/testhub/constants','fCBLt',',\x22level\x22:\x20\x22','info','../../helpers/accessibility-automation/scripts','hdGYt','WMdgX','JyABA','BROWSERSTACK_TESTHUB_UUID','stringify','XJrOq','error','KABUe','gvsna','cUknZ','browserstackSessionName','hJxvv','testAnalyticsId','aMvGD','FxYbE','jaKOp','__platformCaps','uHvUP','wqPSo','getGlobal','dbZbH','afterEach','Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20','uxDiN','__error_messages__','message','setGlobal','IQmMT','SQykB','ohuUT','app','Automate\x20test\x20case\x20execution\x20has\x20started.','YTBYW','VMSFb','quitCount_','../../helpers/percy/utils','driverCleanup','index','then','\x22}}','UpNUG','SESSION_STATUS','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','join','eQclE','startMonitoring','RWFhe','QvEDF','executeScript','QeTtK','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','shift','vONoQ','AypRG','initQuit','qiNAb','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','protocol','sessionName','beforeEach','PQjiJ','7mzUwTZ','SAVE_RESULTS','ImAQK','browserstackTestName','VDAjW','debug','BHnnw','53390ziJZqC','titlePath','1504877eRnawn','now','632433CyKMDn','fkJhE','shouldScanTestForAccessibility','command','XCixo','SqHdH','state','AbmWo','Performing\x20scan\x20before\x20saving\x20results','end','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','gMtfZ','MGRpu','kaXIL','414pcURga','percyCaptureMode','duYAf','bstackA11yShouldScan','qWhqU','bNdTV','afterAll','../../helpers/logger','axIzg','4LODWNc','https:','oNGYc','util','ObservabilitySync:','SaEcv','beforeAll','VNxLy','IIZOI','executeAsyncScript','VxyCo','LlmAd','__sessionFailed','rRGWE','Mocha','Xxgka','xqKPg','PeqFe','saveTestResults','passed','__drivers','currentTest','format','JRzAl','isAccessibilityPlatform','TXavx','Jrrnb','length','yvZGi','RBOCR','timeout','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','SYNC','finally','12244YbdQcf','failed','Passed','env','pHZGs','accessibilityScanStarted','jZTGb','uzaLN','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','411337nOELZH','Ovigc','2366744GlgCln','lrmaO','__skipSessionName','testcase','../../helpers/testhub/utils','ETOrJ','bmjOG','CTfhq','Failed\x20to\x20store\x20session\x20name:\x20','session_','ujDEj','MqEYq','kPWJb','EPLci','err','kIAKc','Failed:\x20','.\x20Error\x20:','lzvPx'];a35_0x52bc=function(){return _0x4b4e47;};return a35_0x52bc();}(function(_0x2df019,_0x188374){const _0x1b615f=a35_0x4c14,_0x40b993=_0x2df019();while(!![]){try{const _0x54700a=parseInt(_0x1b615f(0x265))/0x1+-parseInt(_0x1b615f(0x23a))/0x2*(-parseInt(_0x1b615f(0x223))/0x3)+-parseInt(_0x1b615f(0x25c))/0x4*(-parseInt(_0x1b615f(0x1cf))/0x5)+-parseInt(_0x1b615f(0x1bb))/0x6+parseInt(_0x1b615f(0x218))/0x7*(-parseInt(_0x1b615f(0x267))/0x8)+parseInt(_0x1b615f(0x231))/0x9*(-parseInt(_0x1b615f(0x21f))/0xa)+parseInt(_0x1b615f(0x221))/0xb;if(_0x54700a===_0x188374)break;else _0x40b993['push'](_0x40b993['shift']());}catch(_0x5c2d6f){_0x40b993['push'](_0x40b993['shift']());}}}(a35_0x52bc,0x5a96a));const util=require(a35_0x4e3b5b(0x23d)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require('../../helpers/accessibility-automation/helper'),{TEST_FRAMEWORK_HOOK_TIMEOUT}=require('../utils/constants'),{percyAutoCapture}=require(a35_0x4e3b5b(0x1fe)),{sendPlatformDetails}=require('./test-observability/mochaUtils'),{isBrowserstackInfra,markSessionStatus,nestedKeyValue}=require('../../helpers/helper'),PerformanceTester=require('../../helpers/performance/performance-tester'),{AUTOMATE_EVENTS:PerformanceAutEvents,O11y_EVENTS:PerformanceO11yEvents,A11Y_EVENTS:PerformanceA11yEvents,EVENTS:PerformanceSdkEvents}=require('../../helpers/performance/constants'),scripts=require(a35_0x4e3b5b(0x1da)),globals=require(a35_0x4e3b5b(0x1d2)),logger=require(a35_0x4e3b5b(0x238))['winstonLogger'],{shouldProcessEventForTesthub}=require(a35_0x4e3b5b(0x26b)),testHubConstants=require(a35_0x4e3b5b(0x1d6));exports['mochaHooks']={'beforeAll'(){const _0x52d9ef=a35_0x4e3b5b,_0xb0a85={'uHvUP':function(_0x477c5b,_0x2368cb,_0x4919ff,_0x515864){return _0x477c5b(_0x2368cb,_0x4919ff,_0x515864);},'uxDiN':_0x52d9ef(0x25d),'qVcFV':_0x52d9ef(0x1cb),'jaKOp':function(_0x39ecf5,_0x5f23b3,_0x15d6de){return _0x39ecf5(_0x5f23b3,_0x15d6de);},'lOPKq':_0x52d9ef(0x24d),'aMvGD':function(_0x46f653){return _0x46f653();},'VNxLy':function(_0x13d177,_0x165d61,_0x532e10){return _0x13d177(_0x165d61,_0x532e10);},'tzHLy':'index','VxyCo':_0x52d9ef(0x240)};PerformanceTester[_0x52d9ef(0x208)]();const _0x293cfd='browserstack internal helper hook';PerformanceTester['measureWrapper'](PerformanceSdkEvents[_0x52d9ef(0x1bc)],()=>{const _0x36a61e=_0x52d9ef;global[_0x36a61e(0x1f3)]=[],global[_0x36a61e(0x246)]=![],global[_0x36a61e(0x1ff)]=async()=>{const _0x2b3c5f=_0x36a61e;let _0x33448a=![];try{await global[_0x2b3c5f(0x24e)][0x0][_0x2b3c5f(0x270)],_0x33448a=!![],global['__sessionFailed']?await _0xb0a85[_0x2b3c5f(0x1ec)](markSessionStatus,global['__drivers'][0x0],_0xb0a85[_0x2b3c5f(0x1f2)],global[_0x2b3c5f(0x1f3)][_0x2b3c5f(0x206)](_0xb0a85[_0x2b3c5f(0x1cd)])):await _0xb0a85[_0x2b3c5f(0x1ea)](markSessionStatus,global[_0x2b3c5f(0x24e)][0x0],_0xb0a85[_0x2b3c5f(0x1c2)]);}catch(_0x39a9ec){logger[_0x2b3c5f(0x21d)]('Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20'+_0x39a9ec);}global['__error_messages__']=[],global[_0x2b3c5f(0x246)]=![];if(_0x33448a)try{try{_0xb0a85[_0x2b3c5f(0x1e8)](shouldProcessEventForTesthub)&&(global[_0x2b3c5f(0x24e)][0x0]&&await _0xb0a85[_0x2b3c5f(0x1ea)](sendPlatformDetails,global[_0x2b3c5f(0x24e)][0x0],this['currentTest']?this[_0x2b3c5f(0x24f)][_0x2b3c5f(0x1e7)]:null));}catch(_0x5bcf2e){logger[_0x2b3c5f(0x21d)](_0x2b3c5f(0x1f1)+_0x5bcf2e);}await global['__drivers'][0x0][_0x2b3c5f(0x211)]();}catch(_0x267760){logger[_0x2b3c5f(0x21d)]('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0x267760);}};},{'platform':_0xb0a85[_0x52d9ef(0x241)](nestedKeyValue,global[_0x52d9ef(0x1eb)],[_0xb0a85['tzHLy']]),'hookType':_0xb0a85[_0x52d9ef(0x244)]})();},'beforeEach'(_0x1e7105){const _0x527417=a35_0x4e3b5b,_0x180ef6={'lzvPx':function(_0x2e899f,_0x546064){return _0x2e899f>_0x546064;},'XCixo':_0x527417(0x1c5),'LlmAd':function(_0x4ca584,_0x3cc7d9,_0x434f68){return _0x4ca584(_0x3cc7d9,_0x434f68);},'SqHdH':_0x527417(0x234),'ujDEj':function(_0x443dc4){return _0x443dc4();},'oNGYc':'isAccessibilityPlatform','CmRqr':function(_0x3864e7,_0x401917){return _0x3864e7===_0x401917;},'BuggU':_0x527417(0x1b6),'QeTtK':_0x527417(0x23b),'IIZOI':_0x527417(0x205),'RIywL':_0x527417(0x1fa),'UpNUG':_0x527417(0x21b),'NrATU':_0x527417(0x200),'avIDu':_0x527417(0x216)};globals['setGlobal'](_0x180ef6[_0x527417(0x203)],this[_0x527417(0x24f)][_0x527417(0x220)]()[_0x527417(0x206)](_0x180ef6[_0x527417(0x227)])),PerformanceTester[_0x527417(0x1d4)](PerformanceSdkEvents[_0x527417(0x1bc)],()=>{const _0x4591fb=_0x527417,_0x11a6d3={'kaXIL':function(_0x2325cf,_0x376a81){const _0x5002a1=a35_0x4c14;return _0x180ef6[_0x5002a1(0x1b5)](_0x2325cf,_0x376a81);},'gMtfZ':_0x180ef6[_0x4591fb(0x227)],'PQjiJ':function(_0x53a0a8,_0x4a98c8,_0x52779a){const _0x388660=_0x4591fb;return _0x180ef6[_0x388660(0x245)](_0x53a0a8,_0x4a98c8,_0x52779a);},'qiNAb':_0x180ef6[_0x4591fb(0x228)],'XJrOq':function(_0x249747){const _0x51a34e=_0x4591fb;return _0x180ef6[_0x51a34e(0x271)](_0x249747);},'lrmaO':function(_0x543ac9,_0x15b358){const _0x1040e6=_0x4591fb;return _0x180ef6[_0x1040e6(0x1b5)](_0x543ac9,_0x15b358);},'bmjOG':_0x180ef6[_0x4591fb(0x23c)],'apYcN':function(_0x56f1dc,_0x5c66a3){const _0x58fe4d=_0x4591fb;return _0x180ef6[_0x58fe4d(0x1ba)](_0x56f1dc,_0x5c66a3);},'MqEYq':_0x180ef6['BuggU'],'ngtGz':_0x180ef6[_0x4591fb(0x20c)],'jZTGb':_0x180ef6[_0x4591fb(0x242)],'VmbVm':_0x180ef6[_0x4591fb(0x1b8)],'DWSWy':function(_0xaef5d9){const _0x4d9f95=_0x4591fb;return _0x180ef6[_0x4d9f95(0x271)](_0xaef5d9);}},_0x3ebb60='browserstack internal helper hook';new Promise(async _0x222d52=>{const _0x27948c=_0x4591fb;let _0x148b21=!![];try{_0x11a6d3['kaXIL'](global[_0x27948c(0x24e)][_0x27948c(0x255)],0x1)&&(await global[_0x27948c(0x1ff)](),global['__drivers']['shift']()),_0x11a6d3[_0x27948c(0x230)](global[_0x27948c(0x24e)][0x0][_0x27948c(0x1fd)],0x0)&&(_0x148b21=![],await global[_0x27948c(0x1ff)]());}catch(_0x45c054){logger[_0x27948c(0x21d)](_0x27948c(0x259)+_0x45c054);}try{Array['isArray'](global[_0x27948c(0x24e)])&&global['__drivers'][0x0]&&(global[_0x27948c(0x24e)][0x0]['browserstackSessionName']=this['currentTest'][_0x27948c(0x220)]()['join'](_0x11a6d3['gMtfZ'])),global[_0x27948c(0x1e5)]=this[_0x27948c(0x24f)][_0x27948c(0x220)]()[_0x27948c(0x206)](_0x11a6d3[_0x27948c(0x22e)]);}catch(_0x37899f){logger['debug'](_0x27948c(0x26f)+_0x37899f);}this[_0x27948c(0x24f)][_0x27948c(0x225)]=_0x11a6d3[_0x27948c(0x217)](shouldScanTestForAccessibility,this[_0x27948c(0x24f)][_0x27948c(0x220)](),!![]),globals[_0x27948c(0x1f5)](_0x11a6d3[_0x27948c(0x212)],this[_0x27948c(0x24f)][_0x27948c(0x225)]),this[_0x27948c(0x24f)][_0x27948c(0x261)]=!![];if(_0x11a6d3[_0x27948c(0x1e0)](isAccessibilityAutomationSession)&&_0x148b21&&Array['isArray'](global[_0x27948c(0x24e)])&&_0x11a6d3[_0x27948c(0x268)](global['__drivers'][_0x27948c(0x255)],0x0)&&globals[_0x27948c(0x1ee)](_0x11a6d3[_0x27948c(0x26d)]))try{const _0x4e9925=await global[_0x27948c(0x24e)][0x0][_0x27948c(0x270)];if(_0x4e9925){let _0x55c4dd=!![];const _0x581e3c=await global[_0x27948c(0x24e)][0x0]['getCurrentUrl']();let _0x1e8548;try{_0x1e8548=new URL(_0x581e3c);}catch(_0x10a90f){_0x55c4dd=![];}_0x55c4dd=_0x11a6d3['apYcN'](_0x1e8548[_0x27948c(0x214)],_0x11a6d3[_0x27948c(0x272)])||_0x11a6d3['apYcN'](_0x1e8548[_0x27948c(0x214)],_0x11a6d3['ngtGz']),_0x55c4dd&&(this['currentTest'][_0x27948c(0x225)]&&logger[_0x27948c(0x1d9)](_0x11a6d3[_0x27948c(0x262)])),this[_0x27948c(0x24f)][_0x27948c(0x261)]=this[_0x27948c(0x24f)]['shouldScanTestForAccessibility'],this['currentTest'][_0x27948c(0x225)]&&logger[_0x27948c(0x1d9)](_0x11a6d3[_0x27948c(0x1c6)]);}}catch(_0x4786bd){logger['error'](_0x27948c(0x22d)+util[_0x27948c(0x250)](_0x4786bd));}_0x11a6d3[_0x27948c(0x1e0)](_0x222d52);})['then'](()=>{const _0x85fd90=_0x4591fb;_0x11a6d3[_0x85fd90(0x1c8)](_0x1e7105);});},{'platform':_0x180ef6[_0x527417(0x245)](nestedKeyValue,global[_0x527417(0x1eb)],[_0x180ef6['NrATU']]),'hookType':_0x180ef6[_0x527417(0x1c0)]})();},'afterEach'(_0x16f9ad){const _0x21de32=a35_0x4e3b5b,_0x4ebe93={'SQykB':function(_0x237834){return _0x237834();},'AbmWo':_0x21de32(0x1c5),'qXuKh':function(_0x43c79e,_0x48c219){return _0x43c79e!==_0x48c219;},'CIzTe':_0x21de32(0x24d),'CTfhq':function(_0xb274d6,_0x32d28d,_0x482d85){return _0xb274d6(_0x32d28d,_0x482d85);},'nxrdD':function(_0xe12d47,_0x458d87){return _0xe12d47+_0x458d87;},'TXavx':_0x21de32(0x277),'Jrrnb':_0x21de32(0x1e1),'cUknZ':_0x21de32(0x25e),'QvEDF':_0x21de32(0x1d9),'KABUe':function(_0x3b342d,_0x1cebe1){return _0x3b342d>_0x1cebe1;},'RBOCR':function(_0x40bd33,_0x5beaf4){return _0x40bd33===_0x5beaf4;},'fkJhE':_0x21de32(0x26a),'bNdTV':_0x21de32(0x1c4),'ajrIR':function(_0x1c3c0a,_0x2dca5b,_0x13f8b1,_0x44cd73){return _0x1c3c0a(_0x2dca5b,_0x13f8b1,_0x44cd73);},'rRGWE':_0x21de32(0x252),'DZHTK':_0x21de32(0x234),'SaEcv':_0x21de32(0x1c9),'duYAf':_0x21de32(0x22b),'vONoQ':'afterTest','ROBEc':'Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','ImAQK':function(_0x2645b7){return _0x2645b7();},'Ovigc':function(_0x44f67d){return _0x44f67d();},'eQclE':function(_0x2fd214,_0x54db4f,_0x54b9f3){return _0x2fd214(_0x54db4f,_0x54b9f3);},'Qpkty':_0x21de32(0x21d),'wqPSo':_0x21de32(0x248),'uLKmu':_0x21de32(0x200),'JyABA':_0x21de32(0x1f0)},_0x2ca739='browserstack internal helper hook';this[_0x21de32(0x258)](TEST_FRAMEWORK_HOOK_TIMEOUT[_0x4ebe93[_0x21de32(0x1ed)]]),global[_0x21de32(0x215)]=this[_0x21de32(0x24f)]['titlePath']()['join'](_0x4ebe93[_0x21de32(0x22a)]),PerformanceTester[_0x21de32(0x1d4)](PerformanceSdkEvents[_0x21de32(0x1bc)],()=>{const _0x4ef5dc=_0x21de32,_0x754644={'PeqFe':_0x4ebe93[_0x4ef5dc(0x22a)],'kIAKc':function(_0x5219ab,_0x5eb474){const _0x24eaf7=_0x4ef5dc;return _0x4ebe93[_0x24eaf7(0x1bf)](_0x5219ab,_0x5eb474);},'RWFhe':_0x4ebe93[_0x4ef5dc(0x1d3)],'kPWJb':function(_0x442c19,_0x2c666b,_0x4b16cd){const _0x460cb8=_0x4ef5dc;return _0x4ebe93[_0x460cb8(0x26e)](_0x442c19,_0x2c666b,_0x4b16cd);},'EPLci':function(_0x48e18a,_0x5a04cf){return _0x4ebe93['nxrdD'](_0x48e18a,_0x5a04cf);},'hJxvv':_0x4ebe93[_0x4ef5dc(0x253)],'VDAjW':_0x4ebe93[_0x4ef5dc(0x254)],'mkjBN':_0x4ebe93[_0x4ef5dc(0x1e4)],'xqKPg':_0x4ebe93[_0x4ef5dc(0x20a)],'hdGYt':function(_0x15bc70,_0x9c20ca){const _0xa2da4c=_0x4ef5dc;return _0x4ebe93[_0xa2da4c(0x1e2)](_0x15bc70,_0x9c20ca);},'duigL':function(_0xf30734,_0x3e8d19){const _0x1f84a4=_0x4ef5dc;return _0x4ebe93[_0x1f84a4(0x257)](_0xf30734,_0x3e8d19);},'AisfO':_0x4ebe93[_0x4ef5dc(0x224)],'axIzg':function(_0x1bdcd0,_0x4b30c7){const _0x1cedf3=_0x4ef5dc;return _0x4ebe93[_0x1cedf3(0x1e2)](_0x1bdcd0,_0x4b30c7);},'qWhqU':_0x4ebe93[_0x4ef5dc(0x236)],'EiqYL':function(_0x3142cf,_0x42faeb,_0x5aefc8,_0x9d7b80){return _0x4ebe93['ajrIR'](_0x3142cf,_0x42faeb,_0x5aefc8,_0x9d7b80);},'MGRpu':_0x4ebe93[_0x4ef5dc(0x247)],'BHnnw':_0x4ebe93['DZHTK'],'FxYbE':_0x4ebe93[_0x4ef5dc(0x23f)],'uzaLN':_0x4ebe93[_0x4ef5dc(0x233)],'YTBYW':_0x4ebe93[_0x4ef5dc(0x20f)],'ETOrJ':_0x4ebe93['ROBEc'],'fCBLt':function(_0x9949c9){const _0x559b90=_0x4ef5dc;return _0x4ebe93[_0x559b90(0x21a)](_0x9949c9);},'WMdgX':function(_0x17e245){const _0x140653=_0x4ef5dc;return _0x4ebe93[_0x140653(0x266)](_0x17e245);},'kfdyq':function(_0xad390b,_0x54f561,_0x52742a){const _0x6cce48=_0x4ef5dc;return _0x4ebe93[_0x6cce48(0x207)](_0xad390b,_0x54f561,_0x52742a);},'Xxgka':_0x4ebe93[_0x4ef5dc(0x1b7)],'XOsjk':function(_0xb237c8){return _0x4ebe93['SQykB'](_0xb237c8);}},_0x38b15e=async(_0x3db978,_0x412dbc)=>{const _0x1013dc=_0x4ef5dc;await global['__drivers'][0x0][_0x1013dc(0x20b)](_0x1013dc(0x213)+_0x3db978+_0x1013dc(0x1d8)+_0x412dbc+_0x1013dc(0x202));};new Promise(async _0x4d2b19=>{const _0x31d301=_0x4ef5dc,_0x255eae={'pHZGs':function(_0x3389cf,_0x40b49b){const _0x32d9d0=a35_0x4c14;return _0x754644[_0x32d9d0(0x276)](_0x3389cf,_0x40b49b);},'dbZbH':_0x754644[_0x31d301(0x209)],'IQmMT':function(_0x1a9d1a,_0xb535b0,_0x57c552){return _0x754644['kPWJb'](_0x1a9d1a,_0xb535b0,_0x57c552);},'VeWff':function(_0x5d1f5e,_0x3aa4cb){const _0x315c8b=_0x31d301;return _0x754644[_0x315c8b(0x274)](_0x5d1f5e,_0x3aa4cb);},'yvZGi':_0x754644[_0x31d301(0x1e6)],'DrAhm':_0x754644[_0x31d301(0x21c)],'pZQKv':function(_0x62f3f2,_0x17184f,_0x13aa20){const _0x26fd6a=_0x31d301;return _0x754644[_0x26fd6a(0x273)](_0x62f3f2,_0x17184f,_0x13aa20);},'AypRG':_0x754644['mkjBN'],'VMSFb':_0x754644[_0x31d301(0x24a)]};try{_0x754644[_0x31d301(0x1db)](global['__drivers'][_0x31d301(0x255)],0x1)&&(await global[_0x31d301(0x1ff)](),global[_0x31d301(0x24e)][_0x31d301(0x20e)](),global[_0x31d301(0x1f3)]=[],global['__sessionFailed']=![]);try{if(global['percy']&&_0x754644[_0x31d301(0x1be)](global[_0x31d301(0x232)],_0x754644['AisfO'])&&global[_0x31d301(0x24e)][0x0]){const _0xbe53fd=_0x754644['axIzg'](global[_0x31d301(0x1ca)][_0x31d301(0x255)],0x0)?!!global[_0x31d301(0x1ca)][0x0][_0x31d301(0x1f9)]||!!global[_0x31d301(0x1ca)][0x0][_0x754644[_0x31d301(0x235)]]:![],_0x4571e0={};_0x4571e0[_0x31d301(0x1f9)]=_0xbe53fd,await _0x754644[_0x31d301(0x1bd)](percyAutoCapture,global[_0x31d301(0x24e)][0x0],_0x754644[_0x31d301(0x1b9)],_0x4571e0);}}catch(_0x2d1919){logger['debug'](_0x31d301(0x1d5)+_0x2d1919);}!global[_0x31d301(0x269)]&&(await PerformanceTester[_0x31d301(0x1d4)](PerformanceAutEvents[_0x31d301(0x1d0)],async()=>{const _0x3504c6=_0x31d301;await global[_0x3504c6(0x24e)][0x0][_0x3504c6(0x20b)](_0x3504c6(0x20d)+JSON['stringify'](this['currentTest'][_0x3504c6(0x220)]()[_0x3504c6(0x206)](_0x754644[_0x3504c6(0x24b)]))+'}}');})(),global['__drivers'][0x0]['sessionNameSet__']=!![]),await PerformanceTester[_0x31d301(0x1d4)](PerformanceAutEvents[_0x31d301(0x204)],async()=>{const _0x55d44c=_0x31d301,_0x100817=_0x255eae[_0x55d44c(0x260)](this[_0x55d44c(0x24f)][_0x55d44c(0x229)],_0x255eae[_0x55d44c(0x1ef)]);_0x100817?(global[_0x55d44c(0x246)]=!![],global['__error_messages__'][_0x55d44c(0x1c1)](this[_0x55d44c(0x24f)][_0x55d44c(0x275)][_0x55d44c(0x1f4)]),await _0x255eae[_0x55d44c(0x1f6)](_0x38b15e,JSON[_0x55d44c(0x1df)](_0x255eae['VeWff'](_0x255eae[_0x55d44c(0x256)],this[_0x55d44c(0x24f)][_0x55d44c(0x275)]['message'])),_0x255eae['DrAhm'])):await _0x255eae['pZQKv'](_0x38b15e,JSON[_0x55d44c(0x1df)](_0x255eae[_0x55d44c(0x210)]),_0x255eae[_0x55d44c(0x1fc)]);})();}catch(_0x2c321f){logger[_0x31d301(0x21d)]('Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20'+_0x2c321f);}try{if(this[_0x31d301(0x24f)][_0x31d301(0x261)]&&globals[_0x31d301(0x1ee)](_0x754644[_0x31d301(0x22f)])&&globals[_0x31d301(0x1ee)](_0x754644[_0x31d301(0x21e)])){logger[_0x31d301(0x1d9)](_0x754644[_0x31d301(0x1e9)]);const _0x4c14f={};_0x4c14f['thTestRunUuid']=this[_0x31d301(0x24f)]['testAnalyticsId'],_0x4c14f['thBuildUuid']=process['env'][testHubConstants[_0x31d301(0x1ce)][_0x31d301(0x1de)]],_0x4c14f['thJwtToken']=process[_0x31d301(0x25f)][testHubConstants[_0x31d301(0x1ce)]['BROWSERSTACK_TESTHUB_JWT']];const _0xbc0a39=_0x4c14f;logger[_0x31d301(0x21d)]('Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20'+JSON[_0x31d301(0x1df)](_0xbc0a39)),logger[_0x31d301(0x21d)](_0x754644[_0x31d301(0x263)]);const _0x59c95c={};_0x59c95c[_0x31d301(0x226)]=_0x754644[_0x31d301(0x1fb)],await PerformanceTester[_0x31d301(0x1d4)](PerformanceA11yEvents['PERFORM_SCAN'],async()=>{const _0x15bb5d=_0x31d301;logger[_0x15bb5d(0x21d)](util[_0x15bb5d(0x250)](await global[_0x15bb5d(0x24e)][0x0]['executeAsyncScript'](scripts[_0x15bb5d(0x1d1)],{'method':global[_0x15bb5d(0x1e5)]})));},_0x59c95c)(),await PerformanceTester[_0x31d301(0x1d4)](PerformanceA11yEvents[_0x31d301(0x219)],async()=>{const _0x493519=_0x31d301;await global[_0x493519(0x24e)][0x0][_0x493519(0x243)](scripts[_0x493519(0x24c)],_0xbc0a39);})(),logger['info'](_0x754644[_0x31d301(0x26c)]);}}catch(_0x546976){logger[_0x31d301(0x1e1)](_0x31d301(0x264)+this[_0x31d301(0x24f)][_0x31d301(0x220)]()+_0x31d301(0x278),_0x546976);}try{try{if(_0x754644[_0x31d301(0x1d7)](shouldProcessEventForTesthub)){global[_0x31d301(0x24e)][0x0]&&await _0x754644[_0x31d301(0x273)](sendPlatformDetails,global[_0x31d301(0x24e)][0x0],this[_0x31d301(0x24f)]?this[_0x31d301(0x24f)][_0x31d301(0x1e7)]:null);if(_0x754644[_0x31d301(0x1dc)](isBrowserstackInfra)){PerformanceTester['start'](PerformanceO11yEvents[_0x31d301(0x25a)]);const _0x84342=_0x31d301(0x23e)+Date[_0x31d301(0x222)]();await _0x754644[_0x31d301(0x1c7)](_0x38b15e,JSON[_0x31d301(0x1df)](_0x84342),_0x754644[_0x31d301(0x249)]),PerformanceTester[_0x31d301(0x22c)](PerformanceO11yEvents[_0x31d301(0x25a)]);}}}catch(_0x219ac6){logger[_0x31d301(0x21d)](_0x31d301(0x1c3)+_0x219ac6),PerformanceTester[_0x31d301(0x22c)](PerformanceO11yEvents['SYNC'],![],_0x219ac6);}_0x754644[_0x31d301(0x239)](global[_0x31d301(0x24e)][0x0][_0x31d301(0x1fd)],0x0)&&await global[_0x31d301(0x1ff)]();}catch(_0x5bf461){logger[_0x31d301(0x21d)]('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0x5bf461);}_0x754644['XOsjk'](_0x4d2b19);})[_0x4ef5dc(0x201)](()=>{const _0x47ae1f=_0x4ef5dc;_0x4ebe93[_0x47ae1f(0x1f7)](_0x16f9ad);});},{'platform':_0x4ebe93['CTfhq'](nestedKeyValue,global[_0x21de32(0x1eb)],[_0x4ebe93['uLKmu']]),'hookType':_0x4ebe93[_0x21de32(0x1dd)]})();},'afterAll'(_0x4b98dc){const _0x5adb61=a35_0x4e3b5b,_0x10e20b={'dPmBd':function(_0xf3113b){return _0xf3113b();},'ohuUT':'Mocha','uHpiQ':function(_0x54132b,_0x3cfc2e,_0x394969){return _0x54132b(_0x3cfc2e,_0x394969);},'gvsna':_0x5adb61(0x200),'XBjSZ':_0x5adb61(0x237)},_0x2c2132='browserstack internal helper hook';this[_0x5adb61(0x258)](TEST_FRAMEWORK_HOOK_TIMEOUT[_0x10e20b[_0x5adb61(0x1f8)]]),PerformanceTester[_0x5adb61(0x1d4)](PerformanceSdkEvents[_0x5adb61(0x1bc)],()=>{const _0xb75231=_0x5adb61,_0x4e87af={'JRzAl':function(_0x1a69ac){const _0x4fdfbd=a35_0x4c14;return _0x10e20b[_0x4fdfbd(0x1cc)](_0x1a69ac);}};new Promise(async _0x260b3e=>{const _0x301a9d=a35_0x4c14;await global[_0x301a9d(0x1ff)](),_0x4e87af[_0x301a9d(0x251)](_0x260b3e);})['then']()[_0xb75231(0x25b)](()=>{_0x10e20b['dPmBd'](_0x4b98dc);});},{'platform':_0x10e20b['uHpiQ'](nestedKeyValue,global[_0x5adb61(0x1eb)],[_0x10e20b[_0x5adb61(0x1e3)]]),'hookType':_0x10e20b['XBjSZ']})();}};
|
|
1
|
+
const a35_0x3c8e4e=a35_0x3efd;function a35_0x3efd(_0x3b190a,_0x45a560){const _0x51ccae=a35_0x51cc();return a35_0x3efd=function(_0x3efdc6,_0xc83c15){_0x3efdc6=_0x3efdc6-0x137;let _0x1b03bb=_0x51ccae[_0x3efdc6];return _0x1b03bb;},a35_0x3efd(_0x3b190a,_0x45a560);}function a35_0x51cc(){const _0x53e319=['OOXgF','MywcF','5621371TyXhbL','KMDCh','mztDh','rjFZI','error','udXZj','qTxKy','passed','capabilities','GMnLY','CZPte','trsfG','22099977WlgyQj','initQuit','util','xbpcS','failed','ZuaRg','isAccessibilityPlatform','Passed','EZCmD','state','IdaFS','qXQSU','uInns','AatdM','percyCaptureMode','../../helpers/performance/performance-tester','IWDkA','PERFORM_SCAN','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','qzspf','__sessionFailed','TIpmK','kEIqS','Failed\x20to\x20store\x20session\x20name:\x20','lsOsV','mAtvt','start','driverCleanup','getGlobal','finally','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20',',\x22level\x22:\x20\x22','fWqCQ','ObservabilitySync:','../../helpers/testhub/utils','../../helpers/performance/constants','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','afterEach','RhxBo','wbHJk','Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20','env','stringify','Kryvy','BeIrq','__platformCaps','ENV_VAR','PvODx','titlePath','HoShv','urTtA','../../helpers/accessibility-automation/scripts','info','browserstackTestName','command','afterTest','arAaU','vDyAm','BROWSERSTACK_TESTHUB_JWT','\x20|\x20','quitCount_','push','CBAMG','lZGXn','../../helpers/accessibility-automation/helper','SDK_HOOK','getCurrentUrl','etnge','mochaHooks','cnTBT','JIuzw','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','HTNlG','HBxLA','qlCTV','PxuRN','hCuin','fZJXM','RXeNX','appium:app','6430992DEzJLY','browserstackSessionName','eJdLf','../../helpers/globals','testAnalyticsId','percy','then','../utils/constants','SESSION_STATUS','YEJAH','nVYvC','__drivers','68345vqmWWA','message','AOoSH','WShAY','DjWNF','end','winstonLogger','protocol','\x20-\x20','xLnjO','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','shift','ifngn','length','thJwtToken','AwDci','shouldScanTestForAccessibility','JaTGG','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','beforeAll','accessibilityScanStarted','format','.\x20Error\x20:','228dDYexA','Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20','ArKpA','setGlobal','6GZttyw','measureWrapper','app','Performing\x20scan\x20before\x20saving\x20results','../../helpers/testhub/constants','34498nSmxqE','session_','thTestRunUuid','OlhVL','yXWNE','iMJNZ','haqgy','aGrzl','GWmWW','SWOYT','YzBrV','gyBiT','SYNC','frvVb','./test-observability/mochaUtils','gpJOY','join','Failed:\x20','fRodk','bstackA11yShouldScan','executeAsyncScript','Sriuk','\x22}}','yxYFG','oavNO','1705890aaZwUs','BROWSERSTACK_TESTHUB_UUID','uMKVX','wyKyt','bzVPS','rRgsL','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','debug','3290232ATozKV','../../helpers/logger','Automate\x20test\x20case\x20execution\x20has\x20started.','Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20','Mocha','startMonitoring','qvpKF','cuLEv','__error_messages__','index','saveTestResults','ERMwv','currentTest','performScan','LHveT','ylgnO','Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20','timeout','err'];a35_0x51cc=function(){return _0x53e319;};return a35_0x51cc();}(function(_0x4d8f5c,_0x359030){const _0xd9aa00=a35_0x3efd,_0x226b2c=_0x4d8f5c();while(!![]){try{const _0x17b99a=-parseInt(_0xd9aa00(0x140))/0x1*(parseInt(_0xd9aa00(0x145))/0x2)+-parseInt(_0xd9aa00(0x15e))/0x3+parseInt(_0xd9aa00(0x13c))/0x4*(-parseInt(_0xd9aa00(0x1e4))/0x5)+-parseInt(_0xd9aa00(0x166))/0x6+-parseInt(_0xd9aa00(0x17b))/0x7+parseInt(_0xd9aa00(0x1d8))/0x8+parseInt(_0xd9aa00(0x187))/0x9;if(_0x17b99a===_0x359030)break;else _0x226b2c['push'](_0x226b2c['shift']());}catch(_0x564f5c){_0x226b2c['push'](_0x226b2c['shift']());}}}(a35_0x51cc,0x6f829));const util=require(a35_0x3c8e4e(0x189)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a35_0x3c8e4e(0x1c7)),{TEST_FRAMEWORK_HOOK_TIMEOUT}=require(a35_0x3c8e4e(0x1df)),{percyAutoCapture}=require('../../helpers/percy/utils'),{sendPlatformDetails}=require(a35_0x3c8e4e(0x153)),{isBrowserstackInfra,markSessionStatus,nestedKeyValue}=require('../../helpers/helper'),PerformanceTester=require(a35_0x3c8e4e(0x196)),{AUTOMATE_EVENTS:PerformanceAutEvents,O11y_EVENTS:PerformanceO11yEvents,A11Y_EVENTS:PerformanceA11yEvents,EVENTS:PerformanceSdkEvents}=require(a35_0x3c8e4e(0x1aa)),scripts=require(a35_0x3c8e4e(0x1ba)),globals=require(a35_0x3c8e4e(0x1db)),logger=require(a35_0x3c8e4e(0x167))[a35_0x3c8e4e(0x1ea)],{shouldProcessEventForTesthub}=require(a35_0x3c8e4e(0x1a9)),testHubConstants=require(a35_0x3c8e4e(0x144));exports[a35_0x3c8e4e(0x1cb)]={'beforeAll'(){const _0x396120=a35_0x3c8e4e,_0x33921d={'kEIqS':function(_0x1a32c1,_0x3242a4,_0x7abb93,_0x1b346d){return _0x1a32c1(_0x3242a4,_0x7abb93,_0x1b346d);},'dMfZJ':_0x396120(0x18b),'SWOYT':_0x396120(0x1c2),'Rkucj':function(_0x4a3dcc,_0x416bbb,_0x14479f){return _0x4a3dcc(_0x416bbb,_0x14479f);},'CZPte':_0x396120(0x182),'yXWNE':function(_0x1afabb){return _0x1afabb();},'DjWNF':function(_0x187495,_0x5cf533,_0x3d627f){return _0x187495(_0x5cf533,_0x3d627f);},'BeIrq':_0x396120(0x16f),'ERMwv':_0x396120(0x138)};PerformanceTester[_0x396120(0x16b)]();const _0x56362f='browserstack internal helper hook';PerformanceTester[_0x396120(0x141)](PerformanceSdkEvents[_0x396120(0x1c8)],()=>{const _0x23c5c8=_0x396120,_0x35c3d1={'rRgsL':function(_0x49424d,_0xc32418,_0xe3a84a,_0x7bb987){const _0x45b5c5=a35_0x3efd;return _0x33921d[_0x45b5c5(0x19d)](_0x49424d,_0xc32418,_0xe3a84a,_0x7bb987);},'ArKpA':_0x33921d['dMfZJ'],'frvVb':_0x33921d[_0x23c5c8(0x14e)],'urTtA':function(_0x2a9f92,_0x4e4d0c,_0xafdd54){return _0x33921d['Rkucj'](_0x2a9f92,_0x4e4d0c,_0xafdd54);},'fZJXM':_0x33921d[_0x23c5c8(0x185)],'HBxLA':function(_0x46d9a0){const _0x5c812a=_0x23c5c8;return _0x33921d[_0x5c812a(0x149)](_0x46d9a0);}};global[_0x23c5c8(0x16e)]=[],global[_0x23c5c8(0x19b)]=![],global[_0x23c5c8(0x1a2)]=async()=>{const _0x5b7df5=_0x23c5c8;let _0x39b32d=![];try{await global[_0x5b7df5(0x1e3)][0x0][_0x5b7df5(0x146)],_0x39b32d=!![],global['__sessionFailed']?await _0x35c3d1[_0x5b7df5(0x163)](markSessionStatus,global[_0x5b7df5(0x1e3)][0x0],_0x35c3d1[_0x5b7df5(0x13e)],global[_0x5b7df5(0x16e)][_0x5b7df5(0x155)](_0x35c3d1[_0x5b7df5(0x152)])):await _0x35c3d1[_0x5b7df5(0x1b9)](markSessionStatus,global[_0x5b7df5(0x1e3)][0x0],_0x35c3d1[_0x5b7df5(0x1d5)]);}catch(_0x15d4cb){logger[_0x5b7df5(0x165)](_0x5b7df5(0x169)+_0x15d4cb);}global[_0x5b7df5(0x16e)]=[],global[_0x5b7df5(0x19b)]=![];if(_0x39b32d)try{try{_0x35c3d1[_0x5b7df5(0x1d1)](shouldProcessEventForTesthub)&&(global[_0x5b7df5(0x1e3)][0x0]&&await _0x35c3d1[_0x5b7df5(0x1b9)](sendPlatformDetails,global[_0x5b7df5(0x1e3)][0x0],this[_0x5b7df5(0x172)]?this[_0x5b7df5(0x172)][_0x5b7df5(0x1dc)]:null));}catch(_0x3a2e2d){logger['debug'](_0x5b7df5(0x176)+_0x3a2e2d);}await global[_0x5b7df5(0x1e3)][0x0][_0x5b7df5(0x188)]();}catch(_0x21ae31){logger[_0x5b7df5(0x165)](_0x5b7df5(0x1ee)+_0x21ae31);}};},{'platform':_0x33921d[_0x396120(0x1e8)](nestedKeyValue,global['__platformCaps'],[_0x33921d[_0x396120(0x1b3)]]),'hookType':_0x33921d[_0x396120(0x171)]})();},'beforeEach'(_0xf668be){const _0x2f6319=a35_0x3c8e4e,_0xbc8af0={'xbpcS':function(_0x24b546,_0x113048){return _0x24b546>_0x113048;},'AatdM':'\x20-\x20','mAtvt':function(_0x31bf6b,_0x47b24e,_0x31c351){return _0x31bf6b(_0x47b24e,_0x31c351);},'MywcF':'bstackA11yShouldScan','lZGXn':function(_0x315cba){return _0x315cba();},'PvODx':_0x2f6319(0x18d),'iMJNZ':function(_0x207db6,_0x1cf5b5){return _0x207db6===_0x1cf5b5;},'GMnLY':'http:','JgZpz':'https:','Kryvy':'Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','KMDCh':_0x2f6319(0x168),'qzspf':function(_0x22fb7a){return _0x22fb7a();},'LHveT':_0x2f6319(0x1bc),'YzBrV':'index','gyBiT':'beforeEach'};globals['setGlobal'](_0xbc8af0[_0x2f6319(0x174)],this[_0x2f6319(0x172)][_0x2f6319(0x1b7)]()[_0x2f6319(0x155)](_0xbc8af0[_0x2f6319(0x194)])),PerformanceTester[_0x2f6319(0x141)](PerformanceSdkEvents[_0x2f6319(0x1c8)],()=>{const _0x536cae='browserstack internal helper hook';new Promise(async _0x35fa22=>{const _0x14aa37=a35_0x3efd;let _0x1ac165=!![];try{_0xbc8af0[_0x14aa37(0x18a)](global[_0x14aa37(0x1e3)][_0x14aa37(0x1f1)],0x1)&&(await global[_0x14aa37(0x1a2)](),global[_0x14aa37(0x1e3)][_0x14aa37(0x1ef)]()),_0xbc8af0[_0x14aa37(0x18a)](global['__drivers'][0x0][_0x14aa37(0x1c3)],0x0)&&(_0x1ac165=![],await global[_0x14aa37(0x1a2)]());}catch(_0x1304ec){logger[_0x14aa37(0x165)]('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0x1304ec);}try{Array['isArray'](global['__drivers'])&&global[_0x14aa37(0x1e3)][0x0]&&(global['__drivers'][0x0][_0x14aa37(0x1d9)]=this[_0x14aa37(0x172)][_0x14aa37(0x1b7)]()['join'](_0xbc8af0[_0x14aa37(0x194)])),global[_0x14aa37(0x1d9)]=this[_0x14aa37(0x172)][_0x14aa37(0x1b7)]()[_0x14aa37(0x155)](_0xbc8af0['AatdM']);}catch(_0x4b9bdd){logger[_0x14aa37(0x165)](_0x14aa37(0x19e)+_0x4b9bdd);}this[_0x14aa37(0x172)][_0x14aa37(0x1f4)]=_0xbc8af0['mAtvt'](shouldScanTestForAccessibility,this['currentTest'][_0x14aa37(0x1b7)](),!![]),globals[_0x14aa37(0x13f)](_0xbc8af0[_0x14aa37(0x17a)],this['currentTest'][_0x14aa37(0x1f4)]),this['currentTest']['accessibilityScanStarted']=!![];if(_0xbc8af0[_0x14aa37(0x1c6)](isAccessibilityAutomationSession)&&_0x1ac165&&Array['isArray'](global[_0x14aa37(0x1e3)])&&_0xbc8af0['xbpcS'](global[_0x14aa37(0x1e3)][_0x14aa37(0x1f1)],0x0)&&globals[_0x14aa37(0x1a3)](_0xbc8af0[_0x14aa37(0x1b6)]))try{const _0x3fb3ad=await global['__drivers'][0x0][_0x14aa37(0x146)];if(_0x3fb3ad){let _0xa21c26=!![];const _0x4ba660=await global[_0x14aa37(0x1e3)][0x0][_0x14aa37(0x1c9)]();let _0x16e7c2;try{_0x16e7c2=new URL(_0x4ba660);}catch(_0x1841ce){_0xa21c26=![];}_0xa21c26=_0xbc8af0[_0x14aa37(0x14a)](_0x16e7c2['protocol'],_0xbc8af0[_0x14aa37(0x184)])||_0xbc8af0[_0x14aa37(0x14a)](_0x16e7c2[_0x14aa37(0x1eb)],_0xbc8af0['JgZpz']),_0xa21c26&&(this[_0x14aa37(0x172)]['shouldScanTestForAccessibility']&&logger[_0x14aa37(0x1bb)](_0xbc8af0[_0x14aa37(0x1b2)])),this[_0x14aa37(0x172)][_0x14aa37(0x139)]=this[_0x14aa37(0x172)][_0x14aa37(0x1f4)],this[_0x14aa37(0x172)]['shouldScanTestForAccessibility']&&logger[_0x14aa37(0x1bb)](_0xbc8af0[_0x14aa37(0x17c)]);}}catch(_0x1ed219){logger['error'](_0x14aa37(0x164)+util['format'](_0x1ed219));}_0xbc8af0[_0x14aa37(0x19a)](_0x35fa22);})['then'](()=>{const _0x7fd203=a35_0x3efd;_0xbc8af0[_0x7fd203(0x19a)](_0xf668be);});},{'platform':_0xbc8af0[_0x2f6319(0x1a0)](nestedKeyValue,global[_0x2f6319(0x1b4)],[_0xbc8af0[_0x2f6319(0x14f)]]),'hookType':_0xbc8af0[_0x2f6319(0x150)]})();},'afterEach'(_0x5c37ec){const _0x1111b1=a35_0x3c8e4e,_0x14b1f2={'QSDdh':_0x1111b1(0x1ec),'eJdLf':function(_0x3505de,_0x548063){return _0x3505de!==_0x548063;},'YEJAH':_0x1111b1(0x182),'AOoSH':function(_0x2f6d11,_0x31aeba,_0xcdf917){return _0x2f6d11(_0x31aeba,_0xcdf917);},'QwIPQ':function(_0x5cef41,_0x3d391c){return _0x5cef41+_0x3d391c;},'RhxBo':_0x1111b1(0x156),'GWmWW':'error','trsfG':_0x1111b1(0x18e),'etnge':_0x1111b1(0x1bb),'MKnlF':function(_0x17e29e,_0x4345dc){return _0x17e29e>_0x4345dc;},'ZuaRg':function(_0x4dacee,_0x11d4ae){return _0x4dacee===_0x11d4ae;},'gpJOY':'testcase','ylgnO':_0x1111b1(0x1d7),'EZCmD':function(_0x34d79b,_0x59018c,_0x11fe4b,_0x120a9f){return _0x34d79b(_0x59018c,_0x11fe4b,_0x120a9f);},'JIuzw':_0x1111b1(0x18d),'HTNlG':_0x1111b1(0x158),'AwDci':_0x1111b1(0x137),'uInns':_0x1111b1(0x143),'pBnUq':_0x1111b1(0x1be),'bzVPS':_0x1111b1(0x1ab),'haqgy':function(_0x175790){return _0x175790();},'RXeNX':function(_0x5ae864,_0x145b8a,_0x710f5f){return _0x5ae864(_0x145b8a,_0x710f5f);},'sndZI':function(_0x1f8d9c){return _0x1f8d9c();},'JaTGG':function(_0x4970e4,_0x47c7f8,_0x391dbb){return _0x4970e4(_0x47c7f8,_0x391dbb);},'qvpKF':'debug','ttxLJ':function(_0x45b8b3){return _0x45b8b3();},'ifngn':_0x1111b1(0x16a),'IWDkA':_0x1111b1(0x16f),'qXQSU':_0x1111b1(0x1ac)},_0x591ad6='browserstack internal helper hook';this[_0x1111b1(0x177)](TEST_FRAMEWORK_HOOK_TIMEOUT[_0x14b1f2[_0x1111b1(0x1f0)]]),global['sessionName']=this[_0x1111b1(0x172)][_0x1111b1(0x1b7)]()[_0x1111b1(0x155)](_0x14b1f2['QSDdh']),PerformanceTester['measureWrapper'](PerformanceSdkEvents[_0x1111b1(0x1c8)],()=>{const _0x40da4d=_0x1111b1,_0x1dee8b={'CBAMG':_0x14b1f2['QSDdh'],'arAaU':function(_0x4ca52c,_0x2edd65){const _0x549a01=a35_0x3efd;return _0x14b1f2[_0x549a01(0x1da)](_0x4ca52c,_0x2edd65);},'OlhVL':_0x14b1f2[_0x40da4d(0x1e1)],'HoShv':function(_0x22a714,_0x1347b5,_0x370a2b){const _0x2756fb=_0x40da4d;return _0x14b1f2[_0x2756fb(0x1e6)](_0x22a714,_0x1347b5,_0x370a2b);},'ydDpS':function(_0x540118,_0x4826be){return _0x14b1f2['QwIPQ'](_0x540118,_0x4826be);},'rDFnF':_0x14b1f2[_0x40da4d(0x1ad)],'hCuin':_0x14b1f2[_0x40da4d(0x14d)],'uMKVX':_0x14b1f2[_0x40da4d(0x186)],'OOXgF':_0x14b1f2[_0x40da4d(0x1ca)],'cuLEv':function(_0xfe4e24,_0x4d6de4){return _0x14b1f2['MKnlF'](_0xfe4e24,_0x4d6de4);},'mztDh':function(_0x326261,_0x413ee3){const _0x4244e4=_0x40da4d;return _0x14b1f2[_0x4244e4(0x18c)](_0x326261,_0x413ee3);},'WShAY':_0x14b1f2[_0x40da4d(0x154)],'dsTft':_0x14b1f2[_0x40da4d(0x175)],'lsOsV':function(_0x199067,_0x2d1ac1,_0x43be11,_0xb39a85){const _0x50e2ce=_0x40da4d;return _0x14b1f2[_0x50e2ce(0x18f)](_0x199067,_0x2d1ac1,_0x43be11,_0xb39a85);},'cnTBT':_0x14b1f2[_0x40da4d(0x1cd)],'aGrzl':_0x14b1f2[_0x40da4d(0x1d0)],'VAVRp':_0x14b1f2[_0x40da4d(0x1f3)],'oavNO':_0x14b1f2[_0x40da4d(0x193)],'qTxKy':_0x14b1f2['pBnUq'],'qlCTV':_0x14b1f2[_0x40da4d(0x162)],'rjFZI':function(_0x4cb1c1){const _0x37a3ad=_0x40da4d;return _0x14b1f2[_0x37a3ad(0x14b)](_0x4cb1c1);},'yvbAr':function(_0x2341ea,_0x3f2ce3,_0x229d04){const _0xa08d1a=_0x40da4d;return _0x14b1f2[_0xa08d1a(0x1d6)](_0x2341ea,_0x3f2ce3,_0x229d04);},'WqCIr':function(_0x2adc7a){return _0x14b1f2['sndZI'](_0x2adc7a);},'TIpmK':function(_0x155aa9,_0x488743,_0x441914){return _0x14b1f2['JaTGG'](_0x155aa9,_0x488743,_0x441914);},'wbHJk':_0x14b1f2[_0x40da4d(0x16c)],'udXZj':function(_0xc1b6b){return _0x14b1f2['ttxLJ'](_0xc1b6b);}},_0x4a586a=async(_0x128854,_0x29e6fd)=>{const _0x1ce1a2=_0x40da4d;await global[_0x1ce1a2(0x1e3)][0x0]['executeScript'](_0x1ce1a2(0x199)+_0x128854+_0x1ce1a2(0x1a6)+_0x29e6fd+_0x1ce1a2(0x15b));};new Promise(async _0x50bd6f=>{const _0x3eabf6=_0x40da4d,_0x43577a={'MgSQa':function(_0x31cf61,_0x44a853){const _0x3007c9=a35_0x3efd;return _0x1dee8b[_0x3007c9(0x1bf)](_0x31cf61,_0x44a853);},'IdaFS':_0x1dee8b[_0x3eabf6(0x148)],'nVYvC':function(_0x2a1a95,_0x1b6e4f,_0x4843f1){const _0x59553a=_0x3eabf6;return _0x1dee8b[_0x59553a(0x1b8)](_0x2a1a95,_0x1b6e4f,_0x4843f1);},'wyKyt':function(_0x2e8825,_0x37bb7f){return _0x1dee8b['ydDpS'](_0x2e8825,_0x37bb7f);},'httLX':_0x1dee8b['rDFnF'],'Sriuk':_0x1dee8b[_0x3eabf6(0x1d4)],'xLnjO':_0x1dee8b[_0x3eabf6(0x160)],'fRodk':_0x1dee8b[_0x3eabf6(0x179)]};try{_0x1dee8b[_0x3eabf6(0x16d)](global[_0x3eabf6(0x1e3)][_0x3eabf6(0x1f1)],0x1)&&(await global['driverCleanup'](),global[_0x3eabf6(0x1e3)][_0x3eabf6(0x1ef)](),global['__error_messages__']=[],global[_0x3eabf6(0x19b)]=![]);try{if(global[_0x3eabf6(0x1dd)]&&_0x1dee8b[_0x3eabf6(0x17d)](global[_0x3eabf6(0x195)],_0x1dee8b[_0x3eabf6(0x1e7)])&&global['__drivers'][0x0]){const _0x58d452=_0x1dee8b['cuLEv'](global[_0x3eabf6(0x183)][_0x3eabf6(0x1f1)],0x0)?!!global['capabilities'][0x0]['app']||!!global[_0x3eabf6(0x183)][0x0][_0x1dee8b['dsTft']]:![],_0x1e8da1={};_0x1e8da1[_0x3eabf6(0x142)]=_0x58d452,await _0x1dee8b[_0x3eabf6(0x19f)](percyAutoCapture,global[_0x3eabf6(0x1e3)][0x0],_0x1dee8b[_0x3eabf6(0x1e7)],_0x1e8da1);}}catch(_0x531bf6){logger[_0x3eabf6(0x165)](_0x3eabf6(0x1af)+_0x531bf6);}!global['__skipSessionName']&&(await PerformanceTester[_0x3eabf6(0x141)](PerformanceAutEvents['SESSION_NAME'],async()=>{const _0x2d2892=_0x3eabf6;await global[_0x2d2892(0x1e3)][0x0]['executeScript'](_0x2d2892(0x1cf)+JSON[_0x2d2892(0x1b1)](this[_0x2d2892(0x172)][_0x2d2892(0x1b7)]()[_0x2d2892(0x155)](_0x1dee8b[_0x2d2892(0x1c5)]))+'}}');})(),global['__drivers'][0x0]['sessionNameSet__']=!![]),await PerformanceTester['measureWrapper'](PerformanceAutEvents[_0x3eabf6(0x1e0)],async()=>{const _0x33bf87=_0x3eabf6,_0x3dcf71=_0x43577a['MgSQa'](this['currentTest'][_0x33bf87(0x190)],_0x43577a[_0x33bf87(0x191)]);_0x3dcf71?(global['__sessionFailed']=!![],global[_0x33bf87(0x16e)][_0x33bf87(0x1c4)](this['currentTest'][_0x33bf87(0x178)][_0x33bf87(0x1e5)]),await _0x43577a[_0x33bf87(0x1e2)](_0x4a586a,JSON[_0x33bf87(0x1b1)](_0x43577a[_0x33bf87(0x161)](_0x43577a['httLX'],this[_0x33bf87(0x172)]['err']['message'])),_0x43577a[_0x33bf87(0x15a)])):await _0x43577a['nVYvC'](_0x4a586a,JSON['stringify'](_0x43577a[_0x33bf87(0x1ed)]),_0x43577a[_0x33bf87(0x157)]);})();}catch(_0x294d03){logger[_0x3eabf6(0x165)]('Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20'+_0x294d03);}try{if(this[_0x3eabf6(0x172)][_0x3eabf6(0x139)]&&globals['getGlobal'](_0x1dee8b[_0x3eabf6(0x1cc)])&&globals[_0x3eabf6(0x1a3)](_0x1dee8b[_0x3eabf6(0x14c)])){logger[_0x3eabf6(0x1bb)](_0x1dee8b['VAVRp']);const _0x261eed={};_0x261eed[_0x3eabf6(0x147)]=this[_0x3eabf6(0x172)][_0x3eabf6(0x1dc)],_0x261eed['thBuildUuid']=process['env'][testHubConstants['ENV_VAR'][_0x3eabf6(0x15f)]],_0x261eed[_0x3eabf6(0x1f2)]=process[_0x3eabf6(0x1b0)][testHubConstants[_0x3eabf6(0x1b5)][_0x3eabf6(0x1c1)]];const _0x29b238=_0x261eed;logger[_0x3eabf6(0x165)](_0x3eabf6(0x1a5)+JSON[_0x3eabf6(0x1b1)](_0x29b238)),logger[_0x3eabf6(0x165)](_0x1dee8b[_0x3eabf6(0x15d)]);const _0x1db996={};_0x1db996[_0x3eabf6(0x1bd)]=_0x1dee8b[_0x3eabf6(0x181)],await PerformanceTester[_0x3eabf6(0x141)](PerformanceA11yEvents[_0x3eabf6(0x198)],async()=>{const _0xfbb524=_0x3eabf6;logger[_0xfbb524(0x165)](util[_0xfbb524(0x13a)](await global[_0xfbb524(0x1e3)][0x0]['executeAsyncScript'](scripts[_0xfbb524(0x173)],{'method':global['browserstackSessionName']})));},_0x1db996)(),await PerformanceTester['measureWrapper'](PerformanceA11yEvents['SAVE_RESULTS'],async()=>{const _0x37ef75=_0x3eabf6;await global[_0x37ef75(0x1e3)][0x0][_0x37ef75(0x159)](scripts[_0x37ef75(0x170)],_0x29b238);})(),logger[_0x3eabf6(0x1bb)](_0x1dee8b[_0x3eabf6(0x1d2)]);}}catch(_0x473c96){logger[_0x3eabf6(0x17f)](_0x3eabf6(0x1ce)+this[_0x3eabf6(0x172)][_0x3eabf6(0x1b7)]()+_0x3eabf6(0x13b),_0x473c96);}try{try{if(_0x1dee8b[_0x3eabf6(0x17e)](shouldProcessEventForTesthub)){global['__drivers'][0x0]&&await _0x1dee8b['yvbAr'](sendPlatformDetails,global[_0x3eabf6(0x1e3)][0x0],this[_0x3eabf6(0x172)]?this[_0x3eabf6(0x172)][_0x3eabf6(0x1dc)]:null);if(_0x1dee8b['WqCIr'](isBrowserstackInfra)){PerformanceTester[_0x3eabf6(0x1a1)](PerformanceO11yEvents[_0x3eabf6(0x151)]);const _0x178c6a=_0x3eabf6(0x1a8)+Date['now']();await _0x1dee8b[_0x3eabf6(0x19c)](_0x4a586a,JSON[_0x3eabf6(0x1b1)](_0x178c6a),_0x1dee8b[_0x3eabf6(0x1ae)]),PerformanceTester[_0x3eabf6(0x1e9)](PerformanceO11yEvents[_0x3eabf6(0x151)]);}}}catch(_0x927583){logger[_0x3eabf6(0x165)](_0x3eabf6(0x13d)+_0x927583),PerformanceTester['end'](PerformanceO11yEvents[_0x3eabf6(0x151)],![],_0x927583);}_0x1dee8b[_0x3eabf6(0x16d)](global['__drivers'][0x0]['quitCount_'],0x0)&&await global[_0x3eabf6(0x1a2)]();}catch(_0x4a981c){logger[_0x3eabf6(0x165)](_0x3eabf6(0x1ee)+_0x4a981c);}_0x1dee8b[_0x3eabf6(0x180)](_0x50bd6f);})[_0x40da4d(0x1de)](()=>{_0x1dee8b['rjFZI'](_0x5c37ec);});},{'platform':_0x14b1f2[_0x1111b1(0x1f5)](nestedKeyValue,global[_0x1111b1(0x1b4)],[_0x14b1f2[_0x1111b1(0x197)]]),'hookType':_0x14b1f2[_0x1111b1(0x192)]})();},'afterAll'(_0x58a299){const _0x596010=a35_0x3c8e4e,_0x19d41c={'yxYFG':function(_0x33533e){return _0x33533e();},'fWqCQ':_0x596010(0x16a),'PxuRN':function(_0x298d22,_0x159be2,_0xb7bda1){return _0x298d22(_0x159be2,_0xb7bda1);},'CzQci':'index','vDyAm':'afterAll'},_0x2acdae='browserstack internal helper hook';this[_0x596010(0x177)](TEST_FRAMEWORK_HOOK_TIMEOUT[_0x19d41c[_0x596010(0x1a7)]]),PerformanceTester[_0x596010(0x141)](PerformanceSdkEvents[_0x596010(0x1c8)],()=>{const _0x4ba901=_0x596010;new Promise(async _0x432aea=>{const _0x4d41e7=a35_0x3efd;await global['driverCleanup'](),_0x19d41c[_0x4d41e7(0x15c)](_0x432aea);})[_0x4ba901(0x1de)]()[_0x4ba901(0x1a4)](()=>{const _0x42a0a4=_0x4ba901;_0x19d41c[_0x42a0a4(0x15c)](_0x58a299);});},{'platform':_0x19d41c[_0x596010(0x1d3)](nestedKeyValue,global['__platformCaps'],[_0x19d41c['CzQci']]),'hookType':_0x19d41c[_0x596010(0x1c0)]})();}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';function a36_0x1684(_0x3e5264,_0x1744b1){const _0x515a50=a36_0x515a();return a36_0x1684=function(_0x168413,_0x3c638c){_0x168413=_0x168413-0x1b1;let _0x123b57=_0x515a50[_0x168413];return _0x123b57;},a36_0x1684(_0x3e5264,_0x1744b1);}const a36_0x44bd0d=a36_0x1684;function a36_0x515a(){const _0x3d426e=['../../helpers/BrowserStackSetup','UOKgX','3182276nwkJlN','2dssUPB','qPCLx','trim','existsSync','../../helpers/helper','filter','nightwatch.cmd','3043797KkImEU','host','RzmSr','child_process','TZliY','modifyBrowserStackW3CCaps','lnVUF','writeFileSync','join','splice','pHvqR','port','nightwatch','ecBDh','test_settings','hub.browserstack.com','push','now','1050474RkrKiG','krYuY','rUWod','../../helpers/logger','413LwOliS','699839YluGMD','10297296jTRWOD','nightwatch.json','exports','env','ArWTo','55768tvVIZf','--env','getPlatformName','nTJDr','config','forEach','selenium','slice','webdriver','xqKYR','sHOTb','KAhNr','nightwatch.conf.js','Deleting\x20','stringify','--config','kcgKR','25tysFbG','Getting\x20your\x20nightwatch\x20configs\x20from\x20','mergeDeep','findIndex','debug','ypfFc','desiredCapabilities','map','pYZON','41919010qkyZOK','cwd','nightwatch-browserstack.json','info','btsdw','isUndefined','test','YFeas','child\x20process\x20exited\x20with\x20code\x20','PUPxY'];a36_0x515a=function(){return _0x3d426e;};return a36_0x515a();}(function(_0x272311,_0x2642b6){const _0x35b41f=a36_0x1684,_0x4eda6d=_0x272311();while(!![]){try{const _0x482b49=parseInt(_0x35b41f(0x1ea))/0x1*(parseInt(_0x35b41f(0x1cc))/0x2)+-parseInt(_0x35b41f(0x1d3))/0x3+-parseInt(_0x35b41f(0x1cb))/0x4+-parseInt(_0x35b41f(0x1b6))/0x5*(parseInt(_0x35b41f(0x1e5))/0x6)+-parseInt(_0x35b41f(0x1e9))/0x7*(parseInt(_0x35b41f(0x1f0))/0x8)+-parseInt(_0x35b41f(0x1eb))/0x9+parseInt(_0x35b41f(0x1bf))/0xa;if(_0x482b49===_0x2642b6)break;else _0x4eda6d['push'](_0x4eda6d['shift']());}catch(_0x38beec){_0x4eda6d['push'](_0x4eda6d['shift']());}}}(a36_0x515a,0x9edf8));const fs=require('fs'),path=require('path'),{spawn}=require(a36_0x44bd0d(0x1d6)),logger=require(a36_0x44bd0d(0x1e8))['winstonLogger'],{default:BrowserStackSetup}=require(a36_0x44bd0d(0x1c9)),helper=require(a36_0x44bd0d(0x1d0)),constants=require('../utils/constants'),getUserNightwatchConfigs=(_0x23a583,_0x5f0dae)=>{const _0x28d0f9=a36_0x44bd0d,_0x401910={'pHvqR':_0x28d0f9(0x1b1),'KAhNr':_0x28d0f9(0x1ec),'btsdw':function(_0x12a510,_0x381cc4){return _0x12a510(_0x381cc4);},'pYZON':'Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file'};let _0x540d71=null,_0x73b752={};const _0x2598cf=_0x5f0dae['findIndex'](_0x28bba2=>_0x28bba2===_0x28d0f9(0x1b4));if(!helper[_0x28d0f9(0x1c4)](_0x23a583[_0x28d0f9(0x1f4)])&&fs[_0x28d0f9(0x1cf)](path[_0x28d0f9(0x1db)](process[_0x28d0f9(0x1c0)](),_0x23a583[_0x28d0f9(0x1f4)])))_0x540d71=path['join'](process['cwd'](),_0x23a583[_0x28d0f9(0x1f4)]),_0x5f0dae[_0x28d0f9(0x1dc)](_0x2598cf,0x2);else{if(fs[_0x28d0f9(0x1cf)](path['join'](process[_0x28d0f9(0x1c0)](),_0x401910['pHvqR'])))_0x540d71=path['join'](process['cwd'](),_0x401910[_0x28d0f9(0x1dd)]);else fs[_0x28d0f9(0x1cf)](path[_0x28d0f9(0x1db)](process[_0x28d0f9(0x1c0)](),_0x401910[_0x28d0f9(0x1fb)]))&&(_0x540d71=path[_0x28d0f9(0x1db)](process[_0x28d0f9(0x1c0)](),_0x401910[_0x28d0f9(0x1fb)]));}return _0x540d71?(logger[_0x28d0f9(0x1c2)](_0x28d0f9(0x1b7)+_0x540d71),_0x73b752=_0x401910[_0x28d0f9(0x1c3)](require,_0x540d71)):logger[_0x28d0f9(0x1c2)](_0x401910[_0x28d0f9(0x1be)]),_0x73b752;},removeExistingEnvs=_0x58addc=>{const _0x319351=a36_0x44bd0d,_0x5112a0={};_0x5112a0[_0x319351(0x1b5)]=function(_0x29f8bd,_0x109795){return _0x29f8bd>_0x109795;},_0x5112a0[_0x319351(0x1f3)]=function(_0x457793,_0x3677ba){return _0x457793>_0x3677ba;};const _0x40a556=_0x5112a0;let _0x213acc=_0x58addc[_0x319351(0x1b9)](_0x23c9e9=>_0x23c9e9==='--env');_0x40a556[_0x319351(0x1b5)](_0x213acc,-0x1)&&_0x58addc['splice'](_0x213acc,0x2),_0x213acc=_0x58addc[_0x319351(0x1b9)](_0x5e693d=>_0x5e693d==='-e'),_0x40a556[_0x319351(0x1f3)](_0x213acc,-0x1)&&_0x58addc['splice'](_0x213acc,0x2);};function run(_0x319254,_0x10eb73,_0x30289a){const _0x4f8352=a36_0x44bd0d,_0x22005b={'qPCLx':_0x4f8352(0x1df),'ArWTo':function(_0x147e2d,_0x3e413e){return _0x147e2d+_0x3e413e;},'TZliY':_0x4f8352(0x1e1),'lnVUF':function(_0x4dfc7f,_0x2e6540,_0x257c16){return _0x4dfc7f(_0x2e6540,_0x257c16);},'YFeas':_0x4f8352(0x1e2),'Gdfkz':'Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','PUPxY':function(_0x287202,_0x36ada7){return _0x287202===_0x36ada7;},'sHOTb':_0x4f8352(0x1c1),'ypfFc':function(_0x394282,_0x4d0e77){return _0x394282(_0x4d0e77);},'ecBDh':function(_0x2a9a97,_0x38064d,_0x372616,_0x5a4b01){return _0x2a9a97(_0x38064d,_0x372616,_0x5a4b01);},'cQtPf':_0x4f8352(0x1d2),'xqKYR':_0x4f8352(0x1b4),'UOKgX':_0x4f8352(0x1f1),'zMMaL':'inherit','krYuY':'close'};if(!_0x30289a['config'])return;const _0x5665b0=_0x22005b[_0x4f8352(0x1d9)](getUserNightwatchConfigs,_0x319254,_0x10eb73),_0x257a30={};_0x257a30['start_process']=![];const _0x135733={};_0x135733[_0x4f8352(0x1d4)]=_0x22005b[_0x4f8352(0x1c6)],_0x135733[_0x4f8352(0x1de)]=0x1bb;const _0xb1dcf5={};_0xb1dcf5[_0x4f8352(0x1f8)]=_0x257a30,_0xb1dcf5[_0x4f8352(0x1f6)]=_0x135733;const _0x39ad63=_0xb1dcf5;logger[_0x4f8352(0x1c2)](_0x22005b['Gdfkz']);const _0x231f12={..._0x5665b0},_0x44369c=_0x231f12,_0x2490cb=helper['useW3C'](_0x30289a[_0x4f8352(0x1f4)]),_0x13652d=[];_0x30289a[_0x4f8352(0x1f4)]['platforms'][_0x4f8352(0x1f5)]((_0x37fab3,_0x20cdcc)=>{const _0x36438f=_0x4f8352;_0x2490cb?_0x13652d['push'](helper[_0x36438f(0x1d8)](_0x30289a[_0x36438f(0x1f4)],_0x22005b[_0x36438f(0x1cd)],_0x20cdcc)):_0x13652d['push'](helper['modifyBrowserStackCaps'](_0x30289a[_0x36438f(0x1f4)],_0x22005b[_0x36438f(0x1cd)],_0x20cdcc));});const _0xa2a54={},_0x526d7a=[];_0x319254[_0x4f8352(0x1ee)]=_0x319254['env']||_0x319254['e'];const _0x3c28aa=_0x319254[_0x4f8352(0x1ee)]?_0x319254[_0x4f8352(0x1ee)]['trim']()['split'](',')[_0x4f8352(0x1bd)](_0x3b22c1=>_0x3b22c1[_0x4f8352(0x1ce)]())[_0x4f8352(0x1d1)](_0x21aae1=>_0x21aae1!==''):[''];_0x22005b[_0x4f8352(0x1c8)](_0x3c28aa['length'],0x0)&&_0x3c28aa[_0x4f8352(0x1e3)]('');_0x3c28aa[_0x4f8352(0x1f5)](_0x1afdb7=>{const _0x1eb584=_0x4f8352,_0x55efe3={'rUWod':function(_0x1a6099,_0x5ad685){const _0x42841d=a36_0x1684;return _0x22005b[_0x42841d(0x1ef)](_0x1a6099,_0x5ad685);},'RzmSr':_0x22005b[_0x1eb584(0x1d7)]};_0x13652d['forEach'](_0x650c13=>{const _0x518a2c=_0x1eb584;let _0x239cac=_0x55efe3[_0x518a2c(0x1e7)](helper[_0x518a2c(0x1f2)](_0x650c13,'_'),'_'+Date[_0x518a2c(0x1e4)]());_0x1afdb7&&(_0x239cac+='_'+_0x1afdb7);if(_0x1afdb7&&(!_0x5665b0[_0x55efe3['RzmSr']]||!_0x5665b0[_0x55efe3[_0x518a2c(0x1d5)]][_0x1afdb7]))return;const _0x5149ee={..._0x39ad63};_0x5149ee[_0x518a2c(0x1bc)]=_0x650c13;const _0x2e3c36=_0x5149ee;_0xa2a54[_0x239cac]=_0x1afdb7?helper[_0x518a2c(0x1b8)](_0x5665b0[_0x55efe3[_0x518a2c(0x1d5)]][_0x1afdb7],_0x2e3c36):_0x2e3c36,_0x526d7a[_0x518a2c(0x1e3)](_0x239cac);});});!_0x44369c[_0x4f8352(0x1e1)]&&(_0x44369c[_0x4f8352(0x1e1)]={});_0x44369c[_0x4f8352(0x1e1)]={..._0x44369c[_0x4f8352(0x1e1)],..._0xa2a54};const _0x4172e4=path[_0x4f8352(0x1db)](__dirname,_0x22005b[_0x4f8352(0x1fa)]);fs[_0x4f8352(0x1da)](_0x4172e4,JSON[_0x4f8352(0x1b3)](_0x44369c)),_0x22005b[_0x4f8352(0x1bb)](removeExistingEnvs,_0x10eb73);const _0x59b0f2=_0x22005b[_0x4f8352(0x1e0)](spawn,/^win/[_0x4f8352(0x1c5)](process['platform'])?_0x22005b['cQtPf']:_0x22005b[_0x4f8352(0x1cd)],[_0x22005b[_0x4f8352(0x1f9)],_0x4172e4,..._0x10eb73[_0x4f8352(0x1f7)](0x1),_0x22005b[_0x4f8352(0x1ca)],_0x526d7a[_0x4f8352(0x1db)](',')],{'stdio':_0x22005b['zMMaL']});_0x59b0f2['on'](_0x22005b[_0x4f8352(0x1e6)],async _0x45a4ec=>{const _0x3fadde=_0x4f8352;logger[_0x3fadde(0x1ba)](_0x3fadde(0x1c7)+_0x45a4ec),logger['info'](_0x3fadde(0x1b2)+_0x4172e4),fs['unlinkSync'](_0x4172e4);});}module[a36_0x44bd0d(0x1ed)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a37_0x3f348b=a37_0x25d4;function a37_0x25d4(_0x439cbe,_0xf6a035){const _0x23d70d=a37_0x23d7();return a37_0x25d4=function(_0x25d466,_0x436303){_0x25d466=_0x25d466-0x142;let _0x6890d2=_0x23d70d[_0x25d466];return _0x6890d2;},a37_0x25d4(_0x439cbe,_0xf6a035);}(function(_0x1fcafe,_0x528862){const _0x4ad5e0=a37_0x25d4,_0x5d7f86=_0x1fcafe();while(!![]){try{const _0x13ba43=-parseInt(_0x4ad5e0(0x16a))/0x1*(parseInt(_0x4ad5e0(0x145))/0x2)+parseInt(_0x4ad5e0(0x161))/0x3+parseInt(_0x4ad5e0(0x190))/0x4*(-parseInt(_0x4ad5e0(0x187))/0x5)+parseInt(_0x4ad5e0(0x1ab))/0x6+parseInt(_0x4ad5e0(0x19a))/0x7+parseInt(_0x4ad5e0(0x176))/0x8*(-parseInt(_0x4ad5e0(0x174))/0x9)+-parseInt(_0x4ad5e0(0x144))/0xa;if(_0x13ba43===_0x528862)break;else _0x5d7f86['push'](_0x5d7f86['shift']());}catch(_0x379a78){_0x5d7f86['push'](_0x5d7f86['shift']());}}}(a37_0x23d7,0xc68b2));function a37_0x23d7(){const _0x3d570d=['executeAsyncScript','format','AAuRa','IoJNb','browser_version','parse','33255Avueez','aODUQ','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','GnTqx','workerInfo','processAccessibilityCaps','lNDcm','SnxTz','BS_A11Y_JWT','148oxteFL','\x20page:\x20','eUPAO','name','euUyl','qzabN','measureWrapper','../../helpers/performance/constants','wsEndpoint','krAWu','10547740zosDcM','ezudD','vnuZW','GPNcJ','YOZAr','BDwcV','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','../../helpers/accessibility-automation/scripts','platformValidation','browserStackEvaluate','oZwGe','ahsXU','browserstack.accessibility','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','util','GCqZM','No\x20summaryResults\x20found.','6142872wcNfpO','wcagVersion','chrome','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x20100.','accessibilityOptions','latest','getAccessibilityResults','kMBIN','../../helpers/performance/performance-tester','accessibilityOptions.scannerProcessingTimeout','7715100cIRlCS','3730pOAVAs','(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','MEVWT','accessibilityOptions.includeIssueType.needsReview','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','debug','playwright-chromium','bstackSdkArgs','No\x20accessibility\x20results\x20were\x20found.','executeScript','constructor','accessibilityPlatform','KmYqK','stringify','Playwright','chromium','browser','currentTest','connectOptions','setAccessibilityCapabilities','vSmBH','env','DIriQ','getAccessibilityResultsSummary','replace','includeIssueType','CrbYq','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','4575804DXQfDn','ZihFc','scannerProcessingTimeout','../../helpers/helper','evaluate','browserStackExecuteDriver','accessibilityOptions.includeIssueType.bestPractice','IMbFN','EBzXU','700FxflNE','performScan','deviceName','pYDMn','testInfo','warn','KMZXu','../../helpers/logger','VevZX','project','27iuVBwq','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','2452184sgMQyp','command','use','accessibilityOptions.authToken','ZgBZT','wFRrW','juZPa','error','includes','scannerVersion','tOIhD'];a37_0x23d7=function(){return _0x3d570d;};return a37_0x23d7();}const util=require(a37_0x3f348b(0x1a8)),logger=require(a37_0x3f348b(0x171))['winstonLogger'],{isAccessibilityAutomationSession}=require('../../helpers/accessibility-automation/helper'),{isUndefined,isBrowserstackInfra}=require(a37_0x3f348b(0x164)),scripts=require(a37_0x3f348b(0x1a1)),PerformanceTester=require(a37_0x3f348b(0x142)),{A11Y_EVENTS:PerformanceA11yEvents}=require(a37_0x3f348b(0x197));exports[a37_0x3f348b(0x1a3)]=async(_0x475888,_0x558a73,_0x3afe69={})=>{const _0xb5829=a37_0x3f348b,_0x2b567c={};_0x2b567c['nyHlD']=_0xb5829(0x14c);const _0x1e830=_0x2b567c;return await _0x475888[_0xb5829(0x165)](_0xb5829(0x146)+_0x558a73[_0xb5829(0x15d)](/arguments/g,_0x1e830['nyHlD'])+'\x0a\x20\x20\x20\x20})\x0a\x20\x20})('+JSON[_0xb5829(0x152)](_0x3afe69)+')');},exports[a37_0x3f348b(0x166)]=async(_0x3a9b3f,_0x1b7950,_0x8b2ead={})=>{const _0x21d098=a37_0x3f348b,_0x5356dd={};_0x5356dd['GnTqx']=function(_0x6aa4fe,_0x5e18e4){return _0x6aa4fe===_0x5e18e4;},_0x5356dd[_0x21d098(0x17c)]='WebDriver',_0x5356dd['jVHlT']=function(_0x28b931,_0x132fd8){return _0x28b931===_0x132fd8;},_0x5356dd['AAuRa']=_0x21d098(0x153),_0x5356dd[_0x21d098(0x184)]='bstackSdkArgs';const _0x43f2be=_0x5356dd;if(_0x43f2be[_0x21d098(0x18a)](_0x3a9b3f[_0x21d098(0x14f)][_0x21d098(0x193)],_0x43f2be[_0x21d098(0x17c)]))return await _0x3a9b3f[_0x21d098(0x181)](_0x1b7950,_0x8b2ead);else{if(_0x43f2be['jVHlT'](_0x3a9b3f[_0x21d098(0x14f)][_0x21d098(0x193)],_0x43f2be[_0x21d098(0x183)]))return await _0x3a9b3f[_0x21d098(0x14e)]('(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'+_0x1b7950[_0x21d098(0x15d)](/arguments/g,_0x43f2be[_0x21d098(0x184)])+'\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})('+JSON[_0x21d098(0x152)](_0x8b2ead)+')');}},exports[a37_0x3f348b(0x158)]=async _0x47e87f=>{const _0x57fcfb=a37_0x3f348b,_0x4a0d74={};_0x4a0d74['oZwGe']='accessibilityOptions.wcagVersion',_0x4a0d74[_0x57fcfb(0x172)]=_0x57fcfb(0x143),_0x4a0d74['SnxTz']=_0x57fcfb(0x167),_0x4a0d74[_0x57fcfb(0x18d)]=_0x57fcfb(0x148),_0x4a0d74[_0x57fcfb(0x19b)]=_0x57fcfb(0x179),_0x4a0d74['KMZXu']='accessibilityOptions.scannerVersion';const _0x3d29bb=_0x4a0d74;_0x47e87f[_0x57fcfb(0x1b0)]&&(_0x47e87f['accessibilityOptions'][_0x57fcfb(0x1ac)]&&(_0x47e87f[_0x3d29bb[_0x57fcfb(0x1a4)]]=_0x47e87f[_0x57fcfb(0x1b0)][_0x57fcfb(0x1ac)]),_0x47e87f[_0x57fcfb(0x1b0)]['scannerProcessingTimeout']&&(_0x47e87f[_0x3d29bb[_0x57fcfb(0x172)]]=_0x47e87f[_0x57fcfb(0x1b0)][_0x57fcfb(0x163)]),_0x47e87f[_0x57fcfb(0x1b0)]['includeIssueType']&&(_0x47e87f[_0x3d29bb[_0x57fcfb(0x18e)]]=_0x47e87f[_0x57fcfb(0x1b0)][_0x57fcfb(0x15e)]['bestPractice'],_0x47e87f[_0x3d29bb[_0x57fcfb(0x18d)]]=_0x47e87f[_0x57fcfb(0x1b0)][_0x57fcfb(0x15e)]['needsReview']));const _0x28a558=JSON[_0x57fcfb(0x186)](process[_0x57fcfb(0x15a)][_0x57fcfb(0x149)])[_0x57fcfb(0x17f)];_0x47e87f[_0x3d29bb[_0x57fcfb(0x19b)]]=process[_0x57fcfb(0x15a)][_0x57fcfb(0x18f)],_0x47e87f[_0x3d29bb[_0x57fcfb(0x170)]]=_0x28a558,delete _0x47e87f[_0x57fcfb(0x1b0)];},exports[a37_0x3f348b(0x1b2)]=async _0x5da180=>{const _0x411a1f=a37_0x3f348b,_0x2099e7={};_0x2099e7['krAWu']=_0x411a1f(0x14d),_0x2099e7[_0x411a1f(0x169)]='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.';const _0x39d364=_0x2099e7;if(global[_0x411a1f(0x150)])try{logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x5da180,scripts.performScan)));},{command:'getAccessibilityResults'})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x5da180,scripts.getResults);})();return res;}catch{return logger[_0x411a1f(0x17d)](_0x39d364[_0x411a1f(0x199)]),[];}else return logger[_0x411a1f(0x16f)](_0x39d364[_0x411a1f(0x169)]),[];},exports[a37_0x3f348b(0x16b)]=async(_0x4eb8e7,_0x4ce1c4='')=>{const _0xbf0ce5=a37_0x3f348b;logger[_0xbf0ce5(0x14a)]('Performing\x20scan\x20with\x20method:\x20'+_0x4ce1c4+_0xbf0ce5(0x191)+_0x4eb8e7);if(global[_0xbf0ce5(0x150)])return await PerformanceTester[_0xbf0ce5(0x196)](PerformanceA11yEvents['PERFORM_SCAN'],async()=>{const _0x3e2a57=_0xbf0ce5,_0x52457a={};_0x52457a[_0x3e2a57(0x177)]=_0x4ce1c4,await exports['browserStackEvaluate'](_0x4eb8e7,scripts[_0x3e2a57(0x16b)],_0x52457a);},{'command':_0x4ce1c4})();},exports[a37_0x3f348b(0x15c)]=async _0x30419f=>{const _0x29f931=a37_0x3f348b,_0x56aeb3={};_0x56aeb3[_0x29f931(0x19d)]=_0x29f931(0x1aa),_0x56aeb3['jYYtJ']=_0x29f931(0x160);const _0x2b24b8=_0x56aeb3;if(global[_0x29f931(0x150)])try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x30419f,scripts.performScan)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x30419f,scripts.getResultsSummary);})();return summaryResults;}catch{return logger['debug'](_0x2b24b8[_0x29f931(0x19d)]),{};}else return logger[_0x29f931(0x16f)](_0x2b24b8['jYYtJ']),{};},exports[a37_0x3f348b(0x1a2)]=async _0xff28c2=>{const _0x4cd968=a37_0x3f348b,_0x55f189={'CrbYq':function(_0x53e903,_0x3d6790){return _0x53e903!==_0x3d6790;},'euUyl':_0x4cd968(0x1a7),'ZihFc':_0x4cd968(0x1ad),'IMbFN':_0x4cd968(0x14b),'cOXVt':_0x4cd968(0x154),'DIriQ':_0x4cd968(0x1ae),'wFRrW':function(_0x2bb3de,_0x36cc32){return _0x2bb3de(_0x36cc32);},'KmYqK':function(_0x3d3c0f){return _0x3d3c0f();},'RAtWq':function(_0x38cefe,_0x2a47e2){return _0x38cefe<_0x2a47e2;},'tOIhD':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x20100.','msxPJ':function(_0x5872ed,_0x45debd){return _0x5872ed===_0x45debd;},'FQyKr':'latest','sBAnf':function(_0x548491,_0x45411e){return _0x548491>_0x45411e;},'xddKX':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.'};try{if(!_0x55f189[_0x4cd968(0x15f)](_0xff28c2[_0x4cd968(0x16c)],''))return logger['warn'](_0x55f189[_0x4cd968(0x194)]),![];const _0x1c7bfe=_0xff28c2[_0x4cd968(0x155)];if(![_0x55f189[_0x4cd968(0x162)],_0x55f189[_0x4cd968(0x168)],_0x55f189['cOXVt']][_0x4cd968(0x17e)](_0x1c7bfe))return logger[_0x4cd968(0x16f)](_0x55f189[_0x4cd968(0x15b)]),![];const _0x3c8ba6=_0x55f189[_0x4cd968(0x17b)](parseInt,_0xff28c2[_0x4cd968(0x185)]);!_0x55f189[_0x4cd968(0x151)](isBrowserstackInfra)&&(!_0x55f189['RAtWq'](_0x3c8ba6,0x64)&&logger[_0x4cd968(0x16f)](_0x55f189[_0x4cd968(0x180)]));if(!(_0x55f189['msxPJ'](_0x3c8ba6,_0x55f189['FQyKr'])||_0x55f189['sBAnf'](_0x3c8ba6,0x5e)))return logger[_0x4cd968(0x16f)](_0x55f189['xddKX']),![];}catch(_0x2f9dc4){logger[_0x4cd968(0x14a)](_0x4cd968(0x189)+util[_0x4cd968(0x182)](_0x2f9dc4));}return!![];},exports[a37_0x3f348b(0x18c)]=(_0x507ae9,_0x132447,_0x39ddc4)=>{const _0x5a97e3=a37_0x3f348b,_0x530d6c={'MEVWT':function(_0x1fcbce){return _0x1fcbce();},'qzabN':_0x5a97e3(0x1a6),'kMBIN':function(_0x143366,_0x2cc01d){return _0x143366===_0x2cc01d;},'ahsXU':_0x5a97e3(0x1ad),'YOZAr':function(_0x97cfff,_0x43de75){return _0x97cfff===_0x43de75;},'GCqZM':_0x5a97e3(0x14b),'vSmBH':function(_0x3c66a4,_0x4a27bf){return _0x3c66a4===_0x4a27bf;},'aODUQ':function(_0x58056d,_0x2de305){return _0x58056d===_0x2de305;},'Gxnoe':_0x5a97e3(0x1ae),'vnuZW':function(_0x191e5c,_0x28f3a6){return _0x191e5c>_0x28f3a6;},'pYDMn':_0x5a97e3(0x1af),'Wigqu':_0x5a97e3(0x1b1),'ZgBZT':_0x5a97e3(0x175),'BDwcV':function(_0x174e6a,_0x22e5de){return _0x174e6a(_0x22e5de);},'eUPAO':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','lRvgR':function(_0x53b836,_0x32cc0f){return _0x53b836+_0x32cc0f;}};try{if(_0x530d6c[_0x5a97e3(0x147)](isAccessibilityAutomationSession)){global['accessibilityPlatform']=!![];!_0x507ae9[_0x530d6c[_0x5a97e3(0x195)]]&&(global[_0x5a97e3(0x150)]=![]);!(_0x530d6c[_0x5a97e3(0x1b3)](_0x507ae9['browserName'],_0x530d6c[_0x5a97e3(0x1a5)])||_0x530d6c[_0x5a97e3(0x19e)](_0x507ae9['browserName'],_0x530d6c[_0x5a97e3(0x1a9)])||_0x530d6c[_0x5a97e3(0x159)](_0x507ae9[_0x5a97e3(0x155)],_0x530d6c[_0x5a97e3(0x1a5)])||_0x530d6c[_0x5a97e3(0x188)](_0x507ae9[_0x5a97e3(0x155)],_0x530d6c[_0x5a97e3(0x1a9)]))&&(logger['warn'](_0x530d6c['Gxnoe']),global[_0x5a97e3(0x150)]=![]);!_0x530d6c[_0x5a97e3(0x147)](isBrowserstackInfra)&&(!_0x530d6c[_0x5a97e3(0x19c)](_0x507ae9[_0x5a97e3(0x185)],0x64)&&logger[_0x5a97e3(0x16f)](_0x530d6c[_0x5a97e3(0x16d)]));!(_0x530d6c[_0x5a97e3(0x159)](_0x507ae9[_0x5a97e3(0x185)],_0x530d6c['Wigqu'])||_0x530d6c[_0x5a97e3(0x19c)](_0x507ae9['browser_version'],0x5e))&&(logger[_0x5a97e3(0x16f)](_0x530d6c[_0x5a97e3(0x17a)]),global[_0x5a97e3(0x150)]=![]);!_0x530d6c['BDwcV'](isUndefined,_0x507ae9[_0x5a97e3(0x16c)])&&(logger[_0x5a97e3(0x16f)](_0x530d6c[_0x5a97e3(0x192)]),global[_0x5a97e3(0x150)]=![]);if(!global['accessibilityPlatform']){_0x507ae9[_0x530d6c[_0x5a97e3(0x195)]]=![];const _0x30f3bf=_0x530d6c['lRvgR'](_0x132447,_0x530d6c[_0x5a97e3(0x19f)](encodeURIComponent,JSON[_0x5a97e3(0x152)](_0x507ae9)));_0x39ddc4&&(_0x39ddc4[_0x5a97e3(0x156)][_0x5a97e3(0x16e)][_0x5a97e3(0x173)][_0x5a97e3(0x178)][_0x5a97e3(0x157)][_0x5a97e3(0x198)]=_0x30f3bf,_0x39ddc4[_0x5a97e3(0x18b)][_0x5a97e3(0x173)][_0x5a97e3(0x178)][_0x5a97e3(0x157)][_0x5a97e3(0x198)]=_0x30f3bf);}}else global['accessibilityPlatform']=![];}catch(_0x2a2f43){logger[_0x5a97e3(0x14a)](_0x5a97e3(0x1a0)+util[_0x5a97e3(0x182)](_0x2a2f43));}};
|
|
1
|
+
const a37_0x46bab9=a37_0xe73b;function a37_0xe73b(_0x337ca6,_0x45c1a5){const _0xca57dd=a37_0xca57();return a37_0xe73b=function(_0xe73b6f,_0x200516){_0xe73b6f=_0xe73b6f-0xe5;let _0x1bd588=_0xca57dd[_0xe73b6f];return _0x1bd588;},a37_0xe73b(_0x337ca6,_0x45c1a5);}(function(_0x2f790d,_0x365bd5){const _0x28de30=a37_0xe73b,_0x45e0f9=_0x2f790d();while(!![]){try{const _0x402648=-parseInt(_0x28de30(0x124))/0x1+parseInt(_0x28de30(0x11a))/0x2+parseInt(_0x28de30(0x13a))/0x3+-parseInt(_0x28de30(0x151))/0x4*(-parseInt(_0x28de30(0xe9))/0x5)+parseInt(_0x28de30(0xf0))/0x6+-parseInt(_0x28de30(0x106))/0x7+-parseInt(_0x28de30(0x121))/0x8;if(_0x402648===_0x365bd5)break;else _0x45e0f9['push'](_0x45e0f9['shift']());}catch(_0x413687){_0x45e0f9['push'](_0x45e0f9['shift']());}}}(a37_0xca57,0x5aee5));const util=require(a37_0x46bab9(0xeb)),logger=require(a37_0x46bab9(0x122))[a37_0x46bab9(0xf7)],{isAccessibilityAutomationSession}=require(a37_0x46bab9(0x150)),{isUndefined,isBrowserstackInfra}=require(a37_0x46bab9(0x148)),scripts=require('../../helpers/accessibility-automation/scripts'),PerformanceTester=require(a37_0x46bab9(0x123)),{A11Y_EVENTS:PerformanceA11yEvents}=require(a37_0x46bab9(0x104));exports[a37_0x46bab9(0x149)]=async(_0x47c6dc,_0x771fec,_0xdd79f0={})=>{const _0x51b99c=a37_0x46bab9,_0x490bd2={};_0x490bd2[_0x51b99c(0x145)]='bstackSdkArgs';const _0x35bd85=_0x490bd2;return await _0x47c6dc[_0x51b99c(0x14c)]('(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'+_0x771fec['replace'](/arguments/g,_0x35bd85['lORcw'])+_0x51b99c(0x127)+JSON[_0x51b99c(0x141)](_0xdd79f0)+')');},exports[a37_0x46bab9(0x12c)]=async(_0x3e39e6,_0x21ceca,_0x4888c8={})=>{const _0xec6873=a37_0x46bab9,_0x2d4eed={};_0x2d4eed[_0xec6873(0xf5)]=function(_0x4dc809,_0x3a05b5){return _0x4dc809===_0x3a05b5;},_0x2d4eed[_0xec6873(0x157)]=_0xec6873(0x116),_0x2d4eed[_0xec6873(0x13c)]=function(_0x37c73f,_0x3d981f){return _0x37c73f===_0x3d981f;},_0x2d4eed[_0xec6873(0x14f)]='Playwright',_0x2d4eed[_0xec6873(0x10c)]=_0xec6873(0x147);const _0xf92086=_0x2d4eed;if(_0xf92086[_0xec6873(0xf5)](_0x3e39e6[_0xec6873(0xea)]['name'],_0xf92086[_0xec6873(0x157)]))return await _0x3e39e6[_0xec6873(0x11e)](_0x21ceca,_0x4888c8);else{if(_0xf92086[_0xec6873(0x13c)](_0x3e39e6['constructor'][_0xec6873(0x119)],_0xf92086[_0xec6873(0x14f)]))return await _0x3e39e6['executeScript'](_0xec6873(0x11f)+_0x21ceca['replace'](/arguments/g,_0xf92086[_0xec6873(0x10c)])+_0xec6873(0x156)+JSON[_0xec6873(0x141)](_0x4888c8)+')');}},exports[a37_0x46bab9(0xfd)]=async _0x3433d2=>{const _0x5a8c3e=a37_0x46bab9,_0x44aa57={};_0x44aa57[_0x5a8c3e(0x10b)]=_0x5a8c3e(0x136),_0x44aa57[_0x5a8c3e(0x130)]=_0x5a8c3e(0x138),_0x44aa57[_0x5a8c3e(0x14a)]='accessibilityOptions.includeIssueType.bestPractice',_0x44aa57[_0x5a8c3e(0xee)]='accessibilityOptions.includeIssueType.needsReview',_0x44aa57['YXBQY']=_0x5a8c3e(0x143),_0x44aa57[_0x5a8c3e(0x117)]=_0x5a8c3e(0x12a);const _0x426630=_0x44aa57;_0x3433d2[_0x5a8c3e(0x133)]&&(_0x3433d2[_0x5a8c3e(0x133)][_0x5a8c3e(0xfb)]&&(_0x3433d2[_0x426630[_0x5a8c3e(0x10b)]]=_0x3433d2[_0x5a8c3e(0x133)]['wcagVersion']),_0x3433d2[_0x5a8c3e(0x133)][_0x5a8c3e(0x115)]&&(_0x3433d2[_0x426630[_0x5a8c3e(0x130)]]=_0x3433d2[_0x5a8c3e(0x133)][_0x5a8c3e(0x115)]),_0x3433d2[_0x5a8c3e(0x133)][_0x5a8c3e(0xfe)]&&(_0x3433d2[_0x426630['aaqPR']]=_0x3433d2[_0x5a8c3e(0x133)][_0x5a8c3e(0xfe)][_0x5a8c3e(0x12e)],_0x3433d2[_0x426630[_0x5a8c3e(0xee)]]=_0x3433d2[_0x5a8c3e(0x133)]['includeIssueType']['needsReview']));const _0x46d043=JSON[_0x5a8c3e(0x118)](process[_0x5a8c3e(0x113)][_0x5a8c3e(0x153)])[_0x5a8c3e(0xfa)];_0x3433d2[_0x426630[_0x5a8c3e(0x114)]]=process[_0x5a8c3e(0x113)][_0x5a8c3e(0x10e)],_0x3433d2[_0x426630[_0x5a8c3e(0x117)]]=_0x46d043,delete _0x3433d2[_0x5a8c3e(0x133)];},exports[a37_0x46bab9(0x137)]=async _0x9b237f=>{const _0x551cc0=a37_0x46bab9,_0x14bb61={};_0x14bb61[_0x551cc0(0xe6)]=_0x551cc0(0xed),_0x14bb61['NyGrq']=_0x551cc0(0xe8);const _0xa82005=_0x14bb61;if(global[_0x551cc0(0x10d)])try{logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x9b237f,scripts.performScan)));},{command:'getAccessibilityResults'})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x9b237f,scripts.getResults);})();return res;}catch{return logger[_0x551cc0(0x14e)](_0xa82005['tWbPT']),[];}else return logger['warn'](_0xa82005[_0x551cc0(0x139)]),[];},exports[a37_0x46bab9(0x13f)]=async(_0x3da83e,_0x47d41e='')=>{const _0x3ec77f=a37_0x46bab9;logger[_0x3ec77f(0x144)]('Performing\x20scan\x20with\x20method:\x20'+_0x47d41e+_0x3ec77f(0x152)+_0x3da83e);if(global[_0x3ec77f(0x10d)])return await PerformanceTester[_0x3ec77f(0x146)](PerformanceA11yEvents[_0x3ec77f(0xf6)],async()=>{const _0xc3cbdc=_0x3ec77f,_0x5784ea={};_0x5784ea['command']=_0x47d41e,await exports[_0xc3cbdc(0x149)](_0x3da83e,scripts['performScan'],_0x5784ea);},{'command':_0x47d41e})();},exports[a37_0x46bab9(0x10f)]=async _0x3e283f=>{const _0x25c051=a37_0x46bab9,_0x1de5d0={};_0x1de5d0[_0x25c051(0x129)]=_0x25c051(0x100),_0x1de5d0[_0x25c051(0xe5)]=_0x25c051(0xef);const _0x14b778=_0x1de5d0;if(global[_0x25c051(0x10d)])try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x3e283f,scripts.performScan)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x3e283f,scripts.getResultsSummary);})();return summaryResults;}catch{return logger[_0x25c051(0x144)](_0x14b778['exMgW']),{};}else return logger[_0x25c051(0x108)](_0x14b778['ZKvZx']),{};},exports['platformValidation']=async _0xec5104=>{const _0x524be1=a37_0x46bab9,_0x55dead={'JabwC':function(_0x2319f0,_0x177b63){return _0x2319f0!==_0x177b63;},'RvfaL':_0x524be1(0x134),'AIQSc':_0x524be1(0x10a),'ROMzw':_0x524be1(0xe7),'FCMwq':_0x524be1(0x125),'KtXuJ':_0x524be1(0xff),'CRImP':function(_0x5a71a1,_0xb0de66){return _0x5a71a1(_0xb0de66);},'FNSdz':function(_0x5779a9){return _0x5779a9();},'iMFRg':function(_0x198e25,_0x5b9e13){return _0x198e25<_0x5b9e13;},'NYpYZ':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x20100.','mvihS':function(_0x45bfd4,_0x1eb6b7){return _0x45bfd4===_0x1eb6b7;},'HYaBr':'latest','vrspK':function(_0x3d32a7,_0x59ca66){return _0x3d32a7>_0x59ca66;},'DCqBB':_0x524be1(0x11c)};try{if(!_0x55dead[_0x524be1(0x140)](_0xec5104['deviceName'],''))return logger[_0x524be1(0x108)](_0x55dead['RvfaL']),![];const _0x1b7a2b=_0xec5104[_0x524be1(0xf8)];if(![_0x55dead[_0x524be1(0xec)],_0x55dead[_0x524be1(0x14b)],_0x55dead['FCMwq']]['includes'](_0x1b7a2b))return logger[_0x524be1(0x108)](_0x55dead[_0x524be1(0x111)]),![];const _0x310918=_0x55dead['CRImP'](parseInt,_0xec5104[_0x524be1(0xf2)]);!_0x55dead[_0x524be1(0xfc)](isBrowserstackInfra)&&(!_0x55dead[_0x524be1(0xf3)](_0x310918,0x64)&&logger['warn'](_0x55dead[_0x524be1(0x12b)]));if(!(_0x55dead[_0x524be1(0x142)](_0x310918,_0x55dead['HYaBr'])||_0x55dead[_0x524be1(0x132)](_0x310918,0x5e)))return logger[_0x524be1(0x108)](_0x55dead['DCqBB']),![];}catch(_0x399965){logger[_0x524be1(0x144)](_0x524be1(0x128)+util['format'](_0x399965));}return!![];},exports[a37_0x46bab9(0x105)]=(_0x124f88,_0x19f45f,_0x3508c3)=>{const _0x2ac4dd=a37_0x46bab9,_0x4b1f3b={'PsCIy':function(_0x35fb65){return _0x35fb65();},'Fspvg':_0x2ac4dd(0x126),'aPVvW':function(_0xab75d9,_0x1fb3cf){return _0xab75d9===_0x1fb3cf;},'banbK':'chrome','yCdFH':function(_0x3e92a8,_0x3604ff){return _0x3e92a8===_0x3604ff;},'Igqfn':'playwright-chromium','fpJzl':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','APDnK':function(_0x398fbc){return _0x398fbc();},'EGcPx':function(_0x358307,_0x4e684f){return _0x358307>_0x4e684f;},'hDtuN':_0x2ac4dd(0x112),'bMXXr':function(_0x598541,_0x142a75){return _0x598541===_0x142a75;},'nAJob':'latest','NHxDV':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','WYCPa':function(_0xd803a8,_0x15f878){return _0xd803a8(_0x15f878);},'fYgrT':_0x2ac4dd(0x134),'tMjZV':function(_0x1ea6d5,_0x13a4a4){return _0x1ea6d5+_0x13a4a4;},'yWQoO':function(_0x1f87f8,_0x5b20ff){return _0x1f87f8(_0x5b20ff);}};try{if(_0x4b1f3b['PsCIy'](isAccessibilityAutomationSession)){global[_0x2ac4dd(0x10d)]=!![];!_0x124f88[_0x4b1f3b[_0x2ac4dd(0x107)]]&&(global[_0x2ac4dd(0x10d)]=![]);!(_0x4b1f3b['aPVvW'](_0x124f88[_0x2ac4dd(0x11b)],_0x4b1f3b[_0x2ac4dd(0x13b)])||_0x4b1f3b[_0x2ac4dd(0x103)](_0x124f88['browserName'],_0x4b1f3b[_0x2ac4dd(0xf1)])||_0x4b1f3b[_0x2ac4dd(0x103)](_0x124f88[_0x2ac4dd(0xf8)],_0x4b1f3b[_0x2ac4dd(0x13b)])||_0x4b1f3b['yCdFH'](_0x124f88['browser'],_0x4b1f3b[_0x2ac4dd(0xf1)]))&&(logger[_0x2ac4dd(0x108)](_0x4b1f3b[_0x2ac4dd(0x14d)]),global['accessibilityPlatform']=![]);!_0x4b1f3b[_0x2ac4dd(0xf4)](isBrowserstackInfra)&&(!_0x4b1f3b[_0x2ac4dd(0x131)](_0x124f88[_0x2ac4dd(0xf2)],0x64)&&logger[_0x2ac4dd(0x108)](_0x4b1f3b[_0x2ac4dd(0xf9)]));!(_0x4b1f3b['bMXXr'](_0x124f88[_0x2ac4dd(0xf2)],_0x4b1f3b[_0x2ac4dd(0x135)])||_0x4b1f3b[_0x2ac4dd(0x131)](_0x124f88['browser_version'],0x5e))&&(logger['warn'](_0x4b1f3b[_0x2ac4dd(0x154)]),global[_0x2ac4dd(0x10d)]=![]);!_0x4b1f3b[_0x2ac4dd(0x13d)](isUndefined,_0x124f88[_0x2ac4dd(0x109)])&&(logger[_0x2ac4dd(0x108)](_0x4b1f3b[_0x2ac4dd(0x13e)]),global['accessibilityPlatform']=![]);if(!global[_0x2ac4dd(0x10d)]){_0x124f88[_0x4b1f3b[_0x2ac4dd(0x107)]]=![];const _0x58c7de=_0x4b1f3b['tMjZV'](_0x19f45f,_0x4b1f3b[_0x2ac4dd(0x110)](encodeURIComponent,JSON[_0x2ac4dd(0x141)](_0x124f88)));_0x3508c3&&(_0x3508c3['currentTest'][_0x2ac4dd(0x155)][_0x2ac4dd(0x120)][_0x2ac4dd(0x11d)]['connectOptions'][_0x2ac4dd(0x12d)]=_0x58c7de,_0x3508c3['workerInfo']['project'][_0x2ac4dd(0x11d)][_0x2ac4dd(0x12f)]['wsEndpoint']=_0x58c7de);}}else global['accessibilityPlatform']=![];}catch(_0x1f8d03){logger[_0x2ac4dd(0x144)](_0x2ac4dd(0x102)+util[_0x2ac4dd(0x101)](_0x1f8d03));}};function a37_0xca57(){const _0x3f8963=['constructor','util','AIQSc','No\x20accessibility\x20results\x20were\x20found.','gBgRl','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','1404966kblUki','Igqfn','browser_version','iMFRg','APDnK','hudoQ','PERFORM_SCAN','winstonLogger','browser','hDtuN','scannerVersion','wcagVersion','FNSdz','setAccessibilityCapabilities','includeIssueType','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','No\x20summaryResults\x20found.','format','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','yCdFH','../../helpers/performance/constants','processAccessibilityCaps','474915bSiikd','Fspvg','warn','deviceName','chrome','mrrvY','lwHwV','accessibilityPlatform','BS_A11Y_JWT','getAccessibilityResultsSummary','yWQoO','KtXuJ','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x20100.','env','YXBQY','scannerProcessingTimeout','WebDriver','qXCgg','parse','name','1276372fUTAzH','browserName','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','use','executeAsyncScript','(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','project','10124528BIcoZO','../../helpers/logger','../../helpers/performance/performance-tester','388294tpREFh','chromium','browserstack.accessibility','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','exMgW','accessibilityOptions.scannerVersion','NYpYZ','browserStackExecuteDriver','wsEndpoint','bestPractice','connectOptions','sIPkN','EGcPx','vrspK','accessibilityOptions','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','nAJob','accessibilityOptions.wcagVersion','getAccessibilityResults','accessibilityOptions.scannerProcessingTimeout','NyGrq','2118912cuNMCl','banbK','DZkci','WYCPa','fYgrT','performScan','JabwC','stringify','mvihS','accessibilityOptions.authToken','debug','lORcw','measureWrapper','bstackSdkArgs','../../helpers/helper','browserStackEvaluate','aaqPR','ROMzw','evaluate','fpJzl','error','CGzLW','../../helpers/accessibility-automation/helper','4Byarya','\x20page:\x20','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','NHxDV','testInfo','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','acSnL','ZKvZx','tWbPT','playwright-chromium','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','2577535ouWaWt'];a37_0xca57=function(){return _0x3f8963;};return a37_0xca57();}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';function a38_0x323b(_0x445c02,_0xe0deb7){const _0x2df033=a38_0x2df0();return a38_0x323b=function(_0x323b7f,_0x375a58){_0x323b7f=_0x323b7f-0x164;let _0x122f27=_0x2df033[_0x323b7f];return _0x122f27;},a38_0x323b(_0x445c02,_0xe0deb7);}const a38_0xf57b41=a38_0x323b;(function(_0x34146e,_0x379dcf){const _0x23ff4d=a38_0x323b,_0x3e395f=_0x34146e();while(!![]){try{const _0x5ea152=parseInt(_0x23ff4d(0x199))/0x1+-parseInt(_0x23ff4d(0x1aa))/0x2*(-parseInt(_0x23ff4d(0x208))/0x3)+-parseInt(_0x23ff4d(0x185))/0x4*(-parseInt(_0x23ff4d(0x177))/0x5)+-parseInt(_0x23ff4d(0x20c))/0x6*(parseInt(_0x23ff4d(0x181))/0x7)+parseInt(_0x23ff4d(0x1a5))/0x8+parseInt(_0x23ff4d(0x17b))/0x9+-parseInt(_0x23ff4d(0x1b2))/0xa;if(_0x5ea152===_0x379dcf)break;else _0x3e395f['push'](_0x3e395f['shift']());}catch(_0x2934c6){_0x3e395f['push'](_0x3e395f['shift']());}}}(a38_0x2df0,0x3e888));function a38_0x2df0(){const _0x124c38=['BROWSERSTACK_SETUP_CONFIG_PATH','stringify','winstonLogger','205926ZyYVEY','util','../../helpers/test-observability/constants','Error\x20in\x20closing\x20playwright','788ipEqhs','fHseg','gzvYg','UJRmq','../v2/TestInfo','qKWAC','SaXCo','SDK_CLEANUP','cVWxm','dirname','bootstrap','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','stop','UJige','skipSessionName','startsWith','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','forEach','./accessibility-helper','isTrue','297363Zdkbav','qskjI','fyVrS','shutdown','PLAYWRIGHT','XXoxB','Updated\x20config\x20file\x20name\x20to\x20-\x20','../../helpers/performance/constants','SDK_PRE_INITIALIZE','inherit','xdxrK','isTypescriptProject','441120gLDVro','Deleting\x20','MODULE','browserstackAutomation','--disable-test-observability','97100zKcmwT','split','BROWSERSTACK_TEST_ACCESSIBILITY_YML','lAgFA','GQVAC','trim','getPackageType','writeFileSync','5298200oeZraS','nRIUl','testObservability','Error\x20in\x20deleting\x20playwright\x20results','PACKAGE_TYPE','config','error','sxgeJ','accessibilityOptions','SDK_SETUP','wlzvu','SDK_POST_INITIALIZE','msOMv','vnDon','npx','YxNpi','./reporter/pwUtils','initialize','automation','slice','filter','assign','path','EwHIM','testContextOptions','PnAoA','cJsis','length','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','JMCco','.browserstack','BROWSERSTACK_RERUN','unlinkSync','logLevel','../../helpers/utilities','apply','nestedKeyValue','test','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','../../helpers/performance/performance-tester','win32','debug','BROWSERSTACK_PW_CONFIG_DIR','playwright','NoCLL','cwd','KIELn','resolvedConfigFile','../../helpers/accessibility-automation/helper','filterBrowserstackArgs','../../helpers/logger','--config=','QirbU','launchBuild','platform','--grep','splice','Error\x20in\x20getting\x20funnel\x20data\x20results','close','SvHxs','YNZer','../v2/browserstackCLI','cwpDO','NoDtl','existsSync','getProxyUrl','errorMessage','measureWrapper','accessibility','BROWSERSTACK_AUTOMATION','BphBE','UeIxd','../v2/cliUtils','iFwCv','vgPDw','readdirSync','setBrowserstackConfig','qKEHj','--disable-browserstack-automation','browserstackSetupConfig.json','env','readFileSync','xaPlK','setFrameworkDetail','isRunning','parse','18BAdQRQ','TqUcH','exitCode','isUndefined','66YgOaba','SGoUa','\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();','--config','resolve','concat','BROWSERSTACK_TEST_OBSERVABILITY','cliConfig','join','isFalse','EVENTS','ALaxa','getInstance','has','xnveJ','../../helpers/helper','rRnnT','ZeVBC','playwright-browserstack-sdk.config.cjs','../../helpers/testhub/testhubHandler','BROWSERSTACK_RERUN_TESTS','IwihM','pw_result.json','NbyVx','6265vkOqJN','hCNJb','BrowserStack\x20config\x20file\x20not\x20found.','exports','1970190WuWfxv','XkMVG','homedir'];a38_0x2df0=function(){return _0x124c38;};return a38_0x2df0();}const fs=require('fs'),path=require(a38_0xf57b41(0x1c8)),{spawn}=require('child_process'),{format}=require(a38_0xf57b41(0x182)),logger=require(a38_0xf57b41(0x1e4))[a38_0xf57b41(0x180)],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require(a38_0xf57b41(0x16e)),utilities=require(a38_0xf57b41(0x1d4)),constants=require('../utils/constants'),{FRAMEWORKS}=require(a38_0xf57b41(0x183)),{getConfigLoaderPath}=require(a38_0xf57b41(0x1c2)),{checkAccessibilityPlatformConfig}=require(a38_0xf57b41(0x1e2)),{setAccessibilityCapabilities}=require(a38_0xf57b41(0x197)),{printBuildLink}=require('../../helpers/test-observability/utils'),TestDetails=require('./reporter/test-details'),TestHubHandler=require(a38_0xf57b41(0x172)),PerformanceTester=require(a38_0xf57b41(0x1d9)),BrowserstackCLI=require(a38_0xf57b41(0x1ef)),PerformanceEvents=require(a38_0xf57b41(0x1a0))[a38_0xf57b41(0x169)],CLIUtils=require(a38_0xf57b41(0x1fa)),TestInfo=require(a38_0xf57b41(0x189)),getUserPlaywrightConfig=async(_0x13dd7f,_0x2b8123)=>{const _0x3d29d8=a38_0xf57b41,_0x28801e={'rRnnT':function(_0x565e87){return _0x565e87();},'UJige':function(_0x278406,_0x21d3f8){return _0x278406(_0x21d3f8);},'msOMv':_0x3d29d8(0x1e1),'DxRHs':_0x3d29d8(0x1e5)},_0x2115e2=!helper[_0x3d29d8(0x20b)](_0x13dd7f['config']),_0x1f5510=_0x2115e2?path[_0x3d29d8(0x210)](process[_0x3d29d8(0x1df)](),_0x13dd7f[_0x3d29d8(0x1b7)]):process[_0x3d29d8(0x1df)](),{resolveConfigFile:_0x47578b,resolveConfigLocation:_0xd8a332}=helper['requirePWModule'][_0x3d29d8(0x1d5)](null,_0x28801e[_0x3d29d8(0x16f)](getConfigLoaderPath)),_0x167b2f=_0x47578b?_0x28801e[_0x3d29d8(0x192)](_0x47578b,_0x1f5510):helper[_0x3d29d8(0x1d6)](_0x28801e[_0x3d29d8(0x192)](_0xd8a332,_0x1f5510),[_0x28801e[_0x3d29d8(0x1be)]]),_0x23db7a={};if(_0x2115e2){const _0x17bcdd=_0x2b8123['findIndex'](_0x2079a4=>_0x2079a4===_0x3d29d8(0x20f)||_0x2079a4==='-c'||_0x2079a4['startsWith']('--config='));_0x2b8123[_0x3d29d8(0x1ea)](_0x17bcdd,_0x2b8123[_0x17bcdd][_0x3d29d8(0x194)](_0x28801e['DxRHs'])?0x1:0x2);}const _0x8df389={};return _0x8df389[_0x3d29d8(0x1c8)]=_0x167b2f,_0x8df389['config']=_0x23db7a,_0x8df389;},handleO11yRerun=_0x2ba9b1=>{const _0x35646c=a38_0xf57b41,_0x39db3d={};_0x39db3d[_0x35646c(0x17c)]=_0x35646c(0x1e9);const _0x1dde20=_0x39db3d,_0x476997=helper[_0x35646c(0x198)](process[_0x35646c(0x202)][_0x35646c(0x1d1)]);if(_0x476997){const _0x50348e=process[_0x35646c(0x202)][_0x35646c(0x173)],_0x2d9e02=[];if(helper['validateRerunTestList'](_0x50348e)&&!helper[_0x35646c(0x20b)](_0x50348e)){_0x50348e[_0x35646c(0x1ab)](',')['map'](_0x1b163b=>{const _0x21dcda=_0x35646c;_0x2d9e02['push']('('+_0x1b163b[_0x21dcda(0x1af)]()+')');});const _0x245f95='^'+_0x2d9e02[_0x35646c(0x167)]('|')+'$';_0x2ba9b1['push'](_0x1dde20[_0x35646c(0x17c)],_0x245f95);}}},spawnOriginalProcess=_0x152e18=>{const _0x38ec51=a38_0xf57b41,_0x1dea9c={'cVWxm':function(_0x29a2aa,_0x250de0,_0x130df9,_0x44a859){return _0x29a2aa(_0x250de0,_0x130df9,_0x44a859);},'xnveJ':_0x38ec51(0x1c0),'fyVrS':_0x38ec51(0x1dd),'PnAoA':function(_0xa1068e,_0xcabdfc){return _0xa1068e===_0xcabdfc;},'VExdk':_0x38ec51(0x1da),'hCNJb':_0x38ec51(0x1a2)};_0x1dea9c[_0x38ec51(0x18d)](spawn,_0x1dea9c[_0x38ec51(0x16d)],[_0x1dea9c[_0x38ec51(0x19b)],..._0x152e18[_0x38ec51(0x1c5)](0x1)],{'shell':_0x1dea9c[_0x38ec51(0x1cb)](process[_0x38ec51(0x1e8)],_0x1dea9c['VExdk']),'stdio':_0x1dea9c[_0x38ec51(0x178)],'cwd':process[_0x38ec51(0x1df)]()});},isTestCommand=(_0x37adc0,_0x2dd6a8)=>{const _0x2eaaac=a38_0xf57b41,_0x1b5952={};_0x1b5952['XsPUI']=function(_0x3850cd,_0x59f06a){return _0x3850cd>_0x59f06a;},_0x1b5952[_0x2eaaac(0x1c1)]=function(_0x15c596,_0x86da61){return _0x15c596===_0x86da61;},_0x1b5952[_0x2eaaac(0x1c9)]=_0x2eaaac(0x1d7);const _0x5ac895=_0x1b5952;if(_0x5ac895['XsPUI'](_0x2dd6a8[_0x2eaaac(0x1cd)],0x1)&&_0x5ac895['YxNpi'](_0x2dd6a8[0x1],_0x5ac895[_0x2eaaac(0x1c9)]))return!![];return![];};async function run(_0x1dc3b9,_0x177e60,_0x5e1742){const _0x38dc03=a38_0xf57b41,_0x38dbc4={'IwihM':function(_0x5c411c,_0x2e8171){return _0x5c411c(_0x2e8171);},'UeIxd':function(_0x21dd80){return _0x21dd80();},'wDsqg':function(_0x5dbdfa){return _0x5dbdfa();},'sxgeJ':_0x38dc03(0x1d0),'KIELn':function(_0x2a5a58,_0x5a70fd){return _0x2a5a58+_0x5a70fd;},'vgPDw':_0x38dc03(0x184),'qskjI':_0x38dc03(0x175),'ZeVBC':function(_0x5d33b5,_0x456027){return _0x5d33b5+_0x456027;},'WbJMR':_0x38dc03(0x1eb),'wlzvu':_0x38dc03(0x179),'BphBE':function(_0x3c971b,_0x25d1a7){return _0x3c971b===_0x25d1a7;},'xaPlK':'false','wsYUD':_0x38dc03(0x1a9),'mMQfg':function(_0xf0e1a9,_0x1c5833){return _0xf0e1a9>=_0x1c5833;},'SGoUa':_0x38dc03(0x1c4),'iFwCv':function(_0x524943,_0x2ab65d){return _0x524943!=_0x2ab65d;},'DUedH':function(_0x3599b7,_0x253a44,_0x45672d){return _0x3599b7(_0x253a44,_0x45672d);},'vnDon':function(_0x3873aa,_0x2c4fd0){return _0x3873aa(_0x2c4fd0);},'XXoxB':function(_0xa63f2b,_0x1250d1){return _0xa63f2b===_0x1250d1;},'fHseg':'true','xdxrK':function(_0x36ab7c,_0x239fdb){return _0x36ab7c(_0x239fdb);},'NbyVx':function(_0x1f0363,_0x355910){return _0x1f0363(_0x355910);},'SvHxs':_0x38dc03(0x201),'bhZuS':_0x38dc03(0x171),'SaXCo':'playwright-browserstack-sdk.config.js','ALaxa':function(_0x51397e,_0x484feb){return _0x51397e-_0x484feb;},'JMCco':_0x38dc03(0x19f),'GQVAC':function(_0x83ff41,_0xf839f3){return _0x83ff41>_0xf839f3;},'qthQF':function(_0x1fded0,_0x153a5d){return _0x1fded0+_0x153a5d;},'NoDtl':function(_0x5327cb,_0x44988b,_0x5b1657,_0x4c9cfa){return _0x5327cb(_0x44988b,_0x5b1657,_0x4c9cfa);},'QirbU':_0x38dc03(0x1c0),'qKWAC':_0x38dc03(0x1dd),'YNZer':'test','gzvYg':_0x38dc03(0x20f),'nRIUl':function(_0x9ebfe,_0x53bceb){return _0x9ebfe===_0x53bceb;},'lAgFA':'win32','cwpDO':'inherit','TqUcH':_0x38dc03(0x1ec),'qKEHj':function(_0x1af198,_0x15eb0f){return _0x1af198+_0x15eb0f;},'dRMZw':_0x38dc03(0x1b5),'sOWCI':function(_0x8a1220,_0x40484d,_0x11938f){return _0x8a1220(_0x40484d,_0x11938f);}};try{const _0x1e22ec=path[_0x38dc03(0x167)](helper[_0x38dc03(0x17d)](),_0x38dbc4[_0x38dc03(0x1b9)],_0x38dbc4[_0x38dc03(0x19a)]);fs[_0x38dc03(0x1f2)](_0x1e22ec)&&fs[_0x38dc03(0x1d2)](_0x1e22ec);}catch(_0x3c3e3b){logger['debug'](_0x38dbc4[_0x38dc03(0x1ff)](_0x38dbc4['dRMZw'],_0x3c3e3b));}if(!_0x38dbc4['sOWCI'](isTestCommand,_0x1dc3b9,_0x177e60)){_0x38dbc4[_0x38dc03(0x176)](spawnOriginalProcess,_0x177e60);return;}await PerformanceTester[_0x38dc03(0x1f5)](PerformanceEvents[_0x38dc03(0x1a1)],async()=>{const _0xc236d3=_0x38dc03,_0x3e787b={'UJRmq':_0x38dbc4[_0xc236d3(0x1b9)],'KXJdZ':_0x38dbc4[_0xc236d3(0x19a)],'NoCLL':function(_0x14b5ac,_0x29b0a0){const _0x2fe526=_0xc236d3;return _0x38dbc4[_0x2fe526(0x170)](_0x14b5ac,_0x29b0a0);},'cJsis':_0x38dbc4['WbJMR']};if(!_0x5e1742['config']){logger[_0xc236d3(0x1b8)](_0x38dbc4[_0xc236d3(0x1bc)]);return;}await _0x5e1742[_0xc236d3(0x1c3)](_0x1dc3b9),CLIUtils[_0xc236d3(0x205)](FRAMEWORKS[_0xc236d3(0x19d)],FRAMEWORKS[_0xc236d3(0x19d)]),BrowserstackCLI['getInstance']()[_0xc236d3(0x1fe)](_0x5e1742[_0xc236d3(0x1b7)],_0x5e1742[_0xc236d3(0x166)]),await BrowserstackCLI[_0xc236d3(0x16b)]()[_0xc236d3(0x18f)]();const _0x32e370=BrowserstackCLI[_0xc236d3(0x16b)]()['getConfig']();!helper['isFalse'](_0x32e370[_0xc236d3(0x1a8)])&&(process[_0xc236d3(0x202)][_0xc236d3(0x1f7)]=!![]);_0x38dbc4[_0xc236d3(0x1f8)](_0x32e370['browserstackAutomation'],![])&&(process[_0xc236d3(0x202)]['BROWSERSTACK_AUTOMATION']=_0x38dbc4['xaPlK'],_0x177e60=_0x177e60[_0xc236d3(0x1c6)](_0x238e06=>_0x238e06!==_0xc236d3(0x200)));const _0x27767f=_0x177e60['indexOf'](_0x38dbc4['wsYUD']);(_0x38dbc4['mMQfg'](_0x27767f,0x0)||_0x38dbc4[_0xc236d3(0x1f8)](_0x32e370['testObservability'],![]))&&(process[_0xc236d3(0x202)][_0xc236d3(0x165)]=_0x38dbc4[_0xc236d3(0x204)],_0x177e60=_0x177e60[_0xc236d3(0x1c6)](_0x148849=>_0x148849!=='--disable-test-observability'));!helper[_0xc236d3(0x20b)](_0x5e1742[_0xc236d3(0x166)])&&_0x5e1742['cliConfig'][_0xc236d3(0x16c)](_0x38dbc4['SGoUa'])&&(process[_0xc236d3(0x202)][_0xc236d3(0x1f7)]=_0x5e1742[_0xc236d3(0x166)]['get'](_0x38dbc4[_0xc236d3(0x20d)])||!![]);_0x38dbc4[_0xc236d3(0x1fb)](_0x5e1742['config'][_0xc236d3(0x1b4)],null)&&!helper[_0xc236d3(0x198)](process['env'][_0xc236d3(0x165)])&&(process[_0xc236d3(0x202)]['BROWSERSTACK_TEST_OBSERVABILITY']=process[_0xc236d3(0x202)]['BROWSERSTACK_TEST_OBSERVABILITY']||_0x5e1742[_0xc236d3(0x1b7)]['testObservability']);const _0x6f942a=!helper[_0xc236d3(0x168)](process['env'][_0xc236d3(0x165)]);_0x5e1742[_0xc236d3(0x1b7)][_0xc236d3(0x1ba)]&&(process['env'][_0xc236d3(0x1ce)]=JSON[_0xc236d3(0x17f)](_0x5e1742[_0xc236d3(0x1b7)][_0xc236d3(0x1ba)]));let _0xe4961f=![];_0x5e1742[_0xc236d3(0x1b7)][_0xc236d3(0x1f6)]&&(_0xe4961f=!![],process['env'][_0xc236d3(0x1ac)]=_0x5e1742[_0xc236d3(0x1b7)][_0xc236d3(0x1f6)]);const _0x4ab00e=_0x177e60[_0xc236d3(0x164)](),_0x48539a=await _0x38dbc4['DUedH'](getUserPlaywrightConfig,_0x1dc3b9,_0x177e60);if(helper[_0xc236d3(0x20b)](_0x48539a)){_0x38dbc4[_0xc236d3(0x1bf)](spawnOriginalProcess,_0x4ab00e);return;}const _0x488543=_0x48539a['path']?path['dirname'](_0x48539a['path']):process[_0xc236d3(0x1df)]();process[_0xc236d3(0x202)][_0xc236d3(0x1dc)]=_0x488543,await PerformanceTester[_0xc236d3(0x1f5)](PerformanceEvents[_0xc236d3(0x1bd)],async()=>{const _0x5c782b=_0xc236d3;!BrowserstackCLI[_0x5c782b(0x16b)]()['isRunning']()&&await TestHubHandler[_0x5c782b(0x1e7)](FRAMEWORKS[_0x5c782b(0x19d)],_0x5e1742),_0x6f942a&&_0x38dbc4[_0x5c782b(0x174)](handleO11yRerun,_0x177e60);})();if(!BrowserstackCLI[_0xc236d3(0x16b)]()[_0xc236d3(0x206)]()){let _0x156d8d=_0x38dbc4[_0xc236d3(0x19e)](process['env'][_0xc236d3(0x1ac)],_0x38dbc4[_0xc236d3(0x186)]);_0x156d8d=_0x156d8d||_0x38dbc4[_0xc236d3(0x1a3)](checkAccessibilityPlatformConfig,_0x5e1742[_0xc236d3(0x1b7)]),process[_0xc236d3(0x202)][_0xc236d3(0x1ac)]=_0x156d8d,_0x156d8d&&_0x38dbc4['NbyVx'](setAccessibilityCapabilities,_0x5e1742[_0xc236d3(0x1b7)]);}const _0x1b49ae=path[_0xc236d3(0x167)](_0x48539a[_0xc236d3(0x1c8)]?path[_0xc236d3(0x18e)](_0x48539a[_0xc236d3(0x1c8)]):process[_0xc236d3(0x1df)](),_0x38dbc4[_0xc236d3(0x1ed)]);fs[_0xc236d3(0x1b1)](_0x1b49ae,helper['serializeToYamlString'](_0x5e1742[_0xc236d3(0x1b7)])),process[_0xc236d3(0x202)][_0xc236d3(0x17e)]=_0x1b49ae,helper['clearTempPWConfig']();let _0x2a9082='';_0x38dbc4[_0xc236d3(0x19e)](helper[_0xc236d3(0x1b0)](),constants[_0xc236d3(0x1b6)][_0xc236d3(0x1a7)])?_0x2a9082=_0x38dbc4['bhZuS']:_0x2a9082=_0x38dbc4[_0xc236d3(0x18b)];let _0x4a1553='';if(helper[_0xc236d3(0x1a4)](_0x48539a[_0xc236d3(0x1c8)])){_0x4a1553=_0xc236d3(0x1d8);const _0x4a2895=_0x2a9082['split']('.');_0x4a2895[_0x38dbc4[_0xc236d3(0x16a)](_0x4a2895[_0xc236d3(0x1cd)],0x1)]='ts',_0x2a9082=_0x4a2895[_0xc236d3(0x167)]('.'),logger['debug'](_0x38dbc4['ZeVBC'](_0x38dbc4[_0xc236d3(0x1cf)],_0x2a9082));}else _0x4a1553=_0xc236d3(0x190);const _0xb1ff8c=path['join'](_0x48539a[_0xc236d3(0x1c8)]?path[_0xc236d3(0x18e)](_0x48539a[_0xc236d3(0x1c8)]):process[_0xc236d3(0x1df)](),_0x2a9082);let _0x5a7bea=_0x48539a['path']?_0x48539a[_0xc236d3(0x1c8)]:'';_0x5a7bea=_0x38dbc4[_0xc236d3(0x1ae)](_0x5a7bea[_0xc236d3(0x1cd)],0x0)?path['resolve'](_0x5a7bea):'',process[_0xc236d3(0x202)]['USER_CONFIG_DETAILS_PATH']=_0x5a7bea;const _0x276602=helper[_0xc236d3(0x1f3)](_0x5e1742['config']);_0x276602&&(_0x4a1553=_0x38dbc4['qthQF'](_0xc236d3(0x195)+_0x276602+_0xc236d3(0x20e),_0x4a1553));helper[_0xc236d3(0x1e3)]({},_0x177e60),fs['writeFileSync'](_0xb1ff8c,_0x4a1553),PerformanceTester['end'](PerformanceEvents[_0xc236d3(0x1bb)]);const _0x558129=_0x38dbc4[_0xc236d3(0x1f1)](spawn,_0x38dbc4[_0xc236d3(0x1e6)],[_0x38dbc4[_0xc236d3(0x18a)],_0x38dbc4[_0xc236d3(0x1ee)],_0x38dbc4[_0xc236d3(0x187)],_0xb1ff8c,..._0x177e60[_0xc236d3(0x1c5)](0x2)],{'shell':_0x38dbc4[_0xc236d3(0x1b3)](process[_0xc236d3(0x1e8)],_0x38dbc4[_0xc236d3(0x1ad)]),'stdio':_0x38dbc4[_0xc236d3(0x1f0)],'cwd':process[_0xc236d3(0x1df)](),'env':Object[_0xc236d3(0x1c7)]({},process[_0xc236d3(0x202)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper['getConfigPath'](_0x1dc3b9),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x5e1742[_0xc236d3(0x1b7)][_0xc236d3(0x1ca)]['skipSessionStatus'],'BROWSERSTACK_SKIP_SESSION_NAME':_0x5e1742['config'][_0xc236d3(0x1ca)][_0xc236d3(0x193)],'BROWSERSTACK_LOG_LEVEL':_0x5e1742['config'][_0xc236d3(0x1d3)]})}),_0x516728=()=>{const _0x4c5a91=_0xc236d3;try{const _0xfecd5b=path[_0x4c5a91(0x167)](helper[_0x4c5a91(0x17d)](),_0x3e787b[_0x4c5a91(0x188)],_0x3e787b['KXJdZ']);if(fs[_0x4c5a91(0x1f2)](_0xfecd5b)){let _0x1a2891=fs[_0x4c5a91(0x203)](_0xfecd5b);_0x1a2891=JSON[_0x4c5a91(0x207)](_0x1a2891),_0x5e1742[_0x4c5a91(0x1f4)]=_0x1a2891,fs[_0x4c5a91(0x1d2)](_0xfecd5b);}}catch(_0x5ee1f3){logger['debug'](_0x3e787b[_0x4c5a91(0x1de)](_0x3e787b[_0x4c5a91(0x1cc)],_0x5ee1f3));}};_0x558129['on'](_0x38dbc4[_0xc236d3(0x209)],async _0x470036=>{const _0x817821=_0xc236d3;try{PerformanceTester['start'](PerformanceEvents[_0x817821(0x18c)]),_0x38dbc4[_0x817821(0x1f9)](_0x516728);!BrowserstackCLI[_0x817821(0x16b)]()[_0x817821(0x206)]()&&await TestHubHandler[_0x817821(0x191)]();await BrowserstackCLI[_0x817821(0x16b)]()['stop'](),TestDetails[_0x817821(0x19c)](),_0x38dbc4['wDsqg'](printBuildLink),await utilities['finalExecution'](_0x5e1742),process[_0x817821(0x20a)]=_0x470036,logger[_0x817821(0x1db)]('Playwright\x20process\x20exited\x20with\x20code\x20'+_0x470036),logger['info']('Deleting\x20'+_0xb1ff8c),fs[_0x817821(0x1d2)](_0xb1ff8c);fs[_0x817821(0x1f2)](_0x1b49ae)&&(logger['debug'](_0x817821(0x1a6)+_0x1b49ae),fs[_0x817821(0x1d2)](_0x1b49ae));const _0xbde523=fs[_0x817821(0x1fd)](path['join'](helper[_0x817821(0x17d)](),_0x38dbc4['sxgeJ']))[_0x817821(0x1c6)](_0x5747eb=>_0x5747eb['startsWith']('trace_'));_0xbde523[_0x817821(0x196)](_0x247021=>{const _0x31aa47=_0x817821;fs['unlinkSync'](path[_0x31aa47(0x167)](helper[_0x31aa47(0x17d)](),_0x3e787b[_0x31aa47(0x188)],_0x247021));});}catch(_0x14d6ef){logger[_0x817821(0x1db)](_0x38dbc4[_0x817821(0x1e0)](_0x38dbc4[_0x817821(0x1fc)],_0x14d6ef));}});})();}module[a38_0xf57b41(0x17a)]=run;
|
|
2
|
+
'use strict';const a38_0x91e7e8=a38_0x5ae2;(function(_0x4828fc,_0x115c4e){const _0x533669=a38_0x5ae2,_0x26e2a6=_0x4828fc();while(!![]){try{const _0x5cc902=-parseInt(_0x533669(0x12b))/0x1*(-parseInt(_0x533669(0x117))/0x2)+parseInt(_0x533669(0x148))/0x3*(-parseInt(_0x533669(0xd9))/0x4)+-parseInt(_0x533669(0x101))/0x5*(parseInt(_0x533669(0x17e))/0x6)+parseInt(_0x533669(0xed))/0x7*(-parseInt(_0x533669(0xde))/0x8)+-parseInt(_0x533669(0xf8))/0x9*(-parseInt(_0x533669(0x164))/0xa)+-parseInt(_0x533669(0x153))/0xb+parseInt(_0x533669(0x147))/0xc;if(_0x5cc902===_0x115c4e)break;else _0x26e2a6['push'](_0x26e2a6['shift']());}catch(_0x2c69b7){_0x26e2a6['push'](_0x26e2a6['shift']());}}}(a38_0x5ce1,0xdebaf));const fs=require('fs'),path=require(a38_0x91e7e8(0x159)),{spawn}=require(a38_0x91e7e8(0x178)),{format}=require('util'),logger=require('../../helpers/logger')[a38_0x91e7e8(0x124)],{default:BrowserStackSetup}=require(a38_0x91e7e8(0xf2)),helper=require(a38_0x91e7e8(0xdf)),utilities=require(a38_0x91e7e8(0x182)),constants=require('../utils/constants'),{FRAMEWORKS}=require(a38_0x91e7e8(0xd8)),{getConfigLoaderPath}=require('./reporter/pwUtils'),{checkAccessibilityPlatformConfig}=require(a38_0x91e7e8(0xda)),{setAccessibilityCapabilities}=require(a38_0x91e7e8(0x106)),{printBuildLink}=require(a38_0x91e7e8(0x135)),TestDetails=require('./reporter/test-details'),TestHubHandler=require(a38_0x91e7e8(0x12a)),PerformanceTester=require(a38_0x91e7e8(0x131)),BrowserstackCLI=require(a38_0x91e7e8(0x134)),PerformanceEvents=require(a38_0x91e7e8(0xe5))[a38_0x91e7e8(0x160)],CLIUtils=require(a38_0x91e7e8(0x10f)),TestInfo=require(a38_0x91e7e8(0x14c)),getUserPlaywrightConfig=async(_0x178ae5,_0x3af312)=>{const _0x39f25c=a38_0x91e7e8,_0x26832c={'wHMdi':function(_0xa41a04){return _0xa41a04();},'AEyyd':function(_0x115986,_0xaf4cb5){return _0x115986(_0xaf4cb5);},'Dkfsf':function(_0x4290b1,_0x5366eb){return _0x4290b1(_0x5366eb);},'exKPV':_0x39f25c(0x16c),'hoALu':_0x39f25c(0x11b)},_0x5dc1ea=!helper['isUndefined'](_0x178ae5[_0x39f25c(0x113)]),_0x1e892d=_0x5dc1ea?path[_0x39f25c(0xe3)](process['cwd'](),_0x178ae5['config']):process[_0x39f25c(0x17c)](),{resolveConfigFile:_0x3386ca,resolveConfigLocation:_0xc697e3}=helper[_0x39f25c(0x15c)]['apply'](null,_0x26832c[_0x39f25c(0x166)](getConfigLoaderPath)),_0x5f5146=_0x3386ca?_0x26832c[_0x39f25c(0xe0)](_0x3386ca,_0x1e892d):helper[_0x39f25c(0x171)](_0x26832c['Dkfsf'](_0xc697e3,_0x1e892d),[_0x26832c['exKPV']]),_0x4206b7={};if(_0x5dc1ea){const _0x4af3ca=_0x3af312[_0x39f25c(0xfb)](_0x435ff8=>_0x435ff8==='--config'||_0x435ff8==='-c'||_0x435ff8[_0x39f25c(0x152)](_0x39f25c(0x11b)));_0x3af312[_0x39f25c(0x14b)](_0x4af3ca,_0x3af312[_0x4af3ca][_0x39f25c(0x152)](_0x26832c[_0x39f25c(0x173)])?0x1:0x2);}const _0x43a686={};return _0x43a686['path']=_0x5f5146,_0x43a686[_0x39f25c(0x113)]=_0x4206b7,_0x43a686;},handleO11yRerun=_0x48178d=>{const _0x140ba5=a38_0x91e7e8,_0x1006a3={};_0x1006a3[_0x140ba5(0xd6)]=_0x140ba5(0x16e);const _0x5e04f6=_0x1006a3,_0x22eba5=helper['isTrue'](process[_0x140ba5(0x154)][_0x140ba5(0x10d)]);if(_0x22eba5){const _0x3180da=process[_0x140ba5(0x154)][_0x140ba5(0xd4)],_0x306d7f=[];if(helper[_0x140ba5(0xdb)](_0x3180da)&&!helper[_0x140ba5(0x155)](_0x3180da)){_0x3180da[_0x140ba5(0x115)](',')[_0x140ba5(0x15f)](_0x27cc69=>{const _0x5ba3f2=_0x140ba5;_0x306d7f[_0x5ba3f2(0x15b)]('('+_0x27cc69[_0x5ba3f2(0x14e)]()+')');});const _0x2c2ed6='^'+_0x306d7f[_0x140ba5(0x138)]('|')+'$';_0x48178d[_0x140ba5(0x15b)](_0x5e04f6[_0x140ba5(0xd6)],_0x2c2ed6);}}},spawnOriginalProcess=_0x3f096b=>{const _0x545eed=a38_0x91e7e8,_0x406c9b={'vGING':function(_0x4d7730,_0x166533,_0x2bf129,_0x25e1a7){return _0x4d7730(_0x166533,_0x2bf129,_0x25e1a7);},'ZtUDk':_0x545eed(0xec),'iujBS':_0x545eed(0xe6),'otzjm':function(_0x46ddf4,_0xb497fc){return _0x46ddf4===_0xb497fc;},'YTJdI':_0x545eed(0x13d),'OlvTM':_0x545eed(0x130)};_0x406c9b['vGING'](spawn,_0x406c9b[_0x545eed(0x172)],[_0x406c9b[_0x545eed(0x132)],..._0x3f096b[_0x545eed(0x133)](0x1)],{'shell':_0x406c9b[_0x545eed(0xd2)](process['platform'],_0x406c9b[_0x545eed(0xf4)]),'stdio':_0x406c9b[_0x545eed(0x165)],'cwd':process[_0x545eed(0x17c)]()});},isTestCommand=(_0x487ea8,_0x463cc9)=>{const _0x8ca9f7=a38_0x91e7e8,_0x53a203={};_0x53a203[_0x8ca9f7(0x137)]=function(_0x584103,_0x423914){return _0x584103>_0x423914;},_0x53a203[_0x8ca9f7(0x161)]=function(_0x3a6e3a,_0x143779){return _0x3a6e3a===_0x143779;},_0x53a203[_0x8ca9f7(0x10e)]=_0x8ca9f7(0x146);const _0x4a3af7=_0x53a203;if(_0x4a3af7['CUIPU'](_0x463cc9['length'],0x1)&&_0x4a3af7[_0x8ca9f7(0x161)](_0x463cc9[0x1],_0x4a3af7[_0x8ca9f7(0x10e)]))return!![];return![];};function a38_0x5ae2(_0x4c9bd8,_0x104296){const _0x5ce1c=a38_0x5ce1();return a38_0x5ae2=function(_0x5ae2a4,_0x95c7eb){_0x5ae2a4=_0x5ae2a4-0xcf;let _0x3d3712=_0x5ce1c[_0x5ae2a4];return _0x3d3712;},a38_0x5ae2(_0x4c9bd8,_0x104296);}async function run(_0x1bc44c,_0x1c059c,_0x5c1170){const _0x36d3c0=a38_0x91e7e8,_0x2a610f={'aEJfj':function(_0x43ed79){return _0x43ed79();},'bGtNA':function(_0x163021){return _0x163021();},'NbAVg':_0x36d3c0(0x122),'IGuoA':function(_0x3aaeed,_0x2e855a){return _0x3aaeed+_0x2e855a;},'QWRfj':'Error\x20in\x20closing\x20playwright','TFxYy':function(_0x6358dd,_0x311b43){return _0x6358dd(_0x311b43);},'QZhcS':_0x36d3c0(0xef),'fYZUp':function(_0x120aba,_0x1c48cd){return _0x120aba+_0x1c48cd;},'SKmQa':_0x36d3c0(0x15d),'SHcXc':_0x36d3c0(0xf6),'OcFHs':function(_0x7bc3d6,_0x4bd326){return _0x7bc3d6===_0x4bd326;},'KXxck':_0x36d3c0(0x169),'LWpXA':_0x36d3c0(0x180),'KAcae':function(_0x4dc7f6,_0x59c2e0){return _0x4dc7f6>=_0x59c2e0;},'opzYd':'automation','eZROW':function(_0x2f1408,_0x51a18f){return _0x2f1408!=_0x51a18f;},'ZtvJJ':function(_0x9facb0,_0x13fc01,_0x33b723){return _0x9facb0(_0x13fc01,_0x33b723);},'bWzCy':function(_0x30f6f0,_0x1870a6){return _0x30f6f0(_0x1870a6);},'YuaGK':_0x36d3c0(0xfd),'yMSdC':function(_0x33a969,_0x17257){return _0x33a969(_0x17257);},'JDvDH':_0x36d3c0(0xeb),'TkZkP':'playwright-browserstack-sdk.config.cjs','HjPUi':_0x36d3c0(0xf0),'ZQtXL':function(_0x170919,_0x2ece0f){return _0x170919-_0x2ece0f;},'kWyPY':function(_0x5256e3,_0x385845){return _0x5256e3+_0x385845;},'hXpAk':_0x36d3c0(0x141),'KUsZA':function(_0x2cb3bf,_0x3b2cdb){return _0x2cb3bf>_0x3b2cdb;},'jZbFU':function(_0x210e21,_0x1d1cca,_0x184dd8,_0x2d3d04){return _0x210e21(_0x1d1cca,_0x184dd8,_0x2d3d04);},'xrqnj':_0x36d3c0(0xec),'VqGup':_0x36d3c0(0xe6),'oEVFC':_0x36d3c0(0x146),'ussdt':_0x36d3c0(0x10c),'BZWEe':_0x36d3c0(0x13d),'frtMR':'inherit','UJyHm':_0x36d3c0(0x163),'Pnnod':function(_0x114dc9,_0x21a068){return _0x114dc9+_0x21a068;},'AjOww':_0x36d3c0(0x177)};try{const _0x263626=path[_0x36d3c0(0x138)](helper['homedir'](),_0x2a610f[_0x36d3c0(0x150)],_0x2a610f[_0x36d3c0(0xf9)]);fs[_0x36d3c0(0xf5)](_0x263626)&&fs[_0x36d3c0(0x13a)](_0x263626);}catch(_0x486e97){logger[_0x36d3c0(0x170)](_0x2a610f['Pnnod'](_0x2a610f['AjOww'],_0x486e97));}if(!_0x2a610f['ZtvJJ'](isTestCommand,_0x1bc44c,_0x1c059c)){_0x2a610f[_0x36d3c0(0xfe)](spawnOriginalProcess,_0x1c059c);return;}await PerformanceTester[_0x36d3c0(0x125)](PerformanceEvents[_0x36d3c0(0xe9)],async()=>{const _0x30618e=_0x36d3c0,_0x2f3da6={'vBXXo':function(_0x2638d4,_0x278ab4){const _0x5eed1d=a38_0x5ae2;return _0x2a610f[_0x5eed1d(0x110)](_0x2638d4,_0x278ab4);},'FWOyH':_0x2a610f['NbAVg'],'cBqWJ':_0x2a610f['QZhcS'],'nJusb':function(_0x50c443,_0x578ebb){const _0x45fe37=a38_0x5ae2;return _0x2a610f[_0x45fe37(0x181)](_0x50c443,_0x578ebb);},'UUPnS':_0x2a610f[_0x30618e(0x111)]};if(!_0x5c1170[_0x30618e(0x113)]){logger[_0x30618e(0x145)](_0x2a610f[_0x30618e(0xcf)]);return;}await _0x5c1170[_0x30618e(0xdd)](_0x1bc44c),CLIUtils[_0x30618e(0x13e)](FRAMEWORKS['PLAYWRIGHT'],FRAMEWORKS[_0x30618e(0x13c)]),BrowserstackCLI[_0x30618e(0x107)]()['setBrowserstackConfig'](_0x5c1170['config'],_0x5c1170[_0x30618e(0x156)]),await BrowserstackCLI[_0x30618e(0x107)]()[_0x30618e(0xd7)]();const _0x496d9c=BrowserstackCLI[_0x30618e(0x107)]()['getConfig']();!helper[_0x30618e(0x103)](_0x496d9c[_0x30618e(0x12e)])&&(process[_0x30618e(0x154)]['BROWSERSTACK_AUTOMATION']=!![]);_0x2a610f[_0x30618e(0x16f)](_0x496d9c[_0x30618e(0x12e)],![])&&(process[_0x30618e(0x154)]['BROWSERSTACK_AUTOMATION']=_0x2a610f['KXxck'],_0x1c059c=_0x1c059c['filter'](_0x4b0e85=>_0x4b0e85!==_0x30618e(0x168)));const _0x23a60f=_0x1c059c[_0x30618e(0xd3)](_0x2a610f['LWpXA']);(_0x2a610f['KAcae'](_0x23a60f,0x0)||_0x2a610f[_0x30618e(0x16f)](_0x496d9c[_0x30618e(0x157)],![]))&&(process[_0x30618e(0x154)][_0x30618e(0x109)]=_0x2a610f[_0x30618e(0x123)],_0x1c059c=_0x1c059c[_0x30618e(0x11f)](_0x16305e=>_0x16305e!==_0x30618e(0x180)));!helper[_0x30618e(0x155)](_0x5c1170[_0x30618e(0x156)])&&_0x5c1170[_0x30618e(0x156)][_0x30618e(0x17b)](_0x2a610f[_0x30618e(0xfc)])&&(process[_0x30618e(0x154)][_0x30618e(0xfa)]=_0x5c1170[_0x30618e(0x156)][_0x30618e(0x112)](_0x2a610f[_0x30618e(0xfc)])||!![]);_0x2a610f[_0x30618e(0x142)](_0x5c1170[_0x30618e(0x113)][_0x30618e(0x157)],null)&&!helper[_0x30618e(0x116)](process[_0x30618e(0x154)][_0x30618e(0x109)])&&(process[_0x30618e(0x154)][_0x30618e(0x109)]=process['env']['BROWSERSTACK_TEST_OBSERVABILITY']||_0x5c1170[_0x30618e(0x113)][_0x30618e(0x157)]);const _0x1c441a=!helper['isFalse'](process['env'][_0x30618e(0x109)]);_0x5c1170[_0x30618e(0x113)]['accessibilityOptions']&&(process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON['stringify'](_0x5c1170[_0x30618e(0x113)][_0x30618e(0xee)]));let _0x5dfeca=![];_0x5c1170['config']['accessibility']&&(_0x5dfeca=!![],process[_0x30618e(0x154)][_0x30618e(0x11e)]=_0x5c1170[_0x30618e(0x113)]['accessibility']);const _0x56fd50=_0x1c059c[_0x30618e(0xe7)](),_0x1ebb5c=await _0x2a610f[_0x30618e(0x140)](getUserPlaywrightConfig,_0x1bc44c,_0x1c059c);if(helper[_0x30618e(0x155)](_0x1ebb5c)){_0x2a610f[_0x30618e(0xfe)](spawnOriginalProcess,_0x56fd50);return;}const _0x19033e=_0x1ebb5c['path']?path[_0x30618e(0xe8)](_0x1ebb5c['path']):process['cwd']();process[_0x30618e(0x154)][_0x30618e(0x100)]=_0x19033e,await PerformanceTester['measureWrapper'](PerformanceEvents['SDK_POST_INITIALIZE'],async()=>{const _0x504b45=_0x30618e;!BrowserstackCLI[_0x504b45(0x107)]()[_0x504b45(0x16a)]()&&await TestHubHandler[_0x504b45(0x108)](FRAMEWORKS[_0x504b45(0x13c)],_0x5c1170),_0x1c441a&&_0x2f3da6[_0x504b45(0x121)](handleO11yRerun,_0x1c059c);})();if(!BrowserstackCLI[_0x30618e(0x107)]()[_0x30618e(0x16a)]()){let _0x2b31ce=_0x2a610f[_0x30618e(0x16f)](process[_0x30618e(0x154)][_0x30618e(0x11e)],_0x2a610f['YuaGK']);_0x2b31ce=_0x2b31ce||_0x2a610f[_0x30618e(0x144)](checkAccessibilityPlatformConfig,_0x5c1170['config']),process[_0x30618e(0x154)][_0x30618e(0x11e)]=_0x2b31ce,_0x2b31ce&&_0x2a610f[_0x30618e(0x144)](setAccessibilityCapabilities,_0x5c1170[_0x30618e(0x113)]);}const _0x713f1d=path['join'](_0x1ebb5c[_0x30618e(0x159)]?path[_0x30618e(0xe8)](_0x1ebb5c['path']):process[_0x30618e(0x17c)](),_0x2a610f[_0x30618e(0x176)]);fs[_0x30618e(0x118)](_0x713f1d,helper[_0x30618e(0x17f)](_0x5c1170[_0x30618e(0x113)])),process['env'][_0x30618e(0x127)]=_0x713f1d,helper[_0x30618e(0x179)]();let _0x93fa1c='';_0x2a610f[_0x30618e(0x16f)](helper[_0x30618e(0x162)](),constants[_0x30618e(0x175)][_0x30618e(0x16b)])?_0x93fa1c=_0x2a610f[_0x30618e(0x14a)]:_0x93fa1c=_0x2a610f[_0x30618e(0x120)];let _0x12bc57='';if(helper[_0x30618e(0xd5)](_0x1ebb5c['path'])){_0x12bc57=_0x30618e(0xf1);const _0x49f533=_0x93fa1c[_0x30618e(0x115)]('.');_0x49f533[_0x2a610f[_0x30618e(0x14d)](_0x49f533[_0x30618e(0x10b)],0x1)]='ts',_0x93fa1c=_0x49f533['join']('.'),logger[_0x30618e(0x170)](_0x2a610f[_0x30618e(0x104)](_0x2a610f['hXpAk'],_0x93fa1c));}else _0x12bc57=_0x30618e(0x119);const _0x4a9239=path[_0x30618e(0x138)](_0x1ebb5c[_0x30618e(0x159)]?path[_0x30618e(0xe8)](_0x1ebb5c[_0x30618e(0x159)]):process[_0x30618e(0x17c)](),_0x93fa1c);let _0x38d307=_0x1ebb5c['path']?_0x1ebb5c[_0x30618e(0x159)]:'';_0x38d307=_0x2a610f[_0x30618e(0x102)](_0x38d307[_0x30618e(0x10b)],0x0)?path[_0x30618e(0xe3)](_0x38d307):'',process['env'][_0x30618e(0x17d)]=_0x38d307;const _0x8ca1d6=helper[_0x30618e(0x13f)](_0x5c1170[_0x30618e(0x113)]);_0x8ca1d6&&(_0x12bc57=_0x2a610f[_0x30618e(0x143)]('process.env.GLOBAL_AGENT_HTTP_PROXY=\x22'+_0x8ca1d6+_0x30618e(0x114),_0x12bc57));helper['filterBrowserstackArgs']({},_0x1c059c),fs[_0x30618e(0x118)](_0x4a9239,_0x12bc57),PerformanceTester[_0x30618e(0x15e)](PerformanceEvents[_0x30618e(0x105)]);const _0x2b9b3c=_0x2a610f[_0x30618e(0xe1)](spawn,_0x2a610f[_0x30618e(0x167)],[_0x2a610f['VqGup'],_0x2a610f[_0x30618e(0x10a)],_0x2a610f['ussdt'],_0x4a9239,..._0x1c059c[_0x30618e(0x133)](0x2)],{'shell':_0x2a610f[_0x30618e(0x16f)](process[_0x30618e(0xe4)],_0x2a610f[_0x30618e(0x136)]),'stdio':_0x2a610f[_0x30618e(0x11c)],'cwd':process[_0x30618e(0x17c)](),'env':Object[_0x30618e(0x158)]({},process['env'],{'BROWSERSTACK_CONFIG_FILE_PATH':helper['getConfigPath'](_0x1bc44c),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x5c1170[_0x30618e(0x113)]['testContextOptions'][_0x30618e(0x129)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x5c1170[_0x30618e(0x113)]['testContextOptions']['skipSessionName'],'BROWSERSTACK_LOG_LEVEL':_0x5c1170[_0x30618e(0x113)][_0x30618e(0x128)]})}),_0x4f1530=()=>{const _0x109ab3=_0x30618e;try{const _0x2ab87a=path[_0x109ab3(0x138)](helper['homedir'](),_0x2f3da6[_0x109ab3(0xf3)],_0x2f3da6[_0x109ab3(0xea)]);if(fs[_0x109ab3(0xf5)](_0x2ab87a)){let _0x13d2e8=fs[_0x109ab3(0xe2)](_0x2ab87a);_0x13d2e8=JSON['parse'](_0x13d2e8),_0x5c1170[_0x109ab3(0xf7)]=_0x13d2e8,fs[_0x109ab3(0x13a)](_0x2ab87a);}}catch(_0x2c8037){logger[_0x109ab3(0x170)](_0x2f3da6[_0x109ab3(0x11d)](_0x2f3da6[_0x109ab3(0x151)],_0x2c8037));}};_0x2b9b3c['on'](_0x2a610f[_0x30618e(0x15a)],async _0x588c03=>{const _0xb0ee5e=_0x30618e;try{PerformanceTester['start'](PerformanceEvents[_0xb0ee5e(0x11a)]),_0x2a610f[_0xb0ee5e(0x17a)](_0x4f1530),await TestHubHandler['stop'](),await BrowserstackCLI[_0xb0ee5e(0x107)]()[_0xb0ee5e(0x12f)](),TestDetails[_0xb0ee5e(0xd0)](),_0x2a610f[_0xb0ee5e(0x14f)](printBuildLink),await utilities[_0xb0ee5e(0x13b)](_0x5c1170),process[_0xb0ee5e(0x174)]=_0x588c03,logger[_0xb0ee5e(0x170)](_0xb0ee5e(0x139)+_0x588c03),logger[_0xb0ee5e(0x12d)](_0xb0ee5e(0xd1)+_0x4a9239),fs[_0xb0ee5e(0x13a)](_0x4a9239);fs[_0xb0ee5e(0xf5)](_0x713f1d)&&(logger[_0xb0ee5e(0x170)](_0xb0ee5e(0xd1)+_0x713f1d),fs[_0xb0ee5e(0x13a)](_0x713f1d));const _0x234408=fs[_0xb0ee5e(0x16d)](path[_0xb0ee5e(0x138)](helper[_0xb0ee5e(0x149)](),_0x2a610f['NbAVg']))[_0xb0ee5e(0x11f)](_0x55cdf0=>_0x55cdf0[_0xb0ee5e(0x152)](_0xb0ee5e(0xdc)));_0x234408[_0xb0ee5e(0x12c)](_0x34b6b1=>{const _0x471ba9=_0xb0ee5e;fs[_0x471ba9(0x13a)](path['join'](helper['homedir'](),_0x2f3da6['FWOyH'],_0x34b6b1));});}catch(_0x480dd6){logger['debug'](_0x2a610f['IGuoA'](_0x2a610f[_0xb0ee5e(0x126)],_0x480dd6));}});})();}module[a38_0x91e7e8(0xff)]=run;function a38_0x5ce1(){const _0x5abf0e=['UUPnS','startsWith','7599757UAPikh','env','isUndefined','cliConfig','testObservability','assign','path','UJyHm','push','requirePWModule','Error\x20in\x20getting\x20funnel\x20data\x20results','end','map','EVENTS','zzhZm','getPackageType','close','44340ClLllR','OlvTM','wHMdi','xrqnj','--disable-browserstack-automation','false','isRunning','MODULE','resolvedConfigFile','readdirSync','--grep','OcFHs','debug','nestedKeyValue','ZtUDk','hoALu','exitCode','PACKAGE_TYPE','JDvDH','Error\x20in\x20deleting\x20playwright\x20results','child_process','clearTempPWConfig','aEJfj','has','cwd','USER_CONFIG_DETAILS_PATH','18NevVQt','serializeToYamlString','--disable-test-observability','fYZUp','../../helpers/utilities','SHcXc','shutdown','Deleting\x20','otzjm','indexOf','BROWSERSTACK_RERUN_TESTS','isTypescriptProject','UZSiY','bootstrap','../../helpers/test-observability/constants','148NeFBqp','../../helpers/accessibility-automation/helper','validateRerunTestList','trace_','initialize','8IkzeHn','../../helpers/helper','AEyyd','jZbFU','readFileSync','resolve','platform','../../helpers/performance/constants','playwright','concat','dirname','SDK_PRE_INITIALIZE','cBqWJ','browserstackSetupConfig.json','npx','9890538fkCsrg','accessibilityOptions','pw_result.json','playwright-browserstack-sdk.config.js','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','../../helpers/BrowserStackSetup','FWOyH','YTJdI','existsSync','BrowserStack\x20config\x20file\x20not\x20found.','errorMessage','1602ZYiCJT','QZhcS','BROWSERSTACK_AUTOMATION','findIndex','opzYd','true','bWzCy','exports','BROWSERSTACK_PW_CONFIG_DIR','2679890VtVYOA','KUsZA','isFalse','kWyPY','SDK_SETUP','./accessibility-helper','getInstance','launchBuild','BROWSERSTACK_TEST_OBSERVABILITY','oEVFC','length','--config','BROWSERSTACK_RERUN','DHACl','../v2/cliUtils','TFxYy','SKmQa','get','config','\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();','split','isTrue','2seeqeU','writeFileSync','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','SDK_CLEANUP','--config=','frtMR','nJusb','BROWSERSTACK_TEST_ACCESSIBILITY_YML','filter','HjPUi','vBXXo','.browserstack','KXxck','winstonLogger','measureWrapper','QWRfj','BROWSERSTACK_SETUP_CONFIG_PATH','logLevel','skipSessionStatus','../../helpers/testhub/testhubHandler','843473uXQTKP','forEach','info','browserstackAutomation','stop','inherit','../../helpers/performance/performance-tester','iujBS','slice','../v2/browserstackCLI','../../helpers/test-observability/utils','BZWEe','CUIPU','join','Playwright\x20process\x20exited\x20with\x20code\x20','unlinkSync','finalExecution','PLAYWRIGHT','win32','setFrameworkDetail','getProxyUrl','ZtvJJ','Updated\x20config\x20file\x20name\x20to\x20-\x20','eZROW','IGuoA','yMSdC','error','test','45237312PCdiUD','63117MEQgji','homedir','TkZkP','splice','../v2/TestInfo','ZQtXL','trim','bGtNA','NbAVg'];a38_0x5ce1=function(){return _0x5abf0e;};return a38_0x5ce1();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a39_0x3cf810=a39_0x324b;function a39_0x324b(_0x1a1424,_0x4f0c78){const _0x1434b7=a39_0x1434();return a39_0x324b=function(_0x324be6,_0x477661){_0x324be6=_0x324be6-0xea;let _0x2f5f63=_0x1434b7[_0x324be6];return _0x2f5f63;},a39_0x324b(_0x1a1424,_0x4f0c78);}(function(_0x189e17,_0x4b109c){const _0x270518=a39_0x324b,_0x4e1636=_0x189e17();while(!![]){try{const _0x5603e7=-parseInt(_0x270518(0x104))/0x1+parseInt(_0x270518(0x107))/0x2+parseInt(_0x270518(0xf9))/0x3*(parseInt(_0x270518(0x103))/0x4)+-parseInt(_0x270518(0xef))/0x5+parseInt(_0x270518(0x100))/0x6+parseInt(_0x270518(0x10a))/0x7*(parseInt(_0x270518(0xf4))/0x8)+parseInt(_0x270518(0xec))/0x9;if(_0x5603e7===_0x4b109c)break;else _0x4e1636['push'](_0x4e1636['shift']());}catch(_0x4a3517){_0x4e1636['push'](_0x4e1636['shift']());}}}(a39_0x1434,0xe6823));const util=require(a39_0x3cf810(0xf2)),child_process=require('child_process'),{FRAMEWORKS}=require(a39_0x3cf810(0xf7)),{getFrameworkVersion,debug}=require('../../helpers/test-observability/utils'),helper=require(a39_0x3cf810(0x101)),{getLoadUtilsPath,getForkProcessPath}=require(a39_0x3cf810(0xed)),{mockIsWorkerRedundant}=require(a39_0x3cf810(0xea)),logger=require(a39_0x3cf810(0xeb))['winstonLogger'];function a39_0x1434(){const _0x5443b0=['../../helpers/logger','1865043qkVLRB','./reporter/pwUtils','TbWlt','6765600vAnSdU','function','1.33.0','util','apply','7425480idKqvF','compareVersions','debug','../../helpers/test-observability/constants','NuZzm','3dUBlBw','TLbKn','DtJnY','./mock-process.js','AnKUV','resolve','BZbqV','2881992JsGUAz','../../helpers/helper','error','2984916WQnQPn','1857090BEtpep','TRyUa','Running\x20existing\x20global\x20setup','1728430JRFzBs','VtsXe','\x20is\x20not\x20found','14sZNIrz','format','fork','requirePWModule','includes','exports','Path\x20','toString','Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20','config','isHandlePWErrorSet','VbypR','Not\x20able\x20to\x20import\x20globalSetup','MKAje','./patches'];a39_0x1434=function(){return _0x5443b0;};return a39_0x1434();}module[a39_0x3cf810(0x10f)]=async function(_0x2b613b){const _0xa4bdf0=a39_0x3cf810,_0x256a67={'BZbqV':function(_0x2ac632,_0xfcc6){return _0x2ac632(_0xfcc6);},'VbypR':function(_0x14122f){return _0x14122f();},'TbWlt':_0xa4bdf0(0xfc),'TLbKn':function(_0x6dfa1b){return _0x6dfa1b();},'MKAje':function(_0x5eb6bb,_0x19483a){return _0x5eb6bb(_0x19483a);},'VtsXe':_0xa4bdf0(0x106),'YqhlM':function(_0x5dcda1){return _0x5dcda1();},'arqnl':function(_0x3da05f,_0xa8a101){return _0x3da05f>=_0xa8a101;},'TRyUa':_0xa4bdf0(0xf1),'NuZzm':function(_0x598269,_0x4434e3,_0x26ff93){return _0x598269(_0x4434e3,_0x26ff93);},'Ukveo':function(_0x4a3c72,_0x196447){return _0x4a3c72!==_0x196447;},'DtJnY':_0xa4bdf0(0xf0),'AnKUV':_0xa4bdf0(0x116)},_0x430f60=child_process[_0xa4bdf0(0x10c)];if(helper[_0xa4bdf0(0x114)]())try{_0x256a67['VbypR'](mockIsWorkerRedundant);}catch(_0x2f4955){logger[_0xa4bdf0(0xf6)](_0xa4bdf0(0x112)+util[_0xa4bdf0(0x10b)](_0x2f4955));}child_process[_0xa4bdf0(0x10c)]=function(){const _0x4d3273=_0xa4bdf0;return _0x256a67[_0x4d3273(0xff)](debug,'Call\x20to\x20child\x20fork\x20with\x20args\x20'+arguments[0x0]),arguments[0x0][_0x4d3273(0x10e)](_0x256a67[_0x4d3273(0x115)](getForkProcessPath))?arguments[0x0]=require[_0x4d3273(0xfe)](_0x256a67[_0x4d3273(0xee)]):logger[_0x4d3273(0x102)](_0x4d3273(0x110)+_0x256a67[_0x4d3273(0xfa)](getForkProcessPath)+_0x4d3273(0x109)),_0x430f60[_0x4d3273(0xf3)](null,arguments);};if(process['env']['BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP']){_0x256a67[_0xa4bdf0(0x117)](debug,_0x256a67[_0xa4bdf0(0x108)]);try{const {loadGlobalHook:_0x3bb1c9}=helper[_0xa4bdf0(0x10d)][_0xa4bdf0(0xf3)](null,_0x256a67['YqhlM'](getLoadUtilsPath)),_0x35b634=_0x256a67[_0xa4bdf0(0xff)](getFrameworkVersion,FRAMEWORKS['PLAYWRIGHT']);let _0xbb7577=_0x2b613b;if(_0x256a67['arqnl'](helper[_0xa4bdf0(0xf5)](_0x35b634,_0x256a67[_0xa4bdf0(0x105)]),0x0)){const _0x16dd55={};_0x16dd55[_0xa4bdf0(0x113)]=_0x2b613b,_0xbb7577=_0x16dd55;}const _0x91db0f=await _0x256a67[_0xa4bdf0(0xf8)](_0x3bb1c9,_0xbb7577,process['env']['BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP']);if(_0x256a67['Ukveo'](typeof _0x91db0f,_0x256a67[_0xa4bdf0(0xfb)]))throw new Error(_0x256a67[_0xa4bdf0(0xfd)]);return _0x91db0f['apply'](null,arguments);}catch(_0x213697){_0x256a67[_0xa4bdf0(0x117)](debug,'Error\x20in\x20calling\x20existing\x20global\x20setup:\x20'+_0x213697[_0xa4bdf0(0x111)]());}}};
|