fix(test): Less flaky note-to-recipient test

Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
This commit is contained in:
Marcel Müller 2025-08-02 23:38:30 +02:00
parent f3d2e53371
commit d8dd3d6050
2 changed files with 5 additions and 1 deletions

View file

@ -30,6 +30,10 @@ export function createShare(fileName: string, username: string, shareSettings: P
// HACK: Save the share and then update it, as permissions changes are currently not saved for new share.
cy.get('[data-cy-files-sharing-share-editor-action="save"]').click({ scrollBehavior: 'nearest' })
// Success message is shown
cy.get('.toastify.toast-success').contains(/Share.+Saved/i).should('exist')
updateShare(fileName, 0, shareSettings)
}

View file

@ -72,7 +72,7 @@ describe('files_sharing: Note to recipient', { testIsolation: true }, () => {
createShare('folder', sharee.userId, { read: true, download: true, note: 'Hello, this is the note.' })
// reload just to be sure
cy.reload()
cy.visit('/apps/files')
// open the sharing tab
openSharingPanel('folder')