From f1bc806aded893241f0a7990a9911f99a8aeadf1 Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Fri, 21 Apr 2023 12:53:15 +0000 Subject: [PATCH] Bug 33490: Add test Signed-off-by: Jonathan Druart Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 80d73b87c45ddcfbb75c38a6e51506330da9ece7) Signed-off-by: Matt Blenkinsop --- t/cypress/integration/ERM/Agreements_spec.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/t/cypress/integration/ERM/Agreements_spec.ts b/t/cypress/integration/ERM/Agreements_spec.ts index 61db7af146..89111e1ab1 100644 --- a/t/cypress/integration/ERM/Agreements_spec.ts +++ b/t/cypress/integration/ERM/Agreements_spec.ts @@ -193,6 +193,12 @@ describe("Agreement CRUD operations", () => { cy.visit("/cgi-bin/koha/erm/agreements?by_expired=true&max_expiration_date="+dates["tomorrow_iso"]); cy.wait('@getActiveAgreements').its('request.url').should('include', 'max_expiration_date='+dates["tomorrow_iso"]); + // Verify that the date input is automatically filled if "by_expired" ticked but date is empty + cy.get("#max_expiration_date_filter+input").clear(); + cy.get("#expired_filter").check(); + cy.get("#filter_table").click(); + cy.get("#max_expiration_date_filter").should('have.value', dates["today_iso"]); + // Test filter button with show mine_only ticked }); -- 2.39.2