describe("admin/accounting/debittypes", function () { const languages = ['en', 'es-ES', 'fr-FR']; languages.forEach((lang) => { describe(`in ${lang}`, () => { beforeEach(function(){ // If previous test failed, skip this one if (Cypress.env("TEST_FAILED")) { this.skip(); } cy.login(); cy.set_cookie_lang(lang); }); it("debittypes", function () { cy.visit("/cgi-bin/koha/admin/debit_types.pl"); cy.get("main").should('be.visible').screenshot("debittypes"); }); }); }); afterEach(function () { if (this.currentTest.state === 'failed') { Cypress.env("TEST_FAILED", true); } }); });
With sample data 25/06/2025 Not validating as the new screenshot shows all debit types, whereas it should show what you see when you first go to this page, with system debit types filtered out. See Koha Manual page https://koha-community.org/manual/latest/en/html/administration.html#debit-types AC