Login

Screenshots for the Koha manual

New screenshots | All screenshots | Full test results | Manuals (wip)
en de el es fr hi zh_Hant

Image details

suggestionsarchived (#235) ✅ Validated

Job

Difficulty

Spec (updated on Tue Mar 24 15:47:12 2026)

describe("acquisitions/suggestionsarchived", function () {
    const languages = ['en', 'es-ES', 'fr-FR', 'de-DE', 'el-GR', 'hi', 'zh-Hant-TW'];
    languages.forEach((lang) => {
        describe(`in ${lang}`, () => {
            beforeEach(function(){
                // Skip if 'en' test failed
                if (Cypress.env("EN_TEST_FAILED")) {
                    this.skip();
                }
                cy.query("INSERT INTO suggestions(suggestionid, suggestedby, suggesteddate, STATUS, archived, date, title, author, branchcode, itemtype, patronreason, currency, price, total) VALUES (1, 28, \"2026-03-23\", \"ASKED\", 1, \"2026-03-23 08:13:41\", \"Cats on catnip\", \"Andrew Martilla\", \"CPL\", \"BOOK\", \"bestseller\", \"USD\", 0, 0);")
                cy.login();
                /* No specific padding defined */
                cy.set_cookie_lang(lang);
            });

            it("suggestionsarchived", function () {
                cy.visit("/cgi-bin/koha/suggestion/suggestion.pl?branchcode=__ANY__&filter_archived=1");
                cy.waitForPageLoad();
                cy.get("aside").parent().invoke("remove");
                cy.waitForTableLoad();
                cy.get(".main").should('be.visible').screenshot("suggestionsarchived");
            });
        });
    });
    afterEach(function () {
        cy.query("DELETE FROM suggestions where suggestionid=1;")
        Cypress.env('PADDING_BEFORE_SCREENSHOT', undefined);
        // Set EN_TEST_FAILED if the 'en' test failed
        if (this.currentTest.parent.title.includes('in en') && this.currentTest.state === 'failed') {
            Cypress.env("EN_TEST_FAILED", true);
        }
    });
});

Spec data

Page

suggestion/suggestion.pl?branchcode=__ANY__&filter_archived=1

Interface

staff

Element selector

.main

Missing selector

Y

setup

sql INSERT INTO suggestions(suggestionid, suggestedby, suggesteddate, STATUS, archived, date, title, author, branchcode, itemtype, patronreason, currency, price, total) VALUES (1, 28, "2026-03-23", "ASKED", 1, "2026-03-23 08:13:41", "Cats on catnip", "Andrew Martilla", "CPL", "BOOK", "bestseller", "USD", 0, 0);

workflow

remove_aside
wait_for_table_load

teardown

sql DELETE FROM suggestions where suggestionid=1;

Notes

Additional KTD data

Thumbnails


Current Thumbnail old
New Thumbnail new
New (de)
New (el)
New (es)
New (fr)
New (hi)
New (zh_Hant)

Current

New (updated on Tue Mar 24 15:49:19 2026)

New (de)

New (el)

New (es)

New (fr)

New (hi)

New (zh_Hant)

2026-03-24 16:00:03 +0000

2026-03-24 15:45:03 +0000

2026-03-24 15:30:03 +0000

2026-03-24 15:15:03 +0000

2026-03-24 15:00:03 +0000

2026-03-23 10:30:03 +0000

2026-03-23 10:15:03 +0000

Old screenshot