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

OPACNoResultsFound (#47) ❌ Not validated

Job

Difficulty

Easy

Spec (updated on Tue Aug 25 14:55:13 2026)

describe("admin/globalprefs/OPACNoResultsFound", 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.expose("EN_TEST_FAILED")) {
                    this.skip();
                }
                cy.set_syspref("suggestion", "0");
                /* No specific padding defined */
                cy.set_cookie_lang(lang);
            });

            it("OPACNoResultsFound", function () {
                cy.visitOpac("/cgi-bin/koha/opac-search.pl?idx=&q=foobar&weight_search=1");
                cy.waitForPageLoad();
                cy.get(".main").should('be.visible').screenshot("OPACNoResultsFound");
            });
        });
    });
    afterEach(function () {
        cy.set_syspref("suggestion", "1");
        Cypress.expose('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.expose("EN_TEST_FAILED", true);
        }
    });
});

Spec data

Page

opac-search.pl?idx=&q=foobar&weight_search=1

Interface

opac

Log in

No

Element selector

.main

Missing selector

setup

set_syspref suggestion=0

workflow


        

teardown

set_syspref suggestion=1

Notes

Additional KTD data

Test failure

CypressError: `cy.visit()` failed trying to load:

http://kohadev-intra.mydnsname.org:8081/undefined/cgi-bin/koha/opac-search.pl?idx=&q=foobar&weight_search=1

The response we received from your web server was:

  > 404: Not Found

This was considered a failure because the status code was not `2xx`.

If you do not want status codes to cause failures pass the option: `failOnStatusCode: false`
    at <unknown> (http://kohadev-intra.mydnsname.org:8081/__cypress/runner/cypress_runner.js:135298:76)
    at visitFailedByErr (http://kohadev-intra.mydnsname.org:8081/__cypress/runner/cypress_runner.js:134888:12)
    at <unknown> (http://kohadev-intra.mydnsname.org:8081/__cypress/runner/cypress_runner.js:135281:13)
    at tryCatcher (http://kohadev-intra.mydnsname.org:8081/__cypress/runner/cypress_runner.js:1777:23)
    at Promise._settlePromiseFromHandler (http://kohadev-intra.mydnsname.org:8081/__cypress/runner/cypress_runner.js:1489:31)
    at Promise._settlePromise (http://kohadev-intra.mydnsname.org:8081/__cypress/runner/cypress_runner.js:1546:18)
    at Promise._settlePromise0 (http://kohadev-intra.mydnsname.org:8081/__cypress/runner/cypress_runner.js:1591:10)
    at Promise._settlePromises (http://kohadev-intra.mydnsname.org:8081/__cypress/runner/cypress_runner.js:1667:18)
    at _drainQueueStep (http://kohadev-intra.mydnsname.org:8081/__cypress/runner/cypress_runner.js:2377:12)
    at _drainQueue (http://kohadev-intra.mydnsname.org:8081/__cypress/runner/cypress_runner.js:2370:9)
    at Async._drainQueues (http://kohadev-intra.mydnsname.org:8081/__cypress/runner/cypress_runner.js:2386:5)
    at Async.drainQueues (http://kohadev-intra.mydnsname.org:8081/__cypress/runner/cypress_runner.js:2256:14)
From Your Spec Code:
    at Context.eval (webpack://koha/./cypress/support/e2e.js:35:7)
    at wrapped (http://kohadev-intra.mydnsname.org:8081/__cypress/runner/cypress_runner.js:146481:43)

Thumbnails


Current Thumbnail old

Current

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

2025-07-23 16:30:02 +0000

2025-06-04 21:30:02 +0000

2025-05-22 14:30:01 +0000

2025-05-22 07:15:03 +0000

2025-12-05 13:45:03 +0000

2025-12-05 13:30:03 +0000

2025-12-04 17:30:01 +0000

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

Old screenshot