From 712fdabb463ceaf18af793b68f85234a6dc9235b Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 27 Nov 2024 15:53:31 +0100 Subject: [PATCH] Bug 38461: Jump to the configuration page Signed-off-by: Victor Grousset/tuxayo --- t/cypress/integration/KohaTable_spec.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/t/cypress/integration/KohaTable_spec.ts b/t/cypress/integration/KohaTable_spec.ts index 8b1667a61e..48364401d8 100644 --- a/t/cypress/integration/KohaTable_spec.ts +++ b/t/cypress/integration/KohaTable_spec.ts @@ -325,6 +325,24 @@ describe("kohaTable (using REST API)", () => { }); }); }); + + it("Jump to the configuration page", () => { + cy.visit("/cgi-bin/koha/admin/branches.pl"); + cy.get(`#${table_id}_wrapper .dt_button_configure_table`).click(); + cy.url().should("contain", "module=admin"); + cy.url().should("contain", "page=libraries"); + cy.url().should("contain", "table=libraries"); + + cy.wait(2000); // ensure the animation completes, random failures? + cy.get("#admin_panel") + .contains("Table id: libraries") + .should("be.visible"); + + cy.window().then(win => { + const scrollTop = win.scrollY || win.pageYOffset; + expect(scrollTop).to.be.greaterThan(0); // Ensure some scrolling happened + }); + }); }); describe("Patrons search", () => { -- 2.47.1