Commit 6895f08d authored by Magnus Westergaard's avatar Magnus Westergaard
Browse files

DEICH-5721: Update e2e-tests to ignore invisible elements.

parent 81e3d59b
......@@ -62,8 +62,8 @@ describe("Deichman.no - smoketest (uten innlogging)", () => {
cy.wait("@getServices")
cy.url().should("include", "vi-tilbyr")
cy.get("[data-cy=service-search-results]").within(() => {
cy.get("[data-cy=card-grid]").should("have.length", 2)
cy.get("[data-cy=card-title]").should("have.length", 4)
cy.get("[data-cy=card-grid]:visible").should("have.length", 2)
cy.get("[data-cy=card-title]:visible").should("have.length", 4)
})
// "Digitalt" listing
......@@ -76,9 +76,9 @@ describe("Deichman.no - smoketest (uten innlogging)", () => {
cy.url().should("include", "digitalt")
cy.get("[data-cy=event-title]").should("have.length", 1)
cy.get("[data-cy=service-search-results]").within(() => {
cy.get("[data-cy=card-grid]").should("have.length", 1)
cy.get("[data-cy=card-title]").should("have.length", 2)
cy.get("[data-cy=card-title]").eq(1).click()
cy.get("[data-cy=card-grid]:visible").should("have.length", 1)
cy.get("[data-cy=card-title]:visible").should("have.length", 2)
cy.get("[data-cy=card-title]:visible").eq(1).click()
})
// service landing page
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment