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

Add test scenarios to demonstrate issue-287 #294

Merged
merged 1 commit into from
Mar 18, 2020
Merged
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
@webUI @insulated @disablePreviews
Feature: enforce public link expiration policies on public links only

As an administrator
I want to enforce maximum expiration date for public shares
I do not want the settings to affect user or group shares

Background:
Given these users have been created with default attributes and without skeleton files:
| username |
| user1 |
| user2 |
And user "user1" has created folder "folder-to-share"
And user "user1" has logged in using the webUI

@issue-287
Scenario: user tries to create a user share when "days maximum until link expires if password is not set" is enabled
Given the administrator has enabled the days until link expires if password is not set public link password policy
When the user shares folder "folder-to-share" with user "User Two" using the webUI
# Then as "user2" folder "folder-to-share" should exist
Then notifications should be displayed on the webUI with the text
| An expiration date is required. |
And as "user2" folder "folder-to-share" should not exist

Scenario: user tries to create a user share when "days maximum until link expires if password is set" is enabled
Given the administrator has enabled the days until link expires if password is set public link password policy
When the user shares folder "folder-to-share" with user "User Two" using the webUI
And as "user2" folder "folder-to-share" should exist

@issue-287
Scenario: user tries to create a group share when "days maximum until link expires if password is not set" is enabled
Given group "new-group" has been created
And user "user2" has been added to group "new-group"
And the administrator has enabled the days until link expires if password is not set public link password policy
When the user shares folder "folder-to-share" with group "new-group" using the webUI
# Then as "user2" folder "folder-to-share" should exist
Then notifications should be displayed on the webUI with the text
| An expiration date is required. |
And as "user2" folder "folder-to-share" should not exist

Scenario: user tries to create a group share when "days maximum until link expires if password is set" is enabled
Given group "new-group" has been created
And user "user2" has been added to group "new-group"
And the administrator has enabled the days until link expires if password is set public link password policy
When the user shares folder "folder-to-share" with group "new-group" using the webUI
And as "user2" folder "folder-to-share" should exist