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

cashregisters (#83)

Job

No job planned.

Difficulty

Hard

Spec (updated on Wed Jun 18 10:03:22 2025)

describe("admin/accounting/cashregisters", function () {
    const languages = ['en', 'es-ES', 'fr-FR'];
    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 cash_registers (name, description, branch, branch_default, starting_float) VALUES (\"Fairfield\", \"\", \"FFL\", 0, 100), (\"Fairview\", \"\", \"FFL\", 0, 50), (\"Centreville2\", \"Circulation desk\", \"FFL\", 1, 250), (\"Centreville1\", \"Registration\", \"FFL\", 0, 100)")
                cy.login();
                /* No specific padding defined */
                cy.set_cookie_lang(lang);
            });

            it("cashregisters", function () {
                cy.set_syspref("UseCashRegisters", "Use");
                cy.visit("/cgi-bin/koha/admin/cash_registers.pl");
                cy.waitForPageLoad();
                cy.get("main").should('be.visible').screenshot("cashregisters");
            });
        });
    });
    afterEach(function () {
        cy.query("DELETE FROM cash_registers WHERE name=\"Fairfield\" OR name=\"Fairview\" OR name=\"Centreville2\" or name=\"Centreville1\"")
        Cypress.env('PADDING_BEFORE_SCREENSHOT', undefined);
        if (this.currentTest.state === 'failed') {
            Cypress.env("TEST_FAILED", true);
        }
    });
});

Spec data

Page

cash_registers.pl

Interface

staff

Element selector

main

Missing selector

N

setup

sql INSERT INTO cash_registers (name, description, branch, branch_default, starting_float) VALUES ("Fairfield", "", "FFL", 0, 100), ("Fairview", "", "FFL", 0, 50), ("Centreville2", "Circulation desk", "FFL", 1, 250), ("Centreville1", "Registration", "FFL", 0, 100)

workflow

set_syspref UseCashRegisters=Use

teardown

sql DELETE FROM cash_registers WHERE name="Fairfield" OR name="Fairview" OR name="Centreville2" or name="Centreville1"

Notes

Additional KTD data

Needs some predefined cash registers for different branches.

Enable UseCashRegisters, go to Administration > Cash registers > New cash registers, add cash registers

Old

New (updated on Wed Jun 18 10:04:54 2025)

New (es)

New (fr)