Job
Difficulty
Cancel
Spec (updated on Tue Mar 24 13:50:01 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.env("EN_TEST_FAILED")) {
this.skip();
}
cy.query("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.query("DELETE FROM itemtypes WHERE itemtype IN (\"DVD\", \"BLU\");")
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
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
Cancel
Additional KTD data
Cancel