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

notforloan (#939) ❌ Not validated

Job

Difficulty

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

describe("circ/warnings/notforloan", 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("AllowNotForLoanOverride", "1");
                cy.login();
                /* No specific padding defined */
                cy.set_cookie_lang(lang);
            });

            it("notforloan", function () {
                cy.visit("/cgi-bin/koha/circ/circulation.pl?borrowernumber=19");
                cy.waitForPageLoad();
                cy.get("#barcode").type("39999000011838");
                cy.get("#circ_circulation_issue button").click();
                cy.get("#circ_needsconfirmation").should('be.visible').screenshot("notforloan");
            });
        });
    });
    afterEach(function () {
        cy.set_syspref("AllowNotForLoanOverride", "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

circ/circulation.pl?borrowernumber=19

Interface

staff

Element selector

#circ_needsconfirmation

Missing selector

setup

set_syspref AllowNotForLoanOverride=1

workflow

type #barcode=39999000011838
click #circ_circulation_issue button

teardown

set_syspref AllowNotForLoanOverride=0

Notes

Additional KTD data

Test failure

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

http://kohadev-intra.mydnsname.org:8081/cgi-bin/koha/circ/circulation.pl?borrowernumber=19

We attempted to make an http request to this URL but the request failed without a response.

We received this error at the network level:

  > Error: ESOCKETTIMEDOUT

Common situations why this would fail:
  - you don't have internet access
  - you forgot to run / boot your web server
  - your web server isn't accessible
  - you have weird network configuration settings on your computer
    at <unknown> (http://kohadev-intra.mydnsname.org:8081/__cypress/runner/cypress_runner.js:135314:74)
    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:135313:11)
    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/integration/circ/warnings/notforloan.ts:17:19)

From Node.js Internals:
  Error: ESOCKETTIMEDOUT
      at ClientRequest.<anonymous> (<embedded>:314:107429)
      at Object.onceWrapper (node:events:633:28)
      at ClientRequest.emit (node:events:519:28)
      at Socket.emitRequestTimeout (node:_http_client:863:9)
      at Object.onceWrapper (node:events:633:28)
      at Socket.emit (node:events:531:35)
      at Socket._onTimeout (node:net:604:8)
      at listOnTimeout (node:internal/timers:588:17)
      at process.processTimers (node:internal/timers:523:7)

Thumbnails


Current Thumbnail old

Current

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

2025-10-30 10:00:03 +0000

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

Old screenshot