Moderation
TC01: Accept moderation request, for visible projects by other users
Step | Action | Result |
---|---|---|
1 | Open a first browser instance (Eg: “firefox.exe -p “profile1” -no-remote”) and sign in with a known First user | User successfully signed in and Home page is displayed |
2 | Open a second browser instance (Eg: “firefox.exe -p “profile2” -no-remote”) and sign in with a known Second user | User successfully signed in and Home page is displayed |
3 | Activate First browser instance | Instance is active |
4 | Create a new project visible for Second user Eg: - Name: Project is created by First user - Project visibility: Everyone | Project is created successfully |
5 | Activate Second browser instance | Instance is active |
6 | Search for the above created project and click Edit button | “Success: You will create a moderation request if you update” message is displayed |
7 | Edit Description field or other fields Eg: Description: “Update description to create a moderation request!!” Click Update Project button | Create moderation request dialog is displayed |
8 | Fill in Please comment your changes field Eg: I want to update this project. Please accept for me. Thanks @@. Click Send moderation request button | Show message: “Success: Moderation request was sent to update the Project {nameProject} {(version)}!” |
9 | Activate First browser instance | Instance is active |
10 | Check status of project in the MY TASK ASSIGNMENTS table on Home page | The above project that needs moderation is displayed with status Pending |
11 | Click Requests page | The moderation request of Second user is displayed with state Pending |
12 | Click the project name in the Document Name column | - “Success: You have assigned yourself to this moderation request.” message is displayed - Moderation Request Information page is displayed, with proposed changes from step 7 listed |
13 | Input a comment in the Comment on Moderation Decision box. Eg: The request is approved Click Accept Request button | Request page display and show message: “Success: You have accepted the moderation request” |
14 | Click Closed Moderation Requests tab Check state of Project is created by First user project | State changed to Approved |
15 | Check status of project in the MY TASK ASSIGNMENTS table on Home page | The request is removed from the table |
16 | Activate Second browser instance | Instance is active |
17 | Check status of project in the MY TASK SUBMISSIONS table on Home page | Status is Approved |
18 | Open the Projects page and click on previously modified project on step 7 | Project Summary page displayed successfully |
19 | Check the moderation requested changes | Changes are visible in the corresponding fields: Description field was changed to “Update description to create a moderation request!!” |
TC02: Decline moderation request, for visible projects by other users
Step | Action | Result |
---|---|---|
1-11 | Same as in TC01 | |
12 | Input a comment in the Comment on Moderation Decision box. Eg: The request is declined Click Decline Request button | Requests page display and show message: “Success: You have rejected the moderation request” |
13 | Click Closed Moderation Requests tab Check state of the above rejected project | State changed to Rejected |
14 | Check status of project in the MY TASK ASSIGNMENTS table on Home page | The request is removed from the table |
15 | Activate Second browser instance | Instance is active |
16 | Check status of project in the MY TASK SUBMISSIONS table on Home page | Status is Rejected |
17 | Open the Projects page and click on previously modified project on step 7 | Project Summary page displayed successfully |
18 | Check the moderation requested changes | Changes are not visible in the corresponding fields: data of the project is not changed. |
TC03: Remove Me from Moderators for moderation request, for visible projects by other users
Step | Action | Result |
---|---|---|
1-11 | Same as in TC01 | |
12 | Click Remove Me from Moderators button | - “Warning: You are the last moderator for this request, you are not allowed to unsubscribe !” message is displayed (assuming only First user was listed under Moderators column in step 10) - Can’t remove from Moderators. Nothing to change |
13 | Input a comment in the Comment on Moderation Decision box. Eg: Decline the request. Click Decline Request button | Requests page display and show message: “Success: You have rejected the moderation request” |
14 | Edit the project and add a new moderator (Eg: Third user) under Moderators field | Project updated successfully |
15 | Activate Second browser instance | Instance is active |
16 | Edit the project and create a new moderation request | Moderation request was sent |
17 | Activate First browser instance | Instance is active |
18 | Click Moderation page | The moderation request of Second user is displayed with state Pending |
19 | Click the project name which the moderation was created in step 16 | - “Success: You have assigned yourself to this moderation request.” is displayed - Moderation Request Information page is displayed, with proposed changes from step 16 listed |
20 | Click Remove Me from Moderators button | “Success: You have unassigned yourself from the moderation request” message is displayed. Also the document is deleted from moderation list. |
21 | Login with the Third user and check the Moderation request in Request page | The moderation request of Second user is displayed with state Pending |
Last modified November 14, 2024: feat(TestCase): Update test cases for project, package, moderation (bd9c1ec)