From 7ab27dc305dcfd0b63cc130c94e51374772e4af2 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 --- 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 8a1dfc9148..0c65f3d2b9 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.30.2