|
Lines 482-490
describe("Hit all tables", () => {
Link Here
|
| 482 |
const table_id = "holdings_table"; |
482 |
const table_id = "holdings_table"; |
| 483 |
it("correctly init", () => { |
483 |
it("correctly init", () => { |
| 484 |
const biblio_id = 1; |
484 |
const biblio_id = 1; |
| 485 |
cy.task("buildsampleobjects", { |
485 |
cy.task("buildSampleObjects", { |
| 486 |
object: "item", |
486 |
object: "item", |
| 487 |
count: restdefaultpagesize, |
487 |
count: RESTdefaultPageSize, |
| 488 |
values: { |
488 |
values: { |
| 489 |
biblio_id, |
489 |
biblio_id, |
| 490 |
checkout: null, |
490 |
checkout: null, |
|
Lines 500-507
describe("Hit all tables", () => {
Link Here
|
| 500 |
statuscode: 200, |
500 |
statuscode: 200, |
| 501 |
body: items, |
501 |
body: items, |
| 502 |
headers: { |
502 |
headers: { |
| 503 |
"x-base-total-count": basetotalcount, |
503 |
"x-base-total-count": baseTotalCount, |
| 504 |
"x-total-count": basetotalcount, |
504 |
"x-total-count": baseTotalCount, |
| 505 |
}, |
505 |
}, |
| 506 |
}); |
506 |
}); |
| 507 |
|
507 |
|
|
Lines 519-530
describe("Hit all tables", () => {
Link Here
|
| 519 |
|
519 |
|
| 520 |
cy.get(`#${table_id}_wrapper tbody tr`).should( |
520 |
cy.get(`#${table_id}_wrapper tbody tr`).should( |
| 521 |
"have.length", |
521 |
"have.length", |
| 522 |
restdefaultpagesize |
522 |
RESTdefaultPageSize |
| 523 |
); |
523 |
); |
| 524 |
|
524 |
|
| 525 |
cy.get(".show_filters").click(); |
525 |
cy.get(".show_filters").click(); |
| 526 |
cy.get(`#${table_id}_wrapper .dt-info`).contains( |
526 |
cy.get(`#${table_id}_wrapper .dt-info`).contains( |
| 527 |
`showing 1 to ${restdefaultpagesize} of ${basetotalcount} entries` |
527 |
`Showing 1 to ${RESTdefaultPageSize} of ${baseTotalCount} entries` |
| 528 |
); |
528 |
); |
| 529 |
}); |
529 |
}); |
| 530 |
}); |
530 |
}); |
| 531 |
- |
|
|