Skip to content

Commit

Permalink
Merge pull request #1722 from ezsystems/fix-behat-tests
Browse files Browse the repository at this point in the history
[Behat] Added sorting subitems by Modified date
  • Loading branch information
micszo authored Mar 12, 2021
2 parents ff9011e + 4600283 commit db033a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/Behat/BusinessContext/ContentViewContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ public function goingToPathTheresSubItem(string $path, string $contentName, stri
$pathSize = count($explodedPath);

$contentItemPage = PageObjectFactory::createPage($this->utilityContext, ContentItemPage::PAGE_NAME, $explodedPath[$pathSize - 1]);
$contentItemPage->subItemList->sortBy('Modified', false);

Assert::assertTrue(
$contentItemPage->subItemList->table->isElementInTable($contentName),
Expand Down

0 comments on commit db033a8

Please # to comment.