describe("circ/renewbutton", 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("renewbutton", function () { cy.visit("/cgi-bin/koha/circ/circulation.pl"); cy.get("#issues-table-actions").should('be.visible').screenshot("renewbutton"); }); }); }); afterEach(function () { if (this.currentTest.state === 'failed') { Cypress.env("TEST_FAILED", true); } }); });
Needs a patron file with checkouts
AssertionError: Timed out retrying after 10000ms: Expected to find element: `#issues-table-actions`, but never found it. at Context.eval (webpack://koha/./cypress/integration/circ/renewbutton.ts:16:48)