sn-client
sn-client copied to clipboard
๐งช [E2E test] Add Cypress test - Versioning with Major and minor versioning mode
Before you start working on an issue please take a look at our dedicated hacktoberfest site to learn the basic rules and find additional resources to help you get started.
๐งชE2E test cases
The scope of these tests is to ensure that versioning works as it is intended.

๐ Role
All test should run as admin.
Test case 1
๐งซ Purpose of the test
To ensure that content has only one major version
๐พ Steps
- Login with admin role
- Click on Content menu item
- Click on IT Workspace in the tree
- Click on Memos (under IT Workspace) in the tree
- Right-click on Attaching cover sheets to TPS reports
- Step: Select Versions from the dropdown Expected result: Only V1.0.A version should be in the list

- Click Cancel button
Test case 2
๐งซ Purpose of the test
To ensure that any changes on a file creates new minor version
๐พ Steps
- Right-click on Attaching cover sheets to TPS reports
- Select Edit option from dropdown list
- Edit the content (e.g.: Change body from
This is to remind the division that, starting today, we are now filing all Testing Procedure Specification (TPS) reports with new cover sheets.TOThis is a reminder for the division starting today, we are now filing all Testing Procedure Specification (TPS) reports with new cover sheets. - Click on Submit button
- Right-click on Attaching cover sheets to TPS reports
- Step: Select Versions option from dropdown list Expected result: A new version should be visible in the list with the number of: V1.2.D (D means draft)

- Click Cancel button
Test case 3
๐งซ Purpose of the test
To ensure that any changes on a file creates new version with
๐พ Steps
- Right-click on Attaching cover sheets to TPS reports
- Select Edit option from dropdown list
- Edit the content (e.g.: Change body from
This is a reminder for the division starting today, we are now filing all Testing Procedure Specification (TPS) reports with new cover sheets.TOThis is to remind the division that, starting today, we are now filing all Testing Procedure Specification (TPS) reports with new cover sheets. - Click on Submit button
- Right-click on Attaching cover sheets to TPS reports
- Step: Select Versions option from dropdown list Expected result: A new version should be visible in the list with the number of: V1.1.D (D means draft)

- Click Cancel button
Test case 4
๐งซ Purpose of the test
To ensure version restore work properly
๐พ Steps
- Click on the restore icon in the row of V1.0.A version

- Step: Click restore button in the dialog Expected result: A new version should be in the list: V1.2.D

- Click Cancel button
- Right-click on Annual Company Picnic in the grid
- Select Publish from the dropdown
- Right-click on Annual Company Picnic in the grid
- Step: Select Versions from the dropdown Expected result: The first item (it was V1.2.D) should be V2.0.A

- Click Cancel button