describe("tools/tasksched/taskscheduler", 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("taskscheduler", function () { cy.visit("/cgi-bin/koha/tools/scheduler.pl"); cy.get("select#report").click(); cy.get("#tools_scheduler .col-md-10.order-sm-1.order-md-2").should('be.visible').screenshot("taskscheduler"); }); }); }); afterEach(function () { if (this.currentTest.state === 'failed') { Cypress.env("TEST_FAILED", true); } }); });
click select#report
Needs at least one saved SQL report in order for the drop down "Report:" to actually show anything. Maybe several reports from this wiki page? https://wiki.koha-community.org/wiki/SQL_Reports_Library
CypressError: `cy.click()` cannot be called on a `<select>` element. Use `cy.select()` command instead to change the value. https://on.cypress.io/select at perform (http://kohadev-intra.mydnsname.org:8081/__cypress/runner/cypress_runner.js:111591:70) at tryCatcher (http://kohadev-intra.mydnsname.org:8081/__cypress/runner/cypress_runner.js:1807:23) at Object.gotValue (http://kohadev-intra.mydnsname.org:8081/__cypress/runner/cypress_runner.js:6476:18) at Object.gotAccum (http://kohadev-intra.mydnsname.org:8081/__cypress/runner/cypress_runner.js:6465:25) at Object.tryCatcher (http://kohadev-intra.mydnsname.org:8081/__cypress/runner/cypress_runner.js:1807:23) at Promise._settlePromiseFromHandler (http://kohadev-intra.mydnsname.org:8081/__cypress/runner/cypress_runner.js:1519:31) at Promise._settlePromise (http://kohadev-intra.mydnsname.org:8081/__cypress/runner/cypress_runner.js:1576:18) at Promise._settlePromiseCtx (http://kohadev-intra.mydnsname.org:8081/__cypress/runner/cypress_runner.js:1613:10) at _drainQueueStep (http://kohadev-intra.mydnsname.org:8081/__cypress/runner/cypress_runner.js:2411:12) at _drainQueue (http://kohadev-intra.mydnsname.org:8081/__cypress/runner/cypress_runner.js:2400:9) at Async._drainQueues (http://kohadev-intra.mydnsname.org:8081/__cypress/runner/cypress_runner.js:2416:5) at Async.drainQueues (http://kohadev-intra.mydnsname.org:8081/__cypress/runner/cypress_runner.js:2286:14) From Your Spec Code: at Context.eval (webpack://koha/./cypress/integration/tools/tasksched/taskscheduler.ts:16:40)