Bug 38461: Jump to the configuration page

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 79bc770baa)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
Jonathan Druart 2024-11-27 15:53:31 +01:00 committed by Paul Derscheid
parent eddef24852
commit 5f3c15600c
No known key found for this signature in database
GPG Key ID: C25F9FD44CED595B
1 changed files with 18 additions and 0 deletions

View File

@ -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", () => {