diff --git a/tests/acceptance/features/webUIDeleteFilesFolders/deleteFilesFolders.feature b/tests/acceptance/features/webUIDeleteFilesFolders/deleteFilesFolders.feature index cbe7a529369..c5ebe7ed8f7 100644 --- a/tests/acceptance/features/webUIDeleteFilesFolders/deleteFilesFolders.feature +++ b/tests/acceptance/features/webUIDeleteFilesFolders/deleteFilesFolders.feature @@ -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 | diff --git a/tests/acceptance/features/webUISharingPublicManagement/shareByPublicLink.feature b/tests/acceptance/features/webUISharingPublicManagement/shareByPublicLink.feature index f0b04358e76..6a769a91db8 100644 --- a/tests/acceptance/features/webUISharingPublicManagement/shareByPublicLink.feature +++ b/tests/acceptance/features/webUISharingPublicManagement/shareByPublicLink.feature @@ -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 | @@ -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 diff --git a/tests/acceptance/pageObjects/FilesPageElement/filesList.js b/tests/acceptance/pageObjects/FilesPageElement/filesList.js index 29ff836721a..59dc3627e81 100644 --- a/tests/acceptance/pageObjects/FilesPageElement/filesList.js +++ b/tests/acceptance/pageObjects/FilesPageElement/filesList.js @@ -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 diff --git a/tests/acceptance/stepDefinitions/filesContext.js b/tests/acceptance/stepDefinitions/filesContext.js index 38a4debd2de..7b9757d4e77 100644 --- a/tests/acceptance/stepDefinitions/filesContext.js +++ b/tests/acceptance/stepDefinitions/filesContext.js @@ -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()