Job
No job planned.
Difficulty
Cancel
Spec (updated on Thu Aug 7 20:56:25 2025)
describe("circ/checkoutpatron-alwaysshow", function () {
const languages = ['en', 'es-ES', 'fr-FR', 'de-DE', 'el-GR', 'zh-Hant-TW'];
languages.forEach((lang) => {
describe(`in ${lang}`, () => {
beforeEach(function(){
// If previous test failed, skip this one
if (Cypress.env("TEST_FAILED")) {
this.skip();
}
cy.query("INSERT INTO issues (`borrowernumber`,`itemnumber`,`date_due`,`branchcode`,`issuedate`) VALUES ('5','47', CONCAT(DATE_SUB(CURDATE(), INTERVAL 5 DAY), ' 23:59:00'),'MPL', DATE_SUB(NOW(), INTERVAL 15 DAY)), ('5','153', CONCAT(CURDATE(), ' 23:59:00'),'MPL', DATE_SUB(NOW(), INTERVAL 10 DAY)), ('5','279', CONCAT(CURDATE(), ' 23:59:00'),'MPL', DATE_SUB(NOW(), INTERVAL 10 DAY)), ('5','630', CONCAT(DATE_ADD(CURDATE(), INTERVAL 3 DAY), ' 23:59:00'),'MPL', DATE_SUB(NOW(), INTERVAL 7 DAY));")
cy.login();
/* No specific padding defined */
cy.set_cookie_lang(lang);
});
it("checkoutpatron-alwaysshow", function () {
cy.visit("/cgi-bin/koha/circ/circulation.pl?borrowernumber=5");
cy.waitForPageLoad();
cy.get("#issues-table-load-immediately").check();
cy.get(".main").should('be.visible').screenshot("checkoutpatron-alwaysshow");
});
});
});
afterEach(function () {
cy.query("DELETE FROM issues;")
Cypress.env('PADDING_BEFORE_SCREENSHOT', undefined);
if (this.currentTest.state === 'failed') {
Cypress.env("TEST_FAILED", true);
}
});
});
Spec data
Page
circ/circulation.pl?borrowernumber=5
Interface
staff
Element selector
.main
Missing selector
setup
sql INSERT INTO issues (`borrowernumber`,`itemnumber`,`date_due`,`branchcode`,`issuedate`) VALUES ('5','47', CONCAT(DATE_SUB(CURDATE(), INTERVAL 5 DAY), ' 23:59:00'),'MPL', DATE_SUB(NOW(), INTERVAL 15 DAY)), ('5','153', CONCAT(CURDATE(), ' 23:59:00'),'MPL', DATE_SUB(NOW(), INTERVAL 10 DAY)), ('5','279', CONCAT(CURDATE(), ' 23:59:00'),'MPL', DATE_SUB(NOW(), INTERVAL 10 DAY)), ('5','630', CONCAT(DATE_ADD(CURDATE(), INTERVAL 3 DAY), ' 23:59:00'),'MPL', DATE_SUB(NOW(), INTERVAL 7 DAY));
workflow
check #issues-table-load-immediately
teardown
sql DELETE FROM issues;
Notes
Cancel
Additional KTD data
Cancel