From 269d6f644480d89e7752e58d299b678dcef93617 Mon Sep 17 00:00:00 2001 From: Matt Blenkinsop Date: Wed, 31 Jan 2024 16:36:27 +0000 Subject: [PATCH] Bug 35940: Close modal before typing Tests currently fail due to a modal remaining open. This patch closes the modal to make the tests pass Signed-off-by: Katrin Fischer --- t/cypress/integration/Preservation/Trains.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/t/cypress/integration/Preservation/Trains.ts b/t/cypress/integration/Preservation/Trains.ts index 253864b61f..03cb7ba236 100644 --- a/t/cypress/integration/Preservation/Trains.ts +++ b/t/cypress/integration/Preservation/Trains.ts @@ -645,6 +645,7 @@ describe("Trains", () => { cy.get("main div[class='dialog alert modal']").contains( "2 new items added. 1 items not found." ); + cy.get("#close_modal").click(); cy.contains("Add last 2 items to a train").click(); cy.get("#train_id .vs__search").type(train.name + "{enter}"); cy.intercept("GET", "/api/v1/items*", { -- 2.39.5