Job
Difficulty
Cancel
Spec (updated on Thu Aug 27 12:11:48 2026)
describe("admin/basicparams/deletegroupconfirm", 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.expose("EN_TEST_FAILED")) {
this.skip();
}
cy.task("query", {sql: "INSERT INTO library_groups (id, title) VALUES (1, \"Central libraries\");"});
cy.login();
/* No specific padding defined */
cy.set_cookie_lang(lang);
});
it("deletegroupconfirm", function () {
cy.visit("/cgi-bin/koha/admin/library_groups.pl");
cy.waitForPageLoad();
cy.get("table.library-groups > tbody > tr.leaf > td:nth-child(4) > div:nth-child(1) > button").click();
cy.get("#delete-group-1").click();
cy.get("#delete-group-modal > form > .modal-dialog > .modal-content").should('be.visible').screenshot("deletegroupconfirm");
});
});
});
afterEach(function () {
cy.task("query", {sql: "DELETE FROM library_groups WHERE id=1;"});
Cypress.expose('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.expose("EN_TEST_FAILED", true);
}
});
});
Spec data
Page
admin/library_groups.pl
Interface
staff
Element selector
#delete-group-modal > form > .modal-dialog > .modal-content
Missing selector
Y
setup
sql INSERT INTO library_groups (id, title) VALUES (1, "Central libraries");
workflow
click table.library-groups > tbody > tr.leaf > td:nth-child(4) > div:nth-child(1) > button
click #delete-group-1
teardown
sql DELETE FROM library_groups WHERE id=1;
Notes
Cancel
Additional KTD data
Cancel