From e7f540ecebc6fe1dae4b6f00a93fc4a6517626fa Mon Sep 17 00:00:00 2001 From: clausbruun Date: Thu, 4 Apr 2024 11:54:55 +0200 Subject: [PATCH] Adding wait for element not in skeleton screen to prevent testing prematurely --- src/apps/favorites-list/favorites-list.test.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/apps/favorites-list/favorites-list.test.ts b/src/apps/favorites-list/favorites-list.test.ts index cf4b449c55..9c32bb54df 100644 --- a/src/apps/favorites-list/favorites-list.test.ts +++ b/src/apps/favorites-list/favorites-list.test.ts @@ -46,6 +46,9 @@ describe("Favorites list", () => { }); it("Favorites list basics", () => { + // Wait for element not in skeleton screen to prevent testing prematurely. + cy.get(".cover").should("be.visible"); + // 2.a. Header "Favorites" cy.get(".card-list-page").find("h1").should("have.text", "Favorites"); // Number of materials on list