|
Lines 34-56
describe("loads the manage MARC import page", () => {
Link Here
|
| 34 |
cy.get('button[id="fileuploadbutton"]').click(); |
34 |
cy.get('button[id="fileuploadbutton"]').click(); |
| 35 |
}); |
35 |
}); |
| 36 |
|
36 |
|
| 37 |
//wait after file upload, it can go to quickly here |
37 |
cy.get("#fileuploadstatus").contains("100%"); |
| 38 |
cy.wait(2000); |
38 |
cy.get("legend") |
|
|
39 |
.contains("Look for existing records in catalog?") |
| 40 |
.should("be.visible"); |
| 39 |
|
41 |
|
| 40 |
//check default values |
42 |
//check default values |
| 41 |
cy.get('select[name="matcher"] option:selected').should( |
43 |
cy.get("select#matcher option:selected").should("have.value", ""); |
| 42 |
"have.value", |
44 |
cy.get("select#overlay_action option:selected").should( |
| 43 |
"" |
|
|
| 44 |
); |
| 45 |
cy.get('select[name="overlay_action"] option:selected').should( |
| 46 |
"have.value", |
45 |
"have.value", |
| 47 |
"replace" |
46 |
"replace" |
| 48 |
); |
47 |
); |
| 49 |
cy.get('select[name="nomatch_action"] option:selected').should( |
48 |
cy.get("select#nomatch_action option:selected").should( |
| 50 |
"have.value", |
49 |
"have.value", |
| 51 |
"create_new" |
50 |
"create_new" |
| 52 |
); |
51 |
); |
| 53 |
cy.get('select[name="item_action"] option:selected').should( |
52 |
cy.get("select#item_action option:selected").should( |
| 54 |
"have.value", |
53 |
"have.value", |
| 55 |
"always_add" |
54 |
"always_add" |
| 56 |
); |
55 |
); |
|
Lines 64-91
describe("loads the manage MARC import page", () => {
Link Here
|
| 64 |
cy.get("#nomatch_action").select("ignore", { force: true }); |
63 |
cy.get("#nomatch_action").select("ignore", { force: true }); |
| 65 |
cy.get("#item_action").select("ignore", { force: true }); |
64 |
cy.get("#item_action").select("ignore", { force: true }); |
| 66 |
|
65 |
|
| 67 |
//remove focus |
|
|
| 68 |
//cy.get('#item_action').blur(); |
| 69 |
cy.screenshot("after_selection"); |
| 70 |
|
| 71 |
// Now verify all values |
66 |
// Now verify all values |
| 72 |
cy.get("#matcher").should("have.value", "3"); |
67 |
cy.get("#matcher").should("have.value", "3"); |
| 73 |
cy.get("#overlay_action").should("have.value", "create_new"); |
68 |
cy.get("#overlay_action").should("have.value", "create_new"); |
| 74 |
cy.get("#nomatch_action").should("have.value", "ignore"); |
69 |
cy.get("#nomatch_action").should("have.value", "ignore"); |
| 75 |
cy.get("#item_action").should("have.value", "ignore"); |
70 |
cy.get("#item_action").should("have.value", "ignore"); |
| 76 |
|
71 |
|
| 77 |
cy.screenshot("right_before_submission"); |
|
|
| 78 |
cy.get("#mainformsubmit").click(); |
72 |
cy.get("#mainformsubmit").click(); |
| 79 |
|
73 |
|
| 80 |
cy.get("#job_callback").should("exist"); |
74 |
cy.get("#job_callback").should("exist"); |
| 81 |
|
75 |
|
| 82 |
//wait for View batch link to load with the batch ID |
|
|
| 83 |
cy.wait(5000); |
| 84 |
|
| 85 |
cy.screenshot("after_waiting"); |
| 86 |
cy.contains("View batch").click(); |
76 |
cy.contains("View batch").click(); |
| 87 |
|
77 |
|
| 88 |
cy.wait(2000); |
|
|
| 89 |
// Now verify all values are retained |
78 |
// Now verify all values are retained |
| 90 |
cy.get("#new_matcher_id").should("have.value", "3"); |
79 |
cy.get("#new_matcher_id").should("have.value", "3"); |
| 91 |
cy.get("#overlay_action").should("have.value", "create_new"); |
80 |
cy.get("#overlay_action").should("have.value", "create_new"); |
| 92 |
- |
|
|