fix(test): NotificationDropdown iframe navigation crash + Tailwind CI noise #548

Merged
marcel merged 7 commits from feat/issue-545-notification-dropdown-iframe-fix into main 2026-05-12 11:35:41 +02:00
Showing only changes of commit c8d052d307 - Show all commits

View File

@@ -79,6 +79,8 @@ The following `vi.mock(module, factory)` calls in browser specs are **acceptable
These modules are resolved at static import time (before any test runs). Their `vi.mock` factories are served by birpc synchronously during module graph resolution, not after worker teardown.
**Pattern note:** When an overlay or dropdown contains a navigation link (`<a href="…">`), use `e.preventDefault()` + `goto(path)` in the click handler instead of letting the browser follow the `href`. In a vitest-browser Playwright iframe there is no SvelteKit router, so a real navigation tears down the orchestrator iframe and crashes the test run. The `href` attribute should still be present for right-click / open-in-new-tab semantics.
---
## Consequences