Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tests-Only] Adjust UI test scenarios related to product issue 203 #4503

Merged
merged 1 commit into from
Dec 18, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 42 additions & 42 deletions tests/acceptance/features/webUIResharing/reshareUsers.feature
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Feature: Resharing shared files with different permissions
And the user opens folder "Shares" using the webUI
Then the user should not be able to share folder "simple-folder" using the webUI

@skipOnOCIS @issue-product-203
@skipOnOCIS
Scenario Outline: share a received folder with another user with same permissions(including share permissions) and check if the user is displayed in collaborators list for resharer
Given user "user2" has shared folder "simple-folder" with user "user1" with "<permissions>" permissions
And user "user1" has accepted the share "simple-folder" offered by user "user2"
Expand All @@ -70,7 +70,7 @@ Feature: Resharing shared files with different permissions
| Advanced permissions | Advanced permissions | update, share | share, update | read, update, share |
| Advanced permissions | Editor | delete, share, create, update | | read, share, delete, update, create |

@skipOnOC10 @issue-product-203
@skipOnOC10
#after fixing the issue delete this scenario and use the one above by deleting the @skipOnOCIS tag there
Scenario Outline: share a received folder with another user with same permissions(including share permissions) and check if the user is displayed in collaborators list for resharer
Given user "user2" has shared folder "simple-folder" with user "user1" with "<permissions>" permissions
Expand All @@ -82,12 +82,12 @@ Feature: Resharing shared files with different permissions
Then user "User Three" should be listed as "<displayed-role>" in the collaborators list for folder "simple-folder" on the webUI
And custom permissions "<displayed-permissions>" should be set for user "User Three" for folder "simple-folder" on the webUI
Then user "user3" should have received a share with these details:
| field | value |
| uid_owner | user1 |
| share_with | user3 |
| file_target | /simple-folder |
| item_type | folder |
| permissions | <permissions> |
| field | value |
| uid_owner | user1 |
| share_with | user3 |
| file_target | /Shares/simple-folder |
| item_type | folder |
| permissions | <permissions> |
Examples:
| role | displayed-role | collaborators-permissions | displayed-permissions | permissions |
| Viewer | Viewer | , | , | read |
Expand All @@ -96,7 +96,7 @@ Feature: Resharing shared files with different permissions
| Advanced permissions | Advanced permissions | update | update | read, update |
| Advanced permissions | Editor | delete, create, update | | read, delete, update, create |

@skipOnOCIS @issue-product-203 @issue-4193
@skipOnOCIS @issue-4193
Scenario Outline: share a received folder with another user with same permissions(including share permissions) and check if the user is displayed in collaborators list for original owner
Given user "user2" has shared folder "simple-folder" with user "user1" with "<permissions>" permissions
And user "user1" has accepted the share "simple-folder" offered by user "user2"
Expand Down Expand Up @@ -131,7 +131,7 @@ Feature: Resharing shared files with different permissions
| Advanced permissions | Advanced permissions | update, share | share, update | read, update, share |
| Advanced permissions | Editor | delete, share, create, update | , | read, share, delete, update, create |

@skipOnOC10 @issue-product-203 @issue-ocis-717
@skipOnOC10 @issue-ocis-717
#after fixing the issue delete this scenario and use the one above by deleting the @skipOnOCIS tag there
Scenario Outline: share a received folder with another user with same permissions(including share permissions) and check if the user is displayed in collaborators list for original owner
Given user "user2" has shared folder "simple-folder" with user "user1" with "<permissions>" permissions
Expand Down Expand Up @@ -167,7 +167,7 @@ Feature: Resharing shared files with different permissions
| Advanced permissions | Advanced permissions | update | update | read, update |
| Advanced permissions | Editor | delete, create, update | , | read, delete, update, create |

@skipOnOCIS @issue-product-203 @issue-4193
@skipOnOCIS @issue-4193
Scenario: share a folder with another user with share permissions and reshare without share permissions to different user, and check if user is displayed for original sharer
Given user "user2" has shared folder "simple-folder" with user "user1" with "read, share" permissions
And user "user1" has accepted the share "simple-folder" offered by user "user2"
Expand All @@ -194,7 +194,7 @@ Feature: Resharing shared files with different permissions
| item_type | folder |
| permissions | read, share |

