Skip to content

Commit

Permalink
chore(demo-integrations): stabilize command mount for Cypress CT (#908
Browse files Browse the repository at this point in the history
)
  • Loading branch information
nsbarsukov authored Jan 16, 2024
1 parent c079052 commit 245894c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion projects/demo-integrations/src/support/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit 245894c

Please sign in to comment.