Add ability to test on Firefox using selenium

Created on 19 July 2024, about 2 months ago
Updated 19 August 2024, 19 days ago

Problem/Motivation

Once 📌 Use selenium/standalone-chrome instead of our chromedriver image Needs work lands we will be able to test using selenium/standalone-firefox.

Steps to reproduce

Add

.with-selenium-firefox: &with-selenium-firefox
  name: selenium/standalone-firefox:127.0
  alias: selenium
  variables:
    JAVA_OPTS: "-Dwebdriver.firefox.logfile=/builds/geckodriver.log"
    SE_NODE_OVERRIDE_MAX_SESSIONS: "true"
    SE_NODE_MAX_SESSIONS: "5"
    SE_START_XVFB: "false"
    SE_START_VNC: "false"

'🖱️️️ PHPUnit Functional Javascript (selenium firefox)':
  <<: [ *with-composer, *run-tests, *default-job-settings ]
  when: manual
  parallel: 4
  variables:
    TESTSUITE: PHPUnit-FunctionalJavascript
    CONCURRENCY: 15
    KUBERNETES_CPU_REQUEST: "24"
    MINK_DRIVER_ARGS_WEBDRIVER: $MINK_DRIVER_ARGS_WEBDRIVER_FIREFOX_W3C
  services:
    - <<: *with-database
    - <<: *with-selenium-firefox
  after_script:
    - echo $MINK_DRIVER_ARGS_WEBDRIVER
    - sed -i "s#$CI_PROJECT_DIR/##" ./sites/default/files/simpletest/phpunit-*.xml || true
    - cp /builds/geckodriver.log ./

To gitlab pipeline.

Proposed resolution

Remaining tasks

Reviews

User interface changes

None

API changes

TBD - hopefully none

Data model changes

None

Release notes snippet

TBD

📌 Task
Status

Needs review

Version

11.0 🔥

Component
PHPUnit 

Last updated 1 minute ago

Created by

🇬🇧United Kingdom alexpott 🇪🇺🌍

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024