Skip to content

Commit

Permalink
replace credentials with env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Taras Yatsynych committed Dec 5, 2023
1 parent 4242749 commit c419eb7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -135,3 +135,6 @@ workspace.xml
/test-results/
/playwright-report/
/playwright/.cache/

#.environmental variables
.env
10 changes: 6 additions & 4 deletions src/test/playwright/constants/general.constants.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
export const ADMIN_EMAIL = 'admin@gmail.com';
export const ADMIN_PASSWORD = 'admin';
export const USER_EMAIL = 'user@gmail.com';
export const USER_PASSWORD = 'user';
require('dotenv').config();

export const ADMIN_EMAIL = process.env.ADMIN_EMAIL;
export const ADMIN_PASSWORD = process.env.ADMIN_PASSWORD;
export const USER_EMAIL = process.env.USER_EMAIL;
export const USER_PASSWORD = process.env.USER_PASSWORD;
export const USER_ROLES = {
admin: 'admin',
user: 'user',
Expand Down

0 comments on commit c419eb7

Please sign in to comment.