Improve Percy snapshot stability more - await inline spinners to vanish (#10452)
Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>pull/28788/head^2
							parent
							
								
									0fcb9d6a3e
								
							
						
					
					
						commit
						513eb0f83d
					
				| 
						 | 
				
			
			@ -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),
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue