Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Best way to set Cypress base_url globally? #31

Open
patrickcate opened this issue May 4, 2021 · 0 comments
Open

Best way to set Cypress base_url globally? #31

patrickcate opened this issue May 4, 2021 · 0 comments

Comments

@patrickcate
Copy link

It seems like the cypress runner uses http://localhost:8888 as the default base_url. What is the best way to set this variable globally so all tests for a site use a custom one? In non-Drupal projects I'd just put this in the cypress.json file, but the only cypress.json file I see is in the drupal-cypress-environment directory, which is git ignored and seems to get rebuilt with every test run.

I've been able to set a custom base url by running export CYPRESS_BASE_URL=http://local.mysiteimtesting.com && drush cypress:run but I'd prefer not to have to pass in env variables this way.

I appreciate any help with this, and thanks for making this integration module for Drupal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant