diff --git a/core/modules/views_ui/tests/src/FunctionalJavascript/FilterEntityReferenceTest.php b/core/modules/views_ui/tests/src/FunctionalJavascript/FilterEntityReferenceTest.php
index 346816ce2eb9e3de546c75dc978780a976daebc3..b6021c6580e31aa3969d6a07de3f253c06ca7ecb 100644
--- a/core/modules/views_ui/tests/src/FunctionalJavascript/FilterEntityReferenceTest.php
+++ b/core/modules/views_ui/tests/src/FunctionalJavascript/FilterEntityReferenceTest.php
@@ -110,6 +110,7 @@ public function testAddEntityReferenceFieldWithDefaultSelectionHandler(): void {
     // Test the exposed filter options show up correctly.
     $assert->waitForField('options[expose_button][checkbox][checkbox]');
     $page->findField('options[expose_button][checkbox][checkbox]')->click();
+    $this->assertSession()->assertWaitOnAjaxRequest();
     $this->assertTrue($page->hasCheckedField('options[expose_button][checkbox][checkbox]'));
 
     // Check the exposed filters multiple option.
@@ -210,6 +211,7 @@ public function testAddConfigEntityReferenceFieldWithDefaultSelectionHandler():
     // Test the exposed filter options show up correctly.
     $assert->waitForField('options[expose_button][checkbox][checkbox]');
     $page->findField('options[expose_button][checkbox][checkbox]')->click();
+    $this->assertSession()->assertWaitOnAjaxRequest();
     $this->assertTrue($page->hasCheckedField('options[expose_button][checkbox][checkbox]'));
 
     // Check the exposed filters multiple option.