717 Commits

Author SHA1 Message Date
Mihail Geshoski
54da83f40a MDL-83264 mod_quiz: Return the correct name for top categories 2024-10-01 09:43:13 +08:00
Shamim Rezaie
2c111a05ea Merge branch 'MDL-77625_404' of https://github.com/timhunt/moodle into MOODLE_404_STABLE 2024-09-24 02:53:19 +10:00
Simey Lameze
3792869ef7 MDL-80965 behat: remove wrong tag from step 2024-09-19 07:49:22 +08:00
Luca Bösch
76d79b57c4 MDL-80965 mod_quiz: Put back random q category on the question page. 2024-09-18 15:29:49 +08:00
Julien
fc1e46db15 MDL-77625 question restore: test restoring a quiz into a course twice
The verifies that the previous two commits are doing the right thing.
2024-09-17 16:17:36 +01:00
Ilya Tregubov
081dc58c6f MDL-82882 mod_quiz: Code style fixes 2024-08-29 11:28:03 +08:00
Tim Hunt
72ba0759fc MDL-82882 quiz: add before/after for attempt_summary_information 2024-08-23 12:53:37 +01:00
Jun Pataleta
7052d36f7c
Merge branch 'MDL-82599-404-enfix' of https://github.com/mudrd8mz/moodle into MOODLE_404_STABLE 2024-08-09 11:19:01 +08:00
Huong Nguyen
ecc5f367ef
Merge branch 'MDL-82592_404' of https://github.com/timhunt/moodle into MOODLE_404_STABLE 2024-08-08 09:02:09 +07:00
Paul Holden
bdc4367460
MDL-82633 mod_quiz: re-factor visibility check for overrides. 2024-08-07 16:08:16 +08:00
David Mudrák
1e0f46a125 MDL-82599 lang: Use the fixed strings in tests, too 2024-08-02 17:44:42 +02:00
Paul Holden
0223b0fefb
MDL-82596 behat: tidy up existing usage of private files generator.
Filename is no longer required (since 83db25c330), given it never
did anything so can be removed. Requiring the "Private files" block
also isn't necessary since original switch to generator methods.
2024-07-28 19:13:39 +01:00
Tim Hunt
ed179a8d7f MDL-82592 quiz grades: 'setup for sections' handling of descriptions 2024-07-26 13:07:21 +01:00
Jun Pataleta
e18333d842
Merge branch 'MDL-82373-404' of https://github.com/andrewnicols/moodle into MOODLE_404_STABLE 2024-07-25 11:31:43 +08:00
Andrew Nicols
7fdb644bd1
MDL-82373 question: Make window larger in behat tests
I would suggest that this is a stop gap to solve some failing tests. We
really need to look at whether we can improve the usability of this
interface on smaller displays as a longer-term fix.
2024-07-17 13:28:56 +08:00
Andrew Nicols
32f1542b5e
MDL-82373 behat: Stop calling ensure_node_is_visible before click
W3C WebDriver Element::Click, Element::Clear, and Element::SendKeys all
state that the WebDriver implementation (chromedriver, geckodriver,
edgedriver) should scroll the element into view if it is not already
visible.

It is wrong for us to check if the element is visible or not before
calling these as it may not be but will during the click/clear/type
event.
2024-07-17 13:28:55 +08:00
Ilya Tregubov
25f4874743 Merge branch 'MDL-82282-404' of https://github.com/paulholden/moodle into MOODLE_404_STABLE 2024-07-16 09:26:20 +08:00
Tim Hunt
077f535912
MDL-82401 quiz: editing modals must be removed on close 2024-07-10 08:58:13 +07:00
Paul Holden
771694018e
MDL-82282 question: consider only editable flags in JS module. 2024-07-04 10:19:30 +01:00
Stephan Robotta
219d5bfb44 MDL-79758 qbank: add filter in pagination links
Contains some minor tweaks by Tim Hunt <T.J.Hunt@open.ac.uk>.
2024-06-27 09:22:31 +01:00
Eloy Lafuente (stronk7)
202c58888a
MDL-82148 phpunit: Remove all cases of multiple @coversDefaultClass
Only one by class is allowed (to be used as shortcut exclusively).
2024-06-14 16:05:15 +02:00
Jun Pataleta
ece31e87a6
Merge branch 'MDL-82178_404' of https://github.com/timhunt/moodle into MOODLE_404_STABLE 2024-06-13 12:00:35 +08:00
Tim Hunt
200eb30225 MDL-82178 quiz graded notification: fix capability check
Also improve the scheduled task logging
2024-06-12 12:40:26 +01:00
Eloy Lafuente (stronk7)
091b458c52
MDL-81522 phpunit: Add missing void return type to all tests #2
This commit includes more changes, all them also adding the :void
return type to unit tests missing them.

The difference is that all these changes, while also detected
perfectly by the moodle.PHPUnit.TestReturnType sniff, were not
auto-fixed (like the previous commit ones), because all them
do include some "return" statement and, for safety, we don't
fix them.

