diff --git a/packages/web-app-files/src/components/SideBar/Shares/Collaborators/InviteCollaborator/InviteCollaboratorForm.vue b/packages/web-app-files/src/components/SideBar/Shares/Collaborators/InviteCollaborator/InviteCollaboratorForm.vue index 696bfa42a30..07d0a35c189 100644 --- a/packages/web-app-files/src/components/SideBar/Shares/Collaborators/InviteCollaborator/InviteCollaboratorForm.vue +++ b/packages/web-app-files/src/components/SideBar/Shares/Collaborators/InviteCollaborator/InviteCollaboratorForm.vue @@ -60,7 +60,8 @@ > { + const showContextMenuOnBtnClick = (data) => { const { dropdown, event } = data if (dropdown?.tippy === undefined) { return diff --git a/tests/acceptance/pageObjects/FilesPageElement/SharingDialog/collaboratorsDialog.js b/tests/acceptance/pageObjects/FilesPageElement/SharingDialog/collaboratorsDialog.js index 05b7f68971d..402d6ee178b 100644 --- a/tests/acceptance/pageObjects/FilesPageElement/SharingDialog/collaboratorsDialog.js +++ b/tests/acceptance/pageObjects/FilesPageElement/SharingDialog/collaboratorsDialog.js @@ -51,9 +51,8 @@ module.exports = { }, expandExpirationDatePicker: function (collaborator) { if (!collaborator) { - this.waitForElementVisible('@expirationDatePickerTrigger').click( - '@expirationDatePickerTrigger' - ) + this.waitForElementVisible('@threeDotsTrigger').click('@threeDotsTrigger') + this.waitForElementVisible('@setExpirationDateButton').click('@setExpirationDateButton') return client.page.FilesPageElement.expirationDatePicker() } const informationSelector = util.format( @@ -311,6 +310,12 @@ module.exports = { '//p[contains(@class, "files-collaborators-collaborator-name") and text()="%s"]/../..//span[contains(@class, "files-collaborators-collaborator-expires")]', locateStrategy: 'xpath' }, + threeDotsTrigger: { + selector: 'button#show-more-share-options-btn' + }, + setExpirationDateButton: { + selector: '.files-recipient-expiration-datepicker' + }, expirationDatePickerTrigger: { selector: '//button[contains(@class, "files-collaborators-expiration-button")]', locateStrategy: 'xpath'