Skip to content

Commit

Permalink
Revert "Change wait to waitFor element in behat tests"
Browse files Browse the repository at this point in the history
This reverts commit 313c295.
  • Loading branch information
liszkapawel committed Aug 25, 2022
1 parent 32a7bd9 commit e246d6b
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@ public function addRule(string $ruleName): void

$this->getDocument()->clickLink('Add rule');

$this->getDocument()->waitFor(1000, function() {
return $this->hasElement('countField');
});
$this->getSession()->wait(100);

$this->selectRuleOption('Type', $ruleName);
}
Expand Down Expand Up @@ -95,7 +93,6 @@ protected function getDefinedElements(): array
{
return [
'rules' => '#bitbag_sylius_blacklist_plugin_automatic_blacklisting_configuration_rules',
'countField' => 'div[data-form-collection="list"] div[data-form-collection="item"] input[type="number"]'
];
}

Expand Down

0 comments on commit e246d6b

Please sign in to comment.