Skip to content

Commit

Permalink
removing interceptors, since this did not work as well
Browse files Browse the repository at this point in the history
adding a wait after the click like recommended here https://stackoverflow.com/a/76435762
  • Loading branch information
sroertgen committed Aug 31, 2023
1 parent 76756d9 commit a1c543c
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions cypress/e2e/searchAndFilter.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,10 @@ 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.contains("en").click().wait(0) // eslint-disable-line

cy.wait(["@ctx", "@cfg", "@map", "@reg", "@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")
Expand Down

0 comments on commit a1c543c

Please sign in to comment.