browserstack-node-sdk 1.40.3 → 1.40.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function a35_0x5d29(_0x279716,_0x2483b4){const _0x3e29c8=a35_0x3e29();return a35_0x5d29=function(_0x5d29c5,_0x50ef8a){_0x5d29c5=_0x5d29c5-0x1d1;let _0x553362=_0x3e29c8[_0x5d29c5];return _0x553362;},a35_0x5d29(_0x279716,_0x2483b4);}const a35_0x2aff98=a35_0x5d29;(function(_0x33c334,_0x1fe4f4){const _0x35e0e2=a35_0x5d29,_0x47c91a=_0x33c334();while(!![]){try{const _0x56ae68=parseInt(_0x35e0e2(0x220))/0x1*(-parseInt(_0x35e0e2(0x1f9))/0x2)+parseInt(_0x35e0e2(0x267))/0x3*(-parseInt(_0x35e0e2(0x263))/0x4)+parseInt(_0x35e0e2(0x209))/0x5+parseInt(_0x35e0e2(0x262))/0x6+parseInt(_0x35e0e2(0x25e))/0x7*(-parseInt(_0x35e0e2(0x271))/0x8)+-parseInt(_0x35e0e2(0x1d3))/0x9+parseInt(_0x35e0e2(0x1f5))/0xa*(parseInt(_0x35e0e2(0x1e2))/0xb);if(_0x56ae68===_0x1fe4f4)break;else _0x47c91a['push'](_0x47c91a['shift']());}catch(_0x1cd84b){_0x47c91a['push'](_0x47c91a['shift']());}}}(a35_0x3e29,0xb02df));const util=require('util'),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a35_0x2aff98(0x23d)),{TEST_FRAMEWORK_HOOK_TIMEOUT}=require(a35_0x2aff98(0x1dc)),{percyAutoCapture}=require(a35_0x2aff98(0x257)),{sendPlatformDetails}=require(a35_0x2aff98(0x26f)),{isBrowserstackInfra,markSessionStatus,nestedKeyValue}=require(a35_0x2aff98(0x243)),PerformanceTester=require(a35_0x2aff98(0x26a)),{AUTOMATE_EVENTS:PerformanceAutEvents,O11y_EVENTS:PerformanceO11yEvents,A11Y_EVENTS:PerformanceA11yEvents,EVENTS:PerformanceSdkEvents}=require(a35_0x2aff98(0x20f)),scripts=require(a35_0x2aff98(0x24d)),globals=require(a35_0x2aff98(0x261)),logger=require(a35_0x2aff98(0x1e9))['winstonLogger'],{shouldProcessEventForTesthub}=require(a35_0x2aff98(0x1d7)),testHubConstants=require('../../helpers/testhub/constants');exports[a35_0x2aff98(0x21c)]={'beforeAll'(){const _0x185124=a35_0x2aff98,_0x4127f5={'QUxwg':function(_0x3f249f,_0x3f924e,_0x228b44,_0x128475){return _0x3f249f(_0x3f924e,_0x228b44,_0x128475);},'piUxQ':_0x185124(0x1d8),'OCMOB':_0x185124(0x260),'xRBEF':function(_0x5206d3,_0x28a2d1,_0x2bfdbf){return _0x5206d3(_0x28a2d1,_0x2bfdbf);},'ePxbx':_0x185124(0x1f2),'XIfvq':function(_0x4b8894){return _0x4b8894();},'tgGrO':function(_0x90972f,_0x50a845,_0x20e112){return _0x90972f(_0x50a845,_0x20e112);},'JSjDZ':function(_0x1427a1,_0x908ca2,_0x199662){return _0x1427a1(_0x908ca2,_0x199662);},'aGyTc':_0x185124(0x26d),'mtuPb':'beforeAll'};PerformanceTester[_0x185124(0x23b)]();const _0x2ce412='browserstack internal helper hook';PerformanceTester['measureWrapper'](PerformanceSdkEvents[_0x185124(0x1fa)],()=>{const _0x3e224d=_0x185124;global['__error_messages__']=[],global[_0x3e224d(0x22f)]=![],global[_0x3e224d(0x20b)]=async()=>{const _0x3874d6=_0x3e224d;let _0x2f60ec=![];try{await global[_0x3874d6(0x231)][0x0][_0x3874d6(0x252)],_0x2f60ec=!![],global['__sessionFailed']?await _0x4127f5['QUxwg'](markSessionStatus,global[_0x3874d6(0x231)][0x0],_0x4127f5['piUxQ'],global[_0x3874d6(0x268)][_0x3874d6(0x25c)](_0x4127f5['OCMOB'])):await _0x4127f5[_0x3874d6(0x266)](markSessionStatus,global[_0x3874d6(0x231)][0x0],_0x4127f5[_0x3874d6(0x1fe)]);}catch(_0x3e2749){logger[_0x3874d6(0x265)](_0x3874d6(0x1f8)+_0x3e2749);}global[_0x3874d6(0x268)]=[],global[_0x3874d6(0x22f)]=![];if(_0x2f60ec)try{try{_0x4127f5[_0x3874d6(0x211)](shouldProcessEventForTesthub)&&(global[_0x3874d6(0x231)][0x0]&&await _0x4127f5[_0x3874d6(0x230)](sendPlatformDetails,global[_0x3874d6(0x231)][0x0],this[_0x3874d6(0x1ed)]?this[_0x3874d6(0x1ed)][_0x3874d6(0x272)]:null));}catch(_0x238f43){logger[_0x3874d6(0x265)](_0x3874d6(0x213)+_0x238f43);}await global[_0x3874d6(0x231)][0x0][_0x3874d6(0x223)]();}catch(_0x86cc35){logger[_0x3874d6(0x265)](_0x3874d6(0x203)+_0x86cc35);}};},{'platform':_0x4127f5[_0x185124(0x26e)](nestedKeyValue,global[_0x185124(0x207)],[_0x4127f5['aGyTc']]),'hookType':_0x4127f5['mtuPb']})();},'beforeEach'(_0x11b394){const _0x3c6df6=a35_0x2aff98,_0x18b9c6={'cKOrW':function(_0x5b9440,_0xc9251c){return _0x5b9440>_0xc9251c;},'mQbge':_0x3c6df6(0x225),'mYXOd':function(_0x5a4bc6,_0x3bdf21,_0x410877){return _0x5a4bc6(_0x3bdf21,_0x410877);},'OlwpA':_0x3c6df6(0x1fc),'cfPKv':function(_0x475a39){return _0x475a39();},'xINrI':'isAccessibilityPlatform','XbSGO':function(_0x281c5f,_0x19d8c3){return _0x281c5f===_0x19d8c3;},'iNBFB':_0x3c6df6(0x264),'csOPz':_0x3c6df6(0x20a),'omMgk':_0x3c6df6(0x1ea),'lBhmJ':_0x3c6df6(0x258),'GMZyh':_0x3c6df6(0x25b),'mFNhH':_0x3c6df6(0x26d),'qtPcy':_0x3c6df6(0x1f0)};globals[_0x3c6df6(0x236)](_0x18b9c6[_0x3c6df6(0x217)],this[_0x3c6df6(0x1ed)][_0x3c6df6(0x1f3)]()['join'](_0x18b9c6[_0x3c6df6(0x200)])),PerformanceTester['measureWrapper'](PerformanceSdkEvents[_0x3c6df6(0x1fa)],()=>{const _0x43bf85=_0x3c6df6,_0x22683c={'QapWi':function(_0x3a32a3,_0x2d0799){const _0xf51a89=a35_0x5d29;return _0x18b9c6[_0xf51a89(0x210)](_0x3a32a3,_0x2d0799);},'abhwi':_0x18b9c6[_0x43bf85(0x200)],'PJKKu':function(_0xd769f3,_0x4c03d8,_0x5bfae6){const _0xc8c76=_0x43bf85;return _0x18b9c6[_0xc8c76(0x228)](_0xd769f3,_0x4c03d8,_0x5bfae6);},'ETNug':_0x18b9c6[_0x43bf85(0x21a)],'RIymW':function(_0x926921){return _0x18b9c6['cfPKv'](_0x926921);},'hMdQR':_0x18b9c6['xINrI'],'iqiRC':function(_0x286e61,_0x3cf579){const _0x89de94=_0x43bf85;return _0x18b9c6[_0x89de94(0x278)](_0x286e61,_0x3cf579);},'CeceY':_0x18b9c6[_0x43bf85(0x226)],'kgckb':_0x18b9c6[_0x43bf85(0x1eb)],'gsRuj':_0x18b9c6[_0x43bf85(0x239)],'GnBAR':_0x18b9c6[_0x43bf85(0x204)]},_0x4e0886='browserstack internal helper hook';new Promise(async _0x201135=>{const _0x5ea431=_0x43bf85;let _0x3ad1da=!![];try{_0x22683c['QapWi'](global[_0x5ea431(0x231)][_0x5ea431(0x1d5)],0x1)&&(await global[_0x5ea431(0x20b)](),global['__drivers'][_0x5ea431(0x227)]()),_0x22683c[_0x5ea431(0x201)](global[_0x5ea431(0x231)][0x0]['quitCount_'],0x0)&&(_0x3ad1da=![],await global[_0x5ea431(0x20b)]());}catch(_0x448b8a){logger[_0x5ea431(0x265)](_0x5ea431(0x203)+_0x448b8a);}try{Array[_0x5ea431(0x221)](global['__drivers'])&&global[_0x5ea431(0x231)][0x0]&&(global[_0x5ea431(0x231)][0x0][_0x5ea431(0x1e5)]=this['currentTest'][_0x5ea431(0x1f3)]()[_0x5ea431(0x25c)](_0x22683c[_0x5ea431(0x20c)])),global[_0x5ea431(0x1e5)]=this['currentTest']['titlePath']()['join'](_0x22683c[_0x5ea431(0x20c)]);}catch(_0x5c96e0){logger[_0x5ea431(0x265)](_0x5ea431(0x235)+_0x5c96e0);}this[_0x5ea431(0x1ed)][_0x5ea431(0x1d2)]=_0x22683c[_0x5ea431(0x26b)](shouldScanTestForAccessibility,this[_0x5ea431(0x1ed)][_0x5ea431(0x1f3)](),!![]),globals['setGlobal'](_0x22683c[_0x5ea431(0x21e)],this[_0x5ea431(0x1ed)][_0x5ea431(0x1d2)]),this[_0x5ea431(0x1ed)][_0x5ea431(0x22a)]=!![];if(_0x22683c[_0x5ea431(0x1d1)](isAccessibilityAutomationSession)&&_0x3ad1da&&Array[_0x5ea431(0x221)](global[_0x5ea431(0x231)])&&_0x22683c['QapWi'](global['__drivers']['length'],0x0)&&globals[_0x5ea431(0x237)](_0x22683c['hMdQR']))try{const _0x5817c6=await global['__drivers'][0x0][_0x5ea431(0x252)];if(_0x5817c6){let _0x30495f=!![];const _0x594612=await global['__drivers'][0x0][_0x5ea431(0x1f4)]();let _0x2053da;try{_0x2053da=new URL(_0x594612);}catch(_0x504d96){_0x30495f=![];}_0x30495f=_0x22683c[_0x5ea431(0x255)](_0x2053da[_0x5ea431(0x1e0)],_0x22683c[_0x5ea431(0x1fb)])||_0x22683c[_0x5ea431(0x255)](_0x2053da[_0x5ea431(0x1e0)],_0x22683c['kgckb']),_0x30495f&&(this['currentTest'][_0x5ea431(0x1d2)]&&logger[_0x5ea431(0x23e)](_0x22683c[_0x5ea431(0x1e7)])),this[_0x5ea431(0x1ed)]['accessibilityScanStarted']=this['currentTest']['shouldScanTestForAccessibility'],this[_0x5ea431(0x1ed)]['shouldScanTestForAccessibility']&&logger[_0x5ea431(0x23e)](_0x22683c[_0x5ea431(0x222)]);}}catch(_0x40a7fa){logger[_0x5ea431(0x269)](_0x5ea431(0x219)+util[_0x5ea431(0x245)](_0x40a7fa));}_0x22683c[_0x5ea431(0x1d1)](_0x201135);})[_0x43bf85(0x23c)](()=>{const _0x1fa23d=_0x43bf85;_0x22683c[_0x1fa23d(0x1d1)](_0x11b394);});},{'platform':_0x18b9c6['mYXOd'](nestedKeyValue,global['__platformCaps'],[_0x18b9c6['mFNhH']]),'hookType':_0x18b9c6['qtPcy']})();},'afterEach'(_0x14de1d){const _0x3090df=a35_0x2aff98,_0x1ac109={'uTPnE':function(_0x224924,_0x5636b8){return _0x224924!==_0x5636b8;},'axvPe':'passed','uRfOE':function(_0x3d93c9,_0x18cd9a,_0xeef8c9){return _0x3d93c9(_0x18cd9a,_0xeef8c9);},'jKsgW':function(_0x4b7f48,_0x1917fb){return _0x4b7f48+_0x1917fb;},'RuxRI':'Failed:\x20','ycvcj':_0x3090df(0x269),'EDiKe':_0x3090df(0x24a),'NKiaf':_0x3090df(0x23e),'GREWd':function(_0x164089,_0x40d1bc){return _0x164089>_0x40d1bc;},'nIZYU':function(_0x2df341,_0x4e8715){return _0x2df341===_0x4e8715;},'dadqt':_0x3090df(0x216),'rBuqY':function(_0x2b2807,_0x475450){return _0x2b2807>_0x475450;},'nQFuW':_0x3090df(0x233),'iMgbE':function(_0x1f1413,_0x36d44b,_0x379280,_0x457ee0){return _0x1f1413(_0x36d44b,_0x379280,_0x457ee0);},'uxaoG':'isAccessibilityPlatform','pnlqR':_0x3090df(0x1fc),'qhJaZ':'Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','pEuLX':'Performing\x20scan\x20before\x20saving\x20results','tLWyM':'afterTest','GDKzc':_0x3090df(0x25a),'vLSCL':function(_0x445769){return _0x445769();},'dtxOT':function(_0x2eb3ae,_0x1e2391,_0x57cf4d){return _0x2eb3ae(_0x1e2391,_0x57cf4d);},'pqbQJ':function(_0x157817){return _0x157817();},'VGCwR':_0x3090df(0x265),'vcKar':function(_0x234da7){return _0x234da7();},'hNjFf':_0x3090df(0x225),'AgVUL':_0x3090df(0x1dd),'elhQS':function(_0x59b802,_0x4c440c,_0x37484c){return _0x59b802(_0x4c440c,_0x37484c);},'GYHxM':_0x3090df(0x26d),'fufPs':_0x3090df(0x241)},_0x1f0f80='browserstack internal helper hook';this[_0x3090df(0x250)](TEST_FRAMEWORK_HOOK_TIMEOUT[_0x1ac109['AgVUL']]),global[_0x3090df(0x205)]=this['currentTest'][_0x3090df(0x1f3)]()[_0x3090df(0x25c)](_0x1ac109[_0x3090df(0x21d)]),PerformanceTester['measureWrapper'](PerformanceSdkEvents[_0x3090df(0x1fa)],()=>{const _0x3383c8=_0x3090df,_0x2ad93b={};_0x2ad93b[_0x3383c8(0x24b)]=_0x1ac109[_0x3383c8(0x21d)];const _0x84a7c8=_0x2ad93b,_0x292b3e=async(_0x9882e4,_0x165fc5)=>{const _0x5e25e7=_0x3383c8;await global[_0x5e25e7(0x231)][0x0][_0x5e25e7(0x1e6)](_0x5e25e7(0x240)+_0x9882e4+_0x5e25e7(0x1ff)+_0x165fc5+'\x22}}');};new Promise(async _0x5f51a3=>{const _0x508c1c=_0x3383c8,_0x49fdf1={'zCNeX':function(_0x8361cd,_0x58cdd8){return _0x1ac109['uTPnE'](_0x8361cd,_0x58cdd8);},'TzDlx':_0x1ac109[_0x508c1c(0x25d)],'AhGTz':function(_0x5969b9,_0x340866,_0x45c1de){return _0x1ac109['uRfOE'](_0x5969b9,_0x340866,_0x45c1de);},'FnQwO':function(_0x3ebaaf,_0xef4256){const _0x4c4e73=_0x508c1c;return _0x1ac109[_0x4c4e73(0x208)](_0x3ebaaf,_0xef4256);},'vitED':_0x1ac109[_0x508c1c(0x1df)],'sghRG':_0x1ac109[_0x508c1c(0x22b)],'sMbaR':function(_0x264dc2,_0x577698,_0xb8f8b1){const _0x9791df=_0x508c1c;return _0x1ac109[_0x9791df(0x21b)](_0x264dc2,_0x577698,_0xb8f8b1);},'dtmQm':_0x1ac109[_0x508c1c(0x249)],'XMkKL':_0x1ac109['NKiaf']};try{_0x1ac109[_0x508c1c(0x247)](global['__drivers'][_0x508c1c(0x1d5)],0x1)&&(await global['driverCleanup'](),global[_0x508c1c(0x231)][_0x508c1c(0x227)](),global['__error_messages__']=[],global[_0x508c1c(0x22f)]=![]);try{if(global[_0x508c1c(0x229)]&&_0x1ac109['nIZYU'](global[_0x508c1c(0x24e)],_0x1ac109[_0x508c1c(0x248)])&&global[_0x508c1c(0x231)][0x0]){const _0x2822e7=_0x1ac109['rBuqY'](global[_0x508c1c(0x206)][_0x508c1c(0x1d5)],0x0)?!!global[_0x508c1c(0x206)][0x0][_0x508c1c(0x1f1)]||!!global[_0x508c1c(0x206)][0x0][_0x1ac109['nQFuW']]:![],_0x67a0df={};_0x67a0df[_0x508c1c(0x1f1)]=_0x2822e7,await _0x1ac109[_0x508c1c(0x1db)](percyAutoCapture,global[_0x508c1c(0x231)][0x0],_0x1ac109['dadqt'],_0x67a0df);}}catch(_0x44f90e){logger[_0x508c1c(0x265)](_0x508c1c(0x21f)+_0x44f90e);}!global[_0x508c1c(0x1de)]&&(await PerformanceTester['measureWrapper'](PerformanceAutEvents[_0x508c1c(0x253)],async()=>{const _0x50c2e3=_0x508c1c;await global['__drivers'][0x0][_0x50c2e3(0x1e6)]('browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20'+JSON[_0x50c2e3(0x202)](this[_0x50c2e3(0x1ed)][_0x50c2e3(0x1f3)]()[_0x50c2e3(0x25c)](_0x84a7c8[_0x50c2e3(0x24b)]))+'}}');})(),global[_0x508c1c(0x231)][0x0]['sessionNameSet__']=!![]),await PerformanceTester[_0x508c1c(0x273)](PerformanceAutEvents['SESSION_STATUS'],async()=>{const _0xc8c19e=_0x508c1c,_0x5bb480=_0x49fdf1['zCNeX'](this['currentTest']['state'],_0x49fdf1[_0xc8c19e(0x277)]);_0x5bb480?(global[_0xc8c19e(0x22f)]=!![],global[_0xc8c19e(0x268)][_0xc8c19e(0x218)](this[_0xc8c19e(0x1ed)]['err'][_0xc8c19e(0x22e)]),await _0x49fdf1[_0xc8c19e(0x254)](_0x292b3e,JSON['stringify'](_0x49fdf1[_0xc8c19e(0x23f)](_0x49fdf1[_0xc8c19e(0x276)],this['currentTest']['err'][_0xc8c19e(0x22e)])),_0x49fdf1[_0xc8c19e(0x232)])):await _0x49fdf1[_0xc8c19e(0x1e1)](_0x292b3e,JSON[_0xc8c19e(0x202)](_0x49fdf1[_0xc8c19e(0x1f6)]),_0x49fdf1[_0xc8c19e(0x1f7)]);})();}catch(_0x3d79f4){logger[_0x508c1c(0x265)]('Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20'+_0x3d79f4);}try{if(this[_0x508c1c(0x1ed)][_0x508c1c(0x22a)]&&globals[_0x508c1c(0x237)](_0x1ac109['uxaoG'])&&globals[_0x508c1c(0x237)](_0x1ac109[_0x508c1c(0x274)])){logger['info'](_0x1ac109[_0x508c1c(0x23a)]);const _0x1a5eb5={};_0x1a5eb5['thTestRunUuid']=this[_0x508c1c(0x1ed)]['testAnalyticsId'],_0x1a5eb5['thBuildUuid']=process[_0x508c1c(0x256)][testHubConstants[_0x508c1c(0x1ec)][_0x508c1c(0x1d6)]],_0x1a5eb5[_0x508c1c(0x24c)]=process[_0x508c1c(0x256)][testHubConstants[_0x508c1c(0x1ec)][_0x508c1c(0x234)]];const _0x515630=_0x1a5eb5;logger[_0x508c1c(0x265)](_0x508c1c(0x1da)+JSON[_0x508c1c(0x202)](_0x515630)),logger[_0x508c1c(0x265)](_0x1ac109[_0x508c1c(0x215)]);const _0x29707c={};_0x29707c[_0x508c1c(0x24f)]=_0x1ac109[_0x508c1c(0x1ee)],await PerformanceTester[_0x508c1c(0x273)](PerformanceA11yEvents[_0x508c1c(0x22d)],async()=>{const _0x75c114=_0x508c1c;logger['debug'](util[_0x75c114(0x245)](await global[_0x75c114(0x231)][0x0][_0x75c114(0x259)](scripts['performScan'],{'method':global[_0x75c114(0x1e5)]})));},_0x29707c)(),await PerformanceTester[_0x508c1c(0x273)](PerformanceA11yEvents[_0x508c1c(0x244)],async()=>{const _0x23578a=_0x508c1c;await global[_0x23578a(0x231)][0x0][_0x23578a(0x259)](scripts['saveTestResults'],_0x515630);})(),logger['info'](_0x1ac109['GDKzc']);}}catch(_0x4ba879){logger['error'](_0x508c1c(0x238)+this['currentTest'][_0x508c1c(0x1f3)]()+'.\x20Error\x20:',_0x4ba879);}try{try{if(_0x1ac109[_0x508c1c(0x20d)](shouldProcessEventForTesthub)){global[_0x508c1c(0x231)][0x0]&&await _0x1ac109[_0x508c1c(0x1e4)](sendPlatformDetails,global[_0x508c1c(0x231)][0x0],this[_0x508c1c(0x1ed)]?this[_0x508c1c(0x1ed)][_0x508c1c(0x272)]:null);if(_0x1ac109['pqbQJ'](isBrowserstackInfra)){PerformanceTester[_0x508c1c(0x242)](PerformanceO11yEvents[_0x508c1c(0x214)]);const _0x3b1c49='ObservabilitySync:'+Date[_0x508c1c(0x1fd)]();await _0x1ac109[_0x508c1c(0x1e4)](_0x292b3e,JSON[_0x508c1c(0x202)](_0x3b1c49),_0x1ac109[_0x508c1c(0x251)]),PerformanceTester[_0x508c1c(0x212)](PerformanceO11yEvents['SYNC']);}}}catch(_0x4752e1){logger[_0x508c1c(0x265)](_0x508c1c(0x1ef)+_0x4752e1),PerformanceTester[_0x508c1c(0x212)](PerformanceO11yEvents[_0x508c1c(0x214)],![],_0x4752e1);}_0x1ac109[_0x508c1c(0x26c)](global[_0x508c1c(0x231)][0x0][_0x508c1c(0x20e)],0x0)&&await global[_0x508c1c(0x20b)]();}catch(_0x982e36){logger[_0x508c1c(0x265)](_0x508c1c(0x203)+_0x982e36);}_0x1ac109['vLSCL'](_0x5f51a3);})[_0x3383c8(0x23c)](()=>{const _0x4950b6=_0x3383c8;_0x1ac109[_0x4950b6(0x1e3)](_0x14de1d);});},{'platform':_0x1ac109['elhQS'](nestedKeyValue,global[_0x3090df(0x207)],[_0x1ac109[_0x3090df(0x1e8)]]),'hookType':_0x1ac109['fufPs']})();},'afterAll'(_0x4e18df){const _0x41b5b0=a35_0x2aff98,_0x177464={'Bpqbk':function(_0x3bf1a8){return _0x3bf1a8();},'ewmUo':function(_0x80a408){return _0x80a408();},'ZsoKB':'Mocha','IBIze':function(_0x19bc65,_0x17a550,_0x2d3ffc){return _0x19bc65(_0x17a550,_0x2d3ffc);},'DUdiQ':_0x41b5b0(0x26d),'utveY':_0x41b5b0(0x275)},_0x86a264='browserstack internal helper hook';this[_0x41b5b0(0x250)](TEST_FRAMEWORK_HOOK_TIMEOUT[_0x177464[_0x41b5b0(0x22c)]]),PerformanceTester['measureWrapper'](PerformanceSdkEvents[_0x41b5b0(0x1fa)],()=>{const _0x4e9580=_0x41b5b0,_0x2c5310={'nbPeX':function(_0x551fc2){const _0x3b2dec=a35_0x5d29;return _0x177464[_0x3b2dec(0x270)](_0x551fc2);}};new Promise(async _0x4a5cbd=>{const _0x4cb419=a35_0x5d29;await global[_0x4cb419(0x20b)](),_0x177464[_0x4cb419(0x1d9)](_0x4a5cbd);})[_0x4e9580(0x23c)]()[_0x4e9580(0x224)](()=>{const _0xf93da0=_0x4e9580;_0x2c5310[_0xf93da0(0x246)](_0x4e18df);});},{'platform':_0x177464['IBIze'](nestedKeyValue,global[_0x41b5b0(0x207)],[_0x177464[_0x41b5b0(0x25f)]]),'hookType':_0x177464[_0x41b5b0(0x1d4)]})();}};function a35_0x3e29(){const _0x33f10c=['XMkKL','Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20','616EPKHJh','SDK_HOOK','CeceY','bstackA11yShouldScan','now','ePxbx',',\x22level\x22:\x20\x22','mQbge','QapWi','stringify','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','lBhmJ','sessionName','capabilities','__platformCaps','jKsgW','6921670XAvKQU','https:','driverCleanup','abhwi','vLSCL','quitCount_','../../helpers/performance/constants','cKOrW','XIfvq','end','Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20','SYNC','pEuLX','testcase','GMZyh','push','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','OlwpA','uRfOE','mochaHooks','hNjFf','ETNug','Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20','2866JyLLZl','isArray','GnBAR','initQuit','finally','\x20-\x20','iNBFB','shift','mYXOd','percy','accessibilityScanStarted','ycvcj','ZsoKB','PERFORM_SCAN','message','__sessionFailed','tgGrO','__drivers','sghRG','appium:app','BROWSERSTACK_TESTHUB_JWT','Failed\x20to\x20store\x20session\x20name:\x20','setGlobal','getGlobal','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','omMgk','qhJaZ','startMonitoring','then','../../helpers/accessibility-automation/helper','info','FnQwO','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','afterEach','start','../../helpers/helper','SAVE_RESULTS','format','nbPeX','GREWd','dadqt','EDiKe','Passed','fkLKy','thJwtToken','../../helpers/accessibility-automation/scripts','percyCaptureMode','command','timeout','VGCwR','session_','SESSION_NAME','AhGTz','iqiRC','env','../../helpers/percy/utils','Automate\x20test\x20case\x20execution\x20has\x20started.','executeAsyncScript','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','browserstackTestName','join','axvPe','9623236caKvsp','DUdiQ','\x20|\x20','../../helpers/globals','6334272ENdUFa','8jtppOh','http:','debug','xRBEF','403314tnRlwV','__error_messages__','error','../../helpers/performance/performance-tester','PJKKu','rBuqY','index','JSjDZ','./test-observability/mochaUtils','ewmUo','8YpZnJL','testAnalyticsId','measureWrapper','pnlqR','afterAll','vitED','TzDlx','XbSGO','RIymW','shouldScanTestForAccessibility','10681614ckabJL','utveY','length','BROWSERSTACK_TESTHUB_UUID','../../helpers/testhub/utils','failed','Bpqbk','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','iMgbE','../utils/constants','Mocha','__skipSessionName','RuxRI','protocol','sMbaR','21942613eixcIi','vcKar','dtxOT','browserstackSessionName','executeScript','gsRuj','GYHxM','../../helpers/logger','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','csOPz','ENV_VAR','currentTest','tLWyM','Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20','beforeEach','app','passed','titlePath','getCurrentUrl','10JujWIw','dtmQm'];a35_0x3e29=function(){return _0x33f10c;};return a35_0x3e29();}
|
|
1
|
+
const a35_0x3c8e4e=a35_0x3efd;function a35_0x3efd(_0x3b190a,_0x45a560){const _0x51ccae=a35_0x51cc();return a35_0x3efd=function(_0x3efdc6,_0xc83c15){_0x3efdc6=_0x3efdc6-0x137;let _0x1b03bb=_0x51ccae[_0x3efdc6];return _0x1b03bb;},a35_0x3efd(_0x3b190a,_0x45a560);}function a35_0x51cc(){const _0x53e319=['OOXgF','MywcF','5621371TyXhbL','KMDCh','mztDh','rjFZI','error','udXZj','qTxKy','passed','capabilities','GMnLY','CZPte','trsfG','22099977WlgyQj','initQuit','util','xbpcS','failed','ZuaRg','isAccessibilityPlatform','Passed','EZCmD','state','IdaFS','qXQSU','uInns','AatdM','percyCaptureMode','../../helpers/performance/performance-tester','IWDkA','PERFORM_SCAN','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','qzspf','__sessionFailed','TIpmK','kEIqS','Failed\x20to\x20store\x20session\x20name:\x20','lsOsV','mAtvt','start','driverCleanup','getGlobal','finally','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20',',\x22level\x22:\x20\x22','fWqCQ','ObservabilitySync:','../../helpers/testhub/utils','../../helpers/performance/constants','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','afterEach','RhxBo','wbHJk','Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20','env','stringify','Kryvy','BeIrq','__platformCaps','ENV_VAR','PvODx','titlePath','HoShv','urTtA','../../helpers/accessibility-automation/scripts','info','browserstackTestName','command','afterTest','arAaU','vDyAm','BROWSERSTACK_TESTHUB_JWT','\x20|\x20','quitCount_','push','CBAMG','lZGXn','../../helpers/accessibility-automation/helper','SDK_HOOK','getCurrentUrl','etnge','mochaHooks','cnTBT','JIuzw','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','HTNlG','HBxLA','qlCTV','PxuRN','hCuin','fZJXM','RXeNX','appium:app','6430992DEzJLY','browserstackSessionName','eJdLf','../../helpers/globals','testAnalyticsId','percy','then','../utils/constants','SESSION_STATUS','YEJAH','nVYvC','__drivers','68345vqmWWA','message','AOoSH','WShAY','DjWNF','end','winstonLogger','protocol','\x20-\x20','xLnjO','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','shift','ifngn','length','thJwtToken','AwDci','shouldScanTestForAccessibility','JaTGG','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','beforeAll','accessibilityScanStarted','format','.\x20Error\x20:','228dDYexA','Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20','ArKpA','setGlobal','6GZttyw','measureWrapper','app','Performing\x20scan\x20before\x20saving\x20results','../../helpers/testhub/constants','34498nSmxqE','session_','thTestRunUuid','OlhVL','yXWNE','iMJNZ','haqgy','aGrzl','GWmWW','SWOYT','YzBrV','gyBiT','SYNC','frvVb','./test-observability/mochaUtils','gpJOY','join','Failed:\x20','fRodk','bstackA11yShouldScan','executeAsyncScript','Sriuk','\x22}}','yxYFG','oavNO','1705890aaZwUs','BROWSERSTACK_TESTHUB_UUID','uMKVX','wyKyt','bzVPS','rRgsL','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','debug','3290232ATozKV','../../helpers/logger','Automate\x20test\x20case\x20execution\x20has\x20started.','Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20','Mocha','startMonitoring','qvpKF','cuLEv','__error_messages__','index','saveTestResults','ERMwv','currentTest','performScan','LHveT','ylgnO','Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20','timeout','err'];a35_0x51cc=function(){return _0x53e319;};return a35_0x51cc();}(function(_0x4d8f5c,_0x359030){const _0xd9aa00=a35_0x3efd,_0x226b2c=_0x4d8f5c();while(!![]){try{const _0x17b99a=-parseInt(_0xd9aa00(0x140))/0x1*(parseInt(_0xd9aa00(0x145))/0x2)+-parseInt(_0xd9aa00(0x15e))/0x3+parseInt(_0xd9aa00(0x13c))/0x4*(-parseInt(_0xd9aa00(0x1e4))/0x5)+-parseInt(_0xd9aa00(0x166))/0x6+-parseInt(_0xd9aa00(0x17b))/0x7+parseInt(_0xd9aa00(0x1d8))/0x8+parseInt(_0xd9aa00(0x187))/0x9;if(_0x17b99a===_0x359030)break;else _0x226b2c['push'](_0x226b2c['shift']());}catch(_0x564f5c){_0x226b2c['push'](_0x226b2c['shift']());}}}(a35_0x51cc,0x6f829));const util=require(a35_0x3c8e4e(0x189)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a35_0x3c8e4e(0x1c7)),{TEST_FRAMEWORK_HOOK_TIMEOUT}=require(a35_0x3c8e4e(0x1df)),{percyAutoCapture}=require('../../helpers/percy/utils'),{sendPlatformDetails}=require(a35_0x3c8e4e(0x153)),{isBrowserstackInfra,markSessionStatus,nestedKeyValue}=require('../../helpers/helper'),PerformanceTester=require(a35_0x3c8e4e(0x196)),{AUTOMATE_EVENTS:PerformanceAutEvents,O11y_EVENTS:PerformanceO11yEvents,A11Y_EVENTS:PerformanceA11yEvents,EVENTS:PerformanceSdkEvents}=require(a35_0x3c8e4e(0x1aa)),scripts=require(a35_0x3c8e4e(0x1ba)),globals=require(a35_0x3c8e4e(0x1db)),logger=require(a35_0x3c8e4e(0x167))[a35_0x3c8e4e(0x1ea)],{shouldProcessEventForTesthub}=require(a35_0x3c8e4e(0x1a9)),testHubConstants=require(a35_0x3c8e4e(0x144));exports[a35_0x3c8e4e(0x1cb)]={'beforeAll'(){const _0x396120=a35_0x3c8e4e,_0x33921d={'kEIqS':function(_0x1a32c1,_0x3242a4,_0x7abb93,_0x1b346d){return _0x1a32c1(_0x3242a4,_0x7abb93,_0x1b346d);},'dMfZJ':_0x396120(0x18b),'SWOYT':_0x396120(0x1c2),'Rkucj':function(_0x4a3dcc,_0x416bbb,_0x14479f){return _0x4a3dcc(_0x416bbb,_0x14479f);},'CZPte':_0x396120(0x182),'yXWNE':function(_0x1afabb){return _0x1afabb();},'DjWNF':function(_0x187495,_0x5cf533,_0x3d627f){return _0x187495(_0x5cf533,_0x3d627f);},'BeIrq':_0x396120(0x16f),'ERMwv':_0x396120(0x138)};PerformanceTester[_0x396120(0x16b)]();const _0x56362f='browserstack internal helper hook';PerformanceTester[_0x396120(0x141)](PerformanceSdkEvents[_0x396120(0x1c8)],()=>{const _0x23c5c8=_0x396120,_0x35c3d1={'rRgsL':function(_0x49424d,_0xc32418,_0xe3a84a,_0x7bb987){const _0x45b5c5=a35_0x3efd;return _0x33921d[_0x45b5c5(0x19d)](_0x49424d,_0xc32418,_0xe3a84a,_0x7bb987);},'ArKpA':_0x33921d['dMfZJ'],'frvVb':_0x33921d[_0x23c5c8(0x14e)],'urTtA':function(_0x2a9f92,_0x4e4d0c,_0xafdd54){return _0x33921d['Rkucj'](_0x2a9f92,_0x4e4d0c,_0xafdd54);},'fZJXM':_0x33921d[_0x23c5c8(0x185)],'HBxLA':function(_0x46d9a0){const _0x5c812a=_0x23c5c8;return _0x33921d[_0x5c812a(0x149)](_0x46d9a0);}};global[_0x23c5c8(0x16e)]=[],global[_0x23c5c8(0x19b)]=![],global[_0x23c5c8(0x1a2)]=async()=>{const _0x5b7df5=_0x23c5c8;let _0x39b32d=![];try{await global[_0x5b7df5(0x1e3)][0x0][_0x5b7df5(0x146)],_0x39b32d=!![],global['__sessionFailed']?await _0x35c3d1[_0x5b7df5(0x163)](markSessionStatus,global[_0x5b7df5(0x1e3)][0x0],_0x35c3d1[_0x5b7df5(0x13e)],global[_0x5b7df5(0x16e)][_0x5b7df5(0x155)](_0x35c3d1[_0x5b7df5(0x152)])):await _0x35c3d1[_0x5b7df5(0x1b9)](markSessionStatus,global[_0x5b7df5(0x1e3)][0x0],_0x35c3d1[_0x5b7df5(0x1d5)]);}catch(_0x15d4cb){logger[_0x5b7df5(0x165)](_0x5b7df5(0x169)+_0x15d4cb);}global[_0x5b7df5(0x16e)]=[],global[_0x5b7df5(0x19b)]=![];if(_0x39b32d)try{try{_0x35c3d1[_0x5b7df5(0x1d1)](shouldProcessEventForTesthub)&&(global[_0x5b7df5(0x1e3)][0x0]&&await _0x35c3d1[_0x5b7df5(0x1b9)](sendPlatformDetails,global[_0x5b7df5(0x1e3)][0x0],this[_0x5b7df5(0x172)]?this[_0x5b7df5(0x172)][_0x5b7df5(0x1dc)]:null));}catch(_0x3a2e2d){logger['debug'](_0x5b7df5(0x176)+_0x3a2e2d);}await global[_0x5b7df5(0x1e3)][0x0][_0x5b7df5(0x188)]();}catch(_0x21ae31){logger[_0x5b7df5(0x165)](_0x5b7df5(0x1ee)+_0x21ae31);}};},{'platform':_0x33921d[_0x396120(0x1e8)](nestedKeyValue,global['__platformCaps'],[_0x33921d[_0x396120(0x1b3)]]),'hookType':_0x33921d[_0x396120(0x171)]})();},'beforeEach'(_0xf668be){const _0x2f6319=a35_0x3c8e4e,_0xbc8af0={'xbpcS':function(_0x24b546,_0x113048){return _0x24b546>_0x113048;},'AatdM':'\x20-\x20','mAtvt':function(_0x31bf6b,_0x47b24e,_0x31c351){return _0x31bf6b(_0x47b24e,_0x31c351);},'MywcF':'bstackA11yShouldScan','lZGXn':function(_0x315cba){return _0x315cba();},'PvODx':_0x2f6319(0x18d),'iMJNZ':function(_0x207db6,_0x1cf5b5){return _0x207db6===_0x1cf5b5;},'GMnLY':'http:','JgZpz':'https:','Kryvy':'Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','KMDCh':_0x2f6319(0x168),'qzspf':function(_0x22fb7a){return _0x22fb7a();},'LHveT':_0x2f6319(0x1bc),'YzBrV':'index','gyBiT':'beforeEach'};globals['setGlobal'](_0xbc8af0[_0x2f6319(0x174)],this[_0x2f6319(0x172)][_0x2f6319(0x1b7)]()[_0x2f6319(0x155)](_0xbc8af0[_0x2f6319(0x194)])),PerformanceTester[_0x2f6319(0x141)](PerformanceSdkEvents[_0x2f6319(0x1c8)],()=>{const _0x536cae='browserstack internal helper hook';new Promise(async _0x35fa22=>{const _0x14aa37=a35_0x3efd;let _0x1ac165=!![];try{_0xbc8af0[_0x14aa37(0x18a)](global[_0x14aa37(0x1e3)][_0x14aa37(0x1f1)],0x1)&&(await global[_0x14aa37(0x1a2)](),global[_0x14aa37(0x1e3)][_0x14aa37(0x1ef)]()),_0xbc8af0[_0x14aa37(0x18a)](global['__drivers'][0x0][_0x14aa37(0x1c3)],0x0)&&(_0x1ac165=![],await global[_0x14aa37(0x1a2)]());}catch(_0x1304ec){logger[_0x14aa37(0x165)]('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0x1304ec);}try{Array['isArray'](global['__drivers'])&&global[_0x14aa37(0x1e3)][0x0]&&(global['__drivers'][0x0][_0x14aa37(0x1d9)]=this[_0x14aa37(0x172)][_0x14aa37(0x1b7)]()['join'](_0xbc8af0[_0x14aa37(0x194)])),global[_0x14aa37(0x1d9)]=this[_0x14aa37(0x172)][_0x14aa37(0x1b7)]()[_0x14aa37(0x155)](_0xbc8af0['AatdM']);}catch(_0x4b9bdd){logger[_0x14aa37(0x165)](_0x14aa37(0x19e)+_0x4b9bdd);}this[_0x14aa37(0x172)][_0x14aa37(0x1f4)]=_0xbc8af0['mAtvt'](shouldScanTestForAccessibility,this['currentTest'][_0x14aa37(0x1b7)](),!![]),globals[_0x14aa37(0x13f)](_0xbc8af0[_0x14aa37(0x17a)],this['currentTest'][_0x14aa37(0x1f4)]),this['currentTest']['accessibilityScanStarted']=!![];if(_0xbc8af0[_0x14aa37(0x1c6)](isAccessibilityAutomationSession)&&_0x1ac165&&Array['isArray'](global[_0x14aa37(0x1e3)])&&_0xbc8af0['xbpcS'](global[_0x14aa37(0x1e3)][_0x14aa37(0x1f1)],0x0)&&globals[_0x14aa37(0x1a3)](_0xbc8af0[_0x14aa37(0x1b6)]))try{const _0x3fb3ad=await global['__drivers'][0x0][_0x14aa37(0x146)];if(_0x3fb3ad){let _0xa21c26=!![];const _0x4ba660=await global[_0x14aa37(0x1e3)][0x0][_0x14aa37(0x1c9)]();let _0x16e7c2;try{_0x16e7c2=new URL(_0x4ba660);}catch(_0x1841ce){_0xa21c26=![];}_0xa21c26=_0xbc8af0[_0x14aa37(0x14a)](_0x16e7c2['protocol'],_0xbc8af0[_0x14aa37(0x184)])||_0xbc8af0[_0x14aa37(0x14a)](_0x16e7c2[_0x14aa37(0x1eb)],_0xbc8af0['JgZpz']),_0xa21c26&&(this[_0x14aa37(0x172)]['shouldScanTestForAccessibility']&&logger[_0x14aa37(0x1bb)](_0xbc8af0[_0x14aa37(0x1b2)])),this[_0x14aa37(0x172)][_0x14aa37(0x139)]=this[_0x14aa37(0x172)][_0x14aa37(0x1f4)],this[_0x14aa37(0x172)]['shouldScanTestForAccessibility']&&logger[_0x14aa37(0x1bb)](_0xbc8af0[_0x14aa37(0x17c)]);}}catch(_0x1ed219){logger['error'](_0x14aa37(0x164)+util['format'](_0x1ed219));}_0xbc8af0[_0x14aa37(0x19a)](_0x35fa22);})['then'](()=>{const _0x7fd203=a35_0x3efd;_0xbc8af0[_0x7fd203(0x19a)](_0xf668be);});},{'platform':_0xbc8af0[_0x2f6319(0x1a0)](nestedKeyValue,global[_0x2f6319(0x1b4)],[_0xbc8af0[_0x2f6319(0x14f)]]),'hookType':_0xbc8af0[_0x2f6319(0x150)]})();},'afterEach'(_0x5c37ec){const _0x1111b1=a35_0x3c8e4e,_0x14b1f2={'QSDdh':_0x1111b1(0x1ec),'eJdLf':function(_0x3505de,_0x548063){return _0x3505de!==_0x548063;},'YEJAH':_0x1111b1(0x182),'AOoSH':function(_0x2f6d11,_0x31aeba,_0xcdf917){return _0x2f6d11(_0x31aeba,_0xcdf917);},'QwIPQ':function(_0x5cef41,_0x3d391c){return _0x5cef41+_0x3d391c;},'RhxBo':_0x1111b1(0x156),'GWmWW':'error','trsfG':_0x1111b1(0x18e),'etnge':_0x1111b1(0x1bb),'MKnlF':function(_0x17e29e,_0x4345dc){return _0x17e29e>_0x4345dc;},'ZuaRg':function(_0x4dacee,_0x11d4ae){return _0x4dacee===_0x11d4ae;},'gpJOY':'testcase','ylgnO':_0x1111b1(0x1d7),'EZCmD':function(_0x34d79b,_0x59018c,_0x11fe4b,_0x120a9f){return _0x34d79b(_0x59018c,_0x11fe4b,_0x120a9f);},'JIuzw':_0x1111b1(0x18d),'HTNlG':_0x1111b1(0x158),'AwDci':_0x1111b1(0x137),'uInns':_0x1111b1(0x143),'pBnUq':_0x1111b1(0x1be),'bzVPS':_0x1111b1(0x1ab),'haqgy':function(_0x175790){return _0x175790();},'RXeNX':function(_0x5ae864,_0x145b8a,_0x710f5f){return _0x5ae864(_0x145b8a,_0x710f5f);},'sndZI':function(_0x1f8d9c){return _0x1f8d9c();},'JaTGG':function(_0x4970e4,_0x47c7f8,_0x391dbb){return _0x4970e4(_0x47c7f8,_0x391dbb);},'qvpKF':'debug','ttxLJ':function(_0x45b8b3){return _0x45b8b3();},'ifngn':_0x1111b1(0x16a),'IWDkA':_0x1111b1(0x16f),'qXQSU':_0x1111b1(0x1ac)},_0x591ad6='browserstack internal helper hook';this[_0x1111b1(0x177)](TEST_FRAMEWORK_HOOK_TIMEOUT[_0x14b1f2[_0x1111b1(0x1f0)]]),global['sessionName']=this[_0x1111b1(0x172)][_0x1111b1(0x1b7)]()[_0x1111b1(0x155)](_0x14b1f2['QSDdh']),PerformanceTester['measureWrapper'](PerformanceSdkEvents[_0x1111b1(0x1c8)],()=>{const _0x40da4d=_0x1111b1,_0x1dee8b={'CBAMG':_0x14b1f2['QSDdh'],'arAaU':function(_0x4ca52c,_0x2edd65){const _0x549a01=a35_0x3efd;return _0x14b1f2[_0x549a01(0x1da)](_0x4ca52c,_0x2edd65);},'OlhVL':_0x14b1f2[_0x40da4d(0x1e1)],'HoShv':function(_0x22a714,_0x1347b5,_0x370a2b){const _0x2756fb=_0x40da4d;return _0x14b1f2[_0x2756fb(0x1e6)](_0x22a714,_0x1347b5,_0x370a2b);},'ydDpS':function(_0x540118,_0x4826be){return _0x14b1f2['QwIPQ'](_0x540118,_0x4826be);},'rDFnF':_0x14b1f2[_0x40da4d(0x1ad)],'hCuin':_0x14b1f2[_0x40da4d(0x14d)],'uMKVX':_0x14b1f2[_0x40da4d(0x186)],'OOXgF':_0x14b1f2[_0x40da4d(0x1ca)],'cuLEv':function(_0xfe4e24,_0x4d6de4){return _0x14b1f2['MKnlF'](_0xfe4e24,_0x4d6de4);},'mztDh':function(_0x326261,_0x413ee3){const _0x4244e4=_0x40da4d;return _0x14b1f2[_0x4244e4(0x18c)](_0x326261,_0x413ee3);},'WShAY':_0x14b1f2[_0x40da4d(0x154)],'dsTft':_0x14b1f2[_0x40da4d(0x175)],'lsOsV':function(_0x199067,_0x2d1ac1,_0x43be11,_0xb39a85){const _0x50e2ce=_0x40da4d;return _0x14b1f2[_0x50e2ce(0x18f)](_0x199067,_0x2d1ac1,_0x43be11,_0xb39a85);},'cnTBT':_0x14b1f2[_0x40da4d(0x1cd)],'aGrzl':_0x14b1f2[_0x40da4d(0x1d0)],'VAVRp':_0x14b1f2[_0x40da4d(0x1f3)],'oavNO':_0x14b1f2[_0x40da4d(0x193)],'qTxKy':_0x14b1f2['pBnUq'],'qlCTV':_0x14b1f2[_0x40da4d(0x162)],'rjFZI':function(_0x4cb1c1){const _0x37a3ad=_0x40da4d;return _0x14b1f2[_0x37a3ad(0x14b)](_0x4cb1c1);},'yvbAr':function(_0x2341ea,_0x3f2ce3,_0x229d04){const _0xa08d1a=_0x40da4d;return _0x14b1f2[_0xa08d1a(0x1d6)](_0x2341ea,_0x3f2ce3,_0x229d04);},'WqCIr':function(_0x2adc7a){return _0x14b1f2['sndZI'](_0x2adc7a);},'TIpmK':function(_0x155aa9,_0x488743,_0x441914){return _0x14b1f2['JaTGG'](_0x155aa9,_0x488743,_0x441914);},'wbHJk':_0x14b1f2[_0x40da4d(0x16c)],'udXZj':function(_0xc1b6b){return _0x14b1f2['ttxLJ'](_0xc1b6b);}},_0x4a586a=async(_0x128854,_0x29e6fd)=>{const _0x1ce1a2=_0x40da4d;await global[_0x1ce1a2(0x1e3)][0x0]['executeScript'](_0x1ce1a2(0x199)+_0x128854+_0x1ce1a2(0x1a6)+_0x29e6fd+_0x1ce1a2(0x15b));};new Promise(async _0x50bd6f=>{const _0x3eabf6=_0x40da4d,_0x43577a={'MgSQa':function(_0x31cf61,_0x44a853){const _0x3007c9=a35_0x3efd;return _0x1dee8b[_0x3007c9(0x1bf)](_0x31cf61,_0x44a853);},'IdaFS':_0x1dee8b[_0x3eabf6(0x148)],'nVYvC':function(_0x2a1a95,_0x1b6e4f,_0x4843f1){const _0x59553a=_0x3eabf6;return _0x1dee8b[_0x59553a(0x1b8)](_0x2a1a95,_0x1b6e4f,_0x4843f1);},'wyKyt':function(_0x2e8825,_0x37bb7f){return _0x1dee8b['ydDpS'](_0x2e8825,_0x37bb7f);},'httLX':_0x1dee8b['rDFnF'],'Sriuk':_0x1dee8b[_0x3eabf6(0x1d4)],'xLnjO':_0x1dee8b[_0x3eabf6(0x160)],'fRodk':_0x1dee8b[_0x3eabf6(0x179)]};try{_0x1dee8b[_0x3eabf6(0x16d)](global[_0x3eabf6(0x1e3)][_0x3eabf6(0x1f1)],0x1)&&(await global['driverCleanup'](),global[_0x3eabf6(0x1e3)][_0x3eabf6(0x1ef)](),global['__error_messages__']=[],global[_0x3eabf6(0x19b)]=![]);try{if(global[_0x3eabf6(0x1dd)]&&_0x1dee8b[_0x3eabf6(0x17d)](global[_0x3eabf6(0x195)],_0x1dee8b[_0x3eabf6(0x1e7)])&&global['__drivers'][0x0]){const _0x58d452=_0x1dee8b['cuLEv'](global[_0x3eabf6(0x183)][_0x3eabf6(0x1f1)],0x0)?!!global['capabilities'][0x0]['app']||!!global[_0x3eabf6(0x183)][0x0][_0x1dee8b['dsTft']]:![],_0x1e8da1={};_0x1e8da1[_0x3eabf6(0x142)]=_0x58d452,await _0x1dee8b[_0x3eabf6(0x19f)](percyAutoCapture,global[_0x3eabf6(0x1e3)][0x0],_0x1dee8b[_0x3eabf6(0x1e7)],_0x1e8da1);}}catch(_0x531bf6){logger[_0x3eabf6(0x165)](_0x3eabf6(0x1af)+_0x531bf6);}!global['__skipSessionName']&&(await PerformanceTester[_0x3eabf6(0x141)](PerformanceAutEvents['SESSION_NAME'],async()=>{const _0x2d2892=_0x3eabf6;await global[_0x2d2892(0x1e3)][0x0]['executeScript'](_0x2d2892(0x1cf)+JSON[_0x2d2892(0x1b1)](this[_0x2d2892(0x172)][_0x2d2892(0x1b7)]()[_0x2d2892(0x155)](_0x1dee8b[_0x2d2892(0x1c5)]))+'}}');})(),global['__drivers'][0x0]['sessionNameSet__']=!![]),await PerformanceTester['measureWrapper'](PerformanceAutEvents[_0x3eabf6(0x1e0)],async()=>{const _0x33bf87=_0x3eabf6,_0x3dcf71=_0x43577a['MgSQa'](this['currentTest'][_0x33bf87(0x190)],_0x43577a[_0x33bf87(0x191)]);_0x3dcf71?(global['__sessionFailed']=!![],global[_0x33bf87(0x16e)][_0x33bf87(0x1c4)](this['currentTest'][_0x33bf87(0x178)][_0x33bf87(0x1e5)]),await _0x43577a[_0x33bf87(0x1e2)](_0x4a586a,JSON[_0x33bf87(0x1b1)](_0x43577a[_0x33bf87(0x161)](_0x43577a['httLX'],this[_0x33bf87(0x172)]['err']['message'])),_0x43577a[_0x33bf87(0x15a)])):await _0x43577a['nVYvC'](_0x4a586a,JSON['stringify'](_0x43577a[_0x33bf87(0x1ed)]),_0x43577a[_0x33bf87(0x157)]);})();}catch(_0x294d03){logger[_0x3eabf6(0x165)]('Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20'+_0x294d03);}try{if(this[_0x3eabf6(0x172)][_0x3eabf6(0x139)]&&globals['getGlobal'](_0x1dee8b[_0x3eabf6(0x1cc)])&&globals[_0x3eabf6(0x1a3)](_0x1dee8b[_0x3eabf6(0x14c)])){logger[_0x3eabf6(0x1bb)](_0x1dee8b['VAVRp']);const _0x261eed={};_0x261eed[_0x3eabf6(0x147)]=this[_0x3eabf6(0x172)][_0x3eabf6(0x1dc)],_0x261eed['thBuildUuid']=process['env'][testHubConstants['ENV_VAR'][_0x3eabf6(0x15f)]],_0x261eed[_0x3eabf6(0x1f2)]=process[_0x3eabf6(0x1b0)][testHubConstants[_0x3eabf6(0x1b5)][_0x3eabf6(0x1c1)]];const _0x29b238=_0x261eed;logger[_0x3eabf6(0x165)](_0x3eabf6(0x1a5)+JSON[_0x3eabf6(0x1b1)](_0x29b238)),logger[_0x3eabf6(0x165)](_0x1dee8b[_0x3eabf6(0x15d)]);const _0x1db996={};_0x1db996[_0x3eabf6(0x1bd)]=_0x1dee8b[_0x3eabf6(0x181)],await PerformanceTester[_0x3eabf6(0x141)](PerformanceA11yEvents[_0x3eabf6(0x198)],async()=>{const _0xfbb524=_0x3eabf6;logger[_0xfbb524(0x165)](util[_0xfbb524(0x13a)](await global[_0xfbb524(0x1e3)][0x0]['executeAsyncScript'](scripts[_0xfbb524(0x173)],{'method':global['browserstackSessionName']})));},_0x1db996)(),await PerformanceTester['measureWrapper'](PerformanceA11yEvents['SAVE_RESULTS'],async()=>{const _0x37ef75=_0x3eabf6;await global[_0x37ef75(0x1e3)][0x0][_0x37ef75(0x159)](scripts[_0x37ef75(0x170)],_0x29b238);})(),logger[_0x3eabf6(0x1bb)](_0x1dee8b[_0x3eabf6(0x1d2)]);}}catch(_0x473c96){logger[_0x3eabf6(0x17f)](_0x3eabf6(0x1ce)+this[_0x3eabf6(0x172)][_0x3eabf6(0x1b7)]()+_0x3eabf6(0x13b),_0x473c96);}try{try{if(_0x1dee8b[_0x3eabf6(0x17e)](shouldProcessEventForTesthub)){global['__drivers'][0x0]&&await _0x1dee8b['yvbAr'](sendPlatformDetails,global[_0x3eabf6(0x1e3)][0x0],this[_0x3eabf6(0x172)]?this[_0x3eabf6(0x172)][_0x3eabf6(0x1dc)]:null);if(_0x1dee8b['WqCIr'](isBrowserstackInfra)){PerformanceTester[_0x3eabf6(0x1a1)](PerformanceO11yEvents[_0x3eabf6(0x151)]);const _0x178c6a=_0x3eabf6(0x1a8)+Date['now']();await _0x1dee8b[_0x3eabf6(0x19c)](_0x4a586a,JSON[_0x3eabf6(0x1b1)](_0x178c6a),_0x1dee8b[_0x3eabf6(0x1ae)]),PerformanceTester[_0x3eabf6(0x1e9)](PerformanceO11yEvents[_0x3eabf6(0x151)]);}}}catch(_0x927583){logger[_0x3eabf6(0x165)](_0x3eabf6(0x13d)+_0x927583),PerformanceTester['end'](PerformanceO11yEvents[_0x3eabf6(0x151)],![],_0x927583);}_0x1dee8b[_0x3eabf6(0x16d)](global['__drivers'][0x0]['quitCount_'],0x0)&&await global[_0x3eabf6(0x1a2)]();}catch(_0x4a981c){logger[_0x3eabf6(0x165)](_0x3eabf6(0x1ee)+_0x4a981c);}_0x1dee8b[_0x3eabf6(0x180)](_0x50bd6f);})[_0x40da4d(0x1de)](()=>{_0x1dee8b['rjFZI'](_0x5c37ec);});},{'platform':_0x14b1f2[_0x1111b1(0x1f5)](nestedKeyValue,global[_0x1111b1(0x1b4)],[_0x14b1f2[_0x1111b1(0x197)]]),'hookType':_0x14b1f2[_0x1111b1(0x192)]})();},'afterAll'(_0x58a299){const _0x596010=a35_0x3c8e4e,_0x19d41c={'yxYFG':function(_0x33533e){return _0x33533e();},'fWqCQ':_0x596010(0x16a),'PxuRN':function(_0x298d22,_0x159be2,_0xb7bda1){return _0x298d22(_0x159be2,_0xb7bda1);},'CzQci':'index','vDyAm':'afterAll'},_0x2acdae='browserstack internal helper hook';this[_0x596010(0x177)](TEST_FRAMEWORK_HOOK_TIMEOUT[_0x19d41c[_0x596010(0x1a7)]]),PerformanceTester[_0x596010(0x141)](PerformanceSdkEvents[_0x596010(0x1c8)],()=>{const _0x4ba901=_0x596010;new Promise(async _0x432aea=>{const _0x4d41e7=a35_0x3efd;await global['driverCleanup'](),_0x19d41c[_0x4d41e7(0x15c)](_0x432aea);})[_0x4ba901(0x1de)]()[_0x4ba901(0x1a4)](()=>{const _0x42a0a4=_0x4ba901;_0x19d41c[_0x42a0a4(0x15c)](_0x58a299);});},{'platform':_0x19d41c[_0x596010(0x1d3)](nestedKeyValue,global['__platformCaps'],[_0x19d41c['CzQci']]),'hookType':_0x19d41c[_0x596010(0x1c0)]})();}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';function a36_0x1684(_0x3e5264,_0x1744b1){const _0x515a50=a36_0x515a();return a36_0x1684=function(_0x168413,_0x3c638c){_0x168413=_0x168413-0x1b1;let _0x123b57=_0x515a50[_0x168413];return _0x123b57;},a36_0x1684(_0x3e5264,_0x1744b1);}const a36_0x44bd0d=a36_0x1684;function a36_0x515a(){const _0x3d426e=['../../helpers/BrowserStackSetup','UOKgX','3182276nwkJlN','2dssUPB','qPCLx','trim','existsSync','../../helpers/helper','filter','nightwatch.cmd','3043797KkImEU','host','RzmSr','child_process','TZliY','modifyBrowserStackW3CCaps','lnVUF','writeFileSync','join','splice','pHvqR','port','nightwatch','ecBDh','test_settings','hub.browserstack.com','push','now','1050474RkrKiG','krYuY','rUWod','../../helpers/logger','413LwOliS','699839YluGMD','10297296jTRWOD','nightwatch.json','exports','env','ArWTo','55768tvVIZf','--env','getPlatformName','nTJDr','config','forEach','selenium','slice','webdriver','xqKYR','sHOTb','KAhNr','nightwatch.conf.js','Deleting\x20','stringify','--config','kcgKR','25tysFbG','Getting\x20your\x20nightwatch\x20configs\x20from\x20','mergeDeep','findIndex','debug','ypfFc','desiredCapabilities','map','pYZON','41919010qkyZOK','cwd','nightwatch-browserstack.json','info','btsdw','isUndefined','test','YFeas','child\x20process\x20exited\x20with\x20code\x20','PUPxY'];a36_0x515a=function(){return _0x3d426e;};return a36_0x515a();}(function(_0x272311,_0x2642b6){const _0x35b41f=a36_0x1684,_0x4eda6d=_0x272311();while(!![]){try{const _0x482b49=parseInt(_0x35b41f(0x1ea))/0x1*(parseInt(_0x35b41f(0x1cc))/0x2)+-parseInt(_0x35b41f(0x1d3))/0x3+-parseInt(_0x35b41f(0x1cb))/0x4+-parseInt(_0x35b41f(0x1b6))/0x5*(parseInt(_0x35b41f(0x1e5))/0x6)+-parseInt(_0x35b41f(0x1e9))/0x7*(parseInt(_0x35b41f(0x1f0))/0x8)+-parseInt(_0x35b41f(0x1eb))/0x9+parseInt(_0x35b41f(0x1bf))/0xa;if(_0x482b49===_0x2642b6)break;else _0x4eda6d['push'](_0x4eda6d['shift']());}catch(_0x38beec){_0x4eda6d['push'](_0x4eda6d['shift']());}}}(a36_0x515a,0x9edf8));const fs=require('fs'),path=require('path'),{spawn}=require(a36_0x44bd0d(0x1d6)),logger=require(a36_0x44bd0d(0x1e8))['winstonLogger'],{default:BrowserStackSetup}=require(a36_0x44bd0d(0x1c9)),helper=require(a36_0x44bd0d(0x1d0)),constants=require('../utils/constants'),getUserNightwatchConfigs=(_0x23a583,_0x5f0dae)=>{const _0x28d0f9=a36_0x44bd0d,_0x401910={'pHvqR':_0x28d0f9(0x1b1),'KAhNr':_0x28d0f9(0x1ec),'btsdw':function(_0x12a510,_0x381cc4){return _0x12a510(_0x381cc4);},'pYZON':'Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file'};let _0x540d71=null,_0x73b752={};const _0x2598cf=_0x5f0dae['findIndex'](_0x28bba2=>_0x28bba2===_0x28d0f9(0x1b4));if(!helper[_0x28d0f9(0x1c4)](_0x23a583[_0x28d0f9(0x1f4)])&&fs[_0x28d0f9(0x1cf)](path[_0x28d0f9(0x1db)](process[_0x28d0f9(0x1c0)](),_0x23a583[_0x28d0f9(0x1f4)])))_0x540d71=path['join'](process['cwd'](),_0x23a583[_0x28d0f9(0x1f4)]),_0x5f0dae[_0x28d0f9(0x1dc)](_0x2598cf,0x2);else{if(fs[_0x28d0f9(0x1cf)](path['join'](process[_0x28d0f9(0x1c0)](),_0x401910['pHvqR'])))_0x540d71=path['join'](process['cwd'](),_0x401910[_0x28d0f9(0x1dd)]);else fs[_0x28d0f9(0x1cf)](path[_0x28d0f9(0x1db)](process[_0x28d0f9(0x1c0)](),_0x401910[_0x28d0f9(0x1fb)]))&&(_0x540d71=path[_0x28d0f9(0x1db)](process[_0x28d0f9(0x1c0)](),_0x401910[_0x28d0f9(0x1fb)]));}return _0x540d71?(logger[_0x28d0f9(0x1c2)](_0x28d0f9(0x1b7)+_0x540d71),_0x73b752=_0x401910[_0x28d0f9(0x1c3)](require,_0x540d71)):logger[_0x28d0f9(0x1c2)](_0x401910[_0x28d0f9(0x1be)]),_0x73b752;},removeExistingEnvs=_0x58addc=>{const _0x319351=a36_0x44bd0d,_0x5112a0={};_0x5112a0[_0x319351(0x1b5)]=function(_0x29f8bd,_0x109795){return _0x29f8bd>_0x109795;},_0x5112a0[_0x319351(0x1f3)]=function(_0x457793,_0x3677ba){return _0x457793>_0x3677ba;};const _0x40a556=_0x5112a0;let _0x213acc=_0x58addc[_0x319351(0x1b9)](_0x23c9e9=>_0x23c9e9==='--env');_0x40a556[_0x319351(0x1b5)](_0x213acc,-0x1)&&_0x58addc['splice'](_0x213acc,0x2),_0x213acc=_0x58addc[_0x319351(0x1b9)](_0x5e693d=>_0x5e693d==='-e'),_0x40a556[_0x319351(0x1f3)](_0x213acc,-0x1)&&_0x58addc['splice'](_0x213acc,0x2);};function run(_0x319254,_0x10eb73,_0x30289a){const _0x4f8352=a36_0x44bd0d,_0x22005b={'qPCLx':_0x4f8352(0x1df),'ArWTo':function(_0x147e2d,_0x3e413e){return _0x147e2d+_0x3e413e;},'TZliY':_0x4f8352(0x1e1),'lnVUF':function(_0x4dfc7f,_0x2e6540,_0x257c16){return _0x4dfc7f(_0x2e6540,_0x257c16);},'YFeas':_0x4f8352(0x1e2),'Gdfkz':'Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','PUPxY':function(_0x287202,_0x36ada7){return _0x287202===_0x36ada7;},'sHOTb':_0x4f8352(0x1c1),'ypfFc':function(_0x394282,_0x4d0e77){return _0x394282(_0x4d0e77);},'ecBDh':function(_0x2a9a97,_0x38064d,_0x372616,_0x5a4b01){return _0x2a9a97(_0x38064d,_0x372616,_0x5a4b01);},'cQtPf':_0x4f8352(0x1d2),'xqKYR':_0x4f8352(0x1b4),'UOKgX':_0x4f8352(0x1f1),'zMMaL':'inherit','krYuY':'close'};if(!_0x30289a['config'])return;const _0x5665b0=_0x22005b[_0x4f8352(0x1d9)](getUserNightwatchConfigs,_0x319254,_0x10eb73),_0x257a30={};_0x257a30['start_process']=![];const _0x135733={};_0x135733[_0x4f8352(0x1d4)]=_0x22005b[_0x4f8352(0x1c6)],_0x135733[_0x4f8352(0x1de)]=0x1bb;const _0xb1dcf5={};_0xb1dcf5[_0x4f8352(0x1f8)]=_0x257a30,_0xb1dcf5[_0x4f8352(0x1f6)]=_0x135733;const _0x39ad63=_0xb1dcf5;logger[_0x4f8352(0x1c2)](_0x22005b['Gdfkz']);const _0x231f12={..._0x5665b0},_0x44369c=_0x231f12,_0x2490cb=helper['useW3C'](_0x30289a[_0x4f8352(0x1f4)]),_0x13652d=[];_0x30289a[_0x4f8352(0x1f4)]['platforms'][_0x4f8352(0x1f5)]((_0x37fab3,_0x20cdcc)=>{const _0x36438f=_0x4f8352;_0x2490cb?_0x13652d['push'](helper[_0x36438f(0x1d8)](_0x30289a[_0x36438f(0x1f4)],_0x22005b[_0x36438f(0x1cd)],_0x20cdcc)):_0x13652d['push'](helper['modifyBrowserStackCaps'](_0x30289a[_0x36438f(0x1f4)],_0x22005b[_0x36438f(0x1cd)],_0x20cdcc));});const _0xa2a54={},_0x526d7a=[];_0x319254[_0x4f8352(0x1ee)]=_0x319254['env']||_0x319254['e'];const _0x3c28aa=_0x319254[_0x4f8352(0x1ee)]?_0x319254[_0x4f8352(0x1ee)]['trim']()['split'](',')[_0x4f8352(0x1bd)](_0x3b22c1=>_0x3b22c1[_0x4f8352(0x1ce)]())[_0x4f8352(0x1d1)](_0x21aae1=>_0x21aae1!==''):[''];_0x22005b[_0x4f8352(0x1c8)](_0x3c28aa['length'],0x0)&&_0x3c28aa[_0x4f8352(0x1e3)]('');_0x3c28aa[_0x4f8352(0x1f5)](_0x1afdb7=>{const _0x1eb584=_0x4f8352,_0x55efe3={'rUWod':function(_0x1a6099,_0x5ad685){const _0x42841d=a36_0x1684;return _0x22005b[_0x42841d(0x1ef)](_0x1a6099,_0x5ad685);},'RzmSr':_0x22005b[_0x1eb584(0x1d7)]};_0x13652d['forEach'](_0x650c13=>{const _0x518a2c=_0x1eb584;let _0x239cac=_0x55efe3[_0x518a2c(0x1e7)](helper[_0x518a2c(0x1f2)](_0x650c13,'_'),'_'+Date[_0x518a2c(0x1e4)]());_0x1afdb7&&(_0x239cac+='_'+_0x1afdb7);if(_0x1afdb7&&(!_0x5665b0[_0x55efe3['RzmSr']]||!_0x5665b0[_0x55efe3[_0x518a2c(0x1d5)]][_0x1afdb7]))return;const _0x5149ee={..._0x39ad63};_0x5149ee[_0x518a2c(0x1bc)]=_0x650c13;const _0x2e3c36=_0x5149ee;_0xa2a54[_0x239cac]=_0x1afdb7?helper[_0x518a2c(0x1b8)](_0x5665b0[_0x55efe3[_0x518a2c(0x1d5)]][_0x1afdb7],_0x2e3c36):_0x2e3c36,_0x526d7a[_0x518a2c(0x1e3)](_0x239cac);});});!_0x44369c[_0x4f8352(0x1e1)]&&(_0x44369c[_0x4f8352(0x1e1)]={});_0x44369c[_0x4f8352(0x1e1)]={..._0x44369c[_0x4f8352(0x1e1)],..._0xa2a54};const _0x4172e4=path[_0x4f8352(0x1db)](__dirname,_0x22005b[_0x4f8352(0x1fa)]);fs[_0x4f8352(0x1da)](_0x4172e4,JSON[_0x4f8352(0x1b3)](_0x44369c)),_0x22005b[_0x4f8352(0x1bb)](removeExistingEnvs,_0x10eb73);const _0x59b0f2=_0x22005b[_0x4f8352(0x1e0)](spawn,/^win/[_0x4f8352(0x1c5)](process['platform'])?_0x22005b['cQtPf']:_0x22005b[_0x4f8352(0x1cd)],[_0x22005b[_0x4f8352(0x1f9)],_0x4172e4,..._0x10eb73[_0x4f8352(0x1f7)](0x1),_0x22005b[_0x4f8352(0x1ca)],_0x526d7a[_0x4f8352(0x1db)](',')],{'stdio':_0x22005b['zMMaL']});_0x59b0f2['on'](_0x22005b[_0x4f8352(0x1e6)],async _0x45a4ec=>{const _0x3fadde=_0x4f8352;logger[_0x3fadde(0x1ba)](_0x3fadde(0x1c7)+_0x45a4ec),logger['info'](_0x3fadde(0x1b2)+_0x4172e4),fs['unlinkSync'](_0x4172e4);});}module[a36_0x44bd0d(0x1ed)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a37_0x3363(){const _0x230d69=['Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','accessibilityOptions.includeIssueType.needsReview','getAccessibilityResults','71600HuJmBK','chromium','../../helpers/accessibility-automation/scripts','sFOBW','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','3879dMJzVh','debug','VKRGV','includeIssueType','No\x20accessibility\x20results\x20were\x20found.','No\x20summaryResults\x20found.','stringify','jGUOf','../../helpers/helper','BjAxV','browser_version','playwright-chromium','browserStackEvaluate','replace','OJPKL','deviceName','accessibilityPlatform','WebDriver','evaluate','winstonLogger','VXEDA','wmgMu','measureWrapper','accessibilityOptions.includeIssueType.bestPractice','uasBe','connectOptions','DzVAy','\x20page:\x20','browser','needsReview','../../helpers/logger','btZJF','1460DLZsdh','hnMEH','performScan','Performing\x20scan\x20with\x20method:\x20','540505KrihfB','199830onwPLx','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','currentTest','AIygk','6129wSdRwD','mrfJw','ZsbbT','scannerVersion','(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','yjoyg','YYghU','executeScript','accessibilityOptions.scannerProcessingTimeout','../../helpers/performance/constants','accessibilityOptions.wcagVersion','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x20100.','(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','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','fJEhO','name','platformValidation','parse','PvXAR','constructor','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','format','latest','MbxcM','browserStackExecuteDriver','env','project','../../helpers/accessibility-automation/helper','aQzki','getAccessibilityResultsSummary','LgXpr','../../helpers/performance/performance-tester','ewyKu','OSYgh','browserName','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','pCqfO','733944lGrZfa','6301526dNAVaP','12NjtrZS','dpEeu','tJCwC','xcanr','accessibilityOptions','LAwQW','util','Ktpry','FqjaD','includes','use','warn','processAccessibilityCaps','bstackSdkArgs','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','ygefL','otRrR','kYZNe','wcagVersion','8SwEKDI','kTAXh','PERFORM_SCAN','scannerProcessingTimeout','accessibilityOptions.authToken','workerInfo','QdBNW','TDEPE','KIrnL','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','setAccessibilityCapabilities','aTtof','wsEndpoint','326OSIrMo'];a37_0x3363=function(){return _0x230d69;};return a37_0x3363();}const a37_0x1ae385=a37_0x3fcf;function a37_0x3fcf(_0x4d7035,_0x45744f){const _0x33634d=a37_0x3363();return a37_0x3fcf=function(_0x3fcfa1,_0x26a182){_0x3fcfa1=_0x3fcfa1-0xec;let _0x4d6c6d=_0x33634d[_0x3fcfa1];return _0x4d6c6d;},a37_0x3fcf(_0x4d7035,_0x45744f);}(function(_0x799bdb,_0x2e0e3b){const _0x44f503=a37_0x3fcf,_0x2414c6=_0x799bdb();while(!![]){try{const _0xa48ecd=-parseInt(_0x44f503(0xf1))/0x1+-parseInt(_0x44f503(0xed))/0x2*(parseInt(_0x44f503(0xf7))/0x3)+-parseInt(_0x44f503(0x147))/0x4*(-parseInt(_0x44f503(0x11c))/0x5)+-parseInt(_0x44f503(0x145))/0x6+parseInt(_0x44f503(0x11b))/0x7*(-parseInt(_0x44f503(0x15a))/0x8)+parseInt(_0x44f503(0x120))/0x9*(-parseInt(_0x44f503(0x117))/0xa)+parseInt(_0x44f503(0x146))/0xb;if(_0xa48ecd===_0x2e0e3b)break;else _0x2414c6['push'](_0x2414c6['shift']());}catch(_0x4269f9){_0x2414c6['push'](_0x2414c6['shift']());}}}(a37_0x3363,0x1b350));const util=require(a37_0x1ae385(0x14d)),logger=require(a37_0x1ae385(0x115))[a37_0x1ae385(0x10a)],{isAccessibilityAutomationSession}=require(a37_0x1ae385(0x13b)),{isUndefined,isBrowserstackInfra}=require(a37_0x1ae385(0xff)),scripts=require(a37_0x1ae385(0xf3)),PerformanceTester=require(a37_0x1ae385(0x13f)),{A11Y_EVENTS:PerformanceA11yEvents}=require(a37_0x1ae385(0x129));exports[a37_0x1ae385(0x103)]=async(_0x58184a,_0x3c726e,_0x2b84ce={})=>{const _0x2a08f6=a37_0x1ae385,_0x23b220={};_0x23b220[_0x2a08f6(0x132)]=_0x2a08f6(0x154);const _0x47e2fd=_0x23b220;return await _0x58184a[_0x2a08f6(0x109)](_0x2a08f6(0x124)+_0x3c726e[_0x2a08f6(0x104)](/arguments/g,_0x47e2fd[_0x2a08f6(0x132)])+_0x2a08f6(0x143)+JSON[_0x2a08f6(0xfd)](_0x2b84ce)+')');},exports[a37_0x1ae385(0x138)]=async(_0x4f59a8,_0xfc44da,_0xad97c1={})=>{const _0xdb0721=a37_0x1ae385,_0x407c5b={};_0x407c5b[_0xdb0721(0x111)]=function(_0x40c740,_0x25e5bf){return _0x40c740===_0x25e5bf;},_0x407c5b[_0xdb0721(0x165)]=_0xdb0721(0x108),_0x407c5b[_0xdb0721(0x10f)]=function(_0xfe8e1c,_0x228e00){return _0xfe8e1c===_0x228e00;},_0x407c5b[_0xdb0721(0xfe)]='Playwright',_0x407c5b[_0xdb0721(0xf4)]=_0xdb0721(0x154);const _0x574ed7=_0x407c5b;if(_0x574ed7[_0xdb0721(0x111)](_0x4f59a8['constructor'][_0xdb0721(0x12f)],_0x574ed7[_0xdb0721(0x165)]))return await _0x4f59a8['executeAsyncScript'](_0xfc44da,_0xad97c1);else{if(_0x574ed7[_0xdb0721(0x10f)](_0x4f59a8[_0xdb0721(0x133)]['name'],_0x574ed7['jGUOf']))return await _0x4f59a8[_0xdb0721(0x127)](_0xdb0721(0x12c)+_0xfc44da[_0xdb0721(0x104)](/arguments/g,_0x574ed7[_0xdb0721(0xf4)])+_0xdb0721(0x11d)+JSON[_0xdb0721(0xfd)](_0xad97c1)+')');}},exports[a37_0x1ae385(0x164)]=async _0x2bcf5b=>{const _0x47b93b=a37_0x1ae385,_0x92418d={};_0x92418d[_0x47b93b(0x116)]=_0x47b93b(0x12a),_0x92418d[_0x47b93b(0x160)]=_0x47b93b(0x128),_0x92418d[_0x47b93b(0x11f)]=_0x47b93b(0x10e),_0x92418d[_0x47b93b(0x121)]=_0x47b93b(0xef),_0x92418d[_0x47b93b(0x156)]=_0x47b93b(0x15e),_0x92418d[_0x47b93b(0x149)]='accessibilityOptions.scannerVersion';const _0xf58093=_0x92418d;_0x2bcf5b[_0x47b93b(0x14b)]&&(_0x2bcf5b['accessibilityOptions'][_0x47b93b(0x159)]&&(_0x2bcf5b[_0xf58093['btZJF']]=_0x2bcf5b[_0x47b93b(0x14b)]['wcagVersion']),_0x2bcf5b[_0x47b93b(0x14b)][_0x47b93b(0x15d)]&&(_0x2bcf5b[_0xf58093[_0x47b93b(0x160)]]=_0x2bcf5b[_0x47b93b(0x14b)][_0x47b93b(0x15d)]),_0x2bcf5b[_0x47b93b(0x14b)][_0x47b93b(0xfa)]&&(_0x2bcf5b[_0xf58093['AIygk']]=_0x2bcf5b[_0x47b93b(0x14b)]['includeIssueType']['bestPractice'],_0x2bcf5b[_0xf58093[_0x47b93b(0x121)]]=_0x2bcf5b[_0x47b93b(0x14b)][_0x47b93b(0xfa)][_0x47b93b(0x114)]));const _0x5a87ca=JSON[_0x47b93b(0x131)](process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML'])[_0x47b93b(0x123)];_0x2bcf5b[_0xf58093[_0x47b93b(0x156)]]=process[_0x47b93b(0x139)]['BS_A11Y_JWT'],_0x2bcf5b[_0xf58093[_0x47b93b(0x149)]]=_0x5a87ca,delete _0x2bcf5b[_0x47b93b(0x14b)];},exports[a37_0x1ae385(0xf0)]=async _0x4d6cfc=>{const _0x4b968f=a37_0x1ae385,_0x568534={};_0x568534['VKRGV']=_0x4b968f(0xfb),_0x568534[_0x4b968f(0x13c)]=_0x4b968f(0x163);const _0x5c2956=_0x568534;if(global['accessibilityPlatform'])try{logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x4d6cfc,scripts.performScan)));},{command:'getAccessibilityResults'})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x4d6cfc,scripts.getResults);})();return res;}catch{return logger['error'](_0x5c2956[_0x4b968f(0xf9)]),[];}else return logger[_0x4b968f(0x152)](_0x5c2956[_0x4b968f(0x13c)]),[];},exports[a37_0x1ae385(0x119)]=async(_0x130227,_0x2d88c7='')=>{const _0x40df0a=a37_0x1ae385;logger['debug'](_0x40df0a(0x11a)+_0x2d88c7+_0x40df0a(0x112)+_0x130227);if(global[_0x40df0a(0x107)])return await PerformanceTester[_0x40df0a(0x10d)](PerformanceA11yEvents[_0x40df0a(0x15c)],async()=>{const _0x2eb614={};_0x2eb614['command']=_0x2d88c7,await exports['browserStackEvaluate'](_0x130227,scripts['performScan'],_0x2eb614);},{'command':_0x2d88c7})();},exports[a37_0x1ae385(0x13d)]=async _0x565b0c=>{const _0x2ae7e0=a37_0x1ae385,_0xe089bf={};_0xe089bf['pCqfO']=_0x2ae7e0(0xfc),_0xe089bf['ohpPa']=_0x2ae7e0(0xee);const _0x52f47f=_0xe089bf;if(global[_0x2ae7e0(0x107)])try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x565b0c,scripts.performScan)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x565b0c,scripts.getResultsSummary);})();return summaryResults;}catch{return logger['debug'](_0x52f47f[_0x2ae7e0(0x144)]),{};}else return logger['warn'](_0x52f47f['ohpPa']),{};},exports[a37_0x1ae385(0x130)]=async _0x16df6a=>{const _0x1b5cc1=a37_0x1ae385,_0x5c4d2f={'pntzm':function(_0x393909,_0x25849b){return _0x393909!==_0x25849b;},'fJEhO':_0x1b5cc1(0xf6),'mGwsT':'chrome','MbxcM':_0x1b5cc1(0x102),'VXEDA':_0x1b5cc1(0xf2),'yjoyg':_0x1b5cc1(0xf5),'KIrnL':function(_0x51d211,_0xc62c2c){return _0x51d211(_0xc62c2c);},'FqjaD':function(_0x280dbf){return _0x280dbf();},'TDEPE':function(_0x58a007,_0x22c189){return _0x58a007<_0x22c189;},'LAwQW':_0x1b5cc1(0x12b),'YvNDB':function(_0x472604,_0x2c956a){return _0x472604===_0x2c956a;},'rdhas':'latest','kYZNe':function(_0x50b3bc,_0x1720e1){return _0x50b3bc>_0x1720e1;},'OSYgh':_0x1b5cc1(0x12d)};try{if(!_0x5c4d2f['pntzm'](_0x16df6a[_0x1b5cc1(0x106)],''))return logger[_0x1b5cc1(0x152)](_0x5c4d2f[_0x1b5cc1(0x12e)]),![];const _0x13af58=_0x16df6a[_0x1b5cc1(0x113)];if(![_0x5c4d2f['mGwsT'],_0x5c4d2f[_0x1b5cc1(0x137)],_0x5c4d2f[_0x1b5cc1(0x10b)]][_0x1b5cc1(0x150)](_0x13af58))return logger[_0x1b5cc1(0x152)](_0x5c4d2f[_0x1b5cc1(0x125)]),![];const _0x331ba2=_0x5c4d2f[_0x1b5cc1(0x162)](parseInt,_0x16df6a['browser_version']);!_0x5c4d2f[_0x1b5cc1(0x14f)](isBrowserstackInfra)&&(!_0x5c4d2f[_0x1b5cc1(0x161)](_0x331ba2,0x64)&&logger[_0x1b5cc1(0x152)](_0x5c4d2f[_0x1b5cc1(0x14c)]));if(!(_0x5c4d2f['YvNDB'](_0x331ba2,_0x5c4d2f['rdhas'])||_0x5c4d2f[_0x1b5cc1(0x158)](_0x331ba2,0x5e)))return logger[_0x1b5cc1(0x152)](_0x5c4d2f[_0x1b5cc1(0x141)]),![];}catch(_0x104d0d){logger[_0x1b5cc1(0xf8)](_0x1b5cc1(0x155)+util['format'](_0x104d0d));}return!![];},exports[a37_0x1ae385(0x153)]=(_0x42d7e5,_0x39b3c6,_0x54fbad)=>{const _0x3f6412=a37_0x1ae385,_0x41448d={'dpEeu':function(_0x28585d){return _0x28585d();},'BjAxV':'browserstack.accessibility','wmgMu':function(_0x451b49,_0x5a6632){return _0x451b49===_0x5a6632;},'OJPKL':'chrome','YYghU':'playwright-chromium','xcanr':_0x3f6412(0xf5),'LgXpr':function(_0x8aa2a6){return _0x8aa2a6();},'kTAXh':function(_0x454dad,_0x741c14){return _0x454dad>_0x741c14;},'fRbWY':_0x3f6412(0x12b),'ZsbbT':function(_0x471b56,_0x940c37){return _0x471b56===_0x940c37;},'cJZOe':_0x3f6412(0x136),'hnMEH':function(_0x19fc56,_0x506ac0){return _0x19fc56>_0x506ac0;},'ewyKu':_0x3f6412(0x12d),'Ktpry':function(_0x2c2578,_0x481159){return _0x2c2578(_0x481159);},'MOZJL':_0x3f6412(0xf6),'otRrR':function(_0x1f91e8,_0x256ba7){return _0x1f91e8+_0x256ba7;}};try{if(_0x41448d[_0x3f6412(0x148)](isAccessibilityAutomationSession)){global[_0x3f6412(0x107)]=!![];!_0x42d7e5[_0x41448d[_0x3f6412(0x100)]]&&(global[_0x3f6412(0x107)]=![]);!(_0x41448d['wmgMu'](_0x42d7e5['browserName'],_0x41448d['OJPKL'])||_0x41448d['wmgMu'](_0x42d7e5[_0x3f6412(0x142)],_0x41448d[_0x3f6412(0x126)])||_0x41448d[_0x3f6412(0x10c)](_0x42d7e5[_0x3f6412(0x113)],_0x41448d[_0x3f6412(0x105)])||_0x41448d['wmgMu'](_0x42d7e5[_0x3f6412(0x113)],_0x41448d['YYghU']))&&(logger[_0x3f6412(0x152)](_0x41448d[_0x3f6412(0x14a)]),global[_0x3f6412(0x107)]=![]);!_0x41448d[_0x3f6412(0x13e)](isBrowserstackInfra)&&(!_0x41448d[_0x3f6412(0x15b)](_0x42d7e5[_0x3f6412(0x101)],0x64)&&logger['warn'](_0x41448d['fRbWY']));!(_0x41448d[_0x3f6412(0x122)](_0x42d7e5[_0x3f6412(0x101)],_0x41448d['cJZOe'])||_0x41448d[_0x3f6412(0x118)](_0x42d7e5['browser_version'],0x5e))&&(logger['warn'](_0x41448d[_0x3f6412(0x140)]),global[_0x3f6412(0x107)]=![]);!_0x41448d[_0x3f6412(0x14e)](isUndefined,_0x42d7e5[_0x3f6412(0x106)])&&(logger['warn'](_0x41448d['MOZJL']),global[_0x3f6412(0x107)]=![]);if(!global[_0x3f6412(0x107)]){_0x42d7e5[_0x41448d['BjAxV']]=![];const _0x24f732=_0x41448d[_0x3f6412(0x157)](_0x39b3c6,_0x41448d[_0x3f6412(0x14e)](encodeURIComponent,JSON[_0x3f6412(0xfd)](_0x42d7e5)));_0x54fbad&&(_0x54fbad[_0x3f6412(0x11e)]['testInfo'][_0x3f6412(0x13a)][_0x3f6412(0x151)][_0x3f6412(0x110)][_0x3f6412(0xec)]=_0x24f732,_0x54fbad[_0x3f6412(0x15f)][_0x3f6412(0x13a)][_0x3f6412(0x151)][_0x3f6412(0x110)][_0x3f6412(0xec)]=_0x24f732);}}else global[_0x3f6412(0x107)]=![];}catch(_0x4dd6e5){logger[_0x3f6412(0xf8)](_0x3f6412(0x134)+util[_0x3f6412(0x135)](_0x4dd6e5));}};
|
|
1
|
+
const a37_0x46bab9=a37_0xe73b;function a37_0xe73b(_0x337ca6,_0x45c1a5){const _0xca57dd=a37_0xca57();return a37_0xe73b=function(_0xe73b6f,_0x200516){_0xe73b6f=_0xe73b6f-0xe5;let _0x1bd588=_0xca57dd[_0xe73b6f];return _0x1bd588;},a37_0xe73b(_0x337ca6,_0x45c1a5);}(function(_0x2f790d,_0x365bd5){const _0x28de30=a37_0xe73b,_0x45e0f9=_0x2f790d();while(!![]){try{const _0x402648=-parseInt(_0x28de30(0x124))/0x1+parseInt(_0x28de30(0x11a))/0x2+parseInt(_0x28de30(0x13a))/0x3+-parseInt(_0x28de30(0x151))/0x4*(-parseInt(_0x28de30(0xe9))/0x5)+parseInt(_0x28de30(0xf0))/0x6+-parseInt(_0x28de30(0x106))/0x7+-parseInt(_0x28de30(0x121))/0x8;if(_0x402648===_0x365bd5)break;else _0x45e0f9['push'](_0x45e0f9['shift']());}catch(_0x413687){_0x45e0f9['push'](_0x45e0f9['shift']());}}}(a37_0xca57,0x5aee5));const util=require(a37_0x46bab9(0xeb)),logger=require(a37_0x46bab9(0x122))[a37_0x46bab9(0xf7)],{isAccessibilityAutomationSession}=require(a37_0x46bab9(0x150)),{isUndefined,isBrowserstackInfra}=require(a37_0x46bab9(0x148)),scripts=require('../../helpers/accessibility-automation/scripts'),PerformanceTester=require(a37_0x46bab9(0x123)),{A11Y_EVENTS:PerformanceA11yEvents}=require(a37_0x46bab9(0x104));exports[a37_0x46bab9(0x149)]=async(_0x47c6dc,_0x771fec,_0xdd79f0={})=>{const _0x51b99c=a37_0x46bab9,_0x490bd2={};_0x490bd2[_0x51b99c(0x145)]='bstackSdkArgs';const _0x35bd85=_0x490bd2;return await _0x47c6dc[_0x51b99c(0x14c)]('(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20'+_0x771fec['replace'](/arguments/g,_0x35bd85['lORcw'])+_0x51b99c(0x127)+JSON[_0x51b99c(0x141)](_0xdd79f0)+')');},exports[a37_0x46bab9(0x12c)]=async(_0x3e39e6,_0x21ceca,_0x4888c8={})=>{const _0xec6873=a37_0x46bab9,_0x2d4eed={};_0x2d4eed[_0xec6873(0xf5)]=function(_0x4dc809,_0x3a05b5){return _0x4dc809===_0x3a05b5;},_0x2d4eed[_0xec6873(0x157)]=_0xec6873(0x116),_0x2d4eed[_0xec6873(0x13c)]=function(_0x37c73f,_0x3d981f){return _0x37c73f===_0x3d981f;},_0x2d4eed[_0xec6873(0x14f)]='Playwright',_0x2d4eed[_0xec6873(0x10c)]=_0xec6873(0x147);const _0xf92086=_0x2d4eed;if(_0xf92086[_0xec6873(0xf5)](_0x3e39e6[_0xec6873(0xea)]['name'],_0xf92086[_0xec6873(0x157)]))return await _0x3e39e6[_0xec6873(0x11e)](_0x21ceca,_0x4888c8);else{if(_0xf92086[_0xec6873(0x13c)](_0x3e39e6['constructor'][_0xec6873(0x119)],_0xf92086[_0xec6873(0x14f)]))return await _0x3e39e6['executeScript'](_0xec6873(0x11f)+_0x21ceca['replace'](/arguments/g,_0xf92086[_0xec6873(0x10c)])+_0xec6873(0x156)+JSON[_0xec6873(0x141)](_0x4888c8)+')');}},exports[a37_0x46bab9(0xfd)]=async _0x3433d2=>{const _0x5a8c3e=a37_0x46bab9,_0x44aa57={};_0x44aa57[_0x5a8c3e(0x10b)]=_0x5a8c3e(0x136),_0x44aa57[_0x5a8c3e(0x130)]=_0x5a8c3e(0x138),_0x44aa57[_0x5a8c3e(0x14a)]='accessibilityOptions.includeIssueType.bestPractice',_0x44aa57[_0x5a8c3e(0xee)]='accessibilityOptions.includeIssueType.needsReview',_0x44aa57['YXBQY']=_0x5a8c3e(0x143),_0x44aa57[_0x5a8c3e(0x117)]=_0x5a8c3e(0x12a);const _0x426630=_0x44aa57;_0x3433d2[_0x5a8c3e(0x133)]&&(_0x3433d2[_0x5a8c3e(0x133)][_0x5a8c3e(0xfb)]&&(_0x3433d2[_0x426630[_0x5a8c3e(0x10b)]]=_0x3433d2[_0x5a8c3e(0x133)]['wcagVersion']),_0x3433d2[_0x5a8c3e(0x133)][_0x5a8c3e(0x115)]&&(_0x3433d2[_0x426630[_0x5a8c3e(0x130)]]=_0x3433d2[_0x5a8c3e(0x133)][_0x5a8c3e(0x115)]),_0x3433d2[_0x5a8c3e(0x133)][_0x5a8c3e(0xfe)]&&(_0x3433d2[_0x426630['aaqPR']]=_0x3433d2[_0x5a8c3e(0x133)][_0x5a8c3e(0xfe)][_0x5a8c3e(0x12e)],_0x3433d2[_0x426630[_0x5a8c3e(0xee)]]=_0x3433d2[_0x5a8c3e(0x133)]['includeIssueType']['needsReview']));const _0x46d043=JSON[_0x5a8c3e(0x118)](process[_0x5a8c3e(0x113)][_0x5a8c3e(0x153)])[_0x5a8c3e(0xfa)];_0x3433d2[_0x426630[_0x5a8c3e(0x114)]]=process[_0x5a8c3e(0x113)][_0x5a8c3e(0x10e)],_0x3433d2[_0x426630[_0x5a8c3e(0x117)]]=_0x46d043,delete _0x3433d2[_0x5a8c3e(0x133)];},exports[a37_0x46bab9(0x137)]=async _0x9b237f=>{const _0x551cc0=a37_0x46bab9,_0x14bb61={};_0x14bb61[_0x551cc0(0xe6)]=_0x551cc0(0xed),_0x14bb61['NyGrq']=_0x551cc0(0xe8);const _0xa82005=_0x14bb61;if(global[_0x551cc0(0x10d)])try{logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x9b237f,scripts.performScan)));},{command:'getAccessibilityResults'})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x9b237f,scripts.getResults);})();return res;}catch{return logger[_0x551cc0(0x14e)](_0xa82005['tWbPT']),[];}else return logger['warn'](_0xa82005[_0x551cc0(0x139)]),[];},exports[a37_0x46bab9(0x13f)]=async(_0x3da83e,_0x47d41e='')=>{const _0x3ec77f=a37_0x46bab9;logger[_0x3ec77f(0x144)]('Performing\x20scan\x20with\x20method:\x20'+_0x47d41e+_0x3ec77f(0x152)+_0x3da83e);if(global[_0x3ec77f(0x10d)])return await PerformanceTester[_0x3ec77f(0x146)](PerformanceA11yEvents[_0x3ec77f(0xf6)],async()=>{const _0xc3cbdc=_0x3ec77f,_0x5784ea={};_0x5784ea['command']=_0x47d41e,await exports[_0xc3cbdc(0x149)](_0x3da83e,scripts['performScan'],_0x5784ea);},{'command':_0x47d41e})();},exports[a37_0x46bab9(0x10f)]=async _0x3e283f=>{const _0x25c051=a37_0x46bab9,_0x1de5d0={};_0x1de5d0[_0x25c051(0x129)]=_0x25c051(0x100),_0x1de5d0[_0x25c051(0xe5)]=_0x25c051(0xef);const _0x14b778=_0x1de5d0;if(global[_0x25c051(0x10d)])try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x3e283f,scripts.performScan)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x3e283f,scripts.getResultsSummary);})();return summaryResults;}catch{return logger[_0x25c051(0x144)](_0x14b778['exMgW']),{};}else return logger[_0x25c051(0x108)](_0x14b778['ZKvZx']),{};},exports['platformValidation']=async _0xec5104=>{const _0x524be1=a37_0x46bab9,_0x55dead={'JabwC':function(_0x2319f0,_0x177b63){return _0x2319f0!==_0x177b63;},'RvfaL':_0x524be1(0x134),'AIQSc':_0x524be1(0x10a),'ROMzw':_0x524be1(0xe7),'FCMwq':_0x524be1(0x125),'KtXuJ':_0x524be1(0xff),'CRImP':function(_0x5a71a1,_0xb0de66){return _0x5a71a1(_0xb0de66);},'FNSdz':function(_0x5779a9){return _0x5779a9();},'iMFRg':function(_0x198e25,_0x5b9e13){return _0x198e25<_0x5b9e13;},'NYpYZ':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x20100.','mvihS':function(_0x45bfd4,_0x1eb6b7){return _0x45bfd4===_0x1eb6b7;},'HYaBr':'latest','vrspK':function(_0x3d32a7,_0x59ca66){return _0x3d32a7>_0x59ca66;},'DCqBB':_0x524be1(0x11c)};try{if(!_0x55dead[_0x524be1(0x140)](_0xec5104['deviceName'],''))return logger[_0x524be1(0x108)](_0x55dead['RvfaL']),![];const _0x1b7a2b=_0xec5104[_0x524be1(0xf8)];if(![_0x55dead[_0x524be1(0xec)],_0x55dead[_0x524be1(0x14b)],_0x55dead['FCMwq']]['includes'](_0x1b7a2b))return logger[_0x524be1(0x108)](_0x55dead[_0x524be1(0x111)]),![];const _0x310918=_0x55dead['CRImP'](parseInt,_0xec5104[_0x524be1(0xf2)]);!_0x55dead[_0x524be1(0xfc)](isBrowserstackInfra)&&(!_0x55dead[_0x524be1(0xf3)](_0x310918,0x64)&&logger['warn'](_0x55dead[_0x524be1(0x12b)]));if(!(_0x55dead[_0x524be1(0x142)](_0x310918,_0x55dead['HYaBr'])||_0x55dead[_0x524be1(0x132)](_0x310918,0x5e)))return logger[_0x524be1(0x108)](_0x55dead['DCqBB']),![];}catch(_0x399965){logger[_0x524be1(0x144)](_0x524be1(0x128)+util['format'](_0x399965));}return!![];},exports[a37_0x46bab9(0x105)]=(_0x124f88,_0x19f45f,_0x3508c3)=>{const _0x2ac4dd=a37_0x46bab9,_0x4b1f3b={'PsCIy':function(_0x35fb65){return _0x35fb65();},'Fspvg':_0x2ac4dd(0x126),'aPVvW':function(_0xab75d9,_0x1fb3cf){return _0xab75d9===_0x1fb3cf;},'banbK':'chrome','yCdFH':function(_0x3e92a8,_0x3604ff){return _0x3e92a8===_0x3604ff;},'Igqfn':'playwright-chromium','fpJzl':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','APDnK':function(_0x398fbc){return _0x398fbc();},'EGcPx':function(_0x358307,_0x4e684f){return _0x358307>_0x4e684f;},'hDtuN':_0x2ac4dd(0x112),'bMXXr':function(_0x598541,_0x142a75){return _0x598541===_0x142a75;},'nAJob':'latest','NHxDV':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','WYCPa':function(_0xd803a8,_0x15f878){return _0xd803a8(_0x15f878);},'fYgrT':_0x2ac4dd(0x134),'tMjZV':function(_0x1ea6d5,_0x13a4a4){return _0x1ea6d5+_0x13a4a4;},'yWQoO':function(_0x1f87f8,_0x5b20ff){return _0x1f87f8(_0x5b20ff);}};try{if(_0x4b1f3b['PsCIy'](isAccessibilityAutomationSession)){global[_0x2ac4dd(0x10d)]=!![];!_0x124f88[_0x4b1f3b[_0x2ac4dd(0x107)]]&&(global[_0x2ac4dd(0x10d)]=![]);!(_0x4b1f3b['aPVvW'](_0x124f88[_0x2ac4dd(0x11b)],_0x4b1f3b[_0x2ac4dd(0x13b)])||_0x4b1f3b[_0x2ac4dd(0x103)](_0x124f88['browserName'],_0x4b1f3b[_0x2ac4dd(0xf1)])||_0x4b1f3b[_0x2ac4dd(0x103)](_0x124f88[_0x2ac4dd(0xf8)],_0x4b1f3b[_0x2ac4dd(0x13b)])||_0x4b1f3b['yCdFH'](_0x124f88['browser'],_0x4b1f3b[_0x2ac4dd(0xf1)]))&&(logger[_0x2ac4dd(0x108)](_0x4b1f3b[_0x2ac4dd(0x14d)]),global['accessibilityPlatform']=![]);!_0x4b1f3b[_0x2ac4dd(0xf4)](isBrowserstackInfra)&&(!_0x4b1f3b[_0x2ac4dd(0x131)](_0x124f88[_0x2ac4dd(0xf2)],0x64)&&logger[_0x2ac4dd(0x108)](_0x4b1f3b[_0x2ac4dd(0xf9)]));!(_0x4b1f3b['bMXXr'](_0x124f88[_0x2ac4dd(0xf2)],_0x4b1f3b[_0x2ac4dd(0x135)])||_0x4b1f3b[_0x2ac4dd(0x131)](_0x124f88['browser_version'],0x5e))&&(logger['warn'](_0x4b1f3b[_0x2ac4dd(0x154)]),global[_0x2ac4dd(0x10d)]=![]);!_0x4b1f3b[_0x2ac4dd(0x13d)](isUndefined,_0x124f88[_0x2ac4dd(0x109)])&&(logger[_0x2ac4dd(0x108)](_0x4b1f3b[_0x2ac4dd(0x13e)]),global['accessibilityPlatform']=![]);if(!global[_0x2ac4dd(0x10d)]){_0x124f88[_0x4b1f3b[_0x2ac4dd(0x107)]]=![];const _0x58c7de=_0x4b1f3b['tMjZV'](_0x19f45f,_0x4b1f3b[_0x2ac4dd(0x110)](encodeURIComponent,JSON[_0x2ac4dd(0x141)](_0x124f88)));_0x3508c3&&(_0x3508c3['currentTest'][_0x2ac4dd(0x155)][_0x2ac4dd(0x120)][_0x2ac4dd(0x11d)]['connectOptions'][_0x2ac4dd(0x12d)]=_0x58c7de,_0x3508c3['workerInfo']['project'][_0x2ac4dd(0x11d)][_0x2ac4dd(0x12f)]['wsEndpoint']=_0x58c7de);}}else global['accessibilityPlatform']=![];}catch(_0x1f8d03){logger[_0x2ac4dd(0x144)](_0x2ac4dd(0x102)+util[_0x2ac4dd(0x101)](_0x1f8d03));}};function a37_0xca57(){const _0x3f8963=['constructor','util','AIQSc','No\x20accessibility\x20results\x20were\x20found.','gBgRl','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','1404966kblUki','Igqfn','browser_version','iMFRg','APDnK','hudoQ','PERFORM_SCAN','winstonLogger','browser','hDtuN','scannerVersion','wcagVersion','FNSdz','setAccessibilityCapabilities','includeIssueType','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','No\x20summaryResults\x20found.','format','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','yCdFH','../../helpers/performance/constants','processAccessibilityCaps','474915bSiikd','Fspvg','warn','deviceName','chrome','mrrvY','lwHwV','accessibilityPlatform','BS_A11Y_JWT','getAccessibilityResultsSummary','yWQoO','KtXuJ','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x20100.','env','YXBQY','scannerProcessingTimeout','WebDriver','qXCgg','parse','name','1276372fUTAzH','browserName','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','use','executeAsyncScript','(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20\x20\x20','project','10124528BIcoZO','../../helpers/logger','../../helpers/performance/performance-tester','388294tpREFh','chromium','browserstack.accessibility','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','exMgW','accessibilityOptions.scannerVersion','NYpYZ','browserStackExecuteDriver','wsEndpoint','bestPractice','connectOptions','sIPkN','EGcPx','vrspK','accessibilityOptions','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','nAJob','accessibilityOptions.wcagVersion','getAccessibilityResults','accessibilityOptions.scannerProcessingTimeout','NyGrq','2118912cuNMCl','banbK','DZkci','WYCPa','fYgrT','performScan','JabwC','stringify','mvihS','accessibilityOptions.authToken','debug','lORcw','measureWrapper','bstackSdkArgs','../../helpers/helper','browserStackEvaluate','aaqPR','ROMzw','evaluate','fpJzl','error','CGzLW','../../helpers/accessibility-automation/helper','4Byarya','\x20page:\x20','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','NHxDV','testInfo','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','acSnL','ZKvZx','tWbPT','playwright-chromium','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','2577535ouWaWt'];a37_0xca57=function(){return _0x3f8963;};return a37_0xca57();}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';function a38_0x4830(){const _0x227751=['stringify','oMjQx','Qswwm','dirname','homedir','5130PEqJiF','path','launchBuild','pw_result.json','Error\x20in\x20deleting\x20playwright\x20results','isUndefined','../../helpers/accessibility-automation/helper','exports','ICoyW','biGng','skipSessionName','kIDeJ','--config=','DwKXg','.browserstack','logLevel','--disable-test-observability','rXXhR','env','HmWrQ','PLAYWRIGHT','getInstance','cliConfig','../v2/browserstackCLI','nestedKeyValue','HsDBF','push','skipSessionStatus','start','RZGRi','resolve','suCBe','config','dVUWN','NTwSv','TMBFX','split','abLKD','BROWSERSTACK_RERUN_TESTS','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','Error\x20in\x20getting\x20funnel\x20data\x20results','BROWSERSTACK_RERUN','filter','EqZZV','unlinkSync','isTrue','141980ubTKqJ','getPackageType','../../helpers/test-observability/constants','writeFileSync','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','Playwright\x20process\x20exited\x20with\x20code\x20','SDK_SETUP','BROWSERSTACK_TEST_OBSERVABILITY','zXrFP','PACKAGE_TYPE','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','false','jIwtm','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','playwright','cwd','stop','testObservability','LQpVP','2972952OgXpKF','readFileSync','has','validateRerunTestList','TmrgU','browserstackAutomation','EVENTS','15qzpZJk','oDXYA','NRMAF','rjqMJ','NVoQZ','XUACJ','NyWKP','resolvedConfigFile','hoIXk','join','Updated\x20config\x20file\x20name\x20to\x20-\x20','Deleting\x20','win32','finalExecution','../utils/constants','BROWSERSTACK_SETUP_CONFIG_PATH','isTypescriptProject','2bNzPoe','filterBrowserstackArgs','FcBwW','isRunning','483pGoMIn','SDK_PRE_INITIALIZE','forEach','--disable-browserstack-automation','zfOOh','RUMvp','MODULE','inherit','ylEML','HLrDW','slice','splice','UybVd','BROWSERSTACK_AUTOMATION','../v2/TestInfo','winstonLogger','accessibilityOptions','--grep','pcACr','qNeRH','existsSync','measureWrapper','BROWSERSTACK_TEST_ACCESSIBILITY_YML','close','../../helpers/helper','../../helpers/performance/constants','./accessibility-helper','frIeJ','child_process','pOqzt','serializeToYamlString','isFalse','MUkeX','assign','shutdown','EZElL','get','test','BrowserStack\x20config\x20file\x20not\x20found.','npx','automation','yrwyI','map','getConfigPath','388228IdlIiL','../../helpers/performance/performance-tester','1473399KUkPuF','ekbtl','initialize','AhjsB','bootstrap','accessibility','cVcIy','length','cPeGI','nFLSt','forTv','concat','USER_CONFIG_DETAILS_PATH','NHYUH','error','trim','trace_','debug','264507yldpwN','testContextOptions','playwright-browserstack-sdk.config.js','getConfig','../../helpers/testhub/testhubHandler','bTJnh','../../helpers/BrowserStackSetup','lvwGH','--config','util','info','163979kjiQJP','BROWSERSTACK_PW_CONFIG_DIR','Xkegh','./reporter/test-details','../../helpers/logger'];a38_0x4830=function(){return _0x227751;};return a38_0x4830();}const a38_0x42950d=a38_0x5c58;(function(_0x54d26a,_0x92c657){const _0x4a1244=a38_0x5c58,_0xa713bc=_0x54d26a();while(!![]){try{const _0x2e496c=-parseInt(_0x4a1244(0x132))/0x1+parseInt(_0x4a1244(0xe3))/0x2*(parseInt(_0x4a1244(0x127))/0x3)+-parseInt(_0x4a1244(0x113))/0x4*(parseInt(_0x4a1244(0x184))/0x5)+parseInt(_0x4a1244(0x13c))/0x6*(parseInt(_0x4a1244(0xe7))/0x7)+parseInt(_0x4a1244(0x17d))/0x8+parseInt(_0x4a1244(0x115))/0x9+-parseInt(_0x4a1244(0x16a))/0xa;if(_0x2e496c===_0x92c657)break;else _0xa713bc['push'](_0xa713bc['shift']());}catch(_0x34c2eb){_0xa713bc['push'](_0xa713bc['shift']());}}}(a38_0x4830,0x3409a));const fs=require('fs'),path=require(a38_0x42950d(0x13d)),{spawn}=require(a38_0x42950d(0x103)),{format}=require(a38_0x42950d(0x130)),logger=require(a38_0x42950d(0x136))[a38_0x42950d(0xf6)],{default:BrowserStackSetup}=require(a38_0x42950d(0x12d)),helper=require(a38_0x42950d(0xff)),utilities=require('../../helpers/utilities'),constants=require(a38_0x42950d(0xe0)),{FRAMEWORKS}=require(a38_0x42950d(0x16c)),{getConfigLoaderPath}=require('./reporter/pwUtils'),{checkAccessibilityPlatformConfig}=require(a38_0x42950d(0x142)),{setAccessibilityCapabilities}=require(a38_0x42950d(0x101)),{printBuildLink}=require('../../helpers/test-observability/utils'),TestDetails=require(a38_0x42950d(0x135)),TestHubHandler=require(a38_0x42950d(0x12b)),PerformanceTester=require(a38_0x42950d(0x114)),BrowserstackCLI=require(a38_0x42950d(0x153)),PerformanceEvents=require(a38_0x42950d(0x100))[a38_0x42950d(0x183)],CLIUtils=require('../v2/cliUtils'),TestInfo=require(a38_0x42950d(0xf5)),getUserPlaywrightConfig=async(_0xcbd78d,_0x350d4c)=>{const _0x2cdcd8=a38_0x42950d,_0xa94127={'kIDeJ':function(_0xdfe2e6){return _0xdfe2e6();},'cPeGI':function(_0x5016bc,_0x44e5ea){return _0x5016bc(_0x44e5ea);},'RZGRi':function(_0x415730,_0xb0a705){return _0x415730(_0xb0a705);},'frIeJ':_0x2cdcd8(0xd9),'CLpYa':'--config='},_0x37b6f7=!helper[_0x2cdcd8(0x141)](_0xcbd78d[_0x2cdcd8(0x15c)]),_0x11412a=_0x37b6f7?path[_0x2cdcd8(0x15a)](process[_0x2cdcd8(0x179)](),_0xcbd78d['config']):process['cwd'](),{resolveConfigFile:_0x31e741,resolveConfigLocation:_0x353f27}=helper['requirePWModule']['apply'](null,_0xa94127[_0x2cdcd8(0x147)](getConfigLoaderPath)),_0x2d5577=_0x31e741?_0xa94127[_0x2cdcd8(0x11d)](_0x31e741,_0x11412a):helper[_0x2cdcd8(0x154)](_0xa94127[_0x2cdcd8(0x159)](_0x353f27,_0x11412a),[_0xa94127[_0x2cdcd8(0x102)]]),_0x158c1a={};if(_0x37b6f7){const _0x382782=_0x350d4c['findIndex'](_0x58a381=>_0x58a381==='--config'||_0x58a381==='-c'||_0x58a381['startsWith'](_0x2cdcd8(0x148)));_0x350d4c[_0x2cdcd8(0xf2)](_0x382782,_0x350d4c[_0x382782]['startsWith'](_0xa94127['CLpYa'])?0x1:0x2);}const _0x53cdbd={};return _0x53cdbd[_0x2cdcd8(0x13d)]=_0x2d5577,_0x53cdbd[_0x2cdcd8(0x15c)]=_0x158c1a,_0x53cdbd;},handleO11yRerun=_0x460a96=>{const _0xd2989d=a38_0x42950d,_0x2c939a={};_0x2c939a['dVUWN']=_0xd2989d(0xf8);const _0x5a66b0=_0x2c939a,_0x598d53=helper[_0xd2989d(0x169)](process['env'][_0xd2989d(0x165)]);if(_0x598d53){const _0x1de977=process[_0xd2989d(0x14e)][_0xd2989d(0x162)],_0x3b9bc1=[];if(helper[_0xd2989d(0x180)](_0x1de977)&&!helper[_0xd2989d(0x141)](_0x1de977)){_0x1de977[_0xd2989d(0x160)](',')[_0xd2989d(0x111)](_0x3252d3=>{const _0x5bd9f6=_0xd2989d;_0x3b9bc1[_0x5bd9f6(0x156)]('('+_0x3252d3[_0x5bd9f6(0x124)]()+')');});const _0x27730f='^'+_0x3b9bc1[_0xd2989d(0xdb)]('|')+'$';_0x460a96['push'](_0x5a66b0[_0xd2989d(0x15d)],_0x27730f);}}},spawnOriginalProcess=_0x5471ae=>{const _0x3cea39=a38_0x42950d,_0x5e7886={'UybVd':function(_0x185083,_0x3643ae,_0x1c5846,_0x2d6d2e){return _0x185083(_0x3643ae,_0x1c5846,_0x2d6d2e);},'NTwSv':_0x3cea39(0x10e),'abLKD':_0x3cea39(0x178),'DBbtc':function(_0x1e0849,_0x3d91ef){return _0x1e0849===_0x3d91ef;},'zXrFP':_0x3cea39(0xde),'oMjQx':'inherit'};_0x5e7886[_0x3cea39(0xf3)](spawn,_0x5e7886[_0x3cea39(0x15e)],[_0x5e7886[_0x3cea39(0x161)],..._0x5471ae[_0x3cea39(0xf1)](0x1)],{'shell':_0x5e7886['DBbtc'](process['platform'],_0x5e7886[_0x3cea39(0x172)]),'stdio':_0x5e7886[_0x3cea39(0x138)],'cwd':process[_0x3cea39(0x179)]()});},isTestCommand=(_0x5f01ec,_0x727e1)=>{const _0x24c9a1=a38_0x42950d,_0x49ad42={};_0x49ad42[_0x24c9a1(0xf0)]=function(_0x59fa42,_0x1cc03b){return _0x59fa42>_0x1cc03b;},_0x49ad42[_0x24c9a1(0xe5)]=function(_0xedca22,_0x59fd7b){return _0xedca22===_0x59fd7b;},_0x49ad42[_0x24c9a1(0x11f)]=_0x24c9a1(0x10c);const _0x2786cb=_0x49ad42;if(_0x2786cb[_0x24c9a1(0xf0)](_0x727e1[_0x24c9a1(0x11c)],0x1)&&_0x2786cb[_0x24c9a1(0xe5)](_0x727e1[0x1],_0x2786cb[_0x24c9a1(0x11f)]))return!![];return![];};async function run(_0x3a088d,_0x4358a8,_0x1f762d){const _0x1a5341=a38_0x42950d,_0x185031={'DwoxU':function(_0x52867d,_0x4dd71f){return _0x52867d(_0x4dd71f);},'EZElL':_0x1a5341(0x14a),'cVcIy':function(_0x3e427a){return _0x3e427a();},'dAibO':function(_0x4c11e8){return _0x4c11e8();},'pOqzt':function(_0x28b93f,_0x48785b){return _0x28b93f+_0x48785b;},'oDXYA':'Error\x20in\x20closing\x20playwright','rjqMJ':_0x1a5341(0x13f),'LQpVP':_0x1a5341(0x164),'suCBe':_0x1a5341(0x10d),'EqZZV':function(_0x390ce9,_0x4d8098){return _0x390ce9===_0x4d8098;},'Qswwm':_0x1a5341(0x175),'lvwGH':_0x1a5341(0x14c),'HmWrQ':function(_0xc9890,_0xad2b97){return _0xc9890>=_0xad2b97;},'TmrgU':_0x1a5341(0x10f),'nFLSt':function(_0x5c9e05,_0x3934d1){return _0x5c9e05!=_0x3934d1;},'biGng':function(_0x19ab17,_0x33c1a3,_0x5a570a){return _0x19ab17(_0x33c1a3,_0x5a570a);},'XUACJ':function(_0x30e70a,_0x2030f2){return _0x30e70a(_0x2030f2);},'yrwyI':function(_0x100a1b,_0x1601d3){return _0x100a1b===_0x1601d3;},'DwKXg':'true','TMBFX':function(_0x35e335,_0x244f13){return _0x35e335(_0x244f13);},'ylEML':function(_0x44c284,_0x569bc3){return _0x44c284(_0x569bc3);},'FhiZo':'browserstackSetupConfig.json','NHYUH':function(_0x4505c1,_0x44d85c){return _0x4505c1===_0x44d85c;},'RUMvp':'playwright-browserstack-sdk.config.cjs','MUkeX':_0x1a5341(0x129),'bTJnh':function(_0x31b77c,_0x5282c1){return _0x31b77c-_0x5282c1;},'WvsvV':_0x1a5341(0xdc),'NyWKP':function(_0x35e0b5,_0x23949c){return _0x35e0b5>_0x23949c;},'AhjsB':function(_0x5a089c,_0x3a331e){return _0x5a089c+_0x3a331e;},'KlWmI':function(_0x113218,_0x4cebad,_0x25a05f,_0x30ede7){return _0x113218(_0x4cebad,_0x25a05f,_0x30ede7);},'jIwtm':'npx','NVoQZ':_0x1a5341(0x178),'PFZEp':_0x1a5341(0x10c),'HsDBF':_0x1a5341(0x12f),'NRMAF':'win32','ICoyW':_0x1a5341(0xee),'MMAkn':_0x1a5341(0xfe),'pcACr':_0x1a5341(0x140),'zfOOh':function(_0x323707,_0x1ee724){return _0x323707(_0x1ee724);}};try{const _0x3946c0=path[_0x1a5341(0xdb)](helper[_0x1a5341(0x13b)](),_0x185031[_0x1a5341(0x10a)],_0x185031['rjqMJ']);fs[_0x1a5341(0xfb)](_0x3946c0)&&fs['unlinkSync'](_0x3946c0);}catch(_0xc518a){logger[_0x1a5341(0x126)](_0x185031[_0x1a5341(0x118)](_0x185031[_0x1a5341(0xf9)],_0xc518a));}if(!_0x185031[_0x1a5341(0x145)](isTestCommand,_0x3a088d,_0x4358a8)){_0x185031[_0x1a5341(0xeb)](spawnOriginalProcess,_0x4358a8);return;}await PerformanceTester[_0x1a5341(0xfc)](PerformanceEvents[_0x1a5341(0xe8)],async()=>{const _0x22f3a8=_0x1a5341,_0x4ca61c={'rXXhR':_0x185031[_0x22f3a8(0x10a)],'Xkegh':_0x185031[_0x22f3a8(0xd5)],'qNeRH':function(_0x42100b,_0x5313dc){const _0x5db307=_0x22f3a8;return _0x185031[_0x5db307(0x104)](_0x42100b,_0x5313dc);},'ekbtl':_0x185031[_0x22f3a8(0x17c)]};if(!_0x1f762d[_0x22f3a8(0x15c)]){logger[_0x22f3a8(0x123)](_0x185031[_0x22f3a8(0x15b)]);return;}await _0x1f762d[_0x22f3a8(0x117)](_0x3a088d),CLIUtils['setFrameworkDetail'](FRAMEWORKS['PLAYWRIGHT'],FRAMEWORKS[_0x22f3a8(0x150)]),BrowserstackCLI[_0x22f3a8(0x151)]()['setBrowserstackConfig'](_0x1f762d[_0x22f3a8(0x15c)],_0x1f762d[_0x22f3a8(0x152)]),await BrowserstackCLI[_0x22f3a8(0x151)]()[_0x22f3a8(0x119)]();const _0x48abeb=BrowserstackCLI[_0x22f3a8(0x151)]()[_0x22f3a8(0x12a)]();!helper[_0x22f3a8(0x106)](_0x48abeb[_0x22f3a8(0x182)])&&(process[_0x22f3a8(0x14e)][_0x22f3a8(0xf4)]=!![]);_0x185031['EqZZV'](_0x48abeb[_0x22f3a8(0x182)],![])&&(process[_0x22f3a8(0x14e)]['BROWSERSTACK_AUTOMATION']=_0x185031[_0x22f3a8(0x139)],_0x4358a8=_0x4358a8[_0x22f3a8(0x166)](_0x4e8558=>_0x4e8558!==_0x22f3a8(0xea)));const _0x5b15e6=_0x4358a8['indexOf'](_0x185031[_0x22f3a8(0x12e)]);(_0x185031[_0x22f3a8(0x14f)](_0x5b15e6,0x0)||_0x185031[_0x22f3a8(0x167)](_0x48abeb[_0x22f3a8(0x17b)],![]))&&(process[_0x22f3a8(0x14e)]['BROWSERSTACK_TEST_OBSERVABILITY']=_0x185031[_0x22f3a8(0x139)],_0x4358a8=_0x4358a8[_0x22f3a8(0x166)](_0x470b0d=>_0x470b0d!=='--disable-test-observability'));!helper[_0x22f3a8(0x141)](_0x1f762d[_0x22f3a8(0x152)])&&_0x1f762d[_0x22f3a8(0x152)][_0x22f3a8(0x17f)](_0x185031[_0x22f3a8(0x181)])&&(process[_0x22f3a8(0x14e)]['BROWSERSTACK_AUTOMATION']=_0x1f762d[_0x22f3a8(0x152)][_0x22f3a8(0x10b)](_0x185031[_0x22f3a8(0x181)])||!![]);_0x185031[_0x22f3a8(0x11e)](_0x1f762d[_0x22f3a8(0x15c)]['testObservability'],null)&&!helper[_0x22f3a8(0x169)](process[_0x22f3a8(0x14e)][_0x22f3a8(0x171)])&&(process['env'][_0x22f3a8(0x171)]=process['env'][_0x22f3a8(0x171)]||_0x1f762d[_0x22f3a8(0x15c)][_0x22f3a8(0x17b)]);const _0xb6b06c=!helper[_0x22f3a8(0x106)](process[_0x22f3a8(0x14e)][_0x22f3a8(0x171)]);_0x1f762d[_0x22f3a8(0x15c)][_0x22f3a8(0xf7)]&&(process['env'][_0x22f3a8(0x16e)]=JSON[_0x22f3a8(0x137)](_0x1f762d[_0x22f3a8(0x15c)][_0x22f3a8(0xf7)]));let _0x503abf=![];_0x1f762d[_0x22f3a8(0x15c)][_0x22f3a8(0x11a)]&&(_0x503abf=!![],process[_0x22f3a8(0x14e)][_0x22f3a8(0xfd)]=_0x1f762d[_0x22f3a8(0x15c)]['accessibility']);const _0x2cbc62=_0x4358a8[_0x22f3a8(0x120)](),_0xb5de6a=await _0x185031[_0x22f3a8(0x145)](getUserPlaywrightConfig,_0x3a088d,_0x4358a8);if(helper['isUndefined'](_0xb5de6a)){_0x185031[_0x22f3a8(0xd7)](spawnOriginalProcess,_0x2cbc62);return;}const _0x142139=_0xb5de6a[_0x22f3a8(0x13d)]?path[_0x22f3a8(0x13a)](_0xb5de6a['path']):process['cwd']();process['env'][_0x22f3a8(0x133)]=_0x142139,await PerformanceTester[_0x22f3a8(0xfc)](PerformanceEvents['SDK_POST_INITIALIZE'],async()=>{const _0x27e45e=_0x22f3a8;!BrowserstackCLI[_0x27e45e(0x151)]()[_0x27e45e(0xe6)]()&&await TestHubHandler[_0x27e45e(0x13e)](FRAMEWORKS[_0x27e45e(0x150)],_0x1f762d),_0xb6b06c&&_0x185031['DwoxU'](handleO11yRerun,_0x4358a8);})();if(!BrowserstackCLI[_0x22f3a8(0x151)]()['isRunning']()){let _0x1557c6=_0x185031[_0x22f3a8(0x110)](process[_0x22f3a8(0x14e)][_0x22f3a8(0xfd)],_0x185031[_0x22f3a8(0x149)]);_0x1557c6=_0x1557c6||_0x185031[_0x22f3a8(0x15f)](checkAccessibilityPlatformConfig,_0x1f762d[_0x22f3a8(0x15c)]),process[_0x22f3a8(0x14e)][_0x22f3a8(0xfd)]=_0x1557c6,_0x1557c6&&_0x185031[_0x22f3a8(0xef)](setAccessibilityCapabilities,_0x1f762d['config']);}const _0x514d4e=path[_0x22f3a8(0xdb)](_0xb5de6a[_0x22f3a8(0x13d)]?path[_0x22f3a8(0x13a)](_0xb5de6a[_0x22f3a8(0x13d)]):process[_0x22f3a8(0x179)](),_0x185031['FhiZo']);fs['writeFileSync'](_0x514d4e,helper[_0x22f3a8(0x105)](_0x1f762d[_0x22f3a8(0x15c)])),process[_0x22f3a8(0x14e)][_0x22f3a8(0xe1)]=_0x514d4e,helper['clearTempPWConfig']();let _0xf268c0='';_0x185031[_0x22f3a8(0x122)](helper[_0x22f3a8(0x16b)](),constants[_0x22f3a8(0x173)][_0x22f3a8(0xed)])?_0xf268c0=_0x185031[_0x22f3a8(0xec)]:_0xf268c0=_0x185031[_0x22f3a8(0x107)];let _0x124a04='';if(helper[_0x22f3a8(0xe2)](_0xb5de6a[_0x22f3a8(0x13d)])){_0x124a04=_0x22f3a8(0x177);const _0x4523eb=_0xf268c0[_0x22f3a8(0x160)]('.');_0x4523eb[_0x185031[_0x22f3a8(0x12c)](_0x4523eb[_0x22f3a8(0x11c)],0x1)]='ts',_0xf268c0=_0x4523eb['join']('.'),logger[_0x22f3a8(0x126)](_0x185031[_0x22f3a8(0x104)](_0x185031['WvsvV'],_0xf268c0));}else _0x124a04=_0x22f3a8(0x174);const _0x4e75fc=path['join'](_0xb5de6a[_0x22f3a8(0x13d)]?path[_0x22f3a8(0x13a)](_0xb5de6a[_0x22f3a8(0x13d)]):process['cwd'](),_0xf268c0);let _0x5473da=_0xb5de6a['path']?_0xb5de6a[_0x22f3a8(0x13d)]:'';_0x5473da=_0x185031[_0x22f3a8(0xd8)](_0x5473da['length'],0x0)?path[_0x22f3a8(0x15a)](_0x5473da):'',process[_0x22f3a8(0x14e)][_0x22f3a8(0x121)]=_0x5473da;const _0xfc0864=helper['getProxyUrl'](_0x1f762d['config']);_0xfc0864&&(_0x124a04=_0x185031['AhjsB'](_0x22f3a8(0x163)+_0xfc0864+'\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();',_0x124a04));helper[_0x22f3a8(0xe4)]({},_0x4358a8),fs[_0x22f3a8(0x16d)](_0x4e75fc,_0x124a04),PerformanceTester['end'](PerformanceEvents[_0x22f3a8(0x170)]);const _0x1dca79=_0x185031['KlWmI'](spawn,_0x185031[_0x22f3a8(0x176)],[_0x185031[_0x22f3a8(0xd6)],_0x185031['PFZEp'],_0x185031[_0x22f3a8(0x155)],_0x4e75fc,..._0x4358a8[_0x22f3a8(0xf1)](0x2)],{'shell':_0x185031[_0x22f3a8(0x167)](process['platform'],_0x185031[_0x22f3a8(0x186)]),'stdio':_0x185031[_0x22f3a8(0x144)],'cwd':process['cwd'](),'env':Object[_0x22f3a8(0x108)]({},process['env'],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x22f3a8(0x112)](_0x3a088d),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x1f762d[_0x22f3a8(0x15c)]['testContextOptions'][_0x22f3a8(0x157)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x1f762d[_0x22f3a8(0x15c)][_0x22f3a8(0x128)][_0x22f3a8(0x146)],'BROWSERSTACK_LOG_LEVEL':_0x1f762d[_0x22f3a8(0x15c)][_0x22f3a8(0x14b)]})}),_0x408f89=()=>{const _0x135622=_0x22f3a8;try{const _0x51b837=path[_0x135622(0xdb)](helper[_0x135622(0x13b)](),_0x4ca61c[_0x135622(0x14d)],_0x4ca61c[_0x135622(0x134)]);if(fs[_0x135622(0xfb)](_0x51b837)){let _0xf4bd67=fs[_0x135622(0x17e)](_0x51b837);_0xf4bd67=JSON['parse'](_0xf4bd67),_0x1f762d['errorMessage']=_0xf4bd67,fs[_0x135622(0x168)](_0x51b837);}}catch(_0x1005da){logger[_0x135622(0x126)](_0x4ca61c[_0x135622(0xfa)](_0x4ca61c[_0x135622(0x116)],_0x1005da));}};_0x1dca79['on'](_0x185031['MMAkn'],async _0x5534ce=>{const _0x5d5e7f=_0x22f3a8,_0x4d4207={};_0x4d4207[_0x5d5e7f(0xda)]=_0x185031[_0x5d5e7f(0x10a)];const _0x31d84a=_0x4d4207;try{PerformanceTester[_0x5d5e7f(0x158)](PerformanceEvents['SDK_CLEANUP']),_0x185031[_0x5d5e7f(0x11b)](_0x408f89);!BrowserstackCLI[_0x5d5e7f(0x151)]()[_0x5d5e7f(0xe6)]()&&await TestHubHandler[_0x5d5e7f(0x17a)]();await BrowserstackCLI[_0x5d5e7f(0x151)]()[_0x5d5e7f(0x17a)](),TestDetails[_0x5d5e7f(0x109)](),_0x185031['dAibO'](printBuildLink),await utilities[_0x5d5e7f(0xdf)](_0x1f762d),process['exitCode']=_0x5534ce,logger[_0x5d5e7f(0x126)](_0x5d5e7f(0x16f)+_0x5534ce),logger[_0x5d5e7f(0x131)](_0x5d5e7f(0xdd)+_0x4e75fc),fs[_0x5d5e7f(0x168)](_0x4e75fc);fs['existsSync'](_0x514d4e)&&(logger[_0x5d5e7f(0x126)](_0x5d5e7f(0xdd)+_0x514d4e),fs['unlinkSync'](_0x514d4e));const _0x916818=fs['readdirSync'](path['join'](helper[_0x5d5e7f(0x13b)](),_0x185031['EZElL']))[_0x5d5e7f(0x166)](_0x3d51fe=>_0x3d51fe['startsWith'](_0x5d5e7f(0x125)));_0x916818[_0x5d5e7f(0xe9)](_0x29dffe=>{const _0x40de36=_0x5d5e7f;fs[_0x40de36(0x168)](path[_0x40de36(0xdb)](helper['homedir'](),_0x31d84a[_0x40de36(0xda)],_0x29dffe));});}catch(_0x59a5ad){logger['debug'](_0x185031[_0x5d5e7f(0x104)](_0x185031[_0x5d5e7f(0x185)],_0x59a5ad));}});})();}function a38_0x5c58(_0x5b7819,_0x5d1eb5){const _0x4830e8=a38_0x4830();return a38_0x5c58=function(_0x5c584f,_0x28c3ad){_0x5c584f=_0x5c584f-0xd5;let _0x4e543f=_0x4830e8[_0x5c584f];return _0x4e543f;},a38_0x5c58(_0x5b7819,_0x5d1eb5);}module[a38_0x42950d(0x143)]=run;
|
|
2
|
+
'use strict';const a38_0x91e7e8=a38_0x5ae2;(function(_0x4828fc,_0x115c4e){const _0x533669=a38_0x5ae2,_0x26e2a6=_0x4828fc();while(!![]){try{const _0x5cc902=-parseInt(_0x533669(0x12b))/0x1*(-parseInt(_0x533669(0x117))/0x2)+parseInt(_0x533669(0x148))/0x3*(-parseInt(_0x533669(0xd9))/0x4)+-parseInt(_0x533669(0x101))/0x5*(parseInt(_0x533669(0x17e))/0x6)+parseInt(_0x533669(0xed))/0x7*(-parseInt(_0x533669(0xde))/0x8)+-parseInt(_0x533669(0xf8))/0x9*(-parseInt(_0x533669(0x164))/0xa)+-parseInt(_0x533669(0x153))/0xb+parseInt(_0x533669(0x147))/0xc;if(_0x5cc902===_0x115c4e)break;else _0x26e2a6['push'](_0x26e2a6['shift']());}catch(_0x2c69b7){_0x26e2a6['push'](_0x26e2a6['shift']());}}}(a38_0x5ce1,0xdebaf));const fs=require('fs'),path=require(a38_0x91e7e8(0x159)),{spawn}=require(a38_0x91e7e8(0x178)),{format}=require('util'),logger=require('../../helpers/logger')[a38_0x91e7e8(0x124)],{default:BrowserStackSetup}=require(a38_0x91e7e8(0xf2)),helper=require(a38_0x91e7e8(0xdf)),utilities=require(a38_0x91e7e8(0x182)),constants=require('../utils/constants'),{FRAMEWORKS}=require(a38_0x91e7e8(0xd8)),{getConfigLoaderPath}=require('./reporter/pwUtils'),{checkAccessibilityPlatformConfig}=require(a38_0x91e7e8(0xda)),{setAccessibilityCapabilities}=require(a38_0x91e7e8(0x106)),{printBuildLink}=require(a38_0x91e7e8(0x135)),TestDetails=require('./reporter/test-details'),TestHubHandler=require(a38_0x91e7e8(0x12a)),PerformanceTester=require(a38_0x91e7e8(0x131)),BrowserstackCLI=require(a38_0x91e7e8(0x134)),PerformanceEvents=require(a38_0x91e7e8(0xe5))[a38_0x91e7e8(0x160)],CLIUtils=require(a38_0x91e7e8(0x10f)),TestInfo=require(a38_0x91e7e8(0x14c)),getUserPlaywrightConfig=async(_0x178ae5,_0x3af312)=>{const _0x39f25c=a38_0x91e7e8,_0x26832c={'wHMdi':function(_0xa41a04){return _0xa41a04();},'AEyyd':function(_0x115986,_0xaf4cb5){return _0x115986(_0xaf4cb5);},'Dkfsf':function(_0x4290b1,_0x5366eb){return _0x4290b1(_0x5366eb);},'exKPV':_0x39f25c(0x16c),'hoALu':_0x39f25c(0x11b)},_0x5dc1ea=!helper['isUndefined'](_0x178ae5[_0x39f25c(0x113)]),_0x1e892d=_0x5dc1ea?path[_0x39f25c(0xe3)](process['cwd'](),_0x178ae5['config']):process[_0x39f25c(0x17c)](),{resolveConfigFile:_0x3386ca,resolveConfigLocation:_0xc697e3}=helper[_0x39f25c(0x15c)]['apply'](null,_0x26832c[_0x39f25c(0x166)](getConfigLoaderPath)),_0x5f5146=_0x3386ca?_0x26832c[_0x39f25c(0xe0)](_0x3386ca,_0x1e892d):helper[_0x39f25c(0x171)](_0x26832c['Dkfsf'](_0xc697e3,_0x1e892d),[_0x26832c['exKPV']]),_0x4206b7={};if(_0x5dc1ea){const _0x4af3ca=_0x3af312[_0x39f25c(0xfb)](_0x435ff8=>_0x435ff8==='--config'||_0x435ff8==='-c'||_0x435ff8[_0x39f25c(0x152)](_0x39f25c(0x11b)));_0x3af312[_0x39f25c(0x14b)](_0x4af3ca,_0x3af312[_0x4af3ca][_0x39f25c(0x152)](_0x26832c[_0x39f25c(0x173)])?0x1:0x2);}const _0x43a686={};return _0x43a686['path']=_0x5f5146,_0x43a686[_0x39f25c(0x113)]=_0x4206b7,_0x43a686;},handleO11yRerun=_0x48178d=>{const _0x140ba5=a38_0x91e7e8,_0x1006a3={};_0x1006a3[_0x140ba5(0xd6)]=_0x140ba5(0x16e);const _0x5e04f6=_0x1006a3,_0x22eba5=helper['isTrue'](process[_0x140ba5(0x154)][_0x140ba5(0x10d)]);if(_0x22eba5){const _0x3180da=process[_0x140ba5(0x154)][_0x140ba5(0xd4)],_0x306d7f=[];if(helper[_0x140ba5(0xdb)](_0x3180da)&&!helper[_0x140ba5(0x155)](_0x3180da)){_0x3180da[_0x140ba5(0x115)](',')[_0x140ba5(0x15f)](_0x27cc69=>{const _0x5ba3f2=_0x140ba5;_0x306d7f[_0x5ba3f2(0x15b)]('('+_0x27cc69[_0x5ba3f2(0x14e)]()+')');});const _0x2c2ed6='^'+_0x306d7f[_0x140ba5(0x138)]('|')+'$';_0x48178d[_0x140ba5(0x15b)](_0x5e04f6[_0x140ba5(0xd6)],_0x2c2ed6);}}},spawnOriginalProcess=_0x3f096b=>{const _0x545eed=a38_0x91e7e8,_0x406c9b={'vGING':function(_0x4d7730,_0x166533,_0x2bf129,_0x25e1a7){return _0x4d7730(_0x166533,_0x2bf129,_0x25e1a7);},'ZtUDk':_0x545eed(0xec),'iujBS':_0x545eed(0xe6),'otzjm':function(_0x46ddf4,_0xb497fc){return _0x46ddf4===_0xb497fc;},'YTJdI':_0x545eed(0x13d),'OlvTM':_0x545eed(0x130)};_0x406c9b['vGING'](spawn,_0x406c9b[_0x545eed(0x172)],[_0x406c9b[_0x545eed(0x132)],..._0x3f096b[_0x545eed(0x133)](0x1)],{'shell':_0x406c9b[_0x545eed(0xd2)](process['platform'],_0x406c9b[_0x545eed(0xf4)]),'stdio':_0x406c9b[_0x545eed(0x165)],'cwd':process[_0x545eed(0x17c)]()});},isTestCommand=(_0x487ea8,_0x463cc9)=>{const _0x8ca9f7=a38_0x91e7e8,_0x53a203={};_0x53a203[_0x8ca9f7(0x137)]=function(_0x584103,_0x423914){return _0x584103>_0x423914;},_0x53a203[_0x8ca9f7(0x161)]=function(_0x3a6e3a,_0x143779){return _0x3a6e3a===_0x143779;},_0x53a203[_0x8ca9f7(0x10e)]=_0x8ca9f7(0x146);const _0x4a3af7=_0x53a203;if(_0x4a3af7['CUIPU'](_0x463cc9['length'],0x1)&&_0x4a3af7[_0x8ca9f7(0x161)](_0x463cc9[0x1],_0x4a3af7[_0x8ca9f7(0x10e)]))return!![];return![];};function a38_0x5ae2(_0x4c9bd8,_0x104296){const _0x5ce1c=a38_0x5ce1();return a38_0x5ae2=function(_0x5ae2a4,_0x95c7eb){_0x5ae2a4=_0x5ae2a4-0xcf;let _0x3d3712=_0x5ce1c[_0x5ae2a4];return _0x3d3712;},a38_0x5ae2(_0x4c9bd8,_0x104296);}async function run(_0x1bc44c,_0x1c059c,_0x5c1170){const _0x36d3c0=a38_0x91e7e8,_0x2a610f={'aEJfj':function(_0x43ed79){return _0x43ed79();},'bGtNA':function(_0x163021){return _0x163021();},'NbAVg':_0x36d3c0(0x122),'IGuoA':function(_0x3aaeed,_0x2e855a){return _0x3aaeed+_0x2e855a;},'QWRfj':'Error\x20in\x20closing\x20playwright','TFxYy':function(_0x6358dd,_0x311b43){return _0x6358dd(_0x311b43);},'QZhcS':_0x36d3c0(0xef),'fYZUp':function(_0x120aba,_0x1c48cd){return _0x120aba+_0x1c48cd;},'SKmQa':_0x36d3c0(0x15d),'SHcXc':_0x36d3c0(0xf6),'OcFHs':function(_0x7bc3d6,_0x4bd326){return _0x7bc3d6===_0x4bd326;},'KXxck':_0x36d3c0(0x169),'LWpXA':_0x36d3c0(0x180),'KAcae':function(_0x4dc7f6,_0x59c2e0){return _0x4dc7f6>=_0x59c2e0;},'opzYd':'automation','eZROW':function(_0x2f1408,_0x51a18f){return _0x2f1408!=_0x51a18f;},'ZtvJJ':function(_0x9facb0,_0x13fc01,_0x33b723){return _0x9facb0(_0x13fc01,_0x33b723);},'bWzCy':function(_0x30f6f0,_0x1870a6){return _0x30f6f0(_0x1870a6);},'YuaGK':_0x36d3c0(0xfd),'yMSdC':function(_0x33a969,_0x17257){return _0x33a969(_0x17257);},'JDvDH':_0x36d3c0(0xeb),'TkZkP':'playwright-browserstack-sdk.config.cjs','HjPUi':_0x36d3c0(0xf0),'ZQtXL':function(_0x170919,_0x2ece0f){return _0x170919-_0x2ece0f;},'kWyPY':function(_0x5256e3,_0x385845){return _0x5256e3+_0x385845;},'hXpAk':_0x36d3c0(0x141),'KUsZA':function(_0x2cb3bf,_0x3b2cdb){return _0x2cb3bf>_0x3b2cdb;},'jZbFU':function(_0x210e21,_0x1d1cca,_0x184dd8,_0x2d3d04){return _0x210e21(_0x1d1cca,_0x184dd8,_0x2d3d04);},'xrqnj':_0x36d3c0(0xec),'VqGup':_0x36d3c0(0xe6),'oEVFC':_0x36d3c0(0x146),'ussdt':_0x36d3c0(0x10c),'BZWEe':_0x36d3c0(0x13d),'frtMR':'inherit','UJyHm':_0x36d3c0(0x163),'Pnnod':function(_0x114dc9,_0x21a068){return _0x114dc9+_0x21a068;},'AjOww':_0x36d3c0(0x177)};try{const _0x263626=path[_0x36d3c0(0x138)](helper['homedir'](),_0x2a610f[_0x36d3c0(0x150)],_0x2a610f[_0x36d3c0(0xf9)]);fs[_0x36d3c0(0xf5)](_0x263626)&&fs[_0x36d3c0(0x13a)](_0x263626);}catch(_0x486e97){logger[_0x36d3c0(0x170)](_0x2a610f['Pnnod'](_0x2a610f['AjOww'],_0x486e97));}if(!_0x2a610f['ZtvJJ'](isTestCommand,_0x1bc44c,_0x1c059c)){_0x2a610f[_0x36d3c0(0xfe)](spawnOriginalProcess,_0x1c059c);return;}await PerformanceTester[_0x36d3c0(0x125)](PerformanceEvents[_0x36d3c0(0xe9)],async()=>{const _0x30618e=_0x36d3c0,_0x2f3da6={'vBXXo':function(_0x2638d4,_0x278ab4){const _0x5eed1d=a38_0x5ae2;return _0x2a610f[_0x5eed1d(0x110)](_0x2638d4,_0x278ab4);},'FWOyH':_0x2a610f['NbAVg'],'cBqWJ':_0x2a610f['QZhcS'],'nJusb':function(_0x50c443,_0x578ebb){const _0x45fe37=a38_0x5ae2;return _0x2a610f[_0x45fe37(0x181)](_0x50c443,_0x578ebb);},'UUPnS':_0x2a610f[_0x30618e(0x111)]};if(!_0x5c1170[_0x30618e(0x113)]){logger[_0x30618e(0x145)](_0x2a610f[_0x30618e(0xcf)]);return;}await _0x5c1170[_0x30618e(0xdd)](_0x1bc44c),CLIUtils[_0x30618e(0x13e)](FRAMEWORKS['PLAYWRIGHT'],FRAMEWORKS[_0x30618e(0x13c)]),BrowserstackCLI[_0x30618e(0x107)]()['setBrowserstackConfig'](_0x5c1170['config'],_0x5c1170[_0x30618e(0x156)]),await BrowserstackCLI[_0x30618e(0x107)]()[_0x30618e(0xd7)]();const _0x496d9c=BrowserstackCLI[_0x30618e(0x107)]()['getConfig']();!helper[_0x30618e(0x103)](_0x496d9c[_0x30618e(0x12e)])&&(process[_0x30618e(0x154)]['BROWSERSTACK_AUTOMATION']=!![]);_0x2a610f[_0x30618e(0x16f)](_0x496d9c[_0x30618e(0x12e)],![])&&(process[_0x30618e(0x154)]['BROWSERSTACK_AUTOMATION']=_0x2a610f['KXxck'],_0x1c059c=_0x1c059c['filter'](_0x4b0e85=>_0x4b0e85!==_0x30618e(0x168)));const _0x23a60f=_0x1c059c[_0x30618e(0xd3)](_0x2a610f['LWpXA']);(_0x2a610f['KAcae'](_0x23a60f,0x0)||_0x2a610f[_0x30618e(0x16f)](_0x496d9c[_0x30618e(0x157)],![]))&&(process[_0x30618e(0x154)][_0x30618e(0x109)]=_0x2a610f[_0x30618e(0x123)],_0x1c059c=_0x1c059c[_0x30618e(0x11f)](_0x16305e=>_0x16305e!==_0x30618e(0x180)));!helper[_0x30618e(0x155)](_0x5c1170[_0x30618e(0x156)])&&_0x5c1170[_0x30618e(0x156)][_0x30618e(0x17b)](_0x2a610f[_0x30618e(0xfc)])&&(process[_0x30618e(0x154)][_0x30618e(0xfa)]=_0x5c1170[_0x30618e(0x156)][_0x30618e(0x112)](_0x2a610f[_0x30618e(0xfc)])||!![]);_0x2a610f[_0x30618e(0x142)](_0x5c1170[_0x30618e(0x113)][_0x30618e(0x157)],null)&&!helper[_0x30618e(0x116)](process[_0x30618e(0x154)][_0x30618e(0x109)])&&(process[_0x30618e(0x154)][_0x30618e(0x109)]=process['env']['BROWSERSTACK_TEST_OBSERVABILITY']||_0x5c1170[_0x30618e(0x113)][_0x30618e(0x157)]);const _0x1c441a=!helper['isFalse'](process['env'][_0x30618e(0x109)]);_0x5c1170[_0x30618e(0x113)]['accessibilityOptions']&&(process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON['stringify'](_0x5c1170[_0x30618e(0x113)][_0x30618e(0xee)]));let _0x5dfeca=![];_0x5c1170['config']['accessibility']&&(_0x5dfeca=!![],process[_0x30618e(0x154)][_0x30618e(0x11e)]=_0x5c1170[_0x30618e(0x113)]['accessibility']);const _0x56fd50=_0x1c059c[_0x30618e(0xe7)](),_0x1ebb5c=await _0x2a610f[_0x30618e(0x140)](getUserPlaywrightConfig,_0x1bc44c,_0x1c059c);if(helper[_0x30618e(0x155)](_0x1ebb5c)){_0x2a610f[_0x30618e(0xfe)](spawnOriginalProcess,_0x56fd50);return;}const _0x19033e=_0x1ebb5c['path']?path[_0x30618e(0xe8)](_0x1ebb5c['path']):process['cwd']();process[_0x30618e(0x154)][_0x30618e(0x100)]=_0x19033e,await PerformanceTester['measureWrapper'](PerformanceEvents['SDK_POST_INITIALIZE'],async()=>{const _0x504b45=_0x30618e;!BrowserstackCLI[_0x504b45(0x107)]()[_0x504b45(0x16a)]()&&await TestHubHandler[_0x504b45(0x108)](FRAMEWORKS[_0x504b45(0x13c)],_0x5c1170),_0x1c441a&&_0x2f3da6[_0x504b45(0x121)](handleO11yRerun,_0x1c059c);})();if(!BrowserstackCLI[_0x30618e(0x107)]()[_0x30618e(0x16a)]()){let _0x2b31ce=_0x2a610f[_0x30618e(0x16f)](process[_0x30618e(0x154)][_0x30618e(0x11e)],_0x2a610f['YuaGK']);_0x2b31ce=_0x2b31ce||_0x2a610f[_0x30618e(0x144)](checkAccessibilityPlatformConfig,_0x5c1170['config']),process[_0x30618e(0x154)][_0x30618e(0x11e)]=_0x2b31ce,_0x2b31ce&&_0x2a610f[_0x30618e(0x144)](setAccessibilityCapabilities,_0x5c1170[_0x30618e(0x113)]);}const _0x713f1d=path['join'](_0x1ebb5c[_0x30618e(0x159)]?path[_0x30618e(0xe8)](_0x1ebb5c['path']):process[_0x30618e(0x17c)](),_0x2a610f[_0x30618e(0x176)]);fs[_0x30618e(0x118)](_0x713f1d,helper[_0x30618e(0x17f)](_0x5c1170[_0x30618e(0x113)])),process['env'][_0x30618e(0x127)]=_0x713f1d,helper[_0x30618e(0x179)]();let _0x93fa1c='';_0x2a610f[_0x30618e(0x16f)](helper[_0x30618e(0x162)](),constants[_0x30618e(0x175)][_0x30618e(0x16b)])?_0x93fa1c=_0x2a610f[_0x30618e(0x14a)]:_0x93fa1c=_0x2a610f[_0x30618e(0x120)];let _0x12bc57='';if(helper[_0x30618e(0xd5)](_0x1ebb5c['path'])){_0x12bc57=_0x30618e(0xf1);const _0x49f533=_0x93fa1c[_0x30618e(0x115)]('.');_0x49f533[_0x2a610f[_0x30618e(0x14d)](_0x49f533[_0x30618e(0x10b)],0x1)]='ts',_0x93fa1c=_0x49f533['join']('.'),logger[_0x30618e(0x170)](_0x2a610f[_0x30618e(0x104)](_0x2a610f['hXpAk'],_0x93fa1c));}else _0x12bc57=_0x30618e(0x119);const _0x4a9239=path[_0x30618e(0x138)](_0x1ebb5c[_0x30618e(0x159)]?path[_0x30618e(0xe8)](_0x1ebb5c[_0x30618e(0x159)]):process[_0x30618e(0x17c)](),_0x93fa1c);let _0x38d307=_0x1ebb5c['path']?_0x1ebb5c[_0x30618e(0x159)]:'';_0x38d307=_0x2a610f[_0x30618e(0x102)](_0x38d307[_0x30618e(0x10b)],0x0)?path[_0x30618e(0xe3)](_0x38d307):'',process['env'][_0x30618e(0x17d)]=_0x38d307;const _0x8ca1d6=helper[_0x30618e(0x13f)](_0x5c1170[_0x30618e(0x113)]);_0x8ca1d6&&(_0x12bc57=_0x2a610f[_0x30618e(0x143)]('process.env.GLOBAL_AGENT_HTTP_PROXY=\x22'+_0x8ca1d6+_0x30618e(0x114),_0x12bc57));helper['filterBrowserstackArgs']({},_0x1c059c),fs[_0x30618e(0x118)](_0x4a9239,_0x12bc57),PerformanceTester[_0x30618e(0x15e)](PerformanceEvents[_0x30618e(0x105)]);const _0x2b9b3c=_0x2a610f[_0x30618e(0xe1)](spawn,_0x2a610f[_0x30618e(0x167)],[_0x2a610f['VqGup'],_0x2a610f[_0x30618e(0x10a)],_0x2a610f['ussdt'],_0x4a9239,..._0x1c059c[_0x30618e(0x133)](0x2)],{'shell':_0x2a610f[_0x30618e(0x16f)](process[_0x30618e(0xe4)],_0x2a610f[_0x30618e(0x136)]),'stdio':_0x2a610f[_0x30618e(0x11c)],'cwd':process[_0x30618e(0x17c)](),'env':Object[_0x30618e(0x158)]({},process['env'],{'BROWSERSTACK_CONFIG_FILE_PATH':helper['getConfigPath'](_0x1bc44c),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x5c1170[_0x30618e(0x113)]['testContextOptions'][_0x30618e(0x129)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x5c1170[_0x30618e(0x113)]['testContextOptions']['skipSessionName'],'BROWSERSTACK_LOG_LEVEL':_0x5c1170[_0x30618e(0x113)][_0x30618e(0x128)]})}),_0x4f1530=()=>{const _0x109ab3=_0x30618e;try{const _0x2ab87a=path[_0x109ab3(0x138)](helper['homedir'](),_0x2f3da6[_0x109ab3(0xf3)],_0x2f3da6[_0x109ab3(0xea)]);if(fs[_0x109ab3(0xf5)](_0x2ab87a)){let _0x13d2e8=fs[_0x109ab3(0xe2)](_0x2ab87a);_0x13d2e8=JSON['parse'](_0x13d2e8),_0x5c1170[_0x109ab3(0xf7)]=_0x13d2e8,fs[_0x109ab3(0x13a)](_0x2ab87a);}}catch(_0x2c8037){logger[_0x109ab3(0x170)](_0x2f3da6[_0x109ab3(0x11d)](_0x2f3da6[_0x109ab3(0x151)],_0x2c8037));}};_0x2b9b3c['on'](_0x2a610f[_0x30618e(0x15a)],async _0x588c03=>{const _0xb0ee5e=_0x30618e;try{PerformanceTester['start'](PerformanceEvents[_0xb0ee5e(0x11a)]),_0x2a610f[_0xb0ee5e(0x17a)](_0x4f1530),await TestHubHandler['stop'](),await BrowserstackCLI[_0xb0ee5e(0x107)]()[_0xb0ee5e(0x12f)](),TestDetails[_0xb0ee5e(0xd0)](),_0x2a610f[_0xb0ee5e(0x14f)](printBuildLink),await utilities[_0xb0ee5e(0x13b)](_0x5c1170),process[_0xb0ee5e(0x174)]=_0x588c03,logger[_0xb0ee5e(0x170)](_0xb0ee5e(0x139)+_0x588c03),logger[_0xb0ee5e(0x12d)](_0xb0ee5e(0xd1)+_0x4a9239),fs[_0xb0ee5e(0x13a)](_0x4a9239);fs[_0xb0ee5e(0xf5)](_0x713f1d)&&(logger[_0xb0ee5e(0x170)](_0xb0ee5e(0xd1)+_0x713f1d),fs[_0xb0ee5e(0x13a)](_0x713f1d));const _0x234408=fs[_0xb0ee5e(0x16d)](path[_0xb0ee5e(0x138)](helper[_0xb0ee5e(0x149)](),_0x2a610f['NbAVg']))[_0xb0ee5e(0x11f)](_0x55cdf0=>_0x55cdf0[_0xb0ee5e(0x152)](_0xb0ee5e(0xdc)));_0x234408[_0xb0ee5e(0x12c)](_0x34b6b1=>{const _0x471ba9=_0xb0ee5e;fs[_0x471ba9(0x13a)](path['join'](helper['homedir'](),_0x2f3da6['FWOyH'],_0x34b6b1));});}catch(_0x480dd6){logger['debug'](_0x2a610f['IGuoA'](_0x2a610f[_0xb0ee5e(0x126)],_0x480dd6));}});})();}module[a38_0x91e7e8(0xff)]=run;function a38_0x5ce1(){const _0x5abf0e=['UUPnS','startsWith','7599757UAPikh','env','isUndefined','cliConfig','testObservability','assign','path','UJyHm','push','requirePWModule','Error\x20in\x20getting\x20funnel\x20data\x20results','end','map','EVENTS','zzhZm','getPackageType','close','44340ClLllR','OlvTM','wHMdi','xrqnj','--disable-browserstack-automation','false','isRunning','MODULE','resolvedConfigFile','readdirSync','--grep','OcFHs','debug','nestedKeyValue','ZtUDk','hoALu','exitCode','PACKAGE_TYPE','JDvDH','Error\x20in\x20deleting\x20playwright\x20results','child_process','clearTempPWConfig','aEJfj','has','cwd','USER_CONFIG_DETAILS_PATH','18NevVQt','serializeToYamlString','--disable-test-observability','fYZUp','../../helpers/utilities','SHcXc','shutdown','Deleting\x20','otzjm','indexOf','BROWSERSTACK_RERUN_TESTS','isTypescriptProject','UZSiY','bootstrap','../../helpers/test-observability/constants','148NeFBqp','../../helpers/accessibility-automation/helper','validateRerunTestList','trace_','initialize','8IkzeHn','../../helpers/helper','AEyyd','jZbFU','readFileSync','resolve','platform','../../helpers/performance/constants','playwright','concat','dirname','SDK_PRE_INITIALIZE','cBqWJ','browserstackSetupConfig.json','npx','9890538fkCsrg','accessibilityOptions','pw_result.json','playwright-browserstack-sdk.config.js','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','../../helpers/BrowserStackSetup','FWOyH','YTJdI','existsSync','BrowserStack\x20config\x20file\x20not\x20found.','errorMessage','1602ZYiCJT','QZhcS','BROWSERSTACK_AUTOMATION','findIndex','opzYd','true','bWzCy','exports','BROWSERSTACK_PW_CONFIG_DIR','2679890VtVYOA','KUsZA','isFalse','kWyPY','SDK_SETUP','./accessibility-helper','getInstance','launchBuild','BROWSERSTACK_TEST_OBSERVABILITY','oEVFC','length','--config','BROWSERSTACK_RERUN','DHACl','../v2/cliUtils','TFxYy','SKmQa','get','config','\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}catch{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20This\x20is\x20a\x20failsafe\x20if\x20global-agent\x20present\x20inside\x20sdk\x20node_modules\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22./node_modules/browserstack-node-sdk/node_modules/global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20};\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap();','split','isTrue','2seeqeU','writeFileSync','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','SDK_CLEANUP','--config=','frtMR','nJusb','BROWSERSTACK_TEST_ACCESSIBILITY_YML','filter','HjPUi','vBXXo','.browserstack','KXxck','winstonLogger','measureWrapper','QWRfj','BROWSERSTACK_SETUP_CONFIG_PATH','logLevel','skipSessionStatus','../../helpers/testhub/testhubHandler','843473uXQTKP','forEach','info','browserstackAutomation','stop','inherit','../../helpers/performance/performance-tester','iujBS','slice','../v2/browserstackCLI','../../helpers/test-observability/utils','BZWEe','CUIPU','join','Playwright\x20process\x20exited\x20with\x20code\x20','unlinkSync','finalExecution','PLAYWRIGHT','win32','setFrameworkDetail','getProxyUrl','ZtvJJ','Updated\x20config\x20file\x20name\x20to\x20-\x20','eZROW','IGuoA','yMSdC','error','test','45237312PCdiUD','63117MEQgji','homedir','TkZkP','splice','../v2/TestInfo','ZQtXL','trim','bGtNA','NbAVg'];a38_0x5ce1=function(){return _0x5abf0e;};return a38_0x5ce1();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a39_0x3cf810=a39_0x324b;function a39_0x324b(_0x1a1424,_0x4f0c78){const _0x1434b7=a39_0x1434();return a39_0x324b=function(_0x324be6,_0x477661){_0x324be6=_0x324be6-0xea;let _0x2f5f63=_0x1434b7[_0x324be6];return _0x2f5f63;},a39_0x324b(_0x1a1424,_0x4f0c78);}(function(_0x189e17,_0x4b109c){const _0x270518=a39_0x324b,_0x4e1636=_0x189e17();while(!![]){try{const _0x5603e7=-parseInt(_0x270518(0x104))/0x1+parseInt(_0x270518(0x107))/0x2+parseInt(_0x270518(0xf9))/0x3*(parseInt(_0x270518(0x103))/0x4)+-parseInt(_0x270518(0xef))/0x5+parseInt(_0x270518(0x100))/0x6+parseInt(_0x270518(0x10a))/0x7*(parseInt(_0x270518(0xf4))/0x8)+parseInt(_0x270518(0xec))/0x9;if(_0x5603e7===_0x4b109c)break;else _0x4e1636['push'](_0x4e1636['shift']());}catch(_0x4a3517){_0x4e1636['push'](_0x4e1636['shift']());}}}(a39_0x1434,0xe6823));const util=require(a39_0x3cf810(0xf2)),child_process=require('child_process'),{FRAMEWORKS}=require(a39_0x3cf810(0xf7)),{getFrameworkVersion,debug}=require('../../helpers/test-observability/utils'),helper=require(a39_0x3cf810(0x101)),{getLoadUtilsPath,getForkProcessPath}=require(a39_0x3cf810(0xed)),{mockIsWorkerRedundant}=require(a39_0x3cf810(0xea)),logger=require(a39_0x3cf810(0xeb))['winstonLogger'];function a39_0x1434(){const _0x5443b0=['../../helpers/logger','1865043qkVLRB','./reporter/pwUtils','TbWlt','6765600vAnSdU','function','1.33.0','util','apply','7425480idKqvF','compareVersions','debug','../../helpers/test-observability/constants','NuZzm','3dUBlBw','TLbKn','DtJnY','./mock-process.js','AnKUV','resolve','BZbqV','2881992JsGUAz','../../helpers/helper','error','2984916WQnQPn','1857090BEtpep','TRyUa','Running\x20existing\x20global\x20setup','1728430JRFzBs','VtsXe','\x20is\x20not\x20found','14sZNIrz','format','fork','requirePWModule','includes','exports','Path\x20','toString','Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20','config','isHandlePWErrorSet','VbypR','Not\x20able\x20to\x20import\x20globalSetup','MKAje','./patches'];a39_0x1434=function(){return _0x5443b0;};return a39_0x1434();}module[a39_0x3cf810(0x10f)]=async function(_0x2b613b){const _0xa4bdf0=a39_0x3cf810,_0x256a67={'BZbqV':function(_0x2ac632,_0xfcc6){return _0x2ac632(_0xfcc6);},'VbypR':function(_0x14122f){return _0x14122f();},'TbWlt':_0xa4bdf0(0xfc),'TLbKn':function(_0x6dfa1b){return _0x6dfa1b();},'MKAje':function(_0x5eb6bb,_0x19483a){return _0x5eb6bb(_0x19483a);},'VtsXe':_0xa4bdf0(0x106),'YqhlM':function(_0x5dcda1){return _0x5dcda1();},'arqnl':function(_0x3da05f,_0xa8a101){return _0x3da05f>=_0xa8a101;},'TRyUa':_0xa4bdf0(0xf1),'NuZzm':function(_0x598269,_0x4434e3,_0x26ff93){return _0x598269(_0x4434e3,_0x26ff93);},'Ukveo':function(_0x4a3c72,_0x196447){return _0x4a3c72!==_0x196447;},'DtJnY':_0xa4bdf0(0xf0),'AnKUV':_0xa4bdf0(0x116)},_0x430f60=child_process[_0xa4bdf0(0x10c)];if(helper[_0xa4bdf0(0x114)]())try{_0x256a67['VbypR'](mockIsWorkerRedundant);}catch(_0x2f4955){logger[_0xa4bdf0(0xf6)](_0xa4bdf0(0x112)+util[_0xa4bdf0(0x10b)](_0x2f4955));}child_process[_0xa4bdf0(0x10c)]=function(){const _0x4d3273=_0xa4bdf0;return _0x256a67[_0x4d3273(0xff)](debug,'Call\x20to\x20child\x20fork\x20with\x20args\x20'+arguments[0x0]),arguments[0x0][_0x4d3273(0x10e)](_0x256a67[_0x4d3273(0x115)](getForkProcessPath))?arguments[0x0]=require[_0x4d3273(0xfe)](_0x256a67[_0x4d3273(0xee)]):logger[_0x4d3273(0x102)](_0x4d3273(0x110)+_0x256a67[_0x4d3273(0xfa)](getForkProcessPath)+_0x4d3273(0x109)),_0x430f60[_0x4d3273(0xf3)](null,arguments);};if(process['env']['BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP']){_0x256a67[_0xa4bdf0(0x117)](debug,_0x256a67[_0xa4bdf0(0x108)]);try{const {loadGlobalHook:_0x3bb1c9}=helper[_0xa4bdf0(0x10d)][_0xa4bdf0(0xf3)](null,_0x256a67['YqhlM'](getLoadUtilsPath)),_0x35b634=_0x256a67[_0xa4bdf0(0xff)](getFrameworkVersion,FRAMEWORKS['PLAYWRIGHT']);let _0xbb7577=_0x2b613b;if(_0x256a67['arqnl'](helper[_0xa4bdf0(0xf5)](_0x35b634,_0x256a67[_0xa4bdf0(0x105)]),0x0)){const _0x16dd55={};_0x16dd55[_0xa4bdf0(0x113)]=_0x2b613b,_0xbb7577=_0x16dd55;}const _0x91db0f=await _0x256a67[_0xa4bdf0(0xf8)](_0x3bb1c9,_0xbb7577,process['env']['BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP']);if(_0x256a67['Ukveo'](typeof _0x91db0f,_0x256a67[_0xa4bdf0(0xfb)]))throw new Error(_0x256a67[_0xa4bdf0(0xfd)]);return _0x91db0f['apply'](null,arguments);}catch(_0x213697){_0x256a67[_0xa4bdf0(0x117)](debug,'Error\x20in\x20calling\x20existing\x20global\x20setup:\x20'+_0x213697[_0xa4bdf0(0x111)]());}}};
|