govuk-docker icon indicating copy to clipboard operation
govuk-docker copied to clipboard

Running tests in frontend and collections does not work

Open unoduetre opened this issue 2 years ago • 0 comments

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.

unoduetre avatar Jan 04 '24 07:01 unoduetre