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

parentitemtype (#269) ❌ Not validated

Job

Difficulty

Spec (updated on Thu Aug 27 12:11:52 2026)

describe("admin/basicparams/parentitemtype", 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.expose("EN_TEST_FAILED")) {
                    this.skip();
                }
                cy.task("query", {sql: "INSERT INTO itemtypes (itemtype, parent_type, description) VALUE (\"DVD\", NULL, \"DVD\"), (\"BLU\", \"DVD\", \"Blueray\");"});
                cy.login();
                /* No specific padding defined */
                cy.set_cookie_lang(lang);
            });

            it("parentitemtype", function () {
                cy.visit("/cgi-bin/koha/admin/itemtypes.pl");
                cy.waitForPageLoad();
                cy.get("#dt-search-0").type("DVD");
                cy.get("main").should('be.visible').screenshot("parentitemtype");
            });
        });
    });
    afterEach(function () {
        cy.task("query", {sql: "DELETE FROM itemtypes WHERE itemtype IN (\"DVD\", \"BLU\");"});
        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

admin/itemtypes.pl

Interface

staff

Element selector

main

Missing selector

N

setup

sql INSERT INTO itemtypes (itemtype, parent_type, description) VALUE ("DVD", NULL, "DVD"), ("BLU", "DVD", "Blueray");

workflow

type #dt-search-0=DVD

teardown

sql DELETE FROM itemtypes WHERE itemtype IN ("DVD", "BLU");

Notes

Additional KTD data

Test failure

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

  > ResizeObserver loop completed with undelivered notifications.

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

Because this error occurred during a `after each` hook we are skipping the remaining tests in the current suite: `admin/basicparams/parentite...`
  at <unknown> (http://kohadev-intra.mydnsname.org:8081/cgi-bin/koha/admin/itemtypes.pl:0:0)

Thumbnails


Current Thumbnail old

Current

2026-03-24 14:00:03 +0000

Old screenshot