Skip to content

Running tests in frontend and collections does not work #710

@unoduetre

Description

@unoduetre

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions