Job
No job planned.
Difficulty
Medium
Cancel
Spec (updated on Wed Jul 23 15:04:17 2025)
describe("admin/acquisitions/nocurrency", 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.query("UPDATE currency SET active=0 WHERE currency=\"USD\";")
cy.login();
/* No specific padding defined */
cy.set_cookie_lang(lang);
});
it("nocurrency", function () {
cy.visit("/cgi-bin/koha/admin/currency.pl");
cy.waitForPageLoad();
cy.get(".alert-warning").should('be.visible').screenshot("nocurrency");
});
});
});
afterEach(function () {
cy.query("UPDATE currency SET active=1 WHERE currency=\"USD\";")
Cypress.env('PADDING_BEFORE_SCREENSHOT', undefined);
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
Cancel
Additional KTD data
Cancel