From e6304cd9614a0d43ddde38bd9712fb1ee243feed Mon Sep 17 00:00:00 2001
From: Alex Pott <alex.a.pott@googlemail.com>
Date: Mon, 1 Jan 2024 15:16:29 +0000
Subject: [PATCH] Issue #3396536 by fjgarlin, catch, kim.pepper: [random test
 failure] Re-enable AjaxTest::testAjaxFocus()

---
 .../Drupal/FunctionalJavascriptTests/Ajax/AjaxTest.php   | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/core/tests/Drupal/FunctionalJavascriptTests/Ajax/AjaxTest.php b/core/tests/Drupal/FunctionalJavascriptTests/Ajax/AjaxTest.php
index d6c1f3634e01..a8908a4925e6 100644
--- a/core/tests/Drupal/FunctionalJavascriptTests/Ajax/AjaxTest.php
+++ b/core/tests/Drupal/FunctionalJavascriptTests/Ajax/AjaxTest.php
@@ -301,7 +301,6 @@ public function testUiAjaxException() {
    * Tests ajax focus handling.
    */
   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->assertNotNull($select = $this->assertSession()->elementExists('css', '#edit-select'));
@@ -327,14 +326,6 @@ public function testAjaxFocus() {
     $has_focus_id = $this->getSession()->evaluateScript('document.activeElement.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.
     $textfield3->focus();
     $textfield3->setValue('Wasps buzz');
-- 
GitLab