updated tests for multiple ips

This commit is contained in:
findthelorax
2026-05-08 19:58:17 -04:00
committed by Pouzor
parent 8d937b2a0d
commit 9cd93ef294
2 changed files with 66 additions and 1 deletions
@@ -442,7 +442,9 @@ describe('DetailPanel', () => {
it('displays full comma-separated IP string as link text', () => {
setupStore({ ip: '192.168.1.10, 192.168.1.11' })
render(<DetailPanel onEdit={vi.fn()} />)
expect(screen.getByText(/192\.168\.1\.10, 192\.168\.1\.11/)).toBeDefined()
expect(screen.getByRole('link', { name: /192\.168\.1\.10/ })).toBeDefined()
expect(screen.getByRole('link', { name: /192\.168\.1\.11/ })).toBeDefined()
expect(screen.queryByText(',')).toBeNull()
})
})