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

renewed (#907)

Job

No job planned.

Difficulty

Spec (updated on Fri Aug 1 15:00:50 2025)

describe("circ/renewed", function () {
    const languages = ['en', 'es-ES', 'fr-FR', 'de-DE', 'el-GR', 'zh-Hant-TW'];
    languages.forEach((lang) => {
        describe(`in ${lang}`, () => {
            beforeEach(function(){
                // If previous test failed, skip this one
                if (Cypress.env("TEST_FAILED")) {
                    this.skip();
                }
                cy.query("INSERT INTO issues (`borrowernumber`,`itemnumber`,`date_due`,`branchcode`,`issuedate`) VALUES ('45','47', CONCAT(DATE_ADD(CURDATE(), interval 5 day), ' 23:59:00'),'MPL',NOW());")
                cy.login();
                /* No specific padding defined */
                cy.set_cookie_lang(lang);
            });

            it("renewed", function () {
                cy.visit("/cgi-bin/koha/circ/renew.pl");
                cy.waitForPageLoad();
                cy.get("input.barcode").type("39999000000795");
                cy.get("button.btn-primary[type='submit']").click();
                cy.get(".alert").should('be.visible').screenshot("renewed");
            });
        });
    });
    afterEach(function () {
        cy.query("DELETE FROM issues;")
        Cypress.env('PADDING_BEFORE_SCREENSHOT', undefined);
        if (this.currentTest.state === 'failed') {
            Cypress.env("TEST_FAILED", true);
        }
    });
});

Spec data

Page

circ/renew.pl

Interface

staff

Element selector

.alert

Missing selector

setup

sql INSERT INTO issues (`borrowernumber`,`itemnumber`,`date_due`,`branchcode`,`issuedate`) VALUES ('45','47', CONCAT(DATE_ADD(CURDATE(), interval 5 day), ' 23:59:00'),'MPL',NOW());

workflow

type input.barcode=39999000000795
click button.btn-primary[type='submit']

teardown

sql DELETE FROM issues;

Notes

Additional KTD data

Thumbnails


Old Thumbnail old
New Thumbnail new
New (de)
New (el)
New (es)
New (fr)
New (zh_Hant)

Old

New (updated on Fri Aug 1 15:02:39 2025)

New (de)

New (el)

New (es)

New (fr)

New (zh_Hant)

Fri Aug 1 15:15:03 2025

Old screenshot