Skip to content

Commit

Permalink
remove useless test
Browse files Browse the repository at this point in the history
  • Loading branch information
lookacat committed Oct 13, 2021
1 parent 3429878 commit 518ff85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -306,29 +306,4 @@ Feature: Sharing files and folders with internal groups
Examples:
| shared-resource |
| lorem.txt |
| simple-folder |

@issue-ocis-1250
Scenario Outline: share a resource with another internal group with expiration date within maximum enforced expiration date
Given the setting "shareapi_default_expire_date_group_share" of app "core" has been set to "yes"
And the setting "shareapi_enforce_expire_date_group_share" of app "core" has been set to "yes"
And the setting "shareapi_expire_after_n_days_group_share" of app "core" has been set to "5"
And user "Carol" has created file "lorem.txt"
And user "Carol" has created folder "simple-folder"
And user "Carol" has created a new share with following settings
| path | <shared-resource> |
| shareTypeString | group |
| shareWith | grp1 |
| expireDate | +4 |
And user "Alice" has accepted the share "Shares/<shared-resource>" offered by user "Carol"
And user "Brian" has accepted the share "Shares/<shared-resource>" offered by user "Carol"
And user "Carol" has logged in using the webUI
When the user tries to edit the collaborator expiry date of "grp1" of resource "<shared-resource>" to "+7" days using the webUI
Then the expiration date shown on the webUI should be "+4" days
And it should not be possible to save the pending share on the webUI
And user "Alice" should have received a share with target "<target-resource>" and expiration date in 4 days
And user "Brian" should have received a share with target "<target-resource>" and expiration date in 4 days
Examples:
| shared-resource | target-resource |
| lorem.txt | Shares/lorem.txt |
| simple-folder | Shares/simple-folder |
| simple-folder |
1 change: 1 addition & 0 deletions tests/acceptance/stepDefinitions/publicLinkContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ const loadPublicLinkWithPassword = async function(linkCreator, password, newSess
const editPublicLink = async function(linkName, resource, dataTable) {
const editData = dataTable.rowsHash()
await client.page.FilesPageElement.filesList().openPublicLinkDialog(resource)
// console.log(1234, editData)
await client.page.FilesPageElement.publicLinksDialog().editPublicLink(linkName, editData)
return client.page.FilesPageElement.publicLinksDialog().savePublicLink()
}
Expand Down

0 comments on commit 518ff85

Please sign in to comment.