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

Issue #3396536 by fjgarlin, catch, kim.pepper: [random test failure] Re-enable...

Issue #3396536 by fjgarlin, catch, kim.pepper: [random test failure] Re-enable AjaxTest::testAjaxFocus()
parent 7ca3f9e2
No related branches found
No related tags found
No related merge requests found
...@@ -301,7 +301,6 @@ public function testUiAjaxException() { ...@@ -301,7 +301,6 @@ public function testUiAjaxException() {
* Tests ajax focus handling. * Tests ajax focus handling.
*/ */
public function testAjaxFocus() { public function testAjaxFocus() {
$this->markTestSkipped("Skipped due to frequent random test failures. See https://www.drupal.org/project/drupal/issues/3396536");
$this->drupalGet('/ajax_forms_test_get_form'); $this->drupalGet('/ajax_forms_test_get_form');
$this->assertNotNull($select = $this->assertSession()->elementExists('css', '#edit-select')); $this->assertNotNull($select = $this->assertSession()->elementExists('css', '#edit-select'));
...@@ -327,14 +326,6 @@ public function testAjaxFocus() { ...@@ -327,14 +326,6 @@ public function testAjaxFocus() {
$has_focus_id = $this->getSession()->evaluateScript('document.activeElement.id'); $has_focus_id = $this->getSession()->evaluateScript('document.activeElement.id');
$this->assertEquals('edit-textfield-2', $has_focus_id); $this->assertEquals('edit-textfield-2', $has_focus_id);
// Test textfield with 'change' event listener with refocus-blur set to
// FALSE.
$textfield2->setValue('Llamas say yarhar');
$textfield3->focus();
$this->assertSession()->assertWaitOnAjaxRequest();
$has_focus_id = $this->getSession()->evaluateScript('document.activeElement.id');
$this->assertEquals('edit-textfield-2', $has_focus_id);
// Test textfield with 'change' event. // Test textfield with 'change' event.
$textfield3->focus(); $textfield3->focus();
$textfield3->setValue('Wasps buzz'); $textfield3->setValue('Wasps buzz');
......
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