Commit graph

99879 commits

Author SHA1 Message Date
Sara Arjona
f03fd2f6b7 MDL-70725 oauth2: move expectException to separate method 2021-01-27 17:54:23 +01:00
AMOS bot
ea17a4cbd6 Automatically generated installer lang files 2021-01-27 00:07:50 +00:00
Eloy Lafuente (stronk7)
9a9fde8aa5 Merge branch 'MDL-66979-39-7' of git://github.com/andrewnicols/moodle into MOODLE_39_STABLE 2021-01-26 22:46:08 +01:00
Víctor Déniz
aa741e8795 Merge branch 'MDL-70528-39' of git://github.com/ilyatregubov/moodle into MOODLE_39_STABLE 2021-01-26 14:04:35 +00:00
Ilya Tregubov
1ca2e36ecf MDL-70528 h5pactivity: Fix block can't be added to h5pactivity page. 2021-01-26 15:21:18 +02:00
Tim Hunt
99b37e2c3b MDL-68970 quiz: prevent page caching during attempts
This ensures that the page reloads if the student uses
the Back or Forwards buttons within an attempt. This
avoids questions being in a stale state, or
the timer showing the wrong time.

Thanks to Jake Dallimore and Russell Boyatt for suggestions
which lead to this fix.
2021-01-25 18:35:38 +00:00
Peter Dias
2d7f1d7470 MDL-70339 mod_lti: Use the convenience function to get the right img 2021-01-25 13:39:24 +08:00
Peter Dias
ff146ed37d MDL-68958 mod_imscp: Return manifestfilename as default response. 2021-01-25 13:23:38 +08:00
Peter Dias
2b9db93f78 MDL-56772 core: Update the picker styles for rtl langs 2021-01-25 11:36:56 +08:00
Andrew Nicols
985f4d1e48 MDL-66979 behat: Warn about old behat.yml file location 2021-01-23 20:45:06 +08:00
AMOS bot
77475c93fd Automatically generated installer lang files 2021-01-23 00:07:47 +00:00
Andrew Nicols
6a9f05742e MDL-66979 behat: Rename and warn on old config 2021-01-22 14:52:22 +08:00
Andrew Nicols
1116c64d44 MDL-66979 behat: Pad messaging drawer
This works around an issue highlighted by MDL-70411 whereby some of the
messaging links are covered by the scrollbar in Firefox on MacOS.
2021-01-22 14:52:22 +08:00
Andrew Nicols
5d211ff68a MDL-66979 behat: Work around weird gradebook focus behaviour
I can't expand this one in a sane fashion but the older JS is doing some
weird and wonderful things with focus.

The only way I could get this to behave correctly was to move away from
the field, move back to it, and then move away again. Other combinations
failed in different browsers for different reasons.
2021-01-22 14:52:22 +08:00
Andrew Nicols
aac9d82e12 MDL-66979 behat: availability field extends textarea
The availability behat field extends the textarea type, and therefore
needs to include this type.
2021-01-22 14:52:21 +08:00
Andrew Nicols
f11f91a1e0 MDL-66979 behat: Improve chromeOptions configuration
Simplify the chromeOptions configuration to improve readability.
2021-01-22 14:52:21 +08:00
Andrew Nicols
ad85ffb55a MDL-66979 question: Improve behat test reliability
Expand all fieldsets rather than individual fieldsets.

This can fail in some situations where the page moves as the first
fieldset opens and HTML transitions take effect. This causes subsequent
fieldsets to move after WebDriver has calculated the click target.
2021-01-22 14:52:21 +08:00
Andrew Nicols
6d21e94213 MDL-66979 mod_assign: Stop clicking the user filters
Remove the documented hack which was re-opening a popup because it
"closes for some reason". It no longer randomly closes.
2021-01-22 14:52:21 +08:00
Andrew Nicols
52eb636ebe MDL-66979 behat: Switch to generators
These steps were creating content manually in an unnecessary fashion. I
had to debug some issues with features in these areas so took the time
to update them to make use of data generators, which are significantly
faster.
2021-01-22 14:52:21 +08:00
Andrew Nicols
915339039a MDL-66979 behat: Remove unused var 2021-01-22 14:52:21 +08:00
Andrew Nicols
cbd016e620 MDL-66979 behat: Whitespace fix 2021-01-22 14:52:21 +08:00
Andrew Nicols
8a76c2a9a1 MDL-66979 behat: Remove manually triggered events
Behat should not trigger Synthetic browser events. It is incorrect to do
so as the UI should be used to trigger events correctly.

The W3C WebDriver specification explicitly states when and where these
events will be triggered from (the browser) and therefore there is no
ambiguity and no need to synthetically trigger them from Behat.
2021-01-22 14:52:21 +08:00
Andrew Nicols
9ccd5030d8 MDL-66979 group: Replace direct element interaction with steps
The W3C WebDriver leads to faster operation of individual steps which
highlights where WebDriver is moving to a new step faster than the
browser can process it.

The solution here is to use the `execute` function to interact with the
browsers as this makes use of the various wait and check steps.
2021-01-22 14:52:21 +08:00
Andrew Nicols
3489bb1f30 MDL-66979 behat: Remove unnecessary steps which fail
These steps were completely pointless and were failing with the W3C
Webdriver becuase focus was never on the Update Profile button in the
first place.

At a minimum we should remove the Focus change step as it not valid, but
the following step is also pointless.
2021-01-22 14:52:21 +08:00
Andrew Nicols
e4a649d0f9 MDL-66979 scorm: Increase behat window size
On Firefox there can be some issues with ensuring that all nodes are
visible in order to click them.

