Commit 0faacec4 authored by Fred Chasen's avatar Fred Chasen

Update dependancies, fix specs for footnotes and marks

parent e13d1952
Pipeline #688 passed with stage
in 5 minutes and 46 seconds
This diff is collapsed.
......@@ -13,12 +13,12 @@ describe("footnote-policy", () => {
}
});
it("should render 14 pages", async () => {
it("should render 6 pages", async () => {
let pages = await page.$$eval(".pagedjs_page", (r) => {
return r.length;
});
expect(pages).toEqual(14);
expect(pages).toEqual(6);
});
......
......@@ -3,7 +3,7 @@ const TIMEOUT = 10000;
describe("footnotes-counter-reset-page", () => {
let page;
beforeAll(async () => {
page = await loadPage("notes/footnotes/footnotes-counter-reset-page.html");
page = await loadPage("notes/footnotes-counter-reset-page/footnotes-counter-reset-page.html");
return page.rendered;
}, TIMEOUT);
......
......@@ -3,7 +3,7 @@ const TIMEOUT = 10000;
describe("footnotes-counter-reset", () => {
let page;
beforeAll(async () => {
page = await loadPage("notes/footnotes/footnotes-counter-reset.html");
page = await loadPage("notes/footnotes-counter-reset/footnotes-counter-reset.html");
return page.rendered;
}, TIMEOUT);
......
......@@ -13,12 +13,12 @@ describe("footnotes", () => {
}
});
it("should render 2 pages", async () => {
it("should render 14 pages", async () => {
let pages = await page.$$eval(".pagedjs_page", (r) => {
return r.length;
});
expect(pages).toEqual(2);
expect(pages).toEqual(14);
});
......
This diff is collapsed.
......@@ -60,8 +60,8 @@
margin-bottom: 86px;
margin-left: 35mm;
margin-right: 35mm;
@footnote{
background-color: yellow;
@footnote {
padding-top: 6px;
}
@bottom-left{
content: counter(page);
......@@ -97,7 +97,7 @@
span.note {
float: footnote;
font-size: 12px;
font-family: Arial, Helvetica, sans-serif;
font-family: Arial, Helvetica, sans-serif;
}
/* .pagedjs_page{
......
......@@ -13,12 +13,12 @@ describe("footnotes", () => {
}
});
it("should render 14 pages", async () => {
it("should render 15 pages", async () => {
let pages = await page.$$eval(".pagedjs_page", (r) => {
return r.length;
});
expect(pages).toEqual(14);
expect(pages).toEqual(15);
});
......
const TIMEOUT = 10000;
describe("footnotes", () => {
describe("footnotes-place", () => {
let page;
beforeAll(async () => {
page = await loadPage("notes/footnotes/footnotes.html");
page = await loadPage("notes/footnotes-place/footnotes-place.html");
return page.rendered;
}, TIMEOUT);
......@@ -13,12 +13,12 @@ describe("footnotes", () => {
}
});
it("should render 14 pages", async () => {
it("should render 3 pages", async () => {
let pages = await page.$$eval(".pagedjs_page", (r) => {
return r.length;
});
expect(pages).toEqual(14);
expect(pages).toEqual(3);
});
......@@ -26,9 +26,9 @@ describe("footnotes", () => {
it("should create a pdf", async () => {
let pdf = await page.pdf(PDF_SETTINGS);
expect(pdf).toMatchPDFSnapshot(1);
expect(pdf).toMatchPDFSnapshot(2);
expect(pdf).toMatchPDFSnapshot(3);
expect(pdf).toMatchPDFSnapshot(4);
});
}
}
......
const TIMEOUT = 10000;
describe("footnotes", () => {
describe("footnotes-sameline", () => {
let page;
beforeAll(async () => {
page = await loadPage("notes/footnotes/footnotes.html");
page = await loadPage("notes/footnotes-sameline/footnotes-sameline.html");
return page.rendered;
}, TIMEOUT);
......
const TIMEOUT = 10000;
describe("footnotes", () => {
describe("footnotes-styles", () => {
let page;
beforeAll(async () => {
page = await loadPage("notes/footnotes/footnotes-styles.html");
page = await loadPage("notes/footnotes-styles/footnotes-styles.html");
return page.rendered;
}, TIMEOUT);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment