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

(-)a/t/cypress/integration/Admin/RecordSources_spec.ts (-1 / +1 lines)
Lines 161-167 describe("Record sources CRUD tests", () => { Link Here
161
        cy.get("#record_sources_list table tbody tr:nth-child(2n+2)")
161
        cy.get("#record_sources_list table tbody tr:nth-child(2n+2)")
162
            .contains("Delete")
162
            .contains("Delete")
163
            .click();
163
            .click();
164
        cy.get(".dialog.alert.confirmation h1").contains(
164
        cy.get(".alert-warning.confirmation h1").contains(
165
            "Are you sure you want to delete 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");
(-)a/t/cypress/integration/ERM/Agreements_spec.ts (-3 / +3 lines)
Lines 575-581 describe("Agreement CRUD operations", () => { Link Here
575
        cy.get("#agreements_list table tbody tr:first")
575
        cy.get("#agreements_list table tbody tr:first")
576
            .contains("Delete")
576
            .contains("Delete")
577
            .click();
577
            .click();
578
        cy.get(".dialog.alert.confirmation h1").contains(
578
        cy.get(".alert-warning.confirmation h1").contains(
579
            "remove this agreement"
579
            "remove this agreement"
580
        );
580
        );
581
        cy.contains(agreement.name);
581
        cy.contains(agreement.name);
Lines 597-603 describe("Agreement CRUD operations", () => { Link Here
597
        cy.get("#agreements_list table tbody tr:first")
597
        cy.get("#agreements_list table tbody tr:first")
598
            .contains("Delete")
598
            .contains("Delete")
599
            .click();
599
            .click();
600
        cy.get(".dialog.alert.confirmation h1").contains(
600
        cy.get(".alert-warning.confirmation h1").contains(
601
            "remove this agreement"
601
            "remove this agreement"
602
        );
602
        );
603
        cy.contains("Yes, delete").click();
603
        cy.contains("Yes, delete").click();
Lines 634-640 describe("Agreement CRUD operations", () => { Link Here
634
        );
634
        );
635
635
636
        cy.get("#agreements_show #toolbar").contains("Delete").click();
636
        cy.get("#agreements_show #toolbar").contains("Delete").click();
637
        cy.get(".dialog.alert.confirmation h1").contains(
637
        cy.get(".alert-warning.confirmation h1").contains(
638
            "remove this agreement"
638
            "remove this agreement"
639
        );
639
        );
640
        cy.contains("Yes, delete").click();
640
        cy.contains("Yes, delete").click();
(-)a/t/cypress/integration/ERM/DataProviders_spec.ts (-3 / +3 lines)
Lines 319-325 describe("Data provider CRUD operations", () => { Link Here
319
        cy.get("#usage_data_providers_list table tbody tr:first")
319
        cy.get("#usage_data_providers_list table tbody tr:first")
320
            .contains("Delete")
320
            .contains("Delete")
321
            .click();
321
            .click();
322
        cy.get(".dialog.alert.confirmation h1").contains(
322
        cy.get(".alert-warning.confirmation h1").contains(
323
            "remove this data provider"
323
            "remove this data provider"
324
        );
324
        );
325
        cy.contains(dataProvider.name);
325
        cy.contains(dataProvider.name);
Lines 342-348 describe("Data provider CRUD operations", () => { Link Here
342
        // cy.get("#usage_data_providers_list table tbody tr:first")
342
        // cy.get("#usage_data_providers_list table tbody tr:first")
343
        //     .contains("Delete")
343
        //     .contains("Delete")
344
        //     .click();
344
        //     .click();
345
        // cy.get(".dialog.alert.confirmation h1").contains(
345
        // cy.get(".alert-warning.confirmation h1").contains(
346
        //     "remove this data provider"
346
        //     "remove this data provider"
347
        // );
347
        // );
348
        cy.contains("Yes, delete").click();
348
        cy.contains("Yes, delete").click();
Lines 386-392 describe("Data provider CRUD operations", () => { Link Here
386
        cy.get("#usage_data_providers_show #toolbar")
386
        cy.get("#usage_data_providers_show #toolbar")
387
            .contains("Delete")
387
            .contains("Delete")
388
            .click();
388
            .click();
389
        cy.get(".dialog.alert.confirmation h1").contains(
389
        cy.get(".alert-warning.confirmation h1").contains(
390
            "remove this data provider"
390
            "remove this data provider"
391
        );
391
        );
392
        cy.contains("Yes, delete").click();
392
        cy.contains("Yes, delete").click();
(-)a/t/cypress/integration/ERM/Dialog_spec.ts (-2 / +4 lines)
Lines 156-162 describe("Dialog operations", () => { Link Here
156
            .contains("Delete")
156
            .contains("Delete")
157
            .click();
157
            .click();
158
        cy.contains("No, do not delete").click();
158
        cy.contains("No, do not delete").click();
159
        cy.get(".dialog.alert.confirmation h1").should("not.exist");
159
        cy.get(".alert-warning.confirmation h1").should("not.exist");
160
        cy.get("main div[class='alert alert-info']").contains(
160
        cy.get("main div[class='alert alert-info']").contains(
161
            "Package updated"
161
            "Package updated"
162
        );
162
        );
Lines 169-175 describe("Dialog operations", () => { Link Here
169
        cy.get("#packages_list table tbody tr:first")
169
        cy.get("#packages_list table tbody tr:first")
170
            .contains("Delete")
170
            .contains("Delete")
171
            .click();
171
            .click();
172
        cy.get(".dialog.alert.confirmation h1").contains("remove this package");
172
        cy.get(".alert-warning.confirmation h1").contains(
173
            "remove this package"
174
        );
173
        cy.contains("Yes, delete").click();
175
        cy.contains("Yes, delete").click();
174
        cy.get("main div[class='alert alert-info']")
176
        cy.get("main div[class='alert alert-info']")
175
            .contains("Local package")
177
            .contains("Local package")
(-)a/t/cypress/integration/ERM/Licenses_spec.ts (-3 / +9 lines)
Lines 304-310 describe("License CRUD operations", () => { Link Here
304
        cy.get("#licenses_list table tbody tr:first")
304
        cy.get("#licenses_list table tbody tr:first")
305
            .contains("Delete")
305
            .contains("Delete")
306
            .click();
306
            .click();
307
        cy.get(".dialog.alert.confirmation h1").contains("remove this license");
307
        cy.get(".alert-warning.confirmation h1").contains(
308
            "remove this license"
309
        );
308
        cy.contains(license.name);
310
        cy.contains(license.name);
309
311
310
        // Accept the confirmation dialog, get 500
312
        // Accept the confirmation dialog, get 500
Lines 324-330 describe("License CRUD operations", () => { Link Here
324
        cy.get("#licenses_list table tbody tr:first")
326
        cy.get("#licenses_list table tbody tr:first")
325
            .contains("Delete")
327
            .contains("Delete")
326
            .click();
328
            .click();
327
        cy.get(".dialog.alert.confirmation h1").contains("remove this license");
329
        cy.get(".alert-warning.confirmation h1").contains(
330
            "remove this license"
331
        );
328
        cy.contains("Yes, delete").click();
332
        cy.contains("Yes, delete").click();
329
        cy.get("main div[class='alert alert-info']")
333
        cy.get("main div[class='alert alert-info']")
330
            .contains("License")
334
            .contains("License")
Lines 357-363 describe("License CRUD operations", () => { Link Here
357
        cy.get("#licenses_show h2").contains("License #" + license.license_id);
361
        cy.get("#licenses_show h2").contains("License #" + license.license_id);
358
362
359
        cy.get("#licenses_show #toolbar").contains("Delete").click();
363
        cy.get("#licenses_show #toolbar").contains("Delete").click();
360
        cy.get(".dialog.alert.confirmation h1").contains("remove this license");
364
        cy.get(".alert-warning.confirmation h1").contains(
365
            "remove this license"
366
        );
361
        cy.contains("Yes, delete").click();
367
        cy.contains("Yes, delete").click();
362
368
363
        //Make sure we return to list after deleting from show
369
        //Make sure we return to list after deleting from show
(-)a/t/cypress/integration/ERM/Packages_spec.ts (-3 / +9 lines)
Lines 299-305 describe("Package CRUD operations", () => { Link Here
299
        cy.get("#packages_list table tbody tr:first")
299
        cy.get("#packages_list table tbody tr:first")
300
            .contains("Delete")
300
            .contains("Delete")
301
            .click();
301
            .click();
302
        cy.get(".dialog.alert.confirmation h1").contains("remove this package");
302
        cy.get(".alert-warning.confirmation h1").contains(
303
            "remove this package"
304
        );
303
        cy.contains(erm_package.name);
305
        cy.contains(erm_package.name);
304
306
305
        // Accept the confirmation dialog, get 500
307
        // Accept the confirmation dialog, get 500
Lines 319-325 describe("Package CRUD operations", () => { Link Here
319
        cy.get("#packages_list table tbody tr:first")
321
        cy.get("#packages_list table tbody tr:first")
320
            .contains("Delete")
322
            .contains("Delete")
321
            .click();
323
            .click();
322
        cy.get(".dialog.alert.confirmation h1").contains("remove this package");
324
        cy.get(".alert-warning.confirmation h1").contains(
325
            "remove this package"
326
        );
323
        cy.contains("Yes, delete").click();
327
        cy.contains("Yes, delete").click();
324
        cy.get("main div[class='alert alert-info']")
328
        cy.get("main div[class='alert alert-info']")
325
            .contains("Local package")
329
            .contains("Local package")
Lines 356-362 describe("Package CRUD operations", () => { Link Here
356
        );
360
        );
357
361
358
        cy.get("#packages_show #toolbar").contains("Delete").click();
362
        cy.get("#packages_show #toolbar").contains("Delete").click();
359
        cy.get(".dialog.alert.confirmation h1").contains("remove this package");
363
        cy.get(".alert-warning.confirmation h1").contains(
364
            "remove this package"
365
        );
360
        cy.contains("Yes, delete").click();
366
        cy.contains("Yes, delete").click();
361
367
362
        //Make sure we return to list after deleting from show
368
        //Make sure we return to list after deleting from show
(-)a/t/cypress/integration/ERM/Searchbar_spec.ts (-5 / +5 lines)
Lines 13-36 describe("Searchbar header changes", () => { Link Here
13
13
14
    it("Default option is agreements", () => {
14
    it("Default option is agreements", () => {
15
        cy.visit("/cgi-bin/koha/erm/erm.pl");
15
        cy.visit("/cgi-bin/koha/erm/erm.pl");
16
        cy.get("#agreement_search-tab").parent().should("have.class", "active");
16
        cy.get("#agreement_search-tab").should("have.class", "active");
17
17
18
        cy.visit("/cgi-bin/koha/erm/agreements");
18
        cy.visit("/cgi-bin/koha/erm/agreements");
19
        cy.get("#agreement_search-tab").parent().should("have.class", "active");
19
        cy.get("#agreement_search-tab").should("have.class", "active");
20
    });
20
    });
21
21
22
    it("Should change to licenses when in licenses", () => {
22
    it("Should change to licenses when in licenses", () => {
23
        cy.visit("/cgi-bin/koha/erm/licenses");
23
        cy.visit("/cgi-bin/koha/erm/licenses");
24
        cy.get("#license_search-tab").parent().should("have.class", "active");
24
        cy.get("#license_search-tab").should("have.class", "active");
25
    });
25
    });
26
26
27
    it("Should change to packages when in local packages", () => {
27
    it("Should change to packages when in local packages", () => {
28
        cy.visit("/cgi-bin/koha/erm/eholdings/local/packages");
28
        cy.visit("/cgi-bin/koha/erm/eholdings/local/packages");
29
        cy.get("#package_search-tab").parent().should("have.class", "active");
29
        cy.get("#package_search-tab").should("have.class", "active");
30
    });
30
    });
31
31
32
    it("Should change to titles when in local titles", () => {
32
    it("Should change to titles when in local titles", () => {
33
        cy.visit("/cgi-bin/koha/erm/eholdings/local/titles");
33
        cy.visit("/cgi-bin/koha/erm/eholdings/local/titles");
34
        cy.get("#title_search-tab").parent().should("have.class", "active");
34
        cy.get("#title_search-tab").should("have.class", "active");
35
    });
35
    });
36
});
36
});
(-)a/t/cypress/integration/ERM/Titles_spec.ts (-4 / +3 lines)
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(".dialog.alert.confirmation h1").contains("remove this title");
455
        cy.get(".alert-warning.confirmation h1").contains("remove this title");
456
        cy.contains(erm_title.publication_title);
456
        cy.contains(erm_title.publication_title);
457
457
458
        // Accept the confirmation dialog, get 500
458
        // Accept the confirmation dialog, get 500
Lines 470-476 describe("Title CRUD operations", () => { Link Here
470
            body: null,
470
            body: null,
471
        });
471
        });
472
        cy.get("#titles_list table tbody tr:first").contains("Delete").click();
472
        cy.get("#titles_list table tbody tr:first").contains("Delete").click();
473
        cy.get(".dialog.alert.confirmation h1").contains("remove this title");
473
        cy.get(".alert-warning.confirmation h1").contains("remove this title");
474
        cy.contains("Yes, delete").click();
474
        cy.contains("Yes, delete").click();
475
        cy.get("main div[class='alert alert-info']")
475
        cy.get("main div[class='alert alert-info']")
476
            .contains("Local title")
476
            .contains("Local title")
Lines 515-521 describe("Title CRUD operations", () => { Link Here
515
        );
515
        );
516
516
517
        cy.get("#eholdings_title_show #toolbar").contains("Delete").click();
517
        cy.get("#eholdings_title_show #toolbar").contains("Delete").click();
518
        cy.get(".dialog.alert.confirmation h1").contains("remove this title");
518
        cy.get(".alert-warning.confirmation h1").contains("remove this title");
519
        cy.contains("Yes, delete").click();
519
        cy.contains("Yes, delete").click();
520
520
521
        //Make sure we return to list after deleting from show
521
        //Make sure we return to list after deleting from show
522
- 

Return to bug 35402