Job
No job planned.
Difficulty
Easy
Cancel
Spec (updated on Thu Dec 4 15:47:15 2025)
describe("acquisitions/vendorpage", 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 aqcontract (contractnumber, contractstartdate, contractenddate, contractname, contractdescription, booksellerid) VALUES (1, NOW(), ADDDATE(NOW(), INTERVAL 30 DAY), \"My Contract\", \"Sample contract description\", 1)")
cy.login();
/* No specific padding defined */
cy.set_cookie_lang(lang);
});
it("vendorpage", function () {
cy.visit("/cgi-bin/koha/acquisition/vendors/1");
cy.waitForPageLoad();
cy.get("#vendors_show").should('be.visible').screenshot("vendorpage");
});
});
});
afterEach(function () {
cy.query("DELETE FROM aqcontract WHERE contractnumber=1")
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
acquisition/vendors/1
Interface
staff
Element selector
#vendors_show
Missing selector
N
setup
sql INSERT INTO aqcontract (contractnumber, contractstartdate, contractenddate, contractname, contractdescription, booksellerid) VALUES (1, NOW(), ADDDATE(NOW(), INTERVAL 30 DAY), "My Contract", "Sample contract description", 1)
workflow
teardown
sql DELETE FROM aqcontract WHERE contractnumber=1
Notes
Not all fields are translated in every language.
Some data is missing (at least the contract) and it affect the interface.
Cancel
Additional KTD data
Cancel