Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-79589

Activity availability dropdown does not show the selected option on hidden sections

XMLWordPrintable

    • MOODLE_403_STABLE
    • MOODLE_403_STABLE
    • MDL-79589-master
    • Hide

      Prepare scenario

      1. Enable stealth activities at a system level (site administrations -> advanced features -> Allow stealth activities)
      2. Create a course in topics section with the following structure:
        • General topic (leave blank or with the news forum, we won't use it in this test)
        • Topic 1: hide the section
          • Activity 1: keep with default availability (hidden in this case because topic 1 is hidden)
          • Activity 2: set to Available but not shown on course page
        • Topic 2: leave it visible
          • Activity 3: keep it visible
          • Activity 4: set to hidden from students
          • Activity 5: make it Available but not shown on course page

      Test 1: with stealth activities enabled

      1. Go to the course in edit mode
      2. Open the availability panels on all activities (you can use the badge or the action menu -> availability) and to the following checks:
        1. Check that "Activity 1" has the tick on "Hide on course page" option
        2. Check that "Activity 2" has the tick on "Make available but don't show on course page" option
        3. Check that "Activity 3" has the tick on "Show on course page" option
        4. Check that "Activity 4" has the tick on "Hide on course page" option
        5. Check that "Activity 5" has the tick on "Make available but don't show on course page" option

      Test 1: with stealth activities disabled

      1. Disable stealth activities at a system level (site administrations -> advanced features -> Allow stealth activities)
      2. Go to the course in edit mode
      3. Open the availability panels on all activities (you can use the badge or the action menu -> availability) and to the following checks:
        1. Check that "Activity 1" has the tick on "Hide on course page" option
        2. Check that "Activity 2" has the tick on "Make available but don't show on course page" option
        3. Check that "Activity 3" has the tick on "Show on course page" option
        4. Check that "Activity 4" has the tick on "Hide on course page" option
        5. Check that "Activity 5" has no tick. This activity has a forced stealth attribute defined when stealth was enabled. Now stealth state is not selectable anymore, so no tick is displayed.
      Show
      Prepare scenario Enable stealth activities at a system level (site administrations -> advanced features -> Allow stealth activities) Create a course in topics section with the following structure: General topic (leave blank or with the news forum, we won't use it in this test) Topic 1: hide the section Activity 1: keep with default availability (hidden in this case because topic 1 is hidden) Activity 2: set to Available but not shown on course page Topic 2: leave it visible Activity 3: keep it visible Activity 4: set to hidden from students Activity 5: make it Available but not shown on course page Test 1: with stealth activities enabled Go to the course in edit mode Open the availability panels on all activities (you can use the badge or the action menu -> availability) and to the following checks: Check that "Activity 1" has the tick on "Hide on course page" option Check that "Activity 2" has the tick on "Make available but don't show on course page" option Check that "Activity 3" has the tick on "Show on course page" option Check that "Activity 4" has the tick on "Hide on course page" option Check that "Activity 5" has the tick on "Make available but don't show on course page" option Test 1: with stealth activities disabled Disable stealth activities at a system level (site administrations -> advanced features -> Allow stealth activities) Go to the course in edit mode Open the availability panels on all activities (you can use the badge or the action menu -> availability) and to the following checks: Check that "Activity 1" has the tick on "Hide on course page" option Check that "Activity 2" has the tick on "Make available but don't show on course page" option Check that "Activity 3" has the tick on "Show on course page" option Check that "Activity 4" has the tick on "Hide on course page" option Check that "Activity 5" has no tick. This activity has a forced stealth attribute defined when stealth was enabled. Now stealth state is not selectable anymore, so no tick is displayed.
    • HQ 2023 Sprint I3.3 Moppies

      Steps to reproduce:

      • Disable stealth activities at a system level (allowstealth)
      • Create a course with some sections and activities inside each section
      • Hide one section
      • Click on the availability batch on one of the section's activity
      • When the dropdown opens, click on "Make available but don't show on course page"
      • Once the element updates, click again the availability badge
      • Expected: the "Make available but don't show on course page" has a tick as it is the current value
      • What happen: no option has the tick

      This issue was found during the MDLQA-18257 test.

            tusefomal Ferran Recio
            tusefomal Ferran Recio
            Carlos Escobedo Carlos Escobedo
            Ilya Tregubov Ilya Tregubov
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 hours, 30 minutes
                4h 30m

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