diff --git a/projects/demo-integrations/src/support/component.ts b/projects/demo-integrations/src/support/component.ts index 5e43b15cd..d72194f68 100644 --- a/projects/demo-integrations/src/support/component.ts +++ b/projects/demo-integrations/src/support/component.ts @@ -12,4 +12,9 @@ declare global { } } -Cypress.Commands.add('mount', mount); +export const stableMount: typeof mount = (...mountArgs) => + mount(...mountArgs).then(async mountResponse => + mountResponse.fixture.whenStable().then(() => mountResponse), + ); + +Cypress.Commands.add('mount', stableMount);