Skip to content
Snippets Groups Projects
Commit 9a63547e authored by Alex Pott's avatar Alex Pott
Browse files

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

parent 0707a705
No related branches found
No related tags found
No related merge requests found
......@@ -82,8 +82,6 @@ public function testFragmentLink() {
$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 @@ public function testFragmentLink() {
// 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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment