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

cities (#421)

Job

No job planned.

Difficulty

Hard

Spec (updated on Wed Jul 23 15:04:21 2025)

describe("admin/patroncirc/cities", 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("INSERT INTO cities (city_name, city_zipcode, city_country) VALUES (\"Wellington\", \"6011\", \"New Zealand\"), (\"Philadelphia\", \"19030\", \"USA\")")
                cy.login();
                /* No specific padding defined */
                cy.set_cookie_lang(lang);
            });

            it("cities", function () {
                cy.visit("/cgi-bin/koha/admin/cities.pl");
                cy.waitForPageLoad();
                cy.waitForTableLoad();
                cy.get("main").should('be.visible').screenshot("cities");
            });
        });
    });
    afterEach(function () {
        cy.query("DELETE FROM cities WHERE city_name=\"Wellington\" OR city_name=\"Philadelphia\"")
        Cypress.env('PADDING_BEFORE_SCREENSHOT', undefined);
        if (this.currentTest.state === 'failed') {
            Cypress.env("TEST_FAILED", true);
        }
    });
});

Spec data

Page

admin/cities.pl

Interface

staff

Element selector

main

Missing selector

N

setup

sql INSERT INTO cities (city_name, city_zipcode, city_country) VALUES ("Wellington", "6011", "New Zealand"), ("Philadelphia", "19030", "USA")

workflow

wait_for_table_load

teardown

sql DELETE FROM cities WHERE city_name="Wellington" OR city_name="Philadelphia"

Notes

Additional KTD data

Aude 6/06/25 One or two cities already set up would be nice... It means I wouldn't try inserting (and failing to insert) some using the sql instruction :-D

Thumbnails


Old Thumbnail old
New Thumbnail new
New (de)
New (el)
New (es)
New (fr)
New (zh_Hant)

Old

New (updated on Wed Jul 23 18:36:26 2025)

New (de)

New (el)

New (es)

New (fr)

New (zh_Hant)

Wed Jul 23 18:45:01 2025

Wed Jul 23 12:30:03 2025

Tue Jun 10 07:30:03 2025

Tue Jun 10 07:15:03 2025

Fri Jun 6 14:45:03 2025

Fri Jun 6 14:30:02 2025

Old screenshot