mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-05 17:53:12 +02: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:
parent
93fb615841
commit
03faffa1d6
@ -151,9 +151,16 @@ describe('project overview', () => {
|
|||||||
});
|
});
|
||||||
cy.get(selectAll).click();
|
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`)
|
cy.get(`[data-testid=${BATCH_ACTIONS_BAR}] button`)
|
||||||
.contains('Archive')
|
.contains('Archive')
|
||||||
.click();
|
.click();
|
||||||
|
|
||||||
cy.get('p')
|
cy.get('p')
|
||||||
.contains('Are you sure you want to archive ')
|
.contains('Are you sure you want to archive ')
|
||||||
.should('exist');
|
.should('exist');
|
||||||
|
Loading…
Reference in New Issue
Block a user