You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-28 15:22:05 +03:00
Improve percy snapshot stability (#10239)
This commit is contained in:
committed by
GitHub
parent
12dd799301
commit
c22971e542
@ -41,7 +41,9 @@ declare global {
|
||||
Cypress.Commands.add("percySnapshotElement", { prevSubject: "element" }, (subject, name, options) => {
|
||||
if (!options?.allowSpinners) {
|
||||
// Await spinners to vanish
|
||||
cy.get(".mx_Spinner").should("not.exist");
|
||||
cy.get(".mx_Spinner", { log: false }).should("not.exist");
|
||||
// But like really no more spinners please
|
||||
cy.get(".mx_Spinner", { log: false }).should("not.exist");
|
||||
}
|
||||
cy.percySnapshot(name, {
|
||||
domTransformation: (documentClone) => scope(documentClone, subject.selector),
|
||||
|
Reference in New Issue
Block a user