describe("cataloging/authimport", 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("authimport", function () { cy.visit("/cgi-bin/koha/cataloguing/z3950_auth_search.pl"); /* FIXME - Invalid step Go to Authorities > Click New from Z39.50/SRU > Add victor hugo in the Author (personal) field > Click Search button */ cy.get("body#cat_z3950_auth_search.cat").should('be.visible').screenshot("authimport"); }); }); }); afterEach(function () { if (this.currentTest.state === 'failed') { Cypress.env("TEST_FAILED", true); } }); });
Go to Authorities > Click New from Z39.50/SRU > Add victor hugo in the Author (personal) field > Click Search button