106472 Commits

Author SHA1 Message Date
Andrew Nicols
426ea50861 MDL-76169 behat: Normalise exception message in should (not) steps
These steps have accepted a NodeElement instance as an argument for some
time, but were trying to cast it to string when formulating exception
messages, making it harder to debug and, in the case of the 'should see'
step, not work at all.

This patch introduces a new function to produce a consistent naming for
them.
2022-11-03 21:39:15 +08:00
Andrew Nicols
232ebac338 MDL-76169 behat: Add improved steps for using action menus
This commit adds new steps related to action menus to support:
* Choosing an item in a named action menu
* Choosing an item in a named action menu within a container
* Confirming that an action menu item does or does not exist in a named
  action menu
* Confirming that an action menu item does or does not exist in a named
  action menu within a container

The existing action menu steps were insufficient as they assume that
there is only one action menu within he container, which is not
necessarily the case.

The existing action menu steps are not non-JS friendly and will error if
JS is disabled, without providing any fallback when one is easily
available.

Unfortunately these steps cannot be used to replace the existing steps
without manual intervention.
2022-11-03 21:39:15 +08:00
Ilya Tregubov
720bd60fc6 on-demand release 4.1dev+ 2022-11-01 15:00:21 +03:00
Jun Pataleta
bd702e14a2 Merge branch 'MDL-74643-patch' of https://github.com/ilyatregubov/moodle 2022-11-01 14:06:13 +08:00
Ilya Tregubov
080e11e35a MDL-74643 core_user: Fix Behat test.
Stop using deprecated steps.
2022-11-01 08:59:51 +03:00
Andrew Nicols
f50b622319 Merge branch 'mdl-75010' of https://github.com/danmarsden/moodle 2022-11-01 11:51:33 +08:00
Andrew Nicols
60bc475925 Merge branch 'MDL-75468' of https://github.com/paulholden/moodle 2022-11-01 11:17:27 +08:00
Andrew Nicols
624f68be78 Merge branch 'MDL-76076_master' of https://github.com/marxjohnson/moodle 2022-11-01 10:47:14 +08:00
Jun Pataleta
5e84f00acb Merge branch 'MDL-73141-master' of https://github.com/dravek/moodle 2022-11-01 09:25:34 +08:00
Jun Pataleta
c0580bc013 Merge branch 'MDL-76120-master' of https://github.com/andrewnicols/moodle 2022-11-01 09:17:19 +08:00
Sara Arjona
217819a0de Merge branch 'MDL-75358-master' of https://github.com/junpataleta/moodle 2022-10-31 18:18:29 +01:00
Jun Pataleta
4caae7c835 MDL-75358 blog: Make attachment callback parameter nullable 2022-10-31 22:58:40 +08:00
Mark Johnson
67c7ed25e3 MDL-76076 cache: Add locking before write for parent caches 2022-10-31 13:55:54 +00:00
Sara Arjona
aaca32f7e1 Merge branch 'MDL-75771-master' of https://github.com/PhMemmel/moodle 2022-10-31 13:39:43 +01:00
Ilya Tregubov
9a723c0e15 Merge branch 'MDL-74643-master' of https://github.com/mickhawkins/moodle 2022-10-31 14:52:47 +03:00
Michael Hawkins
336d8c5fab MDL-74643 tool_mobile: Update API to support supportavailability config
Co-authored-by: Juan Leyva <juanleyvadelgado@gmail.com>
2022-10-31 18:58:10 +08:00
Michael Hawkins
e3b3ba90c8 MDL-74643 core_user: New admin setting for site support availability
This allows admins to configure whether contact site support is
available to everyone, authenticated users, or nobody.

