describe("admin/patroncirc/showattribute", 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("showattribute", function () { cy.visit("/cgi-bin/koha/members/moremember.pl?borrowernumber=19"); cy.get(".patroninfo").should('be.visible').screenshot("showattribute"); }); }); }); afterEach(function () { if (this.currentTest.state === 'failed') { Cypress.env("TEST_FAILED", true); } }); });