diff --git a/cypress/e2e/searchAndFilter.cy.js b/cypress/e2e/searchAndFilter.cy.js index c4f5240..23db09f 100644 --- a/cypress/e2e/searchAndFilter.cy.js +++ b/cypress/e2e/searchAndFilter.cy.js @@ -20,10 +20,18 @@ describe("search and filter", () => { }) it("search works after switching language", () => { + cy.intercept("/w3id.org/search/en/prefLabel.cfg.json").as("cfg") + cy.intercept("/w3id.org/search/en/prefLabel.ctx.json").as("ctx") + cy.intercept("/w3id.org/search/en/prefLabel.map.json").as("map") + cy.intercept("/w3id.org/search/en/reg.json").as("reg") + cy.intercept("/w3id.org/search/en/prefLabel.tag.json").as("tag") + cy.intercept("/w3id.org/search/en/prefLabel.store.json").as("store") + // cy.intercept("/w3id.org/index.en.html/page-data.json").as("pageData") cy.visit("/w3id.org/index.de.html") cy.contains("en").click() + cy.wait(["@ctx", "@cfg", "@map", "@reg", "@tag", "@store"]) cy.get(".currentLanguage").contains("en").should("exist") // cy.get("span").contains("Konzept 1").should("not.exist") cy.get("span", { timeout: 10000 }).contains("Concept 1").should("exist")