From 23735ff1985e3ee2cac9d16646c6e8efddeaa871 Mon Sep 17 00:00:00 2001
From: Tim Rohaly <tr@202830.no-reply.drupal.org>
Date: Sat, 29 Jun 2024 14:47:36 -0700
Subject: [PATCH] Issue #3458065 by vishalkhode: Fix Javascript test failure

---
 tests/src/FunctionalJavascript/EventBundleTest.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/src/FunctionalJavascript/EventBundleTest.php b/tests/src/FunctionalJavascript/EventBundleTest.php
index 52cdb82a..64a2b988 100644
--- a/tests/src/FunctionalJavascript/EventBundleTest.php
+++ b/tests/src/FunctionalJavascript/EventBundleTest.php
@@ -61,7 +61,7 @@ class EventBundleTest extends WebDriverTestBase {
     $page = $this->getSession()->getPage();
     $page->fillField('label', 'Test bundle selection Ajax rule');
     // The machine name field should be automatically filled via Ajax.
-    $assert->assertWaitOnAjaxRequest();
+    $assert->waitForElementVisible('css', '.machine-name-value');
 
     // Select the "After saving a new taxonomy term" event.
     $page->findField('events[0][event_name]')->selectOption('rules_entity_insert:taxonomy_term');
-- 
GitLab