1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

fix: wait for bulk archive button to become enabled (#5121)

wait for archive button to become enabled

---------

Signed-off-by: andreas-unleash <andreas@getunleash.ai>
This commit is contained in:
andreas-unleash 2023-10-23 14:46:59 +03:00 committed by GitHub
parent 93fb615841
commit 03faffa1d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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');