fix: block vault API in theme-live-reload smoke test

Same root cause as theme-properties-defaults: the vault API reads real
files from disk instead of mock content, causing theme CSS var mismatches.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Test
2026-03-11 23:10:24 +01:00
parent a25f9ee1fc
commit 12416b99bc

View File

@@ -43,6 +43,11 @@ async function setCmContent(page: Page, newContent: string) {
test.describe('Theme live reload on save', () => {
test.beforeEach(async ({ page }) => {
// Block the vault API ping so the app falls back to mock content
// instead of reading real files from the filesystem.
await page.route('**/api/vault/ping', (route) =>
route.fulfill({ status: 404, body: 'blocked for testing' }),
)
await page.goto('/')
await page.waitForLoadState('networkidle')
})