Commit graph

145 commits

Author SHA1 Message Date
Mark Nelson
16f91ae12a MDL-56299 core: fixed failing Behat tests
This also involved removing legacy Behat tests.
2016-10-11 14:39:24 +08:00
Ryan Wyllie
7d69958e6b MDL-56292 message: move popover code into output plugin 2016-10-11 14:39:23 +08:00
Ryan Wyllie
5cdebf2d7e MDL-56292 message: simplify get_popup_notifications function 2016-10-10 12:48:51 +08:00
Mark Nelson
5b0769db68 MDL-54744 core_message: deprecated functions in message/lib.php
Also -

1) Made note of the deprecation as well as the functions and
   files that were removed earlier in upgrade.txt.
2) Added new functions to api.php to replace the deprecated ones
   that were being used in unit tests.
3) Removed files that are no longer being used.
2016-10-07 16:35:25 +08:00
Mark Nelson
7b55aaa12e MDL-55942 core: obey the mighty CiBoT 2016-10-07 16:26:40 +08:00
Mark Nelson
79f6c36c12 MDL-55942 core_message: moved added functionality from message/lib.php 2016-10-07 16:26:40 +08:00
Ryan Wyllie
0b19d04836 MDL-55812 message: simplify notification popover items 2016-10-07 16:26:40 +08:00
Mark Nelson
658d0b2fd7 MDL-55770 core_message: remove the send message pop-up
Revert "MDL-48933 core_message: New dialog to send a message to a user"
Revert "MDL-48933 core_message: Behat tests to cover messenger dialogs"
2016-10-07 16:26:40 +08:00
Ryan Wyllie
ada7695d7c MDL-54708 message: notification popover respects message preferences 2016-10-07 16:26:40 +08:00
Ryan Wyllie
3274d5ca66 MDL-54708 message: add backend APIs for notifications popover 2016-10-07 16:26:40 +08:00
Devang Gaur
26c0d75f3e MDL-54973 message: added messages to globalsearch 2016-08-15 11:27:25 +05:30
Rajesh Taneja
52f3e060e4
MDL-55091 phpunit: Following has been deprecated.
1. getMock()
2. setExpectedException()
3. checkForUnintentionallyCoveredCode renamed to beStrictAboutCoversAnnotation
4. beStrictAboutTestSize renamed to enforceTimeLimit
5. UnitTestCase class is now fully removed.
2016-07-26 10:11:30 +08:00
Rajesh Taneja
eb9ca848fa MDL-53381 behat: Replaced chained steps with api.
Behat 3.x doesn't support chained steps and hence
this is first step to get rid of chained steps in core.
2016-04-06 11:32:49 +08:00
Rajesh Taneja
e01012e96d MDL-46891 behat: Driver specific fixes.
1. Browserkit doesn't handle [] in name
2. Grades are not visible in viewport and might fail
   with few drivers, increasing size of window to ensure
   grades are visible and can be modified.
3. Click edit first to see grade link
4. Expand fields before setting value
5. Updated xpath, as crawler update it.
6. Hover fails to show icon
2016-03-11 10:51:16 +08:00
Rajesh Taneja
42ad096fdb MDL-46891 Behat: Added support for behat 3 2016-03-11 10:51:15 +08:00
Dan Poltawski
c116a115d9 Merge branch 'MDL-52928-master' of git://github.com/andrewnicols/moodle 2016-03-01 11:34:04 +08:00
Andrew Nicols
a0bc890ec5 MDL-52928 message: Correct contact fetching in recent conversations 2016-02-09 13:38:59 +08:00
Rajesh Taneja
ead6c29bb5 MDL-52949 behat: Use hover step and not click step
Message delete link is visible on hover
Click event can fail randomly.
2016-02-01 11:14:20 +08:00
Juan Leyva
ea21d6370f MDL-52570 message: Do not return deleted messages in WS 2016-01-07 12:10:32 +01:00
Marina Glancy
a4269b45bc MDL-52347 behat: fix random failures on fast computer 2015-12-24 14:14:58 +08:00
David Monllao
2f3ebc9bdb Merge branch 'MDL-51257-master' of git://github.com/cameron1729/moodle 2015-12-21 17:32:34 +08:00
Cameron Ball
ea3aa9f9a0 MDL-51257 messages: Improve message form.
- Add sudmit button
- Add formchangechecker
- Update behat tests
2015-12-03 10:20:55 +08:00
Juan Leyva
419b112832 MDL-52108 messages: New WS core_message_delete_message 2015-11-12 12:05:49 +01:00
Dan Poltawski
82467e580b MDL-50426 behat: Update non-contacts feature naming 2015-11-06 19:47:38 +01:00
Ryan Wyllie
ceb689b9fc MDL-50426 message: post_message capability tests
Behat and unit tests to confirm the behaviour of the
messaging lib after the capability checks were added
to the post message function.
2015-11-05 08:20:39 +00:00
Jun Pataleta
e8c5a98bd4 MDL-51673 messages: Added codes for the unit tests 2015-10-16 16:05:30 -05:00
Mark Nelson
6fff51d675 MDL-51312 core_message: added unit test for the message_deleted event 2015-09-24 15:13:42 -07:00
Mark Nelson
9cf81a1a16 MDL-29801 core_message: added behat test for deleting messages 2015-09-02 01:45:51 -07:00
David Monllao
81c81527cb Merge branch 'wip-mdl-51106' of git://github.com/rajeshtaneja/moodle 2015-08-17 09:01:45 +08:00
Rajesh Taneja
369729cfda MDL-51100 behat: Remove javascript tag from usermenu steps 2015-08-14 08:53:03 +08:00
Andrew Nicols
711b1d6b3e MDL-51100 behat: Remove javascript tag from usermenu steps
These tests only needed the javascript tag because of the user menu.
Now that issue has been resolved, they do not need it.

