Job
No job planned.
Difficulty
Easy
Cancel
Spec (updated on Wed Aug 6 09:07:14 2025)
describe("acquisitions/vendorpage", 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.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);
if (this.currentTest.state === 'failed') {
Cypress.env("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.
Cancel
Additional KTD data
Cancel