describe("about/aboutperlmodules", 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("aboutperlmodules", function () { cy.visit("/cgi-bin/koha/about.pl?tab=perl"); cy.get("#abouttabs").should('be.visible').screenshot("aboutperlmodules"); }); }); }); afterEach(function () { if (this.currentTest.state === 'failed') { Cypress.env("TEST_FAILED", true); } }); });
Screenshot is cut off to the right (fixed see https://gitlab.com/joubu/koha-manual-screenshots-wip/-/issues/15)