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:
parent
93fb615841
commit
03faffa1d6
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user