Details
-
Improvement
-
Resolution: Done
-
Minor
-
3.6.1
-
Hide
Test on any device.
Test 1: Sort discussions
- Log in to a 3.7 in the app.
- Go to a forum with some discussions. Check there is a button on top of the list of discussions with text "By last post in descending order" (this is the default sort order, it could be different if it was changed in web).
- Click the button. A modal displayed wit the list of available sort orders with the current sort order highlighted. Select a sort order and check the list of discussions is reloaded with the new order.
- Check the context menu has a new item called "Sort".
- Click the item. The sort order selector modal is displayed. Select a sort order and check the list of discussions is reloaded with the new order.
- Check that all sort orders work the same as in web.
Test 2: Preference.
- In web (3.7 site), got to a forum and sort the list of discussions by number of replies in descending order.
- In the app, go to the forum and refresh the list of discussions.
- Check that sort order is changed to "By number of replies in descending order" (the order set in step 1).
- Change the sort order order in the app.
- In web, go to the forum using links (do not refresh the page) and check the order have changed to the order set in the previous step.
- Switch the app to offline.
- Refresh the list of discussions and check that the sort order is kept the same.
- Change the sort order (it will fail if the order is not in cache).
- Close and open the app and go to a forum.
- Check that the sort order is the same as selected in step 8.
- Switch the app to online and wait for 5 minutes.
- In web, go to the forum using links (do not refresh the page) and check the order have changed to the order set in step 8.
Test 3: Prefetch
- In web (3.7 site), go to a forum and sort the discussions by number of replies in descending order.
- In the app, log in to the site (remove it first if it was logged before to start with an empty cache).
- Go to course and enable "Show download options" in the context menu.
- Download a forum with some discussions and switch to offline.
- Go to the forum and check the list of discussions is loaded without errors (the first 2 pages are prefetched). Check the sort order is "By number of replies in descending order".
- Change the sort order and check the list of discussions is reloaded without errors (the first 2 pages are prefetched).. Check all sot orders.
Test 4: Older sites
- In the app, log in to a 3.6 site.
- Go to a forum.
- Check the sort order button and context menu item are not displayed.
- Check that the list of discussions is sorted by last post in descending order.
- Prefetch the forum an check no error is displayed.
ShowTest on any device. Test 1: Sort discussions Log in to a 3.7 in the app. Go to a forum with some discussions. Check there is a button on top of the list of discussions with text "By last post in descending order" (this is the default sort order, it could be different if it was changed in web). Click the button. A modal displayed wit the list of available sort orders with the current sort order highlighted. Select a sort order and check the list of discussions is reloaded with the new order. Check the context menu has a new item called "Sort". Click the item. The sort order selector modal is displayed. Select a sort order and check the list of discussions is reloaded with the new order. Check that all sort orders work the same as in web. Test 2: Preference. In web (3.7 site), got to a forum and sort the list of discussions by number of replies in descending order. In the app, go to the forum and refresh the list of discussions. Check that sort order is changed to "By number of replies in descending order" (the order set in step 1). Change the sort order order in the app. In web, go to the forum using links (do not refresh the page) and check the order have changed to the order set in the previous step. Switch the app to offline. Refresh the list of discussions and check that the sort order is kept the same. Change the sort order (it will fail if the order is not in cache). Close and open the app and go to a forum. Check that the sort order is the same as selected in step 8. Switch the app to online and wait for 5 minutes. In web, go to the forum using links (do not refresh the page) and check the order have changed to the order set in step 8. Test 3: Prefetch In web (3.7 site), go to a forum and sort the discussions by number of replies in descending order. In the app, log in to the site (remove it first if it was logged before to start with an empty cache). Go to course and enable "Show download options" in the context menu. Download a forum with some discussions and switch to offline. Go to the forum and check the list of discussions is loaded without errors (the first 2 pages are prefetched). Check the sort order is "By number of replies in descending order". Change the sort order and check the list of discussions is reloaded without errors (the first 2 pages are prefetched).. Check all sot orders. Test 4: Older sites In the app, log in to a 3.6 site. Go to a forum. Check the sort order button and context menu item are not displayed. Check that the list of discussions is sorted by last post in descending order. Prefetch the forum an check no error is displayed. -
MOODLE_36_STABLE
-
MOODLE_37_STABLE
-
Moodle App 3.7.0
Description
Implement MDL-65071 for the app.
Attachments
Issue Links
- Testing discovered
-
MDL-65733 Forum discussion sorting behaviour is different web vs WS
-
- Open
-