fix(tests): add noCompactor mock + fix note-widget event simulation
Tessera CI/CD / Lint & Type Check (push) Successful in 42s
Tessera CI/CD / Tests (push) Successful in 46s
Tessera CI/CD / Build & Publish Images (push) Successful in 4m3s

- dashboard-grid.test: add noCompactor to react-grid-layout mock
- note-widget.test: enable edit mode before typing (onChange is undefined
  when isEditing=false), replace native dispatchEvent with fireEvent.change

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-07-02 10:15:17 +02:00
parent 745bd66266
commit 384b2409a2
2 changed files with 19 additions and 46 deletions
@@ -41,6 +41,7 @@ vi.mock('react-grid-layout', () => ({
}: {
children: React.ReactNode;
}) => <div data-testid="responsive-grid">{children}</div>,
noCompactor: () => null,
}));
// Mock dashboard-api