browserstack-node-sdk 1.40.3 → 1.40.4
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
|
+
function a35_0x4c14(_0x1ac01e,_0x39f5a0){const _0x52bc0a=a35_0x52bc();return a35_0x4c14=function(_0x4c14bf,_0x3a1b36){_0x4c14bf=_0x4c14bf-0x1b5;let _0x10421b=_0x52bc0a[_0x4c14bf];return _0x10421b;},a35_0x4c14(_0x1ac01e,_0x39f5a0);}const a35_0x4e3b5b=a35_0x4c14;function a35_0x52bc(){const _0x4b4e47=['http:','Qpkty','RIywL','AisfO','CmRqr','3080208alaAUB','SDK_HOOK','EiqYL','duigL','qXuKh','avIDu','push','lOPKq','Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20','appium:app','\x20-\x20','VmbVm','kfdyq','DWSWy','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','capabilities','\x20|\x20','dPmBd','qVcFV','ENV_VAR','745nLhJiw','SESSION_NAME','performScan','../../helpers/globals','CIzTe','measureWrapper','Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20','../../helpers/testhub/constants','fCBLt',',\x22level\x22:\x20\x22','info','../../helpers/accessibility-automation/scripts','hdGYt','WMdgX','JyABA','BROWSERSTACK_TESTHUB_UUID','stringify','XJrOq','error','KABUe','gvsna','cUknZ','browserstackSessionName','hJxvv','testAnalyticsId','aMvGD','FxYbE','jaKOp','__platformCaps','uHvUP','wqPSo','getGlobal','dbZbH','afterEach','Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20','uxDiN','__error_messages__','message','setGlobal','IQmMT','SQykB','ohuUT','app','Automate\x20test\x20case\x20execution\x20has\x20started.','YTBYW','VMSFb','quitCount_','../../helpers/percy/utils','driverCleanup','index','then','\x22}}','UpNUG','SESSION_STATUS','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','join','eQclE','startMonitoring','RWFhe','QvEDF','executeScript','QeTtK','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','shift','vONoQ','AypRG','initQuit','qiNAb','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','protocol','sessionName','beforeEach','PQjiJ','7mzUwTZ','SAVE_RESULTS','ImAQK','browserstackTestName','VDAjW','debug','BHnnw','53390ziJZqC','titlePath','1504877eRnawn','now','632433CyKMDn','fkJhE','shouldScanTestForAccessibility','command','XCixo','SqHdH','state','AbmWo','Performing\x20scan\x20before\x20saving\x20results','end','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','gMtfZ','MGRpu','kaXIL','414pcURga','percyCaptureMode','duYAf','bstackA11yShouldScan','qWhqU','bNdTV','afterAll','../../helpers/logger','axIzg','4LODWNc','https:','oNGYc','util','ObservabilitySync:','SaEcv','beforeAll','VNxLy','IIZOI','executeAsyncScript','VxyCo','LlmAd','__sessionFailed','rRGWE','Mocha','Xxgka','xqKPg','PeqFe','saveTestResults','passed','__drivers','currentTest','format','JRzAl','isAccessibilityPlatform','TXavx','Jrrnb','length','yvZGi','RBOCR','timeout','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','SYNC','finally','12244YbdQcf','failed','Passed','env','pHZGs','accessibilityScanStarted','jZTGb','uzaLN','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','411337nOELZH','Ovigc','2366744GlgCln','lrmaO','__skipSessionName','testcase','../../helpers/testhub/utils','ETOrJ','bmjOG','CTfhq','Failed\x20to\x20store\x20session\x20name:\x20','session_','ujDEj','MqEYq','kPWJb','EPLci','err','kIAKc','Failed:\x20','.\x20Error\x20:','lzvPx'];a35_0x52bc=function(){return _0x4b4e47;};return a35_0x52bc();}(function(_0x2df019,_0x188374){const _0x1b615f=a35_0x4c14,_0x40b993=_0x2df019();while(!![]){try{const _0x54700a=parseInt(_0x1b615f(0x265))/0x1+-parseInt(_0x1b615f(0x23a))/0x2*(-parseInt(_0x1b615f(0x223))/0x3)+-parseInt(_0x1b615f(0x25c))/0x4*(-parseInt(_0x1b615f(0x1cf))/0x5)+-parseInt(_0x1b615f(0x1bb))/0x6+parseInt(_0x1b615f(0x218))/0x7*(-parseInt(_0x1b615f(0x267))/0x8)+parseInt(_0x1b615f(0x231))/0x9*(-parseInt(_0x1b615f(0x21f))/0xa)+parseInt(_0x1b615f(0x221))/0xb;if(_0x54700a===_0x188374)break;else _0x40b993['push'](_0x40b993['shift']());}catch(_0x5c2d6f){_0x40b993['push'](_0x40b993['shift']());}}}(a35_0x52bc,0x5a96a));const util=require(a35_0x4e3b5b(0x23d)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require('../../helpers/accessibility-automation/helper'),{TEST_FRAMEWORK_HOOK_TIMEOUT}=require('../utils/constants'),{percyAutoCapture}=require(a35_0x4e3b5b(0x1fe)),{sendPlatformDetails}=require('./test-observability/mochaUtils'),{isBrowserstackInfra,markSessionStatus,nestedKeyValue}=require('../../helpers/helper'),PerformanceTester=require('../../helpers/performance/performance-tester'),{AUTOMATE_EVENTS:PerformanceAutEvents,O11y_EVENTS:PerformanceO11yEvents,A11Y_EVENTS:PerformanceA11yEvents,EVENTS:PerformanceSdkEvents}=require('../../helpers/performance/constants'),scripts=require(a35_0x4e3b5b(0x1da)),globals=require(a35_0x4e3b5b(0x1d2)),logger=require(a35_0x4e3b5b(0x238))['winstonLogger'],{shouldProcessEventForTesthub}=require(a35_0x4e3b5b(0x26b)),testHubConstants=require(a35_0x4e3b5b(0x1d6));exports['mochaHooks']={'beforeAll'(){const _0x52d9ef=a35_0x4e3b5b,_0xb0a85={'uHvUP':function(_0x477c5b,_0x2368cb,_0x4919ff,_0x515864){return _0x477c5b(_0x2368cb,_0x4919ff,_0x515864);},'uxDiN':_0x52d9ef(0x25d),'qVcFV':_0x52d9ef(0x1cb),'jaKOp':function(_0x39ecf5,_0x5f23b3,_0x15d6de){return _0x39ecf5(_0x5f23b3,_0x15d6de);},'lOPKq':_0x52d9ef(0x24d),'aMvGD':function(_0x46f653){return _0x46f653();},'VNxLy':function(_0x13d177,_0x165d61,_0x532e10){return _0x13d177(_0x165d61,_0x532e10);},'tzHLy':'index','VxyCo':_0x52d9ef(0x240)};PerformanceTester[_0x52d9ef(0x208)]();const _0x293cfd='browserstack internal helper hook';PerformanceTester['measureWrapper'](PerformanceSdkEvents[_0x52d9ef(0x1bc)],()=>{const _0x36a61e=_0x52d9ef;global[_0x36a61e(0x1f3)]=[],global[_0x36a61e(0x246)]=![],global[_0x36a61e(0x1ff)]=async()=>{const _0x2b3c5f=_0x36a61e;let _0x33448a=![];try{await global[_0x2b3c5f(0x24e)][0x0][_0x2b3c5f(0x270)],_0x33448a=!![],global['__sessionFailed']?await _0xb0a85[_0x2b3c5f(0x1ec)](markSessionStatus,global['__drivers'][0x0],_0xb0a85[_0x2b3c5f(0x1f2)],global[_0x2b3c5f(0x1f3)][_0x2b3c5f(0x206)](_0xb0a85[_0x2b3c5f(0x1cd)])):await _0xb0a85[_0x2b3c5f(0x1ea)](markSessionStatus,global[_0x2b3c5f(0x24e)][0x0],_0xb0a85[_0x2b3c5f(0x1c2)]);}catch(_0x39a9ec){logger[_0x2b3c5f(0x21d)]('Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20'+_0x39a9ec);}global['__error_messages__']=[],global[_0x2b3c5f(0x246)]=![];if(_0x33448a)try{try{_0xb0a85[_0x2b3c5f(0x1e8)](shouldProcessEventForTesthub)&&(global[_0x2b3c5f(0x24e)][0x0]&&await _0xb0a85[_0x2b3c5f(0x1ea)](sendPlatformDetails,global[_0x2b3c5f(0x24e)][0x0],this['currentTest']?this[_0x2b3c5f(0x24f)][_0x2b3c5f(0x1e7)]:null));}catch(_0x5bcf2e){logger[_0x2b3c5f(0x21d)](_0x2b3c5f(0x1f1)+_0x5bcf2e);}await global['__drivers'][0x0][_0x2b3c5f(0x211)]();}catch(_0x267760){logger[_0x2b3c5f(0x21d)]('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0x267760);}};},{'platform':_0xb0a85[_0x52d9ef(0x241)](nestedKeyValue,global[_0x52d9ef(0x1eb)],[_0xb0a85['tzHLy']]),'hookType':_0xb0a85[_0x52d9ef(0x244)]})();},'beforeEach'(_0x1e7105){const _0x527417=a35_0x4e3b5b,_0x180ef6={'lzvPx':function(_0x2e899f,_0x546064){return _0x2e899f>_0x546064;},'XCixo':_0x527417(0x1c5),'LlmAd':function(_0x4ca584,_0x3cc7d9,_0x434f68){return _0x4ca584(_0x3cc7d9,_0x434f68);},'SqHdH':_0x527417(0x234),'ujDEj':function(_0x443dc4){return _0x443dc4();},'oNGYc':'isAccessibilityPlatform','CmRqr':function(_0x3864e7,_0x401917){return _0x3864e7===_0x401917;},'BuggU':_0x527417(0x1b6),'QeTtK':_0x527417(0x23b),'IIZOI':_0x527417(0x205),'RIywL':_0x527417(0x1fa),'UpNUG':_0x527417(0x21b),'NrATU':_0x527417(0x200),'avIDu':_0x527417(0x216)};globals['setGlobal'](_0x180ef6[_0x527417(0x203)],this[_0x527417(0x24f)][_0x527417(0x220)]()[_0x527417(0x206)](_0x180ef6[_0x527417(0x227)])),PerformanceTester[_0x527417(0x1d4)](PerformanceSdkEvents[_0x527417(0x1bc)],()=>{const _0x4591fb=_0x527417,_0x11a6d3={'kaXIL':function(_0x2325cf,_0x376a81){const _0x5002a1=a35_0x4c14;return _0x180ef6[_0x5002a1(0x1b5)](_0x2325cf,_0x376a81);},'gMtfZ':_0x180ef6[_0x4591fb(0x227)],'PQjiJ':function(_0x53a0a8,_0x4a98c8,_0x52779a){const _0x388660=_0x4591fb;return _0x180ef6[_0x388660(0x245)](_0x53a0a8,_0x4a98c8,_0x52779a);},'qiNAb':_0x180ef6[_0x4591fb(0x228)],'XJrOq':function(_0x249747){const _0x51a34e=_0x4591fb;return _0x180ef6[_0x51a34e(0x271)](_0x249747);},'lrmaO':function(_0x543ac9,_0x15b358){const _0x1040e6=_0x4591fb;return _0x180ef6[_0x1040e6(0x1b5)](_0x543ac9,_0x15b358);},'bmjOG':_0x180ef6[_0x4591fb(0x23c)],'apYcN':function(_0x56f1dc,_0x5c66a3){const _0x58fe4d=_0x4591fb;return _0x180ef6[_0x58fe4d(0x1ba)](_0x56f1dc,_0x5c66a3);},'MqEYq':_0x180ef6['BuggU'],'ngtGz':_0x180ef6[_0x4591fb(0x20c)],'jZTGb':_0x180ef6[_0x4591fb(0x242)],'VmbVm':_0x180ef6[_0x4591fb(0x1b8)],'DWSWy':function(_0xaef5d9){const _0x4d9f95=_0x4591fb;return _0x180ef6[_0x4d9f95(0x271)](_0xaef5d9);}},_0x3ebb60='browserstack internal helper hook';new Promise(async _0x222d52=>{const _0x27948c=_0x4591fb;let _0x148b21=!![];try{_0x11a6d3['kaXIL'](global[_0x27948c(0x24e)][_0x27948c(0x255)],0x1)&&(await global[_0x27948c(0x1ff)](),global['__drivers']['shift']()),_0x11a6d3[_0x27948c(0x230)](global[_0x27948c(0x24e)][0x0][_0x27948c(0x1fd)],0x0)&&(_0x148b21=![],await global[_0x27948c(0x1ff)]());}catch(_0x45c054){logger[_0x27948c(0x21d)](_0x27948c(0x259)+_0x45c054);}try{Array['isArray'](global[_0x27948c(0x24e)])&&global['__drivers'][0x0]&&(global[_0x27948c(0x24e)][0x0]['browserstackSessionName']=this['currentTest'][_0x27948c(0x220)]()['join'](_0x11a6d3['gMtfZ'])),global[_0x27948c(0x1e5)]=this[_0x27948c(0x24f)][_0x27948c(0x220)]()[_0x27948c(0x206)](_0x11a6d3[_0x27948c(0x22e)]);}catch(_0x37899f){logger['debug'](_0x27948c(0x26f)+_0x37899f);}this[_0x27948c(0x24f)][_0x27948c(0x225)]=_0x11a6d3[_0x27948c(0x217)](shouldScanTestForAccessibility,this[_0x27948c(0x24f)][_0x27948c(0x220)](),!![]),globals[_0x27948c(0x1f5)](_0x11a6d3[_0x27948c(0x212)],this[_0x27948c(0x24f)][_0x27948c(0x225)]),this[_0x27948c(0x24f)][_0x27948c(0x261)]=!![];if(_0x11a6d3[_0x27948c(0x1e0)](isAccessibilityAutomationSession)&&_0x148b21&&Array['isArray'](global[_0x27948c(0x24e)])&&_0x11a6d3[_0x27948c(0x268)](global['__drivers'][_0x27948c(0x255)],0x0)&&globals[_0x27948c(0x1ee)](_0x11a6d3[_0x27948c(0x26d)]))try{const _0x4e9925=await global[_0x27948c(0x24e)][0x0][_0x27948c(0x270)];if(_0x4e9925){let _0x55c4dd=!![];const _0x581e3c=await global[_0x27948c(0x24e)][0x0]['getCurrentUrl']();let _0x1e8548;try{_0x1e8548=new URL(_0x581e3c);}catch(_0x10a90f){_0x55c4dd=![];}_0x55c4dd=_0x11a6d3['apYcN'](_0x1e8548[_0x27948c(0x214)],_0x11a6d3[_0x27948c(0x272)])||_0x11a6d3['apYcN'](_0x1e8548[_0x27948c(0x214)],_0x11a6d3['ngtGz']),_0x55c4dd&&(this['currentTest'][_0x27948c(0x225)]&&logger[_0x27948c(0x1d9)](_0x11a6d3[_0x27948c(0x262)])),this[_0x27948c(0x24f)][_0x27948c(0x261)]=this[_0x27948c(0x24f)]['shouldScanTestForAccessibility'],this['currentTest'][_0x27948c(0x225)]&&logger[_0x27948c(0x1d9)](_0x11a6d3[_0x27948c(0x1c6)]);}}catch(_0x4786bd){logger['error'](_0x27948c(0x22d)+util[_0x27948c(0x250)](_0x4786bd));}_0x11a6d3[_0x27948c(0x1e0)](_0x222d52);})['then'](()=>{const _0x85fd90=_0x4591fb;_0x11a6d3[_0x85fd90(0x1c8)](_0x1e7105);});},{'platform':_0x180ef6[_0x527417(0x245)](nestedKeyValue,global[_0x527417(0x1eb)],[_0x180ef6['NrATU']]),'hookType':_0x180ef6[_0x527417(0x1c0)]})();},'afterEach'(_0x16f9ad){const _0x21de32=a35_0x4e3b5b,_0x4ebe93={'SQykB':function(_0x237834){return _0x237834();},'AbmWo':_0x21de32(0x1c5),'qXuKh':function(_0x43c79e,_0x48c219){return _0x43c79e!==_0x48c219;},'CIzTe':_0x21de32(0x24d),'CTfhq':function(_0xb274d6,_0x32d28d,_0x482d85){return _0xb274d6(_0x32d28d,_0x482d85);},'nxrdD':function(_0xe12d47,_0x458d87){return _0xe12d47+_0x458d87;},'TXavx':_0x21de32(0x277),'Jrrnb':_0x21de32(0x1e1),'cUknZ':_0x21de32(0x25e),'QvEDF':_0x21de32(0x1d9),'KABUe':function(_0x3b342d,_0x1cebe1){return _0x3b342d>_0x1cebe1;},'RBOCR':function(_0x40bd33,_0x5beaf4){return _0x40bd33===_0x5beaf4;},'fkJhE':_0x21de32(0x26a),'bNdTV':_0x21de32(0x1c4),'ajrIR':function(_0x1c3c0a,_0x2dca5b,_0x13f8b1,_0x44cd73){return _0x1c3c0a(_0x2dca5b,_0x13f8b1,_0x44cd73);},'rRGWE':_0x21de32(0x252),'DZHTK':_0x21de32(0x234),'SaEcv':_0x21de32(0x1c9),'duYAf':_0x21de32(0x22b),'vONoQ':'afterTest','ROBEc':'Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','ImAQK':function(_0x2645b7){return _0x2645b7();},'Ovigc':function(_0x44f67d){return _0x44f67d();},'eQclE':function(_0x2fd214,_0x54db4f,_0x54b9f3){return _0x2fd214(_0x54db4f,_0x54b9f3);},'Qpkty':_0x21de32(0x21d),'wqPSo':_0x21de32(0x248),'uLKmu':_0x21de32(0x200),'JyABA':_0x21de32(0x1f0)},_0x2ca739='browserstack internal helper hook';this[_0x21de32(0x258)](TEST_FRAMEWORK_HOOK_TIMEOUT[_0x4ebe93[_0x21de32(0x1ed)]]),global[_0x21de32(0x215)]=this[_0x21de32(0x24f)]['titlePath']()['join'](_0x4ebe93[_0x21de32(0x22a)]),PerformanceTester[_0x21de32(0x1d4)](PerformanceSdkEvents[_0x21de32(0x1bc)],()=>{const _0x4ef5dc=_0x21de32,_0x754644={'PeqFe':_0x4ebe93[_0x4ef5dc(0x22a)],'kIAKc':function(_0x5219ab,_0x5eb474){const _0x24eaf7=_0x4ef5dc;return _0x4ebe93[_0x24eaf7(0x1bf)](_0x5219ab,_0x5eb474);},'RWFhe':_0x4ebe93[_0x4ef5dc(0x1d3)],'kPWJb':function(_0x442c19,_0x2c666b,_0x4b16cd){const _0x460cb8=_0x4ef5dc;return _0x4ebe93[_0x460cb8(0x26e)](_0x442c19,_0x2c666b,_0x4b16cd);},'EPLci':function(_0x48e18a,_0x5a04cf){return _0x4ebe93['nxrdD'](_0x48e18a,_0x5a04cf);},'hJxvv':_0x4ebe93[_0x4ef5dc(0x253)],'VDAjW':_0x4ebe93[_0x4ef5dc(0x254)],'mkjBN':_0x4ebe93[_0x4ef5dc(0x1e4)],'xqKPg':_0x4ebe93[_0x4ef5dc(0x20a)],'hdGYt':function(_0x15bc70,_0x9c20ca){const _0xa2da4c=_0x4ef5dc;return _0x4ebe93[_0xa2da4c(0x1e2)](_0x15bc70,_0x9c20ca);},'duigL':function(_0xf30734,_0x3e8d19){const _0x1f84a4=_0x4ef5dc;return _0x4ebe93[_0x1f84a4(0x257)](_0xf30734,_0x3e8d19);},'AisfO':_0x4ebe93[_0x4ef5dc(0x224)],'axIzg':function(_0x1bdcd0,_0x4b30c7){const _0x1cedf3=_0x4ef5dc;return _0x4ebe93[_0x1cedf3(0x1e2)](_0x1bdcd0,_0x4b30c7);},'qWhqU':_0x4ebe93[_0x4ef5dc(0x236)],'EiqYL':function(_0x3142cf,_0x42faeb,_0x5aefc8,_0x9d7b80){return _0x4ebe93['ajrIR'](_0x3142cf,_0x42faeb,_0x5aefc8,_0x9d7b80);},'MGRpu':_0x4ebe93[_0x4ef5dc(0x247)],'BHnnw':_0x4ebe93['DZHTK'],'FxYbE':_0x4ebe93[_0x4ef5dc(0x23f)],'uzaLN':_0x4ebe93[_0x4ef5dc(0x233)],'YTBYW':_0x4ebe93[_0x4ef5dc(0x20f)],'ETOrJ':_0x4ebe93['ROBEc'],'fCBLt':function(_0x9949c9){const _0x559b90=_0x4ef5dc;return _0x4ebe93[_0x559b90(0x21a)](_0x9949c9);},'WMdgX':function(_0x17e245){const _0x140653=_0x4ef5dc;return _0x4ebe93[_0x140653(0x266)](_0x17e245);},'kfdyq':function(_0xad390b,_0x54f561,_0x52742a){const _0x6cce48=_0x4ef5dc;return _0x4ebe93[_0x6cce48(0x207)](_0xad390b,_0x54f561,_0x52742a);},'Xxgka':_0x4ebe93[_0x4ef5dc(0x1b7)],'XOsjk':function(_0xb237c8){return _0x4ebe93['SQykB'](_0xb237c8);}},_0x38b15e=async(_0x3db978,_0x412dbc)=>{const _0x1013dc=_0x4ef5dc;await global['__drivers'][0x0][_0x1013dc(0x20b)](_0x1013dc(0x213)+_0x3db978+_0x1013dc(0x1d8)+_0x412dbc+_0x1013dc(0x202));};new Promise(async _0x4d2b19=>{const _0x31d301=_0x4ef5dc,_0x255eae={'pHZGs':function(_0x3389cf,_0x40b49b){const _0x32d9d0=a35_0x4c14;return _0x754644[_0x32d9d0(0x276)](_0x3389cf,_0x40b49b);},'dbZbH':_0x754644[_0x31d301(0x209)],'IQmMT':function(_0x1a9d1a,_0xb535b0,_0x57c552){return _0x754644['kPWJb'](_0x1a9d1a,_0xb535b0,_0x57c552);},'VeWff':function(_0x5d1f5e,_0x3aa4cb){const _0x315c8b=_0x31d301;return _0x754644[_0x315c8b(0x274)](_0x5d1f5e,_0x3aa4cb);},'yvZGi':_0x754644[_0x31d301(0x1e6)],'DrAhm':_0x754644[_0x31d301(0x21c)],'pZQKv':function(_0x62f3f2,_0x17184f,_0x13aa20){const _0x26fd6a=_0x31d301;return _0x754644[_0x26fd6a(0x273)](_0x62f3f2,_0x17184f,_0x13aa20);},'AypRG':_0x754644['mkjBN'],'VMSFb':_0x754644[_0x31d301(0x24a)]};try{_0x754644[_0x31d301(0x1db)](global['__drivers'][_0x31d301(0x255)],0x1)&&(await global[_0x31d301(0x1ff)](),global[_0x31d301(0x24e)][_0x31d301(0x20e)](),global[_0x31d301(0x1f3)]=[],global['__sessionFailed']=![]);try{if(global['percy']&&_0x754644[_0x31d301(0x1be)](global[_0x31d301(0x232)],_0x754644['AisfO'])&&global[_0x31d301(0x24e)][0x0]){const _0xbe53fd=_0x754644['axIzg'](global[_0x31d301(0x1ca)][_0x31d301(0x255)],0x0)?!!global[_0x31d301(0x1ca)][0x0][_0x31d301(0x1f9)]||!!global[_0x31d301(0x1ca)][0x0][_0x754644[_0x31d301(0x235)]]:![],_0x4571e0={};_0x4571e0[_0x31d301(0x1f9)]=_0xbe53fd,await _0x754644[_0x31d301(0x1bd)](percyAutoCapture,global[_0x31d301(0x24e)][0x0],_0x754644[_0x31d301(0x1b9)],_0x4571e0);}}catch(_0x2d1919){logger['debug'](_0x31d301(0x1d5)+_0x2d1919);}!global[_0x31d301(0x269)]&&(await PerformanceTester[_0x31d301(0x1d4)](PerformanceAutEvents[_0x31d301(0x1d0)],async()=>{const _0x3504c6=_0x31d301;await global[_0x3504c6(0x24e)][0x0][_0x3504c6(0x20b)](_0x3504c6(0x20d)+JSON['stringify'](this['currentTest'][_0x3504c6(0x220)]()[_0x3504c6(0x206)](_0x754644[_0x3504c6(0x24b)]))+'}}');})(),global['__drivers'][0x0]['sessionNameSet__']=!![]),await PerformanceTester[_0x31d301(0x1d4)](PerformanceAutEvents[_0x31d301(0x204)],async()=>{const _0x55d44c=_0x31d301,_0x100817=_0x255eae[_0x55d44c(0x260)](this[_0x55d44c(0x24f)][_0x55d44c(0x229)],_0x255eae[_0x55d44c(0x1ef)]);_0x100817?(global[_0x55d44c(0x246)]=!![],global['__error_messages__'][_0x55d44c(0x1c1)](this[_0x55d44c(0x24f)][_0x55d44c(0x275)][_0x55d44c(0x1f4)]),await _0x255eae[_0x55d44c(0x1f6)](_0x38b15e,JSON[_0x55d44c(0x1df)](_0x255eae['VeWff'](_0x255eae[_0x55d44c(0x256)],this[_0x55d44c(0x24f)][_0x55d44c(0x275)]['message'])),_0x255eae['DrAhm'])):await _0x255eae['pZQKv'](_0x38b15e,JSON[_0x55d44c(0x1df)](_0x255eae[_0x55d44c(0x210)]),_0x255eae[_0x55d44c(0x1fc)]);})();}catch(_0x2c321f){logger[_0x31d301(0x21d)]('Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20'+_0x2c321f);}try{if(this[_0x31d301(0x24f)][_0x31d301(0x261)]&&globals[_0x31d301(0x1ee)](_0x754644[_0x31d301(0x22f)])&&globals[_0x31d301(0x1ee)](_0x754644[_0x31d301(0x21e)])){logger[_0x31d301(0x1d9)](_0x754644[_0x31d301(0x1e9)]);const _0x4c14f={};_0x4c14f['thTestRunUuid']=this[_0x31d301(0x24f)]['testAnalyticsId'],_0x4c14f['thBuildUuid']=process['env'][testHubConstants[_0x31d301(0x1ce)][_0x31d301(0x1de)]],_0x4c14f['thJwtToken']=process[_0x31d301(0x25f)][testHubConstants[_0x31d301(0x1ce)]['BROWSERSTACK_TESTHUB_JWT']];const _0xbc0a39=_0x4c14f;logger[_0x31d301(0x21d)]('Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20'+JSON[_0x31d301(0x1df)](_0xbc0a39)),logger[_0x31d301(0x21d)](_0x754644[_0x31d301(0x263)]);const _0x59c95c={};_0x59c95c[_0x31d301(0x226)]=_0x754644[_0x31d301(0x1fb)],await PerformanceTester[_0x31d301(0x1d4)](PerformanceA11yEvents['PERFORM_SCAN'],async()=>{const _0x15bb5d=_0x31d301;logger[_0x15bb5d(0x21d)](util[_0x15bb5d(0x250)](await global[_0x15bb5d(0x24e)][0x0]['executeAsyncScript'](scripts[_0x15bb5d(0x1d1)],{'method':global[_0x15bb5d(0x1e5)]})));},_0x59c95c)(),await PerformanceTester[_0x31d301(0x1d4)](PerformanceA11yEvents[_0x31d301(0x219)],async()=>{const _0x493519=_0x31d301;await global[_0x493519(0x24e)][0x0][_0x493519(0x243)](scripts[_0x493519(0x24c)],_0xbc0a39);})(),logger['info'](_0x754644[_0x31d301(0x26c)]);}}catch(_0x546976){logger[_0x31d301(0x1e1)](_0x31d301(0x264)+this[_0x31d301(0x24f)][_0x31d301(0x220)]()+_0x31d301(0x278),_0x546976);}try{try{if(_0x754644[_0x31d301(0x1d7)](shouldProcessEventForTesthub)){global[_0x31d301(0x24e)][0x0]&&await _0x754644[_0x31d301(0x273)](sendPlatformDetails,global[_0x31d301(0x24e)][0x0],this[_0x31d301(0x24f)]?this[_0x31d301(0x24f)][_0x31d301(0x1e7)]:null);if(_0x754644[_0x31d301(0x1dc)](isBrowserstackInfra)){PerformanceTester['start'](PerformanceO11yEvents[_0x31d301(0x25a)]);const _0x84342=_0x31d301(0x23e)+Date[_0x31d301(0x222)]();await _0x754644[_0x31d301(0x1c7)](_0x38b15e,JSON[_0x31d301(0x1df)](_0x84342),_0x754644[_0x31d301(0x249)]),PerformanceTester[_0x31d301(0x22c)](PerformanceO11yEvents[_0x31d301(0x25a)]);}}}catch(_0x219ac6){logger[_0x31d301(0x21d)](_0x31d301(0x1c3)+_0x219ac6),PerformanceTester[_0x31d301(0x22c)](PerformanceO11yEvents['SYNC'],![],_0x219ac6);}_0x754644[_0x31d301(0x239)](global[_0x31d301(0x24e)][0x0][_0x31d301(0x1fd)],0x0)&&await global[_0x31d301(0x1ff)]();}catch(_0x5bf461){logger[_0x31d301(0x21d)]('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0x5bf461);}_0x754644['XOsjk'](_0x4d2b19);})[_0x4ef5dc(0x201)](()=>{const _0x47ae1f=_0x4ef5dc;_0x4ebe93[_0x47ae1f(0x1f7)](_0x16f9ad);});},{'platform':_0x4ebe93['CTfhq'](nestedKeyValue,global[_0x21de32(0x1eb)],[_0x4ebe93['uLKmu']]),'hookType':_0x4ebe93[_0x21de32(0x1dd)]})();},'afterAll'(_0x4b98dc){const _0x5adb61=a35_0x4e3b5b,_0x10e20b={'dPmBd':function(_0xf3113b){return _0xf3113b();},'ohuUT':'Mocha','uHpiQ':function(_0x54132b,_0x3cfc2e,_0x394969){return _0x54132b(_0x3cfc2e,_0x394969);},'gvsna':_0x5adb61(0x200),'XBjSZ':_0x5adb61(0x237)},_0x2c2132='browserstack internal helper hook';this[_0x5adb61(0x258)](TEST_FRAMEWORK_HOOK_TIMEOUT[_0x10e20b[_0x5adb61(0x1f8)]]),PerformanceTester[_0x5adb61(0x1d4)](PerformanceSdkEvents[_0x5adb61(0x1bc)],()=>{const _0xb75231=_0x5adb61,_0x4e87af={'JRzAl':function(_0x1a69ac){const _0x4fdfbd=a35_0x4c14;return _0x10e20b[_0x4fdfbd(0x1cc)](_0x1a69ac);}};new Promise(async _0x260b3e=>{const _0x301a9d=a35_0x4c14;await global[_0x301a9d(0x1ff)](),_0x4e87af[_0x301a9d(0x251)](_0x260b3e);})['then']()[_0xb75231(0x25b)](()=>{_0x10e20b['dPmBd'](_0x4b98dc);});},{'platform':_0x10e20b['uHpiQ'](nestedKeyValue,global[_0x5adb61(0x1eb)],[_0x10e20b[_0x5adb61(0x1e3)]]),'hookType':_0x10e20b['XBjSZ']})();}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';const a36_0x364fd9=a36_0x3650;(function(_0x134cae,_0x19f81d){const _0x14d497=a36_0x3650,_0x413d61=_0x134cae();while(!![]){try{const _0x4c718b=-parseInt(_0x14d497(0xc5))/0x1*(parseInt(_0x14d497(0xd1))/0x2)+parseInt(_0x14d497(0xe0))/0x3*(parseInt(_0x14d497(0xba))/0x4)+parseInt(_0x14d497(0xca))/0x5*(-parseInt(_0x14d497(0xac))/0x6)+parseInt(_0x14d497(0xce))/0x7+parseInt(_0x14d497(0xbc))/0x8*(-parseInt(_0x14d497(0xb4))/0x9)+parseInt(_0x14d497(0xa9))/0xa+parseInt(_0x14d497(0xe1))/0xb;if(_0x4c718b===_0x19f81d)break;else _0x413d61['push'](_0x413d61['shift']());}catch(_0xb87d3){_0x413d61['push'](_0x413d61['shift']());}}}(a36_0x6b96,0x6cef4));function a36_0x3650(_0x242948,_0x28ae49){const _0x6b9658=a36_0x6b96();return a36_0x3650=function(_0x365019,_0x4c1021){_0x365019=_0x365019-0xa5;let _0x35d80c=_0x6b9658[_0x365019];return _0x35d80c;},a36_0x3650(_0x242948,_0x28ae49);}const fs=require('fs'),path=require('path'),{spawn}=require(a36_0x364fd9(0xab)),logger=require(a36_0x364fd9(0xc7))[a36_0x364fd9(0xcb)],{default:BrowserStackSetup}=require(a36_0x364fd9(0xd6)),helper=require('../../helpers/helper'),constants=require(a36_0x364fd9(0xda)),getUserNightwatchConfigs=(_0x45553c,_0x31cede)=>{const _0xcee46=a36_0x364fd9,_0x278f1b={'DTuhj':'nightwatch.conf.js','bafYG':_0xcee46(0xc0),'Acqnd':function(_0x404a81,_0x3a2e53){return _0x404a81(_0x3a2e53);},'UDfJc':_0xcee46(0xbf)};let _0xf9c6ae=null,_0x4f1182={};const _0x18a12b=_0x31cede[_0xcee46(0xea)](_0x523c2b=>_0x523c2b==='--config');if(!helper[_0xcee46(0xa8)](_0x45553c['config'])&&fs['existsSync'](path[_0xcee46(0xe8)](process[_0xcee46(0xbb)](),_0x45553c[_0xcee46(0xde)])))_0xf9c6ae=path[_0xcee46(0xe8)](process[_0xcee46(0xbb)](),_0x45553c['config']),_0x31cede[_0xcee46(0xec)](_0x18a12b,0x2);else{if(fs['existsSync'](path[_0xcee46(0xe8)](process['cwd'](),_0x278f1b[_0xcee46(0xbd)])))_0xf9c6ae=path[_0xcee46(0xe8)](process[_0xcee46(0xbb)](),_0x278f1b[_0xcee46(0xbd)]);else fs[_0xcee46(0xe7)](path['join'](process[_0xcee46(0xbb)](),_0x278f1b[_0xcee46(0xb0)]))&&(_0xf9c6ae=path[_0xcee46(0xe8)](process['cwd'](),_0x278f1b['bafYG']));}return _0xf9c6ae?(logger[_0xcee46(0xdf)](_0xcee46(0xa5)+_0xf9c6ae),_0x4f1182=_0x278f1b['Acqnd'](require,_0xf9c6ae)):logger[_0xcee46(0xdf)](_0x278f1b['UDfJc']),_0x4f1182;},removeExistingEnvs=_0x1a67b3=>{const _0x1c946e=a36_0x364fd9,_0x5378a0={};_0x5378a0[_0x1c946e(0xaa)]=function(_0x593515,_0x3e5a52){return _0x593515>_0x3e5a52;},_0x5378a0[_0x1c946e(0xcc)]=function(_0x1f2900,_0x3dd49f){return _0x1f2900>_0x3dd49f;};const _0x4ee672=_0x5378a0;let _0x54fa6f=_0x1a67b3['findIndex'](_0x143479=>_0x143479===_0x1c946e(0xd5));_0x4ee672[_0x1c946e(0xaa)](_0x54fa6f,-0x1)&&_0x1a67b3['splice'](_0x54fa6f,0x2),_0x54fa6f=_0x1a67b3[_0x1c946e(0xea)](_0x54c63c=>_0x54c63c==='-e'),_0x4ee672[_0x1c946e(0xcc)](_0x54fa6f,-0x1)&&_0x1a67b3[_0x1c946e(0xec)](_0x54fa6f,0x2);};function a36_0x6b96(){const _0x1ff264=['qCXMn','689665eWkznE','WJBYt','../../helpers/logger','length','hub.browserstack.com','1945bKqEDK','winstonLogger','TvcEL','slice','828583rudEat','YLNzu','useW3C','2LKmDLq','split','env','WOjXR','--env','../../helpers/BrowserStackSetup','modifyBrowserStackW3CCaps','debug','close','../utils/constants','mergeDeep','yNPbE','ApcLg','config','info','3AuEfEX','1803901EhsXYD','nightwatch-browserstack.json','unlinkSync','desiredCapabilities','webdriver','bkXxK','existsSync','join','forEach','findIndex','stringify','splice','Getting\x20your\x20nightwatch\x20configs\x20from\x20','selenium','--config','isUndefined','8718580NjgBFc','WbPlD','child_process','714OVUsFt','xUQZv','test_settings','filter','bafYG','tllVq','test','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','18ljAweI','child\x20process\x20exited\x20with\x20code\x20','map','trim','platform','push','228328QnRQyg','cwd','116592eIHpPe','DTuhj','writeFileSync','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','nightwatch.json','UdUnW','nightwatch.cmd','nightwatch'];a36_0x6b96=function(){return _0x1ff264;};return a36_0x6b96();}function run(_0x1dcb5a,_0x381967,_0x24dd09){const _0x1d1517=a36_0x364fd9,_0x81ed81={'xUQZv':_0x1d1517(0xc3),'ripjf':function(_0xa07027,_0x5102c1){return _0xa07027+_0x5102c1;},'tllVq':'test_settings','EfHiA':function(_0x1878a3,_0x382628,_0xfeea64){return _0x1878a3(_0x382628,_0xfeea64);},'yNPbE':_0x1d1517(0xc9),'Nndnx':_0x1d1517(0xb3),'xYadX':function(_0x4a4043,_0x3d802f){return _0x4a4043===_0x3d802f;},'UdUnW':_0x1d1517(0xe2),'bkXxK':function(_0x486b0c,_0x454c57){return _0x486b0c(_0x454c57);},'WOjXR':function(_0x5aa9df,_0x30f10e,_0x135395,_0x331d45){return _0x5aa9df(_0x30f10e,_0x135395,_0x331d45);},'qCXMn':_0x1d1517(0xc2),'ApcLg':_0x1d1517(0xa7),'xZuBH':_0x1d1517(0xd5),'WJBYt':'inherit','YLNzu':_0x1d1517(0xd9)};if(!_0x24dd09['config'])return;const _0xe2ec46=_0x81ed81['EfHiA'](getUserNightwatchConfigs,_0x1dcb5a,_0x381967),_0x26b608={};_0x26b608['start_process']=![];const _0x12a34d={};_0x12a34d['host']=_0x81ed81[_0x1d1517(0xdc)],_0x12a34d['port']=0x1bb;const _0x1a37c3={};_0x1a37c3[_0x1d1517(0xe5)]=_0x26b608,_0x1a37c3[_0x1d1517(0xa6)]=_0x12a34d;const _0x45a2c6=_0x1a37c3;logger[_0x1d1517(0xdf)](_0x81ed81['Nndnx']);const _0x282658={..._0xe2ec46},_0x1b7ae5=_0x282658,_0x174b57=helper[_0x1d1517(0xd0)](_0x24dd09[_0x1d1517(0xde)]),_0x4de1d7=[];_0x24dd09[_0x1d1517(0xde)]['platforms'][_0x1d1517(0xe9)]((_0x48239b,_0x1ca06d)=>{const _0xde891=_0x1d1517;_0x174b57?_0x4de1d7[_0xde891(0xb9)](helper[_0xde891(0xd7)](_0x24dd09['config'],_0x81ed81[_0xde891(0xad)],_0x1ca06d)):_0x4de1d7[_0xde891(0xb9)](helper['modifyBrowserStackCaps'](_0x24dd09['config'],_0x81ed81[_0xde891(0xad)],_0x1ca06d));});const _0x519a42={},_0x44b65f=[];_0x1dcb5a['env']=_0x1dcb5a[_0x1d1517(0xd3)]||_0x1dcb5a['e'];const _0x251fec=_0x1dcb5a['env']?_0x1dcb5a[_0x1d1517(0xd3)][_0x1d1517(0xb7)]()[_0x1d1517(0xd2)](',')[_0x1d1517(0xb6)](_0x3242f7=>_0x3242f7['trim']())[_0x1d1517(0xaf)](_0x2a208e=>_0x2a208e!==''):[''];_0x81ed81['xYadX'](_0x251fec[_0x1d1517(0xc8)],0x0)&&_0x251fec['push']('');_0x251fec[_0x1d1517(0xe9)](_0x2bdd80=>{const _0x31a3fb=_0x1d1517;_0x4de1d7[_0x31a3fb(0xe9)](_0x4f7678=>{const _0x3f7586=_0x31a3fb;let _0x2fb237=_0x81ed81['ripjf'](helper['getPlatformName'](_0x4f7678,'_'),'_'+Date['now']());_0x2bdd80&&(_0x2fb237+='_'+_0x2bdd80);if(_0x2bdd80&&(!_0xe2ec46[_0x81ed81[_0x3f7586(0xb1)]]||!_0xe2ec46[_0x81ed81[_0x3f7586(0xb1)]][_0x2bdd80]))return;const _0xd739e5={..._0x45a2c6};_0xd739e5[_0x3f7586(0xe4)]=_0x4f7678;const _0x83f0ff=_0xd739e5;_0x519a42[_0x2fb237]=_0x2bdd80?helper[_0x3f7586(0xdb)](_0xe2ec46[_0x81ed81[_0x3f7586(0xb1)]][_0x2bdd80],_0x83f0ff):_0x83f0ff,_0x44b65f[_0x3f7586(0xb9)](_0x2fb237);});});!_0x1b7ae5[_0x1d1517(0xae)]&&(_0x1b7ae5[_0x1d1517(0xae)]={});_0x1b7ae5[_0x1d1517(0xae)]={..._0x1b7ae5['test_settings'],..._0x519a42};const _0x1b96dc=path[_0x1d1517(0xe8)](__dirname,_0x81ed81[_0x1d1517(0xc1)]);fs[_0x1d1517(0xbe)](_0x1b96dc,JSON[_0x1d1517(0xeb)](_0x1b7ae5)),_0x81ed81[_0x1d1517(0xe6)](removeExistingEnvs,_0x381967);const _0x59e078=_0x81ed81[_0x1d1517(0xd4)](spawn,/^win/[_0x1d1517(0xb2)](process[_0x1d1517(0xb8)])?_0x81ed81[_0x1d1517(0xc4)]:_0x81ed81['xUQZv'],[_0x81ed81[_0x1d1517(0xdd)],_0x1b96dc,..._0x381967[_0x1d1517(0xcd)](0x1),_0x81ed81['xZuBH'],_0x44b65f['join'](',')],{'stdio':_0x81ed81[_0x1d1517(0xc6)]});_0x59e078['on'](_0x81ed81[_0x1d1517(0xcf)],async _0x1123b2=>{const _0x584bb4=_0x1d1517;logger[_0x584bb4(0xd8)](_0x584bb4(0xb5)+_0x1123b2),logger['info']('Deleting\x20'+_0x1b96dc),fs[_0x584bb4(0xe3)](_0x1b96dc);});}module['exports']=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_0x3f348b=a37_0x25d4;function a37_0x25d4(_0x439cbe,_0xf6a035){const _0x23d70d=a37_0x23d7();return a37_0x25d4=function(_0x25d466,_0x436303){_0x25d466=_0x25d466-0x142;let _0x6890d2=_0x23d70d[_0x25d466];return _0x6890d2;},a37_0x25d4(_0x439cbe,_0xf6a035);}(function(_0x1fcafe,_0x528862){const _0x4ad5e0=a37_0x25d4,_0x5d7f86=_0x1fcafe();while(!![]){try{const _0x13ba43=-parseInt(_0x4ad5e0(0x16a))/0x1*(parseInt(_0x4ad5e0(0x145))/0x2)+parseInt(_0x4ad5e0(0x161))/0x3+parseInt(_0x4ad5e0(0x190))/0x4*(-parseInt(_0x4ad5e0(0x187))/0x5)+parseInt(_0x4ad5e0(0x1ab))/0x6+parseInt(_0x4ad5e0(0x19a))/0x7+parseInt(_0x4ad5e0(0x176))/0x8*(-parseInt(_0x4ad5e0(0x174))/0x9)+-parseInt(_0x4ad5e0(0x144))/0xa;if(_0x13ba43===_0x528862)break;else _0x5d7f86['push'](_0x5d7f86['shift']());}catch(_0x379a78){_0x5d7f86['push'](_0x5d7f86['shift']());}}}(a37_0x23d7,0xc68b2));function a37_0x23d7(){const _0x3d570d=['executeAsyncScript','format','AAuRa','IoJNb','browser_version','parse','33255Avueez','aODUQ','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','GnTqx','workerInfo','processAccessibilityCaps','lNDcm','SnxTz','BS_A11Y_JWT','148oxteFL','\x20page:\x20','eUPAO','name','euUyl','qzabN','measureWrapper','../../helpers/performance/constants','wsEndpoint','krAWu','10547740zosDcM','ezudD','vnuZW','GPNcJ','YOZAr','BDwcV','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','../../helpers/accessibility-automation/scripts','platformValidation','browserStackEvaluate','oZwGe','ahsXU','browserstack.accessibility','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','util','GCqZM','No\x20summaryResults\x20found.','6142872wcNfpO','wcagVersion','chrome','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x20100.','accessibilityOptions','latest','getAccessibilityResults','kMBIN','../../helpers/performance/performance-tester','accessibilityOptions.scannerProcessingTimeout','7715100cIRlCS','3730pOAVAs','(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20','MEVWT','accessibilityOptions.includeIssueType.needsReview','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','debug','playwright-chromium','bstackSdkArgs','No\x20accessibility\x20results\x20were\x20found.','executeScript','constructor','accessibilityPlatform','KmYqK','stringify','Playwright','chromium','browser','currentTest','connectOptions','setAccessibilityCapabilities','vSmBH','env','DIriQ','getAccessibilityResultsSummary','replace','includeIssueType','CrbYq','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','4575804DXQfDn','ZihFc','scannerProcessingTimeout','../../helpers/helper','evaluate','browserStackExecuteDriver','accessibilityOptions.includeIssueType.bestPractice','IMbFN','EBzXU','700FxflNE','performScan','deviceName','pYDMn','testInfo','warn','KMZXu','../../helpers/logger','VevZX','project','27iuVBwq','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','2452184sgMQyp','command','use','accessibilityOptions.authToken','ZgBZT','wFRrW','juZPa','error','includes','scannerVersion','tOIhD'];a37_0x23d7=function(){return _0x3d570d;};return a37_0x23d7();}const util=require(a37_0x3f348b(0x1a8)),logger=require(a37_0x3f348b(0x171))['winstonLogger'],{isAccessibilityAutomationSession}=require('../../helpers/accessibility-automation/helper'),{isUndefined,isBrowserstackInfra}=require(a37_0x3f348b(0x164)),scripts=require(a37_0x3f348b(0x1a1)),PerformanceTester=require(a37_0x3f348b(0x142)),{A11Y_EVENTS:PerformanceA11yEvents}=require(a37_0x3f348b(0x197));exports[a37_0x3f348b(0x1a3)]=async(_0x475888,_0x558a73,_0x3afe69={})=>{const _0xb5829=a37_0x3f348b,_0x2b567c={};_0x2b567c['nyHlD']=_0xb5829(0x14c);const _0x1e830=_0x2b567c;return await _0x475888[_0xb5829(0x165)](_0xb5829(0x146)+_0x558a73[_0xb5829(0x15d)](/arguments/g,_0x1e830['nyHlD'])+'\x0a\x20\x20\x20\x20})\x0a\x20\x20})('+JSON[_0xb5829(0x152)](_0x3afe69)+')');},exports[a37_0x3f348b(0x166)]=async(_0x3a9b3f,_0x1b7950,_0x8b2ead={})=>{const _0x21d098=a37_0x3f348b,_0x5356dd={};_0x5356dd['GnTqx']=function(_0x6aa4fe,_0x5e18e4){return _0x6aa4fe===_0x5e18e4;},_0x5356dd[_0x21d098(0x17c)]='WebDriver',_0x5356dd['jVHlT']=function(_0x28b931,_0x132fd8){return _0x28b931===_0x132fd8;},_0x5356dd['AAuRa']=_0x21d098(0x153),_0x5356dd[_0x21d098(0x184)]='bstackSdkArgs';const _0x43f2be=_0x5356dd;if(_0x43f2be[_0x21d098(0x18a)](_0x3a9b3f[_0x21d098(0x14f)][_0x21d098(0x193)],_0x43f2be[_0x21d098(0x17c)]))return await _0x3a9b3f[_0x21d098(0x181)](_0x1b7950,_0x8b2ead);else{if(_0x43f2be['jVHlT'](_0x3a9b3f[_0x21d098(0x14f)][_0x21d098(0x193)],_0x43f2be[_0x21d098(0x183)]))return await _0x3a9b3f[_0x21d098(0x14e)]('(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1b7950[_0x21d098(0x15d)](/arguments/g,_0x43f2be[_0x21d098(0x184)])+'\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})('+JSON[_0x21d098(0x152)](_0x8b2ead)+')');}},exports[a37_0x3f348b(0x158)]=async _0x47e87f=>{const _0x57fcfb=a37_0x3f348b,_0x4a0d74={};_0x4a0d74['oZwGe']='accessibilityOptions.wcagVersion',_0x4a0d74[_0x57fcfb(0x172)]=_0x57fcfb(0x143),_0x4a0d74['SnxTz']=_0x57fcfb(0x167),_0x4a0d74[_0x57fcfb(0x18d)]=_0x57fcfb(0x148),_0x4a0d74[_0x57fcfb(0x19b)]=_0x57fcfb(0x179),_0x4a0d74['KMZXu']='accessibilityOptions.scannerVersion';const _0x3d29bb=_0x4a0d74;_0x47e87f[_0x57fcfb(0x1b0)]&&(_0x47e87f['accessibilityOptions'][_0x57fcfb(0x1ac)]&&(_0x47e87f[_0x3d29bb[_0x57fcfb(0x1a4)]]=_0x47e87f[_0x57fcfb(0x1b0)][_0x57fcfb(0x1ac)]),_0x47e87f[_0x57fcfb(0x1b0)]['scannerProcessingTimeout']&&(_0x47e87f[_0x3d29bb[_0x57fcfb(0x172)]]=_0x47e87f[_0x57fcfb(0x1b0)][_0x57fcfb(0x163)]),_0x47e87f[_0x57fcfb(0x1b0)]['includeIssueType']&&(_0x47e87f[_0x3d29bb[_0x57fcfb(0x18e)]]=_0x47e87f[_0x57fcfb(0x1b0)][_0x57fcfb(0x15e)]['bestPractice'],_0x47e87f[_0x3d29bb[_0x57fcfb(0x18d)]]=_0x47e87f[_0x57fcfb(0x1b0)][_0x57fcfb(0x15e)]['needsReview']));const _0x28a558=JSON[_0x57fcfb(0x186)](process[_0x57fcfb(0x15a)][_0x57fcfb(0x149)])[_0x57fcfb(0x17f)];_0x47e87f[_0x3d29bb[_0x57fcfb(0x19b)]]=process[_0x57fcfb(0x15a)][_0x57fcfb(0x18f)],_0x47e87f[_0x3d29bb[_0x57fcfb(0x170)]]=_0x28a558,delete _0x47e87f[_0x57fcfb(0x1b0)];},exports[a37_0x3f348b(0x1b2)]=async _0x5da180=>{const _0x411a1f=a37_0x3f348b,_0x2099e7={};_0x2099e7['krAWu']=_0x411a1f(0x14d),_0x2099e7[_0x411a1f(0x169)]='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.';const _0x39d364=_0x2099e7;if(global[_0x411a1f(0x150)])try{logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x5da180,scripts.performScan)));},{command:'getAccessibilityResults'})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x5da180,scripts.getResults);})();return res;}catch{return logger[_0x411a1f(0x17d)](_0x39d364[_0x411a1f(0x199)]),[];}else return logger[_0x411a1f(0x16f)](_0x39d364[_0x411a1f(0x169)]),[];},exports[a37_0x3f348b(0x16b)]=async(_0x4eb8e7,_0x4ce1c4='')=>{const _0xbf0ce5=a37_0x3f348b;logger[_0xbf0ce5(0x14a)]('Performing\x20scan\x20with\x20method:\x20'+_0x4ce1c4+_0xbf0ce5(0x191)+_0x4eb8e7);if(global[_0xbf0ce5(0x150)])return await PerformanceTester[_0xbf0ce5(0x196)](PerformanceA11yEvents['PERFORM_SCAN'],async()=>{const _0x3e2a57=_0xbf0ce5,_0x52457a={};_0x52457a[_0x3e2a57(0x177)]=_0x4ce1c4,await exports['browserStackEvaluate'](_0x4eb8e7,scripts[_0x3e2a57(0x16b)],_0x52457a);},{'command':_0x4ce1c4})();},exports[a37_0x3f348b(0x15c)]=async _0x30419f=>{const _0x29f931=a37_0x3f348b,_0x56aeb3={};_0x56aeb3[_0x29f931(0x19d)]=_0x29f931(0x1aa),_0x56aeb3['jYYtJ']=_0x29f931(0x160);const _0x2b24b8=_0x56aeb3;if(global[_0x29f931(0x150)])try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x30419f,scripts.performScan)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x30419f,scripts.getResultsSummary);})();return summaryResults;}catch{return logger['debug'](_0x2b24b8[_0x29f931(0x19d)]),{};}else return logger[_0x29f931(0x16f)](_0x2b24b8['jYYtJ']),{};},exports[a37_0x3f348b(0x1a2)]=async _0xff28c2=>{const _0x4cd968=a37_0x3f348b,_0x55f189={'CrbYq':function(_0x53e903,_0x3d6790){return _0x53e903!==_0x3d6790;},'euUyl':_0x4cd968(0x1a7),'ZihFc':_0x4cd968(0x1ad),'IMbFN':_0x4cd968(0x14b),'cOXVt':_0x4cd968(0x154),'DIriQ':_0x4cd968(0x1ae),'wFRrW':function(_0x2bb3de,_0x36cc32){return _0x2bb3de(_0x36cc32);},'KmYqK':function(_0x3d3c0f){return _0x3d3c0f();},'RAtWq':function(_0x38cefe,_0x2a47e2){return _0x38cefe<_0x2a47e2;},'tOIhD':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x20100.','msxPJ':function(_0x5872ed,_0x45debd){return _0x5872ed===_0x45debd;},'FQyKr':'latest','sBAnf':function(_0x548491,_0x45411e){return _0x548491>_0x45411e;},'xddKX':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.'};try{if(!_0x55f189[_0x4cd968(0x15f)](_0xff28c2[_0x4cd968(0x16c)],''))return logger['warn'](_0x55f189[_0x4cd968(0x194)]),![];const _0x1c7bfe=_0xff28c2[_0x4cd968(0x155)];if(![_0x55f189[_0x4cd968(0x162)],_0x55f189[_0x4cd968(0x168)],_0x55f189['cOXVt']][_0x4cd968(0x17e)](_0x1c7bfe))return logger[_0x4cd968(0x16f)](_0x55f189[_0x4cd968(0x15b)]),![];const _0x3c8ba6=_0x55f189[_0x4cd968(0x17b)](parseInt,_0xff28c2[_0x4cd968(0x185)]);!_0x55f189[_0x4cd968(0x151)](isBrowserstackInfra)&&(!_0x55f189['RAtWq'](_0x3c8ba6,0x64)&&logger[_0x4cd968(0x16f)](_0x55f189[_0x4cd968(0x180)]));if(!(_0x55f189['msxPJ'](_0x3c8ba6,_0x55f189['FQyKr'])||_0x55f189['sBAnf'](_0x3c8ba6,0x5e)))return logger[_0x4cd968(0x16f)](_0x55f189['xddKX']),![];}catch(_0x2f9dc4){logger[_0x4cd968(0x14a)](_0x4cd968(0x189)+util[_0x4cd968(0x182)](_0x2f9dc4));}return!![];},exports[a37_0x3f348b(0x18c)]=(_0x507ae9,_0x132447,_0x39ddc4)=>{const _0x5a97e3=a37_0x3f348b,_0x530d6c={'MEVWT':function(_0x1fcbce){return _0x1fcbce();},'qzabN':_0x5a97e3(0x1a6),'kMBIN':function(_0x143366,_0x2cc01d){return _0x143366===_0x2cc01d;},'ahsXU':_0x5a97e3(0x1ad),'YOZAr':function(_0x97cfff,_0x43de75){return _0x97cfff===_0x43de75;},'GCqZM':_0x5a97e3(0x14b),'vSmBH':function(_0x3c66a4,_0x4a27bf){return _0x3c66a4===_0x4a27bf;},'aODUQ':function(_0x58056d,_0x2de305){return _0x58056d===_0x2de305;},'Gxnoe':_0x5a97e3(0x1ae),'vnuZW':function(_0x191e5c,_0x28f3a6){return _0x191e5c>_0x28f3a6;},'pYDMn':_0x5a97e3(0x1af),'Wigqu':_0x5a97e3(0x1b1),'ZgBZT':_0x5a97e3(0x175),'BDwcV':function(_0x174e6a,_0x22e5de){return _0x174e6a(_0x22e5de);},'eUPAO':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','lRvgR':function(_0x53b836,_0x32cc0f){return _0x53b836+_0x32cc0f;}};try{if(_0x530d6c[_0x5a97e3(0x147)](isAccessibilityAutomationSession)){global['accessibilityPlatform']=!![];!_0x507ae9[_0x530d6c[_0x5a97e3(0x195)]]&&(global[_0x5a97e3(0x150)]=![]);!(_0x530d6c[_0x5a97e3(0x1b3)](_0x507ae9['browserName'],_0x530d6c[_0x5a97e3(0x1a5)])||_0x530d6c[_0x5a97e3(0x19e)](_0x507ae9['browserName'],_0x530d6c[_0x5a97e3(0x1a9)])||_0x530d6c[_0x5a97e3(0x159)](_0x507ae9[_0x5a97e3(0x155)],_0x530d6c[_0x5a97e3(0x1a5)])||_0x530d6c[_0x5a97e3(0x188)](_0x507ae9[_0x5a97e3(0x155)],_0x530d6c[_0x5a97e3(0x1a9)]))&&(logger['warn'](_0x530d6c['Gxnoe']),global[_0x5a97e3(0x150)]=![]);!_0x530d6c[_0x5a97e3(0x147)](isBrowserstackInfra)&&(!_0x530d6c[_0x5a97e3(0x19c)](_0x507ae9[_0x5a97e3(0x185)],0x64)&&logger[_0x5a97e3(0x16f)](_0x530d6c[_0x5a97e3(0x16d)]));!(_0x530d6c[_0x5a97e3(0x159)](_0x507ae9[_0x5a97e3(0x185)],_0x530d6c['Wigqu'])||_0x530d6c[_0x5a97e3(0x19c)](_0x507ae9['browser_version'],0x5e))&&(logger[_0x5a97e3(0x16f)](_0x530d6c[_0x5a97e3(0x17a)]),global[_0x5a97e3(0x150)]=![]);!_0x530d6c['BDwcV'](isUndefined,_0x507ae9[_0x5a97e3(0x16c)])&&(logger[_0x5a97e3(0x16f)](_0x530d6c[_0x5a97e3(0x192)]),global[_0x5a97e3(0x150)]=![]);if(!global['accessibilityPlatform']){_0x507ae9[_0x530d6c[_0x5a97e3(0x195)]]=![];const _0x30f3bf=_0x530d6c['lRvgR'](_0x132447,_0x530d6c[_0x5a97e3(0x19f)](encodeURIComponent,JSON[_0x5a97e3(0x152)](_0x507ae9)));_0x39ddc4&&(_0x39ddc4[_0x5a97e3(0x156)][_0x5a97e3(0x16e)][_0x5a97e3(0x173)][_0x5a97e3(0x178)][_0x5a97e3(0x157)][_0x5a97e3(0x198)]=_0x30f3bf,_0x39ddc4[_0x5a97e3(0x18b)][_0x5a97e3(0x173)][_0x5a97e3(0x178)][_0x5a97e3(0x157)][_0x5a97e3(0x198)]=_0x30f3bf);}}else global['accessibilityPlatform']=![];}catch(_0x2a2f43){logger[_0x5a97e3(0x14a)](_0x5a97e3(0x1a0)+util[_0x5a97e3(0x182)](_0x2a2f43));}};
|
|
@@ -1,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';function a38_0x323b(_0x445c02,_0xe0deb7){const _0x2df033=a38_0x2df0();return a38_0x323b=function(_0x323b7f,_0x375a58){_0x323b7f=_0x323b7f-0x164;let _0x122f27=_0x2df033[_0x323b7f];return _0x122f27;},a38_0x323b(_0x445c02,_0xe0deb7);}const a38_0xf57b41=a38_0x323b;(function(_0x34146e,_0x379dcf){const _0x23ff4d=a38_0x323b,_0x3e395f=_0x34146e();while(!![]){try{const _0x5ea152=parseInt(_0x23ff4d(0x199))/0x1+-parseInt(_0x23ff4d(0x1aa))/0x2*(-parseInt(_0x23ff4d(0x208))/0x3)+-parseInt(_0x23ff4d(0x185))/0x4*(-parseInt(_0x23ff4d(0x177))/0x5)+-parseInt(_0x23ff4d(0x20c))/0x6*(parseInt(_0x23ff4d(0x181))/0x7)+parseInt(_0x23ff4d(0x1a5))/0x8+parseInt(_0x23ff4d(0x17b))/0x9+-parseInt(_0x23ff4d(0x1b2))/0xa;if(_0x5ea152===_0x379dcf)break;else _0x3e395f['push'](_0x3e395f['shift']());}catch(_0x2934c6){_0x3e395f['push'](_0x3e395f['shift']());}}}(a38_0x2df0,0x3e888));function a38_0x2df0(){const _0x124c38=['BROWSERSTACK_SETUP_CONFIG_PATH','stringify','winstonLogger','205926ZyYVEY','util','../../helpers/test-observability/constants','Error\x20in\x20closing\x20playwright','788ipEqhs','fHseg','gzvYg','UJRmq','../v2/TestInfo','qKWAC','SaXCo','SDK_CLEANUP','cVWxm','dirname','bootstrap','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','stop','UJige','skipSessionName','startsWith','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','forEach','./accessibility-helper','isTrue','297363Zdkbav','qskjI','fyVrS','shutdown','PLAYWRIGHT','XXoxB','Updated\x20config\x20file\x20name\x20to\x20-\x20','../../helpers/performance/constants','SDK_PRE_INITIALIZE','inherit','xdxrK','isTypescriptProject','441120gLDVro','Deleting\x20','MODULE','browserstackAutomation','--disable-test-observability','97100zKcmwT','split','BROWSERSTACK_TEST_ACCESSIBILITY_YML','lAgFA','GQVAC','trim','getPackageType','writeFileSync','5298200oeZraS','nRIUl','testObservability','Error\x20in\x20deleting\x20playwright\x20results','PACKAGE_TYPE','config','error','sxgeJ','accessibilityOptions','SDK_SETUP','wlzvu','SDK_POST_INITIALIZE','msOMv','vnDon','npx','YxNpi','./reporter/pwUtils','initialize','automation','slice','filter','assign','path','EwHIM','testContextOptions','PnAoA','cJsis','length','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','JMCco','.browserstack','BROWSERSTACK_RERUN','unlinkSync','logLevel','../../helpers/utilities','apply','nestedKeyValue','test','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','../../helpers/performance/performance-tester','win32','debug','BROWSERSTACK_PW_CONFIG_DIR','playwright','NoCLL','cwd','KIELn','resolvedConfigFile','../../helpers/accessibility-automation/helper','filterBrowserstackArgs','../../helpers/logger','--config=','QirbU','launchBuild','platform','--grep','splice','Error\x20in\x20getting\x20funnel\x20data\x20results','close','SvHxs','YNZer','../v2/browserstackCLI','cwpDO','NoDtl','existsSync','getProxyUrl','errorMessage','measureWrapper','accessibility','BROWSERSTACK_AUTOMATION','BphBE','UeIxd','../v2/cliUtils','iFwCv','vgPDw','readdirSync','setBrowserstackConfig','qKEHj','--disable-browserstack-automation','browserstackSetupConfig.json','env','readFileSync','xaPlK','setFrameworkDetail','isRunning','parse','18BAdQRQ','TqUcH','exitCode','isUndefined','66YgOaba','SGoUa','\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}catch{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20This\x20is\x20a\x20failsafe\x20if\x20global-agent\x20present\x20inside\x20sdk\x20node_modules\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22./node_modules/browserstack-node-sdk/node_modules/global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20};\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap();','--config','resolve','concat','BROWSERSTACK_TEST_OBSERVABILITY','cliConfig','join','isFalse','EVENTS','ALaxa','getInstance','has','xnveJ','../../helpers/helper','rRnnT','ZeVBC','playwright-browserstack-sdk.config.cjs','../../helpers/testhub/testhubHandler','BROWSERSTACK_RERUN_TESTS','IwihM','pw_result.json','NbyVx','6265vkOqJN','hCNJb','BrowserStack\x20config\x20file\x20not\x20found.','exports','1970190WuWfxv','XkMVG','homedir'];a38_0x2df0=function(){return _0x124c38;};return a38_0x2df0();}const fs=require('fs'),path=require(a38_0xf57b41(0x1c8)),{spawn}=require('child_process'),{format}=require(a38_0xf57b41(0x182)),logger=require(a38_0xf57b41(0x1e4))[a38_0xf57b41(0x180)],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require(a38_0xf57b41(0x16e)),utilities=require(a38_0xf57b41(0x1d4)),constants=require('../utils/constants'),{FRAMEWORKS}=require(a38_0xf57b41(0x183)),{getConfigLoaderPath}=require(a38_0xf57b41(0x1c2)),{checkAccessibilityPlatformConfig}=require(a38_0xf57b41(0x1e2)),{setAccessibilityCapabilities}=require(a38_0xf57b41(0x197)),{printBuildLink}=require('../../helpers/test-observability/utils'),TestDetails=require('./reporter/test-details'),TestHubHandler=require(a38_0xf57b41(0x172)),PerformanceTester=require(a38_0xf57b41(0x1d9)),BrowserstackCLI=require(a38_0xf57b41(0x1ef)),PerformanceEvents=require(a38_0xf57b41(0x1a0))[a38_0xf57b41(0x169)],CLIUtils=require(a38_0xf57b41(0x1fa)),TestInfo=require(a38_0xf57b41(0x189)),getUserPlaywrightConfig=async(_0x13dd7f,_0x2b8123)=>{const _0x3d29d8=a38_0xf57b41,_0x28801e={'rRnnT':function(_0x565e87){return _0x565e87();},'UJige':function(_0x278406,_0x21d3f8){return _0x278406(_0x21d3f8);},'msOMv':_0x3d29d8(0x1e1),'DxRHs':_0x3d29d8(0x1e5)},_0x2115e2=!helper[_0x3d29d8(0x20b)](_0x13dd7f['config']),_0x1f5510=_0x2115e2?path[_0x3d29d8(0x210)](process[_0x3d29d8(0x1df)](),_0x13dd7f[_0x3d29d8(0x1b7)]):process[_0x3d29d8(0x1df)](),{resolveConfigFile:_0x47578b,resolveConfigLocation:_0xd8a332}=helper['requirePWModule'][_0x3d29d8(0x1d5)](null,_0x28801e[_0x3d29d8(0x16f)](getConfigLoaderPath)),_0x167b2f=_0x47578b?_0x28801e[_0x3d29d8(0x192)](_0x47578b,_0x1f5510):helper[_0x3d29d8(0x1d6)](_0x28801e[_0x3d29d8(0x192)](_0xd8a332,_0x1f5510),[_0x28801e[_0x3d29d8(0x1be)]]),_0x23db7a={};if(_0x2115e2){const _0x17bcdd=_0x2b8123['findIndex'](_0x2079a4=>_0x2079a4===_0x3d29d8(0x20f)||_0x2079a4==='-c'||_0x2079a4['startsWith']('--config='));_0x2b8123[_0x3d29d8(0x1ea)](_0x17bcdd,_0x2b8123[_0x17bcdd][_0x3d29d8(0x194)](_0x28801e['DxRHs'])?0x1:0x2);}const _0x8df389={};return _0x8df389[_0x3d29d8(0x1c8)]=_0x167b2f,_0x8df389['config']=_0x23db7a,_0x8df389;},handleO11yRerun=_0x2ba9b1=>{const _0x35646c=a38_0xf57b41,_0x39db3d={};_0x39db3d[_0x35646c(0x17c)]=_0x35646c(0x1e9);const _0x1dde20=_0x39db3d,_0x476997=helper[_0x35646c(0x198)](process[_0x35646c(0x202)][_0x35646c(0x1d1)]);if(_0x476997){const _0x50348e=process[_0x35646c(0x202)][_0x35646c(0x173)],_0x2d9e02=[];if(helper['validateRerunTestList'](_0x50348e)&&!helper[_0x35646c(0x20b)](_0x50348e)){_0x50348e[_0x35646c(0x1ab)](',')['map'](_0x1b163b=>{const _0x21dcda=_0x35646c;_0x2d9e02['push']('('+_0x1b163b[_0x21dcda(0x1af)]()+')');});const _0x245f95='^'+_0x2d9e02[_0x35646c(0x167)]('|')+'$';_0x2ba9b1['push'](_0x1dde20[_0x35646c(0x17c)],_0x245f95);}}},spawnOriginalProcess=_0x152e18=>{const _0x38ec51=a38_0xf57b41,_0x1dea9c={'cVWxm':function(_0x29a2aa,_0x250de0,_0x130df9,_0x44a859){return _0x29a2aa(_0x250de0,_0x130df9,_0x44a859);},'xnveJ':_0x38ec51(0x1c0),'fyVrS':_0x38ec51(0x1dd),'PnAoA':function(_0xa1068e,_0xcabdfc){return _0xa1068e===_0xcabdfc;},'VExdk':_0x38ec51(0x1da),'hCNJb':_0x38ec51(0x1a2)};_0x1dea9c[_0x38ec51(0x18d)](spawn,_0x1dea9c[_0x38ec51(0x16d)],[_0x1dea9c[_0x38ec51(0x19b)],..._0x152e18[_0x38ec51(0x1c5)](0x1)],{'shell':_0x1dea9c[_0x38ec51(0x1cb)](process[_0x38ec51(0x1e8)],_0x1dea9c['VExdk']),'stdio':_0x1dea9c[_0x38ec51(0x178)],'cwd':process[_0x38ec51(0x1df)]()});},isTestCommand=(_0x37adc0,_0x2dd6a8)=>{const _0x2eaaac=a38_0xf57b41,_0x1b5952={};_0x1b5952['XsPUI']=function(_0x3850cd,_0x59f06a){return _0x3850cd>_0x59f06a;},_0x1b5952[_0x2eaaac(0x1c1)]=function(_0x15c596,_0x86da61){return _0x15c596===_0x86da61;},_0x1b5952[_0x2eaaac(0x1c9)]=_0x2eaaac(0x1d7);const _0x5ac895=_0x1b5952;if(_0x5ac895['XsPUI'](_0x2dd6a8[_0x2eaaac(0x1cd)],0x1)&&_0x5ac895['YxNpi'](_0x2dd6a8[0x1],_0x5ac895[_0x2eaaac(0x1c9)]))return!![];return![];};async function run(_0x1dc3b9,_0x177e60,_0x5e1742){const _0x38dc03=a38_0xf57b41,_0x38dbc4={'IwihM':function(_0x5c411c,_0x2e8171){return _0x5c411c(_0x2e8171);},'UeIxd':function(_0x21dd80){return _0x21dd80();},'wDsqg':function(_0x5dbdfa){return _0x5dbdfa();},'sxgeJ':_0x38dc03(0x1d0),'KIELn':function(_0x2a5a58,_0x5a70fd){return _0x2a5a58+_0x5a70fd;},'vgPDw':_0x38dc03(0x184),'qskjI':_0x38dc03(0x175),'ZeVBC':function(_0x5d33b5,_0x456027){return _0x5d33b5+_0x456027;},'WbJMR':_0x38dc03(0x1eb),'wlzvu':_0x38dc03(0x179),'BphBE':function(_0x3c971b,_0x25d1a7){return _0x3c971b===_0x25d1a7;},'xaPlK':'false','wsYUD':_0x38dc03(0x1a9),'mMQfg':function(_0xf0e1a9,_0x1c5833){return _0xf0e1a9>=_0x1c5833;},'SGoUa':_0x38dc03(0x1c4),'iFwCv':function(_0x524943,_0x2ab65d){return _0x524943!=_0x2ab65d;},'DUedH':function(_0x3599b7,_0x253a44,_0x45672d){return _0x3599b7(_0x253a44,_0x45672d);},'vnDon':function(_0x3873aa,_0x2c4fd0){return _0x3873aa(_0x2c4fd0);},'XXoxB':function(_0xa63f2b,_0x1250d1){return _0xa63f2b===_0x1250d1;},'fHseg':'true','xdxrK':function(_0x36ab7c,_0x239fdb){return _0x36ab7c(_0x239fdb);},'NbyVx':function(_0x1f0363,_0x355910){return _0x1f0363(_0x355910);},'SvHxs':_0x38dc03(0x201),'bhZuS':_0x38dc03(0x171),'SaXCo':'playwright-browserstack-sdk.config.js','ALaxa':function(_0x51397e,_0x484feb){return _0x51397e-_0x484feb;},'JMCco':_0x38dc03(0x19f),'GQVAC':function(_0x83ff41,_0xf839f3){return _0x83ff41>_0xf839f3;},'qthQF':function(_0x1fded0,_0x153a5d){return _0x1fded0+_0x153a5d;},'NoDtl':function(_0x5327cb,_0x44988b,_0x5b1657,_0x4c9cfa){return _0x5327cb(_0x44988b,_0x5b1657,_0x4c9cfa);},'QirbU':_0x38dc03(0x1c0),'qKWAC':_0x38dc03(0x1dd),'YNZer':'test','gzvYg':_0x38dc03(0x20f),'nRIUl':function(_0x9ebfe,_0x53bceb){return _0x9ebfe===_0x53bceb;},'lAgFA':'win32','cwpDO':'inherit','TqUcH':_0x38dc03(0x1ec),'qKEHj':function(_0x1af198,_0x15eb0f){return _0x1af198+_0x15eb0f;},'dRMZw':_0x38dc03(0x1b5),'sOWCI':function(_0x8a1220,_0x40484d,_0x11938f){return _0x8a1220(_0x40484d,_0x11938f);}};try{const _0x1e22ec=path[_0x38dc03(0x167)](helper[_0x38dc03(0x17d)](),_0x38dbc4[_0x38dc03(0x1b9)],_0x38dbc4[_0x38dc03(0x19a)]);fs[_0x38dc03(0x1f2)](_0x1e22ec)&&fs[_0x38dc03(0x1d2)](_0x1e22ec);}catch(_0x3c3e3b){logger['debug'](_0x38dbc4[_0x38dc03(0x1ff)](_0x38dbc4['dRMZw'],_0x3c3e3b));}if(!_0x38dbc4['sOWCI'](isTestCommand,_0x1dc3b9,_0x177e60)){_0x38dbc4[_0x38dc03(0x176)](spawnOriginalProcess,_0x177e60);return;}await PerformanceTester[_0x38dc03(0x1f5)](PerformanceEvents[_0x38dc03(0x1a1)],async()=>{const _0xc236d3=_0x38dc03,_0x3e787b={'UJRmq':_0x38dbc4[_0xc236d3(0x1b9)],'KXJdZ':_0x38dbc4[_0xc236d3(0x19a)],'NoCLL':function(_0x14b5ac,_0x29b0a0){const _0x2fe526=_0xc236d3;return _0x38dbc4[_0x2fe526(0x170)](_0x14b5ac,_0x29b0a0);},'cJsis':_0x38dbc4['WbJMR']};if(!_0x5e1742['config']){logger[_0xc236d3(0x1b8)](_0x38dbc4[_0xc236d3(0x1bc)]);return;}await _0x5e1742[_0xc236d3(0x1c3)](_0x1dc3b9),CLIUtils[_0xc236d3(0x205)](FRAMEWORKS[_0xc236d3(0x19d)],FRAMEWORKS[_0xc236d3(0x19d)]),BrowserstackCLI['getInstance']()[_0xc236d3(0x1fe)](_0x5e1742[_0xc236d3(0x1b7)],_0x5e1742[_0xc236d3(0x166)]),await BrowserstackCLI[_0xc236d3(0x16b)]()[_0xc236d3(0x18f)]();const _0x32e370=BrowserstackCLI[_0xc236d3(0x16b)]()['getConfig']();!helper['isFalse'](_0x32e370[_0xc236d3(0x1a8)])&&(process[_0xc236d3(0x202)][_0xc236d3(0x1f7)]=!![]);_0x38dbc4[_0xc236d3(0x1f8)](_0x32e370['browserstackAutomation'],![])&&(process[_0xc236d3(0x202)]['BROWSERSTACK_AUTOMATION']=_0x38dbc4['xaPlK'],_0x177e60=_0x177e60[_0xc236d3(0x1c6)](_0x238e06=>_0x238e06!==_0xc236d3(0x200)));const _0x27767f=_0x177e60['indexOf'](_0x38dbc4['wsYUD']);(_0x38dbc4['mMQfg'](_0x27767f,0x0)||_0x38dbc4[_0xc236d3(0x1f8)](_0x32e370['testObservability'],![]))&&(process[_0xc236d3(0x202)][_0xc236d3(0x165)]=_0x38dbc4[_0xc236d3(0x204)],_0x177e60=_0x177e60[_0xc236d3(0x1c6)](_0x148849=>_0x148849!=='--disable-test-observability'));!helper[_0xc236d3(0x20b)](_0x5e1742[_0xc236d3(0x166)])&&_0x5e1742['cliConfig'][_0xc236d3(0x16c)](_0x38dbc4['SGoUa'])&&(process[_0xc236d3(0x202)][_0xc236d3(0x1f7)]=_0x5e1742[_0xc236d3(0x166)]['get'](_0x38dbc4[_0xc236d3(0x20d)])||!![]);_0x38dbc4[_0xc236d3(0x1fb)](_0x5e1742['config'][_0xc236d3(0x1b4)],null)&&!helper[_0xc236d3(0x198)](process['env'][_0xc236d3(0x165)])&&(process[_0xc236d3(0x202)]['BROWSERSTACK_TEST_OBSERVABILITY']=process[_0xc236d3(0x202)]['BROWSERSTACK_TEST_OBSERVABILITY']||_0x5e1742[_0xc236d3(0x1b7)]['testObservability']);const _0x6f942a=!helper[_0xc236d3(0x168)](process['env'][_0xc236d3(0x165)]);_0x5e1742[_0xc236d3(0x1b7)][_0xc236d3(0x1ba)]&&(process['env'][_0xc236d3(0x1ce)]=JSON[_0xc236d3(0x17f)](_0x5e1742[_0xc236d3(0x1b7)][_0xc236d3(0x1ba)]));let _0xe4961f=![];_0x5e1742[_0xc236d3(0x1b7)][_0xc236d3(0x1f6)]&&(_0xe4961f=!![],process['env'][_0xc236d3(0x1ac)]=_0x5e1742[_0xc236d3(0x1b7)][_0xc236d3(0x1f6)]);const _0x4ab00e=_0x177e60[_0xc236d3(0x164)](),_0x48539a=await _0x38dbc4['DUedH'](getUserPlaywrightConfig,_0x1dc3b9,_0x177e60);if(helper[_0xc236d3(0x20b)](_0x48539a)){_0x38dbc4[_0xc236d3(0x1bf)](spawnOriginalProcess,_0x4ab00e);return;}const _0x488543=_0x48539a['path']?path['dirname'](_0x48539a['path']):process[_0xc236d3(0x1df)]();process[_0xc236d3(0x202)][_0xc236d3(0x1dc)]=_0x488543,await PerformanceTester[_0xc236d3(0x1f5)](PerformanceEvents[_0xc236d3(0x1bd)],async()=>{const _0x5c782b=_0xc236d3;!BrowserstackCLI[_0x5c782b(0x16b)]()['isRunning']()&&await TestHubHandler[_0x5c782b(0x1e7)](FRAMEWORKS[_0x5c782b(0x19d)],_0x5e1742),_0x6f942a&&_0x38dbc4[_0x5c782b(0x174)](handleO11yRerun,_0x177e60);})();if(!BrowserstackCLI[_0xc236d3(0x16b)]()[_0xc236d3(0x206)]()){let _0x156d8d=_0x38dbc4[_0xc236d3(0x19e)](process['env'][_0xc236d3(0x1ac)],_0x38dbc4[_0xc236d3(0x186)]);_0x156d8d=_0x156d8d||_0x38dbc4[_0xc236d3(0x1a3)](checkAccessibilityPlatformConfig,_0x5e1742[_0xc236d3(0x1b7)]),process[_0xc236d3(0x202)][_0xc236d3(0x1ac)]=_0x156d8d,_0x156d8d&&_0x38dbc4['NbyVx'](setAccessibilityCapabilities,_0x5e1742[_0xc236d3(0x1b7)]);}const _0x1b49ae=path[_0xc236d3(0x167)](_0x48539a[_0xc236d3(0x1c8)]?path[_0xc236d3(0x18e)](_0x48539a[_0xc236d3(0x1c8)]):process[_0xc236d3(0x1df)](),_0x38dbc4[_0xc236d3(0x1ed)]);fs[_0xc236d3(0x1b1)](_0x1b49ae,helper['serializeToYamlString'](_0x5e1742[_0xc236d3(0x1b7)])),process[_0xc236d3(0x202)][_0xc236d3(0x17e)]=_0x1b49ae,helper['clearTempPWConfig']();let _0x2a9082='';_0x38dbc4[_0xc236d3(0x19e)](helper[_0xc236d3(0x1b0)](),constants[_0xc236d3(0x1b6)][_0xc236d3(0x1a7)])?_0x2a9082=_0x38dbc4['bhZuS']:_0x2a9082=_0x38dbc4[_0xc236d3(0x18b)];let _0x4a1553='';if(helper[_0xc236d3(0x1a4)](_0x48539a[_0xc236d3(0x1c8)])){_0x4a1553=_0xc236d3(0x1d8);const _0x4a2895=_0x2a9082['split']('.');_0x4a2895[_0x38dbc4[_0xc236d3(0x16a)](_0x4a2895[_0xc236d3(0x1cd)],0x1)]='ts',_0x2a9082=_0x4a2895[_0xc236d3(0x167)]('.'),logger['debug'](_0x38dbc4['ZeVBC'](_0x38dbc4[_0xc236d3(0x1cf)],_0x2a9082));}else _0x4a1553=_0xc236d3(0x190);const _0xb1ff8c=path['join'](_0x48539a[_0xc236d3(0x1c8)]?path[_0xc236d3(0x18e)](_0x48539a[_0xc236d3(0x1c8)]):process[_0xc236d3(0x1df)](),_0x2a9082);let _0x5a7bea=_0x48539a['path']?_0x48539a[_0xc236d3(0x1c8)]:'';_0x5a7bea=_0x38dbc4[_0xc236d3(0x1ae)](_0x5a7bea[_0xc236d3(0x1cd)],0x0)?path['resolve'](_0x5a7bea):'',process[_0xc236d3(0x202)]['USER_CONFIG_DETAILS_PATH']=_0x5a7bea;const _0x276602=helper[_0xc236d3(0x1f3)](_0x5e1742['config']);_0x276602&&(_0x4a1553=_0x38dbc4['qthQF'](_0xc236d3(0x195)+_0x276602+_0xc236d3(0x20e),_0x4a1553));helper[_0xc236d3(0x1e3)]({},_0x177e60),fs['writeFileSync'](_0xb1ff8c,_0x4a1553),PerformanceTester['end'](PerformanceEvents[_0xc236d3(0x1bb)]);const _0x558129=_0x38dbc4[_0xc236d3(0x1f1)](spawn,_0x38dbc4[_0xc236d3(0x1e6)],[_0x38dbc4[_0xc236d3(0x18a)],_0x38dbc4[_0xc236d3(0x1ee)],_0x38dbc4[_0xc236d3(0x187)],_0xb1ff8c,..._0x177e60[_0xc236d3(0x1c5)](0x2)],{'shell':_0x38dbc4[_0xc236d3(0x1b3)](process[_0xc236d3(0x1e8)],_0x38dbc4[_0xc236d3(0x1ad)]),'stdio':_0x38dbc4[_0xc236d3(0x1f0)],'cwd':process[_0xc236d3(0x1df)](),'env':Object[_0xc236d3(0x1c7)]({},process[_0xc236d3(0x202)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper['getConfigPath'](_0x1dc3b9),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x5e1742[_0xc236d3(0x1b7)][_0xc236d3(0x1ca)]['skipSessionStatus'],'BROWSERSTACK_SKIP_SESSION_NAME':_0x5e1742['config'][_0xc236d3(0x1ca)][_0xc236d3(0x193)],'BROWSERSTACK_LOG_LEVEL':_0x5e1742['config'][_0xc236d3(0x1d3)]})}),_0x516728=()=>{const _0x4c5a91=_0xc236d3;try{const _0xfecd5b=path[_0x4c5a91(0x167)](helper[_0x4c5a91(0x17d)](),_0x3e787b[_0x4c5a91(0x188)],_0x3e787b['KXJdZ']);if(fs[_0x4c5a91(0x1f2)](_0xfecd5b)){let _0x1a2891=fs[_0x4c5a91(0x203)](_0xfecd5b);_0x1a2891=JSON[_0x4c5a91(0x207)](_0x1a2891),_0x5e1742[_0x4c5a91(0x1f4)]=_0x1a2891,fs[_0x4c5a91(0x1d2)](_0xfecd5b);}}catch(_0x5ee1f3){logger['debug'](_0x3e787b[_0x4c5a91(0x1de)](_0x3e787b[_0x4c5a91(0x1cc)],_0x5ee1f3));}};_0x558129['on'](_0x38dbc4[_0xc236d3(0x209)],async _0x470036=>{const _0x817821=_0xc236d3;try{PerformanceTester['start'](PerformanceEvents[_0x817821(0x18c)]),_0x38dbc4[_0x817821(0x1f9)](_0x516728);!BrowserstackCLI[_0x817821(0x16b)]()[_0x817821(0x206)]()&&await TestHubHandler[_0x817821(0x191)]();await BrowserstackCLI[_0x817821(0x16b)]()['stop'](),TestDetails[_0x817821(0x19c)](),_0x38dbc4['wDsqg'](printBuildLink),await utilities['finalExecution'](_0x5e1742),process[_0x817821(0x20a)]=_0x470036,logger[_0x817821(0x1db)]('Playwright\x20process\x20exited\x20with\x20code\x20'+_0x470036),logger['info']('Deleting\x20'+_0xb1ff8c),fs[_0x817821(0x1d2)](_0xb1ff8c);fs[_0x817821(0x1f2)](_0x1b49ae)&&(logger['debug'](_0x817821(0x1a6)+_0x1b49ae),fs[_0x817821(0x1d2)](_0x1b49ae));const _0xbde523=fs[_0x817821(0x1fd)](path['join'](helper[_0x817821(0x17d)](),_0x38dbc4['sxgeJ']))[_0x817821(0x1c6)](_0x5747eb=>_0x5747eb['startsWith']('trace_'));_0xbde523[_0x817821(0x196)](_0x247021=>{const _0x31aa47=_0x817821;fs['unlinkSync'](path[_0x31aa47(0x167)](helper[_0x31aa47(0x17d)](),_0x3e787b[_0x31aa47(0x188)],_0x247021));});}catch(_0x14d6ef){logger[_0x817821(0x1db)](_0x38dbc4[_0x817821(0x1e0)](_0x38dbc4[_0x817821(0x1fc)],_0x14d6ef));}});})();}module[a38_0xf57b41(0x17a)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a39_0x4ed419=a39_0x5683;(function(_0x2a62e4,_0x5232be){const _0x3dabb1=a39_0x5683,_0x557631=_0x2a62e4();while(!![]){try{const _0x48890f=-parseInt(_0x3dabb1(0x18e))/0x1*(-parseInt(_0x3dabb1(0x18d))/0x2)+parseInt(_0x3dabb1(0x16f))/0x3+-parseInt(_0x3dabb1(0x17f))/0x4+-parseInt(_0x3dabb1(0x187))/0x5+-parseInt(_0x3dabb1(0x192))/0x6*(parseInt(_0x3dabb1(0x197))/0x7)+-parseInt(_0x3dabb1(0x172))/0x8+parseInt(_0x3dabb1(0x175))/0x9;if(_0x48890f===_0x5232be)break;else _0x557631['push'](_0x557631['shift']());}catch(_0x506820){_0x557631['push'](_0x557631['shift']());}}}(a39_0x30ce,0x3236d));function a39_0x5683(_0x24c4eb,_0x313aad){const _0x30ce16=a39_0x30ce();return a39_0x5683=function(_0x5683fc,_0x3f0256){_0x5683fc=_0x5683fc-0x169;let _0x552eb9=_0x30ce16[_0x5683fc];return _0x552eb9;},a39_0x5683(_0x24c4eb,_0x313aad);}const util=require(a39_0x4ed419(0x179)),child_process=require(a39_0x4ed419(0x16a)),{FRAMEWORKS}=require(a39_0x4ed419(0x16e)),{getFrameworkVersion,debug}=require('../../helpers/test-observability/utils'),helper=require(a39_0x4ed419(0x178)),{getLoadUtilsPath,getForkProcessPath}=require(a39_0x4ed419(0x195)),{mockIsWorkerRedundant}=require(a39_0x4ed419(0x184)),logger=require(a39_0x4ed419(0x17b))[a39_0x4ed419(0x16b)];function a39_0x30ce(){const _0x4d6d97=['1383634tbhxhk','AtRRP','child_process','winstonLogger','Unrfx','isHandlePWErrorSet','../../helpers/test-observability/constants','472383YPxuAC','Running\x20existing\x20global\x20setup','Call\x20to\x20child\x20fork\x20with\x20args\x20','1070344WTvEqU','requirePWModule','lynGJ','8208378lZkjzW','PLAYWRIGHT','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','../../helpers/helper','util','error','../../helpers/logger','Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20','compareVersions','fork','1356220KZUtlv','Path\x20','debug','format','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','./patches','./mock-process.js','GyJFf','1724080GnpEzO','includes','exports','toString','wvdaQ','kBdet','10UrFoGh','30300UEifcU','config','1.33.0','CYdGo','6iMbHcu','apply','\x20is\x20not\x20found','./reporter/pwUtils','rPduy'];a39_0x30ce=function(){return _0x4d6d97;};return a39_0x30ce();}module[a39_0x4ed419(0x189)]=async function(_0x8d6e8a){const _0x4e169f=a39_0x4ed419,_0x29deba={'lynGJ':function(_0x36eb38,_0x1246e3){return _0x36eb38(_0x1246e3);},'wkEZt':function(_0x392c6c){return _0x392c6c();},'Unrfx':_0x4e169f(0x185),'ARtuA':function(_0x2032f0){return _0x2032f0();},'wvdaQ':function(_0xc9334){return _0xc9334();},'UWIlo':function(_0x159eaa,_0x8aa2b0){return _0x159eaa(_0x8aa2b0);},'UlHwr':_0x4e169f(0x170),'AtRRP':function(_0x36b01b){return _0x36b01b();},'KpcCm':function(_0xe5217c,_0x2916db){return _0xe5217c>=_0x2916db;},'GyJFf':_0x4e169f(0x190),'rPduy':function(_0x1ab0c5,_0x953249,_0x12ebe0){return _0x1ab0c5(_0x953249,_0x12ebe0);},'CYdGo':function(_0x2474f4,_0x517c90){return _0x2474f4!==_0x517c90;},'kBdet':'function','oQzsd':'Not\x20able\x20to\x20import\x20globalSetup'},_0x26ee82=child_process['fork'];if(helper[_0x4e169f(0x16d)]())try{_0x29deba[_0x4e169f(0x18b)](mockIsWorkerRedundant);}catch(_0xf8b679){logger[_0x4e169f(0x181)](_0x4e169f(0x17c)+util[_0x4e169f(0x182)](_0xf8b679));}child_process[_0x4e169f(0x17e)]=function(){const _0x1c287d=_0x4e169f;return _0x29deba[_0x1c287d(0x174)](debug,_0x1c287d(0x171)+arguments[0x0]),arguments[0x0][_0x1c287d(0x188)](_0x29deba['wkEZt'](getForkProcessPath))?arguments[0x0]=require['resolve'](_0x29deba[_0x1c287d(0x16c)]):logger[_0x1c287d(0x17a)](_0x1c287d(0x180)+_0x29deba['ARtuA'](getForkProcessPath)+_0x1c287d(0x194)),_0x26ee82[_0x1c287d(0x193)](null,arguments);};if(process['env'][_0x4e169f(0x177)]){_0x29deba['UWIlo'](debug,_0x29deba['UlHwr']);try{const {loadGlobalHook:_0x518eba}=helper[_0x4e169f(0x173)][_0x4e169f(0x193)](null,_0x29deba[_0x4e169f(0x169)](getLoadUtilsPath)),_0x99fc60=_0x29deba[_0x4e169f(0x174)](getFrameworkVersion,FRAMEWORKS[_0x4e169f(0x176)]);let _0x4d275a=_0x8d6e8a;if(_0x29deba['KpcCm'](helper[_0x4e169f(0x17d)](_0x99fc60,_0x29deba[_0x4e169f(0x186)]),0x0)){const _0x58543c={};_0x58543c[_0x4e169f(0x18f)]=_0x8d6e8a,_0x4d275a=_0x58543c;}const _0xad0075=await _0x29deba[_0x4e169f(0x196)](_0x518eba,_0x4d275a,process['env'][_0x4e169f(0x177)]);if(_0x29deba[_0x4e169f(0x191)](typeof _0xad0075,_0x29deba[_0x4e169f(0x18c)]))throw new Error(_0x29deba['oQzsd']);return _0xad0075[_0x4e169f(0x193)](null,arguments);}catch(_0x1e16e3){_0x29deba[_0x4e169f(0x174)](debug,_0x4e169f(0x183)+_0x1e16e3[_0x4e169f(0x18a)]());}}};
|