-
Functional Test
-
Blocker
-
None
-
Moodle 4.4
This is an exploratory test of a new feature or improvement, so please feel free to try anything you like and not just the test steps!
Please try different browsers, screen resolutions and languages (RTL and LTR)
Run the test with the browser developer console open and look for any errors.
Setup
- As admin go to Site administration > Experimental settings and enable "Enable communication providers"
- Create a course with several activities or restore the one attached to this issue ( ). If you prefer to create a course, you'll also need to:
- Go to Course settings and, in Course format, select "Show one section per page" for the "Course layout" parameter.
- Highlight one of the sections.
- Add, at least, one empty section.
- Install some LTR language, such as Arabic (ar).
- Enrol a student to the course.
- From the main course page, go to More > Communication and choose "Custom link". For the "Custom link URL" you can use any URL (for instance, http://moodle.org ).
Scenario 1. Update the section visibility badge to use status dropdown
- As a teacher, go to the main course page and turn edit mode on.
- Go to one section unhidden and go to the kebab menu for the section.
- Click on the hide action.
- Check that the section badge has appeared and is a dropdown with the option selected “Hidden from students”.
- Click on the status dropdown and confirm you can see the options:
- Show on course page.
- Hide on course page. Selected.
- Turn edit mode off.
- Confirm you can see next to the section’s name the badge “Hidden from students” which is not a dropdown.
- Log out and log in as a student.
- Confirm you can not see the section hidden by the teacher.
- Log in as a teacher and turn edit mode on
- Go to the hidden section.
- Confirm you can see in the kebab menu for the section the option to show the section.
- Go to the status dropdown next to the section's name and select the “Show on course page” option.
- Confirm you can not see the status dropdown next to the section's name.
- Log out and log in as a student.
- Confirm you can see the section hidden by the teacher.
Scenario 2. Drag&drop activity
- As a teacher, go to the main course page and turn edit mode on
- Drag an activity with the mouse and wait until dropping it.
- Confirm that the "Shadow" element (dragImage) is the activity card without any top space. See the comparison below:
- (Wrong) Shadow element with top spacing.
- (Correct) Shadow element without top spacing.
- (Wrong) Shadow element with top spacing.
- Confirm the activity is moved when dropping it using the course content or the course index.
Scenario 3: Activity separators with "+" buttons styling
- As a teacher, go to the main course page and turn edit mode on
- Confirm that activities can be added using the "+" button between activities.
- Confirm that activities can be added using the "Add an activity or resource" button.
- Repeat these previous steps 4 and 5 Weekly sections, Social and Custom sections.
- Go to set course settings and set the course format to Custom sections.
- Confirm that new section can be added using the "+" button between sections
- Confirm that new section can be added using the "Add section" button at the bottom of the page.
- Click on Bulk actions.
- Confirm that the page is displayed like this example (the activities' checkbox are inside the activity card and the sections' checkboxes are outside the box):
Scenario 4. New collapse/expand chevron styling
- As a teacher go to the main course page.
- Go to course settings page and set the Course layout to Show all sections on one page.
- Confirm that the "Expand/Collapse" section buttons are displayed like this:
- Go to the Course settings.
- Confirm that the "Expand/Collapse" section buttons are displayed in the same way.
- In the Description setting textfield (using Tiny editor) click on the h5p (Configure H5P content) button.
- Confirm that the "Expand/Collapse" section buttons are displayed in the same way.
Scenario 5. Improve activity card styling
- As a teacher and go to the main course page.
- Confirm that the sections are displayed with a border and the activities with a line separator.
- Turn edit mode on, go to a section and hide it.
- Confirm that the section is correctly hidden and all the card is displayed in gray colour.
- Go to a section with is not hidden.
- Click on the View option in the section menu
- Confirm that the section page is correctly displayed and the activities is displayed without borders and on a white background.