Fix collapse, group skew, empty tables and the tab strip scrollbar

This commit is contained in:
2026-08-31 15:01:24 -04:00
parent 2fce339735
commit b21503e250
7 changed files with 70 additions and 16 deletions

View File

@@ -327,3 +327,16 @@ describe('facet chips on a card that shows a health dot', () => {
expect(facetedRows(services, ['Start Pending']).length).toBe(1)
})
})
describe('panelVisible and empty', () => {
it('keeps a table panel that declares an empty message', () => {
// It is the only card in the Software tab, so hiding it hides the tab and
// the reader cannot tell "nothing reported" from "feature missing".
const panel = { render: 'table', _data: { items: [] }, empty: 'No installed software reported.' }
expect(panelVisible(panel)).toBe(true)
})
it('still hides a table panel with nothing to say', () => {
expect(panelVisible({ render: 'table', _data: { items: [] } })).toBe(false)
})
})