Skip to content

test: regenerate visual regression baselines for main#32

Merged
macpijan merged 1 commit intomainfrom
fix/visual-regression-baselines
Mar 2, 2026
Merged

test: regenerate visual regression baselines for main#32
macpijan merged 1 commit intomainfrom
fix/visual-regression-baselines

Conversation

@pietrushnic
Copy link
Member

@pietrushnic pietrushnic commented Feb 24, 2026

Previous baselines were generated with layout-fixes CSS (.slidev-layout padding-top: 0.5rem) that is not on main. This caused 8 visual regression test failures (2-28% pixel diff) due to a consistent ~40px vertical content shift.

Regenerated baselines from clean origin/main state to match actual Slidev default padding.

% SLIDEV_PORT=8002 ./scripts/run-tests.sh
Setting up test presentation repo...
Test repo ready
Starting dev server on port 8002...
Waiting for dev server to be ready...
Dev server is ready
Running Playwright tests...

Running 20 tests using 1 worker

  ✓   1 [chromium] › tests/smoke.spec.ts:17:3 › Dev Server › responds on configured port (2.7s)
  ✓   2 [chromium] › tests/smoke.spec.ts:22:3 › Dev Server › theme loads without console errors (8.8s)
  ✓   3 [chromium] › tests/smoke.spec.ts:44:3 › Dev Server › src: directive renders content (2.7s)
  ✓   4 [chromium] › tests/smoke.spec.ts:55:3 › Navigation › all slides load without OOM (20.9s)
  ✓   5 [chromium] › tests/smoke.spec.ts:64:3 › Navigation › presenter mode accessible (711ms)
  ✓   6 [chromium] › tests/smoke.spec.ts:69:3 › Navigation › overview mode accessible (527ms)
  ✓   7 [chromium] › tests/smoke.spec.ts:76:3 › Assets › images load without errors (2.2s)
  ✓   8 [chromium] › tests/smoke.spec.ts:92:3 › Keyboard Navigation › vim keys navigate slides (h/l) (3.3s)
  ✓   9 [chromium] › tests/smoke.spec.ts:110:3 › Keyboard Navigation › vim keys navigate slides (j/k) (3.8s)
  ✓  10 [chromium] › tests/visual-regression.spec.ts:13:3 › Layouts › cover (3.4s)
  ✓  11 [chromium] › tests/visual-regression.spec.ts:23:3 › Layouts › two-cols (3.2s)
  ✓  12 [chromium] › tests/visual-regression.spec.ts:33:3 › Layouts › two-cols-header (3.2s)
  ✓  13 [chromium] › tests/visual-regression.spec.ts:43:3 › Layouts › quote (3.1s)
  ✓  14 [chromium] › tests/visual-regression.spec.ts:55:3 › Components › figure with figcaption (3.2s)
  ✓  15 [chromium] › tests/visual-regression.spec.ts:67:3 › Components › Footnotes (3.4s)
  ✓  16 [chromium] › tests/visual-regression.spec.ts:78:3 › Components › table (3.2s)
  ✓  17 [chromium] › tests/visual-regression.spec.ts:91:3 › Footer › visible on content slides (2.4s)
  ✓  18 [chromium] › tests/visual-regression.spec.ts:99:3 › Footer › hidden on cover slides (2.5s)
  ✓  19 [chromium] › tests/visual-regression.spec.ts:107:3 › Presenter Mode › renders with notes panel (3.7s)
  ✓  20 [chromium] › tests/visual-regression.spec.ts:119:3 › Font Size Classes › code-10px and code-12px apply correctly (3.2s)

  20 passed (1.4m)
All tests passed!
Cleaning up...
slidev-test-server-996562

Previous baselines were generated with layout-fixes CSS
(.slidev-layout padding-top: 0.5rem) that is not on main.
This caused 8 visual regression test failures (2-28% pixel diff)
due to a consistent ~40px vertical content shift.

Regenerated baselines from clean origin/main state to match
actual Slidev default padding.

Signed-off-by: Piotr Król <piotr.krol@3mdeb.com>
Copy link
Member

@macpijan macpijan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It actually resolve problem reported in: #27 (comment)

@macpijan macpijan merged commit 04b536c into main Mar 2, 2026
@macpijan macpijan deleted the fix/visual-regression-baselines branch March 2, 2026 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants