Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 295812

Add ability to test on Firefox using selenium

$
0
0

Problem/Motivation

Once #3421202: Enable W3C-compliant webdriver testing 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

Upstream fixes

  1. Merge https://github.com/Lullabot/php-webdriver/pull/15
  2. Make a release for php-webdriver
  3. I’ll update https://github.com/Lullabot/MinkSelenium2Driver/pull/12 to use the new php-webdriver release and have proper testing
  4. Merge https://github.com/Lullabot/MinkSelenium2Driver/pull/13
  5. Merge https://github.com/Lullabot/MinkSelenium2Driver/pull/12
  6. Make a release for MinkSelenium2Driver

Once all that is done we can remove the hacks from this MR and update composer.json to use the new versions.

User interface changes

None

API changes

TBD - hopefully none

Data model changes

None

Release notes snippet

TBD


Viewing all articles
Browse latest Browse all 295812

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>