Show
Basic behat and unit tests provided.
Prerequisites:
Create a course with a teacher and a student
Create a forum within the course
Create 3 discussions within the forum: Discussion 1(D1), Discussion 2(D2), Discussion 3(D3)
Instructions
Toggle states from within a discussion
Basic
As a student, go to D2 within the forum
Confirm you can see and click the 'Settings' link on the top of the page.
Confirm you can only see the 'Star this discussion' option in the dropdown
Confirm when you click the 'Star this discussion' link in the menu, it changes to 'Unstar this discussion'
Confirm when you go back to the discussion list, Discussion 2 appears at the top of the list with a star icon
As a teacher, go to D1 within the forum
Confirm you can see and click the 'Settings' link on the top of the page.
Confirm you can see the 'Star this discussion' AND 'Pin this discussion' and 'Lock' options in the dropdown
Confirm when you click the 'Pin this discussion' link in the menu for Discussion 1, it changes to 'Unpin this discussion'
Confirm when you go back to the discussion list, Discussion 1 appears at the top of the list with the pin icon
Teacher pins D1, student doesn't
As a student, go to the forum's discussion list
Confirm D1 appears at the top of the list with a pin icon before the description
Repeat #1 and #2 with the teacher
Teacher pins D1, student stars D3
As a teacher, go the forum
Within D1, pin the discussion.
On the forum page, confirm D1 appears at the top of the list
As a student, go to the forum's discussion list
Confirm D1 appears at the top of the list
Goto D3 and star the discussion(as described previously)
Go back to the forum's discussion list
Confirm D1 appears at the top with a pin icon followed by D3 with a star icon
As a teacher, go back to the forum
Confirm ONLY D1 appears to be pinned and NOT D3
Teacher pins D1, student stars D1
As a teacher, go the forum
Within D1, pin the discussion.
On the forum page, confirm D1 appears at the top of the list
As a student, go to the forum's discussion list
Confirm D1 appears at the top of the list with a pin icon
Goto D1 and star the discussion(as described previously)
Go back to the forum's discussion list
Confirm D1 is still at the top of the list with a pin icon
As a teacher, go back to the forum
Go to discussion D1, unpin the discussion(as described previously)
As a student, go to the forum
Confirm , D1 is still at the top of the list with a star icon
Toggle states from the discussion list
Basic
As a student, go to the forum
Confirm you can see the "..." icon next to the subscribe button
Confirm you can ONLY see the 'Star this discussion' option in the dropdown
With D2, confirm when you click the 'Star this discussion' link in the menu, the page reloads and the corresponding record's menu changes to 'Unstar this discussion'
Confirm Discussion 2 appears at the top of the list with a star icon
As a teacher, go to the forum
Confirm you can see the "..." icon next to the subscribe button
Confirm you can see the 'Star this discussion', 'Pin this discussion' AND 'Lock' options in the dropdown after clicking the icon
Confirm when you click the 'Pin this discussion' link in the menu for Discussion 1, the page reloads the page
Confirm when you go back to the discussion list, Discussion 1 appears at the top of the list with the pin icon
Teacher pins D1, student doesn't
As a student, go to the forum's discussion list
Confirm D1 appears at the top of the list with a pin icon before the description
Repeat #1 and #2 with the teacher
Teacher pins D1, student stars D3
As a teacher, go the forum
Select the dropdown corresponding to D1 and pin the discussion.
On the forum page, confirm D1 appears at the top of the list
As a student, go to the forum's discussion list
Confirm D1 appears at the top of the list
Select the dropdown corresponding to D3 and star the discussion(as described previously)
Confirm D1 appears at the top with a pin icon followed by D3 with a star icon
As a teacher, go back to the forum
Confirm ONLY D1 appears to be pinned and NOT D3
Teacher pins D1, student stars D1
As a teacher, go the forum
Select the dropdown corresponding to D1 and pin the discussion.
On the forum page, confirm D1 appears at the top of the list
As a student, go to the forum's discussion list
Confirm D1 appears at the top of the list with a pin icon
Select the dropdown corresponding to D1 and star the discussion(as described previously)
Confirm D1 is still at the top of the list with a pin icon
As a teacher, go back to the forum
Select the dropdown corresponding to discussion D1 and unpin the discussion(as described previously)
As a student, go to the forum
Confirm , D1 is still at the top of the list with a star icon