Job
No job planned.
Difficulty
Hard
Cancel
Spec (updated on Wed Jul 30 16:10:26 2025)
describe("searching/searchresultsingle", 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.login();
/* No specific padding defined */
cy.set_cookie_lang(lang);
});
it("searchresultsingle", function () {
cy.visit("/cgi-bin/koha/catalogue/search.pl?count=1&sort_by=title_az&idx=kw&q=shakespeare");
cy.waitForPageLoad();
cy.get("#bookbag_form").should('be.visible').screenshot("searchresultsingle");
});
});
});
afterEach(function () {
Cypress.env('PADDING_BEFORE_SCREENSHOT', undefined);
if (this.currentTest.state === 'failed') {
Cypress.env("TEST_FAILED", true);
}
});
});
Spec data
Page
catalogue/search.pl?count=1&sort_by=title_az&idx=kw&q=shakespeare
Interface
staff
Element selector
#bookbag_form
Missing selector
Y
setup
workflow
teardown
Notes
Not sure if the row number stays the same all the time, they don't seem in order. Also the original image has the thead plus a row.
Cancel
Additional KTD data
Cancel