99969 Commits

Author SHA1 Message Date
Ilya Tregubov
bf5dd33546 MDL-64866 message: Remove message/defaultoutputs.php
and final deprecation of admin_page_defaultmessageoutputs class.
2021-01-22 09:44:41 +02:00
Andrew Nicols
14a267e862 MDL-66979 behat: Rename and warn on old config 2021-01-22 14:52:12 +08:00
Andrew Nicols
0c2403f9b3 MDL-66979 behat: Uncomment step disabled for old firefox 2021-01-22 14:52:12 +08:00
Andrew Nicols
52d9024580 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:11 +08:00
Andrew Nicols
da3b304ab5 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:11 +08:00
Andrew Nicols
c876d6298e 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:11 +08:00
Andrew Nicols
a9bd31810f MDL-66979 behat: Improve chromeOptions configuration
Simplify the chromeOptions configuration to improve readability.
2021-01-22 14:52:11 +08:00
Andrew Nicols
cedb58f642 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:11 +08:00
Andrew Nicols
fd5b398488 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:11 +08:00
Andrew Nicols
a61c4fbce3 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:11 +08:00
Andrew Nicols
7d777911af MDL-66979 behat: Remove unused var 2021-01-22 14:52:11 +08:00
Andrew Nicols
d5f211d00f MDL-66979 behat: Whitespace fix 2021-01-22 14:52:11 +08:00
Andrew Nicols
afecc583aa 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:10 +08:00
Andrew Nicols
bce46258a4 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:10 +08:00
Andrew Nicols
653fb1842f 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:10 +08:00
Andrew Nicols
dd8d8c7ac2 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:10 +08:00
Andrew Nicols
0121d366bf 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:10 +08:00
Andrew Nicols
6a2a2e957b 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:10 +08:00
Andrew Nicols
74a86acc8d 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:10 +08:00
Andrew Nicols
fd5621554a 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:10 +08:00
Andrew Nicols
2a969d891a 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:10 +08:00
Andrew Nicols
2896d23776 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:10 +08:00
Andrew Nicols
041b75f00a 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:10 +08:00
Andrew Nicols
c96cde27ea 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:09 +08:00
Andrew Nicols
50b9866e54 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:09 +08:00
Andrew Nicols
007389b214 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:09 +08:00
Jake Dallimore
fd840ab59c weekly release 4.0dev 2021-01-22 11:30:38 +08:00
Jake Dallimore
3d5c1693b9 NOBUG: Fixed file access permissions 2021-01-22 11:30:38 +08:00
Jake Dallimore
bf8a4a613f Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2021-01-22 11:30:35 +08:00
Tim Hunt
6a62cbe599 MDL-46256 count_words: fix handling of paragraphs 2021-01-21 09:53:10 +00:00
Paul Holden
278c818e8f MDL-70315 libraries: upgrade Javascript polyfills.
* mdn-polyfills@5.20.0
 * url-polyfill@1.1.12
2021-01-21 08:04:56 +00:00
Jun Pataleta
afc39f38af Merge branch 'MDL-70297-master' of git://github.com/ilyatregubov/moodle 2021-01-21 12:19:15 +08:00
Adrian Greeve
3f2462a5c7 Merge branch 'MDL-57020-master-allow_delete_unused_scale' of https://github.com/sharidas/moodle 2021-01-21 12:01:32 +08:00
Mikhail Golenkov
ddcd769e93 MDL-69631 assign: Add 'Draft' filter for grading table 2021-01-21 14:36:01 +11:00
Jun Pataleta
a61fbcd27d Merge branch 'MDL-70301' of https://github.com/Chocolate-lightning/moodle 2021-01-21 11:33:43 +08:00
Mathew May
6d253061de MDL-70301 lib: Update thirdpartylibs scssphp 2021-01-21 10:33:09 +08:00
Mathew May
cda207d07f MDL-70301 lib: Upgrade scssphp to 1.4.1 2021-01-21 10:32:58 +08:00
Adrian Greeve
dc77f45fdb Merge branch 'MDL-70302-master' of git://github.com/peterRd/moodle 2021-01-21 09:49:55 +08:00
Peter Dias
05498a0afd MDL-70302 core: Update the lib's readme, xml and upgrade files 2021-01-21 09:32:53 +08:00
Eloy Lafuente (stronk7)
35407b0cb6 Merge branch 'MDL-70317-master' of git://github.com/lucaboesch/moodle 2021-01-20 23:26:38 +01:00
Eloy Lafuente (stronk7)
f2d8bd4461 Merge branch 'MDL-70134' of https://github.com/timhunt/moodle 2021-01-20 22:47:15 +01:00
Eloy Lafuente (stronk7)
9fe648d4da Merge branch 'MDL-70055-master' of https://github.com/kabalin/moodle 2021-01-20 19:44:45 +01:00
Eloy Lafuente (stronk7)
f291fd3007 Merge branch 'MDL-70291-master-1' of git://github.com/peterRd/moodle 2021-01-20 19:17:20 +01:00
Eloy Lafuente (stronk7)
a5c57cd36b Merge branch 'MDL-70438-fix' of https://github.com/sarjona/moodle 2021-01-20 19:00:53 +01:00
Sara Arjona
c7a7fdab25 MDL-70438 contentbank: fix behat issue with classic 2021-01-20 17:36:36 +01:00
Eloy Lafuente (stronk7)
9d8e42ac31 Merge branch 'MDL-70296-master-1' of git://github.com/peterRd/moodle 2021-01-20 17:17:44 +01:00
Jun Pataleta
cc6868891d Merge branch 'MDL-70319-master' of git://github.com/ilyatregubov/moodle 2021-01-20 22:40:41 +08:00
Jun Pataleta
cdcc37ad68 Merge branch 'MDL-70300' of https://github.com/Chocolate-lightning/moodle 2021-01-20 17:13:18 +08:00
Mathew May
ca64b0af46 MDL-70300 core_lib: Update thirdpartylibs php-css-parser 2021-01-20 15:52:11 +08:00
Mathew May
f2cc1a8a34 MDL-70300 lib: Apply php css parser patches 2021-01-20 15:52:11 +08:00