Rayrun
← Back to Discord Forum

vscode extension: switching base url

Hi!

I'm currently controlling my base url with an environment variable. This means I can control which base url to use when running tests from the command line, eg.

BASE_URL=http://localhost:3000 yarn playwright test

I'm missing a similar feature for switching the base url, when I run my playwright tests using the vscode extension.

The workaround I currently use, is to start code the environment variable set, like so.

BASE_URL=http://localhost:3000 code .

But this means restarting vscode each time I need to change the base url.

Is changing the base url supported in the vscode extension in some way?

This thread is trying to answer question "Is changing the base url supported in the vscode extension in some way?"

0 replies

Related Discord Threads

TwitterGitHubLinkedIn
AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email [email protected].