|
Lines 452-458
describe("Title CRUD operations", () => {
Link Here
|
| 452 |
cy.visit("/cgi-bin/koha/erm/eholdings/local/titles"); |
452 |
cy.visit("/cgi-bin/koha/erm/eholdings/local/titles"); |
| 453 |
|
453 |
|
| 454 |
cy.get("#titles_list table tbody tr:first").contains("Delete").click(); |
454 |
cy.get("#titles_list table tbody tr:first").contains("Delete").click(); |
| 455 |
cy.get(".alert-warning.confirmation h1").contains("remove this title"); |
455 |
cy.get(".alert-warning.confirmation h1").contains( |
|
|
456 |
"remove this local title" |
| 457 |
); |
| 456 |
cy.contains(erm_title.publication_title); |
458 |
cy.contains(erm_title.publication_title); |
| 457 |
|
459 |
|
| 458 |
// Accept the confirmation dialog, get 500 |
460 |
// Accept the confirmation dialog, get 500 |
|
Lines 470-476
describe("Title CRUD operations", () => {
Link Here
|
| 470 |
body: null, |
472 |
body: null, |
| 471 |
}); |
473 |
}); |
| 472 |
cy.get("#titles_list table tbody tr:first").contains("Delete").click(); |
474 |
cy.get("#titles_list table tbody tr:first").contains("Delete").click(); |
| 473 |
cy.get(".alert-warning.confirmation h1").contains("remove this title"); |
475 |
cy.get(".alert-warning.confirmation h1").contains( |
|
|
476 |
"remove this local title" |
| 477 |
); |
| 474 |
cy.contains("Yes, delete").click(); |
478 |
cy.contains("Yes, delete").click(); |
| 475 |
cy.get("main div[class='alert alert-info']") |
479 |
cy.get("main div[class='alert alert-info']") |
| 476 |
.contains("Local title") |
480 |
.contains("Local title") |
|
Lines 515-521
describe("Title CRUD operations", () => {
Link Here
|
| 515 |
); |
519 |
); |
| 516 |
|
520 |
|
| 517 |
cy.get("#eholdings_title_show #toolbar").contains("Delete").click(); |
521 |
cy.get("#eholdings_title_show #toolbar").contains("Delete").click(); |
| 518 |
cy.get(".alert-warning.confirmation h1").contains("remove this title"); |
522 |
cy.get(".alert-warning.confirmation h1").contains( |
|
|
523 |
"remove this local title" |
| 524 |
); |
| 519 |
cy.contains("Yes, delete").click(); |
525 |
cy.contains("Yes, delete").click(); |
| 520 |
|
526 |
|
| 521 |
//Make sure we return to list after deleting from show |
527 |
//Make sure we return to list after deleting from show |
| 522 |
- |
|
|