Issue #2864177 by xjm, droplet: Random failure in FormErrorHandlerCKEditorTest

8.4.x
Alex Pott 2017-04-15 12:08:00 +01:00
parent 0707a705e2
commit 9a63547ef4
1 changed files with 2 additions and 4 deletions

View File

@ -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();