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:
parent
eddef24852
commit
5f3c15600c
|
|
@ -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", () => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue