describe("admin/accounting/debittypes", 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("debittypes", function () {
cy.visit("/cgi-bin/koha/admin/debit_types.pl");
cy.waitForPageLoad();
cy.get("main").should('be.visible').screenshot("debittypes");
});
});
});
afterEach(function () {
Cypress.env('PADDING_BEFORE_SCREENSHOT', undefined);
if (this.currentTest.state === 'failed') {
Cypress.env("TEST_FAILED", true);
}
});
});
Spec data
Page
debit_types.pl
Interface
staff
Element selector
main
Missing selector
N
setup
workflow
teardown
Notes
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
01/08/2025 Validating as we now see only filtered entries