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

payfine (#1247)

Job

No job planned.

Difficulty

Spec (updated on Thu Jul 31 18:13:23 2025)

describe("patrons/payfine", 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 additional_fields (`tablename`,`name`) VALUES ('accountlines:credit','Bank name');")
                cy.query("INSERT INTO additional_fields (`tablename`,`name`) VALUES ('accountlines:credit','Check #');")
                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');")
                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');")
                cy.login();
                /* No specific padding defined */
                cy.set_cookie_lang(lang);
            });

            it("payfine", function () {
                cy.visit("/cgi-bin/koha/members/pay.pl?borrowernumber=5");
                cy.waitForPageLoad();
                cy.get("button[value^='cud-pay_indiv']").click();
                cy.get("main").should('be.visible').screenshot("payfine");
            });
        });
    });
    afterEach(function () {
        cy.query("DELETE FROM additional_fields WHERE tablename = 'accountlines:credit' AND name = 'Bank name';")
        cy.query("DELETE FROM additional_fields WHERE tablename = 'accountlines:credit' AND name = 'Check #';")
        cy.query("DELETE FROM accountlines;")
        cy.query("DELETE FROM account_offsets;")
        Cypress.env('PADDING_BEFORE_SCREENSHOT', undefined);
        if (this.currentTest.state === 'failed') {
            Cypress.env("TEST_FAILED", true);
        }
    });
});

Spec data

Page

pay.pl?borrowernumber=5

Interface

staff

Element selector

main

Missing selector

setup

sql INSERT INTO additional_fields (`tablename`,`name`) VALUES ('accountlines:credit','Bank name');
sql INSERT INTO additional_fields (`tablename`,`name`) VALUES ('accountlines:credit','Check #');
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');
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');

workflow

click button[value^='cud-pay_indiv']

teardown

sql DELETE FROM additional_fields WHERE tablename = 'accountlines:credit' AND name = 'Bank name';
sql DELETE FROM additional_fields WHERE tablename = 'accountlines:credit' AND name = 'Check #';
sql DELETE FROM accountlines;
sql DELETE FROM account_offsets;

Notes

Original image has additional fields

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 Jul 31 18:15:24 2025)

New (de)

New (el)

New (es)

New (fr)

New (zh_Hant)

Thu Jul 31 18:30:03 2025

Thu Jul 31 16:30:03 2025

Old screenshot