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