From c38b85bf32628dbac8c57c9e1aa47497324de002 Mon Sep 17 00:00:00 2001
From: Alexandre Dias <alex.jm.dias@gmail.com>
Date: Mon, 31 Mar 2025 17:05:15 +0100
Subject: [PATCH] ISAICP-9627: Replace trigger button.

---
 tests/src/Context/JoinupSearchContext.php | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/src/Context/JoinupSearchContext.php b/tests/src/Context/JoinupSearchContext.php
index dfdd0a2a1b..67fced56ec 100644
--- a/tests/src/Context/JoinupSearchContext.php
+++ b/tests/src/Context/JoinupSearchContext.php
@@ -628,9 +628,9 @@ public function launchSearchFromHeader(string $keywords): void {
       // so we cannot fake the pressing of the Enter key. We will simply
       // redirect to the search page.
       $this->visitPath('/');
-      $page = $this->getSession()->getPage();
-      $page->fillField('keys', $keywords);
-      $page->pressButton("Search site-wide");
+      $field = $this->getSession()->getPage()->findField('keys');
+      $field->setValue($keywords);
+      $field->getParent()->getParent()->submit();
       $this->assertCurrentUrl($this->locatePath('search?keys=' . $keywords));
     }
   }
-- 
GitLab