-
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. Custom sections (aka Topics) course format with "One section per page"
- As a teacher go to the main course page.
- For each section, check that:
- Activities displays the total of activities included.
- Progress is displayed when any of the activities has completion enabled.
- An icon is displayed near the Activities and Progress strings.
- An arrow is displayed aligned to the opposite side where the section name appears.
- For the highlighted section check that a line is displayed between the Activities/Progress and the activities.
- Check the section names have a link to open the section (the URL for these links is something like "/course/section.php?id=xx").
- Check there are no chevrons near the section names.
- Check the communication icon is displayed.
- Open the highlighted section using the arrow icon.
- Confirm the expected section is open and it's displayed as highlighted.
- Check the communication icon is displayed.
- Turn edit mode on and confirm that the action menus are displayed.
- Check the communication icon is still displayed.
- Remove highlighted for the section and check it's updated properly.
- Highlight again the section and check it's updated properly.
- Go to the main course page.
- Click any of the section names and check the in-place editor is displayed now (to change it).
- Open the action menu for any of the sections and select the Permalink option.
- Check the URL contains "/course/section.php?id=".
- Login as a student and navigate in the course using several options to access the new course/section.php page.
- Check the behaviour is expected and that the section page is displayed properly regardless of the path they choose for accessing.
- Go to the main course page and click on the General section and check is displayed on isolation.
- Switch to the classic theme and repeat the previous steps, to confirm it works as expected too.
Scenario 2. Weeks course format with "All sections on one page"
- As a teacher, go to the main course page.
- Edit course settings and update:
- Format: Weekly format
- Course layout: Show all sections on one page
- Save changes.
- Check the section names have a link to open the section (the URL for these links is something like "/course/section.php?id=xx").
- Check the chevrons near the section names, collapse/expand them.
- Open the current week section by clicking on the section name.
- Confirm the expected section is open and it's displayed as current week.
- Turn edit mode on and confirm that the action menus are displayed.
- Hide the week using the kebab menu for the section and check it's updated properly.
- Show the week again and check it's updated properly.
- Go to the main course page.
- Click any of the section names and check the in-place editor is displayed now (to change it).
- Open the action menu for any of the sections and select the Permalink option.
- Check the URL contains "/course/section.php?id=".
- Login as a student and navigate in the course using several options to access the new course/section.php page.
- Check the behaviour is expected and that the section page is displayed properly regardless of the path they choose for accessing.
- Switch to the classic theme and repeat the previous steps, to confirm it works as expected too.
Scenario 3. New format settings descriptions and names
- As a teacher, go to the main course page.
- The kebab menu for the section doesn't contain any reference to "Topics" or "Weeks". For instance, instead of "Edit topic/weeks", "Edit settings" should be displayed.
- In the course settings page, the course formats have been renamed to with a description:
- Custom sections
- Weekly sections
- Single activity
- Social
- When edit mode is on:
- For the "Custom sections" course format, "Add section" is displayed.
- For the "Weekly sections" course format, "Add week" is displayed.
Scenario 4. Create a section with “New section” name
- As a teacher, go to the main course page.
- Check in the course settings the course format selected is Custom sections. If not, select the course format and save.
- Enable edit mode.
- Create a new section. Check it's named "New section".
- Access to the New section page.
- Check the page title starts with "Edit Section: New section |".
- Disable edit mode.
- Check the page title starts with "Section: New section".
- Go to the course settings and change the course format to be Weekly sections format.
- Create two new weeks. Check it's named with the proper week dates.
- Access to the first week page.
- Check the page title starts with "Edit Week: [week date] |".
- Disable edit mode.
- Check the page title starts with "Week: New section".
Scenario 5. Custom checkbox from the section settings page no longer exists
- Login as admin and go to the course.
- Check in the course settings the course format selected is Custom sections. If not, select the course format and save.
- Edit mode on.
- Open the Section action menu and go to Edit settings.
- Check "Section name" field doesn't contain a "Custom" checkbox.
- Check "Section name" input text displays the expected default name as a placeholder for the section (General for section 0 and "New section").
- Change the Section name, save changes and confirm the section has been renamed.
- Back to the course main page.
- Go to the course settings and change the course format to be Weekly sections format.
- Turn edit mode on.
- Open the Section action menu and go to Edit settings.
- Check "Section name" field doesn't contain a "Custom" checkbox.
- Check "Section name" input text displays the expected default name as a placeholder for the section (General for section 0 and the week date for the rest of the sections).
- Change the Section name, save changes and confirm the section has been renamed.