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

AcquisitionDetails (#76) ❌ Not validated

Job

No job planned.

Difficulty

Hard

Spec (updated on Wed Mar 11 15:39:18 2026)

describe("acquisitions/AcquisitionDetails", 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 aqorders(`biblionumber`,`entrydate`,`quantity`,`currency`,`listprice`,`created_by`,`basketno`,`timestamp`,`rrp`,`replacementprice`,`rrp_tax_excluded`,`rrp_tax_included`,`ecost`,`ecost_tax_excluded`,`ecost_tax_included`,`tax_rate_on_ordering`,`tax_value_on_ordering`,`discount`,`budget_id`,`parent_ordernumber`,`orderstatus`) VALUES (262, '2026-03-11', 1, 'USD', '10.000000', 51, 1, '2026-03-11 15:28:45', '10.00', '10.000000', '10.000000', '11.965000', '9.00', '9.000000', '10.768500', '0.1965', '1.768500', 10, 2, 1, 'new')")
                cy.login();
                /* No specific padding defined */
                cy.set_cookie_lang(lang);
            });

            it("AcquisitionDetails", function () {
                cy.visit("/cgi-bin/koha/catalogue/detail.pl?biblionumber=262");
                cy.waitForPageLoad();
                cy.get("#acq_details-tab.nav-link.active").should('be.visible').screenshot("AcquisitionDetails");
            });
        });
    });
    afterEach(function () {
        cy.query("DELETE FROM aqorders WHERE biblionumber=262")
        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

catalogue/detail.pl?biblionumber=262

Interface

staff

Element selector

#acq_details-tab.nav-link.active

Missing selector

N

setup

sql INSERT INTO aqorders(`biblionumber`,`entrydate`,`quantity`,`currency`,`listprice`,`created_by`,`basketno`,`timestamp`,`rrp`,`replacementprice`,`rrp_tax_excluded`,`rrp_tax_included`,`ecost`,`ecost_tax_excluded`,`ecost_tax_included`,`tax_rate_on_ordering`,`tax_value_on_ordering`,`discount`,`budget_id`,`parent_ordernumber`,`orderstatus`) VALUES (262, '2026-03-11', 1, 'USD', '10.000000', 51, 1, '2026-03-11 15:28:45', '10.00', '10.000000', '10.000000', '11.965000', '9.00', '9.000000', '10.768500', '0.1965', '1.768500', 10, 2, 1, 'new')

workflow


        

teardown

sql DELETE FROM aqorders WHERE biblionumber=262

Notes

This is the third tab on this table, so the li class is active on the third listing. 

page: catalogue/detail.pl
selector: bibliodetails (3 li class=active)
Go to Home Page > Acquisitions> Click New- Basket> Create Basket > Add to Basket > Click on Title created in Basket

Additional KTD data

Test failure

AssertionError: Timed out retrying after 10000ms: Expected to find element: `#acq_details-tab.nav-link.active`, but never found it.
    at Context.eval (webpack://koha/./cypress/integration/acquisitions/AcquisitionDetails.ts:19:59)

Thumbnails


Current Thumbnail old

Current

Old screenshot