Job
No job planned.
Difficulty
Cancel
Spec (updated on Thu Dec 4 15:48:10 2025)
describe("cataloging/catalogingbuttons", 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.set_syspref("EnableAdvancedCatalogingEditor", "1");
cy.login();
/* No specific padding defined */
cy.set_cookie_lang(lang);
});
it("catalogingbuttons", function () {
cy.visit("/cgi-bin/koha/cataloguing/cataloging-home.pl");
cy.waitForPageLoad();
cy.get("#toolbar").should('be.visible').screenshot("catalogingbuttons");
});
});
});
afterEach(function () {
cy.set_syspref("EnableAdvancedCatalogingEditor", "0");
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
cataloguing/cataloging-home.pl
Interface
staff
Element selector
#toolbar
Missing selector
setup
set_syspref EnableAdvancedCatalogingEditor=1
workflow
teardown
set_syspref EnableAdvancedCatalogingEditor=0
Notes
Cancel
Additional KTD data
Cancel