Issue #2864177 by xjm, droplet: Random failure in FormErrorHandlerCKEditorTest
parent
0707a705e2
commit
9a63547ef4
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue