Job
No job planned.
Difficulty
Easy
Medium
Hard
Impossible with Cypress Studio
Cancel
Spec (updated on Thu Dec 4 15:48:15 2025)
describe("cataloging/zsearch", 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();
/* No specific padding defined */
cy.set_cookie_lang(lang);
});
it("zsearch", function () {
cy.visit("/cgi-bin/koha/cataloguing/z3950_search.pl?biblionumber=&frameworkcode=Default");
cy.waitForPageLoad();
cy.get("body").should('be.visible').screenshot("zsearch");
});
});
});
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/z3950_search.pl?biblionumber=&frameworkcode=Default
Interface
staff
Element selector
body
Missing selector
setup
workflow
teardown
Notes
To improve the screenshot, it would be nice to be able to resize the window to enlarge it a bit so that the text is on the side of the field and not above.
Not blocker for me but I let someone else look at it and judge if it is good enough or not.
Cancel
Additional KTD data
Cancel