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

transfercheckin (#925) ❌ Not validated

Job

Difficulty

Medium

Spec (updated on Thu Aug 27 12:12:20 2026)

describe("circ/transfercheckin", 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.task("query", {sql: "INSERT INTO branchtransfers (itemnumber, frombranch, tobranch, reason, daterequested, datesent) VALUE (278, \"FFL\", \"CPL\", \"Manual\", \"2025-07-04\", \"2025-07-04\")"});
                cy.login();
                /* No specific padding defined */
                cy.set_cookie_lang(lang);
            });

            it("transfercheckin", function () {
                cy.visit("/cgi-bin/koha/circ/returns.pl");
                cy.waitForPageLoad();
                cy.get("#barcode").type("39999000005417");
                cy.get("#circ_returns_checkin [type=\"submit\"]").click();
                cy.get(".alert").should('be.visible').screenshot("transfercheckin");
            });
        });
    });
    afterEach(function () {
        cy.task("query", {sql: "DELETE FROM branchtransfers WHERE itemnumber=278 and frombranch=\"FFL\""});
        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/returns.pl

Interface

staff

Element selector

.alert

Missing selector

Y

setup

sql INSERT INTO branchtransfers (itemnumber, frombranch, tobranch, reason, daterequested, datesent) VALUE (278, "FFL", "CPL", "Manual", "2025-07-04", "2025-07-04")

workflow

type #barcode=39999000005417
click #circ_returns_checkin [type="submit"]

teardown

sql DELETE FROM branchtransfers WHERE itemnumber=278 and frombranch="FFL"

Notes

No id selector for alerts, only class

go_to branchtransfers.pl
Set value of #tobranchcd to FPL
Enter 39999000005417 in #barcode input
Submit
Change library to Fairview
go_to returns.pl
Enter 39999000005417 in #barcode input
Sumbit

Additional KTD data

Test failure

CypressError: `cy.screenshot()` only works for a single element. You attempted to screenshot 4 elements.

https://on.cypress.io/screenshot
    at screenshot (http://kohadev-intra.mydnsname.org:8081/__cypress/runner/cypress_runner.js:138326:70)
    at originalFn (http://kohadev-intra.mydnsname.org:8081/__cypress/runner/cypress_runner.js:114389:30)
    at Context.eval (webpack://koha/./cypress/support/e2e.js:106:15)
    at overridden.fn (http://kohadev-intra.mydnsname.org:8081/__cypress/runner/cypress_runner.js:114394:21)
    at wrapped (http://kohadev-intra.mydnsname.org:8081/__cypress/runner/cypress_runner.js:146489:19)
    at <unknown> (http://kohadev-intra.mydnsname.org:8081/__cypress/runner/cypress_runner.js:152520:15)
    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._settlePromiseCtx (http://kohadev-intra.mydnsname.org:8081/__cypress/runner/cypress_runner.js:1583:10)
    at _drainQueueStep (http://kohadev-intra.mydnsname.org:8081/__cypress/runner/cypress_runner.js:2381: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)

Thumbnails


Current Thumbnail old

Current

2025-07-23 19:00:02 +0000

2025-07-22 15:45:04 +0000

Old screenshot