Login

Screenshots for the Koha manual

New screenshots | All screenshots | Full test results | Manuals (wip)
en ar cs de el es fr fr_CA hi it pt pt_BR sk sv tr zh_Hant

Image details

alerts (#30) ❌ Not validated

Job

No job planned.

Difficulty

Easy

Spec (updated on Fri Jun 6 13:57:50 2025)

describe("admin/additional/alerts", 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.set_syspref("AudioAlerts", "1");
                cy.login();
                /* No specific padding defined */
                cy.set_cookie_lang(lang);
            });

            it("alerts", function () {
                cy.visit("/cgi-bin/koha/admin/audio_alerts.pl");
                cy.get("main").should('be.visible').screenshot("alerts");
            });
        });
    });
    afterEach(function () {
        cy.set_syspref("AudioAlerts", "0");
        Cypress.env('PADDING_BEFORE_SCREENSHOT', undefined);
        if (this.currentTest.state === 'failed') {
            Cypress.env("TEST_FAILED", true);
        }
    });
});

Spec data

Page

admin/audio_alerts.pl

Interface

staff

Element selector

main

Missing selector

N

setup

set_syspref AudioAlerts=1

workflow


        

teardown

set_syspref AudioAlerts=0

Notes

Additional KTD data

Test failure

TypeError: Cannot read properties of undefined (reading 'value')

Because this error occurred during a `after each` hook we are skipping the remaining tests in the current suite: `admin/additional/alerts`
    at Context.eval (webpack://koha/./cypress/support/e2e.js:111:23)

Old