View | Details | Raw Unified | Return to bug 41173
Collapse All | Expand All

(-)a/t/cypress/integration/ERM/Main.ts (-1 / +23 lines)
Lines 37-39 describe("Main component - pref on", () => { Link Here
37
        cy.get(".main div[class='alert alert-warning']").should("not.exist");
37
        cy.get(".main div[class='alert alert-warning']").should("not.exist");
38
    });
38
    });
39
});
39
});
40
- 
40
41
describe.only("Breadcrumb", () => {
42
    beforeEach(() => {
43
        cy.login();
44
        cy.title().should("eq", "Koha staff interface");
45
        cy.intercept(
46
            "GET",
47
            "/api/v1/erm/config",
48
            '{"settings":{"ERMModule":"1","ERMProviders":["local"]}}'
49
        );
50
    });
51
52
    it("Home should not reload the app", () => {
53
        cy.visit("/cgi-bin/koha/erm/agreements");
54
        cy.window().then(win => {
55
            const originalWindow = win;
56
            cy.get("#breadcrumbs").contains("E-resource management").click();
57
            cy.window().should(newWin => {
58
                expect(newWin).to.equal(originalWindow);
59
            });
60
        });
61
    });
62
});

Return to bug 41173