Login

Screenshots for the Koha manual

New screenshots | All screenshots | Full test results | Manuals (wip)
en ar cs de el es fr fr_CA hi it pt pt_BR sk sv tr zh_Hant

Image details

checkoutpatron-alwaysshow (#800)

Job

No job planned.

Difficulty

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

Additional KTD data

Thumbnails


Old Thumbnail old
New Thumbnail new
New (de)
New (el)
New (es)
New (fr)
New (zh_Hant)

Old

New (updated on Thu Aug 7 20:58:18 2025)

New (de)

New (el)

New (es)

New (fr)

New (zh_Hant)

Thu Aug 7 21:00:04 2025

Old screenshot