browserstack-node-sdk 1.32.10 → 1.32.11
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/CFTemplates/aws-eks-cluster-dep.yaml +6 -1
- 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/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/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
|
-
|
|
1
|
+
function a28_0x4cc9(_0x181938,_0x422b61){const _0x536ed2=a28_0x536e();return a28_0x4cc9=function(_0x4cc920,_0x41b8d7){_0x4cc920=_0x4cc920-0xae;let _0x8046c0=_0x536ed2[_0x4cc920];return _0x8046c0;},a28_0x4cc9(_0x181938,_0x422b61);}const a28_0x32c3aa=a28_0x4cc9;function a28_0x536e(){const _0x3f332a=['../../../helpers/request-spy','RFOpG','478MwbEQn','3699010woVcQP','1454000CgUNvT','138yLIHti','1522161MgzgYZ','46487QokErq','152dSabpt','2455284wILQzw','timeout','restore','8aYjyCB','1901283truYLs','mochaHooks','../../../bin/utils/constants'];a28_0x536e=function(){return _0x3f332a;};return a28_0x536e();}(function(_0x3bb3cf,_0x3da7ff){const _0xce03c6=a28_0x4cc9,_0x47680a=_0x3bb3cf();while(!![]){try{const _0x4a8017=parseInt(_0xce03c6(0xb0))/0x1*(-parseInt(_0xce03c6(0xba))/0x2)+parseInt(_0xce03c6(0xb5))/0x3+-parseInt(_0xce03c6(0xb1))/0x4+parseInt(_0xce03c6(0xbc))/0x5+parseInt(_0xce03c6(0xbd))/0x6*(-parseInt(_0xce03c6(0xaf))/0x7)+-parseInt(_0xce03c6(0xb4))/0x8*(parseInt(_0xce03c6(0xae))/0x9)+parseInt(_0xce03c6(0xbb))/0xa;if(_0x4a8017===_0x3da7ff)break;else _0x47680a['push'](_0x47680a['shift']());}catch(_0x531630){_0x47680a['push'](_0x47680a['shift']());}}}(a28_0x536e,0x4eb89));const requestSpy=require(a28_0x32c3aa(0xb8)),constants=require(a28_0x32c3aa(0xb7)),{addRequestSpy}=require('../../../helpers/test-observability/utils');exports[a28_0x32c3aa(0xb6)]={'beforeAll'(){const _0x3e1f64=a28_0x32c3aa,_0x10cd9f={'RFOpG':function(_0x428bdd){return _0x428bdd();}},_0x652800='browserstack internal helper hook';_0x10cd9f[_0x3e1f64(0xb9)](addRequestSpy);},'afterAll'(){const _0x3b1b63=a28_0x32c3aa,_0x56bff9='browserstack internal helper hook';this[_0x3b1b63(0xb2)](0xea60),requestSpy[_0x3b1b63(0xb3)]();}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a29_0x597a16=a29_0x1784;function a29_0x1784(_0x3a9675,_0x2a618b){const _0x5223c0=a29_0x5223();return a29_0x1784=function(_0x17845a,_0x3fb563){_0x17845a=_0x17845a-0x12c;let _0x3b305d=_0x5223c0[_0x17845a];return _0x3b305d;},a29_0x1784(_0x3a9675,_0x2a618b);}(function(_0x1d7f31,_0x2f6431){const _0x32d658=a29_0x1784,_0x48ade9=_0x1d7f31();while(!![]){try{const _0x591722=-parseInt(_0x32d658(0x15b))/0x1+parseInt(_0x32d658(0x141))/0x2+parseInt(_0x32d658(0x156))/0x3*(-parseInt(_0x32d658(0x149))/0x4)+-parseInt(_0x32d658(0x166))/0x5*(-parseInt(_0x32d658(0x136))/0x6)+parseInt(_0x32d658(0x177))/0x7+-parseInt(_0x32d658(0x17f))/0x8+parseInt(_0x32d658(0x14b))/0x9*(-parseInt(_0x32d658(0x13c))/0xa);if(_0x591722===_0x2f6431)break;else _0x48ade9['push'](_0x48ade9['shift']());}catch(_0x5323c5){_0x48ade9['push'](_0x48ade9['shift']());}}}(a29_0x5223,0x978ee));const {v4:uuidv4}=require(a29_0x597a16(0x16f)),{name,version}=require(a29_0x597a16(0x15f)),logPatcher=require(a29_0x597a16(0x138)),BSTestOpsPatcher=new logPatcher({}),logReportingAPI=require(a29_0x597a16(0x14a)),BSTestOpsLogger=new logReportingAPI({}),{debug,isTestObservabilitySession,isInternalHook}=require('../../../helpers/test-observability/utils'),{consoleHolder}=require(a29_0x597a16(0x183)),{getPlatformVersion}=require(a29_0x597a16(0x151));function a29_0x5223(){const _0x1b621f=['OEEqQ','XvWJM','markedStatus','_beforeAll','5600736yLEpnC','forEach','hook:','map_','../../../helpers/test-observability/constants','trzjt','getSession','rvGoz','fromEntries','parent','JXwCk','_afterAll','oQtKa','ZJfpv','cIiCh','substring','failed','NLaeG','SYYlF','sendPlatformDetails','ymUcf','6195066RZbXNb','ThPLV','../../utils/logPatcher','getPlatform','YNbCb','browserstack','540Teralk','pending','suites','hookAnalyticsId','indexOf','1141228dcyELz','keys','__cloud_provider___','_afterEach','Dzpgq','bs:addPlatformDetails:','Gvehf','emit','240472ARNmOa','../../utils/logReportingAPI','43731khsLHd','getTestEnv','AtQGB','DXqVp','getBrowserName','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','../../../helpers/helper','concat','tests','slice','getHooksForTest','6imsMog','passed','automate','pid','XmvLm','646943fCBZAm','hvIMB','vYqGY','filter','../../../../package.json','getBrowserVersion','string','bWwDS','appium:app','getHookSkippedTests','ooLJh','5skKTSa','state','app','getCapabilities','toJSON','yGYAN','DRgjA','split','hook','uuid','wAOmI','generic','mWKGW','unknown_grid','wTTbV','_beforeEach','mapTestHooks','5231198gdHlRh','TIMqE','toISOString','push'];a29_0x5223=function(){return _0x1b621f;};return a29_0x5223();}console={},Object[a29_0x597a16(0x142)](consoleHolder)[a29_0x597a16(0x180)](_0x24cb2a=>{console[_0x24cb2a]=(..._0x198792)=>{BSTestOpsPatcher[_0x24cb2a](..._0x198792);};}),exports[a29_0x597a16(0x14c)]=()=>{const _0x2e808d=a29_0x597a16,_0x1ddbba={'wTTbV':_0x2e808d(0x171),'JXwCk':function(_0x4b194e){return _0x4b194e();}};return{'ci':_0x1ddbba[_0x2e808d(0x174)],'key':_0x1ddbba[_0x2e808d(0x189)](uuidv4),'version':version,'collector':'js-'+name};},exports['getHookDetails']=_0x3d0e57=>{const _0x206268=a29_0x597a16,_0xfa9196={};_0xfa9196[_0x206268(0x17c)]=function(_0x42a61e,_0x333939){return _0x42a61e!==_0x333939;},_0xfa9196[_0x206268(0x172)]=_0x206268(0x161),_0xfa9196[_0x206268(0x15c)]=_0x206268(0x181),_0xfa9196[_0x206268(0x165)]=function(_0x50303f,_0x4fa190){return _0x50303f!==_0x4fa190;},_0xfa9196[_0x206268(0x14d)]=_0x206268(0x16e);const _0x135872=_0xfa9196;if(!_0x3d0e57||_0x135872['XvWJM'](typeof _0x3d0e57,_0x135872['mWKGW']))return[null,null];if(_0x135872[_0x206268(0x17c)](_0x3d0e57[_0x206268(0x140)](_0x135872[_0x206268(0x15c)]),-0x1)){const _0x1a04d3=_0x3d0e57[_0x206268(0x16d)](_0x135872[_0x206268(0x15c)]);return[_0x1a04d3[0x0][_0x206268(0x154)](0x0,-0x1)[_0x206268(0x16d)]('\x22')[0x1],_0x1a04d3[0x1][_0x206268(0x130)](0x1)];}else{if(_0x135872[_0x206268(0x165)](_0x3d0e57[_0x206268(0x140)](_0x135872[_0x206268(0x14d)]),-0x1)){const _0x5f2105=_0x3d0e57[_0x206268(0x16d)](_0x135872['AtQGB']);return[_0x5f2105[0x0][_0x206268(0x154)](0x0,-0x1)[_0x206268(0x16d)]('\x22')[0x1],_0x3d0e57];}}return[null,null];},exports[a29_0x597a16(0x155)]=_0x5470ea=>{const _0x3f783e=a29_0x597a16,_0x5817d7={'XmvLm':function(_0x29c53b,_0x3bc3a0){return _0x29c53b(_0x3bc3a0);},'TIMqE':_0x3f783e(0x17e),'ThPLV':_0x3f783e(0x12c),'DXqVp':'_beforeEach','trzjt':_0x3f783e(0x144)};if(!_0x5470ea||!_0x5470ea[_0x3f783e(0x188)])return[];const _0x412a07=[];return[_0x5817d7[_0x3f783e(0x178)],_0x5817d7[_0x3f783e(0x137)],_0x5817d7[_0x3f783e(0x14e)],_0x5817d7[_0x3f783e(0x184)]]['forEach'](_0x334cb0=>{const _0x4681a1=_0x3f783e,_0x259c1a=_0x5470ea[_0x4681a1(0x188)][_0x334cb0]||[];_0x259c1a[_0x4681a1(0x180)](_0x1f6a48=>{const _0x7d094d=_0x4681a1;_0x1f6a48[_0x7d094d(0x13f)]&&!_0x5817d7[_0x7d094d(0x15a)](isInternalHook,_0x1f6a48['fn'])&&_0x412a07[_0x7d094d(0x17a)](_0x1f6a48[_0x7d094d(0x13f)]);});}),[..._0x412a07,...exports[_0x3f783e(0x155)](_0x5470ea[_0x3f783e(0x188)])];},exports[a29_0x597a16(0x176)]=_0x2cb9cd=>{const _0xaf2013=a29_0x597a16,_0x4ab7e6={'vYqGY':function(_0x4f08dd){return _0x4f08dd();},'rvGoz':function(_0x5d77c1,_0x542b35){return _0x5d77c1===_0x542b35;},'YNbCb':_0xaf2013(0x144),'FKbNZ':function(_0x357907){return _0x357907();},'bWwDS':_0xaf2013(0x17e),'JFHtm':_0xaf2013(0x12c),'dsNMp':_0xaf2013(0x175)};if(!_0x2cb9cd||!_0x2cb9cd[_0xaf2013(0x188)])return;[_0x4ab7e6[_0xaf2013(0x162)],_0x4ab7e6['JFHtm'],_0x4ab7e6['dsNMp'],_0x4ab7e6[_0xaf2013(0x13a)]][_0xaf2013(0x180)](_0x189afd=>{const _0x17323a=_0xaf2013,_0x2a1977=_0x2cb9cd[_0x17323a(0x188)][_0x189afd]||[];_0x2a1977[_0x17323a(0x180)](_0x558e89=>{const _0xf736fe=_0x17323a;if(!_0x558e89['hookAnalyticsId'])_0x558e89['hookAnalyticsId']=_0x4ab7e6[_0xf736fe(0x15d)](uuidv4);else _0x558e89[_0xf736fe(0x17d)]&&_0x4ab7e6[_0xf736fe(0x186)](_0x189afd,_0x4ab7e6[_0xf736fe(0x13a)])&&(_0x558e89['hookAnalyticsId']=_0x4ab7e6['FKbNZ'](uuidv4),delete _0x558e89[_0xf736fe(0x17d)]);});}),exports[_0xaf2013(0x176)](_0x2cb9cd['parent']);},exports[a29_0x597a16(0x134)]=async(_0x4e30b4,_0x27158c)=>{const _0x4129ac=a29_0x597a16,_0x3f838f={'JScrN':function(_0x32d430){return _0x32d430();},'oQtKa':function(_0x57f6ae,_0x383efc){return _0x57f6ae===_0x383efc;},'Gvehf':_0x4129ac(0x13b),'cIiCh':_0x4129ac(0x163),'NOCEc':_0x4129ac(0x168),'yGYAN':'app-automate','Dzpgq':_0x4129ac(0x158),'ZJfpv':function(_0x11da5b,_0x45542a){return _0x11da5b(_0x45542a);},'QTkRZ':_0x4129ac(0x173),'SYYlF':'TEST_PLATFORM'};try{if(!_0x3f838f['JScrN'](isTestObservabilitySession))return;const _0xeaa8ee=await _0x4e30b4[_0x4129ac(0x169)](),_0xfa80b6=await _0x4e30b4[_0x4129ac(0x185)](),_0x3e6aa6={},_0x496694=Object[_0x4129ac(0x187)](_0xfa80b6[_0x4129ac(0x169)]()[_0x4129ac(0x182)]),_0x12caa1={'product':_0x3f838f[_0x4129ac(0x12d)](global[_0x4129ac(0x143)],_0x3f838f[_0x4129ac(0x147)])?_0x496694[_0x3f838f[_0x4129ac(0x12f)]]||_0x496694[_0x3f838f['NOCEc']]?_0x3f838f[_0x4129ac(0x16b)]:_0x3f838f[_0x4129ac(0x145)]:null,'capabilities':_0x496694,'platform':_0xeaa8ee[_0x4129ac(0x139)](),'platform_version':_0x3f838f[_0x4129ac(0x12e)](getPlatformVersion,_0x3f838f['oQtKa'](global[_0x4129ac(0x143)],_0x3f838f[_0x4129ac(0x147)])),'browser':_0xeaa8ee[_0x4129ac(0x14f)](),'browser_version':_0xeaa8ee[_0x4129ac(0x160)](),'session_id':_0xfa80b6[_0x4129ac(0x16a)]()};global[_0x4129ac(0x143)]?_0x3e6aa6[global[_0x4129ac(0x143)]]=_0x12caa1:_0x3e6aa6[_0x3f838f['QTkRZ']]=_0x12caa1,process[_0x4129ac(0x148)](_0x4129ac(0x146)+process[_0x4129ac(0x159)],{'timestamp':new Date()[_0x4129ac(0x179)](),'level':null,'message':null,'kind':_0x3f838f[_0x4129ac(0x133)],'http_response':_0x3e6aa6,'uuid':_0x27158c});}catch(_0x26a6f3){_0x3f838f[_0x4129ac(0x12e)](debug,_0x4129ac(0x150)+_0x26a6f3);}},exports[a29_0x597a16(0x164)]=_0x16960c=>{const _0x1b5549=a29_0x597a16,_0x48e736={};_0x48e736[_0x1b5549(0x170)]=function(_0x985197,_0xfcfe9e){return _0x985197!==_0xfcfe9e;},_0x48e736[_0x1b5549(0x132)]=_0x1b5549(0x16e),_0x48e736[_0x1b5549(0x16c)]=function(_0x489869,_0x13f8d7){return _0x489869!==_0x13f8d7;},_0x48e736[_0x1b5549(0x17b)]=_0x1b5549(0x157),_0x48e736[_0x1b5549(0x135)]=function(_0x16d7c6,_0x2bb00c){return _0x16d7c6!==_0x2bb00c;},_0x48e736['QxRYl']=_0x1b5549(0x131);const _0x409cab=_0x48e736,_0xaa557f=_0x16960c[_0x1b5549(0x13e)]['reduce']((_0x1a0f6e,_0x3dad5a)=>{const _0x88293f=_0x1b5549,_0x2c1ecc=exports['getHookSkippedTests'](_0x3dad5a);return _0x2c1ecc&&(_0x1a0f6e=_0x1a0f6e[_0x88293f(0x152)](_0x2c1ecc)),_0x1a0f6e;},[]),_0x1a0ada=_0x16960c[_0x1b5549(0x153)][_0x1b5549(0x15e)](_0x4d1137=>{const _0x420842=_0x1b5549,_0x488a6b=_0x409cab[_0x420842(0x170)](_0x4d1137['type'],_0x409cab[_0x420842(0x132)])&&!_0x4d1137[_0x420842(0x17d)]&&_0x409cab[_0x420842(0x16c)](_0x4d1137[_0x420842(0x167)],_0x409cab[_0x420842(0x17b)])&&_0x409cab['ymUcf'](_0x4d1137[_0x420842(0x167)],_0x409cab['QxRYl'])&&!_0x4d1137[_0x420842(0x13d)];return _0x488a6b;});return _0x1a0ada[_0x1b5549(0x152)](_0xaa557f);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a30_0x4f90(){const _0x2589de=['message','getCurrentUrl','BS_A11Y_TEST_RUN_ID','titlePath','9099axdwGd','format','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','5860495wSLjfK','40002GbftoG','CVbjH','6eFAzOK','SsSLJ','jNJjW','FTAFY','Failed\x20to\x20store\x20session\x20name:\x20','../../helpers/accessibility-automation/scripts','__drivers','testcase','\x22}}','../../helpers/test-observability/utils','app','92JfccSH','UsgWm','6548352NSxqCE','yRJaQ','getGlobal','https:','bstackA11yShouldScan','NSYOX','1969704ywbjNT','Performing\x20scan\x20before\x20saving\x20results','http:','AwLDe','isAccessibilityPlatform','yRviK','\x20-\x20','session_','FKxeD','GtFQu','setGlobal','ObservabilitySync:','saveTestResults','now','then','LVDUR','Automate\x20test\x20case\x20execution\x20has\x20started.','KCeAp','8438QUdNHh','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','shift','../../helpers/accessibility-automation/helper','title','4630fboOzV','percyCaptureMode','performScan','.\x20Error\x20:','stringify','FxzfI','info','sHrFp','WKNWA','ARoMI','join','capabilities','lCnBJ','startMonitoring','length','../../helpers/helper','state','shouldScanTestForAccessibility','../../helpers/logger','lzmNT','currentTest','Passed','auBQH','stopMonitoring','cXTQc','WxDXW','passed','JKhNN','percy','quitCount_','inriQ','appium:app','driverCleanup','VweFd','YUFjU',',\x22level\x22:\x20\x22','timeout','lCIiw','3603173AFSPUn','file','EbbLZ','__error_messages__','aITAe','error','jSjFX','err','mochaHooks','accessibilityScanStarted','uAzRN','debug','util','protocol','winstonLogger','kdTnb','../../helpers/globals','executeScript','browserstackSessionName','env','failed','PTvdb','../../helpers/percy/utils','ovZrd','__sessionFailed','isArray','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','executeAsyncScript','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.'];a30_0x4f90=function(){return _0x2589de;};return a30_0x4f90();}const a30_0x2b8373=a30_0x40a6;(function(_0x17a5c5,_0x381daf){const _0x564ab8=a30_0x40a6,_0x32dfaa=_0x17a5c5();while(!![]){try{const _0x2f81c1=-parseInt(_0x564ab8(0xa3))/0x1*(parseInt(_0x564ab8(0xf5))/0x2)+-parseInt(_0x564ab8(0xf3))/0x3*(-parseInt(_0x564ab8(0x100))/0x4)+parseInt(_0x564ab8(0xf2))/0x5+-parseInt(_0x564ab8(0x8b))/0x6+parseInt(_0x564ab8(0xce))/0x7+parseInt(_0x564ab8(0x91))/0x8+parseInt(_0x564ab8(0xef))/0x9*(-parseInt(_0x564ab8(0xa8))/0xa);if(_0x2f81c1===_0x381daf)break;else _0x32dfaa['push'](_0x32dfaa['shift']());}catch(_0x30d24e){_0x32dfaa['push'](_0x32dfaa['shift']());}}}(a30_0x4f90,0x9fe56));const util=require(a30_0x2b8373(0xda)),{isAccessibilityAutomationSession,fetchPlatformDetails,shouldScanTestForAccessibility}=require(a30_0x2b8373(0xa6)),{percyAutoCapture}=require(a30_0x2b8373(0xe4)),{sendPlatformDetails}=require('./test-observability/mochaUtils'),{isBrowserstackInfra,markSessionStatus}=require(a30_0x2b8373(0xb7)),{isTestObservabilitySession}=require(a30_0x2b8373(0xfe)),PerformanceTester=require('../../helpers/performance-tester'),scripts=require(a30_0x2b8373(0xfa)),globals=require(a30_0x2b8373(0xde)),logger=require(a30_0x2b8373(0xba))[a30_0x2b8373(0xdc)];function a30_0x40a6(_0x3e3cc8,_0x379698){const _0x4f90b1=a30_0x4f90();return a30_0x40a6=function(_0x40a6bc,_0x5b17df){_0x40a6bc=_0x40a6bc-0x8a;let _0x325a04=_0x4f90b1[_0x40a6bc];return _0x325a04;},a30_0x40a6(_0x3e3cc8,_0x379698);}exports[a30_0x2b8373(0xd6)]={'beforeAll'(){const _0x438443=a30_0x2b8373,_0x1ab3c9={'PTvdb':function(_0x15510e,_0x341402,_0x14c15e,_0x21bc95){return _0x15510e(_0x341402,_0x14c15e,_0x21bc95);},'jSjFX':_0x438443(0xe2),'uNFnJ':'\x20|\x20','WKNWA':function(_0x58ee10,_0x7613a4,_0x457990){return _0x58ee10(_0x7613a4,_0x457990);},'jNJjW':'passed','JKhNN':function(_0x4e75f9){return _0x4e75f9();},'QIbSa':function(_0x3fff51,_0x4d301e,_0x1f3d51){return _0x3fff51(_0x4d301e,_0x1f3d51);}};PerformanceTester[_0x438443(0xb5)]();const _0x39b526='browserstack internal helper hook';global['__error_messages__']=[],global['__sessionFailed']=![],global['driverCleanup']=async()=>{const _0x423534=_0x438443;let _0x3dbe2a=![];try{await global[_0x423534(0xfb)][0x0][_0x423534(0x98)],_0x3dbe2a=!![],global[_0x423534(0xe6)]?await _0x1ab3c9[_0x423534(0xe3)](markSessionStatus,global[_0x423534(0xfb)][0x0],_0x1ab3c9[_0x423534(0xd4)],global[_0x423534(0xd1)][_0x423534(0xb2)](_0x1ab3c9['uNFnJ'])):await _0x1ab3c9[_0x423534(0xb0)](markSessionStatus,global[_0x423534(0xfb)][0x0],_0x1ab3c9[_0x423534(0xf7)]);}catch(_0x58ddc1){}global[_0x423534(0xd1)]=[],global[_0x423534(0xe6)]=![];if(_0x3dbe2a)try{try{_0x1ab3c9[_0x423534(0xc3)](isTestObservabilitySession)&&(global[_0x423534(0xfb)][0x0]&&await _0x1ab3c9['QIbSa'](sendPlatformDetails,global[_0x423534(0xfb)][0x0],this[_0x423534(0xbc)]?this[_0x423534(0xbc)]['testAnalyticsId']:null));}catch{}await global[_0x423534(0xfb)][0x0]['initQuit']();}catch(_0x145747){}};},'beforeEach'(_0x5e3941){const _0x12ef95=a30_0x2b8373,_0x31fee3={'cXTQc':function(_0x3b54fd,_0x73c52c){return _0x3b54fd>_0x73c52c;},'FKxeD':'\x20-\x20','AwLDe':function(_0x4229c0,_0x1c0f66,_0x263162){return _0x4229c0(_0x1c0f66,_0x263162);},'YUFjU':_0x12ef95(0x8f),'lzmNT':function(_0x460b90){return _0x460b90();},'FVGJZ':'isAccessibilityPlatform','inriQ':function(_0x3015e8,_0x3f21f1){return _0x3015e8===_0x3f21f1;},'yRviK':_0x12ef95(0x93),'ReSlt':function(_0x43bdc3,_0x49a516){return _0x43bdc3===_0x49a516;},'SsSLJ':_0x12ef95(0x8e),'UsgWm':_0x12ef95(0xea),'sHrFp':_0x12ef95(0xa1)};new Promise(async _0x3adc82=>{const _0xf1396c=_0x12ef95,_0x91d6b0='browserstack internal helper hook';let _0x244596=!![];try{_0x31fee3[_0xf1396c(0xc0)](global[_0xf1396c(0xfb)][_0xf1396c(0xb6)],0x1)&&(await global['driverCleanup'](),global[_0xf1396c(0xfb)][_0xf1396c(0xa5)]()),_0x31fee3[_0xf1396c(0xc0)](global[_0xf1396c(0xfb)][0x0]['quitCount_'],0x0)&&(_0x244596=![],await global[_0xf1396c(0xc8)]());}catch{}try{Array['isArray'](global[_0xf1396c(0xfb)])&&global[_0xf1396c(0xfb)][0x0]&&(global[_0xf1396c(0xfb)][0x0][_0xf1396c(0xe0)]=this[_0xf1396c(0xbc)]['titlePath']()[_0xf1396c(0xb2)](_0x31fee3[_0xf1396c(0x99)])),global[_0xf1396c(0xe0)]=this[_0xf1396c(0xbc)][_0xf1396c(0xee)]()['join'](_0x31fee3[_0xf1396c(0x99)]);}catch(_0x2c41e1){logger[_0xf1396c(0xd9)](_0xf1396c(0xf9)+_0x2c41e1);}this[_0xf1396c(0xbc)][_0xf1396c(0xb9)]=_0x31fee3[_0xf1396c(0x94)](shouldScanTestForAccessibility,this[_0xf1396c(0xbc)][_0xf1396c(0xee)](),!![]),globals[_0xf1396c(0x9b)](_0x31fee3[_0xf1396c(0xca)],this[_0xf1396c(0xbc)][_0xf1396c(0xb9)]),this[_0xf1396c(0xbc)][_0xf1396c(0xd7)]=!![];if(_0x31fee3['lzmNT'](isAccessibilityAutomationSession)&&_0x244596&&Array[_0xf1396c(0xe7)](global[_0xf1396c(0xfb)])&&_0x31fee3['cXTQc'](global[_0xf1396c(0xfb)][_0xf1396c(0xb6)],0x0)&&globals[_0xf1396c(0x8d)](_0x31fee3['FVGJZ']))try{const _0x11042a=await global['__drivers'][0x0][_0xf1396c(0x98)];if(_0x11042a){let _0x1c2baf=!![];const _0x5d48bd=await global['__drivers'][0x0][_0xf1396c(0xec)]();let _0x11de19;try{_0x11de19=new URL(_0x5d48bd);}catch(_0x1085a6){_0x1c2baf=![];}_0x1c2baf=_0x31fee3[_0xf1396c(0xc6)](_0x11de19[_0xf1396c(0xdb)],_0x31fee3[_0xf1396c(0x96)])||_0x31fee3['ReSlt'](_0x11de19[_0xf1396c(0xdb)],_0x31fee3[_0xf1396c(0xf6)]),_0x1c2baf&&(this[_0xf1396c(0xbc)][_0xf1396c(0xb9)]&&logger['info'](_0x31fee3[_0xf1396c(0x8a)])),this[_0xf1396c(0xbc)][_0xf1396c(0xd7)]=this[_0xf1396c(0xbc)]['shouldScanTestForAccessibility'],this[_0xf1396c(0xbc)][_0xf1396c(0xb9)]&&logger['info'](_0x31fee3[_0xf1396c(0xaf)]);}}catch(_0x456cd9){logger['error']('Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20'+util[_0xf1396c(0xf0)](_0x456cd9));}_0x31fee3[_0xf1396c(0xbb)](_0x3adc82);})[_0x12ef95(0x9f)](_0x5e3941);},'afterEach'(_0x4ad42b){const _0x4f1a20=a30_0x2b8373,_0x30bf92={'FTAFY':function(_0x5403ef,_0xa08551){return _0x5403ef>_0xa08551;},'NSYOX':function(_0x3c683a,_0x4913cd){return _0x3c683a===_0x4913cd;},'LVDUR':_0x4f1a20(0xfc),'EbbLZ':_0x4f1a20(0xc7),'JDHcL':function(_0x2f78e2,_0x539d09,_0x2fcd55,_0x4ede93){return _0x2f78e2(_0x539d09,_0x2fcd55,_0x4ede93);},'ovZrd':_0x4f1a20(0x97),'GtFQu':function(_0x563513,_0x5f111a){return _0x563513!==_0x5f111a;},'SUbqG':_0x4f1a20(0xc2),'uAzRN':function(_0x42361e,_0x514ac8,_0x168759){return _0x42361e(_0x514ac8,_0x168759);},'CVbjH':function(_0x1f79e3,_0x4f4257){return _0x1f79e3+_0x4f4257;},'aITAe':'Failed:\x20','lCIiw':_0x4f1a20(0xd3),'MvRVQ':_0x4f1a20(0xbd),'FxzfI':_0x4f1a20(0xae),'STZBt':_0x4f1a20(0x95),'fjIAe':_0x4f1a20(0x8f),'ARoMI':_0x4f1a20(0xe8),'auBQH':function(_0x5b6454,_0x34b7e0){return _0x5b6454(_0x34b7e0);},'lCnBJ':_0x4f1a20(0x92),'mqGdJ':_0x4f1a20(0xa4),'VweFd':function(_0x3b111c){return _0x3b111c();},'WxDXW':function(_0x82687a,_0x599e0d,_0x27c8b3){return _0x82687a(_0x599e0d,_0x27c8b3);},'KCeAp':_0x4f1a20(0xd9),'yRJaQ':function(_0x2d6b57,_0x3caf67){return _0x2d6b57>_0x3caf67;}},_0x5b4e7a='browserstack internal helper hook';this[_0x4f1a20(0xcc)](0xfde8);const _0x1db9f6=async(_0xf72a4a,_0x2d67fb)=>{const _0x3b594d=_0x4f1a20;await global[_0x3b594d(0xfb)][0x0][_0x3b594d(0xdf)]('browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:'+_0xf72a4a+_0x3b594d(0xcb)+_0x2d67fb+_0x3b594d(0xfd));};new Promise(async _0x3b1171=>{const _0x499ca9=_0x4f1a20;try{_0x30bf92[_0x499ca9(0xf8)](global['__drivers']['length'],0x1)&&(await global[_0x499ca9(0xc8)](),global[_0x499ca9(0xfb)][_0x499ca9(0xa5)](),global[_0x499ca9(0xd1)]=[],global[_0x499ca9(0xe6)]=![]);try{if(global[_0x499ca9(0xc4)]&&_0x30bf92[_0x499ca9(0x90)](global[_0x499ca9(0xa9)],_0x30bf92['LVDUR'])&&global[_0x499ca9(0xfb)][0x0]){const _0x28c426=_0x30bf92['FTAFY'](global[_0x499ca9(0xb3)][_0x499ca9(0xb6)],0x0)?!!global[_0x499ca9(0xb3)][0x0][_0x499ca9(0xff)]||!!global[_0x499ca9(0xb3)][0x0][_0x30bf92[_0x499ca9(0xd0)]]:![],_0x303f96={};_0x303f96['app']=_0x28c426,await _0x30bf92['JDHcL'](percyAutoCapture,global[_0x499ca9(0xfb)][0x0],_0x30bf92[_0x499ca9(0xa0)],_0x303f96);}}catch(_0xec3a16){}!global['__skipSessionName']&&(await global[_0x499ca9(0xfb)][0x0]['executeScript'](_0x499ca9(0xf1)+JSON['stringify'](this[_0x499ca9(0xbc)][_0x499ca9(0xee)]()[_0x499ca9(0xb2)](_0x30bf92[_0x499ca9(0xe5)]))+'}}'),global[_0x499ca9(0xfb)][0x0]['sessionNameSet__']=!![]);const _0x37af66=_0x30bf92[_0x499ca9(0x9a)](this[_0x499ca9(0xbc)][_0x499ca9(0xb8)],_0x30bf92['SUbqG']);_0x37af66?(global[_0x499ca9(0xe6)]=!![],global['__error_messages__']['push'](this[_0x499ca9(0xbc)][_0x499ca9(0xd5)][_0x499ca9(0xeb)]),await _0x30bf92[_0x499ca9(0xd8)](_0x1db9f6,JSON['stringify'](_0x30bf92[_0x499ca9(0xf4)](_0x30bf92[_0x499ca9(0xd2)],this[_0x499ca9(0xbc)][_0x499ca9(0xd5)][_0x499ca9(0xeb)])),_0x30bf92[_0x499ca9(0xcd)])):await _0x30bf92[_0x499ca9(0xd8)](_0x1db9f6,JSON[_0x499ca9(0xac)](_0x30bf92['MvRVQ']),_0x30bf92[_0x499ca9(0xad)]);}catch(_0x2318e5){}try{if(this[_0x499ca9(0xbc)][_0x499ca9(0xd7)]&&globals[_0x499ca9(0x8d)](_0x30bf92['STZBt'])&&globals[_0x499ca9(0x8d)](_0x30bf92['fjIAe'])){logger[_0x499ca9(0xae)](_0x30bf92[_0x499ca9(0xb1)]);const _0x2e00fc={'saveResults':this[_0x499ca9(0xbc)]['shouldScanTestForAccessibility'],'testDetails':{'name':this['currentTest'][_0x499ca9(0xa7)],'testRunId':process[_0x499ca9(0xe1)][_0x499ca9(0xed)],'filePath':this[_0x499ca9(0xbc)][_0x499ca9(0xcf)],'scopeList':this[_0x499ca9(0xbc)][_0x499ca9(0xee)]()},'platform':await _0x30bf92[_0x499ca9(0xbe)](fetchPlatformDetails,global[_0x499ca9(0xfb)][0x0])};logger['debug'](_0x30bf92[_0x499ca9(0xb4)]),logger[_0x499ca9(0xd9)](util[_0x499ca9(0xf0)](await global[_0x499ca9(0xfb)][0x0]['executeAsyncScript'](scripts[_0x499ca9(0xaa)],{'method':global[_0x499ca9(0xe0)]}))),await global[_0x499ca9(0xfb)][0x0][_0x499ca9(0xe9)](scripts[_0x499ca9(0x9d)],_0x2e00fc),logger[_0x499ca9(0xae)](_0x30bf92['mqGdJ']);}}catch(_0x2fc732){logger[_0x499ca9(0xd3)]('Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20'+this[_0x499ca9(0xbc)][_0x499ca9(0xee)]()+_0x499ca9(0xab),_0x2fc732);}try{try{if(_0x30bf92[_0x499ca9(0xc9)](isTestObservabilitySession)){global[_0x499ca9(0xfb)][0x0]&&await _0x30bf92[_0x499ca9(0xc1)](sendPlatformDetails,global['__drivers'][0x0],this[_0x499ca9(0xbc)]?this[_0x499ca9(0xbc)]['testAnalyticsId']:null);if(_0x30bf92[_0x499ca9(0xc9)](isBrowserstackInfra)){const _0x24f891=_0x499ca9(0x9c)+Date[_0x499ca9(0x9e)]();await _0x30bf92[_0x499ca9(0xc1)](_0x1db9f6,JSON[_0x499ca9(0xac)](_0x24f891),_0x30bf92[_0x499ca9(0xa2)]);}}}catch{}_0x30bf92[_0x499ca9(0x8c)](global['__drivers'][0x0][_0x499ca9(0xc5)],0x0)&&await global['driverCleanup']();}catch(_0x49b270){}_0x30bf92['VweFd'](_0x3b1171);})[_0x4f1a20(0x9f)](()=>_0x4ad42b());},'afterAll'(_0x31aa82){const _0x3df5b2={'kdTnb':function(_0x1a691b){return _0x1a691b();}},_0x52c976='browserstack internal helper hook';this['timeout'](0xfde8),new Promise(async _0x320846=>{const _0x20b1d1=a30_0x40a6;PerformanceTester[_0x20b1d1(0xbf)](),await global[_0x20b1d1(0xc8)](),_0x3df5b2[_0x20b1d1(0xdd)](_0x320846);})['then'](()=>_0x31aa82());}};
|
|
1
|
+
const a30_0x5e7d82=a30_0x1d6f;function a30_0x1d6f(_0x54f33e,_0x299ae5){const _0x276624=a30_0x2766();return a30_0x1d6f=function(_0x1d6ffb,_0xf18ae7){_0x1d6ffb=_0x1d6ffb-0x98;let _0x2ef55e=_0x276624[_0x1d6ffb];return _0x2ef55e;},a30_0x1d6f(_0x54f33e,_0x299ae5);}(function(_0x3f0df3,_0x45ea7b){const _0x2c6300=a30_0x1d6f,_0x4ed74e=_0x3f0df3();while(!![]){try{const _0x413cb6=parseInt(_0x2c6300(0xb1))/0x1+parseInt(_0x2c6300(0xa2))/0x2*(-parseInt(_0x2c6300(0xf5))/0x3)+-parseInt(_0x2c6300(0xe7))/0x4*(parseInt(_0x2c6300(0xf3))/0x5)+parseInt(_0x2c6300(0xc1))/0x6*(parseInt(_0x2c6300(0xf4))/0x7)+parseInt(_0x2c6300(0x103))/0x8+-parseInt(_0x2c6300(0xde))/0x9*(-parseInt(_0x2c6300(0xd1))/0xa)+-parseInt(_0x2c6300(0xed))/0xb;if(_0x413cb6===_0x45ea7b)break;else _0x4ed74e['push'](_0x4ed74e['shift']());}catch(_0x504e4e){_0x4ed74e['push'](_0x4ed74e['shift']());}}}(a30_0x2766,0xccf94));function a30_0x2766(){const _0x154d3c=['hvSwV','percyCaptureMode','https:','session_','39240113sfXlUv','../../helpers/globals','JYGBq','accessibilityScanStarted','bDRUk','cGMrX','350440AoQOMc','47068oCbdle','8997GkfjHP','rDTfq','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','file','../../helpers/accessibility-automation/scripts','mochaHooks','gGupq','sPWxl','rCQVW','env','startMonitoring','bstackA11yShouldScan','app','NPZAS','11916808fLxKcX','appium:app','xvGfx','qqVtQ','saveTestResults','vrMSl','__skipSessionName','../../helpers/percy/utils','__sessionFailed','quitCount_','\x20|\x20','../../helpers/accessibility-automation/helper','Xharh','debug','YnKiG','CKlQe','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','err','executeAsyncScript','394HWwUnd','stringify','Jwsmz','protocol','CYZJM','tjlmK','BDSiL','Failed\x20to\x20store\x20session\x20name:\x20','\x20-\x20','./test-observability/mochaUtils','failed','__error_messages__','getCurrentUrl','shift','capabilities','1435891goTcfh','join','now','IHQcF','format','stopMonitoring','Passed','../../helpers/performance-tester','message','isArray','OHyNk','info','aEFNf','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','shouldScanTestForAccessibility','mXsMM','930wTetyj','isAccessibilityPlatform','util','rTSwR','XKney','then','browserstackSessionName','__drivers','state','testcase','setGlobal','passed','error','uYFFF','HVEFB','Bxkle','3510nbsuEb','getGlobal','../../helpers/test-observability/utils','initQuit','WsOki','length','titlePath','tetrL','testAnalyticsId','executeScript','sessionNameSet__','DyGec','BSyap','28206VtgTzF','Yptnd','performScan','ZGqOk','TtOXb','currentTest','http:','nyhth','BS_A11Y_TEST_RUN_ID','4kWqNpw','driverCleanup'];a30_0x2766=function(){return _0x154d3c;};return a30_0x2766();}const util=require(a30_0x5e7d82(0xc3)),{isAccessibilityAutomationSession,fetchPlatformDetails,shouldScanTestForAccessibility}=require(a30_0x5e7d82(0x9a)),{percyAutoCapture}=require(a30_0x5e7d82(0x10a)),{sendPlatformDetails}=require(a30_0x5e7d82(0xab)),{isBrowserstackInfra,markSessionStatus}=require('../../helpers/helper'),{isTestObservabilitySession}=require(a30_0x5e7d82(0xd3)),PerformanceTester=require(a30_0x5e7d82(0xb8)),scripts=require(a30_0x5e7d82(0xf9)),globals=require(a30_0x5e7d82(0xee)),logger=require('../../helpers/logger')['winstonLogger'];exports[a30_0x5e7d82(0xfa)]={'beforeAll'(){const _0x5689a9=a30_0x5e7d82,_0x150cd5={'CKlQe':function(_0x244089,_0x5d5fbd,_0x175d77,_0x299231){return _0x244089(_0x5d5fbd,_0x175d77,_0x299231);},'qTaJP':_0x5689a9(0xac),'NOOOG':_0x5689a9(0x99),'HVEFB':function(_0x326514,_0x1cece8,_0x3ad1d2){return _0x326514(_0x1cece8,_0x3ad1d2);},'WFtSe':_0x5689a9(0xcc),'uYFFF':function(_0xc2bab){return _0xc2bab();}};PerformanceTester[_0x5689a9(0xff)]();const _0x2bca42='browserstack internal helper hook';global['__error_messages__']=[],global[_0x5689a9(0x10b)]=![],global['driverCleanup']=async()=>{const _0xbffc7c=_0x5689a9;let _0x23ab12=![];try{await global[_0xbffc7c(0xc8)][0x0][_0xbffc7c(0xec)],_0x23ab12=!![],global['__sessionFailed']?await _0x150cd5[_0xbffc7c(0x9e)](markSessionStatus,global['__drivers'][0x0],_0x150cd5['qTaJP'],global[_0xbffc7c(0xad)][_0xbffc7c(0xb2)](_0x150cd5['NOOOG'])):await _0x150cd5[_0xbffc7c(0xcf)](markSessionStatus,global[_0xbffc7c(0xc8)][0x0],_0x150cd5['WFtSe']);}catch(_0x2a6b54){}global[_0xbffc7c(0xad)]=[],global[_0xbffc7c(0x10b)]=![];if(_0x23ab12)try{try{_0x150cd5[_0xbffc7c(0xce)](isTestObservabilitySession)&&(global['__drivers'][0x0]&&await _0x150cd5[_0xbffc7c(0xcf)](sendPlatformDetails,global[_0xbffc7c(0xc8)][0x0],this[_0xbffc7c(0xe3)]?this[_0xbffc7c(0xe3)]['testAnalyticsId']:null));}catch{}await global[_0xbffc7c(0xc8)][0x0][_0xbffc7c(0xd4)]();}catch(_0x511ce5){}};},'beforeEach'(_0x228e40){const _0x6e7003=a30_0x5e7d82,_0x4746dc={'tjlmK':function(_0x22c960,_0x2b174b){return _0x22c960>_0x2b174b;},'NPZAS':function(_0x337f74,_0x31e771){return _0x337f74>_0x31e771;},'cGMrX':_0x6e7003(0xaa),'uUnFn':function(_0x3c2c8f,_0x2bf2a4,_0x1b16f9){return _0x3c2c8f(_0x2bf2a4,_0x1b16f9);},'rDTfq':_0x6e7003(0x100),'tetrL':function(_0x4d14c0){return _0x4d14c0();},'gGupq':function(_0x62906b,_0x4864c0){return _0x62906b>_0x4864c0;},'Yptnd':_0x6e7003(0xc2),'aEFNf':function(_0x115c59,_0x3401b9){return _0x115c59===_0x3401b9;},'hQtrZ':_0x6e7003(0xe4),'jFaxc':function(_0x128992,_0x3bb479){return _0x128992===_0x3bb479;},'rCQVW':_0x6e7003(0xeb),'WsOki':'Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','TtOXb':'Automate\x20test\x20case\x20execution\x20has\x20started.'};new Promise(async _0x371e8b=>{const _0x18ba33=_0x6e7003,_0x504f43='browserstack internal helper hook';let _0x6a9317=!![];try{_0x4746dc[_0x18ba33(0xa7)](global['__drivers'][_0x18ba33(0xd6)],0x1)&&(await global[_0x18ba33(0xe8)](),global[_0x18ba33(0xc8)][_0x18ba33(0xaf)]()),_0x4746dc[_0x18ba33(0x102)](global[_0x18ba33(0xc8)][0x0][_0x18ba33(0x98)],0x0)&&(_0x6a9317=![],await global[_0x18ba33(0xe8)]());}catch{}try{Array[_0x18ba33(0xba)](global['__drivers'])&&global[_0x18ba33(0xc8)][0x0]&&(global['__drivers'][0x0][_0x18ba33(0xc7)]=this[_0x18ba33(0xe3)]['titlePath']()['join'](_0x4746dc['cGMrX'])),global[_0x18ba33(0xc7)]=this[_0x18ba33(0xe3)][_0x18ba33(0xd7)]()[_0x18ba33(0xb2)](_0x4746dc[_0x18ba33(0xf2)]);}catch(_0x2e838e){logger['debug'](_0x18ba33(0xa9)+_0x2e838e);}this['currentTest'][_0x18ba33(0xbf)]=_0x4746dc['uUnFn'](shouldScanTestForAccessibility,this[_0x18ba33(0xe3)][_0x18ba33(0xd7)](),!![]),globals[_0x18ba33(0xcb)](_0x4746dc[_0x18ba33(0xf6)],this['currentTest'][_0x18ba33(0xbf)]),this[_0x18ba33(0xe3)][_0x18ba33(0xf0)]=!![];if(_0x4746dc[_0x18ba33(0xd8)](isAccessibilityAutomationSession)&&_0x6a9317&&Array['isArray'](global[_0x18ba33(0xc8)])&&_0x4746dc[_0x18ba33(0xfb)](global[_0x18ba33(0xc8)][_0x18ba33(0xd6)],0x0)&&globals['getGlobal'](_0x4746dc[_0x18ba33(0xdf)]))try{const _0x555c4a=await global[_0x18ba33(0xc8)][0x0]['session_'];if(_0x555c4a){let _0x8ba747=!![];const _0x465ec2=await global['__drivers'][0x0][_0x18ba33(0xae)]();let _0x3049de;try{_0x3049de=new URL(_0x465ec2);}catch(_0x3948c5){_0x8ba747=![];}_0x8ba747=_0x4746dc[_0x18ba33(0xbd)](_0x3049de[_0x18ba33(0xa5)],_0x4746dc['hQtrZ'])||_0x4746dc['jFaxc'](_0x3049de[_0x18ba33(0xa5)],_0x4746dc[_0x18ba33(0xfd)]),_0x8ba747&&(this[_0x18ba33(0xe3)][_0x18ba33(0xbf)]&&logger['info'](_0x4746dc[_0x18ba33(0xd5)])),this['currentTest']['accessibilityScanStarted']=this[_0x18ba33(0xe3)][_0x18ba33(0xbf)],this[_0x18ba33(0xe3)]['shouldScanTestForAccessibility']&&logger[_0x18ba33(0xbc)](_0x4746dc[_0x18ba33(0xe2)]);}}catch(_0x26069e){logger[_0x18ba33(0xcd)]('Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20'+util[_0x18ba33(0xb5)](_0x26069e));}_0x4746dc[_0x18ba33(0xd8)](_0x371e8b);})['then'](_0x228e40);},'afterEach'(_0x55944f){const _0x494479=a30_0x5e7d82,_0x11bba9={'jhvDC':function(_0x4eeada,_0x51813d){return _0x4eeada>_0x51813d;},'pdlwe':function(_0xc25e03,_0x40e1e7){return _0xc25e03===_0x40e1e7;},'IHQcF':_0x494479(0xca),'GZDdZ':function(_0x28a744,_0x21825a){return _0x28a744>_0x21825a;},'Bxkle':_0x494479(0x104),'rTSwR':function(_0x4093c0,_0x67f05c,_0x3fb11a,_0x579b1a){return _0x4093c0(_0x67f05c,_0x3fb11a,_0x579b1a);},'nyhth':'\x20-\x20','JYGBq':function(_0x27ba5d,_0x1b4927){return _0x27ba5d!==_0x1b4927;},'CYZJM':_0x494479(0xcc),'XKney':function(_0x4a1760,_0x59f659,_0x379217){return _0x4a1760(_0x59f659,_0x379217);},'Xharh':function(_0x27ca01,_0x19ed43){return _0x27ca01+_0x19ed43;},'DyGec':'Failed:\x20','hvSwV':_0x494479(0xcd),'mXsMM':function(_0x275dd7,_0x49f1ff,_0x5e4bdd){return _0x275dd7(_0x49f1ff,_0x5e4bdd);},'sPWxl':_0x494479(0xb7),'BDSiL':_0x494479(0xbc),'bDRUk':'isAccessibilityPlatform','EIMtG':_0x494479(0x100),'Jwsmz':_0x494479(0x9f),'BSyap':function(_0xaf96ab,_0x4c18d5){return _0xaf96ab(_0x4c18d5);},'ZGqOk':'Performing\x20scan\x20before\x20saving\x20results','YnKiG':'Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','OHyNk':function(_0x31dd98){return _0x31dd98();},'vrMSl':function(_0x747dce){return _0x747dce();},'xvGfx':function(_0x3ebcdb,_0x43339c,_0x4ede89){return _0x3ebcdb(_0x43339c,_0x4ede89);},'gYyZr':_0x494479(0x9c),'djOuS':function(_0x1f4347,_0x3d115a){return _0x1f4347>_0x3d115a;}},_0x8fa683='browserstack internal helper hook';this['timeout'](0xfde8);const _0x16ee86=async(_0x17fba6,_0x42f601)=>{const _0x5d8b4f=_0x494479;await global[_0x5d8b4f(0xc8)][0x0][_0x5d8b4f(0xda)]('browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:'+_0x17fba6+',\x22level\x22:\x20\x22'+_0x42f601+'\x22}}');};new Promise(async _0x2023ab=>{const _0x318f10=_0x494479;try{_0x11bba9['jhvDC'](global[_0x318f10(0xc8)][_0x318f10(0xd6)],0x1)&&(await global['driverCleanup'](),global[_0x318f10(0xc8)]['shift'](),global['__error_messages__']=[],global['__sessionFailed']=![]);try{if(global['percy']&&_0x11bba9['pdlwe'](global[_0x318f10(0xea)],_0x11bba9[_0x318f10(0xb4)])&&global[_0x318f10(0xc8)][0x0]){const _0x57c7bc=_0x11bba9['GZDdZ'](global[_0x318f10(0xb0)][_0x318f10(0xd6)],0x0)?!!global['capabilities'][0x0][_0x318f10(0x101)]||!!global[_0x318f10(0xb0)][0x0][_0x11bba9[_0x318f10(0xd0)]]:![],_0x3d6531={};_0x3d6531[_0x318f10(0x101)]=_0x57c7bc,await _0x11bba9[_0x318f10(0xc4)](percyAutoCapture,global[_0x318f10(0xc8)][0x0],_0x11bba9[_0x318f10(0xb4)],_0x3d6531);}}catch(_0x2ea089){}!global[_0x318f10(0x109)]&&(await global['__drivers'][0x0]['executeScript'](_0x318f10(0xf7)+JSON[_0x318f10(0xa3)](this[_0x318f10(0xe3)][_0x318f10(0xd7)]()[_0x318f10(0xb2)](_0x11bba9[_0x318f10(0xe5)]))+'}}'),global[_0x318f10(0xc8)][0x0][_0x318f10(0xdb)]=!![]);const _0x59c7a0=_0x11bba9[_0x318f10(0xef)](this[_0x318f10(0xe3)][_0x318f10(0xc9)],_0x11bba9[_0x318f10(0xa6)]);_0x59c7a0?(global[_0x318f10(0x10b)]=!![],global[_0x318f10(0xad)]['push'](this['currentTest'][_0x318f10(0xa0)][_0x318f10(0xb9)]),await _0x11bba9['XKney'](_0x16ee86,JSON[_0x318f10(0xa3)](_0x11bba9[_0x318f10(0x9b)](_0x11bba9[_0x318f10(0xdc)],this[_0x318f10(0xe3)]['err'][_0x318f10(0xb9)])),_0x11bba9[_0x318f10(0xe9)])):await _0x11bba9[_0x318f10(0xc0)](_0x16ee86,JSON[_0x318f10(0xa3)](_0x11bba9[_0x318f10(0xfc)]),_0x11bba9[_0x318f10(0xa8)]);}catch(_0x27e47c){}try{if(this[_0x318f10(0xe3)]['accessibilityScanStarted']&&globals[_0x318f10(0xd2)](_0x11bba9[_0x318f10(0xf1)])&&globals[_0x318f10(0xd2)](_0x11bba9['EIMtG'])){logger['info'](_0x11bba9[_0x318f10(0xa4)]);const _0x41f696={'saveResults':this[_0x318f10(0xe3)][_0x318f10(0xbf)],'testDetails':{'name':this[_0x318f10(0xe3)]['title'],'testRunId':process[_0x318f10(0xfe)][_0x318f10(0xe6)],'filePath':this[_0x318f10(0xe3)][_0x318f10(0xf8)],'scopeList':this[_0x318f10(0xe3)][_0x318f10(0xd7)]()},'platform':await _0x11bba9[_0x318f10(0xdd)](fetchPlatformDetails,global[_0x318f10(0xc8)][0x0])};logger['debug'](_0x11bba9[_0x318f10(0xe1)]),logger[_0x318f10(0x9c)](util[_0x318f10(0xb5)](await global['__drivers'][0x0][_0x318f10(0xa1)](scripts[_0x318f10(0xe0)],{'method':global['browserstackSessionName']}))),await global[_0x318f10(0xc8)][0x0][_0x318f10(0xa1)](scripts[_0x318f10(0x107)],_0x41f696),logger[_0x318f10(0xbc)](_0x11bba9[_0x318f10(0x9d)]);}}catch(_0x3790ee){logger[_0x318f10(0xcd)](_0x318f10(0xbe)+this[_0x318f10(0xe3)][_0x318f10(0xd7)]()+'.\x20Error\x20:',_0x3790ee);}try{try{if(_0x11bba9[_0x318f10(0xbb)](isTestObservabilitySession)){global[_0x318f10(0xc8)][0x0]&&await _0x11bba9[_0x318f10(0xc5)](sendPlatformDetails,global[_0x318f10(0xc8)][0x0],this[_0x318f10(0xe3)]?this['currentTest'][_0x318f10(0xd9)]:null);if(_0x11bba9[_0x318f10(0x108)](isBrowserstackInfra)){const _0x453eda='ObservabilitySync:'+Date[_0x318f10(0xb3)]();await _0x11bba9[_0x318f10(0x105)](_0x16ee86,JSON[_0x318f10(0xa3)](_0x453eda),_0x11bba9['gYyZr']);}}}catch{}_0x11bba9['djOuS'](global[_0x318f10(0xc8)][0x0][_0x318f10(0x98)],0x0)&&await global['driverCleanup']();}catch(_0x594a98){}_0x11bba9[_0x318f10(0xbb)](_0x2023ab);})['then'](()=>_0x55944f());},'afterAll'(_0x2988ff){const _0x5ab6d4=a30_0x5e7d82,_0x4a2c19={'qqVtQ':function(_0x3305ce){return _0x3305ce();}},_0x3dc37b='browserstack internal helper hook';this['timeout'](0xfde8),new Promise(async _0xed685=>{const _0x3aeaba=a30_0x1d6f;PerformanceTester[_0x3aeaba(0xb6)](),await global['driverCleanup'](),_0x4a2c19[_0x3aeaba(0x106)](_0xed685);})[_0x5ab6d4(0xc6)](()=>_0x2988ff());}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';const a31_0x3fdf62=a31_0x28fc;function a31_0x28fc(_0x1ac003,_0x21390d){const _0x3f0b8b=a31_0x3f0b();return a31_0x28fc=function(_0x28fcba,_0x5c4ef4){_0x28fcba=_0x28fcba-0x108;let _0x226209=_0x3f0b8b[_0x28fcba];return _0x226209;},a31_0x28fc(_0x1ac003,_0x21390d);}(function(_0xc73afb,_0x182f1d){const _0x350d01=a31_0x28fc,_0x5e16ce=_0xc73afb();while(!![]){try{const _0x24b8a6=parseInt(_0x350d01(0x11e))/0x1*(-parseInt(_0x350d01(0x126))/0x2)+-parseInt(_0x350d01(0x110))/0x3*(parseInt(_0x350d01(0x143))/0x4)+-parseInt(_0x350d01(0x150))/0x5+-parseInt(_0x350d01(0x113))/0x6*(-parseInt(_0x350d01(0x11c))/0x7)+parseInt(_0x350d01(0x148))/0x8*(-parseInt(_0x350d01(0x142))/0x9)+parseInt(_0x350d01(0x14d))/0xa*(parseInt(_0x350d01(0x11d))/0xb)+-parseInt(_0x350d01(0x109))/0xc*(-parseInt(_0x350d01(0x123))/0xd);if(_0x24b8a6===_0x182f1d)break;else _0x5e16ce['push'](_0x5e16ce['shift']());}catch(_0x4481a8){_0x5e16ce['push'](_0x5e16ce['shift']());}}}(a31_0x3f0b,0xe6959));const fs=require('fs'),path=require('path'),{spawn}=require('child_process'),logger=require(a31_0x3fdf62(0x13f))['winstonLogger'],{default:BrowserStackSetup}=require(a31_0x3fdf62(0x12e)),helper=require(a31_0x3fdf62(0x10d)),constants=require(a31_0x3fdf62(0x122)),getUserNightwatchConfigs=(_0x22defc,_0x46ee84)=>{const _0x2a63dd=a31_0x3fdf62,_0xb4c01a={'KhYSj':_0x2a63dd(0x111),'CzHQU':_0x2a63dd(0x11f),'BhdtP':function(_0x54e5b,_0x1ecdd3){return _0x54e5b(_0x1ecdd3);},'qDMvz':_0x2a63dd(0x13c)};let _0xbbaa27=null,_0x552fab={};const _0x3f4f03=_0x46ee84[_0x2a63dd(0x151)](_0x323498=>_0x323498===_0x2a63dd(0x14b));if(!helper['isUndefined'](_0x22defc[_0x2a63dd(0x133)])&&fs['existsSync'](path[_0x2a63dd(0x13b)](process[_0x2a63dd(0x14f)](),_0x22defc['config'])))_0xbbaa27=path[_0x2a63dd(0x13b)](process[_0x2a63dd(0x14f)](),_0x22defc[_0x2a63dd(0x133)]),_0x46ee84[_0x2a63dd(0x145)](_0x3f4f03,0x2);else{if(fs[_0x2a63dd(0x153)](path['join'](process[_0x2a63dd(0x14f)](),_0xb4c01a['KhYSj'])))_0xbbaa27=path[_0x2a63dd(0x13b)](process[_0x2a63dd(0x14f)](),_0xb4c01a[_0x2a63dd(0x12d)]);else fs[_0x2a63dd(0x153)](path['join'](process[_0x2a63dd(0x14f)](),_0xb4c01a[_0x2a63dd(0x140)]))&&(_0xbbaa27=path[_0x2a63dd(0x13b)](process['cwd'](),_0xb4c01a[_0x2a63dd(0x140)]));}return _0xbbaa27?(logger['info'](_0x2a63dd(0x118)+_0xbbaa27),_0x552fab=_0xb4c01a['BhdtP'](require,_0xbbaa27)):logger[_0x2a63dd(0x130)](_0xb4c01a[_0x2a63dd(0x125)]),_0x552fab;},removeExistingEnvs=_0x44ce97=>{const _0x32339f=a31_0x3fdf62,_0xd32841={};_0xd32841[_0x32339f(0x11a)]=function(_0x5941bf,_0x671da7){return _0x5941bf>_0x671da7;};const _0x5bc094=_0xd32841;let _0x5d2452=_0x44ce97[_0x32339f(0x151)](_0x57eaa7=>_0x57eaa7==='--env');_0x5bc094[_0x32339f(0x11a)](_0x5d2452,-0x1)&&_0x44ce97[_0x32339f(0x145)](_0x5d2452,0x2),_0x5d2452=_0x44ce97[_0x32339f(0x151)](_0x4565f9=>_0x4565f9==='-e'),_0x5bc094[_0x32339f(0x11a)](_0x5d2452,-0x1)&&_0x44ce97['splice'](_0x5d2452,0x2);};function run(_0x5b902f,_0x148965){const _0x1a1f58=a31_0x3fdf62,_0x52b7ba={'utimh':_0x1a1f58(0x12a),'CAMQn':function(_0x5a6c99,_0x4318be){return _0x5a6c99+_0x4318be;},'fveyf':'test_settings','TMHSp':function(_0xfc7456,_0xa7499b,_0x11a9ea){return _0xfc7456(_0xa7499b,_0x11a9ea);},'mpvti':_0x1a1f58(0x132),'UKDld':_0x1a1f58(0x129),'UVCxJ':function(_0x42c44c,_0x132ef2){return _0x42c44c===_0x132ef2;},'Brztw':'nightwatch-browserstack.json','Szywo':function(_0xb0f3cc,_0x26e6c7){return _0xb0f3cc(_0x26e6c7);},'Bvelb':function(_0x3d86d2,_0x189233,_0x52623d,_0x4c432d){return _0x3d86d2(_0x189233,_0x52623d,_0x4c432d);},'KpFtc':_0x1a1f58(0x134),'oTajW':_0x1a1f58(0x14b),'ctpLr':'--env','ggYfe':'inherit','QXOyX':_0x1a1f58(0x10b)},_0x26b178=new BrowserStackSetup(_0x5b902f);if(!_0x26b178[_0x1a1f58(0x133)])return;const _0x555f4b=_0x52b7ba[_0x1a1f58(0x117)](getUserNightwatchConfigs,_0x5b902f,_0x148965),_0x217029={};_0x217029[_0x1a1f58(0x121)]=![];const _0x480c71={};_0x480c71[_0x1a1f58(0x13e)]=_0x52b7ba[_0x1a1f58(0x136)],_0x480c71[_0x1a1f58(0x144)]=0x1bb;const _0x21dafd={};_0x21dafd[_0x1a1f58(0x135)]=_0x217029,_0x21dafd[_0x1a1f58(0x124)]=_0x480c71;const _0x1d6abf=_0x21dafd;logger['info'](_0x52b7ba[_0x1a1f58(0x10f)]);const _0x4c8f72={..._0x555f4b},_0x81e6d3=_0x4c8f72,_0x3b10e7=helper[_0x1a1f58(0x11b)](_0x26b178[_0x1a1f58(0x133)]),_0x3b8abe=[];_0x26b178[_0x1a1f58(0x133)][_0x1a1f58(0x131)]['forEach']((_0x1c7c74,_0x12d4e3)=>{const _0x4c4210=_0x1a1f58;_0x3b10e7?_0x3b8abe[_0x4c4210(0x14e)](helper['modifyBrowserStackW3CCaps'](_0x26b178[_0x4c4210(0x133)],_0x52b7ba['utimh'],_0x12d4e3)):_0x3b8abe['push'](helper[_0x4c4210(0x149)](_0x26b178['config'],_0x52b7ba[_0x4c4210(0x128)],_0x12d4e3));});const _0x9a1522={},_0x1abc31=[];_0x5b902f['env']=_0x5b902f[_0x1a1f58(0x147)]||_0x5b902f['e'];const _0x12b57f=_0x5b902f[_0x1a1f58(0x147)]?_0x5b902f[_0x1a1f58(0x147)][_0x1a1f58(0x137)]()['split'](',')['map'](_0x222649=>_0x222649[_0x1a1f58(0x137)]())[_0x1a1f58(0x13a)](_0x3a574a=>_0x3a574a!==''):[''];_0x52b7ba[_0x1a1f58(0x114)](_0x12b57f[_0x1a1f58(0x146)],0x0)&&_0x12b57f[_0x1a1f58(0x14e)]('');_0x12b57f[_0x1a1f58(0x10a)](_0x13ffbe=>{const _0x239ee6=_0x1a1f58;_0x3b8abe[_0x239ee6(0x10a)](_0x45755e=>{const _0x24db10=_0x239ee6;let _0x259a1c=_0x52b7ba[_0x24db10(0x116)](helper['getPlatformName'](_0x45755e,'_'),'_'+Date[_0x24db10(0x14c)]());_0x13ffbe&&(_0x259a1c+='_'+_0x13ffbe);if(_0x13ffbe&&(!_0x555f4b[_0x52b7ba[_0x24db10(0x13d)]]||!_0x555f4b[_0x52b7ba[_0x24db10(0x13d)]][_0x13ffbe]))return;const _0x1c8938={..._0x1d6abf};_0x1c8938[_0x24db10(0x12f)]=_0x45755e;const _0x23af0b=_0x1c8938;_0x9a1522[_0x259a1c]=_0x13ffbe?helper[_0x24db10(0x120)](_0x555f4b[_0x52b7ba[_0x24db10(0x13d)]][_0x13ffbe],_0x23af0b):_0x23af0b,_0x1abc31['push'](_0x259a1c);});});!_0x81e6d3['test_settings']&&(_0x81e6d3[_0x1a1f58(0x154)]={});_0x81e6d3[_0x1a1f58(0x154)]={..._0x81e6d3[_0x1a1f58(0x154)],..._0x9a1522};const _0x5961fd=path['join'](__dirname,_0x52b7ba[_0x1a1f58(0x12b)]);fs[_0x1a1f58(0x141)](_0x5961fd,JSON[_0x1a1f58(0x10c)](_0x81e6d3)),_0x52b7ba[_0x1a1f58(0x139)](removeExistingEnvs,_0x148965);const _0xfc8657=_0x52b7ba[_0x1a1f58(0x14a)](spawn,/^win/[_0x1a1f58(0x108)](process['platform'])?_0x52b7ba[_0x1a1f58(0x152)]:_0x52b7ba[_0x1a1f58(0x128)],[_0x52b7ba[_0x1a1f58(0x10e)],_0x5961fd,..._0x148965[_0x1a1f58(0x112)](0x1),_0x52b7ba['ctpLr'],_0x1abc31[_0x1a1f58(0x13b)](',')],{'stdio':_0x52b7ba['ggYfe']});_0xfc8657['on'](_0x52b7ba[_0x1a1f58(0x12c)],async _0x229d1b=>{const _0x273b8f=_0x1a1f58;logger['debug'](_0x273b8f(0x127)+_0x229d1b),logger[_0x273b8f(0x130)](_0x273b8f(0x138)+_0x5961fd),fs[_0x273b8f(0x119)](_0x5961fd);});}function a31_0x3f0b(){const _0x144999=['Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','nightwatch','Brztw','QXOyX','KhYSj','../../helpers/BrowserStackSetup','desiredCapabilities','info','platforms','hub.browserstack.com','config','nightwatch.cmd','webdriver','mpvti','trim','Deleting\x20','Szywo','filter','join','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','fveyf','host','../../helpers/logger','CzHQU','writeFileSync','45mNGNOP','591044vLNhSy','port','splice','length','env','2743024rkBICF','modifyBrowserStackCaps','Bvelb','--config','now','50iZXrAh','push','cwd','8497640UjzJYv','findIndex','KpFtc','existsSync','test_settings','test','1946772dYPqbm','forEach','close','stringify','../../helpers/helper','oTajW','UKDld','3TXAQBE','nightwatch.conf.js','slice','147162EvuLlg','UVCxJ','exports','CAMQn','TMHSp','Getting\x20your\x20nightwatch\x20configs\x20from\x20','unlinkSync','ifpIm','useW3C','217DTwVfU','2283611eIEfbj','1fIEqHU','nightwatch.json','mergeDeep','start_process','../utils/constants','221gxZdlB','selenium','qDMvz','100234RkMcpu','child\x20process\x20exited\x20with\x20code\x20','utimh'];a31_0x3f0b=function(){return _0x144999;};return a31_0x3f0b();}module[a31_0x3fdf62(0x115)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a32_0x3e98(){const _0x1ad0ed=['WebDriver','IohnX','env','browserstack.accessibility','No\x20summaryResults\x20found.','9208485xjFvCe','zNMXN','../../helpers/accessibility-automation/helper','iRszg','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','accessibilityOptions.wcagVersion','XhJVc','11763598YZdDqr','latest','aPxGW','method','pITOY','176684gbeMvT','xiJTs','accessibilityOptions.includeIssueType.bestPractice','constructor','GQFAU','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','pjhrk','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','getAccessibilityResults','220596eJZYFy','project','browser','11940896CSJASY','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','vkINE','lIhor','accessibilityOptions.includeIssueType.needsReview','oSAEh','iaYzd','../../helpers/logger','1814384gKbjrI','connectOptions','JTKvJ','TGifv','tImqB','name','lVPjV','YhveM','chrome','../../helpers/accessibility-automation/scripts','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','stringify','scannerVersion','xfqgf','AYPNl','winstonLogger','executeAsyncScript','format','deviceName','scannerProcessingTimeout','IEmxW','wsEndpoint','testInfo','XeIcV','../../helpers/helper','bfqhl','110NpntZo','playwright-chromium','use','performScan','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','FQaex','debug','POlqa','platformValidation','needsReview','accessibilityPlatform','aniEz','XaADm','pifer','bestPractice','ElPpN','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','browserStackExecuteDriver','(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','browser_version','accessibilityOptions.scannerProcessingTimeout','ztIBw','replace','vbOMl','browserStackEvaluate','util','accessibilityOptions','bstackSdkArgs','warn','includeIssueType','rSEji','YfIIZ','21uiuKbe','HDHhe','KBSkX','477328Lejptb','sNzYW','getAccessibilityResultsSummary','browserName','wcagVersion','qkaaO','Zgomi'];a32_0x3e98=function(){return _0x1ad0ed;};return a32_0x3e98();}const a32_0x4f1400=a32_0x4d38;(function(_0x7b238,_0x37a4fa){const _0x47300b=a32_0x4d38,_0x247cef=_0x7b238();while(!![]){try{const _0x373c49=parseInt(_0x47300b(0x1e7))/0x1+-parseInt(_0x47300b(0x213))/0x2+-parseInt(_0x47300b(0x1e4))/0x3*(parseInt(_0x47300b(0x1ff))/0x4)+-parseInt(_0x47300b(0x22d))/0x5*(-parseInt(_0x47300b(0x208))/0x6)+-parseInt(_0x47300b(0x1fa))/0x7+parseInt(_0x47300b(0x20b))/0x8+parseInt(_0x47300b(0x1f3))/0x9;if(_0x373c49===_0x37a4fa)break;else _0x247cef['push'](_0x247cef['shift']());}catch(_0x4f1c0c){_0x247cef['push'](_0x247cef['shift']());}}}(a32_0x3e98,0xdcf5e));const util=require(a32_0x4f1400(0x1dd)),logger=require(a32_0x4f1400(0x212))[a32_0x4f1400(0x222)],{isAccessibilityAutomationSession}=require(a32_0x4f1400(0x1f5)),{isUndefined}=require(a32_0x4f1400(0x22b)),scripts=require(a32_0x4f1400(0x21c));function a32_0x4d38(_0x3a7b00,_0x3bc3b8){const _0x3e980=a32_0x3e98();return a32_0x4d38=function(_0x4d3857,_0x2a3a76){_0x4d3857=_0x4d3857-0x1db;let _0x5c7728=_0x3e980[_0x4d3857];return _0x5c7728;},a32_0x4d38(_0x3a7b00,_0x3bc3b8);}exports[a32_0x4f1400(0x1dc)]=async(_0x3a12e4,_0x219691,_0x47a553={})=>{const _0x544f5d=a32_0x4f1400,_0x33e045={};_0x33e045['JkLho']=_0x544f5d(0x1df);const _0x2c50a5=_0x33e045;return await _0x3a12e4['evaluate']('(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'+_0x219691[_0x544f5d(0x244)](/arguments/g,_0x2c50a5['JkLho'])+'\x0a\x20\x20\x20\x20})\x0a\x20\x20})('+JSON['stringify'](_0x47a553)+')');},exports[a32_0x4f1400(0x23f)]=async(_0x15617d,_0x2dbc11,_0x6b8acf={})=>{const _0x81e7d0=a32_0x4f1400,_0x914ef={};_0x914ef[_0x81e7d0(0x211)]=function(_0x55dc6d,_0x282031){return _0x55dc6d===_0x282031;},_0x914ef[_0x81e7d0(0x1ec)]=_0x81e7d0(0x1ee),_0x914ef['AYPNl']=function(_0x1ee667,_0x5d558a){return _0x1ee667===_0x5d558a;},_0x914ef[_0x81e7d0(0x200)]='Playwright',_0x914ef[_0x81e7d0(0x210)]=_0x81e7d0(0x1df);const _0x1275de=_0x914ef;if(_0x1275de[_0x81e7d0(0x211)](_0x15617d[_0x81e7d0(0x202)][_0x81e7d0(0x218)],_0x1275de['qkaaO']))return await _0x15617d[_0x81e7d0(0x223)](_0x2dbc11,_0x6b8acf);else{if(_0x1275de[_0x81e7d0(0x221)](_0x15617d[_0x81e7d0(0x202)][_0x81e7d0(0x218)],_0x1275de[_0x81e7d0(0x200)]))return await _0x15617d['executeScript'](_0x81e7d0(0x240)+_0x2dbc11[_0x81e7d0(0x244)](/arguments/g,_0x1275de[_0x81e7d0(0x210)])+_0x81e7d0(0x231)+JSON[_0x81e7d0(0x21e)](_0x6b8acf)+')');}},exports['setAccessibilityCapabilities']=async _0x582800=>{const _0x439475=a32_0x4f1400,_0x1ecc9b={};_0x1ecc9b[_0x439475(0x1ef)]=_0x439475(0x1f8),_0x1ecc9b[_0x439475(0x203)]=_0x439475(0x242),_0x1ecc9b['ElPpN']=_0x439475(0x201),_0x1ecc9b['XaADm']=_0x439475(0x20f),_0x1ecc9b[_0x439475(0x205)]='accessibilityOptions.authToken',_0x1ecc9b[_0x439475(0x220)]='accessibilityOptions.scannerVersion';const _0x41d576=_0x1ecc9b;_0x582800['accessibilityOptions']&&(_0x582800[_0x439475(0x1de)][_0x439475(0x1eb)]&&(_0x582800[_0x41d576['IohnX']]=_0x582800['accessibilityOptions'][_0x439475(0x1eb)]),_0x582800[_0x439475(0x1de)][_0x439475(0x226)]&&(_0x582800[_0x41d576[_0x439475(0x203)]]=_0x582800['accessibilityOptions']['scannerProcessingTimeout']),_0x582800['accessibilityOptions'][_0x439475(0x1e1)]&&(_0x582800[_0x41d576[_0x439475(0x23d)]]=_0x582800[_0x439475(0x1de)][_0x439475(0x1e1)][_0x439475(0x23c)],_0x582800[_0x41d576[_0x439475(0x23a)]]=_0x582800[_0x439475(0x1de)][_0x439475(0x1e1)][_0x439475(0x237)]));const _0xee807c=JSON['parse'](process[_0x439475(0x1f0)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML'])[_0x439475(0x21f)];_0x582800[_0x41d576[_0x439475(0x205)]]=process[_0x439475(0x1f0)]['BS_A11Y_JWT'],_0x582800[_0x41d576[_0x439475(0x220)]]=_0xee807c,delete _0x582800[_0x439475(0x1de)];},exports[a32_0x4f1400(0x207)]=async _0x135206=>{const _0x22bf16=a32_0x4f1400,_0x11565d={};_0x11565d['KBSkX']='No\x20accessibility\x20results\x20were\x20found.',_0x11565d[_0x22bf16(0x1fe)]=_0x22bf16(0x20c);const _0x404694=_0x11565d;if(global[_0x22bf16(0x238)])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x135206,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x135206,scripts.getResults);return res;}catch{return logger['error'](_0x404694[_0x22bf16(0x1e6)]),[];}else return logger['warn'](_0x404694['pITOY']),[];},exports[a32_0x4f1400(0x230)]=async(_0xb23771,_0x1fb911='')=>{const _0x14d261=a32_0x4f1400;if(global[_0x14d261(0x238)]){const _0x35e2ef={};return _0x35e2ef[_0x14d261(0x1fd)]=_0x1fb911,await exports[_0x14d261(0x1dc)](_0xb23771,scripts['performScan'],_0x35e2ef);}},exports[a32_0x4f1400(0x1e9)]=async _0x503979=>{const _0x5333e1=a32_0x4f1400,_0x39a103={};_0x39a103[_0x5333e1(0x23b)]=_0x5333e1(0x1f2),_0x39a103[_0x5333e1(0x1f9)]=_0x5333e1(0x232);const _0x58b9e4=_0x39a103;if(global['accessibilityPlatform'])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x503979,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x503979,scripts.getResultsSummary);return summaryResults;}catch{return logger[_0x5333e1(0x234)](_0x58b9e4[_0x5333e1(0x23b)]),{};}else return logger['warn'](_0x58b9e4['XhJVc']),{};},exports[a32_0x4f1400(0x236)]=async _0xfc7d8b=>{const _0xaba715=a32_0x4f1400,_0x232e4c={'bfqhl':function(_0x1a0547,_0x4ac5f9){return _0x1a0547!==_0x4ac5f9;},'zNMXN':_0xaba715(0x23e),'JTKvJ':function(_0x2d4996,_0x3c2c6e){return _0x2d4996===_0x3c2c6e;},'YhveM':_0xaba715(0x21b),'YzztZ':function(_0x14e1fe,_0x4e1f31){return _0x14e1fe===_0x4e1f31;},'TGifv':_0xaba715(0x22e),'KTwxR':_0xaba715(0x204),'vkINE':function(_0x49c83b,_0x4e7dd7){return _0x49c83b(_0x4e7dd7);},'lVPjV':function(_0x212022,_0x25fa5f){return _0x212022===_0x25fa5f;},'lIhor':_0xaba715(0x1fb),'XeIcV':function(_0x25dd05,_0x2e8b49){return _0x25dd05>_0x2e8b49;},'IEmxW':_0xaba715(0x1f7)};try{if(!_0x232e4c[_0xaba715(0x22c)](_0xfc7d8b['deviceName'],''))return logger[_0xaba715(0x1e0)](_0x232e4c[_0xaba715(0x1f4)]),![];const _0x4a6074=_0xfc7d8b[_0xaba715(0x20a)];if(!(_0x232e4c[_0xaba715(0x215)](_0x4a6074,_0x232e4c[_0xaba715(0x21a)])||_0x232e4c['YzztZ'](_0x4a6074,_0x232e4c[_0xaba715(0x216)])))return logger[_0xaba715(0x1e0)](_0x232e4c['KTwxR']),![];const _0x122e60=_0x232e4c[_0xaba715(0x20d)](parseInt,_0xfc7d8b[_0xaba715(0x241)]);if(!(_0x232e4c[_0xaba715(0x219)](_0x122e60,_0x232e4c[_0xaba715(0x20e)])||_0x232e4c[_0xaba715(0x22a)](_0x122e60,0x5e)))return logger[_0xaba715(0x1e0)](_0x232e4c[_0xaba715(0x227)]),![];}catch(_0x251bd2){logger[_0xaba715(0x234)](_0xaba715(0x21d)+util[_0xaba715(0x224)](_0x251bd2));}return!![];},exports['processAccessibilityCaps']=(_0x200418,_0x29b747,_0x51cf7e)=>{const _0x43a601=a32_0x4f1400,_0x5bfec5={'vbOMl':function(_0x287d71){return _0x287d71();},'HDHhe':_0x43a601(0x1f1),'sNzYW':function(_0x253cac,_0x4d2115){return _0x253cac===_0x4d2115;},'YfIIZ':'chrome','rSEji':_0x43a601(0x22e),'FQaex':_0x43a601(0x204),'iRszg':function(_0x3355db,_0x3dec9b){return _0x3355db===_0x3dec9b;},'tImqB':'latest','aPxGW':function(_0x58ae2d,_0x2e4d32){return _0x58ae2d>_0x2e4d32;},'Zgomi':_0x43a601(0x1f7),'aniEz':function(_0x44575f,_0x6bbc9b){return _0x44575f(_0x6bbc9b);},'POlqa':_0x43a601(0x23e),'CECGE':function(_0x20c76c,_0x22a52e){return _0x20c76c+_0x22a52e;},'ztIBw':function(_0x3f61d2,_0xdff7e1){return _0x3f61d2(_0xdff7e1);}};try{if(_0x5bfec5[_0x43a601(0x1db)](isAccessibilityAutomationSession)){global[_0x43a601(0x238)]=!![];!_0x200418[_0x5bfec5[_0x43a601(0x1e5)]]&&(global[_0x43a601(0x238)]=![]);!(_0x5bfec5[_0x43a601(0x1e8)](_0x200418[_0x43a601(0x1ea)],_0x5bfec5[_0x43a601(0x1e3)])||_0x5bfec5['sNzYW'](_0x200418[_0x43a601(0x1ea)],_0x5bfec5[_0x43a601(0x1e2)]))&&(logger[_0x43a601(0x1e0)](_0x5bfec5[_0x43a601(0x233)]),global[_0x43a601(0x238)]=![]);!(_0x5bfec5[_0x43a601(0x1f6)](_0x200418[_0x43a601(0x241)],_0x5bfec5[_0x43a601(0x217)])||_0x5bfec5[_0x43a601(0x1fc)](_0x200418[_0x43a601(0x241)],0x5e))&&(logger[_0x43a601(0x1e0)](_0x5bfec5[_0x43a601(0x1ed)]),global[_0x43a601(0x238)]=![]);!_0x5bfec5[_0x43a601(0x239)](isUndefined,_0x200418[_0x43a601(0x225)])&&(logger['warn'](_0x5bfec5[_0x43a601(0x235)]),global['accessibilityPlatform']=![]);if(!global[_0x43a601(0x238)]){_0x200418[_0x5bfec5['HDHhe']]=![];const _0x3ca829=_0x5bfec5['CECGE'](_0x29b747,_0x5bfec5[_0x43a601(0x243)](encodeURIComponent,JSON[_0x43a601(0x21e)](_0x200418)));_0x51cf7e&&(_0x51cf7e['currentTest'][_0x43a601(0x229)][_0x43a601(0x209)][_0x43a601(0x22f)][_0x43a601(0x214)][_0x43a601(0x228)]=_0x3ca829);}}}catch(_0x4e662e){logger['debug'](_0x43a601(0x206)+util[_0x43a601(0x224)](_0x4e662e));}};
|
|
1
|
+
const a32_0x465d3a=a32_0x39a0;function a32_0x4b44(){const _0x260a81=['includeIssueType','YfWNQ','78870pxSeEp','xTgKP','qgfiq','performScan','Zhhjq','error','name','148664LJMcBi','accessibilityOptions.wcagVersion','Uphqj','../../helpers/helper','executeAsyncScript','gNkhn','browserStackExecuteDriver','4147ExsgHa','browser_version','lJZSp','RdPuL','QEqIT','project','connectOptions','currentTest','executeScript','nFBss','BS_A11Y_JWT','snIUL','rkWgv','scannerVersion','880103fsFHIL','uTYtB','format','evaluate','DULPP','152rxyVDU','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','ccmEL','accessibilityPlatform','wcagVersion','No\x20summaryResults\x20found.','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','accessibilityOptions.authToken','WXqvA','16fuBkkG','wsEndpoint','49740mmhSku','gaKFs','platformValidation','bstackSdkArgs','ZJUuC','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','UnWHU','accessibilityOptions.scannerVersion','method','ayDnu','No\x20accessibility\x20results\x20were\x20found.','getAccessibilityResultsSummary','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','stringify','BXRXm','parse','accessibilityOptions','10533zcTvrH','DRvfY','constructor','accessibilityOptions.includeIssueType.bestPractice','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','742464dctpKi','browserName','QEtbg','252294kJngbE','playwright-chromium','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','IASWx','debug','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','bestPractice','scannerProcessingTimeout','chrome','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','Playwright','OUWRg','env','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','10tpPohb','603QOnusD','browserStackEvaluate','gbCsA','DrKJF','needsReview','browserstack.accessibility','warn','setAccessibilityCapabilities','replace','(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','HmhXm','NqoLT','testInfo','accessibilityOptions.includeIssueType.needsReview','RrMUh','vhidq','../../helpers/logger'];a32_0x4b44=function(){return _0x260a81;};return a32_0x4b44();}function a32_0x39a0(_0x307c74,_0x43cf2d){const _0x4b443e=a32_0x4b44();return a32_0x39a0=function(_0x39a0f2,_0x49e9ec){_0x39a0f2=_0x39a0f2-0x1f3;let _0x2c0675=_0x4b443e[_0x39a0f2];return _0x2c0675;},a32_0x39a0(_0x307c74,_0x43cf2d);}(function(_0x1e52b9,_0x3f3b6a){const _0x5136f1=a32_0x39a0,_0x727e3f=_0x1e52b9();while(!![]){try{const _0x44e2be=parseInt(_0x5136f1(0x1fe))/0x1*(-parseInt(_0x5136f1(0x222))/0x2)+-parseInt(_0x5136f1(0x235))/0x3*(-parseInt(_0x5136f1(0x218))/0x4)+-parseInt(_0x5136f1(0x24b))/0x5*(parseInt(_0x5136f1(0x23d))/0x6)+-parseInt(_0x5136f1(0x213))/0x7+parseInt(_0x5136f1(0x23a))/0x8+parseInt(_0x5136f1(0x24c))/0x9*(parseInt(_0x5136f1(0x1f7))/0xa)+parseInt(_0x5136f1(0x205))/0xb*(parseInt(_0x5136f1(0x224))/0xc);if(_0x44e2be===_0x3f3b6a)break;else _0x727e3f['push'](_0x727e3f['shift']());}catch(_0x23c865){_0x727e3f['push'](_0x727e3f['shift']());}}}(a32_0x4b44,0xe02a5));const util=require('util'),logger=require(a32_0x465d3a(0x1f4))['winstonLogger'],{isAccessibilityAutomationSession}=require('../../helpers/accessibility-automation/helper'),{isUndefined}=require(a32_0x465d3a(0x201)),scripts=require('../../helpers/accessibility-automation/scripts');exports[a32_0x465d3a(0x24d)]=async(_0x32e351,_0x2437cc,_0x2df295={})=>{const _0x745c2a=a32_0x465d3a,_0x5e07c7={};_0x5e07c7[_0x745c2a(0x24e)]=_0x745c2a(0x227);const _0x4be31c=_0x5e07c7;return await _0x32e351[_0x745c2a(0x216)]('(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'+_0x2437cc[_0x745c2a(0x254)](/arguments/g,_0x4be31c['gbCsA'])+_0x745c2a(0x230)+JSON[_0x745c2a(0x231)](_0x2df295)+')');},exports[a32_0x465d3a(0x204)]=async(_0x984054,_0x51cb55,_0x21f104={})=>{const _0x241e91=a32_0x465d3a,_0x257580={};_0x257580[_0x241e91(0x221)]=function(_0x30d5fa,_0x18ea71){return _0x30d5fa===_0x18ea71;},_0x257580[_0x241e91(0x211)]='WebDriver',_0x257580[_0x241e91(0x256)]=function(_0x5483b0,_0xde116e){return _0x5483b0===_0xde116e;},_0x257580['jTlAL']=_0x241e91(0x247),_0x257580[_0x241e91(0x200)]=_0x241e91(0x227);const _0x44fd68=_0x257580;if(_0x44fd68[_0x241e91(0x221)](_0x984054[_0x241e91(0x237)][_0x241e91(0x1fd)],_0x44fd68['rkWgv']))return await _0x984054[_0x241e91(0x202)](_0x51cb55,_0x21f104);else{if(_0x44fd68[_0x241e91(0x256)](_0x984054[_0x241e91(0x237)][_0x241e91(0x1fd)],_0x44fd68['jTlAL']))return await _0x984054[_0x241e91(0x20d)](_0x241e91(0x255)+_0x51cb55[_0x241e91(0x254)](/arguments/g,_0x44fd68[_0x241e91(0x200)])+_0x241e91(0x21e)+JSON[_0x241e91(0x231)](_0x21f104)+')');}},exports[a32_0x465d3a(0x253)]=async _0x74904d=>{const _0x138d7c=a32_0x465d3a,_0x18ca42={};_0x18ca42[_0x138d7c(0x248)]=_0x138d7c(0x1ff),_0x18ca42['cKvsA']='accessibilityOptions.scannerProcessingTimeout',_0x18ca42[_0x138d7c(0x203)]=_0x138d7c(0x238),_0x18ca42[_0x138d7c(0x214)]=_0x138d7c(0x259),_0x18ca42[_0x138d7c(0x1f9)]=_0x138d7c(0x220),_0x18ca42['vhidq']=_0x138d7c(0x22b);const _0x1cb866=_0x18ca42;_0x74904d[_0x138d7c(0x234)]&&(_0x74904d[_0x138d7c(0x234)][_0x138d7c(0x21c)]&&(_0x74904d[_0x1cb866['OUWRg']]=_0x74904d[_0x138d7c(0x234)][_0x138d7c(0x21c)]),_0x74904d[_0x138d7c(0x234)][_0x138d7c(0x244)]&&(_0x74904d[_0x1cb866['cKvsA']]=_0x74904d[_0x138d7c(0x234)]['scannerProcessingTimeout']),_0x74904d[_0x138d7c(0x234)]['includeIssueType']&&(_0x74904d[_0x1cb866[_0x138d7c(0x203)]]=_0x74904d[_0x138d7c(0x234)][_0x138d7c(0x1f5)][_0x138d7c(0x243)],_0x74904d[_0x1cb866['uTYtB']]=_0x74904d[_0x138d7c(0x234)]['includeIssueType'][_0x138d7c(0x250)]));const _0x34023a=JSON[_0x138d7c(0x233)](process[_0x138d7c(0x249)][_0x138d7c(0x24a)])[_0x138d7c(0x212)];_0x74904d[_0x1cb866['qgfiq']]=process[_0x138d7c(0x249)][_0x138d7c(0x20f)],_0x74904d[_0x1cb866[_0x138d7c(0x1f3)]]=_0x34023a,delete _0x74904d[_0x138d7c(0x234)];},exports['getAccessibilityResults']=async _0x4aece7=>{const _0x43e954=a32_0x465d3a,_0xbdba81={};_0xbdba81[_0x43e954(0x210)]=_0x43e954(0x22e),_0xbdba81[_0x43e954(0x232)]=_0x43e954(0x229);const _0x5eedd8=_0xbdba81;if(global[_0x43e954(0x21b)])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x4aece7,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x4aece7,scripts.getResults);return res;}catch{return logger[_0x43e954(0x1fc)](_0x5eedd8[_0x43e954(0x210)]),[];}else return logger[_0x43e954(0x252)](_0x5eedd8[_0x43e954(0x232)]),[];},exports[a32_0x465d3a(0x1fa)]=async(_0x53413a,_0x28578b='')=>{const _0x4c2140=a32_0x465d3a;if(global['accessibilityPlatform']){const _0x21070a={};return _0x21070a[_0x4c2140(0x22c)]=_0x28578b,await exports[_0x4c2140(0x24d)](_0x53413a,scripts[_0x4c2140(0x1fa)],_0x21070a);}},exports[a32_0x465d3a(0x22f)]=async _0x865af1=>{const _0x5a3586=a32_0x465d3a,_0x2e796a={};_0x2e796a[_0x5a3586(0x217)]=_0x5a3586(0x21d),_0x2e796a['DrKJF']=_0x5a3586(0x242);const _0x530d37=_0x2e796a;if(global[_0x5a3586(0x21b)])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x865af1,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x865af1,scripts.getResultsSummary);return summaryResults;}catch{return logger[_0x5a3586(0x241)](_0x530d37[_0x5a3586(0x217)]),{};}else return logger[_0x5a3586(0x252)](_0x530d37[_0x5a3586(0x24f)]),{};},exports[a32_0x465d3a(0x226)]=async _0xe5370f=>{const _0x1f39b6=a32_0x465d3a,_0x4884bc={'NqoLT':function(_0x5b0d1c,_0x3448f6){return _0x5b0d1c!==_0x3448f6;},'YLvdc':_0x1f39b6(0x246),'ZJUuC':function(_0x2b9a4c,_0x3052fa){return _0x2b9a4c===_0x3052fa;},'ccmEL':'chrome','YfWNQ':'playwright-chromium','QEtbg':_0x1f39b6(0x239),'pvqkt':function(_0x3ec2df,_0x312775){return _0x3ec2df(_0x312775);},'Ykmzh':function(_0x2a9092,_0x4d835b){return _0x2a9092===_0x4d835b;},'nFBss':'latest','UnWHU':function(_0x1e54cb,_0x3d8f4e){return _0x1e54cb>_0x3d8f4e;},'lJZSp':_0x1f39b6(0x21f)};try{if(!_0x4884bc[_0x1f39b6(0x257)](_0xe5370f['deviceName'],''))return logger['warn'](_0x4884bc['YLvdc']),![];const _0x33634d=_0xe5370f['browser'];if(!(_0x4884bc[_0x1f39b6(0x228)](_0x33634d,_0x4884bc[_0x1f39b6(0x21a)])||_0x4884bc['ZJUuC'](_0x33634d,_0x4884bc[_0x1f39b6(0x1f6)])))return logger[_0x1f39b6(0x252)](_0x4884bc[_0x1f39b6(0x23c)]),![];const _0x6fdb77=_0x4884bc['pvqkt'](parseInt,_0xe5370f[_0x1f39b6(0x206)]);if(!(_0x4884bc['Ykmzh'](_0x6fdb77,_0x4884bc[_0x1f39b6(0x20e)])||_0x4884bc[_0x1f39b6(0x22a)](_0x6fdb77,0x5e)))return logger[_0x1f39b6(0x252)](_0x4884bc[_0x1f39b6(0x207)]),![];}catch(_0x14200b){logger[_0x1f39b6(0x241)](_0x1f39b6(0x23f)+util[_0x1f39b6(0x215)](_0x14200b));}return!![];},exports['processAccessibilityCaps']=(_0x2b93f2,_0x43bedc,_0x4f67a5)=>{const _0xac272d=a32_0x465d3a,_0x12efad={'MhnUA':function(_0x469c04){return _0x469c04();},'xTgKP':_0xac272d(0x251),'jMvIs':function(_0x3bc400,_0xf2b345){return _0x3bc400===_0xf2b345;},'IASWx':_0xac272d(0x245),'RdPuL':function(_0x5d2450,_0x30ea31){return _0x5d2450===_0x30ea31;},'Zhhjq':_0xac272d(0x23e),'bdHJx':_0xac272d(0x239),'NMEwj':function(_0x39670b,_0x56666a){return _0x39670b===_0x56666a;},'gaKFs':'latest','DRvfY':function(_0x62db2c,_0x13cc9d){return _0x62db2c>_0x13cc9d;},'QEqIT':_0xac272d(0x21f),'ayDnu':function(_0x9ac18d,_0x397da6){return _0x9ac18d(_0x397da6);},'RrMUh':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','xMArE':function(_0x3db695,_0x418e40){return _0x3db695+_0x418e40;}};try{if(_0x12efad['MhnUA'](isAccessibilityAutomationSession)){global[_0xac272d(0x21b)]=!![];!_0x2b93f2[_0x12efad[_0xac272d(0x1f8)]]&&(global[_0xac272d(0x21b)]=![]);!(_0x12efad['jMvIs'](_0x2b93f2[_0xac272d(0x23b)],_0x12efad[_0xac272d(0x240)])||_0x12efad[_0xac272d(0x208)](_0x2b93f2[_0xac272d(0x23b)],_0x12efad[_0xac272d(0x1fb)]))&&(logger['warn'](_0x12efad['bdHJx']),global[_0xac272d(0x21b)]=![]);!(_0x12efad['NMEwj'](_0x2b93f2['browser_version'],_0x12efad[_0xac272d(0x225)])||_0x12efad[_0xac272d(0x236)](_0x2b93f2['browser_version'],0x5e))&&(logger[_0xac272d(0x252)](_0x12efad[_0xac272d(0x209)]),global[_0xac272d(0x21b)]=![]);!_0x12efad[_0xac272d(0x22d)](isUndefined,_0x2b93f2['deviceName'])&&(logger['warn'](_0x12efad[_0xac272d(0x25a)]),global[_0xac272d(0x21b)]=![]);if(!global[_0xac272d(0x21b)]){_0x2b93f2[_0x12efad['xTgKP']]=![];const _0x1ba918=_0x12efad['xMArE'](_0x43bedc,_0x12efad['ayDnu'](encodeURIComponent,JSON['stringify'](_0x2b93f2)));_0x4f67a5&&(_0x4f67a5[_0xac272d(0x20c)][_0xac272d(0x258)][_0xac272d(0x20a)]['use'][_0xac272d(0x20b)][_0xac272d(0x223)]=_0x1ba918);}}}catch(_0x5f0235){logger[_0xac272d(0x241)](_0xac272d(0x219)+util[_0xac272d(0x215)](_0x5f0235));}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a33_0x311868=a33_0x2f32;function a33_0x2f32(_0x417705,_0x36e66c){const _0x291596=a33_0x2915();return a33_0x2f32=function(_0x2f329f,_0x50814c){_0x2f329f=_0x2f329f-0x1df;let _0x32f52d=_0x291596[_0x2f329f];return _0x32f52d;},a33_0x2f32(_0x417705,_0x36e66c);}(function(_0xbb07c4,_0x1c7bad){const _0x2f4d2c=a33_0x2f32,_0x2cdb08=_0xbb07c4();while(!![]){try{const _0x1baf05=-parseInt(_0x2f4d2c(0x291))/0x1*(-parseInt(_0x2f4d2c(0x289))/0x2)+parseInt(_0x2f4d2c(0x22b))/0x3+parseInt(_0x2f4d2c(0x244))/0x4*(parseInt(_0x2f4d2c(0x24e))/0x5)+-parseInt(_0x2f4d2c(0x295))/0x6*(parseInt(_0x2f4d2c(0x21c))/0x7)+parseInt(_0x2f4d2c(0x274))/0x8*(parseInt(_0x2f4d2c(0x286))/0x9)+-parseInt(_0x2f4d2c(0x261))/0xa+parseInt(_0x2f4d2c(0x257))/0xb;if(_0x1baf05===_0x1c7bad)break;else _0x2cdb08['push'](_0x2cdb08['shift']());}catch(_0x1275e8){_0x2cdb08['push'](_0x2cdb08['shift']());}}}(a33_0x2915,0x3e724));function a33_0x2915(){const _0x2f127f=['true','default','requirePWModule','--grep','4UaSOIC','fAGsk','xQKhg','reporter','env','startsWith','IvLMp','cliConfig','QzofY','dyTAm','2482490ysZPPA','iqnIO','../../helpers/test-observability/constants','push','automation','--config','sTuKf','globalSetup','readFileSync','1986677uhcTGf','debug','../../helpers/accessibility-automation/helper','lxRFL','parse','nUved','bUvkI','MhNav','skipSessionStatus','HuUji','4942590ykBEVG','npx','finalExecution','false','Error\x20in\x20running\x20user\x20global\x20setup\x20for\x20playwright','accessibilityOptions','PLAYWRIGHT','respectGitIgnore','getPackageType','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','cwd','info','pw_result.json','\x0a\x0aconst\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0amodule.exports\x20=\x20modifyPWConfig();\x0a','xYybt','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','object','markSDKSetupComplete','Deleting\x20','1410584HTWVhm','clearTempPWConfig','./reporter/pwUtils','isUndefined','../../helpers/test-observability/utils','@playwright/test','hgTWq','./accessibility-helper','errorMessage','testDir','isTrue','null','isFalse','vCYJi','GwfIN','close','paths','testObservability','9QdVTkG','thIkd','UEtxr','2rvyynr','YzsZr','ntLnq','zsRFi','filterBrowserstackConfig','ZUnqW','testContextOptions','PACKAGE_TYPE','4289QqHUNJ','qCBvv','pUDaK','XuCZD','426588YOaUjq','stringify','TDJMu','has','playwright-browserstack-sdk.config.cjs','JfBLi','BxTAz','dirname','browserstackSetupConfig.json','iCLsX','xWeAO','trim','uwCVg','pgpFq','.browserstack','includes','BROWSERSTACK_TEST_OBSERVABILITY','assign','string','MODULE','hnTGi','XzAbB','gcuJn','BROWSERSTACK_TEST_ACCESSIBILITY_YML','yBypQ','wjnSM','EAleu','BROWSERSTACK_SETUP_CONFIG_PATH','slice','RltVl','homedir','inherit','platforms','Playwright\x20process\x20exited\x20with\x20code\x20','SdfwJ','bgxHD','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','lzWSM','rcMUn','split','error','accessibility','RrwId','config','util','DZFwh','testMatch','test','dppRY','mTYkK','win32','bYxZi','skipSessionName','serializeToYamlString','map','../utils/constants','BROWSERSTACK_AUTOMATION','initialize','../../helpers/test-observability/error-handler','Getting\x20your\x20playwright\x20config\x20from\x20','WRunE','filter','znXjm','Error\x20in\x20getting\x20funnel\x20data\x20results','btqOc','mVmpC','TQUIL','UzkFP','Iluvb','fAaSm','join','ymOah','DMrAj','aFewD','writeFileSync','length','_internal','QrUyo','Adding\x20browserstack\x20configs\x20to\x20setup\x20for\x20Observability','zQlll','--disable-browserstack-automation','21TDXkIO','./globalSetup.js','hstua','get','project','apply','BS_A11Y_TEST_RUN_ID','../../helpers/test-observability/sessionHandler','resolve','existsSync','--config=','path','platform','../../helpers/helper','JNihF','316848cGFmtH','Error\x20in\x20closing\x20playwright','--disable-test-observability','getProxyUrl','PEXnq','VBnVe','LTtjn','Ubgye','BZdXI','exitCode','IkQQP','unlinkSync','bXwdx','launch','BROWSERSTACK_PW_CONFIG_DIR','HFXse','winstonLogger','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','cAyZC','BrowserStack\x20Accessibility\x20Automation\x20Test\x20Run\x20ID:\x20','BS_A11Y_JWT'];a33_0x2915=function(){return _0x2f127f;};return a33_0x2915();}const fs=require('fs'),path=require('path'),os=require('os'),{spawn}=require('child_process'),{format}=require(a33_0x311868(0x1f7)),logger=require('../../helpers/logger')[a33_0x311868(0x23b)],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require(a33_0x311868(0x229)),constants=require(a33_0x311868(0x202)),{FRAMEWORKS}=require(a33_0x311868(0x250)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require(a33_0x311868(0x276)),{CrashReporter,o11yErrorHandler}=require(a33_0x311868(0x205)),{getFrameworkVersion}=require(a33_0x311868(0x278)),{createAccessibilityTestRun,stopAccessibilityTestRun,checkAccessibilityPlatformConfig}=require(a33_0x311868(0x259)),{setAccessibilityCapabilities}=require(a33_0x311868(0x27b)),SessionHandler=require(a33_0x311868(0x223));async function requireOrImportDefaultObject(_0x185445){const _0x1eb72b=a33_0x311868,_0x94a4c9={'bUvkI':function(_0x554dd3){return _0x554dd3();},'bYxZi':function(_0x215879,_0x1dce2c){return _0x215879(_0x1dce2c);},'iqnIO':function(_0x3f867e,_0x589ce0){return _0x3f867e===_0x589ce0;},'gcuJn':_0x1eb72b(0x271),'XwmGY':function(_0x3bd26d,_0x177cc5){return _0x3bd26d in _0x177cc5;},'TDJMu':_0x1eb72b(0x241)},{requireOrImport:_0x534eda}=helper[_0x1eb72b(0x242)]['apply'](null,_0x94a4c9[_0x1eb72b(0x25d)](getTransformPath));let _0x4fb12e=await _0x94a4c9[_0x1eb72b(0x1fe)](_0x534eda,_0x185445);return _0x4fb12e&&_0x94a4c9[_0x1eb72b(0x24f)](typeof _0x4fb12e,_0x94a4c9[_0x1eb72b(0x1e1)])&&_0x94a4c9['XwmGY'](_0x94a4c9[_0x1eb72b(0x297)],_0x4fb12e)&&(_0x4fb12e=_0x4fb12e[_0x94a4c9[_0x1eb72b(0x297)]]),_0x4fb12e;}const getUserPlaywrightConfig=async(_0x31dddc,_0x1c2c94)=>{const _0x2fbdb6=a33_0x311868,_0x297d1f={'JfBLi':function(_0x1c795c){return _0x1c795c();},'dyTAm':function(_0x1326bc,_0x43b6e4){return _0x1326bc(_0x43b6e4);},'UEtxr':function(_0x334592,_0x2261c2){return _0x334592(_0x2261c2);},'Vasrx':'Error\x20in\x20importing\x20your\x20playwright\x20config:\x20','pgpFq':_0x2fbdb6(0x26a),'DMrAj':_0x2fbdb6(0x226)},_0x381a0f=!helper[_0x2fbdb6(0x277)](_0x31dddc['config']),_0x5efeeb=_0x381a0f?path[_0x2fbdb6(0x224)](process['cwd'](),_0x31dddc[_0x2fbdb6(0x1f6)]):process[_0x2fbdb6(0x26b)](),{resolveConfigFile:_0x13e823}=helper[_0x2fbdb6(0x242)][_0x2fbdb6(0x221)](null,_0x297d1f[_0x2fbdb6(0x29a)](getConfigLoaderPath)),_0x5a3309=_0x297d1f[_0x2fbdb6(0x24d)](_0x13e823,_0x5efeeb);let _0x4c3766={};if(_0x5a3309){logger[_0x2fbdb6(0x26c)](_0x2fbdb6(0x206)+_0x5a3309);try{_0x4c3766=await _0x297d1f[_0x2fbdb6(0x288)](requireOrImportDefaultObject,_0x5a3309);}catch(_0x2cedf5){return logger[_0x2fbdb6(0x1f3)](_0x297d1f['Vasrx'],_0x2cedf5),null;}}else logger[_0x2fbdb6(0x26c)](_0x297d1f[_0x2fbdb6(0x2a2)]);if(_0x381a0f){const _0x5c4a56=_0x1c2c94['findIndex'](_0x5b03eb=>_0x5b03eb===_0x2fbdb6(0x253)||_0x5b03eb==='-c'||_0x5b03eb[_0x2fbdb6(0x249)]('--config='));_0x1c2c94['splice'](_0x5c4a56,_0x1c2c94[_0x5c4a56]['startsWith'](_0x297d1f[_0x2fbdb6(0x213)])?0x1:0x2);}const _0x37890d={};return _0x37890d[_0x2fbdb6(0x227)]=_0x5a3309,_0x37890d[_0x2fbdb6(0x1f6)]=_0x4c3766,_0x37890d;},setGlobalSetup=(_0x300050,_0x5c83ed)=>{const _0x3bf977=a33_0x311868,_0x460ce9={'thIkd':'globalSetup','VIDiS':'Can\x27t\x20get\x20user\x20defined\x20global\x20setup\x20file','yBypQ':function(_0x431faf,_0x559dbe){return _0x431faf+_0x559dbe;},'DZFwh':_0x3bf977(0x265),'ymOah':function(_0x496426,_0x3d2c59){return _0x496426(_0x3d2c59);},'LrKhO':_0x3bf977(0x21d)};if(!_0x300050)return![];try{if(_0x300050[_0x3bf977(0x255)]){let _0x512072;const _0x535113=path[_0x3bf977(0x224)](_0x5c83ed,_0x300050[_0x460ce9[_0x3bf977(0x287)]]);if(fs[_0x3bf977(0x225)](_0x535113))_0x512072=_0x535113;else{const _0x2d80a3={};_0x2d80a3[_0x3bf977(0x284)]=[_0x5c83ed],_0x512072=require[_0x3bf977(0x224)](_0x300050[_0x460ce9['thIkd']],_0x2d80a3);}if(!_0x512072)throw new Error(_0x460ce9['VIDiS']);process[_0x3bf977(0x248)][_0x3bf977(0x1ef)]=_0x512072;}}catch(_0x5cc21a){logger['error'](_0x460ce9[_0x3bf977(0x1e3)](_0x460ce9[_0x3bf977(0x1f8)],_0x460ce9[_0x3bf977(0x212)](format,_0x5cc21a)));}return _0x300050[_0x3bf977(0x255)]=require[_0x3bf977(0x224)](_0x460ce9['LrKhO']),!![];},addReporter=_0xd43077=>{const _0x4bf302=a33_0x311868,_0x26921f={};_0x26921f[_0x4bf302(0x293)]='./reporter/reporter.js',_0x26921f[_0x4bf302(0x21e)]=_0x4bf302(0x247),_0x26921f[_0x4bf302(0x25a)]=function(_0x2058c3,_0x1699e4){return _0x2058c3===_0x1699e4;},_0x26921f[_0x4bf302(0x23a)]=_0x4bf302(0x2a7),_0x26921f[_0x4bf302(0x21a)]=_0x4bf302(0x271);const _0x42b557=_0x26921f,_0xb0c110=path[_0x4bf302(0x211)](__dirname,_0x42b557[_0x4bf302(0x293)]),_0x42cb12=[_0xb0c110];if(helper[_0x4bf302(0x277)](_0xd43077[_0x42b557[_0x4bf302(0x21e)]]))_0xd43077[_0x42b557[_0x4bf302(0x21e)]]=[_0x42cb12];else{if(_0x42b557[_0x4bf302(0x25a)](typeof _0xd43077[_0x42b557[_0x4bf302(0x21e)]],_0x42b557[_0x4bf302(0x23a)]))_0xd43077[_0x42b557[_0x4bf302(0x21e)]]=[[_0xd43077[_0x42b557[_0x4bf302(0x21e)]]],_0x42cb12];else _0x42b557[_0x4bf302(0x25a)](typeof _0xd43077[_0x42b557[_0x4bf302(0x21e)]],_0x42b557[_0x4bf302(0x21a)])&&_0xd43077[_0x42b557[_0x4bf302(0x21e)]]['push'](_0x42cb12);}},handleO11yRerun=_0x5728e6=>{const _0x569bb9=a33_0x311868,_0x18c46d={};_0x18c46d[_0x569bb9(0x24c)]=function(_0x3acc8b,_0x59f426){return _0x3acc8b!==_0x59f426;},_0x18c46d[_0x569bb9(0x27a)]=_0x569bb9(0x27f),_0x18c46d['mVmpC']=_0x569bb9(0x243);const _0x172cb9=_0x18c46d,_0x192f81=helper[_0x569bb9(0x27e)](process[_0x569bb9(0x248)]['BROWSERSTACK_RERUN']);if(_0x192f81){const _0x5f09c6=process['env']['BROWSERSTACK_RERUN_TESTS'],_0x8f546=[];if(_0x172cb9[_0x569bb9(0x24c)](_0x5f09c6,_0x172cb9['hgTWq'])&&!helper[_0x569bb9(0x277)](_0x5f09c6)){_0x5f09c6['split'](',')[_0x569bb9(0x201)](_0x13c635=>{const _0x1e52db=_0x569bb9;_0x8f546['push']('('+_0x13c635[_0x1e52db(0x2a0)]()+')');});const _0x6dbaaa='^'+_0x8f546[_0x569bb9(0x211)]('|')+'$';_0x5728e6[_0x569bb9(0x251)](_0x172cb9[_0x569bb9(0x20c)],_0x6dbaaa);}}},spawnOriginalProcess=_0x4ea7fa=>{const _0x47ea9d=a33_0x311868,_0x5e0b21={'BxTAz':function(_0x252f3f,_0x5e8c65,_0x567991,_0x5d771f){return _0x252f3f(_0x5e8c65,_0x567991,_0x5d771f);},'XzAbB':_0x47ea9d(0x262),'kfmlw':'playwright','WRunE':function(_0x2f57fa,_0x123e40){return _0x2f57fa===_0x123e40;},'IvLMp':'win32','IkQQP':_0x47ea9d(0x1ea)};_0x5e0b21[_0x47ea9d(0x29b)](spawn,_0x5e0b21[_0x47ea9d(0x1e0)],[_0x5e0b21['kfmlw'],..._0x4ea7fa[_0x47ea9d(0x1e7)](0x1)],{'shell':_0x5e0b21[_0x47ea9d(0x207)](process[_0x47ea9d(0x228)],_0x5e0b21[_0x47ea9d(0x24a)]),'stdio':_0x5e0b21[_0x47ea9d(0x235)],'cwd':process[_0x47ea9d(0x26b)]()});},isTestCommand=(_0x161be4,_0xe2b821)=>{const _0x43d5c9=a33_0x311868,_0x12b86e={};_0x12b86e[_0x43d5c9(0x28a)]=function(_0x3d416b,_0x24ac5f){return _0x3d416b>_0x24ac5f;},_0x12b86e['hFMrl']=function(_0x1e915a,_0x2708c9){return _0x1e915a===_0x2708c9;},_0x12b86e[_0x43d5c9(0x1fc)]=_0x43d5c9(0x1fa);const _0x136e05=_0x12b86e;if(_0x136e05[_0x43d5c9(0x28a)](_0xe2b821[_0x43d5c9(0x216)],0x1)&&_0x136e05['hFMrl'](_0xe2b821[0x1],_0x136e05['mTYkK']))return!![];return![];},initO11yCrashReporter=(_0x510c0b,_0x356023)=>{const _0x17f908=a33_0x311868,_0x52b0e4={'XppRj':function(_0x5e02f2,_0x4635f4){return _0x5e02f2(_0x4635f4);}},_0x5da054={'frameworkName':FRAMEWORKS[_0x17f908(0x267)],'frameworkVersion':_0x52b0e4['XppRj'](getFrameworkVersion,FRAMEWORKS[_0x17f908(0x267)])};CrashReporter[_0x17f908(0x204)](_0x5da054,_0x510c0b,_0x356023);},launchO11ySession=o11yErrorHandler(async function launchO11ySession(_0x2436f8){const _0x21de41=a33_0x311868,_0x1295fe={};_0x1295fe[_0x21de41(0x1f5)]=function(_0x25aae2,_0x391c9a){return _0x25aae2>_0x391c9a;},_0x1295fe[_0x21de41(0x246)]=function(_0x5c880b,_0x5ead9a){return _0x5c880b===_0x5ead9a;};const _0x4704c6=_0x1295fe;if(!_0x2436f8||_0x4704c6[_0x21de41(0x1f5)](_0x2436f8[_0x21de41(0x216)],0x1)&&_0x4704c6['xQKhg'](_0x2436f8[0x0],null))return process['env'][_0x21de41(0x2a5)]=![],![];return!![];});async function run(_0x52ea7b,_0x8eac60){const _0x13db32=a33_0x311868,_0x441e39={'znXjm':_0x13db32(0x2a3),'Iluvb':_0x13db32(0x26d),'BZdXI':function(_0x481d5e,_0x13f4ad){return _0x481d5e+_0x13f4ad;},'ntLnq':_0x13db32(0x20a),'bgxHD':'6|2|1|3|4|5|0|7|8','QrUyo':function(_0xd1217,_0x127da8){return _0xd1217(_0x127da8);},'fAaSm':function(_0x4303eb){return _0x4303eb();},'PrkAK':_0x13db32(0x22c),'ssSBR':'--disable-browserstack-automation','zsRFi':_0x13db32(0x264),'RltVl':_0x13db32(0x22d),'Ubgye':function(_0x3c2ca8,_0x49873){return _0x3c2ca8>=_0x49873;},'PpBEh':'Error\x20in\x20deleting\x20playwright\x20results','uwCVg':function(_0x1f6e22,_0x36e296,_0x9d3a1f){return _0x1f6e22(_0x36e296,_0x9d3a1f);},'JNihF':function(_0x1a9bfb,_0x187cb4){return _0x1a9bfb(_0x187cb4);},'LTtjn':'BrowserStack\x20config\x20file\x20not\x20found.','dppRY':_0x13db32(0x252),'xWeAO':function(_0x93162,_0xa93c9f){return _0x93162!=_0xa93c9f;},'wjnSM':function(_0xe6d53d,_0x14eaa4){return _0xe6d53d(_0x14eaa4);},'iCLsX':function(_0x8756ca,_0x466af6){return _0x8756ca(_0x466af6);},'VBnVe':'1|2|3|4|0','btqOc':_0x13db32(0x219),'SdfwJ':function(_0x81cee8,_0x2ec6d2,_0x5b3d8c){return _0x81cee8(_0x2ec6d2,_0x5b3d8c);},'nUved':function(_0xa73066,_0xab5e5c){return _0xa73066===_0xab5e5c;},'HuUji':_0x13db32(0x240),'bXwdx':function(_0xfc6161,_0x6d0f64){return _0xfc6161(_0x6d0f64);},'sTuKf':_0x13db32(0x279),'EAleu':function(_0x1707bd,_0x3cd958){return _0x1707bd(_0x3cd958);},'TQUIL':_0x13db32(0x29d),'ZUnqW':'testDir','UzkFP':'testMatch','rcMUn':'testIgnore','vCYJi':function(_0x264eeb,_0x1ca902){return _0x264eeb+_0x1ca902;},'MhNav':'Error\x20in\x20generating\x20parallellised\x20config\x20for\x20playwright:\x20','cAyZC':function(_0xa4c58b,_0x263f5c){return _0xa4c58b(_0x263f5c);},'PEXnq':function(_0x56e444,_0x54e856){return _0x56e444===_0x54e856;},'fAGsk':_0x13db32(0x299),'aFewD':'playwright-browserstack-sdk.config.js','lzWSM':function(_0x1753ba,_0x4ed3f1){return _0x1753ba>_0x4ed3f1;},'qCBvv':function(_0xfb562c,_0x4247ec,_0x34b08f,_0x2118e8){return _0xfb562c(_0x4247ec,_0x34b08f,_0x2118e8);},'GwfIN':_0x13db32(0x262),'vWqgP':'playwright','hnTGi':_0x13db32(0x1fa),'xYybt':_0x13db32(0x253),'vWUEk':_0x13db32(0x1fd),'XuCZD':_0x13db32(0x1ea),'CUuRS':_0x13db32(0x283)};!helper[_0x13db32(0x280)](process['env'][_0x13db32(0x203)])&&(process[_0x13db32(0x248)][_0x13db32(0x203)]=!![]);process['argv'][_0x13db32(0x2a4)](_0x441e39['ssSBR'])&&(process[_0x13db32(0x248)]['BROWSERSTACK_AUTOMATION']=_0x441e39['zsRFi'],_0x8eac60=_0x8eac60[_0x13db32(0x208)](_0x1cc04e=>_0x1cc04e!==_0x13db32(0x21b)));const _0x202890=_0x8eac60['indexOf'](_0x441e39[_0x13db32(0x1e8)]);_0x441e39[_0x13db32(0x232)](_0x202890,0x0)&&(process[_0x13db32(0x248)][_0x13db32(0x2a5)]=_0x441e39[_0x13db32(0x28c)],_0x8eac60=_0x8eac60[_0x13db32(0x208)](_0x10e833=>_0x10e833!==_0x13db32(0x22d)));try{const _0x1b5e3b=path['join'](helper['homedir'](),_0x441e39[_0x13db32(0x209)],_0x441e39[_0x13db32(0x20f)]);fs[_0x13db32(0x225)](_0x1b5e3b)&&fs['unlinkSync'](_0x1b5e3b);}catch(_0x3455f3){logger[_0x13db32(0x258)](_0x441e39[_0x13db32(0x233)](_0x441e39['PpBEh'],_0x3455f3));}if(!_0x441e39[_0x13db32(0x2a1)](isTestCommand,_0x52ea7b,_0x8eac60)){_0x441e39['JNihF'](spawnOriginalProcess,_0x8eac60);return;}const _0x87ae66=new BrowserStackSetup(_0x52ea7b,FRAMEWORKS[_0x13db32(0x267)]);if(!_0x87ae66[_0x13db32(0x1f6)]){logger[_0x13db32(0x1f3)](_0x441e39[_0x13db32(0x231)]);return;}await _0x87ae66[_0x13db32(0x204)]();!helper[_0x13db32(0x277)](_0x87ae66[_0x13db32(0x24b)])&&_0x87ae66[_0x13db32(0x24b)][_0x13db32(0x298)](_0x441e39[_0x13db32(0x1fb)])&&(process[_0x13db32(0x248)][_0x13db32(0x203)]=_0x87ae66['cliConfig'][_0x13db32(0x21f)](_0x441e39[_0x13db32(0x1fb)])||!![]);_0x441e39[_0x13db32(0x29f)](_0x87ae66[_0x13db32(0x1f6)]['testObservability'],null)&&!helper[_0x13db32(0x27e)](process[_0x13db32(0x248)][_0x13db32(0x2a5)])&&(process[_0x13db32(0x248)][_0x13db32(0x2a5)]=process[_0x13db32(0x248)]['BROWSERSTACK_TEST_OBSERVABILITY']||_0x87ae66['config'][_0x13db32(0x285)]);const _0x111ae1=!helper[_0x13db32(0x280)](process['env'][_0x13db32(0x2a5)]);let _0x255b39=![];_0x87ae66[_0x13db32(0x1f6)][_0x13db32(0x1f4)]&&(_0x255b39=!![],process[_0x13db32(0x248)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x87ae66['config']['accessibility']);_0x87ae66[_0x13db32(0x1f6)][_0x13db32(0x266)]&&(process[_0x13db32(0x248)][_0x13db32(0x23c)]=JSON[_0x13db32(0x296)](_0x87ae66[_0x13db32(0x1f6)]['accessibilityOptions']));const _0x5cb755=_0x8eac60['concat'](),_0x3f1a79=await _0x441e39[_0x13db32(0x2a1)](getUserPlaywrightConfig,_0x52ea7b,_0x8eac60);if(helper[_0x13db32(0x277)](_0x3f1a79)){_0x441e39[_0x13db32(0x1e4)](spawnOriginalProcess,_0x5cb755);return;}const _0x2156ee={..._0x3f1a79[_0x13db32(0x1f6)]},_0xc7c5b=_0x2156ee,_0x13093=_0x3f1a79[_0x13db32(0x227)]?path[_0x13db32(0x29c)](_0x3f1a79[_0x13db32(0x227)]):process[_0x13db32(0x26b)]();process[_0x13db32(0x248)][_0x13db32(0x239)]=_0x13093;if(!_0x441e39['uwCVg'](setGlobalSetup,_0xc7c5b,_0x13093)){_0x441e39[_0x13db32(0x29e)](spawnOriginalProcess,_0x5cb755);return;}const _0x16f3a4=await SessionHandler[_0x13db32(0x238)](_0x87ae66[_0x13db32(0x1f6)],{'frameworkName':FRAMEWORKS[_0x13db32(0x267)],'frameworkVersion':_0x441e39[_0x13db32(0x29e)](getFrameworkVersion,FRAMEWORKS['PLAYWRIGHT'])});if(_0x111ae1){const _0x3c01db=_0x441e39[_0x13db32(0x230)]['split']('|');let _0x2a1f05=0x0;while(!![]){switch(_0x3c01db[_0x2a1f05++]){case'0':await _0x441e39[_0x13db32(0x22a)](launchO11ySession,_0x16f3a4);continue;case'1':logger[_0x13db32(0x26c)](_0x441e39[_0x13db32(0x20b)]);continue;case'2':_0x441e39['SdfwJ'](initO11yCrashReporter,_0xc7c5b,_0x87ae66['config']);continue;case'3':_0x441e39['iCLsX'](addReporter,_0xc7c5b);continue;case'4':_0x441e39['wjnSM'](handleO11yRerun,_0x8eac60);continue;}break;}}let _0x5e88ec=_0x441e39[_0x13db32(0x25c)](process['env'][_0x13db32(0x1e2)],_0x441e39[_0x13db32(0x260)]);_0x5e88ec=_0x5e88ec||_0x441e39[_0x13db32(0x237)](checkAccessibilityPlatformConfig,_0x87ae66[_0x13db32(0x1f6)]),process[_0x13db32(0x248)][_0x13db32(0x1e2)]=_0x5e88ec;if(_0x5e88ec){const [_0x12566a,_0xda7866]=await _0x441e39[_0x13db32(0x1ed)](createAccessibilityTestRun,_0x87ae66[_0x13db32(0x1f6)],_0x441e39[_0x13db32(0x254)]);logger[_0x13db32(0x258)](_0x13db32(0x23e)+_0xda7866),process[_0x13db32(0x248)][_0x13db32(0x23f)]=_0x12566a,process['env'][_0x13db32(0x222)]=_0xda7866,_0x441e39[_0x13db32(0x1e5)](setAccessibilityCapabilities,_0x87ae66[_0x13db32(0x1f6)]);}(helper['isUndefined'](_0x87ae66[_0x13db32(0x1f6)]['platforms'])||_0x441e39[_0x13db32(0x25c)](_0x87ae66['config'][_0x13db32(0x1eb)][_0x13db32(0x216)],0x0))&&(process['env']['BROWSERSTACK_AUTOMATION']=![]);const _0x22fc2f=path['join'](_0x3f1a79[_0x13db32(0x227)]?path['dirname'](_0x3f1a79[_0x13db32(0x227)]):process[_0x13db32(0x26b)](),_0x441e39[_0x13db32(0x20d)]);fs[_0x13db32(0x215)](_0x22fc2f,helper[_0x13db32(0x200)](_0x87ae66[_0x13db32(0x1f6)])),process['env'][_0x13db32(0x1e6)]=_0x22fc2f,helper[_0x13db32(0x275)]();if(helper[_0x13db32(0x27e)](process[_0x13db32(0x248)]['BROWSERSTACK_AUTOMATION'])){let _0x41ac92=[];try{const _0x552dee=helper[_0x13db32(0x242)][_0x13db32(0x221)](null,_0x441e39[_0x13db32(0x210)](getProjectUtilsPath)),_0x452a59={};_0x452a59[_0x13db32(0x268)]=!![],_0x452a59[_0x13db32(0x27d)]='',_0x452a59[_0x13db32(0x1f9)]='',_0x452a59['testIgnore']='';const _0x15f23b={};_0x15f23b['respectGitIgnore']=!![];const _0x42e77e={};_0x42e77e[_0x13db32(0x220)]=_0x452a59,_0x42e77e[_0x13db32(0x217)]=_0x15f23b;let _0x936194=_0x42e77e;_0xc7c5b[_0x441e39[_0x13db32(0x28e)]]&&(_0x936194['project'][_0x441e39['ZUnqW']]=_0xc7c5b[_0x441e39[_0x13db32(0x28e)]]),_0xc7c5b[_0x441e39[_0x13db32(0x20e)]]&&(_0x936194[_0x13db32(0x220)][_0x441e39['UzkFP']]=_0xc7c5b[_0x441e39['UzkFP']]),_0xc7c5b[_0x441e39[_0x13db32(0x1f1)]]&&(_0x936194[_0x13db32(0x220)][_0x441e39[_0x13db32(0x1f1)]]=_0xc7c5b[_0x441e39[_0x13db32(0x1f1)]]),_0x936194=Object[_0x13db32(0x2a6)](_0x936194,_0x936194[_0x13db32(0x220)]),_0x41ac92=await _0x552dee['collectFilesForProject'](_0x936194);}catch(_0x35d4e1){logger[_0x13db32(0x258)](_0x441e39[_0x13db32(0x281)](_0x441e39[_0x13db32(0x25e)],_0x441e39[_0x13db32(0x23d)](format,_0x35d4e1)));}}let _0x20c245='';_0x441e39[_0x13db32(0x22f)](helper[_0x13db32(0x269)](),constants[_0x13db32(0x290)][_0x13db32(0x2a8)])?_0x20c245=_0x441e39[_0x13db32(0x245)]:_0x20c245=_0x441e39[_0x13db32(0x214)];const _0x312111=path[_0x13db32(0x211)](_0x3f1a79['path']?path[_0x13db32(0x29c)](_0x3f1a79[_0x13db32(0x227)]):process[_0x13db32(0x26b)](),_0x20c245);let _0x442c6b=_0x3f1a79[_0x13db32(0x227)]?_0x3f1a79[_0x13db32(0x227)]:'';_0x442c6b=_0x441e39[_0x13db32(0x1f0)](_0x442c6b['length'],0x0)?path[_0x13db32(0x224)](_0x442c6b):'',process[_0x13db32(0x248)]['USER_CONFIG_DETAILS_PATH']=_0x442c6b;let _0x4f7aa9=_0x13db32(0x26e);const _0x524dc1=helper[_0x13db32(0x22e)](_0x87ae66[_0x13db32(0x1f6)]);_0x524dc1&&(_0x4f7aa9=_0x441e39[_0x13db32(0x281)](_0x13db32(0x270)+_0x524dc1+'\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();',_0x4f7aa9));helper[_0x13db32(0x28d)]({},_0x8eac60),fs[_0x13db32(0x215)](_0x312111,_0x4f7aa9),helper[_0x13db32(0x272)]();const _0x38a17c=_0x441e39[_0x13db32(0x292)](spawn,_0x441e39[_0x13db32(0x282)],[_0x441e39['vWqgP'],_0x441e39[_0x13db32(0x1df)],_0x441e39[_0x13db32(0x26f)],_0x312111,..._0x8eac60[_0x13db32(0x1e7)](0x2)],{'shell':_0x441e39[_0x13db32(0x25c)](process[_0x13db32(0x228)],_0x441e39['vWUEk']),'stdio':_0x441e39[_0x13db32(0x294)],'cwd':process[_0x13db32(0x26b)](),'env':Object[_0x13db32(0x2a6)]({},process['env'],{'BROWSERSTACK_CONFIG_FILE_PATH':helper['getConfigPath'](_0x52ea7b),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x87ae66[_0x13db32(0x1f6)][_0x13db32(0x28f)][_0x13db32(0x25f)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x87ae66[_0x13db32(0x1f6)][_0x13db32(0x28f)][_0x13db32(0x1ff)],'BROWSERSTACK_LOG_LEVEL':_0x87ae66['config']['logLevel']})}),_0x4713ad=()=>{const _0x425ff2=_0x13db32;try{const _0x95f608=path[_0x425ff2(0x211)](helper[_0x425ff2(0x1e9)](),_0x441e39[_0x425ff2(0x209)],_0x441e39['Iluvb']);if(fs[_0x425ff2(0x225)](_0x95f608)){let _0x4e6ae0=fs[_0x425ff2(0x256)](_0x95f608);_0x4e6ae0=JSON[_0x425ff2(0x25b)](_0x4e6ae0),_0x87ae66[_0x425ff2(0x27c)]=_0x4e6ae0,fs[_0x425ff2(0x236)](_0x95f608);}}catch(_0x266cce){logger[_0x425ff2(0x258)](_0x441e39[_0x425ff2(0x233)](_0x441e39[_0x425ff2(0x28b)],_0x266cce));}};_0x38a17c['on'](_0x441e39['CUuRS'],async _0x553318=>{const _0x5976cd=_0x13db32;try{const _0x140467=_0x441e39[_0x5976cd(0x1ee)][_0x5976cd(0x1f2)]('|');let _0x578ad0=0x0;while(!![]){switch(_0x140467[_0x578ad0++]){case'0':fs[_0x5976cd(0x236)](_0x312111);continue;case'1':await _0x441e39[_0x5976cd(0x218)](stopAccessibilityTestRun,_0x87ae66[_0x5976cd(0x1f6)]);continue;case'2':await helper[_0x5976cd(0x263)](_0x87ae66);continue;case'3':process[_0x5976cd(0x234)]=_0x553318;continue;case'4':logger[_0x5976cd(0x258)](_0x5976cd(0x1ec)+_0x553318);continue;case'5':logger[_0x5976cd(0x26c)]('Deleting\x20'+_0x312111);continue;case'6':_0x441e39[_0x5976cd(0x210)](_0x4713ad);continue;case'7':logger[_0x5976cd(0x258)](_0x5976cd(0x273)+_0x22fc2f);continue;case'8':fs[_0x5976cd(0x236)](_0x22fc2f);continue;}break;}}catch(_0x4f1d6b){logger[_0x5976cd(0x258)](_0x441e39[_0x5976cd(0x233)](_0x441e39['PrkAK'],_0x4f1d6b));}});}module['exports']=run;
|
|
2
|
+
'use strict';function a33_0x5e7c(){const _0x20098c=['./reporter/pwUtils','ClgWH','SHPoS','XiKIs','../../helpers/test-observability/constants','zYHqS','isUndefined','platform','BROWSERSTACK_PW_CONFIG_DIR','QggeP','stringify','6|8|2|7|3|1|0|4|5','BROWSERSTACK_RERUN_TESTS','Error\x20in\x20getting\x20funnel\x20data\x20results','debug','1106676PLqhoe','xhaRI','close','guYXT','TIrQj','--disable-browserstack-automation','EzhBR','BROWSERSTACK_SETUP_CONFIG_PATH','337589FfiVHd','../../helpers/logger','3|1|0|2|4','LAiJV','skipSessionStatus','VapCK','wlqwD','1633368xAMhcQ','filter','lvgku','HFMhM','--config=','PDNiz','info','dirname','cLeFM','pw_result.json','paths','error','YedTc','uxcss','IZHUg','Iylit','ZRzKH','ElagB','existsSync','requirePWModule','BROWSERSTACK_TEST_ACCESSIBILITY_YML','BS_A11Y_JWT','vSvSY','indexOf','default','QFBMi','TrWMK','oCiIB','startsWith','PACKAGE_TYPE','config','./accessibility-helper','./globalSetup.js','slice','../../helpers/helper','NeUDA','\x0a\x0aconst\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0amodule.exports\x20=\x20modifyPWConfig();\x0a','true','getProxyUrl','initialize','util','testContextOptions','KfhpN','join','hBVTX','project','exitCode','splice','HewQo','PlPVS','test','Adding\x20browserstack\x20configs\x20to\x20setup\x20for\x20Observability','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','logLevel','.browserstack','921774QDcgcT','accessibilityOptions','findIndex','@playwright/test','nobtw','collectFilesForProject','nkPVL','null','../utils/constants','filterBrowserstackConfig','testMatch','winstonLogger','apply','lbFSC','BhQfc','parse','respectGitIgnore','browserstackSetupConfig.json','bFTeu','testObservability','voOdN','cliConfig','Dzwbe','path','isFalse','ERjqZ','nDYEJ','env','374382sZFVjt','bPXYk','Error\x20in\x20closing\x20playwright','VnWYo','CDGrW','BROWSERSTACK_TEST_OBSERVABILITY','wRisa','resolve','10erhcDZ','playwright-browserstack-sdk.config.cjs','object','coqSP','writeFileSync','trim','nFmHg','accessibility','BROWSERSTACK_AUTOMATION','assign','markSDKSetupComplete','aFLXt','DVkhS','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','JTaVS','push','YpDhl','qSBNY','../../helpers/test-observability/utils','SPVry','--config','launch','length','argv','tjZWd','Error\x20in\x20generating\x20parallellised\x20config\x20for\x20playwright:\x20','xyinp','reporter','Getting\x20your\x20playwright\x20config\x20from\x20','jgVeV','homedir','5460433zKsfYx','Error\x20in\x20deleting\x20playwright\x20results','TKrGX','10IJLDxV','platforms','unlinkSync','concat','Qcvvb','npx','1XPPqjM','globalSetup','string','SPwaQ','win32','eUxrB','readFileSync','BrowserStack\x20config\x20file\x20not\x20found.','has','iyzWC','YjoXb','xTttk','get','child_process','playwright','eXYDJ','ygxuh','../../helpers/test-observability/sessionHandler','automation','Jxlef','finalExecution','testDir','skipSessionName','xbSNp','map','USER_CONFIG_DETAILS_PATH','getPackageType','BrowserStack\x20Accessibility\x20Automation\x20Test\x20Run\x20ID:\x20','testIgnore','\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();','WXSAs','Deleting\x20','WganJ','cwd','isTrue','clearTempPWConfig','MFZxC','tYMWj','3mUkOnl','includes','inherit','fypKq','wtkUi','mCqfZ','_internal','QSmnH','FxJQa','PLAYWRIGHT','BQfuj','egkvv','split','240006qhZTgu','./reporter/reporter.js'];a33_0x5e7c=function(){return _0x20098c;};return a33_0x5e7c();}const a33_0xef5e9c=a33_0x46be;(function(_0x2105f4,_0x29cc3e){const _0x2e946e=a33_0x46be,_0x25e642=_0x2105f4();while(!![]){try{const _0x2dc9a2=-parseInt(_0x2e946e(0x21a))/0x1*(parseInt(_0x2e946e(0x177))/0x2)+parseInt(_0x2e946e(0x16a))/0x3*(-parseInt(_0x2e946e(0x188))/0x4)+parseInt(_0x2e946e(0x1f2))/0x5*(parseInt(_0x2e946e(0x1ce))/0x6)+-parseInt(_0x2e946e(0x190))/0x7+-parseInt(_0x2e946e(0x197))/0x8+parseInt(_0x2e946e(0x1ea))/0x9+-parseInt(_0x2e946e(0x214))/0xa*(-parseInt(_0x2e946e(0x211))/0xb);if(_0x2dc9a2===_0x29cc3e)break;else _0x25e642['push'](_0x25e642['shift']());}catch(_0x611991){_0x25e642['push'](_0x25e642['shift']());}}}(a33_0x5e7c,0x2fe5d));const fs=require('fs'),path=require(a33_0xef5e9c(0x1e5)),os=require('os'),{spawn}=require(a33_0xef5e9c(0x151)),{format}=require(a33_0xef5e9c(0x1bf)),logger=require(a33_0xef5e9c(0x191))[a33_0xef5e9c(0x1d9)],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require(a33_0xef5e9c(0x1b9)),constants=require(a33_0xef5e9c(0x1d6)),{FRAMEWORKS}=require(a33_0xef5e9c(0x17d)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require(a33_0xef5e9c(0x179)),{CrashReporter,o11yErrorHandler}=require('../../helpers/test-observability/error-handler'),{getFrameworkVersion}=require(a33_0xef5e9c(0x204)),{createAccessibilityTestRun,stopAccessibilityTestRun,checkAccessibilityPlatformConfig}=require('../../helpers/accessibility-automation/helper'),{setAccessibilityCapabilities}=require(a33_0xef5e9c(0x1b6)),SessionHandler=require(a33_0xef5e9c(0x155));async function requireOrImportDefaultObject(_0x570e2d){const _0x2318d7=a33_0xef5e9c,_0xfdd3d1={'Jxlef':function(_0x59e7a9){return _0x59e7a9();},'nkPVL':function(_0x519a2a,_0x1db401){return _0x519a2a(_0x1db401);},'rBFGS':function(_0xc0b247,_0x103bb7){return _0xc0b247===_0x103bb7;},'HewQo':_0x2318d7(0x1f4),'wlqwD':function(_0x70f940,_0x4bd9fb){return _0x70f940 in _0x4bd9fb;},'VapCK':_0x2318d7(0x1af)},{requireOrImport:_0x4276b3}=helper[_0x2318d7(0x1aa)][_0x2318d7(0x1da)](null,_0xfdd3d1[_0x2318d7(0x157)](getTransformPath));let _0x366729=await _0xfdd3d1[_0x2318d7(0x1d4)](_0x4276b3,_0x570e2d);return _0x366729&&_0xfdd3d1['rBFGS'](typeof _0x366729,_0xfdd3d1[_0x2318d7(0x1c7)])&&_0xfdd3d1[_0x2318d7(0x196)](_0xfdd3d1[_0x2318d7(0x195)],_0x366729)&&(_0x366729=_0x366729[_0xfdd3d1[_0x2318d7(0x195)]]),_0x366729;}const getUserPlaywrightConfig=async(_0x48b237,_0x35e0ea)=>{const _0x5d0b0f=a33_0xef5e9c,_0x1d7265={'eBvht':function(_0x4b59e0){return _0x4b59e0();},'PlPVS':function(_0x2417e4,_0x112572){return _0x2417e4(_0x112572);},'ccmba':'Error\x20in\x20importing\x20your\x20playwright\x20config:\x20','PDNiz':'Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','kQEQw':_0x5d0b0f(0x19b)},_0x131250=!helper['isUndefined'](_0x48b237[_0x5d0b0f(0x1b5)]),_0x3f3ebd=_0x131250?path[_0x5d0b0f(0x1f1)](process[_0x5d0b0f(0x165)](),_0x48b237['config']):process[_0x5d0b0f(0x165)](),{resolveConfigFile:_0x35b496}=helper['requirePWModule']['apply'](null,_0x1d7265['eBvht'](getConfigLoaderPath)),_0x166b80=_0x1d7265['PlPVS'](_0x35b496,_0x3f3ebd);let _0x5abacc={};if(_0x166b80){logger[_0x5d0b0f(0x19d)](_0x5d0b0f(0x20e)+_0x166b80);try{_0x5abacc=await _0x1d7265[_0x5d0b0f(0x1c8)](requireOrImportDefaultObject,_0x166b80);}catch(_0x5b0be6){return logger[_0x5d0b0f(0x1a2)](_0x1d7265['ccmba'],_0x5b0be6),null;}}else logger[_0x5d0b0f(0x19d)](_0x1d7265[_0x5d0b0f(0x19c)]);if(_0x131250){const _0x4e754e=_0x35e0ea[_0x5d0b0f(0x1d0)](_0x425ff2=>_0x425ff2==='--config'||_0x425ff2==='-c'||_0x425ff2[_0x5d0b0f(0x1b3)]('--config='));_0x35e0ea[_0x5d0b0f(0x1c6)](_0x4e754e,_0x35e0ea[_0x4e754e]['startsWith'](_0x1d7265['kQEQw'])?0x1:0x2);}const _0x1197e0={};return _0x1197e0['path']=_0x166b80,_0x1197e0[_0x5d0b0f(0x1b5)]=_0x5abacc,_0x1197e0;},setGlobalSetup=(_0x60e349,_0x4dc089)=>{const _0x3ff685=a33_0xef5e9c,_0x196cb1={'LAiJV':_0x3ff685(0x21b),'JTaVS':'Can\x27t\x20get\x20user\x20defined\x20global\x20setup\x20file','guYXT':function(_0xa7bf2b,_0x14f048){return _0xa7bf2b+_0x14f048;},'nDYEJ':'Error\x20in\x20running\x20user\x20global\x20setup\x20for\x20playwright','CDGrW':function(_0x2da745,_0x24eb5f){return _0x2da745(_0x24eb5f);},'wtkUi':_0x3ff685(0x1b7)};if(!_0x60e349)return![];try{if(_0x60e349[_0x3ff685(0x21b)]){let _0x35c1c8;const _0x5c6c92=path[_0x3ff685(0x1f1)](_0x4dc089,_0x60e349[_0x196cb1[_0x3ff685(0x193)]]);if(fs['existsSync'](_0x5c6c92))_0x35c1c8=_0x5c6c92;else{const _0x18c341={};_0x18c341[_0x3ff685(0x1a1)]=[_0x4dc089],_0x35c1c8=require[_0x3ff685(0x1f1)](_0x60e349[_0x196cb1[_0x3ff685(0x193)]],_0x18c341);}if(!_0x35c1c8)throw new Error(_0x196cb1[_0x3ff685(0x200)]);process['env'][_0x3ff685(0x1ff)]=_0x35c1c8;}}catch(_0x546f06){logger['error'](_0x196cb1[_0x3ff685(0x18b)](_0x196cb1[_0x3ff685(0x1e8)],_0x196cb1[_0x3ff685(0x1ee)](format,_0x546f06)));}return _0x60e349['globalSetup']=require[_0x3ff685(0x1f1)](_0x196cb1[_0x3ff685(0x16e)]),!![];},addReporter=_0x1e8638=>{const _0x5b00db=a33_0xef5e9c,_0x30b8c3={};_0x30b8c3[_0x5b00db(0x1eb)]=_0x5b00db(0x178),_0x30b8c3[_0x5b00db(0x19a)]=_0x5b00db(0x20d),_0x30b8c3[_0x5b00db(0x169)]=function(_0x315fbe,_0x36f280){return _0x315fbe===_0x36f280;},_0x30b8c3[_0x5b00db(0x1ad)]=_0x5b00db(0x21c),_0x30b8c3[_0x5b00db(0x1a4)]=_0x5b00db(0x1f4);const _0x293be5=_0x30b8c3,_0x36997b=path['join'](__dirname,_0x293be5[_0x5b00db(0x1eb)]),_0x44eaf7=[_0x36997b];if(helper[_0x5b00db(0x17f)](_0x1e8638[_0x293be5[_0x5b00db(0x19a)]]))_0x1e8638[_0x293be5[_0x5b00db(0x19a)]]=[_0x44eaf7];else{if(_0x293be5[_0x5b00db(0x169)](typeof _0x1e8638[_0x293be5['HFMhM']],_0x293be5['vSvSY']))_0x1e8638[_0x293be5[_0x5b00db(0x19a)]]=[[_0x1e8638[_0x293be5[_0x5b00db(0x19a)]]],_0x44eaf7];else _0x293be5[_0x5b00db(0x169)](typeof _0x1e8638[_0x293be5[_0x5b00db(0x19a)]],_0x293be5[_0x5b00db(0x1a4)])&&_0x1e8638[_0x293be5['HFMhM']]['push'](_0x44eaf7);}},handleO11yRerun=_0x1521c=>{const _0x336680=a33_0xef5e9c,_0x5d8ce7={};_0x5d8ce7[_0x336680(0x18e)]=function(_0x489ab7,_0xf3ac7d){return _0x489ab7!==_0xf3ac7d;},_0x5d8ce7['QFBMi']=_0x336680(0x1d5),_0x5d8ce7['wRisa']='--grep';const _0xf37157=_0x5d8ce7,_0x46d6e9=helper[_0x336680(0x166)](process[_0x336680(0x1e9)]['BROWSERSTACK_RERUN']);if(_0x46d6e9){const _0x21859f=process[_0x336680(0x1e9)][_0x336680(0x185)],_0x237d91=[];if(_0xf37157[_0x336680(0x18e)](_0x21859f,_0xf37157[_0x336680(0x1b0)])&&!helper[_0x336680(0x17f)](_0x21859f)){_0x21859f[_0x336680(0x176)](',')[_0x336680(0x15c)](_0x427b86=>{const _0x3ba507=_0x336680;_0x237d91[_0x3ba507(0x201)]('('+_0x427b86[_0x3ba507(0x1f7)]()+')');});const _0x41dae2='^'+_0x237d91['join']('|')+'$';_0x1521c['push'](_0xf37157[_0x336680(0x1f0)],_0x41dae2);}}},spawnOriginalProcess=_0x39a0a6=>{const _0x2f8e30=a33_0xef5e9c,_0x2e19ca={'KfhpN':function(_0x19612c,_0x35a2c2,_0x391e7d,_0x16fab4){return _0x19612c(_0x35a2c2,_0x391e7d,_0x16fab4);},'lvgku':_0x2f8e30(0x219),'xbSNp':_0x2f8e30(0x152),'Qcvvb':function(_0x3f8fe3,_0x229a44){return _0x3f8fe3===_0x229a44;},'coqSP':'win32','cLeFM':_0x2f8e30(0x16c)};_0x2e19ca[_0x2f8e30(0x1c1)](spawn,_0x2e19ca[_0x2f8e30(0x199)],[_0x2e19ca[_0x2f8e30(0x15b)],..._0x39a0a6[_0x2f8e30(0x1b8)](0x1)],{'shell':_0x2e19ca[_0x2f8e30(0x218)](process[_0x2f8e30(0x180)],_0x2e19ca[_0x2f8e30(0x1f5)]),'stdio':_0x2e19ca[_0x2f8e30(0x19f)],'cwd':process[_0x2f8e30(0x165)]()});},isTestCommand=(_0x5d66e3,_0x3b3efa)=>{const _0x351995=a33_0xef5e9c,_0xa5fc75={};_0xa5fc75[_0x351995(0x1fd)]=function(_0x166eb7,_0x16a5bf){return _0x166eb7>_0x16a5bf;},_0xa5fc75['SHPoS']=function(_0x3763bb,_0x32f6d1){return _0x3763bb===_0x32f6d1;},_0xa5fc75[_0x351995(0x174)]='test';const _0x1ef366=_0xa5fc75;if(_0x1ef366[_0x351995(0x1fd)](_0x3b3efa[_0x351995(0x208)],0x1)&&_0x1ef366[_0x351995(0x17b)](_0x3b3efa[0x1],_0x1ef366[_0x351995(0x174)]))return!![];return![];},initO11yCrashReporter=(_0x45fed6,_0x2f0b07)=>{const _0x133ce2=a33_0xef5e9c,_0x339143={'DVkhS':function(_0x442be3,_0x16c43d){return _0x442be3(_0x16c43d);}},_0x351049={'frameworkName':FRAMEWORKS[_0x133ce2(0x173)],'frameworkVersion':_0x339143[_0x133ce2(0x1fe)](getFrameworkVersion,FRAMEWORKS[_0x133ce2(0x173)])};CrashReporter[_0x133ce2(0x1be)](_0x351049,_0x45fed6,_0x2f0b07);},launchO11ySession=o11yErrorHandler(async function launchO11ySession(_0x1dd586){const _0x373eb4=a33_0xef5e9c,_0x1176ab={};_0x1176ab['tjZWd']=function(_0x2ed6d6,_0x226038){return _0x2ed6d6>_0x226038;},_0x1176ab[_0x373eb4(0x14d)]=function(_0x9ad527,_0x11e642){return _0x9ad527===_0x11e642;};const _0x153b6c=_0x1176ab;if(!_0x1dd586||_0x153b6c[_0x373eb4(0x20a)](_0x1dd586[_0x373eb4(0x208)],0x1)&&_0x153b6c['iyzWC'](_0x1dd586[0x0],null))return process[_0x373eb4(0x1e9)]['BROWSERSTACK_TEST_OBSERVABILITY']=![],![];return!![];});function a33_0x46be(_0x47b3c8,_0xa0b5a4){const _0x5e7c8a=a33_0x5e7c();return a33_0x46be=function(_0x46bec3,_0x1a14ad){_0x46bec3=_0x46bec3-0x14b;let _0x42eceb=_0x5e7c8a[_0x46bec3];return _0x42eceb;},a33_0x46be(_0x47b3c8,_0xa0b5a4);}async function run(_0x4b9f9c,_0x4a258a){const _0x3095d1=a33_0xef5e9c,_0x4ecbac={'ElagB':_0x3095d1(0x1cd),'hBVTX':_0x3095d1(0x1a0),'xyinp':function(_0x4b6e28,_0x10faa8){return _0x4b6e28+_0x10faa8;},'bFTeu':_0x3095d1(0x186),'EzaHa':_0x3095d1(0x184),'BhQfc':function(_0x153e7f,_0x2926dc){return _0x153e7f(_0x2926dc);},'zYHqS':function(_0x1724ad){return _0x1724ad();},'xTttk':function(_0x351b21,_0x4f53bc){return _0x351b21+_0x4f53bc;},'WXSAs':_0x3095d1(0x1ec),'nFmHg':_0x3095d1(0x18d),'Dzwbe':'false','ajiSV':'--disable-test-observability','EcNBU':function(_0x2a77a3,_0x4eab36){return _0x2a77a3>=_0x4eab36;},'SPVry':function(_0x4f38b1,_0x343eda){return _0x4f38b1+_0x343eda;},'IZHUg':_0x3095d1(0x212),'YedTc':function(_0x109481,_0x23896a,_0x32dc31){return _0x109481(_0x23896a,_0x32dc31);},'eUxrB':function(_0x318369,_0x406e2d){return _0x318369(_0x406e2d);},'egkvv':_0x3095d1(0x14b),'VnWYo':_0x3095d1(0x156),'QggeP':function(_0x12f11f,_0x4d121f){return _0x12f11f!=_0x4d121f;},'jgVeV':function(_0x1e55a6,_0x229e12){return _0x1e55a6(_0x229e12);},'xhaRI':function(_0x12df52,_0x1b84af){return _0x12df52(_0x1b84af);},'TIrQj':function(_0x5bb419,_0xe3a81c){return _0x5bb419(_0xe3a81c);},'nobtw':_0x3095d1(0x192),'XiKIs':function(_0x315445,_0x32a12){return _0x315445(_0x32a12);},'ZRzKH':_0x3095d1(0x1ca),'voOdN':function(_0x1b4a05,_0x18c4e2){return _0x1b4a05===_0x18c4e2;},'SPwaQ':_0x3095d1(0x1bc),'YjoXb':_0x3095d1(0x1d1),'YpDhl':function(_0x43f7aa,_0x3fd22a){return _0x43f7aa(_0x3fd22a);},'FxJQa':_0x3095d1(0x1df),'mCqfZ':function(_0x54d064){return _0x54d064();},'ygxuh':_0x3095d1(0x159),'qSBNY':_0x3095d1(0x1d8),'ClgWH':_0x3095d1(0x160),'NeUDA':function(_0x26a928,_0x2439b1){return _0x26a928+_0x2439b1;},'MFZxC':_0x3095d1(0x20b),'lbFSC':function(_0x10dc59,_0x27de04){return _0x10dc59(_0x27de04);},'oCiIB':function(_0x3fc58e,_0x43cbb4){return _0x3fc58e===_0x43cbb4;},'fypKq':_0x3095d1(0x1f3),'TrWMK':'playwright-browserstack-sdk.config.js','apmhw':function(_0x5539d6,_0x257ebe){return _0x5539d6>_0x257ebe;},'ZpgYz':function(_0x11e0e9,_0x423343,_0x302646,_0x29b0be){return _0x11e0e9(_0x423343,_0x302646,_0x29b0be);},'QSmnH':_0x3095d1(0x219),'Xcurm':_0x3095d1(0x152),'TKrGX':_0x3095d1(0x1c9),'FpiMx':_0x3095d1(0x206),'Iylit':function(_0x511f9f,_0x64e8a7){return _0x511f9f===_0x64e8a7;},'WganJ':_0x3095d1(0x21e),'ERjqZ':_0x3095d1(0x16c),'eXYDJ':_0x3095d1(0x18a)};!helper['isFalse'](process[_0x3095d1(0x1e9)][_0x3095d1(0x1fa)])&&(process[_0x3095d1(0x1e9)]['BROWSERSTACK_AUTOMATION']=!![]);process[_0x3095d1(0x209)][_0x3095d1(0x16b)](_0x4ecbac[_0x3095d1(0x1f8)])&&(process[_0x3095d1(0x1e9)][_0x3095d1(0x1fa)]=_0x4ecbac[_0x3095d1(0x1e4)],_0x4a258a=_0x4a258a[_0x3095d1(0x198)](_0x19c572=>_0x19c572!==_0x3095d1(0x18d)));const _0x35b732=_0x4a258a[_0x3095d1(0x1ae)](_0x4ecbac['ajiSV']);_0x4ecbac['EcNBU'](_0x35b732,0x0)&&(process['env'][_0x3095d1(0x1ef)]=_0x4ecbac[_0x3095d1(0x1e4)],_0x4a258a=_0x4a258a[_0x3095d1(0x198)](_0x2c2235=>_0x2c2235!=='--disable-test-observability'));try{const _0x1e4b7a=path[_0x3095d1(0x1c2)](helper[_0x3095d1(0x210)](),_0x4ecbac[_0x3095d1(0x1a8)],_0x4ecbac[_0x3095d1(0x1c3)]);fs[_0x3095d1(0x1a9)](_0x1e4b7a)&&fs[_0x3095d1(0x216)](_0x1e4b7a);}catch(_0x4e211a){logger[_0x3095d1(0x187)](_0x4ecbac[_0x3095d1(0x205)](_0x4ecbac[_0x3095d1(0x1a5)],_0x4e211a));}if(!_0x4ecbac[_0x3095d1(0x1a3)](isTestCommand,_0x4b9f9c,_0x4a258a)){_0x4ecbac[_0x3095d1(0x21f)](spawnOriginalProcess,_0x4a258a);return;}const _0x2fc386=new BrowserStackSetup(_0x4b9f9c,FRAMEWORKS[_0x3095d1(0x173)]);if(!_0x2fc386[_0x3095d1(0x1b5)]){logger[_0x3095d1(0x1a2)](_0x4ecbac[_0x3095d1(0x175)]);return;}await _0x2fc386[_0x3095d1(0x1be)]();!helper[_0x3095d1(0x17f)](_0x2fc386[_0x3095d1(0x1e3)])&&_0x2fc386['cliConfig'][_0x3095d1(0x14c)](_0x4ecbac['VnWYo'])&&(process[_0x3095d1(0x1e9)][_0x3095d1(0x1fa)]=_0x2fc386[_0x3095d1(0x1e3)][_0x3095d1(0x150)](_0x4ecbac[_0x3095d1(0x1ed)])||!![]);_0x4ecbac[_0x3095d1(0x182)](_0x2fc386[_0x3095d1(0x1b5)][_0x3095d1(0x1e1)],null)&&!helper['isTrue'](process['env'][_0x3095d1(0x1ef)])&&(process['env'][_0x3095d1(0x1ef)]=process[_0x3095d1(0x1e9)][_0x3095d1(0x1ef)]||_0x2fc386[_0x3095d1(0x1b5)][_0x3095d1(0x1e1)]);const _0x29b220=!helper[_0x3095d1(0x1e6)](process[_0x3095d1(0x1e9)]['BROWSERSTACK_TEST_OBSERVABILITY']);let _0x456314=![];_0x2fc386[_0x3095d1(0x1b5)][_0x3095d1(0x1f9)]&&(_0x456314=!![],process[_0x3095d1(0x1e9)][_0x3095d1(0x1ab)]=_0x2fc386['config'][_0x3095d1(0x1f9)]);_0x2fc386['config'][_0x3095d1(0x1cf)]&&(process[_0x3095d1(0x1e9)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON[_0x3095d1(0x183)](_0x2fc386[_0x3095d1(0x1b5)][_0x3095d1(0x1cf)]));const _0x43ab4d=_0x4a258a[_0x3095d1(0x217)](),_0x56bc19=await _0x4ecbac['YedTc'](getUserPlaywrightConfig,_0x4b9f9c,_0x4a258a);if(helper['isUndefined'](_0x56bc19)){_0x4ecbac[_0x3095d1(0x20f)](spawnOriginalProcess,_0x43ab4d);return;}const _0x396644={..._0x56bc19[_0x3095d1(0x1b5)]},_0x4bd899=_0x396644,_0x17d570=_0x56bc19['path']?path[_0x3095d1(0x19e)](_0x56bc19[_0x3095d1(0x1e5)]):process[_0x3095d1(0x165)]();process[_0x3095d1(0x1e9)][_0x3095d1(0x181)]=_0x17d570;if(!_0x4ecbac[_0x3095d1(0x1a3)](setGlobalSetup,_0x4bd899,_0x17d570)){_0x4ecbac[_0x3095d1(0x189)](spawnOriginalProcess,_0x43ab4d);return;}const _0x45e7ce=await SessionHandler[_0x3095d1(0x207)](_0x2fc386[_0x3095d1(0x1b5)],{'frameworkName':FRAMEWORKS[_0x3095d1(0x173)],'frameworkVersion':_0x4ecbac[_0x3095d1(0x18c)](getFrameworkVersion,FRAMEWORKS[_0x3095d1(0x173)])});if(_0x29b220){const _0x119af5=_0x4ecbac[_0x3095d1(0x1d2)][_0x3095d1(0x176)]('|');let _0x3d3ba3=0x0;while(!![]){switch(_0x119af5[_0x3d3ba3++]){case'0':_0x4ecbac[_0x3095d1(0x17c)](addReporter,_0x4bd899);continue;case'1':_0x4ecbac[_0x3095d1(0x1a3)](initO11yCrashReporter,_0x4bd899,_0x2fc386[_0x3095d1(0x1b5)]);continue;case'2':_0x4ecbac[_0x3095d1(0x17c)](handleO11yRerun,_0x4a258a);continue;case'3':logger['info'](_0x4ecbac[_0x3095d1(0x1a7)]);continue;case'4':await _0x4ecbac['TIrQj'](launchO11ySession,_0x45e7ce);continue;}break;}}let _0x383e69=_0x4ecbac['voOdN'](process['env'][_0x3095d1(0x1ab)],_0x4ecbac[_0x3095d1(0x21d)]);_0x383e69=_0x383e69||_0x4ecbac['TIrQj'](checkAccessibilityPlatformConfig,_0x2fc386['config']),process['env'][_0x3095d1(0x1ab)]=_0x383e69;if(_0x383e69){const [_0x3ba3ef,_0x4f2653]=await _0x4ecbac[_0x3095d1(0x1a3)](createAccessibilityTestRun,_0x2fc386[_0x3095d1(0x1b5)],_0x4ecbac[_0x3095d1(0x14e)]);logger['debug'](_0x3095d1(0x15f)+_0x4f2653),process[_0x3095d1(0x1e9)][_0x3095d1(0x1ac)]=_0x3ba3ef,process['env']['BS_A11Y_TEST_RUN_ID']=_0x4f2653,_0x4ecbac[_0x3095d1(0x202)](setAccessibilityCapabilities,_0x2fc386['config']);}(helper[_0x3095d1(0x17f)](_0x2fc386['config']['platforms'])||_0x4ecbac[_0x3095d1(0x1e2)](_0x2fc386['config'][_0x3095d1(0x215)][_0x3095d1(0x208)],0x0))&&(process[_0x3095d1(0x1e9)][_0x3095d1(0x1fa)]=![]);const _0x3afd90=path[_0x3095d1(0x1c2)](_0x56bc19[_0x3095d1(0x1e5)]?path[_0x3095d1(0x19e)](_0x56bc19[_0x3095d1(0x1e5)]):process[_0x3095d1(0x165)](),_0x4ecbac[_0x3095d1(0x172)]);fs[_0x3095d1(0x1f6)](_0x3afd90,helper['serializeToYamlString'](_0x2fc386[_0x3095d1(0x1b5)])),process[_0x3095d1(0x1e9)][_0x3095d1(0x18f)]=_0x3afd90,helper[_0x3095d1(0x167)]();if(helper[_0x3095d1(0x166)](process[_0x3095d1(0x1e9)][_0x3095d1(0x1fa)])){let _0x28c47b=[];try{const _0x2f4a6e=helper[_0x3095d1(0x1aa)][_0x3095d1(0x1da)](null,_0x4ecbac[_0x3095d1(0x16f)](getProjectUtilsPath)),_0x552e40={};_0x552e40[_0x3095d1(0x1de)]=!![],_0x552e40[_0x3095d1(0x159)]='',_0x552e40[_0x3095d1(0x1d8)]='',_0x552e40[_0x3095d1(0x160)]='';const _0xf937b7={};_0xf937b7[_0x3095d1(0x1de)]=!![];const _0x49fde6={};_0x49fde6['project']=_0x552e40,_0x49fde6[_0x3095d1(0x170)]=_0xf937b7;let _0x329b9c=_0x49fde6;_0x4bd899[_0x4ecbac[_0x3095d1(0x154)]]&&(_0x329b9c['project'][_0x4ecbac[_0x3095d1(0x154)]]=_0x4bd899[_0x4ecbac[_0x3095d1(0x154)]]),_0x4bd899[_0x4ecbac[_0x3095d1(0x203)]]&&(_0x329b9c[_0x3095d1(0x1c4)][_0x4ecbac[_0x3095d1(0x203)]]=_0x4bd899[_0x4ecbac[_0x3095d1(0x203)]]),_0x4bd899[_0x4ecbac['ClgWH']]&&(_0x329b9c[_0x3095d1(0x1c4)][_0x4ecbac[_0x3095d1(0x17a)]]=_0x4bd899[_0x4ecbac[_0x3095d1(0x17a)]]),_0x329b9c=Object[_0x3095d1(0x1fb)](_0x329b9c,_0x329b9c['project']),_0x28c47b=await _0x2f4a6e[_0x3095d1(0x1d3)](_0x329b9c);}catch(_0x1024d1){logger['debug'](_0x4ecbac[_0x3095d1(0x1ba)](_0x4ecbac[_0x3095d1(0x168)],_0x4ecbac[_0x3095d1(0x1db)](format,_0x1024d1)));}}let _0x49f701='';_0x4ecbac[_0x3095d1(0x1b2)](helper[_0x3095d1(0x15e)](),constants[_0x3095d1(0x1b4)]['MODULE'])?_0x49f701=_0x4ecbac[_0x3095d1(0x16d)]:_0x49f701=_0x4ecbac[_0x3095d1(0x1b1)];const _0x5e893c=path[_0x3095d1(0x1c2)](_0x56bc19[_0x3095d1(0x1e5)]?path['dirname'](_0x56bc19[_0x3095d1(0x1e5)]):process[_0x3095d1(0x165)](),_0x49f701);let _0x23a2c5=_0x56bc19['path']?_0x56bc19['path']:'';_0x23a2c5=_0x4ecbac['apmhw'](_0x23a2c5[_0x3095d1(0x208)],0x0)?path[_0x3095d1(0x1f1)](_0x23a2c5):'',process['env'][_0x3095d1(0x15d)]=_0x23a2c5;let _0x185241=_0x3095d1(0x1bb);const _0x3278d8=helper[_0x3095d1(0x1bd)](_0x2fc386[_0x3095d1(0x1b5)]);_0x3278d8&&(_0x185241=_0x4ecbac[_0x3095d1(0x1ba)](_0x3095d1(0x1cb)+_0x3278d8+_0x3095d1(0x161),_0x185241));helper[_0x3095d1(0x1d7)]({},_0x4a258a),fs[_0x3095d1(0x1f6)](_0x5e893c,_0x185241),helper[_0x3095d1(0x1fc)]();const _0x596522=_0x4ecbac['ZpgYz'](spawn,_0x4ecbac[_0x3095d1(0x171)],[_0x4ecbac['Xcurm'],_0x4ecbac[_0x3095d1(0x213)],_0x4ecbac['FpiMx'],_0x5e893c,..._0x4a258a['slice'](0x2)],{'shell':_0x4ecbac[_0x3095d1(0x1a6)](process[_0x3095d1(0x180)],_0x4ecbac[_0x3095d1(0x164)]),'stdio':_0x4ecbac[_0x3095d1(0x1e7)],'cwd':process[_0x3095d1(0x165)](),'env':Object[_0x3095d1(0x1fb)]({},process[_0x3095d1(0x1e9)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper['getConfigPath'](_0x4b9f9c),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x2fc386['config'][_0x3095d1(0x1c0)][_0x3095d1(0x194)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x2fc386[_0x3095d1(0x1b5)][_0x3095d1(0x1c0)][_0x3095d1(0x15a)],'BROWSERSTACK_LOG_LEVEL':_0x2fc386[_0x3095d1(0x1b5)][_0x3095d1(0x1cc)]})}),_0x8d161f=()=>{const _0x1dbc36=_0x3095d1;try{const _0x5aad50=path[_0x1dbc36(0x1c2)](helper[_0x1dbc36(0x210)](),_0x4ecbac[_0x1dbc36(0x1a8)],_0x4ecbac[_0x1dbc36(0x1c3)]);if(fs[_0x1dbc36(0x1a9)](_0x5aad50)){let _0x472683=fs[_0x1dbc36(0x220)](_0x5aad50);_0x472683=JSON[_0x1dbc36(0x1dd)](_0x472683),_0x2fc386['errorMessage']=_0x472683,fs['unlinkSync'](_0x5aad50);}}catch(_0x51745b){logger['debug'](_0x4ecbac[_0x1dbc36(0x20c)](_0x4ecbac[_0x1dbc36(0x1e0)],_0x51745b));}};_0x596522['on'](_0x4ecbac[_0x3095d1(0x153)],async _0x18f14f=>{const _0x31ba28=_0x3095d1;try{const _0x2054ea=_0x4ecbac['EzaHa'][_0x31ba28(0x176)]('|');let _0x32ea1e=0x0;while(!![]){switch(_0x2054ea[_0x32ea1e++]){case'0':fs['unlinkSync'](_0x5e893c);continue;case'1':logger[_0x31ba28(0x19d)](_0x31ba28(0x163)+_0x5e893c);continue;case'2':await _0x4ecbac[_0x31ba28(0x1dc)](stopAccessibilityTestRun,_0x2fc386[_0x31ba28(0x1b5)]);continue;case'3':logger[_0x31ba28(0x187)]('Playwright\x20process\x20exited\x20with\x20code\x20'+_0x18f14f);continue;case'4':logger[_0x31ba28(0x187)]('Deleting\x20'+_0x3afd90);continue;case'5':fs[_0x31ba28(0x216)](_0x3afd90);continue;case'6':_0x4ecbac[_0x31ba28(0x17e)](_0x8d161f);continue;case'7':process[_0x31ba28(0x1c5)]=_0x18f14f;continue;case'8':await helper[_0x31ba28(0x158)](_0x2fc386);continue;}break;}}catch(_0x293189){logger['debug'](_0x4ecbac[_0x31ba28(0x14f)](_0x4ecbac[_0x31ba28(0x162)],_0x293189));}});}module['exports']=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a34_0x748370=a34_0x5280;function a34_0x46fb(){const _0x37a0aa=['PAqHh','427480Jebqtm','../../helpers/helper','Path\x20','IxMmO','winstonLogger','./mock-process.js','function','FkbUD','../../helpers/test-observability/utils','hBPtD','Call\x20to\x20child\x20fork\x20with\x20args\x20','803268EgzUyk','Running\x20existing\x20global\x20setup','yyKpm','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','12siSrQf','4GGKNIr','upgft','../../helpers/logger','63SnFrri','resolve','fork','18551CzuiDj','requirePWModule','./reporter/pwUtils','toString','env','937634MdDrEu','vorDY','140077lNmjXx','PLAYWRIGHT','2581728sQMWzu','JdjWq','MJHHT','apply','2361865PwkmqO','1.33.0'];a34_0x46fb=function(){return _0x37a0aa;};return a34_0x46fb();}function a34_0x5280(_0x314f11,_0x1952f6){const _0x46fbd9=a34_0x46fb();return a34_0x5280=function(_0x52807b,_0x292843){_0x52807b=_0x52807b-0x78;let _0x131ac9=_0x46fbd9[_0x52807b];return _0x131ac9;},a34_0x5280(_0x314f11,_0x1952f6);}(function(_0x4d030a,_0x8c822){const _0x17697f=a34_0x5280,_0x36b67b=_0x4d030a();while(!![]){try{const _0x17c3c1=parseInt(_0x17697f(0x7e))/0x1+parseInt(_0x17697f(0x83))/0x2+parseInt(_0x17697f(0x99))/0x3+-parseInt(_0x17697f(0x78))/0x4*(parseInt(_0x17697f(0x8b))/0x5)+parseInt(_0x17697f(0x9d))/0x6*(-parseInt(_0x17697f(0x85))/0x7)+parseInt(_0x17697f(0x87))/0x8+parseInt(_0x17697f(0x7b))/0x9*(-parseInt(_0x17697f(0x8e))/0xa);if(_0x17c3c1===_0x8c822)break;else _0x36b67b['push'](_0x36b67b['shift']());}catch(_0x363245){_0x36b67b['push'](_0x36b67b['shift']());}}}(a34_0x46fb,0x40fe1));const child_process=require('child_process'),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{getFrameworkVersion,debug}=require(a34_0x748370(0x96)),helper=require(a34_0x748370(0x8f)),{getLoadUtilsPath,getForkProcessPath}=require(a34_0x748370(0x80)),logger=require(a34_0x748370(0x7a))[a34_0x748370(0x92)];module['exports']=async function(_0x338609){const _0x4b2ff4=a34_0x748370,_0x53f344={'upgft':function(_0xa06901,_0x448ab4){return _0xa06901(_0x448ab4);},'MJHHT':function(_0x2bdca8){return _0x2bdca8();},'IxMmO':_0x4b2ff4(0x93),'hBPtD':function(_0x26abfb){return _0x26abfb();},'JdjWq':function(_0x471dec,_0x2ee2b3){return _0x471dec(_0x2ee2b3);},'PAqHh':_0x4b2ff4(0x9a),'xdrQi':function(_0x27c5c6){return _0x27c5c6();},'yyKpm':function(_0x52bd4f,_0x3942f2){return _0x52bd4f>=_0x3942f2;},'vorDY':_0x4b2ff4(0x8c),'FkbUD':function(_0x491273,_0xff355,_0x528289){return _0x491273(_0xff355,_0x528289);},'zAuxt':function(_0x430bda,_0x913e3e){return _0x430bda!==_0x913e3e;},'ncECU':_0x4b2ff4(0x94),'yzubl':'Not\x20able\x20to\x20import\x20globalSetup','adcoF':function(_0x2fb70f,_0x57d263){return _0x2fb70f(_0x57d263);}},_0x51065d=child_process[_0x4b2ff4(0x7d)];child_process['fork']=function(){const _0x3eec14=_0x4b2ff4;return _0x53f344[_0x3eec14(0x79)](debug,_0x3eec14(0x98)+arguments[0x0]),arguments[0x0]['includes'](_0x53f344[_0x3eec14(0x89)](getForkProcessPath))?arguments[0x0]=require[_0x3eec14(0x7c)](_0x53f344[_0x3eec14(0x91)]):logger['error'](_0x3eec14(0x90)+_0x53f344[_0x3eec14(0x97)](getForkProcessPath)+'\x20is\x20not\x20found'),_0x51065d[_0x3eec14(0x8a)](null,arguments);};if(process[_0x4b2ff4(0x82)]['BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP']){_0x53f344[_0x4b2ff4(0x88)](debug,_0x53f344[_0x4b2ff4(0x8d)]);try{const {loadGlobalHook:_0x5346a9}=helper[_0x4b2ff4(0x7f)]['apply'](null,_0x53f344['xdrQi'](getLoadUtilsPath)),_0xaab45c=_0x53f344[_0x4b2ff4(0x79)](getFrameworkVersion,FRAMEWORKS[_0x4b2ff4(0x86)]);let _0x203ba1=_0x338609;if(_0x53f344[_0x4b2ff4(0x9b)](helper['compareVersions'](_0xaab45c,_0x53f344[_0x4b2ff4(0x84)]),0x0)){const _0x9f7af8={};_0x9f7af8['config']=_0x338609,_0x203ba1=_0x9f7af8;}const _0x2a4b30=await _0x53f344[_0x4b2ff4(0x95)](_0x5346a9,_0x203ba1,process['env'][_0x4b2ff4(0x9c)]);if(_0x53f344['zAuxt'](typeof _0x2a4b30,_0x53f344['ncECU']))throw new Error(_0x53f344['yzubl']);return _0x2a4b30[_0x4b2ff4(0x8a)](null,arguments);}catch(_0x40b3d7){_0x53f344['adcoF'](debug,'Error\x20in\x20calling\x20existing\x20global\x20setup:\x20'+_0x40b3d7[_0x4b2ff4(0x81)]());}}};
|