Job
Difficulty
Medium
Easy
Medium
Hard
Impossible with Cypress Studio
Cancel
Spec (updated on Mon Jun 1 09:45:06 2026)
describe("patrons/addhouseboundroles", 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.env("EN_TEST_FAILED")) {
this.skip();
}
cy.set_syspref("HouseboundModule", "1");
cy.login();
/* No specific padding defined */
cy.set_cookie_lang(lang);
});
it("addhouseboundroles", function () {
cy.visit("/cgi-bin/koha/members/memberentry.pl?op=edit_form&destination=circ&borrowernumber=19");
cy.waitForPageLoad();
cy.get("#memberentry_housebound_roles").should('be.visible').screenshot("addhouseboundroles");
});
});
});
afterEach(function () {
cy.set_syspref("HouseboundModule", "0");
Cypress.env('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.env("EN_TEST_FAILED", true);
}
});
});
Spec data
Page
members/memberentry.pl?op=edit_form&destination=circ&borrowernumber=19
Interface
staff
Element selector
#memberentry_housebound_roles
Missing selector
N
setup
set_syspref HouseboundModule=1
workflow
teardown
set_syspref HouseboundModule=0
Notes
Needs some patron categories set up, but can use defaults
Page: members/memberentry.pl?op=add&categorycode=PT
Element selector: #memberentry_housebound_roles
workflow
- Go to Administration > System preferences. Enable HouseboundModule
- Go to Patrons module
- Click New patron, then a patron category, e.g. Patron
Cancel
Additional KTD data
Cancel