Skip to content

Commit 62f8b3d

Browse files
committed
test: Add tests for containers, tabs, reordering, and grouping
54 tests: group always has 1 tab, add tab creates 2nd, title syncs from tabs[0], delete to 1 keeps tab, fill-right positioning, tabId cleanup on grouping, section reorder, tile grouping.
1 parent 361a8d8 commit 62f8b3d

2 files changed

Lines changed: 498 additions & 11 deletions

File tree

packages/app/src/DBDashboardPage.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2054,18 +2054,14 @@ function DBDashboardPage({ presetConfig }: { presetConfig?: Dashboard }) {
20542054
tileCount={containerTiles.length}
20552055
collapsed={isSectionCollapsed(container)}
20562056
defaultCollapsed={container.collapsed ?? false}
2057-
onToggle={() =>
2058-
handleToggleSection(container.id)
2059-
}
2057+
onToggle={() => handleToggleSection(container.id)}
20602058
onToggleDefaultCollapsed={() =>
20612059
handleToggleDefaultCollapsed(container.id)
20622060
}
20632061
onRename={newTitle =>
20642062
handleRenameSection(container.id, newTitle)
20652063
}
2066-
onDelete={() =>
2067-
handleDeleteSection(container.id)
2068-
}
2064+
onDelete={() => handleDeleteSection(container.id)}
20692065
onAddTile={() => onAddTile(container.id)}
20702066
dragHandleProps={dragHandleProps}
20712067
/>

0 commit comments

Comments
 (0)