Lines 27-34
describe("loads the manage MARC import page", () => {
Link Here
|
27 |
it("upload a MARC record", () => { |
27 |
it("upload a MARC record", () => { |
28 |
cy.visit("/cgi-bin/koha/tools/stage-marc-import.pl"); |
28 |
cy.visit("/cgi-bin/koha/tools/stage-marc-import.pl"); |
29 |
|
29 |
|
30 |
cy.fixture("sample.mrc", null).as("sample_mrc"); |
30 |
cy.fixture("sample.xml", null).as("sample_xml"); |
31 |
cy.get("input[type=file]").selectFile("@sample_mrc"); |
31 |
cy.get("input[type=file]").selectFile("@sample_xml"); |
32 |
cy.get("#fileuploadbutton").click(); |
32 |
cy.get("#fileuploadbutton").click(); |
33 |
|
33 |
|
34 |
cy.get("#fileuploadstatus").contains("100%"); |
34 |
cy.get("#fileuploadstatus").contains("100%"); |
Lines 51-59
describe("loads the manage MARC import page", () => {
Link Here
|
51 |
"always_add" |
51 |
"always_add" |
52 |
); |
52 |
); |
53 |
|
53 |
|
54 |
cy.get('select[name="format"]') |
54 |
cy.get('select[name="format"]').should("have.value", "MARCXML"); |
55 |
.select("MARCXML", { force: true }) |
|
|
56 |
.should("have.value", "MARCXML"); |
57 |
|
55 |
|
58 |
//select some new options |
56 |
//select some new options |
59 |
cy.get("#matcher").select("3", { force: true }); |
57 |
cy.get("#matcher").select("3", { force: true }); |
60 |
- |
|
|