fix(tests): add noCompactor mock + fix note-widget event simulation
- 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:
@@ -41,6 +41,7 @@ vi.mock('react-grid-layout', () => ({
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) => <div data-testid="responsive-grid">{children}</div>,
|
||||
noCompactor: () => null,
|
||||
}));
|
||||
|
||||
// Mock dashboard-api
|
||||
|
||||
Reference in New Issue
Block a user