Skip to content

Environment variables in playwright tests #514

Answered by cawa-93
jsheffers asked this question in Q&A
Discussion options

You must be logged in to vote

Use loadEnv helper from Vite to load Environment variables from .env file wherever you want. It read .env file and setup variables in process.env

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@cawa-93
Comment options

Comment options

You must be logged in to vote
4 replies
@SalahAdDin
Comment options

@cawa-93
Comment options

@SalahAdDin
Comment options

@SalahAdDin
Comment options

Answer selected by cawa-93
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants