From 62d0cf1865160360ab564984354e83f91034276e Mon Sep 17 00:00:00 2001 From: Alexander Hesse Date: Wed, 23 Aug 2023 13:06:46 +0200 Subject: [PATCH] BUGFIX: iClickTheDocumentTreeEntry for Neos 8.3 --- Tests/Behavior/Bootstrap/NeosBackendControlTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/Behavior/Bootstrap/NeosBackendControlTrait.php b/Tests/Behavior/Bootstrap/NeosBackendControlTrait.php index 04b22c6..6b32b37 100644 --- a/Tests/Behavior/Bootstrap/NeosBackendControlTrait.php +++ b/Tests/Behavior/Bootstrap/NeosBackendControlTrait.php @@ -76,7 +76,7 @@ public function iClickTheDocumentTreeEntry($documentTitle) $this->playwrightConnector->execute($this->playwrightContext, sprintf( // language=JavaScript ' - await vars.page.click(`body div[class^=style__leftSideBar__top___] div[role=button]:has(span:has-text("%s"))`); + await vars.page.locator("body div[class*=leftSideBar__top]").getByRole("button", {name: "%s"}).click(); await vars.page.waitForSelector(`div#neos-Inspector`); vars.neosContentFrame = await vars.page.frame(`neos-content-main`); '// language=PHP