describe("acquisitions/invoicesearch", 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.login();
/* No specific padding defined */
cy.set_cookie_lang(lang);
});
it("invoicesearch", function () {
cy.visit("/cgi-bin/koha/acqui/invoices.pl");
cy.waitForPageLoad();
cy.get(".main.container-fluid").should('be.visible').screenshot("invoicesearch");
});
});
});
afterEach(function () {
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/invoices.pl
Interface
staff
Element selector
.main.container-fluid
Missing selector
setup
workflow
teardown
Notes
Oops! Marion and I were editing at the same time :D Sorry! Aude 25 June 2025
The search form is badly formatted, it looks as if the browser zoom is set super high. Maybe it's possible to set the zoom in cypress somehow? Philip 23 July 2025