Job
Difficulty
Cancel
Spec (updated on Tue Mar 24 10:34:33 2026)
describe("admin/additional/newemaildomain", 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.query("INSERT INTO identity_providers (identity_provider_id, code, description, protocol, config, mapping, matchpoint) VALUE (1, \"test\", \"test\", \"OAuth\", \"{}\", \"{}\", \"email\");")
cy.query("INSERT INTO identity_provider_domains (identity_provider_domain_id, identity_provider_id, domain, update_on_auth, default_library_id, default_category_id, allow_opac, allow_staff, auto_register_opac, auto_register_staff) VALUE (1, 1, \"test\", 0, \"CPL\", \"B\", 0, 0, 0, 0);")
cy.login();
/* No specific padding defined */
cy.set_cookie_lang(lang);
});
it("newemaildomain", function () {
cy.visit("/cgi-bin/koha/admin/identity_providers.pl?domain_ops=1&identity_provider_id=1&op=add_form");
cy.waitForPageLoad();
cy.get("aside").parent().invoke("remove");
cy.get(".main").should('be.visible').screenshot("newemaildomain");
});
});
});
afterEach(function () {
cy.query("DELETE FROM identity_provider_domains WHERE identity_provider_domain_id = 1;")
cy.query("DELETE FROM identity_providers WHERE identity_provider_id = 1;")
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
admin/identity_providers.pl?domain_ops=1&identity_provider_id=1&op=add_form
Interface
staff
Element selector
.main
Missing selector
setup
sql INSERT INTO identity_providers (identity_provider_id, code, description, protocol, config, mapping, matchpoint) VALUE (1, "test", "test", "OAuth", "{}", "{}", "email");
sql INSERT INTO identity_provider_domains (identity_provider_domain_id, identity_provider_id, domain, update_on_auth, default_library_id, default_category_id, allow_opac, allow_staff, auto_register_opac, auto_register_staff) VALUE (1, 1, "test", 0, "CPL", "B", 0, 0, 0, 0);
workflow
remove_aside
teardown
sql DELETE FROM identity_provider_domains WHERE identity_provider_domain_id = 1;
sql DELETE FROM identity_providers WHERE identity_provider_id = 1;
Notes
Prerequisite: Functional IdP
Cancel
Additional KTD data
Cancel