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

(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Admin/RecordSources/List.vue (-4 / +4 lines)
Lines 105-111 export default { Link Here
105
            this.setConfirmationDialog(
105
            this.setConfirmationDialog(
106
                {
106
                {
107
                    title: this.$__(
107
                    title: this.$__(
108
                        "Are you sure you want to remove this record source?"
108
                        "Are you sure you want to delete this record source?"
109
                    ),
109
                    ),
110
                    message: record_source.name,
110
                    message: record_source.name,
111
                    accept_label: this.$__("Yes, delete"),
111
                    accept_label: this.$__("Yes, delete"),
Lines 118-126 export default { Link Here
118
                        .then(
118
                        .then(
119
                            success => {
119
                            success => {
120
                                this.setMessage(
120
                                this.setMessage(
121
                                    this.$__("Record source %s deleted").format(
121
                                    this.$__(
122
                                        record_source.name
122
                                        "Record source '%s' deleted"
123
                                    ),
123
                                    ).format(record_source.name),
124
                                    true
124
                                    true
125
                                )
125
                                )
126
                                dt.draw()
126
                                dt.draw()
(-)a/t/cypress/integration/Admin/RecordSources_spec.ts (-5 / +4 lines)
Lines 162-179 describe("Record sources CRUD tests", () => { Link Here
162
            .contains("Delete")
162
            .contains("Delete")
163
            .click();
163
            .click();
164
        cy.get(".dialog.alert.confirmation h1").contains(
164
        cy.get(".dialog.alert.confirmation h1").contains(
165
            "Are you sure you want to remove this record source?"
165
            "Are you sure you want to delete this record source?"
166
        );
166
        );
167
        cy.contains("Source 2");
167
        cy.contains("Source 2");
168
        cy.contains("No, do not remove").click();
168
        cy.contains("No, do not delete").click();
169
169
170
        cy.get("#record_sources_list table tbody tr:nth-child(2n+2)")
170
        cy.get("#record_sources_list table tbody tr:nth-child(2n+2)")
171
            .contains("Delete")
171
            .contains("Delete")
172
            .click();
172
            .click();
173
        cy.contains("Source 2");
173
        cy.contains("Source 2");
174
        cy.contains("Yes, remove").click();
174
        cy.contains("Yes, delete").click();
175
        cy.get("main div[class='dialog message']").contains(
175
        cy.get("main div[class='dialog message']").contains(
176
            "Record source 'Source 2' removed"
176
            "Record source 'Source 2' deleted"
177
        );
177
        );
178
    });
178
    });
179
});
179
});
180
- 

Return to bug 35919