Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
4.0
-
MOODLE_400_STABLE
-
MOODLE_400_STABLE
-
MDL-71914-master-v3 -
Hide
Confirm behat tests passes.
Prerequisites:
- A user assigned to be a manager.
- A course with a glossary(Glossary1) and feedback(Feedback1) activity created.
- A student and teacher enrolled in the course
- As a teacher, populate the glossary with some entries.
- In site admin, enable the configs:
- ‘enablerssfeeds’
- ‘enableportfolio’
- 'glossary_enablerssfeeds'
- In Site Admin -> Manage Portfolio
- Set ‘File Download’ to ‘Enable and visible’
Testing:
- As an admin go to the created course
- Turn on editing
- Click on the ‘Add an activity or resource’ link
- Choose glossary from the chooser
- Confirm the url contains the param ‘sr’
- Set the following:
- Name: Glossary2
- Approved by default: No
- Display format: Full with Author
- Completion tracking: ‘Do not indicate activity completion’
- Rss feed for this activity: “Concepts with author”
- Number of RSS recent articles - 2
- Click ‘Save and return to course’
- Confirm you are returned to the course and taken to the section that contains Glossary2
- Go to Glossary2
- Select the ‘Settings’ tab.
- Confirm the url does not contain the ‘sr’ param
- Go back to the course
- Click on the ‘Course’ tab
- Confirm the url does not contain the ‘sesskey’ param
Glossary test
- Login as a student
- Go to Glossary1
- Confirm you see the ‘Add entry’ button and the ellipsis dropdown on the same line
- Confirm you the search text box along with the ‘Search full text’ checkbox
- Confirm the buttons/lists are aligned correctly with the rest of the content. NOTE: there may be some discrepancy with the right alignment with the existence of the old settings cog
- Confirm you see ‘Printer-friendly version’ in the ellipsis dropdown
- Click on ‘Printer-friendly version’ in the dropdown.
- Confirm you are taken to another printable page
- Confirm you do NOT see the ‘Import entries’ button.
- Add an entry (content doesn’t matter)
- Go to Glossary2
- Repeat #3-#10
- Confirm you see a dropdown to view the entries under different views
- Confirm the views change when the index in the dropdown changes.
- Confirm you see ‘RSS feeds’ in the ellipsis dropdown
- Confirm you see a generated xml file when you select ‘RSS feeds’
- Confirm you do not see activity completion information above add entry button.
- With the entry created, click on the ‘+’ icon
- Confirm it takes you to the export portfolio page
- Log in as a teacher
- Repeat #2-#8
- Confirm you see an ‘Import entries’ button
- Click on the button
- Confirm you are taken 'Import entries from XML file' form
- Confirm you see the glossary tab highlighted
- Click on the 'Glossary' tab
- Confirm you do NOT see a ‘Pending approval’ tab option
- Confirm you see an export option in the ellipsis dropdown
- Select the export option from the dropdown
- Confirm you are taken to the export page
- Confirm you see the 'Glossary' tab highlighted
- Go to Glossary2
- Repeat #3-#8
- Repeat #13-#17
- Confirm you see an ‘Import entries’ button
- Confirm you do see a ‘Pending approval’ tab option after the ‘settings’ tab
- Confirm you see an export option in the ellipsis dropdown
- Click on the ‘Pending approval’ tab
- Confirm the tab is set as active
- Confirm you can see the entries that require approval
- Approve the entries requiring approval.
- Confirm you still redirected to the same page with the tab still active
- Approve all entries requiring approval
- Confirm you can still see the pending approval tab
- Confirm there are no entries listed.
Repeat above with Classic. Note: Tabs do not exist - skip these particular test instructions
Additional classic test
- Log in as a student
- Add an entry in Glossary2
- Log in as a teacher
- Go to Glossary2
- Confirm you see the ‘Pending Approval(1)’ link on the main view page
- Click on the above link
- Confirm you see pending approval entries.
- Confirm you see ‘Pending approval’ in the breadcrumbs without a link
- Confirm you see ‘Pending approval’ in the heading above the title
Feedback test
- Log in as an admin
- Go to Feedback1
- Confirm you see the ‘Edit questions’, ‘Preview Questions’ and ‘Answer the questions’ button
- Click on ‘Edit questions’
- Confirm you are taken to a page where you can see the following buttons/lists:
- Back button
- Dropdown with the options ‘Add question’, ‘Use a template’ and ‘Import questions’ with ‘Add question’ selected.
- A dropdown that lists the type of questions you can add
- Export questions button
- ‘Save as new template’ button.
- Add a question by selecting an option from #5.3
- Confirm you are taken to a page to enter content for the question
- Confirm the ‘Feedback’ tab remains selected
- Save changes
- Confirm you are redirected to the same page in #5
- Confirm you can see the new question in the list.
- Click ‘Back’ button
- Confirm you are taken back to the feedback view page.
- Click on Preview questions
- Confirm you are taken to a preview page of the feedback.
- Click Continue
- Confirm you are taken to a preview page of the feedback.
- Click on ‘Answer the questions’
- Confirm you can answer the questions.
- Answer the questions and submit
- Go back to the Feedback1 page
- Confirm you do not see the ‘Answer the questions’ button.
- Click on ‘Edit questions’
- Click on ‘Save as new template’
- Confirm you see a dialog popup to enter Name and specify whether it’s Public
- Enter the name ‘PrivateTemplate’ and save
- Click on ‘Save as new template’
- Repeat above to create PrivateTemplate3
- Enter the following and save
- Name - ‘PublicTemplate’
- Public - checked
- Click on ‘Save as new template’
- Repeat above to create PublicTemplate2,PublicTemplate3
- Select ‘Use a template’ from the #5.2 dropdown
- Confirm you see a list of templates
- Confirm you see PrivateTemplate listed under ‘Course’
- Confirm you see PublicTemplate listed under ‘Public’
- Confirm you do not see any delete icon against each entry
- Confirm the Feedback tab is still selected.
- Click on PrivateTemplate
- Confirm you’re taken a page which displays the content of PrivateTemplate
- Confirm you can see the following buttons:
- Back button
- Use template button
- Delete button
- Click ‘Back’ button
- Confirm you are taken back to the same page with the list of templates
- Confirm ‘Use a template’ is selected in the dropdown
- Click on PrivateTemplate
- Click on delete button
- Confirm you see a confirmation dialog
- Click on the ‘Yes’ button
- Confirm you are taken back to the same page with the list of templates
- Click on the PublicTemplate link
- Click on ‘Use this template’
- Confirm you see a dialog asking you ‘what you want to do’
- Select ‘Append new items’
- Click Save
- Confirm you are taken back to the page displaying a list of questions.
- Confirm you can see 2 questions
- Select ‘Use a template’ from the #5.2 dropdown
- Click on public template
- Click on ‘Use this template’
- Select ‘Delete old items’ and save
- Confirm you are taken back to the page displaying a list of questions.
- Confirm you can see 1 question
- Click on ‘Export questions’
- Confirm an xml gets downloaded
- Select ‘Import question’ from the #5.2 dropdown
- Confirm you are taken to the import page.
- Click ‘Back’ button
- Confirm you are taken back to the feedback view page.
- Click on the ‘Templates’ tab
- Confirm you see a list of templates
- Confirm you see the delete icon against the row(s)
- Repeat Use cases
- Go to the ‘Template’ tab
- Click the delete icon on PublicTemplate2
- Confirm you see a confirmation dialog
- Click yes to confirm
- Confirm the template has been deleted
- Confirm you are still on the templates page
- Confirm the template tab is still marked as active
- Confirm the PublicTemplate2 has been deleted
- Click on the PublicTemplate link
- Click on the ‘Delete’ button
- Repeat previous checks
Role overrides check -
You need 2 browsers or one with incognito. Continued from previous setup.
- In browser1, log in as admin
- In brownser2, log in as manager
- In browser1, go to the Site Admin > Users > Define Roles
- Edit the manager role
- Add the filter - ‘feedback:create’
- Disable the results and save
- In browser2, go to the feedback page
- Click on the ‘Edit questions’ page
- Confirm you do not see the ‘Save as new template’ button
- Confirm you can still see the templates tab
- Click on the templates tab
- Confirm you can still see delete icons against the listed ‘Course’ templates
- Confirm you can only delete Course templates
- Confirm you cannot delete Public templates
- Click on any public templates
- Confirm you do not see a delete button
- In Browser1, repeat #3-#5
- Set the following:
- createprivatetemplate - Enabled
- createpublictemplate - Disabled
- In Browser2, repeat#7-#8
- Confirm you see a ‘Save as new template’ button
- Click on the above button
- Confirm you see the same dialog as before without the ‘Public’ checkbox
- Enter some name and save
- Repeat #10-#15
- In browser1, go to the course page
- Go to the Participants > Permission page
- Set the following:
- Advanced role override - Manager
- Filter - ‘feedback:deletetemplate’
- Delete manager from the roles with Permissions
- In Browser2, go to the templates tab
- Confirm you cannot see any delete icons for BOTH Course and Public templates
- Click on the templates listed
- Confirm you don’t see the delete button in the individual template page
- In browser1, go to the Site Admin > Users > Define Roles
- Edit the manager role
- Search for - ‘feedback:deletetemplate’
- Disable the resultant capability and save
- repeat #25-#27
- Add manager to the delete capability
- In browser 2, go to the templates tab in the feedback
- Confirm you can see delete icons only for the Course templates and not public
- Click on any public template
- Confirm you do not see a delete button
- Log in as a teacher
- Go to the feedback page
- Click on the ‘Edit questions’ page
- Click on the ‘Save as new template’ button
- Confirm you do not see the Public checkbox on the modal form.
- Repeat #10-#16
Testing as student
Requires 2 browsers, 1 for student the other for the admin/manager/teacher
- In browser1, Log in as a student
- Go to the feedback page within the course
- Confirm you do not see the ‘Edit questions button’
- Confirm you do not see the analysis
- Click on ‘Answer the questions’
- Confirm you can answer the questions.
- Click the 'Cancel' button
- Confirm you are taken to the feedback view page
- Click on ‘Answer the questions’
- Answer the questions and submit
- Go back to the Feedback1 page
- Confirm you do not see the ‘Answer the questions’ button.
- Confirm you do see the ‘Preview questions’ button.
- Confirm you do not see the ‘Analysis’ tab
Test Response and analysis reporting
- In browser2, login as admin
- Go to the feedback page within the course
- Update the settings to the following:
- Record user names - ‘User’s name will be logged and shown with answers’
- Show analysis page - Yes
- Go to the ‘Responses’ tab
- Confirm you see a dropdown with the following options:
- Show responses
- Show non-respondents
- Confirm there are no entries when ‘Show responses’ is selected
- Confirm the other participants are displayed when ‘Show non-respondents’ is selected
- Repeat #1-#9 of previous test
- Confirm you see the analysis tab
- Confirm you can see the feedback analysis when the tab is selected
- In browser2, go to the feedback page
- Click on the ‘Responses’ tab
- Confirm you see the student’s entry listed here
- Confirm the other participants are displayed when ‘Show non-respondents’ is selected
Site level feedback
- Login as an admin
- Go to site home with editing turned on
- Add a feedback activity to site home page with default settings - SiteFeedback1
- Click on edit questions
- Add numeric question (content does not matter) by selecting it from the dropdown
- Click back button
- Confirm you do NOT see the 'Map feedback to courses' link
- Confirm you see the 'Mapped courses' tab
Repeat all on classic and confirm no styling / functional issues. Tabs do not exist on classic so skip these steps.
Additional classic tests
Analysis
Contd from above
- In browser 1, go to the feedback page
- Confirm you see a 'Submitted answers' link
- Confirm it takes you to the analysis page
Mappedcourses
- Go to the SiteFeedback view page
- Confirm you see a string 'Map feedback to courses'
ShowConfirm behat tests passes. Prerequisites: A user assigned to be a manager. A course with a glossary(Glossary1) and feedback(Feedback1) activity created. A student and teacher enrolled in the course As a teacher, populate the glossary with some entries. In site admin, enable the configs: ‘enablerssfeeds’ ‘enableportfolio’ 'glossary_enablerssfeeds' In Site Admin -> Manage Portfolio Set ‘File Download’ to ‘Enable and visible’ Testing: As an admin go to the created course Turn on editing Click on the ‘Add an activity or resource’ link Choose glossary from the chooser Confirm the url contains the param ‘sr’ Set the following: Name: Glossary2 Approved by default: No Display format: Full with Author Completion tracking: ‘Do not indicate activity completion’ Rss feed for this activity: “Concepts with author” Number of RSS recent articles - 2 Click ‘Save and return to course’ Confirm you are returned to the course and taken to the section that contains Glossary2 Go to Glossary2 Select the ‘Settings’ tab. Confirm the url does not contain the ‘sr’ param Go back to the course Click on the ‘Course’ tab Confirm the url does not contain the ‘sesskey’ param Glossary test Login as a student Go to Glossary1 Confirm you see the ‘Add entry’ button and the ellipsis dropdown on the same line Confirm you the search text box along with the ‘Search full text’ checkbox Confirm the buttons/lists are aligned correctly with the rest of the content. NOTE: there may be some discrepancy with the right alignment with the existence of the old settings cog Confirm you see ‘Printer-friendly version’ in the ellipsis dropdown Click on ‘Printer-friendly version’ in the dropdown. Confirm you are taken to another printable page Confirm you do NOT see the ‘Import entries’ button. Add an entry (content doesn’t matter) Go to Glossary2 Repeat #3-#10 Confirm you see a dropdown to view the entries under different views Confirm the views change when the index in the dropdown changes. Confirm you see ‘RSS feeds’ in the ellipsis dropdown Confirm you see a generated xml file when you select ‘RSS feeds’ Confirm you do not see activity completion information above add entry button. With the entry created, click on the ‘+’ icon Confirm it takes you to the export portfolio page Log in as a teacher Repeat #2-#8 Confirm you see an ‘Import entries’ button Click on the button Confirm you are taken 'Import entries from XML file' form Confirm you see the glossary tab highlighted Click on the 'Glossary' tab Confirm you do NOT see a ‘Pending approval’ tab option Confirm you see an export option in the ellipsis dropdown Select the export option from the dropdown Confirm you are taken to the export page Confirm you see the 'Glossary' tab highlighted Go to Glossary2 Repeat #3-#8 Repeat #13-#17 Confirm you see an ‘Import entries’ button Confirm you do see a ‘Pending approval’ tab option after the ‘settings’ tab Confirm you see an export option in the ellipsis dropdown Click on the ‘Pending approval’ tab Confirm the tab is set as active Confirm you can see the entries that require approval Approve the entries requiring approval. Confirm you still redirected to the same page with the tab still active Approve all entries requiring approval Confirm you can still see the pending approval tab Confirm there are no entries listed. Repeat above with Classic. Note: Tabs do not exist - skip these particular test instructions Additional classic test Log in as a student Add an entry in Glossary2 Log in as a teacher Go to Glossary2 Confirm you see the ‘Pending Approval(1)’ link on the main view page Click on the above link Confirm you see pending approval entries. Confirm you see ‘Pending approval’ in the breadcrumbs without a link Confirm you see ‘Pending approval’ in the heading above the title Feedback test Log in as an admin Go to Feedback1 Confirm you see the ‘Edit questions’, ‘Preview Questions’ and ‘Answer the questions’ button Click on ‘Edit questions’ Confirm you are taken to a page where you can see the following buttons/lists: Back button Dropdown with the options ‘Add question’, ‘Use a template’ and ‘Import questions’ with ‘Add question’ selected. A dropdown that lists the type of questions you can add Export questions button ‘Save as new template’ button. Add a question by selecting an option from #5.3 Confirm you are taken to a page to enter content for the question Confirm the ‘Feedback’ tab remains selected Save changes Confirm you are redirected to the same page in #5 Confirm you can see the new question in the list. Click ‘Back’ button Confirm you are taken back to the feedback view page. Click on Preview questions Confirm you are taken to a preview page of the feedback. Click Continue Confirm you are taken to a preview page of the feedback. Click on ‘Answer the questions’ Confirm you can answer the questions. Answer the questions and submit Go back to the Feedback1 page Confirm you do not see the ‘Answer the questions’ button. Click on ‘Edit questions’ Click on ‘Save as new template’ Confirm you see a dialog popup to enter Name and specify whether it’s Public Enter the name ‘PrivateTemplate’ and save Click on ‘Save as new template’ Repeat above to create PrivateTemplate3 Enter the following and save Name - ‘PublicTemplate’ Public - checked Click on ‘Save as new template’ Repeat above to create PublicTemplate2,PublicTemplate3 Select ‘Use a template’ from the #5.2 dropdown Confirm you see a list of templates Confirm you see PrivateTemplate listed under ‘Course’ Confirm you see PublicTemplate listed under ‘Public’ Confirm you do not see any delete icon against each entry Confirm the Feedback tab is still selected. Click on PrivateTemplate Confirm you’re taken a page which displays the content of PrivateTemplate Confirm you can see the following buttons: Back button Use template button Delete button Click ‘Back’ button Confirm you are taken back to the same page with the list of templates Confirm ‘Use a template’ is selected in the dropdown Click on PrivateTemplate Click on delete button Confirm you see a confirmation dialog Click on the ‘Yes’ button Confirm you are taken back to the same page with the list of templates Click on the PublicTemplate link Click on ‘Use this template’ Confirm you see a dialog asking you ‘what you want to do’ Select ‘Append new items’ Click Save Confirm you are taken back to the page displaying a list of questions. Confirm you can see 2 questions Select ‘Use a template’ from the #5.2 dropdown Click on public template Click on ‘Use this template’ Select ‘Delete old items’ and save Confirm you are taken back to the page displaying a list of questions. Confirm you can see 1 question Click on ‘Export questions’ Confirm an xml gets downloaded Select ‘Import question’ from the #5.2 dropdown Confirm you are taken to the import page. Click ‘Back’ button Confirm you are taken back to the feedback view page. Click on the ‘Templates’ tab Confirm you see a list of templates Confirm you see the delete icon against the row(s) Repeat Use cases Go to the ‘Template’ tab Click the delete icon on PublicTemplate2 Confirm you see a confirmation dialog Click yes to confirm Confirm the template has been deleted Confirm you are still on the templates page Confirm the template tab is still marked as active Confirm the PublicTemplate2 has been deleted Click on the PublicTemplate link Click on the ‘Delete’ button Repeat previous checks Role overrides check - You need 2 browsers or one with incognito. Continued from previous setup. In browser1, log in as admin In brownser2, log in as manager In browser1, go to the Site Admin > Users > Define Roles Edit the manager role Add the filter - ‘feedback:create’ Disable the results and save In browser2, go to the feedback page Click on the ‘Edit questions’ page Confirm you do not see the ‘Save as new template’ button Confirm you can still see the templates tab Click on the templates tab Confirm you can still see delete icons against the listed ‘Course’ templates Confirm you can only delete Course templates Confirm you cannot delete Public templates Click on any public templates Confirm you do not see a delete button In Browser1, repeat #3-#5 Set the following: createprivatetemplate - Enabled createpublictemplate - Disabled In Browser2, repeat#7-#8 Confirm you see a ‘Save as new template’ button Click on the above button Confirm you see the same dialog as before without the ‘Public’ checkbox Enter some name and save Repeat #10-#15 In browser1, go to the course page Go to the Participants > Permission page Set the following: Advanced role override - Manager Filter - ‘feedback:deletetemplate’ Delete manager from the roles with Permissions In Browser2, go to the templates tab Confirm you cannot see any delete icons for BOTH Course and Public templates Click on the templates listed Confirm you don’t see the delete button in the individual template page In browser1, go to the Site Admin > Users > Define Roles Edit the manager role Search for - ‘feedback:deletetemplate’ Disable the resultant capability and save repeat #25-#27 Add manager to the delete capability In browser 2, go to the templates tab in the feedback Confirm you can see delete icons only for the Course templates and not public Click on any public template Confirm you do not see a delete button Log in as a teacher Go to the feedback page Click on the ‘Edit questions’ page Click on the ‘Save as new template’ button Confirm you do not see the Public checkbox on the modal form. Repeat #10-#16 Testing as student Requires 2 browsers, 1 for student the other for the admin/manager/teacher In browser1, Log in as a student Go to the feedback page within the course Confirm you do not see the ‘Edit questions button’ Confirm you do not see the analysis Click on ‘Answer the questions’ Confirm you can answer the questions. Click the 'Cancel' button Confirm you are taken to the feedback view page Click on ‘Answer the questions’ Answer the questions and submit Go back to the Feedback1 page Confirm you do not see the ‘Answer the questions’ button. Confirm you do see the ‘Preview questions’ button. Confirm you do not see the ‘Analysis’ tab Test Response and analysis reporting In browser2, login as admin Go to the feedback page within the course Update the settings to the following: Record user names - ‘User’s name will be logged and shown with answers’ Show analysis page - Yes Go to the ‘Responses’ tab Confirm you see a dropdown with the following options: Show responses Show non-respondents Confirm there are no entries when ‘Show responses’ is selected Confirm the other participants are displayed when ‘Show non-respondents’ is selected Repeat #1-#9 of previous test Confirm you see the analysis tab Confirm you can see the feedback analysis when the tab is selected In browser2, go to the feedback page Click on the ‘Responses’ tab Confirm you see the student’s entry listed here Confirm the other participants are displayed when ‘Show non-respondents’ is selected Site level feedback Login as an admin Go to site home with editing turned on Add a feedback activity to site home page with default settings - SiteFeedback1 Click on edit questions Add numeric question (content does not matter) by selecting it from the dropdown Click back button Confirm you do NOT see the 'Map feedback to courses' link Confirm you see the 'Mapped courses' tab Repeat all on classic and confirm no styling / functional issues. Tabs do not exist on classic so skip these steps. Additional classic tests Analysis Contd from above In browser 1, go to the feedback page Confirm you see a 'Submitted answers' link Confirm it takes you to the analysis page Mappedcourses Go to the SiteFeedback view page Confirm you see a string 'Map feedback to courses'
-
3
-
Navigation push ahead, Navigation push 2, Navigation push 3, Navigation push 4, Navigation push 6, Navigation push 7
Description
Given the completion of MDL-71681 we will have the functionality for modules to define their own navigation outside of the primary & secondary navigation structures. Given the designs on figma we need to go through each module and either implement the new "tertiary" functionality or confirm that a module does not need to call the new functionality.
This MDL is one of a set of 4 identical MDLs, this has been done to confirm that the workloads are near equal and so work can be done in parallel.
This MDL is to review and implement the tertiary navigation for the following modules:
- Feedback
- Glossary
- IMS Content Package
- Label
- Page
Attachments
- confirmationpage.png
- 55 kB
- Feedback_Screenshot1.png
- 431 kB
- Feedback_Screenshot2.png
- 428 kB
- sample.patch
- 0.6 kB
- successpage.png
- 35 kB
- Testing_Screenshot.png
- 198 kB
Issue Links
- blocks
-
MDL-70197 Migrate between existing navigation and 4.0 navigation
-
- Closed
-
-
MDL-72233 Plugin set 3 of 4 tertiary navigation followup
-
- Closed
-
- caused a regression
-
MDL-75651 Duplicate activity heading when completing feedback in classic theme
-
- Closed
-
- has a non-specific relationship to
-
MDL-72413 Move the activity modules title, description, and activity completion into a standard module API
-
- Closed
-
-
MDL-78579 Glossary should display number of entries pending approval
-
- Closed
-
- has to be done after
-
MDL-71681 Add page action section.
-
- Closed
-
- is blocked by
-
MDL-69588 Update general Moodle navigation
-
- Closed
-