Skip to content

Commit

Permalink
[BUGFIX] Respect overridden properties in AbstractPageTree
Browse files Browse the repository at this point in the history
  • Loading branch information
eliashaeussler committed Jul 16, 2023
1 parent 8897ca4 commit 9f47062
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Classes/Core/Acceptance/Helper/AbstractPageTree.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function openPath(array $path)
foreach ($path as $pageName) {
$context = $this->ensureTreeNodeIsOpen($pageName, $context);
}
$context->findElement(\Facebook\WebDriver\WebDriverBy::cssSelector(self::$treeItemAnchorSelector))->click();
$context->findElement(\Facebook\WebDriver\WebDriverBy::cssSelector(static::$treeItemAnchorSelector))->click();
}

/**
Expand All @@ -65,7 +65,7 @@ public function getPageTreeElement()
$I = $this->tester;
$I->switchToIFrame();
return $I->executeInSelenium(function (\Facebook\WebDriver\Remote\RemoteWebDriver $webdriver) {
return $webdriver->findElement(\Facebook\WebDriver\WebDriverBy::cssSelector(self::$pageTreeSelector));
return $webdriver->findElement(\Facebook\WebDriver\WebDriverBy::cssSelector(static::$pageTreeSelector));
});
}

Expand All @@ -79,7 +79,7 @@ public function getPageTreeElement()
protected function ensureTreeNodeIsOpen(string $nodeText, RemoteWebElement $context)
{
$I = $this->tester;
$I->see($nodeText, self::$treeItemSelector);
$I->see($nodeText, static::$treeItemSelector);

/** @var RemoteWebElement $context */
$context = $I->executeInSelenium(function () use (
Expand Down

0 comments on commit 9f47062

Please sign in to comment.