|
Lines 177-183
describe("Agreement CRUD operations", () => {
Link Here
|
| 177 |
.its('request.url') |
177 |
.its('request.url') |
| 178 |
.should('include', 'max_expiration_date='+dates["today_iso"]); // Defaults to today |
178 |
.should('include', 'max_expiration_date='+dates["today_iso"]); // Defaults to today |
| 179 |
cy.get("#max_expiration_date_filter").should("have.value", dates["today_iso"]); // Input box reflects default |
179 |
cy.get("#max_expiration_date_filter").should("have.value", dates["today_iso"]); // Input box reflects default |
| 180 |
cy.url().should('include', "/cgi-bin/koha/erm/agreements?by_expired=true"); // Browser url also updated |
180 |
cy.url().should('include', "/cgi-bin/koha/erm/agreements?by_expired=true&max_expiration_date="+dates["today_iso"]); // Browser url also updated |
| 181 |
|
181 |
|
| 182 |
// Now test that the url for this particular state works |
182 |
// Now test that the url for this particular state works |
| 183 |
cy.visit("/cgi-bin/koha/erm/agreements?by_expired=true"); |
183 |
cy.visit("/cgi-bin/koha/erm/agreements?by_expired=true"); |
| 184 |
- |
|
|