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

payselected-select (#1250) ❌ Not validated

Job

No job planned.

Difficulty

Spec (updated on Thu Dec 4 15:48:30 2025)

describe("patrons/payselected-select", function () {
    const languages = ['en', 'es-ES', 'fr-FR', 'de-DE', 'el-GR', 'hi', 'zh-Hant-TW'];
    languages.forEach((lang) => {
        describe(`in ${lang}`, () => {
            beforeEach(function(){
                // Skip if 'en' test failed
                if (Cypress.env("EN_TEST_FAILED")) {
                    this.skip();
                }
                cy.query("INSERT INTO accountlines (`borrowernumber`,`itemnumber`,`date`,`amount`,`description`,`debit_type_code`,`amountoutstanding`,`manager_id`,`interface`,`branchcode`) VALUES ('5','630',date(CURDATE()),'5.950000','Lost item','LOST','5.950000','51','intranet','MPL'),('5','47',date(CURDATE()),'9.950000','Lost item','LOST','9.950000','51','intranet','MPL'),('5','153',date(CURDATE()),'12.900000','Lost item','LOST','12.900000','51','intranet','MPL');")
                cy.query("INSERT INTO account_offsets (`debit_id`,`type`,`amount`) VALUES ((SELECT accountlines_id FROM accountlines WHERE borrowernumber = '5' AND itemnumber = '630' AND amount = '5.950000'),'CREATE','5.950000'),((SELECT accountlines_id FROM accountlines WHERE borrowernumber = '5' AND itemnumber = '47' AND amount = '9.950000'),'CREATE','9.950000'),((SELECT accountlines_id FROM accountlines WHERE borrowernumber = '5' AND itemnumber = '153' AND amount = '12.900000'),'CREATE','12.900000');")
                cy.login();
                /* No specific padding defined */
                cy.set_cookie_lang(lang);
            });

            it("payselected-select", function () {
                cy.visit("/cgi-bin/koha/members/pay.pl?borrowernumber=5");
                cy.waitForPageLoad();
                cy.get("main").should('be.visible').screenshot("payselected-select");
            });
        });
    });
    afterEach(function () {
        cy.query("DELETE FROM accountlines;")
        cy.query("DELETE FROM account_offsets;")
        Cypress.env('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.env("EN_TEST_FAILED", true);
        }
    });
});

Spec data

Page

pay.pl?borrowernumber=5

Interface

staff

Element selector

main

Missing selector

setup

sql INSERT INTO accountlines (`borrowernumber`,`itemnumber`,`date`,`amount`,`description`,`debit_type_code`,`amountoutstanding`,`manager_id`,`interface`,`branchcode`) VALUES ('5','630',date(CURDATE()),'5.950000','Lost item','LOST','5.950000','51','intranet','MPL'),('5','47',date(CURDATE()),'9.950000','Lost item','LOST','9.950000','51','intranet','MPL'),('5','153',date(CURDATE()),'12.900000','Lost item','LOST','12.900000','51','intranet','MPL');
sql INSERT INTO account_offsets (`debit_id`,`type`,`amount`) VALUES ((SELECT accountlines_id FROM accountlines WHERE borrowernumber = '5' AND itemnumber = '630' AND amount = '5.950000'),'CREATE','5.950000'),((SELECT accountlines_id FROM accountlines WHERE borrowernumber = '5' AND itemnumber = '47' AND amount = '9.950000'),'CREATE','9.950000'),((SELECT accountlines_id FROM accountlines WHERE borrowernumber = '5' AND itemnumber = '153' AND amount = '12.900000'),'CREATE','12.900000');

workflow


        

teardown

sql DELETE FROM accountlines;
sql DELETE FROM account_offsets;

Notes

I don't know how to select only one of the checkboxes, since the "name" changes in every run.

Additional KTD data

Thumbnails


Current Thumbnail old
New Thumbnail new
New (de)
New (el)
New (es)
New (fr)
New (hi)
New (zh_Hant)

Current

New (updated on Thu Dec 4 22:14:21 2025)

New (de)

New (el)

New (es)

New (fr)

New (hi)

New (zh_Hant)

2025-12-01 12:15:14 +0000

2025-08-01 14:00:03 +0000

2025-12-04 22:15:01 +0000

2025-12-01 12:15:14 +0000

Old screenshot