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

(-)a/t/cypress/integration/Acquisitions/Vendors_spec.ts (-1 / +28 lines)
Lines 232-235 describe("Vendor CRUD operations", () => { Link Here
232
            .contains("Vendor")
232
            .contains("Vendor")
233
            .contains("deleted");
233
            .contains("deleted");
234
    });
234
    });
235
236
    it.only("receive should open in the same tab", () => {
237
        const vendor = cy.getVendor();
238
        vendor.baskets_count = 1;
239
240
        cy.intercept("GET", "/api/v1/acquisitions/vendors\?*", {
241
            statusCode: 200,
242
            body: [vendor],
243
            headers: {
244
                "X-Base-Total-Count": "1",
245
                "X-Total-Count": "1",
246
            },
247
        });
248
        cy.intercept(
249
            "GET",
250
            new RegExp("/api/v1/acquisitions/vendors/(?!config$).+"),
251
            vendor
252
        );
253
        cy.visit("/cgi-bin/koha/acquisition/vendors");
254
255
        cy.get("#vendors_list table tbody tr:first")
256
            .contains("Receive shipments")
257
            .click();
258
        cy.url().should(
259
            "contain",
260
            "/cgi-bin/koha/acqui/parcels.pl?booksellerid=1"
261
        );
262
    });
235
});
263
});
236
- 

Return to bug 40318