describe("searching/searchresultsingle", 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("searchresultsingle", function () { cy.visit("/cgi-bin/koha/acqui/histsearch.pl?q=shakespeare"); cy.get("row161").should('be.visible').screenshot("searchresultsingle"); }); }); }); afterEach(function () { if (this.currentTest.state === 'failed') { Cypress.env("TEST_FAILED", true); } }); });
Not sure if the row number stays the same all the time, they don't seem in order. Also the original image has the thead plus a row.
AssertionError: Timed out retrying after 10000ms: Expected to find element: `row161`, but never found it. at Context.eval (webpack://koha/./cypress/integration/searching/searchresultsingle.ts:16:33)