532 Commits

Author SHA1 Message Date
Adrian Greeve
4870b363b0 MDL-73366 navigation: Changed the first tab of site administration.
It now reads "General" instead of "Site administration"
2022-01-17 11:52:13 +08:00
Eloy Lafuente (stronk7)
0c53a3dec8 MDL-73476 phpunit: events, external and search tescase names
All events_test, external_test and search_test classes:

- Namespaced with component[\level2-API]
- Moved to level2-API subdirectory when required.
- Fixed incorrect use statements with leading backslash.
- Changed code to point to global scope when needed.
- Fix some relative paths and comments here and there.
- All them passing individually.
- Complete runs passing too.

Special mention to lib/external/tests/external_test.php:
- external is not a valid component
- hence, its only valid namespace is "core"
- also, it's testing lib/external/externallib.php
- hence, the file (and class) have been renamed to external_externallib_test.php
  (to avoid conflicts with other external_test that may exist in core)
2022-01-14 16:18:39 +01:00
Sara Arjona
53fe23d8b5 MDL-73347 behat: Add blocks hidden by default for boost
For the boost them, a few themes have been hidden by default.
The unaddable setting should be set to let admins add them again,
because some behat tests need them.
2022-01-14 13:08:48 +01:00
Bas Brands
38d0498c0f MDL-73416 core_badges: limit page width on most badge pages 2022-01-13 14:36:13 +01:00
Sara Arjona
d5fbdb5ab0 Merge branch 'MDL-73359-master' of https://github.com/aanabit/moodle 2022-01-12 11:05:24 +01:00
Shamim Rezaie
5c600ac6b8 Merge branch 'MDL-72880' of https://github.com/paulholden/moodle 2022-01-12 19:21:22 +11:00
Amaia Anabitarte
4f190127b5 MDL-73359 core_badges: Badge pages polish 2022-01-11 16:22:07 +01:00
Paul Holden
d40cc61eba MDL-72367 badges: require sesskey to remove badge alignment. 2022-01-11 14:34:16 +01:00
Paul Holden
a7b940ba7d MDL-72880 badges: change badge exporter issuername field to text.
This matches it's type in the settings pages, and also the type
of the site name used as the default for the setting. It's content
will now be automatically filtered by the external exporter class.
2022-01-07 09:11:35 +00:00
abgreeve
f1d22c9830 MDL-72930 navigation: Update to badges navigation.
This allows navigation nodes injected into the badges section
to be displayed as either a button or a dropdown url_select.
2022-01-04 15:58:52 +08:00
Sara Arjona
0fc33251bf Merge branch 'MDL-72904-master-dec21' of https://github.com/peterRd/moodle 2021-12-27 08:47:50 +01:00
Peter Dias
6d5ab2233a MDL-72904 core_badges: Update behat tests 2021-12-23 21:25:36 +08:00
Peter Dias
96dd6c9c94 MDL-72904 core_badges: Introduce tertiary navigation for badges 2021-12-23 21:02:01 +08:00
Jun Pataleta
80c17cd2a0 Merge branch 'MDL-72701-master' of https://github.com/andrewnicols/moodle 2021-12-23 12:10:46 +08:00
Andrew Nicols
bb9741d472 MDL-72701 unit tests: Fix broken @covers annotations 2021-12-21 09:24:00 +08:00
Eloy Lafuente (stronk7)
e4a2d9c1d4 MDL-73348 phpunit: normalize all privacy provider tests
As far as now all them have correct privacy level2 namespace:
- Move them to "privacy" subdir.
- Rename the files to "provider_test.php", this includes old
  privacy_test.php and privacy_provider_test.php files
- Rename the testcase to provider_test too (to match file name)

Also, change some relative paths and comments to point to new
locations.
2021-12-17 14:21:02 +01:00
Eloy Lafuente (stronk7)
57e6fb7ad9 MDL-73348 phpunit: privacy and privacy_provider testcase names
All privacy_test and privacy_provider_test classes:

