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

Behat to verify that glossary entries and books chapters can be tagged (Automate MDLQA-10971 and MDLQA-10969)

XMLWordPrintable

      Let's convert MDLQA-10969 and MDLQA-10971 as part of this issue since both are quite similar.

      There's an existing test file for book and glossary on each module to verify the tags mod/

      {MODULE}

      /tests/behat/edit_tags.feature, so the goal here is to see what's covered already and add extra steps for the parts that are not covered yet eg. duplicating and deleting tags.

      Book chapters can be tagged

      This test requires tag functionality to be enabled in Advanced settings in the Site administration and book chapters to be enabled as a tag area.

      1. Log in as a teacher and go to a book resource (or create a new book).
      2. Turn editing on, edit a chapter and add a few tags.
      3. Save changes and check that the tags are displayed correctly.
      4. Edit the chapter again and delete one of the tags.
      5. Save changes and check that the deleted tag is no longer displayed.
      6. Click on one of the remaining tags and check that the tag index page lists the book chapter and all other items in the same tag collection with the tag.
      7. Go to the course page and duplicate the book.
      8. Check that the duplicated book has the same book chapter tags.
      9. Log in as a student enrolled in the course and go to the tag index page listing the book chapter (viewed in step 6).
      10. Try clicking the book chapter link and check that it leads to the correct book chapter.
      11. Log in as a different student not enrolled in the course and go to the same tag index page (as viewed in step 6).
      12. Check that the book chapter is no longer listed.

      Glossary entries can be tagged

      This test requires a glossary activity where entries need to be approved before they are viewable by everyone.

      1. Log in as a student and go to the glossary.
      2. Add a new entry and add a few tags.
      3. Save changes and check that the entry and tags are displayed correctly.
      4. Edit the entry and delete one of the tags.
      5. Save changes and check that the deleted tag is no longer displayed.
      6. Click on one of the remaining tags and check that the tag index page lists the glossary entry and all other items in the same tag collection with the tag.
      7. Log in as student2 enrolled in the same course and go to the tag index page listing the glossary entry (viewed in step 6).
      8. Check that the glossary entry is not listed (as it is not yet approved).
      9. Log in as a teacher and approve the glossary entry.
      10. Log in as student2 again and check that the glossary entry is now listed on the tag index page.
      11. Click the glossary entry link and check that it leads to the entry in the glossary.
      12. Log in as the teacher again and hide the glossary activity.
      13. Log in as student2 again and check that the glossary entry is no longer listed on the tag index page.

            andelacruz Angelia Dela Cruz
            lameze Simey Lameze
            Andrew Gosali Andrew Gosali
            Simey Lameze Simey Lameze
            CiBoT CiBoT
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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