From c6e7f88c7bfc5932816d3be506923338c2b179ea Mon Sep 17 00:00:00 2001 From: barbaragr Date: Fri, 28 Nov 2025 15:46:37 +0100 Subject: [PATCH 1/3] Revert "Revert "Added wait until button is loaded"" This reverts commit 7702d93d3f7814a1298a5200b20587ad75e8c116. --- src/lib/Behat/Component/CreateUrlAliasModal.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/Behat/Component/CreateUrlAliasModal.php b/src/lib/Behat/Component/CreateUrlAliasModal.php index e5117fc2fe..8f3bfe3987 100644 --- a/src/lib/Behat/Component/CreateUrlAliasModal.php +++ b/src/lib/Behat/Component/CreateUrlAliasModal.php @@ -9,6 +9,7 @@ use Behat\Mink\Session; use Ibexa\Behat\Browser\Component\Component; +use Ibexa\Behat\Browser\Element\Condition\ElementTransitionHasEndedCondition; use Ibexa\Behat\Browser\Locator\VisibleCSSLocator; final class CreateUrlAliasModal extends Component @@ -36,6 +37,8 @@ public function createNewUrlAlias(string $path, string $languageName, bool $redi if ($redirect !== $redirectToggleState->hasClass('ibexa-toggle--is-checked')) { $this->getHTMLPage()->find($this->getLocator('redirectToggle'))->click(); } + + $this->getHTMLPage()->waitUntilCondition(new ElementTransitionHasEndedCondition($this->getHTMLPage(), $this->getLocator('createButton'))); $this->getHTMLPage()->find($this->getLocator('createButton'))->click(); } From 932def8ddd4f37f226b9199bdf25201aa4509e4e Mon Sep 17 00:00:00 2001 From: barbaragr Date: Wed, 10 Dec 2025 13:22:25 +0100 Subject: [PATCH 2/3] Timeout added --- src/lib/Behat/Component/CreateUrlAliasModal.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Behat/Component/CreateUrlAliasModal.php b/src/lib/Behat/Component/CreateUrlAliasModal.php index 8f3bfe3987..47e3f2cc9e 100644 --- a/src/lib/Behat/Component/CreateUrlAliasModal.php +++ b/src/lib/Behat/Component/CreateUrlAliasModal.php @@ -38,7 +38,7 @@ public function createNewUrlAlias(string $path, string $languageName, bool $redi $this->getHTMLPage()->find($this->getLocator('redirectToggle'))->click(); } - $this->getHTMLPage()->waitUntilCondition(new ElementTransitionHasEndedCondition($this->getHTMLPage(), $this->getLocator('createButton'))); + $this->getHTMLPage()->setTimeout(5)->waitUntilCondition(new ElementTransitionHasEndedCondition($this->getHTMLPage(), $this->getLocator('createButton'))); $this->getHTMLPage()->find($this->getLocator('createButton'))->click(); } From b3a04c3ce1e1b2ae0c886b04f5e6de3f7a780562 Mon Sep 17 00:00:00 2001 From: barbaragr Date: Wed, 10 Dec 2025 15:35:45 +0100 Subject: [PATCH 3/3] Timeout added --- src/lib/Behat/Page/ContentViewPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Behat/Page/ContentViewPage.php b/src/lib/Behat/Page/ContentViewPage.php index 1cc0dfb18d..53b3ed8cc2 100644 --- a/src/lib/Behat/Page/ContentViewPage.php +++ b/src/lib/Behat/Page/ContentViewPage.php @@ -310,7 +310,7 @@ public function isBookmarked(): bool public function createNewUrlAlias(string $path, string $languageName, bool $redirect): void { - $this->getHTMLPage()->find($this->getLocator('addUrlAliasButton'))->click(); + $this->getHTMLPage()->setTimeout(3)->find($this->getLocator('addUrlAliasButton'))->click(); $this->createUrlAliasModal->createNewUrlAlias($path, $languageName, $redirect); }