Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
moodle
moodle
Commits
6abb0771
Commit
6abb0771
authored
Feb 01, 2021
by
Thong Bui
Browse files
MDL-70726 behat: should_not_exist function does not work correctly
parent
95dd305c
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/tests/behat/behat_general.php
View file @
6abb0771
...
...
@@ -1000,7 +1000,7 @@ EOF;
// 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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment