Lines 170-179
describe("Agreement CRUD operations", () => {
Link Here
|
170 |
.its('request.url') |
170 |
.its('request.url') |
171 |
.should('include', 'max_expiration_date='+dates["today_iso"]); // Defaults to today |
171 |
.should('include', 'max_expiration_date='+dates["today_iso"]); // Defaults to today |
172 |
cy.get("#max_expiration_date_filter").should("have.value", dates["today_iso"]); // Input box reflects default |
172 |
cy.get("#max_expiration_date_filter").should("have.value", dates["today_iso"]); // Input box reflects default |
173 |
cy.url().should('include', "/cgi-bin/koha/erm/agreements?by_expired=true"); // Browser url also updated |
173 |
cy.url().should('include', "/cgi-bin/koha/erm/agreements?by_expired=true&max_expiration_date="+dates["today_iso"]); // Browser url also updated |
174 |
|
174 |
|
175 |
// Now test that the url for this particular state works |
175 |
// Now test that the url for this particular state works |
176 |
cy.visit("/cgi-bin/koha/erm/agreements?by_expired=true"); |
176 |
cy.visit("/cgi-bin/koha/erm/agreements?by_expired=true&max_expiration_date="+dates["today_iso"]); |
177 |
cy.wait('@getActiveAgreements').its('request.url').should('include', 'max_expiration_date='+dates["today_iso"]); |
177 |
cy.wait('@getActiveAgreements').its('request.url').should('include', 'max_expiration_date='+dates["today_iso"]); |
178 |
|
178 |
|
179 |
// Now test with a user entered date |
179 |
// Now test with a user entered date |
180 |
- |
|
|