describe("tools/qotd/qotdeditor", 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(); /* No specific padding defined */ cy.set_cookie_lang(lang); }); it("qotdeditor", function () { cy.visit("/cgi-bin/koha/tools/quotes.pl"); cy.waitForPageLoad(); cy.get("#tools_quotes .col-md-10.order-sm-1.order-md-2").should('be.visible').screenshot("qotdeditor"); }); }); }); afterEach(function () { Cypress.env('PADDING_BEFORE_SCREENSHOT', undefined); if (this.currentTest.state === 'failed') { Cypress.env("TEST_FAILED", true); } }); });