From 4181185ff8bdb597ad87c2a1ca5cdd3b33af3a5f Mon Sep 17 00:00:00 2001 From: tomaszszopinski Date: Mon, 15 Sep 2025 15:02:21 +0200 Subject: [PATCH 1/2] [Behat] Fix for no draft on draft list --- src/lib/Behat/Page/DashboardPage.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/Behat/Page/DashboardPage.php b/src/lib/Behat/Page/DashboardPage.php index 46774e67f5..f059207d5b 100644 --- a/src/lib/Behat/Page/DashboardPage.php +++ b/src/lib/Behat/Page/DashboardPage.php @@ -59,6 +59,7 @@ public function editDraft(string $contentDraftName) public function isDraftOnList(string $draftName): bool { + $this->getHTMLPage()->setTimeout(5)->find($this->getLocator('table'))->mouseOver(); return $this->table->hasElement(['Name' => $draftName]); } From 7e5d9599c71ddf6967abd2d8eedb5a1b8a575311 Mon Sep 17 00:00:00 2001 From: tomaszszopinski Date: Tue, 16 Sep 2025 14:54:06 +0200 Subject: [PATCH 2/2] cs fix --- src/lib/Behat/Page/DashboardPage.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/Behat/Page/DashboardPage.php b/src/lib/Behat/Page/DashboardPage.php index f059207d5b..09a6dadc9b 100644 --- a/src/lib/Behat/Page/DashboardPage.php +++ b/src/lib/Behat/Page/DashboardPage.php @@ -60,6 +60,7 @@ public function editDraft(string $contentDraftName) public function isDraftOnList(string $draftName): bool { $this->getHTMLPage()->setTimeout(5)->find($this->getLocator('table'))->mouseOver(); + return $this->table->hasElement(['Name' => $draftName]); }