- Namespaced with component\privacy.
- Fixed incorrect use statements with leading backslash.
- Changed code to point to global scope when needed.
- Renamed a few files to make all be privacy_test or privacy_provider_test.php
- All them passing individually.
- Complete runs passing too.
2021-12-17 14:21:02 +01:00
Eloy Lafuente (stronk7)
71746122a5 Merge branch 'MDL-72287-master' of https://github.com/mihailges/moodle 2021-12-09 23:14:32 +01:00
Mihail Geshoski
e00da7e884 MDL-72287 behat: Update behat tests 2021-12-09 23:47:57 +08:00
abgreeve
fcd4de8639 MDL-72090 navigation: Update to behat feature files for navigation.
This updates feature files to use the new steps to navigate to certain
pages.
2021-12-09 11:13:35 +08:00
Jun Pataleta
80bdd33b6b Merge branch 'MDL-73153-master' of https://github.com/sarjona/moodle 2021-12-06 17:43:29 +08:00
Sujith Haridasan
671012e709 MDL-71915 badges: Update the behat tests
Update the behat tests to accommodate the changes
made for the tertiary navigation.
2021-12-06 10:26:40 +05:30
Eloy Lafuente (stronk7)
91a76566c9 Merge branch 'MDL-72141-master' of https://github.com/sarjona/moodle 2021-12-01 18:59:04 +01:00
Mathew May
b983003e2e MDL-70197 navigation: Remove old navigation elements and migrate behat 2021-11-29 15:47:42 +08:00
Sara Arjona
dc631407b5 MDL-73153 badges: get image when it has more data
In some cases, image might have more fields rather than the URL.
This patch is for taking them into account and displaying the image
and also these information properly.
2021-11-24 10:27:15 +01:00
Sara Arjona
88c31c7551 MDL-72141 badges: simplify external badges page
Apart from reorganising the information displayed in the external badges
page, this information has been moved to reuse the template created in
MDL-71937, to make it easier to modify and maintain.
2021-11-24 09:40:19 +01:00
Sara Arjona
a0407f6d17 MDL-73128 badges: Fix warning with external badges 2021-11-22 16:31:32 +01:00
Andrew Nicols
750c04dd8f Merge branch 'MDL-72990-master' of https://github.com/rezaies/moodle 2021-11-05 11:50:30 +08:00
Jun Pataleta
825b276b1a Merge branch 'MDL-72668-master' of git://github.com/rezaies/moodle 2021-11-04 12:03:42 +08:00
Shamim Rezaie
c6cd47a82d MDL-72990 badges: Use imagecaption as alternative text for badge image 2021-11-04 14:45:19 +11:00
Shamim Rezaie
86ed2e7e40 MDL-72668 block_badges: Add alt attribute to badge images 2021-11-04 13:54:02 +11:00
Eloy Lafuente (stronk7)
3873af5626 Merge branch 'MDL-72655-master' of https://github.com/andelacruz/moodle 2021-11-03 19:03:22 +01:00
Angelia Dela Cruz
89c4c803e8 MDL-72655 behat: Use assign generators
Replace steps that manually add assignment instances via the UI
and use Behat generators. This improves the speed of Behat test
runs.
2021-11-03 11:34:26 +08:00
Paul Holden
20d41ebae4 MDL-72370 badges: require sesskey to remove related badge. 2021-11-02 18:04:16 +01:00
Paul Holden
374114e0f8 MDL-72857 badges: filter site/course name when showing issued badge. 2021-11-01 10:43:10 +00:00
Peter Dias
cd52b46e89 MDL-52206 quiz: Remove completionpass completion from quiz
AMOS BEGIN
 MOV [completionpass,mod_quiz],[completionpassgrade,core_completion]
 MOV [completionpassdesc,mod_quiz],[completionpassgrade_desc,core_completion]
 MOV [completionpass_help,mod_quiz],[completionpassgrade_help,core_completion]
AMOS END
2021-10-04 19:44:03 +08:00
Eloy Lafuente (stronk7)
8e90d8309c MDL-72714 behat: Make the window larger earlier
The step that causes the problem is:

And I navigate to "Badges > Add a new badge" in current page administration

(because "Add a new badge" is exactly on the edge (bottom) of the window)

So we need to make the window large before it, not after it, or the
"Add a new badge" link won't be ever clicked.
2021-10-01 22:40:10 +02:00
Víctor Déniz
f01d69cb05 Merge branch 'MDL-72714-master' of git://github.com/ilyatregubov/moodle 2021-10-01 13:21:46 +02:00
Ilya Tregubov
fad4743ea8 MDL-72714 behat: Fix Behat failures for chrome 94. 2021-10-01 08:36:50 +02:00
Bas Brands
16c726cde7 MDL-71610 core_behat: use new edit mode step in feature files 2021-09-29 09:25:36 +02:00
Mihail Geshoski
7d821080f0 MDL-72093 navigation: Update behat tests 2021-09-14 12:02:35 +08:00
Mathew May
1f6bcd7eae MDL-69588 accessibility: Address review points 2021-08-23 17:47:24 +08:00
Adrian Greeve
c3871a9174 MDL-70196 navigation: Update to pages to add a URL.
- Part of: MDL-69588
Some pages have added an item to the end of the  navbar without a
link for it. This adds the current page as a url to this navigation
node. Doing this brings it in line with all of the other pages
around Moodle and also helps with the new navigation changes in
theme boost.
2021-08-23 17:46:38 +08:00
Adrian Greeve
7d435fb5f2 MDL-70196 navigation: Update to feature files.
- Part of: MDL-69588
A lot of tests rely on the last element of the breadcrumb being
active. This updates feature files to not rely on this anymore.
2021-08-23 17:46:38 +08:00
Sara Arjona
24fcc7ebea MDL-71937 badges: simplify badges page
Apart from reorganising the information displayed in the badges page,
this information has been moved to a template in order to make it
easier to modify and maintain.
2021-08-10 15:59:06 +02:00
Andrew Nicols
776f4bd80c MDL-72179 behat: Make use of page resolvers 2021-07-26 15:14:28 +08:00
Andrew Nicols
92179b7057 MDL-71113 js: Fix all jsdoc warnings 2021-06-18 09:38:05 +08:00
Sara Arjona
c2a1bb5545 MDL-67935 tool_lp: fix random errors with login/logout 2021-05-14 10:11:12 +02:00
Ruslan Kabalin
3bf770c801 MDL-71051 core_user: fix issues and address review issues 2021-04-28 11:47:26 +02:00
Marina Glancy
ef3d6a3d70 MDL-71051 core_user: use user profile generator in all tests 2021-04-28 11:47:21 +02:00