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

basketgroupopen (#172) ✅ Validated

Job

No job planned.

Difficulty

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

describe("acquisitions/basketgroupopen", 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("INSERT INTO aqbasketgroups (id, name, closed, booksellerid, deliveryplace, billingplace) VALUES (1, \"My Basket Group\", 0, 1, \"CPL\", \"CPL\")")
                cy.query("INSERT INTO aqbasket (basketno, basketname, booksellerid, basketgroupid, branch) VALUES (2, \"My basket\", 1, 1, \"CPL\")")
                cy.login();
                /* No specific padding defined */
                cy.set_cookie_lang(lang);
            });

            it("basketgroupopen", function () {
                cy.visit("/cgi-bin/koha/acqui/basketgroup.pl?booksellerid=1");
                cy.waitForPageLoad();
                cy.get("main").should('be.visible').screenshot("basketgroupopen");
            });
        });
    });
    afterEach(function () {
        cy.query("DELETE FROM aqbasket WHERE basketno=2")
        cy.query("DELETE FROM aqbasketgroups WHERE id=1")
        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

acqui/basketgroup.pl?booksellerid=1

Interface

staff

Element selector

main

Missing selector

N

setup

sql INSERT INTO aqbasketgroups (id, name, closed, booksellerid, deliveryplace, billingplace) VALUES (1, "My Basket Group", 0, 1, "CPL", "CPL")
sql INSERT INTO aqbasket (basketno, basketname, booksellerid, basketgroupid, branch) VALUES (2, "My basket", 1, 1, "CPL")

workflow


        

teardown

sql DELETE FROM aqbasket WHERE basketno=2
sql DELETE FROM aqbasketgroups WHERE id=1

Notes

Should have a basket in the group (means adding a basket with sql to aqbaskets with foreign key to this aqbasketgroup.id)
same for the closed basket screenshot.

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:40:01 2025)

New (de)

New (el)

New (es)

New (fr)

New (hi)

New (zh_Hant)

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

2025-09-12 14:45:01 +0000

2025-09-12 14:30:01 +0000

2025-09-12 13:15:03 +0000

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

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

Old screenshot