browserstack-node-sdk 1.34.1 → 1.34.3
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 +2 -2
- package/src/ai-sdk-node/bundle.js +1 -0
- package/src/ai-sdk-node/extensions/chrome_extension.crx +0 -0
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/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/ai-sdk/aiSdkWrapper.js +1 -0
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -0
- 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/timeoutPromise.js +1 -0
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a28_0x53c482=a28_0x5948;(function(_0x30c4bf,_0x40383d){const _0x5c6249=a28_0x5948,_0x59aa0e=_0x30c4bf();while(!![]){try{const _0x270dd8=parseInt(_0x5c6249(0xb0))/0x1*(parseInt(_0x5c6249(0xd1))/0x2)+parseInt(_0x5c6249(0x98))/0x3*(-parseInt(_0x5c6249(0xdd))/0x4)+-parseInt(_0x5c6249(0xa7))/0x5+-parseInt(_0x5c6249(0xe8))/0x6+-parseInt(_0x5c6249(0xd6))/0x7+-parseInt(_0x5c6249(0x8b))/0x8+-parseInt(_0x5c6249(0xe1))/0x9*(-parseInt(_0x5c6249(0x95))/0xa);if(_0x270dd8===_0x40383d)break;else _0x59aa0e['push'](_0x59aa0e['shift']());}catch(_0x1df2a0){_0x59aa0e['push'](_0x59aa0e['shift']());}}}(a28_0x4303,0x69b49));const logger=require(a28_0x53c482(0xc0))['winstonLogger'],helper=require(a28_0x53c482(0xb6)),constants=require('../../../bin/utils/constants'),hubAllocator=require(a28_0x53c482(0x8c)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a28_0x53c482(0xcf)),{setAccessibilityCapabilities,setExtension}=require('../accessibility-automation/helper'),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require('../../../helpers/accessibility-automation/helper'),globals=require(a28_0x53c482(0x89)),modify=(_0x31ce2b,_0x55fcc8=null,_0x14bc4b=![])=>{const _0x2960c6=a28_0x53c482,_0x39e413={'smtcb':function(_0x2f163b,_0x5bd95d){return _0x2f163b!==_0x5bd95d;},'itgHD':_0x2960c6(0x96),'wFJOu':function(_0x199859,_0xe0656e){return _0x199859!==_0xe0656e;},'RGbIg':function(_0x33a761,_0x80d4ca){return _0x33a761+_0x80d4ca;},'MBFgG':_0x2960c6(0xf4),'FhaZp':_0x2960c6(0xb9),'PFwpt':_0x2960c6(0xa2),'zyATZ':_0x2960c6(0xd8),'gewuh':_0x2960c6(0xa1),'UWlfX':'edgeOptions','iUAgU':_0x2960c6(0xe2),'JpMfy':_0x2960c6(0xaf),'wdjnC':_0x2960c6(0x9d),'SeLBH':'se:ieOptions','WdbXO':_0x2960c6(0xd9),'igTAS':function(_0x56e37,_0x1a4c6e){return _0x56e37===_0x1a4c6e;},'FCcen':_0x2960c6(0xe3),'HaXrZ':'Setting\x20Browserstack\x20capabilities','MZOJn':_0x2960c6(0x9c),'ZUrfY':_0x2960c6(0x8e),'LxJDc':function(_0x17936d,_0x5dc630,_0x5c0571){return _0x17936d(_0x5dc630,_0x5c0571);},'bpOwa':function(_0x4308fe,_0x1a3dcb){return _0x4308fe(_0x1a3dcb);},'pQYht':function(_0x38b307,_0xc0665a,_0xbbdd68){return _0x38b307(_0xc0665a,_0xbbdd68);},'XYTyf':_0x2960c6(0xb2),'AUPFG':_0x2960c6(0x9b),'YnwYx':'isAccessibilityPlatform','wpdgV':function(_0xa4c44a){return _0xa4c44a();},'SkUSJ':function(_0x4cafcc,_0x4cb562){return _0x4cafcc(_0x4cb562);},'DvivB':function(_0x40e92d,_0x3005fc){return _0x40e92d(_0x3005fc);},'MRDbE':function(_0xa2a63c,_0x3f5311){return _0xa2a63c!==_0x3f5311;},'FQnAZ':function(_0x535ec6,_0x5923c2){return _0x535ec6!==_0x5923c2;},'IIJzc':'Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','stoet':_0x2960c6(0xae)},_0x2e73a0=helper['requireHttpClient']();let _0x24d923;try{_0x24d923=helper[_0x2960c6(0x9a)](),_0x24d923[_0x2960c6(0xcd)]&&(_0x24d923['Builder']=_0x24d923[_0x2960c6(0xcd)]);}catch(_0x1be582){return;}if(helper[_0x2960c6(0xc8)]()){const _0x58ab48={};_0x58ab48[_0x2960c6(0xc5)]=_0x31ce2b[_0x2960c6(0xcb)],helper['setLogLevel'](_0x58ab48,new Map(),new Map()),logger[_0x2960c6(0xa5)](_0x39e413[_0x2960c6(0xeb)]),logger[_0x2960c6(0xdf)](_0x39e413[_0x2960c6(0xb8)]);}class _0x10201d extends _0x2e73a0['HttpClient']{['send'](_0x57bc61){const _0x3e6661=_0x2960c6;if(_0x39e413['smtcb'](_0x57bc61[_0x3e6661(0xb3)],_0x39e413['itgHD'])&&_0x39e413['wFJOu'](global[_0x3e6661(0x8a)],''))try{global[_0x3e6661(0x8a)]=_0x39e413['RGbIg'](_0x39e413[_0x3e6661(0x9e)](_0x39e413[_0x3e6661(0xd3)],global[_0x3e6661(0x8a)]),_0x39e413['FhaZp']),this[_0x3e6661(0xf6)]=hubAllocator[_0x3e6661(0x91)](global[_0x3e6661(0x8a)]),logger[_0x3e6661(0xdf)](_0x3e6661(0x88)+global[_0x3e6661(0x8a)]),global[_0x3e6661(0x8a)]='';}catch(_0x29ae71){logger[_0x3e6661(0xd5)](_0x29ae71);}return super[_0x3e6661(0xea)](_0x57bc61);}}class _0x480b32 extends _0x24d923['Builder']{['setServer'](){const _0x2257ad=_0x2960c6;return this['url_']=helper['getHubUrl'](_0x31ce2b),logger[_0x2257ad(0xdf)](_0x2257ad(0xa6)+this[_0x2257ad(0xe0)]),this;}[_0x2960c6(0xce)](_0x418700){const _0x59dbdc=_0x2960c6;let _0x43c010={};for(const _0x15bd40 in _0x418700){switch(_0x15bd40){case _0x39e413[_0x59dbdc(0xd2)]:case _0x39e413[_0x59dbdc(0xed)]:this[_0x59dbdc(0xa9)]&&(_0x43c010=this[_0x59dbdc(0xa9)][_0x59dbdc(0xe6)](this['chromeOptions_'][_0x59dbdc(0xc1)])||{},this[_0x59dbdc(0xa9)][_0x59dbdc(0xdc)](this[_0x59dbdc(0xa9)][_0x59dbdc(0xc1)],helper[_0x59dbdc(0xe7)](_0x43c010,_0x418700[_0x15bd40])));break;case _0x39e413[_0x59dbdc(0xec)]:case _0x39e413[_0x59dbdc(0xc4)]:this[_0x59dbdc(0xab)]&&(_0x43c010=this[_0x59dbdc(0xab)][_0x59dbdc(0xe6)](this[_0x59dbdc(0xab)]['CAPABILITY_KEY'])||{},this[_0x59dbdc(0xab)][_0x59dbdc(0xdc)](this[_0x59dbdc(0xab)][_0x59dbdc(0xc1)],helper['mergeDeep'](_0x43c010,_0x418700[_0x15bd40])));break;case _0x39e413[_0x59dbdc(0xee)]:case _0x39e413[_0x59dbdc(0xbd)]:this[_0x59dbdc(0xac)]&&(_0x43c010=this[_0x59dbdc(0xac)][_0x59dbdc(0xe6)](this[_0x59dbdc(0xac)][_0x59dbdc(0xc1)])||{},this[_0x59dbdc(0xac)][_0x59dbdc(0xdc)](this[_0x59dbdc(0xac)][_0x59dbdc(0xc1)],helper['mergeDeep'](_0x43c010,_0x418700[_0x15bd40])));break;case _0x39e413[_0x59dbdc(0x90)]:this[_0x59dbdc(0x92)]&&(_0x43c010=this[_0x59dbdc(0x92)][_0x59dbdc(0xe6)](this['safariOptions_']['CAPABILITY_KEY'])||{},this[_0x59dbdc(0x92)][_0x59dbdc(0xdc)](this['safariOptions_']['CAPABILITY_KEY'],helper[_0x59dbdc(0xe7)](_0x43c010,_0x418700[_0x15bd40])));break;case _0x39e413['SeLBH']:case _0x39e413['WdbXO']:this[_0x59dbdc(0xe4)]&&(_0x43c010=this[_0x59dbdc(0xe4)]['get'](this[_0x59dbdc(0xe4)][_0x59dbdc(0xc1)])||{},this[_0x59dbdc(0xe4)][_0x59dbdc(0xdc)](this[_0x59dbdc(0xe4)]['CAPABILITY_KEY'],helper[_0x59dbdc(0xe7)](_0x43c010,_0x418700[_0x15bd40])));break;}}}[_0x2960c6(0xdb)](){const _0x2ec4f7=_0x2960c6;return logger[_0x2ec4f7(0xdf)](_0x39e413[_0x2ec4f7(0xd7)]),this[_0x2ec4f7(0xce)](_0x31ce2b[_0x2ec4f7(0xf5)]),Object[_0x2ec4f7(0xde)](_0x31ce2b[_0x2ec4f7(0xf5)])['forEach'](_0x13e701=>{const _0x167438=_0x2ec4f7,_0x501a55=this['capabilities_'][_0x167438(0xe6)](_0x13e701);_0x39e413['igTAS'](typeof _0x501a55,_0x39e413['FCcen'])?this['capabilities_'][_0x167438(0xdc)](_0x13e701,helper[_0x167438(0xe7)](_0x501a55,_0x31ce2b[_0x167438(0xf5)][_0x13e701])):this[_0x167438(0xa4)][_0x167438(0xdc)](_0x13e701,_0x31ce2b['capability'][_0x13e701]);}),this;}[_0x2960c6(0x9f)](){const _0x1a28aa=_0x2960c6,_0x52b7bd={'btlCe':function(_0x2874d0,_0x189381,_0x539de4){const _0x4df813=a28_0x5948;return _0x39e413[_0x4df813(0x8d)](_0x2874d0,_0x189381,_0x539de4);},'hpOeD':function(_0x3d690f,_0x3cb7df,_0x2e5d97){const _0x1d1307=a28_0x5948;return _0x39e413[_0x1d1307(0x8d)](_0x3d690f,_0x3cb7df,_0x2e5d97);}};if(helper[_0x1a28aa(0xc8)]()){const _0x678a0a=_0x39e413[_0x1a28aa(0xad)][_0x1a28aa(0xbe)]('|');let _0x594931=0x0;while(!![]){switch(_0x678a0a[_0x594931++]){case'0':this['setServer']();continue;case'1':if(helper[_0x1a28aa(0x97)](_0x31ce2b[_0x1a28aa(0xf1)]['proxyUrl']))this[_0x1a28aa(0xa8)]=helper['getHttpAgent'](_0x31ce2b['proxySettings'][_0x1a28aa(0xf2)]);else _0x31ce2b[_0x1a28aa(0xf1)]['proxyUrl']&&(this['proxy_']=_0x31ce2b['proxySettings']['proxyUrl'],logger['debug'](_0x1a28aa(0x99)+this[_0x1a28aa(0xc2)]));continue;case'2':logger[_0x1a28aa(0xdf)](_0x39e413[_0x1a28aa(0xb7)]);continue;case'3':this['setCapabilities']();continue;case'4':globals['getGlobal'](_0x39e413[_0x1a28aa(0xaa)])&&(!_0x39e413[_0x1a28aa(0x8d)](setExtension,this,_0x31ce2b)&&globals['setGlobal'](_0x39e413[_0x1a28aa(0xaa)],![]));continue;case'5':_0x39e413['wpdgV'](isAccessibilityAutomationSession)&&_0x39e413[_0x1a28aa(0xa0)](setAccessibilityCapabilities,_0x31ce2b);continue;}break;}}const _0x13074c=super['build']();return _0x13074c[_0x1a28aa(0xda)][_0x1a28aa(0xe5)](_0xdf08ab=>{const _0x76725=_0x1a28aa;try{const _0x1d832c=_0xdf08ab[_0x76725(0xef)][_0x76725(0xe6)](_0x39e413['MZOJn']);_0x1d832c?(logger['debug'](_0x76725(0xe9)+_0x1d832c),hubAllocator['updateHubUrl'](_0x1d832c),helper[_0x76725(0xf0)](_0x1d832c)):logger[_0x76725(0xdf)](_0x39e413[_0x76725(0xd0)]);}catch(_0x3a15ee){logger['debug'](_0x76725(0xb5)+_0x3a15ee);}}),_0x13074c[_0x1a28aa(0x94)]=0x0,_0x13074c['then']&&_0x13074c[_0x1a28aa(0xe5)](_0xf12dff=>{const _0x2e52e1=_0x1a28aa,_0x94d513={'GKNZe':function(_0x3f8484,_0x5d2765,_0x171bb0){const _0x4064f0=a28_0x5948;return _0x39e413[_0x4064f0(0xc3)](_0x3f8484,_0x5d2765,_0x171bb0);}};_0x39e413[_0x2e52e1(0xc3)](overrideQuit,_0xf12dff,_0x13074c),_0x39e413[_0x2e52e1(0xa0)](overrideTakeScreenshot,_0xf12dff),helper['overrideGet'](_0xf12dff,_0x31ce2b),helper['overrideExecute'](_0xf12dff,_0x31ce2b),_0xf12dff[_0x2e52e1(0xc6)]=async()=>{const _0x215654=_0x2e52e1;return await _0x94d513[_0x215654(0xc9)](getAccessibilityResultsSummary,_0xf12dff,global);},_0xf12dff[_0x2e52e1(0xf3)]=async()=>{const _0x568b08=_0x2e52e1;return await _0x52b7bd[_0x568b08(0xc7)](getAccessibilityResults,_0xf12dff,global);};}),_0x13074c[_0x1a28aa(0xc6)]=async()=>{const _0x21e6bc=_0x1a28aa;return await _0x52b7bd[_0x21e6bc(0x93)](getAccessibilityResultsSummary,_0x13074c,global);},_0x13074c[_0x1a28aa(0xf3)]=async()=>{const _0x2569d0=_0x1a28aa;return await _0x52b7bd[_0x2569d0(0xc7)](getAccessibilityResults,_0x13074c,global);},_0x39e413['SkUSJ'](overrideTakeScreenshot,_0x13074c),_0x39e413['DvivB'](overrideQuit,_0x13074c),helper[_0x1a28aa(0xbc)](_0x13074c,_0x31ce2b),helper[_0x1a28aa(0xd4)](_0x13074c,_0x31ce2b),helper['isUndefined'](global[_0x1a28aa(0xa3)])&&(global['__driversArray']=[]),helper[_0x1a28aa(0xb4)](global['__drivers'])&&(global['__drivers']=[]),global[_0x1a28aa(0xa3)][_0x1a28aa(0xba)](_0x13074c),global['__driver']=_0x13074c,_0x39e413['MRDbE'](global[_0x1a28aa(0x8f)],undefined)&&global[_0x1a28aa(0x8f)][_0x1a28aa(0xba)](_0x13074c),_0x55fcc8&&helper[_0x1a28aa(0xb4)](_0x55fcc8['global'][_0x1a28aa(0xa3)])&&(_0x55fcc8['global']['__driversArray']=[]),_0x55fcc8&&_0x39e413['FQnAZ'](_0x55fcc8['global'][_0x1a28aa(0x8f)],undefined)&&(_0x55fcc8[_0x1a28aa(0xbb)][_0x1a28aa(0x8f)][_0x1a28aa(0xba)](_0x13074c),_0x55fcc8[_0x1a28aa(0xbb)][_0x1a28aa(0xa3)][_0x1a28aa(0xba)](_0x13074c)),_0x13074c;}}return _0x24d923['originalBuilder']=_0x24d923[_0x2960c6(0xbf)],_0x24d923[_0x2960c6(0xbf)]=_0x480b32,_0x2e73a0[_0x2960c6(0xcc)]=_0x10201d,_0x24d923;};module[a28_0x53c482(0xb1)][a28_0x53c482(0xca)]=modify;function a28_0x5948(_0x1f081b,_0x58f43d){const _0x4303ae=a28_0x4303();return a28_0x5948=function(_0x5948b1,_0x2f8f5d){_0x5948b1=_0x5948b1-0x88;let _0x2b78fa=_0x4303ae[_0x5948b1];return _0x2b78fa;},a28_0x5948(_0x1f081b,_0x58f43d);}function a28_0x4303(){const _0x835feb=['getAccessibilityResults','https://','capability','options_','New\x20hub\x20url\x20set\x20to\x20','../../../helpers/globals','newHubUrl','4808056TJVcRO','../../../hubAllocationMethods','pQYht','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','__drivers','wdjnC','getRequestOptions','safariOptions_','hpOeD','quitCount_','10410noKyig','/session','isPacProxy','235965aBSsJf','Proxy\x20set\x20to\x20','requireSeleniumWebdriver','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','optimalHubUrl','safari.options','RGbIg','build','bpOwa','ms:edgeOptions','goog:chromeOptions','__driversArray','capabilities_','info','Hub\x20url\x20set\x20to\x20','1138660HiDVap','agent_','chromeOptions_','YnwYx','edgeOptions_','firefoxOptions_','XYTyf','Modifying\x20webdriver\x20builder','firefoxOptions','81938lZQSdw','exports','5|0|3|1|4|2','path','isUndefined','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','../../../helpers/helper','AUPFG','stoet','/wd/hub','push','global','overrideGet','JpMfy','split','Builder','../../../helpers/logger','CAPABILITY_KEY','proxy_','LxJDc','UWlfX','logLevel','getAccessibilityResultsSummary','btlCe','isBrowserstackInfra','GKNZe','browserstackAgentObservability','browserStackLogLevel','HttpClient','originalBuilder','__setBrowserOptions','../../../helpers/patchHelpers','ZUrfY','14qRBIGJ','PFwpt','MBFgG','overrideExecute','error','4724944ZmuGAw','HaXrZ','chromeOptions','ieOptions','session_','setCapabilities','set','12GktxMt','keys','debug','url_','19053gMOFyg','moz:firefoxOptions','object','ieOptions_','then','get','mergeDeep','3628188BsCNBr','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','send','IIJzc','gewuh','zyATZ','iUAgU','caps_','storeOptimalHubUrl','proxySettings','proxyUrl'];a28_0x4303=function(){return _0x835feb;};return a28_0x4303();}
|
|
1
|
+
const a29_0x271bf5=a29_0x10e9;(function(_0x32f8d4,_0x417ce9){const _0x5bff36=a29_0x10e9,_0x1ec79d=_0x32f8d4();while(!![]){try{const _0x2d110d=-parseInt(_0x5bff36(0xb2))/0x1+-parseInt(_0x5bff36(0x9e))/0x2+parseInt(_0x5bff36(0xdc))/0x3*(parseInt(_0x5bff36(0xcd))/0x4)+-parseInt(_0x5bff36(0xbb))/0x5*(parseInt(_0x5bff36(0xf3))/0x6)+parseInt(_0x5bff36(0xd0))/0x7+-parseInt(_0x5bff36(0x90))/0x8+-parseInt(_0x5bff36(0xb3))/0x9*(-parseInt(_0x5bff36(0x8b))/0xa);if(_0x2d110d===_0x417ce9)break;else _0x1ec79d['push'](_0x1ec79d['shift']());}catch(_0x2dfcf5){_0x1ec79d['push'](_0x1ec79d['shift']());}}}(a29_0xb824,0x543e7));function a29_0xb824(){const _0x4aea09=['HttpClient','global','guxgF','10wBjUvF','NIUBp','setServer','overrideExecute','browserStackLogLevel','2409488LKfkiF','originalBuilder','evLZG','then','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','ssZYW','caps_','forEach','getRequestOptions','debug','getHubUrl','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','0|5|4|3|2|1','658384SiXIhP','New\x20hub\x20url\x20set\x20to\x20','__setBrowserOptions','__drivers','safariOptions_','get','ldSqx','xtCCM','session_','ms:edgeOptions','options_','QEGpU','hsNML','Eejtp','pVSlP','sqwKC','error','__driversArray','isBrowserstackInfra','Builder','247307EKOdMw','2779065NnjRzP','url_','../../../helpers/patchHelpers','chromeOptions','getGlobal','bIQoP','storeOptimalHubUrl','ieOptions','768415DVlkVt','firefoxOptions','capabilities_','vEkIO','firefoxOptions_','../../../helpers/logger','getAccessibilityResults','build','nuwjM','VVmso','Proxy\x20set\x20to\x20','SetTN','setGlobal','send','capability','../../../bin/utils/constants','isAccessibilityPlatform','chromeOptions_','272XWxmEy','../../../helpers/globals','PXdVx','3444182aqqhTY','keys','/wd/hub','split','getHttpAgent','overrideGet','WkhRO','requireHttpClient','proxyUrl','CAPABILITY_KEY','/session','gNMfn','25395anlciJ','IRGcz','quitCount_','Modifying\x20webdriver\x20builder','ECgJV','getAccessibilityResultsSummary','set','../../../hubAllocationMethods','setCapabilities','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','../accessibility-automation/helper','path','XQEaq','__driver','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','../../../helpers/accessibility-automation/helper','ieOptions_','proxy_','edgeOptions','safari.options','UJbiJ','mergeDeep','GDlZF','6CPxCFA','proxySettings','browserstackAgentObservability','taWfe','wSGIm','push','isPacProxy','rmClD','Hub\x20url\x20set\x20to\x20','edgeOptions_','isUndefined','buhXe','IugbG','info','agent_','newHubUrl','object','HhdVX','GrTCN','tZICx'];a29_0xb824=function(){return _0x4aea09;};return a29_0xb824();}function a29_0x10e9(_0x237ca2,_0x3cb5af){const _0xb8240a=a29_0xb824();return a29_0x10e9=function(_0x10e9a5,_0x379354){_0x10e9a5=_0x10e9a5-0x7e;let _0x5b3534=_0xb8240a[_0x10e9a5];return _0x5b3534;},a29_0x10e9(_0x237ca2,_0x3cb5af);}const logger=require(a29_0x271bf5(0xc0))['winstonLogger'],helper=require('../../../helpers/helper'),constants=require(a29_0x271bf5(0xca)),hubAllocator=require(a29_0x271bf5(0xe3)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a29_0x271bf5(0xb5)),{setAccessibilityCapabilities,setExtension}=require(a29_0x271bf5(0xe6)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0x271bf5(0xeb)),globals=require(a29_0x271bf5(0xce)),modify=(_0x4a3db8,_0x4bd49a=null,_0x3d7e2b=![])=>{const _0x535239=a29_0x271bf5,_0x32cc8b={'rmClD':function(_0x4d3a0c,_0x11f690){return _0x4d3a0c!==_0x11f690;},'XQEaq':_0x535239(0xda),'bIQoP':function(_0x518cd1,_0x1ec4bd){return _0x518cd1!==_0x1ec4bd;},'hsNML':function(_0x26a291,_0x460fa9){return _0x26a291+_0x460fa9;},'ssZYW':'https://','IugbG':_0x535239(0xd2),'vEkIO':'goog:chromeOptions','buhXe':_0x535239(0xb6),'tZICx':_0x535239(0xa7),'MJbZU':_0x535239(0xee),'QXeUa':'moz:firefoxOptions','IRGcz':_0x535239(0xbc),'evLZG':_0x535239(0xef),'VVmso':'se:ieOptions','PIaqZ':_0x535239(0xba),'UJbiJ':function(_0x4a681a,_0x5495fa){return _0x4a681a===_0x5495fa;},'sqwKC':_0x535239(0x84),'taWfe':'Setting\x20Browserstack\x20capabilities','guxgF':'optimalHubUrl','PXdVx':_0x535239(0xea),'xtCCM':function(_0x5dbf24,_0x1d6f38,_0x222e29){return _0x5dbf24(_0x1d6f38,_0x222e29);},'pVSlP':function(_0x2bd19f,_0x95d51,_0x1f6879){return _0x2bd19f(_0x95d51,_0x1f6879);},'dccOr':function(_0x1a183e,_0x512980,_0x2ec7e6){return _0x1a183e(_0x512980,_0x2ec7e6);},'NIUBp':function(_0x1ad1eb,_0x671828){return _0x1ad1eb(_0x671828);},'nuwjM':_0x535239(0x9d),'yXZPw':function(_0x612428){return _0x612428();},'QEGpU':_0x535239(0x9c),'GrTCN':_0x535239(0xcb),'gNMfn':function(_0x4d7e75,_0x5a8c6e,_0xe9dfa0){return _0x4d7e75(_0x5a8c6e,_0xe9dfa0);},'SetTN':function(_0x545512,_0x5c9ad8){return _0x545512(_0x5c9ad8);},'GDlZF':function(_0x4a8359,_0x595629){return _0x4a8359(_0x595629);},'ECgJV':function(_0x873d84,_0x5c9bcc){return _0x873d84!==_0x5c9bcc;},'TXcmj':_0x535239(0xe5),'SSwtF':_0x535239(0xdf)},_0x19af79=helper[_0x535239(0xd7)]();let _0x30a5f4;try{_0x30a5f4=helper['requireSeleniumWebdriver'](),_0x30a5f4[_0x535239(0x91)]&&(_0x30a5f4[_0x535239(0xb1)]=_0x30a5f4[_0x535239(0x91)]);}catch(_0x37da77){return;}if(helper[_0x535239(0xb0)]()){const _0x156358={};_0x156358['logLevel']=_0x4a3db8[_0x535239(0x8f)],helper['setLogLevel'](_0x156358,new Map(),new Map()),logger[_0x535239(0x81)](_0x32cc8b['TXcmj']),logger['debug'](_0x32cc8b['SSwtF']);}class _0x7f2d02 extends _0x19af79[_0x535239(0x88)]{[_0x535239(0xc8)](_0x33b418){const _0x196d8c=_0x535239;if(_0x32cc8b[_0x196d8c(0xfa)](_0x33b418[_0x196d8c(0xe7)],_0x32cc8b[_0x196d8c(0xe8)])&&_0x32cc8b[_0x196d8c(0xb8)](global[_0x196d8c(0x83)],''))try{global[_0x196d8c(0x83)]=_0x32cc8b[_0x196d8c(0xaa)](_0x32cc8b[_0x196d8c(0xaa)](_0x32cc8b[_0x196d8c(0x96)],global[_0x196d8c(0x83)]),_0x32cc8b[_0x196d8c(0x80)]),this[_0x196d8c(0xa8)]=hubAllocator[_0x196d8c(0x99)](global['newHubUrl']),logger['debug'](_0x196d8c(0x9f)+global['newHubUrl']),global['newHubUrl']='';}catch(_0x42fdc4){logger[_0x196d8c(0xae)](_0x42fdc4);}return super[_0x196d8c(0xc8)](_0x33b418);}}class _0x1c29f4 extends _0x30a5f4['Builder']{[_0x535239(0x8d)](){const _0x1cac95=_0x535239;return this[_0x1cac95(0xb4)]=helper[_0x1cac95(0x9b)](_0x4a3db8),logger[_0x1cac95(0x9a)](_0x1cac95(0xfb)+this[_0x1cac95(0xb4)]),this;}[_0x535239(0xa0)](_0x364648){const _0x3360fb=_0x535239;let _0x955835={};for(const _0x524b29 in _0x364648){switch(_0x524b29){case _0x32cc8b[_0x3360fb(0xbe)]:case _0x32cc8b[_0x3360fb(0x7f)]:this[_0x3360fb(0xcc)]&&(_0x955835=this['chromeOptions_']['get'](this[_0x3360fb(0xcc)][_0x3360fb(0xd9)])||{},this['chromeOptions_']['set'](this[_0x3360fb(0xcc)]['CAPABILITY_KEY'],helper[_0x3360fb(0xf1)](_0x955835,_0x364648[_0x524b29])));break;case _0x32cc8b[_0x3360fb(0x87)]:case _0x32cc8b['MJbZU']:this[_0x3360fb(0xfc)]&&(_0x955835=this[_0x3360fb(0xfc)][_0x3360fb(0xa3)](this[_0x3360fb(0xfc)]['CAPABILITY_KEY'])||{},this['edgeOptions_'][_0x3360fb(0xe2)](this[_0x3360fb(0xfc)][_0x3360fb(0xd9)],helper[_0x3360fb(0xf1)](_0x955835,_0x364648[_0x524b29])));break;case _0x32cc8b['QXeUa']:case _0x32cc8b[_0x3360fb(0xdd)]:this['firefoxOptions_']&&(_0x955835=this[_0x3360fb(0xbf)]['get'](this[_0x3360fb(0xbf)]['CAPABILITY_KEY'])||{},this[_0x3360fb(0xbf)][_0x3360fb(0xe2)](this[_0x3360fb(0xbf)][_0x3360fb(0xd9)],helper[_0x3360fb(0xf1)](_0x955835,_0x364648[_0x524b29])));break;case _0x32cc8b[_0x3360fb(0x92)]:this[_0x3360fb(0xa2)]&&(_0x955835=this['safariOptions_']['get'](this['safariOptions_'][_0x3360fb(0xd9)])||{},this[_0x3360fb(0xa2)]['set'](this[_0x3360fb(0xa2)][_0x3360fb(0xd9)],helper[_0x3360fb(0xf1)](_0x955835,_0x364648[_0x524b29])));break;case _0x32cc8b[_0x3360fb(0xc4)]:case _0x32cc8b['PIaqZ']:this[_0x3360fb(0xec)]&&(_0x955835=this[_0x3360fb(0xec)]['get'](this[_0x3360fb(0xec)]['CAPABILITY_KEY'])||{},this['ieOptions_'][_0x3360fb(0xe2)](this[_0x3360fb(0xec)][_0x3360fb(0xd9)],helper['mergeDeep'](_0x955835,_0x364648[_0x524b29])));break;}}}[_0x535239(0xe4)](){const _0xd5fa23=_0x535239,_0x48679d={'HhdVX':function(_0x1ec350,_0x374432){const _0x45c2fd=a29_0x10e9;return _0x32cc8b[_0x45c2fd(0xf0)](_0x1ec350,_0x374432);},'wSGIm':_0x32cc8b[_0xd5fa23(0xad)]};return logger[_0xd5fa23(0x9a)](_0x32cc8b[_0xd5fa23(0xf6)]),this[_0xd5fa23(0xa0)](_0x4a3db8[_0xd5fa23(0xc9)]),Object[_0xd5fa23(0xd1)](_0x4a3db8[_0xd5fa23(0xc9)])[_0xd5fa23(0x98)](_0x2b355b=>{const _0x3c8663=_0xd5fa23,_0x27885a=this[_0x3c8663(0xbd)]['get'](_0x2b355b);_0x48679d[_0x3c8663(0x85)](typeof _0x27885a,_0x48679d[_0x3c8663(0xf7)])?this[_0x3c8663(0xbd)]['set'](_0x2b355b,helper[_0x3c8663(0xf1)](_0x27885a,_0x4a3db8[_0x3c8663(0xc9)][_0x2b355b])):this['capabilities_'][_0x3c8663(0xe2)](_0x2b355b,_0x4a3db8[_0x3c8663(0xc9)][_0x2b355b]);}),this;}[_0x535239(0xc2)](){const _0xe66987=_0x535239,_0x29ff93={'Eejtp':function(_0x1b0b27,_0x1da2b0,_0x5bdfb4){const _0x535b6c=a29_0x10e9;return _0x32cc8b[_0x535b6c(0xac)](_0x1b0b27,_0x1da2b0,_0x5bdfb4);},'ldSqx':function(_0x3267db,_0xf39e7e,_0x1ecaf4){return _0x32cc8b['dccOr'](_0x3267db,_0xf39e7e,_0x1ecaf4);},'WkhRO':function(_0x4973ee,_0x4a56f8,_0x3a7fa4){const _0x39d7f6=a29_0x10e9;return _0x32cc8b[_0x39d7f6(0xa5)](_0x4973ee,_0x4a56f8,_0x3a7fa4);},'BylVC':function(_0x437b56,_0x46bcd6){const _0x48944a=a29_0x10e9;return _0x32cc8b[_0x48944a(0x8c)](_0x437b56,_0x46bcd6);}};if(helper['isBrowserstackInfra']()){const _0x59c268=_0x32cc8b[_0xe66987(0xc3)][_0xe66987(0xd3)]('|');let _0x4b42ef=0x0;while(!![]){switch(_0x59c268[_0x4b42ef++]){case'0':_0x32cc8b['yXZPw'](isAccessibilityAutomationSession)&&_0x32cc8b['NIUBp'](setAccessibilityCapabilities,_0x4a3db8);continue;case'1':logger[_0xe66987(0x9a)](_0x32cc8b[_0xe66987(0xa9)]);continue;case'2':globals[_0xe66987(0xb7)](_0x32cc8b[_0xe66987(0x86)])&&(!_0x32cc8b[_0xe66987(0xdb)](setExtension,this,_0x4a3db8)&&globals[_0xe66987(0xc7)](_0x32cc8b['GrTCN'],![]));continue;case'3':if(helper[_0xe66987(0xf9)](_0x4a3db8[_0xe66987(0xf4)][_0xe66987(0xd8)]))this[_0xe66987(0x82)]=helper[_0xe66987(0xd4)](_0x4a3db8[_0xe66987(0xf4)][_0xe66987(0xd8)]);else _0x4a3db8['proxySettings'][_0xe66987(0xd8)]&&(this[_0xe66987(0xed)]=_0x4a3db8[_0xe66987(0xf4)][_0xe66987(0xd8)],logger[_0xe66987(0x9a)](_0xe66987(0xc5)+this['proxy_']));continue;case'4':this[_0xe66987(0xe4)]();continue;case'5':this[_0xe66987(0x8d)]();continue;}break;}}const _0x1df831=super['build']();return _0x1df831[_0xe66987(0xa6)][_0xe66987(0x93)](_0xedc44e=>{const _0x2514ab=_0xe66987;try{const _0x30d323=_0xedc44e[_0x2514ab(0x97)][_0x2514ab(0xa3)](_0x32cc8b[_0x2514ab(0x8a)]);_0x30d323?(logger[_0x2514ab(0x9a)](_0x2514ab(0x95)+_0x30d323),hubAllocator['updateHubUrl'](_0x30d323),helper[_0x2514ab(0xb9)](_0x30d323)):logger['debug'](_0x32cc8b[_0x2514ab(0xcf)]);}catch(_0x2539e2){logger['debug'](_0x2514ab(0x94)+_0x2539e2);}}),_0x1df831[_0xe66987(0xde)]=0x0,_0x1df831[_0xe66987(0x93)]&&_0x1df831[_0xe66987(0x93)](_0x185691=>{const _0x438ef7=_0xe66987,_0x7b603b={'jxIyB':function(_0x56f493,_0x49c2de,_0x476d58){const _0x1bd19b=a29_0x10e9;return _0x29ff93[_0x1bd19b(0xa4)](_0x56f493,_0x49c2de,_0x476d58);}};_0x29ff93[_0x438ef7(0xd6)](overrideQuit,_0x185691,_0x1df831),_0x29ff93['BylVC'](overrideTakeScreenshot,_0x185691),helper[_0x438ef7(0xd5)](_0x185691,_0x4a3db8),helper[_0x438ef7(0x8e)](_0x185691,_0x4a3db8),_0x185691['getAccessibilityResultsSummary']=async()=>{const _0x29d6cf=_0x438ef7;return await _0x29ff93[_0x29d6cf(0xab)](getAccessibilityResultsSummary,_0x185691,global);},_0x185691[_0x438ef7(0xc1)]=async()=>{return await _0x7b603b['jxIyB'](getAccessibilityResults,_0x185691,global);};}),_0x1df831[_0xe66987(0xe1)]=async()=>{const _0x38e050=_0xe66987;return await _0x29ff93[_0x38e050(0xab)](getAccessibilityResultsSummary,_0x1df831,global);},_0x1df831[_0xe66987(0xc1)]=async()=>{const _0xb72842=_0xe66987;return await _0x32cc8b[_0xb72842(0xa5)](getAccessibilityResults,_0x1df831,global);},_0x32cc8b[_0xe66987(0xc6)](overrideTakeScreenshot,_0x1df831),_0x32cc8b[_0xe66987(0xf2)](overrideQuit,_0x1df831),helper[_0xe66987(0xd5)](_0x1df831,_0x4a3db8),helper[_0xe66987(0x8e)](_0x1df831,_0x4a3db8),helper['isUndefined'](global['__driversArray'])&&(global['__driversArray']=[]),helper[_0xe66987(0x7e)](global[_0xe66987(0xa1)])&&(global[_0xe66987(0xa1)]=[]),global[_0xe66987(0xaf)][_0xe66987(0xf8)](_0x1df831),global[_0xe66987(0xe9)]=_0x1df831,_0x32cc8b[_0xe66987(0xb8)](global['__drivers'],undefined)&&global[_0xe66987(0xa1)][_0xe66987(0xf8)](_0x1df831),_0x4bd49a&&helper['isUndefined'](_0x4bd49a[_0xe66987(0x89)]['__driversArray'])&&(_0x4bd49a[_0xe66987(0x89)][_0xe66987(0xaf)]=[]),_0x4bd49a&&_0x32cc8b[_0xe66987(0xe0)](_0x4bd49a['global']['__drivers'],undefined)&&(_0x4bd49a[_0xe66987(0x89)][_0xe66987(0xa1)]['push'](_0x1df831),_0x4bd49a[_0xe66987(0x89)][_0xe66987(0xaf)][_0xe66987(0xf8)](_0x1df831)),_0x1df831;}}return _0x30a5f4[_0x535239(0x91)]=_0x30a5f4[_0x535239(0xb1)],_0x30a5f4[_0x535239(0xb1)]=_0x1c29f4,_0x19af79[_0x535239(0x88)]=_0x7f2d02,_0x30a5f4;};module['exports'][a29_0x271bf5(0xf5)]=modify;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a30_0x45c5e7=a30_0x5daa;(function(_0x1b4c42,_0x3a8401){const _0x588934=a30_0x5daa,_0x497760=_0x1b4c42();while(!![]){try{const _0x1a8c44=parseInt(_0x588934(0x143))/0x1*(-parseInt(_0x588934(0x137))/0x2)+-parseInt(_0x588934(0x13e))/0x3+parseInt(_0x588934(0x13c))/0x4+-parseInt(_0x588934(0x135))/0x5*(parseInt(_0x588934(0x139))/0x6)+parseInt(_0x588934(0x144))/0x7*(-parseInt(_0x588934(0x145))/0x8)+-parseInt(_0x588934(0x142))/0x9+parseInt(_0x588934(0x13f))/0xa*(parseInt(_0x588934(0x138))/0xb);if(_0x1a8c44===_0x3a8401)break;else _0x497760['push'](_0x497760['shift']());}catch(_0x263257){_0x497760['push'](_0x497760['shift']());}}}(a30_0x15c4,0x54060));function a30_0x15c4(){const _0x3afe17=['1kmiMmH','7dPFlbS','4538216RToRnM','15ZGvikM','mochaHooks','1230598GIQFBk','3221911ttdCBE','49380OFJPeJ','restore','../../../helpers/request-spy','1857692VdbFQW','clqcv','474306NPdxmj','60nwFaVf','../../../bin/utils/constants','timeout','4610709unNtiG'];a30_0x15c4=function(){return _0x3afe17;};return a30_0x15c4();}const requestSpy=require(a30_0x45c5e7(0x13b)),constants=require(a30_0x45c5e7(0x140)),{addRequestSpy}=require('../../../helpers/test-observability/utils');function a30_0x5daa(_0xc312aa,_0x3fd50e){const _0x15c49a=a30_0x15c4();return a30_0x5daa=function(_0x5daa98,_0x488c99){_0x5daa98=_0x5daa98-0x135;let _0x5897cf=_0x15c49a[_0x5daa98];return _0x5897cf;},a30_0x5daa(_0xc312aa,_0x3fd50e);}exports[a30_0x45c5e7(0x136)]={'beforeAll'(){const _0x51f334=a30_0x45c5e7,_0x407b1b={'clqcv':function(_0x48544f){return _0x48544f();}},_0x9cc53d='browserstack internal helper hook';_0x407b1b[_0x51f334(0x13d)](addRequestSpy);},'afterAll'(){const _0x4e7ede=a30_0x45c5e7,_0x2838ed='browserstack internal helper hook';this[_0x4e7ede(0x141)](0xea60),requestSpy[_0x4e7ede(0x13a)]();}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a31_0x19b9(){const _0x508b8a=['kklzq','getPlatform','hookAnalyticsId','cntPJ','1551277PMXqvt','QIfnT','map_','suites','138216CYmlNN','getHooksForTest','277ARaWhI','WOSYo','concat','indexOf','../../utils/logPatcher','type','emit','GgfSk','getHookDetails','browserstack','sendPlatformDetails','app-automate','xFyCo','../../../helpers/helper','js-','getTestEnv','40SbgpkW','generic','_afterAll','hook','../../../helpers/test-observability/constants','48bNiDKC','parent','markedStatus','243452KsPFPu','WvHYk','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','appium:app','QcTjG','304959MAHOKj','passed','substring','wmsKA','fromEntries','VzzUK','_beforeEach','vYaDT','getCapabilities','75614MNJzsA','zvEeG','bs:addPlatformDetails:','TEST_PLATFORM','hook:','../../../helpers/test-observability/utils','gkigT','slice','mapTestHooks','280TVZvra','DAvJm','EBYdP','xowFp','BraSa','__cloud_provider___','jiSoy','forEach','vMWZp','95xTbUXy','jWwRs','ukchm','1732581UtmYQC','keys','getBrowserName','WCRWT','BqNLX','push','20PSXmta','Kbnsq','_beforeAll','split','../../../../package.json','1126ezySXb','state','LxLdm','automate','_afterEach','LxbxE','EizoX','filter','ZbRvo'];a31_0x19b9=function(){return _0x508b8a;};return a31_0x19b9();}const a31_0x532720=a31_0x256b;(function(_0x120b11,_0x305bf7){const _0x520585=a31_0x256b,_0x20c764=_0x120b11();while(!![]){try{const _0x157b2b=parseInt(_0x520585(0x153))/0x1*(parseInt(_0x520585(0x140))/0x2)+-parseInt(_0x520585(0x117))/0x3*(parseInt(_0x520585(0x13b))/0x4)+-parseInt(_0x520585(0x132))/0x5*(-parseInt(_0x520585(0x151))/0x6)+-parseInt(_0x520585(0x120))/0x7*(-parseInt(_0x520585(0x129))/0x8)+parseInt(_0x520585(0x135))/0x9+-parseInt(_0x520585(0x10a))/0xa*(-parseInt(_0x520585(0x112))/0xb)+-parseInt(_0x520585(0x10f))/0xc*(parseInt(_0x520585(0x14d))/0xd);if(_0x157b2b===_0x305bf7)break;else _0x20c764['push'](_0x20c764['shift']());}catch(_0x10dd06){_0x20c764['push'](_0x20c764['shift']());}}}(a31_0x19b9,0x41399));function a31_0x256b(_0xec5453,_0xede4f7){const _0x19b963=a31_0x19b9();return a31_0x256b=function(_0x256b55,_0x34ea26){_0x256b55=_0x256b55-0x101;let _0x2eac08=_0x19b963[_0x256b55];return _0x2eac08;},a31_0x256b(_0xec5453,_0xede4f7);}const {v4:uuidv4}=require('uuid'),{name,version}=require(a31_0x532720(0x13f)),logPatcher=require(a31_0x532720(0x157)),BSTestOpsPatcher=new logPatcher({}),{debug,isInternalHook}=require(a31_0x532720(0x125)),{consoleHolder}=require(a31_0x532720(0x10e)),{getPlatformVersion}=require(a31_0x532720(0x107)),{shouldProcessEventForTesthub}=require('../../../helpers/testhub/utils');console={},Object[a31_0x532720(0x136)](consoleHolder)['forEach'](_0x20c9e7=>{console[_0x20c9e7]=(..._0x2c4596)=>{BSTestOpsPatcher[_0x20c9e7](..._0x2c4596);};}),exports[a31_0x532720(0x109)]=()=>{const _0x12139d=a31_0x532720,_0x4164db={'QcgBq':_0x12139d(0x10b),'efFWA':function(_0x1bd2a2){return _0x1bd2a2();}};return{'ci':_0x4164db['QcgBq'],'key':_0x4164db['efFWA'](uuidv4),'version':version,'collector':_0x12139d(0x108)+name};},exports[a31_0x532720(0x102)]=_0x5f23fa=>{const _0x4c012e=a31_0x532720,_0x1b24dc={};_0x1b24dc[_0x4c012e(0x12f)]=function(_0x3553a7,_0x20589c){return _0x3553a7!==_0x20589c;},_0x1b24dc['WCRWT']='string',_0x1b24dc[_0x4c012e(0x14e)]=function(_0x1df443,_0x10d73d){return _0x1df443!==_0x10d73d;},_0x1b24dc[_0x4c012e(0x11e)]=_0x4c012e(0x124),_0x1b24dc['kklzq']=function(_0x3f53c4,_0x53bb5a){return _0x3f53c4!==_0x53bb5a;},_0x1b24dc['QcTjG']=_0x4c012e(0x10d);const _0x122c86=_0x1b24dc;if(!_0x5f23fa||_0x122c86[_0x4c012e(0x12f)](typeof _0x5f23fa,_0x122c86[_0x4c012e(0x138)]))return[null,null];if(_0x122c86[_0x4c012e(0x14e)](_0x5f23fa[_0x4c012e(0x156)](_0x122c86['vYaDT']),-0x1)){const _0x13a292=_0x5f23fa[_0x4c012e(0x13e)](_0x122c86[_0x4c012e(0x11e)]);return[_0x13a292[0x0][_0x4c012e(0x127)](0x0,-0x1)[_0x4c012e(0x13e)]('\x22')[0x1],_0x13a292[0x1][_0x4c012e(0x119)](0x1)];}else{if(_0x122c86[_0x4c012e(0x149)](_0x5f23fa[_0x4c012e(0x156)](_0x122c86[_0x4c012e(0x116)]),-0x1)){const _0x312db3=_0x5f23fa[_0x4c012e(0x13e)](_0x122c86[_0x4c012e(0x116)]);return[_0x312db3[0x0]['slice'](0x0,-0x1)['split']('\x22')[0x1],_0x5f23fa];}}return[null,null];},exports[a31_0x532720(0x152)]=_0x3e20e0=>{const _0x2811f2=a31_0x532720,_0xa79efc={'dZciM':function(_0x2fe411,_0x4d8050){return _0x2fe411(_0x4d8050);},'LxbxE':_0x2811f2(0x13d),'ukchm':_0x2811f2(0x10c),'GgfSk':_0x2811f2(0x11d),'xFyCo':_0x2811f2(0x144)};if(!_0x3e20e0||!_0x3e20e0[_0x2811f2(0x110)])return[];const _0x18b15a=[];return[_0xa79efc[_0x2811f2(0x145)],_0xa79efc[_0x2811f2(0x134)],_0xa79efc[_0x2811f2(0x101)],_0xa79efc[_0x2811f2(0x106)]][_0x2811f2(0x130)](_0x18f9c6=>{const _0x3575a1=_0x2811f2,_0x2a27d3={'vMWZp':function(_0x4f0be8,_0x33a4b5){return _0xa79efc['dZciM'](_0x4f0be8,_0x33a4b5);}},_0x1180c2=_0x3e20e0[_0x3575a1(0x110)][_0x18f9c6]||[];_0x1180c2[_0x3575a1(0x130)](_0x1b0267=>{const _0x38fbad=_0x3575a1;_0x1b0267[_0x38fbad(0x14b)]&&!_0x2a27d3[_0x38fbad(0x131)](isInternalHook,_0x1b0267['fn'])&&_0x18b15a[_0x38fbad(0x13a)](_0x1b0267[_0x38fbad(0x14b)]);});}),[..._0x18b15a,...exports[_0x2811f2(0x152)](_0x3e20e0[_0x2811f2(0x110)])];},exports['mapTestHooks']=_0x176c19=>{const _0x191919=a31_0x532720,_0x532980={'BqNLX':function(_0xb6cd20){return _0xb6cd20();},'XfXVy':function(_0x432a59,_0x126083){return _0x432a59===_0x126083;},'cntPJ':_0x191919(0x144),'DAvJm':_0x191919(0x13d),'jWwRs':_0x191919(0x10c),'VzzUK':_0x191919(0x11d)};if(!_0x176c19||!_0x176c19[_0x191919(0x110)])return;[_0x532980[_0x191919(0x12a)],_0x532980[_0x191919(0x133)],_0x532980[_0x191919(0x11c)],_0x532980[_0x191919(0x14c)]][_0x191919(0x130)](_0x9b1ac=>{const _0x509e2f=_0x191919,_0xa2a7=_0x176c19['parent'][_0x9b1ac]||[];_0xa2a7[_0x509e2f(0x130)](_0x2cae0f=>{const _0x1dce1e=_0x509e2f;if(!_0x2cae0f[_0x1dce1e(0x14b)])_0x2cae0f[_0x1dce1e(0x14b)]=_0x532980[_0x1dce1e(0x139)](uuidv4);else _0x2cae0f[_0x1dce1e(0x111)]&&_0x532980['XfXVy'](_0x9b1ac,_0x532980[_0x1dce1e(0x14c)])&&(_0x2cae0f['hookAnalyticsId']=_0x532980['BqNLX'](uuidv4),delete _0x2cae0f[_0x1dce1e(0x111)]);});}),exports[_0x191919(0x128)](_0x176c19[_0x191919(0x110)]);},exports[a31_0x532720(0x104)]=async(_0x37071b,_0xb051d9)=>{const _0x2fbbe0=a31_0x532720,_0x1da27d={'EBYdP':function(_0x41fbc0){return _0x41fbc0();},'ZbRvo':function(_0x7729ce,_0xfa2ab2){return _0x7729ce===_0xfa2ab2;},'BraSa':_0x2fbbe0(0x103),'tIzOe':_0x2fbbe0(0x115),'xowFp':'app','zvEeG':_0x2fbbe0(0x105),'kMmVk':_0x2fbbe0(0x143),'LxLdm':function(_0x403c97,_0x53f389){return _0x403c97(_0x53f389);},'gkigT':'unknown_grid','iTmJw':_0x2fbbe0(0x123)};try{if(!_0x1da27d[_0x2fbbe0(0x12b)](shouldProcessEventForTesthub))return;const _0x483d04=await _0x37071b[_0x2fbbe0(0x11f)](),_0xfa41fa=await _0x37071b['getSession'](),_0x20f287={},_0x1a3b0e=Object[_0x2fbbe0(0x11b)](_0xfa41fa[_0x2fbbe0(0x11f)]()[_0x2fbbe0(0x14f)]),_0x596e3a={'product':_0x1da27d[_0x2fbbe0(0x148)](global[_0x2fbbe0(0x12e)],_0x1da27d[_0x2fbbe0(0x12d)])?_0x1a3b0e[_0x1da27d['tIzOe']]||_0x1a3b0e[_0x1da27d[_0x2fbbe0(0x12c)]]?_0x1da27d[_0x2fbbe0(0x121)]:_0x1da27d['kMmVk']:null,'capabilities':_0x1a3b0e,'platform':_0x483d04[_0x2fbbe0(0x14a)](),'platform_version':_0x1da27d[_0x2fbbe0(0x142)](getPlatformVersion,_0x1da27d[_0x2fbbe0(0x148)](global['__cloud_provider___'],_0x1da27d[_0x2fbbe0(0x12d)])),'browser':_0x483d04[_0x2fbbe0(0x137)](),'browser_version':_0x483d04['getBrowserVersion'](),'session_id':_0xfa41fa['toJSON']()};global[_0x2fbbe0(0x12e)]?_0x20f287[global[_0x2fbbe0(0x12e)]]=_0x596e3a:_0x20f287[_0x1da27d[_0x2fbbe0(0x126)]]=_0x596e3a,process[_0x2fbbe0(0x159)](_0x2fbbe0(0x122)+process['pid'],{'timestamp':new Date()['toISOString'](),'level':null,'message':null,'kind':_0x1da27d['iTmJw'],'http_response':_0x20f287,'uuid':_0xb051d9});}catch(_0x21a5f1){_0x1da27d[_0x2fbbe0(0x142)](debug,_0x2fbbe0(0x114)+_0x21a5f1);}},exports['getHookSkippedTests']=_0x4e7215=>{const _0x5d5112=a31_0x532720,_0x2a8ab8={};_0x2a8ab8['WvHYk']=function(_0x5ed118,_0x526811){return _0x5ed118!==_0x526811;},_0x2a8ab8[_0x5d5112(0x154)]=_0x5d5112(0x10d),_0x2a8ab8['EizoX']=function(_0x38ec1d,_0x4357a3){return _0x38ec1d!==_0x4357a3;},_0x2a8ab8[_0x5d5112(0x13c)]=_0x5d5112(0x118),_0x2a8ab8[_0x5d5112(0x11a)]='failed';const _0x3c31a3=_0x2a8ab8,_0x29c523=_0x4e7215[_0x5d5112(0x150)]['reduce']((_0x183e60,_0x5d8de1)=>{const _0x80e47e=_0x5d5112,_0x346e52=exports['getHookSkippedTests'](_0x5d8de1);return _0x346e52&&(_0x183e60=_0x183e60[_0x80e47e(0x155)](_0x346e52)),_0x183e60;},[]),_0x2067c7=_0x4e7215['tests'][_0x5d5112(0x147)](_0x2e04ea=>{const _0x4b997e=_0x5d5112,_0x3bb42c=_0x3c31a3[_0x4b997e(0x113)](_0x2e04ea[_0x4b997e(0x158)],_0x3c31a3[_0x4b997e(0x154)])&&!_0x2e04ea[_0x4b997e(0x111)]&&_0x3c31a3[_0x4b997e(0x146)](_0x2e04ea['state'],_0x3c31a3[_0x4b997e(0x13c)])&&_0x3c31a3[_0x4b997e(0x113)](_0x2e04ea[_0x4b997e(0x141)],_0x3c31a3['wmsKA'])&&!_0x2e04ea['pending'];return _0x3bb42c;});return _0x2067c7[_0x5d5112(0x155)](_0x29c523);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a31_0x38ff(){const _0x39271c=['debug','message','testcase','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','winstonLogger','UVGPW','ObservabilitySync:','QiGZt','8028ylvGiE','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','format','length','browserstackSessionName','info','getGlobal','12790VEFTIm','app','kojsR','../../helpers/globals','FbAxe','oAVOE','Ijnfo','jclJs','qRJxY','../../helpers/accessibility-automation/helper','AiDlQ','WLbvC','RPTjT','EMaky','push','Failed:\x20','Failed\x20to\x20store\x20session\x20name:\x20','passed','__drivers','appium:app','http:','../../helpers/accessibility-automation/scripts','testAnalyticsId','then','2775554edfkOO','isAccessibilityPlatform','saveTestResults','279tAovvP','Automate\x20test\x20case\x20execution\x20has\x20started.','wRMzR','bPFWJ','thTestRunUuid','sExFG','thJwtToken','ECgOp','error','Passed','YhumC','join','BROWSERSTACK_TESTHUB_JWT','err','.\x20Error\x20:','xcCXw','driverCleanup','SdSpT','sessionNameSet__','../../helpers/helper','7269255EHaJED','HDboP','5635752vuPWUl','performScan','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','util','lQGRf','jRJJS','timeout','capabilities','accessibilityScanStarted','__sessionFailed','ENV_VAR','FnCNb','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','__error_messages__','getCurrentUrl','BROWSERSTACK_TESTHUB_UUID','\x20-\x20','percyCaptureMode','state','203760KilkOL','currentTest','jLLLR',',\x22level\x22:\x20\x22','apKZk','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','__skipSessionName','772696UwjjFr','thBuildUuid','shift','ADCQS','XLoHC','stringify','session_','3395BlzmaT','mochaHooks','XBVMS','PZOcN','../../helpers/performance-tester','../../helpers/testhub/utils','bstackA11yShouldScan','../../helpers/testhub/constants','shouldScanTestForAccessibility','fcYTM','lkCDg','12ioCSgR','setGlobal','titlePath','executeScript','percy','SSXjZ','executeAsyncScript','isArray','protocol'];a31_0x38ff=function(){return _0x39271c;};return a31_0x38ff();}function a31_0x38a1(_0xeb9cea,_0x5ae755){const _0x38ff49=a31_0x38ff();return a31_0x38a1=function(_0x38a178,_0x4b5e7a){_0x38a178=_0x38a178-0x1c6;let _0x1b6d47=_0x38ff49[_0x38a178];return _0x1b6d47;},a31_0x38a1(_0xeb9cea,_0x5ae755);}const a31_0x8d0fc=a31_0x38a1;(function(_0x3de36d,_0x52c806){const _0x94a9c8=a31_0x38a1,_0xb22edc=_0x3de36d();while(!![]){try{const _0x3f2e6d=parseInt(_0x94a9c8(0x1dd))/0x1+parseInt(_0x94a9c8(0x1f5))/0x2+-parseInt(_0x94a9c8(0x23a))/0x3*(-parseInt(_0x94a9c8(0x228))/0x4)+-parseInt(_0x94a9c8(0x22f))/0x5*(-parseInt(_0x94a9c8(0x1d6))/0x6)+-parseInt(_0x94a9c8(0x20c))/0x7+-parseInt(_0x94a9c8(0x20e))/0x8+-parseInt(_0x94a9c8(0x1f8))/0x9*(parseInt(_0x94a9c8(0x221))/0xa);if(_0x3f2e6d===_0x52c806)break;else _0xb22edc['push'](_0xb22edc['shift']());}catch(_0x1b6c52){_0xb22edc['push'](_0xb22edc['shift']());}}}(a31_0x38ff,0xaca67));const util=require(a31_0x8d0fc(0x211)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a31_0x8d0fc(0x1e6)),{percyAutoCapture}=require('../../helpers/percy/utils'),{sendPlatformDetails}=require('./test-observability/mochaUtils'),{isBrowserstackInfra,markSessionStatus}=require(a31_0x8d0fc(0x20b)),PerformanceTester=require(a31_0x8d0fc(0x233)),scripts=require(a31_0x8d0fc(0x1f2)),globals=require(a31_0x8d0fc(0x1e0)),logger=require('../../helpers/logger')[a31_0x8d0fc(0x1d2)],{shouldProcessEventForTesthub}=require(a31_0x8d0fc(0x234)),testHubConstants=require(a31_0x8d0fc(0x236));exports[a31_0x8d0fc(0x230)]={'beforeAll'(){const _0x5925ea=a31_0x8d0fc,_0x16e5a7={'lkCDg':function(_0x5caa0d,_0x2b166a,_0x2fe41a,_0xf4d02f){return _0x5caa0d(_0x2b166a,_0x2fe41a,_0xf4d02f);},'YctvT':'failed','AiDlQ':'\x20|\x20','YYlUr':function(_0x4d13da,_0x1b1c35,_0x31cf1b){return _0x4d13da(_0x1b1c35,_0x31cf1b);},'jLLLR':_0x5925ea(0x1ee),'VTXVn':function(_0x1ac80c){return _0x1ac80c();},'SpWmn':function(_0x2ea501,_0x3e084a,_0x3137ee){return _0x2ea501(_0x3e084a,_0x3137ee);}};PerformanceTester['startMonitoring']();const _0x3312ef='browserstack internal helper hook';global['__error_messages__']=[],global['__sessionFailed']=![],global[_0x5925ea(0x208)]=async()=>{const _0xd2d0d0=_0x5925ea;let _0x73c06b=![];try{await global['__drivers'][0x0]['session_'],_0x73c06b=!![],global[_0xd2d0d0(0x217)]?await _0x16e5a7[_0xd2d0d0(0x239)](markSessionStatus,global[_0xd2d0d0(0x1ef)][0x0],_0x16e5a7['YctvT'],global[_0xd2d0d0(0x21b)][_0xd2d0d0(0x203)](_0x16e5a7[_0xd2d0d0(0x1e7)])):await _0x16e5a7['YYlUr'](markSessionStatus,global[_0xd2d0d0(0x1ef)][0x0],_0x16e5a7[_0xd2d0d0(0x223)]);}catch(_0x8bfe9b){}global[_0xd2d0d0(0x21b)]=[],global[_0xd2d0d0(0x217)]=![];if(_0x73c06b)try{try{_0x16e5a7['VTXVn'](shouldProcessEventForTesthub)&&(global[_0xd2d0d0(0x1ef)][0x0]&&await _0x16e5a7['SpWmn'](sendPlatformDetails,global[_0xd2d0d0(0x1ef)][0x0],this[_0xd2d0d0(0x222)]?this['currentTest']['testAnalyticsId']:null));}catch{}await global[_0xd2d0d0(0x1ef)][0x0]['initQuit']();}catch(_0x58c0d5){}};},'beforeEach'(_0x28aca7){const _0x3769a8=a31_0x8d0fc,_0x443589={'FbAxe':function(_0x3a5b59,_0x40a808){return _0x3a5b59>_0x40a808;},'wRMzR':function(_0x20c4ed,_0x1c36c5){return _0x20c4ed>_0x1c36c5;},'qRJxY':'\x20-\x20','UVGPW':function(_0x5aa10f,_0x3a0736,_0xe7c0d4){return _0x5aa10f(_0x3a0736,_0xe7c0d4);},'jMrUZ':_0x3769a8(0x235),'sExFG':function(_0x229caa){return _0x229caa();},'RPTjT':_0x3769a8(0x1f6),'ECgOp':function(_0x2c97f3,_0x1f9a6e){return _0x2c97f3===_0x1f9a6e;},'EMaky':_0x3769a8(0x1f1),'ZWYqD':'https:','XBVMS':_0x3769a8(0x210),'WLbvC':_0x3769a8(0x1f9),'SSXjZ':function(_0x2ea03e){return _0x2ea03e();}};new Promise(async _0x2fe14b=>{const _0x165875=_0x3769a8,_0x3e64f4='browserstack internal helper hook';let _0x2b028a=!![];try{_0x443589[_0x165875(0x1e1)](global[_0x165875(0x1ef)][_0x165875(0x1d9)],0x1)&&(await global[_0x165875(0x208)](),global['__drivers']['shift']()),_0x443589[_0x165875(0x1fa)](global[_0x165875(0x1ef)][0x0]['quitCount_'],0x0)&&(_0x2b028a=![],await global[_0x165875(0x208)]());}catch{}try{Array['isArray'](global[_0x165875(0x1ef)])&&global[_0x165875(0x1ef)][0x0]&&(global[_0x165875(0x1ef)][0x0]['browserstackSessionName']=this['currentTest'][_0x165875(0x1c7)]()['join'](_0x443589['qRJxY'])),global[_0x165875(0x1da)]=this[_0x165875(0x222)][_0x165875(0x1c7)]()['join'](_0x443589[_0x165875(0x1e5)]);}catch(_0x2135ba){logger[_0x165875(0x1ce)](_0x165875(0x1ed)+_0x2135ba);}this[_0x165875(0x222)][_0x165875(0x237)]=_0x443589[_0x165875(0x1d3)](shouldScanTestForAccessibility,this[_0x165875(0x222)]['titlePath'](),!![]),globals[_0x165875(0x1c6)](_0x443589['jMrUZ'],this[_0x165875(0x222)][_0x165875(0x237)]),this['currentTest']['accessibilityScanStarted']=!![];if(_0x443589[_0x165875(0x1fd)](isAccessibilityAutomationSession)&&_0x2b028a&&Array[_0x165875(0x1cc)](global[_0x165875(0x1ef)])&&_0x443589[_0x165875(0x1e1)](global['__drivers']['length'],0x0)&&globals[_0x165875(0x1dc)](_0x443589[_0x165875(0x1e9)]))try{const _0x2689cb=await global['__drivers'][0x0][_0x165875(0x22e)];if(_0x2689cb){let _0x7c7488=!![];const _0x2e40b8=await global[_0x165875(0x1ef)][0x0][_0x165875(0x21c)]();let _0x3cffdf;try{_0x3cffdf=new URL(_0x2e40b8);}catch(_0x3d4076){_0x7c7488=![];}_0x7c7488=_0x443589[_0x165875(0x1ff)](_0x3cffdf[_0x165875(0x1cd)],_0x443589[_0x165875(0x1ea)])||_0x443589[_0x165875(0x1ff)](_0x3cffdf[_0x165875(0x1cd)],_0x443589['ZWYqD']),_0x7c7488&&(this[_0x165875(0x222)]['shouldScanTestForAccessibility']&&logger[_0x165875(0x1db)](_0x443589[_0x165875(0x231)])),this[_0x165875(0x222)][_0x165875(0x216)]=this[_0x165875(0x222)][_0x165875(0x237)],this[_0x165875(0x222)][_0x165875(0x237)]&&logger['info'](_0x443589[_0x165875(0x1e8)]);}}catch(_0x36ac01){logger[_0x165875(0x200)](_0x165875(0x21a)+util[_0x165875(0x1d8)](_0x36ac01));}_0x443589[_0x165875(0x1ca)](_0x2fe14b);})[_0x3769a8(0x1f4)](_0x28aca7);},'afterEach'(_0x489793){const _0x168586=a31_0x8d0fc,_0x6d30a3={'Ijnfo':function(_0xa8527a,_0x507b39){return _0xa8527a>_0x507b39;},'ccEki':function(_0x4416fb,_0x55347e){return _0x4416fb===_0x55347e;},'ADCQS':_0x168586(0x1d0),'fcYTM':function(_0xba4576,_0x596c2d){return _0xba4576>_0x596c2d;},'xcCXw':_0x168586(0x1f0),'jRJJS':function(_0x28917b,_0x39f494,_0x152197,_0x342489){return _0x28917b(_0x39f494,_0x152197,_0x342489);},'apKZk':_0x168586(0x21e),'HDboP':function(_0x412dcc,_0x1de7d6){return _0x412dcc!==_0x1de7d6;},'IiHNG':'passed','kojsR':function(_0x3a15c7,_0x2a4f02,_0xcc102e){return _0x3a15c7(_0x2a4f02,_0xcc102e);},'ponEF':function(_0x11d813,_0x4b2cbd){return _0x11d813+_0x4b2cbd;},'gDeZR':_0x168586(0x1ec),'FnCNb':_0x168586(0x200),'bPFWJ':_0x168586(0x201),'rEzwB':_0x168586(0x1db),'SdSpT':_0x168586(0x1f6),'XLoHC':_0x168586(0x235),'mRpLO':'Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','oAVOE':'Performing\x20scan\x20before\x20saving\x20results','YhumC':'Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','xooaF':function(_0x199cee){return _0x199cee();},'PZOcN':function(_0xb03dfb){return _0xb03dfb();},'lQGRf':'debug','jclJs':function(_0x19ebaa,_0x2ac304){return _0x19ebaa>_0x2ac304;},'CTxoQ':function(_0x3d4739){return _0x3d4739();}},_0x2fccdc='browserstack internal helper hook';this[_0x168586(0x214)](0xfde8);const _0x182957=async(_0xcb63b6,_0x2f145d)=>{const _0x2654e3=_0x168586;await global['__drivers'][0x0]['executeScript'](_0x2654e3(0x1d1)+_0xcb63b6+_0x2654e3(0x224)+_0x2f145d+'\x22}}');};new Promise(async _0x43f8bb=>{const _0x17eb59=_0x168586;try{_0x6d30a3[_0x17eb59(0x1e3)](global[_0x17eb59(0x1ef)][_0x17eb59(0x1d9)],0x1)&&(await global[_0x17eb59(0x208)](),global[_0x17eb59(0x1ef)][_0x17eb59(0x22a)](),global['__error_messages__']=[],global[_0x17eb59(0x217)]=![]);try{if(global[_0x17eb59(0x1c9)]&&_0x6d30a3['ccEki'](global[_0x17eb59(0x21f)],_0x6d30a3[_0x17eb59(0x22b)])&&global['__drivers'][0x0]){const _0x45afab=_0x6d30a3[_0x17eb59(0x238)](global[_0x17eb59(0x215)][_0x17eb59(0x1d9)],0x0)?!!global[_0x17eb59(0x215)][0x0][_0x17eb59(0x1de)]||!!global[_0x17eb59(0x215)][0x0][_0x6d30a3[_0x17eb59(0x207)]]:![],_0x334500={};_0x334500[_0x17eb59(0x1de)]=_0x45afab,await _0x6d30a3[_0x17eb59(0x213)](percyAutoCapture,global[_0x17eb59(0x1ef)][0x0],_0x6d30a3['ADCQS'],_0x334500);}}catch(_0x355cb2){}!global[_0x17eb59(0x227)]&&(await global[_0x17eb59(0x1ef)][0x0][_0x17eb59(0x1c8)]('browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20'+JSON[_0x17eb59(0x22d)](this[_0x17eb59(0x222)][_0x17eb59(0x1c7)]()[_0x17eb59(0x203)](_0x6d30a3[_0x17eb59(0x225)]))+'}}'),global[_0x17eb59(0x1ef)][0x0][_0x17eb59(0x20a)]=!![]);const _0x2e44c3=_0x6d30a3[_0x17eb59(0x20d)](this['currentTest'][_0x17eb59(0x220)],_0x6d30a3['IiHNG']);_0x2e44c3?(global[_0x17eb59(0x217)]=!![],global[_0x17eb59(0x21b)][_0x17eb59(0x1eb)](this[_0x17eb59(0x222)]['err'][_0x17eb59(0x1cf)]),await _0x6d30a3[_0x17eb59(0x1df)](_0x182957,JSON[_0x17eb59(0x22d)](_0x6d30a3['ponEF'](_0x6d30a3['gDeZR'],this['currentTest'][_0x17eb59(0x205)][_0x17eb59(0x1cf)])),_0x6d30a3[_0x17eb59(0x219)])):await _0x6d30a3[_0x17eb59(0x1df)](_0x182957,JSON[_0x17eb59(0x22d)](_0x6d30a3[_0x17eb59(0x1fb)]),_0x6d30a3['rEzwB']);}catch(_0x15ffd2){}try{if(this[_0x17eb59(0x222)][_0x17eb59(0x216)]&&globals[_0x17eb59(0x1dc)](_0x6d30a3[_0x17eb59(0x209)])&&globals['getGlobal'](_0x6d30a3[_0x17eb59(0x22c)])){logger[_0x17eb59(0x1db)](_0x6d30a3['mRpLO']);const _0x524254={};_0x524254[_0x17eb59(0x1fc)]=this[_0x17eb59(0x222)][_0x17eb59(0x1f3)],_0x524254[_0x17eb59(0x229)]=process['env'][testHubConstants[_0x17eb59(0x218)][_0x17eb59(0x21d)]],_0x524254[_0x17eb59(0x1fe)]=process['env'][testHubConstants[_0x17eb59(0x218)][_0x17eb59(0x204)]];const _0x235e67=_0x524254;logger[_0x17eb59(0x1ce)](_0x17eb59(0x226)+JSON['stringify'](_0x235e67)),logger[_0x17eb59(0x1ce)](_0x6d30a3[_0x17eb59(0x1e2)]),logger[_0x17eb59(0x1ce)](util['format'](await global[_0x17eb59(0x1ef)][0x0][_0x17eb59(0x1cb)](scripts[_0x17eb59(0x20f)],{'method':global['browserstackSessionName']}))),await global[_0x17eb59(0x1ef)][0x0][_0x17eb59(0x1cb)](scripts[_0x17eb59(0x1f7)],_0x235e67),logger[_0x17eb59(0x1db)](_0x6d30a3[_0x17eb59(0x202)]);}}catch(_0x4b5259){logger[_0x17eb59(0x200)](_0x17eb59(0x1d7)+this['currentTest'][_0x17eb59(0x1c7)]()+_0x17eb59(0x206),_0x4b5259);}try{try{if(_0x6d30a3['xooaF'](shouldProcessEventForTesthub)){global[_0x17eb59(0x1ef)][0x0]&&await _0x6d30a3['kojsR'](sendPlatformDetails,global[_0x17eb59(0x1ef)][0x0],this[_0x17eb59(0x222)]?this['currentTest']['testAnalyticsId']:null);if(_0x6d30a3[_0x17eb59(0x232)](isBrowserstackInfra)){const _0x565abb=_0x17eb59(0x1d4)+Date['now']();await _0x6d30a3[_0x17eb59(0x1df)](_0x182957,JSON[_0x17eb59(0x22d)](_0x565abb),_0x6d30a3[_0x17eb59(0x212)]);}}}catch{}_0x6d30a3[_0x17eb59(0x1e4)](global[_0x17eb59(0x1ef)][0x0]['quitCount_'],0x0)&&await global[_0x17eb59(0x208)]();}catch(_0x17a448){}_0x6d30a3['CTxoQ'](_0x43f8bb);})[_0x168586(0x1f4)](()=>_0x489793());},'afterAll'(_0x4727c1){const _0x3e20c3=a31_0x8d0fc,_0x4335b9={'QiGZt':function(_0x377c27){return _0x377c27();}},_0x4e83f9='browserstack internal helper hook';this[_0x3e20c3(0x214)](0xfde8),new Promise(async _0x4e48f0=>{const _0x3c5d1a=_0x3e20c3;PerformanceTester['stopMonitoring'](),await global[_0x3c5d1a(0x208)](),_0x4335b9[_0x3c5d1a(0x1d5)](_0x4e48f0);})[_0x3e20c3(0x1f4)](()=>_0x4727c1());}};
|
|
1
|
+
const a32_0x4bf50e=a32_0x2d22;function a32_0x2d22(_0x22a81f,_0x512d34){const _0xd07d12=a32_0xd07d();return a32_0x2d22=function(_0x2d22eb,_0x453d4b){_0x2d22eb=_0x2d22eb-0x157;let _0x56fe4a=_0xd07d12[_0x2d22eb];return _0x56fe4a;},a32_0x2d22(_0x22a81f,_0x512d34);}(function(_0xfa09b2,_0xc16e6f){const _0x17ffed=a32_0x2d22,_0x5eaa8c=_0xfa09b2();while(!![]){try{const _0x33884f=-parseInt(_0x17ffed(0x1c5))/0x1*(parseInt(_0x17ffed(0x17f))/0x2)+parseInt(_0x17ffed(0x1c7))/0x3+parseInt(_0x17ffed(0x18e))/0x4*(parseInt(_0x17ffed(0x1ca))/0x5)+-parseInt(_0x17ffed(0x1c6))/0x6*(parseInt(_0x17ffed(0x1ae))/0x7)+-parseInt(_0x17ffed(0x19b))/0x8*(parseInt(_0x17ffed(0x170))/0x9)+parseInt(_0x17ffed(0x15f))/0xa+-parseInt(_0x17ffed(0x1cd))/0xb;if(_0x33884f===_0xc16e6f)break;else _0x5eaa8c['push'](_0x5eaa8c['shift']());}catch(_0x45eefb){_0x5eaa8c['push'](_0x5eaa8c['shift']());}}}(a32_0xd07d,0x1afe0));const util=require('util'),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a32_0x4bf50e(0x1c3)),{percyAutoCapture}=require('../../helpers/percy/utils'),{sendPlatformDetails}=require(a32_0x4bf50e(0x199)),{isBrowserstackInfra,markSessionStatus}=require('../../helpers/helper'),PerformanceTester=require(a32_0x4bf50e(0x1ad)),scripts=require(a32_0x4bf50e(0x1a3)),globals=require(a32_0x4bf50e(0x1af)),logger=require('../../helpers/logger')[a32_0x4bf50e(0x19f)],{shouldProcessEventForTesthub}=require('../../helpers/testhub/utils'),testHubConstants=require('../../helpers/testhub/constants');exports[a32_0x4bf50e(0x181)]={'beforeAll'(){const _0x355807=a32_0x4bf50e,_0x449219={'cSmyR':function(_0x5dd8a2,_0x193c85,_0x545e8f,_0x2d9c5f){return _0x5dd8a2(_0x193c85,_0x545e8f,_0x2d9c5f);},'nJESF':_0x355807(0x1ab),'INaiz':_0x355807(0x19a),'znecm':function(_0x5aafbd,_0x65ff52,_0x195655){return _0x5aafbd(_0x65ff52,_0x195655);},'tazyr':_0x355807(0x15c),'QPcQf':function(_0xe489dd){return _0xe489dd();}};PerformanceTester['startMonitoring']();const _0x2e3f0d='browserstack internal helper hook';global['__error_messages__']=[],global[_0x355807(0x1b2)]=![],global[_0x355807(0x18b)]=async()=>{const _0x2f233d=_0x355807;let _0x4b9682=![];try{await global[_0x2f233d(0x197)][0x0][_0x2f233d(0x191)],_0x4b9682=!![],global[_0x2f233d(0x1b2)]?await _0x449219[_0x2f233d(0x1c4)](markSessionStatus,global[_0x2f233d(0x197)][0x0],_0x449219[_0x2f233d(0x1a6)],global[_0x2f233d(0x1b5)][_0x2f233d(0x16e)](_0x449219[_0x2f233d(0x19e)])):await _0x449219[_0x2f233d(0x18a)](markSessionStatus,global[_0x2f233d(0x197)][0x0],_0x449219[_0x2f233d(0x16d)]);}catch(_0x5c81a0){}global[_0x2f233d(0x1b5)]=[],global['__sessionFailed']=![];if(_0x4b9682)try{try{_0x449219[_0x2f233d(0x177)](shouldProcessEventForTesthub)&&(global['__drivers'][0x0]&&await _0x449219[_0x2f233d(0x18a)](sendPlatformDetails,global[_0x2f233d(0x197)][0x0],this[_0x2f233d(0x1c9)]?this[_0x2f233d(0x1c9)]['testAnalyticsId']:null));}catch{}await global[_0x2f233d(0x197)][0x0][_0x2f233d(0x17b)]();}catch(_0x13be08){}};},'beforeEach'(_0x15f72d){const _0xdeb4de=a32_0x4bf50e,_0x2fc25c={'IdWCC':function(_0xb0f5ee,_0x523a86){return _0xb0f5ee>_0x523a86;},'XkyDa':function(_0x30480e,_0x508036){return _0x30480e>_0x508036;},'yzQpE':_0xdeb4de(0x1b0),'DuiyB':function(_0x270526,_0x2f8a84,_0x4b3e94){return _0x270526(_0x2f8a84,_0x4b3e94);},'IiITM':'bstackA11yShouldScan','vtaHa':function(_0x36ff5f){return _0x36ff5f();},'vhrGZ':function(_0x360831,_0x27213c){return _0x360831>_0x27213c;},'BiMNC':'isAccessibilityPlatform','lMHKN':function(_0x526271,_0xc4ac26){return _0x526271===_0xc4ac26;},'HHAfY':_0xdeb4de(0x178),'iIYLk':function(_0x5cb170,_0x1d9e6b){return _0x5cb170===_0x1d9e6b;},'TsMlF':'https:','oBVJG':_0xdeb4de(0x1bb),'UeWbL':_0xdeb4de(0x1c8)};new Promise(async _0x5609d4=>{const _0x3c38fd=_0xdeb4de,_0x287474='browserstack internal helper hook';let _0x455c20=!![];try{_0x2fc25c[_0x3c38fd(0x1b3)](global[_0x3c38fd(0x197)][_0x3c38fd(0x180)],0x1)&&(await global['driverCleanup'](),global['__drivers']['shift']()),_0x2fc25c['XkyDa'](global[_0x3c38fd(0x197)][0x0]['quitCount_'],0x0)&&(_0x455c20=![],await global[_0x3c38fd(0x18b)]());}catch{}try{Array[_0x3c38fd(0x1a1)](global[_0x3c38fd(0x197)])&&global[_0x3c38fd(0x197)][0x0]&&(global['__drivers'][0x0][_0x3c38fd(0x1b4)]=this[_0x3c38fd(0x1c9)][_0x3c38fd(0x190)]()['join'](_0x2fc25c[_0x3c38fd(0x198)])),global[_0x3c38fd(0x1b4)]=this[_0x3c38fd(0x1c9)][_0x3c38fd(0x190)]()['join'](_0x2fc25c['yzQpE']);}catch(_0x48753a){logger[_0x3c38fd(0x1a8)](_0x3c38fd(0x172)+_0x48753a);}this[_0x3c38fd(0x1c9)]['shouldScanTestForAccessibility']=_0x2fc25c[_0x3c38fd(0x1ba)](shouldScanTestForAccessibility,this[_0x3c38fd(0x1c9)][_0x3c38fd(0x190)](),!![]),globals[_0x3c38fd(0x1a5)](_0x2fc25c[_0x3c38fd(0x19c)],this['currentTest'][_0x3c38fd(0x16c)]),this[_0x3c38fd(0x1c9)][_0x3c38fd(0x1a0)]=!![];if(_0x2fc25c[_0x3c38fd(0x182)](isAccessibilityAutomationSession)&&_0x455c20&&Array['isArray'](global['__drivers'])&&_0x2fc25c[_0x3c38fd(0x15d)](global[_0x3c38fd(0x197)]['length'],0x0)&&globals[_0x3c38fd(0x168)](_0x2fc25c[_0x3c38fd(0x157)]))try{const _0x4b6a07=await global[_0x3c38fd(0x197)][0x0][_0x3c38fd(0x191)];if(_0x4b6a07){let _0x5c0d68=!![];const _0x5bc5cd=await global[_0x3c38fd(0x197)][0x0][_0x3c38fd(0x1cc)]();let _0x1a1600;try{_0x1a1600=new URL(_0x5bc5cd);}catch(_0x144c1b){_0x5c0d68=![];}_0x5c0d68=_0x2fc25c[_0x3c38fd(0x1a4)](_0x1a1600['protocol'],_0x2fc25c[_0x3c38fd(0x1aa)])||_0x2fc25c[_0x3c38fd(0x196)](_0x1a1600[_0x3c38fd(0x160)],_0x2fc25c[_0x3c38fd(0x15a)]),_0x5c0d68&&(this[_0x3c38fd(0x1c9)][_0x3c38fd(0x16c)]&&logger[_0x3c38fd(0x1a7)](_0x2fc25c[_0x3c38fd(0x1bf)])),this[_0x3c38fd(0x1c9)][_0x3c38fd(0x1a0)]=this['currentTest'][_0x3c38fd(0x16c)],this[_0x3c38fd(0x1c9)][_0x3c38fd(0x16c)]&&logger[_0x3c38fd(0x1a7)](_0x2fc25c[_0x3c38fd(0x16f)]);}}catch(_0x82107e){logger[_0x3c38fd(0x165)](_0x3c38fd(0x1be)+util[_0x3c38fd(0x16a)](_0x82107e));}_0x2fc25c[_0x3c38fd(0x182)](_0x5609d4);})[_0xdeb4de(0x1cb)](_0x15f72d);},'afterEach'(_0x28d158){const _0x3438a1=a32_0x4bf50e,_0x49b02b={'Mjgcm':function(_0x16b1e1,_0x102783){return _0x16b1e1>_0x102783;},'uDEuz':function(_0x48d845,_0x23bb95){return _0x48d845===_0x23bb95;},'TKfwK':_0x3438a1(0x1ac),'NyGPB':_0x3438a1(0x15e),'KETTH':function(_0x2cf863,_0x131ec8,_0x4dbdeb,_0x210792){return _0x2cf863(_0x131ec8,_0x4dbdeb,_0x210792);},'FZVyL':_0x3438a1(0x1b0),'HxjfY':function(_0x2ddc70,_0x424d6f){return _0x2ddc70!==_0x424d6f;},'yFqZw':_0x3438a1(0x15c),'ztLtd':function(_0x1c26eb,_0x2b2317,_0x5d9895){return _0x1c26eb(_0x2b2317,_0x5d9895);},'LdDJT':function(_0x5f0180,_0x399750){return _0x5f0180+_0x399750;},'eHaOL':_0x3438a1(0x192),'VFaBp':_0x3438a1(0x165),'pSKaX':'Passed','buSXc':_0x3438a1(0x1a7),'zvspR':_0x3438a1(0x184),'uhFBZ':_0x3438a1(0x188),'aHeMt':'Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','JZrsj':_0x3438a1(0x163),'iSEeu':_0x3438a1(0x158),'JEuYw':function(_0x4218a5){return _0x4218a5();},'CyQpQ':function(_0x598681){return _0x598681();},'QMDLA':_0x3438a1(0x1a8)},_0x365a22='browserstack internal helper hook';this[_0x3438a1(0x17a)](0xfde8);const _0x2a053f=async(_0x9c6be2,_0x14b78d)=>{const _0x1039b1=_0x3438a1;await global[_0x1039b1(0x197)][0x0]['executeScript']('browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:'+_0x9c6be2+',\x22level\x22:\x20\x22'+_0x14b78d+_0x1039b1(0x159));};new Promise(async _0x205203=>{const _0x4b8176=_0x3438a1;try{_0x49b02b[_0x4b8176(0x1a2)](global[_0x4b8176(0x197)][_0x4b8176(0x180)],0x1)&&(await global['driverCleanup'](),global[_0x4b8176(0x197)]['shift'](),global[_0x4b8176(0x1b5)]=[],global[_0x4b8176(0x1b2)]=![]);try{if(global[_0x4b8176(0x1b9)]&&_0x49b02b[_0x4b8176(0x176)](global[_0x4b8176(0x195)],_0x49b02b[_0x4b8176(0x1ce)])&&global['__drivers'][0x0]){const _0x2466dd=_0x49b02b[_0x4b8176(0x1a2)](global[_0x4b8176(0x162)]['length'],0x0)?!!global[_0x4b8176(0x162)][0x0][_0x4b8176(0x166)]||!!global['capabilities'][0x0][_0x49b02b[_0x4b8176(0x164)]]:![],_0x3b8b67={};_0x3b8b67[_0x4b8176(0x166)]=_0x2466dd,await _0x49b02b[_0x4b8176(0x1b7)](percyAutoCapture,global[_0x4b8176(0x197)][0x0],_0x49b02b[_0x4b8176(0x1ce)],_0x3b8b67);}}catch(_0x3cceac){}!global[_0x4b8176(0x161)]&&(await global[_0x4b8176(0x197)][0x0][_0x4b8176(0x169)]('browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20'+JSON[_0x4b8176(0x18f)](this[_0x4b8176(0x1c9)][_0x4b8176(0x190)]()[_0x4b8176(0x16e)](_0x49b02b['FZVyL']))+'}}'),global[_0x4b8176(0x197)][0x0]['sessionNameSet__']=!![]);const _0x141b92=_0x49b02b[_0x4b8176(0x179)](this[_0x4b8176(0x1c9)]['state'],_0x49b02b[_0x4b8176(0x185)]);_0x141b92?(global['__sessionFailed']=!![],global[_0x4b8176(0x1b5)][_0x4b8176(0x1a9)](this[_0x4b8176(0x1c9)]['err'][_0x4b8176(0x174)]),await _0x49b02b[_0x4b8176(0x18c)](_0x2a053f,JSON[_0x4b8176(0x18f)](_0x49b02b[_0x4b8176(0x171)](_0x49b02b[_0x4b8176(0x18d)],this[_0x4b8176(0x1c9)]['err'][_0x4b8176(0x174)])),_0x49b02b[_0x4b8176(0x1c1)])):await _0x49b02b[_0x4b8176(0x18c)](_0x2a053f,JSON['stringify'](_0x49b02b['pSKaX']),_0x49b02b[_0x4b8176(0x1bd)]);}catch(_0x2c0b7b){}try{if(this['currentTest'][_0x4b8176(0x1a0)]&&globals['getGlobal'](_0x49b02b[_0x4b8176(0x1c0)])&&globals[_0x4b8176(0x168)](_0x49b02b['uhFBZ'])){logger[_0x4b8176(0x1a7)](_0x49b02b['aHeMt']);const _0x2fe6df={};_0x2fe6df[_0x4b8176(0x19d)]=this[_0x4b8176(0x1c9)][_0x4b8176(0x16b)],_0x2fe6df['thBuildUuid']=process['env'][testHubConstants[_0x4b8176(0x1b1)][_0x4b8176(0x17c)]],_0x2fe6df[_0x4b8176(0x186)]=process[_0x4b8176(0x15b)][testHubConstants[_0x4b8176(0x1b1)][_0x4b8176(0x183)]];const _0x207380=_0x2fe6df;logger[_0x4b8176(0x1a8)]('Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20'+JSON['stringify'](_0x207380)),logger[_0x4b8176(0x1a8)](_0x49b02b[_0x4b8176(0x17e)]),logger[_0x4b8176(0x1a8)](util[_0x4b8176(0x16a)](await global[_0x4b8176(0x197)][0x0]['executeAsyncScript'](scripts[_0x4b8176(0x173)],{'method':global[_0x4b8176(0x1b4)]}))),await global['__drivers'][0x0]['executeAsyncScript'](scripts[_0x4b8176(0x17d)],_0x207380),logger['info'](_0x49b02b[_0x4b8176(0x193)]);}}catch(_0x524683){logger[_0x4b8176(0x165)](_0x4b8176(0x167)+this[_0x4b8176(0x1c9)][_0x4b8176(0x190)]()+_0x4b8176(0x1bc),_0x524683);}try{try{if(_0x49b02b[_0x4b8176(0x1c2)](shouldProcessEventForTesthub)){global['__drivers'][0x0]&&await _0x49b02b[_0x4b8176(0x18c)](sendPlatformDetails,global[_0x4b8176(0x197)][0x0],this[_0x4b8176(0x1c9)]?this[_0x4b8176(0x1c9)][_0x4b8176(0x16b)]:null);if(_0x49b02b[_0x4b8176(0x187)](isBrowserstackInfra)){const _0x1a1bb9=_0x4b8176(0x194)+Date[_0x4b8176(0x1b6)]();await _0x49b02b[_0x4b8176(0x18c)](_0x2a053f,JSON[_0x4b8176(0x18f)](_0x1a1bb9),_0x49b02b[_0x4b8176(0x1b8)]);}}}catch{}_0x49b02b[_0x4b8176(0x1a2)](global[_0x4b8176(0x197)][0x0][_0x4b8176(0x189)],0x0)&&await global[_0x4b8176(0x18b)]();}catch(_0x58bd74){}_0x49b02b['JEuYw'](_0x205203);})[_0x3438a1(0x1cb)](()=>_0x28d158());},'afterAll'(_0x4b7a70){const _0xfe0a79=a32_0x4bf50e,_0x5a3ee3={'gQPbx':function(_0x14728a){return _0x14728a();}},_0x3e8983='browserstack internal helper hook';this[_0xfe0a79(0x17a)](0xfde8),new Promise(async _0x5233a2=>{const _0x54d3e7=_0xfe0a79;PerformanceTester[_0x54d3e7(0x175)](),await global[_0x54d3e7(0x18b)](),_0x5a3ee3['gQPbx'](_0x5233a2);})['then'](()=>_0x4b7a70());}};function a32_0xd07d(){const _0x36158c=['../../helpers/accessibility-automation/scripts','lMHKN','setGlobal','nJESF','info','debug','push','HHAfY','failed','testcase','../../helpers/performance-tester','22141NlLMgI','../../helpers/globals','\x20-\x20','ENV_VAR','__sessionFailed','IdWCC','browserstackSessionName','__error_messages__','now','KETTH','QMDLA','percy','DuiyB','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','.\x20Error\x20:','buSXc','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','oBVJG','zvspR','VFaBp','JEuYw','../../helpers/accessibility-automation/helper','cSmyR','6529dCUDdl','174SheoZw','618738tPdUIz','Automate\x20test\x20case\x20execution\x20has\x20started.','currentTest','475fzxnws','then','getCurrentUrl','755238mRpHlJ','TKfwK','BiMNC','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','\x22}}','TsMlF','env','passed','vhrGZ','appium:app','1844260xeZMKK','protocol','__skipSessionName','capabilities','Performing\x20scan\x20before\x20saving\x20results','NyGPB','error','app','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','getGlobal','executeScript','format','testAnalyticsId','shouldScanTestForAccessibility','tazyr','join','UeWbL','72FWizLW','LdDJT','Failed\x20to\x20store\x20session\x20name:\x20','performScan','message','stopMonitoring','uDEuz','QPcQf','http:','HxjfY','timeout','initQuit','BROWSERSTACK_TESTHUB_UUID','saveTestResults','JZrsj','34IkxaRP','length','mochaHooks','vtaHa','BROWSERSTACK_TESTHUB_JWT','isAccessibilityPlatform','yFqZw','thJwtToken','CyQpQ','bstackA11yShouldScan','quitCount_','znecm','driverCleanup','ztLtd','eHaOL','5944XlSkal','stringify','titlePath','session_','Failed:\x20','iSEeu','ObservabilitySync:','percyCaptureMode','iIYLk','__drivers','yzQpE','./test-observability/mochaUtils','\x20|\x20','149904SBjMaQ','IiITM','thTestRunUuid','INaiz','winstonLogger','accessibilityScanStarted','isArray','Mjgcm'];a32_0xd07d=function(){return _0x36158c;};return a32_0xd07d();}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';const a33_0x18f879=a33_0x5b0c;function a33_0x5b0c(_0xca073a,_0x5a4fd2){const _0x11e030=a33_0x11e0();return a33_0x5b0c=function(_0x5b0cc0,_0x452b77){_0x5b0cc0=_0x5b0cc0-0x1a6;let _0x10a6d3=_0x11e030[_0x5b0cc0];return _0x10a6d3;},a33_0x5b0c(_0xca073a,_0x5a4fd2);}(function(_0xf19bb2,_0x1d284e){const _0x5ae911=a33_0x5b0c,_0x1427d9=_0xf19bb2();while(!![]){try{const _0x2057b0=-parseInt(_0x5ae911(0x1b3))/0x1+-parseInt(_0x5ae911(0x1b6))/0x2*(-parseInt(_0x5ae911(0x1dc))/0x3)+parseInt(_0x5ae911(0x1ab))/0x4+parseInt(_0x5ae911(0x1ca))/0x5+parseInt(_0x5ae911(0x1cf))/0x6*(parseInt(_0x5ae911(0x1e4))/0x7)+-parseInt(_0x5ae911(0x1b9))/0x8+parseInt(_0x5ae911(0x1d9))/0x9*(-parseInt(_0x5ae911(0x1b0))/0xa);if(_0x2057b0===_0x1d284e)break;else _0x1427d9['push'](_0x1427d9['shift']());}catch(_0xd8b6c5){_0x1427d9['push'](_0x1427d9['shift']());}}}(a33_0x11e0,0xb48e6));function a33_0x11e0(){const _0x340d4a=['xjAZR','4770640hJRMWC','kVxFw','port','modifyBrowserStackW3CCaps','Deleting\x20','12664310NHDgWV','nightwatch','split','498949DCrlxB','isUndefined','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','542feFiuY','JihHN','filter','3067200sjxmFZ','splice','../../helpers/BrowserStackSetup','push','bfwwz','join','../../helpers/helper','env','forEach','cwd','winstonLogger','useW3C','existsSync','UIbuo','platforms','YvgfR','findIndex','5705090kaJRTT','hub.browserstack.com','tbeQB','WiKAd','selenium','521766grNiel','close','start_process','unlinkSync','nightwatch.conf.js','cXmOe','config','nightwatch.cmd','CaXHH','../utils/constants','18TpoQZv','child_process','info','10533pcshaz','exports','SyaFp','xWRDE','test_settings','YKNpu','Getting\x20your\x20nightwatch\x20configs\x20from\x20','inherit','70oScUHs','map','FAFFA','platform','getPlatformName','--env','ERtwT','nightwatch.json','../../helpers/logger','trim','stringify','slice','modifyBrowserStackCaps','now'];a33_0x11e0=function(){return _0x340d4a;};return a33_0x11e0();}const fs=require('fs'),path=require('path'),{spawn}=require(a33_0x18f879(0x1da)),logger=require(a33_0x18f879(0x1ec))[a33_0x18f879(0x1c3)],{default:BrowserStackSetup}=require(a33_0x18f879(0x1bb)),helper=require(a33_0x18f879(0x1bf)),constants=require(a33_0x18f879(0x1d8)),getUserNightwatchConfigs=(_0x5f4ec3,_0x51a275)=>{const _0x428a9e=a33_0x18f879,_0x26c3ec={'xWRDE':_0x428a9e(0x1d3),'YvgfR':_0x428a9e(0x1eb),'SyaFp':function(_0x215d60,_0x33fae5){return _0x215d60(_0x33fae5);},'CaXHH':'Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file'};let _0x30b17c=null,_0x43ed5d={};const _0x421c4b=_0x51a275[_0x428a9e(0x1c9)](_0x5b1938=>_0x5b1938==='--config');if(!helper[_0x428a9e(0x1b4)](_0x5f4ec3[_0x428a9e(0x1d5)])&&fs[_0x428a9e(0x1c5)](path[_0x428a9e(0x1be)](process[_0x428a9e(0x1c2)](),_0x5f4ec3[_0x428a9e(0x1d5)])))_0x30b17c=path[_0x428a9e(0x1be)](process[_0x428a9e(0x1c2)](),_0x5f4ec3[_0x428a9e(0x1d5)]),_0x51a275[_0x428a9e(0x1ba)](_0x421c4b,0x2);else{if(fs[_0x428a9e(0x1c5)](path[_0x428a9e(0x1be)](process[_0x428a9e(0x1c2)](),_0x26c3ec[_0x428a9e(0x1df)])))_0x30b17c=path[_0x428a9e(0x1be)](process[_0x428a9e(0x1c2)](),_0x26c3ec[_0x428a9e(0x1df)]);else fs['existsSync'](path[_0x428a9e(0x1be)](process['cwd'](),_0x26c3ec[_0x428a9e(0x1c8)]))&&(_0x30b17c=path['join'](process[_0x428a9e(0x1c2)](),_0x26c3ec['YvgfR']));}return _0x30b17c?(logger['info'](_0x428a9e(0x1e2)+_0x30b17c),_0x43ed5d=_0x26c3ec[_0x428a9e(0x1de)](require,_0x30b17c)):logger[_0x428a9e(0x1db)](_0x26c3ec[_0x428a9e(0x1d7)]),_0x43ed5d;},removeExistingEnvs=_0x33e416=>{const _0x40d13a=a33_0x18f879,_0x5c8490={};_0x5c8490[_0x40d13a(0x1aa)]=function(_0x383de0,_0x42b37e){return _0x383de0>_0x42b37e;};const _0x541f1e=_0x5c8490;let _0x506af0=_0x33e416[_0x40d13a(0x1c9)](_0x4f502c=>_0x4f502c===_0x40d13a(0x1e9));_0x541f1e[_0x40d13a(0x1aa)](_0x506af0,-0x1)&&_0x33e416[_0x40d13a(0x1ba)](_0x506af0,0x2),_0x506af0=_0x33e416['findIndex'](_0x373f81=>_0x373f81==='-e'),_0x541f1e[_0x40d13a(0x1aa)](_0x506af0,-0x1)&&_0x33e416['splice'](_0x506af0,0x2);};function run(_0x4f3c05,_0x4d3f22){const _0x4bd4c2=a33_0x18f879,_0x1f995f={'WiKAd':_0x4bd4c2(0x1b1),'Ffdzp':function(_0x3b6d72,_0x4bbd73){return _0x3b6d72+_0x4bbd73;},'bfwwz':_0x4bd4c2(0x1e0),'tbeQB':function(_0x1ecdd7,_0x120e3f,_0x2c0ee5){return _0x1ecdd7(_0x120e3f,_0x2c0ee5);},'kVxFw':_0x4bd4c2(0x1cb),'YKNpu':_0x4bd4c2(0x1b5),'qZRvt':function(_0x592120,_0x3424e1){return _0x592120===_0x3424e1;},'fiOMG':'nightwatch-browserstack.json','FAFFA':function(_0x161977,_0x1cc13f){return _0x161977(_0x1cc13f);},'cbfgv':function(_0x423a08,_0x115726,_0x4cf379,_0x2b14c3){return _0x423a08(_0x115726,_0x4cf379,_0x2b14c3);},'JihHN':_0x4bd4c2(0x1d6),'UIbuo':'--config','cXmOe':_0x4bd4c2(0x1e9),'ERtwT':_0x4bd4c2(0x1e3),'sBjoj':_0x4bd4c2(0x1d0)},_0x8ac793=new BrowserStackSetup(_0x4f3c05);if(!_0x8ac793[_0x4bd4c2(0x1d5)])return;const _0x1c251b=_0x1f995f[_0x4bd4c2(0x1cc)](getUserNightwatchConfigs,_0x4f3c05,_0x4d3f22),_0x5d3a35={};_0x5d3a35[_0x4bd4c2(0x1d1)]=![];const _0x36fa92={};_0x36fa92['host']=_0x1f995f[_0x4bd4c2(0x1ac)],_0x36fa92[_0x4bd4c2(0x1ad)]=0x1bb;const _0x319f5d={};_0x319f5d['webdriver']=_0x5d3a35,_0x319f5d[_0x4bd4c2(0x1ce)]=_0x36fa92;const _0x4bd674=_0x319f5d;logger[_0x4bd4c2(0x1db)](_0x1f995f[_0x4bd4c2(0x1e1)]);const _0x214ee7={..._0x1c251b},_0x36c559=_0x214ee7,_0x551e2b=helper[_0x4bd4c2(0x1c4)](_0x8ac793[_0x4bd4c2(0x1d5)]),_0x4d6065=[];_0x8ac793[_0x4bd4c2(0x1d5)][_0x4bd4c2(0x1c7)]['forEach']((_0x19774d,_0x41c75e)=>{const _0x2d1ed=_0x4bd4c2;_0x551e2b?_0x4d6065[_0x2d1ed(0x1bc)](helper[_0x2d1ed(0x1ae)](_0x8ac793[_0x2d1ed(0x1d5)],_0x1f995f['WiKAd'],_0x41c75e)):_0x4d6065['push'](helper[_0x2d1ed(0x1a8)](_0x8ac793[_0x2d1ed(0x1d5)],_0x1f995f[_0x2d1ed(0x1cd)],_0x41c75e));});const _0x5578bf={},_0x8bc55e=[];_0x4f3c05[_0x4bd4c2(0x1c0)]=_0x4f3c05[_0x4bd4c2(0x1c0)]||_0x4f3c05['e'];const _0x11e20b=_0x4f3c05['env']?_0x4f3c05[_0x4bd4c2(0x1c0)][_0x4bd4c2(0x1ed)]()[_0x4bd4c2(0x1b2)](',')[_0x4bd4c2(0x1e5)](_0x305875=>_0x305875[_0x4bd4c2(0x1ed)]())[_0x4bd4c2(0x1b8)](_0x14d883=>_0x14d883!==''):[''];_0x1f995f['qZRvt'](_0x11e20b['length'],0x0)&&_0x11e20b[_0x4bd4c2(0x1bc)]('');_0x11e20b['forEach'](_0x483497=>{const _0x507788=_0x4bd4c2;_0x4d6065[_0x507788(0x1c1)](_0x11718d=>{const _0x4dc58a=_0x507788;let _0x27aeac=_0x1f995f['Ffdzp'](helper[_0x4dc58a(0x1e8)](_0x11718d,'_'),'_'+Date[_0x4dc58a(0x1a9)]());_0x483497&&(_0x27aeac+='_'+_0x483497);if(_0x483497&&(!_0x1c251b[_0x1f995f['bfwwz']]||!_0x1c251b[_0x1f995f[_0x4dc58a(0x1bd)]][_0x483497]))return;const _0x597e7b={..._0x4bd674};_0x597e7b['desiredCapabilities']=_0x11718d;const _0xaf509d=_0x597e7b;_0x5578bf[_0x27aeac]=_0x483497?helper['mergeDeep'](_0x1c251b[_0x1f995f[_0x4dc58a(0x1bd)]][_0x483497],_0xaf509d):_0xaf509d,_0x8bc55e[_0x4dc58a(0x1bc)](_0x27aeac);});});!_0x36c559[_0x4bd4c2(0x1e0)]&&(_0x36c559['test_settings']={});_0x36c559[_0x4bd4c2(0x1e0)]={..._0x36c559[_0x4bd4c2(0x1e0)],..._0x5578bf};const _0x589f3b=path[_0x4bd4c2(0x1be)](__dirname,_0x1f995f['fiOMG']);fs['writeFileSync'](_0x589f3b,JSON[_0x4bd4c2(0x1a6)](_0x36c559)),_0x1f995f[_0x4bd4c2(0x1e6)](removeExistingEnvs,_0x4d3f22);const _0x31f682=_0x1f995f['cbfgv'](spawn,/^win/['test'](process[_0x4bd4c2(0x1e7)])?_0x1f995f[_0x4bd4c2(0x1b7)]:_0x1f995f[_0x4bd4c2(0x1cd)],[_0x1f995f[_0x4bd4c2(0x1c6)],_0x589f3b,..._0x4d3f22[_0x4bd4c2(0x1a7)](0x1),_0x1f995f[_0x4bd4c2(0x1d4)],_0x8bc55e[_0x4bd4c2(0x1be)](',')],{'stdio':_0x1f995f[_0x4bd4c2(0x1ea)]});_0x31f682['on'](_0x1f995f['sBjoj'],async _0x51b7ed=>{const _0x57368b=_0x4bd4c2;logger['debug']('child\x20process\x20exited\x20with\x20code\x20'+_0x51b7ed),logger[_0x57368b(0x1db)](_0x57368b(0x1af)+_0x589f3b),fs[_0x57368b(0x1d2)](_0x589f3b);});}module[a33_0x18f879(0x1dd)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a33_0x371cb3=a33_0x1a25;function a33_0x1a25(_0x3eaba7,_0x5dddef){const _0x376016=a33_0x3760();return a33_0x1a25=function(_0x1a25d6,_0x52c0c6){_0x1a25d6=_0x1a25d6-0x9d;let _0x468a6c=_0x376016[_0x1a25d6];return _0x468a6c;},a33_0x1a25(_0x3eaba7,_0x5dddef);}function a33_0x3760(){const _0x38241d=['testInfo','zjOGv','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','../../helpers/logger','../../helpers/helper','connectOptions','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','executeScript','use','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','649516fETidj','IcOjR','3282pWQnmk','MOeNB','rODps','umtQB','platformValidation','16eVPDkQ','CCfrR','Bypkb','performScan','No\x20summaryResults\x20found.','workerInfo','HggHW','vrVSw','scannerProcessingTimeout','warn','AKOYK','winstonLogger','alFOU','lxESU','accessibilityOptions.includeIssueType.bestPractice','gAttc','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','nJBSx','656068JRwVnr','format','WebDriver','dAWSB','OwIbZ','replace','FGQqg','YYvPP','GSzAL','debug','pbTPG','playwright-chromium','deviceName','browserName','project','84932RpFMPY','setAccessibilityCapabilities','getAccessibilityResultsSummary','TrBqK','MTNhN','(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','error','4465sFGQvX','env','oXbMs','SjdXo','IYJUK','JqWjk','constructor','parse','fobrR','atWZj','nXDMM','browserstack.accessibility','bestPractice','../../helpers/accessibility-automation/scripts','latest','39xqfEmK','method','pgFvb','browserStackEvaluate','BS_A11Y_JWT','../../helpers/accessibility-automation/helper','accessibilityOptions.scannerProcessingTimeout','includeIssueType','needsReview','getAccessibilityResults','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','Jbdxy','7594380ygGrSk','stringify','scannerVersion','2113929Deyoej','accessibilityOptions.wcagVersion','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','bstackSdkArgs','browser_version','3519859kvRGRw','executeAsyncScript','JoRBZ','EqHSL','chrome','11fbgzcJ','accessibilityPlatform','accessibilityOptions.authToken','accessibilityOptions','name','browserStackExecuteDriver','wcagVersion','HAHoE','processAccessibilityCaps','(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'];a33_0x3760=function(){return _0x38241d;};return a33_0x3760();}(function(_0x50d7b3,_0xed2560){const _0x520c1b=a33_0x1a25,_0x4cb2df=_0x50d7b3();while(!![]){try{const _0x597589=parseInt(_0x520c1b(0xb5))/0x1+-parseInt(_0x520c1b(0x108))/0x2+-parseInt(_0x520c1b(0xda))/0x3*(-parseInt(_0x520c1b(0xc4))/0x4)+-parseInt(_0x520c1b(0xcb))/0x5*(-parseInt(_0x520c1b(0x9e))/0x6)+parseInt(_0x520c1b(0xef))/0x7+parseInt(_0x520c1b(0xa3))/0x8*(-parseInt(_0x520c1b(0xe9))/0x9)+parseInt(_0x520c1b(0xe6))/0xa*(-parseInt(_0x520c1b(0xf4))/0xb);if(_0x597589===_0xed2560)break;else _0x4cb2df['push'](_0x4cb2df['shift']());}catch(_0x3b0169){_0x4cb2df['push'](_0x4cb2df['shift']());}}}(a33_0x3760,0x5a327));const util=require('util'),logger=require(a33_0x371cb3(0x101))[a33_0x371cb3(0xae)],{isAccessibilityAutomationSession}=require(a33_0x371cb3(0xdf)),{isUndefined}=require(a33_0x371cb3(0x102)),scripts=require(a33_0x371cb3(0xd8));exports[a33_0x371cb3(0xdd)]=async(_0x427ed8,_0x517437,_0x54c279={})=>{const _0x3cd255=a33_0x371cb3,_0x1fbf06={};_0x1fbf06[_0x3cd255(0x9f)]='bstackSdkArgs';const _0x37f6cd=_0x1fbf06;return await _0x427ed8['evaluate'](_0x3cd255(0xc9)+_0x517437[_0x3cd255(0xba)](/arguments/g,_0x37f6cd['MOeNB'])+'\x0a\x20\x20\x20\x20})\x0a\x20\x20})('+JSON['stringify'](_0x54c279)+')');},exports[a33_0x371cb3(0xf9)]=async(_0x15c66d,_0x3138e1,_0x3fe604={})=>{const _0x4875f2=a33_0x371cb3,_0x219d8b={};_0x219d8b['alFOU']=function(_0x5bd638,_0x1837d5){return _0x5bd638===_0x1837d5;},_0x219d8b[_0x4875f2(0xbf)]=_0x4875f2(0xb7),_0x219d8b[_0x4875f2(0xd0)]='Playwright',_0x219d8b[_0x4875f2(0xbc)]=_0x4875f2(0xed);const _0x3d5fa3=_0x219d8b;if(_0x3d5fa3[_0x4875f2(0xaf)](_0x15c66d[_0x4875f2(0xd1)][_0x4875f2(0xf8)],_0x3d5fa3[_0x4875f2(0xbf)]))return await _0x15c66d[_0x4875f2(0xf0)](_0x3138e1,_0x3fe604);else{if(_0x3d5fa3[_0x4875f2(0xaf)](_0x15c66d['constructor'][_0x4875f2(0xf8)],_0x3d5fa3[_0x4875f2(0xd0)]))return await _0x15c66d[_0x4875f2(0x105)](_0x4875f2(0xfd)+_0x3138e1['replace'](/arguments/g,_0x3d5fa3['YYvPP'])+'\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})('+JSON[_0x4875f2(0xe7)](_0x3fe604)+')');}},exports[a33_0x371cb3(0xc5)]=async _0x1cb986=>{const _0x5b7671=a33_0x371cb3,_0x42f895={};_0x42f895[_0x5b7671(0xa4)]=_0x5b7671(0xea),_0x42f895[_0x5b7671(0xc8)]=_0x5b7671(0xe0),_0x42f895[_0x5b7671(0xcf)]=_0x5b7671(0xb1),_0x42f895[_0x5b7671(0xff)]='accessibilityOptions.includeIssueType.needsReview',_0x42f895[_0x5b7671(0xf1)]=_0x5b7671(0xf6),_0x42f895[_0x5b7671(0x9d)]='accessibilityOptions.scannerVersion';const _0x1c4d16=_0x42f895;_0x1cb986[_0x5b7671(0xf7)]&&(_0x1cb986[_0x5b7671(0xf7)]['wcagVersion']&&(_0x1cb986[_0x1c4d16[_0x5b7671(0xa4)]]=_0x1cb986[_0x5b7671(0xf7)][_0x5b7671(0xfa)]),_0x1cb986[_0x5b7671(0xf7)][_0x5b7671(0xab)]&&(_0x1cb986[_0x1c4d16['MTNhN']]=_0x1cb986[_0x5b7671(0xf7)][_0x5b7671(0xab)]),_0x1cb986[_0x5b7671(0xf7)][_0x5b7671(0xe1)]&&(_0x1cb986[_0x1c4d16[_0x5b7671(0xcf)]]=_0x1cb986['accessibilityOptions'][_0x5b7671(0xe1)][_0x5b7671(0xd7)],_0x1cb986[_0x1c4d16['zjOGv']]=_0x1cb986['accessibilityOptions'][_0x5b7671(0xe1)][_0x5b7671(0xe2)]));const _0x4fe50a=JSON[_0x5b7671(0xd2)](process[_0x5b7671(0xcc)][_0x5b7671(0xe4)])[_0x5b7671(0xe8)];_0x1cb986[_0x1c4d16[_0x5b7671(0xf1)]]=process[_0x5b7671(0xcc)][_0x5b7671(0xde)],_0x1cb986[_0x1c4d16['IcOjR']]=_0x4fe50a,delete _0x1cb986[_0x5b7671(0xf7)];},exports[a33_0x371cb3(0xe3)]=async _0xa7a13d=>{const _0x17ed15=a33_0x371cb3,_0x44c702={};_0x44c702[_0x17ed15(0xa1)]='No\x20accessibility\x20results\x20were\x20found.',_0x44c702[_0x17ed15(0xd5)]=_0x17ed15(0x104);const _0x46bfb4=_0x44c702;if(global['accessibilityPlatform'])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0xa7a13d,scripts.performScan)));const res=await exports.browserStackEvaluate(_0xa7a13d,scripts.getResults);return res;}catch{return logger[_0x17ed15(0xca)](_0x46bfb4['umtQB']),[];}else return logger['warn'](_0x46bfb4['nXDMM']),[];},exports[a33_0x371cb3(0xa6)]=async(_0x43de62,_0x2c507f='')=>{const _0x580013=a33_0x371cb3;if(global[_0x580013(0xf5)]){const _0x14d9ca={};return _0x14d9ca[_0x580013(0xdb)]=_0x2c507f,await exports['browserStackEvaluate'](_0x43de62,scripts[_0x580013(0xa6)],_0x14d9ca);}},exports[a33_0x371cb3(0xc6)]=async _0x3d2723=>{const _0x5d97b5=a33_0x371cb3,_0x2dfeb3={};_0x2dfeb3[_0x5d97b5(0xbb)]=_0x5d97b5(0xa7),_0x2dfeb3[_0x5d97b5(0xb2)]=_0x5d97b5(0xb3);const _0x5d8aa2=_0x2dfeb3;if(global['accessibilityPlatform'])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x3d2723,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x3d2723,scripts.getResultsSummary);return summaryResults;}catch{return logger[_0x5d97b5(0xbe)](_0x5d8aa2[_0x5d97b5(0xbb)]),{};}else return logger[_0x5d97b5(0xac)](_0x5d8aa2['gAttc']),{};},exports[a33_0x371cb3(0xa2)]=async _0x211934=>{const _0x1d17f7=a33_0x371cb3,_0x3af535={'HAHoE':function(_0x37819d,_0x4d4bcd){return _0x37819d!==_0x4d4bcd;},'fobrR':_0x1d17f7(0xec),'TrBqK':function(_0x59cd7f,_0x11c7a0){return _0x59cd7f===_0x11c7a0;},'hiEFm':'chrome','kWGiZ':_0x1d17f7(0xc0),'pgFvb':_0x1d17f7(0x100),'Jbdxy':function(_0x39cb9b,_0x17696e){return _0x39cb9b(_0x17696e);},'Bypkb':function(_0x1ade11,_0x3faa83){return _0x1ade11===_0x3faa83;},'lxESU':_0x1d17f7(0xd9),'lPkdN':function(_0x566903,_0x2b0498){return _0x566903>_0x2b0498;},'nJBSx':_0x1d17f7(0x107)};try{if(!_0x3af535[_0x1d17f7(0xfb)](_0x211934[_0x1d17f7(0xc1)],''))return logger['warn'](_0x3af535[_0x1d17f7(0xd3)]),![];const _0x4d1bd1=_0x211934['browser'];if(!(_0x3af535[_0x1d17f7(0xc7)](_0x4d1bd1,_0x3af535['hiEFm'])||_0x3af535[_0x1d17f7(0xc7)](_0x4d1bd1,_0x3af535['kWGiZ'])))return logger['warn'](_0x3af535[_0x1d17f7(0xdc)]),![];const _0x55fe74=_0x3af535[_0x1d17f7(0xe5)](parseInt,_0x211934['browser_version']);if(!(_0x3af535[_0x1d17f7(0xa5)](_0x55fe74,_0x3af535[_0x1d17f7(0xb0)])||_0x3af535['lPkdN'](_0x55fe74,0x5e)))return logger[_0x1d17f7(0xac)](_0x3af535[_0x1d17f7(0xb4)]),![];}catch(_0xefed48){logger[_0x1d17f7(0xbe)](_0x1d17f7(0xeb)+util[_0x1d17f7(0xb6)](_0xefed48));}return!![];},exports[a33_0x371cb3(0xfc)]=(_0x33d6e3,_0x511978,_0x26344d)=>{const _0x5785de=a33_0x371cb3,_0x575619={'AKOYK':function(_0x20bf77){return _0x20bf77();},'GSzAL':_0x5785de(0xd6),'OwIbZ':function(_0x167ebf,_0x211e15){return _0x167ebf===_0x211e15;},'atWZj':_0x5785de(0xf3),'UhIVS':_0x5785de(0xc0),'EqHSL':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','vrVSw':function(_0x452051,_0x2beaf8){return _0x452051===_0x2beaf8;},'HggHW':_0x5785de(0xd9),'dAWSB':function(_0x3eaf83,_0x37e502){return _0x3eaf83>_0x37e502;},'khaEt':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','rODps':function(_0x456bb0,_0x367ddd){return _0x456bb0(_0x367ddd);},'oXbMs':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','SjdXo':function(_0x3b7fbf,_0x21850c){return _0x3b7fbf+_0x21850c;}};try{if(_0x575619[_0x5785de(0xad)](isAccessibilityAutomationSession)){global['accessibilityPlatform']=!![];!_0x33d6e3[_0x575619[_0x5785de(0xbd)]]&&(global['accessibilityPlatform']=![]);!(_0x575619['OwIbZ'](_0x33d6e3[_0x5785de(0xc2)],_0x575619[_0x5785de(0xd4)])||_0x575619[_0x5785de(0xb9)](_0x33d6e3[_0x5785de(0xc2)],_0x575619['UhIVS']))&&(logger['warn'](_0x575619[_0x5785de(0xf2)]),global[_0x5785de(0xf5)]=![]);!(_0x575619[_0x5785de(0xaa)](_0x33d6e3[_0x5785de(0xee)],_0x575619[_0x5785de(0xa9)])||_0x575619[_0x5785de(0xb8)](_0x33d6e3['browser_version'],0x5e))&&(logger[_0x5785de(0xac)](_0x575619['khaEt']),global[_0x5785de(0xf5)]=![]);!_0x575619['rODps'](isUndefined,_0x33d6e3[_0x5785de(0xc1)])&&(logger[_0x5785de(0xac)](_0x575619[_0x5785de(0xcd)]),global[_0x5785de(0xf5)]=![]);if(!global[_0x5785de(0xf5)]){_0x33d6e3[_0x575619[_0x5785de(0xbd)]]=![];const _0x4e4f4f=_0x575619[_0x5785de(0xce)](_0x511978,_0x575619[_0x5785de(0xa0)](encodeURIComponent,JSON[_0x5785de(0xe7)](_0x33d6e3)));_0x26344d&&(_0x26344d['currentTest'][_0x5785de(0xfe)][_0x5785de(0xc3)][_0x5785de(0x106)][_0x5785de(0x103)]['wsEndpoint']=_0x4e4f4f,_0x26344d[_0x5785de(0xa8)][_0x5785de(0xc3)]['use']['connectOptions']['wsEndpoint']=_0x4e4f4f);}}}catch(_0x47399f){logger[_0x5785de(0xbe)]('Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20'+util[_0x5785de(0xb6)](_0x47399f));}};
|
|
1
|
+
const a34_0x1d3b26=a34_0x7585;(function(_0x4324af,_0x2a8ff2){const _0x37aeeb=a34_0x7585,_0x3de03a=_0x4324af();while(!![]){try{const _0x2c7de5=parseInt(_0x37aeeb(0x1f5))/0x1+parseInt(_0x37aeeb(0x1e1))/0x2+parseInt(_0x37aeeb(0x230))/0x3*(parseInt(_0x37aeeb(0x205))/0x4)+parseInt(_0x37aeeb(0x235))/0x5*(-parseInt(_0x37aeeb(0x209))/0x6)+parseInt(_0x37aeeb(0x220))/0x7+parseInt(_0x37aeeb(0x1fa))/0x8+-parseInt(_0x37aeeb(0x1cd))/0x9*(parseInt(_0x37aeeb(0x204))/0xa);if(_0x2c7de5===_0x2a8ff2)break;else _0x3de03a['push'](_0x3de03a['shift']());}catch(_0x4eb13b){_0x3de03a['push'](_0x3de03a['shift']());}}}(a34_0x1938,0x57f6e));const util=require('util'),logger=require(a34_0x1d3b26(0x222))[a34_0x1d3b26(0x228)],{isAccessibilityAutomationSession}=require(a34_0x1d3b26(0x1d1)),{isUndefined}=require(a34_0x1d3b26(0x1cb)),scripts=require('../../helpers/accessibility-automation/scripts');exports[a34_0x1d3b26(0x231)]=async(_0x45d94d,_0x20863c,_0x356aa6={})=>{const _0xfbcf0=a34_0x1d3b26,_0x1dc836={};_0x1dc836[_0xfbcf0(0x1ff)]=_0xfbcf0(0x1d3);const _0x408de3=_0x1dc836;return await _0x45d94d[_0xfbcf0(0x201)](_0xfbcf0(0x1f8)+_0x20863c[_0xfbcf0(0x208)](/arguments/g,_0x408de3[_0xfbcf0(0x1ff)])+_0xfbcf0(0x212)+JSON[_0xfbcf0(0x20a)](_0x356aa6)+')');},exports[a34_0x1d3b26(0x1eb)]=async(_0x53f5d3,_0x156842,_0x26360b={})=>{const _0x58fc74=a34_0x1d3b26,_0x4280be={};_0x4280be['dbhuG']=function(_0x3b6b44,_0x5ed56a){return _0x3b6b44===_0x5ed56a;},_0x4280be[_0x58fc74(0x225)]=_0x58fc74(0x20f),_0x4280be[_0x58fc74(0x214)]=_0x58fc74(0x227),_0x4280be[_0x58fc74(0x219)]=_0x58fc74(0x1d3);const _0x9382e8=_0x4280be;if(_0x9382e8[_0x58fc74(0x22a)](_0x53f5d3[_0x58fc74(0x1ce)][_0x58fc74(0x20c)],_0x9382e8[_0x58fc74(0x225)]))return await _0x53f5d3['executeAsyncScript'](_0x156842,_0x26360b);else{if(_0x9382e8[_0x58fc74(0x22a)](_0x53f5d3['constructor'][_0x58fc74(0x20c)],_0x9382e8[_0x58fc74(0x214)]))return await _0x53f5d3['executeScript'](_0x58fc74(0x1cc)+_0x156842[_0x58fc74(0x208)](/arguments/g,_0x9382e8[_0x58fc74(0x219)])+_0x58fc74(0x21a)+JSON[_0x58fc74(0x20a)](_0x26360b)+')');}},exports[a34_0x1d3b26(0x22d)]=async _0x56e925=>{const _0xc0688f=a34_0x1d3b26,_0x24f9e7={};_0x24f9e7[_0xc0688f(0x234)]=_0xc0688f(0x21e),_0x24f9e7[_0xc0688f(0x21b)]=_0xc0688f(0x223),_0x24f9e7[_0xc0688f(0x1f2)]=_0xc0688f(0x1e6),_0x24f9e7[_0xc0688f(0x1d5)]=_0xc0688f(0x21f),_0x24f9e7[_0xc0688f(0x1e5)]=_0xc0688f(0x1f1),_0x24f9e7['nUOJb']=_0xc0688f(0x1fc);const _0x2f2de3=_0x24f9e7;_0x56e925[_0xc0688f(0x1ee)]&&(_0x56e925[_0xc0688f(0x1ee)]['wcagVersion']&&(_0x56e925[_0x2f2de3['DLyDK']]=_0x56e925[_0xc0688f(0x1ee)][_0xc0688f(0x1d0)]),_0x56e925[_0xc0688f(0x1ee)][_0xc0688f(0x217)]&&(_0x56e925[_0x2f2de3[_0xc0688f(0x21b)]]=_0x56e925[_0xc0688f(0x1ee)][_0xc0688f(0x217)]),_0x56e925[_0xc0688f(0x1ee)][_0xc0688f(0x1f4)]&&(_0x56e925[_0x2f2de3[_0xc0688f(0x1f2)]]=_0x56e925[_0xc0688f(0x1ee)]['includeIssueType'][_0xc0688f(0x216)],_0x56e925[_0x2f2de3[_0xc0688f(0x1d5)]]=_0x56e925[_0xc0688f(0x1ee)][_0xc0688f(0x1f4)][_0xc0688f(0x1de)]));const _0x140b71=JSON['parse'](process['env'][_0xc0688f(0x211)])['scannerVersion'];_0x56e925[_0x2f2de3[_0xc0688f(0x1e5)]]=process[_0xc0688f(0x236)][_0xc0688f(0x20d)],_0x56e925[_0x2f2de3[_0xc0688f(0x1fe)]]=_0x140b71,delete _0x56e925['accessibilityOptions'];},exports[a34_0x1d3b26(0x1e8)]=async _0x4b2e71=>{const _0x27053c=a34_0x1d3b26,_0x3b8f35={};_0x3b8f35[_0x27053c(0x1db)]=_0x27053c(0x1d6),_0x3b8f35['GjfsT']=_0x27053c(0x218);const _0x39fe61=_0x3b8f35;if(global['accessibilityPlatform'])try{logger.debug('Performing scan before getting results');logger.debug(util.format(await exports.browserStackEvaluate(_0x4b2e71,scripts.performScan)));const res=await exports.browserStackEvaluate(_0x4b2e71,scripts.getResults);return res;}catch{return logger[_0x27053c(0x1f6)](_0x39fe61[_0x27053c(0x1db)]),[];}else return logger[_0x27053c(0x232)](_0x39fe61[_0x27053c(0x1ef)]),[];},exports['performScan']=async(_0x23c28a,_0x2a7034='')=>{const _0x2dd25b=a34_0x1d3b26;if(global[_0x2dd25b(0x1d9)]){const _0x2b8e49={};return _0x2b8e49[_0x2dd25b(0x207)]=_0x2a7034,await exports[_0x2dd25b(0x231)](_0x23c28a,scripts[_0x2dd25b(0x210)],_0x2b8e49);}},exports[a34_0x1d3b26(0x202)]=async _0x972634=>{const _0x3025cf=a34_0x1d3b26,_0x2f182a={};_0x2f182a[_0x3025cf(0x1da)]=_0x3025cf(0x200),_0x2f182a[_0x3025cf(0x224)]=_0x3025cf(0x1d8);const _0x5f4340=_0x2f182a;if(global[_0x3025cf(0x1d9)])try{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x972634,scripts.performScan)));const summaryResults=await exports.browserStackEvaluate(_0x972634,scripts.getResultsSummary);return summaryResults;}catch{return logger['debug'](_0x5f4340[_0x3025cf(0x1da)]),{};}else return logger[_0x3025cf(0x232)](_0x5f4340['NLbGk']),{};},exports[a34_0x1d3b26(0x20b)]=async _0x18a33c=>{const _0x8d78c2=a34_0x1d3b26,_0xcef484={'zWVho':function(_0x50ffb2,_0x278ec5){return _0x50ffb2!==_0x278ec5;},'IHiOg':_0x8d78c2(0x1cf),'vPMPd':function(_0x37592b,_0x42c8e4){return _0x37592b===_0x42c8e4;},'TMJDl':_0x8d78c2(0x215),'bqoYQ':function(_0x527f9b,_0xa1ec9e){return _0x527f9b===_0xa1ec9e;},'YVjYR':'playwright-chromium','InYwA':_0x8d78c2(0x22f),'FkcwO':function(_0x4b846d,_0x4e25f0){return _0x4b846d(_0x4e25f0);},'ikLlY':function(_0x24f217,_0x5d228d){return _0x24f217===_0x5d228d;},'rkJKg':'latest','JYueP':function(_0x31b821,_0x45a6df){return _0x31b821>_0x45a6df;},'Ulskz':_0x8d78c2(0x1f9)};try{if(!_0xcef484[_0x8d78c2(0x1dc)](_0x18a33c['deviceName'],''))return logger[_0x8d78c2(0x232)](_0xcef484[_0x8d78c2(0x1e3)]),![];const _0x284a85=_0x18a33c[_0x8d78c2(0x21d)];if(!(_0xcef484[_0x8d78c2(0x213)](_0x284a85,_0xcef484[_0x8d78c2(0x1e0)])||_0xcef484['bqoYQ'](_0x284a85,_0xcef484[_0x8d78c2(0x229)])))return logger[_0x8d78c2(0x232)](_0xcef484[_0x8d78c2(0x1fb)]),![];const _0x18ac79=_0xcef484[_0x8d78c2(0x1e4)](parseInt,_0x18a33c['browser_version']);if(!(_0xcef484['ikLlY'](_0x18ac79,_0xcef484['rkJKg'])||_0xcef484[_0x8d78c2(0x1d2)](_0x18ac79,0x5e)))return logger[_0x8d78c2(0x232)](_0xcef484[_0x8d78c2(0x1ea)]),![];}catch(_0x27e6a2){logger[_0x8d78c2(0x21c)]('Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20'+util['format'](_0x27e6a2));}return!![];},exports[a34_0x1d3b26(0x22c)]=(_0x1d15a0,_0x4428ff,_0xbc7d9c)=>{const _0x285749=a34_0x1d3b26,_0x133f6a={'Iqpaj':function(_0x118a17){return _0x118a17();},'KZRcV':_0x285749(0x1ec),'AhIdF':function(_0x30248d,_0x1733de){return _0x30248d===_0x1733de;},'UzMOW':_0x285749(0x215),'AShoC':function(_0x4e370e,_0x6a322e){return _0x4e370e===_0x6a322e;},'gmQXD':_0x285749(0x221),'FThLX':_0x285749(0x22f),'jLlmu':function(_0x590b70,_0x24aeb2){return _0x590b70===_0x24aeb2;},'FwCQn':'latest','nhDyB':function(_0x4c6f7a,_0xaccc29){return _0x4c6f7a>_0xaccc29;},'uaSRC':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','QCebX':function(_0x1faa9f,_0x4c7079){return _0x1faa9f(_0x4c7079);},'MSRgb':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','FHymf':function(_0x1e0587,_0x45dd55){return _0x1e0587+_0x45dd55;}};try{if(_0x133f6a[_0x285749(0x1f7)](isAccessibilityAutomationSession)){global['accessibilityPlatform']=!![];!_0x1d15a0[_0x133f6a[_0x285749(0x1f3)]]&&(global[_0x285749(0x1d9)]=![]);!(_0x133f6a[_0x285749(0x1df)](_0x1d15a0[_0x285749(0x1dd)],_0x133f6a['UzMOW'])||_0x133f6a['AShoC'](_0x1d15a0[_0x285749(0x1dd)],_0x133f6a[_0x285749(0x206)]))&&(logger[_0x285749(0x232)](_0x133f6a[_0x285749(0x226)]),global['accessibilityPlatform']=![]);!(_0x133f6a[_0x285749(0x203)](_0x1d15a0[_0x285749(0x1d4)],_0x133f6a[_0x285749(0x1e7)])||_0x133f6a['nhDyB'](_0x1d15a0[_0x285749(0x1d4)],0x5e))&&(logger[_0x285749(0x232)](_0x133f6a[_0x285749(0x1ed)]),global[_0x285749(0x1d9)]=![]);!_0x133f6a[_0x285749(0x1ca)](isUndefined,_0x1d15a0[_0x285749(0x233)])&&(logger[_0x285749(0x232)](_0x133f6a['MSRgb']),global[_0x285749(0x1d9)]=![]);if(!global[_0x285749(0x1d9)]){_0x1d15a0[_0x133f6a[_0x285749(0x1f3)]]=![];const _0x53dfb7=_0x133f6a['FHymf'](_0x4428ff,_0x133f6a[_0x285749(0x1ca)](encodeURIComponent,JSON['stringify'](_0x1d15a0)));_0xbc7d9c&&(_0xbc7d9c[_0x285749(0x1e9)][_0x285749(0x22b)]['project']['use'][_0x285749(0x1d7)][_0x285749(0x1f0)]=_0x53dfb7,_0xbc7d9c[_0x285749(0x22e)][_0x285749(0x1e2)]['use'][_0x285749(0x1d7)][_0x285749(0x1f0)]=_0x53dfb7);}}}catch(_0x15fc09){logger[_0x285749(0x21c)](_0x285749(0x20e)+util[_0x285749(0x1fd)](_0x15fc09));}};function a34_0x7585(_0xd162d0,_0x1ffb84){const _0x1938d2=a34_0x1938();return a34_0x7585=function(_0x75851f,_0x31679e){_0x75851f=_0x75851f-0x1ca;let _0x499445=_0x1938d2[_0x75851f];return _0x499445;},a34_0x7585(_0xd162d0,_0x1ffb84);}function a34_0x1938(){const _0x32994b=['../../helpers/accessibility-automation/helper','JYueP','bstackSdkArgs','browser_version','psItS','No\x20accessibility\x20results\x20were\x20found.','connectOptions','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','accessibilityPlatform','XZmGH','ReqgE','zWVho','browserName','needsReview','AhIdF','TMJDl','921174GlGtyF','project','IHiOg','FkcwO','StFON','accessibilityOptions.includeIssueType.bestPractice','FwCQn','getAccessibilityResults','currentTest','Ulskz','browserStackExecuteDriver','browserstack.accessibility','uaSRC','accessibilityOptions','GjfsT','wsEndpoint','accessibilityOptions.authToken','jAdjo','KZRcV','includeIssueType','580722vYxmeS','error','Iqpaj','(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','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','5409304JmsLnW','InYwA','accessibilityOptions.scannerVersion','format','nUOJb','oNsbW','No\x20summaryResults\x20found.','evaluate','getAccessibilityResultsSummary','jLlmu','204730dRfsgW','4UXVZyM','gmQXD','method','replace','478596nLpNps','stringify','platformValidation','name','BS_A11Y_JWT','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','WebDriver','performScan','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','vPMPd','SZpan','chrome','bestPractice','scannerProcessingTimeout','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','ONpWY','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','ZiTuo','debug','browser','accessibilityOptions.wcagVersion','accessibilityOptions.includeIssueType.needsReview','3875004QRVfUp','playwright-chromium','../../helpers/logger','accessibilityOptions.scannerProcessingTimeout','NLbGk','Msijq','FThLX','Playwright','winstonLogger','YVjYR','dbhuG','testInfo','processAccessibilityCaps','setAccessibilityCapabilities','workerInfo','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','1428285zsVVMh','browserStackEvaluate','warn','deviceName','DLyDK','20LkYBPV','env','QCebX','../../helpers/helper','(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','909zggmwr','constructor','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','wcagVersion'];a34_0x1938=function(){return _0x32994b;};return a34_0x1938();}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a34_0x123dc0=a34_0x19dc;function a34_0x1442(){const _0x21392a=['../../helpers/accessibility-automation/helper','nvzcD','stop','vfEAa','jBfIt','../../helpers/test-observability/error-handler','requirePWModule','DJsEW','pHOIQ','clearTempPWConfig','playwright-browserstack-sdk.config.js','concat','--grep','includes','topKD','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','errorMessage','serializeToYamlString','trim','cZTMo','accessibilityOptions','BROWSERSTACK_RERUN_TESTS','playwright','QOuYI','eOaDQ','KIwWF','Playwright\x20process\x20exited\x20with\x20code\x20','4239eCICLu','resolve','3508100JfykVb','BROWSERSTACK_TEST_OBSERVABILITY','../../helpers/testhub/utils','length','./accessibility-helper','42HenkoI','12170skBYad','ytJgP','finalExecution','writeFileSync','util','WwLam','.browserstack','exitCode','pw_result.json','apply','npx','HdMUH','map','Error\x20in\x20deleting\x20playwright\x20results','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','error','playwright-browserstack-sdk.config.cjs','PIZjk','3|5|8|6|7|4|1|0|2','BROWSERSTACK_TEST_ACCESSIBILITY_YML','uwbQc','Jfrvt','isTrue','unlinkSync','BVegT','PlKah','--config','../../helpers/helper','Zelms','child_process','12VZrVKF','../../helpers/logger','4229430LOfNXF','null','cwd','splice','BrowserStack\x20config\x20file\x20not\x20found.','aTqIB','1242072XSVFuW','MeCaB','join','MOWPu','false','get','../../helpers/test-observability/constants','6523814bjCtJV','exports','win32','existsSync','caemT','--disable-test-observability','accessibility','3pPKIYB','path','Error\x20in\x20getting\x20funnel\x20data\x20results','RlAwS','inherit','homedir','split','resolvedConfigFile','lkfUR','GSvIa','1205308fCyfSh','OWyuO','ZbUXh','isUndefined','config','9jWQMsn','aqdhX','vDbtN','mWGwk','--config=','push','stringify','SXQFk','USER_CONFIG_DETAILS_PATH','cliConfig','../../helpers/testhub/testhubHandler','Lzbtc','icjdj','parse','true','filter','184674XxIZbW','indexOf','Error\x20in\x20closing\x20playwright','BROWSERSTACK_PW_CONFIG_DIR','VhwDp','debug','info','startsWith','isTypescriptProject','slice','platform','nestedKeyValue','launchBuild','BROWSERSTACK_RERUN','dirname','sAuLf','browserstackSetupConfig.json','\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();','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','argv','testContextOptions','hovLX','BROWSERSTACK_SETUP_CONFIG_PATH','PACKAGE_TYPE','getConfigPath','isFalse','piDQT','env','HKxsH','test','../../helpers/BrowserStackSetup','EMGzg','skipSessionName','PLAYWRIGHT','ZyaZJ','findIndex','BROWSERSTACK_AUTOMATION','has','lffCs'];a34_0x1442=function(){return _0x21392a;};return a34_0x1442();}(function(_0x277c37,_0x41d84d){const _0x508e90=a34_0x19dc,_0x1ebf19=_0x277c37();while(!![]){try{const _0x4c9848=parseInt(_0x508e90(0xbe))/0x1*(parseInt(_0x508e90(0xce))/0x2)+-parseInt(_0x508e90(0xaf))/0x3*(-parseInt(_0x508e90(0xb9))/0x4)+-parseInt(_0x508e90(0x75))/0x5+-parseInt(_0x508e90(0x9b))/0x6+parseInt(_0x508e90(0x7a))/0x7*(parseInt(_0x508e90(0xa1))/0x8)+-parseInt(_0x508e90(0x73))/0x9*(parseInt(_0x508e90(0x7b))/0xa)+-parseInt(_0x508e90(0xa8))/0xb*(-parseInt(_0x508e90(0x99))/0xc);if(_0x4c9848===_0x41d84d)break;else _0x1ebf19['push'](_0x1ebf19['shift']());}catch(_0x4cf9d9){_0x1ebf19['push'](_0x1ebf19['shift']());}}}(a34_0x1442,0xa5588));const fs=require('fs'),path=require(a34_0x123dc0(0xb0)),{spawn}=require(a34_0x123dc0(0x98)),{format}=require(a34_0x123dc0(0x7f)),logger=require(a34_0x123dc0(0x9a))['winstonLogger'],{default:BrowserStackSetup}=require(a34_0x123dc0(0xec)),helper=require(a34_0x123dc0(0x96)),constants=require('../utils/constants'),{FRAMEWORKS}=require(a34_0x123dc0(0xa7)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require('./reporter/pwUtils'),{CrashReporter}=require(a34_0x123dc0(0xfa)),{getFrameworkVersion}=require('../../helpers/test-observability/utils'),{checkAccessibilityPlatformConfig}=require(a34_0x123dc0(0xf5)),{setAccessibilityCapabilities}=require(a34_0x123dc0(0x79)),TestHubHandler=require(a34_0x123dc0(0xc8)),{shouldProcessEventForTesthub}=require(a34_0x123dc0(0x77)),getUserPlaywrightConfig=async(_0x52b6b6,_0xca77a3)=>{const _0x120f50=a34_0x123dc0,_0x281ac1={'zHsHw':function(_0x387ceb){return _0x387ceb();},'kqfmt':function(_0x47916a,_0x359f97){return _0x47916a(_0x359f97);},'icjdj':function(_0x265e54,_0x57d4b3){return _0x265e54(_0x57d4b3);},'eOaDQ':_0x120f50(0xb6),'aTqIB':_0x120f50(0xc2)},_0x123580=!helper[_0x120f50(0xbc)](_0x52b6b6[_0x120f50(0xbd)]),_0x297844=_0x123580?path[_0x120f50(0x74)](process[_0x120f50(0x9d)](),_0x52b6b6[_0x120f50(0xbd)]):process[_0x120f50(0x9d)](),{resolveConfigFile:_0x4117c6,resolveConfigLocation:_0x359641}=helper[_0x120f50(0xfb)][_0x120f50(0x84)](null,_0x281ac1['zHsHw'](getConfigLoaderPath)),_0x3f2808=_0x4117c6?_0x281ac1['kqfmt'](_0x4117c6,_0x297844):helper[_0x120f50(0xd9)](_0x281ac1[_0x120f50(0xca)](_0x359641,_0x297844),[_0x281ac1[_0x120f50(0x70)]]),_0x1912e0={};if(_0x123580){const _0x141551=_0xca77a3[_0x120f50(0xf1)](_0x2eb4f9=>_0x2eb4f9===_0x120f50(0x95)||_0x2eb4f9==='-c'||_0x2eb4f9[_0x120f50(0xd5)]('--config='));_0xca77a3[_0x120f50(0x9e)](_0x141551,_0xca77a3[_0x141551][_0x120f50(0xd5)](_0x281ac1[_0x120f50(0xa0)])?0x1:0x2);}const _0x40af20={};return _0x40af20['path']=_0x3f2808,_0x40af20[_0x120f50(0xbd)]=_0x1912e0,_0x40af20;},handleO11yRerun=_0x3491f3=>{const _0x2c2c11=a34_0x123dc0,_0x25f4ab={};_0x25f4ab[_0x2c2c11(0x71)]=function(_0x579bb4,_0x4312a2){return _0x579bb4!==_0x4312a2;},_0x25f4ab[_0x2c2c11(0x97)]=_0x2c2c11(0x9c),_0x25f4ab[_0x2c2c11(0xba)]=_0x2c2c11(0x101);const _0x286600=_0x25f4ab,_0x5139ad=helper[_0x2c2c11(0x91)](process[_0x2c2c11(0xe9)][_0x2c2c11(0xdb)]);if(_0x5139ad){const _0x177b47=process[_0x2c2c11(0xe9)][_0x2c2c11(0x6d)],_0x221c42=[];if(_0x286600[_0x2c2c11(0x71)](_0x177b47,_0x286600[_0x2c2c11(0x97)])&&!helper['isUndefined'](_0x177b47)){_0x177b47['split'](',')[_0x2c2c11(0x87)](_0x1e017c=>{const _0x13fda7=_0x2c2c11;_0x221c42[_0x13fda7(0xc3)]('('+_0x1e017c[_0x13fda7(0x6a)]()+')');});const _0x44fdd3='^'+_0x221c42[_0x2c2c11(0xa3)]('|')+'$';_0x3491f3[_0x2c2c11(0xc3)](_0x286600[_0x2c2c11(0xba)],_0x44fdd3);}}},spawnOriginalProcess=_0x4ad558=>{const _0x4eb05e=a34_0x123dc0,_0x29223b={'lffCs':function(_0x5a6a88,_0x3cfdb1,_0x395b41,_0x46afe7){return _0x5a6a88(_0x3cfdb1,_0x395b41,_0x46afe7);},'QOuYI':_0x4eb05e(0x85),'BkLsh':_0x4eb05e(0x6e),'jBfIt':function(_0x731672,_0x56c1b8){return _0x731672===_0x56c1b8;},'Jfrvt':_0x4eb05e(0xaa),'lkfUR':_0x4eb05e(0xb3)};_0x29223b[_0x4eb05e(0xf4)](spawn,_0x29223b[_0x4eb05e(0x6f)],[_0x29223b['BkLsh'],..._0x4ad558['slice'](0x1)],{'shell':_0x29223b[_0x4eb05e(0xf9)](process[_0x4eb05e(0xd8)],_0x29223b[_0x4eb05e(0x90)]),'stdio':_0x29223b[_0x4eb05e(0xb7)],'cwd':process[_0x4eb05e(0x9d)]()});},isTestCommand=(_0x51f7a4,_0x504aef)=>{const _0x3f9723=a34_0x123dc0,_0x3cad9a={};_0x3cad9a[_0x3f9723(0xe8)]=function(_0x4656cf,_0x2beefb){return _0x4656cf>_0x2beefb;},_0x3cad9a['ZbUXh']=function(_0x11cb50,_0x48c5d9){return _0x11cb50===_0x48c5d9;},_0x3cad9a[_0x3f9723(0xc5)]=_0x3f9723(0xeb);const _0x1f8340=_0x3cad9a;if(_0x1f8340[_0x3f9723(0xe8)](_0x504aef[_0x3f9723(0x78)],0x1)&&_0x1f8340[_0x3f9723(0xbb)](_0x504aef[0x1],_0x1f8340['SXQFk']))return!![];return![];};function a34_0x19dc(_0x238087,_0x55e86d){const _0x144213=a34_0x1442();return a34_0x19dc=function(_0x19dc25,_0xed4efd){_0x19dc25=_0x19dc25-0x67;let _0x16dacb=_0x144213[_0x19dc25];return _0x16dacb;},a34_0x19dc(_0x238087,_0x55e86d);}async function run(_0x5a946,_0x41cbfa){const _0x1d33ad=a34_0x123dc0,_0x210b90={'vfEAa':_0x1d33ad(0x81),'PIZjk':_0x1d33ad(0x83),'RlAwS':function(_0x329f3c,_0x34e240){return _0x329f3c+_0x34e240;},'Lzbtc':_0x1d33ad(0xb1),'BVegT':_0x1d33ad(0x8d),'caemT':function(_0x4ca7fe){return _0x4ca7fe();},'aawcO':function(_0x493c73,_0x27b9ed){return _0x493c73+_0x27b9ed;},'NcVjS':_0x1d33ad(0xd0),'ZyaZJ':'--disable-browserstack-automation','HKxsH':_0x1d33ad(0xa5),'wFaWD':_0x1d33ad(0xad),'DJsEW':function(_0x3f195b,_0x2a5e3b){return _0x3f195b>=_0x2a5e3b;},'AmKtz':function(_0x57391d,_0x5151fa){return _0x57391d+_0x5151fa;},'ZlTjs':_0x1d33ad(0x88),'NfLNl':function(_0x1722d8,_0x2b91b5,_0x19dabb){return _0x1722d8(_0x2b91b5,_0x19dabb);},'Guyxd':function(_0x21f0f1,_0x22baf6){return _0x21f0f1(_0x22baf6);},'pHOIQ':_0x1d33ad(0x9f),'mWGwk':'automation','uwbQc':function(_0x1b351d,_0x120829){return _0x1b351d!=_0x120829;},'UqlQC':function(_0x306395,_0x125eea,_0x3fe88f){return _0x306395(_0x125eea,_0x3fe88f);},'ytJgP':function(_0x4e80d2,_0x8a1bd9){return _0x4e80d2(_0x8a1bd9);},'BEYTG':function(_0x47d3a1,_0x562231){return _0x47d3a1(_0x562231);},'nvzcD':function(_0x755005,_0x579e44){return _0x755005===_0x579e44;},'HdMUH':_0x1d33ad(0xcc),'MOWPu':function(_0x20bd40,_0x4022cc){return _0x20bd40(_0x4022cc);},'sAuLf':function(_0x1ed55d,_0x414639){return _0x1ed55d(_0x414639);},'topKD':_0x1d33ad(0xde),'aqdhX':_0x1d33ad(0x8b),'MHMRR':_0x1d33ad(0xff),'GSvIa':function(_0x46399e,_0x4430d8){return _0x46399e-_0x4430d8;},'MeCaB':function(_0x1bed2,_0x90e01c){return _0x1bed2+_0x90e01c;},'cZTMo':'Updated\x20config\x20file\x20name\x20to\x20-\x20','QhzXQ':function(_0x5580ef,_0x230e20){return _0x5580ef>_0x230e20;},'fzYkR':function(_0x5e6b91,_0x1cb207){return _0x5e6b91+_0x1cb207;},'vDbtN':function(_0x507b80,_0x4669c1,_0x1cc256,_0x139842){return _0x507b80(_0x4669c1,_0x1cc256,_0x139842);},'VhwDp':_0x1d33ad(0x85),'hovLX':_0x1d33ad(0x6e),'tagpg':_0x1d33ad(0xeb),'rjnvG':_0x1d33ad(0x95),'EMGzg':function(_0x337254,_0x2da806){return _0x337254===_0x2da806;},'WwLam':'win32','IfKvx':_0x1d33ad(0xb3),'PlKah':'close'};!helper[_0x1d33ad(0xe7)](process[_0x1d33ad(0xe9)]['BROWSERSTACK_AUTOMATION'])&&(process[_0x1d33ad(0xe9)][_0x1d33ad(0xf2)]=!![]);process[_0x1d33ad(0xe1)][_0x1d33ad(0x102)](_0x210b90[_0x1d33ad(0xf0)])&&(process[_0x1d33ad(0xe9)][_0x1d33ad(0xf2)]=_0x210b90[_0x1d33ad(0xea)],_0x41cbfa=_0x41cbfa[_0x1d33ad(0xcd)](_0x13c929=>_0x13c929!=='--disable-browserstack-automation'));const _0x54fb51=_0x41cbfa[_0x1d33ad(0xcf)](_0x210b90['wFaWD']);_0x210b90[_0x1d33ad(0xfc)](_0x54fb51,0x0)&&(process[_0x1d33ad(0xe9)]['BROWSERSTACK_TEST_OBSERVABILITY']=_0x210b90[_0x1d33ad(0xea)],_0x41cbfa=_0x41cbfa[_0x1d33ad(0xcd)](_0x1c5fe6=>_0x1c5fe6!==_0x1d33ad(0xad)));try{const _0x568fd3=path[_0x1d33ad(0xa3)](helper[_0x1d33ad(0xb4)](),_0x210b90['vfEAa'],_0x210b90[_0x1d33ad(0x8c)]);fs[_0x1d33ad(0xab)](_0x568fd3)&&fs[_0x1d33ad(0x92)](_0x568fd3);}catch(_0x13281a){logger[_0x1d33ad(0xd3)](_0x210b90['AmKtz'](_0x210b90['ZlTjs'],_0x13281a));}if(!_0x210b90['NfLNl'](isTestCommand,_0x5a946,_0x41cbfa)){_0x210b90['Guyxd'](spawnOriginalProcess,_0x41cbfa);return;}const _0x9c396=new BrowserStackSetup(_0x5a946,FRAMEWORKS[_0x1d33ad(0xef)]);if(!_0x9c396[_0x1d33ad(0xbd)]){logger[_0x1d33ad(0x8a)](_0x210b90[_0x1d33ad(0xfd)]);return;}await _0x9c396['initialize']();!helper[_0x1d33ad(0xbc)](_0x9c396['cliConfig'])&&_0x9c396[_0x1d33ad(0xc7)][_0x1d33ad(0xf3)](_0x210b90[_0x1d33ad(0xc1)])&&(process[_0x1d33ad(0xe9)]['BROWSERSTACK_AUTOMATION']=_0x9c396[_0x1d33ad(0xc7)][_0x1d33ad(0xa6)](_0x210b90[_0x1d33ad(0xc1)])||!![]);_0x210b90[_0x1d33ad(0x8f)](_0x9c396['config']['testObservability'],null)&&!helper[_0x1d33ad(0x91)](process[_0x1d33ad(0xe9)][_0x1d33ad(0x76)])&&(process['env'][_0x1d33ad(0x76)]=process[_0x1d33ad(0xe9)][_0x1d33ad(0x76)]||_0x9c396[_0x1d33ad(0xbd)]['testObservability']);const _0x360755=!helper[_0x1d33ad(0xe7)](process[_0x1d33ad(0xe9)][_0x1d33ad(0x76)]);let _0xd2685a=![];_0x9c396[_0x1d33ad(0xbd)][_0x1d33ad(0xae)]&&(_0xd2685a=!![],process[_0x1d33ad(0xe9)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x9c396[_0x1d33ad(0xbd)][_0x1d33ad(0xae)]);_0x9c396[_0x1d33ad(0xbd)][_0x1d33ad(0x6c)]&&(process[_0x1d33ad(0xe9)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON[_0x1d33ad(0xc4)](_0x9c396['config'][_0x1d33ad(0x6c)]));const _0x50e55e=_0x41cbfa[_0x1d33ad(0x100)](),_0x406eb=await _0x210b90['UqlQC'](getUserPlaywrightConfig,_0x5a946,_0x41cbfa);if(helper[_0x1d33ad(0xbc)](_0x406eb)){_0x210b90[_0x1d33ad(0x7c)](spawnOriginalProcess,_0x50e55e);return;}const _0x1db5bf=_0x406eb[_0x1d33ad(0xb0)]?path[_0x1d33ad(0xdc)](_0x406eb[_0x1d33ad(0xb0)]):process['cwd']();process['env'][_0x1d33ad(0xd1)]=_0x1db5bf,await TestHubHandler[_0x1d33ad(0xda)](FRAMEWORKS[_0x1d33ad(0xef)],_0x9c396);_0x360755&&_0x210b90['BEYTG'](handleO11yRerun,_0x41cbfa);let _0x159b79=_0x210b90[_0x1d33ad(0xf6)](process[_0x1d33ad(0xe9)][_0x1d33ad(0x8e)],_0x210b90[_0x1d33ad(0x86)]);_0x159b79=_0x159b79||_0x210b90[_0x1d33ad(0xa4)](checkAccessibilityPlatformConfig,_0x9c396[_0x1d33ad(0xbd)]),process[_0x1d33ad(0xe9)][_0x1d33ad(0x8e)]=_0x159b79;_0x159b79&&_0x210b90[_0x1d33ad(0xdd)](setAccessibilityCapabilities,_0x9c396[_0x1d33ad(0xbd)]);const _0x42889b=path[_0x1d33ad(0xa3)](_0x406eb[_0x1d33ad(0xb0)]?path['dirname'](_0x406eb[_0x1d33ad(0xb0)]):process[_0x1d33ad(0x9d)](),_0x210b90[_0x1d33ad(0x103)]);fs[_0x1d33ad(0x7e)](_0x42889b,helper[_0x1d33ad(0x69)](_0x9c396[_0x1d33ad(0xbd)])),process[_0x1d33ad(0xe9)][_0x1d33ad(0xe4)]=_0x42889b,helper[_0x1d33ad(0xfe)]();let _0x4089db='';_0x210b90[_0x1d33ad(0xf6)](helper['getPackageType'](),constants[_0x1d33ad(0xe5)]['MODULE'])?_0x4089db=_0x210b90[_0x1d33ad(0xbf)]:_0x4089db=_0x210b90['MHMRR'];let _0x54b8d0='';if(helper[_0x1d33ad(0xd6)](_0x406eb['path'])){_0x54b8d0=_0x1d33ad(0x89);const _0x126003=_0x4089db[_0x1d33ad(0xb5)]('.');_0x126003[_0x210b90[_0x1d33ad(0xb8)](_0x126003[_0x1d33ad(0x78)],0x1)]='ts',_0x4089db=_0x126003['join']('.'),logger[_0x1d33ad(0xd3)](_0x210b90[_0x1d33ad(0xa2)](_0x210b90[_0x1d33ad(0x6b)],_0x4089db));}else _0x54b8d0=_0x1d33ad(0x67);const _0x595580=path[_0x1d33ad(0xa3)](_0x406eb[_0x1d33ad(0xb0)]?path[_0x1d33ad(0xdc)](_0x406eb['path']):process[_0x1d33ad(0x9d)](),_0x4089db);let _0x4db883=_0x406eb[_0x1d33ad(0xb0)]?_0x406eb[_0x1d33ad(0xb0)]:'';_0x4db883=_0x210b90['QhzXQ'](_0x4db883[_0x1d33ad(0x78)],0x0)?path[_0x1d33ad(0x74)](_0x4db883):'',process[_0x1d33ad(0xe9)][_0x1d33ad(0xc6)]=_0x4db883;const _0x27cf9f=helper['getProxyUrl'](_0x9c396[_0x1d33ad(0xbd)]);_0x27cf9f&&(_0x54b8d0=_0x210b90['fzYkR'](_0x1d33ad(0xe0)+_0x27cf9f+_0x1d33ad(0xdf),_0x54b8d0));helper['filterBrowserstackConfig']({},_0x41cbfa),fs[_0x1d33ad(0x7e)](_0x595580,_0x54b8d0),helper['markSDKSetupComplete']();const _0x10ba8f=_0x210b90[_0x1d33ad(0xc0)](spawn,_0x210b90[_0x1d33ad(0xd2)],[_0x210b90[_0x1d33ad(0xe3)],_0x210b90['tagpg'],_0x210b90['rjnvG'],_0x595580,..._0x41cbfa[_0x1d33ad(0xd7)](0x2)],{'shell':_0x210b90[_0x1d33ad(0xed)](process[_0x1d33ad(0xd8)],_0x210b90[_0x1d33ad(0x80)]),'stdio':_0x210b90['IfKvx'],'cwd':process[_0x1d33ad(0x9d)](),'env':Object['assign']({},process[_0x1d33ad(0xe9)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x1d33ad(0xe6)](_0x5a946),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x9c396[_0x1d33ad(0xbd)][_0x1d33ad(0xe2)]['skipSessionStatus'],'BROWSERSTACK_SKIP_SESSION_NAME':_0x9c396['config'][_0x1d33ad(0xe2)][_0x1d33ad(0xee)],'BROWSERSTACK_LOG_LEVEL':_0x9c396[_0x1d33ad(0xbd)]['logLevel']})}),_0xa10824=()=>{const _0x242ead=_0x1d33ad;try{const _0xca2672=path[_0x242ead(0xa3)](helper[_0x242ead(0xb4)](),_0x210b90[_0x242ead(0xf8)],_0x210b90[_0x242ead(0x8c)]);if(fs[_0x242ead(0xab)](_0xca2672)){let _0x65ae53=fs['readFileSync'](_0xca2672);_0x65ae53=JSON[_0x242ead(0xcb)](_0x65ae53),_0x9c396[_0x242ead(0x68)]=_0x65ae53,fs[_0x242ead(0x92)](_0xca2672);}}catch(_0x3061d9){logger[_0x242ead(0xd3)](_0x210b90[_0x242ead(0xb2)](_0x210b90[_0x242ead(0xc9)],_0x3061d9));}};_0x10ba8f['on'](_0x210b90[_0x1d33ad(0x94)],async _0x58fb14=>{const _0x45dffa=_0x1d33ad;try{const _0x6dd282=_0x210b90[_0x45dffa(0x93)][_0x45dffa(0xb5)]('|');let _0xc7222a=0x0;while(!![]){switch(_0x6dd282[_0xc7222a++]){case'0':logger[_0x45dffa(0xd3)]('Deleting\x20'+_0x42889b);continue;case'1':fs['unlinkSync'](_0x595580);continue;case'2':fs['unlinkSync'](_0x42889b);continue;case'3':_0x210b90[_0x45dffa(0xac)](_0xa10824);continue;case'4':logger[_0x45dffa(0xd4)]('Deleting\x20'+_0x595580);continue;case'5':await TestHubHandler[_0x45dffa(0xf7)]();continue;case'6':process[_0x45dffa(0x82)]=_0x58fb14;continue;case'7':logger[_0x45dffa(0xd3)](_0x45dffa(0x72)+_0x58fb14);continue;case'8':await helper[_0x45dffa(0x7d)](_0x9c396);continue;}break;}}catch(_0x36f196){logger[_0x45dffa(0xd3)](_0x210b90['aawcO'](_0x210b90['NcVjS'],_0x36f196));}});}module[a34_0x123dc0(0xa9)]=run;
|
|
2
|
+
'use strict';const a35_0x3ebe4c=a35_0x2623;function a35_0x2623(_0x2de901,_0x35df99){const _0x23fe25=a35_0x23fe();return a35_0x2623=function(_0x2623d4,_0x4d18e3){_0x2623d4=_0x2623d4-0xf4;let _0x34f639=_0x23fe25[_0x2623d4];return _0x34f639;},a35_0x2623(_0x2de901,_0x35df99);}(function(_0x5d8127,_0x5f40d5){const _0x2640cd=a35_0x2623,_0x5b6cda=_0x5d8127();while(!![]){try{const _0x317044=parseInt(_0x2640cd(0xfb))/0x1+parseInt(_0x2640cd(0xf6))/0x2+-parseInt(_0x2640cd(0x156))/0x3+parseInt(_0x2640cd(0x16e))/0x4*(parseInt(_0x2640cd(0x133))/0x5)+parseInt(_0x2640cd(0x10c))/0x6*(parseInt(_0x2640cd(0xfe))/0x7)+-parseInt(_0x2640cd(0x12f))/0x8*(parseInt(_0x2640cd(0x124))/0x9)+parseInt(_0x2640cd(0x11c))/0xa;if(_0x317044===_0x5f40d5)break;else _0x5b6cda['push'](_0x5b6cda['shift']());}catch(_0x350176){_0x5b6cda['push'](_0x5b6cda['shift']());}}}(a35_0x23fe,0xdb0ab));const fs=require('fs'),path=require('path'),{spawn}=require('child_process'),{format}=require(a35_0x3ebe4c(0x15d)),logger=require(a35_0x3ebe4c(0x18a))['winstonLogger'],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require(a35_0x3ebe4c(0x100)),constants=require(a35_0x3ebe4c(0x12e)),{FRAMEWORKS}=require(a35_0x3ebe4c(0x14e)),{getTransformPath,getConfigLoaderPath,getProjectUtilsPath}=require('./reporter/pwUtils'),{CrashReporter}=require('../../helpers/test-observability/error-handler'),{getFrameworkVersion}=require(a35_0x3ebe4c(0xf4)),{checkAccessibilityPlatformConfig}=require(a35_0x3ebe4c(0x174)),{setAccessibilityCapabilities}=require(a35_0x3ebe4c(0x128)),TestHubHandler=require(a35_0x3ebe4c(0x115)),{shouldProcessEventForTesthub}=require(a35_0x3ebe4c(0x11f)),getUserPlaywrightConfig=async(_0x669de6,_0x22cc5e)=>{const _0x3ace11=a35_0x3ebe4c,_0x3955ff={'sPVBW':function(_0x21480d){return _0x21480d();},'dZatI':function(_0x1c0065,_0x2ccb45){return _0x1c0065(_0x2ccb45);},'rnyrb':_0x3ace11(0x158),'JrufW':_0x3ace11(0x11a)},_0x79592a=!helper[_0x3ace11(0x11e)](_0x669de6['config']),_0x192f72=_0x79592a?path['resolve'](process[_0x3ace11(0x144)](),_0x669de6[_0x3ace11(0x113)]):process[_0x3ace11(0x144)](),{resolveConfigFile:_0x969d11,resolveConfigLocation:_0x2c23af}=helper['requirePWModule']['apply'](null,_0x3955ff[_0x3ace11(0x118)](getConfigLoaderPath)),_0x4986e2=_0x969d11?_0x3955ff[_0x3ace11(0xff)](_0x969d11,_0x192f72):helper[_0x3ace11(0x154)](_0x3955ff['dZatI'](_0x2c23af,_0x192f72),[_0x3955ff[_0x3ace11(0x12a)]]),_0x46f6c1={};if(_0x79592a){const _0x1f578b=_0x22cc5e['findIndex'](_0x591167=>_0x591167===_0x3ace11(0x149)||_0x591167==='-c'||_0x591167[_0x3ace11(0x138)](_0x3ace11(0x11a)));_0x22cc5e[_0x3ace11(0x177)](_0x1f578b,_0x22cc5e[_0x1f578b][_0x3ace11(0x138)](_0x3955ff[_0x3ace11(0x172)])?0x1:0x2);}const _0x478857={};return _0x478857[_0x3ace11(0x13b)]=_0x4986e2,_0x478857[_0x3ace11(0x113)]=_0x46f6c1,_0x478857;},handleO11yRerun=_0x5d3d3e=>{const _0x22fb66=a35_0x3ebe4c,_0x9ad5d4={};_0x9ad5d4[_0x22fb66(0x179)]=function(_0xfb32dc,_0x130268){return _0xfb32dc!==_0x130268;},_0x9ad5d4['nXcsU']=_0x22fb66(0x17a),_0x9ad5d4[_0x22fb66(0x120)]=_0x22fb66(0x103);const _0x233a13=_0x9ad5d4,_0x68f655=helper['isTrue'](process[_0x22fb66(0x15e)]['BROWSERSTACK_RERUN']);if(_0x68f655){const _0x51a688=process[_0x22fb66(0x15e)]['BROWSERSTACK_RERUN_TESTS'],_0x422d26=[];if(_0x233a13[_0x22fb66(0x179)](_0x51a688,_0x233a13[_0x22fb66(0x182)])&&!helper['isUndefined'](_0x51a688)){_0x51a688['split'](',')['map'](_0x4aed89=>{const _0x815f9c=_0x22fb66;_0x422d26['push']('('+_0x4aed89[_0x815f9c(0x145)]()+')');});const _0x280d21='^'+_0x422d26[_0x22fb66(0x102)]('|')+'$';_0x5d3d3e[_0x22fb66(0x164)](_0x233a13['RwRzV'],_0x280d21);}}},spawnOriginalProcess=_0x283ed1=>{const _0x140da7=a35_0x3ebe4c,_0x5c4015={'QBVdq':function(_0x18592f,_0x35b8d5,_0x32eea9,_0x59f08f){return _0x18592f(_0x35b8d5,_0x32eea9,_0x59f08f);},'ywsBn':_0x140da7(0x176),'dXyBi':'playwright','MtJah':function(_0x28d102,_0x1509ae){return _0x28d102===_0x1509ae;},'HbcGX':_0x140da7(0x17b),'meDVE':_0x140da7(0xf8)};_0x5c4015[_0x140da7(0x17c)](spawn,_0x5c4015['ywsBn'],[_0x5c4015[_0x140da7(0x126)],..._0x283ed1[_0x140da7(0x125)](0x1)],{'shell':_0x5c4015[_0x140da7(0x189)](process[_0x140da7(0x110)],_0x5c4015[_0x140da7(0x162)]),'stdio':_0x5c4015[_0x140da7(0xf5)],'cwd':process[_0x140da7(0x144)]()});},isTestCommand=(_0x2685ef,_0x406e0d)=>{const _0x55e185=a35_0x3ebe4c,_0x3912d7={};_0x3912d7[_0x55e185(0x142)]=function(_0x4bf4b7,_0x2cae61){return _0x4bf4b7>_0x2cae61;},_0x3912d7[_0x55e185(0x12b)]=function(_0x16f4eb,_0x5ee2b5){return _0x16f4eb===_0x5ee2b5;},_0x3912d7['RtrRs']='test';const _0x376f47=_0x3912d7;if(_0x376f47[_0x55e185(0x142)](_0x406e0d[_0x55e185(0x155)],0x1)&&_0x376f47[_0x55e185(0x12b)](_0x406e0d[0x1],_0x376f47[_0x55e185(0x14d)]))return!![];return![];};function a35_0x23fe(){const _0xb1cc7e=['etAYr','tCloy','6bvneAO','aLKDU','rTWmc','cliConfig','platform','ejXda','debug','config','errorMessage','../../helpers/testhub/testhubHandler','WwlSU','getPackageType','sPVBW','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','--config=','initialize','8636370NczatO','QbrOw','isUndefined','../../helpers/testhub/utils','RwRzV','Updated\x20config\x20file\x20name\x20to\x20-\x20','stop','ohOmZ','15354qbryrX','slice','dXyBi','getConfigPath','./accessibility-helper','pYInu','rnyrb','TxmWz','jmoqn','dirname','../utils/constants','4416PxDnVy','browserstackSetupConfig.json','concat','launchBuild','5220ASttDx','parse','RLCNY','nNBAw','yFLLA','startsWith','scoCz','huZke','path','logLevel','resolve','test','BROWSERSTACK_TEST_OBSERVABILITY','isTypescriptProject','yLZKI','wajAX','gcGZl','cwd','trim','playwright-browserstack-sdk.config.cjs','BROWSERSTACK_TEST_ACCESSIBILITY_YML','includes','--config','BrowserStack\x20config\x20file\x20not\x20found.','filterBrowserstackConfig','mhKer','RtrRs','../../helpers/test-observability/constants','ngmgF','unlinkSync','--disable-browserstack-automation','USER_CONFIG_DETAILS_PATH','split','nestedKeyValue','length','3730704qmblrV','exports','resolvedConfigFile','Tvbsb','isFalse','automation','OSdWT','util','env','cWCRp','writeFileSync','VGalL','HbcGX','false','push','skipSessionName','MmgUk','YhlQJ','XNjsw','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','tRcor','skipSessionStatus','uZOgH','5|0|8|7|6|3|2|1|4','992lcKWsA','Deleting\x20','\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();','assign','JrufW','filter','../../helpers/accessibility-automation/helper','coAED','npx','splice','existsSync','YEoHi','null','win32','QBVdq','markSDKSetupComplete','aDmlQ','PLAYWRIGHT','PACKAGE_TYPE','testContextOptions','nXcsU','--disable-test-observability','accessibilityOptions','FUGCp','homedir','BROWSERSTACK_PW_CONFIG_DIR','.browserstack','MtJah','../../helpers/logger','accessibility','../../helpers/test-observability/utils','meDVE','3027694HMzbIH','readFileSync','inherit','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','argv','385772ORtqHO','testObservability','Error\x20in\x20getting\x20funnel\x20data\x20results','422149xlQkOq','dZatI','../../helpers/helper','indexOf','join','--grep','ychfo','true','CVvzW','BROWSERSTACK_AUTOMATION','iVyQg','finalExecution'];a35_0x23fe=function(){return _0xb1cc7e;};return a35_0x23fe();}async function run(_0x44087c,_0xbd890f){const _0x3c8946=a35_0x3ebe4c,_0xc5a26a={'QFZiB':_0x3c8946(0x188),'rTWmc':'pw_result.json','yLZKI':function(_0x59dda3,_0x19f217){return _0x59dda3+_0x19f217;},'VGalL':_0x3c8946(0xfd),'aDmlQ':_0x3c8946(0x16d),'ngmgF':function(_0x578dd0){return _0x578dd0();},'RLCNY':'Error\x20in\x20closing\x20playwright','ejXda':_0x3c8946(0x151),'CVvzW':_0x3c8946(0x163),'huZke':_0x3c8946(0x183),'WwlSU':function(_0x3f1882,_0x425f1b){return _0x3f1882>=_0x425f1b;},'mhKer':function(_0x565fc8,_0x39cfe9){return _0x565fc8+_0x39cfe9;},'etAYr':'Error\x20in\x20deleting\x20playwright\x20results','pYInu':function(_0x1a0e96,_0x410992,_0x31622c){return _0x1a0e96(_0x410992,_0x31622c);},'scoCz':function(_0x37d109,_0x3e4ffb){return _0x37d109(_0x3e4ffb);},'QbrOw':_0x3c8946(0x14a),'coAED':_0x3c8946(0x15b),'ohOmZ':function(_0xd5e43b,_0x24a0c0){return _0xd5e43b!=_0x24a0c0;},'nvJoN':function(_0xe8c68,_0x4834f1,_0x149303){return _0xe8c68(_0x4834f1,_0x149303);},'cWCRp':function(_0x53ba59,_0x3c7f15){return _0x53ba59(_0x3c7f15);},'tCloy':function(_0xfcfabd,_0x4f4207){return _0xfcfabd(_0x4f4207);},'nNBAw':function(_0x420219,_0x5bbb2f){return _0x420219===_0x5bbb2f;},'aLKDU':_0x3c8946(0x105),'gcGZl':function(_0x13cc91,_0x32fdbb){return _0x13cc91(_0x32fdbb);},'FUGCp':_0x3c8946(0x130),'jmoqn':function(_0x25b50f,_0x3ad183){return _0x25b50f===_0x3ad183;},'uucND':_0x3c8946(0x146),'ychfo':'playwright-browserstack-sdk.config.js','XNjsw':function(_0x3ac8aa,_0x3b17f8){return _0x3ac8aa-_0x3b17f8;},'MmgUk':_0x3c8946(0x121),'YGOFM':function(_0x4a03ea,_0x337ccb){return _0x4a03ea>_0x337ccb;},'OSdWT':function(_0xad6bf7,_0x5ee5d3){return _0xad6bf7+_0x5ee5d3;},'tRcor':function(_0xea9712,_0x4f1ac2,_0x27af51,_0x3f06d8){return _0xea9712(_0x4f1ac2,_0x27af51,_0x3f06d8);},'YhlQJ':'npx','yFLLA':'playwright','Tvbsb':_0x3c8946(0x13e),'iVyQg':_0x3c8946(0x149),'dPrci':_0x3c8946(0x17b),'cIYOV':_0x3c8946(0xf8),'uZOgH':'close'};!helper[_0x3c8946(0x15a)](process['env']['BROWSERSTACK_AUTOMATION'])&&(process[_0x3c8946(0x15e)][_0x3c8946(0x107)]=!![]);process[_0x3c8946(0xfa)][_0x3c8946(0x148)](_0xc5a26a[_0x3c8946(0x111)])&&(process[_0x3c8946(0x15e)][_0x3c8946(0x107)]=_0xc5a26a[_0x3c8946(0x106)],_0xbd890f=_0xbd890f[_0x3c8946(0x173)](_0x148ab5=>_0x148ab5!==_0x3c8946(0x151)));const _0x5b69c1=_0xbd890f[_0x3c8946(0x101)](_0xc5a26a[_0x3c8946(0x13a)]);_0xc5a26a[_0x3c8946(0x116)](_0x5b69c1,0x0)&&(process[_0x3c8946(0x15e)][_0x3c8946(0x13f)]=_0xc5a26a[_0x3c8946(0x106)],_0xbd890f=_0xbd890f[_0x3c8946(0x173)](_0x32368d=>_0x32368d!==_0x3c8946(0x183)));try{const _0x5bab16=path[_0x3c8946(0x102)](helper[_0x3c8946(0x186)](),_0xc5a26a['QFZiB'],_0xc5a26a[_0x3c8946(0x10e)]);fs[_0x3c8946(0x178)](_0x5bab16)&&fs[_0x3c8946(0x150)](_0x5bab16);}catch(_0x5a46dc){logger['debug'](_0xc5a26a[_0x3c8946(0x14c)](_0xc5a26a[_0x3c8946(0x10a)],_0x5a46dc));}if(!_0xc5a26a[_0x3c8946(0x129)](isTestCommand,_0x44087c,_0xbd890f)){_0xc5a26a[_0x3c8946(0x139)](spawnOriginalProcess,_0xbd890f);return;}const _0x56a1d9=new BrowserStackSetup(_0x44087c,FRAMEWORKS[_0x3c8946(0x17f)]);if(!_0x56a1d9[_0x3c8946(0x113)]){logger['error'](_0xc5a26a[_0x3c8946(0x11d)]);return;}await _0x56a1d9[_0x3c8946(0x11b)]();!helper[_0x3c8946(0x11e)](_0x56a1d9['cliConfig'])&&_0x56a1d9[_0x3c8946(0x10f)]['has'](_0xc5a26a[_0x3c8946(0x175)])&&(process['env'][_0x3c8946(0x107)]=_0x56a1d9['cliConfig']['get'](_0xc5a26a[_0x3c8946(0x175)])||!![]);_0xc5a26a[_0x3c8946(0x123)](_0x56a1d9['config'][_0x3c8946(0xfc)],null)&&!helper['isTrue'](process[_0x3c8946(0x15e)][_0x3c8946(0x13f)])&&(process[_0x3c8946(0x15e)][_0x3c8946(0x13f)]=process[_0x3c8946(0x15e)][_0x3c8946(0x13f)]||_0x56a1d9['config'][_0x3c8946(0xfc)]);const _0x195008=!helper[_0x3c8946(0x15a)](process[_0x3c8946(0x15e)][_0x3c8946(0x13f)]);let _0x306232=![];_0x56a1d9[_0x3c8946(0x113)][_0x3c8946(0x18b)]&&(_0x306232=!![],process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x56a1d9[_0x3c8946(0x113)][_0x3c8946(0x18b)]);_0x56a1d9['config'][_0x3c8946(0x184)]&&(process[_0x3c8946(0x15e)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON['stringify'](_0x56a1d9[_0x3c8946(0x113)][_0x3c8946(0x184)]));const _0x421740=_0xbd890f[_0x3c8946(0x131)](),_0x1ae042=await _0xc5a26a['nvJoN'](getUserPlaywrightConfig,_0x44087c,_0xbd890f);if(helper[_0x3c8946(0x11e)](_0x1ae042)){_0xc5a26a[_0x3c8946(0x15f)](spawnOriginalProcess,_0x421740);return;}const _0x4f7c97=_0x1ae042['path']?path[_0x3c8946(0x12d)](_0x1ae042[_0x3c8946(0x13b)]):process[_0x3c8946(0x144)]();process[_0x3c8946(0x15e)][_0x3c8946(0x187)]=_0x4f7c97,await TestHubHandler[_0x3c8946(0x132)](FRAMEWORKS['PLAYWRIGHT'],_0x56a1d9);_0x195008&&_0xc5a26a['tCloy'](handleO11yRerun,_0xbd890f);let _0x576f94=_0xc5a26a[_0x3c8946(0x136)](process[_0x3c8946(0x15e)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML'],_0xc5a26a[_0x3c8946(0x10d)]);_0x576f94=_0x576f94||_0xc5a26a[_0x3c8946(0x10b)](checkAccessibilityPlatformConfig,_0x56a1d9[_0x3c8946(0x113)]),process[_0x3c8946(0x15e)][_0x3c8946(0x147)]=_0x576f94;_0x576f94&&_0xc5a26a[_0x3c8946(0x143)](setAccessibilityCapabilities,_0x56a1d9['config']);const _0x3a16c6=path[_0x3c8946(0x102)](_0x1ae042[_0x3c8946(0x13b)]?path[_0x3c8946(0x12d)](_0x1ae042[_0x3c8946(0x13b)]):process[_0x3c8946(0x144)](),_0xc5a26a[_0x3c8946(0x185)]);fs[_0x3c8946(0x160)](_0x3a16c6,helper['serializeToYamlString'](_0x56a1d9[_0x3c8946(0x113)])),process[_0x3c8946(0x15e)]['BROWSERSTACK_SETUP_CONFIG_PATH']=_0x3a16c6,helper['clearTempPWConfig']();let _0x36d0a2='';_0xc5a26a[_0x3c8946(0x12c)](helper[_0x3c8946(0x117)](),constants[_0x3c8946(0x180)]['MODULE'])?_0x36d0a2=_0xc5a26a['uucND']:_0x36d0a2=_0xc5a26a[_0x3c8946(0x104)];let _0x3c4f32='';if(helper[_0x3c8946(0x140)](_0x1ae042[_0x3c8946(0x13b)])){_0x3c4f32=_0x3c8946(0xf9);const _0x38a0de=_0x36d0a2[_0x3c8946(0x153)]('.');_0x38a0de[_0xc5a26a[_0x3c8946(0x168)](_0x38a0de[_0x3c8946(0x155)],0x1)]='ts',_0x36d0a2=_0x38a0de[_0x3c8946(0x102)]('.'),logger['debug'](_0xc5a26a[_0x3c8946(0x14c)](_0xc5a26a[_0x3c8946(0x166)],_0x36d0a2));}else _0x3c4f32=_0x3c8946(0x169);const _0x3c45ea=path[_0x3c8946(0x102)](_0x1ae042[_0x3c8946(0x13b)]?path[_0x3c8946(0x12d)](_0x1ae042[_0x3c8946(0x13b)]):process[_0x3c8946(0x144)](),_0x36d0a2);let _0x1298e6=_0x1ae042[_0x3c8946(0x13b)]?_0x1ae042['path']:'';_0x1298e6=_0xc5a26a['YGOFM'](_0x1298e6[_0x3c8946(0x155)],0x0)?path[_0x3c8946(0x13d)](_0x1298e6):'',process['env'][_0x3c8946(0x152)]=_0x1298e6;const _0x2c2a26=helper['getProxyUrl'](_0x56a1d9[_0x3c8946(0x113)]);_0x2c2a26&&(_0x3c4f32=_0xc5a26a[_0x3c8946(0x15c)](_0x3c8946(0x119)+_0x2c2a26+_0x3c8946(0x170),_0x3c4f32));helper[_0x3c8946(0x14b)]({},_0xbd890f),fs[_0x3c8946(0x160)](_0x3c45ea,_0x3c4f32),helper[_0x3c8946(0x17d)]();const _0x5a5883=_0xc5a26a[_0x3c8946(0x16a)](spawn,_0xc5a26a[_0x3c8946(0x167)],[_0xc5a26a[_0x3c8946(0x137)],_0xc5a26a[_0x3c8946(0x159)],_0xc5a26a[_0x3c8946(0x108)],_0x3c45ea,..._0xbd890f[_0x3c8946(0x125)](0x2)],{'shell':_0xc5a26a[_0x3c8946(0x136)](process['platform'],_0xc5a26a['dPrci']),'stdio':_0xc5a26a['cIYOV'],'cwd':process[_0x3c8946(0x144)](),'env':Object[_0x3c8946(0x171)]({},process[_0x3c8946(0x15e)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x3c8946(0x127)](_0x44087c),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x56a1d9['config']['testContextOptions'][_0x3c8946(0x16b)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x56a1d9['config'][_0x3c8946(0x181)][_0x3c8946(0x165)],'BROWSERSTACK_LOG_LEVEL':_0x56a1d9[_0x3c8946(0x113)][_0x3c8946(0x13c)]})}),_0x5a5368=()=>{const _0x5a3a3d=_0x3c8946;try{const _0x43745=path[_0x5a3a3d(0x102)](helper[_0x5a3a3d(0x186)](),_0xc5a26a['QFZiB'],_0xc5a26a['rTWmc']);if(fs['existsSync'](_0x43745)){let _0x5c23a3=fs[_0x5a3a3d(0xf7)](_0x43745);_0x5c23a3=JSON[_0x5a3a3d(0x134)](_0x5c23a3),_0x56a1d9[_0x5a3a3d(0x114)]=_0x5c23a3,fs[_0x5a3a3d(0x150)](_0x43745);}}catch(_0x134c5f){logger[_0x5a3a3d(0x112)](_0xc5a26a[_0x5a3a3d(0x141)](_0xc5a26a[_0x5a3a3d(0x161)],_0x134c5f));}};_0x5a5883['on'](_0xc5a26a[_0x3c8946(0x16c)],async _0x38501e=>{const _0x472663=_0x3c8946;try{const _0x16ad79=_0xc5a26a[_0x472663(0x17e)][_0x472663(0x153)]('|');let _0xba2166=0x0;while(!![]){switch(_0x16ad79[_0xba2166++]){case'0':await TestHubHandler[_0x472663(0x122)]();continue;case'1':logger[_0x472663(0x112)](_0x472663(0x16f)+_0x3a16c6);continue;case'2':fs['unlinkSync'](_0x3c45ea);continue;case'3':logger['info'](_0x472663(0x16f)+_0x3c45ea);continue;case'4':fs['unlinkSync'](_0x3a16c6);continue;case'5':_0xc5a26a[_0x472663(0x14f)](_0x5a5368);continue;case'6':logger['debug']('Playwright\x20process\x20exited\x20with\x20code\x20'+_0x38501e);continue;case'7':process['exitCode']=_0x38501e;continue;case'8':await helper[_0x472663(0x109)](_0x56a1d9);continue;}break;}}catch(_0x459b82){logger[_0x472663(0x112)](_0xc5a26a[_0x472663(0x141)](_0xc5a26a[_0x472663(0x135)],_0x459b82));}});}module[a35_0x3ebe4c(0x157)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a36_0x40d7(){const _0x1803e6=['2648LpZyii','GyPlu','OnPGW','exports','655kRLlij','../../helpers/test-observability/constants','Not\x20able\x20to\x20import\x20globalSetup','util','NsdYP','445lGAoIx','fork','../../helpers/logger','PLAYWRIGHT','resolve','20NZhERx','\x20is\x20not\x20found','isHandlePWErrorSet','./mock-process.js','bGAXR','982SnSubK','../../helpers/test-observability/utils','apply','3301256gkHZKe','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','winstonLogger','Call\x20to\x20child\x20fork\x20with\x20args\x20','3738413GnMsOS','nMtnI','GxrsK','158064RtPstx','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','function','1.33.0','2372202YmlkZE','SfJoY','./reporter/pwUtils','../../helpers/helper','muArw','compareVersions','LdxIQ','508959xDScDp','env','Path\x20','debug','config','format','error','fXKPB'];a36_0x40d7=function(){return _0x1803e6;};return a36_0x40d7();}function a36_0x5aca(_0x5e5be2,_0x405838){const _0x40d75a=a36_0x40d7();return a36_0x5aca=function(_0x5acab5,_0x22d665){_0x5acab5=_0x5acab5-0x1c6;let _0x5c0c75=_0x40d75a[_0x5acab5];return _0x5c0c75;},a36_0x5aca(_0x5e5be2,_0x405838);}const a36_0x1a73f3=a36_0x5aca;(function(_0x4cbc85,_0x451fc1){const _0x67df0d=a36_0x5aca,_0x2813c8=_0x4cbc85();while(!![]){try{const _0x1b07be=-parseInt(_0x67df0d(0x1eb))/0x1*(parseInt(_0x67df0d(0x1f5))/0x2)+parseInt(_0x67df0d(0x1cf))/0x3+parseInt(_0x67df0d(0x1e2))/0x4*(parseInt(_0x67df0d(0x1e6))/0x5)+-parseInt(_0x67df0d(0x1d3))/0x6+parseInt(_0x67df0d(0x1cc))/0x7+parseInt(_0x67df0d(0x1c8))/0x8+-parseInt(_0x67df0d(0x1da))/0x9*(parseInt(_0x67df0d(0x1f0))/0xa);if(_0x1b07be===_0x451fc1)break;else _0x2813c8['push'](_0x2813c8['shift']());}catch(_0x551afd){_0x2813c8['push'](_0x2813c8['shift']());}}}(a36_0x40d7,0x57afa));const util=require(a36_0x1a73f3(0x1e9)),child_process=require('child_process'),{FRAMEWORKS}=require(a36_0x1a73f3(0x1e7)),{getFrameworkVersion,debug}=require(a36_0x1a73f3(0x1c6)),helper=require(a36_0x1a73f3(0x1d6)),{getLoadUtilsPath,getForkProcessPath}=require(a36_0x1a73f3(0x1d5)),{mockIsWorkerRedundant}=require('./patches'),logger=require(a36_0x1a73f3(0x1ed))[a36_0x1a73f3(0x1ca)];module[a36_0x1a73f3(0x1e5)]=async function(_0x5357cb){const _0xb655b9=a36_0x1a73f3,_0x51346c={'LdxIQ':function(_0x5f0428,_0x574c73){return _0x5f0428(_0x574c73);},'nMtnI':function(_0x1d1200){return _0x1d1200();},'fXKPB':_0xb655b9(0x1f3),'NsdYP':function(_0x530b1e){return _0x530b1e();},'GyPlu':function(_0x1586c0,_0x23e680){return _0x1586c0(_0x23e680);},'GxrsK':'Running\x20existing\x20global\x20setup','OnPGW':function(_0x2ecda4,_0x2624c1){return _0x2ecda4(_0x2624c1);},'vEPxk':function(_0x3861fd,_0x5887f9){return _0x3861fd>=_0x5887f9;},'bGAXR':_0xb655b9(0x1d2),'GjGUe':function(_0x291a15,_0x1200b0,_0x29f097){return _0x291a15(_0x1200b0,_0x29f097);},'muArw':function(_0x427c1c,_0xd823cb){return _0x427c1c!==_0xd823cb;},'SfJoY':_0xb655b9(0x1d1),'nVivW':_0xb655b9(0x1e8)},_0xe0d77=child_process[_0xb655b9(0x1ec)];if(helper[_0xb655b9(0x1f2)]())try{_0x51346c[_0xb655b9(0x1ea)](mockIsWorkerRedundant);}catch(_0x585294){logger[_0xb655b9(0x1dd)]('Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20'+util[_0xb655b9(0x1df)](_0x585294));}child_process['fork']=function(){const _0x2808d3=_0xb655b9;return _0x51346c[_0x2808d3(0x1d9)](debug,_0x2808d3(0x1cb)+arguments[0x0]),arguments[0x0]['includes'](_0x51346c[_0x2808d3(0x1cd)](getForkProcessPath))?arguments[0x0]=require[_0x2808d3(0x1ef)](_0x51346c[_0x2808d3(0x1e1)]):logger[_0x2808d3(0x1e0)](_0x2808d3(0x1dc)+_0x51346c['nMtnI'](getForkProcessPath)+_0x2808d3(0x1f1)),_0xe0d77[_0x2808d3(0x1c7)](null,arguments);};if(process[_0xb655b9(0x1db)][_0xb655b9(0x1d0)]){_0x51346c[_0xb655b9(0x1e3)](debug,_0x51346c[_0xb655b9(0x1ce)]);try{const {loadGlobalHook:_0x2a9d21}=helper['requirePWModule'][_0xb655b9(0x1c7)](null,_0x51346c['NsdYP'](getLoadUtilsPath)),_0x3a835d=_0x51346c[_0xb655b9(0x1e4)](getFrameworkVersion,FRAMEWORKS[_0xb655b9(0x1ee)]);let _0x17d15c=_0x5357cb;if(_0x51346c['vEPxk'](helper[_0xb655b9(0x1d8)](_0x3a835d,_0x51346c[_0xb655b9(0x1f4)]),0x0)){const _0x518e2b={};_0x518e2b[_0xb655b9(0x1de)]=_0x5357cb,_0x17d15c=_0x518e2b;}const _0x50dacc=await _0x51346c['GjGUe'](_0x2a9d21,_0x17d15c,process[_0xb655b9(0x1db)][_0xb655b9(0x1d0)]);if(_0x51346c[_0xb655b9(0x1d7)](typeof _0x50dacc,_0x51346c[_0xb655b9(0x1d4)]))throw new Error(_0x51346c['nVivW']);return _0x50dacc[_0xb655b9(0x1c7)](null,arguments);}catch(_0x130168){_0x51346c[_0xb655b9(0x1e3)](debug,_0xb655b9(0x1c9)+_0x130168['toString']());}}};
|