Job
No job planned.
Difficulty
Cancel
Spec (updated on Tue Jun 3 14:56:12 2025)
describe("admin/basicparams/report_subgroup", 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.query("INSERT INTO authorised_values (category, authorised_value, lib, lib_opac) VALUES (\"REPORT_SUBGROUP\", \"ADD\", \"Added\", \"CAT\"), (\"REPORT_SUBGROUP\", \"DEL\", \"Deleted\", \"CAT\"), (\"REPORT_SUBGROUP\", \"HOLDS\", \"Holds\", \"CIRC\"), (\"REPORT_SUBGROUP\", \"NEW\", \"new patrons\", \"CAT\"), (\"REPORT_SUBGROUP\", \"TRANS\", \"Transfers\", \"CIRC\");")
cy.login();
cy.set_cookie_lang(lang);
});
it("report_subgroup", function () {
cy.visit("/cgi-bin/koha/admin/authorised_values.pl?searchfield=REPORT_SUBGROUP");
cy.get("main").should('be.visible').screenshot("report_subgroup");
});
});
});
afterEach(function () {
cy.query("DELETE FROM authorised_values WHERE category=\"REPORT_SUBGROUP\"")
if (this.currentTest.state === 'failed') {
Cypress.env("TEST_FAILED", true);
}
});
});
Spec data
Page
authorised_values.pl?searchfield=REPORT_SUBGROUP
Interface
staff
Element selector
main
Missing selector
Y
setup
sql INSERT INTO authorised_values (category, authorised_value, lib, lib_opac) VALUES ("REPORT_SUBGROUP", "ADD", "Added", "CAT"), ("REPORT_SUBGROUP", "DEL", "Deleted", "CAT"), ("REPORT_SUBGROUP", "HOLDS", "Holds", "CIRC"), ("REPORT_SUBGROUP", "NEW", "new patrons", "CAT"), ("REPORT_SUBGROUP", "TRANS", "Transfers", "CIRC");
workflow
teardown
sql DELETE FROM authorised_values WHERE category="REPORT_SUBGROUP"
Notes
Go to Admin- Authorized Values- Report Sub Group
Cancel
Additional KTD data
Cancel