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

(-)a/t/cypress/integration/Toolbar_spec.ts (-3 / +5 lines)
Lines 15-32 describe("Sticky toolbar", () => { Link Here
15
                "X-Base-Total-Count": "1",
15
                "X-Base-Total-Count": "1",
16
                "X-Total-Count": "1",
16
                "X-Total-Count": "1",
17
            },
17
            },
18
        });
18
        }).as("get-vendors");
19
        cy.visit("/cgi-bin/koha/acquisition/vendors");
20
        cy.intercept(
19
        cy.intercept(
21
            "GET",
20
            "GET",
22
            new RegExp("/api/v1/acquisitions/vendors/(?!config$).+"),
21
            new RegExp("/api/v1/acquisitions/vendors/(?!config$).+"),
23
            vendor
22
            vendor
24
        ).as("get-vendor");
23
        ).as("get-vendor");
25
24
25
        cy.visit("/cgi-bin/koha/acquisition/vendors");
26
        cy.wait("@get-vendors");
27
26
        const name_link = cy.get(
28
        const name_link = cy.get(
27
            "#vendors_list table tbody tr:first td:first a"
29
            "#vendors_list table tbody tr:first td:first a"
28
        );
30
        );
29
        name_link.click();
31
        name_link.click();
32
        cy.wait("@get-vendor");
30
        cy.get("#toolbar a").contains("Receive shipments").click();
33
        cy.get("#toolbar a").contains("Receive shipments").click();
31
        cy.get("h1").contains("Receive shipment from vendor " + vendor.name);
34
        cy.get("h1").contains("Receive shipment from vendor " + vendor.name);
32
    });
35
    });
33
- 

Return to bug 40067