browserstack-node-sdk 1.40.7 → 1.41.0
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 +3 -3
- package/browserstack.yml.sample +3 -3
- 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_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
|
+
const a35_0x3cfb1f=a35_0x5efe;(function(_0x319726,_0x384333){const _0x1431d6=a35_0x5efe,_0x4bb519=_0x319726();while(!![]){try{const _0x26987e=parseInt(_0x1431d6(0x1a1))/0x1*(parseInt(_0x1431d6(0x1c7))/0x2)+parseInt(_0x1431d6(0x1bf))/0x3+-parseInt(_0x1431d6(0x1ea))/0x4+parseInt(_0x1431d6(0x180))/0x5+parseInt(_0x1431d6(0x1a0))/0x6*(parseInt(_0x1431d6(0x1f0))/0x7)+-parseInt(_0x1431d6(0x1eb))/0x8*(-parseInt(_0x1431d6(0x1e5))/0x9)+-parseInt(_0x1431d6(0x1d0))/0xa*(parseInt(_0x1431d6(0x190))/0xb);if(_0x26987e===_0x384333)break;else _0x4bb519['push'](_0x4bb519['shift']());}catch(_0x49968c){_0x4bb519['push'](_0x4bb519['shift']());}}}(a35_0x2cc7,0x9dce5));const util=require(a35_0x3cfb1f(0x1a8)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a35_0x3cfb1f(0x18d)),{TEST_FRAMEWORK_HOOK_TIMEOUT}=require(a35_0x3cfb1f(0x1d6)),{percyAutoCapture}=require(a35_0x3cfb1f(0x185)),{sendPlatformDetails}=require(a35_0x3cfb1f(0x202)),{isBrowserstackInfra,markSessionStatus,nestedKeyValue}=require(a35_0x3cfb1f(0x1e3)),PerformanceTester=require('../../helpers/performance/performance-tester'),{AUTOMATE_EVENTS:PerformanceAutEvents,O11y_EVENTS:PerformanceO11yEvents,A11Y_EVENTS:PerformanceA11yEvents,EVENTS:PerformanceSdkEvents}=require(a35_0x3cfb1f(0x1a3)),scripts=require(a35_0x3cfb1f(0x1fc)),globals=require(a35_0x3cfb1f(0x1bd)),logger=require(a35_0x3cfb1f(0x1af))[a35_0x3cfb1f(0x17d)],{shouldProcessEventForTesthub}=require(a35_0x3cfb1f(0x1db)),testHubConstants=require(a35_0x3cfb1f(0x1d9));exports[a35_0x3cfb1f(0x192)]={'beforeAll'(){const _0x32fa6d=a35_0x3cfb1f,_0x4d1af1={'EQxxF':function(_0x733188,_0x123e73,_0x5ea141,_0x27057a){return _0x733188(_0x123e73,_0x5ea141,_0x27057a);},'tGVAP':_0x32fa6d(0x1b9),'DSKOF':_0x32fa6d(0x1c2),'KjFFk':function(_0x4c2fa1,_0x4f3cc4,_0xfebcf7){return _0x4c2fa1(_0x4f3cc4,_0xfebcf7);},'PhOhj':_0x32fa6d(0x1bb),'vfmlX':function(_0x1efac1){return _0x1efac1();},'alNSF':function(_0x401aa1,_0xa8e534,_0x2b6c3d){return _0x401aa1(_0xa8e534,_0x2b6c3d);},'mnCBy':function(_0x26a689,_0xc354c8,_0x214381){return _0x26a689(_0xc354c8,_0x214381);},'NpNuq':_0x32fa6d(0x1a6),'VYMSn':_0x32fa6d(0x1b5)};PerformanceTester['startMonitoring']();const _0x4a2a35='browserstack internal helper hook';PerformanceTester[_0x32fa6d(0x1ca)](PerformanceSdkEvents[_0x32fa6d(0x18a)],()=>{const _0x21de22=_0x32fa6d;global['__error_messages__']=[],global[_0x21de22(0x1dc)]=![],global[_0x21de22(0x1fb)]=async()=>{const _0x556da9=_0x21de22;let _0xa6af05=![];try{await global[_0x556da9(0x1ba)][0x0][_0x556da9(0x183)],_0xa6af05=!![],global[_0x556da9(0x1dc)]?await _0x4d1af1[_0x556da9(0x16b)](markSessionStatus,global[_0x556da9(0x1ba)][0x0],_0x4d1af1[_0x556da9(0x16d)],global[_0x556da9(0x171)][_0x556da9(0x1d8)](_0x4d1af1['DSKOF'])):await _0x4d1af1[_0x556da9(0x199)](markSessionStatus,global[_0x556da9(0x1ba)][0x0],_0x4d1af1[_0x556da9(0x1df)]);}catch(_0x5ec796){logger[_0x556da9(0x174)](_0x556da9(0x1d4)+_0x5ec796);}global['__error_messages__']=[],global[_0x556da9(0x1dc)]=![];if(_0xa6af05)try{try{_0x4d1af1['vfmlX'](shouldProcessEventForTesthub)&&(global[_0x556da9(0x1ba)][0x0]&&await _0x4d1af1['alNSF'](sendPlatformDetails,global[_0x556da9(0x1ba)][0x0],this['currentTest']?this['currentTest'][_0x556da9(0x1ae)]:null));}catch(_0x31f35f){logger[_0x556da9(0x174)](_0x556da9(0x18f)+_0x31f35f);}await global['__drivers'][0x0]['initQuit']();}catch(_0x4da18b){logger['debug'](_0x556da9(0x184)+_0x4da18b);}};},{'platform':_0x4d1af1[_0x32fa6d(0x1a4)](nestedKeyValue,global['__platformCaps'],[_0x4d1af1['NpNuq']]),'hookType':_0x4d1af1['VYMSn']})();},'beforeEach'(_0x1b8b8a){const _0xa1eef1=a35_0x3cfb1f,_0xd9958b={'ZqJOm':function(_0x526906,_0x4e1211){return _0x526906>_0x4e1211;},'rOJIi':function(_0x2d34b8,_0x508439){return _0x2d34b8>_0x508439;},'fABEk':_0xa1eef1(0x1fe),'stFxv':function(_0x4f3c8b,_0x54abf2,_0x52b954){return _0x4f3c8b(_0x54abf2,_0x52b954);},'tutpg':_0xa1eef1(0x193),'JNCsO':function(_0x24524e){return _0x24524e();},'eqcMX':function(_0x4df70a,_0x4c65aa){return _0x4df70a>_0x4c65aa;},'ucYjW':'isAccessibilityPlatform','nflsz':function(_0x218283,_0x143ed4){return _0x218283===_0x143ed4;},'zDzBo':_0xa1eef1(0x175),'roePX':_0xa1eef1(0x1d7),'PtXHA':_0xa1eef1(0x200),'uYolF':_0xa1eef1(0x1a7),'tTRgQ':function(_0x4be7a9){return _0x4be7a9();},'HYWgB':_0xa1eef1(0x169),'gNDAM':_0xa1eef1(0x1a6),'FimyM':_0xa1eef1(0x19f)};globals[_0xa1eef1(0x186)](_0xd9958b[_0xa1eef1(0x1a9)],this[_0xa1eef1(0x1b8)][_0xa1eef1(0x1d5)]()[_0xa1eef1(0x1d8)](_0xd9958b[_0xa1eef1(0x1e4)])),PerformanceTester['measureWrapper'](PerformanceSdkEvents['SDK_HOOK'],()=>{const _0x461095=_0xa1eef1,_0x515629={'rKjWp':function(_0x189aff){const _0x4e69b7=a35_0x5efe;return _0xd9958b[_0x4e69b7(0x1e9)](_0x189aff);}},_0x1b08f8='browserstack internal helper hook';new Promise(async _0x281f17=>{const _0x51c469=a35_0x5efe;let _0x36afcf=!![];try{_0xd9958b[_0x51c469(0x19b)](global['__drivers'][_0x51c469(0x1ef)],0x1)&&(await global[_0x51c469(0x1fb)](),global[_0x51c469(0x1ba)]['shift']()),_0xd9958b[_0x51c469(0x1ed)](global[_0x51c469(0x1ba)][0x0][_0x51c469(0x172)],0x0)&&(_0x36afcf=![],await global[_0x51c469(0x1fb)]());}catch(_0x1241e9){logger[_0x51c469(0x174)](_0x51c469(0x184)+_0x1241e9);}try{Array['isArray'](global[_0x51c469(0x1ba)])&&global[_0x51c469(0x1ba)][0x0]&&(global[_0x51c469(0x1ba)][0x0]['browserstackSessionName']=this['currentTest'][_0x51c469(0x1d5)]()['join'](_0xd9958b[_0x51c469(0x1e4)])),global[_0x51c469(0x176)]=this[_0x51c469(0x1b8)][_0x51c469(0x1d5)]()[_0x51c469(0x1d8)](_0xd9958b['fABEk']);}catch(_0x5c984e){logger[_0x51c469(0x174)](_0x51c469(0x19a)+_0x5c984e);}this['currentTest'][_0x51c469(0x19d)]=_0xd9958b[_0x51c469(0x1c8)](shouldScanTestForAccessibility,this[_0x51c469(0x1b8)][_0x51c469(0x1d5)](),!![]),globals['setGlobal'](_0xd9958b['tutpg'],this[_0x51c469(0x1b8)][_0x51c469(0x19d)]),this['currentTest'][_0x51c469(0x163)]=!![];if(_0xd9958b[_0x51c469(0x188)](isAccessibilityAutomationSession)&&_0x36afcf&&Array['isArray'](global[_0x51c469(0x1ba)])&&_0xd9958b[_0x51c469(0x1e2)](global[_0x51c469(0x1ba)]['length'],0x0)&&globals[_0x51c469(0x167)](_0xd9958b[_0x51c469(0x203)]))try{const _0x1c986b=await global[_0x51c469(0x1ba)][0x0]['session_'];if(_0x1c986b){let _0x2853cc=!![];const _0x55a435=await global['__drivers'][0x0][_0x51c469(0x1c9)]();let _0x1f7321;try{_0x1f7321=new URL(_0x55a435);}catch(_0x3c9afd){_0x2853cc=![];}_0x2853cc=_0xd9958b[_0x51c469(0x1f9)](_0x1f7321['protocol'],_0xd9958b['zDzBo'])||_0xd9958b['nflsz'](_0x1f7321[_0x51c469(0x19c)],_0xd9958b[_0x51c469(0x1cc)]),_0x2853cc&&(this[_0x51c469(0x1b8)]['shouldScanTestForAccessibility']&&logger[_0x51c469(0x178)](_0xd9958b[_0x51c469(0x162)])),this[_0x51c469(0x1b8)]['accessibilityScanStarted']=this[_0x51c469(0x1b8)][_0x51c469(0x19d)],this[_0x51c469(0x1b8)][_0x51c469(0x19d)]&&logger['info'](_0xd9958b['uYolF']);}}catch(_0x2d6596){logger[_0x51c469(0x1c0)](_0x51c469(0x177)+util[_0x51c469(0x1f6)](_0x2d6596));}_0xd9958b[_0x51c469(0x188)](_0x281f17);})[_0x461095(0x1ac)](()=>{const _0x45906e=_0x461095;_0x515629[_0x45906e(0x1c5)](_0x1b8b8a);});},{'platform':_0xd9958b[_0xa1eef1(0x1c8)](nestedKeyValue,global[_0xa1eef1(0x208)],[_0xd9958b[_0xa1eef1(0x182)]]),'hookType':_0xd9958b['FimyM']})();},'afterEach'(_0x214e66){const _0x3b9a75=a35_0x3cfb1f,_0xcc5651={'PaBSZ':function(_0x1fd4ae,_0x33c6b5){return _0x1fd4ae>_0x33c6b5;},'oqqRZ':function(_0x3903b9,_0x17ef9b){return _0x3903b9===_0x17ef9b;},'QRgHH':_0x3b9a75(0x1be),'dcJRr':_0x3b9a75(0x181),'FvACA':function(_0x9ec4b2,_0x4ae5c2,_0x59e7c0,_0x1b1ac3){return _0x9ec4b2(_0x4ae5c2,_0x59e7c0,_0x1b1ac3);},'acSxx':_0x3b9a75(0x1ff),'sqMeN':_0x3b9a75(0x193),'VCzeC':_0x3b9a75(0x19e),'ukpvK':_0x3b9a75(0x1ec),'lqRSS':_0x3b9a75(0x1b1),'kAtyF':_0x3b9a75(0x17f),'oLWcr':function(_0x1dd68f){return _0x1dd68f();},'pYewT':function(_0x1d11e5,_0x2ec430,_0x3ee223){return _0x1d11e5(_0x2ec430,_0x3ee223);},'RBIKq':function(_0x312f55){return _0x312f55();},'CwtJh':_0x3b9a75(0x174),'UhoqT':function(_0xa99bac){return _0xa99bac();},'JEUed':function(_0x565f24){return _0x565f24();},'LkjcS':'\x20-\x20','WuxSS':function(_0x285931,_0x4961ee){return _0x285931!==_0x4961ee;},'ySGJH':_0x3b9a75(0x1bb),'cKeav':function(_0xc142ee,_0x4fbe8e){return _0xc142ee+_0x4fbe8e;},'gLRXV':_0x3b9a75(0x16c),'VszwC':'error','leRTz':_0x3b9a75(0x1c3),'wWMOA':_0x3b9a75(0x178),'hVROn':_0x3b9a75(0x1da),'yOzEE':'index','kmnbe':_0x3b9a75(0x17c)},_0x44223c='browserstack internal helper hook';this[_0x3b9a75(0x17b)](TEST_FRAMEWORK_HOOK_TIMEOUT[_0xcc5651[_0x3b9a75(0x1d2)]]),global['sessionName']=this[_0x3b9a75(0x1b8)]['titlePath']()[_0x3b9a75(0x1d8)](_0xcc5651[_0x3b9a75(0x18e)]),PerformanceTester[_0x3b9a75(0x1ca)](PerformanceSdkEvents[_0x3b9a75(0x18a)],()=>{const _0x24dd15=_0x3b9a75,_0x3878e4={'joBnB':_0xcc5651[_0x24dd15(0x18e)],'UGNyS':function(_0x512291,_0x2296e8){return _0xcc5651['WuxSS'](_0x512291,_0x2296e8);},'PObQV':_0xcc5651[_0x24dd15(0x1f1)],'VTwzX':function(_0x403931,_0x298694,_0x2c7d04){const _0x4db126=_0x24dd15;return _0xcc5651[_0x4db126(0x1de)](_0x403931,_0x298694,_0x2c7d04);},'ygFqB':function(_0x36a2cd,_0x4fb000){const _0x3e52c2=_0x24dd15;return _0xcc5651[_0x3e52c2(0x1fd)](_0x36a2cd,_0x4fb000);},'mFitb':_0xcc5651[_0x24dd15(0x206)],'nHZHX':_0xcc5651[_0x24dd15(0x207)],'Hxczi':_0xcc5651[_0x24dd15(0x1e0)],'aQsBX':_0xcc5651[_0x24dd15(0x1f8)]},_0x137677=async(_0x4c8ffd,_0x4053ea)=>{const _0x1cba6b=_0x24dd15;await global[_0x1cba6b(0x1ba)][0x0][_0x1cba6b(0x1e7)]('browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:'+_0x4c8ffd+_0x1cba6b(0x18c)+_0x4053ea+'\x22}}');};new Promise(async _0x4e9e67=>{const _0x581963=_0x24dd15;try{_0xcc5651[_0x581963(0x1fa)](global['__drivers']['length'],0x1)&&(await global[_0x581963(0x1fb)](),global['__drivers'][_0x581963(0x179)](),global[_0x581963(0x171)]=[],global[_0x581963(0x1dc)]=![]);try{if(global['percy']&&_0xcc5651['oqqRZ'](global['percyCaptureMode'],_0xcc5651[_0x581963(0x1f4)])&&global[_0x581963(0x1ba)][0x0]){const _0x561c81=_0xcc5651['PaBSZ'](global[_0x581963(0x1f5)]['length'],0x0)?!!global[_0x581963(0x1f5)][0x0][_0x581963(0x1bc)]||!!global[_0x581963(0x1f5)][0x0][_0xcc5651[_0x581963(0x1f2)]]:![],_0x2e6a7e={};_0x2e6a7e[_0x581963(0x1bc)]=_0x561c81,await _0xcc5651[_0x581963(0x164)](percyAutoCapture,global[_0x581963(0x1ba)][0x0],_0xcc5651['QRgHH'],_0x2e6a7e);}}catch(_0x34f51e){logger['debug'](_0x581963(0x1f3)+_0x34f51e);}!global[_0x581963(0x1e6)]&&(await PerformanceTester['measureWrapper'](PerformanceAutEvents[_0x581963(0x1d1)],async()=>{const _0x3f1ee0=_0x581963;await global[_0x3f1ee0(0x1ba)][0x0][_0x3f1ee0(0x1e7)]('browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20'+JSON[_0x3f1ee0(0x198)](this[_0x3f1ee0(0x1b8)][_0x3f1ee0(0x1d5)]()[_0x3f1ee0(0x1d8)](_0x3878e4[_0x3f1ee0(0x170)]))+'}}');})(),global[_0x581963(0x1ba)][0x0][_0x581963(0x16f)]=!![]),await PerformanceTester[_0x581963(0x1ca)](PerformanceAutEvents[_0x581963(0x168)],async()=>{const _0xa5c395=_0x581963,_0x41af80=_0x3878e4[_0xa5c395(0x1b7)](this['currentTest'][_0xa5c395(0x1e8)],_0x3878e4[_0xa5c395(0x173)]);_0x41af80?(global[_0xa5c395(0x1dc)]=!![],global[_0xa5c395(0x171)][_0xa5c395(0x17a)](this[_0xa5c395(0x1b8)]['err']['message']),await _0x3878e4[_0xa5c395(0x189)](_0x137677,JSON[_0xa5c395(0x198)](_0x3878e4['ygFqB'](_0x3878e4[_0xa5c395(0x1ce)],this[_0xa5c395(0x1b8)][_0xa5c395(0x1cb)]['message'])),_0x3878e4[_0xa5c395(0x1ad)])):await _0x3878e4[_0xa5c395(0x189)](_0x137677,JSON['stringify'](_0x3878e4[_0xa5c395(0x165)]),_0x3878e4['aQsBX']);})();}catch(_0x55f158){logger[_0x581963(0x174)](_0x581963(0x1c4)+_0x55f158);}try{if(this[_0x581963(0x1b8)][_0x581963(0x163)]&&globals[_0x581963(0x167)](_0xcc5651[_0x581963(0x1b3)])&&globals[_0x581963(0x167)](_0xcc5651[_0x581963(0x1b0)])){logger[_0x581963(0x178)](_0xcc5651[_0x581963(0x201)]);const _0x5a2ce8={};_0x5a2ce8[_0x581963(0x1e1)]=this[_0x581963(0x1b8)]['testAnalyticsId'],_0x5a2ce8[_0x581963(0x196)]=process['env'][testHubConstants[_0x581963(0x197)][_0x581963(0x1f7)]],_0x5a2ce8[_0x581963(0x191)]=process[_0x581963(0x204)][testHubConstants['ENV_VAR']['BROWSERSTACK_TESTHUB_JWT']];const _0x4bfa0e=_0x5a2ce8;logger['debug'](_0x581963(0x1ab)+JSON[_0x581963(0x198)](_0x4bfa0e)),logger[_0x581963(0x174)](_0xcc5651['ukpvK']);const _0x4b8f0e={};_0x4b8f0e[_0x581963(0x195)]=_0xcc5651[_0x581963(0x1d3)],await PerformanceTester[_0x581963(0x1ca)](PerformanceA11yEvents[_0x581963(0x1a5)],async()=>{const _0xa48b86=_0x581963;logger[_0xa48b86(0x174)](util[_0xa48b86(0x1f6)](await global[_0xa48b86(0x1ba)][0x0]['executeAsyncScript'](scripts[_0xa48b86(0x1a2)],{'method':global['browserstackSessionName']})));},_0x4b8f0e)(),await PerformanceTester[_0x581963(0x1ca)](PerformanceA11yEvents['SAVE_RESULTS'],async()=>{const _0x92e8a1=_0x581963;await global['__drivers'][0x0]['executeAsyncScript'](scripts[_0x92e8a1(0x1cd)],_0x4bfa0e);})(),logger[_0x581963(0x178)](_0xcc5651[_0x581963(0x1cf)]);}}catch(_0x15d24f){logger[_0x581963(0x1c0)]('Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20'+this[_0x581963(0x1b8)][_0x581963(0x1d5)]()+_0x581963(0x205),_0x15d24f);}try{try{if(_0xcc5651[_0x581963(0x1dd)](shouldProcessEventForTesthub)){global['__drivers'][0x0]&&await _0xcc5651['pYewT'](sendPlatformDetails,global[_0x581963(0x1ba)][0x0],this[_0x581963(0x1b8)]?this[_0x581963(0x1b8)]['testAnalyticsId']:null);if(_0xcc5651['RBIKq'](isBrowserstackInfra)){PerformanceTester[_0x581963(0x1c1)](PerformanceO11yEvents[_0x581963(0x1aa)]);const _0x7f16a=_0x581963(0x1b2)+Date['now']();await _0xcc5651[_0x581963(0x1de)](_0x137677,JSON[_0x581963(0x198)](_0x7f16a),_0xcc5651[_0x581963(0x1c6)]),PerformanceTester[_0x581963(0x194)](PerformanceO11yEvents[_0x581963(0x1aa)]);}}}catch(_0x4d9af8){logger[_0x581963(0x174)](_0x581963(0x187)+_0x4d9af8),PerformanceTester[_0x581963(0x194)](PerformanceO11yEvents['SYNC'],![],_0x4d9af8);}_0xcc5651[_0x581963(0x1fa)](global['__drivers'][0x0][_0x581963(0x172)],0x0)&&await global[_0x581963(0x1fb)]();}catch(_0x44fc20){logger[_0x581963(0x174)](_0x581963(0x184)+_0x44fc20);}_0xcc5651['UhoqT'](_0x4e9e67);})[_0x24dd15(0x1ac)](()=>{const _0x587d2e=_0x24dd15;_0xcc5651[_0x587d2e(0x16e)](_0x214e66);});},{'platform':_0xcc5651[_0x3b9a75(0x1de)](nestedKeyValue,global[_0x3b9a75(0x208)],[_0xcc5651['yOzEE']]),'hookType':_0xcc5651[_0x3b9a75(0x17e)]})();},'afterAll'(_0x4fa039){const _0x2a7535=a35_0x3cfb1f,_0x5db894={'LJHFl':function(_0x1f1e82){return _0x1f1e82();},'EehEA':function(_0x286d72){return _0x286d72();},'gXMRK':_0x2a7535(0x1da),'UTRKl':function(_0x2c8820,_0x41c055,_0x595350){return _0x2c8820(_0x41c055,_0x595350);},'jdjXT':_0x2a7535(0x1a6),'WZEgY':'afterAll'},_0x208d43='browserstack internal helper hook';this[_0x2a7535(0x17b)](TEST_FRAMEWORK_HOOK_TIMEOUT[_0x5db894['gXMRK']]),PerformanceTester['measureWrapper'](PerformanceSdkEvents[_0x2a7535(0x18a)],()=>{const _0x412a59=_0x2a7535,_0x275a79={'dxqWD':function(_0x4b4233){const _0x5771fc=a35_0x5efe;return _0x5db894[_0x5771fc(0x18b)](_0x4b4233);}};new Promise(async _0x446293=>{const _0x4e7d6a=a35_0x5efe;await global[_0x4e7d6a(0x1fb)](),_0x275a79[_0x4e7d6a(0x166)](_0x446293);})['then']()[_0x412a59(0x1b6)](()=>{const _0x27e4e1=_0x412a59;_0x5db894[_0x27e4e1(0x16a)](_0x4fa039);});},{'platform':_0x5db894[_0x2a7535(0x1ee)](nestedKeyValue,global[_0x2a7535(0x208)],[_0x5db894['jdjXT']]),'hookType':_0x5db894[_0x2a7535(0x1b4)]})();}};function a35_0x5efe(_0x1affeb,_0x54b475){const _0x2cc716=a35_0x2cc7();return a35_0x5efe=function(_0x5efe64,_0x43b330){_0x5efe64=_0x5efe64-0x162;let _0x208d27=_0x2cc716[_0x5efe64];return _0x208d27;},a35_0x5efe(_0x1affeb,_0x54b475);}function a35_0x2cc7(){const _0x29a6c1=['SDK_HOOK','EehEA',',\x22level\x22:\x20\x22','../../helpers/accessibility-automation/helper','LkjcS','Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20','434709WKBgQi','thJwtToken','mochaHooks','bstackA11yShouldScan','end','command','thBuildUuid','ENV_VAR','stringify','KjFFk','Failed\x20to\x20store\x20session\x20name:\x20','ZqJOm','protocol','shouldScanTestForAccessibility','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','beforeEach','10554RrmCmf','24896nQATdo','performScan','../../helpers/performance/constants','mnCBy','PERFORM_SCAN','index','Automate\x20test\x20case\x20execution\x20has\x20started.','util','HYWgB','SYNC','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','then','nHZHX','testAnalyticsId','../../helpers/logger','sqMeN','afterTest','ObservabilitySync:','acSxx','WZEgY','beforeAll','finally','UGNyS','currentTest','failed','__drivers','passed','app','../../helpers/globals','testcase','1464984yoyfug','error','start','\x20|\x20','Passed','Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20','rKjWp','CwtJh','24HzjuWZ','stFxv','getCurrentUrl','measureWrapper','err','roePX','saveTestResults','mFitb','kAtyF','590HnjHuc','SESSION_NAME','hVROn','lqRSS','Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20','titlePath','../utils/constants','https:','join','../../helpers/testhub/constants','Mocha','../../helpers/testhub/utils','__sessionFailed','oLWcr','pYewT','PhOhj','leRTz','thTestRunUuid','eqcMX','../../helpers/helper','fABEk','7061589MeDzNP','__skipSessionName','executeScript','state','tTRgQ','262872adqnaL','8FEIIrK','Performing\x20scan\x20before\x20saving\x20results','rOJIi','UTRKl','length','763VGjMvv','ySGJH','dcJRr','Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20','QRgHH','capabilities','format','BROWSERSTACK_TESTHUB_UUID','wWMOA','nflsz','PaBSZ','driverCleanup','../../helpers/accessibility-automation/scripts','cKeav','\x20-\x20','isAccessibilityPlatform','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','VCzeC','./test-observability/mochaUtils','ucYjW','env','.\x20Error\x20:','gLRXV','VszwC','__platformCaps','PtXHA','accessibilityScanStarted','FvACA','Hxczi','dxqWD','getGlobal','SESSION_STATUS','browserstackTestName','LJHFl','EQxxF','Failed:\x20','tGVAP','JEUed','sessionNameSet__','joBnB','__error_messages__','quitCount_','PObQV','debug','http:','browserstackSessionName','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','info','shift','push','timeout','afterEach','winstonLogger','kmnbe','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','6401400kfjboA','appium:app','gNDAM','session_','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','../../helpers/percy/utils','setGlobal','Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20','JNCsO','VTwzX'];a35_0x2cc7=function(){return _0x29a6c1;};return a35_0x2cc7();}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';function a36_0x234e(_0x288f6e,_0x3f6bcb){const _0xadf035=a36_0xadf0();return a36_0x234e=function(_0x234eb8,_0x78a145){_0x234eb8=_0x234eb8-0xd9;let _0x52a091=_0xadf035[_0x234eb8];return _0x52a091;},a36_0x234e(_0x288f6e,_0x3f6bcb);}const a36_0x1115f0=a36_0x234e;(function(_0x33674e,_0x134297){const _0x2f313e=a36_0x234e,_0x13360c=_0x33674e();while(!![]){try{const _0x228725=parseInt(_0x2f313e(0xfa))/0x1*(parseInt(_0x2f313e(0xe9))/0x2)+-parseInt(_0x2f313e(0x10b))/0x3*(parseInt(_0x2f313e(0x102))/0x4)+parseInt(_0x2f313e(0x121))/0x5+-parseInt(_0x2f313e(0x104))/0x6+parseInt(_0x2f313e(0x109))/0x7+parseInt(_0x2f313e(0x11c))/0x8+parseInt(_0x2f313e(0xe3))/0x9;if(_0x228725===_0x134297)break;else _0x13360c['push'](_0x13360c['shift']());}catch(_0x2483ac){_0x13360c['push'](_0x13360c['shift']());}}}(a36_0xadf0,0x312f4));const fs=require('fs'),path=require(a36_0x1115f0(0xff)),{spawn}=require(a36_0x1115f0(0x103)),logger=require(a36_0x1115f0(0xf4))[a36_0x1115f0(0x110)],{default:BrowserStackSetup}=require(a36_0x1115f0(0xf7)),helper=require(a36_0x1115f0(0x11a)),constants=require(a36_0x1115f0(0xde)),getUserNightwatchConfigs=(_0x177801,_0x10b477)=>{const _0x3723d6=a36_0x1115f0,_0x148c9f={'tEnFn':_0x3723d6(0xe2),'RXvFq':_0x3723d6(0x114),'RetwX':function(_0x5b6615,_0x5046b1){return _0x5b6615(_0x5046b1);},'ZZuNl':_0x3723d6(0x100)};let _0x351452=null,_0x3f4bec={};const _0x2ea099=_0x10b477[_0x3723d6(0xe0)](_0x2d73d1=>_0x2d73d1===_0x3723d6(0x11d));if(!helper[_0x3723d6(0xed)](_0x177801['config'])&&fs[_0x3723d6(0xf0)](path[_0x3723d6(0x10e)](process[_0x3723d6(0xef)](),_0x177801[_0x3723d6(0x11b)])))_0x351452=path[_0x3723d6(0x10e)](process['cwd'](),_0x177801['config']),_0x10b477[_0x3723d6(0xee)](_0x2ea099,0x2);else{if(fs['existsSync'](path[_0x3723d6(0x10e)](process[_0x3723d6(0xef)](),_0x148c9f[_0x3723d6(0x116)])))_0x351452=path[_0x3723d6(0x10e)](process[_0x3723d6(0xef)](),_0x148c9f[_0x3723d6(0x116)]);else fs['existsSync'](path[_0x3723d6(0x10e)](process[_0x3723d6(0xef)](),_0x148c9f[_0x3723d6(0xe4)]))&&(_0x351452=path['join'](process[_0x3723d6(0xef)](),_0x148c9f['RXvFq']));}return _0x351452?(logger['info']('Getting\x20your\x20nightwatch\x20configs\x20from\x20'+_0x351452),_0x3f4bec=_0x148c9f['RetwX'](require,_0x351452)):logger[_0x3723d6(0xf2)](_0x148c9f[_0x3723d6(0xfb)]),_0x3f4bec;},removeExistingEnvs=_0x31b95b=>{const _0x45ef8b=a36_0x1115f0,_0x2b6be5={};_0x2b6be5[_0x45ef8b(0x111)]=function(_0x242200,_0x163ca8){return _0x242200>_0x163ca8;};const _0x1623c4=_0x2b6be5;let _0x5ae757=_0x31b95b[_0x45ef8b(0xe0)](_0x4dd357=>_0x4dd357===_0x45ef8b(0xe8));_0x1623c4[_0x45ef8b(0x111)](_0x5ae757,-0x1)&&_0x31b95b[_0x45ef8b(0xee)](_0x5ae757,0x2),_0x5ae757=_0x31b95b[_0x45ef8b(0xe0)](_0x577b47=>_0x577b47==='-e'),_0x1623c4['RNunG'](_0x5ae757,-0x1)&&_0x31b95b['splice'](_0x5ae757,0x2);};function a36_0xadf0(){const _0x506684=['36082VaZNzK','platform','test_settings','split','isUndefined','splice','cwd','existsSync','useW3C','info','trim','../../helpers/logger','now','platforms','../../helpers/BrowserStackSetup','nightwatch','SmwSZ','17Skdyug','ZZuNl','OeJxY','dThgs','getPlatformName','path','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','selenium','76pFbnkh','child_process','1735920pTpOGk','modifyBrowserStackW3CCaps','DtYPV','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','nightwatch.cmd','2138374WWJbmU','tRdoI','58086QmvVOa','length','lAJkl','join','gQFSz','winstonLogger','RNunG','close','webdriver','nightwatch.json','FdMrI','tEnFn','ydalc','forEach','env','../../helpers/helper','config','387648WXTywW','--config','push','unlinkSync','mergeDeep','273310qsGmYZ','OWLRL','start_process','desiredCapabilities','map','host','../utils/constants','oiARf','findIndex','QWIEh','nightwatch.conf.js','1290249kLWGDD','RXvFq','test','writeFileSync','ATfQx','--env'];a36_0xadf0=function(){return _0x506684;};return a36_0xadf0();}function run(_0x27563e,_0x46157a,_0x2a5816){const _0x23fb11=a36_0x1115f0,_0x5407e8={'tRdoI':_0x23fb11(0xf8),'dThgs':function(_0x515283,_0x11ec11){return _0x515283+_0x11ec11;},'zrwJH':'test_settings','ydalc':function(_0x1d8586,_0x471263,_0x246c06){return _0x1d8586(_0x471263,_0x246c06);},'vRSgR':'hub.browserstack.com','SmwSZ':_0x23fb11(0x107),'DtYPV':function(_0x26faad,_0x41ec1c){return _0x26faad===_0x41ec1c;},'gQFSz':'nightwatch-browserstack.json','Yovip':function(_0xb43338,_0x279f65){return _0xb43338(_0x279f65);},'ATfQx':function(_0x284c79,_0xd56498,_0x48f78f,_0x168cad){return _0x284c79(_0xd56498,_0x48f78f,_0x168cad);},'OWLRL':_0x23fb11(0x108),'lAJkl':_0x23fb11(0x11d),'FdMrI':_0x23fb11(0xe8),'OeJxY':'inherit','QWIEh':_0x23fb11(0x112)};if(!_0x2a5816[_0x23fb11(0x11b)])return;const _0x29f094=_0x5407e8[_0x23fb11(0x117)](getUserNightwatchConfigs,_0x27563e,_0x46157a),_0x3e5e74={};_0x3e5e74[_0x23fb11(0xda)]=![];const _0x3af29f={};_0x3af29f[_0x23fb11(0xdd)]=_0x5407e8['vRSgR'],_0x3af29f['port']=0x1bb;const _0x4dc46e={};_0x4dc46e[_0x23fb11(0x113)]=_0x3e5e74,_0x4dc46e[_0x23fb11(0x101)]=_0x3af29f;const _0x88328f=_0x4dc46e;logger[_0x23fb11(0xf2)](_0x5407e8[_0x23fb11(0xf9)]);const _0x1c1e94={..._0x29f094},_0x269ed5=_0x1c1e94,_0x359b2b=helper[_0x23fb11(0xf1)](_0x2a5816[_0x23fb11(0x11b)]),_0x3ba1b3=[];_0x2a5816[_0x23fb11(0x11b)][_0x23fb11(0xf6)][_0x23fb11(0x118)]((_0x493a02,_0xd96db9)=>{const _0xc899d6=_0x23fb11;_0x359b2b?_0x3ba1b3[_0xc899d6(0x11e)](helper[_0xc899d6(0x105)](_0x2a5816[_0xc899d6(0x11b)],_0x5407e8[_0xc899d6(0x10a)],_0xd96db9)):_0x3ba1b3[_0xc899d6(0x11e)](helper['modifyBrowserStackCaps'](_0x2a5816['config'],_0x5407e8[_0xc899d6(0x10a)],_0xd96db9));});const _0x24e7b8={},_0x1a1d63=[];_0x27563e[_0x23fb11(0x119)]=_0x27563e['env']||_0x27563e['e'];const _0x3a7dfd=_0x27563e[_0x23fb11(0x119)]?_0x27563e[_0x23fb11(0x119)]['trim']()[_0x23fb11(0xec)](',')[_0x23fb11(0xdc)](_0x278f72=>_0x278f72[_0x23fb11(0xf3)]())['filter'](_0x27e908=>_0x27e908!==''):[''];_0x5407e8[_0x23fb11(0x106)](_0x3a7dfd[_0x23fb11(0x10c)],0x0)&&_0x3a7dfd[_0x23fb11(0x11e)]('');_0x3a7dfd['forEach'](_0x1e1746=>{const _0x3d2e20={'tnXol':function(_0x2f85c0,_0x1c9e46){const _0x22d5e7=a36_0x234e;return _0x5407e8[_0x22d5e7(0xfd)](_0x2f85c0,_0x1c9e46);},'oiARf':_0x5407e8['zrwJH']};_0x3ba1b3['forEach'](_0x3fb51a=>{const _0x401ebd=a36_0x234e;let _0x31fbd5=_0x3d2e20['tnXol'](helper[_0x401ebd(0xfe)](_0x3fb51a,'_'),'_'+Date[_0x401ebd(0xf5)]());_0x1e1746&&(_0x31fbd5+='_'+_0x1e1746);if(_0x1e1746&&(!_0x29f094[_0x3d2e20['oiARf']]||!_0x29f094[_0x3d2e20[_0x401ebd(0xdf)]][_0x1e1746]))return;const _0x54e3b0={..._0x88328f};_0x54e3b0[_0x401ebd(0xdb)]=_0x3fb51a;const _0x148e25=_0x54e3b0;_0x24e7b8[_0x31fbd5]=_0x1e1746?helper[_0x401ebd(0x120)](_0x29f094[_0x3d2e20[_0x401ebd(0xdf)]][_0x1e1746],_0x148e25):_0x148e25,_0x1a1d63[_0x401ebd(0x11e)](_0x31fbd5);});});!_0x269ed5[_0x23fb11(0xeb)]&&(_0x269ed5[_0x23fb11(0xeb)]={});_0x269ed5[_0x23fb11(0xeb)]={..._0x269ed5[_0x23fb11(0xeb)],..._0x24e7b8};const _0x20b63e=path[_0x23fb11(0x10e)](__dirname,_0x5407e8[_0x23fb11(0x10f)]);fs[_0x23fb11(0xe6)](_0x20b63e,JSON['stringify'](_0x269ed5)),_0x5407e8['Yovip'](removeExistingEnvs,_0x46157a);const _0x2472da=_0x5407e8[_0x23fb11(0xe7)](spawn,/^win/[_0x23fb11(0xe5)](process[_0x23fb11(0xea)])?_0x5407e8[_0x23fb11(0xd9)]:_0x5407e8[_0x23fb11(0x10a)],[_0x5407e8[_0x23fb11(0x10d)],_0x20b63e,..._0x46157a['slice'](0x1),_0x5407e8[_0x23fb11(0x115)],_0x1a1d63[_0x23fb11(0x10e)](',')],{'stdio':_0x5407e8[_0x23fb11(0xfc)]});_0x2472da['on'](_0x5407e8[_0x23fb11(0xe1)],async _0x3bf3be=>{const _0x14cfe9=_0x23fb11;logger['debug']('child\x20process\x20exited\x20with\x20code\x20'+_0x3bf3be),logger[_0x14cfe9(0xf2)]('Deleting\x20'+_0x20b63e),fs[_0x14cfe9(0x11f)](_0x20b63e);});}module['exports']=run;
|
|
@@ -1 +1 @@
|
|
|
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
|
+
function a37_0x21fd(){const _0x335a65=['browserName','includeIssueType','../../helpers/helper','browserstack.accessibility','YcSMh','accessibilityPlatform','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x20100.','stringify','26279830yUeUPv','kQLpt','playwright-chromium','../../helpers/accessibility-automation/helper','command','No\x20accessibility\x20results\x20were\x20found.','includes','2610492pUsifD','lflcp','11MpAFPT','qcKoW','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','hMHIH','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','149766fBaKvT','name','accessibilityOptions.wcagVersion','util','getAccessibilityResultsSummary','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','HNCzP','browserStackEvaluate','env','bestPractice','../../helpers/performance/performance-tester','../../helpers/accessibility-automation/scripts','latest','performScan','NYFXQ','Performing\x20scan\x20with\x20method:\x20','FtYSE','measureWrapper','SyMXU','deviceName','../../helpers/logger','zvogC','executeScript','WebDriver','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','VHmOl','XwQdS','mQePn','uOaBb','OqfLG','mtaQl','PERFORM_SCAN','BS_A11Y_JWT','format','needsReview','24jkKOfk','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','sEUwX','browser_version','7byZNul','qbbnJ','LxKKv','bstackSdkArgs','isNLO','tZikg','constructor','brNne','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','Playwright','debug','workerInfo','\x20page:\x20','wcagVersion','NZXCu','KXGvl','ABPCi','connectOptions','evaluate','dpNZB','PsHDz','browserStackExecuteDriver','8202033EPYcxp','2438265lZPFAV','QlNOP','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','platformValidation','dXmry','FlQsl','warn','wsEndpoint','(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','QDajX','error','kRZmL','YmVqo','2303280BuZHOE','(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','SJcHh','replace','processAccessibilityCaps','pYItP','hDEEJ','Qndhz','accessibilityOptions.includeIssueType.needsReview','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','scannerProcessingTimeout','project','accessibilityOptions.scannerVersion','scannerVersion','browser','chrome','nWGLw','MgvID','1264555BBErNN','PCNUL','QhpMw','../../helpers/performance/constants','testInfo','accessibilityOptions','4UbNoto','use','getAccessibilityResults','accessibilityOptions.scannerProcessingTimeout'];a37_0x21fd=function(){return _0x335a65;};return a37_0x21fd();}const a37_0x26423d=a37_0x173a;(function(_0xbd82c5,_0x589490){const _0x366a58=a37_0x173a,_0x5399ed=_0xbd82c5();while(!![]){try{const _0x5eb951=-parseInt(_0x366a58(0x23f))/0x1*(parseInt(_0x366a58(0x218))/0x2)+-parseInt(_0x366a58(0x256))/0x3+parseInt(_0x366a58(0x1fd))/0x4*(-parseInt(_0x366a58(0x1f7))/0x5)+-parseInt(_0x366a58(0x211))/0x6+-parseInt(_0x366a58(0x1e5))/0x7*(parseInt(_0x366a58(0x23b))/0x8)+parseInt(_0x366a58(0x255))/0x9+parseInt(_0x366a58(0x20a))/0xa*(parseInt(_0x366a58(0x213))/0xb);if(_0x5eb951===_0x589490)break;else _0x5399ed['push'](_0x5399ed['shift']());}catch(_0x1df917){_0x5399ed['push'](_0x5399ed['shift']());}}}(a37_0x21fd,0x80ba7));const util=require(a37_0x26423d(0x21b)),logger=require(a37_0x26423d(0x22c))['winstonLogger'],{isAccessibilityAutomationSession}=require(a37_0x26423d(0x20d)),{isUndefined,isBrowserstackInfra}=require(a37_0x26423d(0x203)),scripts=require(a37_0x26423d(0x223)),PerformanceTester=require(a37_0x26423d(0x222)),{A11Y_EVENTS:PerformanceA11yEvents}=require(a37_0x26423d(0x1fa));function a37_0x173a(_0x4e9f69,_0x419ee3){const _0x21fd1c=a37_0x21fd();return a37_0x173a=function(_0x173afb,_0x5d2896){_0x173afb=_0x173afb-0x1e4;let _0x2d815e=_0x21fd1c[_0x173afb];return _0x2d815e;},a37_0x173a(_0x4e9f69,_0x419ee3);}exports[a37_0x26423d(0x21f)]=async(_0x546763,_0x3391b7,_0x49dbe7={})=>{const _0x35e3a4=a37_0x26423d,_0x469ba5={};_0x469ba5[_0x35e3a4(0x205)]=_0x35e3a4(0x242);const _0x1879ea=_0x469ba5;return await _0x546763[_0x35e3a4(0x251)](_0x35e3a4(0x25e)+_0x3391b7[_0x35e3a4(0x1e8)](/arguments/g,_0x1879ea['YcSMh'])+_0x35e3a4(0x215)+JSON[_0x35e3a4(0x209)](_0x49dbe7)+')');},exports[a37_0x26423d(0x254)]=async(_0x50b23f,_0x4a7f93,_0x809fa7={})=>{const _0x2f6465=a37_0x26423d,_0x4df14e={};_0x4df14e['QlNOP']=function(_0x337721,_0x22bc41){return _0x337721===_0x22bc41;},_0x4df14e['PsHDz']=_0x2f6465(0x22f),_0x4df14e[_0x2f6465(0x24e)]=function(_0x36471b,_0x372a4d){return _0x36471b===_0x372a4d;},_0x4df14e[_0x2f6465(0x25a)]=_0x2f6465(0x248),_0x4df14e[_0x2f6465(0x1f5)]=_0x2f6465(0x242);const _0x121608=_0x4df14e;if(_0x121608[_0x2f6465(0x257)](_0x50b23f[_0x2f6465(0x245)][_0x2f6465(0x219)],_0x121608[_0x2f6465(0x253)]))return await _0x50b23f['executeAsyncScript'](_0x4a7f93,_0x809fa7);else{if(_0x121608[_0x2f6465(0x24e)](_0x50b23f['constructor'][_0x2f6465(0x219)],_0x121608[_0x2f6465(0x25a)]))return await _0x50b23f[_0x2f6465(0x22e)](_0x2f6465(0x1e6)+_0x4a7f93[_0x2f6465(0x1e8)](/arguments/g,_0x121608[_0x2f6465(0x1f5)])+_0x2f6465(0x230)+JSON[_0x2f6465(0x209)](_0x809fa7)+')');}},exports['setAccessibilityCapabilities']=async _0x53be7b=>{const _0x2734be=a37_0x26423d,_0x4e50f1={};_0x4e50f1[_0x2734be(0x236)]=_0x2734be(0x21a),_0x4e50f1['kQLpt']=_0x2734be(0x200),_0x4e50f1['brNne']='accessibilityOptions.includeIssueType.bestPractice',_0x4e50f1[_0x2734be(0x240)]=_0x2734be(0x1ed),_0x4e50f1[_0x2734be(0x1ec)]='accessibilityOptions.authToken',_0x4e50f1[_0x2734be(0x22a)]=_0x2734be(0x1f1);const _0x789849=_0x4e50f1;_0x53be7b[_0x2734be(0x1fc)]&&(_0x53be7b['accessibilityOptions'][_0x2734be(0x24c)]&&(_0x53be7b[_0x789849['mtaQl']]=_0x53be7b[_0x2734be(0x1fc)][_0x2734be(0x24c)]),_0x53be7b[_0x2734be(0x1fc)][_0x2734be(0x1ef)]&&(_0x53be7b[_0x789849[_0x2734be(0x20b)]]=_0x53be7b[_0x2734be(0x1fc)][_0x2734be(0x1ef)]),_0x53be7b['accessibilityOptions'][_0x2734be(0x202)]&&(_0x53be7b[_0x789849[_0x2734be(0x246)]]=_0x53be7b[_0x2734be(0x1fc)][_0x2734be(0x202)][_0x2734be(0x221)],_0x53be7b[_0x789849[_0x2734be(0x240)]]=_0x53be7b[_0x2734be(0x1fc)][_0x2734be(0x202)][_0x2734be(0x23a)]));const _0x4b9a2a=JSON['parse'](process[_0x2734be(0x220)][_0x2734be(0x258)])[_0x2734be(0x1f2)];_0x53be7b[_0x789849['Qndhz']]=process[_0x2734be(0x220)][_0x2734be(0x238)],_0x53be7b[_0x789849[_0x2734be(0x22a)]]=_0x4b9a2a,delete _0x53be7b[_0x2734be(0x1fc)];},exports[a37_0x26423d(0x1ff)]=async _0x159dc2=>{const _0x2813ba=a37_0x26423d,_0x3abef1={};_0x3abef1[_0x2813ba(0x22d)]=_0x2813ba(0x20f),_0x3abef1['XwQdS']=_0x2813ba(0x23c);const _0x51711d=_0x3abef1;if(global[_0x2813ba(0x206)])try{logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x159dc2,scripts.performScan)));},{command:'getAccessibilityResults'})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x159dc2,scripts.getResults);})();return res;}catch{return logger[_0x2813ba(0x260)](_0x51711d['zvogC']),[];}else return logger[_0x2813ba(0x25c)](_0x51711d[_0x2813ba(0x232)]),[];},exports[a37_0x26423d(0x225)]=async(_0x206e3f,_0xa1f5dc='')=>{const _0x3800b7=a37_0x26423d;logger[_0x3800b7(0x249)](_0x3800b7(0x227)+_0xa1f5dc+_0x3800b7(0x24b)+_0x206e3f);if(global[_0x3800b7(0x206)])return await PerformanceTester[_0x3800b7(0x229)](PerformanceA11yEvents[_0x3800b7(0x237)],async()=>{const _0x4242ee=_0x3800b7,_0x368322={};_0x368322[_0x4242ee(0x20e)]=_0xa1f5dc,await exports['browserStackEvaluate'](_0x206e3f,scripts['performScan'],_0x368322);},{'command':_0xa1f5dc})();},exports[a37_0x26423d(0x21c)]=async _0x95d837=>{const _0x2976a1=a37_0x26423d,_0x4c0d64={};_0x4c0d64[_0x2976a1(0x233)]='No\x20summaryResults\x20found.',_0x4c0d64[_0x2976a1(0x24d)]=_0x2976a1(0x207);const _0x186480=_0x4c0d64;if(global[_0x2976a1(0x206)])try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x95d837,scripts.performScan)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x95d837,scripts.getResultsSummary);})();return summaryResults;}catch{return logger['debug'](_0x186480[_0x2976a1(0x233)]),{};}else return logger[_0x2976a1(0x25c)](_0x186480[_0x2976a1(0x24d)]),{};},exports[a37_0x26423d(0x259)]=async _0x2c1f08=>{const _0x49df68=a37_0x26423d,_0x5a0b38={'QhpMw':function(_0xec830c,_0x2a09fe){return _0xec830c!==_0x2a09fe;},'ABPCi':_0x49df68(0x247),'iAiwB':_0x49df68(0x1f4),'PCNUL':'playwright-chromium','HNCzP':'chromium','qcKoW':_0x49df68(0x217),'LxKKv':function(_0x2ce63f,_0x5c5ee0){return _0x2ce63f(_0x5c5ee0);},'kRZmL':function(_0x14fb94){return _0x14fb94();},'NYFXQ':function(_0x404d91,_0x3d14ce){return _0x404d91<_0x3d14ce;},'VHmOl':_0x49df68(0x208),'FlQsl':function(_0x387b27,_0x3b65be){return _0x387b27===_0x3b65be;},'FtYSE':_0x49df68(0x224),'OqfLG':function(_0x346394,_0x2943ba){return _0x346394>_0x2943ba;},'YmVqo':_0x49df68(0x1ee)};try{if(!_0x5a0b38[_0x49df68(0x1f9)](_0x2c1f08[_0x49df68(0x22b)],''))return logger[_0x49df68(0x25c)](_0x5a0b38[_0x49df68(0x24f)]),![];const _0x3f0fbd=_0x2c1f08[_0x49df68(0x1f3)];if(![_0x5a0b38['iAiwB'],_0x5a0b38[_0x49df68(0x1f8)],_0x5a0b38[_0x49df68(0x21e)]][_0x49df68(0x210)](_0x3f0fbd))return logger['warn'](_0x5a0b38[_0x49df68(0x214)]),![];const _0x121ddc=_0x5a0b38[_0x49df68(0x241)](parseInt,_0x2c1f08['browser_version']);!_0x5a0b38[_0x49df68(0x261)](isBrowserstackInfra)&&(!_0x5a0b38[_0x49df68(0x226)](_0x121ddc,0x64)&&logger[_0x49df68(0x25c)](_0x5a0b38[_0x49df68(0x231)]));if(!(_0x5a0b38[_0x49df68(0x25b)](_0x121ddc,_0x5a0b38[_0x49df68(0x228)])||_0x5a0b38[_0x49df68(0x235)](_0x121ddc,0x5e)))return logger['warn'](_0x5a0b38[_0x49df68(0x1e4)]),![];}catch(_0xd7e6e3){logger[_0x49df68(0x249)]('Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20'+util['format'](_0xd7e6e3));}return!![];},exports[a37_0x26423d(0x1e9)]=(_0x3bedbe,_0x13d654,_0x23ef52)=>{const _0x32998f=a37_0x26423d,_0x27636d={'sEUwX':function(_0x36ac95){return _0x36ac95();},'uOaBb':_0x32998f(0x204),'tZikg':function(_0x1e0359,_0x433ab2){return _0x1e0359===_0x433ab2;},'apZmQ':_0x32998f(0x1f4),'hMHIH':_0x32998f(0x20c),'dpNZB':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','isNLO':function(_0x4081d9,_0x1a8a99){return _0x4081d9>_0x1a8a99;},'lflcp':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x20100.','MgvID':_0x32998f(0x224),'wLZPU':function(_0x186f38,_0x13fd9e){return _0x186f38>_0x13fd9e;},'hDEEJ':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','SJcHh':function(_0x4c4701,_0x3e8b1d){return _0x4c4701(_0x3e8b1d);},'QDajX':_0x32998f(0x247),'pYItP':function(_0x2e479c,_0x211adc){return _0x2e479c+_0x211adc;}};try{if(_0x27636d[_0x32998f(0x23d)](isAccessibilityAutomationSession)){global[_0x32998f(0x206)]=!![];!_0x3bedbe[_0x27636d[_0x32998f(0x234)]]&&(global['accessibilityPlatform']=![]);!(_0x27636d['tZikg'](_0x3bedbe[_0x32998f(0x201)],_0x27636d['apZmQ'])||_0x27636d[_0x32998f(0x244)](_0x3bedbe[_0x32998f(0x201)],_0x27636d[_0x32998f(0x216)])||_0x27636d['tZikg'](_0x3bedbe[_0x32998f(0x1f3)],_0x27636d['apZmQ'])||_0x27636d['tZikg'](_0x3bedbe['browser'],_0x27636d['hMHIH']))&&(logger[_0x32998f(0x25c)](_0x27636d[_0x32998f(0x252)]),global[_0x32998f(0x206)]=![]);!_0x27636d[_0x32998f(0x23d)](isBrowserstackInfra)&&(!_0x27636d[_0x32998f(0x243)](_0x3bedbe[_0x32998f(0x23e)],0x64)&&logger[_0x32998f(0x25c)](_0x27636d[_0x32998f(0x212)]));!(_0x27636d[_0x32998f(0x244)](_0x3bedbe['browser_version'],_0x27636d[_0x32998f(0x1f6)])||_0x27636d['wLZPU'](_0x3bedbe[_0x32998f(0x23e)],0x5e))&&(logger[_0x32998f(0x25c)](_0x27636d[_0x32998f(0x1eb)]),global[_0x32998f(0x206)]=![]);!_0x27636d['SJcHh'](isUndefined,_0x3bedbe['deviceName'])&&(logger[_0x32998f(0x25c)](_0x27636d[_0x32998f(0x25f)]),global[_0x32998f(0x206)]=![]);if(!global[_0x32998f(0x206)]){_0x3bedbe[_0x27636d[_0x32998f(0x234)]]=![];const _0x5d7668=_0x27636d[_0x32998f(0x1ea)](_0x13d654,_0x27636d[_0x32998f(0x1e7)](encodeURIComponent,JSON[_0x32998f(0x209)](_0x3bedbe)));_0x23ef52&&(_0x23ef52['currentTest'][_0x32998f(0x1fb)][_0x32998f(0x1f0)][_0x32998f(0x1fe)]['connectOptions'][_0x32998f(0x25d)]=_0x5d7668,_0x23ef52[_0x32998f(0x24a)][_0x32998f(0x1f0)][_0x32998f(0x1fe)][_0x32998f(0x250)][_0x32998f(0x25d)]=_0x5d7668);}}else global[_0x32998f(0x206)]=![];}catch(_0x5e33e6){logger[_0x32998f(0x249)](_0x32998f(0x21d)+util[_0x32998f(0x239)](_0x5e33e6));}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
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;
|
|
2
|
+
'use strict';const a38_0x4e1bc3=a38_0xf88d;(function(_0x28e896,_0x3f5ce4){const _0x14dcd3=a38_0xf88d,_0x50a06f=_0x28e896();while(!![]){try{const _0x467a4b=-parseInt(_0x14dcd3(0xfe))/0x1+-parseInt(_0x14dcd3(0x158))/0x2+-parseInt(_0x14dcd3(0x13a))/0x3+-parseInt(_0x14dcd3(0x149))/0x4*(parseInt(_0x14dcd3(0x177))/0x5)+parseInt(_0x14dcd3(0x185))/0x6*(-parseInt(_0x14dcd3(0x189))/0x7)+parseInt(_0x14dcd3(0xf9))/0x8*(-parseInt(_0x14dcd3(0x151))/0x9)+parseInt(_0x14dcd3(0x18b))/0xa*(parseInt(_0x14dcd3(0x13e))/0xb);if(_0x467a4b===_0x3f5ce4)break;else _0x50a06f['push'](_0x50a06f['shift']());}catch(_0x4a7209){_0x50a06f['push'](_0x50a06f['shift']());}}}(a38_0x2703,0x9d892));function a38_0xf88d(_0x52e3bc,_0x422c0f){const _0x270312=a38_0x2703();return a38_0xf88d=function(_0xf88d9f,_0x41dc4b){_0xf88d9f=_0xf88d9f-0xe6;let _0x47c03f=_0x270312[_0xf88d9f];return _0x47c03f;},a38_0xf88d(_0x52e3bc,_0x422c0f);}const fs=require('fs'),path=require('path'),{spawn}=require('child_process'),{format}=require(a38_0x4e1bc3(0x14b)),logger=require('../../helpers/logger')[a38_0x4e1bc3(0x13c)],{default:BrowserStackSetup}=require(a38_0x4e1bc3(0x131)),helper=require(a38_0x4e1bc3(0x17a)),utilities=require('../../helpers/utilities'),constants=require('../utils/constants'),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{getConfigLoaderPath}=require(a38_0x4e1bc3(0x13f)),{checkAccessibilityPlatformConfig}=require(a38_0x4e1bc3(0xef)),{setAccessibilityCapabilities}=require('./accessibility-helper'),{printBuildLink}=require(a38_0x4e1bc3(0xf3)),TestDetails=require(a38_0x4e1bc3(0x152)),TestHubHandler=require(a38_0x4e1bc3(0x12b)),PerformanceTester=require('../../helpers/performance/performance-tester'),BrowserstackCLI=require(a38_0x4e1bc3(0x11d)),PerformanceEvents=require(a38_0x4e1bc3(0x17c))[a38_0x4e1bc3(0x19b)],CLIUtils=require(a38_0x4e1bc3(0x169)),TestInfo=require(a38_0x4e1bc3(0x176)),getUserPlaywrightConfig=async(_0x180d2f,_0x42f20a)=>{const _0x1e2757=a38_0x4e1bc3,_0x48b2ec={'YmoAS':function(_0x2b2447){return _0x2b2447();},'mhgWr':function(_0x5ec8b9,_0x53aad2){return _0x5ec8b9(_0x53aad2);},'cItdr':function(_0x5a9217,_0x24367b){return _0x5a9217(_0x24367b);},'exlLk':_0x1e2757(0x17b),'NctQn':_0x1e2757(0x174)},_0x52b711=!helper[_0x1e2757(0x18d)](_0x180d2f[_0x1e2757(0xe7)]),_0x483df5=_0x52b711?path['resolve'](process[_0x1e2757(0x123)](),_0x180d2f[_0x1e2757(0xe7)]):process[_0x1e2757(0x123)](),{resolveConfigFile:_0x1bc062,resolveConfigLocation:_0x16e750}=helper[_0x1e2757(0x110)][_0x1e2757(0x184)](null,_0x48b2ec['YmoAS'](getConfigLoaderPath)),_0x5ad937=_0x1bc062?_0x48b2ec[_0x1e2757(0x17e)](_0x1bc062,_0x483df5):helper['nestedKeyValue'](_0x48b2ec[_0x1e2757(0x195)](_0x16e750,_0x483df5),[_0x48b2ec[_0x1e2757(0x16f)]]),_0x41ef7a={};if(_0x52b711){const _0x483de8=_0x42f20a['findIndex'](_0x1db780=>_0x1db780===_0x1e2757(0x183)||_0x1db780==='-c'||_0x1db780['startsWith']('--config='));_0x42f20a[_0x1e2757(0x15a)](_0x483de8,_0x42f20a[_0x483de8][_0x1e2757(0x10a)](_0x48b2ec[_0x1e2757(0x164)])?0x1:0x2);}const _0x506b19={};return _0x506b19[_0x1e2757(0x156)]=_0x5ad937,_0x506b19['config']=_0x41ef7a,_0x506b19;},handleO11yRerun=_0x2357be=>{const _0x43ded0=a38_0x4e1bc3,_0x27f287={};_0x27f287[_0x43ded0(0x106)]=_0x43ded0(0x133);const _0x135680=_0x27f287,_0x1c995a=helper['isTrue'](process['env'][_0x43ded0(0x196)]);if(_0x1c995a){const _0x437fe6=process['env'][_0x43ded0(0x171)],_0x3715c0=[];if(helper[_0x43ded0(0x10f)](_0x437fe6)&&!helper[_0x43ded0(0x18d)](_0x437fe6)){_0x437fe6[_0x43ded0(0x18a)](',')[_0x43ded0(0x16d)](_0x43f852=>{const _0x170498=_0x43ded0;_0x3715c0[_0x170498(0x128)]('('+_0x43f852[_0x170498(0x140)]()+')');});const _0x2c9190='^'+_0x3715c0[_0x43ded0(0x187)]('|')+'$';_0x2357be['push'](_0x135680[_0x43ded0(0x106)],_0x2c9190);}}},spawnOriginalProcess=_0x5baab8=>{const _0x31a776=a38_0x4e1bc3,_0x29b192={'WbCYf':function(_0x2d3c90,_0x334801,_0x122b9e,_0x57b453){return _0x2d3c90(_0x334801,_0x122b9e,_0x57b453);},'jrQWW':_0x31a776(0x105),'AJPfR':_0x31a776(0xf7),'zSgSQ':function(_0x516c92,_0x1eff82){return _0x516c92===_0x1eff82;},'uOeen':_0x31a776(0x17f),'YCwJa':_0x31a776(0x19a)};_0x29b192[_0x31a776(0x16a)](spawn,_0x29b192[_0x31a776(0x141)],[_0x29b192[_0x31a776(0x148)],..._0x5baab8[_0x31a776(0x153)](0x1)],{'shell':_0x29b192[_0x31a776(0x159)](process[_0x31a776(0x115)],_0x29b192[_0x31a776(0x186)]),'stdio':_0x29b192[_0x31a776(0x199)],'cwd':process[_0x31a776(0x123)]()});},isTestCommand=(_0x256a7f,_0x350d1a)=>{const _0xf72576=a38_0x4e1bc3,_0x33344e={};_0x33344e['hLlZL']=function(_0x3c0dd4,_0x478cc1){return _0x3c0dd4>_0x478cc1;},_0x33344e[_0xf72576(0x192)]=function(_0x3e980a,_0x130462){return _0x3e980a===_0x130462;},_0x33344e[_0xf72576(0x160)]=_0xf72576(0x162);const _0x59df23=_0x33344e;if(_0x59df23[_0xf72576(0x101)](_0x350d1a[_0xf72576(0x175)],0x1)&&_0x59df23['reWPD'](_0x350d1a[0x1],_0x59df23[_0xf72576(0x160)]))return!![];return![];};function a38_0x2703(){const _0x4c57d8=['isTrue','--grep','NuIyo','exitCode','BROWSERSTACK_SETUP_CONFIG_PATH','measureWrapper','UqoEJ','get','2916039Wxbohj','pQuci','winstonLogger','setBrowserstackConfig','11Ikllaq','./reporter/pwUtils','trim','jrQWW','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','false','logLevel','ftWrR','readdirSync','readFileSync','AJPfR','76wPMetT','MODULE','util','XLnzN','BROWSERSTACK_TEST_OBSERVABILITY','skipSessionName','qRybl','accessibility','9nQHMCq','./reporter/test-details','slice','end','clearTempPWConfig','path','exports','706982qqbHDL','zSgSQ','splice','sUuFi','getInstance','Deleting\x20','error','duxxK','jRIhX','env','test','shutdown','NctQn','XAEpq','start','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','filterBrowserstackArgs','../v2/cliUtils','WbCYf','dirname','close','map','skipSessionStatus','exlLk','browserstackAutomation','BROWSERSTACK_RERUN_TESTS','GUmlS','launchBuild','--config=','length','../v2/TestInfo','20730hXSXDX','wgWwz','homedir','../../helpers/helper','resolvedConfigFile','../../helpers/performance/constants','unlinkSync','mhgWr','win32','fLSVU','SDK_POST_INITIALIZE','automation','--config','apply','5733606aZzwgH','uOeen','join','JeOOq','7YnMXVo','split','32176490zQCvVk','setFrameworkDetail','isUndefined','Updated\x20config\x20file\x20name\x20to\x20-\x20','VRnwR','has','concat','reWPD','SBuYf','SDK_SETUP','cItdr','BROWSERSTACK_RERUN','Error\x20in\x20getting\x20funnel\x20data\x20results','accessibilityOptions','YCwJa','inherit','EVENTS','playwright-browserstack-sdk.config.js','config','Error\x20in\x20closing\x20playwright','aemYu','plJhF','testObservability','czScu','parse','bootstrap','../../helpers/accessibility-automation/helper','serializeToYamlString','BROWSERSTACK_AUTOMATION','trace_','../../helpers/test-observability/utils','GKLMB','debug','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','playwright','indexOf','415696JDpxoF','fTegZ','stringify','.browserstack','testContextOptions','160542mqvyoR','USER_CONFIG_DETAILS_PATH','pw_result.json','hLlZL','WgdOY','BrowserStack\x20config\x20file\x20not\x20found.','Error\x20in\x20deleting\x20playwright\x20results','npx','Hkddi','stop','getPackageType','YZoFg','startsWith','writeFileSync','PLAYWRIGHT','IfMqs','cBbSJ','validateRerunTestList','requirePWModule','pcgnp','yzoPc','CkeQR','YXQyz','platform','finalExecution','isRunning','filter','oRSFt','existsSync','Rzlsl','resolve','../v2/browserstackCLI','VGWNc','isFalse','getProxyUrl','true','browserstackSetupConfig.json','cwd','--disable-browserstack-automation','gvyVN','playwright-browserstack-sdk.config.cjs','qfqRs','push','SDK_PRE_INITIALIZE','FYdzn','../../helpers/testhub/testhubHandler','oAVHF','cliConfig','forEach','BROWSERSTACK_TEST_ACCESSIBILITY_YML','Playwright\x20process\x20exited\x20with\x20code\x20','../../helpers/BrowserStackSetup'];a38_0x2703=function(){return _0x4c57d8;};return a38_0x2703();}async function run(_0x3da727,_0xc8ebec,_0x17d92a){const _0x317346=a38_0x4e1bc3,_0x332fc5={'sUuFi':function(_0x57ac44){return _0x57ac44();},'czScu':function(_0x1a7d62){return _0x1a7d62();},'YXQyz':_0x317346(0xfc),'SBuYf':function(_0x3632ea,_0x25aaad){return _0x3632ea+_0x25aaad;},'pcgnp':_0x317346(0xe8),'CkeQR':function(_0x5e238a,_0x1a26a1){return _0x5e238a(_0x1a26a1);},'Rzlsl':_0x317346(0x100),'NuIyo':_0x317346(0x197),'yzoPc':_0x317346(0x103),'ftWrR':function(_0x4f5023,_0x2e4291){return _0x4f5023===_0x2e4291;},'VGWNc':_0x317346(0x143),'FYdzn':'--disable-test-observability','OfUtz':function(_0x4ae4eb,_0x4b410c){return _0x4ae4eb>=_0x4b410c;},'WgdOY':_0x317346(0x182),'SNaha':function(_0x332a45,_0x1a6e0b){return _0x332a45!=_0x1a6e0b;},'qRybl':function(_0x4e4a31,_0x26d3fc,_0x5f5228){return _0x4e4a31(_0x26d3fc,_0x5f5228);},'IfMqs':function(_0x3affb1,_0x481f00){return _0x3affb1===_0x481f00;},'XAEpq':_0x317346(0x121),'oRSFt':_0x317346(0x122),'qfqRs':function(_0x3768b7,_0x1ef975){return _0x3768b7===_0x1ef975;},'XbyPf':_0x317346(0x126),'fTegZ':_0x317346(0xe6),'aemYu':function(_0x335fb5,_0x250575){return _0x335fb5-_0x250575;},'pQuci':function(_0x494412,_0xffa85a){return _0x494412+_0xffa85a;},'POiTN':_0x317346(0x18e),'VRnwR':function(_0xdb71f,_0x3cead1){return _0xdb71f>_0x3cead1;},'plJhF':function(_0x29f111,_0x2eb658){return _0x29f111+_0x2eb658;},'fLSVU':function(_0x30a2c9,_0x5d58d9,_0x1b5ad7,_0x213c15){return _0x30a2c9(_0x5d58d9,_0x1b5ad7,_0x213c15);},'oAVHF':_0x317346(0x105),'GKLMB':_0x317346(0xf7),'XLnzN':'test','anPPd':_0x317346(0x183),'duxxK':_0x317346(0x17f),'JeOOq':_0x317346(0x19a),'gvyVN':_0x317346(0x16c),'cNJEB':_0x317346(0x104)};try{const _0x1790ce=path[_0x317346(0x187)](helper[_0x317346(0x179)](),_0x332fc5[_0x317346(0x114)],_0x332fc5[_0x317346(0x11b)]);fs[_0x317346(0x11a)](_0x1790ce)&&fs[_0x317346(0x17d)](_0x1790ce);}catch(_0x2bc94e){logger[_0x317346(0xf5)](_0x332fc5[_0x317346(0xea)](_0x332fc5['cNJEB'],_0x2bc94e));}if(!_0x332fc5[_0x317346(0x14f)](isTestCommand,_0x3da727,_0xc8ebec)){_0x332fc5['CkeQR'](spawnOriginalProcess,_0xc8ebec);return;}await PerformanceTester[_0x317346(0x137)](PerformanceEvents[_0x317346(0x129)],async()=>{const _0x35ee2f=_0x317346,_0x51f572={'cBbSJ':function(_0x4fd62e,_0x584f8d){return _0x332fc5['CkeQR'](_0x4fd62e,_0x584f8d);},'YZoFg':_0x332fc5['YXQyz'],'GUmlS':_0x332fc5['Rzlsl'],'UqoEJ':function(_0x596dbb,_0x2a736b){const _0x1954fd=a38_0xf88d;return _0x332fc5[_0x1954fd(0x193)](_0x596dbb,_0x2a736b);},'wgWwz':_0x332fc5[_0x35ee2f(0x134)]};if(!_0x17d92a[_0x35ee2f(0xe7)]){logger[_0x35ee2f(0x15e)](_0x332fc5[_0x35ee2f(0x112)]);return;}await _0x17d92a['initialize'](_0x3da727),CLIUtils[_0x35ee2f(0x18c)](FRAMEWORKS[_0x35ee2f(0x10c)],FRAMEWORKS[_0x35ee2f(0x10c)]),BrowserstackCLI[_0x35ee2f(0x15c)]()[_0x35ee2f(0x13d)](_0x17d92a[_0x35ee2f(0xe7)],_0x17d92a[_0x35ee2f(0x12d)]),await BrowserstackCLI[_0x35ee2f(0x15c)]()[_0x35ee2f(0xee)]();const _0x4e1607=BrowserstackCLI[_0x35ee2f(0x15c)]()['getConfig']();!helper[_0x35ee2f(0x11f)](_0x4e1607[_0x35ee2f(0x170)])&&(process[_0x35ee2f(0x161)][_0x35ee2f(0xf1)]=!![]);_0x332fc5['ftWrR'](_0x4e1607[_0x35ee2f(0x170)],![])&&(process[_0x35ee2f(0x161)][_0x35ee2f(0xf1)]=_0x332fc5[_0x35ee2f(0x11e)],_0xc8ebec=_0xc8ebec['filter'](_0x3cae74=>_0x3cae74!==_0x35ee2f(0x124)));const _0x3eab88=_0xc8ebec[_0x35ee2f(0xf8)](_0x332fc5[_0x35ee2f(0x12a)]);(_0x332fc5['OfUtz'](_0x3eab88,0x0)||_0x332fc5[_0x35ee2f(0x145)](_0x4e1607[_0x35ee2f(0xeb)],![]))&&(process[_0x35ee2f(0x161)][_0x35ee2f(0x14d)]=_0x332fc5['VGWNc'],_0xc8ebec=_0xc8ebec['filter'](_0x5ad0cf=>_0x5ad0cf!=='--disable-test-observability'));!helper[_0x35ee2f(0x18d)](_0x17d92a['cliConfig'])&&_0x17d92a[_0x35ee2f(0x12d)][_0x35ee2f(0x190)](_0x332fc5[_0x35ee2f(0x102)])&&(process[_0x35ee2f(0x161)][_0x35ee2f(0xf1)]=_0x17d92a[_0x35ee2f(0x12d)][_0x35ee2f(0x139)](_0x332fc5[_0x35ee2f(0x102)])||!![]);_0x332fc5['SNaha'](_0x17d92a['config'][_0x35ee2f(0xeb)],null)&&!helper[_0x35ee2f(0x132)](process[_0x35ee2f(0x161)]['BROWSERSTACK_TEST_OBSERVABILITY'])&&(process[_0x35ee2f(0x161)][_0x35ee2f(0x14d)]=process[_0x35ee2f(0x161)][_0x35ee2f(0x14d)]||_0x17d92a['config'][_0x35ee2f(0xeb)]);const _0x19e0a9=!helper[_0x35ee2f(0x11f)](process['env'][_0x35ee2f(0x14d)]);_0x17d92a[_0x35ee2f(0xe7)][_0x35ee2f(0x198)]&&(process[_0x35ee2f(0x161)][_0x35ee2f(0xf6)]=JSON[_0x35ee2f(0xfb)](_0x17d92a[_0x35ee2f(0xe7)]['accessibilityOptions']));let _0x1d1450=![];_0x17d92a['config'][_0x35ee2f(0x150)]&&(_0x1d1450=!![],process[_0x35ee2f(0x161)][_0x35ee2f(0x12f)]=_0x17d92a[_0x35ee2f(0xe7)][_0x35ee2f(0x150)]);const _0x225f04=_0xc8ebec[_0x35ee2f(0x191)](),_0x3b7e94=await _0x332fc5[_0x35ee2f(0x14f)](getUserPlaywrightConfig,_0x3da727,_0xc8ebec);if(helper[_0x35ee2f(0x18d)](_0x3b7e94)){_0x332fc5[_0x35ee2f(0x113)](spawnOriginalProcess,_0x225f04);return;}const _0x1f2983=_0x3b7e94['path']?path[_0x35ee2f(0x16b)](_0x3b7e94['path']):process[_0x35ee2f(0x123)]();process[_0x35ee2f(0x161)]['BROWSERSTACK_PW_CONFIG_DIR']=_0x1f2983,await PerformanceTester[_0x35ee2f(0x137)](PerformanceEvents[_0x35ee2f(0x181)],async()=>{const _0x3fb651=_0x35ee2f;!BrowserstackCLI['getInstance']()['isRunning']()&&await TestHubHandler[_0x3fb651(0x173)](FRAMEWORKS[_0x3fb651(0x10c)],_0x17d92a),_0x19e0a9&&_0x51f572[_0x3fb651(0x10e)](handleO11yRerun,_0xc8ebec);})();if(!BrowserstackCLI['getInstance']()[_0x35ee2f(0x117)]()){let _0x3a792d=_0x332fc5[_0x35ee2f(0x10d)](process[_0x35ee2f(0x161)][_0x35ee2f(0x12f)],_0x332fc5[_0x35ee2f(0x165)]);_0x3a792d=_0x3a792d||_0x332fc5[_0x35ee2f(0x113)](checkAccessibilityPlatformConfig,_0x17d92a['config']),process[_0x35ee2f(0x161)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x3a792d,_0x3a792d&&_0x332fc5['CkeQR'](setAccessibilityCapabilities,_0x17d92a[_0x35ee2f(0xe7)]);}const _0xaf5d2b=path[_0x35ee2f(0x187)](_0x3b7e94['path']?path[_0x35ee2f(0x16b)](_0x3b7e94[_0x35ee2f(0x156)]):process['cwd'](),_0x332fc5[_0x35ee2f(0x119)]);fs['writeFileSync'](_0xaf5d2b,helper[_0x35ee2f(0xf0)](_0x17d92a[_0x35ee2f(0xe7)])),process['env'][_0x35ee2f(0x136)]=_0xaf5d2b,helper[_0x35ee2f(0x155)]();let _0x2e7a39='';_0x332fc5[_0x35ee2f(0x127)](helper[_0x35ee2f(0x108)](),constants['PACKAGE_TYPE'][_0x35ee2f(0x14a)])?_0x2e7a39=_0x332fc5['XbyPf']:_0x2e7a39=_0x332fc5[_0x35ee2f(0xfa)];let _0x447e46='';if(helper['isTypescriptProject'](_0x3b7e94['path'])){_0x447e46=_0x35ee2f(0x167);const _0x344902=_0x2e7a39['split']('.');_0x344902[_0x332fc5[_0x35ee2f(0xe9)](_0x344902[_0x35ee2f(0x175)],0x1)]='ts',_0x2e7a39=_0x344902[_0x35ee2f(0x187)]('.'),logger['debug'](_0x332fc5[_0x35ee2f(0x13b)](_0x332fc5['POiTN'],_0x2e7a39));}else _0x447e46='\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a';const _0x56127d=path[_0x35ee2f(0x187)](_0x3b7e94[_0x35ee2f(0x156)]?path[_0x35ee2f(0x16b)](_0x3b7e94[_0x35ee2f(0x156)]):process[_0x35ee2f(0x123)](),_0x2e7a39);let _0x2ff002=_0x3b7e94[_0x35ee2f(0x156)]?_0x3b7e94[_0x35ee2f(0x156)]:'';_0x2ff002=_0x332fc5[_0x35ee2f(0x18f)](_0x2ff002['length'],0x0)?path[_0x35ee2f(0x11c)](_0x2ff002):'',process[_0x35ee2f(0x161)][_0x35ee2f(0xff)]=_0x2ff002;const _0x32d708=helper[_0x35ee2f(0x120)](_0x17d92a[_0x35ee2f(0xe7)]);_0x32d708&&(_0x447e46=_0x332fc5[_0x35ee2f(0xea)](_0x35ee2f(0x142)+_0x32d708+'\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();',_0x447e46));helper[_0x35ee2f(0x168)]({},_0xc8ebec),fs[_0x35ee2f(0x10b)](_0x56127d,_0x447e46),PerformanceTester[_0x35ee2f(0x154)](PerformanceEvents[_0x35ee2f(0x194)]);const _0x19ad5c=_0x332fc5[_0x35ee2f(0x180)](spawn,_0x332fc5[_0x35ee2f(0x12c)],[_0x332fc5[_0x35ee2f(0xf4)],_0x332fc5[_0x35ee2f(0x14c)],_0x332fc5['anPPd'],_0x56127d,..._0xc8ebec[_0x35ee2f(0x153)](0x2)],{'shell':_0x332fc5['qfqRs'](process[_0x35ee2f(0x115)],_0x332fc5[_0x35ee2f(0x15f)]),'stdio':_0x332fc5[_0x35ee2f(0x188)],'cwd':process['cwd'](),'env':Object['assign']({},process['env'],{'BROWSERSTACK_CONFIG_FILE_PATH':helper['getConfigPath'](_0x3da727),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x17d92a[_0x35ee2f(0xe7)][_0x35ee2f(0xfd)][_0x35ee2f(0x16e)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x17d92a[_0x35ee2f(0xe7)][_0x35ee2f(0xfd)][_0x35ee2f(0x14e)],'BROWSERSTACK_LOG_LEVEL':_0x17d92a[_0x35ee2f(0xe7)][_0x35ee2f(0x144)]})}),_0x2d8af2=()=>{const _0x18b9bd=_0x35ee2f;try{const _0x27d6f1=path[_0x18b9bd(0x187)](helper[_0x18b9bd(0x179)](),_0x51f572[_0x18b9bd(0x109)],_0x51f572[_0x18b9bd(0x172)]);if(fs[_0x18b9bd(0x11a)](_0x27d6f1)){let _0x17ec87=fs[_0x18b9bd(0x147)](_0x27d6f1);_0x17ec87=JSON[_0x18b9bd(0xed)](_0x17ec87),_0x17d92a['errorMessage']=_0x17ec87,fs[_0x18b9bd(0x17d)](_0x27d6f1);}}catch(_0x2557d4){logger[_0x18b9bd(0xf5)](_0x51f572[_0x18b9bd(0x138)](_0x51f572[_0x18b9bd(0x178)],_0x2557d4));}};_0x19ad5c['on'](_0x332fc5[_0x35ee2f(0x125)],async _0x49ebed=>{const _0x4b84f9=_0x35ee2f;try{PerformanceTester[_0x4b84f9(0x166)](PerformanceEvents['SDK_CLEANUP']),_0x332fc5[_0x4b84f9(0x15b)](_0x2d8af2),await TestHubHandler[_0x4b84f9(0x107)](),await BrowserstackCLI[_0x4b84f9(0x15c)]()[_0x4b84f9(0x107)](),TestDetails[_0x4b84f9(0x163)](),_0x332fc5[_0x4b84f9(0xec)](printBuildLink),await utilities[_0x4b84f9(0x116)](_0x17d92a),process[_0x4b84f9(0x135)]=_0x49ebed,logger['debug'](_0x4b84f9(0x130)+_0x49ebed),logger['info'](_0x4b84f9(0x15d)+_0x56127d),fs[_0x4b84f9(0x17d)](_0x56127d);fs['existsSync'](_0xaf5d2b)&&(logger[_0x4b84f9(0xf5)]('Deleting\x20'+_0xaf5d2b),fs['unlinkSync'](_0xaf5d2b));const _0x144abf=fs[_0x4b84f9(0x146)](path[_0x4b84f9(0x187)](helper['homedir'](),_0x332fc5[_0x4b84f9(0x114)]))[_0x4b84f9(0x118)](_0x5e3408=>_0x5e3408[_0x4b84f9(0x10a)](_0x4b84f9(0xf2)));_0x144abf[_0x4b84f9(0x12e)](_0x536926=>{const _0x3909f5=_0x4b84f9;fs[_0x3909f5(0x17d)](path[_0x3909f5(0x187)](helper[_0x3909f5(0x179)](),_0x51f572[_0x3909f5(0x109)],_0x536926));});}catch(_0x3d357b){logger[_0x4b84f9(0xf5)](_0x332fc5[_0x4b84f9(0x193)](_0x332fc5[_0x4b84f9(0x111)],_0x3d357b));}});})();}module[a38_0x4e1bc3(0x157)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a39_0x1b4acd=a39_0x5b9b;(function(_0x12660c,_0x2636ba){const _0x1adca6=a39_0x5b9b,_0x2892f1=_0x12660c();while(!![]){try{const _0x402cb9=parseInt(_0x1adca6(0x177))/0x1*(parseInt(_0x1adca6(0x157))/0x2)+parseInt(_0x1adca6(0x166))/0x3*(parseInt(_0x1adca6(0x168))/0x4)+parseInt(_0x1adca6(0x17b))/0x5*(-parseInt(_0x1adca6(0x158))/0x6)+-parseInt(_0x1adca6(0x162))/0x7+parseInt(_0x1adca6(0x16c))/0x8+parseInt(_0x1adca6(0x170))/0x9+-parseInt(_0x1adca6(0x153))/0xa*(parseInt(_0x1adca6(0x16a))/0xb);if(_0x402cb9===_0x2636ba)break;else _0x2892f1['push'](_0x2892f1['shift']());}catch(_0x3489de){_0x2892f1['push'](_0x2892f1['shift']());}}}(a39_0x1e98,0x93b63));const util=require(a39_0x1b4acd(0x172)),child_process=require(a39_0x1b4acd(0x15b)),{FRAMEWORKS}=require(a39_0x1b4acd(0x174)),{getFrameworkVersion,debug}=require(a39_0x1b4acd(0x179)),helper=require('../../helpers/helper'),{getLoadUtilsPath,getForkProcessPath}=require(a39_0x1b4acd(0x15c)),{mockIsWorkerRedundant}=require(a39_0x1b4acd(0x169)),logger=require(a39_0x1b4acd(0x16f))[a39_0x1b4acd(0x17d)];function a39_0x1e98(){const _0x381aea=['function','1384550qViFHG','PLAYWRIGHT','debug','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','2IfnXpH','5985726XpUxJw','isHandlePWErrorSet','tOdUX','child_process','./reporter/pwUtils','env','apply','./mock-process.js','format','Not\x20able\x20to\x20import\x20globalSetup','5912018YSRkLG','compareVersions','VFQeO','exports','2392023WHTZPi','AnnYI','4rFuNyQ','./patches','99zNImyB','gwIKp','7577816rsLdPm','requirePWModule','Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20','../../helpers/logger','6851952MvqRBK','wHdhV','util','toString','../../helpers/test-observability/constants','1.33.0','upyRP','1187421nvnDvf','fork','../../helpers/test-observability/utils','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','5cRGOxE','XlChf','winstonLogger','includes','UawTH'];a39_0x1e98=function(){return _0x381aea;};return a39_0x1e98();}function a39_0x5b9b(_0x355695,_0x221486){const _0x1e9821=a39_0x1e98();return a39_0x5b9b=function(_0x5b9bdf,_0x564813){_0x5b9bdf=_0x5b9bdf-0x153;let _0x34dc68=_0x1e9821[_0x5b9bdf];return _0x34dc68;},a39_0x5b9b(_0x355695,_0x221486);}module[a39_0x1b4acd(0x165)]=async function(_0x56f070){const _0x2bc78a=a39_0x1b4acd,_0xf4be5d={'UgXSU':function(_0x3dca08,_0x2b9136){return _0x3dca08(_0x2b9136);},'wHdhV':function(_0x10ce3f){return _0x10ce3f();},'VFQeO':_0x2bc78a(0x15f),'mtjlf':function(_0x49365d){return _0x49365d();},'EwONb':function(_0x2b33b4){return _0x2b33b4();},'dDcWK':function(_0x5a158d,_0x40fd73){return _0x5a158d(_0x40fd73);},'gwIKp':'Running\x20existing\x20global\x20setup','YTMbL':function(_0x2e63e9){return _0x2e63e9();},'GZSuT':function(_0x2d7c51,_0x52c52d){return _0x2d7c51>=_0x52c52d;},'XlChf':_0x2bc78a(0x175),'UawTH':function(_0x1d9af0,_0x218b43,_0x435bf1){return _0x1d9af0(_0x218b43,_0x435bf1);},'upyRP':function(_0x3bfda2,_0x3da418){return _0x3bfda2!==_0x3da418;},'AnnYI':_0x2bc78a(0x180),'tOdUX':_0x2bc78a(0x161),'SmCVd':function(_0x50b4cb,_0x2283ac){return _0x50b4cb(_0x2283ac);}},_0x2ab9fc=child_process[_0x2bc78a(0x178)];if(helper[_0x2bc78a(0x159)]())try{_0xf4be5d['EwONb'](mockIsWorkerRedundant);}catch(_0x902135){logger[_0x2bc78a(0x155)](_0x2bc78a(0x16e)+util[_0x2bc78a(0x160)](_0x902135));}child_process[_0x2bc78a(0x178)]=function(){const _0x3fe009=_0x2bc78a;return _0xf4be5d['UgXSU'](debug,'Call\x20to\x20child\x20fork\x20with\x20args\x20'+arguments[0x0]),arguments[0x0][_0x3fe009(0x17e)](_0xf4be5d[_0x3fe009(0x171)](getForkProcessPath))?arguments[0x0]=require['resolve'](_0xf4be5d[_0x3fe009(0x164)]):logger['error']('Path\x20'+_0xf4be5d['mtjlf'](getForkProcessPath)+'\x20is\x20not\x20found'),_0x2ab9fc['apply'](null,arguments);};if(process['env'][_0x2bc78a(0x17a)]){_0xf4be5d['dDcWK'](debug,_0xf4be5d[_0x2bc78a(0x16b)]);try{const {loadGlobalHook:_0x21eaef}=helper[_0x2bc78a(0x16d)]['apply'](null,_0xf4be5d['YTMbL'](getLoadUtilsPath)),_0x33fe89=_0xf4be5d['dDcWK'](getFrameworkVersion,FRAMEWORKS[_0x2bc78a(0x154)]);let _0x18a2cb=_0x56f070;if(_0xf4be5d['GZSuT'](helper[_0x2bc78a(0x163)](_0x33fe89,_0xf4be5d[_0x2bc78a(0x17c)]),0x0)){const _0x2ddc62={};_0x2ddc62['config']=_0x56f070,_0x18a2cb=_0x2ddc62;}const _0x43539a=await _0xf4be5d[_0x2bc78a(0x17f)](_0x21eaef,_0x18a2cb,process[_0x2bc78a(0x15d)][_0x2bc78a(0x17a)]);if(_0xf4be5d[_0x2bc78a(0x176)](typeof _0x43539a,_0xf4be5d[_0x2bc78a(0x167)]))throw new Error(_0xf4be5d[_0x2bc78a(0x15a)]);return _0x43539a[_0x2bc78a(0x15e)](null,arguments);}catch(_0x313241){_0xf4be5d['SmCVd'](debug,_0x2bc78a(0x156)+_0x313241[_0x2bc78a(0x173)]());}}};
|