diff --git a/tests/browserstack_automation/config/wdio.config.js b/tests/browserstack_automation/config/wdio.config.js index 644c392eb..988be3e6f 100644 --- a/tests/browserstack_automation/config/wdio.config.js +++ b/tests/browserstack_automation/config/wdio.config.js @@ -3,18 +3,18 @@ const { readFileSync } = require('fs'); const browserStackConfig = require('./browserstack.config'); const browserCapabilities = require('../capabilities/browser.json'); -// let mobileCapabilities = []; +let mobileCapabilities = []; -// try { -// const data = readFileSync('./tests/browserstack_automation/capabilities/mobile.json', { encoding: 'utf8' }); -// mobileCapabilities = JSON.parse(data); -// } catch (error) { +try { + const data = readFileSync('./tests/browserstack_automation/capabilities/mobile.json', { encoding: 'utf8' }); + mobileCapabilities = JSON.parse(data); +} catch (error) { -// // Run `npm run wdio:setup` -// } + // Run `npm run wdio:setup` +} + +const capabilities = [...browserCapabilities, ...mobileCapabilities]; -// const capabilities = [...browserCapabilities, ...mobileCapabilities]; -const capabilities = [...browserCapabilities]; const date = new Date(); const dateForDisplay = date.toDateString(); @@ -47,7 +47,6 @@ module.exports.config = { '../specs/HowItWorks.js', '../specs/SignInPage.js', - ], capabilities,