All the cases have been visually inspected and confirmed that
the existing "return" statements always belong to anon
functions within the test body and not the test own return statement.
2024-06-11 12:18:05 +02:00
Eloy Lafuente (stronk7)
1093256560
MDL-81522 phpunit: Add missing void return type to all tests
While this change is not 100% required now, it's good habit
and we are checking for it since Moodle 4.4.

All the changes in this commit have been applied automatically
using the moodle.PHPUnit.TestReturnType sniff and are, exclusively
adding the ": void" return types when missing.
2024-06-11 12:18:04 +02:00
David Mudrák
0091b1a153
MDL-81982 lang: Use fixed strings in tests, too 2024-06-05 10:25:06 +08:00
Eloy Lafuente (stronk7)
b2a485e244
MDL-81698 phpunit: Apply various fixes towards 1by1 execution
The changes here are heterogeneous:
- Include stuff that is not available (other test has included it).
  Sometimes local to a unit test, others in setupBeforeClass() or
  globally, ... depends on every case.
- Rename some tests (namespaces, test name, ...) towards getting it
  running.
- Amend small bits here and there.

Important note: I've left any "cosmetic" warning out from the
changes, only a few errors (like long array syntax) have been fixed.
2024-05-25 17:19:52 +02:00
Jun Pataleta
6a628bcd3a
MDL-81713 mod_quiz: Use accessible fieldset name for Behat test 2024-05-09 11:56:22 +08:00
Luca Bösch
10e44e40d9
MDL-81713 mod_quiz: Add random question 'Parent category' help icon. 2024-05-09 11:56:09 +08:00
Paul Holden
edf923e38e
MDL-80597 mod_quiz: simplify filtering by tags Behat assertions.
The initial filtering for category was redundant, as it's applied
by default. While present it also caused reproducible failures on
CI due to timing issues when trying to apply multiple filters.
2024-04-26 10:27:06 +01:00
Huong Nguyen
1d6bee488d
Merge branch 'MDL-81627_404' of https://github.com/timhunt/moodle into MOODLE_404_STABLE 2024-04-24 15:26:05 +07:00
Tim Hunt
14574fdb56
MDL-81301 quiz: improve performance of deleting a quiz 2024-04-24 15:19:23 +07:00
Tim Hunt
82eacb2e48 MDL-81627 quiz restore: fix restore of grade item for each slot 2024-04-23 11:34:16 +01:00
Andrew Nicols
8acda4e048
Merge branch 'MDL-70829-main' of https://github.com/junpataleta/moodle 2024-04-12 11:58:32 +08:00
Andrew Nicols
dbb8155b15
Merge branch 'MDL-78902' of https://github.com/timhunt/moodle 2024-04-12 11:18:28 +08:00
Jun Pataleta
020756e0f1
MDL-70829 mod_quiz: Mark up decorative images properly
* Decorative images should have an empty alt text and there's no need
to set a presentation role.
* Accessibility Behat tests added to cover the changes
2024-04-12 10:42:11 +08:00
Tomo Tsuyuki
f119c5a3fe MDL-78902 quiz restore: fix restore of 3.x backups with random questions
... where the random questions come from the quiz module context.

Co-authored-by: Tim Hunt <T.J.Hunt@open.ac.uk>
2024-04-11 22:09:28 +01:00
Andrew Nicols
d26c40db26
Merge branch 'MDL-81114' of https://github.com/timhunt/moodle 2024-04-11 23:25:22 +08:00
Tim Hunt
d55e486a7e MDL-74610 quiz: multiple grades - UI improvements 2024-04-09 15:11:45 +01:00
Tim Hunt
0b7805199f MDL-74610 quiz: add extra grades to web services the mobile app uses 2024-04-09 15:11:44 +01:00
Tim Hunt
e6e427073c MDL-74610 quiz: multiple grades - fix display on quiz intro page 2024-04-09 15:11:44 +01:00
Tim Hunt
48304bd2f8 MDL-74610 quiz: multiple grades - setup for sections button 2024-04-09 14:59:49 +01:00
Tim Hunt
9a1b85aa4c MDL-74610 quiz: multiple grades - reset all button 2024-04-09 14:59:49 +01:00
Tim Hunt
a65260daa8 MDL-74610 quiz: multiple grades - show mark info when editing 2024-04-09 14:59:48 +01:00
Tim Hunt
b4467adf52 MDL-74610 quiz: multiple grades - display grades to student 2024-04-09 14:59:47 +01:00
Tim Hunt
81495189fc MDL-74610 quiz: update the grade setup page without reloads 2024-04-09 14:59:45 +01:00
Tim Hunt
bbe11e1cea MDL-74610 quiz: multiple grades - update slot grade items 2024-04-09 14:59:44 +01:00
Tim Hunt
a47705c09e MDL-74610 quiz: multiple grades - show grade items 2024-04-09 14:59:44 +01:00
Tim Hunt
be49319a87 MDL-74610 quiz: multiple grades - rename grade item 2024-04-09 14:59:43 +01:00
Tim Hunt
6794f1293f MDL-74610 quiz: multiple grades - add grade item 2024-04-09 14:59:42 +01:00