Skip to content

Commit c4d423d

Browse files
Copilothotlong
andcommitted
fix: improve test description for DashboardWithConfig onWidgetSave test
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent f8e6317 commit c4d423d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

packages/plugin-dashboard/src/__tests__/DashboardWithConfig.test.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ describe('DashboardWithConfig', () => {
191191
expect(screen.queryByText('Widget')).toBeNull();
192192
});
193193

194-
it('should call onWidgetSave when widget config is saved', () => {
194+
it('should accept onWidgetSave prop without errors', () => {
195195
const onWidgetSave = vi.fn();
196196
render(
197197
<DashboardWithConfig
@@ -202,8 +202,9 @@ describe('DashboardWithConfig', () => {
202202
defaultConfigOpen={true}
203203
/>,
204204
);
205-
// Config panel should open showing Dashboard config by default
205+
// Config panel should open showing Dashboard config by default (no widget selected)
206206
expect(screen.getByText('Dashboard')).toBeDefined();
207207
expect(screen.getByText('Configuration')).toBeDefined();
208+
expect(screen.queryByText('Widget')).toBeNull();
208209
});
209210
});

0 commit comments

Comments
 (0)