Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

test: ignore snapshot size

thecodrref3904445b37
diff --git a/apps/web/__e2e__/notebooks.test.js b/apps/web/__e2e__/notebooks.test.js
index 66df31ef8..d89e6301d 100644
--- a/apps/web/__e2e__/notebooks.test.js
+++ b/apps/web/__e2e__/notebooks.test.js
@@ -231,5 +231,6 @@ test("pin a notebook", async () => {
await expect(notebook.screenshot()).resolves.toMatchImageSnapshot({
failureThreshold: 5,
failureThresholdType: "percent",
+ allowSizeMismatch: true,
});
});
diff --git a/apps/web/__e2e__/notes.test.js b/apps/web/__e2e__/notes.test.js
index b652033ef..2ade31cb6 100644
--- a/apps/web/__e2e__/notes.test.js
+++ b/apps/web/__e2e__/notes.test.js
@@ -92,6 +92,7 @@ async function checkNotePinned(noteSelector) {
const note = await page.$(List.new("note").grouped().atIndex(0).build());
await expect(note.screenshot()).resolves.toMatchImageSnapshot({
failureThreshold: 5,
+ allowSizeMismatch: true,
failureThresholdType: "percent",
});
}
@@ -127,6 +128,7 @@ async function checkNoteColored(noteSelector) {
const note = await page.$(List.new("note").grouped().atIndex(0).build());
await expect(note.screenshot()).resolves.toMatchImageSnapshot({
failureThreshold: 5,
+ allowSizeMismatch: true,
failureThresholdType: "percent",
});
@@ -134,6 +136,7 @@ async function checkNoteColored(noteSelector) {
const coloredNote = await page.$(List.new("note").atIndex(0).build());
await expect(coloredNote.screenshot()).resolves.toMatchImageSnapshot({
+ allowSizeMismatch: true,
failureThreshold: 5,
failureThresholdType: "percent",
});