Job
No job planned.
Difficulty
Cancel
Spec (updated on Thu Jul 31 20:50:32 2025)
describe("admin/patroncirc/defaultopenarticlerequestslimit", 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.set_syspref("ArticleRequests", "1");
cy.login();
/* No specific padding defined */
cy.set_cookie_lang(lang);
});
it("defaultopenarticlerequestslimit", function () {
cy.visit("/cgi-bin/koha/admin/smart-rules.pl");
cy.waitForPageLoad();
cy.get("#open-article-requests-limit-patron-category").should('be.visible').screenshot("defaultopenarticlerequestslimit");
});
});
});
afterEach(function () {
cy.set_syspref("ArticleRequests", "0");
Cypress.env('PADDING_BEFORE_SCREENSHOT', undefined);
if (this.currentTest.state === 'failed') {
Cypress.env("TEST_FAILED", true);
}
});
});
Spec data
Page
smart-rules.pl
Interface
staff
Element selector
#open-article-requests-limit-patron-category
Missing selector
setup
set_syspref ArticleRequests=1
workflow
teardown
set_syspref ArticleRequests=0
Notes
Cancel
Additional KTD data
Cancel