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

manage2fa-disabled (#163) ❌ Not validated

Job

No job planned.

Difficulty

Medium

Spec (updated on Tue Aug 5 14:37:10 2025)

describe("patrons/manage2fa-disabled", 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.set_syspref("TwoFactorAuthentication", "1");
                cy.login();
                /* No specific padding defined */
                cy.set_cookie_lang(lang);
            });

            it("manage2fa-disabled", function () {
                cy.visit("/cgi-bin/koha/members/moremember.pl?borrowernumber=51");
                cy.waitForPageLoad();
                cy.get("#pat_moremember #toolbar.btn-toolbar .btn-group button.btn.btn-default.dropdown-toggle.show").click();
                cy.get("#twofa").click();
                cy.waitForPageLoad();
                cy.get("main").should('be.visible').screenshot("manage2fa-disabled");
            });
        });
    });
    afterEach(function () {
        cy.set_syspref("TwoFactorAuthentication", "0");
        Cypress.env('PADDING_BEFORE_SCREENSHOT', undefined);
        if (this.currentTest.state === 'failed') {
            Cypress.env("TEST_FAILED", true);
        }
    });
});

Spec data

Page

moremember.pl?borrowernumber=51

Interface

staff

Element selector

main

Missing selector

N

setup

set_syspref TwoFactorAuthentication=1

workflow

click #pat_moremember #toolbar.btn-toolbar .btn-group button.btn.btn-default.dropdown-toggle.show
click #twofa
wait_for_page_load

teardown

set_syspref TwoFactorAuthentication=0

Notes

Additional KTD data

Test failure

AssertionError: Timed out retrying after 10000ms: Expected to find element: `#pat_moremember #toolbar.btn-toolbar .btn-group button.btn.btn-default.dropdown-toggle.show`, but never found it.
    at Context.eval (webpack://koha/./cypress/integration/patrons/manage2fa-disabled.ts:19:19)

Thumbnails


Current Thumbnail old

Current

Old screenshot