mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 18:21:40 -04:00
fix(test): Less flaky note-to-recipient test
Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
This commit is contained in:
parent
f3d2e53371
commit
d8dd3d6050
2 changed files with 5 additions and 1 deletions
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Reference in a new issue