From 513eb0f83d6c6fdef7ec7d3ff688fcf0f7ceb6a0 Mon Sep 17 00:00:00 2001 From: Suguru Hirahara Date: Tue, 28 Mar 2023 03:02:34 +0900 Subject: [PATCH] Improve Percy snapshot stability more - await inline spinners to vanish (#10452) Signed-off-by: Suguru Hirahara --- cypress/support/percy.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cypress/support/percy.ts b/cypress/support/percy.ts index 9183d5ebf6..ae35248789 100644 --- a/cypress/support/percy.ts +++ b/cypress/support/percy.ts @@ -44,6 +44,8 @@ Cypress.Commands.add("percySnapshotElement", { prevSubject: "element" }, (subjec 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"); + // Await inline spinners to vanish + cy.get(".mx_InlineSpinner", { log: false }).should("not.exist"); } cy.percySnapshot(name, { domTransformation: (documentClone) => scope(documentClone, subject.selector),