The behat testing checks linked and direct access for each setting,
as well as adding testing that the support page override works as
expected.
2022-10-31 18:58:06 +08:00
Michael Hawkins
ddc9a30fa1 MDL-74643 core_user: Added behat page resolver
Currently this supports resolving the Contact Site Support page.
2022-10-31 18:55:29 +08:00
Jun Pataleta
fb302fe40f Merge branch 'MDL-75469-master' of https://github.com/kevpercy/moodle 2022-10-31 17:10:23 +08:00
Jun Pataleta
61146c9088 Merge branch 'MDL-76108-master' of https://github.com/aanabit/moodle 2022-10-31 16:49:25 +08:00
Jun Pataleta
d54abc4079 Merge branch 'MDL-75487' of https://github.com/paulholden/moodle 2022-10-31 13:33:56 +08:00
Jake Dallimore
77a1212d41 Merge branch 'MDL-76041-master' of https://github.com/call-learning/moodle 2022-10-31 11:43:49 +08:00
Jun Pataleta
9bdfcc46d3 Merge branch 'MDL-75358-master' of https://github.com/marinaglancy/moodle 2022-10-31 10:10:16 +08:00
Dan Marsden
a81c5593a5 MDL-75010 core: Prevent user last access update on user key login 2022-10-31 14:18:31 +13:00
David Matamoros
b0802f49a6 MDL-73141 core_cohort: Convert cohort listing to Report Builder 2022-10-29 12:45:50 +02:00
Víctor Déniz
04d8fc6070 Merge branch 'MDL-68437-master' of https://github.com/mihailges/moodle 2022-10-28 17:44:50 +01:00
Amaia Anabitarte
3e96f16688 MDL-76108 mod_lesson: improving count call for PHP8.0 2022-10-28 18:16:32 +02:00
Philipp Memmel
b4c292166a MDL-75771 core_courseformat: Add behat test for show_editor function 2022-10-28 17:24:37 +02:00
Philipp Memmel
4294acc5ab MDL-75771 core_courseformat: Fix capability for edit controls
course_format\base:show_editor now by default uses 'moodle/course:manageactivities', but also accepts other capabilities as param
2022-10-28 17:24:37 +02:00
Andrew Nicols
d396af9393 MDL-76120 behat: Swap click on select option to set field
Recent versions of Marionette do not like to click on the option
element so we must always use the set field option.
2022-10-28 20:53:22 +08:00
Sara Arjona
fa7a55aa5d on-demand release 4.1dev+ 2022-10-28 14:09:39 +02:00
Sara Arjona
fbfd60fef2 NOBUG: Fixed file access permissions 2022-10-28 14:09:38 +02:00
Sara Arjona
88622bf25b NOBUG: Fixed SVG browser compatibility 2022-10-28 14:09:34 +02:00
Jake Dallimore
df90988239 Merge branch 'MDL-68943-master' of https://github.com/cameron1729/moodle 2022-10-28 11:49:42 +08:00
Jake Dallimore
eba92e07de Merge branch 'MDL-76073-master' of https://github.com/marinaglancy/moodle 2022-10-28 11:05:41 +08:00
Cameron Ball
01074798e1 MDL-68943 assignfeedback_editpdf: Upgrade step for stale conversions 2022-10-28 11:03:29 +08:00
Cameron Ball
1e98c4ad27 MDL-68943 assignfeedback_editpdf: Reconvert updated files 2022-10-28 11:03:29 +08:00
Jake Dallimore
fdef0eec44 Merge branch 'MDL-76069-master' of https://github.com/mihailges/moodle 2022-10-28 09:35:39 +08:00
Sara Arjona
af17803658 Merge branch 'MDL-75188-master' of https://github.com/laurentdavid/moodle 2022-10-27 21:45:21 +02:00
Laurent David
cf12af7519 MDL-75188 mod_data: Use cmid instead of id
* Based on previous changes, fix ids so they are consistent with other modules (in preparation for MDL-75255)
2022-10-27 18:34:45 +02:00
Laurent David
d67fbbb80d MDL-75188 mod_data: Move import preset for to a modal
* Use a modal instead of a standard page to select the preset file
   and import it.
 * Change the zero state import button to a modal dialog so it uses the same
   workflow as on the preset page
2022-10-27 18:32:23 +02:00
Sara Arjona
4dc0505b2a Merge branch 'MDL-75471' of https://github.com/paulholden/moodle 2022-10-27 17:35:04 +02:00
Sara Arjona
9000fd3037 Merge branch 'MDL-75449' of https://github.com/paulholden/moodle 2022-10-27 17:24:11 +02:00
Víctor Déniz
8e57940fe7 Merge branch 'MDL-75467' of https://github.com/paulholden/moodle 2022-10-27 16:09:05 +01:00
Sara Arjona
8c12bc9ba7 Merge branch 'MDL-76023' of https://github.com/paulholden/moodle 2022-10-27 17:03:51 +02:00
Sara Arjona
0b03a3d41a Merge branch 'MDL-64231-master' of https://github.com/ferranrecio/moodle 2022-10-27 16:56:21 +02:00
Sara Arjona
f0e2d12533 Merge branch 'MDL-75165' of https://github.com/paulholden/moodle 2022-10-27 16:50:09 +02:00
Víctor Déniz
d76550da83 Merge branch 'MDL-75969-master' of https://github.com/andrewnicols/moodle 2022-10-27 15:29:40 +01:00
Mihail Geshoski
1057a1a625 MDL-76069 enrol_manual: Fix missing breadcrumbs 2022-10-27 21:56:18 +08:00
Ferran Recio
b9900c2b45 MDL-64231 mod_assign: download submissions with group folder 2022-10-27 11:11:12 +02:00