describe("patrons/addattributes", function () {
const languages = ['en', 'es-ES', 'fr-FR'];
languages.forEach((lang) => {
describe(`in ${lang}`, () => {
beforeEach(function(){
// If previous test failed, skip this one
if (Cypress.env("TEST_FAILED")) {
this.skip();
}
cy.login();
cy.set_cookie_lang(lang);
});
it("addattributes", function () {
cy.visit("/cgi-bin/koha/members/memberentry.pl?op=add&categorycode=PT");
/* FIXME - Invalid step - Go to Administration > Patron attribute types. Create one or two attributes */
/* FIXME - Invalid step - Go to Patrons module */
/* FIXME - Invalid step - Click New patron, then a patron category, e.g. Patron */
cy.get("#memberentry_patron_attributes").should('be.visible').screenshot("addattributes");
});
});
});
afterEach(function () {
if (this.currentTest.state === 'failed') {
Cypress.env("TEST_FAILED", true);
}
});
});
Spec data
Page
members/memberentry.pl?op=add&categorycode=PT
Interface
staff
Element selector
#memberentry_patron_attributes
Missing selector
N
setup
workflow
- Go to Administration > Patron attribute types. Create one or two attributes
- Go to Patrons module
- Click New patron, then a patron category, e.g. Patron
teardown
Notes
Needs some patron categories set up, but can use defaults.