Login

Screenshots for the Koha manual

New screenshots | All screenshots | Full test results | Manuals (wip)
en ar cs de el es fr fr_CA hi it pt pt_BR sk sv tr zh_Hant

Image details

taskscheduler (#1495) ❌ Not validated

Job

No job planned.

Difficulty

Medium

Spec (updated on Thu May 22 13:08:51 2025)

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);
        }
    });
});

Spec data

Page

scheduler.pl

Interface

staff

Element selector

#tools_scheduler .col-md-10.order-sm-1.order-md-2

Missing selector

N

setup


        

workflow

click select#report

teardown


    

Notes

Additional KTD data

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

Test failure

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)

Old