Skip to content

Commit

Permalink
added Spec file
Browse files Browse the repository at this point in the history
  • Loading branch information
lavishaGit committed Oct 28, 2024
1 parent c182573 commit 8bafda3
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions tests/browserstack_automation/config/wdio.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -47,7 +47,6 @@ module.exports.config = {
'../specs/HowItWorks.js',
'../specs/SignInPage.js',


],

capabilities,
Expand Down

0 comments on commit 8bafda3

Please sign in to comment.