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

(-)a/t/cypress/integration/Acquisitions/Vendors_spec.ts (-1 / +14 lines)
Lines 182-187 describe("Vendor CRUD operations", () => { Link Here
182
    it("should edit a vendor", () => {
182
    it("should edit a vendor", () => {
183
        const vendor = getVendor();
183
        const vendor = getVendor();
184
184
185
        cy.intercept("GET", "/api/v1/acquisitions/vendors\?*", {
186
            statusCode: 200,
187
            body: [vendor],
188
            headers: {
189
                "X-Base-Total-Count": "1",
190
                "X-Total-Count": "1",
191
            },
192
        });
185
        cy.visit("/cgi-bin/koha/acquisition/vendors");
193
        cy.visit("/cgi-bin/koha/acquisition/vendors");
186
        cy.intercept(
194
        cy.intercept(
187
            "GET",
195
            "GET",
Lines 223-228 describe("Vendor CRUD operations", () => { Link Here
223
            },
231
            },
224
        });
232
        });
225
        cy.visit("/cgi-bin/koha/acquisition/vendors");
233
        cy.visit("/cgi-bin/koha/acquisition/vendors");
234
        cy.intercept(
235
            "GET",
236
            new RegExp("/api/v1/acquisitions/vendors/(?!config$).+"),
237
            vendor
238
        ).as("get-vendor");
239
226
        const name_link = cy.get(
240
        const name_link = cy.get(
227
            "#vendors_list table tbody tr:first td:first a"
241
            "#vendors_list table tbody tr:first td:first a"
228
        );
242
        );
229
- 

Return to bug 38010