This is likely an upstream geckodriver bug and not one that can be
easily addressed across all of Moodle.

In this instance the "Next" button is just outside the Visible Window,
but it is in an iFrame which is fully visible. In this situation
Firefox is unable to click the button but does not error.
2021-01-22 14:52:21 +08:00
Andrew Nicols
59a09e2e3f MDL-66979 behat: Scroll nodes into view before hover
The W3C Specification does not require that a NodeElement be in the
current viewport before triggering a mouseOver. As a result the
mouseOver will generate an Exception because the element is not in the
viewport, and the X/Y co-ordinates are invalid.

To handle this the node is scrolled into view.
2021-01-22 14:52:21 +08:00
Andrew Nicols
ec20642963 MDL-66979 behat: Fix window switching
Normalise switching of window contexts by setting the main window name
to a null.

Where the window has no name (null/empty), then the root context is
selected.
2021-01-22 14:52:21 +08:00
Andrew Nicols
34ba550138 MDL-66979 behat: Use tab to blur current focus
The focus should be on something, rather than removed.

The way in which focus removal works can lead to side effects.
2021-01-22 14:52:21 +08:00
Andrew Nicols
a248c359cc MDL-66979 behat: Update passwordunmask form field control
Update the passwordunmask form field type for behat to interact with the
form element as a human would rather than via synthetic event triggers.
2021-01-22 14:52:21 +08:00
Andrew Nicols
18d5ddf01d MDL-66979 behat: iFrames must have a name for switchTo
The W3C WebDriver protocol supports switching of contexts using a named
context, and not the class asscoiated with that context.
2021-01-22 14:52:21 +08:00
Andrew Nicols
deaab14bf9 MDL-66979 mod_data: Improve behat chart data step
Charts data visibility is more reliable when checked via the
aria-expanded attribute.

The isVisible attribute can cause some failures under Firefox.
2021-01-22 14:52:21 +08:00
Andrew Nicols
4e00a821cf MDL-66979 behat: Handle JS on elements better
This change introduces a new function to execute Javascript directly on
a node.

This should not, ordinarily, be used directly by steps, but may be
required in other parts of the Behat interaction.
2021-01-22 14:52:21 +08:00
Andrew Nicols
496ef9b0a8 MDL-66979 behat: Rename selenium config to webdriver
The PHP WebDriver Mink Driver does not necessarily require Selenium. It
supports Selenium 3 upwards, and can be used directly with ChromeDriver,
EdgeDriver, SafariDriver, GeckoDriver, and others.

It therefore uses a slightly different configuraitno path.
2021-01-22 14:52:21 +08:00
Andrew Nicols
e5b1fc8083 MDL-66979 behat: Core updates for W3C WebDriver
This commit updates core Behat features to make use of the
php-webdriver/webdriver library instead of the legacy Instaclick
library.

Most of these changes relate to use of features of WebDriver which we
are required to use directly rather than through the Mink Driver.
2021-01-22 14:52:21 +08:00
Andrew Nicols
c2c71b28eb MDL-66979 behat: Switch to new W3C Behat driver
This commit updates the composer dependencies to make use of the updated
version of moodlehq/moodle-behat-extension which depends upon the
php-webdriver/webdriver and relevant Mink WebDriver.
2021-01-22 14:52:21 +08:00
Jake Dallimore
db6d34630f weekly release 3.9.4+ 2021-01-22 11:30:51 +08:00
Jake Dallimore
88a9d4cff1 Merge branch 'install_39_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_39_STABLE 2021-01-22 11:30:49 +08:00
Tim Hunt
96c8ad66f9 MDL-46256 count_words: fix handling of paragraphs 2021-01-21 09:55:19 +00:00
Tim Hunt
fbb0428179 MDL-46256 count_letters: an unit tests and fix HTML editity handling 2021-01-21 09:55:19 +00:00
Tim Hunt
82592f0c84 MDL-46256 word count: Convert existing tests to a data provider 2021-01-21 09:55:18 +00:00
Adrian Greeve
aa3118999a Merge branch 'MDL-57020-39-allow_delete_unused_scale' of https://github.com/sharidas/moodle into MOODLE_39_STABLE 2021-01-21 12:03:26 +08:00
Nadav Kavalerchik
80de5d08ee MDL-66932 theme/boost: Use LTR directionality to display user % grades 2021-01-20 09:33:23 +02:00
AMOS bot
1d457c78f5 Automatically generated installer lang files 2021-01-17 00:07:49 +00:00
Eloy Lafuente (stronk7)
de301d4237 Moodle release 3.9.4 2021-01-16 16:58:25 +01:00
Sujith Haridasan
e2c94750fb MDL-57020 scales: Allow deletion of unused scales in forum
Allow deletion of unused scales used in a
forum for the course.

Signed-off-by: Sujith Haridasan <sujith@moodle.com>
2021-01-15 15:05:51 +05:30
Sara Arjona
e2c8f4ad1b weekly release 3.9.3+ 2021-01-15 08:25:45 +01:00
Sara Arjona
8c1455d220 Merge branch 'install_39_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_39_STABLE 2021-01-15 08:25:44 +01:00
Sara Arjona
7b85e141da Merge branch 'MDL-69308_39' of https://github.com/stronk7/moodle into MOODLE_39_STABLE 2021-01-14 12:04:13 +01:00
Jake Dallimore
cd744ba504 Merge branch 'MDL-69877-39' of git://github.com/mickhawkins/moodle into MOODLE_39_STABLE 2021-01-14 14:52:36 +08:00
Michael Hawkins
974c63505b MDL-69877 core: Added security.txt 2021-01-14 14:31:01 +08:00