Job
No job planned.
Difficulty
Easy
Cancel
Spec (updated on Wed Jul 23 15:04:14 2025)
describe("reports/dict1", 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.login();
/* No specific padding defined */
cy.set_cookie_lang(lang);
});
it("dict1", function () {
cy.visit("/cgi-bin/koha/reports/dictionary.pl?op=add_form");
cy.waitForPageLoad();
cy.get("#definition_name").type("Info Today Publications");
cy.get("main").click();
cy.get("main").should('be.visible').screenshot("dict1");
});
});
});
afterEach(function () {
Cypress.env('PADDING_BEFORE_SCREENSHOT', undefined);
if (this.currentTest.state === 'failed') {
Cypress.env("TEST_FAILED", true);
}
});
});
Spec data
Page
dictionary.pl?op=add_form
Interface
staff
Element selector
main
Missing selector
N
setup
workflow
type #definition_name=Info Today Publications
click main
teardown
Notes
Cancel
Additional KTD data
Cancel