Skip to content

Commit

Permalink
[Behat] IBX-7780: Fixed taxonomy behat fails (#1350)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaszszopinski authored Sep 24, 2024
1 parent db4475a commit e0e46ad
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/Behat/Component/CreateNewPopup.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

use Behat\Mink\Session;
use Ibexa\Behat\Browser\Component\Component;
use Ibexa\Behat\Browser\Element\Condition\ElementTransitionHasEndedCondition;
use Ibexa\Behat\Browser\Element\Criterion\ChildElementTextCriterion;
use Ibexa\Behat\Browser\Locator\VisibleCSSLocator;

Expand All @@ -25,6 +26,9 @@ public function __construct(Session $session, IbexaDropdown $ibexaDropdown)

public function verifyIsLoaded(): void
{
$this->getHTMLPage()
->setTimeout(5)
->waitUntilCondition(new ElementTransitionHasEndedCondition($this->getHTMLPage(), $this->getLocator('popup')));
$this->getHTMLPage()->setTimeout(5)->find($this->getLocator('popup'))->assert()->isVisible();
}

Expand Down

0 comments on commit e0e46ad

Please sign in to comment.