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

(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Vendors/VendorFormAdd.vue (-10 / +10 lines)
Lines 5-21 Link Here
5
            {{ $__("Edit vendor #%s").format(vendor.id) }}
5
            {{ $__("Edit vendor #%s").format(vendor.id) }}
6
        </h1>
6
        </h1>
7
        <h1 v-else>{{ $__("Add vendor") }}</h1>
7
        <h1 v-else>{{ $__("Add vendor") }}</h1>
8
        <Toolbar :sticky="true">
9
            <ButtonSubmit :text="$__('Save')" icon="save" />
10
            <ToolbarButton
11
                :to="{ name: 'VendorList' }"
12
                :title="$__('Cancel')"
13
                icon="times"
14
                cssClass="btn btn-link"
15
            >
16
            </ToolbarButton>
17
        </Toolbar>
8
        <form @submit="onSubmit($event)" id="add_vendor">
18
        <form @submit="onSubmit($event)" id="add_vendor">
9
            <Toolbar :sticky="true">
10
                <ButtonSubmit :text="$__('Save')" icon="save" />
11
                <ToolbarButton
12
                    :to="{ name: 'VendorList' }"
13
                    :title="$__('Cancel')"
14
                    icon="times"
15
                    cssClass="btn btn-link"
16
                >
17
                </ToolbarButton>
18
            </Toolbar>
19
            <VendorDetails :vendor="vendor" />
19
            <VendorDetails :vendor="vendor" />
20
            <VendorContacts :vendor="vendor" />
20
            <VendorContacts :vendor="vendor" />
21
            <VendorInterfaces :vendor="vendor" />
21
            <VendorInterfaces :vendor="vendor" />
(-)a/t/cypress/integration/Acquisitions/Vendors_spec.ts (-3 / +2 lines)
Lines 35-41 describe("Vendor CRUD operations", () => { Link Here
35
        // Click the button in the toolbar
35
        // Click the button in the toolbar
36
        cy.visit("/cgi-bin/koha/acquisition/vendors");
36
        cy.visit("/cgi-bin/koha/acquisition/vendors");
37
        cy.contains("New vendor").click();
37
        cy.contains("New vendor").click();
38
        cy.get("#vendor_add h1").contains("Add vendor");
38
        cy.get("h1").contains("Add vendor");
39
39
40
        // Fill in the form for normal attributes
40
        // Fill in the form for normal attributes
41
        cy.get("#vendor_add").contains("Submit").click();
41
        cy.get("#vendor_add").contains("Submit").click();
Lines 140-146 describe("Vendor CRUD operations", () => { Link Here
140
        cy.get("#vendors_list table tbody tr:first").contains("Edit").click();
140
        cy.get("#vendors_list table tbody tr:first").contains("Edit").click();
141
        cy.wait("@get-vendor");
141
        cy.wait("@get-vendor");
142
        cy.wait(500); // Cypress is too fast! Vue hasn't populated the form yet!
142
        cy.wait(500); // Cypress is too fast! Vue hasn't populated the form yet!
143
        cy.get("#vendor_add h1").contains("Edit vendor");
143
        cy.get("h1").contains("Edit vendor");
144
144
145
        // Form has been correctly filled in
145
        // Form has been correctly filled in
146
        cy.get("#vendor_name").should("have.value", vendor.name);
146
        cy.get("#vendor_name").should("have.value", vendor.name);
147
- 

Return to bug 38899