Lines 47-52
describe("Title CRUD operations", () => {
Link Here
|
47 |
cy.wait(500); |
47 |
cy.wait(500); |
48 |
cy.get("#toolbar a").contains("Import from list").click(); |
48 |
cy.get("#toolbar a").contains("Import from list").click(); |
49 |
cy.get("h2").contains("Import from a list"); |
49 |
cy.get("h2").contains("Import from a list"); |
|
|
50 |
cy.left_menu_active_item_is("Titles"); |
50 |
cy.get("#package_list .vs__selected").should("not.exist"); |
51 |
cy.get("#package_list .vs__selected").should("not.exist"); |
51 |
|
52 |
|
52 |
// Make sure packages are returned |
53 |
// Make sure packages are returned |
Lines 127-132
describe("Title CRUD operations", () => {
Link Here
|
127 |
cy.wait(500); // Cypress is too fast! Vue hasn't populated the form yet! |
128 |
cy.wait(500); // Cypress is too fast! Vue hasn't populated the form yet! |
128 |
cy.contains("New title").click(); |
129 |
cy.contains("New title").click(); |
129 |
cy.get("#titles_add h2").contains("New title"); |
130 |
cy.get("#titles_add h2").contains("New title"); |
|
|
131 |
cy.left_menu_active_item_is("Titles"); |
130 |
|
132 |
|
131 |
// Fill in the form for normal attributes |
133 |
// Fill in the form for normal attributes |
132 |
let erm_title = cy.get_title(); |
134 |
let erm_title = cy.get_title(); |
Lines 249-254
describe("Title CRUD operations", () => {
Link Here
|
249 |
cy.wait("@get-title"); |
251 |
cy.wait("@get-title"); |
250 |
cy.wait(500); // Cypress is too fast! Vue hasn't populated the form yet! |
252 |
cy.wait(500); // Cypress is too fast! Vue hasn't populated the form yet! |
251 |
cy.get("#titles_add h2").contains("Edit title"); |
253 |
cy.get("#titles_add h2").contains("Edit title"); |
|
|
254 |
cy.left_menu_active_item_is("Titles"); |
252 |
|
255 |
|
253 |
// Form has been correctly filled in |
256 |
// Form has been correctly filled in |
254 |
cy.get("#title_publication_title").should( |
257 |
cy.get("#title_publication_title").should( |
Lines 402-407
describe("Title CRUD operations", () => {
Link Here
|
402 |
cy.get("#eholdings_title_show h2").contains( |
405 |
cy.get("#eholdings_title_show h2").contains( |
403 |
"Title #" + erm_title.title_id |
406 |
"Title #" + erm_title.title_id |
404 |
); |
407 |
); |
|
|
408 |
cy.left_menu_active_item_is("Titles"); |
405 |
// There are no packages, the table should not be displayed |
409 |
// There are no packages, the table should not be displayed |
406 |
cy.contains("Packages (0)"); |
410 |
cy.contains("Packages (0)"); |
407 |
cy.get("#table#package_list").should("not.exist"); |
411 |
cy.get("#table#package_list").should("not.exist"); |