diff options
author | Marcel Müller <marcel-mueller@gmx.de> | 2025-08-02 23:38:30 +0200 |
---|---|---|
committer | Marcel Müller <marcel-mueller@gmx.de> | 2025-08-02 23:38:30 +0200 |
commit | d8dd3d605000819b55880f8f4be0ef7781911574 (patch) | |
tree | 8d691bb83917f85c79133b9326c3e3c5ac72d277 | |
parent | f3d2e533712322ff2ca3e411a1dcd3921d1874b4 (diff) | |
download | nextcloud-server-fix/noid/note-to-recipient-test.tar.gz nextcloud-server-fix/noid/note-to-recipient-test.zip |
fix(test): Less flaky note-to-recipient testfix/noid/note-to-recipient-test
Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
-rw-r--r-- | cypress/e2e/files_sharing/FilesSharingUtils.ts | 4 | ||||
-rw-r--r-- | cypress/e2e/files_sharing/note-to-recipient.cy.ts | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/cypress/e2e/files_sharing/FilesSharingUtils.ts b/cypress/e2e/files_sharing/FilesSharingUtils.ts index d63e46914c7..bce9023e19a 100644 --- a/cypress/e2e/files_sharing/FilesSharingUtils.ts +++ b/cypress/e2e/files_sharing/FilesSharingUtils.ts @@ -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) } diff --git a/cypress/e2e/files_sharing/note-to-recipient.cy.ts b/cypress/e2e/files_sharing/note-to-recipient.cy.ts index 8bca696e95c..08fee587d9a 100644 --- a/cypress/e2e/files_sharing/note-to-recipient.cy.ts +++ b/cypress/e2e/files_sharing/note-to-recipient.cy.ts @@ -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') |