Job
Difficulty
Cancel
Spec (updated on Tue Mar 24 07:49:44 2026)
describe("acquisitions/suggestionspendingacqhome", 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 (26, 28, \"2026-03-23\", \"ASKED\", 0, \"2026-03-23 08:13:41\", \"Cats on catnip\", \"Andrew Martilla\", \"CPL\", \"BOOK\", \"bestseller\", \"USD\", 0, 0), (27, 28, \"2026-03-23\", \"ASKED\", 0, \"2026-03-23 08:13:41\", \"Cats on catnip\", \"Andrew Martilla\", \"FFL\", \"BOOK\", \"bestseller\", \"USD\", 0, 0), (28, 28, \"2026-03-23\", \"ASKED\", 0, \"2026-03-23 08:13:41\", \"Cats on catnip\", \"Andrew Martilla\", \"FFL\", \"BOOK\", \"bestseller\", \"USD\", 0, 0);")
cy.login();
/* No specific padding defined */
cy.set_cookie_lang(lang);
});
it("suggestionspendingacqhome", function () {
cy.visit("/cgi-bin/koha/acqui/acqui-home.pl");
cy.waitForPageLoad();
cy.get("#acqui_acqui_home_suggestions").should('be.visible').screenshot("suggestionspendingacqhome");
});
});
});
afterEach(function () {
cy.query("DELETE FROM suggestions where suggestionid IN (26, 27, 28);")
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
acqui/acqui-home.pl
Interface
staff
Element selector
#acqui_acqui_home_suggestions
Missing selector
setup
sql INSERT INTO suggestions(suggestionid, suggestedby, suggesteddate, STATUS, archived, date, title, author, branchcode, itemtype, patronreason, currency, price, total) VALUES (26, 28, "2026-03-23", "ASKED", 0, "2026-03-23 08:13:41", "Cats on catnip", "Andrew Martilla", "CPL", "BOOK", "bestseller", "USD", 0, 0), (27, 28, "2026-03-23", "ASKED", 0, "2026-03-23 08:13:41", "Cats on catnip", "Andrew Martilla", "FFL", "BOOK", "bestseller", "USD", 0, 0), (28, 28, "2026-03-23", "ASKED", 0, "2026-03-23 08:13:41", "Cats on catnip", "Andrew Martilla", "FFL", "BOOK", "bestseller", "USD", 0, 0);
workflow
teardown
sql DELETE FROM suggestions where suggestionid IN (26, 27, 28);
Notes
Cancel
Additional KTD data
Cancel