-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
680 additions
and
1,390 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
BASE_URL=https://ecommerce-playground.lambdatest.io | ||
USER_EMAIL_NAME=Rosalind.Douglas69@yahoo.com | ||
USER_PASSWORD=bfowdJlkgkm5RQ6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
BASE_URL=https://ecommerce-playground.lambdatest.io/ | ||
USER_EMAIL_NAME=test@lambdatest.io | ||
USER_PASSWORD=12345678 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
BASE_URL=https://ecommerce-playground.lambdatest.io/ | ||
USER_EMAIL_NAME=test@lambdatest.io | ||
USER_PASSWORD=12345678 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,12 @@ | ||
let TEST_ENVIRONMENT = process.env.TEST_ENVIRONMENT | ||
|
||
if (!TEST_ENVIRONMENT) { | ||
TEST_ENVIRONMENT = process.env.TEST_ENVIRONMENT = 'qa' | ||
throw new Error('TEST_ENVIRONMENT is not defined, please set it in your .env file') | ||
} | ||
|
||
async function globalSetup() { | ||
const config = { | ||
baseUrl: 'https://www.google.com', | ||
testEnvironment: TEST_ENVIRONMENT, | ||
testEnvironmentUrl: 'https://www.google.com', | ||
testEnvironmentUsername: 'test', | ||
} | ||
console.log(`Running tests in ${TEST_ENVIRONMENT} environment`) | ||
require('dotenv').config({ path: `./config/${TEST_ENVIRONMENT}.env` }) | ||
} | ||
|
||
module.exports = globalSetup |
Oops, something went wrong.