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

Running tests in frontend and collections does not work #710

Open
unoduetre opened this issue Jan 4, 2024 · 0 comments
Open

Running tests in frontend and collections does not work #710

unoduetre opened this issue Jan 4, 2024 · 0 comments

Comments

@unoduetre
Copy link
Contributor

unoduetre commented Jan 4, 2024

Two unrelated issues prevent the tests (e.g. govuk-docker run frontend-lite bundle exec rake) from being run.

Issue 1

Branch names were changed from master to main. Because of that pact tests fail.

I had to add an environment variable -e PACT_CONSUMER_VERSION=branch-main when running govuk docker for tests.

Issue 2

Recent updates to selenium prevent running tests which require it. Selenium now automatically downloads the browsers that it uses, which generates an error related to version mismatch.

I had to remove the downloaded browser govuk-docker run --rm collections-lite rm -Rf /root/.cache/selenium and then use an environment variable -e SE_AVOID_BROWSER_DOWNLOAD=true when running govuk-docker for tests so it is not downloaded again.

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