Skip to content

Suggestion: Replace hard-coded URLS with ENV parameters #40

@yairEO

Description

@yairEO

https://playwright.dev/docs/test-parameterize#passing-environment-variables

For example:

import "dotenv/config";

...

async goto() {
  await this.page.goto(proccess.env.TESTS_URL);
}

In my .env file I've configured the following:

TESTS_URL=http://localhost:3000
TESTS_BACKEND_API_URL=https://foo.bar

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions