Commit a269f272 authored by Fred Chasen's avatar Fred Chasen

Update tests now that whitespace is removed

parent d5098e8a
const TIMEOUT = 10000; // Some book might take longer than this to renderer
describe("infinite-loop", () => {
describe.skip("infinite-loop", () => {
let page;
beforeAll(async () => {
page = await loadPage("infinite-loop/infinite-loop.html");
......
......@@ -49,6 +49,7 @@
<body>
<section>
<b>Title</b>
<h1>aaa</h1>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi non suscipit odio. Aenean ut ligula id mauris efficitur tincidunt vitae non leo.
......
......@@ -150,12 +150,12 @@ describe("string-multiple", () => {
}
});
it("should set the running header as nothing on the first page", async () => {
it("should set the running header as \"aaa\" on the second page", async () => {
let text = await page.$eval("#page-2", (r) =>
window.getComputedStyle(r).getPropertyValue("--pagedjs-string-alphabet"));
expect(text).toEqual("\"aaa\"");
});
it("should set the running header as nothing on the first page", async () => {
it("should set the running header as \"1111\" on the second page", async () => {
let text = await page.$eval("#page-2", (r) =>
window.getComputedStyle(r).getPropertyValue("--pagedjs-string-alphabetbis"));
expect(text).toEqual("\"1111\"");
......
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