summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2017-04-15 11:08:00 (GMT)
committerAlex Pott2017-04-15 11:08:00 (GMT)
commit9a63547ef4a2234445d104d2052d1c84ebbf541a (patch)
treee83150856fa711050edd0a1a5bfcd0807b279167
parent0707a705e235ab1862050e07740b77e513a05770 (diff)
Issue #2864177 by xjm, droplet: Random failure in FormErrorHandlerCKEditorTest
-rw-r--r--core/modules/inline_form_errors/tests/src/FunctionalJavascript/FormErrorHandlerCKEditorTest.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/core/modules/inline_form_errors/tests/src/FunctionalJavascript/FormErrorHandlerCKEditorTest.php b/core/modules/inline_form_errors/tests/src/FunctionalJavascript/FormErrorHandlerCKEditorTest.php
index 3ee24b4..bce4ff8 100644
--- a/core/modules/inline_form_errors/tests/src/FunctionalJavascript/FormErrorHandlerCKEditorTest.php
+++ b/core/modules/inline_form_errors/tests/src/FunctionalJavascript/FormErrorHandlerCKEditorTest.php
@@ -82,8 +82,6 @@ class FormErrorHandlerCKEditorTest extends JavascriptTestBase {
$this->drupalGet('node/add/page');
- $page = $this->getSession()->getPage();
-
// Only enter a title in the node add form and leave the body field empty.
$edit = ['edit-title-0-value' => 'Test inline form error with CKEditor'];
@@ -99,8 +97,8 @@ class FormErrorHandlerCKEditorTest extends JavascriptTestBase {
// Check if we can find the error fragment link within the errors summary
// message.
- $errors_link = $page->find('css', '.messages--error a[href=\#edit-body-0-value]');
- $this->assertTrue($errors_link->isVisible(), 'Error fragment link is visible.');
+ $errors_link = $this->assertSession()->waitForElementVisible('css', '.messages--error a[href="#edit-body-0-value"]');
+ $this->assertNotEmpty($errors_link, 'Error fragment link is visible.');
$errors_link->click();