Verified Commit c9f19748 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3309907 by Spokje, danflanagan8, longwave: [random test failure]...

Issue #3309907 by Spokje, danflanagan8, longwave: [random test failure] BookTest::testGetTableOfContents
parent 2c468a00
Loading
Loading
Loading
Loading
+2 −2
Changes for core/tests/Drupal/Tests/WebAssert.php: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -225,7 +225,7 @@ public function optionExists($select, $option, TraversableElement $container = N
      throw new ElementNotFoundException($this->session->getDriver(), 'select', 'id|name|label|value', $select);
    }

    $option_field = $select_field->find('named', ['option', $option]);
    $option_field = $select_field->find('named_exact', ['option', $option]);

    if ($option_field === NULL) {
      throw new ElementNotFoundException($this->session->getDriver(), 'select', 'id|name|label|value', $option);
@@ -259,7 +259,7 @@ public function optionNotExists($select, $option, TraversableElement $container
      throw new ElementNotFoundException($this->session->getDriver(), 'select', 'id|name|label|value', $select);
    }

    $option_field = $select_field->find('named', ['option', $option]);
    $option_field = $select_field->find('named_exact', ['option', $option]);

    $this->assert($option_field === NULL, sprintf('An option "%s" exists in select "%s", but it should not.', $option, $select));
  }