1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-05-22 01:16:07 +02:00

Wait for animations in this specific case

This commit is contained in:
Gastón Fournier 2025-03-11 10:30:37 +01:00
parent 5ce6ca59f5
commit f4a7819ad1
No known key found for this signature in database
GPG Key ID: AF45428626E17A8E

View File

@ -165,7 +165,10 @@ export const addFlexibleRolloutStrategyToFeature_UI = (
cy.get('[data-testid=ADD_CONSTRAINT_ID]').click(); cy.get('[data-testid=ADD_CONSTRAINT_ID]').click();
cy.get('[data-testid=DIALOGUE_CONFIRM_ID]').click(); cy.get('[data-testid=DIALOGUE_CONFIRM_ID]').click();
} }
cy.get(`[data-testid=STRATEGY_FORM_SUBMIT_ID]`).first().click(); // this one needs to wait until the dropdown selector of stickiness is set, that's why waitForAnimations: true
cy.get(`[data-testid=STRATEGY_FORM_SUBMIT_ID]`)
.first()
.click({ waitForAnimations: true });
return cy.wait('@addStrategyToFeature'); return cy.wait('@addStrategyToFeature');
}; };
@ -213,7 +216,10 @@ export const updateFlexibleRolloutStrategy_UI = (
}, },
).as('updateStrategy'); ).as('updateStrategy');
cy.get(`[data-testid=STRATEGY_FORM_SUBMIT_ID]`).first().click(); // this one needs to wait until the dropdown selector of stickiness is set, that's why waitForAnimations: true
cy.get(`[data-testid=STRATEGY_FORM_SUBMIT_ID]`)
.first()
.click({ waitForAnimations: true });
return cy.wait('@updateStrategy'); return cy.wait('@updateStrategy');
}; };
@ -288,7 +294,10 @@ export const addUserIdStrategyToFeature_UI = (
}, },
).as('addStrategyToFeature'); ).as('addStrategyToFeature');
cy.get(`[data-testid=STRATEGY_FORM_SUBMIT_ID]`).first().click(); // this one needs to wait until the dropdown selector of stickiness is set, that's why waitForAnimations: true
cy.get(`[data-testid=STRATEGY_FORM_SUBMIT_ID]`)
.first()
.click({ waitForAnimations: true });
return cy.wait('@addStrategyToFeature'); return cy.wait('@addStrategyToFeature');
}; };