Skip to content

Commit

Permalink
fix: wait for bulk archive button to become enabled (#5121)
Browse files Browse the repository at this point in the history
wait for archive button to become enabled

---------

Signed-off-by: andreas-unleash <[email protected]>
  • Loading branch information
andreas-unleash authored Oct 23, 2023
1 parent 93fb615 commit 03faffa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions frontend/cypress/integration/projects/overview.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 03faffa

Please sign in to comment.