describe("circ/transitreceive", 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("transitreceive", function () { cy.visit("/cgi-bin/koha/circ/transferstoreceive.pl"); cy.visit("/cgi-bin/koha/circ/branchtransfers.pl"); /* FIXME - Invalid step Set value of #tobranchcd to FPL */ /* FIXME - Invalid step Enter 39999000005417 in #barcode input */ /* FIXME - Invalid step Submit */ /* FIXME - Invalid step Change library to Fairview */ cy.visit("/cgi-bin/koha/circ/transferstoreceive.pl"); cy.get(".col-sm-10").should('be.visible').screenshot("transitreceive"); }); }); }); afterEach(function () { if (this.currentTest.state === 'failed') { Cypress.env("TEST_FAILED", true); } }); });
go_to branchtransfers.pl Set value of #tobranchcd to FPL Enter 39999000005417 in #barcode input Submit Change library to Fairview go_to transferstoreceive.pl
No id selector. main seems to include the menu on the left
AssertionError: Timed out retrying after 10000ms: Expected to find element: `.col-sm-10`, but never found it. at Context.eval (webpack://koha/./cypress/integration/circ/transitreceive.ts:22:37)