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:
@@ -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')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user