Uploaded image for project: 'Moodle QA'
  1. Moodle QA
  2. MDLQA-10986 QA tests no longer needed
  3. MDLQA-18439

New section page and improvements to course formats exploratory testing

XMLWordPrintable

    • Icon: Functional Test Functional Test
    • Icon: Blocker Blocker
    • None
    • Moodle 4.4
    • Course

      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

      1. As admin go to Site administration > Experimental settings and enable "Enable communication providers"
      2. 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:
        1. Go to Course settings and, in Course format, select "Show one section per page" for the "Course layout" parameter.
        2. Highlight one of the sections.
        3. Add, at least, one empty section.
      3. Install some LTR language, such as Arabic (ar).
      4. Enrol a student to the course.
      5. 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"

      1. As a teacher go to the main course page.
      2. 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.
      3. For the highlighted section check that a line is displayed between the Activities/Progress and the activities.
      4. Check the section names have a link to open the section (the URL for these links is something like "/course/section.php?id=xx").
      5. Check there are no chevrons near the section names.
      6. Check the communication icon is displayed.
      7. Open the highlighted section using the arrow icon.
      8. Confirm the expected section is open and it's displayed as highlighted.
      9. Check the communication icon is displayed.
      10. Turn edit mode on and confirm that the action menus are displayed.
      11. Check the communication icon is still displayed.
      12. Remove highlighted for the section and check it's updated properly.
      13. Highlight again the section and check it's updated properly.
      14. Go to the main course page.
      15. Click any of the section names and check the in-place editor is displayed now (to change it).
      16. Open the action menu for any of the sections and select the Permalink option.
      17. Check the URL contains "/course/section.php?id=".
      18. Login as a student and navigate in the course using several options to access the new course/section.php page.
      19. Check the behaviour is expected and that the section page is displayed properly regardless of the path they choose for accessing.
      20. Go to the main course page and click on the General section and check is displayed on isolation.
      21. 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"

      1. As a teacher, go to the main course page.
      2. Edit course settings and update:
        • Format: Weekly format
        • Course layout: Show all sections on one page
      3. Save changes.
      4. Check the section names have a link to open the section (the URL for these links is something like "/course/section.php?id=xx").
      5. Check the chevrons near the section names, collapse/expand them.
      6. Open the current week section by clicking on the section name.
      7. Confirm the expected section is open and it's displayed as current week.
      8. Turn edit mode on and confirm that the action menus are displayed.
      9. Hide the week using the kebab menu for the section and check it's updated properly.
      10. Show the week again and check it's updated properly.
      11. Go to the main course page.
      12. Click any of the section names and check the in-place editor is displayed now (to change it).
      13. Open the action menu for any of the sections and select the Permalink option.
      14. Check the URL contains "/course/section.php?id=".
      15. Login as a student and navigate in the course using several options to access the new course/section.php page.
      16. Check the behaviour is expected and that the section page is displayed properly regardless of the path they choose for accessing.
      17. 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

      1. As a teacher, go to the main course page.
      2. 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.
      3. In the course settings page, the course formats have been renamed to with a description:
        • Custom sections
        • Weekly sections
        • Single activity
        • Social
      4. 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

      1. As a teacher, go to the main course page.
      2. Check in the course settings the course format selected is Custom sections. If not, select the course format and save.
      3. Enable edit mode.
      4. Create a new section. Check it's named "New section".
      5. Access to the New section page.
      6. Check the page title starts with "Edit Section: New section |".
      7. Disable edit mode.
      8. Check the page title starts with "Section: New section".
      9. Go to the course settings and change the course format to be Weekly sections format.
      10. Create two new weeks. Check it's named with the proper week dates.
      11. Access to the first week page.
      12. Check the page title starts with "Edit Week: [week date] |".
      13. Disable edit mode.
      14. Check the page title starts with "Week: New section".

      Scenario 5. Custom checkbox from the section settings page no longer exists

      1. Login as admin and go to the course.
      2. Check in the course settings the course format selected is Custom sections. If not, select the course format and save.
      3. Edit mode on.
      4. Open the Section action menu and go to Edit settings.
      5. Check "Section name" field doesn't contain a "Custom" checkbox.
      6. Check "Section name" input text displays the expected default name as a placeholder for the section (General for section 0 and "New section").
      7. Change the Section name, save changes and confirm the section has been renamed.
      8. Back to the course main page.
      9. Go to the course settings and change the course format to be Weekly sections format.
      10. Turn edit mode on.
      11. Open the Section action menu and go to Edit settings.
      12. Check "Section name" field doesn't contain a "Custom" checkbox.
      13. 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).
      14. Change the Section name, save changes and confirm the section has been renamed.

            Unassigned Unassigned
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.