Job
No job planned.
Difficulty
Easy
Cancel
Spec (updated on Fri Aug 1 13:03:11 2025)
describe("admin/additional/usagestatistics", 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("usagestatistics", function () {
cy.visit("/cgi-bin/koha/admin/usage_statistics.pl");
cy.waitForPageLoad();
cy.waitForPageLoad();
cy.get("main").should('be.visible').screenshot("usagestatistics");
});
});
});
afterEach(function () {
Cypress.env('PADDING_BEFORE_SCREENSHOT', undefined);
if (this.currentTest.state === 'failed') {
Cypress.env("TEST_FAILED", true);
}
});
});
Spec data
Page
admin/usage_statistics.pl
Interface
staff
Element selector
main
Missing selector
N
setup
workflow
wait_for_page_load
teardown
Notes
Cancel
Additional KTD data
Cancel