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

alldebittypes (#14) ❌ Not validated

Job

No job planned.

Difficulty

Easy

Spec (updated on Wed Jul 23 15:04:08 2025)

describe("admin/accounting/alldebittypes", 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.login();
                /* No specific padding defined */
                cy.set_cookie_lang(lang);
            });

            it("alldebittypes", function () {
                cy.visit("/cgi-bin/koha/admin/debit_types.pl");
                cy.waitForPageLoad();
                cy.get("#filter_system").click();
                cy.get("main").should('be.visible').screenshot("alldebittypes");
            });
        });
    });
    afterEach(function () {
        Cypress.env('PADDING_BEFORE_SCREENSHOT', undefined);
        if (this.currentTest.state === 'failed') {
            Cypress.env("TEST_FAILED", true);
        }
    });
});

Spec data

Page

debit_types.pl

Interface

staff

Element selector

main

Missing selector

N

setup


        

workflow

click #filter_system

teardown


    

Notes

With sample data

Joubu: This is failing because of https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39810#c5

Additional KTD data

Test failure

TypeError: The following error originated from your application code, not from Cypress.

  > Cannot read properties of undefined (reading 'style')

When Cypress detects uncaught errors originating from your application it will automatically fail the current test.

This behavior is configurable, and you can choose to turn this off by listening to the `uncaught:exception` event.

https://on.cypress.io/uncaught-exception-from-application
    at HTMLDocument.<anonymous> (http://kohadev-intra.mydnsname.org:8081/cgi-bin/koha/admin/debit_types.pl:2365:40)
    at e (http://kohadev-intra.mydnsname.org:8081/intranet-tmpl/lib/jquery/jquery-3.6.0.min_24.1200045.js:2:30038)
    at t (http://kohadev-intra.mydnsname.org:8081/intranet-tmpl/lib/jquery/jquery-3.6.0.min_24.1200045.js:2:30340)
    at o (http://kohadev-intra.mydnsname.org:8081/cgi-bin/koha/admin/debit_types.pl:41:452)
    at <unknown> (http://kohadev-intra.mydnsname.org:8081/cgi-bin/koha/admin/debit_types.pl:41:825)

Thumbnails


Old Thumbnail old

Old

Old screenshot