browserstack-node-sdk 1.40.5 → 1.40.7
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/browserstack.pw.yml.sample +1 -0
- package/browserstack.yml.sample +1 -0
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a35_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
|
+
const a35_0x3d059a=a35_0x5804;(function(_0x206c73,_0x114e5a){const _0x10b74f=a35_0x5804,_0x568f16=_0x206c73();while(!![]){try{const _0x4fb521=-parseInt(_0x10b74f(0x149))/0x1+parseInt(_0x10b74f(0x13f))/0x2+parseInt(_0x10b74f(0x199))/0x3+-parseInt(_0x10b74f(0x1a2))/0x4+parseInt(_0x10b74f(0x1b8))/0x5*(parseInt(_0x10b74f(0x171))/0x6)+parseInt(_0x10b74f(0x1bc))/0x7*(-parseInt(_0x10b74f(0x1a4))/0x8)+-parseInt(_0x10b74f(0x136))/0x9;if(_0x4fb521===_0x114e5a)break;else _0x568f16['push'](_0x568f16['shift']());}catch(_0x5cdf64){_0x568f16['push'](_0x568f16['shift']());}}}(a35_0x12b6,0x1f08c));const util=require(a35_0x3d059a(0x174)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a35_0x3d059a(0x1a3)),{TEST_FRAMEWORK_HOOK_TIMEOUT}=require(a35_0x3d059a(0x187)),{percyAutoCapture}=require(a35_0x3d059a(0x170)),{sendPlatformDetails}=require(a35_0x3d059a(0x182)),{isBrowserstackInfra,markSessionStatus,nestedKeyValue}=require(a35_0x3d059a(0x154)),PerformanceTester=require(a35_0x3d059a(0x169)),{AUTOMATE_EVENTS:PerformanceAutEvents,O11y_EVENTS:PerformanceO11yEvents,A11Y_EVENTS:PerformanceA11yEvents,EVENTS:PerformanceSdkEvents}=require(a35_0x3d059a(0x183)),scripts=require(a35_0x3d059a(0x14d)),globals=require('../../helpers/globals'),logger=require('../../helpers/logger')[a35_0x3d059a(0x19c)],{shouldProcessEventForTesthub}=require(a35_0x3d059a(0x17b)),testHubConstants=require(a35_0x3d059a(0x179));function a35_0x5804(_0x46e94c,_0x8cac88){const _0x12b612=a35_0x12b6();return a35_0x5804=function(_0x5804bf,_0x360860){_0x5804bf=_0x5804bf-0x127;let _0x37ef6a=_0x12b612[_0x5804bf];return _0x37ef6a;},a35_0x5804(_0x46e94c,_0x8cac88);}function a35_0x12b6(){const _0x597e37=['testcase','command','PERFORM_SCAN','executeAsyncScript','index','TQWxK','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','../../helpers/performance/performance-tester','nxkVU','qqDfI','BROWSERSTACK_TESTHUB_JWT','PreyB','__platformCaps','dlcVl','../../helpers/percy/utils','89574eBlaQK','\x20-\x20','join','util','pqJYG','JzkqX','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','isArray','../../helpers/testhub/constants','now','../../helpers/testhub/utils','ENV_VAR','driverCleanup','JpmOL','ObservabilitySync:','CBYUC','start','./test-observability/mochaUtils','../../helpers/performance/constants','CBVBc','DsvUI','finally','../utils/constants','zWrFF','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','lbVRJ','bRsHN','JYtfq','accessibilityScanStarted','getGlobal','performScan','testAnalyticsId','app','LxGZx','sessionNameSet__','jgoHD','percy','sessionName','lzfrD','message','708699HbKifD','Passed','JCGhY','winstonLogger','\x22}}','state','push','mochaHooks','LRGAH','666712LfrgMa','../../helpers/accessibility-automation/helper','32GvehLy','afterAll','SDK_HOOK','mBYxi','passed','shouldScanTestForAccessibility','SAVE_RESULTS','qyEHX','__sessionFailed','end','lVifo','isAccessibilityPlatform','nctqF','JinJr','YofLS','ftALy','wuRZY','VTYxL','phIBE','setGlobal','85zgwQAX','FWeCO','bWYav','shift','139027fdtmIG','AYrfK','tuaKV','owWov','getCurrentUrl','__drivers','__error_messages__','format','sgibQ','.\x20Error\x20:','stringify','measureWrapper','thJwtToken','erlEm','error','lRGVV','SESSION_NAME','currentTest','lenbh','session_','PplyU','\x20|\x20','rdPRC','WOUer','HKrQa','OveUZ','beforeAll','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','AoLLQ','vQPQc','capabilities','err','omueO','dTCZs','afterTest','GFeoD','browserstackSessionName','LATGS','2282877HoArZg','TpUMg','QHxiR','Mocha','SpYHD','browserstackTestName','Automate\x20test\x20case\x20execution\x20has\x20started.','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','boxeB','361604dwEJhY','failed','uQsWq','debug','tJqSn','saveTestResults','IlqZZ','then','titlePath','Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20','43937zTgxYK','riSox','GBHLK','nLxqW','../../helpers/accessibility-automation/scripts','protocol','SYNC','info','zhrJK','IzAUU','FWaby','../../helpers/helper','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','BROWSERSTACK_TESTHUB_UUID','BSIrW','VGgaV','length','Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20','MGmQK','thTestRunUuid','TYlGB','NRUgu','quitCount_','env','CxOGX'];a35_0x12b6=function(){return _0x597e37;};return a35_0x12b6();}exports[a35_0x3d059a(0x1a0)]={'beforeAll'(){const _0x20d791=a35_0x3d059a,_0x284ff0={'wuRZY':function(_0x1fd3d1,_0x4a6281,_0x1e84e7,_0x1cd1f2){return _0x1fd3d1(_0x4a6281,_0x1e84e7,_0x1cd1f2);},'HKrQa':_0x20d791(0x140),'TQWxK':_0x20d791(0x1d1),'lzfrD':function(_0x432304,_0x4f7c76,_0x58bc68){return _0x432304(_0x4f7c76,_0x58bc68);},'BSIrW':'passed','pqJYG':function(_0x57622e){return _0x57622e();},'dlkDa':function(_0x3b8284,_0x3b9c83,_0xdedff7){return _0x3b8284(_0x3b9c83,_0xdedff7);},'GFeoD':function(_0x1bc65f,_0x5f36ad,_0x58bbfe){return _0x1bc65f(_0x5f36ad,_0x58bbfe);},'lVifo':_0x20d791(0x166),'CBYUC':_0x20d791(0x12a)};PerformanceTester['startMonitoring']();const _0x2b55f8='browserstack internal helper hook';PerformanceTester[_0x20d791(0x1c7)](PerformanceSdkEvents['SDK_HOOK'],()=>{const _0x53024c=_0x20d791;global[_0x53024c(0x1c2)]=[],global[_0x53024c(0x1ac)]=![],global[_0x53024c(0x17d)]=async()=>{const _0x398ae0=_0x53024c;let _0x5d9257=![];try{await global[_0x398ae0(0x1c1)][0x0][_0x398ae0(0x1cf)],_0x5d9257=!![],global[_0x398ae0(0x1ac)]?await _0x284ff0[_0x398ae0(0x1b4)](markSessionStatus,global[_0x398ae0(0x1c1)][0x0],_0x284ff0[_0x398ae0(0x128)],global[_0x398ae0(0x1c2)][_0x398ae0(0x173)](_0x284ff0[_0x398ae0(0x167)])):await _0x284ff0[_0x398ae0(0x197)](markSessionStatus,global[_0x398ae0(0x1c1)][0x0],_0x284ff0[_0x398ae0(0x157)]);}catch(_0x2c85b6){logger[_0x398ae0(0x142)]('Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20'+_0x2c85b6);}global[_0x398ae0(0x1c2)]=[],global[_0x398ae0(0x1ac)]=![];if(_0x5d9257)try{try{_0x284ff0[_0x398ae0(0x175)](shouldProcessEventForTesthub)&&(global[_0x398ae0(0x1c1)][0x0]&&await _0x284ff0['dlkDa'](sendPlatformDetails,global['__drivers'][0x0],this[_0x398ae0(0x1cd)]?this[_0x398ae0(0x1cd)][_0x398ae0(0x190)]:null));}catch(_0xaf5927){logger[_0x398ae0(0x142)](_0x398ae0(0x148)+_0xaf5927);}await global[_0x398ae0(0x1c1)][0x0]['initQuit']();}catch(_0x228d3c){logger[_0x398ae0(0x142)](_0x398ae0(0x13d)+_0x228d3c);}};},{'platform':_0x284ff0[_0x20d791(0x133)](nestedKeyValue,global[_0x20d791(0x16e)],[_0x284ff0[_0x20d791(0x1ae)]]),'hookType':_0x284ff0[_0x20d791(0x180)]})();},'beforeEach'(_0xbeffba){const _0x4bb19d=a35_0x3d059a,_0x423ab0={'AoLLQ':function(_0x3a928d,_0x2260c0){return _0x3a928d>_0x2260c0;},'omueO':_0x4bb19d(0x172),'OlsSn':function(_0x33789e,_0x32bcbd,_0x460619){return _0x33789e(_0x32bcbd,_0x460619);},'ftALy':'bstackA11yShouldScan','nctqF':function(_0x238170){return _0x238170();},'owWov':function(_0x28c2a9,_0x40d88a){return _0x28c2a9>_0x40d88a;},'SpYHD':_0x4bb19d(0x1af),'ifQWH':function(_0x53dfe1,_0x4628d3){return _0x53dfe1===_0x4628d3;},'suMgW':'http:','cPcHY':'https:','PeDrn':_0x4bb19d(0x12b),'JpmOL':_0x4bb19d(0x13c),'YofLS':function(_0x4c6da4){return _0x4c6da4();},'JinJr':function(_0x4b24c4){return _0x4b24c4();},'SdWPc':_0x4bb19d(0x13b),'qyEHX':function(_0x262c20,_0x300822,_0xdc3ff){return _0x262c20(_0x300822,_0xdc3ff);},'QHxiR':_0x4bb19d(0x166),'bCbPk':'beforeEach'};globals[_0x4bb19d(0x1b7)](_0x423ab0['SdWPc'],this[_0x4bb19d(0x1cd)][_0x4bb19d(0x147)]()[_0x4bb19d(0x173)](_0x423ab0[_0x4bb19d(0x130)])),PerformanceTester['measureWrapper'](PerformanceSdkEvents[_0x4bb19d(0x1a6)],()=>{const _0x3a986e=_0x4bb19d,_0x398a6d={'PreyB':function(_0x46e47d,_0x2d61e8){return _0x423ab0['AoLLQ'](_0x46e47d,_0x2d61e8);},'rdPRC':function(_0x409a45,_0x2929c0){const _0x1712ab=a35_0x5804;return _0x423ab0[_0x1712ab(0x12c)](_0x409a45,_0x2929c0);},'MGmQK':_0x423ab0[_0x3a986e(0x130)],'LRGAH':function(_0x4f6397,_0x2094f9,_0x27ab5f){return _0x423ab0['OlsSn'](_0x4f6397,_0x2094f9,_0x27ab5f);},'nxkVU':_0x423ab0[_0x3a986e(0x1b3)],'erlEm':function(_0x2af4aa){const _0x5eddc8=_0x3a986e;return _0x423ab0[_0x5eddc8(0x1b0)](_0x2af4aa);},'phIBE':function(_0x2535b8,_0x276348){const _0x224d0c=_0x3a986e;return _0x423ab0[_0x224d0c(0x1bf)](_0x2535b8,_0x276348);},'sgibQ':_0x423ab0[_0x3a986e(0x13a)],'nLxqW':function(_0x50625d,_0x3157aa){return _0x423ab0['ifQWH'](_0x50625d,_0x3157aa);},'boxeB':_0x423ab0['suMgW'],'vQPQc':function(_0x3c3a2e,_0x590e4e){return _0x423ab0['ifQWH'](_0x3c3a2e,_0x590e4e);},'qqDfI':_0x423ab0['cPcHY'],'JCGhY':_0x423ab0['PeDrn'],'IlqZZ':_0x423ab0[_0x3a986e(0x17e)],'lbVRJ':function(_0x50bf6d){const _0x3f32b6=_0x3a986e;return _0x423ab0[_0x3f32b6(0x1b2)](_0x50bf6d);},'WOUer':function(_0x4e1cd0){const _0x22fabe=_0x3a986e;return _0x423ab0[_0x22fabe(0x1b1)](_0x4e1cd0);}},_0x97feda='browserstack internal helper hook';new Promise(async _0x47c6d9=>{const _0xcc2c76=_0x3a986e;let _0x586a35=!![];try{_0x398a6d[_0xcc2c76(0x16d)](global[_0xcc2c76(0x1c1)]['length'],0x1)&&(await global[_0xcc2c76(0x17d)](),global[_0xcc2c76(0x1c1)][_0xcc2c76(0x1bb)]()),_0x398a6d[_0xcc2c76(0x1d2)](global[_0xcc2c76(0x1c1)][0x0][_0xcc2c76(0x15f)],0x0)&&(_0x586a35=![],await global[_0xcc2c76(0x17d)]());}catch(_0xb72ca8){logger[_0xcc2c76(0x142)](_0xcc2c76(0x13d)+_0xb72ca8);}try{Array[_0xcc2c76(0x178)](global[_0xcc2c76(0x1c1)])&&global['__drivers'][0x0]&&(global[_0xcc2c76(0x1c1)][0x0]['browserstackSessionName']=this[_0xcc2c76(0x1cd)][_0xcc2c76(0x147)]()[_0xcc2c76(0x173)](_0x398a6d[_0xcc2c76(0x15b)])),global[_0xcc2c76(0x134)]=this[_0xcc2c76(0x1cd)][_0xcc2c76(0x147)]()[_0xcc2c76(0x173)](_0x398a6d[_0xcc2c76(0x15b)]);}catch(_0x5de319){logger[_0xcc2c76(0x142)]('Failed\x20to\x20store\x20session\x20name:\x20'+_0x5de319);}this[_0xcc2c76(0x1cd)][_0xcc2c76(0x1a9)]=_0x398a6d[_0xcc2c76(0x1a1)](shouldScanTestForAccessibility,this[_0xcc2c76(0x1cd)][_0xcc2c76(0x147)](),!![]),globals[_0xcc2c76(0x1b7)](_0x398a6d[_0xcc2c76(0x16a)],this[_0xcc2c76(0x1cd)][_0xcc2c76(0x1a9)]),this['currentTest']['accessibilityScanStarted']=!![];if(_0x398a6d[_0xcc2c76(0x1c9)](isAccessibilityAutomationSession)&&_0x586a35&&Array[_0xcc2c76(0x178)](global['__drivers'])&&_0x398a6d[_0xcc2c76(0x1b6)](global['__drivers'][_0xcc2c76(0x159)],0x0)&&globals[_0xcc2c76(0x18e)](_0x398a6d[_0xcc2c76(0x1c4)]))try{const _0x4aff8b=await global[_0xcc2c76(0x1c1)][0x0][_0xcc2c76(0x1cf)];if(_0x4aff8b){let _0x911219=!![];const _0x43c284=await global[_0xcc2c76(0x1c1)][0x0][_0xcc2c76(0x1c0)]();let _0x12f81b;try{_0x12f81b=new URL(_0x43c284);}catch(_0x58a247){_0x911219=![];}_0x911219=_0x398a6d[_0xcc2c76(0x14c)](_0x12f81b[_0xcc2c76(0x14e)],_0x398a6d[_0xcc2c76(0x13e)])||_0x398a6d[_0xcc2c76(0x12d)](_0x12f81b[_0xcc2c76(0x14e)],_0x398a6d[_0xcc2c76(0x16b)]),_0x911219&&(this[_0xcc2c76(0x1cd)][_0xcc2c76(0x1a9)]&&logger[_0xcc2c76(0x150)](_0x398a6d[_0xcc2c76(0x19b)])),this[_0xcc2c76(0x1cd)]['accessibilityScanStarted']=this['currentTest'][_0xcc2c76(0x1a9)],this['currentTest'][_0xcc2c76(0x1a9)]&&logger[_0xcc2c76(0x150)](_0x398a6d[_0xcc2c76(0x145)]);}}catch(_0x2fd36a){logger['error'](_0xcc2c76(0x177)+util['format'](_0x2fd36a));}_0x398a6d[_0xcc2c76(0x18a)](_0x47c6d9);})[_0x3a986e(0x146)](()=>{const _0x3692fd=_0x3a986e;_0x398a6d[_0x3692fd(0x127)](_0xbeffba);});},{'platform':_0x423ab0[_0x4bb19d(0x1ab)](nestedKeyValue,global[_0x4bb19d(0x16e)],[_0x423ab0[_0x4bb19d(0x138)]]),'hookType':_0x423ab0['bCbPk']})();},'afterEach'(_0x427e97){const _0x38e73a=a35_0x3d059a,_0x37cbdf={'dAbvB':_0x38e73a(0x172),'zhrJK':function(_0x53faa9,_0x3317cd){return _0x53faa9>_0x3317cd;},'LATGS':function(_0x30ae04,_0x36a976){return _0x30ae04===_0x36a976;},'IzAUU':_0x38e73a(0x162),'CBVBc':function(_0x5e22b6,_0x36f309){return _0x5e22b6>_0x36f309;},'bqSBE':'appium:app','bRsHN':function(_0x2a461b,_0x423a0a,_0x229574,_0x512aa0){return _0x2a461b(_0x423a0a,_0x229574,_0x512aa0);},'CxOGX':_0x38e73a(0x1af),'VTYxL':'bstackA11yShouldScan','TpUMg':'Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','tuaKV':'Performing\x20scan\x20before\x20saving\x20results','dlcVl':_0x38e73a(0x132),'riSox':_0x38e73a(0x155),'GWGcR':function(_0x244e77){return _0x244e77();},'rOiaW':function(_0x240bf5,_0x3c1ac6,_0x49bc3d){return _0x240bf5(_0x3c1ac6,_0x49bc3d);},'zWrFF':function(_0x5352a4){return _0x5352a4();},'OveUZ':function(_0x2106ff,_0x27e60b,_0x2e83e5){return _0x2106ff(_0x27e60b,_0x2e83e5);},'SaJNA':_0x38e73a(0x142),'bWYav':function(_0x3fdef7){return _0x3fdef7();},'uuXNO':function(_0x28ea00){return _0x28ea00();},'sJiKC':function(_0x1efeff,_0x3644a0){return _0x1efeff!==_0x3644a0;},'uQsWq':_0x38e73a(0x1a8),'PplyU':function(_0x4a9aca,_0x5e5f6f){return _0x4a9aca+_0x5e5f6f;},'DsvUI':'Failed:\x20','TYlGB':'error','LxGZx':function(_0x1ec986,_0x32cfda,_0x3313c6){return _0x1ec986(_0x32cfda,_0x3313c6);},'jBIxg':_0x38e73a(0x19a),'xSddM':_0x38e73a(0x150),'NRUgu':_0x38e73a(0x139),'PywSe':function(_0x5e6ffd,_0x19b3a0,_0xc5029){return _0x5e6ffd(_0x19b3a0,_0xc5029);},'jgoHD':'index','JYtfq':'afterEach'},_0x5c16f7='browserstack internal helper hook';this['timeout'](TEST_FRAMEWORK_HOOK_TIMEOUT[_0x37cbdf[_0x38e73a(0x15e)]]),global[_0x38e73a(0x196)]=this[_0x38e73a(0x1cd)][_0x38e73a(0x147)]()[_0x38e73a(0x173)](_0x37cbdf['dAbvB']),PerformanceTester[_0x38e73a(0x1c7)](PerformanceSdkEvents['SDK_HOOK'],()=>{const _0x3ca8ce=_0x38e73a,_0x464b99={'lenbh':function(_0xd6c975,_0x20a929){return _0x37cbdf['sJiKC'](_0xd6c975,_0x20a929);},'tJqSn':_0x37cbdf[_0x3ca8ce(0x141)],'mBYxi':function(_0x4d62d9,_0x454de5,_0x48c5d4){return _0x37cbdf['rOiaW'](_0x4d62d9,_0x454de5,_0x48c5d4);},'JzkqX':function(_0x4f9565,_0x2fc727){const _0x110103=_0x3ca8ce;return _0x37cbdf[_0x110103(0x1d0)](_0x4f9565,_0x2fc727);},'FWeCO':_0x37cbdf[_0x3ca8ce(0x185)],'AYrfK':_0x37cbdf[_0x3ca8ce(0x15d)],'cYNRK':function(_0x185847,_0x210f14,_0x273b2e){const _0x272081=_0x3ca8ce;return _0x37cbdf[_0x272081(0x192)](_0x185847,_0x210f14,_0x273b2e);},'ScYxa':_0x37cbdf['jBIxg'],'FWaby':_0x37cbdf['xSddM']},_0x1eea87=async(_0x5bf680,_0xa0af10)=>{const _0x286939=_0x3ca8ce;await global[_0x286939(0x1c1)][0x0]['executeScript'](_0x286939(0x168)+_0x5bf680+',\x22level\x22:\x20\x22'+_0xa0af10+_0x286939(0x19d));};new Promise(async _0x28c2da=>{const _0x520a8e=_0x3ca8ce,_0x51fd41={};_0x51fd41['VGgaV']=_0x37cbdf['dAbvB'];const _0xddfbb4=_0x51fd41;try{_0x37cbdf[_0x520a8e(0x151)](global[_0x520a8e(0x1c1)][_0x520a8e(0x159)],0x1)&&(await global[_0x520a8e(0x17d)](),global[_0x520a8e(0x1c1)][_0x520a8e(0x1bb)](),global['__error_messages__']=[],global[_0x520a8e(0x1ac)]=![]);try{if(global[_0x520a8e(0x195)]&&_0x37cbdf[_0x520a8e(0x135)](global['percyCaptureMode'],_0x37cbdf[_0x520a8e(0x152)])&&global[_0x520a8e(0x1c1)][0x0]){const _0x5762d6=_0x37cbdf[_0x520a8e(0x184)](global[_0x520a8e(0x12e)]['length'],0x0)?!!global[_0x520a8e(0x12e)][0x0][_0x520a8e(0x191)]||!!global[_0x520a8e(0x12e)][0x0][_0x37cbdf['bqSBE']]:![],_0x62caf2={};_0x62caf2[_0x520a8e(0x191)]=_0x5762d6,await _0x37cbdf[_0x520a8e(0x18b)](percyAutoCapture,global[_0x520a8e(0x1c1)][0x0],_0x37cbdf['IzAUU'],_0x62caf2);}}catch(_0x420594){logger['debug'](_0x520a8e(0x15a)+_0x420594);}!global['__skipSessionName']&&(await PerformanceTester[_0x520a8e(0x1c7)](PerformanceAutEvents[_0x520a8e(0x1cc)],async()=>{const _0x536d2e=_0x520a8e;await global['__drivers'][0x0]['executeScript']('browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20'+JSON[_0x536d2e(0x1c6)](this[_0x536d2e(0x1cd)][_0x536d2e(0x147)]()[_0x536d2e(0x173)](_0xddfbb4[_0x536d2e(0x158)]))+'}}');})(),global['__drivers'][0x0][_0x520a8e(0x193)]=!![]),await PerformanceTester[_0x520a8e(0x1c7)](PerformanceAutEvents['SESSION_STATUS'],async()=>{const _0x590998=_0x520a8e,_0x2d0867=_0x464b99[_0x590998(0x1ce)](this['currentTest'][_0x590998(0x19e)],_0x464b99[_0x590998(0x143)]);_0x2d0867?(global[_0x590998(0x1ac)]=!![],global[_0x590998(0x1c2)][_0x590998(0x19f)](this[_0x590998(0x1cd)][_0x590998(0x12f)]['message']),await _0x464b99[_0x590998(0x1a7)](_0x1eea87,JSON[_0x590998(0x1c6)](_0x464b99[_0x590998(0x176)](_0x464b99[_0x590998(0x1b9)],this[_0x590998(0x1cd)][_0x590998(0x12f)][_0x590998(0x198)])),_0x464b99[_0x590998(0x1bd)])):await _0x464b99['cYNRK'](_0x1eea87,JSON['stringify'](_0x464b99['ScYxa']),_0x464b99[_0x590998(0x153)]);})();}catch(_0x225710){logger[_0x520a8e(0x142)]('Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20'+_0x225710);}try{if(this[_0x520a8e(0x1cd)][_0x520a8e(0x18d)]&&globals[_0x520a8e(0x18e)](_0x37cbdf[_0x520a8e(0x161)])&&globals[_0x520a8e(0x18e)](_0x37cbdf[_0x520a8e(0x1b5)])){logger[_0x520a8e(0x150)](_0x37cbdf[_0x520a8e(0x137)]);const _0x44bc34={};_0x44bc34[_0x520a8e(0x15c)]=this['currentTest'][_0x520a8e(0x190)],_0x44bc34['thBuildUuid']=process[_0x520a8e(0x160)][testHubConstants[_0x520a8e(0x17c)][_0x520a8e(0x156)]],_0x44bc34[_0x520a8e(0x1c8)]=process['env'][testHubConstants['ENV_VAR'][_0x520a8e(0x16c)]];const _0x1134f7=_0x44bc34;logger[_0x520a8e(0x142)]('Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20'+JSON[_0x520a8e(0x1c6)](_0x1134f7)),logger['debug'](_0x37cbdf[_0x520a8e(0x1be)]);const _0x2a29e8={};_0x2a29e8[_0x520a8e(0x163)]=_0x37cbdf[_0x520a8e(0x16f)],await PerformanceTester['measureWrapper'](PerformanceA11yEvents[_0x520a8e(0x164)],async()=>{const _0x2ddaf4=_0x520a8e;logger[_0x2ddaf4(0x142)](util[_0x2ddaf4(0x1c3)](await global['__drivers'][0x0][_0x2ddaf4(0x165)](scripts[_0x2ddaf4(0x18f)],{'method':global[_0x2ddaf4(0x134)]})));},_0x2a29e8)(),await PerformanceTester[_0x520a8e(0x1c7)](PerformanceA11yEvents[_0x520a8e(0x1aa)],async()=>{const _0x3acf32=_0x520a8e;await global[_0x3acf32(0x1c1)][0x0][_0x3acf32(0x165)](scripts[_0x3acf32(0x144)],_0x1134f7);})(),logger[_0x520a8e(0x150)](_0x37cbdf[_0x520a8e(0x14a)]);}}catch(_0x1e2286){logger[_0x520a8e(0x1ca)](_0x520a8e(0x189)+this['currentTest'][_0x520a8e(0x147)]()+_0x520a8e(0x1c5),_0x1e2286);}try{try{if(_0x37cbdf['GWGcR'](shouldProcessEventForTesthub)){global['__drivers'][0x0]&&await _0x37cbdf['rOiaW'](sendPlatformDetails,global[_0x520a8e(0x1c1)][0x0],this[_0x520a8e(0x1cd)]?this[_0x520a8e(0x1cd)][_0x520a8e(0x190)]:null);if(_0x37cbdf[_0x520a8e(0x188)](isBrowserstackInfra)){PerformanceTester[_0x520a8e(0x181)](PerformanceO11yEvents['SYNC']);const _0x1310ae=_0x520a8e(0x17f)+Date[_0x520a8e(0x17a)]();await _0x37cbdf[_0x520a8e(0x129)](_0x1eea87,JSON['stringify'](_0x1310ae),_0x37cbdf['SaJNA']),PerformanceTester[_0x520a8e(0x1ad)](PerformanceO11yEvents[_0x520a8e(0x14f)]);}}}catch(_0xa2ca06){logger[_0x520a8e(0x142)]('Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20'+_0xa2ca06),PerformanceTester['end'](PerformanceO11yEvents[_0x520a8e(0x14f)],![],_0xa2ca06);}_0x37cbdf[_0x520a8e(0x184)](global[_0x520a8e(0x1c1)][0x0][_0x520a8e(0x15f)],0x0)&&await global[_0x520a8e(0x17d)]();}catch(_0x2f6e34){logger['debug']('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0x2f6e34);}_0x37cbdf[_0x520a8e(0x1ba)](_0x28c2da);})[_0x3ca8ce(0x146)](()=>{_0x37cbdf['uuXNO'](_0x427e97);});},{'platform':_0x37cbdf['PywSe'](nestedKeyValue,global['__platformCaps'],[_0x37cbdf[_0x38e73a(0x194)]]),'hookType':_0x37cbdf[_0x38e73a(0x18c)]})();},'afterAll'(_0x1fccb0){const _0x408ac4=a35_0x3d059a,_0x4002f2={'GBHLK':function(_0x4ffc74){return _0x4ffc74();},'BqBsf':'Mocha','cZcEQ':function(_0x5f0cd3,_0x4e1c94,_0x469199){return _0x5f0cd3(_0x4e1c94,_0x469199);},'lRGVV':_0x408ac4(0x166),'dTCZs':_0x408ac4(0x1a5)},_0x48b6d7='browserstack internal helper hook';this['timeout'](TEST_FRAMEWORK_HOOK_TIMEOUT[_0x4002f2['BqBsf']]),PerformanceTester[_0x408ac4(0x1c7)](PerformanceSdkEvents['SDK_HOOK'],()=>{const _0x25da3f=_0x408ac4,_0x1ee48d={'HVUQl':function(_0x400290){const _0x3f661b=a35_0x5804;return _0x4002f2[_0x3f661b(0x14b)](_0x400290);}};new Promise(async _0x345f25=>{const _0x2d6d10=a35_0x5804;await global[_0x2d6d10(0x17d)](),_0x4002f2[_0x2d6d10(0x14b)](_0x345f25);})[_0x25da3f(0x146)]()[_0x25da3f(0x186)](()=>{_0x1ee48d['HVUQl'](_0x1fccb0);});},{'platform':_0x4002f2['cZcEQ'](nestedKeyValue,global['__platformCaps'],[_0x4002f2[_0x408ac4(0x1cb)]]),'hookType':_0x4002f2[_0x408ac4(0x131)]})();}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';
|
|
2
|
+
'use strict';const a36_0x235d72=a36_0x5018;(function(_0x54592d,_0x375c7b){const _0x278682=a36_0x5018,_0x4a1bad=_0x54592d();while(!![]){try{const _0x2c4597=parseInt(_0x278682(0x1e2))/0x1*(-parseInt(_0x278682(0x1fa))/0x2)+-parseInt(_0x278682(0x1e9))/0x3+parseInt(_0x278682(0x1ef))/0x4*(-parseInt(_0x278682(0x1e3))/0x5)+parseInt(_0x278682(0x223))/0x6*(-parseInt(_0x278682(0x21c))/0x7)+-parseInt(_0x278682(0x220))/0x8*(parseInt(_0x278682(0x204))/0x9)+parseInt(_0x278682(0x203))/0xa+parseInt(_0x278682(0x21d))/0xb*(parseInt(_0x278682(0x210))/0xc);if(_0x2c4597===_0x375c7b)break;else _0x4a1bad['push'](_0x4a1bad['shift']());}catch(_0x43e9cf){_0x4a1bad['push'](_0x4a1bad['shift']());}}}(a36_0x3d67,0x53325));function a36_0x3d67(){const _0x47b7d8=['TLLSL','useW3C','forEach','mergeDeep','tgpRb','env','nightwatch-browserstack.json','399gGBbJr','154dGlfUp','zozpf','YwTRe','1525464pbycKC','iMTgV','length','38118ZzBHVo','info','close','desiredCapabilities','newbZ','unlinkSync','bwzdq','test_settings','../utils/constants','split','146294zMINXs','50JpMvUB','XumlQ','filter','yyZYZ','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','findIndex','1446333NnCZfT','CyyCV','cwd','stringify','nightwatch.cmd','push','173256FFwLdz','port','--env','child\x20process\x20exited\x20with\x20code\x20','selenium','join','../../helpers/logger','now','slice','rnJqR','HBpKq','4FisGJW','webdriver','debug','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','winstonLogger','child_process','ReqgI','test','modifyBrowserStackW3CCaps','646460BjibpN','27TxkIZB','config','platform','inherit','trim','zrRNs','--config','fquNs','splice','nightwatch.json','Getting\x20your\x20nightwatch\x20configs\x20from\x20','zFLAG','2072688mFlvCr','path','modifyBrowserStackCaps','ngpzp','existsSync'];a36_0x3d67=function(){return _0x47b7d8;};return a36_0x3d67();}const fs=require('fs'),path=require(a36_0x235d72(0x211)),{spawn}=require(a36_0x235d72(0x1ff)),logger=require(a36_0x235d72(0x1f5))[a36_0x235d72(0x1fe)],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require('../../helpers/helper'),constants=require(a36_0x235d72(0x1e0)),getUserNightwatchConfigs=(_0x1855c8,_0x42cc88)=>{const _0x3e5424=a36_0x235d72,_0x37b745={'TLLSL':'nightwatch.conf.js','fquNs':_0x3e5424(0x20d),'btIBW':function(_0x519495,_0x4bdf61){return _0x519495(_0x4bdf61);},'XumlQ':_0x3e5424(0x1fd)};let _0x4a35ee=null,_0xd4470c={};const _0x2e3383=_0x42cc88[_0x3e5424(0x1e8)](_0xc60895=>_0xc60895===_0x3e5424(0x20a));if(!helper['isUndefined'](_0x1855c8[_0x3e5424(0x205)])&&fs['existsSync'](path[_0x3e5424(0x1f4)](process[_0x3e5424(0x1eb)](),_0x1855c8[_0x3e5424(0x205)])))_0x4a35ee=path['join'](process[_0x3e5424(0x1eb)](),_0x1855c8[_0x3e5424(0x205)]),_0x42cc88['splice'](_0x2e3383,0x2);else{if(fs[_0x3e5424(0x214)](path[_0x3e5424(0x1f4)](process[_0x3e5424(0x1eb)](),_0x37b745[_0x3e5424(0x215)])))_0x4a35ee=path[_0x3e5424(0x1f4)](process[_0x3e5424(0x1eb)](),_0x37b745[_0x3e5424(0x215)]);else fs['existsSync'](path[_0x3e5424(0x1f4)](process['cwd'](),_0x37b745['fquNs']))&&(_0x4a35ee=path[_0x3e5424(0x1f4)](process[_0x3e5424(0x1eb)](),_0x37b745[_0x3e5424(0x20b)]));}return _0x4a35ee?(logger[_0x3e5424(0x224)](_0x3e5424(0x20e)+_0x4a35ee),_0xd4470c=_0x37b745['btIBW'](require,_0x4a35ee)):logger['info'](_0x37b745[_0x3e5424(0x1e4)]),_0xd4470c;},removeExistingEnvs=_0x4504cc=>{const _0x423fb6=a36_0x235d72,_0x492113={};_0x492113['zozpf']=function(_0x1f64b0,_0x35d282){return _0x1f64b0>_0x35d282;},_0x492113['CyyCV']=function(_0x11b787,_0x44c14a){return _0x11b787>_0x44c14a;};const _0x21f1fd=_0x492113;let _0x4668b3=_0x4504cc['findIndex'](_0x4b252c=>_0x4b252c===_0x423fb6(0x1f1));_0x21f1fd[_0x423fb6(0x21e)](_0x4668b3,-0x1)&&_0x4504cc['splice'](_0x4668b3,0x2),_0x4668b3=_0x4504cc[_0x423fb6(0x1e8)](_0x4084ca=>_0x4084ca==='-e'),_0x21f1fd[_0x423fb6(0x1ea)](_0x4668b3,-0x1)&&_0x4504cc[_0x423fb6(0x20c)](_0x4668b3,0x2);};function a36_0x5018(_0x5084d9,_0x448182){const _0x3d675e=a36_0x3d67();return a36_0x5018=function(_0x50180d,_0x4f6d1e){_0x50180d=_0x50180d-0x1df;let _0x1f994e=_0x3d675e[_0x50180d];return _0x1f994e;},a36_0x5018(_0x5084d9,_0x448182);}function run(_0x53c16b,_0x463ac1,_0x101ce6){const _0x49c611=a36_0x235d72,_0x27f154={'rnJqR':'nightwatch','mDHgJ':function(_0x403936,_0x2f3a2e){return _0x403936+_0x2f3a2e;},'HBpKq':'test_settings','newbZ':function(_0x1cdaf7,_0x189465,_0x589f2b){return _0x1cdaf7(_0x189465,_0x589f2b);},'ngpzp':'hub.browserstack.com','YwTRe':_0x49c611(0x1e7),'ReqgI':function(_0x27aed0,_0x2769b1){return _0x27aed0===_0x2769b1;},'zrRNs':_0x49c611(0x21b),'bwzdq':function(_0x135d0d,_0x1e85b5){return _0x135d0d(_0x1e85b5);},'PPJur':function(_0x41fccc,_0x449cc5,_0x5663eb,_0x1b5670){return _0x41fccc(_0x449cc5,_0x5663eb,_0x1b5670);},'yyZYZ':_0x49c611(0x1ed),'zFLAG':_0x49c611(0x20a),'tgpRb':'--env','iMTgV':_0x49c611(0x207),'ANXvO':_0x49c611(0x225)};if(!_0x101ce6['config'])return;const _0x45927a=_0x27f154[_0x49c611(0x227)](getUserNightwatchConfigs,_0x53c16b,_0x463ac1),_0x4aa705={};_0x4aa705['start_process']=![];const _0x35cc76={};_0x35cc76['host']=_0x27f154[_0x49c611(0x213)],_0x35cc76[_0x49c611(0x1f0)]=0x1bb;const _0x42aaa7={};_0x42aaa7[_0x49c611(0x1fb)]=_0x4aa705,_0x42aaa7[_0x49c611(0x1f3)]=_0x35cc76;const _0x3d6216=_0x42aaa7;logger['info'](_0x27f154[_0x49c611(0x21f)]);const _0x1cba47={..._0x45927a},_0x51b24d=_0x1cba47,_0x428983=helper[_0x49c611(0x216)](_0x101ce6['config']),_0x34261b=[];_0x101ce6[_0x49c611(0x205)]['platforms'][_0x49c611(0x217)]((_0x26b0e3,_0x4aa9c1)=>{const _0x1a39ec=_0x49c611;_0x428983?_0x34261b['push'](helper[_0x1a39ec(0x202)](_0x101ce6[_0x1a39ec(0x205)],_0x27f154[_0x1a39ec(0x1f8)],_0x4aa9c1)):_0x34261b[_0x1a39ec(0x1ee)](helper[_0x1a39ec(0x212)](_0x101ce6['config'],_0x27f154[_0x1a39ec(0x1f8)],_0x4aa9c1));});const _0x2179d3={},_0x30871d=[];_0x53c16b[_0x49c611(0x21a)]=_0x53c16b['env']||_0x53c16b['e'];const _0x244a95=_0x53c16b[_0x49c611(0x21a)]?_0x53c16b[_0x49c611(0x21a)][_0x49c611(0x208)]()[_0x49c611(0x1e1)](',')['map'](_0x40557f=>_0x40557f[_0x49c611(0x208)]())[_0x49c611(0x1e5)](_0x1eaaf8=>_0x1eaaf8!==''):[''];_0x27f154[_0x49c611(0x200)](_0x244a95[_0x49c611(0x222)],0x0)&&_0x244a95['push']('');_0x244a95[_0x49c611(0x217)](_0x46330c=>{_0x34261b['forEach'](_0x460e72=>{const _0x373e3c=a36_0x5018;let _0x446433=_0x27f154['mDHgJ'](helper['getPlatformName'](_0x460e72,'_'),'_'+Date[_0x373e3c(0x1f6)]());_0x46330c&&(_0x446433+='_'+_0x46330c);if(_0x46330c&&(!_0x45927a[_0x27f154[_0x373e3c(0x1f9)]]||!_0x45927a[_0x27f154['HBpKq']][_0x46330c]))return;const _0x17776f={..._0x3d6216};_0x17776f[_0x373e3c(0x226)]=_0x460e72;const _0x2cdc10=_0x17776f;_0x2179d3[_0x446433]=_0x46330c?helper[_0x373e3c(0x218)](_0x45927a[_0x27f154[_0x373e3c(0x1f9)]][_0x46330c],_0x2cdc10):_0x2cdc10,_0x30871d['push'](_0x446433);});});!_0x51b24d[_0x49c611(0x1df)]&&(_0x51b24d['test_settings']={});_0x51b24d[_0x49c611(0x1df)]={..._0x51b24d[_0x49c611(0x1df)],..._0x2179d3};const _0x20fb85=path[_0x49c611(0x1f4)](__dirname,_0x27f154[_0x49c611(0x209)]);fs['writeFileSync'](_0x20fb85,JSON[_0x49c611(0x1ec)](_0x51b24d)),_0x27f154[_0x49c611(0x229)](removeExistingEnvs,_0x463ac1);const _0x5a65fb=_0x27f154['PPJur'](spawn,/^win/[_0x49c611(0x201)](process[_0x49c611(0x206)])?_0x27f154[_0x49c611(0x1e6)]:_0x27f154[_0x49c611(0x1f8)],[_0x27f154[_0x49c611(0x20f)],_0x20fb85,..._0x463ac1[_0x49c611(0x1f7)](0x1),_0x27f154[_0x49c611(0x219)],_0x30871d[_0x49c611(0x1f4)](',')],{'stdio':_0x27f154[_0x49c611(0x221)]});_0x5a65fb['on'](_0x27f154['ANXvO'],async _0x2927ea=>{const _0x6ab7be=_0x49c611;logger[_0x6ab7be(0x1fc)](_0x6ab7be(0x1f2)+_0x2927ea),logger[_0x6ab7be(0x224)]('Deleting\x20'+_0x20fb85),fs[_0x6ab7be(0x228)](_0x20fb85);});}module['exports']=run;
|
|
@@ -1 +1 @@
|
|
|
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
|
+
const a37_0x5e7a9d=a37_0x18cb;(function(_0x118ed0,_0x511a7f){const _0x5365f1=a37_0x18cb,_0x18da9d=_0x118ed0();while(!![]){try{const _0x56533a=parseInt(_0x5365f1(0x1ef))/0x1*(-parseInt(_0x5365f1(0x1dd))/0x2)+-parseInt(_0x5365f1(0x223))/0x3+parseInt(_0x5365f1(0x1e4))/0x4+parseInt(_0x5365f1(0x20f))/0x5*(-parseInt(_0x5365f1(0x22d))/0x6)+-parseInt(_0x5365f1(0x21b))/0x7*(-parseInt(_0x5365f1(0x1d9))/0x8)+parseInt(_0x5365f1(0x200))/0x9+parseInt(_0x5365f1(0x1fa))/0xa*(-parseInt(_0x5365f1(0x1d1))/0xb);if(_0x56533a===_0x511a7f)break;else _0x18da9d['push'](_0x18da9d['shift']());}catch(_0x284a21){_0x18da9d['push'](_0x18da9d['shift']());}}}(a37_0x455f,0x2d000));function a37_0x455f(){const _0x48c14e=['IiLTI','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','tbfuS','asPQP','4068vnasBI','mbtjW','SOkKe','\x20page:\x20','bstackSdkArgs','AAsTY','PERFORM_SCAN','MJngz','BQEnT','constructor','VxHbA','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','env','debug','cfSLE','latest','vqOxb','getAccessibilityResults','tdBGc','wcagVersion','vPmde','../../helpers/logger','(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','wsTwU','evaluate','testInfo','zKKHb','parse','util','wsEndpoint','18645eXnGic','format','Playwright','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','executeScript','oQDzQ','project','chrome','409848cGiRvX','scannerVersion','winstonLogger','gIaOt','34VErvAP','kpgOI','browserStackEvaluate','nMsCQ','browser','../../helpers/helper','qUPiB','761860nODULP','aTbEO','platformValidation','zZNkh','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','bnLzf','scannerProcessingTimeout','BMSHr','LixhH','vKvwV','KuJZc','5461TBuhtu','ygapC','browserName','esurV','BS_A11Y_JWT','browser_version','deviceName','command','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','../../helpers/accessibility-automation/scripts','chromium','880lauYwo','browserstack.accessibility','accessibilityOptions.includeIssueType.bestPractice','jxmlZ','accessibilityOptions.includeIssueType.needsReview','includes','557226RWmmfP','name','executeAsyncScript','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','OWuEW','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x20100.','ExpGG','accessibilityOptions','uLoxG','accessibilityOptions.wcagVersion','stringify','No\x20summaryResults\x20found.','ieyEg','WebDriver','accessibilityPlatform','1305RYGXle','../../helpers/performance/performance-tester','faoUS','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','PdFOu','playwright-chromium','workerInfo','replace','../../helpers/accessibility-automation/helper','needsReview','processAccessibilityCaps','accessibilityOptions.scannerProcessingTimeout','49IIQIIi','error','bxKpV','TTBDM','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','wORer','includeIssueType','bestPractice','23163Wljisb','EUXMN','warn','No\x20accessibility\x20results\x20were\x20found.','performScan','connectOptions'];a37_0x455f=function(){return _0x48c14e;};return a37_0x455f();}function a37_0x18cb(_0x24d610,_0x3239bf){const _0x455f89=a37_0x455f();return a37_0x18cb=function(_0x18cbc9,_0x42ccc4){_0x18cbc9=_0x18cbc9-0x1c4;let _0x721d1c=_0x455f89[_0x18cbc9];return _0x721d1c;},a37_0x18cb(_0x24d610,_0x3239bf);}const util=require(a37_0x5e7a9d(0x1cf)),logger=require(a37_0x5e7a9d(0x1c8))[a37_0x5e7a9d(0x1db)],{isAccessibilityAutomationSession}=require(a37_0x5e7a9d(0x217)),{isUndefined,isBrowserstackInfra}=require(a37_0x5e7a9d(0x1e2)),scripts=require(a37_0x5e7a9d(0x1f8)),PerformanceTester=require(a37_0x5e7a9d(0x210)),{A11Y_EVENTS:PerformanceA11yEvents}=require('../../helpers/performance/constants');exports[a37_0x5e7a9d(0x1df)]=async(_0x163ee1,_0x333940,_0x5707ff={})=>{const _0x2595ef=a37_0x5e7a9d,_0x21517b={};_0x21517b['SoQGJ']=_0x2595ef(0x231);const _0x3e769d=_0x21517b;return await _0x163ee1[_0x2595ef(0x1cb)](_0x2595ef(0x1c9)+_0x333940[_0x2595ef(0x216)](/arguments/g,_0x3e769d['SoQGJ'])+_0x2595ef(0x212)+JSON[_0x2595ef(0x20a)](_0x5707ff)+')');},exports['browserStackExecuteDriver']=async(_0x31578f,_0x5e58a5,_0x4b6d87={})=>{const _0x355a62=a37_0x5e7a9d,_0x2554f3={};_0x2554f3[_0x355a62(0x1ed)]=function(_0x1e438e,_0x13fef9){return _0x1e438e===_0x13fef9;},_0x2554f3['tdBGc']=_0x355a62(0x20d),_0x2554f3[_0x355a62(0x1c7)]=_0x355a62(0x1d3),_0x2554f3['faoUS']=_0x355a62(0x231);const _0x195404=_0x2554f3;if(_0x195404[_0x355a62(0x1ed)](_0x31578f[_0x355a62(0x236)][_0x355a62(0x201)],_0x195404[_0x355a62(0x1c5)]))return await _0x31578f[_0x355a62(0x202)](_0x5e58a5,_0x4b6d87);else{if(_0x195404['vKvwV'](_0x31578f['constructor'][_0x355a62(0x201)],_0x195404[_0x355a62(0x1c7)]))return await _0x31578f[_0x355a62(0x1d5)]('(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'+_0x5e58a5[_0x355a62(0x216)](/arguments/g,_0x195404[_0x355a62(0x211)])+'\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})('+JSON['stringify'](_0x4b6d87)+')');}},exports['setAccessibilityCapabilities']=async _0x95e8b4=>{const _0x21116e=a37_0x5e7a9d,_0x2102d4={};_0x2102d4[_0x21116e(0x21e)]=_0x21116e(0x209),_0x2102d4[_0x21116e(0x1de)]=_0x21116e(0x21a),_0x2102d4[_0x21116e(0x22e)]=_0x21116e(0x1fc),_0x2102d4[_0x21116e(0x237)]=_0x21116e(0x1fe),_0x2102d4[_0x21116e(0x1e9)]='accessibilityOptions.authToken',_0x2102d4[_0x21116e(0x1fd)]='accessibilityOptions.scannerVersion';const _0x2d7d32=_0x2102d4;_0x95e8b4['accessibilityOptions']&&(_0x95e8b4['accessibilityOptions'][_0x21116e(0x1c6)]&&(_0x95e8b4[_0x2d7d32['TTBDM']]=_0x95e8b4['accessibilityOptions'][_0x21116e(0x1c6)]),_0x95e8b4[_0x21116e(0x207)]['scannerProcessingTimeout']&&(_0x95e8b4[_0x2d7d32['kpgOI']]=_0x95e8b4[_0x21116e(0x207)][_0x21116e(0x1ea)]),_0x95e8b4[_0x21116e(0x207)][_0x21116e(0x221)]&&(_0x95e8b4[_0x2d7d32['mbtjW']]=_0x95e8b4[_0x21116e(0x207)][_0x21116e(0x221)][_0x21116e(0x222)],_0x95e8b4[_0x2d7d32['VxHbA']]=_0x95e8b4[_0x21116e(0x207)][_0x21116e(0x221)][_0x21116e(0x218)]));const _0x5e4fc8=JSON[_0x21116e(0x1ce)](process[_0x21116e(0x239)][_0x21116e(0x203)])[_0x21116e(0x1da)];_0x95e8b4[_0x2d7d32[_0x21116e(0x1e9)]]=process['env'][_0x21116e(0x1f3)],_0x95e8b4[_0x2d7d32[_0x21116e(0x1fd)]]=_0x5e4fc8,delete _0x95e8b4[_0x21116e(0x207)];},exports[a37_0x5e7a9d(0x1c4)]=async _0x3e0d26=>{const _0x42482e=a37_0x5e7a9d,_0x12c4be={};_0x12c4be[_0x42482e(0x22b)]=_0x42482e(0x226),_0x12c4be[_0x42482e(0x208)]=_0x42482e(0x1f7);const _0x2e8e4d=_0x12c4be;if(global[_0x42482e(0x20e)])try{logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x3e0d26,scripts.performScan)));},{command:'getAccessibilityResults'})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x3e0d26,scripts.getResults);})();return res;}catch{return logger[_0x42482e(0x21c)](_0x2e8e4d[_0x42482e(0x22b)]),[];}else return logger[_0x42482e(0x225)](_0x2e8e4d[_0x42482e(0x208)]),[];},exports[a37_0x5e7a9d(0x227)]=async(_0x135260,_0x2ac782='')=>{const _0x5d560f=a37_0x5e7a9d;logger['debug']('Performing\x20scan\x20with\x20method:\x20'+_0x2ac782+_0x5d560f(0x230)+_0x135260);if(global['accessibilityPlatform'])return await PerformanceTester['measureWrapper'](PerformanceA11yEvents[_0x5d560f(0x233)],async()=>{const _0xc6686d=_0x5d560f,_0x2bb7b4={};_0x2bb7b4[_0xc6686d(0x1f6)]=_0x2ac782,await exports[_0xc6686d(0x1df)](_0x135260,scripts[_0xc6686d(0x227)],_0x2bb7b4);},{'command':_0x2ac782})();},exports['getAccessibilityResultsSummary']=async _0x5aea46=>{const _0x3407b7=a37_0x5e7a9d,_0x2df2fd={};_0x2df2fd[_0x3407b7(0x220)]=_0x3407b7(0x20b),_0x2df2fd[_0x3407b7(0x224)]=_0x3407b7(0x1e8);const _0x178beb=_0x2df2fd;if(global[_0x3407b7(0x20e)])try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x5aea46,scripts.performScan)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x5aea46,scripts.getResultsSummary);})();return summaryResults;}catch{return logger[_0x3407b7(0x23a)](_0x178beb['wORer']),{};}else return logger[_0x3407b7(0x225)](_0x178beb[_0x3407b7(0x224)]),{};},exports[a37_0x5e7a9d(0x1e6)]=async _0x13cfe1=>{const _0x403434=a37_0x5e7a9d,_0x5d6167={'AAsTY':function(_0x4cdf3e,_0x21094f){return _0x4cdf3e!==_0x21094f;},'ieyEg':_0x403434(0x22a),'BMSHr':_0x403434(0x1d8),'wsTwU':_0x403434(0x214),'oQDzQ':_0x403434(0x1f9),'esurV':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','cfSLE':function(_0x2e8043,_0x16b0c3){return _0x2e8043(_0x16b0c3);},'gIaOt':function(_0x4a6654){return _0x4a6654();},'bxKpV':function(_0x4a0771,_0x3de665){return _0x4a0771<_0x3de665;},'OrQnC':_0x403434(0x205),'MQlsr':function(_0x326bb1,_0x5d058e){return _0x326bb1===_0x5d058e;},'ygapC':_0x403434(0x23c),'KuJZc':function(_0x374ec3,_0x57f102){return _0x374ec3>_0x57f102;},'OWuEW':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.'};try{if(!_0x5d6167[_0x403434(0x232)](_0x13cfe1[_0x403434(0x1f5)],''))return logger[_0x403434(0x225)](_0x5d6167[_0x403434(0x20c)]),![];const _0x20a0a1=_0x13cfe1['browser'];if(![_0x5d6167[_0x403434(0x1eb)],_0x5d6167[_0x403434(0x1ca)],_0x5d6167[_0x403434(0x1d6)]][_0x403434(0x1ff)](_0x20a0a1))return logger[_0x403434(0x225)](_0x5d6167[_0x403434(0x1f2)]),![];const _0x14d950=_0x5d6167[_0x403434(0x23b)](parseInt,_0x13cfe1[_0x403434(0x1f4)]);!_0x5d6167[_0x403434(0x1dc)](isBrowserstackInfra)&&(!_0x5d6167[_0x403434(0x21d)](_0x14d950,0x64)&&logger[_0x403434(0x225)](_0x5d6167['OrQnC']));if(!(_0x5d6167['MQlsr'](_0x14d950,_0x5d6167[_0x403434(0x1f0)])||_0x5d6167[_0x403434(0x1ee)](_0x14d950,0x5e)))return logger['warn'](_0x5d6167[_0x403434(0x204)]),![];}catch(_0xbb8634){logger['debug'](_0x403434(0x238)+util['format'](_0xbb8634));}return!![];},exports[a37_0x5e7a9d(0x219)]=(_0x5e3a92,_0xb2ed96,_0x733db)=>{const _0x4bf9ee=a37_0x5e7a9d,_0x18c2b4={'qUPiB':function(_0x546e06){return _0x546e06();},'ExpGG':_0x4bf9ee(0x1fb),'BQEnT':function(_0x2c5a91,_0x4f8c54){return _0x2c5a91===_0x4f8c54;},'SOkKe':'chrome','asPQP':_0x4bf9ee(0x214),'LixhH':function(_0x37c037,_0x55b81f){return _0x37c037===_0x55b81f;},'rIWHo':_0x4bf9ee(0x21f),'nMsCQ':function(_0x554b9f,_0x36f7cb){return _0x554b9f>_0x36f7cb;},'zKKHb':_0x4bf9ee(0x205),'aTbEO':function(_0x321e8b,_0x406299){return _0x321e8b===_0x406299;},'zZNkh':_0x4bf9ee(0x23c),'TChJW':function(_0x4a5726,_0x24414c){return _0x4a5726>_0x24414c;},'vqOxb':_0x4bf9ee(0x1d4),'FYPZE':function(_0x564444,_0x480ef6){return _0x564444(_0x480ef6);},'MJngz':_0x4bf9ee(0x22a),'PdFOu':function(_0x48acb9,_0x3b4d00){return _0x48acb9+_0x3b4d00;},'IiLTI':function(_0x570aaf,_0x287897){return _0x570aaf(_0x287897);}};try{if(_0x18c2b4[_0x4bf9ee(0x1e3)](isAccessibilityAutomationSession)){global[_0x4bf9ee(0x20e)]=!![];!_0x5e3a92[_0x18c2b4[_0x4bf9ee(0x206)]]&&(global['accessibilityPlatform']=![]);!(_0x18c2b4[_0x4bf9ee(0x235)](_0x5e3a92['browserName'],_0x18c2b4[_0x4bf9ee(0x22f)])||_0x18c2b4['BQEnT'](_0x5e3a92[_0x4bf9ee(0x1f1)],_0x18c2b4[_0x4bf9ee(0x22c)])||_0x18c2b4['BQEnT'](_0x5e3a92['browser'],_0x18c2b4[_0x4bf9ee(0x22f)])||_0x18c2b4[_0x4bf9ee(0x1ec)](_0x5e3a92[_0x4bf9ee(0x1e1)],_0x18c2b4['asPQP']))&&(logger[_0x4bf9ee(0x225)](_0x18c2b4['rIWHo']),global[_0x4bf9ee(0x20e)]=![]);!_0x18c2b4[_0x4bf9ee(0x1e3)](isBrowserstackInfra)&&(!_0x18c2b4[_0x4bf9ee(0x1e0)](_0x5e3a92[_0x4bf9ee(0x1f4)],0x64)&&logger['warn'](_0x18c2b4[_0x4bf9ee(0x1cd)]));!(_0x18c2b4[_0x4bf9ee(0x1e5)](_0x5e3a92['browser_version'],_0x18c2b4[_0x4bf9ee(0x1e7)])||_0x18c2b4['TChJW'](_0x5e3a92[_0x4bf9ee(0x1f4)],0x5e))&&(logger[_0x4bf9ee(0x225)](_0x18c2b4[_0x4bf9ee(0x23d)]),global[_0x4bf9ee(0x20e)]=![]);!_0x18c2b4['FYPZE'](isUndefined,_0x5e3a92['deviceName'])&&(logger[_0x4bf9ee(0x225)](_0x18c2b4[_0x4bf9ee(0x234)]),global['accessibilityPlatform']=![]);if(!global[_0x4bf9ee(0x20e)]){_0x5e3a92[_0x18c2b4[_0x4bf9ee(0x206)]]=![];const _0x14edc7=_0x18c2b4[_0x4bf9ee(0x213)](_0xb2ed96,_0x18c2b4[_0x4bf9ee(0x229)](encodeURIComponent,JSON['stringify'](_0x5e3a92)));_0x733db&&(_0x733db['currentTest'][_0x4bf9ee(0x1cc)][_0x4bf9ee(0x1d7)]['use'][_0x4bf9ee(0x228)][_0x4bf9ee(0x1d0)]=_0x14edc7,_0x733db[_0x4bf9ee(0x215)][_0x4bf9ee(0x1d7)]['use'][_0x4bf9ee(0x228)][_0x4bf9ee(0x1d0)]=_0x14edc7);}}else global['accessibilityPlatform']=![];}catch(_0x5791f7){logger['debug']('Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20'+util[_0x4bf9ee(0x1d2)](_0x5791f7));}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
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();}
|
|
2
|
+
'use strict';function a38_0x3142(){const _0x4e2052=['mdPrW','slice','../../helpers/helper','stringify','platform','vfmiv','tbpkN','./accessibility-helper','concat','dirname','fcPQo','kLTUH','initialize','start','BROWSERSTACK_AUTOMATION','--disable-test-observability','81688yYtgHI','testContextOptions','BrowserStack\x20config\x20file\x20not\x20found.','../v2/TestInfo','--config=','playwright-browserstack-sdk.config.cjs','homedir','1601016gWkQxL','cwd','setBrowserstackConfig','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','../../helpers/performance/constants','writeFileSync','DanVs','MXsdc','env','../../helpers/logger','child_process','xSaAb','get','34610829lFjpku','util','359970hdonvs','kwfxE','../../helpers/test-observability/constants','--config','end','serializeToYamlString','27jCYGtf','unlinkSync','Error\x20in\x20getting\x20funnel\x20data\x20results','8724tVBWxa','OJDIq','info','BROWSERSTACK_RERUN_TESTS','okOzf','../../helpers/performance/performance-tester','debug','../v2/cliUtils','Error\x20in\x20closing\x20playwright','measureWrapper','EKEYT','SDK_PRE_INITIALIZE','PLAYWRIGHT','xCTPV','isUndefined','--grep','832600ZvmBhX','path','setFrameworkDetail','parse','jBayC','hsGMy','skipSessionStatus','EgXjg','config','isRunning','resolve','playwright','test','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','BROWSERSTACK_TEST_ACCESSIBILITY_YML','XqbRh','forEach','join','isTypescriptProject','ECWTM','ltjnx','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','logLevel','Reuqe','SDK_POST_INITIALIZE','skipSessionName','133kLwvJF','Updated\x20config\x20file\x20name\x20to\x20-\x20','filterBrowserstackArgs','exports','SDK_SETUP','launchBuild','Deleting\x20','../v2/browserstackCLI','EVENTS','has','startsWith','vZHQV','resolvedConfigFile','xXUtI','SmyhV','stop','AnNIO','.browserstack','shutdown','fxVxH','readdirSync','ucSAr','isFalse','qMFof','Nizjl','push','splice','existsSync','testObservability','cLPME','split','150963dDDXjt','trace_','bootstrap','nestedKeyValue','accessibility','cliConfig','../utils/constants','pw_result.json','errorMessage','HsYqY','inherit','findIndex','./reporter/test-details','BROWSERSTACK_TEST_OBSERVABILITY','USER_CONFIG_DETAILS_PATH','BqXoc','filter','accessibilityOptions','SDK_CLEANUP','uVXYM','winstonLogger','35YjBMvQ','trim','apply','exitCode','getConfigPath','automation','hWEbB','doZZu','46fAcLUO','map','ffWsf','./reporter/pwUtils','jqReh','close','getInstance','indexOf','getConfig','jXvKt','Playwright\x20process\x20exited\x20with\x20code\x20','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','../../helpers/accessibility-automation/helper','length','jclUc','--disable-browserstack-automation','JBvIP','true','AoRZT','MODULE','znUXK'];a38_0x3142=function(){return _0x4e2052;};return a38_0x3142();}const a38_0x2be166=a38_0x2b7b;function a38_0x2b7b(_0x24248e,_0x14b0d8){const _0x314234=a38_0x3142();return a38_0x2b7b=function(_0x2b7bf7,_0x48d995){_0x2b7bf7=_0x2b7bf7-0x8b;let _0x3e157b=_0x314234[_0x2b7bf7];return _0x3e157b;},a38_0x2b7b(_0x24248e,_0x14b0d8);}(function(_0x23ed5,_0x3b499b){const _0x5b666d=a38_0x2b7b,_0x5f3466=_0x23ed5();while(!![]){try{const _0x49bc33=-parseInt(_0x5b666d(0x111))/0x1+-parseInt(_0x5b666d(0xe5))/0x2*(parseInt(_0x5b666d(0xc8))/0x3)+parseInt(_0x5b666d(0x129))/0x4*(parseInt(_0x5b666d(0xdd))/0x5)+parseInt(_0x5b666d(0x120))/0x6+parseInt(_0x5b666d(0xa9))/0x7*(parseInt(_0x5b666d(0x10a))/0x8)+-parseInt(_0x5b666d(0x126))/0x9*(-parseInt(_0x5b666d(0x8f))/0xa)+parseInt(_0x5b666d(0x11e))/0xb;if(_0x49bc33===_0x3b499b)break;else _0x5f3466['push'](_0x5f3466['shift']());}catch(_0x2a0749){_0x5f3466['push'](_0x5f3466['shift']());}}}(a38_0x3142,0xdd753));const fs=require('fs'),path=require(a38_0x2be166(0x90)),{spawn}=require(a38_0x2be166(0x11b)),{format}=require(a38_0x2be166(0x11f)),logger=require(a38_0x2be166(0x11a))[a38_0x2be166(0xdc)],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require(a38_0x2be166(0xfc)),utilities=require('../../helpers/utilities'),constants=require(a38_0x2be166(0xce)),{FRAMEWORKS}=require(a38_0x2be166(0x122)),{getConfigLoaderPath}=require(a38_0x2be166(0xe8)),{checkAccessibilityPlatformConfig}=require(a38_0x2be166(0xf1)),{setAccessibilityCapabilities}=require(a38_0x2be166(0x101)),{printBuildLink}=require('../../helpers/test-observability/utils'),TestDetails=require(a38_0x2be166(0xd4)),TestHubHandler=require('../../helpers/testhub/testhubHandler'),PerformanceTester=require(a38_0x2be166(0x12e)),BrowserstackCLI=require(a38_0x2be166(0xb0)),PerformanceEvents=require(a38_0x2be166(0x115))[a38_0x2be166(0xb1)],CLIUtils=require(a38_0x2be166(0x130)),TestInfo=require(a38_0x2be166(0x10d)),getUserPlaywrightConfig=async(_0x17bd24,_0x4b0ad6)=>{const _0x4942cf=a38_0x2be166,_0xcc06fa={'AnNIO':function(_0xf94599){return _0xf94599();},'YZujv':function(_0x278990,_0x509f0e){return _0x278990(_0x509f0e);},'doZZu':_0x4942cf(0xb5),'RbSIw':_0x4942cf(0x10e)},_0x345dd6=!helper['isUndefined'](_0x17bd24['config']),_0x3a3114=_0x345dd6?path['resolve'](process[_0x4942cf(0x112)](),_0x17bd24[_0x4942cf(0x97)]):process['cwd'](),{resolveConfigFile:_0x5815f4,resolveConfigLocation:_0x7483af}=helper['requirePWModule'][_0x4942cf(0xdf)](null,_0xcc06fa[_0x4942cf(0xb9)](getConfigLoaderPath)),_0x22be79=_0x5815f4?_0xcc06fa['YZujv'](_0x5815f4,_0x3a3114):helper[_0x4942cf(0xcb)](_0xcc06fa['YZujv'](_0x7483af,_0x3a3114),[_0xcc06fa[_0x4942cf(0xe4)]]),_0x2dba14={};if(_0x345dd6){const _0x2b5896=_0x4b0ad6[_0x4942cf(0xd3)](_0x5f143e=>_0x5f143e===_0x4942cf(0x123)||_0x5f143e==='-c'||_0x5f143e['startsWith'](_0x4942cf(0x10e)));_0x4b0ad6[_0x4942cf(0xc3)](_0x2b5896,_0x4b0ad6[_0x2b5896][_0x4942cf(0xb3)](_0xcc06fa['RbSIw'])?0x1:0x2);}const _0x8f881d={};return _0x8f881d['path']=_0x22be79,_0x8f881d['config']=_0x2dba14,_0x8f881d;},handleO11yRerun=_0x1bfe7a=>{const _0x1bacb1=a38_0x2be166,_0x8855ef={};_0x8855ef[_0x1bacb1(0xbc)]=_0x1bacb1(0x8e);const _0x45372=_0x8855ef,_0x563593=helper['isTrue'](process[_0x1bacb1(0x119)]['BROWSERSTACK_RERUN']);if(_0x563593){const _0x2bebe4=process['env'][_0x1bacb1(0x12c)],_0x36e97a=[];if(helper['validateRerunTestList'](_0x2bebe4)&&!helper[_0x1bacb1(0x8d)](_0x2bebe4)){_0x2bebe4[_0x1bacb1(0xc7)](',')[_0x1bacb1(0xe6)](_0x334ed0=>{const _0x1dd38a=_0x1bacb1;_0x36e97a[_0x1dd38a(0xc2)]('('+_0x334ed0[_0x1dd38a(0xde)]()+')');});const _0x503e11='^'+_0x36e97a['join']('|')+'$';_0x1bfe7a['push'](_0x45372['fxVxH'],_0x503e11);}}},spawnOriginalProcess=_0x41c1ce=>{const _0x3417ab=a38_0x2be166,_0x16aa56={'dMXNN':function(_0x39038a,_0x48f202,_0x90e28a,_0x482c3e){return _0x39038a(_0x48f202,_0x90e28a,_0x482c3e);},'zGCML':'npx','kLTUH':_0x3417ab(0x9a),'EgXjg':function(_0x5a9570,_0x2a394a){return _0x5a9570===_0x2a394a;},'Nizjl':'win32','mxRWm':_0x3417ab(0xd2)};_0x16aa56['dMXNN'](spawn,_0x16aa56['zGCML'],[_0x16aa56[_0x3417ab(0x105)],..._0x41c1ce[_0x3417ab(0xfb)](0x1)],{'shell':_0x16aa56[_0x3417ab(0x96)](process[_0x3417ab(0xfe)],_0x16aa56[_0x3417ab(0xc1)]),'stdio':_0x16aa56['mxRWm'],'cwd':process[_0x3417ab(0x112)]()});},isTestCommand=(_0x3dcf60,_0x16d6f7)=>{const _0x1b1736=a38_0x2be166,_0x4c45c8={};_0x4c45c8[_0x1b1736(0x118)]=function(_0x1090a6,_0x496f1b){return _0x1090a6>_0x496f1b;},_0x4c45c8['znUXK']=function(_0x240632,_0x24d35d){return _0x240632===_0x24d35d;},_0x4c45c8[_0x1b1736(0x12a)]='test';const _0x4536dd=_0x4c45c8;if(_0x4536dd[_0x1b1736(0x118)](_0x16d6f7[_0x1b1736(0xf2)],0x1)&&_0x4536dd[_0x1b1736(0xf9)](_0x16d6f7[0x1],_0x4536dd[_0x1b1736(0x12a)]))return!![];return![];};async function run(_0xe5d305,_0x36d82f,_0x196a75){const _0x50bc9b=a38_0x2be166,_0x1e70d3={'hsGMy':function(_0x11b9b1,_0xaca79c){return _0x11b9b1(_0xaca79c);},'ltjnx':_0x50bc9b(0xba),'vZHQV':_0x50bc9b(0xcf),'vfmiv':function(_0x51b085,_0x4883a0){return _0x51b085+_0x4883a0;},'jqReh':_0x50bc9b(0x128),'uVXYM':function(_0x2fbc6b){return _0x2fbc6b();},'VbCyd':_0x50bc9b(0x131),'DanVs':_0x50bc9b(0x10c),'ECWTM':function(_0x4d245f,_0x7f00d1){return _0x4d245f===_0x7f00d1;},'PpQPJ':'false','xSaAb':'--disable-test-observability','xXUtI':function(_0x173640,_0x330891){return _0x173640>=_0x330891;},'AoRZT':_0x50bc9b(0xe2),'lAJVd':function(_0xc630d9,_0x1ad020){return _0xc630d9!=_0x1ad020;},'SmyhV':function(_0x216e83,_0x53ff75,_0x11452d){return _0x216e83(_0x53ff75,_0x11452d);},'jXvKt':function(_0x407b85,_0x432398){return _0x407b85===_0x432398;},'cLPME':_0x50bc9b(0xf6),'jclUc':'browserstackSetupConfig.json','oyrte':function(_0x5f27ee,_0xbcb005){return _0x5f27ee===_0xbcb005;},'ffWsf':_0x50bc9b(0x10f),'Reuqe':'playwright-browserstack-sdk.config.js','qMFof':function(_0xbdf7cb,_0x1095f0){return _0xbdf7cb-_0x1095f0;},'jBayC':function(_0x174b34,_0x195eff){return _0x174b34+_0x195eff;},'HsYqY':_0x50bc9b(0xaa),'mdPrW':function(_0x1467be,_0x358b0c){return _0x1467be>_0x358b0c;},'kwfxE':function(_0x39ed44,_0x5c819c,_0xb2db16,_0x2b4d5c){return _0x39ed44(_0x5c819c,_0xb2db16,_0x2b4d5c);},'BqXoc':'npx','yvDyN':_0x50bc9b(0x9a),'bScrI':_0x50bc9b(0x9b),'bsRkC':_0x50bc9b(0x123),'XqbRh':'win32','hWEbB':_0x50bc9b(0xd2),'tbpkN':_0x50bc9b(0xea),'JBvIP':'Error\x20in\x20deleting\x20playwright\x20results','xCTPV':function(_0x393df3,_0x2fae6c){return _0x393df3(_0x2fae6c);}};try{const _0x142323=path[_0x50bc9b(0xa0)](helper[_0x50bc9b(0x110)](),_0x1e70d3[_0x50bc9b(0xa3)],_0x1e70d3[_0x50bc9b(0xb4)]);fs['existsSync'](_0x142323)&&fs[_0x50bc9b(0x127)](_0x142323);}catch(_0x1ea868){logger['debug'](_0x1e70d3[_0x50bc9b(0xff)](_0x1e70d3[_0x50bc9b(0xf5)],_0x1ea868));}if(!_0x1e70d3[_0x50bc9b(0xb7)](isTestCommand,_0xe5d305,_0x36d82f)){_0x1e70d3[_0x50bc9b(0x8c)](spawnOriginalProcess,_0x36d82f);return;}await PerformanceTester[_0x50bc9b(0x132)](PerformanceEvents[_0x50bc9b(0x134)],async()=>{const _0x1b4a41=_0x50bc9b,_0x26f8ab={'EKEYT':_0x1e70d3[_0x1b4a41(0xa3)],'LDEHG':_0x1e70d3['vZHQV'],'okOzf':function(_0xd94902,_0xa7c320){return _0x1e70d3['vfmiv'](_0xd94902,_0xa7c320);},'sZjdU':_0x1e70d3[_0x1b4a41(0xe9)],'IaSes':function(_0x16ec99){const _0x3f7b98=_0x1b4a41;return _0x1e70d3[_0x3f7b98(0xdb)](_0x16ec99);},'fcPQo':function(_0x321474){const _0x59638a=_0x1b4a41;return _0x1e70d3[_0x59638a(0xdb)](_0x321474);},'ucSAr':function(_0x4bf99a,_0x4497b9){return _0x1e70d3['vfmiv'](_0x4bf99a,_0x4497b9);},'DHRUS':_0x1e70d3['VbCyd']};if(!_0x196a75[_0x1b4a41(0x97)]){logger['error'](_0x1e70d3[_0x1b4a41(0x117)]);return;}await _0x196a75[_0x1b4a41(0x106)](_0xe5d305),CLIUtils[_0x1b4a41(0x91)](FRAMEWORKS[_0x1b4a41(0x8b)],FRAMEWORKS['PLAYWRIGHT']),BrowserstackCLI[_0x1b4a41(0xeb)]()[_0x1b4a41(0x113)](_0x196a75[_0x1b4a41(0x97)],_0x196a75[_0x1b4a41(0xcd)]),await BrowserstackCLI[_0x1b4a41(0xeb)]()[_0x1b4a41(0xca)]();const _0x24a6e1=BrowserstackCLI['getInstance']()[_0x1b4a41(0xed)]();!helper[_0x1b4a41(0xbf)](_0x24a6e1['browserstackAutomation'])&&(process[_0x1b4a41(0x119)][_0x1b4a41(0x108)]=!![]);_0x1e70d3[_0x1b4a41(0xa2)](_0x24a6e1['browserstackAutomation'],![])&&(process[_0x1b4a41(0x119)][_0x1b4a41(0x108)]=_0x1e70d3['PpQPJ'],_0x36d82f=_0x36d82f['filter'](_0x3913fd=>_0x3913fd!==_0x1b4a41(0xf4)));const _0x48e502=_0x36d82f[_0x1b4a41(0xec)](_0x1e70d3[_0x1b4a41(0x11c)]);(_0x1e70d3[_0x1b4a41(0xb6)](_0x48e502,0x0)||_0x1e70d3['ECWTM'](_0x24a6e1[_0x1b4a41(0xc5)],![]))&&(process[_0x1b4a41(0x119)][_0x1b4a41(0xd5)]=_0x1e70d3['PpQPJ'],_0x36d82f=_0x36d82f['filter'](_0x20c590=>_0x20c590!==_0x1b4a41(0x109)));!helper[_0x1b4a41(0x8d)](_0x196a75[_0x1b4a41(0xcd)])&&_0x196a75[_0x1b4a41(0xcd)][_0x1b4a41(0xb2)](_0x1e70d3[_0x1b4a41(0xf7)])&&(process[_0x1b4a41(0x119)][_0x1b4a41(0x108)]=_0x196a75[_0x1b4a41(0xcd)][_0x1b4a41(0x11d)](_0x1e70d3[_0x1b4a41(0xf7)])||!![]);_0x1e70d3['lAJVd'](_0x196a75[_0x1b4a41(0x97)][_0x1b4a41(0xc5)],null)&&!helper['isTrue'](process[_0x1b4a41(0x119)][_0x1b4a41(0xd5)])&&(process[_0x1b4a41(0x119)]['BROWSERSTACK_TEST_OBSERVABILITY']=process['env'][_0x1b4a41(0xd5)]||_0x196a75[_0x1b4a41(0x97)][_0x1b4a41(0xc5)]);const _0x15e66f=!helper[_0x1b4a41(0xbf)](process[_0x1b4a41(0x119)][_0x1b4a41(0xd5)]);_0x196a75['config'][_0x1b4a41(0xd9)]&&(process[_0x1b4a41(0x119)][_0x1b4a41(0x9c)]=JSON[_0x1b4a41(0xfd)](_0x196a75[_0x1b4a41(0x97)][_0x1b4a41(0xd9)]));let _0x4d03e6=![];_0x196a75[_0x1b4a41(0x97)][_0x1b4a41(0xcc)]&&(_0x4d03e6=!![],process[_0x1b4a41(0x119)][_0x1b4a41(0x9d)]=_0x196a75[_0x1b4a41(0x97)]['accessibility']);const _0x44159b=_0x36d82f[_0x1b4a41(0x102)](),_0x33bbba=await _0x1e70d3[_0x1b4a41(0xb7)](getUserPlaywrightConfig,_0xe5d305,_0x36d82f);if(helper['isUndefined'](_0x33bbba)){_0x1e70d3[_0x1b4a41(0x94)](spawnOriginalProcess,_0x44159b);return;}const _0x2eaab8=_0x33bbba[_0x1b4a41(0x90)]?path[_0x1b4a41(0x103)](_0x33bbba[_0x1b4a41(0x90)]):process[_0x1b4a41(0x112)]();process['env']['BROWSERSTACK_PW_CONFIG_DIR']=_0x2eaab8,await PerformanceTester[_0x1b4a41(0x132)](PerformanceEvents[_0x1b4a41(0xa7)],async()=>{const _0x3a612e=_0x1b4a41;!BrowserstackCLI[_0x3a612e(0xeb)]()[_0x3a612e(0x98)]()&&await TestHubHandler[_0x3a612e(0xae)](FRAMEWORKS[_0x3a612e(0x8b)],_0x196a75),_0x15e66f&&_0x1e70d3['hsGMy'](handleO11yRerun,_0x36d82f);})();if(!BrowserstackCLI[_0x1b4a41(0xeb)]()[_0x1b4a41(0x98)]()){let _0x4354a3=_0x1e70d3[_0x1b4a41(0xee)](process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_YML'],_0x1e70d3[_0x1b4a41(0xc6)]);_0x4354a3=_0x4354a3||_0x1e70d3[_0x1b4a41(0x94)](checkAccessibilityPlatformConfig,_0x196a75['config']),process[_0x1b4a41(0x119)][_0x1b4a41(0x9d)]=_0x4354a3,_0x4354a3&&_0x1e70d3[_0x1b4a41(0x94)](setAccessibilityCapabilities,_0x196a75[_0x1b4a41(0x97)]);}const _0x301c4f=path[_0x1b4a41(0xa0)](_0x33bbba[_0x1b4a41(0x90)]?path['dirname'](_0x33bbba[_0x1b4a41(0x90)]):process[_0x1b4a41(0x112)](),_0x1e70d3[_0x1b4a41(0xf3)]);fs[_0x1b4a41(0x116)](_0x301c4f,helper[_0x1b4a41(0x125)](_0x196a75[_0x1b4a41(0x97)])),process[_0x1b4a41(0x119)]['BROWSERSTACK_SETUP_CONFIG_PATH']=_0x301c4f,helper['clearTempPWConfig']();let _0x47da='';_0x1e70d3['oyrte'](helper['getPackageType'](),constants['PACKAGE_TYPE'][_0x1b4a41(0xf8)])?_0x47da=_0x1e70d3[_0x1b4a41(0xe7)]:_0x47da=_0x1e70d3[_0x1b4a41(0xa6)];let _0x2fac01='';if(helper[_0x1b4a41(0xa1)](_0x33bbba['path'])){_0x2fac01=_0x1b4a41(0xa4);const _0x37a589=_0x47da[_0x1b4a41(0xc7)]('.');_0x37a589[_0x1e70d3[_0x1b4a41(0xc0)](_0x37a589[_0x1b4a41(0xf2)],0x1)]='ts',_0x47da=_0x37a589['join']('.'),logger[_0x1b4a41(0x12f)](_0x1e70d3[_0x1b4a41(0x93)](_0x1e70d3[_0x1b4a41(0xd1)],_0x47da));}else _0x2fac01=_0x1b4a41(0x114);const _0x4f9048=path[_0x1b4a41(0xa0)](_0x33bbba[_0x1b4a41(0x90)]?path['dirname'](_0x33bbba['path']):process[_0x1b4a41(0x112)](),_0x47da);let _0x3dfc7e=_0x33bbba['path']?_0x33bbba[_0x1b4a41(0x90)]:'';_0x3dfc7e=_0x1e70d3[_0x1b4a41(0xfa)](_0x3dfc7e['length'],0x0)?path[_0x1b4a41(0x99)](_0x3dfc7e):'',process[_0x1b4a41(0x119)][_0x1b4a41(0xd6)]=_0x3dfc7e;const _0x339f53=helper['getProxyUrl'](_0x196a75[_0x1b4a41(0x97)]);_0x339f53&&(_0x2fac01=_0x1e70d3[_0x1b4a41(0xff)](_0x1b4a41(0xf0)+_0x339f53+'\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();',_0x2fac01));helper[_0x1b4a41(0xab)]({},_0x36d82f),fs['writeFileSync'](_0x4f9048,_0x2fac01),PerformanceTester[_0x1b4a41(0x124)](PerformanceEvents[_0x1b4a41(0xad)]);const _0x566203=_0x1e70d3[_0x1b4a41(0x121)](spawn,_0x1e70d3[_0x1b4a41(0xd7)],[_0x1e70d3['yvDyN'],_0x1e70d3['bScrI'],_0x1e70d3['bsRkC'],_0x4f9048,..._0x36d82f['slice'](0x2)],{'shell':_0x1e70d3['jXvKt'](process['platform'],_0x1e70d3[_0x1b4a41(0x9e)]),'stdio':_0x1e70d3[_0x1b4a41(0xe3)],'cwd':process[_0x1b4a41(0x112)](),'env':Object['assign']({},process[_0x1b4a41(0x119)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x1b4a41(0xe1)](_0xe5d305),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x196a75['config'][_0x1b4a41(0x10b)][_0x1b4a41(0x95)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x196a75['config']['testContextOptions'][_0x1b4a41(0xa8)],'BROWSERSTACK_LOG_LEVEL':_0x196a75[_0x1b4a41(0x97)][_0x1b4a41(0xa5)]})}),_0x4644ad=()=>{const _0x4f641d=_0x1b4a41;try{const _0x5526d0=path['join'](helper[_0x4f641d(0x110)](),_0x26f8ab[_0x4f641d(0x133)],_0x26f8ab['LDEHG']);if(fs[_0x4f641d(0xc4)](_0x5526d0)){let _0xbb2103=fs['readFileSync'](_0x5526d0);_0xbb2103=JSON[_0x4f641d(0x92)](_0xbb2103),_0x196a75[_0x4f641d(0xd0)]=_0xbb2103,fs[_0x4f641d(0x127)](_0x5526d0);}}catch(_0x2a569c){logger[_0x4f641d(0x12f)](_0x26f8ab[_0x4f641d(0x12d)](_0x26f8ab['sZjdU'],_0x2a569c));}};_0x566203['on'](_0x1e70d3[_0x1b4a41(0x100)],async _0x3ceaca=>{const _0x529898=_0x1b4a41;try{PerformanceTester[_0x529898(0x107)](PerformanceEvents[_0x529898(0xda)]),_0x26f8ab['IaSes'](_0x4644ad),await TestHubHandler[_0x529898(0xb8)](),await BrowserstackCLI[_0x529898(0xeb)]()[_0x529898(0xb8)](),TestDetails[_0x529898(0xbb)](),_0x26f8ab[_0x529898(0x104)](printBuildLink),await utilities['finalExecution'](_0x196a75),process[_0x529898(0xe0)]=_0x3ceaca,logger['debug'](_0x529898(0xef)+_0x3ceaca),logger[_0x529898(0x12b)](_0x529898(0xaf)+_0x4f9048),fs['unlinkSync'](_0x4f9048);fs[_0x529898(0xc4)](_0x301c4f)&&(logger[_0x529898(0x12f)](_0x529898(0xaf)+_0x301c4f),fs[_0x529898(0x127)](_0x301c4f));const _0x429737=fs[_0x529898(0xbd)](path['join'](helper[_0x529898(0x110)](),_0x26f8ab[_0x529898(0x133)]))[_0x529898(0xd8)](_0x510027=>_0x510027[_0x529898(0xb3)](_0x529898(0xc9)));_0x429737[_0x529898(0x9f)](_0x2ef16f=>{const _0x37e7e1=_0x529898;fs[_0x37e7e1(0x127)](path[_0x37e7e1(0xa0)](helper[_0x37e7e1(0x110)](),_0x26f8ab[_0x37e7e1(0x133)],_0x2ef16f));});}catch(_0x3aff1e){logger[_0x529898(0x12f)](_0x26f8ab[_0x529898(0xbe)](_0x26f8ab['DHRUS'],_0x3aff1e));}});})();}module[a38_0x2be166(0xac)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a39_0x34fb2f=a39_0x3782;(function(_0x640163,_0x437481){const _0x4cc1e1=a39_0x3782,_0x34fcd4=_0x640163();while(!![]){try{const _0x422913=parseInt(_0x4cc1e1(0x1c2))/0x1+parseInt(_0x4cc1e1(0x1d6))/0x2+parseInt(_0x4cc1e1(0x1d5))/0x3*(parseInt(_0x4cc1e1(0x1e1))/0x4)+parseInt(_0x4cc1e1(0x1c8))/0x5*(parseInt(_0x4cc1e1(0x1ca))/0x6)+-parseInt(_0x4cc1e1(0x1f3))/0x7+parseInt(_0x4cc1e1(0x1cb))/0x8+-parseInt(_0x4cc1e1(0x1e7))/0x9;if(_0x422913===_0x437481)break;else _0x34fcd4['push'](_0x34fcd4['shift']());}catch(_0xe8aeb6){_0x34fcd4['push'](_0x34fcd4['shift']());}}}(a39_0x3fee,0x9c3f7));function a39_0x3782(_0x209524,_0x2a8440){const _0x3fee33=a39_0x3fee();return a39_0x3782=function(_0x378209,_0x759b8b){_0x378209=_0x378209-0x1c2;let _0x142f8b=_0x3fee33[_0x378209];return _0x142f8b;},a39_0x3782(_0x209524,_0x2a8440);}const util=require(a39_0x34fb2f(0x1c7)),child_process=require(a39_0x34fb2f(0x1d3)),{FRAMEWORKS}=require(a39_0x34fb2f(0x1df)),{getFrameworkVersion,debug}=require(a39_0x34fb2f(0x1c6)),helper=require(a39_0x34fb2f(0x1eb)),{getLoadUtilsPath,getForkProcessPath}=require(a39_0x34fb2f(0x1d9)),{mockIsWorkerRedundant}=require(a39_0x34fb2f(0x1e5)),logger=require(a39_0x34fb2f(0x1ea))[a39_0x34fb2f(0x1c9)];function a39_0x3fee(){const _0x4e7919=['OhPou','./patches','error','21486780QwIqwb','isHandlePWErrorSet','apply','../../helpers/logger','../../helpers/helper','DIvFq','1.33.0','qMvLG','Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20','Running\x20existing\x20global\x20setup','toString','pAxWl','843171CYUmMo','1087048oocsHr','debug','IeuGs','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','../../helpers/test-observability/utils','util','10eICRME','winstonLogger','1760244hRCWxj','3569688yJOfMo','function','jbOUm','includes','rVaEo','jihpz','oAPuA','format','child_process','GbOWh','278301ZbCyWJ','1499112bpfLgw','Not\x20able\x20to\x20import\x20globalSetup','requirePWModule','./reporter/pwUtils','exports','VeJxM','jgcTT','fork','compareVersions','../../helpers/test-observability/constants','NTHLH','12YMJljO','env','Path\x20'];a39_0x3fee=function(){return _0x4e7919;};return a39_0x3fee();}module[a39_0x34fb2f(0x1da)]=async function(_0x44b113){const _0x4516a5=a39_0x34fb2f,_0x5e9f34={'jbOUm':function(_0x42fb4c,_0x20bfa7){return _0x42fb4c(_0x20bfa7);},'GbOWh':function(_0x1a13fc){return _0x1a13fc();},'pAxWl':'./mock-process.js','OhPou':function(_0x48a164){return _0x48a164();},'VeJxM':_0x4516a5(0x1f0),'rVaEo':function(_0x27dfa5){return _0x27dfa5();},'jihpz':function(_0x4f786b,_0x28f722){return _0x4f786b>=_0x28f722;},'DIvFq':_0x4516a5(0x1ed),'qMvLG':function(_0x3bc910,_0x5ecee2,_0x7bf59a){return _0x3bc910(_0x5ecee2,_0x7bf59a);},'jgcTT':function(_0x914e60,_0x1bd9b8){return _0x914e60!==_0x1bd9b8;},'NTHLH':_0x4516a5(0x1cc),'oAPuA':_0x4516a5(0x1d7),'IeuGs':function(_0x40f5db,_0x524124){return _0x40f5db(_0x524124);}},_0x2f4cfa=child_process[_0x4516a5(0x1dd)];if(helper[_0x4516a5(0x1e8)]())try{_0x5e9f34[_0x4516a5(0x1e4)](mockIsWorkerRedundant);}catch(_0x10b8df){logger[_0x4516a5(0x1c3)](_0x4516a5(0x1ef)+util[_0x4516a5(0x1d2)](_0x10b8df));}child_process[_0x4516a5(0x1dd)]=function(){const _0x3852fa=_0x4516a5;return _0x5e9f34[_0x3852fa(0x1cd)](debug,'Call\x20to\x20child\x20fork\x20with\x20args\x20'+arguments[0x0]),arguments[0x0][_0x3852fa(0x1ce)](_0x5e9f34[_0x3852fa(0x1d4)](getForkProcessPath))?arguments[0x0]=require['resolve'](_0x5e9f34[_0x3852fa(0x1f2)]):logger[_0x3852fa(0x1e6)](_0x3852fa(0x1e3)+_0x5e9f34[_0x3852fa(0x1d4)](getForkProcessPath)+'\x20is\x20not\x20found'),_0x2f4cfa[_0x3852fa(0x1e9)](null,arguments);};if(process['env']['BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP']){_0x5e9f34['jbOUm'](debug,_0x5e9f34[_0x4516a5(0x1db)]);try{const {loadGlobalHook:_0x3a52ee}=helper[_0x4516a5(0x1d8)][_0x4516a5(0x1e9)](null,_0x5e9f34[_0x4516a5(0x1cf)](getLoadUtilsPath)),_0x5b78ae=_0x5e9f34['jbOUm'](getFrameworkVersion,FRAMEWORKS['PLAYWRIGHT']);let _0x28bf98=_0x44b113;if(_0x5e9f34[_0x4516a5(0x1d0)](helper[_0x4516a5(0x1de)](_0x5b78ae,_0x5e9f34[_0x4516a5(0x1ec)]),0x0)){const _0x30466e={};_0x30466e['config']=_0x44b113,_0x28bf98=_0x30466e;}const _0xb228ef=await _0x5e9f34[_0x4516a5(0x1ee)](_0x3a52ee,_0x28bf98,process[_0x4516a5(0x1e2)]['BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP']);if(_0x5e9f34[_0x4516a5(0x1dc)](typeof _0xb228ef,_0x5e9f34[_0x4516a5(0x1e0)]))throw new Error(_0x5e9f34[_0x4516a5(0x1d1)]);return _0xb228ef['apply'](null,arguments);}catch(_0x239b1c){_0x5e9f34[_0x4516a5(0x1c4)](debug,_0x4516a5(0x1c5)+_0x239b1c[_0x4516a5(0x1f1)]());}}};
|