Test Cases: Moderations - sw360/sw360portal GitHub Wiki
TC01: Accept moderation request, for visible projects by other users
| Step | Action | Result |
|---|---|---|
| 1 | Open first browser instance ((e.g. "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 ((e.g. "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 (e.g. Me and Moderators, Group and Moderators, Everyone) | Project is created successfully |
| 5 | Activate Second browser instance | Instance is active |
| 6 | Search for the above created project and click Edit | You will create a moderation request if you update. message is displayed |
| 7 | Edit Description field or other fields and click Update Project | Moderation request was sent to update the Project name! message is displayed. |
| 8 | Activate First browser instance | Instance is active |
| 9 | Check My Task Assignments on Home page | The above project that needs moderation is displayed with status PENDING |
| 10 | Click on Moderation page | The moderation request of Second user is displayed with state Pending |
| 11 | Click on moderation request | Moderation Change Project page is displayed, with proposed changes from step 7 listed |
| 12 | Click on Accept Request | You have accepted the previous moderation request. message is displayed, and State changes to Approved |
| 13 | Check My Task Assignments on Home page | Status is APPROVED |
| 14 | Activate Second browser instance | Instance is active |
| 15 | Check _My Task Submissions on Home page | Status is APPROVED |
| 16 | Open the Projects tab and click on previously modified project on step 7 | Project Summary page displayed successfully |
| 17 | Check the moderation requested changes | Changes are visible in the corresponding fields |
TC02: Decline moderation request, for visible projects by other users
| Step | Action | Result |
|---|---|---|
| 1-11 | Same as in TC01 | |
| 12 | Click on Decline Request | You have declined the previous moderation request message is displayed, and State changes to Rejected |
| 13 | Check My Task Assignments on Home page | Status is REJECTED |
| 14 | Activate Second browser instance | Instance is active |
| 15 | Check _My Task Submissions on Home page | Status is REJECTED |
| 16 | Open the Projects tab and click on previously modified project on step 7 | Project Summary page displayed successfully |
| 17 | Check the moderation requested changes | Changes are not visible in the corresponding fields |
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 on Remove Me from Moderators | 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) |
| 13 | Click on Decline Request | You have declined the previous moderation request message is displayed, and State changes to Rejected |
| 14 | Edit the project and add a new moderator (e.g. 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 on Moderation page | The moderation request of Second user is displayed with state Pending |
| 19 | Click on moderation request | Moderation Change Project page is displayed, with proposed changes from step 7 listed |
| 20 | Click on Remove Me from Moderators | You are removed from the list of moderators for the previous moderation request. You have no open Requests. message is displayed. Also the document is deleted from moderation list. |
| 21 | Login with the Third user and check the Moderation tab | The moderation request of Second user is displayed with state Pending |