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

Front end implementation of indicating favourites with a star

    XMLWordPrintable

    Details

    • Testing Instructions:
      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
    • Affected Branches:
      MOODLE_39_STABLE
    • Fixed Branches:
      MOODLE_39_STABLE
    • Pull Master Branch:
      MDL-67584-integration-2
    • Story Points:
      3
    • Sprint:
      Activity Sprint 4, Activity Sprint 6, Activity Sprint 7

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mathewmay Mathew May
              Reporter:
              abgreeve Adrian Greeve
              Peer reviewer:
              Peter Dias
              Integrator:
              Jun Pataleta
              Tester:
              Janelle Barcega
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                15/Jun/20

                  Time Tracking

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