Login

Screenshots for the Koha manual

New screenshots | All screenshots | Full test results | Manuals (wip)
en de el es fr hi zh_Hant

Image details

batchmodifyholdsactions (#3613) ❌ Not validated

Job

Difficulty

Hard

Spec (updated on Thu Oct 15 19:44:52 2026)

describe("tools/batchholds/batchmodifyholdsactions", function () {
    const languages = ['en'];
    languages.forEach((lang) => {
        describe(`in ${lang}`, () => {
            beforeEach(function(){
                // Skip if 'en' test failed
                if (Cypress.expose("EN_TEST_FAILED")) {
                    this.skip();
                }
                cy.task("query", {sql: "insert into reserves (reserve_id, borrowernumber, reservedate, biblionumber, itemnumber, branchcode, priority, found, suspend) values (1, 5, '2026-10-15', 262, NULL, 'CPL', 1, NULL, 0);"});
                cy.task("query", {sql: "insert into reserves (reserve_id, borrowernumber, reservedate, biblionumber, itemnumber, branchcode, priority, found, suspend) values (2, 19, '2026-10-15', 145, NULL, 'CPL', 1, NULL, 0);"});
                cy.login();
                /* No specific padding defined */
                cy.set_cookie_lang(lang);
            });

            it("batchmodifyholdsactions", function () {
                cy.visit("/cgi-bin/koha/tools/batch_modify_holds.pl");
                cy.waitForPageLoad();
                cy.get("#modify_holds_form input[value=\"Search\"]").click();
                cy.wait(2000)
                cy.get("main").should('be.visible').screenshot("batchmodifyholdsactions");
            });
        });
    });
    afterEach(function () {
        cy.task("query", {sql: "delete from reserves;"});
        Cypress.expose('PADDING_BEFORE_SCREENSHOT', undefined);
        // Set EN_TEST_FAILED if the 'en' test failed
        if (this.currentTest.parent.title.includes('in en') && this.currentTest.state === 'failed') {
            Cypress.expose("EN_TEST_FAILED", true);
        }
    });
});

Spec data

Page

tools/batch_modify_holds.pl

Interface

staff

Element selector

main

Missing selector

Y

setup

sql insert into reserves (reserve_id, borrowernumber, reservedate, biblionumber, itemnumber, branchcode, priority, found, suspend) values (1, 5, '2026-10-15', 262, NULL, 'CPL', 1, NULL, 0);
sql insert into reserves (reserve_id, borrowernumber, reservedate, biblionumber, itemnumber, branchcode, priority, found, suspend) values (2, 19, '2026-10-15', 145, NULL, 'CPL', 1, NULL, 0);

workflow

click #modify_holds_form input[value="Search"]
cypress cy.wait(2000)

teardown

sql delete from reserves;

Notes

Additional KTD data

Thumbnails


Current Thumbnail old
New Thumbnail new

Current

New (updated on Thu Oct 15 19:45:35 2026)

2026-10-15 20:00:01 +0000

2026-10-15 19:45:03 +0000

2026-10-15 19:15:03 +0000

2026-10-15 18:45:03 +0000

Old screenshot