diff options
author | skjnldsv <skjnldsv@protonmail.com> | 2025-08-02 19:37:46 +0200 |
---|---|---|
committer | skjnldsv <skjnldsv@protonmail.com> | 2025-08-02 19:39:31 +0200 |
commit | 196c9fb2e844b00d9fae8660604a0806d3bace3e (patch) | |
tree | 49a8e697b347b57557ee3893f1347bc63d509ff7 | |
parent | f3d2e533712322ff2ca3e411a1dcd3921d1874b4 (diff) | |
download | nextcloud-server-fix/note-to-recipient.tar.gz nextcloud-server-fix/note-to-recipient.zip |
fix(cypress): wait for files to show menufix/note-to-recipient
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
-rw-r--r-- | cypress/e2e/files/FilesUtils.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cypress/e2e/files/FilesUtils.ts b/cypress/e2e/files/FilesUtils.ts index b138d161600..707f246335d 100644 --- a/cypress/e2e/files/FilesUtils.ts +++ b/cypress/e2e/files/FilesUtils.ts @@ -48,7 +48,8 @@ export const triggerActionForFileId = (fileid: number, actionId: string) => { // Even if it's inline, we open the action menu to get all actions visible getActionButtonForFileId(fileid).click({ force: true }) // wait for the actions menu to be visible - cy.findByRole('menu').findAllByRole('menuitem').first().should('be.visible') + cy.findByRole('menu', { timeout: 5000 }) + .findAllByRole('menuitem', { timeout: 5000 }).first().should('be.visible') getActionEntryForFileId(fileid, actionId) .find('button').last().as('actionButton') .scrollIntoView() @@ -60,7 +61,8 @@ export const triggerActionForFile = (filename: string, actionId: string) => { // Even if it's inline, we open the action menu to get all actions visible getActionButtonForFile(filename).click({ force: true }) // wait for the actions menu to be visible - cy.findByRole('menu').findAllByRole('menuitem').first().should('be.visible') + cy.findByRole('menu', { timeout: 5000 }) + .findAllByRole('menuitem', { timeout: 5000 }).first().should('be.visible') getActionEntryForFile(filename, actionId) .find('button').last().as('actionButton') .scrollIntoView() |