Skip to content

Commit

Permalink
fix1
Browse files Browse the repository at this point in the history
  • Loading branch information
haribhandari07 committed Jul 30, 2020
1 parent e41fd5c commit f5e4644
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ Feature: Share by public link
When the public uses the webUI to access the last public link created by user "user1" with password "pass12"
Then the public should not get access to the publicly shared file

@skipOnOCIS @issue-ocis-reva-389
Scenario: user shares a public link with folder longer than 64 chars and shorter link name
Given user "user1" has renamed folder "simple-folder" to "aquickbrownfoxjumpsoveraverylazydogaquickbrownfoxjumpsoveralazydog"
And user "user1" has logged in using the webUI
Expand Down Expand Up @@ -583,6 +584,7 @@ Feature: Share by public link
Then file "lorem.txt" with path "" should be listed in the shared with others page on the webUI
And file "lorem.txt" with path "/simple-folder" should be listed in the shared with others page on the webUI

@skipOnOCIS @issue-ocis-reva-389
Scenario: user removes the public link of a file using webUI
Given user "user1" has logged in using the webUI
And user "user1" has created a public link with following settings
Expand All @@ -592,6 +594,17 @@ Feature: Share by public link
When the user removes the public link named "Public-link" of file "lorem.txt" using the webUI
Then user "user1" should not have any public link

@skipOnOC10 @issue-ocis-reva-389
# After this issue is fixed delete this scenario and use the one above
Scenario: user removes the public link of a file using webUI
Given user "user1" has logged in using the webUI
And user "user1" has created a public link with following settings
| path | lorem.txt |
| name | Public-link |
| permissions | read |
When the user removes the public link named "Public-link" of file "lorem.txt" using the webUI
Then user "user1" should have some public shares

@skip @yetToImplement
Scenario: user cancel removes operation for the public link of a file
Given the user has created a new public link for file "lorem.txt" using the webUI
Expand Down Expand Up @@ -897,16 +910,19 @@ Feature: Share by public link
| name | Public Link Sub |
And user "user1" has logged in using the webUI
When the user browses to the shared-with-others page
And the user opens the link share dialog for folder "simple-empty-folder" using the webUI
Then a link named "Public Link" should not be listed on the webUI
And a link named "Public Link Sub" should not be listed on the webUI
Then the folder should be empty on the webUI
# And the user opens the link share dialog for folder "simple-empty-folder" using the webUI
# Then a link named "Public Link" should not be listed on the webUI
# And a link named "Public Link Sub" should not be listed on the webUI

@issue-ocis-reva-243 @skipOnOCIS
Scenario: token is shown for links without a name
When user "user1" has created a public link with following settings
| path | /simple-folder |
And user "user1" logs in using the webUI
Then a public link with the last created link share token as name should be listed for resource "simple-folder" on the webUI

@issue-ocis-reva-243 @skipOnOCIS
Scenario: User can create a public link via quick action
Given user "user1" has logged in using the webUI
When the user creates a public link via quick action for resource "simple-folder" using the webUI
Expand Down
8 changes: 8 additions & 0 deletions tests/acceptance/stepDefinitions/publicLinkContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,14 @@ Then('user {string} should not have any public link', async function(sharer) {
assert.strictEqual(resp.length, 0, 'User has shares. Response: ' + resp)
})

Then('user {string} should have some public shares', async function(sharer) {
const publicShares = await sharingHelper.getAllPublicLinkShares(sharer)
console.log(publicShares)
if (publicShares.length === 0) {
assert.fail('Shares not found')
}
})

Then('the fields of the last public link share response of user {string} should include', function(
linkCreator,
dataTable
Expand Down

0 comments on commit f5e4644

Please sign in to comment.