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

(-)a/t/cypress/integration/Acquisitions/Vendors_spec.ts (-34 lines)
Lines 272-307 describe("Vendor CRUD operations", () => { Link Here
272
            .contains("deleted");
272
            .contains("deleted");
273
    });
273
    });
274
});
274
});
275
276
describe("External URLs", () => {
277
    beforeEach(() => {
278
        cy.login();
279
        cy.title().should("eq", "Koha staff interface");
280
    });
281
282
    it("should navigate to the receive shipments page", () => {
283
        cy.visit("/cgi-bin/koha/acqui/acqui-home.pl");
284
285
        const vendor = getVendor();
286
287
        cy.intercept("GET", "/api/v1/acquisitions/vendors*", {
288
            statusCode: 200,
289
            body: [vendor],
290
            headers: {
291
                "X-Base-Total-Count": "1",
292
                "X-Total-Count": "1",
293
            },
294
        });
295
        cy.visit("/cgi-bin/koha/vendors");
296
        const name_link = cy.get(
297
            "#vendors_list table tbody tr:first td:first a"
298
        );
299
        name_link.should("have.text", vendor.name + " (#" + vendor.id + ")");
300
        name_link.click();
301
        cy.wait(500);
302
        cy.get("#vendors_show h1").contains(vendor.name);
303
304
        cy.get("#vendors_show").contains("Receive shipments").click();
305
        cy.get("h1").contains("Receive shipment from vendor " + vendor.name);
306
    });
307
});
308
- 

Return to bug 38010