From 6e99b1864af82ec8a3951c544211fdd20a5901c4 Mon Sep 17 00:00:00 2001
From: Christian Kuhn <lolli@schwarzbu.ch>
Date: Sun, 30 Jul 2023 20:55:08 +0200
Subject: [PATCH] [TASK] Stabilize ac test Frontend\IndexedSearchCest

Fails locally occasionally. The additional explicit
waitForElement() before clicking the elemnt
stabilized it.

Resolves: #101491
Releases: main, 12.4, 11.5
Change-Id: I4072daa0e949d3480f399e99a2f35d8ef889eded
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/80251
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: core-ci <typo3@b13.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
---
 .../Tests/Acceptance/Application/Frontend/IndexedSearchCest.php  | 1 +
 1 file changed, 1 insertion(+)

diff --git a/typo3/sysext/core/Tests/Acceptance/Application/Frontend/IndexedSearchCest.php b/typo3/sysext/core/Tests/Acceptance/Application/Frontend/IndexedSearchCest.php
index f1196100df13..88e1a90d7e0e 100644
--- a/typo3/sysext/core/Tests/Acceptance/Application/Frontend/IndexedSearchCest.php
+++ b/typo3/sysext/core/Tests/Acceptance/Application/Frontend/IndexedSearchCest.php
@@ -37,6 +37,7 @@ class IndexedSearchCest
         $I->waitForElement('#typo3-pagetree-tree .nodes .node', 5);
         $pageTree->openPath(['styleguide frontend demo']);
         $I->switchToContentFrame();
+        $I->waitForElementVisible('.t3js-module-docheader-bar a[title="View webpage"]');
         $I->click('.t3js-module-docheader-bar a[title="View webpage"]');
         $I->executeInSelenium(static function (RemoteWebDriver $webdriver) {
             $handles = $webdriver->getWindowHandles();
-- 
GitLab