Job
No job planned.
Difficulty
Cancel
Spec (updated on Thu Oct 30 09:46:37 2025)
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(){
// If previous test failed, skip this one
if (Cypress.env("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.env('PADDING_BEFORE_SCREENSHOT', undefined);
if (this.currentTest.state === 'failed') {
Cypress.env("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
Cancel
Additional KTD data
Cancel