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

catalogsearch (#575) ❌ Not validated

Job

No job planned.

Difficulty

Hard

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

describe("cataloging/catalogsearch", 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("catalogsearch", function () {
                cy.visit("/cgi-bin/koha/cataloguing/addbooks.pl?q=paris");
                cy.get(".searchresults > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(2) > td:nth-child(4) > div:nth-child(1)").click();
                cy.get(".open > ul:nth-child(2) > li:nth-child(3)").should('be.visible').screenshot("catalogsearch");
            });
        });
    });
    afterEach(function () {
        
        if (this.currentTest.state === 'failed') {
            Cypress.env("TEST_FAILED", true);
        }
    });
});

Spec data

Page

/cgi-bin/koha/cataloguing/addbooks.pl?q=paris

Interface

staff

Element selector

.open > ul:nth-child(2) > li:nth-child(3)

Missing selector

Y

setup


        

workflow

click .searchresults > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(2) > td:nth-child(4) > div:nth-child(1)

teardown


    

Notes

Needs to show the whole table, but only with one actions menu open.

Additional KTD data

Test failure

AssertionError: Timed out retrying after 10000ms: Expected to find element: `.open > ul:nth-child(2) > li:nth-child(3)`, but never found it.
    at Context.eval (webpack://koha/./cypress/integration/cataloging/catalogsearch.ts:17:68)

Old