Job
No job planned.
Difficulty
Easy
Cancel
Spec (updated on Wed Jul 30 14:45:11 2025)
describe("admin/globalprefs/OpacResetPassword", function () {
const languages = ['en', 'es-ES', 'fr-FR', 'de-DE', 'el-GR', 'zh-Hant-TW'];
languages.forEach((lang) => {
describe(`in ${lang}`, () => {
beforeEach(function(){
// If previous test failed, skip this one
if (Cypress.env("TEST_FAILED")) {
this.skip();
}
cy.set_syspref("OpacResetPassword", "1");
Cypress.env('PADDING_BEFORE_SCREENSHOT', "1em")
cy.set_cookie_lang(lang);
});
it("OpacResetPassword", function () {
cy.visit("/cgi-bin/koha/opac-main.pl");
cy.waitForPageLoad();
cy.get("#login").should('be.visible').screenshot("OpacResetPassword");
});
});
});
afterEach(function () {
cy.set_syspref("OpacResetPassword", "0");
Cypress.env('PADDING_BEFORE_SCREENSHOT', undefined);
if (this.currentTest.state === 'failed') {
Cypress.env("TEST_FAILED", true);
}
});
});
Spec data
Page
opac-main.pl
Interface
opac
Element selector
#login
Missing selector
N
setup
set_syspref OpacResetPassword=1
workflow
set padding=1em
teardown
set_syspref OpacResetPassword=0
Notes
Maybe some padding would be nice.
Cancel
Additional KTD data
Cancel