AI-native design editor. Open-source Figma alternative.
test(e2e): hide rulers in visual regression snapshots
Danila Poyarkov23583525f573
diff --git a/tests/e2e/canvas/frame-overlays.spec.ts b/tests/e2e/canvas/frame-overlays.spec.tsindex db65fc840..13f38e986 100644--- a/tests/e2e/canvas/frame-overlays.spec.ts+++ b/tests/e2e/canvas/frame-overlays.spec.ts@@ -9,7 +9,7 @@ test.describe.configure({ mode: 'serial' })test.beforeAll(async ({ browser }) => {page = await browser.newPage()- await page.goto('/?test&no-chrome')+ await page.goto('/?test&no-chrome&no-rulers')canvas = new CanvasHelper(page)await canvas.waitForInit()})diff --git a/tests/e2e/canvas/frame-overlays.spec.ts-snapshots/rotated-frame-child-hover-highlight-openpencil-darwin.png b/tests/e2e/canvas/frame-overlays.spec.ts-snapshots/rotated-frame-child-hover-highlight-openpencil-darwin.pngnew file mode 100644index 000000000..37a8f3c4cBinary files /dev/null and b/tests/e2e/canvas/frame-overlays.spec.ts-snapshots/rotated-frame-child-hover-highlight-openpencil-darwin.png differdiff --git a/tests/e2e/canvas/frame-overlays.spec.ts-snapshots/rotated-frame-selection-labels-openpencil-darwin.png b/tests/e2e/canvas/frame-overlays.spec.ts-snapshots/rotated-frame-selection-labels-openpencil-darwin.pngnew file mode 100644index 000000000..472724ae9Binary files /dev/null and b/tests/e2e/canvas/frame-overlays.spec.ts-snapshots/rotated-frame-selection-labels-openpencil-darwin.png differdiff --git a/tests/e2e/canvas/frame-overlays.spec.ts-snapshots/rotated-frame-selection-labels-preview-openpencil-darwin.png b/tests/e2e/canvas/frame-overlays.spec.ts-snapshots/rotated-frame-selection-labels-preview-openpencil-darwin.pngnew file mode 100644index 000000000..5a9d613a4Binary files /dev/null and b/tests/e2e/canvas/frame-overlays.spec.ts-snapshots/rotated-frame-selection-labels-preview-openpencil-darwin.png differdiff --git a/tests/e2e/create-shapes.spec.ts-snapshots/draw-and-delete-openpencil-darwin.png b/tests/e2e/create-shapes.spec.ts-snapshots/draw-and-delete-openpencil-darwin.pngdeleted file mode 100644index fdd92ab4b..000000000Binary files a/tests/e2e/create-shapes.spec.ts-snapshots/draw-and-delete-openpencil-darwin.png and /dev/null differdiff --git a/tests/e2e/create-shapes.spec.ts-snapshots/draw-and-undo-openpencil-darwin.png b/tests/e2e/create-shapes.spec.ts-snapshots/draw-and-undo-openpencil-darwin.pngdeleted file mode 100644index fdd92ab4b..000000000Binary files a/tests/e2e/create-shapes.spec.ts-snapshots/draw-and-undo-openpencil-darwin.png and /dev/null differdiff --git a/tests/e2e/create-shapes.spec.ts-snapshots/draw-ellipse-openpencil-darwin.png b/tests/e2e/create-shapes.spec.ts-snapshots/draw-ellipse-openpencil-darwin.pngdeleted file mode 100644index 9571c9ecf..000000000Binary files a/tests/e2e/create-shapes.spec.ts-snapshots/draw-ellipse-openpencil-darwin.png and /dev/null differdiff --git a/tests/e2e/create-shapes.spec.ts-snapshots/draw-rectangle-openpencil-darwin.png b/tests/e2e/create-shapes.spec.ts-snapshots/draw-rectangle-openpencil-darwin.pngdeleted file mode 100644index bbe3b5cfa..000000000Binary files a/tests/e2e/create-shapes.spec.ts-snapshots/draw-rectangle-openpencil-darwin.png and /dev/null differdiff --git a/tests/e2e/create-shapes.spec.ts-snapshots/draw-rectangle-then-move-it-openpencil-darwin.png b/tests/e2e/create-shapes.spec.ts-snapshots/draw-rectangle-then-move-it-openpencil-darwin.pngdeleted file mode 100644index 474134091..000000000Binary files a/tests/e2e/create-shapes.spec.ts-snapshots/draw-rectangle-then-move-it-openpencil-darwin.png and /dev/null differdiff --git a/tests/e2e/create-shapes.spec.ts-snapshots/empty-canvas-openpencil-darwin.png b/tests/e2e/create-shapes.spec.ts-snapshots/empty-canvas-openpencil-darwin.pngdeleted file mode 100644index 13dc5da4d..000000000Binary files a/tests/e2e/create-shapes.spec.ts-snapshots/empty-canvas-openpencil-darwin.png and /dev/null differdiff --git a/tests/e2e/editor/create-shapes.spec.ts b/tests/e2e/editor/create-shapes.spec.tsindex 1e1d5edd4..81b03ccc6 100644--- a/tests/e2e/editor/create-shapes.spec.ts+++ b/tests/e2e/editor/create-shapes.spec.ts@@ -9,7 +9,7 @@ test.describe.configure({ mode: 'serial' })test.beforeAll(async ({ browser }) => {page = await browser.newPage()- await page.goto('/?test&no-chrome')+ await page.goto('/?test&no-chrome&no-rulers')canvas = new CanvasHelper(page)await canvas.waitForInit()})diff --git a/tests/e2e/editor/create-shapes.spec.ts-snapshots/draw-and-delete-openpencil-darwin.png b/tests/e2e/editor/create-shapes.spec.ts-snapshots/draw-and-delete-openpencil-darwin.pngnew file mode 100644index 000000000..504c7fc10Binary files /dev/null and b/tests/e2e/editor/create-shapes.spec.ts-snapshots/draw-and-delete-openpencil-darwin.png differdiff --git a/tests/e2e/editor/create-shapes.spec.ts-snapshots/draw-and-undo-openpencil-darwin.png b/tests/e2e/editor/create-shapes.spec.ts-snapshots/draw-and-undo-openpencil-darwin.pngnew file mode 100644index 000000000..504c7fc10Binary files /dev/null and b/tests/e2e/editor/create-shapes.spec.ts-snapshots/draw-and-undo-openpencil-darwin.png differdiff --git a/tests/e2e/editor/create-shapes.spec.ts-snapshots/draw-ellipse-openpencil-darwin.png b/tests/e2e/editor/create-shapes.spec.ts-snapshots/draw-ellipse-openpencil-darwin.pngnew file mode 100644index 000000000..4299c1152Binary files /dev/null and b/tests/e2e/editor/create-shapes.spec.ts-snapshots/draw-ellipse-openpencil-darwin.png differdiff --git a/tests/e2e/editor/create-shapes.spec.ts-snapshots/draw-rectangle-openpencil-darwin.png b/tests/e2e/editor/create-shapes.spec.ts-snapshots/draw-rectangle-openpencil-darwin.pngnew file mode 100644index 000000000..50ed66dcaBinary files /dev/null and b/tests/e2e/editor/create-shapes.spec.ts-snapshots/draw-rectangle-openpencil-darwin.png differdiff --git a/tests/e2e/editor/create-shapes.spec.ts-snapshots/draw-rectangle-then-move-it-openpencil-darwin.png b/tests/e2e/editor/create-shapes.spec.ts-snapshots/draw-rectangle-then-move-it-openpencil-darwin.pngnew file mode 100644index 000000000..f43fea53dBinary files /dev/null and b/tests/e2e/editor/create-shapes.spec.ts-snapshots/draw-rectangle-then-move-it-openpencil-darwin.png differdiff --git a/tests/e2e/editor/create-shapes.spec.ts-snapshots/empty-canvas-openpencil-darwin.png b/tests/e2e/editor/create-shapes.spec.ts-snapshots/empty-canvas-openpencil-darwin.pngnew file mode 100644index 000000000..504c7fc10Binary files /dev/null and b/tests/e2e/editor/create-shapes.spec.ts-snapshots/empty-canvas-openpencil-darwin.png differdiff --git a/tests/e2e/effects.spec.ts-snapshots/combined-drop-inner-shadow-openpencil-darwin.png b/tests/e2e/effects.spec.ts-snapshots/combined-drop-inner-shadow-openpencil-darwin.pngdeleted file mode 100644index 46c67eb3a..000000000Binary files a/tests/e2e/effects.spec.ts-snapshots/combined-drop-inner-shadow-openpencil-darwin.png and /dev/null differdiff --git a/tests/e2e/effects.spec.ts-snapshots/drop-shadow-ellipse-openpencil-darwin.png b/tests/e2e/effects.spec.ts-snapshots/drop-shadow-ellipse-openpencil-darwin.pngdeleted file mode 100644index 4140a78b0..000000000Binary files a/tests/e2e/effects.spec.ts-snapshots/drop-shadow-ellipse-openpencil-darwin.png and /dev/null differdiff --git a/tests/e2e/effects.spec.ts-snapshots/drop-shadow-white-card-openpencil-darwin.png b/tests/e2e/effects.spec.ts-snapshots/drop-shadow-white-card-openpencil-darwin.pngdeleted file mode 100644index 2140e505a..000000000Binary files a/tests/e2e/effects.spec.ts-snapshots/drop-shadow-white-card-openpencil-darwin.png and /dev/null differdiff --git a/tests/e2e/effects.spec.ts-snapshots/drop-shadow-with-spread-openpencil-darwin.png b/tests/e2e/effects.spec.ts-snapshots/drop-shadow-with-spread-openpencil-darwin.pngdeleted file mode 100644index eb660a722..000000000Binary files a/tests/e2e/effects.spec.ts-snapshots/drop-shadow-with-spread-openpencil-darwin.png and /dev/null differdiff --git a/tests/e2e/effects.spec.ts-snapshots/inner-shadow-openpencil-darwin.png b/tests/e2e/effects.spec.ts-snapshots/inner-shadow-openpencil-darwin.pngdeleted file mode 100644index 865288395..000000000Binary files a/tests/e2e/effects.spec.ts-snapshots/inner-shadow-openpencil-darwin.png and /dev/null differdiff --git a/tests/e2e/effects.spec.ts-snapshots/inner-shadow-with-spread-openpencil-darwin.png b/tests/e2e/effects.spec.ts-snapshots/inner-shadow-with-spread-openpencil-darwin.pngdeleted file mode 100644index 257fe72ec..000000000Binary files a/tests/e2e/effects.spec.ts-snapshots/inner-shadow-with-spread-openpencil-darwin.png and /dev/null differdiff --git a/tests/e2e/effects.spec.ts-snapshots/invisible-effect-openpencil-darwin.png b/tests/e2e/effects.spec.ts-snapshots/invisible-effect-openpencil-darwin.pngdeleted file mode 100644index 51f94f481..000000000Binary files a/tests/e2e/effects.spec.ts-snapshots/invisible-effect-openpencil-darwin.png and /dev/null differdiff --git a/tests/e2e/effects.spec.ts-snapshots/layer-blur-openpencil-darwin.png b/tests/e2e/effects.spec.ts-snapshots/layer-blur-openpencil-darwin.pngdeleted file mode 100644index 6dea22d25..000000000Binary files a/tests/e2e/effects.spec.ts-snapshots/layer-blur-openpencil-darwin.png and /dev/null differdiff --git a/tests/e2e/effects.spec.ts-snapshots/text-drop-shadow-openpencil-darwin.png b/tests/e2e/effects.spec.ts-snapshots/text-drop-shadow-openpencil-darwin.pngdeleted file mode 100644index a1453b44e..000000000Binary files a/tests/e2e/effects.spec.ts-snapshots/text-drop-shadow-openpencil-darwin.png and /dev/null differdiff --git a/tests/e2e/fonts/cjk-fallback.spec.ts b/tests/e2e/fonts/cjk-fallback.spec.tsindex c75af0e33..53ba56815 100644--- a/tests/e2e/fonts/cjk-fallback.spec.ts+++ b/tests/e2e/fonts/cjk-fallback.spec.ts@@ -4,7 +4,7 @@ import { CanvasHelper } from '#tests/helpers/canvas'test('CJK text waits for fallback fonts and repaints after they load', async ({ page }) => {const canvas = new CanvasHelper(page)- await page.goto('http://localhost:1420/?test&no-chrome')+ await page.goto('http://localhost:1420/?test&no-chrome&no-rulers')await canvas.waitForInit()const result = await page.evaluate(async () => {diff --git a/tests/e2e/frame-overlays.spec.ts-snapshots/rotated-frame-child-hover-highlight-openpencil-darwin.png b/tests/e2e/frame-overlays.spec.ts-snapshots/rotated-frame-child-hover-highlight-openpencil-darwin.pngdeleted file mode 100644index 7d2d2a9fb..000000000Binary files a/tests/e2e/frame-overlays.spec.ts-snapshots/rotated-frame-child-hover-highlight-openpencil-darwin.png and /dev/null differdiff --git a/tests/e2e/frame-overlays.spec.ts-snapshots/rotated-frame-selection-labels-openpencil-darwin.png b/tests/e2e/frame-overlays.spec.ts-snapshots/rotated-frame-selection-labels-openpencil-darwin.pngdeleted file mode 100644index 46cd6e079..000000000Binary files a/tests/e2e/frame-overlays.spec.ts-snapshots/rotated-frame-selection-labels-openpencil-darwin.png and /dev/null differdiff --git a/tests/e2e/frame-overlays.spec.ts-snapshots/rotated-frame-selection-labels-preview-openpencil-darwin.png b/tests/e2e/frame-overlays.spec.ts-snapshots/rotated-frame-selection-labels-preview-openpencil-darwin.pngdeleted file mode 100644index 5365a73c2..000000000Binary files a/tests/e2e/frame-overlays.spec.ts-snapshots/rotated-frame-selection-labels-preview-openpencil-darwin.png and /dev/null differdiff --git a/tests/e2e/perf/basic.spec.ts b/tests/e2e/perf/basic.spec.tsindex 794a125d4..ea19294af 100644--- a/tests/e2e/perf/basic.spec.ts+++ b/tests/e2e/perf/basic.spec.ts@@ -11,7 +11,7 @@ test.describe('Render performance', () => {test.beforeAll(async ({ browser }) => {const page = await browser.newPage()helper = new CanvasHelper(page)- await page.goto('http://localhost:1420/?test&no-chrome')+ await page.goto('http://localhost:1420/?test&no-chrome&no-rulers')await helper.waitForInit()await page.evaluate((count: number) => {diff --git a/tests/e2e/properties/effects.spec.ts b/tests/e2e/properties/effects.spec.tsindex 334931bfc..c2eba396f 100644--- a/tests/e2e/properties/effects.spec.ts+++ b/tests/e2e/properties/effects.spec.ts@@ -9,7 +9,7 @@ test.describe.configure({ mode: 'serial' })test.beforeAll(async ({ browser }) => {page = await browser.newPage()- await page.goto('/?test&no-chrome')+ await page.goto('/?test&no-chrome&no-rulers')canvas = new CanvasHelper(page)await canvas.waitForInit()})diff --git a/tests/e2e/properties/effects.spec.ts-snapshots/combined-drop-inner-shadow-openpencil-darwin.png b/tests/e2e/properties/effects.spec.ts-snapshots/combined-drop-inner-shadow-openpencil-darwin.pngnew file mode 100644index 000000000..410e3d5a5Binary files /dev/null and b/tests/e2e/properties/effects.spec.ts-snapshots/combined-drop-inner-shadow-openpencil-darwin.png differdiff --git a/tests/e2e/properties/effects.spec.ts-snapshots/drop-shadow-ellipse-openpencil-darwin.png b/tests/e2e/properties/effects.spec.ts-snapshots/drop-shadow-ellipse-openpencil-darwin.pngnew file mode 100644index 000000000..ea8adc8b8Binary files /dev/null and b/tests/e2e/properties/effects.spec.ts-snapshots/drop-shadow-ellipse-openpencil-darwin.png differdiff --git a/tests/e2e/properties/effects.spec.ts-snapshots/drop-shadow-white-card-openpencil-darwin.png b/tests/e2e/properties/effects.spec.ts-snapshots/drop-shadow-white-card-openpencil-darwin.pngnew file mode 100644index 000000000..3421e635fBinary files /dev/null and b/tests/e2e/properties/effects.spec.ts-snapshots/drop-shadow-white-card-openpencil-darwin.png differdiff --git a/tests/e2e/properties/effects.spec.ts-snapshots/drop-shadow-with-spread-openpencil-darwin.png b/tests/e2e/properties/effects.spec.ts-snapshots/drop-shadow-with-spread-openpencil-darwin.pngnew file mode 100644index 000000000..8ac9fa67eBinary files /dev/null and b/tests/e2e/properties/effects.spec.ts-snapshots/drop-shadow-with-spread-openpencil-darwin.png differdiff --git a/tests/e2e/properties/effects.spec.ts-snapshots/inner-shadow-openpencil-darwin.png b/tests/e2e/properties/effects.spec.ts-snapshots/inner-shadow-openpencil-darwin.pngnew file mode 100644index 000000000..c8b896ee8Binary files /dev/null and b/tests/e2e/properties/effects.spec.ts-snapshots/inner-shadow-openpencil-darwin.png differdiff --git a/tests/e2e/properties/effects.spec.ts-snapshots/inner-shadow-with-spread-openpencil-darwin.png b/tests/e2e/properties/effects.spec.ts-snapshots/inner-shadow-with-spread-openpencil-darwin.pngnew file mode 100644index 000000000..8db0403a3Binary files /dev/null and b/tests/e2e/properties/effects.spec.ts-snapshots/inner-shadow-with-spread-openpencil-darwin.png differdiff --git a/tests/e2e/properties/effects.spec.ts-snapshots/invisible-effect-openpencil-darwin.png b/tests/e2e/properties/effects.spec.ts-snapshots/invisible-effect-openpencil-darwin.pngnew file mode 100644index 000000000..ff4451ac2Binary files /dev/null and b/tests/e2e/properties/effects.spec.ts-snapshots/invisible-effect-openpencil-darwin.png differdiff --git a/tests/e2e/properties/effects.spec.ts-snapshots/layer-blur-openpencil-darwin.png b/tests/e2e/properties/effects.spec.ts-snapshots/layer-blur-openpencil-darwin.pngnew file mode 100644index 000000000..15db4bd27Binary files /dev/null and b/tests/e2e/properties/effects.spec.ts-snapshots/layer-blur-openpencil-darwin.png differdiff --git a/tests/e2e/properties/effects.spec.ts-snapshots/text-drop-shadow-openpencil-darwin.png b/tests/e2e/properties/effects.spec.ts-snapshots/text-drop-shadow-openpencil-darwin.pngnew file mode 100644index 000000000..504c7fc10Binary files /dev/null and b/tests/e2e/properties/effects.spec.ts-snapshots/text-drop-shadow-openpencil-darwin.png differdiff --git a/tests/e2e/scene-cache.spec.ts-snapshots/text-after-hover-cycle-openpencil-darwin.png b/tests/e2e/scene-cache.spec.ts-snapshots/text-after-hover-cycle-openpencil-darwin.pngdeleted file mode 100644index 4bff56550..000000000Binary files a/tests/e2e/scene-cache.spec.ts-snapshots/text-after-hover-cycle-openpencil-darwin.png and /dev/null differdiff --git a/tests/e2e/scene-cache.spec.ts-snapshots/text-after-multiple-hover-cycles-openpencil-darwin.png b/tests/e2e/scene-cache.spec.ts-snapshots/text-after-multiple-hover-cycles-openpencil-darwin.pngdeleted file mode 100644index bced24c58..000000000Binary files a/tests/e2e/scene-cache.spec.ts-snapshots/text-after-multiple-hover-cycles-openpencil-darwin.png and /dev/null differdiff --git a/tests/e2e/scene-cache.spec.ts-snapshots/text-after-real-hover-cycle-openpencil-darwin.png b/tests/e2e/scene-cache.spec.ts-snapshots/text-after-real-hover-cycle-openpencil-darwin.pngdeleted file mode 100644index 4bff56550..000000000Binary files a/tests/e2e/scene-cache.spec.ts-snapshots/text-after-real-hover-cycle-openpencil-darwin.png and /dev/null differdiff --git a/tests/e2e/scene-cache.spec.ts-snapshots/text-after-scene-change-hover-openpencil-darwin.png b/tests/e2e/scene-cache.spec.ts-snapshots/text-after-scene-change-hover-openpencil-darwin.pngdeleted file mode 100644index 7838a4ed0..000000000Binary files a/tests/e2e/scene-cache.spec.ts-snapshots/text-after-scene-change-hover-openpencil-darwin.png and /dev/null differdiff --git a/tests/e2e/scene/cache.spec.ts b/tests/e2e/scene/cache.spec.tsindex 02fd64d06..544aebdda 100644--- a/tests/e2e/scene/cache.spec.ts+++ b/tests/e2e/scene/cache.spec.ts@@ -9,7 +9,7 @@ test.describe('SkPicture scene caching', () => {test.beforeAll(async ({ browser }) => {const page = await browser.newPage()helper = new CanvasHelper(page)- await page.goto('http://localhost:1420/?test&no-chrome')+ await page.goto('http://localhost:1420/?test&no-chrome&no-rulers')await helper.waitForInit()await page.evaluate(() => {diff --git a/tests/e2e/scene/cache.spec.ts-snapshots/text-after-hover-cycle-openpencil-darwin.png b/tests/e2e/scene/cache.spec.ts-snapshots/text-after-hover-cycle-openpencil-darwin.pngnew file mode 100644index 000000000..790c73850Binary files /dev/null and b/tests/e2e/scene/cache.spec.ts-snapshots/text-after-hover-cycle-openpencil-darwin.png differdiff --git a/tests/e2e/scene/cache.spec.ts-snapshots/text-after-multiple-hover-cycles-openpencil-darwin.png b/tests/e2e/scene/cache.spec.ts-snapshots/text-after-multiple-hover-cycles-openpencil-darwin.pngnew file mode 100644index 000000000..790c73850Binary files /dev/null and b/tests/e2e/scene/cache.spec.ts-snapshots/text-after-multiple-hover-cycles-openpencil-darwin.png differdiff --git a/tests/e2e/scene/cache.spec.ts-snapshots/text-after-real-hover-cycle-openpencil-darwin.png b/tests/e2e/scene/cache.spec.ts-snapshots/text-after-real-hover-cycle-openpencil-darwin.pngnew file mode 100644index 000000000..790c73850Binary files /dev/null and b/tests/e2e/scene/cache.spec.ts-snapshots/text-after-real-hover-cycle-openpencil-darwin.png differdiff --git a/tests/e2e/scene/cache.spec.ts-snapshots/text-after-scene-change-hover-openpencil-darwin.png b/tests/e2e/scene/cache.spec.ts-snapshots/text-after-scene-change-hover-openpencil-darwin.pngnew file mode 100644index 000000000..c0aa204c5Binary files /dev/null and b/tests/e2e/scene/cache.spec.ts-snapshots/text-after-scene-change-hover-openpencil-darwin.png differdiff --git a/tests/e2e/viewport/zoom-pan.spec.ts b/tests/e2e/viewport/zoom-pan.spec.tsindex cb7288e92..c60ee8318 100644--- a/tests/e2e/viewport/zoom-pan.spec.ts+++ b/tests/e2e/viewport/zoom-pan.spec.ts@@ -11,7 +11,7 @@ test.describe('Zoom and pan', () => {test.beforeAll(async ({ browser }) => {const page = await browser.newPage()helper = new CanvasHelper(page)- await page.goto('http://localhost:1420/?test&no-chrome')+ await page.goto('http://localhost:1420/?test&no-chrome&no-rulers')await helper.waitForInit()await page.evaluate((count: number) => {