Job
No job planned.
Difficulty
Hard
Cancel
Spec (updated on Fri Jul 25 12:32:38 2025)
describe("cataloging/advancedcataloging", function () {
const languages = ['en', 'es-ES', 'fr-FR', 'de-DE', 'el-GR', 'zh-Hant-TW'];
languages.forEach((lang) => {
describe(`in ${lang}`, () => {
beforeEach(function(){
// If previous test failed, skip this one
if (Cypress.env("TEST_FAILED")) {
this.skip();
}
cy.set_syspref("EnableAdvancedCatalogingEditor", "1");
cy.login();
/* No specific padding defined */
cy.set_cookie_lang(lang);
});
it("advancedcataloging", function () {
cy.visit("/cgi-bin/koha/cataloguing/editor.pl#catalog/285");
cy.waitForPageLoad();
cy.wait_for_ajax();
cy.get(".cm-tagnumber").should('be.visible');
cy.get("main").should('be.visible').screenshot("advancedcataloging");
});
});
});
afterEach(function () {
cy.set_syspref("EnableAdvancedCatalogingEditor", "0");
Cypress.env('PADDING_BEFORE_SCREENSHOT', undefined);
if (this.currentTest.state === 'failed') {
Cypress.env("TEST_FAILED", true);
}
});
});
Spec data
Page
cataloguing/editor.pl#catalog/285
Interface
staff
Element selector
main
Missing selector
N
setup
set_syspref EnableAdvancedCatalogingEditor=1
workflow
wait_for_ajax
wait_for_visible .cm-tagnumber
teardown
set_syspref EnableAdvancedCatalogingEditor=0
Notes
Needs the search bar to the left. The original screenshot is from importing a title, not from cataloging an existing title.
Cancel
Additional KTD data
Cancel