From 0bf744da619beebe23b613e6e9d394c674d90c66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= Date: Tue, 2 Jan 2024 12:17:13 +0100 Subject: [PATCH] Make sure delete action is visible before clicking MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- cypress/e2e/groupfoldersUtils.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/cypress/e2e/groupfoldersUtils.ts b/cypress/e2e/groupfoldersUtils.ts index 57626b19c..dfd79485a 100644 --- a/cypress/e2e/groupfoldersUtils.ts +++ b/cypress/e2e/groupfoldersUtils.ts @@ -113,6 +113,7 @@ export function enterFolderInTrashbin(name: string) { export function deleteFile(name: string) { cy.intercept({ times: 1, method: 'DELETE', url: `**/dav/files/**/${name}` }).as('delete') cy.get(`[data-cy-files-list] [data-cy-files-list-row-name="${name}"] [data-cy-files-list-row-actions]`).click() + cy.get(`[data-cy-files-list] [data-cy-files-list-row-action="delete"]`).should('be.visible') cy.get(`[data-cy-files-list] [data-cy-files-list-row-action="delete"]`).scrollIntoView() cy.get(`[data-cy-files-list] [data-cy-files-list-row-action="delete"]`).click() cy.wait('@delete').its('response.statusCode').should('eq', 204)