@skipOnOC10 @issue-product-203
@skipOnOC10
#after fixing the issue delete this scenario and use the one above by deleting the @skipOnOCIS tag there
Scenario: share a folder with another user with share permissions and reshare without share permissions to different user, and check if user is displayed for original sharer
Given user "user2" has shared folder "simple-folder" with user "user1" with "read, share" permissions
Expand All @@ -209,21 +209,21 @@ Feature: Resharing shared files with different permissions
And user "User One" should be listed as "Viewer" in the collaborators list for folder "simple-folder" on the webUI
And custom permissions "share" should be set for user "User One" for folder "simple-folder" on the webUI
And user "user1" should have received a share with these details:
| field | value |
| uid_owner | user2 |
| share_with | user1 |
| file_target | /simple-folder |
| item_type | folder |
| permissions | read, share |
| field | value |
| uid_owner | user2 |
| share_with | user1 |
| file_target | /Shares/simple-folder |
| item_type | folder |
| permissions | read, share |
And user "user3" should have received a share with these details:
| field | value |
| uid_owner | user1 |
| share_with | user3 |
| file_target | /simple-folder |
| item_type | folder |
| permissions | read |
| field | value |
| uid_owner | user1 |
| share_with | user3 |
| file_target | /Shares/simple-folder |
| item_type | folder |
| permissions | read |

@skipOnOCIS @issue-product-203 @issue-4193
@skipOnOCIS @issue-4193
Scenario: share a folder with another user with share permissions and reshare without share permissions to different user, and check if user is displayed for the receiver
Given user "user2" has shared folder "simple-folder" with user "user1" with "read, share" permissions
And user "user1" has accepted the share "simple-folder" offered by user "user2"
Expand All @@ -239,7 +239,7 @@ Feature: Resharing shared files with different permissions
| item_type | folder |
| permissions | read, share |

@skipOnOC10 @issue-product-203
@skipOnOC10
#after fixing the issue delete this scenario and use the one above by deleting the @skipOnOCIS tag there
Scenario: share a folder with another user with share permissions and reshare without share permissions to different user, and check if user is displayed for the receiver
Given user "user2" has shared folder "simple-folder" with user "user1" with "read, share" permissions
Expand All @@ -252,7 +252,7 @@ Feature: Resharing shared files with different permissions
| field | value |
| uid_owner | user1 |
| share_with | user3 |
| file_target | /simple-folder |
| file_target | /Shares/simple-folder |
| item_type | folder |
| permissions | read |

Expand Down Expand Up @@ -284,7 +284,7 @@ Feature: Resharing shared files with different permissions
| simple-folder |
| lorem.txt |

@skipOnOCIS @issue-product-203
@skipOnOCIS
Scenario: User is allowed to reshare a file/folder with the equivalent received permissions, and collaborators should not be listed for the receiver
Given user "user2" has shared folder "simple-folder" with user "user1" with "read, share, delete" permissions
And user "user1" has accepted the share "simple-folder" offered by user "user2"
Expand All @@ -305,7 +305,7 @@ Feature: Resharing shared files with different permissions
| item_type | folder |
| permissions | share, delete, read |

@skipOnOC10 @issue-product-203 @issue-ocis-717
@skipOnOC10 @issue-ocis-717
#after fixing the issue delete this scenario and use the one above by deleting the @skipOnOCIS tag there
Scenario: User is allowed to reshare a file/folder with the equivalent received permissions, and collaborators should not be listed for the receiver
Given user "user2" has shared folder "simple-folder" with user "user1" with "read, share, delete" permissions
Expand All @@ -320,15 +320,15 @@ Feature: Resharing shared files with different permissions
Then the current collaborators list should have order "User Two,User Three"
And user "User Two" should be listed as "Owner" reshared through "User One" in the collaborators list on the webUI
And user "user3" should have received a share with these details:
| field | value |
| uid_owner | user1 |
| share_with | user3 |
| file_target | /simple-folder |
| item_type | folder |
| permissions | share, delete, read |
| field | value |
| uid_owner | user1 |
| share_with | user3 |
| file_target | /Shares/simple-folder |
| item_type | folder |
| permissions | share, delete, read |

