Skip to content

Commit

Permalink
[Behat] Remove the wait when checking the element visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafikooo committed May 23, 2024
1 parent df3fa7e commit 647b366
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/Sylius/Behat/Service/AutocompleteHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,8 @@ public static function removeValue(Session $session, NodeElement $element, strin

public static function isValueVisible(Session $session, NodeElement $element, $value): bool
{
static::activateAutocompleteDropdown($session, $element);

$result = $element->find('css', sprintf('div.item:contains("%s")', $value));

static::waitForElementToBeVisible($session, $element);

return null !== $result;
}

Expand Down

0 comments on commit 647b366

Please sign in to comment.