Skip to content

Commit

Permalink
Rebase and fix further acceptance tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalwengerter committed May 9, 2023
1 parent b2c5cfe commit 5821064
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ Feature: deleting files and folders
| | &and#hash |
And user "Alice" has shared folder "simple-folder" with link with "read, update, create, delete" permissions in the server
When the public uses the webUI to access the last public link created by user "Alice" in a new session
And the user deletes the following file using the webUI
And the user deletes the following single share using the webUI
| name-parts |
| 'single' |
| "double" quotes |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ Feature: Public link share management
And the user renames the most recently created public link of folder "simple-folder" to "link1"
And the user tries to edit the public link named "link1" of folder "simple-folder" changing the role to "Editor"
And the public uses the webUI to access the last public link created by user "Alice" in a new session
And the user opens the sidebar for file "lorem.txt" on the webUI
Then the following panels should be visible in the details dialog on the webUI
| name |
| actions |
Expand All @@ -97,6 +96,7 @@ Feature: Public link share management
| links |
| versions |


@issue-2897
Scenario: sharing details of indirect items inside a shared folder
Given user "Alice" has created folder "/simple-folder/sub-folder" in the server
Expand Down
4 changes: 4 additions & 0 deletions tests/acceptance/pageObjects/FilesPageElement/filesList.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ module.exports = {
await fileActionsMenu.delete()
return this
},
deleteSingleShare: async function (resource) {
await fileActionsMenu.delete()
return this
},
/**
* @param {string} resource
* @param {string} elementType
Expand Down
7 changes: 7 additions & 0 deletions tests/acceptance/stepDefinitions/filesContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -1132,6 +1132,13 @@ Then('the user deletes the following file using the webUI', function (table) {
.join('')
return client.page.FilesPageElement.filesList().deleteFile(name)
})
Then('the user deletes the following single share using the webUI', function (table) {
const name = table
.hashes()
.map((data) => data['name-parts'])
.join('')
return client.page.FilesPageElement.filesList().deleteSingleShare(name)
})

Then('the user should be redirected to the files-drop page', function () {
return client.page.filesDropPage().waitForPage()
Expand Down

0 comments on commit 5821064

Please sign in to comment.