browserstack-node-sdk 1.32.13 → 1.32.14
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/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/templates/gcpresources/gkecluster.json +0 -3
- 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/createk8sClient.js +1 -1
- package/ats/src/utils/deleteStack.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/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.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/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/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/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/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.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/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-tester.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/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a29_0x3d3d(_0x35cb9c,_0x20a2ed){const _0x43eb0a=a29_0x43eb();return a29_0x3d3d=function(_0x3d3d36,_0x1e1e75){_0x3d3d36=_0x3d3d36-0xaf;let _0x5f3234=_0x43eb0a[_0x3d3d36];return _0x5f3234;},a29_0x3d3d(_0x35cb9c,_0x20a2ed);}const a29_0x32a125=a29_0x3d3d;function a29_0x43eb(){const _0x18ebd8=['getHookSkippedTests','3068364DwqmBL','tAkLZ','_afterAll','OFbps','GXhqY','161655zudylV','uuid','flTSB','NxhPw','ESEzl','../../../helpers/test-observability/utils','hook','failed','9610696IVGTKI','getSession','airJf','concat','_beforeAll','GAQGZ','../../utils/logReportingAPI','mapTestHooks','pbcgU','moHXJ','reduce','map_','hookAnalyticsId','hook:','Orznp','../../utils/logPatcher','RnpGh','_afterEach','9ltNGxG','3789816VybgnW','getHookDetails','dGhHn','fromEntries','FNRWf','clCnE','parent','indexOf','TEST_PLATFORM','436fPkwGL','slice','app','nySEj','tests','MOOUu','string','split','getBrowserVersion','jgGqi','getHooksForTest','PQGHc','37385kezxXF','OfyRa','getPlatform','__cloud_provider___','generic','state','../../../helpers/helper','markedStatus','forEach','IZlcc','SQVat','_beforeEach','suites','js-','app-automate','gaHRA','AOLZj','hwSjn','IOzyl','NhCSZ','658851qdSUOD','pid','egnpA','../../../../package.json','toISOString','sendPlatformDetails','automate','filter','emit','passed','getCapabilities','appium:app','dVVlK','JLTDy','toJSON','470988lknlKU'];a29_0x43eb=function(){return _0x18ebd8;};return a29_0x43eb();}(function(_0x31d6c5,_0x551fcd){const _0x2c3bae=a29_0x3d3d,_0x3a4a9c=_0x31d6c5();while(!![]){try{const _0x1e1dfd=parseInt(_0x2c3bae(0xfd))/0x1+parseInt(_0x2c3bae(0xf8))/0x2+parseInt(_0x2c3bae(0xe7))/0x3+parseInt(_0x2c3bae(0xc7))/0x4*(parseInt(_0x2c3bae(0xd3))/0x5)+-parseInt(_0x2c3bae(0xbe))/0x6+-parseInt(_0x2c3bae(0xf6))/0x7+parseInt(_0x2c3bae(0x105))/0x8*(-parseInt(_0x2c3bae(0xbd))/0x9);if(_0x1e1dfd===_0x551fcd)break;else _0x3a4a9c['push'](_0x3a4a9c['shift']());}catch(_0x57807a){_0x3a4a9c['push'](_0x3a4a9c['shift']());}}}(a29_0x43eb,0xcaaee));const {v4:uuidv4}=require(a29_0x32a125(0xfe)),{name,version}=require(a29_0x32a125(0xea)),logPatcher=require(a29_0x32a125(0xba)),BSTestOpsPatcher=new logPatcher({}),logReportingAPI=require(a29_0x32a125(0xb1)),BSTestOpsLogger=new logReportingAPI({}),{debug,isTestObservabilitySession,isInternalHook}=require(a29_0x32a125(0x102)),{consoleHolder}=require('../../../helpers/test-observability/constants'),{getPlatformVersion}=require(a29_0x32a125(0xd9));console={},Object['keys'](consoleHolder)[a29_0x32a125(0xdb)](_0x5b05f3=>{console[_0x5b05f3]=(..._0x43b612)=>{BSTestOpsPatcher[_0x5b05f3](..._0x43b612);};}),exports['getTestEnv']=()=>{const _0x46c55a=a29_0x32a125,_0x4ebed3={'OfyRa':_0x46c55a(0xd7),'flTSB':function(_0x12be55){return _0x12be55();}};return{'ci':_0x4ebed3[_0x46c55a(0xd4)],'key':_0x4ebed3[_0x46c55a(0xff)](uuidv4),'version':version,'collector':_0x46c55a(0xe0)+name};},exports[a29_0x32a125(0xbf)]=_0xb9205e=>{const _0x28d0ce=a29_0x32a125,_0x1f9ab5={};_0x1f9ab5[_0x28d0ce(0xfb)]=function(_0x58ede8,_0x98986f){return _0x58ede8!==_0x98986f;},_0x1f9ab5['pbcgU']=_0x28d0ce(0xcd),_0x1f9ab5[_0x28d0ce(0xd0)]=function(_0x7f96,_0x3b84b0){return _0x7f96!==_0x3b84b0;},_0x1f9ab5['xaPAn']=_0x28d0ce(0xb8),_0x1f9ab5[_0x28d0ce(0x100)]=function(_0x371a3e,_0x3cafd1){return _0x371a3e!==_0x3cafd1;},_0x1f9ab5[_0x28d0ce(0x107)]=_0x28d0ce(0x103);const _0x43ec18=_0x1f9ab5;if(!_0xb9205e||_0x43ec18['OFbps'](typeof _0xb9205e,_0x43ec18[_0x28d0ce(0xb3)]))return[null,null];if(_0x43ec18[_0x28d0ce(0xd0)](_0xb9205e[_0x28d0ce(0xc5)](_0x43ec18['xaPAn']),-0x1)){const _0x17a178=_0xb9205e[_0x28d0ce(0xce)](_0x43ec18['xaPAn']);return[_0x17a178[0x0][_0x28d0ce(0xc8)](0x0,-0x1)[_0x28d0ce(0xce)]('\x22')[0x1],_0x17a178[0x1]['substring'](0x1)];}else{if(_0x43ec18[_0x28d0ce(0x100)](_0xb9205e['indexOf'](_0x43ec18[_0x28d0ce(0x107)]),-0x1)){const _0x369967=_0xb9205e[_0x28d0ce(0xce)](_0x43ec18['airJf']);return[_0x369967[0x0][_0x28d0ce(0xc8)](0x0,-0x1)[_0x28d0ce(0xce)]('\x22')[0x1],_0xb9205e];}}return[null,null];},exports[a29_0x32a125(0xd1)]=_0x43f8cd=>{const _0x1e3d73=a29_0x32a125,_0x58a6d7={'SQVat':function(_0xe10c7,_0x52084a){return _0xe10c7(_0x52084a);},'RoHQj':_0x1e3d73(0xaf),'GAQGZ':_0x1e3d73(0xfa),'NhCSZ':'_beforeEach','GXhqY':'_afterEach'};if(!_0x43f8cd||!_0x43f8cd[_0x1e3d73(0xc4)])return[];const _0x41e9d5=[];return[_0x58a6d7['RoHQj'],_0x58a6d7[_0x1e3d73(0xb0)],_0x58a6d7[_0x1e3d73(0xe6)],_0x58a6d7[_0x1e3d73(0xfc)]][_0x1e3d73(0xdb)](_0xfeaf7=>{const _0x314894=_0x1e3d73,_0x32f139=_0x43f8cd[_0x314894(0xc4)][_0xfeaf7]||[];_0x32f139[_0x314894(0xdb)](_0x10315a=>{const _0x33fd6b=_0x314894;_0x10315a[_0x33fd6b(0xb7)]&&!_0x58a6d7[_0x33fd6b(0xdd)](isInternalHook,_0x10315a['fn'])&&_0x41e9d5['push'](_0x10315a['hookAnalyticsId']);});}),[..._0x41e9d5,...exports[_0x1e3d73(0xd1)](_0x43f8cd[_0x1e3d73(0xc4)])];},exports['mapTestHooks']=_0xb74416=>{const _0x191b6e=a29_0x32a125,_0x21dbbf={'moHXJ':function(_0x2d5c02){return _0x2d5c02();},'RnpGh':function(_0x56dd7d,_0x4d39e1){return _0x56dd7d===_0x4d39e1;},'dVVlK':_0x191b6e(0xbc),'gaHRA':function(_0x544775){return _0x544775();},'egnpA':_0x191b6e(0xaf),'dGhHn':_0x191b6e(0xfa),'PQGHc':_0x191b6e(0xde)};if(!_0xb74416||!_0xb74416[_0x191b6e(0xc4)])return;[_0x21dbbf[_0x191b6e(0xe9)],_0x21dbbf[_0x191b6e(0xc0)],_0x21dbbf[_0x191b6e(0xd2)],_0x21dbbf[_0x191b6e(0xf3)]][_0x191b6e(0xdb)](_0x1b6b07=>{const _0x1e75f1=_0x191b6e,_0x90e1f5=_0xb74416[_0x1e75f1(0xc4)][_0x1b6b07]||[];_0x90e1f5[_0x1e75f1(0xdb)](_0x4d7558=>{const _0x162061=_0x1e75f1;if(!_0x4d7558['hookAnalyticsId'])_0x4d7558[_0x162061(0xb7)]=_0x21dbbf[_0x162061(0xb4)](uuidv4);else _0x4d7558[_0x162061(0xda)]&&_0x21dbbf[_0x162061(0xbb)](_0x1b6b07,_0x21dbbf[_0x162061(0xf3)])&&(_0x4d7558[_0x162061(0xb7)]=_0x21dbbf[_0x162061(0xe2)](uuidv4),delete _0x4d7558[_0x162061(0xda)]);});}),exports[_0x191b6e(0xb2)](_0xb74416['parent']);},exports[a29_0x32a125(0xec)]=async(_0x10aec8,_0x1ad87c)=>{const _0x597d19=a29_0x32a125,_0x518b6f={'ESEzl':function(_0x17514a){return _0x17514a();},'nySEj':function(_0x4471c8,_0x47907e){return _0x4471c8===_0x47907e;},'MOOUu':'browserstack','AOLZj':_0x597d19(0xf2),'URPZT':_0x597d19(0xc9),'pZpzw':_0x597d19(0xe1),'JLTDy':_0x597d19(0xed),'hwSjn':function(_0x5ae87b,_0x5e5da2){return _0x5ae87b(_0x5e5da2);},'Qczpj':'unknown_grid','FNRWf':_0x597d19(0xc6)};try{if(!_0x518b6f[_0x597d19(0x101)](isTestObservabilitySession))return;const _0x4b7130=await _0x10aec8[_0x597d19(0xf1)](),_0x5ce958=await _0x10aec8[_0x597d19(0x106)](),_0x3d22a9={},_0x373486=Object[_0x597d19(0xc1)](_0x5ce958['getCapabilities']()[_0x597d19(0xb6)]),_0x5bde6b={'product':_0x518b6f[_0x597d19(0xca)](global[_0x597d19(0xd6)],_0x518b6f[_0x597d19(0xcc)])?_0x373486[_0x518b6f[_0x597d19(0xe3)]]||_0x373486[_0x518b6f['URPZT']]?_0x518b6f['pZpzw']:_0x518b6f[_0x597d19(0xf4)]:null,'capabilities':_0x373486,'platform':_0x4b7130[_0x597d19(0xd5)](),'platform_version':_0x518b6f[_0x597d19(0xe4)](getPlatformVersion,_0x518b6f[_0x597d19(0xca)](global[_0x597d19(0xd6)],_0x518b6f['MOOUu'])),'browser':_0x4b7130['getBrowserName'](),'browser_version':_0x4b7130[_0x597d19(0xcf)](),'session_id':_0x5ce958[_0x597d19(0xf5)]()};global['__cloud_provider___']?_0x3d22a9[global['__cloud_provider___']]=_0x5bde6b:_0x3d22a9[_0x518b6f['Qczpj']]=_0x5bde6b,process[_0x597d19(0xef)]('bs:addPlatformDetails:'+process[_0x597d19(0xe8)],{'timestamp':new Date()[_0x597d19(0xeb)](),'level':null,'message':null,'kind':_0x518b6f[_0x597d19(0xc2)],'http_response':_0x3d22a9,'uuid':_0x1ad87c});}catch(_0xf72bc3){_0x518b6f[_0x597d19(0xe4)](debug,'Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20'+_0xf72bc3);}},exports[a29_0x32a125(0xf7)]=_0x25c3af=>{const _0x4123d2=a29_0x32a125,_0x30e7f6={};_0x30e7f6[_0x4123d2(0xdc)]=function(_0x2e9419,_0x3235da){return _0x2e9419!==_0x3235da;},_0x30e7f6[_0x4123d2(0xe5)]='hook',_0x30e7f6[_0x4123d2(0xc3)]=_0x4123d2(0xf0),_0x30e7f6[_0x4123d2(0xf9)]=function(_0x49f941,_0x55149f){return _0x49f941!==_0x55149f;},_0x30e7f6[_0x4123d2(0xb9)]=_0x4123d2(0x104);const _0x4d63b9=_0x30e7f6,_0x41a5d1=_0x25c3af[_0x4123d2(0xdf)][_0x4123d2(0xb5)]((_0x12bf75,_0x4f7ef5)=>{const _0x351e93=_0x4123d2,_0x271958=exports[_0x351e93(0xf7)](_0x4f7ef5);return _0x271958&&(_0x12bf75=_0x12bf75[_0x351e93(0x108)](_0x271958)),_0x12bf75;},[]),_0x41b6c6=_0x25c3af[_0x4123d2(0xcb)][_0x4123d2(0xee)](_0x4a88f7=>{const _0x21d981=_0x4123d2,_0xb11d67=_0x4d63b9[_0x21d981(0xdc)](_0x4a88f7['type'],_0x4d63b9[_0x21d981(0xe5)])&&!_0x4a88f7[_0x21d981(0xda)]&&_0x4d63b9[_0x21d981(0xdc)](_0x4a88f7['state'],_0x4d63b9[_0x21d981(0xc3)])&&_0x4d63b9[_0x21d981(0xf9)](_0x4a88f7[_0x21d981(0xd8)],_0x4d63b9[_0x21d981(0xb9)])&&!_0x4a88f7['pending'];return _0xb11d67;});return _0x41b6c6[_0x4123d2(0x108)](_0x41a5d1);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a30_0x107a9b=a30_0xcd92;function a30_0xcd92(_0x99246c,_0x3355dd){const _0x529be9=a30_0x529b();return a30_0xcd92=function(_0xcd92bb,_0x2b4421){_0xcd92bb=_0xcd92bb-0x130;let _0x41736e=_0x529be9[_0xcd92bb];return _0x41736e;},a30_0xcd92(_0x99246c,_0x3355dd);}(function(_0x123c39,_0x71203c){const _0x1a564d=a30_0xcd92,_0x4e8044=_0x123c39();while(!![]){try{const _0x7ba3ea=parseInt(_0x1a564d(0x150))/0x1+parseInt(_0x1a564d(0x134))/0x2+parseInt(_0x1a564d(0x17d))/0x3+parseInt(_0x1a564d(0x196))/0x4+parseInt(_0x1a564d(0x185))/0x5*(-parseInt(_0x1a564d(0x188))/0x6)+parseInt(_0x1a564d(0x18b))/0x7+-parseInt(_0x1a564d(0x191))/0x8;if(_0x7ba3ea===_0x71203c)break;else _0x4e8044['push'](_0x4e8044['shift']());}catch(_0x1e8335){_0x4e8044['push'](_0x4e8044['shift']());}}}(a30_0x529b,0x64244));const util=require(a30_0x107a9b(0x19d)),{isAccessibilityAutomationSession,fetchPlatformDetails,shouldScanTestForAccessibility}=require(a30_0x107a9b(0x170)),{percyAutoCapture}=require('../../helpers/percy/utils'),{sendPlatformDetails}=require(a30_0x107a9b(0x151)),{isBrowserstackInfra,markSessionStatus}=require(a30_0x107a9b(0x136)),{isTestObservabilitySession}=require(a30_0x107a9b(0x16c)),PerformanceTester=require(a30_0x107a9b(0x154)),scripts=require('../../helpers/accessibility-automation/scripts'),globals=require(a30_0x107a9b(0x159)),logger=require(a30_0x107a9b(0x175))[a30_0x107a9b(0x137)];exports['mochaHooks']={'beforeAll'(){const _0x28096b=a30_0x107a9b,_0x59c9b4={'hfReF':function(_0x37e16a,_0x43f998,_0x4696cb,_0x4fd0dc){return _0x37e16a(_0x43f998,_0x4696cb,_0x4fd0dc);},'dysCE':'failed','pziqO':_0x28096b(0x13d),'bOuJY':function(_0x483050,_0x362aa8,_0x5c9c44){return _0x483050(_0x362aa8,_0x5c9c44);},'UHjof':'passed','waqpC':function(_0x9606ec){return _0x9606ec();},'gQVpM':function(_0x2b279a,_0x2d761c,_0x2f31be){return _0x2b279a(_0x2d761c,_0x2f31be);}};PerformanceTester[_0x28096b(0x177)]();const _0x13eb3f='browserstack internal helper hook';global['__error_messages__']=[],global[_0x28096b(0x1a8)]=![],global[_0x28096b(0x146)]=async()=>{const _0x36f0da=_0x28096b;let _0x2cf718=![];try{await global[_0x36f0da(0x173)][0x0]['session_'],_0x2cf718=!![],global[_0x36f0da(0x1a8)]?await _0x59c9b4[_0x36f0da(0x19a)](markSessionStatus,global[_0x36f0da(0x173)][0x0],_0x59c9b4[_0x36f0da(0x1a2)],global['__error_messages__'][_0x36f0da(0x187)](_0x59c9b4[_0x36f0da(0x193)])):await _0x59c9b4[_0x36f0da(0x176)](markSessionStatus,global['__drivers'][0x0],_0x59c9b4[_0x36f0da(0x178)]);}catch(_0x4f387a){}global['__error_messages__']=[],global[_0x36f0da(0x1a8)]=![];if(_0x2cf718)try{try{_0x59c9b4['waqpC'](isTestObservabilitySession)&&(global[_0x36f0da(0x173)][0x0]&&await _0x59c9b4[_0x36f0da(0x18c)](sendPlatformDetails,global['__drivers'][0x0],this[_0x36f0da(0x198)]?this[_0x36f0da(0x198)][_0x36f0da(0x1a7)]:null));}catch{}await global[_0x36f0da(0x173)][0x0]['initQuit']();}catch(_0x3edb55){}};},'beforeEach'(_0x19a094){const _0x58d4c3=a30_0x107a9b,_0x5ef2e3={'TmzPX':function(_0x970f5b,_0x3e80dc){return _0x970f5b>_0x3e80dc;},'HSzKM':function(_0x4043d0,_0x23a4c8){return _0x4043d0>_0x23a4c8;},'oQFkO':'\x20-\x20','UQNLs':function(_0x161482,_0x34f145,_0x316eda){return _0x161482(_0x34f145,_0x316eda);},'bLihx':_0x58d4c3(0x17c),'wcUVv':function(_0x5091c1){return _0x5091c1();},'KBRbD':function(_0x2204d9,_0x33319a){return _0x2204d9>_0x33319a;},'BUjVv':_0x58d4c3(0x1a1),'fJjxS':function(_0x4e77fe,_0x1e6812){return _0x4e77fe===_0x1e6812;},'hKHnI':'http:','Kcocf':_0x58d4c3(0x18d),'TUnLk':'Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','outZw':_0x58d4c3(0x14e),'jKkUt':function(_0x3f3c41){return _0x3f3c41();}};new Promise(async _0x7a6b4a=>{const _0xb81d3f=_0x58d4c3,_0x3f6a5e='browserstack internal helper hook';let _0x35d153=!![];try{_0x5ef2e3['TmzPX'](global[_0xb81d3f(0x173)][_0xb81d3f(0x15d)],0x1)&&(await global[_0xb81d3f(0x146)](),global[_0xb81d3f(0x173)][_0xb81d3f(0x17b)]()),_0x5ef2e3[_0xb81d3f(0x153)](global['__drivers'][0x0]['quitCount_'],0x0)&&(_0x35d153=![],await global[_0xb81d3f(0x146)]());}catch{}try{Array[_0xb81d3f(0x18e)](global[_0xb81d3f(0x173)])&&global['__drivers'][0x0]&&(global['__drivers'][0x0][_0xb81d3f(0x149)]=this[_0xb81d3f(0x198)][_0xb81d3f(0x14a)]()[_0xb81d3f(0x187)](_0x5ef2e3[_0xb81d3f(0x172)])),global[_0xb81d3f(0x149)]=this['currentTest'][_0xb81d3f(0x14a)]()[_0xb81d3f(0x187)](_0x5ef2e3[_0xb81d3f(0x172)]);}catch(_0x53010f){logger[_0xb81d3f(0x164)](_0xb81d3f(0x138)+_0x53010f);}this[_0xb81d3f(0x198)][_0xb81d3f(0x179)]=_0x5ef2e3['UQNLs'](shouldScanTestForAccessibility,this[_0xb81d3f(0x198)][_0xb81d3f(0x14a)](),!![]),globals['setGlobal'](_0x5ef2e3[_0xb81d3f(0x168)],this[_0xb81d3f(0x198)][_0xb81d3f(0x179)]),this[_0xb81d3f(0x198)][_0xb81d3f(0x194)]=!![];if(_0x5ef2e3[_0xb81d3f(0x132)](isAccessibilityAutomationSession)&&_0x35d153&&Array[_0xb81d3f(0x18e)](global[_0xb81d3f(0x173)])&&_0x5ef2e3[_0xb81d3f(0x167)](global[_0xb81d3f(0x173)][_0xb81d3f(0x15d)],0x0)&&globals['getGlobal'](_0x5ef2e3[_0xb81d3f(0x157)]))try{const _0x5ca143=await global['__drivers'][0x0][_0xb81d3f(0x197)];if(_0x5ca143){let _0x45df01=!![];const _0x3249eb=await global['__drivers'][0x0][_0xb81d3f(0x16a)]();let _0x3b9d67;try{_0x3b9d67=new URL(_0x3249eb);}catch(_0x3084ff){_0x45df01=![];}_0x45df01=_0x5ef2e3[_0xb81d3f(0x144)](_0x3b9d67['protocol'],_0x5ef2e3[_0xb81d3f(0x15f)])||_0x5ef2e3['fJjxS'](_0x3b9d67[_0xb81d3f(0x148)],_0x5ef2e3[_0xb81d3f(0x143)]),_0x45df01&&(this[_0xb81d3f(0x198)][_0xb81d3f(0x179)]&&logger['info'](_0x5ef2e3[_0xb81d3f(0x166)])),this[_0xb81d3f(0x198)][_0xb81d3f(0x194)]=this[_0xb81d3f(0x198)][_0xb81d3f(0x179)],this['currentTest'][_0xb81d3f(0x179)]&&logger[_0xb81d3f(0x18a)](_0x5ef2e3[_0xb81d3f(0x195)]);}}catch(_0xe21122){logger[_0xb81d3f(0x152)]('Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20'+util[_0xb81d3f(0x161)](_0xe21122));}_0x5ef2e3[_0xb81d3f(0x17f)](_0x7a6b4a);})[_0x58d4c3(0x189)](_0x19a094);},'afterEach'(_0x78cec2){const _0x3a77f1=a30_0x107a9b,_0x507529={'naJBt':function(_0xc9c620,_0x50eeae){return _0xc9c620>_0x50eeae;},'bIiSD':function(_0xe7c487,_0x376651){return _0xe7c487===_0x376651;},'tUkru':_0x3a77f1(0x13b),'bFOmh':_0x3a77f1(0x19f),'SCtZH':function(_0x35359d,_0x3cbb31,_0x263af0,_0x36be58){return _0x35359d(_0x3cbb31,_0x263af0,_0x36be58);},'UyHCz':_0x3a77f1(0x142),'JeqpF':function(_0x2cb20d,_0x1ca410){return _0x2cb20d!==_0x1ca410;},'DOsjm':'passed','SwcVd':function(_0x2a20b3,_0x156a4c,_0xc8842d){return _0x2a20b3(_0x156a4c,_0xc8842d);},'USuoc':function(_0x2ec10b,_0x177cf5){return _0x2ec10b+_0x177cf5;},'BMRRC':_0x3a77f1(0x16f),'quUGX':'error','XLHAD':function(_0x255d49,_0x421ac2,_0x22f8ee){return _0x255d49(_0x421ac2,_0x22f8ee);},'CiBWZ':_0x3a77f1(0x1a6),'qdAdk':'info','lGQiV':'isAccessibilityPlatform','rgcMC':'bstackA11yShouldScan','bCwjb':_0x3a77f1(0x19b),'wtvws':function(_0x10648a,_0x187632){return _0x10648a(_0x187632);},'mAHrl':'Performing\x20scan\x20before\x20saving\x20results','xduuB':_0x3a77f1(0x14b),'HqHKJ':function(_0x4a84cd){return _0x4a84cd();},'hTTIz':function(_0x482def){return _0x482def();},'drmVk':'debug','MSwru':function(_0x1f80b4,_0x5d3686){return _0x1f80b4>_0x5d3686;},'QzUbm':function(_0xf11264){return _0xf11264();}},_0x413f78='browserstack internal helper hook';this[_0x3a77f1(0x15a)](0xfde8);const _0x4ae162=async(_0x15e2b2,_0x215483)=>{const _0x3b50e1=_0x3a77f1;await global['__drivers'][0x0]['executeScript'](_0x3b50e1(0x156)+_0x15e2b2+_0x3b50e1(0x19e)+_0x215483+'\x22}}');};new Promise(async _0x52a340=>{const _0x570362=_0x3a77f1;try{_0x507529[_0x570362(0x140)](global['__drivers']['length'],0x1)&&(await global[_0x570362(0x146)](),global['__drivers'][_0x570362(0x17b)](),global[_0x570362(0x16d)]=[],global[_0x570362(0x1a8)]=![]);try{if(global[_0x570362(0x15e)]&&_0x507529['bIiSD'](global[_0x570362(0x1a3)],_0x507529['tUkru'])&&global[_0x570362(0x173)][0x0]){const _0x18a22f=_0x507529['naJBt'](global['capabilities']['length'],0x0)?!!global[_0x570362(0x13a)][0x0][_0x570362(0x169)]||!!global[_0x570362(0x13a)][0x0][_0x507529[_0x570362(0x16e)]]:![],_0xa6e07f={};_0xa6e07f[_0x570362(0x169)]=_0x18a22f,await _0x507529[_0x570362(0x13f)](percyAutoCapture,global[_0x570362(0x173)][0x0],_0x507529[_0x570362(0x1a0)],_0xa6e07f);}}catch(_0x389032){}!global[_0x570362(0x15c)]&&(await global['__drivers'][0x0][_0x570362(0x133)]('browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20'+JSON['stringify'](this[_0x570362(0x198)]['titlePath']()[_0x570362(0x187)](_0x507529[_0x570362(0x13c)]))+'}}'),global[_0x570362(0x173)][0x0][_0x570362(0x139)]=!![]);const _0x2789bb=_0x507529['JeqpF'](this['currentTest'][_0x570362(0x130)],_0x507529[_0x570362(0x1a4)]);_0x2789bb?(global['__sessionFailed']=!![],global['__error_messages__'][_0x570362(0x162)](this[_0x570362(0x198)][_0x570362(0x184)][_0x570362(0x190)]),await _0x507529[_0x570362(0x14f)](_0x4ae162,JSON['stringify'](_0x507529[_0x570362(0x19c)](_0x507529[_0x570362(0x165)],this[_0x570362(0x198)][_0x570362(0x184)]['message'])),_0x507529['quUGX'])):await _0x507529[_0x570362(0x171)](_0x4ae162,JSON[_0x570362(0x15b)](_0x507529[_0x570362(0x183)]),_0x507529[_0x570362(0x1a5)]);}catch(_0x307f4c){}try{if(this['currentTest']['accessibilityScanStarted']&&globals[_0x570362(0x192)](_0x507529[_0x570362(0x174)])&&globals[_0x570362(0x192)](_0x507529[_0x570362(0x147)])){logger['info'](_0x507529[_0x570362(0x17e)]);const _0x3e5cd6={'saveResults':this[_0x570362(0x198)][_0x570362(0x179)],'testDetails':{'name':this[_0x570362(0x198)]['title'],'testRunId':process[_0x570362(0x158)][_0x570362(0x181)],'filePath':this[_0x570362(0x198)][_0x570362(0x16b)],'scopeList':this[_0x570362(0x198)][_0x570362(0x14a)]()},'platform':await _0x507529[_0x570362(0x199)](fetchPlatformDetails,global[_0x570362(0x173)][0x0])};logger['debug'](_0x507529[_0x570362(0x163)]),logger['debug'](util[_0x570362(0x161)](await global[_0x570362(0x173)][0x0][_0x570362(0x180)](scripts['performScan'],{'method':global[_0x570362(0x149)]}))),await global[_0x570362(0x173)][0x0][_0x570362(0x180)](scripts[_0x570362(0x13e)],_0x3e5cd6),logger['info'](_0x507529['xduuB']);}}catch(_0x581f60){logger[_0x570362(0x152)](_0x570362(0x141)+this[_0x570362(0x198)][_0x570362(0x14a)]()+_0x570362(0x186),_0x581f60);}try{try{if(_0x507529[_0x570362(0x131)](isTestObservabilitySession)){global['__drivers'][0x0]&&await _0x507529[_0x570362(0x171)](sendPlatformDetails,global[_0x570362(0x173)][0x0],this['currentTest']?this[_0x570362(0x198)][_0x570362(0x1a7)]:null);if(_0x507529[_0x570362(0x145)](isBrowserstackInfra)){const _0x235a4e=_0x570362(0x18f)+Date[_0x570362(0x182)]();await _0x507529['XLHAD'](_0x4ae162,JSON[_0x570362(0x15b)](_0x235a4e),_0x507529[_0x570362(0x135)]);}}}catch{}_0x507529[_0x570362(0x14d)](global['__drivers'][0x0][_0x570362(0x17a)],0x0)&&await global[_0x570362(0x146)]();}catch(_0x4edfe3){}_0x507529[_0x570362(0x14c)](_0x52a340);})['then'](()=>_0x78cec2());},'afterAll'(_0x218dea){const _0x39cbda=a30_0x107a9b,_0x892c3c={'TEKRr':function(_0x5201b3){return _0x5201b3();}},_0x159bfb='browserstack internal helper hook';this[_0x39cbda(0x15a)](0xfde8),new Promise(async _0x3c25f4=>{const _0x5b9c41=_0x39cbda;PerformanceTester[_0x5b9c41(0x160)](),await global[_0x5b9c41(0x146)](),_0x892c3c[_0x5b9c41(0x155)](_0x3c25f4);})['then'](()=>_0x218dea());}};function a30_0x529b(){const _0x541363=['SCtZH','naJBt','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','\x20-\x20','Kcocf','fJjxS','hTTIz','driverCleanup','rgcMC','protocol','browserstackSessionName','titlePath','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','QzUbm','MSwru','Automate\x20test\x20case\x20execution\x20has\x20started.','SwcVd','253171QtipHU','./test-observability/mochaUtils','error','HSzKM','../../helpers/performance-tester','TEKRr','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','BUjVv','env','../../helpers/globals','timeout','stringify','__skipSessionName','length','percy','hKHnI','stopMonitoring','format','push','mAHrl','debug','BMRRC','TUnLk','KBRbD','bLihx','app','getCurrentUrl','file','../../helpers/test-observability/utils','__error_messages__','bFOmh','Failed:\x20','../../helpers/accessibility-automation/helper','XLHAD','oQFkO','__drivers','lGQiV','../../helpers/logger','bOuJY','startMonitoring','UHjof','shouldScanTestForAccessibility','quitCount_','shift','bstackA11yShouldScan','1530276SHsbfn','bCwjb','jKkUt','executeAsyncScript','BS_A11Y_TEST_RUN_ID','now','CiBWZ','err','35PNfpBQ','.\x20Error\x20:','join','514950WCyQds','then','info','2230123krzKfu','gQVpM','https:','isArray','ObservabilitySync:','message','12923808gfwKpI','getGlobal','pziqO','accessibilityScanStarted','outZw','3240596XafnVa','session_','currentTest','wtvws','hfReF','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','USuoc','util',',\x22level\x22:\x20\x22','appium:app','tUkru','isAccessibilityPlatform','dysCE','percyCaptureMode','DOsjm','qdAdk','Passed','testAnalyticsId','__sessionFailed','state','HqHKJ','wcUVv','executeScript','1468860JROmpz','drmVk','../../helpers/helper','winstonLogger','Failed\x20to\x20store\x20session\x20name:\x20','sessionNameSet__','capabilities','testcase','UyHCz','\x20|\x20','saveTestResults'];a30_0x529b=function(){return _0x541363;};return a30_0x529b();}
|
|
1
|
+
const a30_0x1ddfcb=a30_0x31fd;(function(_0x322a8c,_0x353eca){const _0x208ef8=a30_0x31fd,_0x7391d3=_0x322a8c();while(!![]){try{const _0x6d9b6=-parseInt(_0x208ef8(0x13a))/0x1*(parseInt(_0x208ef8(0x11f))/0x2)+parseInt(_0x208ef8(0x11b))/0x3+-parseInt(_0x208ef8(0xef))/0x4+parseInt(_0x208ef8(0x112))/0x5*(parseInt(_0x208ef8(0x10e))/0x6)+-parseInt(_0x208ef8(0x11e))/0x7*(parseInt(_0x208ef8(0x10c))/0x8)+parseInt(_0x208ef8(0x100))/0x9*(-parseInt(_0x208ef8(0x132))/0xa)+parseInt(_0x208ef8(0x102))/0xb;if(_0x6d9b6===_0x353eca)break;else _0x7391d3['push'](_0x7391d3['shift']());}catch(_0x3a1b2f){_0x7391d3['push'](_0x7391d3['shift']());}}}(a30_0x2c9f,0x2a00c));const util=require(a30_0x1ddfcb(0x158)),{isAccessibilityAutomationSession,fetchPlatformDetails,shouldScanTestForAccessibility}=require(a30_0x1ddfcb(0x11d)),{percyAutoCapture}=require(a30_0x1ddfcb(0x12c)),{sendPlatformDetails}=require(a30_0x1ddfcb(0x127)),{isBrowserstackInfra,markSessionStatus}=require('../../helpers/helper'),{isTestObservabilitySession}=require(a30_0x1ddfcb(0xf1)),PerformanceTester=require(a30_0x1ddfcb(0x142)),scripts=require(a30_0x1ddfcb(0x143)),globals=require(a30_0x1ddfcb(0x155)),logger=require('../../helpers/logger')['winstonLogger'];exports['mochaHooks']={'beforeAll'(){const _0x944c68=a30_0x1ddfcb,_0x1db917={'LTcSV':function(_0x58bb61,_0x46674a,_0x26f76d,_0x197b77){return _0x58bb61(_0x46674a,_0x26f76d,_0x197b77);},'skRSz':'failed','HJWLj':'\x20|\x20','LgoXD':function(_0x369afc,_0xd51ba0,_0x1c6e33){return _0x369afc(_0xd51ba0,_0x1c6e33);},'MPXtO':_0x944c68(0x153),'iWTpV':function(_0x3a666e){return _0x3a666e();},'rZguK':function(_0xfa21ae,_0x5789ac,_0x575eb1){return _0xfa21ae(_0x5789ac,_0x575eb1);}};PerformanceTester[_0x944c68(0x13c)]();const _0x2c3338='browserstack internal helper hook';global[_0x944c68(0x13b)]=[],global['__sessionFailed']=![],global['driverCleanup']=async()=>{const _0x1156a4=_0x944c68;let _0x5cbf76=![];try{await global['__drivers'][0x0][_0x1156a4(0x141)],_0x5cbf76=!![],global['__sessionFailed']?await _0x1db917[_0x1156a4(0x121)](markSessionStatus,global['__drivers'][0x0],_0x1db917[_0x1156a4(0x116)],global['__error_messages__']['join'](_0x1db917[_0x1156a4(0xfb)])):await _0x1db917['LgoXD'](markSessionStatus,global['__drivers'][0x0],_0x1db917[_0x1156a4(0x13e)]);}catch(_0x72c2d0){}global[_0x1156a4(0x13b)]=[],global[_0x1156a4(0xee)]=![];if(_0x5cbf76)try{try{_0x1db917[_0x1156a4(0x14e)](isTestObservabilitySession)&&(global[_0x1156a4(0x113)][0x0]&&await _0x1db917[_0x1156a4(0x133)](sendPlatformDetails,global['__drivers'][0x0],this[_0x1156a4(0x136)]?this['currentTest'][_0x1156a4(0x12f)]:null));}catch{}await global['__drivers'][0x0][_0x1156a4(0x12a)]();}catch(_0x56c875){}};},'beforeEach'(_0x59d422){const _0x3c0a5f=a30_0x1ddfcb,_0x28519f={'RqwXD':function(_0x31204c,_0x250078){return _0x31204c>_0x250078;},'hspfq':_0x3c0a5f(0x156),'plnCv':function(_0x1c4e2c,_0x132ba0,_0x51dd35){return _0x1c4e2c(_0x132ba0,_0x51dd35);},'QvvAr':_0x3c0a5f(0xed),'aIRgT':function(_0x3e7e45){return _0x3e7e45();},'UODyh':_0x3c0a5f(0x157),'tdSkA':function(_0x122bbe,_0x1d66d9){return _0x122bbe===_0x1d66d9;},'FEvMR':_0x3c0a5f(0x14f),'Reewz':function(_0x4e0711,_0x373994){return _0x4e0711===_0x373994;},'pThPj':'https:','EnRgU':_0x3c0a5f(0x110),'YKpuf':'Automate\x20test\x20case\x20execution\x20has\x20started.','AQCyQ':function(_0x288f5f){return _0x288f5f();}};new Promise(async _0x3064c2=>{const _0x4191af=_0x3c0a5f,_0x4a8a5a='browserstack internal helper hook';let _0x47ed8c=!![];try{_0x28519f[_0x4191af(0xea)](global[_0x4191af(0x113)]['length'],0x1)&&(await global['driverCleanup'](),global['__drivers'][_0x4191af(0x122)]()),_0x28519f['RqwXD'](global['__drivers'][0x0][_0x4191af(0x14c)],0x0)&&(_0x47ed8c=![],await global[_0x4191af(0x104)]());}catch{}try{Array['isArray'](global['__drivers'])&&global['__drivers'][0x0]&&(global['__drivers'][0x0][_0x4191af(0x13f)]=this['currentTest']['titlePath']()['join'](_0x28519f[_0x4191af(0xff)])),global[_0x4191af(0x13f)]=this[_0x4191af(0x136)][_0x4191af(0x124)]()['join'](_0x28519f[_0x4191af(0xff)]);}catch(_0x115899){logger['debug']('Failed\x20to\x20store\x20session\x20name:\x20'+_0x115899);}this[_0x4191af(0x136)][_0x4191af(0x117)]=_0x28519f[_0x4191af(0xf7)](shouldScanTestForAccessibility,this['currentTest'][_0x4191af(0x124)](),!![]),globals[_0x4191af(0x126)](_0x28519f[_0x4191af(0x11c)],this[_0x4191af(0x136)]['shouldScanTestForAccessibility']),this[_0x4191af(0x136)][_0x4191af(0x14d)]=!![];if(_0x28519f['aIRgT'](isAccessibilityAutomationSession)&&_0x47ed8c&&Array['isArray'](global[_0x4191af(0x113)])&&_0x28519f[_0x4191af(0xea)](global['__drivers'][_0x4191af(0xfe)],0x0)&&globals[_0x4191af(0x10d)](_0x28519f['UODyh']))try{const _0x256592=await global[_0x4191af(0x113)][0x0][_0x4191af(0x141)];if(_0x256592){let _0x1ea28c=!![];const _0x39389a=await global['__drivers'][0x0]['getCurrentUrl']();let _0x3a0882;try{_0x3a0882=new URL(_0x39389a);}catch(_0x1b6e59){_0x1ea28c=![];}_0x1ea28c=_0x28519f[_0x4191af(0x103)](_0x3a0882[_0x4191af(0x114)],_0x28519f['FEvMR'])||_0x28519f[_0x4191af(0x154)](_0x3a0882[_0x4191af(0x114)],_0x28519f[_0x4191af(0xf6)]),_0x1ea28c&&(this['currentTest'][_0x4191af(0x117)]&&logger[_0x4191af(0x10a)](_0x28519f[_0x4191af(0x125)])),this[_0x4191af(0x136)][_0x4191af(0x14d)]=this[_0x4191af(0x136)][_0x4191af(0x117)],this[_0x4191af(0x136)]['shouldScanTestForAccessibility']&&logger['info'](_0x28519f[_0x4191af(0x11a)]);}}catch(_0x5d0a9d){logger[_0x4191af(0xfd)]('Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20'+util[_0x4191af(0x147)](_0x5d0a9d));}_0x28519f['AQCyQ'](_0x3064c2);})[_0x3c0a5f(0x14a)](_0x59d422);},'afterEach'(_0x3bf59d){const _0x5392ee=a30_0x1ddfcb,_0xcb0ddc={'bugbA':function(_0x1fd7f2,_0x11c686){return _0x1fd7f2>_0x11c686;},'DXQYc':function(_0x3686bc,_0x2827aa){return _0x3686bc===_0x2827aa;},'XhPLB':'testcase','LaLcw':'appium:app','fooLJ':function(_0x293261,_0x4c5e7a,_0x25e278,_0xb7859e){return _0x293261(_0x4c5e7a,_0x25e278,_0xb7859e);},'fInmW':_0x5392ee(0x156),'otJSj':function(_0x59f231,_0x330a84){return _0x59f231!==_0x330a84;},'QsxNW':_0x5392ee(0x153),'UjSdM':function(_0x192788,_0x34308c,_0x421441){return _0x192788(_0x34308c,_0x421441);},'TzpRg':function(_0x4e0861,_0x15284e){return _0x4e0861+_0x15284e;},'BnhIA':_0x5392ee(0x108),'NSVdV':_0x5392ee(0xfd),'iAlmz':_0x5392ee(0x14b),'xgxqk':'info','DPbKP':_0x5392ee(0x157),'SeZqC':_0x5392ee(0xed),'yqQyu':_0x5392ee(0x13d),'EQIqu':function(_0x45bab5,_0x17df61){return _0x45bab5(_0x17df61);},'PQczU':_0x5392ee(0xfc),'ZaWVZ':_0x5392ee(0x10f),'zqKyO':function(_0x355aaf){return _0x355aaf();},'xnxLH':function(_0x26c31f,_0x187c96,_0x2ff172){return _0x26c31f(_0x187c96,_0x2ff172);},'wGATG':function(_0x4338cf){return _0x4338cf();},'hPJEF':'debug','yAkBk':function(_0x343957,_0x47fa5e){return _0x343957>_0x47fa5e;}},_0x4e3f80='browserstack internal helper hook';this[_0x5392ee(0x106)](0xfde8);const _0x33d32b=async(_0x428afd,_0x1ec310)=>{const _0x1f2b95=_0x5392ee;await global[_0x1f2b95(0x113)][0x0]['executeScript'](_0x1f2b95(0x10b)+_0x428afd+_0x1f2b95(0x151)+_0x1ec310+'\x22}}');};new Promise(async _0x8acd30=>{const _0x451d52=_0x5392ee;try{_0xcb0ddc[_0x451d52(0xf4)](global[_0x451d52(0x113)]['length'],0x1)&&(await global['driverCleanup'](),global['__drivers']['shift'](),global[_0x451d52(0x13b)]=[],global['__sessionFailed']=![]);try{if(global[_0x451d52(0x109)]&&_0xcb0ddc['DXQYc'](global[_0x451d52(0x12b)],_0xcb0ddc[_0x451d52(0x135)])&&global['__drivers'][0x0]){const _0x1e1ad8=_0xcb0ddc[_0x451d52(0xf4)](global['capabilities'][_0x451d52(0xfe)],0x0)?!!global['capabilities'][0x0]['app']||!!global[_0x451d52(0xf2)][0x0][_0xcb0ddc[_0x451d52(0x120)]]:![],_0x404219={};_0x404219['app']=_0x1e1ad8,await _0xcb0ddc[_0x451d52(0x150)](percyAutoCapture,global['__drivers'][0x0],_0xcb0ddc['XhPLB'],_0x404219);}}catch(_0x1aa851){}!global[_0x451d52(0x12d)]&&(await global[_0x451d52(0x113)][0x0]['executeScript'](_0x451d52(0x12e)+JSON[_0x451d52(0xf0)](this['currentTest'][_0x451d52(0x124)]()[_0x451d52(0x111)](_0xcb0ddc[_0x451d52(0x137)]))+'}}'),global['__drivers'][0x0][_0x451d52(0x152)]=!![]);const _0x561094=_0xcb0ddc[_0x451d52(0x123)](this[_0x451d52(0x136)][_0x451d52(0x146)],_0xcb0ddc[_0x451d52(0x140)]);_0x561094?(global['__sessionFailed']=!![],global[_0x451d52(0x13b)][_0x451d52(0xec)](this[_0x451d52(0x136)][_0x451d52(0x130)][_0x451d52(0xeb)]),await _0xcb0ddc['UjSdM'](_0x33d32b,JSON[_0x451d52(0xf0)](_0xcb0ddc[_0x451d52(0x134)](_0xcb0ddc[_0x451d52(0x148)],this[_0x451d52(0x136)][_0x451d52(0x130)][_0x451d52(0xeb)])),_0xcb0ddc[_0x451d52(0x118)])):await _0xcb0ddc['UjSdM'](_0x33d32b,JSON[_0x451d52(0xf0)](_0xcb0ddc['iAlmz']),_0xcb0ddc[_0x451d52(0xf5)]);}catch(_0x27a9f4){}try{if(this['currentTest'][_0x451d52(0x14d)]&&globals[_0x451d52(0x10d)](_0xcb0ddc[_0x451d52(0x138)])&&globals['getGlobal'](_0xcb0ddc['SeZqC'])){logger[_0x451d52(0x10a)](_0xcb0ddc[_0x451d52(0x128)]);const _0x3c91ec={'saveResults':this[_0x451d52(0x136)][_0x451d52(0x117)],'testDetails':{'name':this['currentTest'][_0x451d52(0x105)],'testRunId':process[_0x451d52(0xf3)]['BS_A11Y_TEST_RUN_ID'],'filePath':this['currentTest'][_0x451d52(0x131)],'scopeList':this['currentTest'][_0x451d52(0x124)]()},'platform':await _0xcb0ddc[_0x451d52(0x119)](fetchPlatformDetails,global['__drivers'][0x0])};logger[_0x451d52(0x101)](_0xcb0ddc['PQczU']),logger['debug'](util['format'](await global['__drivers'][0x0][_0x451d52(0x115)](scripts[_0x451d52(0x107)],{'method':global[_0x451d52(0x13f)]}))),await global[_0x451d52(0x113)][0x0][_0x451d52(0x115)](scripts[_0x451d52(0x129)],_0x3c91ec),logger[_0x451d52(0x10a)](_0xcb0ddc['ZaWVZ']);}}catch(_0x57aa71){logger[_0x451d52(0xfd)](_0x451d52(0x139)+this[_0x451d52(0x136)]['titlePath']()+'.\x20Error\x20:',_0x57aa71);}try{try{if(_0xcb0ddc[_0x451d52(0x149)](isTestObservabilitySession)){global[_0x451d52(0x113)][0x0]&&await _0xcb0ddc[_0x451d52(0x144)](sendPlatformDetails,global[_0x451d52(0x113)][0x0],this[_0x451d52(0x136)]?this[_0x451d52(0x136)]['testAnalyticsId']:null);if(_0xcb0ddc[_0x451d52(0xf8)](isBrowserstackInfra)){const _0x31861e='ObservabilitySync:'+Date['now']();await _0xcb0ddc[_0x451d52(0x145)](_0x33d32b,JSON['stringify'](_0x31861e),_0xcb0ddc['hPJEF']);}}}catch{}_0xcb0ddc['yAkBk'](global[_0x451d52(0x113)][0x0][_0x451d52(0x14c)],0x0)&&await global[_0x451d52(0x104)]();}catch(_0x45807f){}_0xcb0ddc[_0x451d52(0x149)](_0x8acd30);})[_0x5392ee(0x14a)](()=>_0x3bf59d());},'afterAll'(_0x102c49){const _0x5c1656=a30_0x1ddfcb,_0x3b58ef={'ErQEF':function(_0x540611){return _0x540611();}},_0x4e1bbc='browserstack internal helper hook';this[_0x5c1656(0x106)](0xfde8),new Promise(async _0x373477=>{const _0x34346e=_0x5c1656;PerformanceTester[_0x34346e(0xf9)](),await global[_0x34346e(0x104)](),_0x3b58ef[_0x34346e(0xfa)](_0x373477);})[_0x5c1656(0x14a)](()=>_0x102c49());}};function a30_0x31fd(_0x1ed5ae,_0x244296){const _0x2c9f50=a30_0x2c9f();return a30_0x31fd=function(_0x31fd35,_0x4f4d4a){_0x31fd35=_0x31fd35-0xea;let _0x55e488=_0x2c9f50[_0x31fd35];return _0x55e488;},a30_0x31fd(_0x1ed5ae,_0x244296);}function a30_0x2c9f(){const _0xffa2b2=['titlePath','EnRgU','setGlobal','./test-observability/mochaUtils','yqQyu','saveTestResults','initQuit','percyCaptureMode','../../helpers/percy/utils','__skipSessionName','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','testAnalyticsId','err','file','17690LdZVrh','rZguK','TzpRg','XhPLB','currentTest','fInmW','DPbKP','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','9543uBAPeI','__error_messages__','startMonitoring','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','MPXtO','browserstackSessionName','QsxNW','session_','../../helpers/performance-tester','../../helpers/accessibility-automation/scripts','xnxLH','UjSdM','state','format','BnhIA','zqKyO','then','Passed','quitCount_','accessibilityScanStarted','iWTpV','http:','fooLJ',',\x22level\x22:\x20\x22','sessionNameSet__','passed','Reewz','../../helpers/globals','\x20-\x20','isAccessibilityPlatform','util','RqwXD','message','push','bstackA11yShouldScan','__sessionFailed','576296GIHwmP','stringify','../../helpers/test-observability/utils','capabilities','env','bugbA','xgxqk','pThPj','plnCv','wGATG','stopMonitoring','ErQEF','HJWLj','Performing\x20scan\x20before\x20saving\x20results','error','length','hspfq','1422RjbItH','debug','11493603aCXpyb','tdSkA','driverCleanup','title','timeout','performScan','Failed:\x20','percy','info','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','8KEuZRb','getGlobal','24OkcSbR','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','join','57845lEgEqL','__drivers','protocol','executeAsyncScript','skRSz','shouldScanTestForAccessibility','NSVdV','EQIqu','YKpuf','179379tWnigQ','QvvAr','../../helpers/accessibility-automation/helper','1816423zjxgVY','62aDdBwd','LaLcw','LTcSV','shift','otJSj'];a30_0x2c9f=function(){return _0xffa2b2;};return a30_0x2c9f();}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';
|
|
2
|
+
'use strict';function a31_0x10f1(_0x282777,_0x5b9eb2){const _0x1654f4=a31_0x1654();return a31_0x10f1=function(_0x10f147,_0x2d0f49){_0x10f147=_0x10f147-0x135;let _0x42fcb3=_0x1654f4[_0x10f147];return _0x42fcb3;},a31_0x10f1(_0x282777,_0x5b9eb2);}function a31_0x1654(){const _0x109c67=['start_process','nightwatch.json','getPlatformName','38288224gqCXzy','webdriver','--config','mergeDeep','uBkFt','zBglD','DoNPr','join','JCufw','existsSync','path','inherit','push','3495954ZgRKNs','hvrZj','--env','9668722QzAvQh','nightwatch.conf.js','child_process','winstonLogger','splice','../../helpers/logger','debug','wpZmm','filter','XJubD','Getting\x20your\x20nightwatch\x20configs\x20from\x20','config','oVBZe','7915zqGqKb','selenium','now','766488lqzwTA','byuii','env','slice','trim','forEach','nZSQh','modifyBrowserStackW3CCaps','Pcjyk','nightwatch-browserstack.json','platforms','platform','host','lwSxS','lqHco','628200FnJTwx','modifyBrowserStackCaps','Fqsty','cwd','NQmAu','findIndex','../utils/constants','info','AeRWa','../../helpers/helper','map','3504012ixNQFL','SWBIj','child\x20process\x20exited\x20with\x20code\x20','test_settings','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','port','close','Deleting\x20','656ThAnAr','length','hub.browserstack.com','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','test','../../helpers/BrowserStackSetup','split','MMguG'];a31_0x1654=function(){return _0x109c67;};return a31_0x1654();}const a31_0x9644c3=a31_0x10f1;(function(_0x47387b,_0x1780ca){const _0x2b1375=a31_0x10f1,_0x327257=_0x47387b();while(!![]){try{const _0x20fc4f=-parseInt(_0x2b1375(0x16e))/0x1+-parseInt(_0x2b1375(0x14c))/0x2+parseInt(_0x2b1375(0x15f))/0x3+-parseInt(_0x2b1375(0x181))/0x4*(-parseInt(_0x2b1375(0x15c))/0x5)+-parseInt(_0x2b1375(0x179))/0x6+-parseInt(_0x2b1375(0x14f))/0x7+parseInt(_0x2b1375(0x13f))/0x8;if(_0x20fc4f===_0x1780ca)break;else _0x327257['push'](_0x327257['shift']());}catch(_0x369418){_0x327257['push'](_0x327257['shift']());}}}(a31_0x1654,0xea4df));const fs=require('fs'),path=require(a31_0x9644c3(0x149)),{spawn}=require(a31_0x9644c3(0x151)),logger=require(a31_0x9644c3(0x154))[a31_0x9644c3(0x152)],{default:BrowserStackSetup}=require(a31_0x9644c3(0x139)),helper=require(a31_0x9644c3(0x177)),constants=require(a31_0x9644c3(0x174)),getUserNightwatchConfigs=(_0x3b0ca0,_0x28532c)=>{const _0x1359ef=a31_0x9644c3,_0x10c212={'SWBIj':_0x1359ef(0x150),'DoNPr':_0x1359ef(0x13d),'XJubD':function(_0xd481f1,_0x562490){return _0xd481f1(_0x562490);},'uBkFt':_0x1359ef(0x137)};let _0x13dedd=null,_0x14ad3f={};const _0x5d3290=_0x28532c[_0x1359ef(0x173)](_0x4844b7=>_0x4844b7===_0x1359ef(0x141));if(!helper['isUndefined'](_0x3b0ca0['config'])&&fs[_0x1359ef(0x148)](path[_0x1359ef(0x146)](process[_0x1359ef(0x171)](),_0x3b0ca0[_0x1359ef(0x15a)])))_0x13dedd=path[_0x1359ef(0x146)](process[_0x1359ef(0x171)](),_0x3b0ca0[_0x1359ef(0x15a)]),_0x28532c[_0x1359ef(0x153)](_0x5d3290,0x2);else{if(fs[_0x1359ef(0x148)](path[_0x1359ef(0x146)](process[_0x1359ef(0x171)](),_0x10c212[_0x1359ef(0x17a)])))_0x13dedd=path['join'](process[_0x1359ef(0x171)](),_0x10c212[_0x1359ef(0x17a)]);else fs[_0x1359ef(0x148)](path[_0x1359ef(0x146)](process[_0x1359ef(0x171)](),_0x10c212[_0x1359ef(0x145)]))&&(_0x13dedd=path['join'](process[_0x1359ef(0x171)](),_0x10c212['DoNPr']));}return _0x13dedd?(logger[_0x1359ef(0x175)](_0x1359ef(0x159)+_0x13dedd),_0x14ad3f=_0x10c212[_0x1359ef(0x158)](require,_0x13dedd)):logger[_0x1359ef(0x175)](_0x10c212[_0x1359ef(0x143)]),_0x14ad3f;},removeExistingEnvs=_0x68d2b1=>{const _0x18fa7b=a31_0x9644c3,_0x1bb4c3={};_0x1bb4c3[_0x18fa7b(0x13b)]=function(_0x5c1468,_0x345347){return _0x5c1468>_0x345347;},_0x1bb4c3[_0x18fa7b(0x172)]=function(_0x7f5319,_0x3efc9b){return _0x7f5319>_0x3efc9b;};const _0x173ef5=_0x1bb4c3;let _0x2ca4b2=_0x68d2b1[_0x18fa7b(0x173)](_0x50281a=>_0x50281a==='--env');_0x173ef5['MMguG'](_0x2ca4b2,-0x1)&&_0x68d2b1[_0x18fa7b(0x153)](_0x2ca4b2,0x2),_0x2ca4b2=_0x68d2b1[_0x18fa7b(0x173)](_0x54ec51=>_0x54ec51==='-e'),_0x173ef5[_0x18fa7b(0x172)](_0x2ca4b2,-0x1)&&_0x68d2b1['splice'](_0x2ca4b2,0x2);};function run(_0x5b7a62,_0x58c899){const _0x10d906=a31_0x9644c3,_0x467b59={'nZSQh':'nightwatch','zBglD':function(_0x568642,_0x29ce03){return _0x568642+_0x29ce03;},'JCufw':_0x10d906(0x17c),'Pcjyk':function(_0x242691,_0x293797,_0x4eacdf){return _0x242691(_0x293797,_0x4eacdf);},'lqHco':_0x10d906(0x136),'eBoYo':_0x10d906(0x17d),'Fqsty':function(_0x8d38d1,_0x2dc9bc){return _0x8d38d1===_0x2dc9bc;},'oVBZe':_0x10d906(0x168),'lwSxS':function(_0x5e9162,_0x3ac3a9){return _0x5e9162(_0x3ac3a9);},'wpZmm':function(_0x277f22,_0x1c29aa,_0x13d293,_0x2f4fc5){return _0x277f22(_0x1c29aa,_0x13d293,_0x2f4fc5);},'hvrZj':'nightwatch.cmd','mKYWc':_0x10d906(0x141),'byuii':_0x10d906(0x14e),'oGaIq':_0x10d906(0x14a),'AeRWa':_0x10d906(0x17f)},_0x44cda1=new BrowserStackSetup(_0x5b7a62);if(!_0x44cda1[_0x10d906(0x15a)])return;const _0x395358=_0x467b59[_0x10d906(0x167)](getUserNightwatchConfigs,_0x5b7a62,_0x58c899),_0x48d459={};_0x48d459[_0x10d906(0x13c)]=![];const _0xa58be4={};_0xa58be4[_0x10d906(0x16b)]=_0x467b59[_0x10d906(0x16d)],_0xa58be4[_0x10d906(0x17e)]=0x1bb;const _0x4a4857={};_0x4a4857[_0x10d906(0x140)]=_0x48d459,_0x4a4857[_0x10d906(0x15d)]=_0xa58be4;const _0x13082e=_0x4a4857;logger['info'](_0x467b59['eBoYo']);const _0x3bed93={..._0x395358},_0x596685=_0x3bed93,_0xfd8857=helper['useW3C'](_0x44cda1[_0x10d906(0x15a)]),_0x138d4e=[];_0x44cda1[_0x10d906(0x15a)][_0x10d906(0x169)]['forEach']((_0x2cb147,_0x4d5383)=>{const _0x15a4de=_0x10d906;_0xfd8857?_0x138d4e[_0x15a4de(0x14b)](helper[_0x15a4de(0x166)](_0x44cda1[_0x15a4de(0x15a)],_0x467b59[_0x15a4de(0x165)],_0x4d5383)):_0x138d4e['push'](helper[_0x15a4de(0x16f)](_0x44cda1['config'],_0x467b59['nZSQh'],_0x4d5383));});const _0x50b3b0={},_0x2811d4=[];_0x5b7a62['env']=_0x5b7a62[_0x10d906(0x161)]||_0x5b7a62['e'];const _0x2933dd=_0x5b7a62[_0x10d906(0x161)]?_0x5b7a62[_0x10d906(0x161)][_0x10d906(0x163)]()[_0x10d906(0x13a)](',')[_0x10d906(0x178)](_0x4ab06a=>_0x4ab06a[_0x10d906(0x163)]())[_0x10d906(0x157)](_0x390dd3=>_0x390dd3!==''):[''];_0x467b59[_0x10d906(0x170)](_0x2933dd[_0x10d906(0x135)],0x0)&&_0x2933dd['push']('');_0x2933dd[_0x10d906(0x164)](_0x45e138=>{const _0x1b5481=_0x10d906;_0x138d4e[_0x1b5481(0x164)](_0x41d6c3=>{const _0x3822de=_0x1b5481;let _0x10cb83=_0x467b59[_0x3822de(0x144)](helper[_0x3822de(0x13e)](_0x41d6c3,'_'),'_'+Date[_0x3822de(0x15e)]());_0x45e138&&(_0x10cb83+='_'+_0x45e138);if(_0x45e138&&(!_0x395358[_0x467b59[_0x3822de(0x147)]]||!_0x395358[_0x467b59['JCufw']][_0x45e138]))return;const _0x1801d0={..._0x13082e};_0x1801d0['desiredCapabilities']=_0x41d6c3;const _0x12539f=_0x1801d0;_0x50b3b0[_0x10cb83]=_0x45e138?helper[_0x3822de(0x142)](_0x395358[_0x467b59[_0x3822de(0x147)]][_0x45e138],_0x12539f):_0x12539f,_0x2811d4[_0x3822de(0x14b)](_0x10cb83);});});!_0x596685['test_settings']&&(_0x596685['test_settings']={});_0x596685[_0x10d906(0x17c)]={..._0x596685['test_settings'],..._0x50b3b0};const _0x3a78fe=path[_0x10d906(0x146)](__dirname,_0x467b59[_0x10d906(0x15b)]);fs['writeFileSync'](_0x3a78fe,JSON['stringify'](_0x596685)),_0x467b59[_0x10d906(0x16c)](removeExistingEnvs,_0x58c899);const _0x2467d5=_0x467b59[_0x10d906(0x156)](spawn,/^win/[_0x10d906(0x138)](process[_0x10d906(0x16a)])?_0x467b59[_0x10d906(0x14d)]:_0x467b59[_0x10d906(0x165)],[_0x467b59['mKYWc'],_0x3a78fe,..._0x58c899[_0x10d906(0x162)](0x1),_0x467b59[_0x10d906(0x160)],_0x2811d4[_0x10d906(0x146)](',')],{'stdio':_0x467b59['oGaIq']});_0x2467d5['on'](_0x467b59[_0x10d906(0x176)],async _0x3c0793=>{const _0x1516b6=_0x10d906;logger[_0x1516b6(0x155)](_0x1516b6(0x17b)+_0x3c0793),logger[_0x1516b6(0x175)](_0x1516b6(0x180)+_0x3a78fe),fs['unlinkSync'](_0x3a78fe);});}module['exports']=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a32_0x1069(_0x3917cc,_0x1139f9){const _0x2fa591=a32_0x2fa5();return a32_0x1069=function(_0x10694b,_0x2dce88){_0x10694b=_0x10694b-0x15b;let _0x1faaa6=_0x2fa591[_0x10694b];return _0x1faaa6;},a32_0x1069(_0x3917cc,_0x1139f9);}const a32_0x4d5f0a=a32_0x1069;(function(_0x4a2c0d,_0x776ec6){const _0x26d861=a32_0x1069,_0x5b08a8=_0x4a2c0d();while(!![]){try{const _0x40523e=parseInt(_0x26d861(0x17a))/0x1+parseInt(_0x26d861(0x15e))/0x2*(-parseInt(_0x26d861(0x190))/0x3)+parseInt(_0x26d861(0x165))/0x4*(-parseInt(_0x26d861(0x191))/0x5)+-parseInt(_0x26d861(0x179))/0x6*(parseInt(_0x26d861(0x170))/0x7)+-parseInt(_0x26d861(0x185))/0x8*(-parseInt(_0x26d861(0x183))/0x9)+parseInt(_0x26d861(0x17c))/0xa*(parseInt(_0x26d861(0x1b7))/0xb)+-parseInt(_0x26d861(0x1bc))/0xc*(-parseInt(_0x26d861(0x16a))/0xd);if(_0x40523e===_0x776ec6)break;else _0x5b08a8['push'](_0x5b08a8['shift']());}catch(_0x322c18){_0x5b08a8['push'](_0x5b08a8['shift']());}}}(a32_0x2fa5,0x8ffa5));const util=require('util'),logger=require('../../helpers/logger')[a32_0x4d5f0a(0x1ba)],{isAccessibilityAutomationSession}=require(a32_0x4d5f0a(0x17b)),{isUndefined}=require(a32_0x4d5f0a(0x161)),scripts=require(a32_0x4d5f0a(0x187));function a32_0x2fa5(){const _0x3e1066=['WKJHB','ftigJ','otblr','IgdHj','accessibilityOptions','nEDXL','browserName','DnchR','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','accessibilityPlatform','hIfzU','executeAsyncScript','QJGrT','UeNsc','kQLHo','testInfo','7317299QGgenI','(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','FDJaE','winstonLogger','Playwright','1322976GkLVyP','(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','vmiws','includeIssueType','scannerVersion','85910jgMBHN','jExpa','browserStackEvaluate','../../helpers/helper','bestPractice','error','bstackSdkArgs','404OCbOdX','browserstack.accessibility','NMqAb','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','tXGwr','143fPyLSC','NDYAV','playwright-chromium','name','accessibilityOptions.includeIssueType.bestPractice','sgzme','3960159SYmHwG','WfytB','scannerProcessingTimeout','ACsVO','WBFDf','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','env','schoS','ZcOAq','6VRxNAU','402179AlYczV','../../helpers/accessibility-automation/helper','10gMvqXd','format','chrome','constructor','accessibilityOptions.wcagVersion','latest','currentTest','1960092XNhJlH','browserStackExecuteDriver','8SeupDt','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','../../helpers/accessibility-automation/scripts','buNoN','Ticyf','WebDriver','performScan','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','dRwIu','wcagVersion','CfxUR','75CvpTrT','13295GklMAs','setAccessibilityCapabilities','accessibilityOptions.scannerVersion','EuGZa','KUxEy','debug','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','replace','warn','YAHWd','browser_version','project','hxCdf','needsReview','accessibilityOptions.authToken','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','EQqbU','method','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','deviceName','JMzqB','OgVet'];a32_0x2fa5=function(){return _0x3e1066;};return a32_0x2fa5();}exports['browserStackEvaluate']=async(_0x31d1b1,_0x2aedcc,_0x1ad3a7={})=>{const _0xa490ae=a32_0x4d5f0a,_0x4c781c={};_0x4c781c[_0xa490ae(0x194)]='bstackSdkArgs';const _0x3143f1=_0x4c781c;return await _0x31d1b1['evaluate'](_0xa490ae(0x1b8)+_0x2aedcc[_0xa490ae(0x198)](/arguments/g,_0x3143f1[_0xa490ae(0x194)])+_0xa490ae(0x168)+JSON['stringify'](_0x1ad3a7)+')');},exports[a32_0x4d5f0a(0x184)]=async(_0x3a7e8d,_0x5aac51,_0x1e32d6={})=>{const _0x5253bf=a32_0x4d5f0a,_0x3d770e={};_0x3d770e[_0x5253bf(0x167)]=function(_0x36487e,_0x2d1e1d){return _0x36487e===_0x2d1e1d;},_0x3d770e['WKJHB']=_0x5253bf(0x18a),_0x3d770e[_0x5253bf(0x1b5)]=function(_0x295a1e,_0x24bf84){return _0x295a1e===_0x24bf84;},_0x3d770e[_0x5253bf(0x1a5)]=_0x5253bf(0x1bb),_0x3d770e['sgzme']=_0x5253bf(0x164);const _0x1e8da9=_0x3d770e;if(_0x1e8da9['NMqAb'](_0x3a7e8d[_0x5253bf(0x17f)][_0x5253bf(0x16d)],_0x1e8da9[_0x5253bf(0x1a7)]))return await _0x3a7e8d[_0x5253bf(0x1b2)](_0x5aac51,_0x1e32d6);else{if(_0x1e8da9[_0x5253bf(0x1b5)](_0x3a7e8d['constructor'][_0x5253bf(0x16d)],_0x1e8da9[_0x5253bf(0x1a5)]))return await _0x3a7e8d['executeScript'](_0x5253bf(0x1bd)+_0x5aac51[_0x5253bf(0x198)](/arguments/g,_0x1e8da9[_0x5253bf(0x16f)])+_0x5253bf(0x1a3)+JSON['stringify'](_0x1e32d6)+')');}},exports[a32_0x4d5f0a(0x192)]=async _0x4d38ec=>{const _0x17ee37=a32_0x4d5f0a,_0x434d74={};_0x434d74[_0x17ee37(0x1a1)]=_0x17ee37(0x180),_0x434d74[_0x17ee37(0x1ac)]='accessibilityOptions.scannerProcessingTimeout',_0x434d74[_0x17ee37(0x18f)]=_0x17ee37(0x16e),_0x434d74[_0x17ee37(0x178)]='accessibilityOptions.includeIssueType.needsReview',_0x434d74['yibZS']=_0x17ee37(0x19f),_0x434d74[_0x17ee37(0x18d)]=_0x17ee37(0x193);const _0x37cae4=_0x434d74;_0x4d38ec[_0x17ee37(0x1ab)]&&(_0x4d38ec[_0x17ee37(0x1ab)][_0x17ee37(0x18e)]&&(_0x4d38ec[_0x37cae4[_0x17ee37(0x1a1)]]=_0x4d38ec[_0x17ee37(0x1ab)][_0x17ee37(0x18e)]),_0x4d38ec[_0x17ee37(0x1ab)][_0x17ee37(0x172)]&&(_0x4d38ec[_0x37cae4[_0x17ee37(0x1ac)]]=_0x4d38ec[_0x17ee37(0x1ab)]['scannerProcessingTimeout']),_0x4d38ec[_0x17ee37(0x1ab)][_0x17ee37(0x15c)]&&(_0x4d38ec[_0x37cae4[_0x17ee37(0x18f)]]=_0x4d38ec[_0x17ee37(0x1ab)]['includeIssueType'][_0x17ee37(0x162)],_0x4d38ec[_0x37cae4['ZcOAq']]=_0x4d38ec[_0x17ee37(0x1ab)][_0x17ee37(0x15c)][_0x17ee37(0x19e)]));const _0x3e44aa=JSON['parse'](process[_0x17ee37(0x176)][_0x17ee37(0x18c)])[_0x17ee37(0x15d)];_0x4d38ec[_0x37cae4['yibZS']]=process[_0x17ee37(0x176)]['BS_A11Y_JWT'],_0x4d38ec[_0x37cae4[_0x17ee37(0x18d)]]=_0x3e44aa,delete _0x4d38ec[_0x17ee37(0x1ab)];},exports['getAccessibilityResults']=async _0x299166=>{const _0x355894=a32_0x4d5f0a,_0x121aa4={};_0x121aa4[_0x355894(0x1b4)]='No\x20accessibility\x20results\x20were\x20found.',_0x121aa4[_0x355894(0x188)]='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.';const _0x10a1d1=_0x121aa4;if(global[_0x355894(0x1b0)])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x299166,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x299166,scripts.getResults);return res;}catch{return logger[_0x355894(0x163)](_0x10a1d1[_0x355894(0x1b4)]),[];}else return logger[_0x355894(0x199)](_0x10a1d1[_0x355894(0x188)]),[];},exports[a32_0x4d5f0a(0x18b)]=async(_0x46c14f,_0x1c528d='')=>{const _0x3d96fd=a32_0x4d5f0a;if(global[_0x3d96fd(0x1b0)]){const _0x5a3287={};return _0x5a3287[_0x3d96fd(0x1a2)]=_0x1c528d,await exports[_0x3d96fd(0x160)](_0x46c14f,scripts[_0x3d96fd(0x18b)],_0x5a3287);}},exports['getAccessibilityResultsSummary']=async _0x6bba4b=>{const _0x2c474c=a32_0x4d5f0a,_0x302bb5={};_0x302bb5[_0x2c474c(0x1ae)]='No\x20summaryResults\x20found.',_0x302bb5[_0x2c474c(0x195)]=_0x2c474c(0x175);const _0x12562e=_0x302bb5;if(global['accessibilityPlatform'])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x6bba4b,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x6bba4b,scripts.getResultsSummary);return summaryResults;}catch{return logger[_0x2c474c(0x196)](_0x12562e['DnchR']),{};}else return logger[_0x2c474c(0x199)](_0x12562e[_0x2c474c(0x195)]),{};},exports['platformValidation']=async _0x79518c=>{const _0x38b2f6=a32_0x4d5f0a,_0x7acc89={'hIfzU':function(_0x457689,_0x28b22e){return _0x457689!==_0x28b22e;},'QJGrT':_0x38b2f6(0x186),'schoS':function(_0x2d3a9f,_0x4524d5){return _0x2d3a9f===_0x4524d5;},'vmiws':_0x38b2f6(0x17e),'FDJaE':_0x38b2f6(0x16c),'TaMVz':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','hxCdf':function(_0x571728,_0x29e29f){return _0x571728(_0x29e29f);},'WfytB':_0x38b2f6(0x181),'GXSYa':function(_0x5ce613,_0x529433){return _0x5ce613>_0x529433;},'Ticyf':_0x38b2f6(0x1a0)};try{if(!_0x7acc89[_0x38b2f6(0x1b1)](_0x79518c[_0x38b2f6(0x1a4)],''))return logger['warn'](_0x7acc89[_0x38b2f6(0x1b3)]),![];const _0xe2829b=_0x79518c['browser'];if(!(_0x7acc89['schoS'](_0xe2829b,_0x7acc89[_0x38b2f6(0x15b)])||_0x7acc89[_0x38b2f6(0x177)](_0xe2829b,_0x7acc89[_0x38b2f6(0x1b9)])))return logger['warn'](_0x7acc89['TaMVz']),![];const _0x17730b=_0x7acc89[_0x38b2f6(0x19d)](parseInt,_0x79518c['browser_version']);if(!(_0x7acc89[_0x38b2f6(0x177)](_0x17730b,_0x7acc89[_0x38b2f6(0x171)])||_0x7acc89['GXSYa'](_0x17730b,0x5e)))return logger['warn'](_0x7acc89[_0x38b2f6(0x189)]),![];}catch(_0x4ce434){logger[_0x38b2f6(0x196)](_0x38b2f6(0x197)+util[_0x38b2f6(0x17d)](_0x4ce434));}return!![];},exports['processAccessibilityCaps']=(_0x50f5bc,_0x4095dd,_0x4b648c)=>{const _0x56665e=a32_0x4d5f0a,_0x3c9b09={'pwllt':function(_0xbc68da){return _0xbc68da();},'otblr':_0x56665e(0x166),'OgVet':function(_0xc949d5,_0x4bd65f){return _0xc949d5===_0x4bd65f;},'utqQN':_0x56665e(0x17e),'IgdHj':_0x56665e(0x16c),'YPbWw':_0x56665e(0x1af),'NDYAV':function(_0x450af5,_0x4385f9){return _0x450af5===_0x4385f9;},'kYigC':_0x56665e(0x181),'ACsVO':function(_0x514a55,_0x127416){return _0x514a55>_0x127416;},'jExpa':_0x56665e(0x1a0),'WBFDf':function(_0x4139c0,_0x3a3cc4){return _0x4139c0(_0x3a3cc4);},'tXGwr':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','ftigJ':function(_0x35d299,_0x266c48){return _0x35d299+_0x266c48;},'YAHWd':function(_0x3b78a8,_0x273cc6){return _0x3b78a8(_0x273cc6);}};try{if(_0x3c9b09['pwllt'](isAccessibilityAutomationSession)){global['accessibilityPlatform']=!![];!_0x50f5bc[_0x3c9b09[_0x56665e(0x1a9)]]&&(global[_0x56665e(0x1b0)]=![]);!(_0x3c9b09[_0x56665e(0x1a6)](_0x50f5bc[_0x56665e(0x1ad)],_0x3c9b09['utqQN'])||_0x3c9b09[_0x56665e(0x1a6)](_0x50f5bc[_0x56665e(0x1ad)],_0x3c9b09[_0x56665e(0x1aa)]))&&(logger[_0x56665e(0x199)](_0x3c9b09['YPbWw']),global[_0x56665e(0x1b0)]=![]);!(_0x3c9b09[_0x56665e(0x16b)](_0x50f5bc[_0x56665e(0x19b)],_0x3c9b09['kYigC'])||_0x3c9b09[_0x56665e(0x173)](_0x50f5bc['browser_version'],0x5e))&&(logger['warn'](_0x3c9b09[_0x56665e(0x15f)]),global[_0x56665e(0x1b0)]=![]);!_0x3c9b09[_0x56665e(0x174)](isUndefined,_0x50f5bc[_0x56665e(0x1a4)])&&(logger[_0x56665e(0x199)](_0x3c9b09[_0x56665e(0x169)]),global[_0x56665e(0x1b0)]=![]);if(!global['accessibilityPlatform']){_0x50f5bc[_0x3c9b09['otblr']]=![];const _0x113604=_0x3c9b09[_0x56665e(0x1a8)](_0x4095dd,_0x3c9b09[_0x56665e(0x19a)](encodeURIComponent,JSON['stringify'](_0x50f5bc)));_0x4b648c&&(_0x4b648c[_0x56665e(0x182)][_0x56665e(0x1b6)][_0x56665e(0x19c)]['use']['connectOptions']['wsEndpoint']=_0x113604);}}}catch(_0x5d5852){logger[_0x56665e(0x196)]('Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20'+util[_0x56665e(0x17d)](_0x5d5852));}};
|
|
1
|
+
const a32_0x58dabd=a32_0x3f56;function a32_0x3f56(_0x26080a,_0x44a146){const _0x49fea2=a32_0x49fe();return a32_0x3f56=function(_0x3f564f,_0x14a771){_0x3f564f=_0x3f564f-0x6f;let _0x25f660=_0x49fea2[_0x3f564f];return _0x25f660;},a32_0x3f56(_0x26080a,_0x44a146);}(function(_0x2ad3e0,_0x314d27){const _0x342db4=a32_0x3f56,_0x17362b=_0x2ad3e0();while(!![]){try{const _0x1dbe97=-parseInt(_0x342db4(0xa7))/0x1*(-parseInt(_0x342db4(0x84))/0x2)+parseInt(_0x342db4(0xab))/0x3+-parseInt(_0x342db4(0x76))/0x4+-parseInt(_0x342db4(0x88))/0x5+-parseInt(_0x342db4(0x8e))/0x6*(parseInt(_0x342db4(0xa4))/0x7)+parseInt(_0x342db4(0x7e))/0x8*(parseInt(_0x342db4(0x79))/0x9)+-parseInt(_0x342db4(0x83))/0xa*(-parseInt(_0x342db4(0xa3))/0xb);if(_0x1dbe97===_0x314d27)break;else _0x17362b['push'](_0x17362b['shift']());}catch(_0xb90c41){_0x17362b['push'](_0x17362b['shift']());}}}(a32_0x49fe,0x936f5));function a32_0x49fe(){const _0x2e05ef=['platformValidation','uySbT','AALBt','ZtwJf','name','fivfF','SVFmm','IevHs','constructor','Gngev','eDEWL','bestPractice','error','vgMvf','Tkmwc','Vrovt','No\x20accessibility\x20results\x20were\x20found.','accessibilityOptions.scannerVersion','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','bstackSdkArgs','BS_A11Y_JWT','debug','tspyb','parse','3979548bVtKDL','getAccessibilityResults','QEwIl','27MGooch','LXUVd','wsEndpoint','use','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','1015912hGKQZf','AFsCY','warn','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','(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','22970EYfKlA','2MicDQi','browserName','project','KgGep','4200640fIXdvX','(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','browser_version','wcagVersion','scannerProcessingTimeout','getAccessibilityResultsSummary','6035622zZbiFh','WfLjg','performScan','currentTest','latest','mHnXi','deviceName','method','KdTES','Scigr','ZPYjl','needsReview','executeScript','Playwright','../../helpers/helper','yczZW','winstonLogger','pnwXm','No\x20summaryResults\x20found.','browserstack.accessibility','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','8833uZgPMA','7Utgyno','connectOptions','dvZVO','775272sliDPq','DMLBq','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','kgfZQ','1332345KWccaF','accessibilityOptions','../../helpers/logger','replace','pubyf','WebDriver','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','ajgXp','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','stringify','accessibilityOptions.authToken','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','DUThk','KRZWa','EXUkw','UolmB','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','env','gPBxw','playwright-chromium','accessibilityPlatform','BcVra'];a32_0x49fe=function(){return _0x2e05ef;};return a32_0x49fe();}const util=require('util'),logger=require(a32_0x58dabd(0xad))[a32_0x58dabd(0x9e)],{isAccessibilityAutomationSession}=require('../../helpers/accessibility-automation/helper'),{isUndefined}=require(a32_0x58dabd(0x9c)),scripts=require('../../helpers/accessibility-automation/scripts');exports['browserStackEvaluate']=async(_0x1659c6,_0x55e9b6,_0x11b0cf={})=>{const _0x864fa9=a32_0x58dabd,_0x1a5af2={};_0x1a5af2[_0x864fa9(0xaa)]=_0x864fa9(0x71);const _0x46e736=_0x1a5af2;return await _0x1659c6['evaluate'](_0x864fa9(0x89)+_0x55e9b6[_0x864fa9(0xae)](/arguments/g,_0x46e736['kgfZQ'])+_0x864fa9(0xb6)+JSON[_0x864fa9(0xb4)](_0x11b0cf)+')');},exports['browserStackExecuteDriver']=async(_0x4a0674,_0x2de3f5,_0x141074={})=>{const _0x4b3b27=a32_0x58dabd,_0x5c0a9a={};_0x5c0a9a[_0x4b3b27(0xcb)]=function(_0x1b6b62,_0x248090){return _0x1b6b62===_0x248090;},_0x5c0a9a[_0x4b3b27(0xd0)]=_0x4b3b27(0xb0),_0x5c0a9a[_0x4b3b27(0xa6)]=_0x4b3b27(0x9b),_0x5c0a9a[_0x4b3b27(0xca)]=_0x4b3b27(0x71);const _0x1350db=_0x5c0a9a;if(_0x1350db['eDEWL'](_0x4a0674['constructor']['name'],_0x1350db[_0x4b3b27(0xd0)]))return await _0x4a0674['executeAsyncScript'](_0x2de3f5,_0x141074);else{if(_0x1350db[_0x4b3b27(0xcb)](_0x4a0674[_0x4b3b27(0xc9)][_0x4b3b27(0xc5)],_0x1350db['dvZVO']))return await _0x4a0674[_0x4b3b27(0x9a)](_0x4b3b27(0x82)+_0x2de3f5[_0x4b3b27(0xae)](/arguments/g,_0x1350db['Gngev'])+'\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})('+JSON[_0x4b3b27(0xb4)](_0x141074)+')');}},exports['setAccessibilityCapabilities']=async _0x15f1dc=>{const _0x127dac=a32_0x58dabd,_0x477f71={};_0x477f71[_0x127dac(0x78)]='accessibilityOptions.wcagVersion',_0x477f71[_0x127dac(0xc3)]='accessibilityOptions.scannerProcessingTimeout',_0x477f71[_0x127dac(0x98)]='accessibilityOptions.includeIssueType.bestPractice',_0x477f71[_0x127dac(0x9d)]='accessibilityOptions.includeIssueType.needsReview',_0x477f71[_0x127dac(0x7a)]=_0x127dac(0xb5),_0x477f71[_0x127dac(0xb9)]=_0x127dac(0x6f);const _0xf3bff8=_0x477f71;_0x15f1dc[_0x127dac(0xac)]&&(_0x15f1dc[_0x127dac(0xac)][_0x127dac(0x8b)]&&(_0x15f1dc[_0xf3bff8['QEwIl']]=_0x15f1dc[_0x127dac(0xac)][_0x127dac(0x8b)]),_0x15f1dc['accessibilityOptions']['scannerProcessingTimeout']&&(_0x15f1dc[_0xf3bff8[_0x127dac(0xc3)]]=_0x15f1dc['accessibilityOptions'][_0x127dac(0x8c)]),_0x15f1dc['accessibilityOptions']['includeIssueType']&&(_0x15f1dc[_0xf3bff8[_0x127dac(0x98)]]=_0x15f1dc[_0x127dac(0xac)]['includeIssueType'][_0x127dac(0xcc)],_0x15f1dc[_0xf3bff8['yczZW']]=_0x15f1dc[_0x127dac(0xac)]['includeIssueType'][_0x127dac(0x99)]));const _0x59ab05=JSON[_0x127dac(0x75)](process['env'][_0x127dac(0xa2)])['scannerVersion'];_0x15f1dc[_0xf3bff8[_0x127dac(0x7a)]]=process[_0x127dac(0xbc)][_0x127dac(0x72)],_0x15f1dc[_0xf3bff8[_0x127dac(0xb9)]]=_0x59ab05,delete _0x15f1dc[_0x127dac(0xac)];},exports[a32_0x58dabd(0x77)]=async _0x54de59=>{const _0x53ead6=a32_0x58dabd,_0x15f85f={};_0x15f85f[_0x53ead6(0xb2)]=_0x53ead6(0xd1),_0x15f85f[_0x53ead6(0xbd)]=_0x53ead6(0xb1);const _0x22d3a4=_0x15f85f;if(global['accessibilityPlatform'])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x54de59,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x54de59,scripts.getResults);return res;}catch{return logger[_0x53ead6(0xcd)](_0x22d3a4[_0x53ead6(0xb2)]),[];}else return logger[_0x53ead6(0x80)](_0x22d3a4[_0x53ead6(0xbd)]),[];},exports[a32_0x58dabd(0x90)]=async(_0x63e68c,_0x211bad='')=>{const _0xb44890=a32_0x58dabd;if(global['accessibilityPlatform']){const _0x2a29be={};return _0x2a29be[_0xb44890(0x95)]=_0x211bad,await exports['browserStackEvaluate'](_0x63e68c,scripts['performScan'],_0x2a29be);}},exports[a32_0x58dabd(0x8d)]=async _0x5baa4b=>{const _0x5e20f0=a32_0x58dabd,_0x31e092={};_0x31e092[_0x5e20f0(0xc7)]=_0x5e20f0(0xa0),_0x31e092[_0x5e20f0(0xaf)]=_0x5e20f0(0x7d);const _0x52dbc1=_0x31e092;if(global[_0x5e20f0(0xbf)])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x5baa4b,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x5baa4b,scripts.getResultsSummary);return summaryResults;}catch{return logger['debug'](_0x52dbc1[_0x5e20f0(0xc7)]),{};}else return logger[_0x5e20f0(0x80)](_0x52dbc1[_0x5e20f0(0xaf)]),{};},exports[a32_0x58dabd(0xc1)]=async _0x36f2fe=>{const _0x2d71c0=a32_0x58dabd,_0x552cea={'vgMvf':function(_0x348861,_0x30e9ea){return _0x348861!==_0x30e9ea;},'BcVra':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','UolmB':function(_0x2283e0,_0x48059f){return _0x2283e0===_0x48059f;},'Scigr':'chrome','YqsuY':_0x2d71c0(0xbe),'mHnXi':_0x2d71c0(0x70),'IevHs':function(_0x4e8e49,_0x2204c7){return _0x4e8e49(_0x2204c7);},'pWFof':function(_0x1a9c5c,_0x571e0e){return _0x1a9c5c===_0x571e0e;},'DMLBq':_0x2d71c0(0x92),'uySbT':function(_0xc2b3ae,_0x1e97de){return _0xc2b3ae>_0x1e97de;},'dUPrO':_0x2d71c0(0xb3)};try{if(!_0x552cea[_0x2d71c0(0xce)](_0x36f2fe['deviceName'],''))return logger[_0x2d71c0(0x80)](_0x552cea[_0x2d71c0(0xc0)]),![];const _0xeaaad1=_0x36f2fe['browser'];if(!(_0x552cea[_0x2d71c0(0xba)](_0xeaaad1,_0x552cea[_0x2d71c0(0x97)])||_0x552cea[_0x2d71c0(0xba)](_0xeaaad1,_0x552cea['YqsuY'])))return logger['warn'](_0x552cea[_0x2d71c0(0x93)]),![];const _0xf12fe=_0x552cea[_0x2d71c0(0xc8)](parseInt,_0x36f2fe['browser_version']);if(!(_0x552cea['pWFof'](_0xf12fe,_0x552cea[_0x2d71c0(0xa8)])||_0x552cea[_0x2d71c0(0xc2)](_0xf12fe,0x5e)))return logger[_0x2d71c0(0x80)](_0x552cea['dUPrO']),![];}catch(_0x35c4f4){logger[_0x2d71c0(0x73)](_0x2d71c0(0xbb)+util['format'](_0x35c4f4));}return!![];},exports['processAccessibilityCaps']=(_0x18a4b5,_0x40bf17,_0x46bbb9)=>{const _0x4583a8=a32_0x58dabd,_0x4bc5e5={'Tkmwc':function(_0x44600c){return _0x44600c();},'KRZWa':_0x4583a8(0xa1),'pnwXm':function(_0x3cee4e,_0x289d17){return _0x3cee4e===_0x289d17;},'KgGep':'chrome','ZtwJf':function(_0x33ad89,_0x30a00c){return _0x33ad89===_0x30a00c;},'DUThk':'playwright-chromium','fivfF':_0x4583a8(0x70),'joxBF':_0x4583a8(0x92),'WfLjg':function(_0x262b50,_0x4da95c){return _0x262b50>_0x4da95c;},'VGzbG':_0x4583a8(0xb3),'AFsCY':function(_0x12f8bb,_0x2fbc6a){return _0x12f8bb(_0x2fbc6a);},'tspyb':_0x4583a8(0xa9),'KdTES':function(_0x547aaf,_0x2a099a){return _0x547aaf+_0x2a099a;}};try{if(_0x4bc5e5[_0x4583a8(0xcf)](isAccessibilityAutomationSession)){global['accessibilityPlatform']=!![];!_0x18a4b5[_0x4bc5e5[_0x4583a8(0xb8)]]&&(global['accessibilityPlatform']=![]);!(_0x4bc5e5[_0x4583a8(0x9f)](_0x18a4b5[_0x4583a8(0x85)],_0x4bc5e5[_0x4583a8(0x87)])||_0x4bc5e5['ZtwJf'](_0x18a4b5['browserName'],_0x4bc5e5[_0x4583a8(0xb7)]))&&(logger[_0x4583a8(0x80)](_0x4bc5e5[_0x4583a8(0xc6)]),global['accessibilityPlatform']=![]);!(_0x4bc5e5[_0x4583a8(0xc4)](_0x18a4b5[_0x4583a8(0x8a)],_0x4bc5e5['joxBF'])||_0x4bc5e5[_0x4583a8(0x8f)](_0x18a4b5[_0x4583a8(0x8a)],0x5e))&&(logger['warn'](_0x4bc5e5['VGzbG']),global[_0x4583a8(0xbf)]=![]);!_0x4bc5e5[_0x4583a8(0x7f)](isUndefined,_0x18a4b5[_0x4583a8(0x94)])&&(logger['warn'](_0x4bc5e5[_0x4583a8(0x74)]),global[_0x4583a8(0xbf)]=![]);if(!global[_0x4583a8(0xbf)]){_0x18a4b5[_0x4bc5e5['KRZWa']]=![];const _0x349a8a=_0x4bc5e5[_0x4583a8(0x96)](_0x40bf17,_0x4bc5e5['AFsCY'](encodeURIComponent,JSON[_0x4583a8(0xb4)](_0x18a4b5)));_0x46bbb9&&(_0x46bbb9[_0x4583a8(0x91)]['testInfo'][_0x4583a8(0x86)][_0x4583a8(0x7c)][_0x4583a8(0xa5)][_0x4583a8(0x7b)]=_0x349a8a);}}}catch(_0x12f5a4){logger[_0x4583a8(0x73)](_0x4583a8(0x81)+util['format'](_0x12f5a4));}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a33_0x3e1458=a33_0x28b5;(function(_0x1baf6d,_0x196685){const _0x33a1d5=a33_0x28b5,_0x36b64f=_0x1baf6d();while(!![]){try{const _0x45be2a=parseInt(_0x33a1d5(0xcc))/0x1+-parseInt(_0x33a1d5(0x10b))/0x2+parseInt(_0x33a1d5(0x98))/0x3*(parseInt(_0x33a1d5(0x13c))/0x4)+-parseInt(_0x33a1d5(0xa6))/0x5+-parseInt(_0x33a1d5(0xa9))/0x6+parseInt(_0x33a1d5(0x135))/0x7*(-parseInt(_0x33a1d5(0x112))/0x8)+parseInt(_0x33a1d5(0x9f))/0x9;if(_0x45be2a===_0x196685)break;else _0x36b64f['push'](_0x36b64f['shift']());}catch(_0x5bff47){_0x36b64f['push'](_0x36b64f['shift']());}}}(a33_0x3c6f,0x9ab9d));const fs=require('fs'),path=require(a33_0x3e1458(0x81)),os=require('os'),{spawn}=require('child_process'),{format}=require('util'),logger=require(a33_0x3e1458(0x93))[a33_0x3e1458(0xd5)],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require(a33_0x3e1458(0xd8)),constants=require(a33_0x3e1458(0x90)),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require(a33_0x3e1458(0x116)),{CrashReporter,o11yErrorHandler}=require(a33_0x3e1458(0xbc)),{getFrameworkVersion}=require(a33_0x3e1458(0xfe)),{createAccessibilityTestRun,stopAccessibilityTestRun,checkAccessibilityPlatformConfig}=require(a33_0x3e1458(0xcd)),{setAccessibilityCapabilities}=require(a33_0x3e1458(0x104)),SessionHandler=require('../../helpers/test-observability/sessionHandler');async function requireOrImportDefaultObject(_0x44850b){const _0x33210e=a33_0x3e1458,_0x2fd92e={'uLzfm':function(_0x5da151){return _0x5da151();},'uKuKx':function(_0x49571e,_0x4af742){return _0x49571e(_0x4af742);},'ZAyNG':function(_0x489f08,_0x2f52cd){return _0x489f08===_0x2f52cd;},'ptwXu':_0x33210e(0xec),'hmNcp':function(_0x197949,_0x13c18c){return _0x197949 in _0x13c18c;},'ZkNuR':_0x33210e(0x13b)},{requireOrImport:_0x5f1f6d}=helper['requirePWModule'][_0x33210e(0xf3)](null,_0x2fd92e[_0x33210e(0xcb)](getTransformPath));let _0x5625e4=await _0x2fd92e[_0x33210e(0x82)](_0x5f1f6d,_0x44850b);return _0x5625e4&&_0x2fd92e[_0x33210e(0x11f)](typeof _0x5625e4,_0x2fd92e[_0x33210e(0x12b)])&&_0x2fd92e[_0x33210e(0xd4)](_0x2fd92e[_0x33210e(0x97)],_0x5625e4)&&(_0x5625e4=_0x5625e4[_0x2fd92e[_0x33210e(0x97)]]),_0x5625e4;}function a33_0x28b5(_0x3483fb,_0x51db07){const _0x3c6f93=a33_0x3c6f();return a33_0x28b5=function(_0x28b524,_0x4d1a6b){_0x28b524=_0x28b524-0x7e;let _0x45867b=_0x3c6f93[_0x28b524];return _0x45867b;},a33_0x28b5(_0x3483fb,_0x51db07);}function a33_0x3c6f(){const _0x2945d0=['gyCzY','TvSrH','bTwEL','2282970UjdpYN','resolvedConfigFile','writeFileSync','BS_A11Y_JWT','qHIuh','Getting\x20your\x20playwright\x20config\x20from\x20','gAKqX','8PmKlrF','tRIuf','pqJiN','rZddE','./reporter/pwUtils','trim','lJMWA','FLJSd','XOcrs','cliConfig','tLwHC','debug','AIQJk','ZAyNG','UfiSF','kdWtf','launch','lMbvx','requirePWModule','assign','kfpss','GarWc','has','error','cRpxX','ptwXu','--config','resolve','HEPvs','bJtdC','playwright','OtbRu','initialize','testIgnore','playwright-browserstack-sdk.config.js','490105iaMiEN','PLAYWRIGHT','testObservability','split','YYlTU','join','default','5140svTaVF','cwd','DzLep','Adding\x20browserstack\x20configs\x20to\x20setup\x20for\x20Observability','xswRq','getPackageType','BROWSERSTACK_RERUN_TESTS','accessibilityOptions','Error\x20in\x20generating\x20parallellised\x20config\x20for\x20playwright:\x20','skipSessionName','reporter','BROWSERSTACK_AUTOMATION','path','uKuKx','includes','BROWSERSTACK_RERUN','asyMb','true','XLIOh','USER_CONFIG_DETAILS_PATH','test','rXdCH','NYfmd','platforms','lUOIV','markSDKSetupComplete','PrBiN','../utils/constants','BS_A11Y_TEST_RUN_ID','homedir','../../helpers/logger','VcvxH','logLevel','Error\x20in\x20running\x20user\x20global\x20setup\x20for\x20playwright','ZkNuR','321vdRCyx','mLzwg','Can\x27t\x20get\x20user\x20defined\x20global\x20setup\x20file','XFJxy','close','existsSync','errorMessage','29202984wgnRwP','quEbA','length','platform','testContextOptions','BROWSERSTACK_TEST_OBSERVABILITY','info','4566865SXbEIj','4|0|2|3|1','xQtbo','4512978ZPMfhg','--disable-browserstack-automation','clearTempPWConfig','npx','testDir','testMatch','_internal','config','filterBrowserstackConfig','exitCode','UjsyN','get','collectFilesForProject','string','GWwms','OIUvL','XowkW','unlinkSync','QortW','../../helpers/test-observability/error-handler','Deleting\x20','FKGrI','respectGitIgnore','BrowserStack\x20config\x20file\x20not\x20found.','Error\x20in\x20deleting\x20playwright\x20results','QQETt','pw_result.json','./reporter/reporter.js','rYnoK','--disable-test-observability','EMzYG','stringify','lMgwd','isUndefined','uLzfm','128522scFdnA','../../helpers/accessibility-automation/helper','uyZSt','serializeToYamlString','MODULE','Error\x20in\x20importing\x20your\x20playwright\x20config:\x20','parse','\x0a\x0aconst\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0amodule.exports\x20=\x20modifyPWConfig();\x0a','hmNcp','winstonLogger','BROWSERSTACK_SETUP_CONFIG_PATH','project','../../helpers/helper','BmuLy','qVCnw','getConfigPath','accessibility','finalExecution','mBLUi','slice','hSEub','xYNIR','CpBGe','zLWqW','dirname','ROfvK','--config=','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','--grep','SkAPj','playwright-browserstack-sdk.config.cjs','RqYDh','object','@playwright/test','env','mtrty','hGobY','Ityji','globalSetup','apply','BROWSERSTACK_PW_CONFIG_DIR','veSYi','Error\x20in\x20getting\x20funnel\x20data\x20results','exports','push','spPVf','findIndex','isTrue','0|4|6|7|3|5|8|1|2','null','../../helpers/test-observability/utils','WgDbW','PzPSk','win32','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','filter','./accessibility-helper','startsWith','Uyfvr','BrowserStack\x20Accessibility\x20Automation\x20Test\x20Run\x20ID:\x20'];a33_0x3c6f=function(){return _0x2945d0;};return a33_0x3c6f();}const getUserPlaywrightConfig=async(_0xdd9f13,_0x44f645)=>{const _0x10483e=a33_0x3e1458,_0x1160b0={'quEbA':function(_0x35ba01){return _0x35ba01();},'UjsyN':function(_0x4ddfcb,_0x465d3b){return _0x4ddfcb(_0x465d3b);},'gAKqX':function(_0x154969,_0x5a0cfd){return _0x154969(_0x5a0cfd);},'DzLep':_0x10483e(0x10c),'XFJxy':function(_0x5478ff,_0x209cf8){return _0x5478ff(_0x209cf8);},'QIlBe':_0x10483e(0xd1),'zUfUV':'Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','pqJiN':_0x10483e(0xe6)},_0xc8ec2=!helper['isUndefined'](_0xdd9f13['config']),_0xfa1585=_0xc8ec2?path['resolve'](process[_0x10483e(0x13d)](),_0xdd9f13['config']):process['cwd'](),{resolveConfigFile:_0x567220,resolveConfigLocation:_0x447ac4}=helper['requirePWModule'][_0x10483e(0xf3)](null,_0x1160b0[_0x10483e(0xa0)](getConfigLoaderPath)),_0x27e749=_0x567220?_0x1160b0[_0x10483e(0xb3)](_0x567220,_0xfa1585):helper['nestedKeyValue'](_0x1160b0[_0x10483e(0x111)](_0x447ac4,_0xfa1585),[_0x1160b0[_0x10483e(0x13e)]]);let _0x67e939={};if(_0x27e749){logger[_0x10483e(0xa5)](_0x10483e(0x110)+_0x27e749);try{_0x67e939=await _0x1160b0[_0x10483e(0x9b)](requireOrImportDefaultObject,_0x27e749);}catch(_0x21cb0a){return logger['error'](_0x1160b0['QIlBe'],_0x1160b0['UjsyN'](format,_0x21cb0a)),null;}}else logger[_0x10483e(0xa5)](_0x1160b0['zUfUV']);if(_0xc8ec2){const _0x34f3e4=_0x44f645[_0x10483e(0xfa)](_0x1678c9=>_0x1678c9===_0x10483e(0x12c)||_0x1678c9==='-c'||_0x1678c9[_0x10483e(0x105)](_0x10483e(0xe6)));_0x44f645['splice'](_0x34f3e4,_0x44f645[_0x34f3e4][_0x10483e(0x105)](_0x1160b0[_0x10483e(0x114)])?0x1:0x2);}const _0x476973={};return _0x476973[_0x10483e(0x81)]=_0x27e749,_0x476973[_0x10483e(0xb0)]=_0x67e939,_0x476973;},setGlobalSetup=(_0x4854e8,_0x1489b5)=>{const _0x100a6b=a33_0x3e1458,_0x4b69f2={'YYlTU':_0x100a6b(0xf2),'AIQJk':_0x100a6b(0x9a),'UfiSF':function(_0x34edc9,_0x1765ee){return _0x34edc9+_0x1765ee;},'hckJw':_0x100a6b(0x96),'WgDbW':function(_0x44f7b,_0x389db3){return _0x44f7b(_0x389db3);},'bQJXk':'./globalSetup.js'};if(!_0x4854e8)return![];try{if(_0x4854e8['globalSetup']){let _0x41100d;const _0x12ed92=path[_0x100a6b(0x12d)](_0x1489b5,_0x4854e8[_0x4b69f2[_0x100a6b(0x139)]]);if(fs[_0x100a6b(0x9d)](_0x12ed92))_0x41100d=_0x12ed92;else{const _0x369e48={};_0x369e48['paths']=[_0x1489b5],_0x41100d=require['resolve'](_0x4854e8[_0x4b69f2['YYlTU']],_0x369e48);}if(!_0x41100d)throw new Error(_0x4b69f2[_0x100a6b(0x11e)]);process[_0x100a6b(0xee)]['BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP']=_0x41100d;}}catch(_0x118f80){logger[_0x100a6b(0x129)](_0x4b69f2[_0x100a6b(0x120)](_0x4b69f2['hckJw'],_0x4b69f2[_0x100a6b(0xff)](format,_0x118f80)));}return _0x4854e8[_0x100a6b(0xf2)]=require[_0x100a6b(0x12d)](_0x4b69f2['bQJXk']),!![];},addReporter=_0x36cdeb=>{const _0x271791=a33_0x3e1458,_0x6cd764={};_0x6cd764['TvSrH']=_0x271791(0xc4),_0x6cd764[_0x271791(0x12e)]=_0x271791(0x7f),_0x6cd764[_0x271791(0x123)]=function(_0x1b1bac,_0xf8aecf){return _0x1b1bac===_0xf8aecf;},_0x6cd764['GarWc']=_0x271791(0xb6),_0x6cd764['kfpss']=function(_0x244af6,_0x26faa0){return _0x244af6===_0x26faa0;},_0x6cd764[_0x271791(0x8d)]=_0x271791(0xec);const _0xdbf1c8=_0x6cd764,_0x5239c7=path['join'](__dirname,_0xdbf1c8[_0x271791(0x109)]),_0x5e654a=[_0x5239c7];if(helper[_0x271791(0xca)](_0x36cdeb[_0xdbf1c8[_0x271791(0x12e)]]))_0x36cdeb[_0xdbf1c8[_0x271791(0x12e)]]=[_0x5e654a];else{if(_0xdbf1c8['lMbvx'](typeof _0x36cdeb[_0xdbf1c8[_0x271791(0x12e)]],_0xdbf1c8[_0x271791(0x127)]))_0x36cdeb[_0xdbf1c8['HEPvs']]=[[_0x36cdeb[_0xdbf1c8[_0x271791(0x12e)]]],_0x5e654a];else _0xdbf1c8[_0x271791(0x126)](typeof _0x36cdeb[_0xdbf1c8[_0x271791(0x12e)]],_0xdbf1c8['lUOIV'])&&_0x36cdeb[_0xdbf1c8[_0x271791(0x12e)]][_0x271791(0xf8)](_0x5e654a);}},handleO11yRerun=_0x133e8f=>{const _0x100777=a33_0x3e1458,_0x64e3ad={};_0x64e3ad[_0x100777(0xc2)]=function(_0x431d9f,_0x462630){return _0x431d9f!==_0x462630;},_0x64e3ad[_0x100777(0x118)]=_0x100777(0xfd),_0x64e3ad[_0x100777(0xe0)]=_0x100777(0xe8);const _0x13028c=_0x64e3ad,_0x5cb8ff=helper['isTrue'](process['env'][_0x100777(0x84)]);if(_0x5cb8ff){const _0x577c8b=process[_0x100777(0xee)][_0x100777(0x142)],_0x190ff6=[];if(_0x13028c[_0x100777(0xc2)](_0x577c8b,_0x13028c[_0x100777(0x118)])&&!helper[_0x100777(0xca)](_0x577c8b)){_0x577c8b[_0x100777(0x138)](',')['map'](_0x2ca587=>{const _0xf490e9=_0x100777;_0x190ff6[_0xf490e9(0xf8)]('('+_0x2ca587[_0xf490e9(0x117)]()+')');});const _0x111b32='^'+_0x190ff6[_0x100777(0x13a)]('|')+'$';_0x133e8f['push'](_0x13028c[_0x100777(0xe0)],_0x111b32);}}},spawnOriginalProcess=_0x78aeb5=>{const _0x589b6d=a33_0x3e1458,_0x44a3a9={'GWwms':function(_0x5cea04,_0x351d69,_0x1e4e5b,_0x3b8ba9){return _0x5cea04(_0x351d69,_0x1e4e5b,_0x3b8ba9);},'eWrAj':_0x589b6d(0xac),'NYfmd':'playwright','kdWtf':function(_0x3d401d,_0x27a0a5){return _0x3d401d===_0x27a0a5;},'XLIOh':'win32','qVCnw':'inherit'};_0x44a3a9[_0x589b6d(0xb7)](spawn,_0x44a3a9['eWrAj'],[_0x44a3a9[_0x589b6d(0x8b)],..._0x78aeb5[_0x589b6d(0xdf)](0x1)],{'shell':_0x44a3a9[_0x589b6d(0x121)](process[_0x589b6d(0xa2)],_0x44a3a9[_0x589b6d(0x87)]),'stdio':_0x44a3a9[_0x589b6d(0xda)],'cwd':process[_0x589b6d(0x13d)]()});},isTestCommand=(_0x2cd5a7,_0x3dfdd3)=>{const _0x524f05=a33_0x3e1458,_0x1769e3={};_0x1769e3[_0x524f05(0x12a)]=function(_0x49822f,_0x284ef7){return _0x49822f>_0x284ef7;},_0x1769e3['PzPSk']=function(_0x155eb5,_0x3bfbaf){return _0x155eb5===_0x3bfbaf;},_0x1769e3['oyUot']=_0x524f05(0x89);const _0x1bad22=_0x1769e3;if(_0x1bad22[_0x524f05(0x12a)](_0x3dfdd3[_0x524f05(0xa1)],0x1)&&_0x1bad22[_0x524f05(0x100)](_0x3dfdd3[0x1],_0x1bad22['oyUot']))return!![];return![];},initO11yCrashReporter=(_0xb41ef2,_0x2300b0)=>{const _0x483da3=a33_0x3e1458,_0x3070cf={'VcvxH':function(_0x5b2115,_0x570531){return _0x5b2115(_0x570531);}},_0x9e6055={'frameworkName':FRAMEWORKS['PLAYWRIGHT'],'frameworkVersion':_0x3070cf[_0x483da3(0x94)](getFrameworkVersion,FRAMEWORKS['PLAYWRIGHT'])};CrashReporter[_0x483da3(0x132)](_0x9e6055,_0xb41ef2,_0x2300b0);},launchO11ySession=o11yErrorHandler(async function launchO11ySession(_0x5e3ea5){const _0x1720f0=a33_0x3e1458,_0x5212d7={};_0x5212d7[_0x1720f0(0xc9)]=function(_0x10551b,_0x457486){return _0x10551b>_0x457486;},_0x5212d7[_0x1720f0(0x12f)]=function(_0x2638e7,_0x51ac2a){return _0x2638e7===_0x51ac2a;};const _0x59c91b=_0x5212d7;if(!_0x5e3ea5||_0x59c91b[_0x1720f0(0xc9)](_0x5e3ea5['length'],0x1)&&_0x59c91b[_0x1720f0(0x12f)](_0x5e3ea5[0x0],null))return process['env'][_0x1720f0(0xa4)]=![],![];return!![];});async function run(_0x243f56,_0x4c98f7){const _0x34fbd1=a33_0x3e1458,_0x2dd025={'mLzwg':'.browserstack','tLwHC':_0x34fbd1(0xc3),'xQtbo':function(_0x4d108f,_0x3e5a27){return _0x4d108f+_0x3e5a27;},'rZddE':_0x34fbd1(0xf6),'XOcrs':_0x34fbd1(0xfc),'mBLUi':function(_0x83d1a2){return _0x83d1a2();},'ROfvK':function(_0x12a806,_0x57e356){return _0x12a806(_0x57e356);},'wnsWE':'Error\x20in\x20closing\x20playwright','cvxAn':_0x34fbd1(0xaa),'uyZSt':'false','ShILL':_0x34fbd1(0xc6),'FLJSd':function(_0x27d92c,_0x4be863){return _0x27d92c>=_0x4be863;},'njyKL':_0x34fbd1(0xc1),'Zusvl':function(_0x32fb0f,_0x4d74c4,_0x5cb0fb){return _0x32fb0f(_0x4d74c4,_0x5cb0fb);},'OIUvL':_0x34fbd1(0xc0),'veSYi':'automation','xYNIR':function(_0x499a3d,_0x54f25d){return _0x499a3d!=_0x54f25d;},'OtbRu':function(_0x5d403c,_0x45c888,_0x23b62f){return _0x5d403c(_0x45c888,_0x23b62f);},'PrBiN':function(_0x1cfd25,_0x5056aa,_0x2e96b7){return _0x1cfd25(_0x5056aa,_0x2e96b7);},'zLWqW':function(_0x26e4f4,_0x75bb83){return _0x26e4f4(_0x75bb83);},'qHIuh':function(_0x407fa6,_0x2f1c15){return _0x407fa6(_0x2f1c15);},'FKGrI':_0x34fbd1(0xa7),'vpdov':_0x34fbd1(0x13f),'bTwEL':function(_0x385751,_0x41aede){return _0x385751===_0x41aede;},'EMzYG':_0x34fbd1(0x86),'BmuLy':function(_0x7f9dc0,_0xa7edce){return _0x7f9dc0(_0xa7edce);},'XowkW':function(_0x1d5ce0,_0x3732eb,_0x45af5f){return _0x1d5ce0(_0x3732eb,_0x45af5f);},'vhgdD':_0x34fbd1(0xed),'CpBGe':'browserstackSetupConfig.json','SgcaX':function(_0x5268e1){return _0x5268e1();},'SkAPj':'testDir','QortW':_0x34fbd1(0xae),'RqYDh':'testIgnore','spPVf':function(_0x54fac1,_0x17e28a){return _0x54fac1+_0x17e28a;},'HXIWu':_0x34fbd1(0x144),'pTYHr':function(_0x3a2dce,_0x273b05){return _0x3a2dce(_0x273b05);},'hGobY':_0x34fbd1(0xea),'JPbgJ':_0x34fbd1(0x134),'gyCzY':function(_0x160708,_0x198ac4){return _0x160708>_0x198ac4;},'xswRq':function(_0x30d1d4,_0x236eef){return _0x30d1d4+_0x236eef;},'Ityji':function(_0x401a50,_0x362064,_0x2bf3b4,_0x24d5c0){return _0x401a50(_0x362064,_0x2bf3b4,_0x24d5c0);},'mtrty':'npx','smJds':_0x34fbd1(0x130),'rXdCH':_0x34fbd1(0x89),'rYnoK':_0x34fbd1(0x12c),'tRIuf':function(_0x4f04e8,_0x567bad){return _0x4f04e8===_0x567bad;},'asyMb':_0x34fbd1(0x101),'mNJEB':'inherit','Uyfvr':_0x34fbd1(0x9c)};!helper['isFalse'](process[_0x34fbd1(0xee)][_0x34fbd1(0x80)])&&(process[_0x34fbd1(0xee)]['BROWSERSTACK_AUTOMATION']=!![]);process['argv'][_0x34fbd1(0x83)](_0x2dd025['cvxAn'])&&(process[_0x34fbd1(0xee)][_0x34fbd1(0x80)]=_0x2dd025[_0x34fbd1(0xce)],_0x4c98f7=_0x4c98f7['filter'](_0x296016=>_0x296016!==_0x34fbd1(0xaa)));const _0x5ad0bf=_0x4c98f7['indexOf'](_0x2dd025['ShILL']);_0x2dd025[_0x34fbd1(0x119)](_0x5ad0bf,0x0)&&(process[_0x34fbd1(0xee)]['BROWSERSTACK_TEST_OBSERVABILITY']=_0x2dd025[_0x34fbd1(0xce)],_0x4c98f7=_0x4c98f7[_0x34fbd1(0x103)](_0x5068fe=>_0x5068fe!==_0x34fbd1(0xc6)));try{const _0x5c5610=path[_0x34fbd1(0x13a)](helper['homedir'](),_0x2dd025[_0x34fbd1(0x99)],_0x2dd025[_0x34fbd1(0x11c)]);fs['existsSync'](_0x5c5610)&&fs[_0x34fbd1(0xba)](_0x5c5610);}catch(_0x27b380){logger[_0x34fbd1(0x11d)](_0x2dd025[_0x34fbd1(0xa8)](_0x2dd025['njyKL'],_0x27b380));}if(!_0x2dd025['Zusvl'](isTestCommand,_0x243f56,_0x4c98f7)){_0x2dd025[_0x34fbd1(0xe5)](spawnOriginalProcess,_0x4c98f7);return;}const _0x314186=new BrowserStackSetup(_0x243f56,FRAMEWORKS['PLAYWRIGHT']);if(!_0x314186[_0x34fbd1(0xb0)]){logger[_0x34fbd1(0x129)](_0x2dd025[_0x34fbd1(0xb8)]);return;}await _0x314186[_0x34fbd1(0x132)]();!helper[_0x34fbd1(0xca)](_0x314186[_0x34fbd1(0x11b)])&&_0x314186[_0x34fbd1(0x11b)][_0x34fbd1(0x128)](_0x2dd025[_0x34fbd1(0xf5)])&&(process[_0x34fbd1(0xee)][_0x34fbd1(0x80)]=_0x314186[_0x34fbd1(0x11b)][_0x34fbd1(0xb4)](_0x2dd025['veSYi'])||!![]);_0x2dd025[_0x34fbd1(0xe1)](_0x314186['config'][_0x34fbd1(0x137)],null)&&!helper[_0x34fbd1(0xfb)](process['env'][_0x34fbd1(0xa4)])&&(process[_0x34fbd1(0xee)][_0x34fbd1(0xa4)]=process[_0x34fbd1(0xee)][_0x34fbd1(0xa4)]||_0x314186[_0x34fbd1(0xb0)][_0x34fbd1(0x137)]);const _0x19ccfc=!helper['isFalse'](process[_0x34fbd1(0xee)][_0x34fbd1(0xa4)]);let _0x113e90=![];_0x314186[_0x34fbd1(0xb0)][_0x34fbd1(0xdc)]&&(_0x113e90=!![],process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x314186[_0x34fbd1(0xb0)][_0x34fbd1(0xdc)]);_0x314186[_0x34fbd1(0xb0)][_0x34fbd1(0x143)]&&(process['env'][_0x34fbd1(0xe7)]=JSON[_0x34fbd1(0xc8)](_0x314186['config'][_0x34fbd1(0x143)]));const _0x1f3924=_0x4c98f7['concat'](),_0x17308b=await _0x2dd025[_0x34fbd1(0x131)](getUserPlaywrightConfig,_0x243f56,_0x4c98f7);if(helper[_0x34fbd1(0xca)](_0x17308b)){_0x2dd025['ROfvK'](spawnOriginalProcess,_0x1f3924);return;}const _0x413c7a={..._0x17308b[_0x34fbd1(0xb0)]},_0x28629c=_0x413c7a,_0x8e4b21=_0x17308b[_0x34fbd1(0x81)]?path[_0x34fbd1(0xe4)](_0x17308b[_0x34fbd1(0x81)]):process[_0x34fbd1(0x13d)]();process['env'][_0x34fbd1(0xf4)]=_0x8e4b21;if(!_0x2dd025[_0x34fbd1(0x8f)](setGlobalSetup,_0x28629c,_0x8e4b21)){_0x2dd025[_0x34fbd1(0xe3)](spawnOriginalProcess,_0x1f3924);return;}const _0x3374ab=await SessionHandler[_0x34fbd1(0x122)](_0x314186[_0x34fbd1(0xb0)],{'frameworkName':FRAMEWORKS[_0x34fbd1(0x136)],'frameworkVersion':_0x2dd025[_0x34fbd1(0x10f)](getFrameworkVersion,FRAMEWORKS['PLAYWRIGHT'])});if(_0x19ccfc){const _0x23f4be=_0x2dd025[_0x34fbd1(0xbe)][_0x34fbd1(0x138)]('|');let _0x1433ad=0x0;while(!![]){switch(_0x23f4be[_0x1433ad++]){case'0':_0x2dd025[_0x34fbd1(0x131)](initO11yCrashReporter,_0x28629c,_0x314186['config']);continue;case'1':await _0x2dd025['ROfvK'](launchO11ySession,_0x3374ab);continue;case'2':_0x2dd025['zLWqW'](addReporter,_0x28629c);continue;case'3':_0x2dd025['ROfvK'](handleO11yRerun,_0x4c98f7);continue;case'4':logger[_0x34fbd1(0xa5)](_0x2dd025['vpdov']);continue;}break;}}let _0x60457d=_0x2dd025['bTwEL'](process[_0x34fbd1(0xee)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML'],_0x2dd025[_0x34fbd1(0xc7)]);_0x60457d=_0x60457d||_0x2dd025[_0x34fbd1(0xd9)](checkAccessibilityPlatformConfig,_0x314186['config']),process[_0x34fbd1(0xee)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x60457d;if(_0x60457d){const [_0x51a83f,_0x344af9]=await _0x2dd025[_0x34fbd1(0xb9)](createAccessibilityTestRun,_0x314186[_0x34fbd1(0xb0)],_0x2dd025['vhgdD']);logger[_0x34fbd1(0x11d)](_0x34fbd1(0x107)+_0x344af9),process[_0x34fbd1(0xee)][_0x34fbd1(0x10e)]=_0x51a83f,process[_0x34fbd1(0xee)][_0x34fbd1(0x91)]=_0x344af9,_0x2dd025['qHIuh'](setAccessibilityCapabilities,_0x314186[_0x34fbd1(0xb0)]);}(helper[_0x34fbd1(0xca)](_0x314186[_0x34fbd1(0xb0)][_0x34fbd1(0x8c)])||_0x2dd025[_0x34fbd1(0x10a)](_0x314186[_0x34fbd1(0xb0)]['platforms'][_0x34fbd1(0xa1)],0x0))&&(process[_0x34fbd1(0xee)][_0x34fbd1(0x80)]=![]);const _0x5ea9da=path['join'](_0x17308b[_0x34fbd1(0x81)]?path[_0x34fbd1(0xe4)](_0x17308b['path']):process[_0x34fbd1(0x13d)](),_0x2dd025[_0x34fbd1(0xe2)]);fs[_0x34fbd1(0x10d)](_0x5ea9da,helper[_0x34fbd1(0xcf)](_0x314186['config'])),process['env'][_0x34fbd1(0xd6)]=_0x5ea9da,helper[_0x34fbd1(0xab)]();if(helper[_0x34fbd1(0xfb)](process[_0x34fbd1(0xee)][_0x34fbd1(0x80)])){let _0x119e64=[];try{const _0x8de115=helper[_0x34fbd1(0x124)]['apply'](null,_0x2dd025['SgcaX'](getProjectUtilsPath)),_0x467571={};_0x467571[_0x34fbd1(0xbf)]=!![],_0x467571[_0x34fbd1(0xad)]='',_0x467571[_0x34fbd1(0xae)]='',_0x467571[_0x34fbd1(0x133)]='';const _0x5558e7={};_0x5558e7[_0x34fbd1(0xbf)]=!![];const _0x4880d6={};_0x4880d6['project']=_0x467571,_0x4880d6[_0x34fbd1(0xaf)]=_0x5558e7;let _0x301195=_0x4880d6;_0x28629c[_0x2dd025[_0x34fbd1(0xe9)]]&&(_0x301195[_0x34fbd1(0xd7)][_0x2dd025['SkAPj']]=_0x28629c[_0x2dd025[_0x34fbd1(0xe9)]]),_0x28629c[_0x2dd025['QortW']]&&(_0x301195[_0x34fbd1(0xd7)][_0x2dd025[_0x34fbd1(0xbb)]]=_0x28629c[_0x2dd025[_0x34fbd1(0xbb)]]),_0x28629c[_0x2dd025[_0x34fbd1(0xeb)]]&&(_0x301195['project'][_0x2dd025[_0x34fbd1(0xeb)]]=_0x28629c[_0x2dd025[_0x34fbd1(0xeb)]]),_0x301195=Object[_0x34fbd1(0x125)](_0x301195,_0x301195['project']),_0x119e64=await _0x8de115[_0x34fbd1(0xb5)](_0x301195);}catch(_0x84d0e5){logger[_0x34fbd1(0x11d)](_0x2dd025[_0x34fbd1(0xf9)](_0x2dd025['HXIWu'],_0x2dd025['pTYHr'](format,_0x84d0e5)));}}let _0x11e5eb='';_0x2dd025[_0x34fbd1(0x10a)](helper[_0x34fbd1(0x141)](),constants['PACKAGE_TYPE'][_0x34fbd1(0xd0)])?_0x11e5eb=_0x2dd025[_0x34fbd1(0xf0)]:_0x11e5eb=_0x2dd025['JPbgJ'];const _0x4032ac=path[_0x34fbd1(0x13a)](_0x17308b[_0x34fbd1(0x81)]?path[_0x34fbd1(0xe4)](_0x17308b[_0x34fbd1(0x81)]):process['cwd'](),_0x11e5eb);let _0xc3b1=_0x17308b['path']?_0x17308b[_0x34fbd1(0x81)]:'';_0xc3b1=_0x2dd025[_0x34fbd1(0x108)](_0xc3b1[_0x34fbd1(0xa1)],0x0)?path[_0x34fbd1(0x12d)](_0xc3b1):'',process['env'][_0x34fbd1(0x88)]=_0xc3b1;let _0xeb23cb=_0x34fbd1(0xd3);const _0x4a79e5=helper['getProxyUrl'](_0x314186[_0x34fbd1(0xb0)]);_0x4a79e5&&(_0xeb23cb=_0x2dd025[_0x34fbd1(0x140)](_0x34fbd1(0x102)+_0x4a79e5+'\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();',_0xeb23cb));helper[_0x34fbd1(0xb1)]({},_0x4c98f7),fs[_0x34fbd1(0x10d)](_0x4032ac,_0xeb23cb),helper[_0x34fbd1(0x8e)]();const _0x62d951=_0x2dd025[_0x34fbd1(0xf1)](spawn,_0x2dd025[_0x34fbd1(0xef)],[_0x2dd025['smJds'],_0x2dd025[_0x34fbd1(0x8a)],_0x2dd025[_0x34fbd1(0xc5)],_0x4032ac,..._0x4c98f7[_0x34fbd1(0xdf)](0x2)],{'shell':_0x2dd025[_0x34fbd1(0x113)](process[_0x34fbd1(0xa2)],_0x2dd025[_0x34fbd1(0x85)]),'stdio':_0x2dd025['mNJEB'],'cwd':process[_0x34fbd1(0x13d)](),'env':Object[_0x34fbd1(0x125)]({},process[_0x34fbd1(0xee)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x34fbd1(0xdb)](_0x243f56),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x314186[_0x34fbd1(0xb0)][_0x34fbd1(0xa3)]['skipSessionStatus'],'BROWSERSTACK_SKIP_SESSION_NAME':_0x314186[_0x34fbd1(0xb0)][_0x34fbd1(0xa3)][_0x34fbd1(0x7e)],'BROWSERSTACK_LOG_LEVEL':_0x314186[_0x34fbd1(0xb0)][_0x34fbd1(0x95)]})}),_0x40f703=()=>{const _0x4f2bfb=_0x34fbd1;try{const _0x139e98=path['join'](helper[_0x4f2bfb(0x92)](),_0x2dd025[_0x4f2bfb(0x99)],_0x2dd025[_0x4f2bfb(0x11c)]);if(fs[_0x4f2bfb(0x9d)](_0x139e98)){let _0x492320=fs['readFileSync'](_0x139e98);_0x492320=JSON[_0x4f2bfb(0xd2)](_0x492320),_0x314186[_0x4f2bfb(0x9e)]=_0x492320,fs[_0x4f2bfb(0xba)](_0x139e98);}}catch(_0x28cfb8){logger[_0x4f2bfb(0x11d)](_0x2dd025[_0x4f2bfb(0xa8)](_0x2dd025[_0x4f2bfb(0x115)],_0x28cfb8));}};_0x62d951['on'](_0x2dd025[_0x34fbd1(0x106)],async _0x314f18=>{const _0x34f31d=_0x34fbd1;try{const _0x54de89=_0x2dd025[_0x34f31d(0x11a)][_0x34f31d(0x138)]('|');let _0x3ab555=0x0;while(!![]){switch(_0x54de89[_0x3ab555++]){case'0':_0x2dd025[_0x34f31d(0xde)](_0x40f703);continue;case'1':logger[_0x34f31d(0x11d)](_0x34f31d(0xbd)+_0x5ea9da);continue;case'2':fs[_0x34f31d(0xba)](_0x5ea9da);continue;case'3':logger[_0x34f31d(0x11d)]('Playwright\x20process\x20exited\x20with\x20code\x20'+_0x314f18);continue;case'4':await helper[_0x34f31d(0xdd)](_0x314186);continue;case'5':logger['info'](_0x34f31d(0xbd)+_0x4032ac);continue;case'6':await _0x2dd025[_0x34f31d(0xe5)](stopAccessibilityTestRun,_0x314186[_0x34f31d(0xb0)]);continue;case'7':process[_0x34f31d(0xb2)]=_0x314f18;continue;case'8':fs[_0x34f31d(0xba)](_0x4032ac);continue;}break;}}catch(_0x1e9fff){logger[_0x34f31d(0x11d)](_0x2dd025[_0x34f31d(0xa8)](_0x2dd025['wnsWE'],_0x1e9fff));}});}module[a33_0x3e1458(0xf7)]=run;
|
|
2
|
+
'use strict';const a33_0x49954d=a33_0xf1c6;function a33_0x13f6(){const _0x2372c7=['XvZSW','cliConfig','BROWSERSTACK_PW_CONFIG_DIR','HYKic','concat','startsWith','isTrue','KMgaV','Error\x20in\x20getting\x20funnel\x20data\x20results','reporter','exitCode','BROWSERSTACK_AUTOMATION','PzJYK','SUcha','Can\x27t\x20get\x20user\x20defined\x20global\x20setup\x20file','2nwKzhi','Error\x20in\x20importing\x20your\x20playwright\x20config:\x20','skipSessionName','testContextOptions','amWFV','UYfJe','GqgKd','respectGitIgnore','Tixiq','GwCGk','--grep','BrowserStack\x20Accessibility\x20Automation\x20Test\x20Run\x20ID:\x20','skipSessionStatus','cwd','1240058YgvgXL','6777430UQDabV','eGFDn','../../helpers/BrowserStackSetup','kiIIu','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','homedir','Error\x20in\x20closing\x20playwright','slice','filterBrowserstackConfig','RGbqW','fsibL','2|0|4|1|3','npx','oKTzc','launch','./reporter/reporter.js','Deleting\x20','--config=','USER_CONFIG_DETAILS_PATH','6yyYDkx','collectFilesForProject','exports','BhMTV','TkUjZ','xKjYn','debug','clearTempPWConfig','10924501gXeKMv','argv','BROWSERSTACK_SETUP_CONFIG_PATH','hYarr','--disable-browserstack-automation','PLAYWRIGHT','errorMessage','bkPwU','jNVzR','testMatch','accessibility','../../helpers/helper','./globalSetup.js','BS_A11Y_TEST_RUN_ID','OVciw','testIgnore','FWHTO','uOTms','HTcmg','requirePWModule','PZwff','stringify','config','project','util','path','playwright-browserstack-sdk.config.cjs','Tarrq','lVQjU','test','isFalse','default','FfzaT','playwright','bWjNE','split','MODULE','10818999bqPLVa','xZkTv','map','LLPSV','../../helpers/accessibility-automation/helper','apply','unlinkSync','winstonLogger','AfOts','PACKAGE_TYPE','testObservability','playwright-browserstack-sdk.config.js','QgqfV','getProxyUrl','Fmbgw','dTtAd','resolve','browserstackSetupConfig.json','koXYS','finalExecution','join','POGhG','push','isUndefined','OIBby','wVBzF','nxfTP','bajAm','kUEgZ','assign','dirname','cWRFK','xgUDF','initialize','null','DfGQH','lAYva','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','env','MvcZQ','indexOf','logLevel','automation','Getting\x20your\x20playwright\x20config\x20from\x20','findIndex','trim','Playwright\x20process\x20exited\x20with\x20code\x20','win32','PAETk','accessibilityOptions','length','Adding\x20browserstack\x20configs\x20to\x20setup\x20for\x20Observability','writeFileSync','getConfigPath','existsSync','rpMrR','mqufk','10mjWlya','BDUgA','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','filter','false','EATql','6|1|0|8|3|7|5|4|2','../../helpers/test-observability/sessionHandler','../../helpers/logger','testDir','PITHD','--config','platforms','9360680nNystV','_internal','LNSSy','BROWSERSTACK_TEST_ACCESSIBILITY_YML','error','tgOAS','.browserstack','mAiNA','AYHGt','inherit','uSeGX','BROWSERSTACK_TEST_OBSERVABILITY','MYUVB','zKzAc','187564jYATyo','etDRi','../utils/constants','JowbW','bxQQT','hCoxy','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','GqCNQ','info','get','./accessibility-helper','../../helpers/test-observability/error-handler','NVKFk','globalSetup','BS_A11Y_JWT','has','gYhDn','1443930dGwdgU','readFileSync','object','parse','DrXLv','platform','sRjym','../../helpers/test-observability/utils','ERrBX','markSDKSetupComplete','serializeToYamlString','FfyiH'];a33_0x13f6=function(){return _0x2372c7;};return a33_0x13f6();}(function(_0x2e38bf,_0x5ba88b){const _0x1427f9=a33_0xf1c6,_0x3378a5=_0x2e38bf();while(!![]){try{const _0x1932be=parseInt(_0x1427f9(0x215))/0x1*(parseInt(_0x1427f9(0x223))/0x2)+-parseInt(_0x1427f9(0x237))/0x3*(-parseInt(_0x1427f9(0x1e9))/0x4)+parseInt(_0x1427f9(0x29d))/0x5*(parseInt(_0x1427f9(0x1fa))/0x6)+-parseInt(_0x1427f9(0x23f))/0x7+-parseInt(_0x1427f9(0x2aa))/0x8+parseInt(_0x1427f9(0x264))/0x9+parseInt(_0x1427f9(0x224))/0xa;if(_0x1932be===_0x5ba88b)break;else _0x3378a5['push'](_0x3378a5['shift']());}catch(_0x353b57){_0x3378a5['push'](_0x3378a5['shift']());}}}(a33_0x13f6,0xeb6b4));const fs=require('fs'),path=require(a33_0x49954d(0x258)),os=require('os'),{spawn}=require('child_process'),{format}=require(a33_0x49954d(0x257)),logger=require(a33_0x49954d(0x2a5))[a33_0x49954d(0x26b)],{default:BrowserStackSetup}=require(a33_0x49954d(0x226)),helper=require(a33_0x49954d(0x24a)),constants=require(a33_0x49954d(0x1eb)),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require('./reporter/pwUtils'),{CrashReporter,o11yErrorHandler}=require(a33_0x49954d(0x1f4)),{getFrameworkVersion}=require(a33_0x49954d(0x201)),{createAccessibilityTestRun,stopAccessibilityTestRun,checkAccessibilityPlatformConfig}=require(a33_0x49954d(0x268)),{setAccessibilityCapabilities}=require(a33_0x49954d(0x1f3)),SessionHandler=require(a33_0x49954d(0x2a4));async function requireOrImportDefaultObject(_0x154455){const _0x487c4a=a33_0x49954d,_0x414e53={'FWHTO':function(_0x5f5a84){return _0x5f5a84();},'UYfJe':function(_0x3d4fca,_0x2717ac){return _0x3d4fca(_0x2717ac);},'tgOAS':function(_0x23d440,_0x475ffb){return _0x23d440===_0x475ffb;},'Tarrq':'object','SIErz':function(_0xb56c7c,_0x25d7b9){return _0xb56c7c in _0x25d7b9;},'hYarr':_0x487c4a(0x25e)},{requireOrImport:_0xbac617}=helper['requirePWModule'][_0x487c4a(0x269)](null,_0x414e53[_0x487c4a(0x24f)](getTransformPath));let _0x2710bc=await _0x414e53[_0x487c4a(0x21a)](_0xbac617,_0x154455);return _0x2710bc&&_0x414e53[_0x487c4a(0x2af)](typeof _0x2710bc,_0x414e53[_0x487c4a(0x25a)])&&_0x414e53['SIErz'](_0x414e53[_0x487c4a(0x242)],_0x2710bc)&&(_0x2710bc=_0x2710bc[_0x414e53['hYarr']]),_0x2710bc;}const getUserPlaywrightConfig=async(_0x514c51,_0x1358cc)=>{const _0x17ccbc=a33_0x49954d,_0x5b37ef={'PITHD':function(_0x1fb783){return _0x1fb783();},'mUeGa':function(_0x2e3846,_0xba0383){return _0x2e3846(_0xba0383);},'fLIlI':function(_0x2a0129,_0x1adf22){return _0x2a0129(_0x1adf22);},'SUcha':'resolvedConfigFile','AFwvW':function(_0x49d3d9,_0x11925d){return _0x49d3d9(_0x11925d);},'MvcZQ':_0x17ccbc(0x216),'DVKfn':_0x17ccbc(0x1ef),'yNnKV':_0x17ccbc(0x235)},_0x5d9795=!helper[_0x17ccbc(0x27b)](_0x514c51[_0x17ccbc(0x255)]),_0x4aea41=_0x5d9795?path[_0x17ccbc(0x274)](process[_0x17ccbc(0x222)](),_0x514c51['config']):process['cwd'](),{resolveConfigFile:_0x2ef8f7,resolveConfigLocation:_0x912247}=helper[_0x17ccbc(0x252)][_0x17ccbc(0x269)](null,_0x5b37ef[_0x17ccbc(0x2a7)](getConfigLoaderPath)),_0x392350=_0x2ef8f7?_0x5b37ef['mUeGa'](_0x2ef8f7,_0x4aea41):helper['nestedKeyValue'](_0x5b37ef['fLIlI'](_0x912247,_0x4aea41),[_0x5b37ef[_0x17ccbc(0x213)]]);let _0x1772d6={};if(_0x392350){logger[_0x17ccbc(0x1f1)](_0x17ccbc(0x28f)+_0x392350);try{_0x1772d6=await _0x5b37ef['AFwvW'](requireOrImportDefaultObject,_0x392350);}catch(_0x124544){return logger[_0x17ccbc(0x2ae)](_0x5b37ef[_0x17ccbc(0x28b)],_0x5b37ef['mUeGa'](format,_0x124544)),null;}}else logger[_0x17ccbc(0x1f1)](_0x5b37ef['DVKfn']);if(_0x5d9795){const _0x590d8b=_0x1358cc[_0x17ccbc(0x290)](_0x392b51=>_0x392b51===_0x17ccbc(0x2a8)||_0x392b51==='-c'||_0x392b51[_0x17ccbc(0x20b)]('--config='));_0x1358cc['splice'](_0x590d8b,_0x1358cc[_0x590d8b][_0x17ccbc(0x20b)](_0x5b37ef['yNnKV'])?0x1:0x2);}const _0x4e9bf8={};return _0x4e9bf8[_0x17ccbc(0x258)]=_0x392350,_0x4e9bf8['config']=_0x1772d6,_0x4e9bf8;},setGlobalSetup=(_0x46a11a,_0x408899)=>{const _0x576cd0=a33_0x49954d,_0x2a32ef={'mAiNA':'globalSetup','JowbW':_0x576cd0(0x214),'DfGQH':function(_0x173e60,_0x47d90e){return _0x173e60+_0x47d90e;},'GqgKd':'Error\x20in\x20running\x20user\x20global\x20setup\x20for\x20playwright','xKjYn':function(_0x44da22,_0x397f30){return _0x44da22(_0x397f30);},'FfyiH':_0x576cd0(0x24b)};if(!_0x46a11a)return![];try{if(_0x46a11a[_0x576cd0(0x1f6)]){let _0x3b2138;const _0x12ae6c=path[_0x576cd0(0x274)](_0x408899,_0x46a11a[_0x2a32ef[_0x576cd0(0x1e2)]]);if(fs[_0x576cd0(0x29a)](_0x12ae6c))_0x3b2138=_0x12ae6c;else{const _0x21daca={};_0x21daca['paths']=[_0x408899],_0x3b2138=require[_0x576cd0(0x274)](_0x46a11a[_0x2a32ef[_0x576cd0(0x1e2)]],_0x21daca);}if(!_0x3b2138)throw new Error(_0x2a32ef[_0x576cd0(0x1ec)]);process['env'][_0x576cd0(0x29f)]=_0x3b2138;}}catch(_0x172765){logger[_0x576cd0(0x2ae)](_0x2a32ef[_0x576cd0(0x287)](_0x2a32ef[_0x576cd0(0x21b)],_0x2a32ef[_0x576cd0(0x23c)](format,_0x172765)));}return _0x46a11a['globalSetup']=require['resolve'](_0x2a32ef[_0x576cd0(0x205)]),!![];},addReporter=_0x18633f=>{const _0x34c638=a33_0x49954d,_0x21697d={};_0x21697d[_0x34c638(0x1e7)]=_0x34c638(0x233),_0x21697d['dTtAd']=_0x34c638(0x20f),_0x21697d[_0x34c638(0x27d)]=function(_0x187861,_0x269904){return _0x187861===_0x269904;},_0x21697d['qtOgJ']='string',_0x21697d[_0x34c638(0x1f5)]=function(_0x41971c,_0x224042){return _0x41971c===_0x224042;},_0x21697d[_0x34c638(0x288)]=_0x34c638(0x1fc);const _0x4f3fb5=_0x21697d,_0x324272=path[_0x34c638(0x278)](__dirname,_0x4f3fb5['MYUVB']),_0x3c18db=[_0x324272];if(helper[_0x34c638(0x27b)](_0x18633f[_0x4f3fb5['dTtAd']]))_0x18633f[_0x4f3fb5[_0x34c638(0x273)]]=[_0x3c18db];else{if(_0x4f3fb5[_0x34c638(0x27d)](typeof _0x18633f[_0x4f3fb5['dTtAd']],_0x4f3fb5['qtOgJ']))_0x18633f[_0x4f3fb5[_0x34c638(0x273)]]=[[_0x18633f[_0x4f3fb5['dTtAd']]],_0x3c18db];else _0x4f3fb5[_0x34c638(0x1f5)](typeof _0x18633f[_0x4f3fb5[_0x34c638(0x273)]],_0x4f3fb5[_0x34c638(0x288)])&&_0x18633f[_0x4f3fb5['dTtAd']][_0x34c638(0x27a)](_0x3c18db);}},handleO11yRerun=_0x494ec5=>{const _0xa3778c=a33_0x49954d,_0x250aab={};_0x250aab['PzJYK']=function(_0x21d783,_0x553eef){return _0x21d783!==_0x553eef;},_0x250aab[_0xa3778c(0x284)]=_0xa3778c(0x286),_0x250aab['bEnOU']=_0xa3778c(0x21f);const _0x500c37=_0x250aab,_0x37cda9=helper['isTrue'](process['env']['BROWSERSTACK_RERUN']);if(_0x37cda9){const _0x58cdeb=process[_0xa3778c(0x28a)]['BROWSERSTACK_RERUN_TESTS'],_0x3ec400=[];if(_0x500c37[_0xa3778c(0x212)](_0x58cdeb,_0x500c37[_0xa3778c(0x284)])&&!helper['isUndefined'](_0x58cdeb)){_0x58cdeb[_0xa3778c(0x262)](',')[_0xa3778c(0x266)](_0x44cc9b=>{const _0x3a1304=_0xa3778c;_0x3ec400[_0x3a1304(0x27a)]('('+_0x44cc9b[_0x3a1304(0x291)]()+')');});const _0x355354='^'+_0x3ec400['join']('|')+'$';_0x494ec5[_0xa3778c(0x27a)](_0x500c37['bEnOU'],_0x355354);}}},spawnOriginalProcess=_0x494d16=>{const _0x4cf988=a33_0x49954d,_0x51151f={'XvZSW':function(_0x365617,_0x1d8a5c,_0xa133da,_0x551de7){return _0x365617(_0x1d8a5c,_0xa133da,_0x551de7);},'ZMlsn':_0x4cf988(0x230),'KMgaV':'playwright','wllky':function(_0x121b38,_0x12f3f9){return _0x121b38===_0x12f3f9;},'xcFtO':_0x4cf988(0x293),'LLPSV':_0x4cf988(0x1e4)};_0x51151f[_0x4cf988(0x206)](spawn,_0x51151f['ZMlsn'],[_0x51151f[_0x4cf988(0x20d)],..._0x494d16[_0x4cf988(0x22b)](0x1)],{'shell':_0x51151f['wllky'](process[_0x4cf988(0x1ff)],_0x51151f['xcFtO']),'stdio':_0x51151f[_0x4cf988(0x267)],'cwd':process['cwd']()});},isTestCommand=(_0x70e74f,_0x10d7ff)=>{const _0x3e4164=a33_0x49954d,_0x271014={};_0x271014[_0x3e4164(0x29b)]=function(_0x413375,_0x35c531){return _0x413375>_0x35c531;},_0x271014['bxQQT']=function(_0x145d1a,_0x46e628){return _0x145d1a===_0x46e628;},_0x271014[_0x3e4164(0x1e8)]='test';const _0xac3916=_0x271014;if(_0xac3916[_0x3e4164(0x29b)](_0x10d7ff[_0x3e4164(0x296)],0x1)&&_0xac3916[_0x3e4164(0x1ed)](_0x10d7ff[0x1],_0xac3916['zKzAc']))return!![];return![];},initO11yCrashReporter=(_0x186667,_0xe3f434)=>{const _0x109b1f=a33_0x49954d,_0x3b011e={'QrmBh':function(_0x39025a,_0x5437b6){return _0x39025a(_0x5437b6);}},_0x54027c={'frameworkName':FRAMEWORKS[_0x109b1f(0x244)],'frameworkVersion':_0x3b011e['QrmBh'](getFrameworkVersion,FRAMEWORKS[_0x109b1f(0x244)])};CrashReporter[_0x109b1f(0x285)](_0x54027c,_0x186667,_0xe3f434);},launchO11ySession=o11yErrorHandler(async function launchO11ySession(_0x56da9e){const _0x429759=a33_0x49954d,_0xcb3a81={};_0xcb3a81[_0x429759(0x21d)]=function(_0x22d002,_0x2df224){return _0x22d002>_0x2df224;},_0xcb3a81[_0x429759(0x280)]=function(_0x523d02,_0xc19f4c){return _0x523d02===_0xc19f4c;};const _0x10b229=_0xcb3a81;if(!_0x56da9e||_0x10b229[_0x429759(0x21d)](_0x56da9e[_0x429759(0x296)],0x1)&&_0x10b229[_0x429759(0x280)](_0x56da9e[0x0],null))return process['env']['BROWSERSTACK_TEST_OBSERVABILITY']=![],![];return!![];});function a33_0xf1c6(_0x3c4f22,_0x24ebfc){const _0x13f60e=a33_0x13f6();return a33_0xf1c6=function(_0xf1c6d8,_0x341aaa){_0xf1c6d8=_0xf1c6d8-0x1e2;let _0x5b4fc0=_0x13f60e[_0xf1c6d8];return _0x5b4fc0;},a33_0xf1c6(_0x3c4f22,_0x24ebfc);}async function run(_0x1b2d3d,_0x1ab63f){const _0x2f2740=a33_0x49954d,_0x3ad43e={'xZkTv':_0x2f2740(0x2b0),'ERrBX':'pw_result.json','etDRi':function(_0x9d0233,_0x3c4e2c){return _0x9d0233+_0x3c4e2c;},'tuCCE':_0x2f2740(0x20e),'cWRFK':_0x2f2740(0x2a3),'OIBby':function(_0x250df,_0x5b211c){return _0x250df(_0x5b211c);},'bWjNE':function(_0x3e8af9){return _0x3e8af9();},'OVciw':_0x2f2740(0x22a),'qowSS':_0x2f2740(0x243),'lVQjU':_0x2f2740(0x2a1),'uOTms':'--disable-test-observability','GwCGk':function(_0x1e82e7,_0x4763fe){return _0x1e82e7>=_0x4763fe;},'PAETk':'Error\x20in\x20deleting\x20playwright\x20results','DrXLv':function(_0xf87b5a,_0x154314,_0x33d0d0){return _0xf87b5a(_0x154314,_0x33d0d0);},'hCoxy':function(_0x1b3e2c,_0x3e142f){return _0x1b3e2c(_0x3e142f);},'Fmbgw':'BrowserStack\x20config\x20file\x20not\x20found.','PZwff':_0x2f2740(0x28e),'nxfTP':function(_0x279ca3,_0x296fb0){return _0x279ca3!=_0x296fb0;},'QgqfV':function(_0xb79294,_0x5b6d3b,_0x2601e3){return _0xb79294(_0x5b6d3b,_0x2601e3);},'mqufk':function(_0xfb00ce,_0x3f1871){return _0xfb00ce(_0x3f1871);},'uSeGX':function(_0x235371,_0x534e7f){return _0x235371(_0x534e7f);},'xnWtp':_0x2f2740(0x22f),'fFgYR':_0x2f2740(0x297),'kiIIu':function(_0xb112c1,_0x427bcb){return _0xb112c1(_0x427bcb);},'fsibL':function(_0x4a5f9f,_0x508ce8){return _0x4a5f9f(_0x508ce8);},'TkUjZ':function(_0x29e8d4,_0x25c580){return _0x29e8d4===_0x25c580;},'amWFV':'true','sRjym':function(_0x365cef,_0x35394b){return _0x365cef(_0x35394b);},'jNVzR':function(_0x55832d,_0x1cadee,_0x21e7bf){return _0x55832d(_0x1cadee,_0x21e7bf);},'oKTzc':'@playwright/test','BDUgA':function(_0x5b5c92,_0x25e869){return _0x5b5c92===_0x25e869;},'HYKic':_0x2f2740(0x275),'HTcmg':function(_0xacee60){return _0xacee60();},'AYHGt':_0x2f2740(0x2a6),'POGhG':_0x2f2740(0x248),'eGFDn':_0x2f2740(0x24e),'bajAm':'Error\x20in\x20generating\x20parallellised\x20config\x20for\x20playwright:\x20','gfsGz':function(_0x58b2a9,_0x5ee1a1){return _0x58b2a9===_0x5ee1a1;},'GqCNQ':_0x2f2740(0x259),'koXYS':_0x2f2740(0x26f),'Ybave':function(_0x1ee85d,_0xdb72ce){return _0x1ee85d>_0xdb72ce;},'pLEzD':function(_0xcece2c,_0x39684b){return _0xcece2c+_0x39684b;},'LNSSy':function(_0x3af794,_0x4a6796,_0x1f78b9,_0x31c81){return _0x3af794(_0x4a6796,_0x1f78b9,_0x31c81);},'gYhDn':_0x2f2740(0x230),'EATql':_0x2f2740(0x260),'fMkTP':_0x2f2740(0x25c),'RGbqW':'--config','BhMTV':function(_0x107e0b,_0x85f985){return _0x107e0b===_0x85f985;},'bkPwU':_0x2f2740(0x293),'AfOts':_0x2f2740(0x1e4),'FfzaT':'close'};!helper[_0x2f2740(0x25d)](process[_0x2f2740(0x28a)][_0x2f2740(0x211)])&&(process[_0x2f2740(0x28a)][_0x2f2740(0x211)]=!![]);process[_0x2f2740(0x240)]['includes'](_0x3ad43e['qowSS'])&&(process['env'][_0x2f2740(0x211)]=_0x3ad43e[_0x2f2740(0x25b)],_0x1ab63f=_0x1ab63f[_0x2f2740(0x2a0)](_0x91a645=>_0x91a645!==_0x2f2740(0x243)));const _0x518a7b=_0x1ab63f[_0x2f2740(0x28c)](_0x3ad43e[_0x2f2740(0x250)]);_0x3ad43e[_0x2f2740(0x21e)](_0x518a7b,0x0)&&(process[_0x2f2740(0x28a)][_0x2f2740(0x1e6)]=_0x3ad43e['lVQjU'],_0x1ab63f=_0x1ab63f['filter'](_0x110e6e=>_0x110e6e!=='--disable-test-observability'));try{const _0x320265=path[_0x2f2740(0x278)](helper[_0x2f2740(0x229)](),_0x3ad43e[_0x2f2740(0x265)],_0x3ad43e[_0x2f2740(0x202)]);fs['existsSync'](_0x320265)&&fs[_0x2f2740(0x26a)](_0x320265);}catch(_0x72b900){logger[_0x2f2740(0x23d)](_0x3ad43e[_0x2f2740(0x1ea)](_0x3ad43e[_0x2f2740(0x294)],_0x72b900));}if(!_0x3ad43e[_0x2f2740(0x1fe)](isTestCommand,_0x1b2d3d,_0x1ab63f)){_0x3ad43e[_0x2f2740(0x1ee)](spawnOriginalProcess,_0x1ab63f);return;}const _0x125176=new BrowserStackSetup(_0x1b2d3d,FRAMEWORKS['PLAYWRIGHT']);if(!_0x125176[_0x2f2740(0x255)]){logger[_0x2f2740(0x2ae)](_0x3ad43e[_0x2f2740(0x272)]);return;}await _0x125176['initialize']();!helper[_0x2f2740(0x27b)](_0x125176['cliConfig'])&&_0x125176[_0x2f2740(0x207)][_0x2f2740(0x1f8)](_0x3ad43e[_0x2f2740(0x253)])&&(process[_0x2f2740(0x28a)]['BROWSERSTACK_AUTOMATION']=_0x125176['cliConfig'][_0x2f2740(0x1f2)](_0x3ad43e[_0x2f2740(0x253)])||!![]);_0x3ad43e[_0x2f2740(0x27e)](_0x125176['config'][_0x2f2740(0x26e)],null)&&!helper[_0x2f2740(0x20c)](process['env'][_0x2f2740(0x1e6)])&&(process['env']['BROWSERSTACK_TEST_OBSERVABILITY']=process[_0x2f2740(0x28a)][_0x2f2740(0x1e6)]||_0x125176[_0x2f2740(0x255)][_0x2f2740(0x26e)]);const _0x5444e2=!helper[_0x2f2740(0x25d)](process[_0x2f2740(0x28a)][_0x2f2740(0x1e6)]);let _0x40e6e8=![];_0x125176[_0x2f2740(0x255)][_0x2f2740(0x249)]&&(_0x40e6e8=!![],process[_0x2f2740(0x28a)][_0x2f2740(0x2ad)]=_0x125176['config'][_0x2f2740(0x249)]);_0x125176[_0x2f2740(0x255)][_0x2f2740(0x295)]&&(process[_0x2f2740(0x28a)][_0x2f2740(0x228)]=JSON[_0x2f2740(0x254)](_0x125176[_0x2f2740(0x255)][_0x2f2740(0x295)]));const _0x37beab=_0x1ab63f[_0x2f2740(0x20a)](),_0x4927b5=await _0x3ad43e[_0x2f2740(0x270)](getUserPlaywrightConfig,_0x1b2d3d,_0x1ab63f);if(helper['isUndefined'](_0x4927b5)){_0x3ad43e['mqufk'](spawnOriginalProcess,_0x37beab);return;}const _0x6b3d4e={..._0x4927b5[_0x2f2740(0x255)]},_0x545635=_0x6b3d4e,_0x30f725=_0x4927b5[_0x2f2740(0x258)]?path[_0x2f2740(0x282)](_0x4927b5[_0x2f2740(0x258)]):process[_0x2f2740(0x222)]();process[_0x2f2740(0x28a)][_0x2f2740(0x208)]=_0x30f725;if(!_0x3ad43e['DrXLv'](setGlobalSetup,_0x545635,_0x30f725)){_0x3ad43e[_0x2f2740(0x1ee)](spawnOriginalProcess,_0x37beab);return;}const _0x5e001b=await SessionHandler[_0x2f2740(0x232)](_0x125176['config'],{'frameworkName':FRAMEWORKS[_0x2f2740(0x244)],'frameworkVersion':_0x3ad43e['uSeGX'](getFrameworkVersion,FRAMEWORKS[_0x2f2740(0x244)])});if(_0x5444e2){const _0x1ced69=_0x3ad43e['xnWtp'][_0x2f2740(0x262)]('|');let _0x22b7a9=0x0;while(!![]){switch(_0x1ced69[_0x22b7a9++]){case'0':_0x3ad43e[_0x2f2740(0x270)](initO11yCrashReporter,_0x545635,_0x125176[_0x2f2740(0x255)]);continue;case'1':_0x3ad43e[_0x2f2740(0x29c)](handleO11yRerun,_0x1ab63f);continue;case'2':logger[_0x2f2740(0x1f1)](_0x3ad43e['fFgYR']);continue;case'3':await _0x3ad43e[_0x2f2740(0x227)](launchO11ySession,_0x5e001b);continue;case'4':_0x3ad43e[_0x2f2740(0x22e)](addReporter,_0x545635);continue;}break;}}let _0x441e87=_0x3ad43e[_0x2f2740(0x23b)](process[_0x2f2740(0x28a)][_0x2f2740(0x2ad)],_0x3ad43e[_0x2f2740(0x219)]);_0x441e87=_0x441e87||_0x3ad43e[_0x2f2740(0x200)](checkAccessibilityPlatformConfig,_0x125176['config']),process[_0x2f2740(0x28a)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x441e87;if(_0x441e87){const [_0x40de11,_0x3f9a46]=await _0x3ad43e[_0x2f2740(0x247)](createAccessibilityTestRun,_0x125176['config'],_0x3ad43e[_0x2f2740(0x231)]);logger[_0x2f2740(0x23d)](_0x2f2740(0x220)+_0x3f9a46),process[_0x2f2740(0x28a)][_0x2f2740(0x1f7)]=_0x40de11,process[_0x2f2740(0x28a)][_0x2f2740(0x24c)]=_0x3f9a46,_0x3ad43e['uSeGX'](setAccessibilityCapabilities,_0x125176['config']);}(helper[_0x2f2740(0x27b)](_0x125176[_0x2f2740(0x255)][_0x2f2740(0x2a9)])||_0x3ad43e[_0x2f2740(0x29e)](_0x125176[_0x2f2740(0x255)][_0x2f2740(0x2a9)][_0x2f2740(0x296)],0x0))&&(process['env'][_0x2f2740(0x211)]=![]);const _0x148db4=path[_0x2f2740(0x278)](_0x4927b5[_0x2f2740(0x258)]?path[_0x2f2740(0x282)](_0x4927b5[_0x2f2740(0x258)]):process['cwd'](),_0x3ad43e[_0x2f2740(0x209)]);fs[_0x2f2740(0x298)](_0x148db4,helper[_0x2f2740(0x204)](_0x125176['config'])),process[_0x2f2740(0x28a)][_0x2f2740(0x241)]=_0x148db4,helper[_0x2f2740(0x23e)]();if(helper['isTrue'](process[_0x2f2740(0x28a)][_0x2f2740(0x211)])){let _0xbc179b=[];try{const _0x5d6df3=helper[_0x2f2740(0x252)][_0x2f2740(0x269)](null,_0x3ad43e[_0x2f2740(0x251)](getProjectUtilsPath)),_0x300b0c={};_0x300b0c[_0x2f2740(0x21c)]=!![],_0x300b0c[_0x2f2740(0x2a6)]='',_0x300b0c[_0x2f2740(0x248)]='',_0x300b0c['testIgnore']='';const _0x1d0666={};_0x1d0666[_0x2f2740(0x21c)]=!![];const _0x40b72c={};_0x40b72c[_0x2f2740(0x256)]=_0x300b0c,_0x40b72c[_0x2f2740(0x2ab)]=_0x1d0666;let _0x6e84c0=_0x40b72c;_0x545635[_0x3ad43e[_0x2f2740(0x1e3)]]&&(_0x6e84c0[_0x2f2740(0x256)][_0x3ad43e[_0x2f2740(0x1e3)]]=_0x545635[_0x3ad43e[_0x2f2740(0x1e3)]]),_0x545635[_0x3ad43e[_0x2f2740(0x279)]]&&(_0x6e84c0['project'][_0x3ad43e['POGhG']]=_0x545635[_0x3ad43e[_0x2f2740(0x279)]]),_0x545635[_0x3ad43e[_0x2f2740(0x225)]]&&(_0x6e84c0['project'][_0x3ad43e[_0x2f2740(0x225)]]=_0x545635[_0x3ad43e[_0x2f2740(0x225)]]),_0x6e84c0=Object[_0x2f2740(0x281)](_0x6e84c0,_0x6e84c0['project']),_0xbc179b=await _0x5d6df3[_0x2f2740(0x238)](_0x6e84c0);}catch(_0x5af52a){logger['debug'](_0x3ad43e[_0x2f2740(0x1ea)](_0x3ad43e[_0x2f2740(0x27f)],_0x3ad43e[_0x2f2740(0x1e5)](format,_0x5af52a)));}}let _0xcc3323='';_0x3ad43e['gfsGz'](helper['getPackageType'](),constants[_0x2f2740(0x26d)][_0x2f2740(0x263)])?_0xcc3323=_0x3ad43e[_0x2f2740(0x1f0)]:_0xcc3323=_0x3ad43e[_0x2f2740(0x276)];const _0x22542e=path['join'](_0x4927b5[_0x2f2740(0x258)]?path[_0x2f2740(0x282)](_0x4927b5[_0x2f2740(0x258)]):process[_0x2f2740(0x222)](),_0xcc3323);let _0x4ccd51=_0x4927b5['path']?_0x4927b5[_0x2f2740(0x258)]:'';_0x4ccd51=_0x3ad43e['Ybave'](_0x4ccd51['length'],0x0)?path[_0x2f2740(0x274)](_0x4ccd51):'',process['env'][_0x2f2740(0x236)]=_0x4ccd51;let _0x290ec8='\x0a\x0aconst\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0amodule.exports\x20=\x20modifyPWConfig();\x0a';const _0x4316b2=helper[_0x2f2740(0x271)](_0x125176['config']);_0x4316b2&&(_0x290ec8=_0x3ad43e['pLEzD'](_0x2f2740(0x289)+_0x4316b2+'\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();',_0x290ec8));helper[_0x2f2740(0x22c)]({},_0x1ab63f),fs[_0x2f2740(0x298)](_0x22542e,_0x290ec8),helper[_0x2f2740(0x203)]();const _0x109918=_0x3ad43e[_0x2f2740(0x2ac)](spawn,_0x3ad43e[_0x2f2740(0x1f9)],[_0x3ad43e[_0x2f2740(0x2a2)],_0x3ad43e['fMkTP'],_0x3ad43e[_0x2f2740(0x22d)],_0x22542e,..._0x1ab63f['slice'](0x2)],{'shell':_0x3ad43e[_0x2f2740(0x23a)](process[_0x2f2740(0x1ff)],_0x3ad43e[_0x2f2740(0x246)]),'stdio':_0x3ad43e[_0x2f2740(0x26c)],'cwd':process[_0x2f2740(0x222)](),'env':Object[_0x2f2740(0x281)]({},process['env'],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x2f2740(0x299)](_0x1b2d3d),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x125176[_0x2f2740(0x255)][_0x2f2740(0x218)][_0x2f2740(0x221)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x125176['config'][_0x2f2740(0x218)][_0x2f2740(0x217)],'BROWSERSTACK_LOG_LEVEL':_0x125176[_0x2f2740(0x255)][_0x2f2740(0x28d)]})}),_0x1d995e=()=>{const _0x479f0c=_0x2f2740;try{const _0x1d5a0b=path['join'](helper['homedir'](),_0x3ad43e['xZkTv'],_0x3ad43e['ERrBX']);if(fs[_0x479f0c(0x29a)](_0x1d5a0b)){let _0xac7556=fs[_0x479f0c(0x1fb)](_0x1d5a0b);_0xac7556=JSON[_0x479f0c(0x1fd)](_0xac7556),_0x125176[_0x479f0c(0x245)]=_0xac7556,fs[_0x479f0c(0x26a)](_0x1d5a0b);}}catch(_0x47eabf){logger['debug'](_0x3ad43e['etDRi'](_0x3ad43e['tuCCE'],_0x47eabf));}};_0x109918['on'](_0x3ad43e[_0x2f2740(0x25f)],async _0x1c6110=>{const _0x3f60c3=_0x2f2740;try{const _0xd31dd1=_0x3ad43e[_0x3f60c3(0x283)][_0x3f60c3(0x262)]('|');let _0x5857e5=0x0;while(!![]){switch(_0xd31dd1[_0x5857e5++]){case'0':await _0x3ad43e[_0x3f60c3(0x27c)](stopAccessibilityTestRun,_0x125176[_0x3f60c3(0x255)]);continue;case'1':await helper[_0x3f60c3(0x277)](_0x125176);continue;case'2':fs[_0x3f60c3(0x26a)](_0x148db4);continue;case'3':logger[_0x3f60c3(0x23d)](_0x3f60c3(0x292)+_0x1c6110);continue;case'4':logger[_0x3f60c3(0x23d)](_0x3f60c3(0x234)+_0x148db4);continue;case'5':fs[_0x3f60c3(0x26a)](_0x22542e);continue;case'6':_0x3ad43e[_0x3f60c3(0x261)](_0x1d995e);continue;case'7':logger[_0x3f60c3(0x1f1)](_0x3f60c3(0x234)+_0x22542e);continue;case'8':process[_0x3f60c3(0x210)]=_0x1c6110;continue;}break;}}catch(_0x52a980){logger['debug'](_0x3ad43e[_0x3f60c3(0x1ea)](_0x3ad43e[_0x3f60c3(0x24d)],_0x52a980));}});}module[a33_0x49954d(0x239)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a34_0x256a29=a34_0xd9b3;function a34_0x2301(){const _0x229ab8=['resolve','3646287MJhhRb','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','../../helpers/test-observability/constants','188001ncakOt','1877308FiDedt','env','Not\x20able\x20to\x20import\x20globalSetup','\x20is\x20not\x20found','rUVtQ','4939206aBqnYw','winstonLogger','HlEiq','VGoJu','7BdBDWZ','VKZvn','function','../../helpers/logger','requirePWModule','iqdBV','PLAYWRIGHT','Call\x20to\x20child\x20fork\x20with\x20args\x20','./reporter/pwUtils','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','8bjmIHh','includes','error','hsShr','exports','zAsUZ','wknif','4268395opuAbV','EsHSO','compareVersions','bvYzH','../../helpers/test-observability/utils','2606uvbUjg','config','toString','./mock-process.js','fork','447VaxneN','apply','20852030PvpaJh','Running\x20existing\x20global\x20setup'];a34_0x2301=function(){return _0x229ab8;};return a34_0x2301();}function a34_0xd9b3(_0x22e500,_0x18e873){const _0x23012c=a34_0x2301();return a34_0xd9b3=function(_0xd9b323,_0x3f5ddc){_0xd9b323=_0xd9b323-0x13c;let _0x129d15=_0x23012c[_0xd9b323];return _0x129d15;},a34_0xd9b3(_0x22e500,_0x18e873);}(function(_0x25f186,_0x5a491a){const _0x17e621=a34_0xd9b3,_0x49b603=_0x25f186();while(!![]){try{const _0x4ab218=-parseInt(_0x17e621(0x149))/0x1+-parseInt(_0x17e621(0x13c))/0x2*(-parseInt(_0x17e621(0x141))/0x3)+parseInt(_0x17e621(0x14a))/0x4+-parseInt(_0x17e621(0x164))/0x5+parseInt(_0x17e621(0x14f))/0x6*(-parseInt(_0x17e621(0x153))/0x7)+-parseInt(_0x17e621(0x15d))/0x8*(parseInt(_0x17e621(0x146))/0x9)+parseInt(_0x17e621(0x143))/0xa;if(_0x4ab218===_0x5a491a)break;else _0x49b603['push'](_0x49b603['shift']());}catch(_0x134fb8){_0x49b603['push'](_0x49b603['shift']());}}}(a34_0x2301,0x74dbd));const child_process=require('child_process'),{FRAMEWORKS}=require(a34_0x256a29(0x148)),{getFrameworkVersion,debug}=require(a34_0x256a29(0x168)),helper=require('../../helpers/helper'),{getLoadUtilsPath,getForkProcessPath}=require(a34_0x256a29(0x15b)),logger=require(a34_0x256a29(0x156))[a34_0x256a29(0x150)];module[a34_0x256a29(0x161)]=async function(_0x4d8aed){const _0x2a7fdc=a34_0x256a29,_0x56fe8e={'zAsUZ':function(_0x3aa3e1,_0x37a008){return _0x3aa3e1(_0x37a008);},'hsShr':function(_0xd50e17){return _0xd50e17();},'wknif':_0x2a7fdc(0x13f),'HlEiq':function(_0x2d751d,_0x1c59ea){return _0x2d751d(_0x1c59ea);},'EsHSO':_0x2a7fdc(0x144),'rUVtQ':function(_0x54441f,_0x2cae7c){return _0x54441f>=_0x2cae7c;},'bvYzH':'1.33.0','wkBSw':function(_0x3b0c5c,_0x1e0bd5,_0x1a0fc3){return _0x3b0c5c(_0x1e0bd5,_0x1a0fc3);},'VGoJu':function(_0x2a2819,_0x1e149a){return _0x2a2819!==_0x1e149a;},'CSdhu':_0x2a7fdc(0x155),'VKZvn':_0x2a7fdc(0x14c),'iqdBV':function(_0x5c7d8d,_0x43ec14){return _0x5c7d8d(_0x43ec14);}},_0x13dd56=child_process[_0x2a7fdc(0x140)];child_process[_0x2a7fdc(0x140)]=function(){const _0x45a4df=_0x2a7fdc;return _0x56fe8e[_0x45a4df(0x162)](debug,_0x45a4df(0x15a)+arguments[0x0]),arguments[0x0][_0x45a4df(0x15e)](_0x56fe8e[_0x45a4df(0x160)](getForkProcessPath))?arguments[0x0]=require[_0x45a4df(0x145)](_0x56fe8e[_0x45a4df(0x163)]):logger[_0x45a4df(0x15f)]('Path\x20'+_0x56fe8e[_0x45a4df(0x160)](getForkProcessPath)+_0x45a4df(0x14d)),_0x13dd56[_0x45a4df(0x142)](null,arguments);};if(process[_0x2a7fdc(0x14b)][_0x2a7fdc(0x15c)]){_0x56fe8e[_0x2a7fdc(0x151)](debug,_0x56fe8e[_0x2a7fdc(0x165)]);try{const {loadGlobalHook:_0x218cbf}=helper[_0x2a7fdc(0x157)][_0x2a7fdc(0x142)](null,_0x56fe8e[_0x2a7fdc(0x160)](getLoadUtilsPath)),_0x2721d8=_0x56fe8e[_0x2a7fdc(0x162)](getFrameworkVersion,FRAMEWORKS[_0x2a7fdc(0x159)]);let _0x487334=_0x4d8aed;if(_0x56fe8e[_0x2a7fdc(0x14e)](helper[_0x2a7fdc(0x166)](_0x2721d8,_0x56fe8e[_0x2a7fdc(0x167)]),0x0)){const _0x52ae8b={};_0x52ae8b[_0x2a7fdc(0x13d)]=_0x4d8aed,_0x487334=_0x52ae8b;}const _0x33dac7=await _0x56fe8e['wkBSw'](_0x218cbf,_0x487334,process[_0x2a7fdc(0x14b)][_0x2a7fdc(0x15c)]);if(_0x56fe8e[_0x2a7fdc(0x152)](typeof _0x33dac7,_0x56fe8e['CSdhu']))throw new Error(_0x56fe8e[_0x2a7fdc(0x154)]);return _0x33dac7[_0x2a7fdc(0x142)](null,arguments);}catch(_0x1a880c){_0x56fe8e[_0x2a7fdc(0x158)](debug,_0x2a7fdc(0x147)+_0x1a880c[_0x2a7fdc(0x13e)]());}}};
|