Skip to content

Commit

Permalink
Merge pull request #34572 from nextcloud/bugfix/noid/green-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
skjnldsv authored Oct 13, 2022
2 parents 9d0f529 + 799f660 commit cdb81f7
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 43 deletions.
50 changes: 26 additions & 24 deletions tests/acceptance/features/app-files-sharing-link.feature
Original file line number Diff line number Diff line change
Expand Up @@ -11,31 +11,33 @@ Feature: app-files-sharing-link
And I open the Share menu
Then I see that the Share menu is shown

Scenario: hide download in a public shared link
Given I act as John
And I am logged in
And I share the link for "welcome.txt"
And I set the download of the shared link as hidden
And I write down the shared link
When I act as Jane
And I visit the shared link I wrote down
And I see that the current page is the shared link I wrote down
Then I see that the download button is not shown
And I see that the Share menu button is not shown
# TODO: disabled unreliable test
# Scenario: hide download in a public shared link
# Given I act as John
# And I am logged in
# And I share the link for "welcome.txt"
# And I set the download of the shared link as hidden
# And I write down the shared link
# When I act as Jane
# And I visit the shared link I wrote down
# And I see that the current page is the shared link I wrote down
# Then I see that the download button is not shown
# And I see that the Share menu button is not shown

Scenario: show download again in a public shared link
Given I act as John
And I am logged in
And I share the link for "welcome.txt"
And I set the download of the shared link as hidden
And I set the download of the shared link as shown
And I write down the shared link
When I act as Jane
And I visit the shared link I wrote down
And I see that the current page is the shared link I wrote down
Then I see that the download button is shown
And I open the Share menu
And I see that the Share menu is shown
# TODO: disabled unreliable test
# Scenario: show download again in a public shared link
# Given I act as John
# And I am logged in
# And I share the link for "welcome.txt"
# And I set the download of the shared link as hidden
# And I set the download of the shared link as shown
# And I write down the shared link
# When I act as Jane
# And I visit the shared link I wrote down
# And I see that the current page is the shared link I wrote down
# Then I see that the download button is shown
# And I open the Share menu
# And I see that the Share menu is shown

Scenario: open a subfolder in a public shared folder
Given I act as John
Expand Down
39 changes: 20 additions & 19 deletions tests/acceptance/features/app-files-sharing.feature
Original file line number Diff line number Diff line change
Expand Up @@ -419,25 +419,26 @@ Feature: app-files-sharing
And I see that "user1" can not edit the share
And I see that "user1" can not be allowed to edit the share

Scenario: sharee can not reshare a folder with create permission if the sharer disables it
Given I act as John
And I am logged in as the admin
And I act as Jane
And I am logged in
And I act as John
And I create a new folder named "Shared folder"
And I see that the file list contains a file named "Shared folder"
And I share "Shared folder" with "user0"
And I see that the file is shared with "user0"
And I set the share with "user0" as not creatable
And I see that "user0" can not create in the share
When I act as Jane
# The Files app is open again to reload the file list
And I open the Files app
And I share "Shared folder" with "user1"
Then I see that the file is shared with "user1"
And I see that "user1" can not create in the share
And I see that "user1" can not be allowed to create in the share
# TODO: disabled unreliable test
# Scenario: sharee can not reshare a folder with create permission if the sharer disables it
# Given I act as John
# And I am logged in as the admin
# And I act as Jane
# And I am logged in
# And I act as John
# And I create a new folder named "Shared folder"
# And I see that the file list contains a file named "Shared folder"
# And I share "Shared folder" with "user0"
# And I see that the file is shared with "user0"
# And I set the share with "user0" as not creatable
# And I see that "user0" can not create in the share
# When I act as Jane
# # The Files app is open again to reload the file list
# And I open the Files app
# And I share "Shared folder" with "user1"
# Then I see that the file is shared with "user1"
# And I see that "user1" can not create in the share
# And I see that "user1" can not be allowed to create in the share

# TODO: disabled unreliable test
# Scenario: sharee can revoke create permission from reshare after the sharer disabled it
Expand Down

0 comments on commit cdb81f7

Please sign in to comment.