Note: Some were also not using the singleselect feature, so would fail
without changes to use this too as they were not handling proper selection
of the singleselect element.
2015-08-14 08:52:29 +08:00
Rajesh Taneja
3d3d2ae529 MDL-51106 behat: Fixed misuse of javascript tag 2015-08-13 13:23:15 +08:00
Andrew Nicols
ff89d94a6f MDL-51100 behat: Remove javascript tag where not required
These tests only needed the javascript tag because of the user menu.
Now that issue has been resolved, they do not need it.

Note: Some were also not using the singleselect feature, so would fail
without changes to use this too as they were not handling proper selection
of the singleselect element.
2015-08-13 13:12:28 +08:00
Juan Leyva
013937907f MDL-42626 messages: Hide deleted users in contact/blocked list 2015-07-30 23:05:51 +02:00
Juan Leyva
0b074e88d6 MDL-50459 messages: Handle deleted users in external functions 2015-06-14 22:12:00 +02:00
Frederic Massart
c8b4b67a2f MDL-49960 message: Adding behat test for recent conversations 2015-04-23 14:05:55 +08:00
Rajesh Taneja
0fe86bbdbb MDL-49799 behat: replaced asd.com with example.com
asd.com is a valid domain, we should use reserved domain names for testing
2015-04-20 11:21:20 +08:00
Damyon Wiese
46a2fbc4b7 MDL-49412 Navigation: Remaining behat fixed for nav branch
Behat is passing after this change.

Part of MDL-45774.
2015-04-10 17:19:28 +08:00
Ankit Agarwal
2547fea2bf MDL-49412 messages: Fix behat failures 2015-04-10 17:18:23 +08:00
Juan Leyva
b679582707 MDL-49501 messages: Unit tests for mark_message_read 2015-04-02 17:02:20 +02:00
Rajesh Taneja
345c6a1ac0 MDL-49513 behat: Updated step name to match new step 2015-04-02 11:08:21 +02:00
Rajesh Taneja
bed97c39eb MDL-49513 behat: Set admin config using php api
Added a new set to set config using set_config() api
to make steps faster and more efficient
2015-04-01 14:25:23 +08:00
Brian Barnes
35fe9b8aa4 MDL-48060 messaging: Removed table from contact list 2015-03-02 09:04:04 +13:00
Andrew Nicols
6c10b1cc88 MDL-48108 message: Add additional testing for recent conversations 2015-02-24 09:38:49 +08:00
Rajesh Taneja
8585bb2ef0 MDL-49113 message: navigate to home page after sending message
After sending message widget remains open for 2 seconds
On slow server it might be too late to close widget.
So navigate away from page to ensure dom can be interacted
by selenium driver
2015-02-06 16:20:11 +08:00
Rajesh Taneja
b8526c7481 MDL-48933 message: Close message popup after sending message
Message popup stays up for 2 seconds, close this in behat to
ensure dom can be interacted by selenium driver
2015-02-05 13:53:55 +08:00
Andrew Nicols
c346996f38 Merge branch 'MDL-48719-master' of git://github.com/jleyva/moodle 2015-02-04 12:53:34 +08:00
Frederic Massart
aa6409c887 MDL-48933 core_message: Behat tests to cover messenger dialogs 2015-02-02 11:03:38 +08:00
Juan Leyva
ff1f373996 MDL-48719 messages: Unit tests for WS core_message_get_blocked_users 2015-01-29 13:04:43 +01:00
Rajesh Taneja
b7ff40301d MDL-47960 behat: Fixed message node navigation
in i_send_message_to_user, we should use navigation node
step, as there might be multiple links with same name.
2014-10-30 10:56:56 +08:00