Skip to content

Commit

Permalink
Fix up advanced search cypress tests to match new translation string
Browse files Browse the repository at this point in the history
  • Loading branch information
Adamik10 committed Oct 7, 2023
1 parent 1469cc8 commit e74cd59
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions src/apps/advanced-search/advanced-search.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ describe("Search Result", () => {
.click()
.find("li")
.eq(1)
.should("contain", "Bog")
.should("contain", "Book")
.click();
cy.getBySel("advanced-search-material-types").first().click();
cy.getBySel("preview-section", true).should(
Expand Down Expand Up @@ -175,15 +175,10 @@ describe("Search Result", () => {
// We currently have no good way to identify selected options in the
// multiselect so checking the text of the button is the best we can do.
cy.getBySel("advanced-search-material-types")
.find("button")
.should("contain", "Bog")
.should("contain", "E-bog");
cy.getBySel("advanced-search-fiction")
.find("button")
.should("contain", "Skønlitteratur");
cy.getBySel("advanced-search-accessibility")
.find("button")
.should("contain", "Fysisk");
.should("contain", "Book")
.should("contain", "Ebook");
cy.getBySel("advanced-search-fiction").should("contain", "Fiction");
cy.getBySel("advanced-search-accessibility").should("contain", "Physical");
});

it("Should persist CQL query in url", () => {
Expand Down

0 comments on commit e74cd59

Please sign in to comment.