describe("admin/additional/currencieshide", 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("currencieshide", function () { cy.visit("/cgi-bin/koha/admin/currency.pl"); /* FIXME - Invalid step Go to Administration > Additional parameters > Table settings > Administration > currency > toggle 'symbol' > Save > go to Administration > Currencies and exchange rates */ cy.get("main").should('be.visible').screenshot("currencieshide"); }); }); }); afterEach(function () { if (this.currentTest.state === 'failed') { Cypress.env("TEST_FAILED", true); } }); });
Go to Administration > Additional parameters > Table settings > Administration > currency > toggle 'symbol' > Save > go to Administration > Currencies and exchange rates