-
Sub-task
-
Resolution: Fixed
-
Minor
-
2.9.1, 3.0
-
MOODLE_29_STABLE, MOODLE_30_STABLE
-
MOODLE_29_STABLE, MOODLE_30_STABLE
-
MDL-50710-master -
- Create a glossary with some entries and add a glossary entry block to the course page
- Select different values for block settings "How a new entry is chosen" and make sure all work as expected
The "View random (last) entry in the glossary with auto approval" scenario (blocks/glossary_random/tests/behat/glossary_random.feature fails) fails:
And I should not see "Concept1" in the "AutoGlossaryblock" "block" behat_general::assert_element_not_contains_text()
"Concept1" text was found in the "AutoGlossaryblock" element
The test runs too fast. This is what
{behat_glossary_entries}looks like after success:
mysql> select id,concept,definition,timecreated,timemodified from behat_glossary_entries;
--------------------------------------------------
id concept definition timecreated timemodified -------
-------------------------------------------
210000 Concept1 Definition1 1435630762 1435630762 210001 Concept2 Definition2 1435630763 1435630763 -------
-------------------------------------------
2 rows in set (0.00 sec)
This is failure:
mysql> select id,concept,definition,timecreated,timemodified from behat_glossary_entries;
--------------------------------------------------
id concept definition timecreated timemodified -------
-------------------------------------------
210000 Concept1 Definition1 1435630693 1435630693 210001 Concept2 Definition2 1435630693 1435630693 -------
-------------------------------------------
2 rows in set (0.00 sec)