Skip to content

Conversation

@MikeMcC399
Copy link
Collaborator

@MikeMcC399 MikeMcC399 commented May 27, 2025

Situation

cypress/browsers and cypress/included images do not include the Mozilla geckodriver that is required for Firefox testing.

Change

  • Update FIREFOX_VERSION to 139.0.1 in factory/.env

  • Add Mozilla geckodriver to cypress/browsers and cypress/included by using the build parameter GECKODRIVER_VERSION in factory/docker-compose.yml and in factory/test-project/docker-compose.yml

  • Add "Mozilla geckodriver" sub-section to Browsers

  • Remove unneeded separate firefox-geckodriver build and test definitions. These were used in the interim situation where geckodriver was added to the cypress/factory build and not yet to the cypress/browsers and cypress/included builds.

Tests

cd factory
docker compose build factory
docker compose build browsers
docker compose build included
cd ../examples/basic
npm ci
docker build -f Dockerfile.browsers -t test-browsers .
cd ../..

Disconnect from network

cd examples/basic
docker run -it --rm -v .:/app -w /app --entrypoint bash test-browsers -c "npx cypress run -b firefox"
cd ..

cd basic-mini
docker run -it --rm -v .:/app -w /app --entrypoint cypress cypress/included run -b firefox
cd ../..

@cypress-app-bot
Copy link

@MikeMcC399

This comment was marked as outdated.

@MikeMcC399 MikeMcC399 force-pushed the add/browsers-included-geckodriver branch 2 times, most recently from ffcf9a1 to ce8ae23 Compare May 28, 2025 06:51
@MikeMcC399 MikeMcC399 force-pushed the add/browsers-included-geckodriver branch 3 times, most recently from b9a5cbf to 895f5c3 Compare May 30, 2025 07:29
@MikeMcC399 MikeMcC399 force-pushed the add/browsers-included-geckodriver branch from 895f5c3 to bbfc3f6 Compare May 30, 2025 07:44
@AtofStryker AtofStryker merged commit 51cc655 into cypress-io:master May 30, 2025
48 checks passed
@MikeMcC399 MikeMcC399 deleted the add/browsers-included-geckodriver branch May 30, 2025 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add geckodriver to cypress/browsers and cypress/included Support testing with Firefox in air-gapped environment (Docker)

3 participants