describe("cataloging/catalogsearch", 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("catalogsearch", function () { cy.visit("/cgi-bin/koha/cataloguing/addbooks.pl?q=paris"); cy.get(".searchresults > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(2) > td:nth-child(4) > div:nth-child(1)").click(); cy.get(".open > ul:nth-child(2) > li:nth-child(3)").should('be.visible').screenshot("catalogsearch"); }); }); }); afterEach(function () { if (this.currentTest.state === 'failed') { Cypress.env("TEST_FAILED", true); } }); });
click .searchresults > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(2) > td:nth-child(4) > div:nth-child(1)
Needs to show the whole table, but only with one actions menu open.
AssertionError: Timed out retrying after 10000ms: Expected to find element: `.open > ul:nth-child(2) > li:nth-child(3)`, but never found it. at Context.eval (webpack://koha/./cypress/integration/cataloging/catalogsearch.ts:17:68)