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

(-)a/t/cypress/integration/Catalogue/Detail_spec.ts (-6 / +10 lines)
Lines 13-27 describe("Set record_source button is present", () => { Link Here
13
    });
13
    });
14
14
15
    after(() => {
15
    after(() => {
16
        cy.visit("/cgi-bin/koha/cataloguing/record_source.pl?biblionumber=51");
16
        cy.visit("/cgi-bin/koha/catalogue/detail.pl?biblionumber=51");
17
        cy.get("select").select("No specified source");
17
        cy.get("div#toolbar div:nth-child(2) ul").invoke("show");
18
        cy.get("input[type=submit]").click();
18
        cy.get("a#setrecordsource").click();
19
        cy.get("select#record_source_id").select("No specified source");
20
        cy.get("div#setRecordSourceModal")
21
            .contains("Set record source")
22
            .click();
19
23
20
        cy.intercept("GET", "/api/v1/record_sources*").as("listSources");
24
        cy.intercept("GET", "/api/v1/record_sources*").as("listSources");
21
        cy.visit("/cgi-bin/koha/admin/record_sources");
25
        cy.visit("/cgi-bin/koha/admin/record_sources");
22
        cy.wait("@listSources");
26
        cy.wait("@listSources");
23
        cy.get("tr:last-child a.delete").click();
27
        cy.get("tr:last-child a.delete").click();
24
        cy.contains("Poop");
25
        cy.get("button.approve").click();
28
        cy.get("button.approve").click();
26
    });
29
    });
27
30
Lines 30-36 describe("Set record_source button is present", () => { Link Here
30
        cy.contains("Edit").click();
33
        cy.contains("Edit").click();
31
        cy.contains("Set record source").click();
34
        cy.contains("Set record source").click();
32
        cy.get("#record_source_id").select("Poop");
35
        cy.get("#record_source_id").select("Poop");
33
        cy.contains("Set record source").click();
36
        cy.get("div#setRecordSourceModal")
37
            .contains("Set record source")
38
            .click();
34
        cy.visit("/cgi-bin/koha/catalogue/detail.pl?biblionumber=51");
39
        cy.visit("/cgi-bin/koha/catalogue/detail.pl?biblionumber=51");
35
        cy.get("#catalogue_detail_record_source").contains("Poop");
40
        cy.get("#catalogue_detail_record_source").contains("Poop");
36
    });
41
    });
37
- 

Return to bug 36372