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

uploadnewfiles (#1794)

Job

No job planned.

Difficulty

Impossible with Cypress Studio

Spec (updated on Fri Jul 25 09:31:26 2025)

describe("tools/upload/uploadnewfiles", 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 authorised_values (category, authorised_value, lib) VALUES (\"UPLOAD\", \"OPAC\", \"OPAC\")")
                cy.login();
                /* No specific padding defined */
                cy.set_cookie_lang(lang);
            });

            it("uploadnewfiles", function () {
                cy.visit("/cgi-bin/koha/tools/upload.pl");
                cy.waitForPageLoad();
                cy.get("main").should('be.visible').screenshot("uploadnewfiles");
            });
        });
    });
    afterEach(function () {
        cy.query("DELETE from authorised_values WHERE category = \"UPLOAD\"")
        Cypress.env('PADDING_BEFORE_SCREENSHOT', undefined);
        if (this.currentTest.state === 'failed') {
            Cypress.env("TEST_FAILED", true);
        }
    });
});

Spec data

Page

tools/upload.pl

Interface

staff

Element selector

main

Missing selector

Y

setup

sql INSERT INTO authorised_values (category, authorised_value, lib) VALUES ("UPLOAD", "OPAC", "OPAC")

workflow


        

teardown

sql DELETE from authorised_values WHERE category = "UPLOAD"

Notes

There is no selector for just the "Upload new files" section.

The SQL to add the authorized values for each language.

Additional KTD data

Thumbnails


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

Old

New (updated on Fri Jul 25 09:33:01 2025)

New (de)

New (el)

New (es)

New (fr)

New (zh_Hant)

Fri Jul 25 09:45:03 2025

Old screenshot