From 09b439c956234fe2ac032e80e27c58a417878dc0 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 --- 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.37.1 (Apple Git-137.1)