Job
No job planned.
Difficulty
Cancel
Spec (updated on Thu Dec 4 15:48:13 2025)
describe("cataloging/newfromframework", 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.login();
Cypress.env('PADDING_BEFORE_SCREENSHOT', "6em")
cy.set_cookie_lang(lang);
});
it("newfromframework", function () {
cy.visit("/cgi-bin/koha/cataloguing/cataloging-home.pl");
cy.waitForPageLoad();
cy.get("#toolbar > div.btn-group:nth-child(1) > button[data-bs-toggle=\"dropdown\"]").click();
cy.screenshotToolbar("#toolbar", "newfromframework");
});
});
});
afterEach(function () {
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
Y
setup
workflow
click #toolbar > div.btn-group:nth-child(1) > button[data-bs-toggle="dropdown"]
set padding=6em
set screenshot_type=toolbar
teardown
Notes
Cancel
Additional KTD data
Cancel