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

(-)a/t/cypress/integration/Agreements_spec.ts (-3 / +2 lines)
Lines 187-193 describe("Agreement CRUD operations", () => { Link Here
187
        cy.get("#agreements_add").contains("Submit").click();
187
        cy.get("#agreements_add").contains("Submit").click();
188
        cy.get("input:invalid,textarea:invalid,select:invalid").should(
188
        cy.get("input:invalid,textarea:invalid,select:invalid").should(
189
            "have.length",
189
            "have.length",
190
            3
190
            2
191
        );
191
        );
192
        cy.get("#agreement_name").type(agreement.name);
192
        cy.get("#agreement_name").type(agreement.name);
193
        cy.get("#agreement_description").type(agreement.description);
193
        cy.get("#agreement_description").type(agreement.description);
Lines 515-521 describe("Agreement CRUD operations", () => { Link Here
515
            statusCode: 500,
515
            statusCode: 500,
516
            error: "Something went wrong",
516
            error: "Something went wrong",
517
        });
517
        });
518
        cy.contains("Accept").click();
518
        cy.contains("Yes, delete").click();
519
        cy.get("main div[class='dialog alert']").contains(
519
        cy.get("main div[class='dialog alert']").contains(
520
            "Something went wrong: Error: Internal Server Error"
520
            "Something went wrong: Error: Internal Server Error"
521
        );
521
        );
Lines 563-569 describe("Agreement CRUD operations", () => { Link Here
563
        cy.get('#agreements_show .action_links .fa-trash').click();
563
        cy.get('#agreements_show .action_links .fa-trash').click();
564
        cy.get(".dialog.alert.confirmation h1").contains("remove this agreement");
564
        cy.get(".dialog.alert.confirmation h1").contains("remove this agreement");
565
        cy.contains("Yes, delete").click();
565
        cy.contains("Yes, delete").click();
566
        cy.get("main div[class='dialog message']").contains("Agreement").contains("deleted");
567
566
568
        //Make sure we return to list after deleting from show
567
        //Make sure we return to list after deleting from show
569
        cy.get("#agreements_list table tbody tr:first")
568
        cy.get("#agreements_list table tbody tr:first")
(-)a/t/cypress/integration/Licenses_spec.ts (-1 lines)
Lines 309-315 describe("License CRUD operations", () => { Link Here
309
        cy.get('#licenses_show .action_links .fa-trash').click();
309
        cy.get('#licenses_show .action_links .fa-trash').click();
310
        cy.get(".dialog.alert.confirmation h1").contains("remove this license");
310
        cy.get(".dialog.alert.confirmation h1").contains("remove this license");
311
        cy.contains("Yes, delete").click();
311
        cy.contains("Yes, delete").click();
312
        cy.get("main div[class='dialog message']").contains("License").contains("deleted");
313
312
314
        //Make sure we return to list after deleting from show
313
        //Make sure we return to list after deleting from show
315
        cy.get("#licenses_list table tbody tr:first")
314
        cy.get("#licenses_list table tbody tr:first")
(-)a/t/cypress/integration/Packages_spec.ts (-1 lines)
Lines 353-359 describe("Package CRUD operations", () => { Link Here
353
        cy.get('#packages_show .action_links .fa-trash').click();
353
        cy.get('#packages_show .action_links .fa-trash').click();
354
        cy.get(".dialog.alert.confirmation h1").contains("remove this package");
354
        cy.get(".dialog.alert.confirmation h1").contains("remove this package");
355
        cy.contains("Yes, delete").click();
355
        cy.contains("Yes, delete").click();
356
        cy.get("main div[class='dialog message']").contains("Local package").contains("deleted");
357
356
358
        //Make sure we return to list after deleting from show
357
        //Make sure we return to list after deleting from show
359
        cy.get("#packages_list table tbody tr:first")
358
        cy.get("#packages_list table tbody tr:first")
(-)a/t/cypress/integration/Titles_spec.ts (-2 lines)
Lines 498-504 describe("Title CRUD operations", () => { Link Here
498
        cy.get('#eholdings_title_show .action_links .fa-trash').click();
498
        cy.get('#eholdings_title_show .action_links .fa-trash').click();
499
        cy.get(".dialog.alert.confirmation h1").contains("remove this title");
499
        cy.get(".dialog.alert.confirmation h1").contains("remove this title");
500
        cy.contains("Yes, delete").click();
500
        cy.contains("Yes, delete").click();
501
        cy.get("main div[class='dialog message']").contains("Local title").contains("deleted");
502
501
503
        //Make sure we return to list after deleting from show
502
        //Make sure we return to list after deleting from show
504
        cy.get("#titles_list table tbody tr:first")
503
        cy.get("#titles_list table tbody tr:first")
505
- 

Return to bug 33235