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

opacvirtualcard (#1721) ❌ Not validated

Job

Difficulty

Spec (updated on Tue Aug 25 14:56:52 2026)

describe("opac/opacvirtualcard", 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("OPACVirtualCard", "1");
                cy.loginOpac();
                /* No specific padding defined */
                cy.set_cookie_lang(lang);
            });

            it("opacvirtualcard", function () {
                cy.visitOpac("/cgi-bin/koha/opac-virtual-card.pl");
                cy.waitForPageLoad();
                cy.waitForPageLoad();
                cy.get(".main").parent().invoke("css", "width", "100%");
                cy.get(".main").should('be.visible').screenshot("opacvirtualcard");
            });
        });
    });
    afterEach(function () {
        cy.set_syspref("OPACVirtualCard", "0");
        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-virtual-card.pl

Interface

opac

Log in

Yes

Element selector

.main

Missing selector

N

setup

set_syspref OPACVirtualCard=1

workflow

wait_for_page_load
cypress cy.get(".main").parent().invoke("css", "width", "100%");

teardown

set_syspref OPACVirtualCard=0

Notes

Additional KTD data

Test failure

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

http://kohadev-intra.mydnsname.org:8081/undefined/cgi-bin/koha/opac-main.pl?logout.x=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`

Because this error occurred during a `before each` hook we are skipping the remaining tests in the current suite: `in en`
    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-11-22 01:30:03 +0000

2025-12-04 23:00:01 +0000

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

Old screenshot