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

nocurrency (#139)

Job

No job planned.

Difficulty

Medium

Spec (updated on Wed May 21 14:45:09 2025)

describe("admin/acquisitions/nocurrency", 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.query("UPDATE currency SET active=0 WHERE currency=\"USD\";")
                cy.login();
                cy.set_cookie_lang(lang);
            });

            it("nocurrency", function () {
                cy.visit("/cgi-bin/koha/admin/currency.pl");
                cy.get(".alert-warning").should('be.visible').screenshot("nocurrency");
            });
        });
    });
    afterEach(function () {
        cy.query("UPDATE currency SET active=1 WHERE currency=\"USD\";")
        if (this.currentTest.state === 'failed') {
            Cypress.env("TEST_FAILED", true);
        }
    });
});

Spec data

Page

admin/currency.pl

Interface

staff

Element selector

.alert-warning

Missing selector

N

setup

sql UPDATE currency SET active=0 WHERE currency="USD";

workflow


        

teardown

sql UPDATE currency SET active=1 WHERE currency="USD";

Notes

Additional KTD data

Old

New (updated on Wed Jun 4 22:23:15 2025)

New (es)

New (fr)