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

circsummary (#807)

Job

No job planned.

Difficulty

Hard

Spec (updated on Thu Jul 24 10:53:46 2025)

describe("circ/circsummary", 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 (19, 278, ADDDATE(NOW(), INTERVAL 3 DAY), \"CPL\", ADDDATE(NOW(), INTERVAL -7 day))")
                cy.query("INSERT INTO issues (borrowernumber, itemnumber, date_due, branchcode, issuedate) VALUES (19, 308, ADDDATE(NOW(), INTERVAL 3 DAY), \"CPL\", ADDDATE(NOW(), INTERVAL -7 day))")
                cy.query("INSERT INTO issues (borrowernumber, itemnumber, date_due, branchcode, issuedate) VALUES (19, 155, ADDDATE(NOW(), INTERVAL 3 DAY), \"CPL\", ADDDATE(NOW(), INTERVAL -7 day))")
                cy.login();
                /* No specific padding defined */
                cy.set_cookie_lang(lang);
            });

            it("circsummary", function () {
                cy.visit("/cgi-bin/koha/circ/circulation.pl?borrowernumber=19");
                cy.waitForPageLoad();
                cy.get("#issues-table-load-now-button").click();
                cy.wait_for_ajax();
                cy.get("main").should('be.visible').screenshot("circsummary");
            });
        });
    });
    afterEach(function () {
        cy.query("DELETE FROM issues WHERE borrowernumber=19 AND itemnumber=278")
        cy.query("DELETE FROM issues WHERE borrowernumber=19 AND itemnumber=308")
        cy.query("DELETE FROM issues WHERE borrowernumber=19 AND itemnumber=155")
        Cypress.env('PADDING_BEFORE_SCREENSHOT', undefined);
        if (this.currentTest.state === 'failed') {
            Cypress.env("TEST_FAILED", true);
        }
    });
});

Spec data

Page

circulation.pl?borrowernumber=19

Interface

staff

Element selector

main

Missing selector

N

setup

sql INSERT INTO issues (borrowernumber, itemnumber, date_due, branchcode, issuedate) VALUES (19, 278, ADDDATE(NOW(), INTERVAL 3 DAY), "CPL", ADDDATE(NOW(), INTERVAL -7 day))
sql INSERT INTO issues (borrowernumber, itemnumber, date_due, branchcode, issuedate) VALUES (19, 308, ADDDATE(NOW(), INTERVAL 3 DAY), "CPL", ADDDATE(NOW(), INTERVAL -7 day))
sql INSERT INTO issues (borrowernumber, itemnumber, date_due, branchcode, issuedate) VALUES (19, 155, ADDDATE(NOW(), INTERVAL 3 DAY), "CPL", ADDDATE(NOW(), INTERVAL -7 day))

workflow

click #issues-table-load-now-button
wait_for_ajax

teardown

sql DELETE FROM issues WHERE borrowernumber=19 AND itemnumber=278
sql DELETE FROM issues WHERE borrowernumber=19 AND itemnumber=308
sql DELETE FROM issues WHERE borrowernumber=19 AND itemnumber=155

Notes

In some languages the screenshot is cut off at the right due to the length of the table.

Additional KTD data

Thumbnails


Old Thumbnail old
New Thumbnail new
New (es)
New (fr)

Old

New (updated on Thu Jul 24 10:56:00 2025)

New (es)

New (fr)

Thu Jul 24 11:00:03 2025

Old screenshot