Commit 806e1b5b authored by catch's avatar catch
Browse files

task: #3471113 Update to selenium/standalone-chrome:134+

By: mstrelan
By: graber
By: herved
By: longwave
(cherry picked from commit 9faf7e2a)
parent 3971a3ff
Loading
Loading
Loading
Loading
Loading
+3 −1
Changes for .gitlab-ci.yml: 3 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -90,6 +90,7 @@ variables:
  SIMPLETEST_BASE_URL: http://localhost/subdirectory
  MINK_DRIVER_ARGS_WEBDRIVER: '["chrome", {"browserName":"chrome", "goog:chromeOptions":{"w3c": true, "args":["--no-sandbox","--ignore-certificate-errors", "--allow-insecure-localhost", "--headless", "--dns-prefetch-disable", "--disable-dev-shm-usage"]}}, "http://selenium:4444"]'
  SELENIUM_JAVA_OPTS: "-Dwebdriver.chrome.logfile=/builds/chromedriver.log"
  SELENIUM_CHROME_TAG: "155.0"
  # Use local cache for yarn, see .yarn-install-from-cache.
  YARN_ENABLE_GLOBAL_CACHE: false
  YARN_ENABLE_MIRROR: false
@@ -137,7 +138,7 @@ default:
  alias: database

.with-selenium-chrome: &with-selenium-chrome
  name: selenium/standalone-chrome:133.0
  name: selenium/standalone-chrome:$SELENIUM_CHROME_TAG
  alias: selenium
  variables:
    JAVA_OPTS: $SELENIUM_JAVA_OPTS
@@ -452,6 +453,7 @@ default:
      allow_failure: true
  variables:
    COMPOSER_UPDATE: "1"
    SELENIUM_CHROME_TAG: "latest"

# Runs only the tests affected by changes in the MR.
# The name starts with a space to be listed before the other jobs.
+2
Changes for core/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditor5AllowedTagsTest.php: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -421,6 +421,8 @@ public function testMediaElementAllowedTags(): void {
   * Tests full HTML text format.
   */
  public function testFullHtml(): void {
    // @todo Re-enable in https://www.drupal.org/project/drupal/issues/3621903.
    $this->markTestSkipped('Filter tips are not rendered, see https://www.drupal.org/project/drupal/issues/3621903.');
    FilterFormat::create(
      Yaml::parseFile('core/profiles/standard/config/install/filter.format.full_html.yml')
    )->save();
+12
Changes for core/tests/Drupal/FunctionalJavascriptTests/DrupalSelenium2Driver.php: 12 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -80,6 +80,18 @@ public function uploadFileAndGetRemoteFilePath($path) {
    return $remotePath;
  }

  /**
   * {@inheritdoc}
   */
  public function setDesiredCapabilities(?array $desiredCapabilities = NULL): void {
    // Since Chrome 134, a click in a test can return before the new page starts
    // loading, so the test still sees the old page. This restores the previous
    // behavior.
    // @see https://issues.chromium.org/issues/350540984
    $desiredCapabilities['goog:chromeOptions']['args'][] = '--disable-features=DeferRendererTasksAfterInput';
    parent::setDesiredCapabilities($desiredCapabilities);
  }

  /**
   * {@inheritdoc}
   */