Bug 40907: Add a Cypress test
Signed-off-by: Mathieu <mathsabypro@gmail.com>
Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 7c4c013645)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
parent
1d24623414
commit
000ba6efdd
|
|
@ -189,6 +189,16 @@ describe("catalogue/detail/holdings_table with items", () => {
|
|||
new RegExp(`"me.home_library_id":\\["${library_id}"\\]`)
|
||||
);
|
||||
});
|
||||
|
||||
cy.get(`#${table_id}_wrapper input.dt-input`).clear();
|
||||
cy.wait("@searchItems");
|
||||
cy.get(`#${table_id}_wrapper input.dt-input`).type("[");
|
||||
cy.wait("@searchItems").then(interception => {
|
||||
const q = interception.request.query.q;
|
||||
expect(q).to.match(
|
||||
new RegExp(`"me.home_library_id":{"like":"%\\[%"}`)
|
||||
);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue