Skip to content

Commit

Permalink
MDL-70726 behat: should_not_exist function does not work correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
JBThong committed Mar 1, 2021
1 parent 95dd305 commit 6abb077
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tests/behat/behat_general.php
Original file line number Diff line number Diff line change
Expand Up @@ -1000,7 +1000,7 @@ public function should_not_exist($element, $selectortype) {
// Using the spin method as we want a reduced timeout but there is no need for a 0.1 seconds interval
// because in the optimistic case we will timeout.
// If all goes good it will throw an ElementNotFoundExceptionn that we will catch.
return $this->find($selectortype, $element, $exception, false, behat_base::get_reduced_timeout());
$this->find($selectortype, $element, $exception, false, behat_base::get_reduced_timeout());
} catch (ElementNotFoundException $e) {
// We expect the element to not be found.
return;
Expand Down

0 comments on commit 6abb077

Please sign in to comment.