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 96-102 describe("Vendor CRUD operations", () => { Link Here
96
        // Click the button in the toolbar
96
        // Click the button in the toolbar
97
        cy.visit("/cgi-bin/koha/acquisition/vendors");
97
        cy.visit("/cgi-bin/koha/acquisition/vendors");
98
        cy.contains("New vendor").click();
98
        cy.contains("New vendor").click();
99
        cy.get("#add_vendor h1").contains("Add vendor");
99
        cy.get("h1").contains("Add vendor");
100
100
101
        // Fill in the form for normal attributes
101
        // Fill in the form for normal attributes
102
        cy.get("#add_vendor").contains("Submit").click();
102
        cy.get("#add_vendor").contains("Submit").click();
Lines 193-199 describe("Vendor CRUD operations", () => { Link Here
193
        cy.get("#vendors_list table tbody tr:first").contains("Edit").click();
193
        cy.get("#vendors_list table tbody tr:first").contains("Edit").click();
194
        cy.wait("@get-vendor");
194
        cy.wait("@get-vendor");
195
        cy.wait(500); // Cypress is too fast! Vue hasn't populated the form yet!
195
        cy.wait(500); // Cypress is too fast! Vue hasn't populated the form yet!
196
        cy.get("#add_vendor h1").contains("Edit vendor");
196
        cy.get("h1").contains("Edit vendor");
197
197
198
        // Form has been correctly filled in
198
        // Form has been correctly filled in
199
        cy.get("#vendor_name").should("have.value", vendor.name);
199
        cy.get("#vendor_name").should("have.value", vendor.name);
200
- 

Return to bug 38899