-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
4.1.18, 4.4.8, 4.5.4, 5.0
When using something like
$this->check_output_contains_selectoptions(
$this->get_contains_select_expectation('0_0', ['foo', 'bar'])
);
in a walkthrough test, one would expect the test to fail if the output does not contain a <select> element. However, the test will pass, although with no assertions being made.
This is due to the fact that the test fetches all <select> elements on the page and, for each one of them, checks whether it contains the given options. If there is no <select> , no checks will be done and hence, nothing can fail.