Login

Screenshots for the Koha manual

New screenshots | All screenshots | Full test results | Manuals (wip)
en de el es fr hi zh_Hant

Image details

planningbymonths (#140) ❌ Not validated

Job

No job planned.

Difficulty

Medium

Spec (updated on Thu Dec 4 15:47:50 2025)

describe("admin/acquisitions/planningbymonths", function () {
    const languages = ['en', 'es-ES', 'fr-FR', 'de-DE', 'el-GR', 'hi', 'zh-Hant-TW'];
    languages.forEach((lang) => {
        describe(`in ${lang}`, () => {
            beforeEach(function(){
                // Skip if 'en' test failed
                if (Cypress.env("EN_TEST_FAILED")) {
                    this.skip();
                }
                cy.query("UPDATE aqbudgetperiods set budget_period_startdate=\"2025-01-01\", budget_period_enddate=\"2025-12-01\" where budget_period_id=1")
                cy.login();
                /* No specific padding defined */
                cy.set_cookie_lang(lang);
            });

            it("planningbymonths", function () {
                cy.visit("/cgi-bin/koha/admin/aqplan.pl?budget_period_id=1&authcat=MONTHS");
                cy.waitForPageLoad();
                cy.get("main").should('be.visible').screenshot("planningbymonths");
            });
        });
    });
    afterEach(function () {
        Cypress.env('PADDING_BEFORE_SCREENSHOT', undefined);
        // Set EN_TEST_FAILED if the 'en' test failed
        if (this.currentTest.parent.title.includes('in en') && this.currentTest.state === 'failed') {
            Cypress.env("EN_TEST_FAILED", true);
        }
    });
});

Spec data

Page

aqplan.pl?budget_period_id=1&authcat=MONTHS

Interface

staff

Element selector

main

Missing selector

N

setup

sql UPDATE aqbudgetperiods set budget_period_startdate="2025-01-01", budget_period_enddate="2025-12-01" where budget_period_id=1

workflow


        

teardown


    

Notes

In the sample data, the budget period is very long and the monthly planning doesn't look good. We'd probably have to create another budget entirely...
An alternative is to update the displayed budget to setup a more fitting starting date.
We also need to add query parameters in the page section.

Go to Administration > Budgets > Click Main budget > Click Planning - Planning by months

Additional KTD data

Thumbnails


Current Thumbnail old
New Thumbnail new
New (de)
New (el)
New (es)
New (fr)
New (hi)
New (zh_Hant)

Current

New (updated on Thu Dec 4 19:00:42 2025)

New (de)

New (el)

New (es)

New (fr)

New (hi)

New (zh_Hant)

2025-12-01 12:15:14 +0000

2025-06-13 07:15:03 +0000

2025-06-13 07:00:03 +0000

2025-06-12 15:00:03 +0000

2025-06-11 15:15:03 +0000

2025-06-04 22:30:01 +0000

2025-05-21 00:30:01 +0000

2025-12-04 19:15:01 +0000

2025-12-01 12:15:14 +0000

Old screenshot