Skip to content

Commit 2c6fe51

Browse files
committed
Fixed locators
1 parent b625eae commit 2c6fe51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/Behat/Component/ContentTree.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ private function itemExists(string $itemPath): bool
2727
{
2828

2929
$pathParts = explode('/', $itemPath);
30-
$searchedElement = $this->getHTMLPage()->findAll($this->getLocator('contextInTree'))->getByCriterion(new ElementTextCriterion(end($pathParts)));
30+
$searchedElement = $this->getHTMLPage()->findAll($this->getLocator('contentInTree'))->getByCriterion(new ElementTextCriterion(end($pathParts)));
3131
return $searchedElement !== null;
3232
}
3333

3434
protected function specifyLocators(): array
3535
{
3636
return [
3737
new VisibleCSSLocator('header', '.ibexa-content-tree-container .c-tb-header__name-content,.c-header .c-header__name'),
38-
new VisibleCSSLocator('contentItemInTree', '.c-tb-list-item-single__link'),
38+
new VisibleCSSLocator('contentInTree', '.c-tb-list-item-single__link, .c-list-item'),
3939
];
4040
}
4141
}

0 commit comments

Comments
 (0)