Job
Difficulty
Cancel
Spec (updated on Wed Mar 25 08:42:16 2026)
describe("acquisitions/suggestionmanagement", 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.query("INSERT INTO suggestions(suggestionid, suggestedby, suggesteddate, STATUS, archived, date, title, author, branchcode, itemtype, patronreason, currency, price, total) VALUES (1, 28, \"2026-03-23\", \"ASKED\", 0, \"2026-03-23 08:13:41\", \"Cats on catnip\", \"Andrew Martilla\", \"CPL\", \"BOOK\", \"bestseller\", \"USD\", 0, 0), (2, 5, \"2026-03-20\", \"ASKED\", 0, \"2026-03-21 08:13:41\", \"Shaw\", \"Tiny but mighty\", \"CPL\", \"BOOK\", NULL, \"USD\", 0, 0), (3, 28, \"2026-03-23\", \"ACCEPTED\", 0, \"2026-03-23 08:13:41\", \"Cats on catnip\", \"Andrew Martilla\", \"CPL\", \"BOOK\", \"bestseller\", \"USD\", 0, 0), (4, 28, \"2026-03-23\", \"ACCEPTED\", 0, \"2026-03-23 08:13:41\", \"Cats on catnip\", \"Andrew Martilla\", \"CPL\", \"BOOK\", \"bestseller\", \"USD\", 0, 0), (5, 28, \"2026-03-23\", \"REJECTED\", 0, \"2026-03-23 08:13:41\", \"Cats on catnip\", \"Andrew Martilla\", \"CPL\", \"BOOK\", \"bestseller\", \"USD\", 0, 0), (6, 28, \"2026-03-23\", \"ORDERED\", 0, \"2026-03-23 08:13:41\", \"Cats on catnip\", \"Andrew Martilla\", \"CPL\", \"BOOK\", \"bestseller\", \"USD\", 0, 0);")
cy.login();
/* No specific padding defined */
cy.set_cookie_lang(lang);
});
it("suggestionmanagement", function () {
cy.visit("/cgi-bin/koha/suggestion/suggestion.pl");
cy.waitForPageLoad();
cy.waitForTableLoad();
cy.get("aside").parent().invoke("remove");
cy.get(".main").should('be.visible').screenshot("suggestionmanagement");
});
});
});
afterEach(function () {
cy.query("DELETE FROM suggestions WHERE suggestionid IN (1, 2, 3, 4, 5, 6);")
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
suggestion/suggestion.pl
Interface
staff
Element selector
.main
Missing selector
N
setup
sql INSERT INTO suggestions(suggestionid, suggestedby, suggesteddate, STATUS, archived, date, title, author, branchcode, itemtype, patronreason, currency, price, total) VALUES (1, 28, "2026-03-23", "ASKED", 0, "2026-03-23 08:13:41", "Cats on catnip", "Andrew Martilla", "CPL", "BOOK", "bestseller", "USD", 0, 0), (2, 5, "2026-03-20", "ASKED", 0, "2026-03-21 08:13:41", "Shaw", "Tiny but mighty", "CPL", "BOOK", NULL, "USD", 0, 0), (3, 28, "2026-03-23", "ACCEPTED", 0, "2026-03-23 08:13:41", "Cats on catnip", "Andrew Martilla", "CPL", "BOOK", "bestseller", "USD", 0, 0), (4, 28, "2026-03-23", "ACCEPTED", 0, "2026-03-23 08:13:41", "Cats on catnip", "Andrew Martilla", "CPL", "BOOK", "bestseller", "USD", 0, 0), (5, 28, "2026-03-23", "REJECTED", 0, "2026-03-23 08:13:41", "Cats on catnip", "Andrew Martilla", "CPL", "BOOK", "bestseller", "USD", 0, 0), (6, 28, "2026-03-23", "ORDERED", 0, "2026-03-23 08:13:41", "Cats on catnip", "Andrew Martilla", "CPL", "BOOK", "bestseller", "USD", 0, 0);
workflow
wait_for_table_load
remove_aside
teardown
sql DELETE FROM suggestions WHERE suggestionid IN (1, 2, 3, 4, 5, 6);
Notes
Cancel
Additional KTD data
No suggestion present in default KTD, some already present could be nice.
Cancel