@skipOnOCIS @issue-product-270
@issue-product-203 @issue-4193
@issue-4193
Scenario: User is allowed to reshare a file/folder with the lesser permissions, and check if it is listed for original owner
Given user "user2" has shared folder "simple-folder" with user "user1" with "read, share, delete" permissions
And user "user1" has accepted the share "simple-folder" offered by user "user2"
Expand All @@ -342,12 +342,12 @@ Feature: Resharing shared files with different permissions
And user "User Three" should be listed as "Advanced permissions" in the collaborators list for folder "simple-folder" on the webUI
And custom permissions "delete" should be set for user "User Three" for folder "simple-folder" on the webUI
And user "user3" should have received a share with these details:
| field | value |
| uid_owner | user1 |
| share_with | user3 |
| file_target | /Shares/simple-folder |
| item_type | folder |
| permissions | delete, read |
| field | value |
| uid_owner | user1 |
| share_with | user3 |
| file_target | /Shares/simple-folder |
| item_type | folder |
| permissions | delete, read |

@skipOnOCIS @issue-product-270
Scenario: User is not allowed to reshare a file/folder with the higher permissions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Feature: Sharing files with multiple internal users with different permissions
| user1 |
| user2 |

@skipOnOCIS @issue-product-203
@skipOnOCIS @issue-ocis-717
Scenario Outline: share a file with multiple users with different roles and permissions
Given these users have been created with default attributes:
| username |
Expand Down Expand Up @@ -63,7 +63,7 @@ Feature: Sharing files with multiple internal users with different permissions
| Advanced permissions | Advanced permissions | update | update | read, update |
| Advanced permissions | Editor | share, update | , | read, update, share |

@skipOnOC10 @issue-product-203
@skipOnOC10 @issue-ocis-717
#after fixing the issue delete this scenario and use the one above by deleting the @skipOnOCIS tag there
Scenario Outline: share a file with multiple users with different roles and permissions
Given these users have been created with default attributes:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@skipOnOCIS @ocis-reva-issue-34 @ocis-reva-issue-194 @issue-product-203
@skipOnOCIS @ocis-reva-issue-34 @ocis-reva-issue-194
Feature: Sharing folders with internal groups with role as advanced permissions
As a user
I want to set different permissions on shared folders with groups
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@issue-ocis-717
Feature: Sharing folders with multiple internal users with different permissions
As a user
I want to set different permissions on shared folders with other users
Expand All @@ -11,7 +12,7 @@ Feature: Sharing folders with multiple internal users with different permissions
| user1 |
| user2 |

@skipOnOCIS @issue-product-203
@skipOnOCIS
Scenario Outline: share a folder with multiple users with different roles and permissions
Given these users have been created with default attributes:
| username |
Expand Down Expand Up @@ -63,7 +64,7 @@ Feature: Sharing folders with multiple internal users with different permissions
| Advanced permissions | Advanced permissions | delete, update, create | delete, update, create | read, delete, update, create |
| Advanced permissions | Editor | share, delete, update, create | , | all |

