|
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 |
- |
|
|