Skip to content

Commit

Permalink
[DO-NOT-MERGE] Debug freetext scroll intermittent
Browse files Browse the repository at this point in the history
  • Loading branch information
timvandermeij committed Jul 9, 2024
1 parent 1bdd692 commit d9d181c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/integration/freetext_editor_spec.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3535,7 +3535,7 @@ describe("FreeText Editor", () => {
await closePages(pages);
});

it("must check that a freetext is still there after having updated it and scroll the doc", async () => {
fit("must check that a freetext is still there after having updated it and scroll the doc", async () => {

Check failure on line 3538 in test/integration/freetext_editor_spec.mjs

View workflow job for this annotation

GitHub Actions / Lint (lts/*)

Unexpected fit
await Promise.all(
pages.map(async ([browserName, page]) => {
await switchToFreeText(page);
Expand Down Expand Up @@ -3649,8 +3649,11 @@ describe("FreeText Editor", () => {
editorPng = await page.screenshot({
clip: editorRect,
type: "png",
encoding: "base64",
});
editorImage = PNG.sync.read(editorPng);
console.log("Base64 image: ", editorPng);

editorImage = PNG.sync.read(Buffer.from(editorPng, 'base64'));

Check failure on line 3656 in test/integration/freetext_editor_spec.mjs

View workflow job for this annotation

GitHub Actions / Lint (lts/*)

Replace `'base64'` with `"base64"`
expect(editorImage.data.every(x => x === 0xff))
.withContext(`In ${browserName}`)
.toBeFalse();
Expand Down

0 comments on commit d9d181c

Please sign in to comment.