From e74cd59572ac15ce01fb0b1141094f46d4810d55 Mon Sep 17 00:00:00 2001 From: Adam Antal Date: Sat, 7 Oct 2023 18:50:30 +0200 Subject: [PATCH] Fix up advanced search cypress tests to match new translation string --- src/apps/advanced-search/advanced-search.test.ts | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/src/apps/advanced-search/advanced-search.test.ts b/src/apps/advanced-search/advanced-search.test.ts index 42939b35e4..0e3b13d4db 100644 --- a/src/apps/advanced-search/advanced-search.test.ts +++ b/src/apps/advanced-search/advanced-search.test.ts @@ -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( @@ -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", () => {