Job
Difficulty
Cancel
Spec (updated on Tue Mar 24 13:31:06 2026)
describe("admin/basicparams/grouplists", 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 library_groups (id, title, ft_hide_patron_info, ft_limit_item_editing, ft_search_groups_opac, ft_search_groups_staff, ft_local_hold_group, ft_local_float_group) VALUES (1, \"Central libraries\", 0, 1, 1, 1, 1, 0), (2, \"Northest libraries\", 0, 1, 1, 1, 1, 0),(3, \"Southwest libraries\", 0, 1, 1, 1, 1, 0);")
cy.query("INSERT INTO library_groups (id, parent_id, branchcode) VALUE (4, 1, \"CPL\"), (5, 1, \"IPT\"), (6, 1, \"MPL\"), (7, 1, \"UPL\"), (8, 2, \"FFL\"), (9, 2, \"LPL\"), (10, 2, \"TPL\"), (11, 3, \"FPL\"), (12, 3, \"FRL\"), (13, 3, \"PVL\"), (14, 3, \"RPL\"), (15, 3, \"SPL\");")
cy.login();
/* No specific padding defined */
cy.set_cookie_lang(lang);
});
it("grouplists", function () {
cy.visit("/cgi-bin/koha/admin/library_groups.pl");
cy.waitForPageLoad();
cy.get("main").should('be.visible').screenshot("grouplists");
});
});
});
afterEach(function () {
cy.query("DELETE FROM library_groups WHERE id BETWEEN 1 AND 15;")
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/library_groups.pl
Interface
staff
Element selector
main
Missing selector
setup
sql INSERT INTO library_groups (id, title, ft_hide_patron_info, ft_limit_item_editing, ft_search_groups_opac, ft_search_groups_staff, ft_local_hold_group, ft_local_float_group) VALUES (1, "Central libraries", 0, 1, 1, 1, 1, 0), (2, "Northest libraries", 0, 1, 1, 1, 1, 0),(3, "Southwest libraries", 0, 1, 1, 1, 1, 0);
sql INSERT INTO library_groups (id, parent_id, branchcode) VALUE (4, 1, "CPL"), (5, 1, "IPT"), (6, 1, "MPL"), (7, 1, "UPL"), (8, 2, "FFL"), (9, 2, "LPL"), (10, 2, "TPL"), (11, 3, "FPL"), (12, 3, "FRL"), (13, 3, "PVL"), (14, 3, "RPL"), (15, 3, "SPL");
workflow
teardown
sql DELETE FROM library_groups WHERE id BETWEEN 1 AND 15;
Notes
Cancel
Additional KTD data
Cancel