@skipOnOC10 @issue-product-203
@skipOnOC10
#after fixing the issue delete this scenario and use the one above by deleting the @skipOnOCIS tag there
Scenario Outline: share a folder with multiple users with different roles and permissions
Given these users have been created with default attributes:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@skipOnOCIS @ocis-reva-issue-34 @ocis-reva-issue-194 @issue-product-203
@skipOnOCIS @ocis-reva-issue-34 @ocis-reva-issue-194
Feature: Sharing folders with internal groups with different roles and permissions
As a user
I want to set different permissions on shared folders with groups
Expand Down Expand Up @@ -40,19 +40,19 @@ Feature: Sharing folders with internal groups with different roles and permissio
And group "grp2" should be listed as "<displayed-role>" in the collaborators list for folder "simple-folder" on the webUI
And user "User Three" should be listed as "<displayed-role>" in the collaborators list for folder "simple-folder" on the webUI
Then user "user2" should have received a share with these details:
| field | value |
| uid_owner | user1 |
| share_with | grp2 |
| file_target | /Shares/simple-folder |
| item_type | folder |
| permissions | <actual-permissions> |
| field | value |
| uid_owner | user1 |
| share_with | grp2 |
| file_target | /Shares/simple-folder |
| item_type | folder |
| permissions | <actual-permissions> |
And user "user3" should have received a share with these details:
| field | value |
| uid_owner | user1 |
| share_with | user3 |
| file_target | /Shares/simple-folder |
| item_type | folder |
| permissions | <actual-permissions> |
| field | value |
| uid_owner | user1 |
| share_with | user3 |
| file_target | /Shares/simple-folder |
| item_type | folder |
| permissions | <actual-permissions> |
But group "grp1" should not be listed in the collaborators list on the webUI
And as "user1" folder "/Shares/simple-folder" should not exist
Examples:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Feature: Sharing files and folders with internal users
| user2 |

@yetToImplement
@smokeTest @skipOnOCIS @issue-product-203
@smokeTest @skipOnOCIS @issue-ocis-717
Scenario Outline: share a file & folder with another internal user
Given user "user2" has logged in using the webUI
When the user shares folder "simple-folder" with user "User One" as "<set-role>" using the webUI
Expand Down Expand Up @@ -56,7 +56,7 @@ Feature: Sharing files and folders with internal users
| Editor | Editor | read,update,create,delete,share | read,update,share |
| Advanced permissions | Advanced permissions | read | read |

@skipOnOCIS @issue-product-203
@skipOnOCIS @issue-ocis-717
Scenario Outline: change the collaborators of a file & folder
Given user "user2" has logged in using the webUI
And user "user2" has shared folder "/simple-folder" with user "user1" with "<initial-permissions>" permissions
Expand All @@ -80,7 +80,7 @@ Feature: Sharing files and folders with internal users
| read,share | Advanced permissions | Viewer | read,share |
| all | Advanced permissions | Editor | all |

@skipOnOC10 @issue-product-203
@skipOnOC10 @issue-ocis-717
#after fixing the issue delete this scenario and use the one above by deleting the @skipOnOCIS tag there
Scenario Outline: change the collaborators of a file & folder
Given user "user2" has logged in using the webUI
Expand Down Expand Up @@ -481,7 +481,7 @@ Feature: Sharing files and folders with internal users
And the user opens folder "Shares" using the webUI
Then user "User Two" should be listed as "Advanced permissions" in the collaborators list for folder "simple-folder (2)" on the webUI

@skipOnOCIS @issue-product-203
@skipOnOCIS
Scenario: share a file with another internal user via collaborators quick action
Given user "user1" has logged in using the webUI
When the user shares resource "simple-folder" with user "User Two" using the quick action in the webUI
Expand All @@ -495,7 +495,7 @@ Feature: Sharing files and folders with internal users
| item_type | folder |
| permissions | read,share |

@skipOnOCIS @issue-product-203
@skipOnOCIS
Scenario Outline: Share files/folders with special characters in their name
Given user "user2" has created folder "Sample,Folder,With,Comma"
And user "user2" has created file "sample,1.txt"
Expand Down Expand Up @@ -532,7 +532,7 @@ Feature: Sharing files and folders with internal users
| Editor | Editor | read,update,create,delete,share | read,update,share |
| Advanced permissions | Advanced permissions | read | read |

@skipOnOC10 @issue-product-203
@skipOnOC10
#after fixing the issue delete this scenario and use the one above by deleting the @skipOnOCIS tag there
Scenario Outline: Share files/folders with special characters in their name
Given user "user2" has created folder "Sample,Folder,With,Comma"
Expand Down
Loading