Skip to content

Commit

Permalink
Add acceptance tests for checking that share with group and user with…
Browse files Browse the repository at this point in the history
… same name works
  • Loading branch information
dpakach committed Oct 16, 2019
1 parent 3108bb4 commit 2375e07
Showing 1 changed file with 39 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,42 @@ Feature: Sharing files and folders with internal groups
| group |
| ?\?@#%@,; |
| नेपाली |

@issue-35488
Scenario: Share file with a user and a group with same name
Given these users have been created with default attributes and without skeleton files:
| username |
| user1 |
And user "user3" has been created with default attributes and skeleton files
And these groups have been created:
| groupname |
| user1 |
And user "user1" has been added to group "user1"
And user "user3" has logged in using the webUI
When the user shares folder "simple-folder" with user "User One" using the webUI
And the user shares folder "simple-folder" with group "user1" using the webUI
# Remove this after issue is fixed
Then a notification should be displayed on the webUI with the text "Path already shared with this group"
When the user re-logs in as "user1" using the webUI
Then folder "simple-folder" should be marked as shared by "User Three" on the webUI
# Uncomment this line after issue is fixed
# And folder "simple-folder" should be marked as shared with "user1" by "User Three" on the webUI

@issue-35488
Scenario: Share file with a group and a user with same name
Given these users have been created with default attributes and without skeleton files:
| username |
| user1 |
And user "user3" has been created with default attributes and skeleton files
And these groups have been created:
| groupname |
| user1 |
And user "user1" has been added to group "user1"
And user "user3" has logged in using the webUI
When the user shares folder "simple-folder" with group "user1" using the webUI
And the user shares folder "simple-folder" with user "User One" using the webUI
# Remove this after issue is fixed
Then a notification should be displayed on the webUI with the text "Path already shared with this user"
When the user re-logs in as "user1" using the webUI
Then folder "simple-folder" should be marked as shared with "user1" by "User Three" on the webUI
# Uncomment this line after issue is fixed# And folder "simple-folder" should be marked as shared with "User One" by "User Three" on the webUI

0 comments on commit 2375e07

Please sign in to comment.