describe("acquisitions/invoicesearch", 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.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);
if (this.currentTest.state === 'failed') {
Cypress.env("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