browserstack-node-sdk 1.32.16 → 1.33.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance-tester.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a28_0x20fa54=a28_0x4476;(function(_0x344dc5,_0x3ec5c5){const _0x13252b=a28_0x4476,_0x59214b=_0x344dc5();while(!![]){try{const _0x5a3d55=-parseInt(_0x13252b(0x164))/0x1+-parseInt(_0x13252b(0x158))/0x2*(-parseInt(_0x13252b(0x160))/0x3)+parseInt(_0x13252b(0x161))/0x4*(-parseInt(_0x13252b(0x15a))/0x5)+-parseInt(_0x13252b(0x165))/0x6*(-parseInt(_0x13252b(0x15c))/0x7)+-parseInt(_0x13252b(0x166))/0x8+parseInt(_0x13252b(0x15e))/0x9+parseInt(_0x13252b(0x15b))/0xa;if(_0x5a3d55===_0x3ec5c5)break;else _0x59214b['push'](_0x59214b['shift']());}catch(_0x4c6262){_0x59214b['push'](_0x59214b['shift']());}}}(a28_0x28ed,0xa68ba));function a28_0x4476(_0x601ea9,_0xe06d8e){const _0x28ed0f=a28_0x28ed();return a28_0x4476=function(_0x4476e4,_0x54f5e1){_0x4476e4=_0x4476e4-0x158;let _0xa8e4ca=_0x28ed0f[_0x4476e4];return _0xa8e4ca;},a28_0x4476(_0x601ea9,_0xe06d8e);}const requestSpy=require(a28_0x20fa54(0x167)),constants=require(a28_0x20fa54(0x162)),{addRequestSpy}=require(a28_0x20fa54(0x15f));function a28_0x28ed(){const _0x12d205=['5tCiLVb','9429880pbhAyp','939127pHsidm','timeout','11716524NERCEX','../../../helpers/test-observability/utils','33624zKkOfu','3571628EmMDTI','../../../bin/utils/constants','VxIer','1210064XNPbAY','42TutPhX','3818128nAcSHc','../../../helpers/request-spy','mochaHooks','14MGQAwG','restore'];a28_0x28ed=function(){return _0x12d205;};return a28_0x28ed();}exports[a28_0x20fa54(0x168)]={'beforeAll'(){const _0x382cd7=a28_0x20fa54,_0x40addf={'VxIer':function(_0x3e4944){return _0x3e4944();}},_0xc68548='browserstack internal helper hook';_0x40addf[_0x382cd7(0x163)](addRequestSpy);},'afterAll'(){const _0x17d506=a28_0x20fa54,_0x460c65='browserstack internal helper hook';this[_0x17d506(0x15d)](0xea60),requestSpy[_0x17d506(0x159)]();}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a29_0x59cce1=a29_0x2a93;(function(_0x3ae847,_0x3d42ed){const _0x132e33=a29_0x2a93,_0x3770c3=_0x3ae847();while(!![]){try{const _0x5a38cc=-parseInt(_0x132e33(0x20c))/0x1+parseInt(_0x132e33(0x1fe))/0x2*(parseInt(_0x132e33(0x20f))/0x3)+-parseInt(_0x132e33(0x23a))/0x4+-parseInt(_0x132e33(0x218))/0x5*(parseInt(_0x132e33(0x204))/0x6)+parseInt(_0x132e33(0x241))/0x7*(-parseInt(_0x132e33(0x24d))/0x8)+parseInt(_0x132e33(0x247))/0x9*(-parseInt(_0x132e33(0x1f9))/0xa)+parseInt(_0x132e33(0x224))/0xb;if(_0x5a38cc===_0x3d42ed)break;else _0x3770c3['push'](_0x3770c3['shift']());}catch(_0x14a927){_0x3770c3['push'](_0x3770c3['shift']());}}}(a29_0x3213,0x2a6c3));function a29_0x3213(){const _0x127ebb=['pzFLZ','slice','vyKCV','getHookSkippedTests','15410890UpOErm','getHooksForTest','BMsMN','_beforeEach','browserstack','toJSON','uuYwx','generic','BpZAI','map_','emit','LZSHZ','hook:','kiEtx','../../../helpers/helper','zZOLA','pid','failed','tests','parent','string','XHZuE','627172LVfNgQ','wgIYE','AtyKD','toISOString','../../../helpers/testhub/utils','unknown_grid','syUox','2506WzdToF','hQpxy','hook','forEach','app','ueXzp','28071sHrlNL','keys','kFffa','../../utils/logPatcher','Itkpk','../../../../package.json','7112ZJXoFQ','Koavr','JEcFp','sendPlatformDetails','CDLxF','UdsKp','concat','_afterEach','passed','push','appium:app','Rcijd','1040AqcAxs','mapTestHooks','fromEntries','_beforeAll','hookAnalyticsId','33010PnincI','getTestEnv','TAkgA','state','split','getBrowserName','572532kbNzsM','QqCxt','pRXwn','lhtDZ','VccPu','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','../../../helpers/test-observability/utils','KESxX','240560YoFpCh','getPlatform','js-','18kfbKPj','__cloud_provider___','type','FoROz','bs:addPlatformDetails:','reduce','hvsXB','filter','getBrowserVersion','15oPGwDZ','HhPke','ApNJo','_afterAll','hEmdw','../../utils/logReportingAPI','automate','getCapabilities'];a29_0x3213=function(){return _0x127ebb;};return a29_0x3213();}const {v4:uuidv4}=require('uuid'),{name,version}=require(a29_0x59cce1(0x24c)),logPatcher=require(a29_0x59cce1(0x24a)),BSTestOpsPatcher=new logPatcher({}),logReportingAPI=require(a29_0x59cce1(0x21d)),BSTestOpsLogger=new logReportingAPI({}),{debug,isTestObservabilitySession,isInternalHook}=require(a29_0x59cce1(0x20a)),{consoleHolder}=require('../../../helpers/test-observability/constants'),{getPlatformVersion}=require(a29_0x59cce1(0x232)),{shouldProcessEventForTesthub}=require(a29_0x59cce1(0x23e));function a29_0x2a93(_0x101ebe,_0x3a0b89){const _0x3213b6=a29_0x3213();return a29_0x2a93=function(_0x2a93a2,_0x2c21a7){_0x2a93a2=_0x2a93a2-0x1f0;let _0x1449bc=_0x3213b6[_0x2a93a2];return _0x1449bc;},a29_0x2a93(_0x101ebe,_0x3a0b89);}console={},Object[a29_0x59cce1(0x248)](consoleHolder)['forEach'](_0x3182e5=>{console[_0x3182e5]=(..._0x4cca06)=>{BSTestOpsPatcher[_0x3182e5](..._0x4cca06);};}),exports[a29_0x59cce1(0x1ff)]=()=>{const _0x459d19=a29_0x59cce1,_0x1f8a18={'zZOLA':_0x459d19(0x22b),'KESxX':function(_0x2479ef){return _0x2479ef();}};return{'ci':_0x1f8a18[_0x459d19(0x233)],'key':_0x1f8a18[_0x459d19(0x20b)](uuidv4),'version':version,'collector':_0x459d19(0x20e)+name};},exports['getHookDetails']=_0x5029ea=>{const _0x472fc5=a29_0x59cce1,_0x19e5d5={};_0x19e5d5[_0x472fc5(0x215)]=function(_0x376223,_0x4df7bd){return _0x376223!==_0x4df7bd;},_0x19e5d5[_0x472fc5(0x205)]=_0x472fc5(0x238),_0x19e5d5[_0x472fc5(0x1f8)]=function(_0x193591,_0x52b38b){return _0x193591!==_0x52b38b;},_0x19e5d5[_0x472fc5(0x1f1)]=_0x472fc5(0x230),_0x19e5d5[_0x472fc5(0x249)]=function(_0x178e78,_0x40a5e5){return _0x178e78!==_0x40a5e5;},_0x19e5d5['uuYwx']=_0x472fc5(0x243);const _0x12abfa=_0x19e5d5;if(!_0x5029ea||_0x12abfa[_0x472fc5(0x215)](typeof _0x5029ea,_0x12abfa[_0x472fc5(0x205)]))return[null,null];if(_0x12abfa[_0x472fc5(0x1f8)](_0x5029ea['indexOf'](_0x12abfa[_0x472fc5(0x1f1)]),-0x1)){const _0x25842a=_0x5029ea[_0x472fc5(0x202)](_0x12abfa[_0x472fc5(0x1f1)]);return[_0x25842a[0x0][_0x472fc5(0x221)](0x0,-0x1)[_0x472fc5(0x202)]('\x22')[0x1],_0x25842a[0x1]['substring'](0x1)];}else{if(_0x12abfa[_0x472fc5(0x249)](_0x5029ea['indexOf'](_0x12abfa[_0x472fc5(0x22a)]),-0x1)){const _0x50a285=_0x5029ea[_0x472fc5(0x202)](_0x12abfa['uuYwx']);return[_0x50a285[0x0][_0x472fc5(0x221)](0x0,-0x1)['split']('\x22')[0x1],_0x5029ea];}}return[null,null];},exports['getHooksForTest']=_0x54e190=>{const _0x30f1cd=a29_0x59cce1,_0x736b02={'XHZuE':function(_0x8827fb,_0x380a0b){return _0x8827fb(_0x380a0b);},'ueXzp':_0x30f1cd(0x1fc),'BMsMN':_0x30f1cd(0x21b),'AtyKD':'_beforeEach','Aepiw':'_afterEach'};if(!_0x54e190||!_0x54e190[_0x30f1cd(0x237)])return[];const _0x178f07=[];return[_0x736b02[_0x30f1cd(0x246)],_0x736b02[_0x30f1cd(0x226)],_0x736b02[_0x30f1cd(0x23c)],_0x736b02['Aepiw']][_0x30f1cd(0x244)](_0x505981=>{const _0x460265=_0x30f1cd,_0x527c14=_0x54e190[_0x460265(0x237)][_0x505981]||[];_0x527c14['forEach'](_0x58975c=>{const _0x3ce25d=_0x460265;_0x58975c[_0x3ce25d(0x1fd)]&&!_0x736b02[_0x3ce25d(0x239)](isInternalHook,_0x58975c['fn'])&&_0x178f07[_0x3ce25d(0x1f6)](_0x58975c[_0x3ce25d(0x1fd)]);});}),[..._0x178f07,...exports[_0x30f1cd(0x225)](_0x54e190[_0x30f1cd(0x237)])];},exports[a29_0x59cce1(0x1fa)]=_0x572d51=>{const _0x20507f=a29_0x59cce1,_0x43e5ef={'pRXwn':function(_0x2e43ba){return _0x2e43ba();},'hEmdw':function(_0x393f15,_0x454d0b){return _0x393f15===_0x454d0b;},'Koavr':_0x20507f(0x1f4),'JEcFp':'_beforeAll','Itkpk':_0x20507f(0x21b),'FoROz':_0x20507f(0x227)};if(!_0x572d51||!_0x572d51['parent'])return;[_0x43e5ef[_0x20507f(0x24f)],_0x43e5ef[_0x20507f(0x24b)],_0x43e5ef[_0x20507f(0x212)],_0x43e5ef[_0x20507f(0x24e)]][_0x20507f(0x244)](_0x1b8ba9=>{const _0x45c80f=_0x20507f,_0x22e48a=_0x572d51[_0x45c80f(0x237)][_0x1b8ba9]||[];_0x22e48a[_0x45c80f(0x244)](_0x2c8b1c=>{const _0x40dc4e=_0x45c80f;if(!_0x2c8b1c['hookAnalyticsId'])_0x2c8b1c[_0x40dc4e(0x1fd)]=_0x43e5ef[_0x40dc4e(0x206)](uuidv4);else _0x2c8b1c['markedStatus']&&_0x43e5ef[_0x40dc4e(0x21c)](_0x1b8ba9,_0x43e5ef['Koavr'])&&(_0x2c8b1c['hookAnalyticsId']=_0x43e5ef[_0x40dc4e(0x206)](uuidv4),delete _0x2c8b1c['markedStatus']);});}),exports[_0x20507f(0x1fa)](_0x572d51[_0x20507f(0x237)]);},exports[a29_0x59cce1(0x1f0)]=async(_0x2f22d1,_0x17ae30)=>{const _0x4f53fe=a29_0x59cce1,_0x3a6fac={'wgIYE':function(_0xf028c){return _0xf028c();},'UdsKp':function(_0x512506,_0x4874e5){return _0x512506===_0x4874e5;},'HhPke':_0x4f53fe(0x228),'wCDSv':_0x4f53fe(0x1f7),'HDJle':_0x4f53fe(0x245),'vyKCV':'app-automate','syUox':_0x4f53fe(0x21e),'ApNJo':function(_0x38f35e,_0xb81612){return _0x38f35e(_0xb81612);},'LZSHZ':_0x4f53fe(0x23f),'TAkgA':'TEST_PLATFORM','lhtDZ':function(_0x1f79c9,_0x47ab72){return _0x1f79c9(_0x47ab72);}};try{if(!_0x3a6fac[_0x4f53fe(0x23b)](shouldProcessEventForTesthub))return;const _0x510c10=await _0x2f22d1[_0x4f53fe(0x21f)](),_0x4b5934=await _0x2f22d1['getSession'](),_0x7acbd5={},_0x266d35=Object[_0x4f53fe(0x1fb)](_0x4b5934['getCapabilities']()[_0x4f53fe(0x22d)]),_0x4f5143={'product':_0x3a6fac[_0x4f53fe(0x1f2)](global[_0x4f53fe(0x210)],_0x3a6fac['HhPke'])?_0x266d35[_0x3a6fac['wCDSv']]||_0x266d35[_0x3a6fac['HDJle']]?_0x3a6fac[_0x4f53fe(0x222)]:_0x3a6fac[_0x4f53fe(0x240)]:null,'capabilities':_0x266d35,'platform':_0x510c10[_0x4f53fe(0x20d)](),'platform_version':_0x3a6fac[_0x4f53fe(0x21a)](getPlatformVersion,_0x3a6fac[_0x4f53fe(0x1f2)](global[_0x4f53fe(0x210)],_0x3a6fac[_0x4f53fe(0x219)])),'browser':_0x510c10[_0x4f53fe(0x203)](),'browser_version':_0x510c10[_0x4f53fe(0x217)](),'session_id':_0x4b5934[_0x4f53fe(0x229)]()};global[_0x4f53fe(0x210)]?_0x7acbd5[global['__cloud_provider___']]=_0x4f5143:_0x7acbd5[_0x3a6fac[_0x4f53fe(0x22f)]]=_0x4f5143,process[_0x4f53fe(0x22e)](_0x4f53fe(0x213)+process[_0x4f53fe(0x234)],{'timestamp':new Date()[_0x4f53fe(0x23d)](),'level':null,'message':null,'kind':_0x3a6fac[_0x4f53fe(0x200)],'http_response':_0x7acbd5,'uuid':_0x17ae30});}catch(_0x4dacb2){_0x3a6fac[_0x4f53fe(0x207)](debug,_0x4f53fe(0x209)+_0x4dacb2);}},exports[a29_0x59cce1(0x223)]=_0x41c3c8=>{const _0x32c6ba=a29_0x59cce1,_0x4f44f2={};_0x4f44f2[_0x32c6ba(0x22c)]=function(_0x200c25,_0x12a9bc){return _0x200c25!==_0x12a9bc;},_0x4f44f2[_0x32c6ba(0x220)]=_0x32c6ba(0x243),_0x4f44f2[_0x32c6ba(0x242)]=function(_0x20e484,_0x9e8605){return _0x20e484!==_0x9e8605;},_0x4f44f2[_0x32c6ba(0x231)]=_0x32c6ba(0x1f5),_0x4f44f2[_0x32c6ba(0x208)]=_0x32c6ba(0x235);const _0xc7ff8=_0x4f44f2,_0x2ac532=_0x41c3c8['suites'][_0x32c6ba(0x214)]((_0x4af274,_0x27901d)=>{const _0x2a2cd1=_0x32c6ba,_0xfbb8cd=exports[_0x2a2cd1(0x223)](_0x27901d);return _0xfbb8cd&&(_0x4af274=_0x4af274[_0x2a2cd1(0x1f3)](_0xfbb8cd)),_0x4af274;},[]),_0xab4d1e=_0x41c3c8[_0x32c6ba(0x236)][_0x32c6ba(0x216)](_0x276d6c=>{const _0x5c1fb8=_0x32c6ba,_0xba1171=_0xc7ff8[_0x5c1fb8(0x22c)](_0x276d6c[_0x5c1fb8(0x211)],_0xc7ff8['pzFLZ'])&&!_0x276d6c['markedStatus']&&_0xc7ff8[_0x5c1fb8(0x242)](_0x276d6c[_0x5c1fb8(0x201)],_0xc7ff8[_0x5c1fb8(0x231)])&&_0xc7ff8[_0x5c1fb8(0x242)](_0x276d6c[_0x5c1fb8(0x201)],_0xc7ff8[_0x5c1fb8(0x208)])&&!_0x276d6c['pending'];return _0xba1171;});return _0xab4d1e[_0x32c6ba(0x1f3)](_0x2ac532);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a30_0x554b(_0x5726d8,_0x545b53){const _0x521aff=a30_0x521a();return a30_0x554b=function(_0x554bd0,_0x482964){_0x554bd0=_0x554bd0-0x1a2;let _0x49fa4f=_0x521aff[_0x554bd0];return _0x49fa4f;},a30_0x554b(_0x5726d8,_0x545b53);}const a30_0x3e88ce=a30_0x554b;function a30_0x521a(){const _0x4070f8=['30149624eyYMMo','HClsw','GAxuy','../../helpers/performance-tester','then','testcase','debug','appium:app','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','4895175qonzLl','initQuit','uXKGw','XkJce','mmRVj','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','__skipSessionName','WgeST','BROWSERSTACK_TESTHUB_JWT','uCTtT','passed','Passed','BROWSERSTACK_TESTHUB_UUID','15294HITTEa','util','Automate\x20test\x20case\x20execution\x20has\x20started.','lnUkO','SgquL','thBuildUuid','\x20|\x20','accessibilityScanStarted','info','message','app','shift','join','__drivers','stopMonitoring','../../helpers/test-observability/utils','shouldScanTestForAccessibility','bstackA11yShouldScan','cFEJZ','lxioz','KILoG','WTVFT','../../helpers/percy/utils','2033584iGMtjk','testAnalyticsId','XQAdo','thTestRunUuid','kwxhD','DqpGS','CxpFm','titlePath','session_','hpmwB','error','GMHHS','winstonLogger','KCzWS','ENV_VAR','mochaHooks','\x20-\x20','../../helpers/testhub/constants','ytwVZ','browserstackSessionName','wAzxX','failed','saveTestResults','5893854FfnWjD','timeout','executeScript','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','__sessionFailed','QyhPC','performScan','currentTest','IspGo','getGlobal','\x22}}','quitCount_','JzdHb','Failed\x20to\x20store\x20session\x20name:\x20','VPsDf','../../helpers/accessibility-automation/helper','length','ewZDf','ZVhba','evoTd','TpddE','__error_messages__','161gnvlew','1490007WJoIUS','push','stringify','isAccessibilityPlatform','now','.\x20Error\x20:','percy','thJwtToken','setGlobal','KgUDq','HltJt','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','format','capabilities','percyCaptureMode','haPbO','ObservabilitySync:','Failed:\x20','ngJkZ','UvDKy','TENYt','gVaWL','isArray','startMonitoring','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','err','executeAsyncScript','./test-observability/mochaUtils','protocol','2267172FtfMXw','GGPOi','FuiIi','../../helpers/accessibility-automation/scripts','driverCleanup','vPIGv','env'];a30_0x521a=function(){return _0x4070f8;};return a30_0x521a();}(function(_0x12a3ff,_0x5daf1d){const _0xd165a2=a30_0x554b,_0x1b3dea=_0x12a3ff();while(!![]){try{const _0x3e2f1a=-parseInt(_0xd165a2(0x1df))/0x1*(-parseInt(_0xd165a2(0x21a))/0x2)+parseInt(_0xd165a2(0x1e0))/0x3+parseInt(_0xd165a2(0x1fd))/0x4+parseInt(_0xd165a2(0x20d))/0x5+parseInt(_0xd165a2(0x1c9))/0x6+parseInt(_0xd165a2(0x1b2))/0x7+-parseInt(_0xd165a2(0x204))/0x8;if(_0x3e2f1a===_0x5daf1d)break;else _0x1b3dea['push'](_0x1b3dea['shift']());}catch(_0x2c0879){_0x1b3dea['push'](_0x1b3dea['shift']());}}}(a30_0x521a,0xbde36));const util=require(a30_0x3e88ce(0x21b)),{isAccessibilityAutomationSession,fetchPlatformDetails,shouldScanTestForAccessibility}=require(a30_0x3e88ce(0x1d8)),{percyAutoCapture}=require(a30_0x3e88ce(0x1b1)),{sendPlatformDetails}=require(a30_0x3e88ce(0x1fb)),{isBrowserstackInfra,markSessionStatus}=require('../../helpers/helper'),{isTestObservabilitySession}=require(a30_0x3e88ce(0x1aa)),PerformanceTester=require(a30_0x3e88ce(0x207)),scripts=require(a30_0x3e88ce(0x200)),globals=require('../../helpers/globals'),logger=require('../../helpers/logger')[a30_0x3e88ce(0x1be)],{shouldProcessEventForTesthub}=require('../../helpers/testhub/utils'),testHubConstants=require(a30_0x3e88ce(0x1c3));exports[a30_0x3e88ce(0x1c1)]={'beforeAll'(){const _0x4a2920=a30_0x3e88ce,_0x17d63f={'ZVhba':function(_0xcf1d2b,_0x21722e,_0xb9049e,_0x5130ac){return _0xcf1d2b(_0x21722e,_0xb9049e,_0x5130ac);},'KgUDq':_0x4a2920(0x1c7),'ODlZv':_0x4a2920(0x220),'hpmwB':function(_0x2b274b,_0x422186,_0x24b61b){return _0x2b274b(_0x422186,_0x24b61b);},'GAxuy':_0x4a2920(0x217),'WgeST':function(_0x1e334a){return _0x1e334a();},'kwxhD':function(_0x5ae788,_0xf7da77,_0x1349f7){return _0x5ae788(_0xf7da77,_0x1349f7);}};PerformanceTester[_0x4a2920(0x1f7)]();const _0x3511a0='browserstack internal helper hook';global[_0x4a2920(0x1de)]=[],global[_0x4a2920(0x1cd)]=![],global[_0x4a2920(0x201)]=async()=>{const _0x34375f=_0x4a2920;let _0x10b236=![];try{await global[_0x34375f(0x1a8)][0x0][_0x34375f(0x1ba)],_0x10b236=!![],global[_0x34375f(0x1cd)]?await _0x17d63f[_0x34375f(0x1db)](markSessionStatus,global[_0x34375f(0x1a8)][0x0],_0x17d63f[_0x34375f(0x1e9)],global[_0x34375f(0x1de)][_0x34375f(0x1a7)](_0x17d63f['ODlZv'])):await _0x17d63f[_0x34375f(0x1bb)](markSessionStatus,global[_0x34375f(0x1a8)][0x0],_0x17d63f[_0x34375f(0x206)]);}catch(_0x3ec4f4){}global[_0x34375f(0x1de)]=[],global[_0x34375f(0x1cd)]=![];if(_0x10b236)try{try{_0x17d63f[_0x34375f(0x214)](shouldProcessEventForTesthub)&&(global[_0x34375f(0x1a8)][0x0]&&await _0x17d63f[_0x34375f(0x1b6)](sendPlatformDetails,global[_0x34375f(0x1a8)][0x0],this[_0x34375f(0x1d0)]?this[_0x34375f(0x1d0)]['testAnalyticsId']:null));}catch{}await global['__drivers'][0x0][_0x34375f(0x20e)]();}catch(_0x4dc407){}};},'beforeEach'(_0x5a6d37){const _0x506dd0=a30_0x3e88ce,_0x384922={'uCTtT':function(_0x10927e,_0xc183ac){return _0x10927e>_0xc183ac;},'ewZDf':function(_0x1c6972,_0x327e96){return _0x1c6972>_0x327e96;},'VPsDf':'\x20-\x20','CxpFm':function(_0x3fb135,_0x323783,_0xb654c6){return _0x3fb135(_0x323783,_0xb654c6);},'cFEJZ':_0x506dd0(0x1ac),'FuiIi':function(_0x2023a0){return _0x2023a0();},'mmRVj':function(_0x31e405,_0x53139d){return _0x31e405>_0x53139d;},'ytwVZ':_0x506dd0(0x1e3),'lnUkO':function(_0x64e428,_0x716c05){return _0x64e428===_0x716c05;},'TENYt':'http:','jqnlW':function(_0x5a2f72,_0x4f8f6d){return _0x5a2f72===_0x4f8f6d;},'QyhPC':'https:','vPIGv':_0x506dd0(0x1f8),'XkJce':_0x506dd0(0x21c)};new Promise(async _0x228fa8=>{const _0x4c5c98=_0x506dd0,_0x57e9e3='browserstack internal helper hook';let _0x2b0655=!![];try{_0x384922[_0x4c5c98(0x216)](global['__drivers'][_0x4c5c98(0x1d9)],0x1)&&(await global[_0x4c5c98(0x201)](),global[_0x4c5c98(0x1a8)][_0x4c5c98(0x1a6)]()),_0x384922[_0x4c5c98(0x1da)](global[_0x4c5c98(0x1a8)][0x0]['quitCount_'],0x0)&&(_0x2b0655=![],await global[_0x4c5c98(0x201)]());}catch{}try{Array[_0x4c5c98(0x1f6)](global[_0x4c5c98(0x1a8)])&&global['__drivers'][0x0]&&(global['__drivers'][0x0][_0x4c5c98(0x1c5)]=this[_0x4c5c98(0x1d0)][_0x4c5c98(0x1b9)]()[_0x4c5c98(0x1a7)](_0x384922[_0x4c5c98(0x1d7)])),global['browserstackSessionName']=this['currentTest'][_0x4c5c98(0x1b9)]()[_0x4c5c98(0x1a7)](_0x384922[_0x4c5c98(0x1d7)]);}catch(_0x5173b3){logger[_0x4c5c98(0x20a)](_0x4c5c98(0x1d6)+_0x5173b3);}this[_0x4c5c98(0x1d0)][_0x4c5c98(0x1ab)]=_0x384922[_0x4c5c98(0x1b8)](shouldScanTestForAccessibility,this[_0x4c5c98(0x1d0)]['titlePath'](),!![]),globals[_0x4c5c98(0x1e8)](_0x384922[_0x4c5c98(0x1ad)],this[_0x4c5c98(0x1d0)]['shouldScanTestForAccessibility']),this['currentTest'][_0x4c5c98(0x1a2)]=!![];if(_0x384922['FuiIi'](isAccessibilityAutomationSession)&&_0x2b0655&&Array[_0x4c5c98(0x1f6)](global[_0x4c5c98(0x1a8)])&&_0x384922[_0x4c5c98(0x211)](global['__drivers'][_0x4c5c98(0x1d9)],0x0)&&globals['getGlobal'](_0x384922[_0x4c5c98(0x1c4)]))try{const _0xb9905a=await global[_0x4c5c98(0x1a8)][0x0][_0x4c5c98(0x1ba)];if(_0xb9905a){let _0x48d20f=!![];const _0x3d0c21=await global['__drivers'][0x0]['getCurrentUrl']();let _0x229571;try{_0x229571=new URL(_0x3d0c21);}catch(_0x3aa9ef){_0x48d20f=![];}_0x48d20f=_0x384922[_0x4c5c98(0x21d)](_0x229571[_0x4c5c98(0x1fc)],_0x384922[_0x4c5c98(0x1f4)])||_0x384922['jqnlW'](_0x229571['protocol'],_0x384922[_0x4c5c98(0x1ce)]),_0x48d20f&&(this[_0x4c5c98(0x1d0)][_0x4c5c98(0x1ab)]&&logger[_0x4c5c98(0x1a3)](_0x384922[_0x4c5c98(0x202)])),this[_0x4c5c98(0x1d0)][_0x4c5c98(0x1a2)]=this[_0x4c5c98(0x1d0)][_0x4c5c98(0x1ab)],this[_0x4c5c98(0x1d0)]['shouldScanTestForAccessibility']&&logger[_0x4c5c98(0x1a3)](_0x384922[_0x4c5c98(0x210)]);}}catch(_0x3647fc){logger[_0x4c5c98(0x1bc)](_0x4c5c98(0x212)+util[_0x4c5c98(0x1ec)](_0x3647fc));}_0x384922[_0x4c5c98(0x1ff)](_0x228fa8);})['then'](_0x5a6d37);},'afterEach'(_0x3fea3b){const _0x2c715a=a30_0x3e88ce,_0x50399f={'evoTd':function(_0x4fa404,_0x3b6777){return _0x4fa404>_0x3b6777;},'GMHHS':function(_0x43a636,_0x280dcb){return _0x43a636===_0x280dcb;},'HltJt':_0x2c715a(0x209),'JzdHb':_0x2c715a(0x20b),'AVfgj':function(_0xc52e5a,_0x275f92,_0x5b10a9,_0x5a4edb){return _0xc52e5a(_0x275f92,_0x5b10a9,_0x5a4edb);},'WTVFT':_0x2c715a(0x1c2),'wAzxX':function(_0x5ca542,_0x12ef45){return _0x5ca542!==_0x12ef45;},'KILoG':'passed','KCzWS':function(_0x2bda59,_0x6d48c6,_0x179169){return _0x2bda59(_0x6d48c6,_0x179169);},'SgquL':function(_0x47c10d,_0x50ac7){return _0x47c10d+_0x50ac7;},'HClsw':_0x2c715a(0x1f1),'TpddE':_0x2c715a(0x1bc),'XQAdo':function(_0x32e901,_0x3c774e,_0x102964){return _0x32e901(_0x3c774e,_0x102964);},'GGPOi':_0x2c715a(0x218),'uDzKA':'info','UvDKy':_0x2c715a(0x1e3),'GSGOj':_0x2c715a(0x1ac),'IspGo':'Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','iwaUN':'Performing\x20scan\x20before\x20saving\x20results','lxioz':_0x2c715a(0x1eb),'haPbO':function(_0x306c08){return _0x306c08();},'DqpGS':function(_0xda3ffa){return _0xda3ffa();},'gVaWL':_0x2c715a(0x20a),'uXKGw':function(_0x431344,_0x20093d){return _0x431344>_0x20093d;}},_0x5048aa='browserstack internal helper hook';this['timeout'](0xfde8);const _0x264600=async(_0x4848bf,_0x1336ca)=>{const _0x5e8b7f=_0x2c715a;await global[_0x5e8b7f(0x1a8)][0x0][_0x5e8b7f(0x1cb)](_0x5e8b7f(0x20c)+_0x4848bf+',\x22level\x22:\x20\x22'+_0x1336ca+_0x5e8b7f(0x1d3));};new Promise(async _0x1d8882=>{const _0x656d61=_0x2c715a;try{_0x50399f[_0x656d61(0x1dc)](global[_0x656d61(0x1a8)][_0x656d61(0x1d9)],0x1)&&(await global['driverCleanup'](),global[_0x656d61(0x1a8)][_0x656d61(0x1a6)](),global[_0x656d61(0x1de)]=[],global[_0x656d61(0x1cd)]=![]);try{if(global[_0x656d61(0x1e6)]&&_0x50399f[_0x656d61(0x1bd)](global[_0x656d61(0x1ee)],_0x50399f[_0x656d61(0x1ea)])&&global[_0x656d61(0x1a8)][0x0]){const _0x9e01b=_0x50399f['evoTd'](global['capabilities'][_0x656d61(0x1d9)],0x0)?!!global[_0x656d61(0x1ed)][0x0][_0x656d61(0x1a5)]||!!global['capabilities'][0x0][_0x50399f[_0x656d61(0x1d5)]]:![],_0x4f7fb7={};_0x4f7fb7[_0x656d61(0x1a5)]=_0x9e01b,await _0x50399f['AVfgj'](percyAutoCapture,global[_0x656d61(0x1a8)][0x0],_0x50399f['HltJt'],_0x4f7fb7);}}catch(_0x5ccd0b){}!global[_0x656d61(0x213)]&&(await global['__drivers'][0x0]['executeScript'](_0x656d61(0x1cc)+JSON['stringify'](this['currentTest'][_0x656d61(0x1b9)]()[_0x656d61(0x1a7)](_0x50399f[_0x656d61(0x1b0)]))+'}}'),global[_0x656d61(0x1a8)][0x0]['sessionNameSet__']=!![]);const _0x13d375=_0x50399f[_0x656d61(0x1c6)](this[_0x656d61(0x1d0)]['state'],_0x50399f[_0x656d61(0x1af)]);_0x13d375?(global['__sessionFailed']=!![],global['__error_messages__'][_0x656d61(0x1e1)](this[_0x656d61(0x1d0)][_0x656d61(0x1f9)][_0x656d61(0x1a4)]),await _0x50399f['KCzWS'](_0x264600,JSON['stringify'](_0x50399f[_0x656d61(0x21e)](_0x50399f[_0x656d61(0x205)],this[_0x656d61(0x1d0)][_0x656d61(0x1f9)][_0x656d61(0x1a4)])),_0x50399f[_0x656d61(0x1dd)])):await _0x50399f[_0x656d61(0x1b4)](_0x264600,JSON[_0x656d61(0x1e2)](_0x50399f[_0x656d61(0x1fe)]),_0x50399f['uDzKA']);}catch(_0x1eb83b){}try{if(this[_0x656d61(0x1d0)]['accessibilityScanStarted']&&globals[_0x656d61(0x1d2)](_0x50399f[_0x656d61(0x1f3)])&&globals[_0x656d61(0x1d2)](_0x50399f['GSGOj'])){logger[_0x656d61(0x1a3)](_0x50399f[_0x656d61(0x1d1)]);const _0x44ecea={};_0x44ecea[_0x656d61(0x1b5)]=this[_0x656d61(0x1d0)][_0x656d61(0x1b3)],_0x44ecea[_0x656d61(0x21f)]=process[_0x656d61(0x203)][testHubConstants[_0x656d61(0x1c0)][_0x656d61(0x219)]],_0x44ecea[_0x656d61(0x1e7)]=process[_0x656d61(0x203)][testHubConstants[_0x656d61(0x1c0)][_0x656d61(0x215)]];const _0x4f533f=_0x44ecea;logger['debug']('Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20'+JSON['stringify'](_0x4f533f)),logger[_0x656d61(0x20a)](_0x50399f['iwaUN']),logger[_0x656d61(0x20a)](util[_0x656d61(0x1ec)](await global[_0x656d61(0x1a8)][0x0][_0x656d61(0x1fa)](scripts[_0x656d61(0x1cf)],{'method':global['browserstackSessionName']}))),await global[_0x656d61(0x1a8)][0x0][_0x656d61(0x1fa)](scripts[_0x656d61(0x1c8)],_0x4f533f),logger[_0x656d61(0x1a3)](_0x50399f[_0x656d61(0x1ae)]);}}catch(_0x202a6b){logger[_0x656d61(0x1bc)]('Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20'+this[_0x656d61(0x1d0)][_0x656d61(0x1b9)]()+_0x656d61(0x1e5),_0x202a6b);}try{try{if(_0x50399f['haPbO'](shouldProcessEventForTesthub)){global[_0x656d61(0x1a8)][0x0]&&await _0x50399f[_0x656d61(0x1bf)](sendPlatformDetails,global['__drivers'][0x0],this[_0x656d61(0x1d0)]?this[_0x656d61(0x1d0)][_0x656d61(0x1b3)]:null);if(_0x50399f[_0x656d61(0x1b7)](isBrowserstackInfra)){const _0x4ef579=_0x656d61(0x1f0)+Date[_0x656d61(0x1e4)]();await _0x50399f[_0x656d61(0x1bf)](_0x264600,JSON[_0x656d61(0x1e2)](_0x4ef579),_0x50399f[_0x656d61(0x1f5)]);}}}catch{}_0x50399f[_0x656d61(0x20f)](global['__drivers'][0x0][_0x656d61(0x1d4)],0x0)&&await global[_0x656d61(0x201)]();}catch(_0x4641c1){}_0x50399f[_0x656d61(0x1ef)](_0x1d8882);})[_0x2c715a(0x208)](()=>_0x3fea3b());},'afterAll'(_0x1bb604){const _0x39059d=a30_0x3e88ce,_0x37a911={'ngJkZ':function(_0x36453b){return _0x36453b();}},_0x175089='browserstack internal helper hook';this[_0x39059d(0x1ca)](0xfde8),new Promise(async _0x28fee9=>{const _0x1946d4=_0x39059d;PerformanceTester[_0x1946d4(0x1a9)](),await global[_0x1946d4(0x201)](),_0x37a911[_0x1946d4(0x1f2)](_0x28fee9);})[_0x39059d(0x208)](()=>_0x1bb604());}};
|
|
1
|
+
const a30_0x260c59=a30_0x478d;function a30_0x4252(){const _0x20fc63=['performScan','initQuit','getCurrentUrl','\x22}}','VRLor','TOEku','../../helpers/globals','Automate\x20test\x20case\x20execution\x20has\x20started.','then','push','QqsfH','../../helpers/logger','lmXOu','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','titlePath','toBea','BROWSERSTACK_TESTHUB_JWT','appium:app','JJKkj','RlhXk','OupcB','2080521ngNrid','ObservabilitySync:','Performing\x20scan\x20before\x20saving\x20results','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','message','winstonLogger','rjwks','./test-observability/mochaUtils','XZonL','1037200lQxmZS',',\x22level\x22:\x20\x22','executeScript','now','bHJXm','2035747oJwiyw','error','mochaHooks','startMonitoring','\x20-\x20','4bQfAyi','19662640huPVXO','../../helpers/percy/utils','quitCount_','debug','testAnalyticsId','FwQuR','eerSS','BbdqJ','EVute','saveTestResults','percy','state','browserstackSessionName','accessibilityScanStarted','failed','OGNQx','Failed\x20to\x20store\x20session\x20name:\x20','APYkg','163388IppXnr','__error_messages__','zkvDr','env','../../helpers/testhub/constants','format','testcase','Passed','capabilities','driverCleanup','join','RaMOE','ZTjoY','../../helpers/accessibility-automation/helper','hinEA','isAccessibilityPlatform','BROWSERSTACK_TESTHUB_UUID','__skipSessionName','__drivers','Failed:\x20','TmNNx','passed','ENV_VAR','percyCaptureMode','AxEqF','489297NUTgRl','KWBGi','../../helpers/testhub/utils','thBuildUuid','getGlobal','shouldScanTestForAccessibility','IzCeg','stringify','info','__sessionFailed','.\x20Error\x20:','MxtHI','4169094ILwmGi','DsHLf','length','sessionNameSet__','../../helpers/helper','https:','shift','err','gRtwb','currentTest','../../helpers/performance-tester','executeAsyncScript','stopMonitoring','app','isArray','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','EaHTk','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','qOAbv','session_'];a30_0x4252=function(){return _0x20fc63;};return a30_0x4252();}(function(_0x5c9c6a,_0x1e80e2){const _0x2cf1c4=a30_0x478d,_0x25136f=_0x5c9c6a();while(!![]){try{const _0x1a11fd=-parseInt(_0x2cf1c4(0x194))/0x1+-parseInt(_0x2cf1c4(0x17b))/0x2+-parseInt(_0x2cf1c4(0x1c9))/0x3+-parseInt(_0x2cf1c4(0x168))/0x4*(-parseInt(_0x2cf1c4(0x15e))/0x5)+-parseInt(_0x2cf1c4(0x1a0))/0x6+-parseInt(_0x2cf1c4(0x163))/0x7+parseInt(_0x2cf1c4(0x169))/0x8;if(_0x1a11fd===_0x1e80e2)break;else _0x25136f['push'](_0x25136f['shift']());}catch(_0x4db0ce){_0x25136f['push'](_0x25136f['shift']());}}}(a30_0x4252,0x6557e));function a30_0x478d(_0x24e500,_0x5785a0){const _0x425292=a30_0x4252();return a30_0x478d=function(_0x478d5b,_0x4d7976){_0x478d5b=_0x478d5b-0x15e;let _0x3c352f=_0x425292[_0x478d5b];return _0x3c352f;},a30_0x478d(_0x24e500,_0x5785a0);}const util=require('util'),{isAccessibilityAutomationSession,fetchPlatformDetails,shouldScanTestForAccessibility}=require(a30_0x260c59(0x188)),{percyAutoCapture}=require(a30_0x260c59(0x16a)),{sendPlatformDetails}=require(a30_0x260c59(0x1d0)),{isBrowserstackInfra,markSessionStatus}=require(a30_0x260c59(0x1a4)),{isTestObservabilitySession}=require('../../helpers/test-observability/utils'),PerformanceTester=require(a30_0x260c59(0x1aa)),scripts=require('../../helpers/accessibility-automation/scripts'),globals=require(a30_0x260c59(0x1ba)),logger=require(a30_0x260c59(0x1bf))[a30_0x260c59(0x1ce)],{shouldProcessEventForTesthub}=require(a30_0x260c59(0x196)),testHubConstants=require(a30_0x260c59(0x17f));exports[a30_0x260c59(0x165)]={'beforeAll'(){const _0x2034ec=a30_0x260c59,_0x48714e={'AKElF':function(_0x1d57a2,_0x28a243,_0x25dc6e,_0x8096c8){return _0x1d57a2(_0x28a243,_0x25dc6e,_0x8096c8);},'RnYzR':_0x2034ec(0x177),'bHJXm':'\x20|\x20','AxEqF':function(_0x51e2aa,_0x53f5f5,_0x221c4a){return _0x51e2aa(_0x53f5f5,_0x221c4a);},'RaMOE':_0x2034ec(0x190),'nDaFW':function(_0x5ca133){return _0x5ca133();},'EccAx':function(_0x4cfb7b,_0x5e411b,_0x13ea84){return _0x4cfb7b(_0x5e411b,_0x13ea84);}};PerformanceTester[_0x2034ec(0x166)]();const _0x342e97='browserstack internal helper hook';global[_0x2034ec(0x17c)]=[],global[_0x2034ec(0x19d)]=![],global['driverCleanup']=async()=>{const _0x531185=_0x2034ec;let _0x2c5d88=![];try{await global[_0x531185(0x18d)][0x0][_0x531185(0x1b3)],_0x2c5d88=!![],global[_0x531185(0x19d)]?await _0x48714e['AKElF'](markSessionStatus,global[_0x531185(0x18d)][0x0],_0x48714e['RnYzR'],global['__error_messages__']['join'](_0x48714e[_0x531185(0x162)])):await _0x48714e[_0x531185(0x193)](markSessionStatus,global[_0x531185(0x18d)][0x0],_0x48714e[_0x531185(0x186)]);}catch(_0x551f54){}global[_0x531185(0x17c)]=[],global[_0x531185(0x19d)]=![];if(_0x2c5d88)try{try{_0x48714e['nDaFW'](shouldProcessEventForTesthub)&&(global[_0x531185(0x18d)][0x0]&&await _0x48714e['EccAx'](sendPlatformDetails,global[_0x531185(0x18d)][0x0],this[_0x531185(0x1a9)]?this[_0x531185(0x1a9)][_0x531185(0x16d)]:null));}catch{}await global[_0x531185(0x18d)][0x0][_0x531185(0x1b5)]();}catch(_0x79ac5e){}};},'beforeEach'(_0x394243){const _0x1b7103=a30_0x260c59,_0x936b3a={'DsHLf':function(_0x12b989,_0x4afa66){return _0x12b989>_0x4afa66;},'FwQuR':_0x1b7103(0x167),'cNbYQ':function(_0x32e95d,_0x5da3f5,_0x185d7e){return _0x32e95d(_0x5da3f5,_0x185d7e);},'EaHTk':'bstackA11yShouldScan','VRLor':function(_0x3d352d){return _0x3d352d();},'eerSS':'isAccessibilityPlatform','ksEOx':function(_0x547443,_0x560e02){return _0x547443===_0x560e02;},'BIrAf':'http:','XZonL':function(_0x528d52,_0x37855e){return _0x528d52===_0x37855e;},'lmXOu':_0x1b7103(0x1a5),'lIyxE':_0x1b7103(0x1cc),'ZTjoY':_0x1b7103(0x1bb)};new Promise(async _0x197890=>{const _0x23b22d=_0x1b7103,_0x4cd926='browserstack internal helper hook';let _0x446cc0=!![];try{_0x936b3a['DsHLf'](global[_0x23b22d(0x18d)][_0x23b22d(0x1a2)],0x1)&&(await global['driverCleanup'](),global[_0x23b22d(0x18d)][_0x23b22d(0x1a6)]()),_0x936b3a[_0x23b22d(0x1a1)](global['__drivers'][0x0][_0x23b22d(0x16b)],0x0)&&(_0x446cc0=![],await global['driverCleanup']());}catch{}try{Array['isArray'](global[_0x23b22d(0x18d)])&&global[_0x23b22d(0x18d)][0x0]&&(global[_0x23b22d(0x18d)][0x0][_0x23b22d(0x175)]=this['currentTest'][_0x23b22d(0x1c2)]()[_0x23b22d(0x185)](_0x936b3a[_0x23b22d(0x16e)])),global[_0x23b22d(0x175)]=this['currentTest'][_0x23b22d(0x1c2)]()[_0x23b22d(0x185)](_0x936b3a[_0x23b22d(0x16e)]);}catch(_0x47a691){logger[_0x23b22d(0x16c)](_0x23b22d(0x179)+_0x47a691);}this[_0x23b22d(0x1a9)]['shouldScanTestForAccessibility']=_0x936b3a['cNbYQ'](shouldScanTestForAccessibility,this['currentTest']['titlePath'](),!![]),globals['setGlobal'](_0x936b3a[_0x23b22d(0x1b0)],this[_0x23b22d(0x1a9)]['shouldScanTestForAccessibility']),this[_0x23b22d(0x1a9)]['accessibilityScanStarted']=!![];if(_0x936b3a[_0x23b22d(0x1b8)](isAccessibilityAutomationSession)&&_0x446cc0&&Array[_0x23b22d(0x1ae)](global[_0x23b22d(0x18d)])&&_0x936b3a[_0x23b22d(0x1a1)](global['__drivers'][_0x23b22d(0x1a2)],0x0)&&globals[_0x23b22d(0x198)](_0x936b3a[_0x23b22d(0x16f)]))try{const _0x5946fa=await global[_0x23b22d(0x18d)][0x0]['session_'];if(_0x5946fa){let _0xa311cd=!![];const _0x5afde6=await global[_0x23b22d(0x18d)][0x0][_0x23b22d(0x1b6)]();let _0x3503a6;try{_0x3503a6=new URL(_0x5afde6);}catch(_0x31ef62){_0xa311cd=![];}_0xa311cd=_0x936b3a['ksEOx'](_0x3503a6['protocol'],_0x936b3a['BIrAf'])||_0x936b3a[_0x23b22d(0x1d1)](_0x3503a6['protocol'],_0x936b3a[_0x23b22d(0x1c0)]),_0xa311cd&&(this[_0x23b22d(0x1a9)]['shouldScanTestForAccessibility']&&logger[_0x23b22d(0x19c)](_0x936b3a['lIyxE'])),this[_0x23b22d(0x1a9)][_0x23b22d(0x176)]=this['currentTest'][_0x23b22d(0x199)],this['currentTest'][_0x23b22d(0x199)]&&logger['info'](_0x936b3a[_0x23b22d(0x187)]);}}catch(_0x1fee70){logger[_0x23b22d(0x164)]('Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20'+util[_0x23b22d(0x180)](_0x1fee70));}_0x936b3a['VRLor'](_0x197890);})[_0x1b7103(0x1bc)](_0x394243);},'afterEach'(_0x3c5917){const _0x38ad9e=a30_0x260c59,_0x21ffb3={'zkvDr':function(_0x10f581,_0x50cbaf){return _0x10f581>_0x50cbaf;},'RlhXk':function(_0x374e6e,_0x44e02f){return _0x374e6e===_0x44e02f;},'TOEku':_0x38ad9e(0x181),'QiWeu':_0x38ad9e(0x1c5),'QqsfH':function(_0x3814cf,_0x254abd,_0x277a8d,_0x4ddb55){return _0x3814cf(_0x254abd,_0x277a8d,_0x4ddb55);},'SnAaV':_0x38ad9e(0x167),'TmNNx':function(_0x1a294d,_0x44967e){return _0x1a294d!==_0x44967e;},'ZGcDj':_0x38ad9e(0x190),'EVute':function(_0x2b9253,_0x1fa0b0,_0x4cee0d){return _0x2b9253(_0x1fa0b0,_0x4cee0d);},'KWBGi':function(_0x5c96c6,_0x201d8d){return _0x5c96c6+_0x201d8d;},'rjwks':_0x38ad9e(0x18e),'APYkg':_0x38ad9e(0x164),'JJKkj':_0x38ad9e(0x182),'lgARH':_0x38ad9e(0x19c),'gRtwb':_0x38ad9e(0x18a),'ltLvL':'bstackA11yShouldScan','BbdqJ':_0x38ad9e(0x1b1),'qOAbv':_0x38ad9e(0x1cb),'toBea':_0x38ad9e(0x1c1),'MxtHI':function(_0x2a55fc){return _0x2a55fc();},'cMPKc':function(_0x5a6187,_0x27ab56,_0x3bc49b){return _0x5a6187(_0x27ab56,_0x3bc49b);},'OGNQx':function(_0x167604){return _0x167604();},'hinEA':'debug','IzCeg':function(_0x55a898){return _0x55a898();}},_0x11a786='browserstack internal helper hook';this['timeout'](0xfde8);const _0xc4b5f5=async(_0xe55529,_0x207450)=>{const _0x22482a=_0x38ad9e;await global[_0x22482a(0x18d)][0x0][_0x22482a(0x160)]('browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:'+_0xe55529+_0x22482a(0x15f)+_0x207450+_0x22482a(0x1b7));};new Promise(async _0x28eed8=>{const _0x46fb99=_0x38ad9e;try{_0x21ffb3['zkvDr'](global[_0x46fb99(0x18d)][_0x46fb99(0x1a2)],0x1)&&(await global[_0x46fb99(0x184)](),global[_0x46fb99(0x18d)]['shift'](),global[_0x46fb99(0x17c)]=[],global[_0x46fb99(0x19d)]=![]);try{if(global[_0x46fb99(0x173)]&&_0x21ffb3[_0x46fb99(0x1c7)](global[_0x46fb99(0x192)],_0x21ffb3[_0x46fb99(0x1b9)])&&global[_0x46fb99(0x18d)][0x0]){const _0x3c5d57=_0x21ffb3[_0x46fb99(0x17d)](global[_0x46fb99(0x183)][_0x46fb99(0x1a2)],0x0)?!!global[_0x46fb99(0x183)][0x0][_0x46fb99(0x1ad)]||!!global['capabilities'][0x0][_0x21ffb3['QiWeu']]:![],_0x48fca4={};_0x48fca4[_0x46fb99(0x1ad)]=_0x3c5d57,await _0x21ffb3[_0x46fb99(0x1be)](percyAutoCapture,global['__drivers'][0x0],_0x21ffb3[_0x46fb99(0x1b9)],_0x48fca4);}}catch(_0x3692d3){}!global[_0x46fb99(0x18c)]&&(await global[_0x46fb99(0x18d)][0x0][_0x46fb99(0x160)]('browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20'+JSON[_0x46fb99(0x19b)](this['currentTest']['titlePath']()[_0x46fb99(0x185)](_0x21ffb3['SnAaV']))+'}}'),global[_0x46fb99(0x18d)][0x0][_0x46fb99(0x1a3)]=!![]);const _0x410410=_0x21ffb3[_0x46fb99(0x18f)](this[_0x46fb99(0x1a9)][_0x46fb99(0x174)],_0x21ffb3['ZGcDj']);_0x410410?(global[_0x46fb99(0x19d)]=!![],global[_0x46fb99(0x17c)][_0x46fb99(0x1bd)](this['currentTest'][_0x46fb99(0x1a7)][_0x46fb99(0x1cd)]),await _0x21ffb3['EVute'](_0xc4b5f5,JSON[_0x46fb99(0x19b)](_0x21ffb3[_0x46fb99(0x195)](_0x21ffb3[_0x46fb99(0x1cf)],this[_0x46fb99(0x1a9)][_0x46fb99(0x1a7)]['message'])),_0x21ffb3[_0x46fb99(0x17a)])):await _0x21ffb3[_0x46fb99(0x171)](_0xc4b5f5,JSON[_0x46fb99(0x19b)](_0x21ffb3[_0x46fb99(0x1c6)]),_0x21ffb3['lgARH']);}catch(_0x4ddd78){}try{if(this[_0x46fb99(0x1a9)][_0x46fb99(0x176)]&&globals[_0x46fb99(0x198)](_0x21ffb3[_0x46fb99(0x1a8)])&&globals[_0x46fb99(0x198)](_0x21ffb3['ltLvL'])){logger['info'](_0x21ffb3[_0x46fb99(0x170)]);const _0x464ba9={};_0x464ba9['thTestRunUuid']=this['currentTest'][_0x46fb99(0x16d)],_0x464ba9[_0x46fb99(0x197)]=process[_0x46fb99(0x17e)][testHubConstants['ENV_VAR'][_0x46fb99(0x18b)]],_0x464ba9['thJwtToken']=process[_0x46fb99(0x17e)][testHubConstants[_0x46fb99(0x191)][_0x46fb99(0x1c4)]];const _0x1485ff=_0x464ba9;logger[_0x46fb99(0x16c)](_0x46fb99(0x1af)+JSON[_0x46fb99(0x19b)](_0x1485ff)),logger[_0x46fb99(0x16c)](_0x21ffb3[_0x46fb99(0x1b2)]),logger[_0x46fb99(0x16c)](util['format'](await global[_0x46fb99(0x18d)][0x0][_0x46fb99(0x1ab)](scripts[_0x46fb99(0x1b4)],{'method':global['browserstackSessionName']}))),await global[_0x46fb99(0x18d)][0x0][_0x46fb99(0x1ab)](scripts[_0x46fb99(0x172)],_0x1485ff),logger[_0x46fb99(0x19c)](_0x21ffb3[_0x46fb99(0x1c3)]);}}catch(_0xe2a304){logger[_0x46fb99(0x164)]('Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20'+this[_0x46fb99(0x1a9)][_0x46fb99(0x1c2)]()+_0x46fb99(0x19e),_0xe2a304);}try{try{if(_0x21ffb3[_0x46fb99(0x19f)](shouldProcessEventForTesthub)){global[_0x46fb99(0x18d)][0x0]&&await _0x21ffb3['cMPKc'](sendPlatformDetails,global[_0x46fb99(0x18d)][0x0],this[_0x46fb99(0x1a9)]?this[_0x46fb99(0x1a9)]['testAnalyticsId']:null);if(_0x21ffb3[_0x46fb99(0x178)](isBrowserstackInfra)){const _0x1c856b=_0x46fb99(0x1ca)+Date[_0x46fb99(0x161)]();await _0x21ffb3['EVute'](_0xc4b5f5,JSON[_0x46fb99(0x19b)](_0x1c856b),_0x21ffb3[_0x46fb99(0x189)]);}}}catch{}_0x21ffb3[_0x46fb99(0x17d)](global[_0x46fb99(0x18d)][0x0][_0x46fb99(0x16b)],0x0)&&await global[_0x46fb99(0x184)]();}catch(_0x5bdbec){}_0x21ffb3[_0x46fb99(0x19a)](_0x28eed8);})['then'](()=>_0x3c5917());},'afterAll'(_0x159ca8){const _0x17fbab={'OupcB':function(_0x34b4b5){return _0x34b4b5();}},_0x102cac='browserstack internal helper hook';this['timeout'](0xfde8),new Promise(async _0xf72faa=>{const _0x5b3547=a30_0x478d;PerformanceTester[_0x5b3547(0x1ac)](),await global[_0x5b3547(0x184)](),_0x17fbab[_0x5b3547(0x1c8)](_0xf72faa);})['then'](()=>_0x159ca8());}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';const a31_0xbbfe06=a31_0x56fd;(function(_0x298491,_0x534ab6){const _0x22dca4=a31_0x56fd,_0x4db56f=_0x298491();while(!![]){try{const _0x5d6571=parseInt(_0x22dca4(0x14d))/0x1*(-parseInt(_0x22dca4(0x15f))/0x2)+parseInt(_0x22dca4(0x158))/0x3*(parseInt(_0x22dca4(0x134))/0x4)+parseInt(_0x22dca4(0x135))/0x5*(-parseInt(_0x22dca4(0x15b))/0x6)+parseInt(_0x22dca4(0x14c))/0x7*(-parseInt(_0x22dca4(0x13d))/0x8)+parseInt(_0x22dca4(0x13c))/0x9+-parseInt(_0x22dca4(0x139))/0xa*(parseInt(_0x22dca4(0x149))/0xb)+parseInt(_0x22dca4(0x130))/0xc*(parseInt(_0x22dca4(0x126))/0xd);if(_0x5d6571===_0x534ab6)break;else _0x4db56f['push'](_0x4db56f['shift']());}catch(_0x53b6f5){_0x4db56f['push'](_0x4db56f['shift']());}}}(a31_0x38dc,0x7530e));function a31_0x56fd(_0x24f8d5,_0x5eb37a){const _0x38dc2b=a31_0x38dc();return a31_0x56fd=function(_0x56fd72,_0x265317){_0x56fd72=_0x56fd72-0x115;let _0x222c89=_0x38dc2b[_0x56fd72];return _0x222c89;},a31_0x56fd(_0x24f8d5,_0x5eb37a);}const fs=require('fs'),path=require(a31_0xbbfe06(0x15d)),{spawn}=require(a31_0xbbfe06(0x141)),logger=require('../../helpers/logger')['winstonLogger'],{default:BrowserStackSetup}=require(a31_0xbbfe06(0x117)),helper=require(a31_0xbbfe06(0x145)),constants=require(a31_0xbbfe06(0x155)),getUserNightwatchConfigs=(_0x256538,_0x497ad2)=>{const _0x386d8a=a31_0xbbfe06,_0x16d070={'jqxCH':_0x386d8a(0x159),'zEsyE':_0x386d8a(0x148),'RAeXQ':function(_0x114e53,_0x4ec4cb){return _0x114e53(_0x4ec4cb);},'yAmQA':_0x386d8a(0x12a)};let _0x4320e9=null,_0x4f80a8={};const _0x8c9080=_0x497ad2[_0x386d8a(0x115)](_0x5e89ff=>_0x5e89ff===_0x386d8a(0x138));if(!helper[_0x386d8a(0x116)](_0x256538[_0x386d8a(0x151)])&&fs[_0x386d8a(0x119)](path[_0x386d8a(0x131)](process[_0x386d8a(0x11c)](),_0x256538[_0x386d8a(0x151)])))_0x4320e9=path[_0x386d8a(0x131)](process[_0x386d8a(0x11c)](),_0x256538[_0x386d8a(0x151)]),_0x497ad2[_0x386d8a(0x144)](_0x8c9080,0x2);else{if(fs[_0x386d8a(0x119)](path[_0x386d8a(0x131)](process[_0x386d8a(0x11c)](),_0x16d070[_0x386d8a(0x163)])))_0x4320e9=path[_0x386d8a(0x131)](process[_0x386d8a(0x11c)](),_0x16d070[_0x386d8a(0x163)]);else fs[_0x386d8a(0x119)](path[_0x386d8a(0x131)](process[_0x386d8a(0x11c)](),_0x16d070[_0x386d8a(0x14f)]))&&(_0x4320e9=path['join'](process['cwd'](),_0x16d070['zEsyE']));}return _0x4320e9?(logger[_0x386d8a(0x13e)](_0x386d8a(0x156)+_0x4320e9),_0x4f80a8=_0x16d070[_0x386d8a(0x12f)](require,_0x4320e9)):logger[_0x386d8a(0x13e)](_0x16d070['yAmQA']),_0x4f80a8;},removeExistingEnvs=_0x520f15=>{const _0x47fbed=a31_0xbbfe06,_0x320163={};_0x320163[_0x47fbed(0x123)]=function(_0x35ca46,_0x39f2da){return _0x35ca46>_0x39f2da;},_0x320163[_0x47fbed(0x11b)]=function(_0x309a46,_0x3eb7f3){return _0x309a46>_0x3eb7f3;};const _0x38921f=_0x320163;let _0xd35f0e=_0x520f15[_0x47fbed(0x115)](_0x2677dd=>_0x2677dd===_0x47fbed(0x12d));_0x38921f[_0x47fbed(0x123)](_0xd35f0e,-0x1)&&_0x520f15[_0x47fbed(0x144)](_0xd35f0e,0x2),_0xd35f0e=_0x520f15['findIndex'](_0x1351c1=>_0x1351c1==='-e'),_0x38921f[_0x47fbed(0x11b)](_0xd35f0e,-0x1)&&_0x520f15['splice'](_0xd35f0e,0x2);};function a31_0x38dc(){const _0x306166=['path','useW3C','926alLYWQ','getPlatformName','GHjJo','slice','jqxCH','push','mergeDeep','findIndex','isUndefined','../../helpers/BrowserStackSetup','IJEkt','existsSync','test_settings','ElGsx','cwd','platforms','nightwatch','start_process','zklHb','webdriver','trim','UFIbT','split','debug','42731oyGXrE','desiredCapabilities','selenium','xnIeJ','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','stringify','unlinkSync','--env','modifyBrowserStackW3CCaps','RAeXQ','7836SBCZLc','join','forEach','uIsJU','96WpRvUI','15tOnBPu','LwxgQ','modifyBrowserStackCaps','--config','20JNUCcL','exports','env','5123619tAynwp','72QPZzVJ','info','JlPKD','Deleting\x20','child_process','hub.browserstack.com','jwOez','splice','../../helpers/helper','map','pHfpg','nightwatch.json','2149081NsPesY','nightwatch.cmd','sDLoM','541919qcIfmS','1044qfvYtr','filter','zEsyE','writeFileSync','config','child\x20process\x20exited\x20with\x20code\x20','znOqc','JWgDc','../utils/constants','Getting\x20your\x20nightwatch\x20configs\x20from\x20','BQbeL','25224MOrtWg','nightwatch.conf.js','host','1733226vcoaPy','XPMQs'];a31_0x38dc=function(){return _0x306166;};return a31_0x38dc();}function run(_0x5030b6,_0x3f166f){const _0x2d70ed=a31_0xbbfe06,_0x2dd569={'XPMQs':_0x2d70ed(0x11e),'zklHb':function(_0x521f0e,_0xc83ca){return _0x521f0e+_0xc83ca;},'LwxgQ':_0x2d70ed(0x11a),'DnZDO':function(_0x38686d,_0x25f2f3,_0x27ab1c){return _0x38686d(_0x25f2f3,_0x27ab1c);},'xnIeJ':_0x2d70ed(0x142),'znOqc':'Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','uIsJU':function(_0x1913a5,_0x3be163){return _0x1913a5===_0x3be163;},'JlPKD':'nightwatch-browserstack.json','jwOez':function(_0x4d45c4,_0x5b2b41){return _0x4d45c4(_0x5b2b41);},'YcdJQ':function(_0x3be265,_0x3bc26f,_0x3fe64a,_0x4547f1){return _0x3be265(_0x3bc26f,_0x3fe64a,_0x4547f1);},'GHjJo':_0x2d70ed(0x14a),'pHfpg':'--config','NnVnB':'--env','sDLoM':'inherit','JWgDc':'close'},_0x24b8a3=new BrowserStackSetup(_0x5030b6);if(!_0x24b8a3[_0x2d70ed(0x151)])return;const _0x5ee0d4=_0x2dd569['DnZDO'](getUserNightwatchConfigs,_0x5030b6,_0x3f166f),_0x24caa5={};_0x24caa5[_0x2d70ed(0x11f)]=![];const _0x50b2ae={};_0x50b2ae[_0x2d70ed(0x15a)]=_0x2dd569[_0x2d70ed(0x129)],_0x50b2ae['port']=0x1bb;const _0x352bd6={};_0x352bd6[_0x2d70ed(0x121)]=_0x24caa5,_0x352bd6[_0x2d70ed(0x128)]=_0x50b2ae;const _0x4c5590=_0x352bd6;logger[_0x2d70ed(0x13e)](_0x2dd569[_0x2d70ed(0x153)]);const _0x1108e4={..._0x5ee0d4},_0x3005cd=_0x1108e4,_0x596b00=helper[_0x2d70ed(0x15e)](_0x24b8a3[_0x2d70ed(0x151)]),_0x39e06f=[];_0x24b8a3['config'][_0x2d70ed(0x11d)][_0x2d70ed(0x132)]((_0x38be89,_0x1513f6)=>{const _0x280d12=_0x2d70ed;_0x596b00?_0x39e06f[_0x280d12(0x164)](helper[_0x280d12(0x12e)](_0x24b8a3[_0x280d12(0x151)],_0x2dd569[_0x280d12(0x15c)],_0x1513f6)):_0x39e06f['push'](helper[_0x280d12(0x137)](_0x24b8a3[_0x280d12(0x151)],_0x2dd569[_0x280d12(0x15c)],_0x1513f6));});const _0x3495d5={},_0x1b7b92=[];_0x5030b6[_0x2d70ed(0x13b)]=_0x5030b6[_0x2d70ed(0x13b)]||_0x5030b6['e'];const _0x26d0cd=_0x5030b6[_0x2d70ed(0x13b)]?_0x5030b6[_0x2d70ed(0x13b)][_0x2d70ed(0x122)]()[_0x2d70ed(0x124)](',')[_0x2d70ed(0x146)](_0x2b4279=>_0x2b4279['trim']())[_0x2d70ed(0x14e)](_0x4cd6e1=>_0x4cd6e1!==''):[''];_0x2dd569[_0x2d70ed(0x133)](_0x26d0cd['length'],0x0)&&_0x26d0cd['push']('');_0x26d0cd[_0x2d70ed(0x132)](_0x1737e2=>{const _0x5705dc=_0x2d70ed,_0x5d43d1={'BQbeL':function(_0x4f7ec1,_0x45840e){const _0x4ae526=a31_0x56fd;return _0x2dd569[_0x4ae526(0x120)](_0x4f7ec1,_0x45840e);},'IJEkt':_0x2dd569[_0x5705dc(0x136)]};_0x39e06f[_0x5705dc(0x132)](_0xd0fe26=>{const _0x281134=_0x5705dc;let _0x5666db=_0x5d43d1[_0x281134(0x157)](helper[_0x281134(0x160)](_0xd0fe26,'_'),'_'+Date['now']());_0x1737e2&&(_0x5666db+='_'+_0x1737e2);if(_0x1737e2&&(!_0x5ee0d4[_0x5d43d1[_0x281134(0x118)]]||!_0x5ee0d4[_0x5d43d1[_0x281134(0x118)]][_0x1737e2]))return;const _0x4ced97={..._0x4c5590};_0x4ced97[_0x281134(0x127)]=_0xd0fe26;const _0x38c45d=_0x4ced97;_0x3495d5[_0x5666db]=_0x1737e2?helper[_0x281134(0x165)](_0x5ee0d4[_0x5d43d1[_0x281134(0x118)]][_0x1737e2],_0x38c45d):_0x38c45d,_0x1b7b92[_0x281134(0x164)](_0x5666db);});});!_0x3005cd['test_settings']&&(_0x3005cd[_0x2d70ed(0x11a)]={});_0x3005cd[_0x2d70ed(0x11a)]={..._0x3005cd[_0x2d70ed(0x11a)],..._0x3495d5};const _0xdc907a=path['join'](__dirname,_0x2dd569[_0x2d70ed(0x13f)]);fs[_0x2d70ed(0x150)](_0xdc907a,JSON[_0x2d70ed(0x12b)](_0x3005cd)),_0x2dd569[_0x2d70ed(0x143)](removeExistingEnvs,_0x3f166f);const _0x437060=_0x2dd569['YcdJQ'](spawn,/^win/['test'](process['platform'])?_0x2dd569[_0x2d70ed(0x161)]:_0x2dd569['XPMQs'],[_0x2dd569[_0x2d70ed(0x147)],_0xdc907a,..._0x3f166f[_0x2d70ed(0x162)](0x1),_0x2dd569['NnVnB'],_0x1b7b92[_0x2d70ed(0x131)](',')],{'stdio':_0x2dd569[_0x2d70ed(0x14b)]});_0x437060['on'](_0x2dd569[_0x2d70ed(0x154)],async _0x3cc95c=>{const _0x43d920=_0x2d70ed;logger[_0x43d920(0x125)](_0x43d920(0x152)+_0x3cc95c),logger[_0x43d920(0x13e)](_0x43d920(0x140)+_0xdc907a),fs[_0x43d920(0x12c)](_0xdc907a);});}module[a31_0xbbfe06(0x13a)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a32_0x54eeb9=a32_0x4453;(function(_0xcfa5c6,_0xeb3813){const _0x3fabdd=a32_0x4453,_0x434e92=_0xcfa5c6();while(!![]){try{const _0x434035=parseInt(_0x3fabdd(0xe6))/0x1+-parseInt(_0x3fabdd(0x137))/0x2+parseInt(_0x3fabdd(0x123))/0x3+parseInt(_0x3fabdd(0xfe))/0x4+-parseInt(_0x3fabdd(0xef))/0x5+parseInt(_0x3fabdd(0x115))/0x6+parseInt(_0x3fabdd(0xf0))/0x7;if(_0x434035===_0xeb3813)break;else _0x434e92['push'](_0x434e92['shift']());}catch(_0x318bf7){_0x434e92['push'](_0x434e92['shift']());}}}(a32_0x38d1,0x35f16));function a32_0x4453(_0x38df3,_0x36a4bc){const _0x38d180=a32_0x38d1();return a32_0x4453=function(_0x445392,_0x34f8b3){_0x445392=_0x445392-0xda;let _0x41a342=_0x38d180[_0x445392];return _0x41a342;},a32_0x4453(_0x38df3,_0x36a4bc);}const util=require('util'),logger=require(a32_0x54eeb9(0x141))[a32_0x54eeb9(0xf9)],{isAccessibilityAutomationSession}=require(a32_0x54eeb9(0xe5)),{isUndefined}=require(a32_0x54eeb9(0x13e)),scripts=require(a32_0x54eeb9(0x108));function a32_0x38d1(){const _0x3d692f=['30324mrcQRF','includeIssueType','kFEjI','PofKz','chrome','performScan','executeScript','executeAsyncScript','IzyoN','playwright-chromium','naXwz','browserstack.accessibility','platformValidation','wcagVersion','wkUVv','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','name','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','TFyII','207942bKmJeU','stringify','BZvDB','IuNHF','getAccessibilityResultsSummary','accessibilityOptions','wsEndpoint','../../helpers/helper','veHUr','BS_A11Y_JWT','../../helpers/logger','accessibilityPlatform','YnUGh','eSoyo','(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','HAUeX','ijKcy','(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','jJdFw','accessibilityOptions.scannerVersion','bsatC','uyhHv','../../helpers/accessibility-automation/helper','8879fWXcXL','KVqLp','JBukr','browserName','zwCDp','evaluate','env','TptGD','Playwright','1825375aXNCSf','1480703iVIaUe','bestPractice','warn','accessibilityOptions.includeIssueType.needsReview','accessibilityOptions.wcagVersion','replace','debug','bstackSdkArgs','No\x20summaryResults\x20found.','winstonLogger','method','scannerVersion','fSypx','ibHZl','1680392boBHaR','tWgeO','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','error','WebDriver','use','needsReview','format','BYFgC','cDjsN','../../helpers/accessibility-automation/scripts','IIoGs','browserStackEvaluate','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','HkYhf','setAccessibilityCapabilities','latest','testInfo','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','dAcLW','LyBQb','HMsFK','236292rIjaWf','constructor','No\x20accessibility\x20results\x20were\x20found.','deviceName','sSyUz','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','wKaoh','GWBcL','FOiYE','browserStackExecuteDriver','kOpib','CAiPp','accessibilityOptions.authToken'];a32_0x38d1=function(){return _0x3d692f;};return a32_0x38d1();}exports['browserStackEvaluate']=async(_0x574474,_0x156c49,_0x3168e5={})=>{const _0x534c3f=a32_0x54eeb9,_0x4aeccb={};_0x4aeccb[_0x534c3f(0xe7)]=_0x534c3f(0xf7);const _0x15c078=_0x4aeccb;return await _0x574474[_0x534c3f(0xeb)](_0x534c3f(0xdc)+_0x156c49[_0x534c3f(0xf5)](/arguments/g,_0x15c078['KVqLp'])+_0x534c3f(0x134)+JSON[_0x534c3f(0x138)](_0x3168e5)+')');},exports[a32_0x54eeb9(0x11f)]=async(_0x54b795,_0x46a437,_0x547b52={})=>{const _0xbf3570=a32_0x54eeb9,_0x6b47d3={};_0x6b47d3[_0xbf3570(0x12d)]=function(_0x4ff88d,_0x15b4ac){return _0x4ff88d===_0x15b4ac;},_0x6b47d3[_0xbf3570(0x13f)]=_0xbf3570(0x102),_0x6b47d3[_0xbf3570(0xed)]=_0xbf3570(0xee),_0x6b47d3[_0xbf3570(0xff)]=_0xbf3570(0xf7);const _0x36a72a=_0x6b47d3;if(_0x36a72a['naXwz'](_0x54b795[_0xbf3570(0x116)][_0xbf3570(0x133)],_0x36a72a['veHUr']))return await _0x54b795[_0xbf3570(0x12a)](_0x46a437,_0x547b52);else{if(_0x36a72a[_0xbf3570(0x12d)](_0x54b795[_0xbf3570(0x116)][_0xbf3570(0x133)],_0x36a72a[_0xbf3570(0xed)]))return await _0x54b795[_0xbf3570(0x129)](_0xbf3570(0xdf)+_0x46a437[_0xbf3570(0xf5)](/arguments/g,_0x36a72a[_0xbf3570(0xff)])+_0xbf3570(0x11a)+JSON[_0xbf3570(0x138)](_0x547b52)+')');}},exports[a32_0x54eeb9(0x10e)]=async _0x2be581=>{const _0x24dd7c=a32_0x54eeb9,_0x5127eb={};_0x5127eb[_0x24dd7c(0x11c)]=_0x24dd7c(0xf4),_0x5127eb[_0x24dd7c(0x11d)]='accessibilityOptions.scannerProcessingTimeout',_0x5127eb['TFyII']='accessibilityOptions.includeIssueType.bestPractice',_0x5127eb[_0x24dd7c(0xda)]=_0x24dd7c(0xf3),_0x5127eb['wkUVv']=_0x24dd7c(0x122),_0x5127eb[_0x24dd7c(0x114)]=_0x24dd7c(0xe2);const _0x248348=_0x5127eb;_0x2be581[_0x24dd7c(0x13c)]&&(_0x2be581[_0x24dd7c(0x13c)][_0x24dd7c(0x130)]&&(_0x2be581[_0x248348[_0x24dd7c(0x11c)]]=_0x2be581[_0x24dd7c(0x13c)][_0x24dd7c(0x130)]),_0x2be581[_0x24dd7c(0x13c)]['scannerProcessingTimeout']&&(_0x2be581[_0x248348[_0x24dd7c(0x11d)]]=_0x2be581[_0x24dd7c(0x13c)]['scannerProcessingTimeout']),_0x2be581[_0x24dd7c(0x13c)]['includeIssueType']&&(_0x2be581[_0x248348[_0x24dd7c(0x136)]]=_0x2be581['accessibilityOptions'][_0x24dd7c(0x124)][_0x24dd7c(0xf1)],_0x2be581[_0x248348['YnUGh']]=_0x2be581['accessibilityOptions'][_0x24dd7c(0x124)][_0x24dd7c(0x104)]));const _0x178013=JSON['parse'](process[_0x24dd7c(0xec)][_0x24dd7c(0x111)])[_0x24dd7c(0xfb)];_0x2be581[_0x248348[_0x24dd7c(0x131)]]=process[_0x24dd7c(0xec)][_0x24dd7c(0x140)],_0x2be581[_0x248348['HMsFK']]=_0x178013,delete _0x2be581[_0x24dd7c(0x13c)];},exports['getAccessibilityResults']=async _0x325535=>{const _0x48783b=a32_0x54eeb9,_0x2224c3={};_0x2224c3[_0x48783b(0x107)]=_0x48783b(0x117),_0x2224c3[_0x48783b(0x10d)]=_0x48783b(0x11b);const _0x586c96=_0x2224c3;if(global[_0x48783b(0x142)])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x325535,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x325535,scripts.getResults);return res;}catch{return logger[_0x48783b(0x101)](_0x586c96[_0x48783b(0x107)]),[];}else return logger[_0x48783b(0xf2)](_0x586c96[_0x48783b(0x10d)]),[];},exports[a32_0x54eeb9(0x128)]=async(_0x32bf40,_0x4b2de2='')=>{const _0x2a60e2=a32_0x54eeb9;if(global[_0x2a60e2(0x142)]){const _0x1a9b47={};return _0x1a9b47[_0x2a60e2(0xfa)]=_0x4b2de2,await exports[_0x2a60e2(0x10a)](_0x32bf40,scripts[_0x2a60e2(0x128)],_0x1a9b47);}},exports[a32_0x54eeb9(0x13b)]=async _0x7cf0e1=>{const _0x3c7fb8=a32_0x54eeb9,_0x4fead7={};_0x4fead7[_0x3c7fb8(0x12b)]=_0x3c7fb8(0xf8),_0x4fead7['uyhHv']=_0x3c7fb8(0x132);const _0x3ee89d=_0x4fead7;if(global[_0x3c7fb8(0x142)])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x7cf0e1,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x7cf0e1,scripts.getResultsSummary);return summaryResults;}catch{return logger['debug'](_0x3ee89d[_0x3c7fb8(0x12b)]),{};}else return logger[_0x3c7fb8(0xf2)](_0x3ee89d[_0x3c7fb8(0xe4)]),{};},exports[a32_0x54eeb9(0x12f)]=async _0x230727=>{const _0x21232c=a32_0x54eeb9,_0x552d76={'sSyUz':function(_0x156780,_0x5407f2){return _0x156780!==_0x5407f2;},'jJdFw':_0x21232c(0x100),'FOiYE':function(_0x8b4b63,_0xd75162){return _0x8b4b63===_0xd75162;},'BZvDB':'chrome','IuNHF':_0x21232c(0x12c),'eSoyo':_0x21232c(0x10c),'CAiPp':function(_0x502af3,_0x2a55bd){return _0x502af3(_0x2a55bd);},'HAUeX':_0x21232c(0x10f),'kFEjI':function(_0x2d06fc,_0x217a18){return _0x2d06fc>_0x217a18;},'QNMRw':_0x21232c(0x10b)};try{if(!_0x552d76[_0x21232c(0x119)](_0x230727[_0x21232c(0x118)],''))return logger['warn'](_0x552d76[_0x21232c(0xe1)]),![];const _0x2f79e9=_0x230727[_0x21232c(0xe0)];if(!(_0x552d76['FOiYE'](_0x2f79e9,_0x552d76[_0x21232c(0x139)])||_0x552d76[_0x21232c(0x11e)](_0x2f79e9,_0x552d76[_0x21232c(0x13a)])))return logger['warn'](_0x552d76[_0x21232c(0xdb)]),![];const _0x23a574=_0x552d76[_0x21232c(0x121)](parseInt,_0x230727['browser_version']);if(!(_0x552d76[_0x21232c(0x11e)](_0x23a574,_0x552d76[_0x21232c(0xdd)])||_0x552d76[_0x21232c(0x125)](_0x23a574,0x5e)))return logger[_0x21232c(0xf2)](_0x552d76['QNMRw']),![];}catch(_0x33791d){logger[_0x21232c(0xf6)](_0x21232c(0x135)+util['format'](_0x33791d));}return!![];},exports['processAccessibilityCaps']=(_0x289d42,_0x1b22a3,_0x19c71b)=>{const _0x585369=a32_0x54eeb9,_0x50d5af={'IIoGs':function(_0x4238d7){return _0x4238d7();},'kOpib':_0x585369(0x12e),'LyBQb':function(_0x273fde,_0x3b43b5){return _0x273fde===_0x3b43b5;},'JBukr':_0x585369(0x127),'BYFgC':_0x585369(0x12c),'bsatC':_0x585369(0x10c),'eayfW':function(_0x19403b,_0x1ac16f){return _0x19403b===_0x1ac16f;},'fSypx':_0x585369(0x10f),'PofKz':function(_0x55ffa0,_0xd19e59){return _0x55ffa0>_0xd19e59;},'ijKcy':_0x585369(0x10b),'dAcLW':function(_0x323d11,_0x1dcfe0){return _0x323d11(_0x1dcfe0);},'ibHZl':_0x585369(0x100),'zwCDp':function(_0x1e206,_0x1de5c3){return _0x1e206+_0x1de5c3;}};try{if(_0x50d5af[_0x585369(0x109)](isAccessibilityAutomationSession)){global[_0x585369(0x142)]=!![];!_0x289d42[_0x50d5af['kOpib']]&&(global['accessibilityPlatform']=![]);!(_0x50d5af[_0x585369(0x113)](_0x289d42[_0x585369(0xe9)],_0x50d5af[_0x585369(0xe8)])||_0x50d5af[_0x585369(0x113)](_0x289d42[_0x585369(0xe9)],_0x50d5af[_0x585369(0x106)]))&&(logger['warn'](_0x50d5af[_0x585369(0xe3)]),global[_0x585369(0x142)]=![]);!(_0x50d5af['eayfW'](_0x289d42['browser_version'],_0x50d5af[_0x585369(0xfc)])||_0x50d5af[_0x585369(0x126)](_0x289d42['browser_version'],0x5e))&&(logger[_0x585369(0xf2)](_0x50d5af[_0x585369(0xde)]),global[_0x585369(0x142)]=![]);!_0x50d5af[_0x585369(0x112)](isUndefined,_0x289d42['deviceName'])&&(logger['warn'](_0x50d5af[_0x585369(0xfd)]),global[_0x585369(0x142)]=![]);if(!global['accessibilityPlatform']){_0x289d42[_0x50d5af[_0x585369(0x120)]]=![];const _0x5145ff=_0x50d5af[_0x585369(0xea)](_0x1b22a3,_0x50d5af[_0x585369(0x112)](encodeURIComponent,JSON[_0x585369(0x138)](_0x289d42)));_0x19c71b&&(_0x19c71b['currentTest'][_0x585369(0x110)]['project'][_0x585369(0x103)]['connectOptions'][_0x585369(0x13d)]=_0x5145ff);}}}catch(_0x2440d){logger['debug']('Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20'+util[_0x585369(0x105)](_0x2440d));}};
|
|
1
|
+
const a32_0x29e220=a32_0x2b3a;(function(_0x46f1e0,_0x3cc5ae){const _0x347586=a32_0x2b3a,_0x37bb8f=_0x46f1e0();while(!![]){try{const _0x560325=-parseInt(_0x347586(0x254))/0x1*(-parseInt(_0x347586(0x24c))/0x2)+-parseInt(_0x347586(0x227))/0x3*(-parseInt(_0x347586(0x241))/0x4)+-parseInt(_0x347586(0x231))/0x5*(parseInt(_0x347586(0x212))/0x6)+parseInt(_0x347586(0x203))/0x7+parseInt(_0x347586(0x215))/0x8+parseInt(_0x347586(0x245))/0x9*(parseInt(_0x347586(0x24e))/0xa)+-parseInt(_0x347586(0x204))/0xb*(parseInt(_0x347586(0x206))/0xc);if(_0x560325===_0x3cc5ae)break;else _0x37bb8f['push'](_0x37bb8f['shift']());}catch(_0x1db0c3){_0x37bb8f['push'](_0x37bb8f['shift']());}}}(a32_0x2e8b,0x44921));const util=require(a32_0x29e220(0x23d)),logger=require('../../helpers/logger')[a32_0x29e220(0x23c)],{isAccessibilityAutomationSession}=require(a32_0x29e220(0x219)),{isUndefined}=require(a32_0x29e220(0x220)),scripts=require(a32_0x29e220(0x230));exports[a32_0x29e220(0x253)]=async(_0x3df65b,_0x1c0216,_0xeae3ae={})=>{const _0x3694f0=a32_0x29e220,_0x57f384={};_0x57f384[_0x3694f0(0x23b)]='bstackSdkArgs';const _0xd662b0=_0x57f384;return await _0x3df65b['evaluate'](_0x3694f0(0x209)+_0x1c0216[_0x3694f0(0x237)](/arguments/g,_0xd662b0['FrDbl'])+'\x0a\x20\x20\x20\x20})\x0a\x20\x20})('+JSON['stringify'](_0xeae3ae)+')');},exports[a32_0x29e220(0x202)]=async(_0x42b4f3,_0x35da62,_0x4d9420={})=>{const _0x3a18d=a32_0x29e220,_0x4c0d40={};_0x4c0d40[_0x3a18d(0x216)]=function(_0x4fc856,_0x2475e0){return _0x4fc856===_0x2475e0;},_0x4c0d40[_0x3a18d(0x22c)]='WebDriver',_0x4c0d40[_0x3a18d(0x223)]=function(_0x4641a9,_0x33b571){return _0x4641a9===_0x33b571;},_0x4c0d40[_0x3a18d(0x224)]=_0x3a18d(0x21d),_0x4c0d40[_0x3a18d(0x20c)]='bstackSdkArgs';const _0x3df035=_0x4c0d40;if(_0x3df035[_0x3a18d(0x216)](_0x42b4f3[_0x3a18d(0x21b)][_0x3a18d(0x235)],_0x3df035['FkROG']))return await _0x42b4f3['executeAsyncScript'](_0x35da62,_0x4d9420);else{if(_0x3df035[_0x3a18d(0x223)](_0x42b4f3['constructor'][_0x3a18d(0x235)],_0x3df035['mGdfF']))return await _0x42b4f3[_0x3a18d(0x1fb)](_0x3a18d(0x24f)+_0x35da62[_0x3a18d(0x237)](/arguments/g,_0x3df035[_0x3a18d(0x20c)])+_0x3a18d(0x249)+JSON[_0x3a18d(0x225)](_0x4d9420)+')');}},exports[a32_0x29e220(0x232)]=async _0x183fda=>{const _0x3f93e6=a32_0x29e220,_0x26b1a0={};_0x26b1a0['yaAmd']='accessibilityOptions.wcagVersion',_0x26b1a0[_0x3f93e6(0x24b)]=_0x3f93e6(0x233),_0x26b1a0[_0x3f93e6(0x23a)]=_0x3f93e6(0x234),_0x26b1a0[_0x3f93e6(0x20f)]='accessibilityOptions.includeIssueType.needsReview',_0x26b1a0['HxIbD']=_0x3f93e6(0x20b),_0x26b1a0['vMcTf']=_0x3f93e6(0x217);const _0x44a217=_0x26b1a0;_0x183fda[_0x3f93e6(0x1f4)]&&(_0x183fda[_0x3f93e6(0x1f4)]['wcagVersion']&&(_0x183fda[_0x44a217[_0x3f93e6(0x23e)]]=_0x183fda[_0x3f93e6(0x1f4)]['wcagVersion']),_0x183fda[_0x3f93e6(0x1f4)][_0x3f93e6(0x20e)]&&(_0x183fda[_0x44a217[_0x3f93e6(0x24b)]]=_0x183fda[_0x3f93e6(0x1f4)]['scannerProcessingTimeout']),_0x183fda[_0x3f93e6(0x1f4)][_0x3f93e6(0x1f0)]&&(_0x183fda[_0x44a217[_0x3f93e6(0x23a)]]=_0x183fda[_0x3f93e6(0x1f4)][_0x3f93e6(0x1f0)][_0x3f93e6(0x1fe)],_0x183fda[_0x44a217[_0x3f93e6(0x20f)]]=_0x183fda['accessibilityOptions'][_0x3f93e6(0x1f0)]['needsReview']));const _0x49cfd9=JSON[_0x3f93e6(0x205)](process['env'][_0x3f93e6(0x222)])[_0x3f93e6(0x229)];_0x183fda[_0x44a217[_0x3f93e6(0x221)]]=process[_0x3f93e6(0x25a)][_0x3f93e6(0x1f9)],_0x183fda[_0x44a217[_0x3f93e6(0x23f)]]=_0x49cfd9,delete _0x183fda['accessibilityOptions'];},exports[a32_0x29e220(0x21f)]=async _0x3338a1=>{const _0x4b7e03=a32_0x29e220,_0x47bba9={};_0x47bba9[_0x4b7e03(0x22d)]=_0x4b7e03(0x1f6),_0x47bba9[_0x4b7e03(0x201)]=_0x4b7e03(0x1ff);const _0x346841=_0x47bba9;if(global[_0x4b7e03(0x248)])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x3338a1,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x3338a1,scripts.getResults);return res;}catch{return logger[_0x4b7e03(0x21c)](_0x346841[_0x4b7e03(0x22d)]),[];}else return logger[_0x4b7e03(0x259)](_0x346841[_0x4b7e03(0x201)]),[];},exports[a32_0x29e220(0x200)]=async(_0x34087a,_0x10e70b='')=>{const _0x5c6d66=a32_0x29e220;if(global[_0x5c6d66(0x248)]){const _0x5f453c={};return _0x5f453c[_0x5c6d66(0x240)]=_0x10e70b,await exports[_0x5c6d66(0x253)](_0x34087a,scripts[_0x5c6d66(0x200)],_0x5f453c);}},exports[a32_0x29e220(0x218)]=async _0x36ec58=>{const _0xbe9470=a32_0x29e220,_0x447489={};_0x447489[_0xbe9470(0x1f2)]=_0xbe9470(0x213),_0x447489[_0xbe9470(0x255)]=_0xbe9470(0x22a);const _0x74fdc9=_0x447489;if(global[_0xbe9470(0x248)])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x36ec58,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x36ec58,scripts.getResultsSummary);return summaryResults;}catch{return logger[_0xbe9470(0x242)](_0x74fdc9[_0xbe9470(0x1f2)]),{};}else return logger[_0xbe9470(0x259)](_0x74fdc9[_0xbe9470(0x255)]),{};},exports[a32_0x29e220(0x214)]=async _0x4ea4db=>{const _0x5d8085=a32_0x29e220,_0x345abc={'sMPEB':function(_0x30ec63,_0x366718){return _0x30ec63!==_0x366718;},'onDvV':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','rokON':function(_0x429bfd,_0x4eb831){return _0x429bfd===_0x4eb831;},'VkSYi':_0x5d8085(0x250),'LJfEp':'playwright-chromium','QAVfj':_0x5d8085(0x251),'gkgDz':function(_0xe2a3a,_0x1dc325){return _0xe2a3a(_0x1dc325);},'bVNEH':_0x5d8085(0x239),'UDKpd':function(_0x52890b,_0x201d12){return _0x52890b>_0x201d12;},'DVOJN':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.'};try{if(!_0x345abc[_0x5d8085(0x207)](_0x4ea4db['deviceName'],''))return logger[_0x5d8085(0x259)](_0x345abc[_0x5d8085(0x1f8)]),![];const _0xf8142f=_0x4ea4db['browser'];if(!(_0x345abc[_0x5d8085(0x1ee)](_0xf8142f,_0x345abc[_0x5d8085(0x1f1)])||_0x345abc['rokON'](_0xf8142f,_0x345abc[_0x5d8085(0x208)])))return logger[_0x5d8085(0x259)](_0x345abc[_0x5d8085(0x228)]),![];const _0x3b0809=_0x345abc[_0x5d8085(0x246)](parseInt,_0x4ea4db[_0x5d8085(0x258)]);if(!(_0x345abc[_0x5d8085(0x1ee)](_0x3b0809,_0x345abc[_0x5d8085(0x21e)])||_0x345abc['UDKpd'](_0x3b0809,0x5e)))return logger[_0x5d8085(0x259)](_0x345abc[_0x5d8085(0x244)]),![];}catch(_0x310e7c){logger[_0x5d8085(0x242)](_0x5d8085(0x256)+util[_0x5d8085(0x24a)](_0x310e7c));}return!![];},exports[a32_0x29e220(0x1f5)]=(_0x406751,_0x506c5d,_0x57d640)=>{const _0x3a6eba=a32_0x29e220,_0x19aa4c={'xoruu':function(_0x46afe5){return _0x46afe5();},'lODXe':'browserstack.accessibility','ELYHL':function(_0x15cda6,_0x4b488e){return _0x15cda6===_0x4b488e;},'JabLJ':_0x3a6eba(0x250),'gBtGM':_0x3a6eba(0x20a),'ApjXc':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','WpmEH':function(_0xf2a156,_0xe0f527){return _0xf2a156===_0xe0f527;},'vKqwF':'latest','HxoFH':function(_0x598a80,_0x14676a){return _0x598a80>_0x14676a;},'BByDa':_0x3a6eba(0x1fa),'CFPNn':function(_0x40a439,_0x47bcb1){return _0x40a439(_0x47bcb1);},'PySMB':_0x3a6eba(0x211),'uMvgY':function(_0x1bcefc,_0x32f1b6){return _0x1bcefc+_0x32f1b6;},'QpmDS':function(_0xf8792,_0x411795){return _0xf8792(_0x411795);}};try{if(_0x19aa4c['xoruu'](isAccessibilityAutomationSession)){global[_0x3a6eba(0x248)]=!![];!_0x406751[_0x19aa4c[_0x3a6eba(0x226)]]&&(global[_0x3a6eba(0x248)]=![]);!(_0x19aa4c[_0x3a6eba(0x22e)](_0x406751['browserName'],_0x19aa4c[_0x3a6eba(0x236)])||_0x19aa4c[_0x3a6eba(0x22e)](_0x406751[_0x3a6eba(0x1ef)],_0x19aa4c[_0x3a6eba(0x252)]))&&(logger[_0x3a6eba(0x259)](_0x19aa4c[_0x3a6eba(0x21a)]),global[_0x3a6eba(0x248)]=![]);!(_0x19aa4c[_0x3a6eba(0x238)](_0x406751[_0x3a6eba(0x258)],_0x19aa4c['vKqwF'])||_0x19aa4c[_0x3a6eba(0x243)](_0x406751[_0x3a6eba(0x258)],0x5e))&&(logger[_0x3a6eba(0x259)](_0x19aa4c[_0x3a6eba(0x247)]),global[_0x3a6eba(0x248)]=![]);!_0x19aa4c[_0x3a6eba(0x257)](isUndefined,_0x406751[_0x3a6eba(0x210)])&&(logger[_0x3a6eba(0x259)](_0x19aa4c[_0x3a6eba(0x22f)]),global['accessibilityPlatform']=![]);if(!global['accessibilityPlatform']){_0x406751[_0x19aa4c['lODXe']]=![];const _0x394c19=_0x19aa4c[_0x3a6eba(0x22b)](_0x506c5d,_0x19aa4c[_0x3a6eba(0x1fc)](encodeURIComponent,JSON[_0x3a6eba(0x225)](_0x406751)));_0x57d640&&(_0x57d640['currentTest'][_0x3a6eba(0x1f7)][_0x3a6eba(0x1f3)][_0x3a6eba(0x20d)][_0x3a6eba(0x24d)][_0x3a6eba(0x1fd)]=_0x394c19);}}}catch(_0x575749){logger[_0x3a6eba(0x242)]('Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20'+util[_0x3a6eba(0x24a)](_0x575749));}};function a32_0x2b3a(_0x1db48c,_0x1e39ae){const _0x2e8b97=a32_0x2e8b();return a32_0x2b3a=function(_0x2b3a85,_0x4f06c1){_0x2b3a85=_0x2b3a85-0x1ee;let _0x44e645=_0x2e8b97[_0x2b3a85];return _0x44e645;},a32_0x2b3a(_0x1db48c,_0x1e39ae);}function a32_0x2e8b(){const _0x19f8a3=['accessibilityOptions.includeIssueType.bestPractice','name','JabLJ','replace','WpmEH','latest','iXDWl','FrDbl','winstonLogger','util','yaAmd','vMcTf','method','1488044ocUJvH','debug','HxoFH','DVOJN','75303kflktF','gkgDz','BByDa','accessibilityPlatform','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','format','dpcSN','2TMQZvG','connectOptions','100GOGchG','(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','chrome','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','gBtGM','browserStackEvaluate','1133kQVCec','GePKm','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','CFPNn','browser_version','warn','env','rokON','browserName','includeIssueType','VkSYi','xUvjW','project','accessibilityOptions','processAccessibilityCaps','No\x20accessibility\x20results\x20were\x20found.','testInfo','onDvV','BS_A11Y_JWT','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','executeScript','QpmDS','wsEndpoint','bestPractice','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','performScan','EEkYp','browserStackExecuteDriver','2215185RJZfIH','19921tTNYib','parse','1884kYdQDS','sMPEB','LJfEp','(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','playwright-chromium','accessibilityOptions.authToken','oyrAW','use','scannerProcessingTimeout','NViGl','deviceName','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','222btzWbo','No\x20summaryResults\x20found.','platformValidation','582320BledFm','CgCqw','accessibilityOptions.scannerVersion','getAccessibilityResultsSummary','../../helpers/accessibility-automation/helper','ApjXc','constructor','error','Playwright','bVNEH','getAccessibilityResults','../../helpers/helper','HxIbD','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','yLCXd','mGdfF','stringify','lODXe','3drECFg','QAVfj','scannerVersion','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','uMvgY','FkROG','KZIhQ','ELYHL','PySMB','../../helpers/accessibility-automation/scripts','37955ZXxFfI','setAccessibilityCapabilities','accessibilityOptions.scannerProcessingTimeout'];a32_0x2e8b=function(){return _0x19f8a3;};return a32_0x2e8b();}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a33_0x4fe9d7=a33_0x3161;(function(_0x38d02f,_0x45f40c){const _0xb6d611=a33_0x3161,_0x564299=_0x38d02f();while(!![]){try{const _0x4cf48c=parseInt(_0xb6d611(0x267))/0x1*(parseInt(_0xb6d611(0x272))/0x2)+parseInt(_0xb6d611(0x258))/0x3+parseInt(_0xb6d611(0x1f1))/0x4+parseInt(_0xb6d611(0x226))/0x5*(parseInt(_0xb6d611(0x248))/0x6)+-parseInt(_0xb6d611(0x254))/0x7*(parseInt(_0xb6d611(0x209))/0x8)+-parseInt(_0xb6d611(0x243))/0x9*(parseInt(_0xb6d611(0x1bb))/0xa)+parseInt(_0xb6d611(0x1f9))/0xb*(-parseInt(_0xb6d611(0x233))/0xc);if(_0x4cf48c===_0x45f40c)break;else _0x564299['push'](_0x564299['shift']());}catch(_0x1ac18f){_0x564299['push'](_0x564299['shift']());}}}(a33_0x3e49,0x46432));const fs=require('fs'),path=require(a33_0x4fe9d7(0x217)),os=require('os'),{spawn}=require(a33_0x4fe9d7(0x224)),{format}=require('util'),logger=require('../../helpers/logger')['winstonLogger'],{default:BrowserStackSetup}=require(a33_0x4fe9d7(0x27d)),helper=require(a33_0x4fe9d7(0x22c)),constants=require('../utils/constants'),{FRAMEWORKS}=require(a33_0x4fe9d7(0x25e)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require(a33_0x4fe9d7(0x1c5)),{CrashReporter,o11yErrorHandler}=require(a33_0x4fe9d7(0x1c7)),{getFrameworkVersion}=require('../../helpers/test-observability/utils'),{createAccessibilityTestRun,stopAccessibilityTestRun,checkAccessibilityPlatformConfig}=require(a33_0x4fe9d7(0x26d)),{setAccessibilityCapabilities}=require(a33_0x4fe9d7(0x200)),SessionHandler=require(a33_0x4fe9d7(0x1d7)),TestHubHandler=require('../../helpers/testhub/testhubHandler'),testHubConstants=require(a33_0x4fe9d7(0x1c9)),{shouldProcessEventForTesthub}=require(a33_0x4fe9d7(0x1b6));function a33_0x3161(_0x6dc80b,_0xdc6a56){const _0x3e49d1=a33_0x3e49();return a33_0x3161=function(_0x31614f,_0x2b9196){_0x31614f=_0x31614f-0x1b4;let _0x38d50d=_0x3e49d1[_0x31614f];return _0x38d50d;},a33_0x3161(_0x6dc80b,_0xdc6a56);}async function requireOrImportDefaultObject(_0x3e15f7){const _0x284a5a=a33_0x4fe9d7,_0xb53f62={'oMwHi':function(_0x325311){return _0x325311();},'ROZGR':function(_0x2bcd5c,_0x4e6f0f){return _0x2bcd5c(_0x4e6f0f);},'LRblU':function(_0x5e12a0,_0x48da8c){return _0x5e12a0===_0x48da8c;},'wOtRL':_0x284a5a(0x1e2),'vqqRl':function(_0x1b9e92,_0x44a5de){return _0x1b9e92 in _0x44a5de;},'pDMKm':_0x284a5a(0x23f)},{requireOrImport:_0x12df12}=helper['requirePWModule'][_0x284a5a(0x1f0)](null,_0xb53f62[_0x284a5a(0x22d)](getTransformPath));let _0x46bd23=await _0xb53f62[_0x284a5a(0x220)](_0x12df12,_0x3e15f7);return _0x46bd23&&_0xb53f62['LRblU'](typeof _0x46bd23,_0xb53f62[_0x284a5a(0x274)])&&_0xb53f62[_0x284a5a(0x1c2)](_0xb53f62[_0x284a5a(0x237)],_0x46bd23)&&(_0x46bd23=_0x46bd23[_0xb53f62[_0x284a5a(0x237)]]),_0x46bd23;}const getUserPlaywrightConfig=async(_0x4f279d,_0xdcf465)=>{const _0x1f8ddb=a33_0x4fe9d7,_0xe6d62e={'EXFZd':function(_0x39ec5){return _0x39ec5();},'fuhPe':function(_0x583a23,_0x231c7f){return _0x583a23(_0x231c7f);},'ModFx':function(_0x451298,_0x4af594){return _0x451298(_0x4af594);},'ThvJA':'resolvedConfigFile','izsFS':function(_0x3445a6,_0x44f966){return _0x3445a6(_0x44f966);},'ARZRv':function(_0x1a0729,_0x4d6ae6){return _0x1a0729+_0x4d6ae6;},'JnkYF':_0x1f8ddb(0x27b),'LOJbn':'Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','WiYbX':'--config='},_0x16dd02=!helper['isUndefined'](_0x4f279d['config']),_0x17f344=_0x16dd02?path[_0x1f8ddb(0x24c)](process[_0x1f8ddb(0x216)](),_0x4f279d['config']):process[_0x1f8ddb(0x216)](),{resolveConfigFile:_0x152690,resolveConfigLocation:_0x3fec64}=helper[_0x1f8ddb(0x22a)]['apply'](null,_0xe6d62e['EXFZd'](getConfigLoaderPath)),_0x319b84=_0x152690?_0xe6d62e[_0x1f8ddb(0x227)](_0x152690,_0x17f344):helper[_0x1f8ddb(0x26e)](_0xe6d62e[_0x1f8ddb(0x222)](_0x3fec64,_0x17f344),[_0xe6d62e[_0x1f8ddb(0x25b)]]);let _0x926402={};if(_0x319b84){logger['info'](_0x1f8ddb(0x228)+_0x319b84);try{_0x926402=await _0xe6d62e[_0x1f8ddb(0x1e0)](requireOrImportDefaultObject,_0x319b84);}catch(_0x556898){return logger[_0x1f8ddb(0x1fe)](_0xe6d62e[_0x1f8ddb(0x265)](_0xe6d62e['JnkYF'],_0xe6d62e[_0x1f8ddb(0x227)](format,_0x556898))),null;}}else logger[_0x1f8ddb(0x259)](_0xe6d62e[_0x1f8ddb(0x1c0)]);if(_0x16dd02){const _0x29c865=_0xdcf465[_0x1f8ddb(0x20b)](_0x536759=>_0x536759===_0x1f8ddb(0x245)||_0x536759==='-c'||_0x536759[_0x1f8ddb(0x253)](_0x1f8ddb(0x25f)));_0xdcf465['splice'](_0x29c865,_0xdcf465[_0x29c865][_0x1f8ddb(0x253)](_0xe6d62e[_0x1f8ddb(0x26b)])?0x1:0x2);}const _0x5265ab={};return _0x5265ab['path']=_0x319b84,_0x5265ab[_0x1f8ddb(0x1e3)]=_0x926402,_0x5265ab;},setGlobalSetup=(_0x2d6cff,_0x3dca56)=>{const _0x559fcf=a33_0x4fe9d7,_0x4bf8af={'vYGuU':_0x559fcf(0x23b),'BLUeo':_0x559fcf(0x230),'qVeqN':function(_0x192cce,_0x31ef78){return _0x192cce+_0x31ef78;},'uSkEC':'Error\x20in\x20running\x20user\x20global\x20setup\x20for\x20playwright','NAkES':function(_0x469a26,_0x5ae50f){return _0x469a26(_0x5ae50f);},'jXKcx':_0x559fcf(0x1bf)};if(!_0x2d6cff)return![];try{if(_0x2d6cff[_0x559fcf(0x23b)]){let _0x52c02d;const _0x25abc7=path[_0x559fcf(0x24c)](_0x3dca56,_0x2d6cff[_0x4bf8af[_0x559fcf(0x1fb)]]);if(fs['existsSync'](_0x25abc7))_0x52c02d=_0x25abc7;else{const _0x4a1a3b={};_0x4a1a3b[_0x559fcf(0x1d8)]=[_0x3dca56],_0x52c02d=require[_0x559fcf(0x24c)](_0x2d6cff[_0x4bf8af[_0x559fcf(0x1fb)]],_0x4a1a3b);}if(!_0x52c02d)throw new Error(_0x4bf8af[_0x559fcf(0x25c)]);process['env'][_0x559fcf(0x25a)]=_0x52c02d;}}catch(_0x1acdbd){logger[_0x559fcf(0x1fe)](_0x4bf8af[_0x559fcf(0x231)](_0x4bf8af[_0x559fcf(0x1da)],_0x4bf8af[_0x559fcf(0x1d2)](format,_0x1acdbd)));}return _0x2d6cff[_0x559fcf(0x23b)]=require[_0x559fcf(0x24c)](_0x4bf8af[_0x559fcf(0x1c3)]),!![];},addReporter=_0x4e5c03=>{const _0x2cb31e=a33_0x4fe9d7,_0x4a88cb={};_0x4a88cb[_0x2cb31e(0x24a)]='./reporter/reporter.js',_0x4a88cb[_0x2cb31e(0x1bd)]=_0x2cb31e(0x215),_0x4a88cb[_0x2cb31e(0x1b4)]=function(_0x5563a2,_0x54f6bb){return _0x5563a2===_0x54f6bb;},_0x4a88cb[_0x2cb31e(0x244)]=_0x2cb31e(0x1db),_0x4a88cb[_0x2cb31e(0x1b9)]='object';const _0x30bacf=_0x4a88cb,_0x4590fb=path[_0x2cb31e(0x1f4)](__dirname,_0x30bacf[_0x2cb31e(0x24a)]),_0x267ca2=[_0x4590fb];if(helper['isUndefined'](_0x4e5c03[_0x30bacf[_0x2cb31e(0x1bd)]]))_0x4e5c03[_0x30bacf[_0x2cb31e(0x1bd)]]=[_0x267ca2];else{if(_0x30bacf['jHZrP'](typeof _0x4e5c03[_0x30bacf[_0x2cb31e(0x1bd)]],_0x30bacf[_0x2cb31e(0x244)]))_0x4e5c03[_0x30bacf[_0x2cb31e(0x1bd)]]=[[_0x4e5c03[_0x30bacf[_0x2cb31e(0x1bd)]]],_0x267ca2];else _0x30bacf[_0x2cb31e(0x1b4)](typeof _0x4e5c03[_0x30bacf[_0x2cb31e(0x1bd)]],_0x30bacf[_0x2cb31e(0x1b9)])&&_0x4e5c03[_0x30bacf[_0x2cb31e(0x1bd)]][_0x2cb31e(0x1ef)](_0x267ca2);}},handleO11yRerun=_0x266389=>{const _0x12f37e=a33_0x4fe9d7,_0x346c38={};_0x346c38[_0x12f37e(0x1e6)]=function(_0x4aa7dd,_0x472b91){return _0x4aa7dd!==_0x472b91;},_0x346c38[_0x12f37e(0x275)]='null',_0x346c38[_0x12f37e(0x203)]=_0x12f37e(0x1d3);const _0x12c6d2=_0x346c38,_0x152d24=helper[_0x12f37e(0x264)](process['env'][_0x12f37e(0x1dc)]);if(_0x152d24){const _0x46c83a=process[_0x12f37e(0x249)]['BROWSERSTACK_RERUN_TESTS'],_0x2782d3=[];if(_0x12c6d2[_0x12f37e(0x1e6)](_0x46c83a,_0x12c6d2[_0x12f37e(0x275)])&&!helper[_0x12f37e(0x26c)](_0x46c83a)){_0x46c83a[_0x12f37e(0x240)](',')[_0x12f37e(0x24e)](_0x577ba0=>{const _0x3a1171=_0x12f37e;_0x2782d3[_0x3a1171(0x1ef)]('('+_0x577ba0[_0x3a1171(0x1de)]()+')');});const _0x27195c='^'+_0x2782d3[_0x12f37e(0x1f4)]('|')+'$';_0x266389[_0x12f37e(0x1ef)](_0x12c6d2[_0x12f37e(0x203)],_0x27195c);}}},spawnOriginalProcess=_0x5b222d=>{const _0xc49775=a33_0x4fe9d7,_0x1501c9={'YdFRc':function(_0x50c979,_0xbd8df4,_0xca0c16,_0x3f5be4){return _0x50c979(_0xbd8df4,_0xca0c16,_0x3f5be4);},'YDYaE':_0xc49775(0x242),'heTpg':_0xc49775(0x1fc),'OaGoG':function(_0x33a887,_0x3ebd90){return _0x33a887===_0x3ebd90;},'UIEfu':_0xc49775(0x27f),'MDifT':'inherit'};_0x1501c9[_0xc49775(0x236)](spawn,_0x1501c9[_0xc49775(0x20c)],[_0x1501c9[_0xc49775(0x1cb)],..._0x5b222d[_0xc49775(0x257)](0x1)],{'shell':_0x1501c9[_0xc49775(0x20a)](process[_0xc49775(0x1e8)],_0x1501c9['UIEfu']),'stdio':_0x1501c9['MDifT'],'cwd':process[_0xc49775(0x216)]()});},isTestCommand=(_0x26fbcb,_0x55fe8d)=>{const _0x3d144b=a33_0x4fe9d7,_0x2fb7d6={};_0x2fb7d6[_0x3d144b(0x261)]=function(_0x1d84b9,_0x413d43){return _0x1d84b9>_0x413d43;},_0x2fb7d6[_0x3d144b(0x219)]=function(_0xd11227,_0x56e3d7){return _0xd11227===_0x56e3d7;},_0x2fb7d6[_0x3d144b(0x218)]='test';const _0x466a73=_0x2fb7d6;if(_0x466a73[_0x3d144b(0x261)](_0x55fe8d[_0x3d144b(0x1ca)],0x1)&&_0x466a73['cONQw'](_0x55fe8d[0x1],_0x466a73['ayDVK']))return!![];return![];},initO11yCrashReporter=(_0x5e242b,_0x439200)=>{const _0x3764b6=a33_0x4fe9d7,_0x260a5d={'oAOzk':function(_0x4e984e,_0x5ef4d5){return _0x4e984e(_0x5ef4d5);}},_0x356d08={'frameworkName':FRAMEWORKS[_0x3764b6(0x205)],'frameworkVersion':_0x260a5d['oAOzk'](getFrameworkVersion,FRAMEWORKS[_0x3764b6(0x205)])};CrashReporter[_0x3764b6(0x260)](_0x356d08,_0x5e242b,_0x439200);},launchO11ySession=o11yErrorHandler(async function launchO11ySession(_0x1d4cb5){const _0x434097=a33_0x4fe9d7,_0x25dcd6={};_0x25dcd6[_0x434097(0x256)]=function(_0x3e24cb,_0x4a6eba){return _0x3e24cb>_0x4a6eba;},_0x25dcd6[_0x434097(0x23c)]=function(_0x3cae0c,_0xb75865){return _0x3cae0c===_0xb75865;};const _0x4d7cf0=_0x25dcd6;if(!_0x1d4cb5||_0x4d7cf0['neMym'](_0x1d4cb5[_0x434097(0x1ca)],0x1)&&_0x4d7cf0[_0x434097(0x23c)](_0x1d4cb5[0x0],null))return process[_0x434097(0x249)][_0x434097(0x241)]=![],![];return!![];});function a33_0x3e49(){const _0x930cbe=['trim','test','izsFS','LpWVp','object','config','BROWSERSTACK_SETUP_CONFIG_PATH','logLevel','Huite','lFJhU','platform','BrowserStack\x20config\x20file\x20not\x20found.','qheCF','LsNcy','zKGuc','skipSessionStatus','writeFileSync','push','apply','1462060Qmvvgm','eEVKI','clearTempPWConfig','join','existsSync','errorMessage','isFalse','foVgI','7007BEYHZr','xEjlh','vYGuU','playwright','includes','error','LgANj','./accessibility-helper','rdody','testMatch','wvjly','testIgnore','PLAYWRIGHT','Adding\x20browserstack\x20configs\x20to\x20setup\x20for\x20Observability','homedir','AjFqg','480648MGJIla','OaGoG','findIndex','YDYaE','PACKAGE_TYPE','automation','stringify','mvtKT','caxVm','OBSERVABILITY','close','filterBrowserstackConfig','reporter','cwd','path','ayDVK','cONQw','playwright-browserstack-sdk.config.js','HcRlC','_internal','assign','ucYrH','AjVTk','ROZGR','IgRcq','ModFx','false','child_process','Error\x20in\x20generating\x20parallellised\x20config\x20for\x20playwright:\x20','795735DEMZFp','fuhPe','Getting\x20your\x20playwright\x20config\x20from\x20','LzPuU','requirePWModule','exports','../../helpers/helper','oMwHi','uyrVa','\x0a\x0aconst\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0amodule.exports\x20=\x20modifyPWConfig();\x0a','Can\x27t\x20get\x20user\x20defined\x20global\x20setup\x20file','qVeqN','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','2964XejcPY','oebvZ','finalExecution','YdFRc','pDMKm','\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();','Error\x20in\x20closing\x20playwright','GvjiO','globalSetup','gxWtE','concat','--disable-test-observability','default','split','BROWSERSTACK_TEST_OBSERVABILITY','npx','1017RQJSXm','kuYSV','--config','LIpEV','accessibility','18csQkyr','env','REnJC','RZDQK','resolve','true','map','ZDOKy','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','hIcpX','project','startsWith','42VKtxKw','launchBuild','neMym','slice','923673AhBjot','info','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','ThvJA','BLUeo','.browserstack','../../helpers/test-observability/constants','--config=','initialize','EjyfU','qXWOq','pw_result.json','isTrue','ARZRv','HFQpj','53633OnDARz','kIgzl','JCIcG','HNsGc','WiYbX','isUndefined','../../helpers/accessibility-automation/helper','nestedKeyValue','BROWSERSTACK_AUTOMATION','platforms','testContextOptions','6gIRcdD','debug','wOtRL','nQQrX','testObservability','unlinkSync','JJEjf','cliConfig','browserstackSetupConfig.json','Error\x20in\x20importing\x20your\x20playwright\x20config:\x20','serializeToYamlString','../../helpers/BrowserStackSetup','readFileSync','win32','jHZrP','UtNWo','../../helpers/testhub/utils','indexOf','markSDKSetupComplete','aCHed','testDir','44790QIabsd','inherit','RWNJZ','get','./globalSetup.js','LOJbn','VFxIo','vqqRl','jXKcx','zuARs','./reporter/pwUtils','Deleting\x20','../../helpers/test-observability/error-handler','respectGitIgnore','../../helpers/testhub/constants','length','heTpg','BROWSERSTACK_TEST_ACCESSIBILITY_YML','accessibilityOptions','parse','dirname','has','playwright-browserstack-sdk.config.cjs','NAkES','--grep','--disable-browserstack-automation','EVAxv','Error\x20in\x20getting\x20funnel\x20data\x20results','../../helpers/test-observability/sessionHandler','paths','XusCK','uSkEC','string','BROWSERSTACK_RERUN','ADThw'];a33_0x3e49=function(){return _0x930cbe;};return a33_0x3e49();}async function run(_0x966a9d,_0x546e35){const _0x2658a9=a33_0x4fe9d7,_0x322374={'VFxIo':_0x2658a9(0x25d),'ZDOKy':_0x2658a9(0x263),'HNsGc':function(_0x2fdf31,_0x1f6284){return _0x2fdf31+_0x1f6284;},'JJEjf':_0x2658a9(0x1d6),'hIuvA':'7|3|1|2|6|0|5|4','caxVm':function(_0x2cbb18){return _0x2cbb18();},'RZDQK':_0x2658a9(0x239),'HFQpj':_0x2658a9(0x1d4),'rdody':_0x2658a9(0x223),'kfamh':_0x2658a9(0x23e),'EVAxv':function(_0x2b9097,_0x7175b6){return _0x2b9097>=_0x7175b6;},'WAzMe':'Error\x20in\x20deleting\x20playwright\x20results','LgANj':function(_0x470f30,_0x268270,_0x1e3bff){return _0x470f30(_0x268270,_0x1e3bff);},'qidwt':function(_0x54706d,_0x245b44){return _0x54706d(_0x245b44);},'DDxTL':_0x2658a9(0x1e9),'JCIcG':_0x2658a9(0x20e),'zKGuc':function(_0x476cf9,_0x232d2d){return _0x476cf9!=_0x232d2d;},'ADThw':function(_0x321298,_0x2ee0a2){return _0x321298(_0x2ee0a2);},'uyrVa':function(_0x5303b0,_0x4cb214,_0x9ed118){return _0x5303b0(_0x4cb214,_0x9ed118);},'AjVTk':_0x2658a9(0x206),'LzPuU':function(_0x19b824,_0x2a4990,_0x1ed0de){return _0x19b824(_0x2a4990,_0x1ed0de);},'kIgzl':function(_0x8167a3,_0x2565aa){return _0x8167a3(_0x2565aa);},'HcRlC':function(_0x344c27,_0x24aaf4){return _0x344c27===_0x24aaf4;},'lFJhU':_0x2658a9(0x24d),'ucYrH':function(_0x22d3aa,_0x127148){return _0x22d3aa(_0x127148);},'IgRcq':function(_0x531560,_0x37312d){return _0x531560(_0x37312d);},'UtNWo':function(_0x5d6a91,_0x57ea3c){return _0x5d6a91===_0x57ea3c;},'eEVKI':_0x2658a9(0x27a),'czuMZ':function(_0x3131a9){return _0x3131a9();},'GvjiO':_0x2658a9(0x1ba),'zuARs':_0x2658a9(0x202),'xEjlh':_0x2658a9(0x204),'LpWVp':function(_0x120e2a,_0x25a30a){return _0x120e2a+_0x25a30a;},'UnVFC':_0x2658a9(0x225),'mvtKT':_0x2658a9(0x1d1),'LIpEV':_0x2658a9(0x21a),'AjFqg':function(_0x448b59,_0x5c0d57){return _0x448b59>_0x5c0d57;},'FTOpA':function(_0x3825e3,_0x4cdec1){return _0x3825e3+_0x4cdec1;},'oebvZ':function(_0x5e46da,_0x34cc32,_0x5bf546,_0x56d14c){return _0x5e46da(_0x34cc32,_0x5bf546,_0x56d14c);},'XusCK':_0x2658a9(0x242),'qXWOq':_0x2658a9(0x1fc),'qheCF':_0x2658a9(0x1df),'rFXvl':_0x2658a9(0x245),'QVqaJ':function(_0x325302,_0x3dfbd7){return _0x325302===_0x3dfbd7;},'hIcpX':_0x2658a9(0x27f),'LsNcy':_0x2658a9(0x1bc),'foVgI':_0x2658a9(0x213)};!helper[_0x2658a9(0x1f7)](process['env'][_0x2658a9(0x26f)])&&(process['env'][_0x2658a9(0x26f)]=!![]);process['argv'][_0x2658a9(0x1fd)](_0x322374[_0x2658a9(0x266)])&&(process[_0x2658a9(0x249)]['BROWSERSTACK_AUTOMATION']=_0x322374[_0x2658a9(0x201)],_0x546e35=_0x546e35['filter'](_0x2c783a=>_0x2c783a!=='--disable-browserstack-automation'));const _0x307ca3=_0x546e35[_0x2658a9(0x1b7)](_0x322374['kfamh']);_0x322374[_0x2658a9(0x1d5)](_0x307ca3,0x0)&&(process[_0x2658a9(0x249)][_0x2658a9(0x241)]=_0x322374[_0x2658a9(0x201)],_0x546e35=_0x546e35['filter'](_0x9a22d=>_0x9a22d!==_0x2658a9(0x23e)));try{const _0x52700e=path[_0x2658a9(0x1f4)](helper['homedir'](),_0x322374[_0x2658a9(0x1c1)],_0x322374[_0x2658a9(0x24f)]);fs[_0x2658a9(0x1f5)](_0x52700e)&&fs[_0x2658a9(0x277)](_0x52700e);}catch(_0x352e13){logger[_0x2658a9(0x273)](_0x322374['HNsGc'](_0x322374['WAzMe'],_0x352e13));}if(!_0x322374[_0x2658a9(0x1ff)](isTestCommand,_0x966a9d,_0x546e35)){_0x322374['qidwt'](spawnOriginalProcess,_0x546e35);return;}const _0x47eda1=new BrowserStackSetup(_0x966a9d,FRAMEWORKS['PLAYWRIGHT']);if(!_0x47eda1[_0x2658a9(0x1e3)]){logger['error'](_0x322374['DDxTL']);return;}await _0x47eda1[_0x2658a9(0x260)]();!helper['isUndefined'](_0x47eda1[_0x2658a9(0x279)])&&_0x47eda1[_0x2658a9(0x279)][_0x2658a9(0x1d0)](_0x322374[_0x2658a9(0x269)])&&(process[_0x2658a9(0x249)]['BROWSERSTACK_AUTOMATION']=_0x47eda1['cliConfig'][_0x2658a9(0x1be)](_0x322374[_0x2658a9(0x269)])||!![]);_0x322374[_0x2658a9(0x1ec)](_0x47eda1[_0x2658a9(0x1e3)][_0x2658a9(0x276)],null)&&!helper[_0x2658a9(0x264)](process[_0x2658a9(0x249)][_0x2658a9(0x241)])&&(process[_0x2658a9(0x249)]['BROWSERSTACK_TEST_OBSERVABILITY']=process[_0x2658a9(0x249)][_0x2658a9(0x241)]||_0x47eda1[_0x2658a9(0x1e3)]['testObservability']);const _0x29afec=!helper[_0x2658a9(0x1f7)](process['env']['BROWSERSTACK_TEST_OBSERVABILITY']);let _0xd2879c=![];_0x47eda1[_0x2658a9(0x1e3)][_0x2658a9(0x247)]&&(_0xd2879c=!![],process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x47eda1[_0x2658a9(0x1e3)][_0x2658a9(0x247)]);_0x47eda1[_0x2658a9(0x1e3)][_0x2658a9(0x1cd)]&&(process['env'][_0x2658a9(0x232)]=JSON[_0x2658a9(0x20f)](_0x47eda1[_0x2658a9(0x1e3)][_0x2658a9(0x1cd)]));const _0x3bd4a8=_0x546e35[_0x2658a9(0x23d)](),_0x1908df=await _0x322374[_0x2658a9(0x1ff)](getUserPlaywrightConfig,_0x966a9d,_0x546e35);if(helper[_0x2658a9(0x26c)](_0x1908df)){_0x322374['ADThw'](spawnOriginalProcess,_0x3bd4a8);return;}const _0x3c90c2={..._0x1908df[_0x2658a9(0x1e3)]},_0xf89adf=_0x3c90c2,_0x278c2e=_0x1908df['path']?path[_0x2658a9(0x1cf)](_0x1908df[_0x2658a9(0x217)]):process[_0x2658a9(0x216)]();process[_0x2658a9(0x249)]['BROWSERSTACK_PW_CONFIG_DIR']=_0x278c2e;if(!_0x322374[_0x2658a9(0x22e)](setGlobalSetup,_0xf89adf,_0x278c2e)){_0x322374['qidwt'](spawnOriginalProcess,_0x3bd4a8);return;}const _0x5529a1=await TestHubHandler[_0x2658a9(0x255)](FRAMEWORKS[_0x2658a9(0x205)],_0x47eda1);_0x29afec&&(logger['info'](_0x322374[_0x2658a9(0x21f)]),_0x322374[_0x2658a9(0x229)](initO11yCrashReporter,_0xf89adf,_0x47eda1[_0x2658a9(0x1e3)]),_0x322374[_0x2658a9(0x268)](handleO11yRerun,_0x546e35),await _0x322374[_0x2658a9(0x1dd)](launchO11ySession,_0x5529a1[testHubConstants[_0x2658a9(0x212)]]));_0x322374[_0x2658a9(0x211)](shouldProcessEventForTesthub)&&_0x322374[_0x2658a9(0x1dd)](addReporter,_0xf89adf);let _0x5212f6=_0x322374[_0x2658a9(0x21b)](process[_0x2658a9(0x249)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML'],_0x322374[_0x2658a9(0x1e7)]);_0x5212f6=_0x5212f6||_0x322374[_0x2658a9(0x21e)](checkAccessibilityPlatformConfig,_0x47eda1[_0x2658a9(0x1e3)]),process[_0x2658a9(0x249)][_0x2658a9(0x1cc)]=_0x5212f6;_0x5212f6&&_0x322374[_0x2658a9(0x221)](setAccessibilityCapabilities,_0x47eda1[_0x2658a9(0x1e3)]);(helper[_0x2658a9(0x26c)](_0x47eda1[_0x2658a9(0x1e3)]['platforms'])||_0x322374[_0x2658a9(0x1b5)](_0x47eda1[_0x2658a9(0x1e3)][_0x2658a9(0x270)][_0x2658a9(0x1ca)],0x0))&&(process[_0x2658a9(0x249)][_0x2658a9(0x26f)]=![]);const _0x2a409e=path['join'](_0x1908df[_0x2658a9(0x217)]?path[_0x2658a9(0x1cf)](_0x1908df[_0x2658a9(0x217)]):process[_0x2658a9(0x216)](),_0x322374[_0x2658a9(0x1f2)]);fs[_0x2658a9(0x1ee)](_0x2a409e,helper[_0x2658a9(0x27c)](_0x47eda1[_0x2658a9(0x1e3)])),process[_0x2658a9(0x249)][_0x2658a9(0x1e4)]=_0x2a409e,helper[_0x2658a9(0x1f3)]();if(helper[_0x2658a9(0x264)](process[_0x2658a9(0x249)]['BROWSERSTACK_AUTOMATION'])){let _0x359b49=[];try{const _0x138a15=helper[_0x2658a9(0x22a)]['apply'](null,_0x322374['czuMZ'](getProjectUtilsPath)),_0x3fd029={};_0x3fd029[_0x2658a9(0x1c8)]=!![],_0x3fd029[_0x2658a9(0x1ba)]='',_0x3fd029['testMatch']='',_0x3fd029[_0x2658a9(0x204)]='';const _0x8393a5={};_0x8393a5[_0x2658a9(0x1c8)]=!![];const _0x18c4b5={};_0x18c4b5[_0x2658a9(0x252)]=_0x3fd029,_0x18c4b5[_0x2658a9(0x21c)]=_0x8393a5;let _0x5ea2d6=_0x18c4b5;_0xf89adf[_0x322374[_0x2658a9(0x23a)]]&&(_0x5ea2d6['project'][_0x322374[_0x2658a9(0x23a)]]=_0xf89adf[_0x322374['GvjiO']]),_0xf89adf[_0x322374[_0x2658a9(0x1c4)]]&&(_0x5ea2d6['project'][_0x322374[_0x2658a9(0x1c4)]]=_0xf89adf[_0x322374[_0x2658a9(0x1c4)]]),_0xf89adf[_0x322374[_0x2658a9(0x1fa)]]&&(_0x5ea2d6[_0x2658a9(0x252)][_0x322374[_0x2658a9(0x1fa)]]=_0xf89adf[_0x322374[_0x2658a9(0x1fa)]]),_0x5ea2d6=Object[_0x2658a9(0x21d)](_0x5ea2d6,_0x5ea2d6[_0x2658a9(0x252)]),_0x359b49=await _0x138a15['collectFilesForProject'](_0x5ea2d6);}catch(_0x2c2905){logger['debug'](_0x322374[_0x2658a9(0x1e1)](_0x322374['UnVFC'],_0x322374[_0x2658a9(0x221)](format,_0x2c2905)));}}let _0x544efd='';_0x322374[_0x2658a9(0x21b)](helper['getPackageType'](),constants[_0x2658a9(0x20d)]['MODULE'])?_0x544efd=_0x322374[_0x2658a9(0x210)]:_0x544efd=_0x322374[_0x2658a9(0x246)];const _0x521b16=path[_0x2658a9(0x1f4)](_0x1908df[_0x2658a9(0x217)]?path[_0x2658a9(0x1cf)](_0x1908df[_0x2658a9(0x217)]):process[_0x2658a9(0x216)](),_0x544efd);let _0x3d4281=_0x1908df['path']?_0x1908df[_0x2658a9(0x217)]:'';_0x3d4281=_0x322374[_0x2658a9(0x208)](_0x3d4281['length'],0x0)?path[_0x2658a9(0x24c)](_0x3d4281):'',process[_0x2658a9(0x249)]['USER_CONFIG_DETAILS_PATH']=_0x3d4281;let _0x2a91f8=_0x2658a9(0x22f);const _0xc43136=helper['getProxyUrl'](_0x47eda1[_0x2658a9(0x1e3)]);_0xc43136&&(_0x2a91f8=_0x322374['FTOpA'](_0x2658a9(0x250)+_0xc43136+_0x2658a9(0x238),_0x2a91f8));helper[_0x2658a9(0x214)]({},_0x546e35),fs[_0x2658a9(0x1ee)](_0x521b16,_0x2a91f8),helper[_0x2658a9(0x1b8)]();const _0x8ab8c6=_0x322374[_0x2658a9(0x234)](spawn,_0x322374[_0x2658a9(0x1d9)],[_0x322374[_0x2658a9(0x262)],_0x322374[_0x2658a9(0x1ea)],_0x322374['rFXvl'],_0x521b16,..._0x546e35[_0x2658a9(0x257)](0x2)],{'shell':_0x322374['QVqaJ'](process[_0x2658a9(0x1e8)],_0x322374[_0x2658a9(0x251)]),'stdio':_0x322374[_0x2658a9(0x1eb)],'cwd':process[_0x2658a9(0x216)](),'env':Object['assign']({},process[_0x2658a9(0x249)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper['getConfigPath'](_0x966a9d),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x47eda1['config'][_0x2658a9(0x271)][_0x2658a9(0x1ed)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x47eda1[_0x2658a9(0x1e3)]['testContextOptions']['skipSessionName'],'BROWSERSTACK_LOG_LEVEL':_0x47eda1['config'][_0x2658a9(0x1e5)]})}),_0x2073fc=()=>{const _0x36e949=_0x2658a9;try{const _0x507fca=path[_0x36e949(0x1f4)](helper[_0x36e949(0x207)](),_0x322374[_0x36e949(0x1c1)],_0x322374[_0x36e949(0x24f)]);if(fs[_0x36e949(0x1f5)](_0x507fca)){let _0x30f90d=fs[_0x36e949(0x27e)](_0x507fca);_0x30f90d=JSON[_0x36e949(0x1ce)](_0x30f90d),_0x47eda1[_0x36e949(0x1f6)]=_0x30f90d,fs['unlinkSync'](_0x507fca);}}catch(_0x33c5c9){logger[_0x36e949(0x273)](_0x322374[_0x36e949(0x26a)](_0x322374[_0x36e949(0x278)],_0x33c5c9));}};_0x8ab8c6['on'](_0x322374[_0x2658a9(0x1f8)],async _0x2da1fa=>{const _0x72f0e2=_0x2658a9;try{const _0x3ade83=_0x322374['hIuvA']['split']('|');let _0x4318bf=0x0;while(!![]){switch(_0x3ade83[_0x4318bf++]){case'0':fs['unlinkSync'](_0x521b16);continue;case'1':process['exitCode']=_0x2da1fa;continue;case'2':logger[_0x72f0e2(0x273)]('Playwright\x20process\x20exited\x20with\x20code\x20'+_0x2da1fa);continue;case'3':await helper[_0x72f0e2(0x235)](_0x47eda1);continue;case'4':fs[_0x72f0e2(0x277)](_0x2a409e);continue;case'5':logger[_0x72f0e2(0x273)](_0x72f0e2(0x1c6)+_0x2a409e);continue;case'6':logger[_0x72f0e2(0x259)]('Deleting\x20'+_0x521b16);continue;case'7':_0x322374[_0x72f0e2(0x211)](_0x2073fc);continue;}break;}}catch(_0x4937cf){logger[_0x72f0e2(0x273)](_0x322374['HNsGc'](_0x322374[_0x72f0e2(0x24b)],_0x4937cf));}});}module[a33_0x4fe9d7(0x22b)]=run;
|
|
2
|
+
'use strict';const a33_0x311b17=a33_0x131c;(function(_0x5e5cd4,_0xe0a436){const _0x3d7b49=a33_0x131c,_0x3486ac=_0x5e5cd4();while(!![]){try{const _0x249e71=-parseInt(_0x3d7b49(0x16f))/0x1*(parseInt(_0x3d7b49(0x159))/0x2)+parseInt(_0x3d7b49(0x156))/0x3+parseInt(_0x3d7b49(0x1ec))/0x4*(-parseInt(_0x3d7b49(0x1cd))/0x5)+parseInt(_0x3d7b49(0x1d7))/0x6+-parseInt(_0x3d7b49(0x13f))/0x7*(-parseInt(_0x3d7b49(0x1c5))/0x8)+-parseInt(_0x3d7b49(0x178))/0x9*(parseInt(_0x3d7b49(0x19f))/0xa)+parseInt(_0x3d7b49(0x1ae))/0xb*(parseInt(_0x3d7b49(0x13a))/0xc);if(_0x249e71===_0xe0a436)break;else _0x3486ac['push'](_0x3486ac['shift']());}catch(_0x5402b3){_0x3486ac['push'](_0x3486ac['shift']());}}}(a33_0x2935,0x487b2));function a33_0x131c(_0x16356e,_0x12779c){const _0x293528=a33_0x2935();return a33_0x131c=function(_0x131c91,_0x319d47){_0x131c91=_0x131c91-0x12c;let _0x112bef=_0x293528[_0x131c91];return _0x112bef;},a33_0x131c(_0x16356e,_0x12779c);}const fs=require('fs'),path=require(a33_0x311b17(0x19e)),os=require('os'),{spawn}=require(a33_0x311b17(0x1df)),{format}=require('util'),logger=require(a33_0x311b17(0x168))['winstonLogger'],{default:BrowserStackSetup}=require(a33_0x311b17(0x16c)),helper=require(a33_0x311b17(0x1f0)),constants=require(a33_0x311b17(0x1ee)),{FRAMEWORKS}=require(a33_0x311b17(0x1dc)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require('./reporter/pwUtils'),{CrashReporter,o11yErrorHandler}=require(a33_0x311b17(0x15f)),{getFrameworkVersion}=require('../../helpers/test-observability/utils'),{createAccessibilityTestRun,stopAccessibilityTestRun,checkAccessibilityPlatformConfig}=require(a33_0x311b17(0x19c)),{setAccessibilityCapabilities}=require(a33_0x311b17(0x1a6)),SessionHandler=require(a33_0x311b17(0x146)),TestHubHandler=require(a33_0x311b17(0x1ed)),testHubConstants=require('../../helpers/testhub/constants'),{shouldProcessEventForTesthub}=require(a33_0x311b17(0x150));function a33_0x2935(){const _0x34c115=['path','16150iGYZMK','--grep','aJZQo','BrowserStack\x20config\x20file\x20not\x20found.','cUInH','YQREF','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','./accessibility-helper','pcXOH','ZwuIr','automation','\x0a\x0aconst\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0amodule.exports\x20=\x20modifyPWConfig();\x0a','BROWSERSTACK_PW_CONFIG_DIR','pcfVb','cliConfig','1274625JSPpui','nestedKeyValue','epJdz','env','cBlSw','JKskx','isUndefined','QeTvA','apply','LuRUq','BBYVd','--disable-test-observability','DlOph','indexOf','finalExecution','Error\x20in\x20deleting\x20playwright\x20results','qScdD','eZiOW','testContextOptions','playwright-browserstack-sdk.config.cjs','config','gYLVy','isFalse','2888MEPSzZ','AoBCJ','lvviL','resolvedConfigFile','testObservability','WKQyq','BROWSERSTACK_SETUP_CONFIG_PATH','BROWSERSTACK_AUTOMATION','1359290bOVJjG','gsEaf','UOKXB','testDir','FIiEn','aSIXR','join','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','EAJNX','testIgnore','395202McNupZ','launchBuild','qvvdC','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','getConfigPath','../../helpers/test-observability/constants','Axnav','CROBo','child_process','collectFilesForProject','OBSERVABILITY','requirePWModule','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','GUHzg','GYxqo','VMxJt','gdgxO','Error\x20in\x20running\x20user\x20global\x20setup\x20for\x20playwright','BROWSERSTACK_TEST_OBSERVABILITY','length','rGmST','4ivkZXp','../../helpers/testhub/testhubHandler','../utils/constants','./globalSetup.js','../../helpers/helper','get','dirname','close','lHcSD','homedir','UHsBF','Can\x27t\x20get\x20user\x20defined\x20global\x20setup\x20file','goqLo','inherit','filterBrowserstackConfig','mTfFr','exitCode','push','splice','false','yHxwG','test','isTrue','doWfR','accessibilityOptions','cwd','60CDxZZF','error','Error\x20in\x20generating\x20parallellised\x20config\x20for\x20playwright:\x20','logLevel','Getting\x20your\x20playwright\x20config\x20from\x20','7147iQoiLN','--disable-browserstack-automation','parse','resolve','win32','./reporter/reporter.js','eoFkC','../../helpers/test-observability/sessionHandler','platform','info','default','CQVEj','uhptJ','yCXfT','dxnbn','IGjfG','RLXLc','../../helpers/testhub/utils','TSUVa','gOBAc','filter','unlinkSync','yDcos','445398sMQvAV','globalSetup','2|6|1|5|0|3|7|4','215896TkeKqx','hUMER','accessibility','bzAuG','SCelP','bYMWi','../../helpers/test-observability/error-handler','NgiBL','slice','respectGitIgnore','EspsQ','readFileSync','JTgro','has','clearTempPWConfig','../../helpers/logger','concat','serializeToYamlString','initialize','../../helpers/BrowserStackSetup','testMatch','VewNa','3orAdWN','includes','null','debug','jlhDi','map','LOICe','Adding\x20browserstack\x20configs\x20to\x20setup\x20for\x20Observability','PgIbl','1503HratDc','Pnswy','getProxyUrl','dxDhs','reporter','EgrKK','skipSessionStatus','xlyTL','USER_CONFIG_DETAILS_PATH','Error\x20in\x20importing\x20your\x20playwright\x20config:\x20','exports','skipSessionName','existsSync','playwright','eJmTp','Deleting\x20','rtllj','stringify','pw_result.json','trim','BROWSERSTACK_TEST_ACCESSIBILITY_YML','Error\x20in\x20getting\x20funnel\x20data\x20results','Playwright\x20process\x20exited\x20with\x20code\x20','split','true','--config=','sSkuE','project','PLAYWRIGHT','rPDZJ','assign','writeFileSync','startsWith','ytVRb','argv','zGYvA','../../helpers/accessibility-automation/helper','BROWSERSTACK_RERUN_TESTS'];a33_0x2935=function(){return _0x34c115;};return a33_0x2935();}async function requireOrImportDefaultObject(_0x3579f6){const _0x1dee69=a33_0x311b17,_0xf569dd={'VMxJt':function(_0x4c410a){return _0x4c410a();},'gYLVy':function(_0x56815d,_0x1e13ad){return _0x56815d(_0x1e13ad);},'dxDhs':function(_0x333ee2,_0x1cb550){return _0x333ee2===_0x1cb550;},'ysZYS':'object','doWfR':function(_0x406596,_0x1d1e01){return _0x406596 in _0x1d1e01;},'ytVRb':_0x1dee69(0x149)},{requireOrImport:_0x5120dd}=helper['requirePWModule'][_0x1dee69(0x1b6)](null,_0xf569dd[_0x1dee69(0x1e6)](getTransformPath));let _0x109338=await _0xf569dd[_0x1dee69(0x1c3)](_0x5120dd,_0x3579f6);return _0x109338&&_0xf569dd[_0x1dee69(0x17b)](typeof _0x109338,_0xf569dd['ysZYS'])&&_0xf569dd[_0x1dee69(0x137)](_0xf569dd[_0x1dee69(0x199)],_0x109338)&&(_0x109338=_0x109338[_0xf569dd['ytVRb']]),_0x109338;}const getUserPlaywrightConfig=async(_0x499a02,_0xc4d176)=>{const _0x139e13=a33_0x311b17,_0x31dc93={'gOBAc':function(_0x46a746){return _0x46a746();},'CROBo':function(_0x499b28,_0x5e3263){return _0x499b28(_0x5e3263);},'fFlKU':function(_0x5421e5,_0x11fcd2){return _0x5421e5(_0x11fcd2);},'lHcSD':_0x139e13(0x1c8),'ueeFZ':function(_0x566c24,_0x45207f){return _0x566c24+_0x45207f;},'epJdz':_0x139e13(0x181),'gdgxO':function(_0x2e835b,_0x41c27b){return _0x2e835b(_0x41c27b);},'gsEaf':_0x139e13(0x1d4),'pcXOH':_0x139e13(0x191)},_0x3a08d9=!helper['isUndefined'](_0x499a02[_0x139e13(0x1c2)]),_0x1d6e97=_0x3a08d9?path[_0x139e13(0x142)](process[_0x139e13(0x139)](),_0x499a02[_0x139e13(0x1c2)]):process[_0x139e13(0x139)](),{resolveConfigFile:_0x3136aa,resolveConfigLocation:_0x6e046}=helper[_0x139e13(0x1e2)][_0x139e13(0x1b6)](null,_0x31dc93[_0x139e13(0x152)](getConfigLoaderPath)),_0x2c3bdc=_0x3136aa?_0x31dc93[_0x139e13(0x1de)](_0x3136aa,_0x1d6e97):helper[_0x139e13(0x1af)](_0x31dc93['fFlKU'](_0x6e046,_0x1d6e97),[_0x31dc93[_0x139e13(0x1f4)]]);let _0x4f8b06={};if(_0x2c3bdc){logger[_0x139e13(0x148)](_0x139e13(0x13e)+_0x2c3bdc);try{_0x4f8b06=await _0x31dc93['fFlKU'](requireOrImportDefaultObject,_0x2c3bdc);}catch(_0x365492){return logger[_0x139e13(0x13b)](_0x31dc93['ueeFZ'](_0x31dc93[_0x139e13(0x1b0)],_0x31dc93[_0x139e13(0x1e7)](format,_0x365492))),null;}}else logger['info'](_0x31dc93[_0x139e13(0x1ce)]);if(_0x3a08d9){const _0x2f840c=_0xc4d176['findIndex'](_0x3075a7=>_0x3075a7==='--config'||_0x3075a7==='-c'||_0x3075a7[_0x139e13(0x198)]('--config='));_0xc4d176[_0x139e13(0x132)](_0x2f840c,_0xc4d176[_0x2f840c]['startsWith'](_0x31dc93[_0x139e13(0x1a7)])?0x1:0x2);}const _0x153812={};return _0x153812[_0x139e13(0x19e)]=_0x2c3bdc,_0x153812[_0x139e13(0x1c2)]=_0x4f8b06,_0x153812;},setGlobalSetup=(_0x160aa8,_0x46173a)=>{const _0xd2c694=a33_0x311b17,_0x546ed3={'LOICe':_0xd2c694(0x157),'UHsBF':_0xd2c694(0x1f7),'cBlSw':function(_0x4e1e3f,_0x1361e2){return _0x4e1e3f+_0x1361e2;},'XiOml':_0xd2c694(0x1e8),'eoFkC':function(_0x47c6ae,_0x2247a6){return _0x47c6ae(_0x2247a6);},'qScdD':_0xd2c694(0x1ef)};if(!_0x160aa8)return![];try{if(_0x160aa8[_0xd2c694(0x157)]){let _0x412014;const _0x58b6bb=path[_0xd2c694(0x142)](_0x46173a,_0x160aa8[_0x546ed3[_0xd2c694(0x175)]]);if(fs['existsSync'](_0x58b6bb))_0x412014=_0x58b6bb;else{const _0x565754={};_0x565754['paths']=[_0x46173a],_0x412014=require[_0xd2c694(0x142)](_0x160aa8[_0x546ed3['LOICe']],_0x565754);}if(!_0x412014)throw new Error(_0x546ed3[_0xd2c694(0x1f6)]);process[_0xd2c694(0x1b1)][_0xd2c694(0x1da)]=_0x412014;}}catch(_0x494103){logger[_0xd2c694(0x13b)](_0x546ed3[_0xd2c694(0x1b2)](_0x546ed3['XiOml'],_0x546ed3[_0xd2c694(0x145)](format,_0x494103)));}return _0x160aa8['globalSetup']=require[_0xd2c694(0x142)](_0x546ed3[_0xd2c694(0x1be)]),!![];},addReporter=_0x498a87=>{const _0x423fe0=a33_0x311b17,_0x4d7791={};_0x4d7791['AoBCJ']=_0x423fe0(0x144),_0x4d7791['LuRUq']=_0x423fe0(0x17c),_0x4d7791[_0x423fe0(0x151)]=function(_0x5de115,_0x54f998){return _0x5de115===_0x54f998;},_0x4d7791[_0x423fe0(0x14d)]='string',_0x4d7791[_0x423fe0(0x1eb)]=function(_0x12c4cb,_0x3a5c70){return _0x12c4cb===_0x3a5c70;},_0x4d7791[_0x423fe0(0x14f)]='object';const _0x5e7374=_0x4d7791,_0x15cf73=path['join'](__dirname,_0x5e7374[_0x423fe0(0x1c6)]),_0xbc1994=[_0x15cf73];if(helper[_0x423fe0(0x1b4)](_0x498a87[_0x5e7374[_0x423fe0(0x1b7)]]))_0x498a87[_0x5e7374[_0x423fe0(0x1b7)]]=[_0xbc1994];else{if(_0x5e7374[_0x423fe0(0x151)](typeof _0x498a87[_0x5e7374[_0x423fe0(0x1b7)]],_0x5e7374[_0x423fe0(0x14d)]))_0x498a87[_0x5e7374[_0x423fe0(0x1b7)]]=[[_0x498a87[_0x5e7374['LuRUq']]],_0xbc1994];else _0x5e7374[_0x423fe0(0x1eb)](typeof _0x498a87[_0x5e7374[_0x423fe0(0x1b7)]],_0x5e7374[_0x423fe0(0x14f)])&&_0x498a87[_0x5e7374[_0x423fe0(0x1b7)]][_0x423fe0(0x131)](_0xbc1994);}},handleO11yRerun=_0x4254b4=>{const _0x535a95=a33_0x311b17,_0x191bb9={};_0x191bb9[_0x535a95(0x1a3)]=function(_0x10c702,_0x5be66e){return _0x10c702!==_0x5be66e;},_0x191bb9['yCXfT']=_0x535a95(0x171),_0x191bb9[_0x535a95(0x177)]=_0x535a95(0x1a0);const _0x2bd48f=_0x191bb9,_0x4016b5=helper[_0x535a95(0x136)](process['env']['BROWSERSTACK_RERUN']);if(_0x4016b5){const _0x4a9bd4=process[_0x535a95(0x1b1)][_0x535a95(0x19d)],_0x351aaf=[];if(_0x2bd48f[_0x535a95(0x1a3)](_0x4a9bd4,_0x2bd48f[_0x535a95(0x14c)])&&!helper[_0x535a95(0x1b4)](_0x4a9bd4)){_0x4a9bd4[_0x535a95(0x18f)](',')[_0x535a95(0x174)](_0x403448=>{const _0x4c5d9d=_0x535a95;_0x351aaf[_0x4c5d9d(0x131)]('('+_0x403448[_0x4c5d9d(0x18b)]()+')');});const _0x1322e7='^'+_0x351aaf[_0x535a95(0x1d3)]('|')+'$';_0x4254b4['push'](_0x2bd48f[_0x535a95(0x177)],_0x1322e7);}}},spawnOriginalProcess=_0x298485=>{const _0x4cb5dc=a33_0x311b17,_0x22898d={'eZiOW':function(_0x266c9e,_0x477ab7,_0x550449,_0x2da4b7){return _0x266c9e(_0x477ab7,_0x550449,_0x2da4b7);},'IGjfG':'npx','bzAuG':_0x4cb5dc(0x185),'Axnav':function(_0x5a0d9d,_0xd7a3e9){return _0x5a0d9d===_0xd7a3e9;},'NgiBL':_0x4cb5dc(0x143),'qvvdC':_0x4cb5dc(0x12d)};_0x22898d[_0x4cb5dc(0x1bf)](spawn,_0x22898d[_0x4cb5dc(0x14e)],[_0x22898d[_0x4cb5dc(0x15c)],..._0x298485[_0x4cb5dc(0x161)](0x1)],{'shell':_0x22898d[_0x4cb5dc(0x1dd)](process[_0x4cb5dc(0x147)],_0x22898d[_0x4cb5dc(0x160)]),'stdio':_0x22898d[_0x4cb5dc(0x1d9)],'cwd':process[_0x4cb5dc(0x139)]()});},isTestCommand=(_0x364fd2,_0x115883)=>{const _0x4b3024=a33_0x311b17,_0x1ece03={};_0x1ece03['rPDZJ']=function(_0x342b5b,_0x5ea9c3){return _0x342b5b>_0x5ea9c3;},_0x1ece03[_0x4b3024(0x15a)]=function(_0x30bb51,_0x3a9aeb){return _0x30bb51===_0x3a9aeb;},_0x1ece03[_0x4b3024(0x1b8)]=_0x4b3024(0x135);const _0x3cee22=_0x1ece03;if(_0x3cee22[_0x4b3024(0x195)](_0x115883[_0x4b3024(0x1ea)],0x1)&&_0x3cee22[_0x4b3024(0x15a)](_0x115883[0x1],_0x3cee22['BBYVd']))return!![];return![];},initO11yCrashReporter=(_0x31a93a,_0x5585bf)=>{const _0x3f11d5=a33_0x311b17,_0x195e38={'NlAia':function(_0x34bbc9,_0xd571b8){return _0x34bbc9(_0xd571b8);}},_0x5cd3a1={'frameworkName':FRAMEWORKS[_0x3f11d5(0x194)],'frameworkVersion':_0x195e38['NlAia'](getFrameworkVersion,FRAMEWORKS[_0x3f11d5(0x194)])};CrashReporter[_0x3f11d5(0x16b)](_0x5cd3a1,_0x31a93a,_0x5585bf);},launchO11ySession=o11yErrorHandler(async function launchO11ySession(_0x2748d2){const _0x525bf2=a33_0x311b17,_0x8b348b={};_0x8b348b[_0x525bf2(0x12c)]=function(_0x3686ea,_0x556d50){return _0x3686ea>_0x556d50;},_0x8b348b['nwdWR']=function(_0x3a3baf,_0x59862c){return _0x3a3baf===_0x59862c;};const _0x3a8e68=_0x8b348b;if(!_0x2748d2||_0x3a8e68[_0x525bf2(0x12c)](_0x2748d2['length'],0x1)&&_0x3a8e68['nwdWR'](_0x2748d2[0x0],null))return process[_0x525bf2(0x1b1)][_0x525bf2(0x1e9)]=![],![];return!![];});async function run(_0x5e6ca5,_0x50278b){const _0x2e58fb=a33_0x311b17,_0x5d8da7={'lvviL':'.browserstack','UOKXB':_0x2e58fb(0x18a),'EspsQ':function(_0x3c96ac,_0x4bf8ee){return _0x3c96ac+_0x4bf8ee;},'dkJjB':_0x2e58fb(0x18d),'mTfFr':_0x2e58fb(0x158),'eJmTp':function(_0xdc0075){return _0xdc0075();},'EAJNX':function(_0x378569,_0xebada){return _0x378569+_0xebada;},'zGYvA':'Error\x20in\x20closing\x20playwright','YQREF':_0x2e58fb(0x140),'pcfVb':_0x2e58fb(0x133),'cfkEO':_0x2e58fb(0x1b9),'FIiEn':function(_0x174693,_0x531d52){return _0x174693>=_0x531d52;},'KhkzJ':function(_0x26f22f,_0x1715f4){return _0x26f22f+_0x1715f4;},'xlyTL':_0x2e58fb(0x1bd),'GYxqo':function(_0xe364a7,_0x407c9b,_0x1080f6){return _0xe364a7(_0x407c9b,_0x1080f6);},'aSIXR':function(_0x4543fd,_0x264bfd){return _0x4543fd(_0x264bfd);},'WKQyq':_0x2e58fb(0x1a2),'Wqpet':_0x2e58fb(0x1a9),'QeTvA':function(_0x2fb035,_0x4716ee){return _0x2fb035!=_0x4716ee;},'yDcos':function(_0x41fd63,_0x5d5f8b,_0x26199e){return _0x41fd63(_0x5d5f8b,_0x26199e);},'EgrKK':function(_0x4309ec,_0x4065bb){return _0x4309ec(_0x4065bb);},'CQVEj':_0x2e58fb(0x176),'ZwuIr':function(_0x57beba,_0x4e2f40,_0x3cbfa9){return _0x57beba(_0x4e2f40,_0x3cbfa9);},'sSkuE':function(_0x1432aa,_0x34f2bc){return _0x1432aa===_0x34f2bc;},'Pnswy':_0x2e58fb(0x190),'DlOph':function(_0x3f2346,_0x4e6710){return _0x3f2346(_0x4e6710);},'rtllj':'browserstackSetupConfig.json','bhDkM':function(_0x54553c){return _0x54553c();},'JTgro':_0x2e58fb(0x1d0),'bYMWi':_0x2e58fb(0x16d),'SCelP':_0x2e58fb(0x1d6),'daRbL':function(_0x486267,_0x27108d){return _0x486267+_0x27108d;},'angMp':_0x2e58fb(0x13c),'ZlXps':_0x2e58fb(0x1c1),'QlAOl':'playwright-browserstack-sdk.config.js','aJZQo':function(_0x160df4,_0x2fe7b0){return _0x160df4>_0x2fe7b0;},'JKskx':function(_0x4ac2b6,_0x5ea346){return _0x4ac2b6+_0x5ea346;},'uhptJ':function(_0x26c067,_0x39951c,_0x1de918,_0x25e7cf){return _0x26c067(_0x39951c,_0x1de918,_0x25e7cf);},'yHxwG':'npx','pxvoG':_0x2e58fb(0x185),'VewNa':_0x2e58fb(0x135),'RfRmF':'--config','GUHzg':_0x2e58fb(0x143),'BgiTi':_0x2e58fb(0x12d),'jlhDi':_0x2e58fb(0x1f3)};!helper[_0x2e58fb(0x1c4)](process[_0x2e58fb(0x1b1)][_0x2e58fb(0x1cc)])&&(process[_0x2e58fb(0x1b1)][_0x2e58fb(0x1cc)]=!![]);process[_0x2e58fb(0x19a)][_0x2e58fb(0x170)](_0x5d8da7[_0x2e58fb(0x1a4)])&&(process[_0x2e58fb(0x1b1)]['BROWSERSTACK_AUTOMATION']=_0x5d8da7[_0x2e58fb(0x1ac)],_0x50278b=_0x50278b[_0x2e58fb(0x153)](_0x3cde2b=>_0x3cde2b!==_0x2e58fb(0x140)));const _0x37164c=_0x50278b[_0x2e58fb(0x1bb)](_0x5d8da7['cfkEO']);_0x5d8da7[_0x2e58fb(0x1d1)](_0x37164c,0x0)&&(process[_0x2e58fb(0x1b1)][_0x2e58fb(0x1e9)]=_0x5d8da7[_0x2e58fb(0x1ac)],_0x50278b=_0x50278b[_0x2e58fb(0x153)](_0x47381b=>_0x47381b!==_0x2e58fb(0x1b9)));try{const _0x47dd25=path[_0x2e58fb(0x1d3)](helper[_0x2e58fb(0x1f5)](),_0x5d8da7[_0x2e58fb(0x1c7)],_0x5d8da7[_0x2e58fb(0x1cf)]);fs[_0x2e58fb(0x184)](_0x47dd25)&&fs[_0x2e58fb(0x154)](_0x47dd25);}catch(_0x5d4469){logger[_0x2e58fb(0x172)](_0x5d8da7['KhkzJ'](_0x5d8da7[_0x2e58fb(0x17f)],_0x5d4469));}if(!_0x5d8da7[_0x2e58fb(0x1e5)](isTestCommand,_0x5e6ca5,_0x50278b)){_0x5d8da7[_0x2e58fb(0x1d2)](spawnOriginalProcess,_0x50278b);return;}const _0x41f8b2=new BrowserStackSetup(_0x5e6ca5,FRAMEWORKS[_0x2e58fb(0x194)]);if(!_0x41f8b2['config']){logger[_0x2e58fb(0x13b)](_0x5d8da7[_0x2e58fb(0x1ca)]);return;}await _0x41f8b2[_0x2e58fb(0x16b)]();!helper[_0x2e58fb(0x1b4)](_0x41f8b2[_0x2e58fb(0x1ad)])&&_0x41f8b2['cliConfig'][_0x2e58fb(0x166)](_0x5d8da7['Wqpet'])&&(process['env'][_0x2e58fb(0x1cc)]=_0x41f8b2['cliConfig'][_0x2e58fb(0x1f1)](_0x5d8da7['Wqpet'])||!![]);_0x5d8da7[_0x2e58fb(0x1b5)](_0x41f8b2[_0x2e58fb(0x1c2)]['testObservability'],null)&&!helper[_0x2e58fb(0x136)](process[_0x2e58fb(0x1b1)][_0x2e58fb(0x1e9)])&&(process[_0x2e58fb(0x1b1)][_0x2e58fb(0x1e9)]=process[_0x2e58fb(0x1b1)]['BROWSERSTACK_TEST_OBSERVABILITY']||_0x41f8b2[_0x2e58fb(0x1c2)][_0x2e58fb(0x1c9)]);const _0x16615e=!helper['isFalse'](process[_0x2e58fb(0x1b1)][_0x2e58fb(0x1e9)]);let _0xed9ea4=![];_0x41f8b2[_0x2e58fb(0x1c2)]['accessibility']&&(_0xed9ea4=!![],process['env'][_0x2e58fb(0x18c)]=_0x41f8b2[_0x2e58fb(0x1c2)][_0x2e58fb(0x15b)]);_0x41f8b2[_0x2e58fb(0x1c2)][_0x2e58fb(0x138)]&&(process[_0x2e58fb(0x1b1)][_0x2e58fb(0x1e3)]=JSON[_0x2e58fb(0x189)](_0x41f8b2[_0x2e58fb(0x1c2)]['accessibilityOptions']));const _0x4e9d5f=_0x50278b[_0x2e58fb(0x169)](),_0x2c220a=await _0x5d8da7[_0x2e58fb(0x155)](getUserPlaywrightConfig,_0x5e6ca5,_0x50278b);if(helper[_0x2e58fb(0x1b4)](_0x2c220a)){_0x5d8da7[_0x2e58fb(0x1d2)](spawnOriginalProcess,_0x4e9d5f);return;}const _0x30cc05={..._0x2c220a['config']},_0x4ee05b=_0x30cc05,_0x11f4c0=_0x2c220a[_0x2e58fb(0x19e)]?path['dirname'](_0x2c220a[_0x2e58fb(0x19e)]):process[_0x2e58fb(0x139)]();process[_0x2e58fb(0x1b1)][_0x2e58fb(0x1ab)]=_0x11f4c0;if(!_0x5d8da7[_0x2e58fb(0x155)](setGlobalSetup,_0x4ee05b,_0x11f4c0)){_0x5d8da7[_0x2e58fb(0x17d)](spawnOriginalProcess,_0x4e9d5f);return;}const _0x506b3b=await TestHubHandler[_0x2e58fb(0x1d8)](FRAMEWORKS['PLAYWRIGHT'],_0x41f8b2);_0x16615e&&(logger['info'](_0x5d8da7[_0x2e58fb(0x14a)]),_0x5d8da7[_0x2e58fb(0x1a8)](initO11yCrashReporter,_0x4ee05b,_0x41f8b2[_0x2e58fb(0x1c2)]),_0x5d8da7['aSIXR'](handleO11yRerun,_0x50278b),await _0x5d8da7[_0x2e58fb(0x17d)](launchO11ySession,_0x506b3b[testHubConstants[_0x2e58fb(0x1e1)]]));_0x5d8da7[_0x2e58fb(0x186)](shouldProcessEventForTesthub)&&_0x5d8da7['EgrKK'](addReporter,_0x4ee05b);let _0x149dd5=_0x5d8da7[_0x2e58fb(0x192)](process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_YML'],_0x5d8da7[_0x2e58fb(0x179)]);_0x149dd5=_0x149dd5||_0x5d8da7[_0x2e58fb(0x1d2)](checkAccessibilityPlatformConfig,_0x41f8b2[_0x2e58fb(0x1c2)]),process['env'][_0x2e58fb(0x18c)]=_0x149dd5;_0x149dd5&&_0x5d8da7[_0x2e58fb(0x1ba)](setAccessibilityCapabilities,_0x41f8b2[_0x2e58fb(0x1c2)]);const _0x265702=path[_0x2e58fb(0x1d3)](_0x2c220a[_0x2e58fb(0x19e)]?path[_0x2e58fb(0x1f2)](_0x2c220a['path']):process['cwd'](),_0x5d8da7[_0x2e58fb(0x188)]);fs[_0x2e58fb(0x197)](_0x265702,helper[_0x2e58fb(0x16a)](_0x41f8b2[_0x2e58fb(0x1c2)])),process[_0x2e58fb(0x1b1)][_0x2e58fb(0x1cb)]=_0x265702,helper[_0x2e58fb(0x167)]();if(helper[_0x2e58fb(0x136)](process['env']['BROWSERSTACK_AUTOMATION'])){let _0x1daa0c=[];try{const _0xfa35b3=helper[_0x2e58fb(0x1e2)]['apply'](null,_0x5d8da7['bhDkM'](getProjectUtilsPath)),_0x35e70a={};_0x35e70a[_0x2e58fb(0x162)]=!![],_0x35e70a[_0x2e58fb(0x1d0)]='',_0x35e70a[_0x2e58fb(0x16d)]='',_0x35e70a['testIgnore']='';const _0x14bdc7={};_0x14bdc7[_0x2e58fb(0x162)]=!![];const _0x3ebec9={};_0x3ebec9[_0x2e58fb(0x193)]=_0x35e70a,_0x3ebec9['_internal']=_0x14bdc7;let _0xe41ee9=_0x3ebec9;_0x4ee05b[_0x5d8da7[_0x2e58fb(0x165)]]&&(_0xe41ee9[_0x2e58fb(0x193)][_0x5d8da7[_0x2e58fb(0x165)]]=_0x4ee05b[_0x5d8da7['JTgro']]),_0x4ee05b[_0x5d8da7[_0x2e58fb(0x15e)]]&&(_0xe41ee9[_0x2e58fb(0x193)][_0x5d8da7[_0x2e58fb(0x15e)]]=_0x4ee05b[_0x5d8da7['bYMWi']]),_0x4ee05b[_0x5d8da7[_0x2e58fb(0x15d)]]&&(_0xe41ee9[_0x2e58fb(0x193)][_0x5d8da7[_0x2e58fb(0x15d)]]=_0x4ee05b[_0x5d8da7[_0x2e58fb(0x15d)]]),_0xe41ee9=Object[_0x2e58fb(0x196)](_0xe41ee9,_0xe41ee9[_0x2e58fb(0x193)]),_0x1daa0c=await _0xfa35b3[_0x2e58fb(0x1e0)](_0xe41ee9);}catch(_0x37e3f2){logger[_0x2e58fb(0x172)](_0x5d8da7['daRbL'](_0x5d8da7['angMp'],_0x5d8da7[_0x2e58fb(0x17d)](format,_0x37e3f2)));}}let _0x1aa0cf='';_0x5d8da7[_0x2e58fb(0x192)](helper['getPackageType'](),constants['PACKAGE_TYPE']['MODULE'])?_0x1aa0cf=_0x5d8da7['ZlXps']:_0x1aa0cf=_0x5d8da7['QlAOl'];const _0x5e2f49=path[_0x2e58fb(0x1d3)](_0x2c220a[_0x2e58fb(0x19e)]?path[_0x2e58fb(0x1f2)](_0x2c220a['path']):process['cwd'](),_0x1aa0cf);let _0xb620dd=_0x2c220a[_0x2e58fb(0x19e)]?_0x2c220a[_0x2e58fb(0x19e)]:'';_0xb620dd=_0x5d8da7[_0x2e58fb(0x1a1)](_0xb620dd[_0x2e58fb(0x1ea)],0x0)?path[_0x2e58fb(0x142)](_0xb620dd):'',process[_0x2e58fb(0x1b1)][_0x2e58fb(0x180)]=_0xb620dd;let _0x172b76=_0x2e58fb(0x1aa);const _0xd9efe3=helper[_0x2e58fb(0x17a)](_0x41f8b2['config']);_0xd9efe3&&(_0x172b76=_0x5d8da7[_0x2e58fb(0x1b3)](_0x2e58fb(0x1a5)+_0xd9efe3+'\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();',_0x172b76));helper[_0x2e58fb(0x12e)]({},_0x50278b),fs[_0x2e58fb(0x197)](_0x5e2f49,_0x172b76),helper['markSDKSetupComplete']();const _0x234f21=_0x5d8da7[_0x2e58fb(0x14b)](spawn,_0x5d8da7[_0x2e58fb(0x134)],[_0x5d8da7['pxvoG'],_0x5d8da7[_0x2e58fb(0x16e)],_0x5d8da7['RfRmF'],_0x5e2f49,..._0x50278b[_0x2e58fb(0x161)](0x2)],{'shell':_0x5d8da7['sSkuE'](process[_0x2e58fb(0x147)],_0x5d8da7[_0x2e58fb(0x1e4)]),'stdio':_0x5d8da7['BgiTi'],'cwd':process[_0x2e58fb(0x139)](),'env':Object[_0x2e58fb(0x196)]({},process[_0x2e58fb(0x1b1)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x2e58fb(0x1db)](_0x5e6ca5),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x41f8b2[_0x2e58fb(0x1c2)]['testContextOptions'][_0x2e58fb(0x17e)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x41f8b2['config'][_0x2e58fb(0x1c0)][_0x2e58fb(0x183)],'BROWSERSTACK_LOG_LEVEL':_0x41f8b2[_0x2e58fb(0x1c2)][_0x2e58fb(0x13d)]})}),_0x4410e2=()=>{const _0x390ea6=_0x2e58fb;try{const _0x30bb3d=path[_0x390ea6(0x1d3)](helper[_0x390ea6(0x1f5)](),_0x5d8da7[_0x390ea6(0x1c7)],_0x5d8da7[_0x390ea6(0x1cf)]);if(fs[_0x390ea6(0x184)](_0x30bb3d)){let _0x3bff1a=fs[_0x390ea6(0x164)](_0x30bb3d);_0x3bff1a=JSON[_0x390ea6(0x141)](_0x3bff1a),_0x41f8b2['errorMessage']=_0x3bff1a,fs[_0x390ea6(0x154)](_0x30bb3d);}}catch(_0x90b22a){logger[_0x390ea6(0x172)](_0x5d8da7[_0x390ea6(0x163)](_0x5d8da7['dkJjB'],_0x90b22a));}};_0x234f21['on'](_0x5d8da7[_0x2e58fb(0x173)],async _0x48078d=>{const _0x5a5964=_0x2e58fb;try{const _0x2009ca=_0x5d8da7[_0x5a5964(0x12f)]['split']('|');let _0x58d22f=0x0;while(!![]){switch(_0x2009ca[_0x58d22f++]){case'0':logger['info']('Deleting\x20'+_0x5e2f49);continue;case'1':process[_0x5a5964(0x130)]=_0x48078d;continue;case'2':_0x5d8da7[_0x5a5964(0x186)](_0x4410e2);continue;case'3':fs[_0x5a5964(0x154)](_0x5e2f49);continue;case'4':fs[_0x5a5964(0x154)](_0x265702);continue;case'5':logger[_0x5a5964(0x172)](_0x5a5964(0x18e)+_0x48078d);continue;case'6':await helper[_0x5a5964(0x1bc)](_0x41f8b2);continue;case'7':logger[_0x5a5964(0x172)](_0x5a5964(0x187)+_0x265702);continue;}break;}}catch(_0x587428){logger[_0x5a5964(0x172)](_0x5d8da7[_0x5a5964(0x1d5)](_0x5d8da7[_0x5a5964(0x19b)],_0x587428));}});}module[a33_0x311b17(0x182)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a34_0x595c(){const _0x5a895f=['winstonLogger','787488joydpj','apply','1912724FWsYeJ','khBGH','jJWnQ','Running\x20existing\x20global\x20setup','973EJYyAF','1.33.0','toString','Dqpmv','WAgqe','requirePWModule','./reporter/pwUtils','Not\x20able\x20to\x20import\x20globalSetup','../../helpers/logger','LXRpe','fork','error','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','2483940vyDkDB','34IGXcXb','compareVersions','4581468ndZTTw','SVsyZ','736332ayvaIV','../../helpers/test-observability/utils','7syvEHK','8SkvZyT','function','AVbNy','KwlpD','fwHzP','env','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','Call\x20to\x20child\x20fork\x20with\x20args\x20','137160WWcgWu','Path\x20','JHXrD'];a34_0x595c=function(){return _0x5a895f;};return a34_0x595c();}const a34_0xab2672=a34_0x5290;function a34_0x5290(_0x5e5717,_0x470359){const _0x595c58=a34_0x595c();return a34_0x5290=function(_0x5290ae,_0x8c2f31){_0x5290ae=_0x5290ae-0xc2;let _0x5690df=_0x595c58[_0x5290ae];return _0x5690df;},a34_0x5290(_0x5e5717,_0x470359);}(function(_0x31c55a,_0x41911a){const _0xd43efb=a34_0x5290,_0x2f59e2=_0x31c55a();while(!![]){try{const _0x306d89=parseInt(_0xd43efb(0xdf))/0x1*(parseInt(_0xd43efb(0xc6))/0x2)+-parseInt(_0xd43efb(0xd9))/0x3+parseInt(_0xd43efb(0xdb))/0x4+-parseInt(_0xd43efb(0xc5))/0x5+parseInt(_0xd43efb(0xca))/0x6*(parseInt(_0xd43efb(0xcc))/0x7)+parseInt(_0xd43efb(0xcd))/0x8*(parseInt(_0xd43efb(0xc8))/0x9)+parseInt(_0xd43efb(0xd5))/0xa;if(_0x306d89===_0x41911a)break;else _0x2f59e2['push'](_0x2f59e2['shift']());}catch(_0x337a6d){_0x2f59e2['push'](_0x2f59e2['shift']());}}}(a34_0x595c,0x5d000));const child_process=require('child_process'),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{getFrameworkVersion,debug}=require(a34_0xab2672(0xcb)),helper=require('../../helpers/helper'),{getLoadUtilsPath,getForkProcessPath}=require(a34_0xab2672(0xe5)),logger=require(a34_0xab2672(0xe7))[a34_0xab2672(0xd8)];module['exports']=async function(_0x269994){const _0x5f3429=a34_0xab2672,_0x53a5d4={'fwHzP':function(_0x318290,_0x46dfde){return _0x318290(_0x46dfde);},'JHXrD':function(_0x3cf21c){return _0x3cf21c();},'WAgqe':'./mock-process.js','vjvdH':_0x5f3429(0xde),'khBGH':function(_0x140d82){return _0x140d82();},'jJWnQ':function(_0x41842,_0x8cade2){return _0x41842(_0x8cade2);},'LXRpe':function(_0x2869e9,_0x3a7cdf){return _0x2869e9>=_0x3a7cdf;},'AVbNy':_0x5f3429(0xe0),'SVsyZ':function(_0x4dbd5f,_0x4d860e,_0x5b2002){return _0x4dbd5f(_0x4d860e,_0x5b2002);},'OVXqB':function(_0x3ab682,_0x5a7f80){return _0x3ab682!==_0x5a7f80;},'Dqpmv':_0x5f3429(0xce),'KwlpD':_0x5f3429(0xe6)},_0x3496fd=child_process[_0x5f3429(0xc2)];child_process[_0x5f3429(0xc2)]=function(){const _0x3e9601=_0x5f3429;return _0x53a5d4[_0x3e9601(0xd1)](debug,_0x3e9601(0xd4)+arguments[0x0]),arguments[0x0]['includes'](_0x53a5d4[_0x3e9601(0xd7)](getForkProcessPath))?arguments[0x0]=require['resolve'](_0x53a5d4[_0x3e9601(0xe3)]):logger[_0x3e9601(0xc3)](_0x3e9601(0xd6)+_0x53a5d4['JHXrD'](getForkProcessPath)+'\x20is\x20not\x20found'),_0x3496fd[_0x3e9601(0xda)](null,arguments);};if(process[_0x5f3429(0xd2)][_0x5f3429(0xc4)]){_0x53a5d4[_0x5f3429(0xd1)](debug,_0x53a5d4['vjvdH']);try{const {loadGlobalHook:_0x32500a}=helper[_0x5f3429(0xe4)][_0x5f3429(0xda)](null,_0x53a5d4[_0x5f3429(0xdc)](getLoadUtilsPath)),_0x10ae7e=_0x53a5d4['jJWnQ'](getFrameworkVersion,FRAMEWORKS['PLAYWRIGHT']);let _0x4b0015=_0x269994;if(_0x53a5d4[_0x5f3429(0xe8)](helper[_0x5f3429(0xc7)](_0x10ae7e,_0x53a5d4[_0x5f3429(0xcf)]),0x0)){const _0x13856e={};_0x13856e['config']=_0x269994,_0x4b0015=_0x13856e;}const _0x56022e=await _0x53a5d4[_0x5f3429(0xc9)](_0x32500a,_0x4b0015,process[_0x5f3429(0xd2)][_0x5f3429(0xc4)]);if(_0x53a5d4['OVXqB'](typeof _0x56022e,_0x53a5d4[_0x5f3429(0xe2)]))throw new Error(_0x53a5d4[_0x5f3429(0xd0)]);return _0x56022e['apply'](null,arguments);}catch(_0x1597ac){_0x53a5d4[_0x5f3429(0xdd)](debug,_0x5f3429(0xd3)+_0x1597ac[_0x5f3429(0xe1)]());}}};
|