Lines 15-21
describe("Breadcrumbs tests", () => {
Link Here
|
15 |
cy.get(".item-last").contains("Record sources"); |
15 |
cy.get(".item-last").contains("Record sources"); |
16 |
// use the 'New' button |
16 |
// use the 'New' button |
17 |
cy.contains("New record source").click(); |
17 |
cy.contains("New record source").click(); |
18 |
cy.wait(500); |
|
|
19 |
cy.get(".current").contains("Add record source"); |
18 |
cy.get(".current").contains("Add record source"); |
20 |
cy.get("#breadcrumbs") |
19 |
cy.get("#breadcrumbs") |
21 |
.contains("Record sources") |
20 |
.contains("Record sources") |
Lines 114-120
describe("Record sources CRUD tests", () => {
Link Here
|
114 |
cy.get("#record_sources_list table tbody tr:first") |
113 |
cy.get("#record_sources_list table tbody tr:first") |
115 |
.contains("Edit") |
114 |
.contains("Edit") |
116 |
.click(); |
115 |
.click(); |
117 |
cy.wait(500); |
|
|
118 |
cy.get("#name").should("have.value", "Source 1"); |
116 |
cy.get("#name").should("have.value", "Source 1"); |
119 |
cy.get("#can_be_edited").should("be.checked"); |
117 |
cy.get("#can_be_edited").should("be.checked"); |
120 |
|
118 |
|
Lines 126-132
describe("Record sources CRUD tests", () => {
Link Here
|
126 |
can_be_edited: false, |
124 |
can_be_edited: false, |
127 |
}, |
125 |
}, |
128 |
}); |
126 |
}); |
129 |
cy.visit("/cgi-bin/koha/admin/record_sources/1"); |
127 |
cy.visit("/cgi-bin/koha/admin/record_sources/edit/1"); |
130 |
cy.get("#name").should("have.value", "Source 1"); |
128 |
cy.get("#name").should("have.value", "Source 1"); |
131 |
cy.get("#can_be_edited").should("not.be.checked"); |
129 |
cy.get("#can_be_edited").should("not.be.checked"); |
132 |
|
130 |
|
133 |
- |
|
|