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

(-)a/t/cypress/integration/KohaTable/CirculationHistory_spec.ts (-1 / +23 lines)
Line 0 Link Here
0
- 
1
describe("members/readingrec", () => {
2
    const table_id = "table_readingrec";
3
    beforeEach(() => {
4
        cy.login();
5
        cy.title().should("eq", "Koha staff interface");
6
        cy.task("insertSampleCheckout").then(objects_checkout => {
7
            cy.wrap(objects_checkout).as("objects_checkout");
8
        });
9
    });
10
11
    afterEach(function () {
12
        cy.task("deleteSampleObjects", [this.objects_checkout]);
13
    });
14
15
    it("'Type' column should be hidden", function () {
16
        cy.visit(
17
            `/cgi-bin/koha/members/readingrec.pl?borrowernumber=${this.objects_checkout.patron.patron_id}`
18
        );
19
20
        cy.get(`#${table_id} th`).contains("Type").should("not.exist");
21
        cy.get(`#${table_id} th:first`).contains("Date");
22
    });
23
});

Return to bug 40301