From 03faffa1d608d6a4bc4ea3f4044c1093fe6b271c Mon Sep 17 00:00:00 2001 From: andreas-unleash Date: Mon, 23 Oct 2023 14:46:59 +0300 Subject: [PATCH] fix: wait for bulk archive button to become enabled (#5121) wait for archive button to become enabled --------- Signed-off-by: andreas-unleash --- frontend/cypress/integration/projects/overview.spec.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/frontend/cypress/integration/projects/overview.spec.ts b/frontend/cypress/integration/projects/overview.spec.ts index 93fa1cdade..72e712ac4c 100644 --- a/frontend/cypress/integration/projects/overview.spec.ts +++ b/frontend/cypress/integration/projects/overview.spec.ts @@ -151,9 +151,16 @@ describe('project overview', () => { }); cy.get(selectAll).click(); + // Ensure button is enabled + cy.get(`[data-testid=${BATCH_ACTIONS_BAR}] button`) + .contains('Archive') + .should('not.have.attr', 'disabled'); + + // Separate click action cy.get(`[data-testid=${BATCH_ACTIONS_BAR}] button`) .contains('Archive') .click(); + cy.get('p') .contains('Are you sure you want to archive ') .should('exist');