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

Front end implementation of indicating favourites with a star

XMLWordPrintable

    • MOODLE_39_STABLE
    • MOODLE_39_STABLE
    • MDL-67584-integration-2
    • Hide

      Automated testing:

      Covered by new behat scenarios.

      Manual testing instructions (if required):

      Acceptance criteria fulfilled.

      Setup

      1.  Login as Admin
      2. Create a Course
      3. Create 2 teachers enrolled into the created course

      Test 1 (No favourites and adding one)

      1. As one teacher login
      2. Go to the Course.
      3. Turn editing on.
      4. Click on any 'Add activity or resource' link
      5. Verify that there is no 'Starred' tab
      6. Verify that each module has a star icon
      7. Click on the star icon for Forum
      8. Verify that the Starred tab now shows
      9. Verify that the starred tab is not focused
      10. Verify that the star icon under the Forum module is now blue
      11. Close the activity chooser

      Test 2 (Choose to add activity through the activity chooser)

      Given the above test

      1. Click on any 'Add activity or resource' link
      2. Verify that you are automatically on the Starred tab
      3. Verify that Forum is shown in the Starred tab

      Test 3 (Check favourites are on a per user basis)

      Given the above test

      1. As the other teacher login
      2. Go to the Course.
      3. Turn editing on.
      4. Click on any 'Add activity or resource' link
      5. Verify that there is no 'Starred' tab
      6. Verify that the star icon under the Forum module is grey

      Test 4 (Remove a favourite & tab)

      Given the above test

      1. As the initial teacher login
      2. Go to the Course.
      3. Turn editing on.
      4. Click on any 'Add activity or resource' link
      5. Click on the star icon for Forum
      6. Verify that the Starred tab is removed
      7. Verify that the Modules tab is now shown
      8. Verify that the star icon under the Forum module is now grey
      9. Close the activity chooser
      Show
      Automated testing: Covered by new behat scenarios. Manual testing instructions (if required): Acceptance criteria fulfilled. Setup  Login as Admin Create a Course Create 2 teachers enrolled into the created course Test 1 (No favourites and adding one) As one teacher login Go to the Course. Turn editing on. Click on any 'Add activity or resource' link Verify that there is no 'Starred' tab Verify that each module has a star icon Click on the star icon for Forum Verify that the Starred tab now shows Verify that the starred tab is not focused Verify that the star icon under the Forum module is now blue Close the activity chooser Test 2 (Choose to add activity through the activity chooser) Given the above test Click on any 'Add activity or resource' link Verify that you are automatically on the Starred tab Verify that Forum is shown in the Starred tab Test 3 (Check favourites are on a per user basis) Given the above test As the other teacher login Go to the Course. Turn editing on. Click on any 'Add activity or resource' link Verify that there is no 'Starred' tab Verify that the star icon under the Forum module is grey Test 4 (Remove a favourite & tab) Given the above test As the initial teacher login Go to the Course. Turn editing on. Click on any 'Add activity or resource' link Click on the star icon for Forum Verify that the Starred tab is removed Verify that the Modules tab is now shown Verify that the star icon under the Forum module is now grey Close the activity chooser
    • 3
    • Activity Sprint 4, Activity Sprint 6, Activity Sprint 7

      Implement the front end of favouriting for the activity chooser.

      User stories

      Story Approach
      As a teacher, I should be able to star an element (applies to any elements in the modal) When I click on the star, the star turns blue but does not disappear from the list. The element then appears on the starred page
      As a teacher, I should be able to see only my starred elements  
      As a teacher I should be able to unstar an element and it disappears from my list of starred activities.  

      Acceptance criteria

      • Each individual can star any activity listed in the activity chooser.
      • Any item starred is displayed in the starred / favourites tab.
      • Starred items remain in the current tab, as well as being added to the starred tab.
      • Starring should be live. Clicking the star tab should show just starred activities.
      • Activities in the favourite tab can be removed by clicking on the star. This can be done from the starred tab or any other location that the activity is shown.
      • Behat tests must cover this functionality.

        1. Screenshot from 2020-02-21 10-24-58.png
          10 kB
          Peter Dias
        2. Screenshot from 2020-02-21 10-24-39.png
          20 kB
          Peter Dias
        3. Screenshot from 2020-02-21 10-24-46.png
          31 kB
          Peter Dias
        4. image-2020-02-27-12-56-43-413.png
          220 kB
          Janelle Barcega
        5. activity_chooser_standard_icons.png
          151 kB
          Marina Glancy

            mathewmay Glyn (Mathew) May
            abgreeve Adrian Greeve
            Peter Dias Peter Dias
            Jun Pataleta Jun Pataleta
            Janelle Barcega Janelle Barcega
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 days, 2 hours, 5 minutes
                4d 2h 5m

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