Skip to content

Commit

Permalink
Adding wait for element not in skeleton screen to prevent testing pre…
Browse files Browse the repository at this point in the history
…maturely
  • Loading branch information
clausbruun committed Apr 4, 2024
1 parent a703f67 commit e7f540e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/apps/favorites-list/favorites-list.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e7f540e

Please sign in to comment.