-
Bug
-
Resolution: Fixed
-
Minor
-
3.5
-
MOODLE_35_STABLE
-
MOODLE_35_STABLE
-
MDL-62376-master -
To reproduce this, install https://moodle.org/plugins/quizaccess_honestycheck, and run the Behat test.
If fails with
C:\Users\tjh238\workspace\moodle_head>vendor\bin\behat.bat --config C:\Temp\moodle_head_data_behat\behatrun\behat\behat.yml --tags quizaccess_honestycheck
|
Moodle 3.5beta+ (Build: 20180508), 55d6eadcaf6057e147e4b265b815778adf06369f
|
Php: 7.1.14, pgsql: 9.3.4, OS: Windows NT 6.1 AMD64
|
Server OS "WINNT", Browser: "chrome"
|
Browser specific fixes have been applied. See http://docs.moodle.org/dev/Acceptance_testing#Browser_specific_fixes
|
Started at 10-05-2018, 01:57
|
............................F-----------
|
|
--- Failed steps:
|
|
001 Scenario: Require students to agree, then check the they have to.
|
# C:\Users\tjh238\workspace\moodle_head\mod\quiz\accessrule\honestycheck\tests\behat\basic_test.feature:21
|
Then I should see "You must agree to this statement before you start the quiz." # C:\Users\tjh238\workspace\moodle_head\mod\quiz\accessrule\honestycheck\tests\behat\basic_test.feature:63
|
"You must agree to this statement before you start the quiz." text was found but was not visible (Behat\Mink\Exception\ExpectationException)
|
|
1 scenario (1 failed)
|
40 steps (28 passed, 1 failed, 11 skipped)
|
4m47.19s (68.44Mb)
|
To see what is going on:
- Log in to you Behat test site as admin.
- Go into Course 1.
- Go into Quiz with honesty check.
- Click 'Start attempt'. A pop-up will open.
- Click 'Start attempt' in the pop-up, the page will re-load to show the form what was in the pop-up full-screen.
- At this point, the text 'You must agree to this statement before you start the quiz.' should be visiable as a form error beside the un-checked checkbox.
In fact, that content is in the page, as
<div class="form-control-feedback invalid-feedback" id="id_error_honestycheck">
|
You must agree to this statement before you start the quiz.
|
</div>
|
However, there is CSS that is hiding it. That looks to me like a bug caused by the Boostrap 4 work. Hence this bug report.